:root {
  --bg: #f3f6fd;
  --text: #111827;
  --muted: #4b5563;
  --line: #d6deef;
  --primary: #1f43ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.48;
}

.wrap {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #ebeffb;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.topbar-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar-logo {
  display: inline-flex;
  text-decoration: none;
}

.topbar-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.topbar-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 0;
  color: inherit;
  background: var(--bg);
  text-decoration: none;
  overflow: hidden;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

.icon-telegram img {
  width: 165%;
  height: 165%;
}

.contact-social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-telegram {
  background: transparent;
}

.icon-instagram {
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.topbar-break {
  flex-basis: 100%;
  height: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-basis: auto;
  margin-right: 12px;
}

.brand-logo img {
  display: block;
  height: 216px;
  width: auto;
  max-width: min(95vw, 1080px);
}

.hero-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  padding: 0;
  margin: 0 0 14px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.hero-brand-logo img {
  display: block;
  height: 144px;
  width: auto;
  max-width: min(90vw, 720px);
}

.section {
  padding: 72px 0;
}

.alt {
  background: #eef2ff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 32px 0 44px;
  background:
    linear-gradient(105deg, rgba(11, 17, 35, 0.72) 0%, rgba(16, 23, 47, 0.58) 42%, rgba(16, 23, 47, 0.3) 100%),
    url("./hero-bg.png") center center / contain no-repeat;
  background-color: #e7ebf5;
}

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

.quick-control {
  padding-top: 28px;
  padding-bottom: 28px;
}

.second-block {
  padding-top: 24px;
  padding-bottom: 24px;
}

.second-block-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.hero-left {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  order: 99;
  align-self: flex-end;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.platform-badge img {
  display: block;
  height: 46px;
  width: auto;
}

.platform-badge img[alt="Яндекс Алиса"] {
  border-radius: 999px;
  clip-path: inset(6% 2% 6% 2% round 999px);
}

.platform-badge img[alt="Works with Apple HomeKit"] {
  border-radius: 12px;
  clip-path: inset(4% 2.5% 4% 2.5% round 12px);
}

.kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 19px;
}

h1 {
  margin: 0 0 14px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

h2 {
  margin: 0 0 14px;
  font-size: 35px;
  line-height: 1.15;
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

h4 {
  margin: 14px 0 10px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.hero-links {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-note {
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(31, 67, 255, 0.22);
  border: 0;
  cursor: pointer;
  font: inherit;
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #cfd9ff;
  box-shadow: none;
}

.hero-actions {
  margin-bottom: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 19, 40, 0.46);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.hero-card,
.card,
.company {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.hero-card {
  backdrop-filter: blur(2px);
}

.quick-control .hero-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("./assets/quick-control-bg.png") center center / cover no-repeat;
}

.hero-card ul,
.card ul {
  margin: 0;
  padding-left: 19px;
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.hero-card p {
  color: var(--muted);
  font-weight: 600;
}

.lead {
  max-width: 80ch;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.two-cards {
  grid-template-columns: 1fr 1fr;
}

.integration-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1140px;
  margin: 0 auto;
  align-items: stretch;
}

.card p,
.company p {
  color: var(--muted);
}

.inconvenience-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("./assets/inconvenient-switch-bg.png") center center / cover no-repeat;
}

.wiring-errors-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("./assets/wiring-errors-bg.png") center center / cover no-repeat;
}

.additional-switches-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("./assets/additional-switches-bg.png") center center / cover no-repeat;
}

.inconvenience-card h3,
.wiring-errors-card h3,
.additional-switches-card h3 {
  color: #000 !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.inconvenience-card ul,
.wiring-errors-card ul,
.additional-switches-card ul {
  color: #000 !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.inconvenience-card li,
.wiring-errors-card li,
.additional-switches-card li {
  color: #000 !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.inconvenience-card li::marker,
.wiring-errors-card li::marker,
.additional-switches-card li::marker {
  color: #000 !important;
  opacity: 1 !important;
}

.radio-switches-block {
  background:
    linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
    url("./assets/radio-switches-user-photo.png") center center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #e1e8fb;
  padding: 8px;
}

.product-slider {
  position: relative;
  margin-bottom: 14px;
}

.slider-image {
  display: none;
  margin-bottom: 0;
  aspect-ratio: 1 / 1;
}

.slider-image.active {
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c9d7ff;
  background: rgba(255, 255, 255, 0.9);
  color: #1f43ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #c8d4f9;
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  background: #1f43ff;
}

.accent {
  background: #f8f9ff;
}

.integration-card {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
  border-radius: 18px;
}

.integration-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.integration-image-fit {
  object-fit: contain;
  background: transparent;
}

.integration-image-yandex {
  object-fit: cover;
  object-position: left center;
  transform: scaleX(1.05);
  transform-origin: left center;
}

.mini-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf2ff;
}

.mini-band-grid {
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 15px;
  padding: 10px 0;
}

.mini-band-grid strong {
  color: #1b2652;
}

.proof {
  padding: 22px 0;
  background: #f7f9ff;
}

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

.proof-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.proof-grid strong {
  font-size: 20px;
  color: #162044;
}

.proof-grid span {
  color: var(--muted);
  font-size: 14px;
}

.center-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label {
  display: grid;
  gap: 6px;
}

.lead-form span {
  font-size: 14px;
  font-weight: 700;
  color: #2b3754;
}

.lead-form input,
.lead-form textarea {
  border: 1px solid #ccd6f1;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  width: 100%;
  background: #fff;
}

.lead-form small {
  color: #64708b;
  font-size: 12px;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
}

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

.form-status.error {
  color: #b11f1f;
}

.footer {
  border-top: 1px solid var(--line);
  background: #e9eefc;
}

.footer-inner {
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.footer-links {
  display: contents;
}

.footer-contact {
  grid-column: 3;
  justify-self: end;
}

.footer-social {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .two,
  .three,
  .two-cards,
  .mini-band-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 45px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 29px;
  }

  .topbar-inner {
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .topbar-contact {
    justify-content: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(11, 17, 35, 0.72) 0%, rgba(16, 23, 47, 0.58) 60%, rgba(16, 23, 47, 0.38) 100%),
      url("./hero-bg.png") center center / contain no-repeat;
  }

  .hero-brand-logo img {
    width: min(78vw, 300px);
    height: auto;
    max-width: 100%;
  }

  .hero-brand-logo {
    display: block;
    width: auto;
    align-self: flex-start;
    margin: 0 0 12px;
  }

  .integration-stack {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 12px;
  }

  .integration-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .integration-image {
    max-height: 420px;
    object-fit: contain;
  }

  .integration-image-fit {
    object-fit: cover;
    object-position: center;
    transform: none;
  }

  .integration-image-yandex {
    object-fit: cover;
    object-position: center;
    transform: none;
    transform-origin: center;
  }

  .social-link {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }
}
