/* ===== Шрифты (лицензия SIL OFL, лежат на своём сервере) ===== */
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("../assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../assets/fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans Logo"; src: url("../assets/fonts/open-sans-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans Logo"; src: url("../assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF; }

/* ===== Токены ===== */
:root {
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1d1d1d;
  --paper: #f1f0ec;
  --light: #ffffff;
  --muted-on-dark: #a8a8a8;
  --muted-on-light: #555555;
  --line-on-dark: rgba(255, 255, 255, .12);
  --line-on-light: rgba(0, 0, 0, .1);

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Onest", "Segoe UI", sans-serif;
  --f-logo: "Open Sans Logo", "Open Sans", sans-serif;

  /* Кегли. Минимум на сайте — 14px. */
  --fs-min: 14px;     /* подписи, метки, юр. строки */
  --fs-small: 15px;   /* второстепенный текст */
  --fs-body: 17px;    /* основной текст */
  --fs-lead: 18px;    /* подзаголовки разделов */
  --fs-h3: 20px;      /* заголовки карточек */
  --fs-h2: clamp(28px, 2.6vw + 20px, 54px);
  --fs-h1: clamp(33px, 5.2vw + 15px, 64px);

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 16px;
  --hdr: 104px;               /* высота шапки на телефоне (точную меряет main.js) */

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur: 420ms;
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --fs-body: 18px; --fs-lead: 20px; --fs-h3: 22px; --fs-small: 16px; }
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }  /* с JS прокручивает main.js */
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: var(--hdr); }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 36px; height: 36px; stroke-width: 1.4; }

/* ===== Пометки черновика ===== */
.draft-strip {
  background: #fff3a6; color: #2a2400;
  font-size: var(--fs-min); text-align: center; padding: 7px var(--gutter);
}
mark.todo {
  background: rgba(255, 214, 0, .28);
  color: inherit;
  border-bottom: 1px dashed currentColor;
  padding: 0 .15em;
  border-radius: 3px;
}
mark.todo::after { content: "✎"; margin-left: .2em; opacity: .75; }
.todo-mark { opacity: .75; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
.btn--xl { min-height: 72px; padding: 0 36px; font-size: 19px; }
.btn--block { width: 100%; }
.btn--light { background: var(--light); color: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 30px rgba(255, 255, 255, .18); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--light); background: transparent; }
.btn--ghost:hover { border-color: var(--light); background: rgba(255, 255, 255, .06); }
.btn--dark { background: var(--ink); color: var(--light); }
.btn--dark:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 11, .92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  color: var(--light);
  border-bottom: 1px solid var(--line-on-dark);
}
.header__bar { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--light); flex: none; }
.logo__icon { width: 48px; height: auto; border-radius: 2px; }
.logo__text {
  font-family: var(--f-logo); font-weight: 600; text-transform: uppercase;
  font-size: var(--fs-min); line-height: 1.12; letter-spacing: .04em;
}
.nav { display: none; }
.header__phone { display: none; }
.header__call { margin-left: auto; padding: 0 15px; }
.header__call span { display: none; }

.chips { overflow: hidden; }
.chips__track {
  display: flex; gap: 8px; padding: 0 var(--gutter) 10px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips__track::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line-on-dark); color: var(--muted-on-dark);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.chips a.is-active { background: var(--light); color: var(--ink); border-color: var(--light); }

