/* ==========================================================================
   home.css — главная страница.

   Замысел: страница идёт чередованием «документ / гараж». Светлые песочные
   полосы — это бумага, факты и цифры. Тёмные — гараж, где машину показывают.
   Тёмное нужно не для красоты: студийные фото сняты на чёрном фоне и на
   песочном теряются, а на тёмном читаются как в шоуруме.

   Порядок полос:
     герой (тёмный) → плитки (песок) → витрина (песок) → доказательство (тёмный)
     → два калькулятора (песок) → порядок покупки (зелёный) → шоурум (тёмный)
     → вопросы (песок)
   ========================================================================== */

/* ==========================================================================
   1. ПЕРВЫЙ ЭКРАН
   Машина занимает весь фон, текст поверх. Товар в первом экране — правило
   для этой аудитории: человек 65+ пришёл смотреть машины, а не читать о нас.
   ========================================================================== */
/* Первый экран занимает окно целиком: --chrome-h ставит ui.js по фактической
   высоте шапки. Это именно min-height — на низком экране содержимое всегда
   важнее и просто раздвигает блок, ничего не обрезается. */
.hero {
  position: relative; overflow: hidden; background: var(--night); isolation: isolate;
  min-height: calc(100vh - var(--chrome-h, 137px));
  display: flex; flex-direction: column;
}
@supports (height: 100dvh) {
  /* На телефоне адресная строка съедает часть 100vh — dvh считает по факту */
  .hero { min-height: calc(100dvh - var(--chrome-h, 75px)); }
}
.hero > .container { flex: 1; display: flex; flex-direction: column; }
/* Цифры прижаты к низу экрана, текст — к центру оставшегося места */
.hero__inner { flex: 1; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Кадр сдвинут вправо: машина уходит из-под заголовка, а не стоит за ним */
  object-position: 64% center;
  /* Медленный наезд: кадр живёт, но не отвлекает от заголовка */
  animation: heroDrift 26s ease-in-out infinite alternate;
}
/* Перетекание кадров: все лежат стопкой, видимый — с классом is-on.
   Перекрытие делает opacity, а не display: иначе на смене мигает фон. */
.hero__frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__frame.is-on { opacity: 1; }
@keyframes heroDrift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.13) translate3d(-1.5%,-1%,0); } }
@media (prefers-reduced-motion: reduce) { .hero__media img, .hero__media video { animation: none; transform: scale(1.04); } }

/* Две заливки: вертикальная сажает низ кадра, боковая держит контраст текста */
.hero__media:after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12,10,8,.94) 0%, rgba(12,10,8,.82) 34%, rgba(12,10,8,.40) 62%, rgba(12,10,8,.55) 100%),
    linear-gradient(to top, rgba(12,10,8,.92) 0%, rgba(12,10,8,0) 46%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(48px, 7vw, 80px) 0 0; }
