:root {
  --void: #0e1111;
  --pit: #131919;
  --steel: #182020;
  --edge: #2a3434;
  --amber: #ff9549;
  --amber-deep: #f28434;
  --bone: #ffffff;
  --ash: #a1a5a5;
  --ash-dim: #889191;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 40px);
  --top-h: 72px;
  --lineup-h: 168px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 300 16px/1.5 "TT Tank", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
sup { font-size: .5em; line-height: 0; vertical-align: super; margin-left: 2px; }
sup a { color: var(--ash); }

.btn {
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: 4px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn--fill { background: var(--amber); color: #111; }
.btn--fill:hover { background: var(--amber-deep); }
.btn--line { border-color: var(--amber); color: var(--bone); }
.btn--line:not(:hover) { background: rgba(14, 17, 17, .45); }
.btn--line:hover { background: var(--amber); color: #111; }

/* Шапка прилипает: над первым экраном прозрачная, после прокрутки — плотная, чтобы меню читалось поверх фото */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: linear-gradient(to bottom, rgba(14, 17, 17, .7), rgba(14, 17, 17, 0));
  transition: background-color .2s ease, box-shadow .2s ease;
}
.top.is-scrolled { background: var(--void); box-shadow: 0 1px 0 var(--edge); }
.top__in {
  max-width: var(--wrap); height: var(--top-h); margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 32px;
}
.top__brands { display: flex; align-items: center; gap: 14px; }
.top__brands img { height: 28px; width: auto; }
.top__brands img + img { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); box-sizing: content-box; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.top__nav a { color: var(--bone); opacity: .85; transition: opacity .2s; }
.top__nav a:hover { opacity: 1; color: var(--amber); }
/* «Модели» — выпадающий список с миниатюрами из линейки: открывается наведением и кликом */
.top__models { position: relative; }
.top__models-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--bone); opacity: .85; transition: opacity .2s, color .2s;
}
.top__models-btn svg { transition: transform .2s ease; }
.top__models.is-open .top__models-btn, .top__models-btn:hover { opacity: 1; color: var(--amber); }
.top__models.is-open .top__models-btn svg { transform: rotate(180deg); }
.top__menu {
  position: absolute; top: calc(100% + 22px); left: -20px; min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: var(--pit); border: 1px solid var(--edge); border-radius: 4px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s .15s;
}
/* мостик над меню: пока курсор идёт от кнопки к списку, наведение не теряется */
.top__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.top__models.is-open .top__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease-out, transform .15s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .top__models:hover .top__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease-out, transform .15s ease-out; }
  .top__models:hover .top__models-btn svg { transform: rotate(180deg); }
}
.top__menu li + li { border-top: 1px solid var(--edge); }
.top__menu li:nth-child(5) { border-top-color: rgba(255, 255, 255, .35); }
.top__nav .top__menu a { display: flex; align-items: center; gap: 14px; padding: 6px 10px 6px 4px; border-radius: 3px; font-weight: 500; opacity: 1; }
.top__nav .top__menu a:hover { background: var(--steel); color: var(--bone); }
.top__menu img { width: 76px; height: auto; mix-blend-mode: lighten; }
.top__phone { font-weight: 500; white-space: nowrap; }
.top__cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
.top__burger { display: none; }