@media (min-width: 1200px) {
  :root { --hdr: 78px; }
  .header__bar { height: var(--hdr); gap: 20px; }
  .header .container { max-width: 1320px; }  /* шапке — чуть шире контента, чтобы меню влезало с запасом */
  .logo__icon { width: 56px; }
  .logo__text { font-size: 15px; }
  .chips { display: none; }
  .nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
  .nav a {
    padding: 8px 10px; border-radius: 999px; white-space: nowrap;
    color: var(--muted-on-dark); text-decoration: none; font-size: 16px; font-weight: 500;
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  }
  .nav a:hover { color: var(--light); }
  .nav a.is-active { color: var(--ink); background: var(--light); }
  .header__phone { display: block; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .header__call { margin-left: 0; padding: 0 20px; }
  .header__call span { display: inline; }
}

/* ===== Первый экран ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--light);
  padding: 36px 0 44px;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 45% at 75% 55%, rgba(255, 255, 255, .09), transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-min); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.eyebrow--dark { color: var(--muted-on-light); }
.hero__title {
  margin-top: 16px;
  font-family: var(--f-display); font-weight: 600;
  font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.01em;
}
.hero__sub { margin-top: 18px; color: #d4d4d4; font-size: var(--fs-lead); line-height: 1.5; }
.hero__tariffs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero__tariffs li {
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4);
  font-weight: 600; font-size: 15px; line-height: 1.3; color: #e6e6e6;
}
.hero__gas { margin-top: 16px; color: #d4d4d4; font-size: var(--fs-lead); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 170px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: var(--fs-small); color: var(--muted-on-dark); }
.hero__facts b { color: var(--light); font-weight: 600; margin-right: 4px; }

/* Карусель машин: колода карточек, следующие выглядывают сзади */
.hero__media { animation: arrive 900ms var(--ease-out) 300ms both; }
.deck { position: relative; aspect-ratio: 4 / 3; margin: 26px 26px 0 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: pointer; }
.deck__card {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  transform-origin: 100% 0;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__card[data-pos="0"] { z-index: 5; }
.deck__card[data-pos="1"] { z-index: 4; transform: translate(4%, -5%) scale(.93); filter: brightness(.5); }
.deck__card[data-pos="2"] { z-index: 3; transform: translate(8%, -10%) scale(.86); filter: brightness(.3); }
.deck__card[data-pos="hidden"] { z-index: 2; transform: translate(10%, -13%) scale(.8); opacity: 0; }
.deck__card[data-pos="out"] { z-index: 6; transform: translate(-45%, 8%) rotate(-9deg); opacity: 0; }
.deck__card.no-anim { transition: none; }
.deck__card figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: max-content; max-width: calc(100% - 24px);
  display: grid; gap: 2px; padding: 9px 14px; border-radius: 12px;
  background: rgba(11, 11, 11, .84); color: var(--light);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-min); line-height: 1.25;
  transition: opacity 400ms var(--ease-out);
}
.deck__card:not([data-pos="0"]) figcaption { opacity: 0; }
.deck__card figcaption b { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.deck__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.deck__dots { display: flex; gap: 6px; }
.deck__dots button { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.deck__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: background-color var(--dur-fast) var(--ease-out); }
.deck__dots button.is-active::before { background: var(--light); }
.deck__arrows { display: flex; gap: 8px; }
.deck__btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: var(--light); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.deck__btn:hover { border-color: var(--light); background: rgba(255, 255, 255, .06); }
@keyframes arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__in { --d: 0ms; animation: rise var(--dur) var(--ease-out) both; animation-delay: calc(var(--d) + 200ms); }
.d1 { --d: 100ms; } .d2 { --d: 200ms; } .d3 { --d: 300ms; } .d4 { --d: 400ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  /* заголовок не шире своей колонки: «Новосибирске» ≈ 9,3 кегля */
  .hero__title { font-size: min(64px, calc((min(100vw, 1200px) - 112px) * .55 / 9.5)); }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__tariffs li { font-size: 16px; }
}

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--light); }
.section--dark + .section--dark { border-top: 1px solid var(--line-on-dark); }
.section--paper { background: var(--paper); }
.section--light { background: var(--light); }
.section__head { max-width: 820px; margin-bottom: 32px; }
.section__head--wide { max-width: none; }
.section__head--tight { margin-bottom: 24px; }
.h2 { margin-top: 12px; font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.01em; }
/* «Автопарк «Центр притяжения»»: на телефоне название целиком в строке (≈13,4 кегля) */
@media (max-width: 719px) { .h2--brand { font-size: min(var(--fs-h2), calc((100vw - 2 * var(--gutter)) / 13.6)); } }
/* С планшета — длинные заголовки в одну строку (самый длинный ≈19,8 кегля) */
@media (min-width: 720px) { .h2--line { white-space: nowrap; font-size: min(var(--fs-h2), calc((min(100vw, 1200px) - 2 * var(--gutter)) / 20)); } }
.lead { margin-top: 14px; font-size: var(--fs-lead); color: var(--muted-on-light); }
.section--dark .lead { color: var(--muted-on-dark); }
@media (min-width: 960px) { .section { padding: 108px 0; } .section__head { margin-bottom: 48px; } .section__head--tight { margin-bottom: 28px; } }

/* ===== Автопарк ===== */
.filters { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line-on-light); font-weight: 500; font-size: 16px;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--light); border-color: var(--ink); }