.hero__text { max-width: 620px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 700 var(--fs-micro)/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 16px;
}
.hero__eyebrow span { color: var(--on-night-2); letter-spacing: .1em; white-space: nowrap; }
.hero__eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: var(--on-night-2); opacity: .6; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.02em;
  color: #fff; margin: 0 0 20px; max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.5);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead {
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #e6dfd0;
  max-width: 44ch; margin: 0 0 28px; text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__call {
  /* Без justify-content номер прижимался к левому краю кнопки: на телефоне
     кнопка тянется во всю ширину, и подпись оказывалась не по центру. */
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h-btn-lg); padding: 0 24px;
  border: 1px solid rgba(245,240,230,.34); border-radius: var(--radius-btn);
  background: rgba(245,240,230,.06); color: #fff; text-decoration: none;
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  backdrop-filter: blur(3px); white-space: nowrap;
}
.hero__call:hover { background: rgba(245,240,230,.14); border-color: rgba(245,240,230,.6); color: #fff; }
.hero__call svg { width: 20px; height: 20px; opacity: .85; }

/* Полоса цифр внутри героя — факты сразу под призывом, без отдельной секции */
.hero__facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--night-line);
  margin-top: clamp(48px, 7vw, 80px);
}
.hero__fact { padding: 24px 0 28px; text-align: center; position: relative; }
.hero__fact + .hero__fact:before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 30px;
  width: 1px; background: var(--night-line);
}
.hero__fact b {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero__fact span { display: block; margin-top: 8px; font-size: var(--fs-label); color: var(--on-night-2); }


/* ==========================================================================
   2. ПЛИТКИ ВХОДА В ТОВАР
   На 24 машинах фильтры избыточны. Человек говорит «покажите Camaro» —
   плитка делает это одним нажатием и сразу показывает, сколько их есть.
   ========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--night);
  text-decoration: none; aspect-ratio: 3/4;
  border: 1px solid var(--line);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s var(--ease); opacity: .82;
}
.tile:hover img { transform: scale(1.07); opacity: .92; }
.tile:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,.9) 6%, rgba(12,10,8,.28) 52%, rgba(12,10,8,.06) 100%);
}
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 20px; z-index: 1; }
.tile__name {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: var(--fs-h3); color: #fff; line-height: 1.15;
  /* На 320px в две колонки плитке остаётся 106 пикселей, и «Convertibles»
     при 20px не влезает: длинное слово переносить некуда, оно обрезается. */
  overflow-wrap: break-word;
}
@media (max-width: 400px) { .tile__name { font-size: 17px; } }
.tile__count {
  display: inline-block; margin-top: 8px; font-size: var(--fs-label);
  color: var(--on-night-2);
}
.tile__rule { display: block; height: 2px; width: 26px; background: var(--gold); margin-top: 12px; transition: width .35s var(--ease); }
.tile:hover .tile__rule { width: 62px; }
.tile:focus-visible { box-shadow: var(--focus); }

/* ==========================================================================
   3. ВИТРИНА
   ========================================================================== */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--card-gap); }
.showcase-more { text-align: center; margin-top: 40px; }

/* Шапка полосы с кнопкой справа */


/* ==========================================================================
   4. ДОКАЗАТЕЛЬСТВО — фотографии
   Самый важный блок сайта. Покупка вслепую на $35 000 упирается в вопрос
   «а что там снизу». Слова «мы всё снимаем» ничего не стоят, шестнадцать
   кадров днища и моторного отсека — стоят.
   ========================================================================== */
.proof__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }

.proof__picker { display: flex; flex-direction: column; gap: 8px; }
.proof__pick {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px 8px 8px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-btn);
  color: var(--on-night-2); font: 400 var(--fs-small)/1.3 var(--font-body);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.proof__pick img { width: 62px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); flex: 0 0 auto; }
.proof__pick span { min-width: 0; }
.proof__pick b { display: block; font-weight: 600; color: var(--on-night); font-size: var(--fs-small); }
.proof__pick i { display: block; font-style: normal; font-size: var(--fs-micro); margin-top: 4px; opacity: .8; }
.proof__pick:hover { background: var(--night-2); border-color: var(--night-line); }
.proof__pick.is-on { background: var(--night-2); border-color: var(--gold); }
.proof__pick.is-on b { color: var(--gold); }

