:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --panel: #ffffff;
  --text: #15171c;
  --muted: #5f6673;
  --line: #e3e6ea;
  --line-strong: #d4d8df;
  --accent: #c9151b;
  --accent-dark: #970e13;
  --accent-soft: #fff0f1;
  --dark: #171b23;
  --radius: 24px;
  --max-width: 1180px;
  --shadow: 0 24px 70px rgba(21, 23, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(201, 21, 27, 0.09), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.logo-image {
  display: block;
  width: auto;
  height: 38px;
}

.logo-product {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 102px 0 88px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: -120px;
  width: 46vw;
  height: 210px;
  border-bottom-left-radius: 40px;
  background: var(--accent);
  content: "";
  transform: skewX(-22deg);
  transform-origin: top right;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: 62px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7.4vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 710px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: relative;
  min-width: 0;
  padding: 20px;
}

.device {
  overflow: hidden;
  border: 14px solid #20242b;
  border-radius: 30px;
  background: #f2f4f7;
  box-shadow: var(--shadow);
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: #5e626b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.device-status {
  color: #e7e9ee;
}

.room-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 300px;
}

.room-map {
  display: grid;
  place-items: center;
  padding: 26px;
  background: #ffffff;
}

.room-shape {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1;
  border: 16px solid #edf0f3;
  background: #fafbfc;
  clip-path: polygon(18% 0, 82% 0, 100% 18%, 100% 82%, 82% 100%, 18% 100%, 0 82%, 0 18%);
}

.light {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #c8eef4;
  border-radius: 7px;
  background: #ffffff;
}

.light-a {
  top: 22%;
  left: 30%;
}

.light-b {
  top: 22%;
  right: 30%;
}

.light-c {
  bottom: 24%;
  left: 25%;
}

.light-d {
  right: 25%;
  bottom: 24%;
}

.table-shape {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 76px;
  height: 46px;
  border: 7px solid #d6eef4;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.status-list {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: #f3f5f8;
}

.status-list div {
  padding: 14px;
  border: 1px solid #e4e7ed;
  border-radius: 999px;
  background: #ffffff;
}

.status-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-list strong {
  color: var(--accent);
}

.floating-card {
  position: absolute;
  max-width: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.floating-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.floating-card strong {
  display: block;
  line-height: 1.25;
}

.card-a {
  top: 0;
  right: 0;
}

.card-b {
  bottom: 0;
  left: 0;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-muted {
  background: var(--bg-soft);
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
}

.content-text p,
.section-intro p,
.feature-box p,
.contact-card p,
.note {
  color: var(--muted);
  font-size: 18px;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 790px;
  margin-bottom: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  min-height: 248px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(21, 23, 28, 0.055);
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: stretch;
  gap: 28px;
}

.feature-box {
  padding: 38px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at top right, rgba(201, 21, 27, 0.10), transparent 22rem),
    var(--dark);
  color: #ffffff;
}

.feature-box .eyebrow {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.feature-box p {
  color: #d7dce5;
}

.note {
  margin-top: 28px;
  margin-bottom: 0;
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
}

.use-list {
  display: grid;
  gap: 16px;
}

.use-list article,
.custom-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.use-list p,
.custom-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.custom-item {
  min-height: 210px;
}


.company-section {
  position: relative;
}

.company-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.company-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(21, 23, 28, 0.055);
}

.company-card p {
  color: var(--muted);
  font-size: 18px;
}

.company-address {
  display: grid;
  gap: 3px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.company-address strong {
  color: var(--text);
}

.company-address span {
  color: var(--muted);
}

.contact-section {
  padding-bottom: 110px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 720px;
}

.contact-card p {
  max-width: 700px;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-details div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}

.contact-details small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .nav a:hover,
  .nav a.is-active {
    background: var(--accent-soft);
  }

  .hero-grid,
  .two-column,
  .split,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .logo-product {
    display: none;
  }

  .logo-image {
    height: 34px;
  }

  .hero {
    padding: 62px 0;
  }

  .hero::before {
    height: 120px;
    width: 70vw;
  }

  .section {
    padding: 58px 0;
  }

  .lead,
  .content-text p,
  .section-intro p,
  .feature-box p,
  .contact-card p {
    font-size: 16px;
  }

  .hero-panel {
    padding: 0;
  }

  .device {
    border-width: 9px;
    border-radius: 22px;
  }

  .room-layout {
    grid-template-columns: 1fr;
  }

  .room-map {
    padding: 18px;
  }

  .status-list {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }

  .cards,
  .custom-grid,
  .contact-details {
    grid-template-columns: 1fr;
  }

  .card,
  .custom-item {
    min-height: auto;
  }

  .feature-box,
  .contact-card {
    padding: 26px;
    border-radius: 26px;
  }
}

/* Contact form */
.contact-card-form {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-copy {
  min-width: 0;
}

.contact-details-compact {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 360px;
  margin-top: 28px;
}

.contact-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span,
.consent span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 15px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 21, 27, 0.10);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-success {
  color: #0f7b3f;
}

.form-status.is-error {
  color: var(--accent);
}

.form-status-note {
  margin-top: 18px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1040px) {
  .contact-card-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-form {
    padding: 18px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .btn {
    width: 100%;
  }
}