.cars { display: grid; gap: 16px; }
@media (min-width: 640px) { .cars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cars { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.car {
  display: flex; flex-direction: column;
  background: var(--light); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-on-light);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.car:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .10); }
.car[hidden] { display: none; }
.car__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
@media (min-width: 640px) { .car__img { aspect-ratio: 4 / 3; } }
.car__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.car:hover .car__img img { transform: scale(1.04); }
.car__img--empty { display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted-on-dark); font-size: var(--fs-min); letter-spacing: .08em; text-transform: uppercase; background: radial-gradient(60% 60% at 50% 45%, #2a2a2a, var(--ink)); }
.car__img--empty img { width: 108px; height: auto; object-fit: contain; opacity: .9; }
.car:hover .car__img--empty img { transform: none; }
.car__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.car__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--light); font-size: var(--fs-min); font-weight: 600; letter-spacing: .01em; }
.tag--light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.car__name { font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.car__name span { color: var(--muted-on-light); font-weight: 500; }
.car__specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-small); color: var(--muted-on-light); }
.car__specs li + li::before { content: "·"; margin-right: 14px; }
.car__note { font-size: var(--fs-small); line-height: 1.45; color: var(--muted-on-light); padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.car__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-on-light); }
.car__price { font-family: var(--f-display); font-size: 24px; font-weight: 600; white-space: nowrap; padding-top: 6px; }
.car__price small { font-family: var(--f-body); font-size: var(--fs-small); font-weight: 500; color: var(--muted-on-light); margin-left: 4px; }
.car__price--ask { font-family: var(--f-body); font-size: 16px; font-weight: 600; white-space: normal; }

/* ===== Условия ===== */
.modes { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 720px) { .modes { grid-template-columns: 1fr 1fr; gap: 16px; } }
.mode { padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-on-dark); }
.mode h3 { font-size: var(--fs-lead); color: var(--muted-on-dark); font-weight: 500; }
.mode__big { margin: 6px 0 18px; font-family: var(--f-display); font-size: clamp(32px, 3vw + 20px, 50px); font-weight: 600; line-height: 1.05; }
.mode ul { display: grid; gap: 10px; }
.mode li { position: relative; padding-left: 22px; color: #dadada; }
.mode li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: currentColor; }
.mode--light { background: var(--light); color: var(--ink); border-color: var(--light); }
.mode--light h3 { color: var(--muted-on-light); }
.mode--light li { color: #2b2b2b; }
.terms { padding: 22px; border-radius: var(--radius); background: var(--light); color: var(--ink); }
.terms__list { display: grid; margin: 0; }
@media (min-width: 720px) { .terms__list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
.terms__list div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-on-light); }
.terms__list dt { color: var(--muted-on-light); }
.terms__list dd { margin: 0; font-weight: 600; text-align: right; }
.terms__note { margin-top: 16px; font-weight: 500; }
@media (min-width: 960px) { .terms { padding: 32px 36px; } }
.steps { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border: 1px solid var(--line-on-dark); border-radius: var(--radius); background: var(--ink-2); }
.step__n { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 300; color: #6a6a6a; margin-bottom: 18px; }
.step h3 { font-size: var(--fs-h3); line-height: 1.3; }
.step p { margin-top: 8px; color: var(--muted-on-dark); font-size: var(--fs-small); }

/* ===== Выкуп ===== */
.buyout { display: grid; gap: 32px; }
.buyout__text { display: flex; flex-direction: column; align-items: flex-start; }
.buyout__text .btn { margin-top: 28px; }
.buyout__plan { display: grid; gap: 10px; }
.buyout__plan > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 14px 22px; border-radius: var(--radius-sm); background: var(--light); border: 1px solid var(--line-on-light); }
.buyout__plan > li > span { opacity: .75; }
.buyout__plan > li > b { font-family: var(--f-display); font-size: 20px; font-weight: 600; text-align: right; }
@media (max-width: 959px) { .buyout__text .btn { width: 100%; } }
@media (min-width: 960px) {
  /* кнопка и «Машины под выкуп» заканчиваются на одной линии */
  .buyout { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 64px; }
  .buyout__text .btn { margin-top: auto; }
  .buyout__text .lead { margin-bottom: 28px; }
  .buyout__plan { align-content: end; }
}