.proof__shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.proof__shot {
  display: block; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  border-radius: var(--radius-md); background: var(--night-2); aspect-ratio: 4/3;
  opacity: 0; transform: translateY(10px);
  animation: shotIn .4s var(--ease) forwards;
}
@keyframes shotIn { to { opacity: 1; transform: none; } }
.proof__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.proof__shot:hover img { transform: scale(1.08); }
.proof__note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--night-line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: var(--fs-small); color: var(--on-night-2);
}
.proof__note a { color: var(--gold); }
.proof__note a:hover { color: #e0bd45; }

/* Просмотр кадра во весь экран */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(10,8,6,.94); }
.lightbox.is-open { display: flex; align-items: center; justify-content: center; padding: 32px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: var(--h-btn); height: var(--h-btn);
  border: 1px solid rgba(245,240,230,.3); background: rgba(245,240,230,.08);
  color: #fff; border-radius: var(--radius-btn); cursor: pointer; font-size: 22px; line-height: 1;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox__close:active { transform: translateY(1px); }
.lightbox__close:hover { background: rgba(245,240,230,.18); }


/* ==========================================================================
   5–6. ДВА КАЛЬКУЛЯТОРА
   Доставка и платёж — два вопроса, из-за которых кладут трубку. Ответ
   на странице снимает звонок-разведку и приводит человека уже готовым.
   ========================================================================== */
.asks { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.ask {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
  /* Колонкой + растяжка по ряду: карточки разной длины давали рваный ряд.
     Список прижат книзу, лишний воздух уходит в середину, а не в хвост. */
  display: flex; flex-direction: column; min-width: 0;
}
.ask h3 { font-size: var(--fs-h3); margin: 0 0 4px; }
.ask__sub { font-size: var(--fs-small); color: var(--ink-muted); margin: 0 0 20px; }

.ask__form { display: flex; gap: 8px; }
.ask__form input {
  flex: 1 1 auto; min-width: 0; height: var(--h-btn); padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  font: 400 var(--fs-base)/1 var(--font-body); background: var(--bg); color: var(--ink);
}
.ask__form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ask__hint { margin: 12px 0 0; font-size: var(--fs-label); color: var(--ink-soft); }

.ask__out { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: none; }
.ask__out.is-shown { display: block; animation: shotIn .35s var(--ease) forwards; }
.ask__rows { display: grid; gap: 12px; }
.ask__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: var(--fs-small); }
.ask__row dt { color: var(--ink-muted); }
.ask__row dd { font-weight: 600; text-align: right; }
.ask__row--total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.ask__row--total dt { color: var(--ink); font-weight: 600; }
.ask__row--total dd { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--green); }
.ask__free { color: var(--green); }

/* Ползунки платежа */
.ask__field { margin-bottom: 20px; }
.ask__field:last-of-type { margin-bottom: 4px; }
.ask__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: var(--fs-small); }
.ask__label b { font-family: var(--font-heading); font-size: var(--fs-base); }
.ask__field select,
.ask__field input[type="range"] { width: 100%; }
.ask__field select {
  min-width: 0; max-width: 100%; text-overflow: ellipsis;
  height: var(--h-btn); padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--bg); color: var(--ink);
  font: 400 var(--fs-small)/1 var(--font-body); cursor: pointer;
}
.ask__field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -8px;
  border-radius: 50%; background: var(--green); border: 3px solid var(--surface);
  box-shadow: 0 1px 5px rgba(34,31,26,.32);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--green);
  border: 3px solid var(--surface); box-shadow: 0 1px 5px rgba(34,31,26,.32);
}
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.ask__ticks { display: flex; justify-content: space-between; font-size: var(--fs-micro); color: var(--ink-soft); margin-top: 2px; }
.is-ticking { animation: tick .32s var(--ease); }
@keyframes tick { 40% { transform: translateY(-3px); } }


/* ==========================================================================
   8. ШОУРУМ
   Живое здание и адрес — доказательство, что это дилерский центр,
   а не объявление с телефона.
   ========================================================================== */
