/* ---------- Self-hosted fonts (Russo One + Exo 2, cyrillic + latin) ---------- */
/* Локальные woff2 вместо Google Fonts: минус DNS/TLS-handshake и FOIT в РФ. */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/exo2-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/exo2-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russoone-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russoone-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext: Š (U+0160) и ₽ (U+20BD) — их нет в latin/cyrillic сабсетах */
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/exo2-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/exo2-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/exo2-800-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russoone-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   ICAR — стили лендинга
   Цветовая палитра: чёрный + красный-алый + серый-светлый
   ============================================================ */

/* ---------- Reset & Tokens ---------- */
[v-cloak] {
  display: none !important;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-display: "Russo One", "Arial Black", "Helvetica Neue", sans-serif;
  --font-accent: "Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-bg-dark: #0e0e0e;
  --color-surface: #ffffff;
  --color-primary: #d90000;
  --color-primary-dark: #b30000;
  --color-accent: #ff2d2d;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  --color-text-inv: #ffffff;
  --color-border: #dddddd;
  --color-ok: #22863a;
  --color-error: #d90000;
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 640px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--form {
  background: var(--color-bg-dark);
}

.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section__title--light {
  color: var(--color-text-inv);
}

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  max-width: 560px;
}

.section__subtitle--light {
  color: #aaaaaa;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Две карточки (сроки): уже, без дыры справа */
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* ---------- Delivery (авто по срокам) ---------- */
.car {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.car:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.car__media {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.car__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car__name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.car__desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.car__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.car__term {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.car__body .btn {
  margin-top: auto;
}

/* ---------- Typography ---------- */
.nav__logo-mark,
.hero__title,
.section__title,
.price__name,
.car__name,
.stage__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.nav__logo-text {
  font-family: var(--font-accent);
  font-style: italic;
}

.btn,
.nav__links a,
.nav__phone,
.footer__phone,
.price__value,
.car__price {
  font-family: var(--font-accent);
}

/* ---------- Dev badge ---------- */
.dev-badge {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 9999;
  background: #ffa500;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inv);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 0, 0, 0.35);
}

/* Вторичная кнопка — тёмная, а не «второй красный»:
   появляется иерархия CTA. На тёмном фоне не использовать
   (там только primary) — см. форму заявки. */
.btn--accent {
  background: #1a1a1a;
  color: var(--color-text-inv);
}

.btn--accent:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav__logo-mark {
  background: var(--color-primary);
  color: var(--color-text-inv);
  font-weight: 900;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1;
}

.nav__logo-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.nav__links {
  display: none;
  gap: 20px;
  margin-left: auto;
}

.nav__links a {
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__cta {
  margin-left: auto;
  font-size: 14px;
  padding: 10px 20px;
}

.nav__contacts {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.nav__phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav__phone-icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav__cta-short {
  display: none;
}

.nav__phone:hover {
  color: var(--color-primary);
}

/* Навигационные ссылки показываем только когда для них реально есть место:
   на 768-1023px шапка из логотипа, ссылок, телефона и кнопки не помещалась. */
@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
  .nav__contacts {
    margin-left: 0;
    margin-right: 12px;
  }
  .nav__cta {
    margin-left: 0;
  }
}

/* Планшет: ссылки в меню скрыты, но телефон и кнопка уже нужны. */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__inner {
    gap: 16px;
  }

  .nav__contacts {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .nav__phone {
    font-size: 14px;
  }
}


/* ---------- Hero ---------- */
.hero {
  padding: clamp(32px, 8vw, 80px) 0;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: #ffe5e5;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* Акцент в H1 — красный маркер, а не смена шрифта:
   один голос (Russo), никакого faux-bold и диссонанса. */
.hero__title span {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: #ffffff;
  background: var(--color-primary);
  padding: 0 10px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 540px;
}

.hero__points {
  margin-bottom: 24px;
}

.hero__points li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-ok);
  font-weight: 900;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero__hint {
  font-size: 12px;
  color: var(--color-text-light);
}

/* Hero card */
.hero__card {
  /* Отступы вынесены в переменные: картинка идёт в обрезку (full-bleed)
     и должна отменять ровно эти же отступы, иначе на мобильном «поедет». */
  --hero-card-pad-y: 28px;
  --hero-card-pad-x: 28px;

  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--hero-card-pad-y) var(--hero-card-pad-x);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  max-width: 380px;
  margin: 0 auto;
  overflow: hidden;
}

/* Фото машины в карточке примера цены */
.hero__card-media {
  margin:
    calc(var(--hero-card-pad-y) * -1)
    calc(var(--hero-card-pad-x) * -1)
    20px;
  background: var(--color-bg-alt);
  aspect-ratio: 1200 / 916;
  overflow: hidden;
}

.hero__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.hero__card-model {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

.hero__card-price {
  margin: 20px 0 12px;
}

.hero__card-now {
  font-size: 30px;
  font-weight: 900;
  color: var(--color-primary);
}

.hero__card-old {
  font-size: 15px;
  text-decoration: line-through;
  color: var(--color-text-light);
  margin-left: 8px;
}

.hero__card-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ok);
  margin-bottom: 20px;
}

/* Строка доверия под кнопкой hero-карточки */
.hero__card-trust {
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.card__icon {
  margin-bottom: 12px;
  color: var(--color-primary);
}

/* Строгие SVG-иконки в стиле логотипа (вместо эмодзи) */
.card__icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

.card__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
.price {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.price:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.price--popular {
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 40px rgba(217, 0, 0, 0.1);
}

/* Пилюля «Популярный» вместо диагональной ленты */
.price__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-primary);
  color: var(--color-text-inv);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
}

.price__head {
  margin-bottom: 20px;
}

.price__name {
  font-size: 20px;
  font-weight: 900;
}

.price__desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.price__value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.price__list {
  flex: 1;
  margin-bottom: 24px;
}

.price__list li {
  font-size: 14px;
  color: var(--color-text-light);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.price__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-ok);
  font-weight: 900;
}

.price__note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 32px;
}

/* ---------- Stages ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
  counter-reset: stage;
}

.stage {
  position: relative;
  padding-left: 56px;
}

.stage__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-text-inv);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.stage__title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stage__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  padding: 20px 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::before {
  content: "▸";
  margin-right: 12px;
  transition: transform 0.2s;
}

.faq__item[open] summary::before {
  transform: rotate(90deg);
}

.faq__item p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ---------- Lead Form ---------- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .lead-form__row {
    grid-template-columns: 1fr;
  }
}

.lead-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #cccccc;
  margin-bottom: 6px;
}

.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  width: 100%;
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder {
  color: #666666;
}

.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.lead-form__field textarea {
  resize: vertical;
}

.lead-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #999999;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

.lead-form__status {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.lead-form__status--ok {
  color: var(--color-ok);
}

.lead-form__status--error {
  color: var(--color-error);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  padding: 32px 0;
  color: #888888;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand .nav__logo-text {
  color: #cccccc;
}

.footer__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer__links a {
  color: #888888;
  font-size: 13px;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__legal {
  font-size: 12px;
  color: #666666;
  text-decoration: underline;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.4;
  margin-left: auto;
  margin-top: -18px;
}

.footer__phone {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.footer__phone:hover {
  color: var(--color-accent);
}

.footer__email {
  margin-top: 10px;
  font-size: 13px;
  color: #888888;
  text-decoration: none;
}

.footer__email:hover {
  color: var(--color-accent);
}

/* Часы работы в футере */
.footer__hours {
  margin: 6px 0 0;
  font-size: 13px;
  color: #888888;
  white-space: nowrap;
}

/* Соцсети: ряд иконок, тап-зона 44px */
.footer__social {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}

.footer__social-link:hover {
  background: #1e1e1e;
}

.footer__social-link svg {
  width: 22px;
  height: 22px;
}

.footer__note {
  width: 100%;
  font-size: 11px;
  color: #555555;
  margin-top: 8px;
}

/* ---------- Legal page ---------- */
.legal-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.legal-text h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  margin: 28px 0 8px;
}