/* Первый экран */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--lineup-h)), 900px);
  display: flex; align-items: flex-end;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(14, 17, 17, .92) 0%, rgba(14, 17, 17, .9) 34%, rgba(14, 17, 17, .55) 46%, rgba(14, 17, 17, 0) 60%),
    linear-gradient(to top, var(--void) 0, rgba(14, 17, 17, 0) 12%);
}
.hero__in {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto; padding: calc(var(--top-h) + 48px) var(--gut) 64px;
}
.hero__text, .hero__actions { max-width: 640px; }
.hero__text { text-shadow: 0 1px 14px rgba(14, 17, 17, .55); }
.hero__kicker { margin: 0 0 16px; font-size: 15px; color: #d0d4d4; }
.hero__title {
  margin: 0; font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04;
  letter-spacing: -.01em; text-wrap: balance;
}
.hero__offer { margin: 28px 0 0; display: flex; flex-direction: column; }
.hero__offer-label { font-size: 16px; color: #d0d4d4; }
.hero__offer-sum { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--amber); }
.hero__offer-sum sup a { color: var(--amber); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Слайдер первого экрана: слайды лежат стопкой в одной ячейке сетки и сменяются проявлением; высота — по самому высокому */
.hero-slider { position: relative; display: grid; touch-action: pan-y; }
.hero-slider > .hero { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.hero-slider > .hero.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
/* переключатели справа на уровне кнопок; полоска — таймер: дошла до конца — следующий слайд, наведение ставит её на паузу */
.hero-nav {
  position: absolute; z-index: 2; bottom: 64px; right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  display: flex; gap: 8px;
}
.hero-nav__btn {
  position: relative; overflow: hidden; min-width: 190px; height: 48px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; background: rgba(14, 17, 17, .6);
  color: var(--ash); font: inherit; font-weight: 500; font-size: 14px; text-align: left; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.hero-nav__btn:hover, .hero-nav__btn.is-active { color: var(--bone); border-color: rgba(255, 255, 255, .45); }
.hero-nav__btn i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.hero-nav__btn.is-active i { animation: hero-progress 7s linear forwards; }
.hero-slider.is-paused .hero-nav__btn.is-active i { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }
/* на 821–1024 справа от кнопок слайда места нет — переключатели уходят в правый верхний угол, на фото */
@media (min-width: 821px) and (max-width: 1024px) {
  .hero-nav { top: calc(var(--top-h) + 24px); bottom: auto; }
}

/* Список с линией — приём со страниц моделей tank.ru */
.lines { list-style: none; margin: 24px 0 0; padding: 0; }
.lines li {
  padding: 6px 0 6px 18px; border-left: 2px solid rgba(255, 255, 255, .22);
  font-size: 16px; font-weight: 500;
}
.lines li:first-child { border-left-color: var(--amber); }

/* Линейка под первым экраном */
.lineup { background: var(--void); border-bottom: 1px solid var(--edge); }
.lineup__list {
  list-style: none; margin: 0 auto; padding: 0 var(--gut);
  max-width: var(--wrap); display: grid; grid-template-columns: repeat(6, 1fr);
}
.lineup__list li + li { border-left: 1px solid var(--edge); }
.lineup__list .lineup__wey { border-left-color: rgba(255, 255, 255, .35); }
.lineup__list a {
  display: flex; flex-direction: column; align-items: center; height: var(--lineup-h);
  padding: 14px 8px 18px; text-align: center; transition: background-color .2s ease;
}
.lineup__list a:hover { background: var(--pit); }
/* 190 px — ровно ширина ячейки в сетке 1320 и файла 1x, без пересжатия в браузере */
.lineup__list img { width: 100%; max-width: 190px; aspect-ratio: 7 / 3; object-fit: contain; mix-blend-mode: lighten; transition: transform .3s ease; }
.lineup__list a:hover img { transform: translateY(-3px); }
.lineup__list b { margin-top: 8px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.lineup__list span { font-size: 13px; color: var(--ash); }

/* Глава модели: фото до края экрана, текст в колонке сетки — как на страницах моделей tank.ru */
.chapter { padding: 56px 0 64px; }
.chapter__grid { display: grid; align-items: center; }
/* колонка текста не уже 420 px, чтобы две кнопки стояли в ряд; облёт забирает остальное */
@media (min-width: 1025px) {
  .chapter__grid { grid-template-columns: minmax(0, 1fr) calc(clamp(420px, 34vw, 480px) + 64px + max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)))); }
}
/* Облёт 360° из виджета tank.ru: кадры с прозрачным фоном прямо на фоне страницы (подложку убрали — её край резал колонку), перетаскиванием крутится, кружки меняют цвет */
.spin {
  margin: 0; align-self: stretch; display: flex; flex-direction: column;
  /* поля сверху и снизу как у колонки текста: плашка 360° встаёт вровень с подзаголовком, характеристики — с низом кнопок */
  min-height: 560px; padding: 24px 32px 24px max(32px, calc((100vw - var(--wrap)) / 2 + var(--gut)));
}
.spin__stage { position: relative; margin-block: auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin__stage:active { cursor: grabbing; }
.spin__stage::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 10%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
}
.spin__img { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.spin__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; font-weight: 500; font-size: 14px; color: var(--bone);
}
.spin__hint-m { display: none; }
.spin__hint { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ash-dim); transition: opacity .3s ease; }
.spin.is-touched .spin__hint { opacity: 0; }
.spin__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 20px; }
.spin__name { font-weight: 500; font-size: 15px; }
.spin__stock { font-size: 13px; color: var(--ash); }
.spin__colors { display: flex; gap: 10px; margin-left: auto; }
.spin__colors button {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; outline: 1px solid rgba(255, 255, 255, .25); outline-offset: -1px;
  transition: border-color .2s ease, transform .2s ease;
}
.spin__colors button:hover { transform: scale(1.08); }
.spin__colors button[aria-checked="true"] { border-color: var(--void); outline: 2px solid var(--amber); outline-offset: 0; }
.chapter__body {
  padding: 24px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 24px 64px;
}
.chapter__tag { margin: 0 0 8px; font-size: 15px; color: var(--ash); }
.chapter__name { margin: 0; font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: .01em; }
/* выгода и кредит — одна янтарная плашка, как выгода в карточках модели в Краснодаре */
.offer { margin: 24px 0 0; border: 1px solid rgba(255, 149, 73, .38); border-radius: 4px; background: rgba(255, 149, 73, .08); }
.offer p { margin: 0; }
.offer__main { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 16px; padding: 16px 20px 14px; }
.offer__label { grid-column: 1 / -1; font-size: 14px; color: var(--ash); }
.offer__sum { font-weight: 700; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; color: var(--amber); white-space: nowrap; }
.offer__sum sup a { color: var(--amber); }
.offer__stock { padding-bottom: 6px; font-size: 14px; color: var(--bone); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.offer__stock:hover { text-decoration-color: var(--amber); }
.offer__credit { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 12px 20px 14px; border-top: 1px solid rgba(255, 149, 73, .24); font-size: 14px; color: var(--ash); }
.offer__credit b { font-weight: 500; font-size: 16px; color: var(--bone); }
/* у WEY в плашке список выгод с текущего сайта дилера вместо строки кредита: одна колонка — в две пункты рвались по словам */
.offer__perks { list-style: none; margin: 0; padding: 12px 20px 14px; border-top: 1px solid rgba(255, 149, 73, .24); display: grid; gap: 5px; font-size: 14px; line-height: 1.35; color: var(--bone); }
.offer__perks li { position: relative; padding-left: 14px; }
.offer__perks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.lines--rich { margin-top: 28px; }
.lines--rich li { padding: 8px 0 8px 18px; }
.lines--rich b { display: block; font-weight: 500; font-size: 16px; }
.lines--rich span { display: block; margin-top: 6px; font-weight: 300; font-size: 14px; color: var(--ash); }

/* Аккордеон главы: открыт один пункт, фото слева переключается — как media-accordion на tank.ru */
.lines.lines--acc li { padding: 0 0 0 18px; border-left-color: rgba(255, 255, 255, .22); transition: border-color .25s ease; }
.lines.lines--acc li.is-open { border-left-color: var(--amber); }
.lines--acc button {
  display: block; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 16px; text-align: left; color: var(--ash);
  transition: color .2s ease;
}
.lines--acc button:hover, .lines--acc li.is-open button { color: var(--bone); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.lines--acc li.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body p { overflow: hidden; margin: 0; font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--ash); }
.lines--acc li.is-open .acc__body p { padding-bottom: 12px; }
.specs { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14px; }
.specs dt { color: var(--ash); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.specs[hidden] { display: none; }
/* у бензиновых и гибридных комплектаций разные цифры — переключатель как вкладки склада, только мельче */
.specs__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.specs__tabs ~ .specs { margin-top: 8px; }
.specs__tabs button {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--edge); border-radius: 4px; background: none; color: var(--bone);
  font: inherit; font-weight: 500; font-size: 13px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.specs__tabs span { font-weight: 400; color: var(--ash); }
.specs__tabs button[aria-pressed="true"] { border-color: rgba(255, 149, 73, .6); background: rgba(255, 149, 73, .1); }
.specs__tabs button[aria-pressed="true"] span { color: var(--amber); }
/* на компьютере характеристики стоят строкой под облётом: левая колонка добирает высоту текста справа, пустоты под цветами нет */
@media (min-width: 821px) {
  .spin .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin-top: 24px; border-top: 1px solid var(--edge); }
  .spin .specs div { flex-direction: column; gap: 4px; padding: 14px 0 0; border-bottom: 0; }
  .spin .specs dt { font-size: 13px; }
  .spin .specs dd { font-size: 18px; text-align: left; }
  .spin .specs__tabs ~ .specs div { padding-top: 10px; }
}
.chapter__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 821px) {
  .chapter__actions .btn { flex: 1 1 0; padding: 0 20px; }
}