.place { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.place__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--night-2); }
.place__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.place__photo:hover img { transform: scale(1.03); }
.place h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 16px; }
.place p { color: var(--on-night-2); margin: 0 0 24px; }
.place__list { display: grid; gap: 16px; margin: 0 0 28px; }
.place__item { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); }
.place__item svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.place__item b { display: block; color: #fff; font-weight: 600; }
.place__item span { color: var(--on-night-2); }
/* Пояснение под строкой: Аризона не переводит часы — покупателю из
   другого штата это экономит час ошибки полгода в году. */
.place__item i { display: block; margin-top: 4px; font-style: normal;
                 font-size: var(--fs-label); color: var(--on-night-2); opacity: .8; }
.place__actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ==========================================================================
   Отступы полос и раскладка на узких экранах
   ========================================================================== */
.hero > .container { padding-top: 0; padding-bottom: 0; }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .proof__grid { grid-template-columns: 250px 1fr; gap: 28px; }
  .proof__shots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  /* Липкая колонка на узком экране только мешает: она уезжает вместе
     с вопросами и съедает первый экран блока. */
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .asks { grid-template-columns: minmax(0,1fr); }
  .place { grid-template-columns: 1fr; gap: 28px; }
  .hero__text { max-width: 26ch; }
}

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { aspect-ratio: 4/3; }
  /* Подборщик машин уезжает в горизонтальную ленту: вертикальный список
     на телефоне отодвигал фотографии на второй экран. */
  .proof__grid { grid-template-columns: 1fr; gap: 20px; }
  .proof__picker {
    flex-direction: row; overflow-x: auto; gap: 8px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
    scroll-snap-type: x mandatory;
  }
  .proof__pick { flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
  .proof__shots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__fact:nth-child(3):before, .hero__fact:nth-child(3) { border-top: 0; }
  .hero__fact:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .hero__fact:nth-child(3):before { display: none; }
  .ask { padding: 20px; }
}

@media (max-width: 560px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .hero__text { max-width: none; }
  .hero__actions .btn, .hero__call { width: 100%; }
  .proof__shots { grid-template-columns: repeat(2, 1fr); }
  .lightbox.is-open { padding: 12px; }
}


/* ── Добавлено после первого замера ─────────────────────────────────────── */

/* Карточка доставки была вдвое короче карточки платежа — ряд стоял криво.
   Список закрывает и пустоту, и вопрос «а что вообще входит в эти деньги». */
.ask__incl { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ask__incl li { position: relative; padding-left: 28px; font-size: var(--fs-small); color: var(--ink-muted); }
.ask__incl li:before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Пять машин в подборщике заметно короче ленты из шестнадцати кадров */
.proof__aside { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--night-line); }
.proof__aside p { font-size: var(--fs-small); color: var(--on-night-2); margin: 0 0 12px; }
.proof__aside .btn { width: 100%; }
@media (max-width: 760px) { .proof__aside { display: none; } }

/* ── Зоны нажатия на телефоне ────────────────────────────────────────────
   Ползунок высотой 26px и ссылка высотой 26px под пальцем не берутся —
   промах по бегунку сдвигает значение рывком, а по ссылке не попасть вовсе. */
@media (pointer: coarse) {
  input[type="range"] { height: 44px; }
  input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; }
  input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; }
  .proof__note a { display: inline-block; padding: 8px 0; }
}

/* ── Калькуляторы: примечание, призыв, ошибка ввода ──────────────────────── */
.ask__note {
  margin: 16px 0 0; font-size: var(--fs-label); line-height: 1.5;
  color: var(--ink-soft);
}
.ask__cta { margin-top: 16px; }
/* Отказ подсвечивается цветом ошибки, а не инлайновым стилем: инлайн
   приходилось потом руками сбрасывать, и подсказка оставалась красной. */
.ask__hint.is-bad { color: var(--brick); font-weight: 600; }

/* ── Появление первого экрана ────────────────────────────────────────────
   Разметка героя заполняется скриптом, поэтому без этого экран возникает
   рывком: доля секунды пусто — и сразу всё на месте. Поднимаем по очереди.
   Ступень 90 мс: заметно глазу, но не заставляет ждать. */
/* Прятать что-либо по умолчанию нельзя: упадёт скрипт — и первый экран
   останется пустым навсегда. Поэтому скрытое состояние включает сам скрипт
   классом is-anim, и только потом снимает его классом is-ready. Не отработал
   скрипт — не было и скрытия. */
