/* ==========================================================================
   VDP #2 — классика. Тёплый гаражный винтаж.

   Логика оформления: страница должна читаться как документ из архива
   серьёзного дилера, а не как витрина маркетплейса. Отсюда кремовая бумага
   вместо белого, тонкие линейки вместо теней, плитная антиква в заголовках
   и моноширинный шрифт во всех технических данных — VIN, коды, номера
   агрегатов выглядят так, будто их перепечатали с заводской таблички.

   Аудитория 55–70 лет: база 18px, читаемый текст не мельче 14px, служебные
   микроподписи (дескриптор логотипа, метки полей) — от 12px, зоны нажатия
   от 44px, контраст каждой текстовой пары проверен по формуле WCAG.
   ========================================================================== */

:root {
  /* Палитра. В скобках — контраст к фону карточки #fffdf8 по формуле WCAG. */
  --paper:        #f5f0e6;   /* фон страницы, кремовая бумага        */
  --surface:      #fffdf8;   /* карточки, слоновая кость             */
  --surface-soft: #f2ece0;   /* вложенные плитки                     */
  --surface-tint: #eaf0ea;   /* подсветка блоков доверия, холодок    */
  --surface-warn: #fbf1e8;   /* подсветка честных пометок о дефектах */

  --line:         #ddd4c2;   /* линейки-разделители                  */
  --line-strong:  #c3b79e;

  --ink:          #221f1a;   /* 15.9:1 — основной текст              */
  --ink-muted:    #57503f;   /*  7.6:1 — подписи                     */
  --ink-soft:     #6f6757;   /*  5.3:1 — второстепенное              */

  --green:        #1d4a35;   /*  8.7:1 — акцент, кнопки              */
  --green-dark:   #143526;
  --green-soft:   #dfe8e0;
  --brass:        #8a6a2f;   /*  4.9:1 — второй акцент, рамки        */
  --brass-soft:   #f0e6d0;
  --brick:        #8c2f1d;   /*  6.8:1 — честные пометки о дефектах  */
  --brick-soft:   #f7e4de;

  --radius-lg: 4px;          /* углы почти прямые: это документ, не приложение */
  --radius-md: 3px;
  --radius-sm: 2px;

  --container: 1320px;
  --gutter:    16px;
  --header-h:  88px;

  --card-pad: 30px;
  --card-gap: 20px;

  /* Типографика. База 18px — аудитория 55–70. */
  --fs-base:  18px;
  --fs-small: 16px;
  --fs-label: 14px;
  --fs-h1:    38px;
  --fs-price: 44px;
  --fs-title: 25px;

  --font-display: 'Bitter', 'Georgia', 'Times New Roman', serif;
  --font-text:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Движение: короткое, предсказуемое. Никаких разлётов. */
  --dur:      .16s;
  --dur-slow: .26s;
  --ease:     cubic-bezier(.2, .7, .3, 1);

  --shadow:      0 1px 2px rgba(34, 31, 26, .05);
  --shadow-lift: 0 2px 6px rgba(34, 31, 26, .09), 0 10px 24px rgba(34, 31, 26, .07);
  --shadow-btn:  0 4px 12px rgba(29, 74, 53, .26);
  --shadow-up:   0 -2px 14px rgba(34, 31, 26, .13);
  --focus:       0 0 0 3px var(--surface), 0 0 0 6px var(--green);
}

/* ==========================================================================
   Сброс и основа
   ========================================================================== */

/* Списки на этой странице — всегда оформленные компоненты: шкалы, шаги,
   чек-листы, таблицы данных. Браузерные маркеры и отступ в 40px им только
   мешают и сдвигают содержимое. */

/* У primary-кнопки есть собственная тень, и она затирала кольцо фокуса. */
.btn--primary:focus-visible { box-shadow: var(--focus); }

/* Технические данные — моноширинным. Ощущение архивного документа. */
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* Переходы по якорям из меню: липкая панель крошек не должна накрывать
   заголовок секции, к которой мы прыгнули. */
[id] { scroll-margin-top: 80px; }
@media (max-width: 991.98px) { [id] { scroll-margin-top: 12px; } }

/* ==========================================================================
   Шапка
   ==========================================================================
   ПУСТО НАМЕРЕННО. Здесь лежала ВСЯ старая шапка карточки машины: .header,
   .header__inner, .logo (с чужим названием дилера «COPPER STATE» из
   исходного шаблона), .nav, .header__phone, .burger. Разметки под неё на
   странице давно нет — шапку собирает общий ui.js и красит chrome.css.

   Правила молча ждали своего часа и трижды за одну сессию выстреливали:
   номер телефона стал нечитаемым (контраст 1.11), кнопка звонка обзавелась
   золотым ободком, которого нет больше нигде на сайте, а на телефоне
   .header__phone span спрятал вместе с номером и саму иконку — кнопка
   звонка превратилась в пустой зелёный квадрат.

   Правило: обвязку красит chrome.css, страница её не переопределяет. */

/* ==========================================================================
   Хлебные крошки и панель действий
   ========================================================================== */

/* Липкой панель имеет смысл только там, где она в одну тонкую строку.
   На телефоне две полноразмерные кнопки дают 110px, которые едут за
   человеком и накрывают текст — а внизу и так висит панель с действиями. */
/* Полоса с хлебными крошками и кнопками «Email me this listing» / «Ask a
   question» НЕ закрепляется и уезжает вместе со страницей.

   Раньше она липла к верху окна и при этом уходила под шапку целиком —
   то есть была закреплена и невидима одновременно. Логичный шаг был бы
   прилепить её под шапку, но на десктопе это две закреплённые полосы одна
   над другой: они съедают 180 пикселей высоты на каждом экране страницы
   в десять тысяч пикселей, а действия из них и так продублированы —
   звонок в шапке, цена и обе кнопки в нижней панели. */