/* Склад внутри главы */
.stock { max-width: var(--wrap); margin: 56px auto 0; padding: 0 var(--gut); }
.stock__title { margin: 0; font-weight: 700; font-size: 28px; }

/* вкладки комплектаций: число машин внутри вкладки, выбранная — в тон плашке выгоды */
.trims { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--edge); }
.trim {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 42px; padding: 10px 16px;
  border: 1px solid var(--edge); border-radius: 4px; background: none; color: var(--bone);
  font: inherit; font-weight: 500; font-size: 15px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .12s ease;
}
.trim span { font-weight: 400; font-size: 14px; color: var(--ash); }
.trim:active { transform: scale(.97); }
.trim[aria-pressed="true"] { border-color: rgba(255, 149, 73, .6); background: rgba(255, 149, 73, .1); }
.trim[aria-pressed="true"] span { color: var(--amber); }
.trim--order { border-style: dashed; color: var(--ash); }
@media (hover: hover) and (pointer: fine) {
  .trim:hover { border-color: var(--amber); }
}

.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
/* плитки перерисовываются при смене комплектации — короткое проявление показывает, что список обновился */
.car { background: var(--pit); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; animation: car-in .24s cubic-bezier(.23, 1, .32, 1) both; }
.car[hidden] { display: none; }
@keyframes car-in { from { opacity: 0; transform: translateY(8px); } }
.car__shot { position: relative; aspect-ratio: 4 / 3; background: var(--steel); }
.car__strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.car__strip::-webkit-scrollbar { display: none; }
.car__slide { position: relative; flex: 0 0 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; scroll-snap-align: start; cursor: zoom-in; }
.car__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.car__more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14, 17, 17, .62); font-weight: 500; font-size: 17px; color: var(--bone);
}
/* метки вплотную к углу фото: угол карточки скругляет их сам, наружу скруглён только правый нижний */
.car__tags { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; margin: 0; pointer-events: none; }
.car__tags span { padding: 6px 10px; border-radius: 0 0 4px 0; background: var(--amber); color: var(--void); font-size: 12px; font-weight: 500; }
.car__tags span + span { background: rgba(14, 17, 17, .82); color: var(--bone); }
.car__tags .car__tag-order { background: rgba(14, 17, 17, .82); color: var(--bone); }
.trims[hidden] { display: none; }
/* карточка «под заказ»: один кадр облёта на подложке с полом вместо фото из салона, без листания */
.car--order .car__shot { background: radial-gradient(70% 45% at 50% 82%, #2a3434 0, var(--steel) 70%); }
.car__render { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6% 2% 2%; }
.car__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(14, 17, 17, .72); color: var(--bone); font-size: 15px; cursor: pointer; opacity: 0; transition: opacity .2s ease;
}
.car__nav--prev { left: 8px; }
.car__nav--next { right: 8px; }
.car__shot:hover .car__nav { opacity: 1; }
.car__nav:hover { background: var(--amber); color: var(--void); }
.car__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.car__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background-color .2s ease, transform .2s ease; }
.car__dots i.is-on { background: var(--bone); transform: scale(1.25); }
.car__opts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.car__opts li { padding: 3px 8px; border: 1px solid var(--edge); border-radius: 3px; font-size: 12px; color: #c9cdcd; }
/* кнопка по тексту и по центру под сеткой: на всю ширину 1240 px она читается как отдельный блок, а не как продолжение списка */
.stock__more { display: flex; min-width: 280px; margin: 24px auto 0; }
.stock__more[hidden] { display: none; }
.car__count {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 3px;
  background: rgba(14, 17, 17, .78); font-size: 13px; font-weight: 500; color: var(--bone);
}

/* Галерея машины со склада: все фото из выгрузки, листается стрелками, свайпом и миниатюрами */
.gal {
  width: min(1180px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0;
  border: 0; border-radius: 4px; background: var(--pit); color: var(--bone); overflow: hidden;
}
.gal[open] { display: flex; flex-direction: column; }
.gal::backdrop { background: rgba(5, 7, 7, .86); }
.gal__head { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; }
.gal__head > div { flex: 1; min-width: 0; }
.gal__title { margin: 0; font-weight: 700; font-size: 18px; }
.gal__meta { margin: 2px 0 0; font-size: 13px; color: var(--ash); }
.gal__cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
.gal__close { width: 40px; height: 40px; border: 1px solid var(--edge); background: none; color: var(--bone); font-size: 16px; cursor: pointer; }
.gal__stage { position: relative; flex: 1; min-height: 0; background: #000; touch-action: pan-y; }
.gal__img { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 32px - 68px - 92px); aspect-ratio: 4 / 3; object-fit: contain; user-select: none; }
.gal__prev, .gal__next {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(14, 17, 17, .7); color: var(--bone); font-size: 18px; cursor: pointer;
}
.gal__prev { left: 12px; }
.gal__next { right: 12px; }
.gal__prev:hover, .gal__next:hover { background: var(--amber); color: var(--void); }
.gal__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 3px; background: rgba(14, 17, 17, .7); font-size: 13px; }
.gal__thumbs {
  display: flex; gap: 6px; padding: 10px 12px 12px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  /* полосу прокрутки прячем, а что лента листается, видно по затуханию краёв */
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.gal__thumbs::-webkit-scrollbar { display: none; }
html:has(dialog[open]) { overflow: hidden; }
.gal__thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: var(--steel); cursor: pointer; opacity: .6; transition: opacity .2s ease; }
.gal__thumbs button[aria-current="true"] { border-color: var(--amber); opacity: 1; }
.gal__thumbs button:hover { opacity: 1; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Заявка: одна модалка на все кнопки, заголовок и скрытые поля подставляются от кнопки */
.lead {
  width: min(460px, 100vw - 32px); padding: 36px 32px 32px; border: 0; border-radius: 4px;
  background: var(--pit); color: var(--bone);
}
.lead::backdrop { background: rgba(5, 7, 7, .86); }
.lead > .lead__close {
  position: absolute; right: 12px; top: 12px; width: 40px; height: 40px;
  border: 1px solid var(--edge); background: none; color: var(--bone); font-size: 16px; cursor: pointer;
}
.lead__title { margin: 0 40px 0 0; font-weight: 700; font-size: 24px; line-height: 1.2; }
.lead__text { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ash); }
.lead__form { display: flex; flex-direction: column; }
.lead__field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--ash); }
.lead__field input {
  height: 48px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 3px;
  background: var(--void); color: var(--bone); font: inherit; font-size: 16px;
}
.lead__field input:focus { outline: none; border-color: var(--amber); }
.lead__agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--ash); }
.lead__agree input { margin: 2px 0 0; accent-color: var(--amber); }
.lead__agree a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.lead__agree a:hover { text-decoration-color: var(--amber); }
.lead__agree + .lead__agree { margin-top: 10px; }
.lead__send { margin-top: 22px; width: 100%; }
.lead__done { display: none; }
.lead.is-sent .lead__form { display: none; }
.lead.is-sent .lead__done { display: block; }
.lead__done .btn { margin-top: 24px; width: 100%; }
.car__body { padding: 16px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.car__trim { margin: 0; font-weight: 500; font-size: 17px; }
.car__meta { margin: 2px 0 0; font-size: 13px; color: var(--ash); }
.car__benefit { margin: auto 0 0; padding-top: 14px; font-size: 13px; color: var(--ash); }
.car__price { margin: 0; font-weight: 700; font-size: 22px; color: var(--amber); }
.car__cta { margin-top: 16px; min-height: 42px; padding: 0 16px; font-size: 14px; align-self: stretch; }

/* Сноски превью */
.notes { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gut); background: linear-gradient(var(--edge), var(--edge)) var(--gut) 0 / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.notes ol { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--ash-dim); }
.notes li + li { margin-top: 8px; }
.notes li:target { color: var(--bone); }
/* сноски и реквизиты свёрнуты: нужны по закону, но читать их будут единицы; ссылка-сноска раскрывает блок сама */
.notes__box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 4px 0; font-size: 14px; color: var(--ash); cursor: pointer; list-style: none;
}
.notes__box summary::-webkit-details-marker { display: none; }
.notes__box summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--amber); transition: transform .2s ease; }
.notes__box[open] summary::after { transform: rotate(45deg); }
.notes__box summary:hover { color: var(--bone); }
.notes__box ol { margin-top: 20px; }
.notes__legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--edge); font-size: 12px; line-height: 1.5; color: var(--ash-dim); }
.notes__legal p { margin: 0; }
.notes__legal p + p { margin-top: 6px; }