.legal-text p {
  margin-bottom: 12px;
}

.legal-text ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-text li {
  margin-bottom: 4px;
}

.legal-note {
  margin-top: 32px;
  font-style: italic;
}


/* ============================================================
   Мобильная адаптация
   ============================================================ */

/* Режем горизонтальный перелив: на узких экранах колонки сжимаются,
   длинные строки переносятся, ничего не вылезает за правый край. */
@media (max-width: 767px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* Секции компактнее — меньше прокрутки на мобильном */
  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 10px;
  }

  .section__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  /* --- Шапка: телефон-иконка + короткая кнопка --- */
  .nav {
    height: 60px;
  }

  .nav__inner {
    gap: 10px;
  }

  .nav__logo {
    /* Логотип — тоже тап-цель: тянем до 44px по высоте */
    min-height: 44px;
  }

  .nav__logo-mark {
    font-size: 13px;
    padding: 7px 9px;
  }

  .nav__logo-text {
    font-size: 13px;
  }

  .nav__contacts {
    order: 3;
    margin-left: auto;
  }

  .nav__phone {
    font-size: 16px;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
  }

  .nav__phone-icon {
    display: block;
  }

  .nav__phone-text {
    display: none;
  }

  .nav__cta {
    order: 2;
    margin-left: 0;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .nav__cta-long {
    display: none;
  }

  .nav__cta-short {
    display: inline;
  }

  /* --- Hero --- */
  .hero {
    padding: 32px 0 40px;
  }

  .hero__inner {
    gap: 32px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.1;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__points li {
    font-size: 15px;
  }

  /* Кнопки на всю ширину — удобнее попадать пальцем */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero__card {
    --hero-card-pad-y: 22px;
    --hero-card-pad-x: 20px;
  }

  .hero__card-now {
    font-size: 27px;
  }

  .hero__card-old {
    display: block;
    margin-left: 0;
  }

  /* --- Карточки --- */
  .card,
  .price,
  .car__body {
    padding: 20px 18px 22px;
  }

  .car__price,
  .price__value {
    font-size: 20px;
  }

  /* --- Форма: поля 16px, иначе iOS зумит страницу при фокусе --- */
  .lead-form {
    gap: 16px;
  }

  .lead-form__field input,
  .lead-form__field select,
  .lead-form__field textarea {
    font-size: 16px;
    padding: 13px 14px;
    min-height: 48px;
  }

  .lead-form__field label {
    font-size: 14px;
  }

  .consent {
    font-size: 14px;
  }

  /* Кнопки и чекбокс — не меньше 44px по высоте, попадать пальцем удобно */
  .btn {
    min-height: 44px;
  }

  .consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .btn--lg {
    padding: 15px 24px;
    min-height: 48px;
  }

  /* --- Этапы: номер ближе к тексту, поля не такие просторные --- */
  .stages {
    gap: 20px;
  }

  .stage {
    padding-left: 44px;
  }

  .faq__item summary {
    padding: 18px 0;
    font-size: 16px;
  }

  /* --- Подвал --- */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__links,
  .footer__contacts {
    margin-left: 0;
    margin-top: 0;
    align-items: flex-start;
  }

  .footer__phone {
    font-size: 20px;
    /* Тап-зона не меньше 44px */
    padding: 11px 0;
    display: inline-block;
  }

  .footer__email,
  .footer__links a,
  .footer__legal {
    padding: 13px 0;
    display: inline-block;
  }

  /* Ссылка в согласии: подчёркиваем, чтобы её не приняли за обычный текст */
  .consent a {
    padding: 6px 0;
  }

  .footer__note {
    margin-top: 4px;
  }

  .legal-text {
    font-size: 16px;
  }
}

/* Очень узкие экраны (iPhone SE 1 и подобные, 320px) */
@media (max-width: 359px) {
  .container {
    padding: 0 12px;
  }

  /* Пять пунктов меню не влезают в одну строку на 320px — переносим */
  .footer__links {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .nav__logo-text {
    display: none;
  }

  .section {
    padding: 40px 0;
  }

  .hero__title {
    font-size: 27px;
  }

  .hero__card-now {
    font-size: 24px;
  }
}

/* ---------- Utilities ---------- */

/* Пиксель Метрики в noscript: прячем через класс, а не инлайн-стиль,
   чтобы работал строгий CSP (style-src 'self' без unsafe-inline). */
.ym-pixel {
  position: absolute;
  left: -9999px;
}

/* Honeypot-поле: видно только ботам, люди его не заполняют */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Cookie-баннер */
.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  /* Жёсткий кап: баннер никогда не шире вьюпорта, что бы ни было
     containing block для fixed-позиционирования */
  max-width: min(720px, calc(100vw - 24px));
  box-sizing: border-box;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 14px;
}

.cookie[hidden] {
  display: none;
}

.cookie__text {
  margin: 0;
  flex: 1;
}

.cookie__text a {
  color: var(--color-text-inv);
  text-decoration: underline;
}

.cookie__btn {
  flex-shrink: 0;
  min-height: 44px;
}

@media (max-width: 767px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 13px;
  }
}
[hidden] {
  display: none !important;
}