.buyout__plan > li.buyout__cars { display: block; }
.carlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.carlist li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-on-light); background: var(--paper); font-size: var(--fs-small); font-weight: 600; }
.buyout__cars small { display: block; margin-top: 10px; font-size: var(--fs-min); color: var(--muted-on-light); }

/* ===== Акции ===== */
.promo-grid { display: grid; gap: 28px; }
.promo-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 26px; border-radius: var(--radius); background: var(--ink); color: var(--light); position: relative; overflow: hidden; }
.promo-hit::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; }
.promo-hit__label { font-size: var(--fs-min); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.promo-hit__big { font-family: var(--f-display); font-size: clamp(72px, 9vw + 30px, 132px); font-weight: 600; line-height: 1; margin: 10px 0 6px; }
.promo-hit__title { font-family: var(--f-display); font-size: clamp(21px, 1.4vw + 16px, 30px); font-weight: 600; line-height: 1.2; }
.promo-hit__sub { color: var(--muted-on-dark); font-size: var(--fs-lead); }
.promo-hit .btn { margin-top: 22px; }
.promo__title { font-family: var(--f-display); font-size: clamp(22px, 1.4vw + 17px, 32px); line-height: 1.2; }
.promo__sub { margin: 12px 0 22px; color: var(--muted-on-light); font-size: var(--fs-lead); }
.promo { border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--light); border: 1.5px solid var(--ink); }
.promo__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-on-dark); }
.promo__row span { color: var(--muted-on-dark); }
.promo__row b { font-family: var(--f-display); font-size: clamp(21px, 1vw + 17px, 28px); font-weight: 600; white-space: nowrap; }
.promo__row--top { background: var(--light); color: var(--ink); border-bottom: 0; }
.promo__row--top span { color: var(--muted-on-light); }
.promo__more { margin-top: 18px; color: var(--muted-on-light); }
.promo__more a { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .promo-grid--single { grid-template-columns: 1fr !important; max-width: 760px; }
  .promo-grid { grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: stretch; }
  .promo-friend { container-type: inline-size; }
  /* «Друг берёт машину…» ≈ 32,4 кегля, строка про акции ≈ 34,7 — кегль по ширине колонки */
  .promo__line { display: block; white-space: nowrap; font-size: min(var(--fs-lead), 3cqi); }
  .promo__more { white-space: nowrap; font-size: min(var(--fs-body), 2.8cqi); }
  .promo-hit { padding: 44px 40px; justify-content: center; }
  .promo-hit .btn { margin-top: auto; }
  .promo__row { padding: 20px 28px; }
}

/* ===== Преимущества ===== */
.adv { display: grid; gap: 12px; }
@media (min-width: 640px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.adv li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-on-dark); background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%); }
.adv li { container-type: inline-size; }
.adv h3 { margin-top: 18px; font-size: var(--fs-h3); font-size: min(var(--fs-h3), 6.8cqi); white-space: nowrap; }  /* «Обслуживание за счёт парка» ≈ 14,3 кегля */
.adv p { margin-top: 8px; color: var(--muted-on-dark); font-size: var(--fs-small); }

