:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafd;
  --line: #dbe4f0;
  --line-strong: #bfd0e6;
  --ink: #0b1426;
  --ink-secondary: #3b4b63;
  --muted: #5c6d85;
  --blue: #0038b8;
  --blue-hover: #002b8f;
  --blue-soft: #eaf1ff;
  --blue-tint: #f2f6ff;
  --ok: #0b7a4b;
  --ok-soft: #e9f8f0;
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.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;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--blue); color: #fff; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-copy strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.brand-copy small { display: block; font-size: 12px; color: var(--muted); }

.header-meta { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 99px;
  background: var(--blue-tint); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-secondary);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.header-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s ease, color .15s ease;
}
.header-phone:hover { border-color: var(--blue); color: var(--blue); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  transition: background .15s ease; white-space: nowrap;
}
.header-cta:hover { background: var(--blue-hover); }

/* ===== HERO (ABOVE THE FOLD) ===== */
.hero { padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
  color: var(--ink);
}
.hero-lead {
  margin: 14px 0 20px;
  font-size: 15.5px; color: var(--ink-secondary); max-width: 52ch;
}

.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact-cell { padding: 13px 14px; border-right: 1px solid var(--line); }
.fact-cell:last-child { border-right: 0; }
.fact-cell dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.fact-cell dd {
  margin: 4px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  color: var(--blue); font-variant-numeric: tabular-nums;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo figcaption {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; font-size: 12px; font-weight: 500; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ===== QUIZ CARD (CONVERSION CORE) ===== */
.quiz-shell {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(11, 20, 38, .06);
}
.quiz-head-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
}
.quiz-step-label { font-size: 12px; font-weight: 700; color: var(--blue); }
.quiz-time-badge {
  padding: 3px 9px; border-radius: 99px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.quiz-head h2 {
  margin: 0 0 12px;
  font-size: 21px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em;
}
.progress-track {
  height: 5px; border-radius: 99px; background: var(--blue-soft); overflow: hidden;
  margin-bottom: 16px;
}
.progress-fill {
  display: block; height: 100%; border-radius: 99px; background: var(--blue);
  transition: width .24s ease;
}

.step-head-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.step-question { margin: 0 0 11px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.step-head-inline .step-question { margin: 0; }
.step-back {
  padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface-alt); font-size: 12px; font-weight: 600; color: var(--ink-secondary);
}
.step-back:hover { border-color: var(--blue); color: var(--blue); }

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.option-card {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; min-height: 68px; padding: 11px 12px;
  border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface-alt); text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.option-card:hover { border-color: var(--blue); background: var(--blue-tint); transform: translateY(-1px); }
.option-card.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.opt-icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--blue);
}
.opt-icon svg { width: 18px; height: 18px; }
.opt-text strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.opt-text small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.32; }
.option-grid-compact .option-card { min-height: 60px; }

.brand-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.brand-chip {
  min-height: 36px; padding: 0 12px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--surface-alt);
  font-size: 13px; font-weight: 600; color: var(--ink-secondary);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.brand-chip:hover { border-color: var(--blue); color: var(--blue); }
.brand-chip.is-selected { border-color: var(--blue); background: var(--blue); color: #fff; }

.car-input-label { display: block; }
.car-input-label span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.car-input-label input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 14px;
}
.car-input-label input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 56, 184, .12); }

/* Live offer bar */
.live-offer {
  margin: 15px 0 14px; padding: 11px 13px;
  border-radius: 10px; background: var(--blue-tint); border: 1px solid #cdddfc;
}
.live-offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.summary-chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px;
  background: #fff; border: 1px solid #c5d7fb;
  font-size: 12px; font-weight: 700; color: var(--blue);
}
.summary-chip.is-muted { color: var(--muted); border-color: var(--line); font-weight: 500; }
.live-offer-text { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }

/* Always-visible phone form */
.lead-form { padding-top: 12px; border-top: 1px solid var(--line); }
.channel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.channel-pills { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.ch-pill {
  min-height: 30px; padding: 0 11px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface-alt);
  font-size: 12px; font-weight: 600; color: var(--ink-secondary);
  transition: all .15s ease;
}
.ch-pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.phone-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: start; }
.phone-field-wrap input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 16px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.phone-field-wrap input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 56, 184, .14); }
.field-error {
  display: none; margin-top: 5px; font-size: 12px; font-weight: 600; color: #9a3412;
}
.field-error.is-visible { display: block; }
.form-error-banner {
  margin-top: 8px; padding: 8px 11px; border-radius: 8px;
  background: #fff7ed; border: 1px solid #fed7aa;
  font-size: 12.5px; font-weight: 600; color: #9a3412;
}

.submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff;
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  transition: background .15s ease, transform .12s ease;
}
.submit-btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.submit-btn:disabled { opacity: .65; cursor: wait; transform: none; }

.form-reassure { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.form-reassure a { text-decoration: underline; }

/* Direct contacts strip (Telegram / MAX / Phone from old site) */
.direct-contacts {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.direct-contacts-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface-alt);
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.contact-pill:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.contact-pill-tel { font-variant-numeric: tabular-nums; }

/* Success state */
.form-success { text-align: left; padding: 12px 4px 4px; }
.success-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok);
}
.success-icon svg { width: 22px; height: 22px; }
.form-success h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.form-success p { margin: 0 0 10px; font-size: 14px; color: var(--ink-secondary); }
.success-note { font-size: 12.5px !important; color: var(--muted) !important; }

/* ===== PROCESS SECTION ===== */
.process-section { padding: 40px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.section-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.section-eyebrow {
  margin: 0 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue);
}
.section-top h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.section-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 40ch; }

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.steps-grid li {
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-alt);
}
.step-num {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 800; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.steps-grid h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.steps-grid p { margin: 0; font-size: 13.5px; color: var(--ink-secondary); }

/* ===== BOTTOM CTA ===== */
.bottom-cta { padding: 28px 0; }
.bottom-cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 14px;
  background: var(--blue); color: #fff;
}
.bottom-cta-bar h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.bottom-cta-bar p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .86); }
.bottom-cta-btn { background: #fff; color: var(--blue); }
.bottom-cta-btn:hover { background: var(--blue-soft); }

/* ===== FOOTER ===== */
.site-footer { padding: 18px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-row nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-row a:hover, .cookie-manage-btn:hover { color: var(--blue); text-decoration: underline; }
.cookie-manage-btn { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .quiz-shell { order: -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .header-row { min-height: 52px; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 155px; }
  .brand-copy small { display: none; }
  .status-pill { display: none; }
  .header-meta { gap: 6px; flex-shrink: 0; }
  .header-phone { font-size: 12px; padding: 5px 8px; }
  .header-phone + .header-cta { display: none; }
  .header-cta { padding: 0 11px; min-height: 34px; font-size: 12px; }
  .hero { padding: 12px 0 24px; }
  .quiz-shell { padding: 14px; }
  .quiz-head h2 { font-size: 17.5px; margin-bottom: 10px; }
  .progress-track { margin-bottom: 12px; }
  .step-question { font-size: 13.5px; margin-bottom: 8px; }
  .option-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .option-card { flex-direction: column; gap: 6px; min-height: 76px; padding: 9px 10px; }
  .opt-icon { width: 26px; height: 26px; }
  .opt-icon svg { width: 15px; height: 15px; }
  .opt-text strong { font-size: 12.5px; }
  .opt-text small { display: none; }
  .option-grid-compact .option-card { min-height: 54px; justify-content: center; }
  .live-offer { margin: 10px 0; padding: 9px 11px; }
  .lead-form { padding-top: 10px; }
  .channel-row { margin-bottom: 8px; }
  .phone-row { grid-template-columns: 1fr; gap: 8px; }
  .phone-field-wrap input, .submit-btn { min-height: 46px; }
  .submit-btn { width: 100%; }
  .direct-contacts { flex-direction: column; align-items: flex-start; gap: 7px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .fact-cell { padding: 10px 8px; }
  .fact-cell dd { font-size: 17px; }
  .steps-grid { grid-template-columns: 1fr; }
  .bottom-cta-bar { padding: 18px; }
  .bottom-cta-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