.subbar__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); color: var(--ink-soft);
  list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--line-strong); }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn--brass {
  background: var(--brass-soft); color: #6b5122; border-color: #d9c79a;
}
.btn--brass:hover { border-color: var(--brass); color: #5a4319; }

/* Длинная подпись кнопки ломается на две строки в узкой колонке — держим
   короткий вариант и переключаем по ширине. */
.btn__short { display: none; }
@media (max-width: 575.98px) {
  .btn__full { display: none; }
  .btn__short { display: inline; }
}

.btn--icon { min-height: var(--h-btn); width: var(--h-btn); padding: 0; }

/* ==========================================================================
   Сетка страницы
   ========================================================================== */
.page { padding: 24px 0 56px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 404px;
  gap: var(--card-gap);
  /* stretch, а не start. При start боковая колонка кончалась на 4066
     пикселе, а основная шла до 9805 — почти шесть тысяч пикселей правая
     треть экрана оставалась пустым белым полем. Растянутая на всю высоту
     колонка позволяет последней карточке в ней прилипнуть и ехать вместе
     с читателем (см. .layout__aside ниже). */
  align-items: stretch;
}
/* Боковая колонка — флекс-столбец во всю высоту строки, чтобы последняя
   карточка могла прилипнуть и сопровождать человека до конца страницы.
   Прилипает именно «Ask us to photo anything»: на карточке длиной десять
   тысяч пикселей это самое полезное действие для того, кто покупает не
   глядя — он читает и по ходу отмечает, что хочет увидеть. Цена и звонок
   при этом всегда под рукой в нижней панели. */
.layout__aside > .card { margin: 0; }
@media (min-width: 992px) {
  .layout__aside > .card:last-child {
    /* Отступ считался с учётом закреплённой полосы крошек под шапкой.
       Полоса больше не липнет, поэтому остаётся высота шапки плюс зазор. */
    position: sticky; top: calc(var(--chrome-sticky, 92px) + 20px);
  }
}

/* В разметке боковая колонка идёт ПЕРВОЙ: в ней H1 с названием машины и цена,
   и читалка должна получить их сразу, а не 37-м заголовком из 46. Визуальный
   порядок возвращаем гридом. */
.layout__main  { min-width: 0; display: flex; flex-direction: column; gap: var(--card-gap);
                 grid-column: 1; grid-row: 1; }
.layout__aside { min-width: 0; display: flex; flex-direction: column; gap: var(--card-gap);
                 grid-column: 2; grid-row: 1; }

/* ==========================================================================
   Карточка-блок
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
}
.card--flush { padding: 0; overflow: hidden; }
.card--tint  { background: var(--surface-tint); border-color: #cddbcf; }
.card--warn  { background: var(--surface-warn); border-color: #e5cdbb; }

.card__head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}
.card__head h2 { font-size: var(--fs-title); }
.card__head h3 { font-size: 20px; }
/* Номер раздела — Bitter, как такие же номера на остальных страницах
   (.step__num в bands.css, .usn-card__n, .cnd-system__n). Моноширинная
   здесь оправдана только для ИДЕНТИФИКАТОРОВ — VIN, сток, счётчик кадров:
   в них цифры выравниваются в столбик и их сверяют с бумагами. Порядковый
   номер раздела ничего не сверяет, а из-за него страница оказывалась
   единственной на сайте с тремя гарнитурами вместо двух. */
.card__num {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  color: var(--brass);
  letter-spacing: .1em;
  flex: none;
}
.card__note { font-size: var(--fs-label); color: var(--ink-soft); margin-left: auto; }
/* На подкрашенном фоне латунь не добирает до 4.5:1 — берём тон темнее */
.card--tint .card__num, .card--warn .card__num { color: #6b5122; }

/* Заголовки боковой колонки — уровень h2 ради иерархии, но кегль как у h3 */
.layout__aside .card__head h2 { font-size: 20px; }

.card__lead {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  margin: -8px 0 20px;
  max-width: 68ch;
}

/* Строка длиннее ~85 символов утомляет: глаз теряет начало следующей.
   Ограничиваем весь сплошной текст, который иначе тянется во всю карточку. */
.calc__note, .media-cta__text span, .enclosed-note div, .closing > p,
.steps span, .checklist li > span:nth-child(2), .invest-total { max-width: 78ch; }
.faq__body p { max-width: 76ch; }

/* ==========================================================================
   Галерея
   ========================================================================== */
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }

.gallery__stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-soft);
  cursor: zoom-in;
}
.gallery__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
}
.gallery__slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-slow) var(--ease), visibility 0s; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery__caption {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  color: var(--ink-muted);
  min-height: 46px;
}

.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }

.gallery__counter {
  position: absolute; right: 16px; top: 16px;
  z-index: 3;                      /* слайды идут позже в DOM и закрашивали счётчик */
  background: rgba(24, 21, 17, .8);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.gallery__badges { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; max-width: 70%; }

.gallery__thumbs {
  display: flex; gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--line);
}
.gallery__thumb {
  flex: none;
  width: 118px; height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .72;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--green); }

/* Тумблеры из config.js. Без этих правил переключатели ничего не делали:
   demoBanner: false оставлял полосу на месте, galleryCounter: false — счётчик. */

html:not(.opt-gallery-counter) .gallery__counter { display: none; }

/* ==========================================================================
   Бейджи
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.badge--green { background: var(--green); color: #fff; }
.badge--brass { background: var(--brass); color: #fff; }
.badge--paper { background: rgba(255, 253, 248, .95); color: var(--ink); border: 1px solid var(--line-strong); }
.badge--brick { background: var(--brick); color: #fff; }

/* ==========================================================================
   Карточка автомобиля: заголовок, цена
   ========================================================================== */