.hero.is-anim .hero__eyebrow,
.hero.is-anim h1,
.hero.is-anim .hero__lead,
.hero.is-anim .hero__actions,
.hero.is-anim .hero__facts {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.hero.is-anim.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: 60ms; }
.hero.is-anim.is-ready h1             { opacity: 1; transform: none; transition-delay: 150ms; }
.hero.is-anim.is-ready .hero__lead    { opacity: 1; transform: none; transition-delay: 240ms; }
.hero.is-anim.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 330ms; }
.hero.is-anim.is-ready .hero__facts   { opacity: 1; transform: none; transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .hero.is-anim .hero__eyebrow, .hero.is-anim h1, .hero.is-anim .hero__lead,
  .hero.is-anim .hero__actions, .hero.is-anim .hero__facts {
    opacity: 1; transform: none; transition: none;
  }
}

/* Готовые примеры расстояний. Стоят здесь не ради заполнения пустоты:
   человек видит цену до своего города, не набирая индекс, и сразу
   получает подтверждение, что «первые 500 миль бесплатно» — не оборот
   речи. Считаются той же формулой, что и ввод индекса. */
.ask__examples { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.ask__exhead {
  margin: 0 0 12px; font: 700 var(--fs-micro)/1 var(--font-body);
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-soft);
}
.ask__examples .ask__row dd { font-variant-numeric: tabular-nums; }
.ask__examples .ask__row dd b { color: var(--color-accent); font-weight: 700; }
.ask__examples .ask__row dd small { display: block; font-size: var(--fs-micro); color: var(--ink-soft); font-weight: 400; }

/* ── Листание кадров в просмотре ─────────────────────────────────────────
   Открыв фотографию, человек хочет посмотреть следующую, а не закрывать
   окно и целиться в соседнюю миниатюру. Стрелки, клавиши и смахивание. */
.lightbox__stage {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: 12px; max-width: 100%; max-height: 100%;
  touch-action: pan-y;
}
.lightbox__stage img { max-height: calc(100vh - 128px); }
.lightbox__caption {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  justify-content: center; font-size: var(--fs-small); color: #cfc7b6;
}
.lightbox__caption b { color: #fff; font-variant-numeric: tabular-nums; }

.lightbox__nav {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,240,230,.3); border-radius: 50%;
  background: rgba(245,240,230,.08); color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav:hover { background: rgba(245,240,230,.2); }
.lightbox__nav:active { transform: scale(.94); }
.lightbox__nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lightbox.is-open { gap: 24px; }

@media (max-width: 760px) {
  /* На телефоне стрелки уводим вниз к пальцу, а кадру отдаём всю ширину */
  .lightbox.is-open { flex-wrap: wrap; align-content: center; gap: 16px; }
  .lightbox__stage { order: 1; flex-basis: 100%; }
  .lightbox__stage img { max-height: calc(100vh - 216px); }
  .lightbox__nav--prev { order: 2; }
  .lightbox__nav--next { order: 3; }
  .lightbox__nav { width: 64px; height: 56px; border-radius: var(--radius-btn); }
}

/* ── Призывы на телефоне ─────────────────────────────────────────────────
   Кнопки растягивались во всю ширину экрана от края до края и выглядели
   плашками, а не действиями; в блоке «приезжайте» они к тому же выходили
   разной длины — 358 и 144 пикселя в одном столбце. Даём им одну ширину
   и ограничиваем: кнопка должна читаться как кнопка. */
@media (max-width: 560px) {
  .hero__actions,
  .place__actions {
    flex-direction: column; align-items: stretch; gap: 12px;
  }
  .hero__actions > *,
  .place__actions > * {
    width: 100%; max-width: 320px; margin-left: auto; margin-right: auto;
  }
  .place__actions > * { justify-content: center; }
}