/* ===== О нас ===== */
.about { display: grid; gap: 36px; }
.about__text p { font-size: var(--fs-lead); color: #2b2b2b; }
.about__text p + p { margin-top: 16px; }
.slogan { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--ink); font-family: var(--f-display); font-size: clamp(20px, 1.2vw + 16px, 28px); font-weight: 500; line-height: 1.3; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 1px; background: var(--line-on-light); border: 1px solid var(--line-on-light); border-radius: var(--radius); overflow: hidden; align-self: stretch; }
.stats li { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 26px 22px; background: var(--light); }
.stats b { font-family: var(--f-display); font-size: clamp(36px, 3vw + 24px, 56px); font-weight: 600; line-height: 1; }
.stats span { color: var(--muted-on-light); font-size: var(--fs-small); }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* ===== Отзывы ===== */
.rating { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.rating__score { display: grid; justify-items: start; gap: 4px; color: var(--muted-on-dark); font-size: var(--fs-small); }
.rating__score b { font-family: var(--f-display); font-size: clamp(56px, 3vw + 44px, 72px); line-height: 1; color: var(--light); font-weight: 600; }
.rating__stars { color: var(--light); letter-spacing: .15em; font-size: 20px; }
/* на телефоне — листаются вбок, на компьютере — сетка 3×2 */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; margin-bottom: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.reviews::-webkit-scrollbar { display: none; }
.reviews > * { scroll-snap-align: start; }
@media (min-width: 900px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-on-dark); }
.review__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.review__stars { color: var(--light); letter-spacing: .12em; font-size: 16px; }
.review__tag { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-on-dark); color: var(--muted-on-dark); font-size: var(--fs-min); }
.review__text { flex: 1; color: #dcdcdc; font-size: var(--fs-small); line-height: 1.55; }
.review__who { color: var(--muted-on-dark); font-size: var(--fs-min); }
.review__who b { color: var(--light); font-weight: 600; }

/* ===== Контакты и заявка ===== */
.contacts { display: grid; gap: 32px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-lead); font-weight: 500; }
.contact-list .ico { margin-top: 3px; }
.contact-list small { display: block; color: var(--muted-on-light); font-size: var(--fs-small); font-weight: 400; }
.contact-list a { text-decoration: none; font-weight: 600; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pill:hover { background: var(--ink); color: var(--light); }
.map-card { position: relative; margin-top: 24px; height: 230px; border-radius: var(--radius); overflow: hidden; background: #e4e3de; }
.map-card__grid { position: absolute; inset: -20%; background:
  linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 100%,
  linear-gradient(0deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%) 0 0 / 100% 90px;
  transform: rotate(-14deg); opacity: .9; }
.map-card__pin { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); padding: 6px; background: var(--ink); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.map-card__pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--ink); transform: translateX(-50%) rotate(45deg); z-index: -1; }
.map-card__actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-card__actions .btn--outline { background: var(--light); }

.form { padding: 26px; border-radius: var(--radius); background: var(--light); border: 1px solid var(--line-on-light); align-self: start; }
.form__title { font-family: var(--f-display); font-size: clamp(22px, 1vw + 18px, 28px); }
.form__sub { margin-top: 8px; color: var(--muted-on-light); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field span { font-size: var(--fs-small); font-weight: 500; color: var(--muted-on-light); }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-on-light); background: var(--paper); font-size: 17px;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--light); }
.field input.is-invalid { border-color: #c62828; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: var(--fs-small); color: var(--muted-on-light); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form__error { margin-top: 12px; color: #c62828; font-size: var(--fs-small); }
.form__done { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--ink); color: var(--light); }
.form__done p { margin-top: 4px; color: #d4d4d4; font-size: var(--fs-small); }
@media (min-width: 960px) {
  .contacts { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .form { padding: 34px; position: sticky; top: calc(var(--hdr) + 24px); }
}

/* ===== Подвал ===== */
.footer { padding: 48px 0 calc(48px + 80px); background: var(--ink); color: var(--light); border-top: 1px solid var(--line-on-dark); }
.footer__grid { display: grid; gap: 20px; }
.footer__slogan { font-family: var(--f-display); font-size: 20px; color: #dcdcdc; }
.footer__legal { display: grid; gap: 6px; color: var(--muted-on-dark); font-size: var(--fs-min); }
.footer__legal a { color: inherit; }
.form__policy { margin-top: 12px; font-size: var(--fs-min); color: var(--muted-on-light); text-align: center; }

/* ===== Страницы-документы: политика конфиденциальности, согласие ===== */
.doc-page { background: var(--paper); color: var(--ink); }
.doc-top { background: var(--ink); }
.doc-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.doc-top__back { color: var(--light); font-size: var(--fs-small); text-decoration: none; }
.doc { max-width: 820px; padding-top: 40px; padding-bottom: 64px; font-size: var(--fs-body); line-height: 1.6; }
.doc h1 { font-family: var(--f-display); font-size: clamp(21px, 2.6vw + 13px, 40px); line-height: 1.2; overflow-wrap: anywhere; }
.doc h2 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.3; margin-top: 32px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc a { color: inherit; }
.doc__date { color: var(--muted-on-light); font-size: var(--fs-small); }
.footer--doc { padding: 28px 0; }
@media (min-width: 1200px) { .footer { padding-bottom: 48px; } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; } }

/* ===== Быстрые кнопки (телефон) ===== */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-on-dark);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}
.quickbar.is-shown { transform: none; }
.quickbar .btn { min-height: 50px; }
@media (min-width: 1200px) { .quickbar { display: none; } }

/* ===== Появление при прокрутке ===== */
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .car.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }

/* ===== Меньше движения — по настройке телефона ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

.nowrap { white-space: nowrap; }