/* Главы WEY: облёта у бренда нет — рендер в выбранном цвете (как в Краснодаре), фото импортёра открываются плашкой */
.shots__stage { cursor: default; }
.shots__photos { background: none; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.shots__photos:hover { border-color: var(--amber); color: var(--amber); }
.shots .spin__img { transition: opacity .2s ease; }
.chapter--wey { border-top: 1px solid var(--edge); }
#weyv9x { border-top-color: rgba(255, 255, 255, .35); }

/* Кредит, лизинг и трейд-ин — отдельные блоки: слева условие крупной цифрой, справа цифры, по которым выбирают */
.section__title { margin: 0; font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; text-wrap: balance; }
.deal { border-top: 1px solid var(--edge); }
.deal--lease { background: var(--pit); border-top: 0; }
.deal__in, .contacts__in { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut); }
/* колонки одной высоты: кнопка слева прижата к низу, строки справа делят высоту поровну — низы совпадают */
.deal__in { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px 96px; align-items: stretch; }
.deal__head { display: flex; flex-direction: column; align-items: flex-start; }
.deal__head .lines { margin-bottom: 32px; }
.deal__head .btn { margin-top: auto; }
.deal__side { display: flex; flex-direction: column; }
.deal__pay { flex: 1; display: flex; flex-direction: column; }
.deal__pay div { flex: 1; align-items: center; }
.buy__big { margin: 16px 0 0; font-weight: 700; font-size: clamp(36px, 3.4vw, 52px); line-height: 1.05; color: var(--amber); }
.buy__big sup a { color: var(--amber); }
.buy__label { display: block; margin-bottom: 2px; font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--ash); }
.deal__label { margin: 0 0 8px; font-size: 15px; color: var(--ash); }
/* подпись к данным справа стоит в левой колонке, под условиями; стрелка показывает, где смотреть */
.deal__head .deal__label--side { margin: -8px 0 24px; }
.deal__label--side::after { content: " →"; color: var(--amber); }
/* в лизинге таблица слева, условия справа — подпись показывает влево */
@media (min-width: 1025px) {
  /* колонка текста по ширине содержимого: текст прижат к правому краю, таблица забирает остальное */
  .deal--lease .deal__in { grid-template-columns: minmax(0, 1fr) fit-content(480px); }
  .deal--lease .deal__head { order: 2; }
  .deal--lease .deal__label--side::after { content: none; }
  .deal--lease .deal__label--side::before { content: "← "; color: var(--amber); }
}
.deal__pay { margin-top: 0; grid-template-columns: 1fr; }
.deal__pay div { padding: 16px 0; font-size: 16px; }
.deal__pay dd { font-size: 20px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.deal__pay div:last-child dd { font-size: 16px; font-weight: 500; color: var(--bone); }
.deal__pay sup a { color: var(--ash); }
.lease__scroll { overflow-x: auto; flex: 1; }
.deal__side .lease__table { height: 100%; }
.lease__table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.lease__table th, .lease__table td { padding: 12px 8px; border-top: 1px solid var(--edge); text-align: right; white-space: nowrap; }
.lease__table th:first-child { padding-left: 0; text-align: left; }
.lease__table td:last-child { padding-right: 0; }
.lease__table thead th { border-top: 0; font-weight: 400; font-size: 13px; color: var(--ash); }
.lease__table tbody th { font-weight: 500; }
.lease__table tbody tr:first-child td:nth-child(-n+3) { color: var(--amber); font-weight: 500; }
.lease__note { margin: 0; padding-top: 12px; border-top: 1px solid var(--edge); font-size: 13px; color: var(--ash); }
/* на узких экранах колонка таблицы меньше 520 px — та же компактная таблица, что на телефоне, без прокрутки внутри блока */
@media (max-width: 1240px) {
  .lease__table { font-size: 13px; }
  .lease__table th, .lease__table td { padding: 10px 3px; }
  .lease__table thead th { font-size: 11px; }
}

/* из чего складывается выгода трейд-ина: обычный трейд-ин и сверху лояльный — плашкой, как выгода в главах моделей */
.ti-sum { align-self: stretch; margin: 20px 0 0; }
.ti-sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 20px; font-size: 15px; color: var(--bone); }
.ti-sum__row + .ti-sum__row { border-top: 1px solid rgba(255, 149, 73, .24); }
.ti-sum__row b { flex: none; font-weight: 700; font-size: 18px; color: var(--amber); white-space: nowrap; }
.ti-sum__row small { display: block; margin-top: 4px; font-size: 13px; color: var(--ash); }
.ti-sum__row span { font-weight: 500; }
/* форма оценки трейд-ина — из краснодарского лендинга: марка, модель, год, телефон; поля в тон модалке заявки */
.ti { display: flex; flex-direction: column; flex: 1; }
.ti[hidden] { display: none; }
.ti__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ti__field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--ash); }
.ti__field input:not([type="hidden"]), .ti__select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 3px;
  background-color: var(--void); color: var(--bone); font: inherit; font-size: 16px;
}
.ti__field input:focus { outline: none; border-color: var(--amber); }
/* свой список вместо <select>: раскрывается вниз, высота ограничена, у марки и модели есть поиск */
.ti__select { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; transition: border-color .2s ease; }
.ti__select span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ti__select svg { flex: none; color: var(--amber); transition: transform .2s ease; }
.ti__select.is-empty { color: var(--ash); }
.ti__select:disabled { opacity: .5; cursor: default; }
.ti__select:focus-visible, .ti__field.is-open .ti__select { outline: none; border-color: var(--amber); }
.ti__field.is-open .ti__select svg { transform: rotate(180deg); }
.ti__field.is-error .ti__select { border-color: #e5484d; }
.ti__menu {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: none; flex-direction: column;
  background: var(--pit); border: 1px solid var(--edge); border-radius: 3px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); overflow: hidden;
}
.ti__field.is-open .ti__menu { display: flex; }
.ti__search { flex: none; margin: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 3px; background: var(--void); color: var(--bone); font: inherit; font-size: 15px; }
.ti__search:focus { outline: none; border-color: var(--amber); }
.ti__list { overflow-y: auto; overscroll-behavior: contain; padding: 0 0 6px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.ti__option { display: block; width: 100%; padding: 9px 14px; border: 0; background: none; color: var(--bone); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ti__option:hover { background: var(--steel); }
.ti__option.is-active { color: var(--amber); font-weight: 500; }
.ti__group { margin: 6px 0 0; padding: 8px 14px 4px; font-size: 12px; font-weight: 500; color: var(--ash-dim); }
.ti__empty { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--ash); }
.ti__send { align-self: flex-start; margin-top: 24px; }
.ti .lead__agree { margin-top: 16px; }
.ti .lead__agree + .lead__agree { margin-top: 10px; }
.ti__done { padding: 24px 0; }

/* Контакты: адрес и кнопки слева, карта справа на всю высоту блока */
.contacts { background: var(--pit); }
.contacts__in { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 48px; align-items: stretch; }
.contacts__info .lines--rich { margin-top: 28px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contacts__map { min-height: 440px; border-radius: 4px; overflow: hidden; background: var(--steel); }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.ymap-pin { position: absolute; left: -27px; top: -72px; width: 54px; height: 72px; }
.ymap-pin__badge {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px;
  border: 3px solid var(--amber); border-radius: 50%; background: var(--void);
}
.ymap-pin__badge::after { content: ""; position: absolute; top: 100%; left: 50%; translate: -50% -6px; border: 4px solid transparent; border-top: 11px solid var(--amber); }
.ymap-pin::after {
  content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 11px; height: 11px;
  border: 3px solid var(--amber); border-radius: 50%; background: var(--void);
}
.ymap-pin img { position: relative; z-index: 1; }

.foot { border-top: 1px solid var(--edge); background: var(--void); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gut) 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; font-size: 13px; color: var(--ash-dim); }
.foot__brands { display: flex; align-items: center; gap: 14px; }
.foot__brands img { height: 24px; width: auto; opacity: .8; }
.foot__docs { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.foot__docs a { color: var(--ash); transition: color .2s ease; }
.foot__docs a:hover { color: var(--bone); }
.foot__phone { margin-left: auto; font-weight: 500; font-size: 15px; color: var(--bone); }

@media (max-width: 1024px) {
  .contacts__in { grid-template-columns: 1fr; }
  /* в одну колонку: подпись «↓», под ней платежи или таблица, кнопка — в самом конце */
  .deal__in { display: flex; flex-direction: column; gap: 0; }
  .deal__head { display: contents; }
  .deal__side { order: 1; }
  .deal__head .btn { order: 2; margin-top: 28px; }
  .deal__label--side::after { content: " ↓"; }
}
@media (max-width: 820px) {
  .deal__in, .contacts__in { padding: 48px var(--gut); }
  .deal__head { align-items: stretch; }
  .deal__head .btn, .contacts__actions .btn, .ti__send { width: 100%; }
  .ti__grid { grid-template-columns: 1fr; }
  .ti-sum__row { flex-direction: column; gap: 4px; }
  .contacts__actions { flex-direction: column; }
  .contacts__map { min-height: 340px; }
  .foot__in { justify-content: space-between; }
  .foot__phone { margin-left: 0; }
  /* на телефоне таблица помещается целиком, без горизонтальной прокрутки */
}


/* Плашка про cookie: внизу слева, не перекрывает кнопки по центру экрана */
.cookie {
  position: fixed; z-index: 20; left: 16px; bottom: 16px; max-width: 440px; display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--pit); border: 1px solid var(--edge); border-radius: 4px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  font-size: 13px; line-height: 1.45; color: var(--ash);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.cookie__ok { flex: none; min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 820px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

/* Страницы документов: сканы ООО «ФормулаА», как у дилера */
.doc-page .top { position: sticky; }
.doc__back { margin-left: auto; font-size: 15px; color: var(--ash); transition: color .2s ease; }
.doc__back:hover { color: var(--amber); }
.doc { max-width: 960px; margin: 0 auto; padding: 40px var(--gut) 64px; }
.doc__title { margin: 0; font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; text-wrap: balance; }
.doc__meta { margin: 12px 0 0; font-size: 14px; color: var(--ash); }
.doc__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.doc__nav a { padding: 8px 12px; border: 1px solid var(--edge); border-radius: 4px; font-size: 13px; color: var(--ash); transition: border-color .2s ease, color .2s ease; }
.doc__nav a:hover { color: var(--bone); border-color: var(--amber); }
.doc__nav a[aria-current="page"] { color: var(--bone); border-color: rgba(255, 149, 73, .6); background: rgba(255, 149, 73, .1); }
.doc__pages { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.doc__pages img { width: 100%; height: auto; border-radius: 2px; background: #fff; }

@media (min-width: 821px) and (max-height: 820px) {
  .hero__in { padding-top: calc(var(--top-h) + 24px); padding-bottom: 40px; }
  .hero__kicker { margin-bottom: 10px; }
  .hero__title { font-size: clamp(34px, 3.6vw, 50px); }
  .hero__offer { margin-top: 18px; }
  .lines { margin-top: 16px; }
  .lines li { padding: 4px 0 4px 18px; }
  .hero__actions { margin-top: 24px; }
  .hero-nav { bottom: 40px; }
}

@media (max-width: 1180px) {
  .top__nav { gap: 20px; font-size: 14px; }
  .top__cta { display: none; }
  .hero::after {
    background:
      linear-gradient(100deg, rgba(14, 17, 17, .92) 0%, rgba(14, 17, 17, .88) 46%, rgba(14, 17, 17, .45) 60%, rgba(14, 17, 17, 0) 74%),
      linear-gradient(to top, var(--void) 0, rgba(14, 17, 17, 0) 12%);
  }
}

@media (max-width: 1024px) {
  .chapter__grid { grid-template-columns: 1fr; }
  .spin { position: relative; min-height: 0; padding: 28px var(--gut) 20px; }
  .spin__badge { position: absolute; left: var(--gut); top: 28px; z-index: 2; }
  .chapter__body { padding: 32px var(--gut) 0; max-width: 720px; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top__nav {
    position: fixed; inset: var(--top-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--void); padding: 8px var(--gut) 24px; margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .top__nav a { padding: 14px 0; border-bottom: 1px solid var(--edge); font-size: 17px; }
  .top__nav { max-height: calc(100dvh - var(--top-h)); overflow-y: auto; }
  .top__models-btn { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--edge); font-size: 17px; opacity: .85; }
  .top__menu {
    position: static; display: none; min-width: 0; padding: 4px 0; border: 0; border-radius: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
    grid-template-columns: 1fr 1fr; column-gap: 12px;
  }
  .top__menu::before { content: none; }
  .top__models.is-open .top__menu { display: grid; }
  .top__menu li + li, .top__menu li:nth-child(5) { border-top: 0; }
  .top__nav .top__menu a { padding: 8px 0; border-bottom: 0; font-size: 15px; gap: 10px; }
  .top__menu img { width: 64px; }
  .menu-open .top__nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .menu-open .top { background: var(--void); position: fixed; }
  .top__phone { margin-left: auto; }
  .top__burger {
    display: block; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
  }
  .top__burger span, .top__burger span::before, .top__burger span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: var(--bone); content: ""; transition: transform .2s ease;
  }
  .top__burger span { top: 19px; }
  .top__burger span::before { left: 0; top: -7px; }
  .top__burger span::after { left: 0; top: 7px; }
  .menu-open .top__burger span { background: transparent; }
  .menu-open .top__burger span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .top__burger span::after { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 820px) {
  .gal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .gal__head { flex-wrap: wrap; padding: 10px 12px; }
  .gal__cta { order: 3; flex-basis: 100%; }
  .gal__img { max-height: none; }
  .gal__prev, .gal__next { width: 40px; height: 40px; }
  .gal__thumbs button { width: 72px; }
  .spin__colors { margin-left: 0; flex-basis: 100%; }
  :root { --top-h: 60px; --lineup-h: 132px; }
  .top__brands { gap: 10px; }
  .top__brands img { height: 24px; }
  .top__brands img + img { padding-left: 10px; }
  .top__phone { font-size: 14px; }
  .top { background: var(--void); }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero::after { content: none; }
  .hero__in { display: contents; }
  .hero__text { order: 1; padding: calc(var(--top-h) + 20px) var(--gut) 0; }
  .hero__bg { order: 2; position: relative; margin-top: 16px; aspect-ratio: 960 / 690; height: auto; }
  .hero__bg img { object-position: 50% 50%; }
  .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, var(--void) 0, rgba(14, 17, 17, 0) 22%, rgba(14, 17, 17, 0) 80%, var(--void) 100%);
  }
  .hero__actions { order: 3; flex-direction: column; margin: 0; padding: 4px var(--gut) 24px; }
  .hero__actions .btn { width: 100%; }
  /* на телефоне переключатели — строкой под слайдом */
  .hero-nav { position: static; grid-area: 2 / 1; padding: 0 var(--gut) 20px; }
  /* слайды разной высоты: у короткого фото растягивается и заполняет разницу, пустоты под кнопками нет */
  .hero-slider .hero__bg { flex: 1 0 auto; }
  .hero-nav__btn { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font-size: 13px; }
  .hero__kicker { font-size: 13px; margin-bottom: 10px; }
  .hero__offer { margin-top: 16px; }
  .lines { margin-top: 14px; }
  .lines li { font-size: 14px; padding: 4px 0 4px 14px; }
  .lineup__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0; -webkit-overflow-scrolling: touch;
  }
  .lineup__list::-webkit-scrollbar { display: none; }
  .lineup__list li { flex: 0 0 40%; scroll-snap-align: start; }
  .lineup__list b { font-size: 15px; }
  .lineup__list span { font-size: 12px; }
  .chapter { padding: 40px 0 48px; }
  /* на телефоне облёт встаёт между текстом и кнопками: сначала про машину, потом покрутить, потом заявка */
  .chapter__grid { display: flex; flex-direction: column; align-items: stretch; }
  .chapter__body { display: contents; }
  .chapter__body > * { margin-left: var(--gut); margin-right: var(--gut); }
  .spin { order: 1; margin-top: 24px; }
  .chapter__actions { order: 3; }
  .spin__hint-d { display: none; }
  .spin__hint-m { display: inline; }
  .spin__hint { font-size: 14px; color: var(--ash); }
  .chapter__actions { flex-direction: column; }
  .chapter__actions .btn { width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .stock { margin-top: 40px; }
  .stock__title { font-size: 22px; }
  /* на телефоне склад — список: машины одной колонкой */
  .rail { grid-template-columns: 1fr; }
  .stock__more { width: 100%; }
  .car__nav { display: none; }
}

@media (max-width: 400px) {
  .top__brands img[alt="WEY"] { display: none; }
  .top__brands img[alt="WEY"] + img { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* без анимации нет и автосмены слайдов: выбранный переключатель просто подсвечен целиком */
  .hero-nav__btn.is-active i { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
