:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #111827;
  --muted: #687385;
  --line: rgba(17, 24, 39, 0.1);
  --brand: #ff0032;
  --brand-dark: #c90027;
  --accent: #0f766e;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.06);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 18px;
}

.topbar__top,
.topbar__bottom,
.topbar__contacts {
  display: flex;
  align-items: center;
}

.topbar__top,
.topbar__bottom {
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand,
.topbar__nav,
.topbar__phone {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand--dealer {
  gap: 12px;
}

.brand__logo {
  display: block;
  width: 56px;
  height: 54px;
  object-fit: contain;
}

.brand__divider {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.brand__divider::before,
.brand__divider::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  content: "";
}

.brand__divider::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand__divider::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.brand__dealer {
  display: grid;
  color: #1f2937;
  font-size: 17px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topbar__geo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9aa3af;
  font-size: 18px;
  font-weight: 600;
}

.topbar__geo::before {
  color: #9aa3af;
  content: "➤";
  font-size: 22px;
  transform: rotate(-20deg);
}

.topbar__nav {
  gap: 30px;
  color: #24272d;
  font-size: 20px;
  font-weight: 650;
}

.topbar__phone {
  display: grid;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #24272d;
  font-size: 19px;
  font-weight: 450;
  line-height: 1.15;
  white-space: nowrap;
}

.topbar__phone span {
  color: #9aa3af;
  font-size: 18px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}

.phone-text {
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

[data-phone-hidden]:not(.is-revealed) .phone-text {
  color: var(--brand);
  border-bottom: 1px dashed currentColor;
}

.topbar__contacts {
  gap: 34px;
  justify-content: flex-end;
}

.dealer-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 0, 50, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.compact {
  padding: 66px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 42px;
}

.hero__content h1,
.section-head h2,
.check-copy h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.benefits span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #2f3a4a;
  font-size: 14px;
  font-weight: 800;
}

.lead-card,
.check-form,
.final-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-card {
  padding: 24px;
}

.lead-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.lead-card__head strong {
  font-size: 24px;
}

.lead-card__head span,
.form-note,
.section-head p,
.check-copy p,
.support-card p {
  color: var(--muted);
  line-height: 1.5;
}

.support-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.1fr;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 46px;
}

.support-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.support-card--lead {
  border-color: rgba(255, 0, 50, 0.2);
  box-shadow: 0 18px 50px rgba(255, 0, 50, 0.08);
}

.support-card--app {
  background: #111827;
  color: #ffffff;
}

.support-card--app p {
  color: rgba(255, 255, 255, 0.7);
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.1;
}

.support-card p:not(.eyebrow) {
  margin: 0 0 18px;
}

.support-phone {
  margin-top: auto;
  color: var(--brand);
  font-size: 22px;
  font-weight: 650;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.app-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.field {
  position: relative;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.field--large input {
  min-height: 68px;
  font-size: 20px;
}

.field input:focus {
  border-color: rgba(255, 0, 50, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 0, 50, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 30px rgba(255, 0, 50, 0.18);
}

.button--ghost {
  width: fit-content;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
}

.button--wide {
  min-height: 66px;
  font-size: 18px;
}

.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
}

.form-note a,
.consent-check a,
.cookie-banner a,
.legal-page a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.consent-check span {
  min-width: 0;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.form-note.is-error {
  color: var(--danger);
}

.form-note.is-success {
  color: var(--accent);
  font-weight: 800;
}

.suggestions {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.14);
}

.suggestions button {
  width: 100%;
  border: 0;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover {
  background: var(--surface-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-head--row p {
  max-width: 370px;
}

.section-head h2,
.check-copy h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.reason-grid,
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reason-grid article,
.tariff-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.reason-grid article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.reason-grid strong {
  font-size: 18px;
}

.reason-grid span {
  color: var(--muted);
  line-height: 1.45;
}

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

.tariff-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
}

.tariff-card--accent {
  border-color: rgba(255, 0, 50, 0.35);
  box-shadow: var(--shadow);
}

.tariff-card h3 {
  margin: 22px 0 12px;
  font-size: 26px;
}

.price {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 16px;
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.45;
}

.tariff-card .button {
  margin-top: auto;
}

.check-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 48px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
}

.check-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.check-form {
  padding: 20px;
}

.check-form .consent-check {
  color: #4b5563;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.final-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: start;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.final-form .consent-check,
.final-form .button {
  grid-column: 1 / -1;
}

.final-form .button {
  width: 100%;
  margin-top: 0;
}

.final-form .form-note {
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer a,
.footer__links a {
  color: var(--text);
  font-weight: 900;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner .button {
  min-height: 44px;
}

.legal-page {
  width: calc(100% - 48px);
  max-width: 900px;
  margin: 32px auto 72px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
  overflow-wrap: anywhere;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.legal-page h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.legal-page p,
.legal-page li {
  color: #334155;
  line-height: 1.65;
}

.legal-page ul,
.legal-page ol {
  padding-left: 22px;
}

.legal-note {
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
}

.thank-you-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 0, 50, 0.08), transparent 32%),
    var(--bg);
}

.thank-you-page {
  display: grid;
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  align-content: center;
  gap: 28px;
  margin: 0 auto;
  padding: 48px 0;
}

.thank-you-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 38px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.thank-you-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(255, 0, 50, 0.1);
  color: var(--brand);
  font-size: 28px;
  font-weight: 800;
}

.thank-you-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.thank-you-card p {
  color: var(--muted);
  line-height: 1.55;
}

.thank-you-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.thank-you-actions .button {
  width: 100%;
}

@media (max-width: 920px) {
  .topbar__nav {
    display: none;
  }

  .topbar__inner {
    gap: 12px;
    padding: 12px 0;
  }

  .topbar__bottom {
    justify-content: flex-end;
  }

  .topbar__contacts {
    width: 100%;
    justify-content: space-between;
  }

  .topbar__phone,
  .topbar__phone span {
    font-size: 15px;
  }

  .brand__logo {
    width: 48px;
    height: 46px;
  }

  .brand__divider {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .brand__divider::before,
  .brand__divider::after {
    width: 24px;
  }

  .brand__dealer {
    font-size: 15px;
  }

  .hero,
  .check-section,
  .final-cta,
  .support-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
  }

  .reason-grid,
  .tariff-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .section-head--row {
    display: block;
  }

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

@media (max-width: 620px) {
  .topbar__inner {
    width: min(100% - 24px, 1180px);
    gap: 10px;
  }

  .topbar__geo {
    font-size: 14px;
  }

  .topbar__geo::before {
    font-size: 16px;
  }

  .topbar__bottom {
    display: block;
  }

  .topbar__contacts {
    display: block;
  }

  .topbar__phone {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    background: #ffffff;
    font-size: 14px;
  }

  .topbar__phone--support {
    display: none;
  }

  .brand--dealer {
    gap: 8px;
  }

  .brand__logo {
    width: 40px;
    height: 39px;
  }

  .brand__divider {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .brand__divider::before,
  .brand__divider::after {
    width: 18px;
    height: 1.5px;
  }

  .brand__dealer {
    font-size: 11px;
    line-height: 0.95;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 48px 0;
  }

  .hero__content h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .lead-card,
  .support-card,
  .check-form,
  .final-cta,
  .check-section {
    padding: 18px;
  }

  .reason-grid,
  .tariff-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .tariff-card {
    min-height: 0;
  }

  .footer {
    display: grid;
    width: min(100% - 24px, 1180px);
  }

  .legal-page {
    width: min(100% - 24px, 900px);
    margin: 18px auto 48px;
    padding: 22px;
  }

  .legal-page h1 {
    font-size: 30px;
  }

  .thank-you-card {
    padding: 24px;
  }

  .thank-you-actions {
    grid-template-columns: 1fr;
  }

  .footer__links {
    justify-content: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