.vehicle__stock {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.vehicle__stock span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--ink-muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.vehicle__title { font-size: var(--fs-h1); margin-bottom: 8px; }
.vehicle__subtitle {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.price {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 16px;
}
.price__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__now {
  font-family: var(--font-display);
  font-size: var(--fs-price);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.price__was { font-size: var(--fs-small); color: var(--ink-soft); text-decoration: line-through; }
.price__save {
  font-size: var(--fs-label); font-weight: 700;
  color: #fff; background: var(--brick);
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.price__month { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-muted); }
.price__month strong { font-size: 21px; color: var(--ink); font-family: var(--font-display); }

/* ==========================================================================
   Чек-лист фото-запроса
   ========================================================================== */
.asklist { display: grid; gap: 2px; margin-bottom: 16px; }
.asklist label {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 8px 8px 8px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.asklist label:hover { background: var(--surface-soft); }
.asklist input {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; margin: 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  flex: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.asklist input:checked { background: var(--green); border-color: var(--green); }
.asklist input:checked::after {
  content: '';
  position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.asklist input:focus-visible { box-shadow: var(--focus); }
.asklist label:has(input:checked) { background: var(--green-soft); }
.asklist label:has(input:checked) span { font-weight: 600; }

/* Спрос и редкость: три коротких факта под ценой. Не давление — цифры,
   которые дилер и так знает, и которые отвечают на «а не расхватают ли». */
.demand {
  display: grid; gap: 8px;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--brass-soft);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
}
.demand li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-label); color: #6b5122; }
.demand .icon { width: 18px; height: 18px; color: var(--brass); flex: none; margin-top: 1px; }
.demand b { color: #4f3c17; }

/* Строка доверия под ценой */
.trust-row {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.trust-row li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.trust-row .icon { color: var(--green); margin-top: 2px; }
.trust-row strong { color: var(--ink); }

.cta-stack { display: grid; gap: 12px; margin-bottom: 4px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* «Send me photos» и «Send me the video» переносим по словам: обе кнопки
   становятся двухстрочными, и телефон над ними встаёт по одной сетке. */
.cta-row .btn {
  white-space: normal;
  text-wrap: balance;
  line-height: 1.25;
  min-height: var(--h-btn-lg);
}

.cta-fineprint {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  color: var(--ink-soft);
  text-align: center;
}

/* Липкую карточку пробовали — она едет через всю страницу и повисает рядом
   с уехавшей галереей, что выглядит поломкой. Цену и телефон при прокрутке
   держит нижняя полоса (.mobile-bar), она компактнее и не мешает читать. */

/* ==========================================================================
   Ключевые факты плитками
   ========================================================================== */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.facts div { background: var(--surface); padding: 16px 16px; }
.facts dt { font-size: var(--fs-label); color: var(--ink-soft); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 700; font-size: var(--fs-small); }

/* ==========================================================================
   Карта состояния — ядро страницы
   ========================================================================== */
.condition__scale {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.condition__scale li {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  line-height: 1.3;
}
.condition__scale li:last-child { border-right: 0; }
.condition__scale li { transition: background var(--dur) var(--ease); }
.condition__scale li.is-here {
  background: var(--green); color: #fff;
  box-shadow: inset 0 -4px 0 var(--brass);
}
.condition__scale b { display: block; font-family: var(--font-mono); font-size: var(--fs-small); }

.condition__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* Четыре карточки в сетке на три колонки оставляют одну висеть во втором
   ряду. Там, где их ровно четыре, раскладываем два на два. */
.condition__grid--pairs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767.98px) { .condition__grid--pairs { grid-template-columns: 1fr; } }

.condition__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .condition__item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
}
.condition__item h3 {
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.condition__grade {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.condition__grade--good { background: var(--green-soft); color: var(--green-dark); }
.condition__grade--top  { background: var(--green); color: #fff; }
.condition__grade--fair { background: var(--brass-soft); color: #6b5122; }
.condition__grade--flag { background: var(--brick-soft); color: #7a2817; }
.condition__item p { margin: 0; font-size: var(--fs-label); color: var(--ink-muted); line-height: 1.55; }

/* Честный список дефектов */
.defects { margin-top: 24px; }
.defects__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brick);
  margin-bottom: 12px;
}
.defects__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.defects__item {
  background: var(--surface-warn);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.defects__no { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--brick); font-weight: 700; }
.defects__text { font-size: var(--fs-small); }
.defects__text b { display: block; margin-bottom: 4px; }
.defects__text span { color: var(--ink-muted); font-size: var(--fs-label); }
.defects__photo {
  font-size: var(--fs-label);
  color: var(--green);
  background: none; border: 0;
  min-height: 44px; padding: 12px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ==========================================================================
   Осмотр снизу
   ========================================================================== */
.underside__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.underside__cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.underside__cell:hover { border-color: var(--green); box-shadow: var(--shadow-lift); }
.underside__cell img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.underside__cell figcaption { padding: 8px 12px; font-size: var(--fs-label); }
.underside__cell b { display: block; }
.underside__cell span { color: var(--ink-soft); }

.checklist { display: grid; gap: 8px; }
.checklist li {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px;
  /* Не baseline: у значка font-size:0, а у пустого блока базовая линия
     проходит по нижнему краю — галочка проваливалась на 13px под свою
     строку. По верху плюс высота значка ровно в одну строку (ниже) даёт
     то, что нужно: значок стоит по ПЕРВОЙ строке, даже если текст в две. */
  align-items: start;
  font-size: var(--fs-small);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
/* Значок рисуется рамками, а не берётся из шрифта: символ «✓» на части
   систем подменяется цветным эмодзи и уезжает по базовой линии — та же
   ошибка уже ловилась на страницах состояния и покупки вслепую. Текст
   символа остаётся в разметке для читалок, но с экрана убирается. */
.checklist__mark {
  position: relative; display: block;
  /* Высота ровно в одну строку текста строки списка: значок центрируется
     внутри неё и потому всегда стоит на первой строке. em здесь нельзя —
     font-size:0 обнулил бы и его. */
  width: 16px; height: calc(var(--fs-small) * 1.6);
  font-size: 0; color: transparent;
}
.checklist__mark:before {
  content: ""; position: absolute; left: 2px; top: 50%; margin-top: -5px;
  width: 10px; height: 6px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.checklist__mark--ok   { color: var(--green); }
.checklist__mark--warn { color: var(--brick); }
.checklist__mark--warn:before {
  width: 12px; height: 2px; top: 50%; margin-top: -1px; left: 2px;
  border: 0; background: currentColor; transform: none;
}
.checklist__verdict { font-size: var(--fs-label); color: var(--ink-soft); text-align: right; }

/* ==========================================================================
   Провенанс: таймлайн
   ========================================================================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.timeline__item { position: relative; padding-bottom: 24px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 50%;
}
.timeline__item--now::before { background: var(--green); }
.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--brass);
  letter-spacing: .06em;
}
.timeline__item h3 { font-family: var(--font-text); font-size: var(--fs-small); font-weight: 700; margin: 4px 0 4px; }
.timeline__item p { margin: 0; font-size: var(--fs-small); color: var(--ink-muted); max-width: 76ch; }

/* ==========================================================================
   Подлинность: VIN, табличка, matching numbers
   ========================================================================== */
.decode {
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.decode__vin {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.decode__char {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  line-height: 1;
}
.decode__char--key { background: var(--green); color: #fff; border-color: var(--green); }
.decode__legend { display: grid; gap: 8px; }
.decode__legend li {
  display: grid; grid-template-columns: minmax(42px, auto) 1fr; gap: 12px;
  font-size: var(--fs-small);
  align-items: baseline;
}
@media (max-width: 575.98px) {
  /* Шестизначный номер шире колонки в 42px и наезжает на подпись */
  .decode__legend li { grid-template-columns: 1fr; gap: 2px; }
  .decode__legend li b { font-size: var(--fs-base); }
}
.decode__legend b { font-family: var(--font-mono); color: var(--green); font-weight: 700; }
.decode__legend span { color: var(--ink-muted); }

.plate {
  font-family: var(--font-mono);
  background: var(--surface-soft);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.plate div { min-width: 0; }
.plate dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.plate dd { margin: 4px 0 0; font-size: var(--fs-small); font-weight: 700; word-break: break-word; }

.numbers { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.numbers__row {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  font-size: var(--fs-small);
}
.numbers__row b { font-weight: 700; }
.numbers__row code { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-muted); }
.numbers__flag {
  font-size: var(--fs-label); font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.numbers__flag--match { background: var(--green-soft); color: var(--green-dark); }
.numbers__flag--no    { background: var(--brick-soft); color: #7a2817; }

/* ==========================================================================
   Оригинал против замены
   ========================================================================== */
.origvsnew { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.origvsnew__col h3 {
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.origvsnew__col--orig h3 { color: var(--green); border-bottom-color: var(--green); }
.origvsnew__col--new h3  { color: var(--brass); border-bottom-color: var(--brass); }
.origvsnew__col li {
  font-size: var(--fs-small);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
}
.origvsnew__col li:last-child { border-bottom: 0; }
.origvsnew__col span { color: var(--ink-soft); font-size: var(--fs-label); white-space: nowrap; }

.invest-total {
  margin-top: 16px;
  padding: 16px 16px;
  background: var(--surface-soft);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.invest-total strong { font-family: var(--font-display); font-size: 21px; }

/* ==========================================================================
   Отчёт о ходовых
   ========================================================================== */
.drive { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.drive div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  background: var(--surface-soft);
}
.drive dt { font-size: var(--fs-label); color: var(--ink-soft); }
.drive dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; }

.media-cta {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface-tint);
  border: 1px solid #cddbcf;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.media-cta__text { flex: 1; min-width: 220px; }
/* На узком экране кнопка сжималась до 216px и подпись ломалась в три строки —
   пусть занимает всю ширину под текстом. */
@media (max-width: 575.98px) {
  .media-cta { gap: 12px; }
  .media-cta .btn { width: 100%; }
}
.media-cta__text b { display: block; font-size: var(--fs-small); }
.media-cta__text span { font-size: var(--fs-label); color: var(--ink-muted); }

/* ==========================================================================
   Независимая инспекция
   ========================================================================== */
.inspect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.inspect__step {
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.inspect__step b { display: block; font-size: var(--fs-small); margin-bottom: 4px; }
.inspect__step span { font-size: var(--fs-label); color: var(--ink-muted); }
/* «STEP 1/2/3» — перечисление, не идентификатор: набирается общей
   гарнитурой подписей, как надзаголовки на остальных страницах. */
.inspect__no {
  font: 700 var(--fs-micro)/1 var(--font-text);
  letter-spacing: .11em; text-transform: uppercase; color: var(--brass);
}

/* ==========================================================================
   Цена в рынке
   ========================================================================== */
.market { margin-bottom: 20px; }
.market__row {
  display: grid;
  grid-template-columns: 190px 1fr 96px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  font-size: var(--fs-label);
  border-bottom: 1px solid var(--line);
}
.market__row:last-child { border-bottom: 0; }
.market__label b { display: block; font-size: var(--fs-small); font-weight: 700; }
.market__label span { color: var(--ink-soft); }
.market__bar { height: 22px; background: var(--surface-soft); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
.market__fill {
  position: absolute; top: 0; bottom: 0;
  background: var(--brass-soft);
  border-right: 2px solid var(--brass);
}
.market__row--ours .market__fill { background: var(--green-soft); border-right-color: var(--green); }
.market__price { text-align: right; font-family: var(--font-mono); font-weight: 700; }

/* Строка нашей машины должна быть видна сразу, а не угадываться по цвету цифр.
   На телефоне полосы сравнения скрыты, и без подложки блок теряет весь смысл. */
/* Подложка строки не должна совпадать с цветом полосы, иначе главная полоса
   всего блока становится невидимой. Строка — бледная, полоса — сплошная зелёная. */
.market__row--ours {
  background: var(--surface-tint);
  border-left: 3px solid var(--green);
  border-bottom-color: var(--green);
  padding: 12px 8px;
  margin: 4px 0;
  border-radius: var(--radius-sm);
}
.market__row--ours .market__bar { background: var(--green-soft); }
.market__row--ours .market__fill { background: var(--green); border-right-color: var(--green-dark); }
.market__row--ours .market__price { color: var(--green-dark); }
.market__row--ours .market__label b { color: var(--green-dark); }
.market__row--ours .market__label span { color: #2f5a44; }
.market__row--ours .market__label b::after {
  content: 'эта машина';
  display: none;
}

.market__axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-soft);
  padding: 8px 96px 0 128px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Цена и динамика стоимости
   ========================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.value-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  background: var(--surface-soft);
}
.value-cell--accent { background: var(--surface-tint); border-color: #cddbcf; }
.value-cell__label { display: block; font-size: var(--fs-label); color: var(--ink-soft); }
.value-cell__num {
  display: block; margin: 4px 0 4px;
  font-family: var(--font-display); font-size: var(--fs-title); line-height: 1;
}
.value-cell--accent .value-cell__num { color: var(--green); }
.value-cell__note { display: block; font-size: var(--fs-label); color: var(--ink-muted); }

/* Столбики роста: рисуются высотой, поэтому в разметке лежат проценты,
   а не картинка — и на печати всё видно так же. */
.value-track {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  align-items: end;
  min-height: 150px;
  padding: 0 2px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.value-track__bar { position: relative; align-self: end; text-align: center; }
.value-track__bar span {
  display: block;
  transform: scaleY(0);
  transition: transform .7s var(--ease);
  background: var(--brass-soft);
  border: 1px solid #dcc99c;
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transform-origin: bottom;
}
.value-track.is-in .value-track__bar span { transform: scaleY(1); }
.value-track.is-in .value-track__bar:nth-child(2) span { transition-delay: .08s; }
.value-track.is-in .value-track__bar:nth-child(3) span { transition-delay: .16s; }
.value-track.is-in .value-track__bar:nth-child(4) span { transition-delay: .24s; }
.value-track.is-in .value-track__bar:nth-child(5) span { transition-delay: .32s; }
.value-track.is-in .value-track__bar:nth-child(6) span { transition-delay: .40s; }
.value-track__bar--now span { background: var(--green); border-color: var(--green); }
/* Подпись вынесена из потока: пока она лежала в колонке, столбик в 100%
   и столбик в 84% упирались в один и тот же потолок. */
.value-track__bar small {
  position: absolute; left: 0; right: 0; bottom: -30px;
  font-size: var(--fs-label); color: var(--ink-soft);
}
.value-track__bar--now small { color: var(--green); font-weight: 700; }
.value-track__caption { margin: 32px 0 0; font-size: var(--fs-label); color: var(--ink-soft); max-width: 84ch; }

@media (max-width: 575.98px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-track { height: 132px; gap: 4px; }
  .value-track__bar small { font-size: var(--fs-label); }
}

/* ==========================================================================
   Итоговая сумма: что реально уйдёт со счёта
   ========================================================================== */
.total-strip {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.total-strip__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.total-strip__row:last-of-type { border-bottom: 0; }
.total-strip__row span { color: var(--ink-muted); }
.total-strip__row b { font-weight: 700; white-space: nowrap; }
.total-strip__row--note b { color: var(--ink-muted); font-weight: 400; }
.total-strip__note { margin: 12px 0 0; font-size: var(--fs-label); color: var(--ink-soft); max-width: 78ch; }
@media (max-width: 575.98px) {
  .total-strip__row { flex-direction: column; gap: 2px; }
  .total-strip__row b { white-space: normal; }
}

/* ==========================================================================
   Калькулятор платежа
   ========================================================================== */
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper button {
  min-height: 52px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 21px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.stepper button:hover { border-color: var(--green); color: var(--green); }
.stepper input { text-align: center; }

.calc__out { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.calc__out dl { margin: 0; }
.calc__out div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.calc__out div:last-of-type { border-bottom: 0; }
.calc__out dt { color: var(--ink-muted); }
.calc__out dd { margin: 0; font-weight: 700; }
.calc__total { margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__total span { font-size: var(--fs-small); color: var(--ink-muted); }
.calc__total strong { font-family: var(--font-display); font-size: var(--fs-h1); }
@keyframes tick { 0% { color: var(--green); } 100% { color: inherit; } }
.is-ticking { animation: tick .5s var(--ease); }
.calc__note { font-size: var(--fs-label); color: var(--ink-soft); margin: 16px 0 0; }
.calc__note--ok { color: var(--green); font-weight: 600; }

/* ==========================================================================
   Безопасная сделка
   ========================================================================== */
/* Заголовок и описание одного шага — это грид-строки внутри li, поэтому общий
   gap разводил их на 15px, а соседние шаги стояли ближе друг к другу, чем части
   одного шага. Своё держим вместе, чужое разводим. */
.steps { counter-reset: step; display: grid; gap: 24px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 42px 1fr;
  column-gap: 16px; row-gap: 4px;
  align-items: start;
  font-size: var(--fs-small);
}
.steps li::before {
  content: counter(step);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  background: var(--green); color: #fff;
  border-radius: 50%;
}
/* Номер рисуется через ::before и сам занимает первую колонку. Заголовок и
   описание — это ДВА отдельных элемента, поэтому оба надо явно посадить во
   вторую колонку. Иначе описание сваливается в первую, шириной 42px, и текст
   рассыпается по одному слову в строку. */
.steps b, .steps span { grid-column: 2; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-muted); }

/* ==========================================================================
   Назови свою цену
   ========================================================================== */
.offer p { max-width: 76ch; }
.offer {
  border: 2px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--brass-soft);
}
.offer__form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.offer__note { font-size: var(--fs-label); color: #6b5122; margin: 16px 0 0; }
.offer__note--warn { color: var(--brick); font-weight: 600; }

@keyframes flash-ok { 0% { box-shadow: 0 0 0 0 rgba(29, 74, 53, .5); } 100% { box-shadow: 0 0 0 16px rgba(29, 74, 53, 0); } }
.flash-ok { animation: flash-ok .6s var(--ease); }

/* ==========================================================================
   Доставка
   ========================================================================== */
.delivery__form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.delivery__hint { font-size: var(--fs-label); color: var(--ink-soft); margin: 12px 0 16px; }
.delivery__result {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.delivery__result.is-shown { display: block; animation: dropIn var(--dur-slow) var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.delivery__head {
  background: var(--green); color: #fff;
  padding: 12px 16px;
  font-size: var(--fs-small); font-weight: 700;
}
.delivery__body { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); }
.delivery__body div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.delivery__body dd { white-space: nowrap; }
.delivery__body div { background: var(--surface); padding: 16px 16px; }
.delivery__body dt { font-size: var(--fs-label); color: var(--ink-soft); }
.delivery__body dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.delivery__free { color: var(--green); }

.enclosed-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px;
  padding: 16px 16px;
  background: var(--surface-tint);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: var(--fs-label);
  color: var(--ink-muted);
}
.enclosed-note .icon { color: var(--green); margin-top: 2px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq__item { background: var(--surface); }
.faq__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  background: none; border: 0;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  min-height: var(--h-btn-lg);
}
.faq__btn:hover { background: var(--surface-soft); }
.faq__sign { font-family: var(--font-mono); font-size: 21px; color: var(--green); flex: none; transition: transform var(--dur) var(--ease); }
.faq__item.is-open .faq__sign { transform: rotate(45deg); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
  font-size: var(--fs-small); color: var(--ink-muted);
}
.faq__body > * { overflow: hidden; margin: 0; max-width: 76ch; }
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__item.is-open .faq__body > * { padding: 0 20px 20px; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews { display: grid; gap: 16px; }
.review {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--surface);
}
.review__stars { color: var(--brass); font-size: var(--fs-small); letter-spacing: .12em; }
.review p { margin: 8px 0 8px; font-size: var(--fs-small); }
.review__who { font-size: var(--fs-label); color: var(--ink-soft); }
.review__who b { color: var(--ink); }

/* ==========================================================================
   Менеджер
   ========================================================================== */
.agent { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.agent img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brass); flex: none; }
.agent b { display: block; font-size: var(--fs-small); }
.agent span { font-size: var(--fs-label); color: var(--ink-muted); }

/* ==========================================================================
   Спецификации
   ========================================================================== */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.specs dt { color: var(--ink-muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

/* ==========================================================================
   Описание, локация, похожие
   ========================================================================== */
.prose { font-size: var(--fs-small); max-width: 74ch; }

/* Описание по узлам: подзаголовки-разделители и списки с точками —
   иначе шесть блоков подряд читаются как одна простыня. */
.spec-prose { max-width: none; }
.spec-prose h3 {
  font-family: var(--font-text);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.spec-prose h3:first-child { margin-top: 0; }
.spec-prose ul { display: grid; gap: 8px; max-width: 92ch; }
.spec-prose li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}
.spec-prose li::before {
  content: '';
  position: absolute; left: 3px; top: .62em;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
}
.spec-prose p { max-width: 80ch; margin: 0 0 12px; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

.location { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.location__map {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, #e8e0d0, #e8e0d0 12px, #e2d9c6 12px, #e2d9c6 24px);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-size: var(--fs-label);
  text-align: center;
  padding: 20px;
}
/* Когда карта загрузилась — убираем декоративную подложку и отступ,
   иначе полосатая штриховка обводит iframe рамкой. */
.location__map.has-map { padding: 0; background: none; }
.location__map.has-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.related { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.related__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.related__card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.related__body { padding: 12px 12px; }
.related__body b { display: block; font-size: var(--fs-label); line-height: 1.35; margin-bottom: 4px; }
/* Цена — Bitter, как ЛЮБАЯ цена на сайте: в каталоге, на главной,
   в карточке этой же машины выше. Здесь она была набрана моноширинной,
   и одна и та же машина в каталоге и в блоке «похожие» показывала цену
   разным шрифтом. Моноширинная на этой странице оставлена только
   идентификаторам — VIN, сток, счётчик кадров. */
.related__body span {
  font-family: var(--font-heading); font-size: var(--fs-small);
  color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Закрытие страницы
   ========================================================================== */
.closing { margin-top: var(--card-gap); text-align: center; }
.closing h2 { font-size: var(--fs-title); margin-bottom: 12px; }
.closing > p { font-size: var(--fs-small); color: var(--ink-muted); max-width: 62ch; margin: 0 auto 20px; }
.closing__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.closing__note { font-size: var(--fs-label); color: var(--ink-soft); margin: 24px auto 0; padding-top: 16px; border-top: 1px solid rgba(34,31,26,.10); max-width: 58ch; }
@media (max-width: 575.98px) {
  .closing__row { flex-direction: column; }
  .closing__row .btn { width: 100%; }
}

/* ==========================================================================
   Сворачиваемые блоки
   ========================================================================== */
.collapsible__toggle {
  display: none;
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}
.is-collapsible .collapsible__toggle { display: block; }
.is-collapsible .collapsible__body {
  max-height: 260px;
  overflow: hidden;
  position: relative;
}
.is-collapsible .collapsible__body::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), var(--surface));
}
.is-collapsible.is-open .collapsible__body { max-height: none; }
.is-collapsible.is-open .collapsible__body::after { display: none; }

/* ==========================================================================
   Модалки
   ========================================================================== */

.modal__box--wide { max-width: 1000px; padding: 16px; }

.modal h2 { font-size: var(--fs-title); margin-bottom: 8px; padding-right: 48px; }

.modal img { border-radius: var(--radius-md); }
/* ==========================================================================
   ПРОСМОТРЩИК ФОТОГРАФИЙ (.lb)

   Не модалка с картинкой, а отдельный экран: чёрный фон, кадр во всю
   доступную площадь, служебное — по краям. Человек, покупающий машину не
   глядя, проводит здесь больше времени, чем на любом другом элементе
   страницы, и всё, что не фотография, должно уйти с дороги.

   Три решения, которые стоит держать в голове при правках:
   • Кадр вписывается целиком (contain), а не заполняет экран. Обрезать
     фотографию машины нельзя — именно на обрезанном крыле обычно и стоит
     вопрос покупателя.
   • Стрелки крупные и лежат ПОВЕРХ кадра по краям, а не под ним: тянуться
     вниз к кнопке между просмотром двадцати кадров утомительно.
   • Лента миниатюр внизу всегда видна — из неё понятно, сколько всего
     кадров и где ты сейчас. Счётчик один этого не даёт.
   ========================================================================== */
.lb {
  /* Выше всего, включая плавающую кнопку звонка (9000): пока открыт
     просмотрщик, ничто не должно лежать поверх фотографии. При 120 его
     накрывала шапка сайта — и крестик закрытия был не виден вовсе. */
  position: fixed; inset: 0; z-index: 9500;
  display: none; flex-direction: column;
  background: #0c0a08;
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.lb.is-open { display: flex; opacity: 1; }

/* Верхняя строка: счётчик, подпись, закрытие */
.lb__top {
  flex: 0 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 14px 16px calc(14px + env(safe-area-inset-top));
  padding-top: max(14px, env(safe-area-inset-top));
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.lb__counter {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 700;
  color: #fff; letter-spacing: .04em; flex: 0 0 auto;
}
.lb__caption {
  flex: 1 1 auto; min-width: 0; font-size: var(--fs-label);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb__close {
  /* margin-left: auto держит крестик у правого края САМ, а не за счёт
     подписи-распорки между ним и счётчиком. На телефоне подпись скрыта,
     распорка исчезала, и крестик прилипал к счётчику слева. */
  flex: 0 0 auto; margin-left: auto; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-btn); color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lb__close:hover { background: rgba(255,255,255,.2); }
.lb__close:focus-visible { outline: 3px solid var(--gold, #c9a227); outline-offset: 2px; }
.lb__close svg { width: 20px; height: 20px; }

/* Сцена */
.lb__stage {
  flex: 1 1 auto; position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.lb__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  display: block; border-radius: var(--radius-sm);
  animation: lbIn .22s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lb__stage img { animation: none; } }

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%; color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lb__nav:hover { background: rgba(255,255,255,.24); }
.lb__nav:active { transform: translateY(-50%) scale(.94); }
.lb__nav:focus-visible { outline: 3px solid var(--gold, #c9a227); outline-offset: 3px; }
.lb__nav svg { width: 26px; height: 26px; }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }

/* Лента миниатюр */
.lb__thumbs {
  flex: 0 0 auto; display: flex; gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto; overscroll-behavior-x: contain;
  border-top: 1px solid rgba(255,255,255,.1);
  scrollbar-width: thin;
}
.lb__thumb {
  flex: 0 0 auto; width: 96px; height: 64px; padding: 0;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: #1a1712; cursor: pointer; overflow: hidden;
  opacity: .55; transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__thumb:hover { opacity: .85; }
.lb__thumb.is-active { opacity: 1; border-color: var(--gold, #c9a227); }
.lb__thumb:focus-visible { outline: 3px solid var(--gold, #c9a227); outline-offset: 2px; }

@media (max-width: 767.98px) {
  /* На телефоне стрелки уезжают вниз к большому пальцу, а не висят
     посреди экрана, где до них надо тянуться через весь кадр. */
  .lb__nav { top: auto; bottom: 8px; transform: none; width: 52px; height: 52px; }
  .lb__nav:active { transform: scale(.94); }
  .lb__nav--prev { left: 12px; }
  .lb__nav--next { right: 12px; }
  .lb__thumb { width: 74px; height: 52px; }
  .lb__caption { display: none; }
}

/* ==========================================================================
   Тост и нижний бар
   ========================================================================== */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center; gap: 16px;
  padding: 12px max(12px, calc((100vw - var(--container)) / 2 + var(--gutter)))
           calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 2px solid var(--ink);
  box-shadow: var(--shadow-up);
  transform: translateY(100%);
  transition: transform var(--dur-slow) var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar__price b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
/* Название машины под ценой обрезалось без многоточия: 164 пикселя текста
   в 134 доступных на 320px, и получалось «1967 Ford Mustang Fastb». Слово
   должно обрываться отточием, тогда обрыв читается как обрыв, а не как
   ошибка вёрстки. */
.mobile-bar__price span {
  display: block; font-size: var(--fs-label); color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-bar__price { min-width: 0; }

/* Две кнопки: позвонить и оставить заявку. Аудитория 55–70 делится ровно
   пополам — одни звонят, другие не хотят разговаривать с незнакомцем и пишут. */
.mobile-bar__actions { display: flex; gap: 8px; flex: none; }
.mobile-bar__actions .btn { min-height: var(--h-btn); padding: 0 16px; }
@media (max-width: 575.98px) {
  .mobile-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .mobile-bar__price b { font-size: 18px; }
  .mobile-bar__price span { font-size: 11px; }
  .mobile-bar__actions .btn { padding: 12px 12px; gap: 8px; }
  .mobile-bar__actions .icon { width: 19px; height: 19px; }
}
@media (max-width: 359.98px) {
  /* На самых узких телефонах текст кнопок уходит, остаются иконки */
  .mobile-bar__actions .btn span { display: none; }
  .mobile-bar__actions .btn { width: 48px; padding: 0; justify-content: center; }
}
/* Цена расталкивает остальное вправо. Раньше отступ вешался на кнопку, но
   рядом с ней стоит подпись, которая на телефоне скрыта — и кнопка повисала
   посреди панели с дырой справа. */
.mobile-bar__price { margin-right: auto; }
.mobile-bar__note { font-size: var(--fs-label); color: var(--ink-muted); text-align: right; }
@media (max-width: 767.98px) {
  .mobile-bar__note { display: none; }
}

/* ==========================================================================
   Подвал
   ==========================================================================
   ПУСТО НАМЕРЕННО. Здесь лежал блок правил подвала из старой разметки:
   свой цвет текста, свои пропорции колонок (2fr 1fr 1fr 1.4fr против
   1.7fr 1fr 1.1fr 1.2fr в chrome.css), свои цвета заголовков и ссылок.

   Сейчас он ничего не ломал: chrome.css подключается позже и перебивает
   всё это — подвалы на карточке машины и на остальных страницах совпадают
   до пикселя, проверено замером. Но ровно из этого же блока за одну сессию
   дважды вылезли настоящие дефекты: цвет номера телефона (контраст 1.11)
   и кнопка звонка в подвале (3.29). Мёртвый код, дублирующий общую
   обвязку, — это заряженное ружьё, и его надо разряжать, а не сторожить. */

/* ==========================================================================
   Проявление секций
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199.98px) {
  .layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .related { grid-template-columns: repeat(3, 1fr); }
  .related__card:nth-child(n+4) { display: none; }
  .underside__grid { grid-template-columns: repeat(2, 1fr); }
  .plate { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  :root { --card-pad: 22px; --fs-h1: 32px; --fs-price: 38px; --fs-title: 21px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__main, .layout__aside { grid-column: 1; grid-row: auto; }

  /* На планшете галерея съедала весь первый экран и цена срезалась ровно
     на границе. Ужимаем кадр, ленту миниатюр и подпись, чтобы цена всегда
     попадала в первый экран. */
  .gallery__stage { aspect-ratio: 16 / 9; }
  .gallery__caption {
    padding: 8px 12px; font-size: var(--fs-label); min-height: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .gallery__thumbs { padding: 8px; gap: 8px; }
  .gallery__thumb { width: 96px; height: 58px; }

  /* Ниже 992px горизонтальное меню не помещается — прячем его за кнопку.
     Бургер обязан появиться ровно на той же границе, иначе между брейкпоинтами
     возникает полоса ширин вообще без навигации. */
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-lift);
    z-index: 40;
  }
  .nav.is-open { display: flex; }
  .nav a {
    min-height: 52px;
    display: flex; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    border-bottom-color: var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: flex; margin-left: auto; }
  .header__phone { margin-left: 0; }
  .condition__grid { grid-template-columns: repeat(2, 1fr); }
  .inspect { grid-template-columns: 1fr; }
  .drive { grid-template-columns: repeat(2, 1fr); }
  .calc__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .specs { grid-template-columns: 1fr; }
  .origvsnew { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  /* «Карта» — декоративная штриховка с текстом, не настоящая карта. На широком
     экране она держит левую половину сетки, на телефоне превращается в 227px
     пустых обоев. Адрес есть в тексте рядом, в закрытии и в подвале. */
  .location__map { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  /* Здесь были правила для .market__bar и .market__axis — этих классов в
     разметке нет с тех пор, как блок цены переписали. Скрывать было нечего. */
  .delivery__body { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  /* --gutter здесь был 12px против 16 на всех остальных страницах сайта.
     Отступ общий для страницы И для шапки, поэтому бургер, эмблема и кнопка
     звонка на карточке машины стояли на четыре пикселя иначе, чем везде —
     глаз это ловит как «шапка не на месте», хотя причина в поле страницы.
     Карточкам оставляем свою плотность через --card-pad. */
  :root { --header-h: 60px; --card-pad: 18px; --gutter: 16px; --fs-h1: 25px; --fs-price: 34px; --card-gap: 12px; }

  .page { padding: 12px 0 96px; }
  /* Только НОМЕР, а не любой span. Правило .header__phone span прятало
     заодно .header__ic — обёртку значка, которая тоже span, — и кнопка
     звонка на телефоне превращалась в пустой зелёный квадрат. На карточке
     машины это главная кнопка для покупателя 60-75 лет, и она была пустой
     на каждом телефоне уже с 576 пикселей и ниже. */
  .header__phone .header__num,
  .header__phone > span:not(.header__ic) { display: none; }
  /* На телефоне в шапке остаётся только иконка звонка: номер убираем из
     потока целиком, а не схлопываем шрифт в ноль. */
  .header__phone .header__number {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .header__phone .icon { width: 26px; height: 26px; }
  /* Иконка звонка — главное действие для аудитории 65+. Даём ей полноценную
     зону нажатия, а не 35x29, как получалось из голой иконки.

     Рамку и радиус НЕ трогаем: их задаёт chrome.css, одинаково на всех
     страницах. Здесь стояла своя светло-латунная рамка, и кнопка звонка
     на карточке машины оказывалась единственной на сайте в золотом
     ободке — мелочь, по которой страница читается чужой. */
  .header__phone {
    min-width: 48px; min-height: 48px;
    align-items: center; justify-content: center;
    flex: none;
  }

  /* Шапка на телефоне: логотип слева одной строкой, справа два одинаковых
     квадрата — звонок и меню. Логотип сжимается по ширине, но не переносится
     и не толкает кнопки за край: у body отключена горизонтальная прокрутка. */
  .header__inner { gap: 8px; min-height: 60px; }
  .logo {
    font-size: 20px; letter-spacing: -.03em;
    white-space: nowrap; min-width: 0; flex: 1 1 auto;
    overflow: hidden; text-overflow: ellipsis;
  }
  .logo small {
    font-size: 12px; letter-spacing: .04em; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* УДАЛЕНО. Здесь бургер и кнопка звонка описывались заново: коробки
     46×46 со светлой заливкой и рамкой --line-strong. Это остатки старой
     шапки карточки машины, которой давно нет — шапку собирает общий ui.js
     и красит chrome.css. Из-за этих правил кнопка звонка на карточке была
     единственной на сайте в светло-латунном ободке, а бургер и телефон
     стояли на других координатах, чем на остальных страницах. */

  /* Плавающий бар стоит поверх подвала — освобождаем под него место */
  .footer { padding-bottom: 96px; }

  .subbar__inner { min-height: 54px; }
  .crumbs li:not(:last-child) { display: none; }
  /* Обе кнопки подшапки ведут в заявку, прятать их подписи нельзя —
     иконка конверта без слов ничего не обещает. */
  
  .subbar__actions .btn { flex: 1; min-height: var(--h-btn-sm); padding: 0 12px; font-size: var(--fs-label); }
  .subbar__actions .btn .icon { width: 18px; height: 18px; }

  /* Первый экран телефона: фото + цена целиком. Каждый пиксель галереи,
     отданный сверх нужного, выталкивает цену за сгиб — а цена должна быть
     видна без прокрутки. */
  .gallery__stage { aspect-ratio: 16 / 10; }
  .gallery__nav { width: 44px; height: 44px; }
  .gallery__thumbs { padding: 8px; gap: 4px; }
  .gallery__thumb { width: 84px; height: 56px; }
  .gallery__caption { padding: 24px 12px 12px; font-size: var(--fs-label); }
  
  .vehicle__title { font-size: var(--fs-h1); }
  .vehicle__subtitle { margin-bottom: 12px; }
  .vehicle__stock { margin-bottom: 12px; }
  .price { padding: 12px 0; }

  /* Чек-лист: на телефоне вердикт справа съедает половину строки и текст
     остаётся в 108px. Уводим вердикт под текст, во вторую колонку. */
  .checklist li { grid-template-columns: 24px 1fr; row-gap: 4px; }
  .checklist__verdict { grid-column: 2; text-align: left; font-weight: 600; }

  .condition__grid { grid-template-columns: 1fr; }
  /* Шесть делений во flex не сжимаются ниже ширины своего текста и вылезают
     за карточку. Сетка режет их ровно на три колонки в два ряда. */
  .condition__scale { display: grid; grid-template-columns: repeat(3, 1fr); }
  .condition__scale li { padding: 8px 4px; font-size: var(--fs-label); min-width: 0; }
  .condition__scale li:nth-child(3n) { border-right: 0; }
  .condition__scale li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .condition__scale b { font-size: var(--fs-small); }
  .underside__grid { grid-template-columns: 1fr 1fr; }
  .drive { grid-template-columns: 1fr 1fr; }
  .plate { grid-template-columns: 1fr; }
  .decode__char { font-size: 21px; padding: 4px 8px; }
  .defects__item { grid-template-columns: 24px 1fr; }
  .defects__photo { grid-column: 2; justify-self: start; }
  .cta-row { grid-template-columns: 1fr; }
  .offer__form { grid-template-columns: 1fr; }
  .delivery__form { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .related__card:nth-child(n+3) { display: none; }

  /* ---- Что убрано с телефона ------------------------------------------
     Ниже — блоки, которые на узком экране либо повторяют уже сказанное,
     либо ведут в никуда. Вместе это около трёх экранов прокрутки, и ни
     одного уникального факта в них нет.
     --------------------------------------------------------------------- */

  /* Восемь ссылок подвала — все href="#", то есть навигация в никуда */
  .footer__grid { display: none; }

  /* Блок «How to buy» и карточку специалиста возвращаем: проверка показала,
     что обмен с доплатой, оформление для других штатов и обещание «не
     колл-центр» на странице больше нигде не встречаются. Дублей там нет. */

  /* «Возим только крытым» сказано трижды — оставляем один раз, в блоке
     о доставке, где это к месту */
  #deliveryEstimator .enclosed-note,
  #driveWidget .enclosed-note { display: none; }

  .steps li { grid-template-columns: 36px 1fr; }
  .steps li::before { width: 36px; height: 36px; }
  .timeline { padding-left: 24px; }
  .timeline__item::before { left: -23px; }
  
}

@media (max-width: 359.98px) {
  /* две колонки на 320px оставляют названию карточки 95px и текст сыпется */
  .related { grid-template-columns: 1fr; }
  .related__card:nth-child(n+2) { display: none; }
  /* на 320px дескриптор под логотипом не помещается в строку */
  .logo small { display: none; }
  .logo { font-size: 18px; }
}

/* Короткие экраны — iPhone SE и подобные, 667px высоты. Там первый экран
   на 180px короче обычного, поэтому режем всё, что стоит между фотографией
   и ценой: баннер, номер стока, ленту миниатюр. Цена важнее их всех. */
@media (max-width: 575.98px) and (max-height: 720px) {
  /* Плашку про демо-данные прятать нельзя — это единственное предупреждение,
     что машины не существует. Ужимаем до одной строки вместо скрытия. */
  
  .gallery__stage { aspect-ratio: 2 / 1; }
  .gallery__thumbs { padding: 4px; }
  .gallery__thumb { width: 74px; height: 48px; }
  .subbar__inner { min-height: 46px; }
  .vehicle__stock { display: none; }
  .vehicle__title { font-size: 21px; }
  .vehicle__subtitle { font-size: var(--fs-label); margin-bottom: 12px; }
  .price { padding: 12px 0; margin-bottom: 12px; }
  :root { --fs-price: 30px; }
}

/* ==========================================================================
   Печать и уменьшенное движение
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .subbar, .gallery__nav, .mobile-bar, .cta-stack, .modal, .toast { display: none !important; }
  
  .card { border-color: #999; break-inside: avoid; }

  /* Без этого в принтер уходили 22 пустые карточки: блоки проявляются по
     прокрутке, а печать берёт исходное состояние. Заодно раскрываем FAQ
     и свёрнутые списки — на бумаге прятать нечего. */
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Из галереи на бумагу идёт только показанный кадр: остальные 22 дали бы
     страницы пустых рамок. Миниатюры остаются — по ним видно весь набор. */
  .gallery__slide:not(.is-active) { display: none !important; }
  .gallery__nav { display: none !important; }
  .value-track__bar span { transform: none !important; }
  .faq__body { display: block !important; }
  .is-collapsible .collapsible__body { max-height: none !important; overflow: visible !important; }
  .is-collapsible .collapsible__body::after { display: none !important; }
  .collapsible__toggle { display: none !important; }
  .footer { background: #fff; color: #000; }   /* адрес и телефон нужны на бумаге */
  .footer a { color: #000; }
}

/* ==========================================================================
   VDP fixes
   ========================================================================== */

/* --- VDP fixes --- */

/* [3] Нижняя панель: выравниваем блок цены с названием машины */
.mobile-bar__price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.mobile-bar__price b {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  white-space: nowrap;
}
.mobile-bar__price span {
  display: block;
  font-size: var(--fs-label);
  line-height: 1.25;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

/* [9] Счётчик кадров виден всегда */
.gallery__counter { display: inline-flex !important; }

/* [9] Лейблы статуса в галерее скрыты */
.gallery__badges { display: none !important; }

/* [10] На мобильном шапка не закреплена — уезжает со скроллом */
@media (max-width: 767.98px) {
  .header {
    position: absolute;
  }
  
}
.vdp-desc { border-top: 1px solid var(--line); }
.vdp-desc:last-child { border-bottom: 1px solid var(--line); }
.vdp-desc summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 800; position: relative; }
.vdp-desc summary::-webkit-details-marker { display: none; }
.vdp-desc summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
.vdp-desc[open] summary::after { content: '−'; }
.vdp-desc > div { padding: 0 0 20px; }
.vdp-desc ul { margin: 0; padding-left: 20px; }
.vdp-desc li + li { margin-top: 8px; }
