/* ==========================================================================
   EchoTicket — лендинг мероприятия

   Стилистика взята у самой площадки: чистый чёрный, крупный геометрический
   гротеск, кадры во всю ширину. Graphie у Sphere проприетарный, поэтому
   Outfit — он ближе всех по построению из бесплатных.

   Анимации держатся на двух вещах и не требуют ни одной библиотеки:

     · IntersectionObserver вешает .is-in — это все вскрытия при появлении;
     · один rAF-цикл считает прогресс закреплённых секций и кладёт его в
       --p, а CSS уже сам решает, что с ним делать.

   Двигаются только transform и opacity: всё остальное заставляет браузер
   пересчитывать раскладку на каждом кадре.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ld {
  --ink: #fff;
  --dim: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.14);
  --hot: #E01E2B;
  /* Красный для скидки. Ярче, чем --hot: на чёрном #E01E2B
     проваливается, а цифру нужно читать с первого взгляда. */
  --sale: #FF4A54;
  --gap: 24px;
  --page: 1320px;

  background: #000; color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ld a { color: inherit; text-decoration: none; }
.ld img { display: block; max-width: 100%; }
.ld ul { list-style: none; }

.lwrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gap); }

/* ---------- типографика ---------- */

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--faint);
}
.h-big {
  font-size: clamp(34px, 5.4vw, 76px); font-weight: 700;
  letter-spacing: -0.035em; line-height: .98; margin-top: 14px;
}

/* Вскрытие строки: маска по высоте строки, содержимое выезжает снизу.
   Поэтому и нужна пара обёртка + <i> — одним элементом маску не сделать. */
/* Маска обрезает ровно по строке, а line-height здесь меньше единицы —
   без запаса снизу срезало бы хвосты букв. Отступ тут же вычитается
   отрицательным margin, чтобы строки не разъехались. */
.ln, .wr {
  display: block; overflow: hidden;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.ln > i, .wr > i { display: block; font-style: normal; }

/* Спрятанные исходные состояния живут под .js-anim — класс ставит скрипт.
   Без него страница показывается целиком, только без анимаций. */
.js-anim .ln > i, .js-anim .wr > i {
  transform: translateY(108%);
  transition: transform .9s cubic-bezier(.16,.84,.28,1);
}
.is-in .ln > i, .is-in .wr > i, .ln.is-in > i, .wr.is-in > i { transform: none; }
.ln:nth-child(2) > i, .wr:nth-child(2) > i { transition-delay: .08s; }
.ln:nth-child(3) > i, .wr:nth-child(3) > i { transition-delay: .16s; }

/* Появление блока: чуть снизу и из прозрачности. Ровно два свойства. */
.js-anim .rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.28,1);
}
.js-anim .rv.is-in { opacity: 1; transform: none; }

/* ---------- кнопки ---------- */

/* Селектор с .ld не для веса ради веса: правило `.ld a { color: inherit }`
   выше по специфичности, и без него кнопка выходит белой по белому. */
.ld .lbtn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 100px;
  background: #fff; color: #000;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .2s, background-color .2s;
  white-space: nowrap;
}
.lbtn:hover { transform: translateY(-2px); background: #EDEDED; }
.lbtn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.lbtn--lg { height: 60px; padding: 0 36px; font-size: 17px; }
/* Порядок правил: --go задаёт высоту 52px, поэтому у крупной кнопки её
   надо вернуть после него, иначе финальный призыв съёжится до обычного. */
.ld .lbtn--lg.lbtn--go { height: 60px; padding: 0 40px; font-size: 18px; }

/* ---------- шапка ---------- */

.lhdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 32px;
  padding: 16px var(--gap);
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
/* Тонировка появляется только когда под шапкой уже не герой: поверх кадра
   она бы срезала верх картинки полосой. */
.lhdr.is-stuck {
  background: rgba(0,0,0,.72); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.lhdr__logo {
  font-family: 'Sora', sans-serif; font-size: 20px;
  letter-spacing: -0.03em; line-height: 1;
}
.lhdr__logo b { font-weight: 700; }
.lhdr__logo span { font-weight: 500; color: rgba(255,255,255,.7); }
.lhdr__nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--dim); }
.lhdr__nav a { transition: color .2s; }
.lhdr__nav a:hover { color: #fff; }

/* ---------- 1. герой ----------
   Обёртка задаёт длину прокрутки, экран внутри прилипает. --p приходит из
   скрипта: 0 в начале пути, 1 в конце. */

/* 145vh, а не 230: за первым экраном идёт ещё 45vh хода — этого хватает,
   чтобы кадр наехал и заголовок ушёл вверх, но лист не «залипает». */
.hero { height: 145vh; position: relative; }
.hero__pin {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; display: grid; align-items: end;
}
.hero__art { position: absolute; inset: 0; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Афиша во весь экран. Базовый масштаб ровно 1, а не 1.06: кадр и так
   подрезается по бокам под пропорции окна, и лишний зум съедал бы её
   собственную надпись. Наезд идёт только по мере прокрутки. */
.hero__key {
  object-fit: cover; object-position: 50% 42%;
  transform: scale(calc(1 + var(--p, 0) * .12));
  transition: transform .1s linear;
}
/* Затемнение только по нижней трети: афиша светится в середине, и глушить
   её целиком незачем — нужно лишь подложить контраст под наш текст. */
.hero__veil {
  position: absolute; inset: 0;
  /* Затемнение адресное, а не сплошное: сверху — под шапку, снизу слева —
     под нашу подпись. Середину и правый верх не трогаем, там сама афиша. */
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 26%, transparent 46%,
                    rgba(0,0,0,.55) 78%, rgba(0,0,0,.9) 100%),
    linear-gradient(102deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 38%, transparent 60%);
}
.hero__mid {
  position: relative; z-index: 2;
  /* Ширина задана явно: сетка родителя иначе сожмёт блок до max-content. */
  width: 100%; max-width: var(--page);
  margin: 0 auto; padding: 0 var(--gap) clamp(56px, 9vh, 104px);
  /* уезжает вверх и тает — так следующий экран не «выпрыгивает» */
  transform: translateY(calc(var(--p, 0) * -70px));
  opacity: calc(1 - var(--p, 0) * 1.35);
}
/* Обещание стоит под кнопкой — закрывает возражение сразу после цены.
   Точка вместо плашки: она подхватывает цвет кнопки, связка читается без
   рамки, а на фотографии рамка выглядела бы наклеенной. */
.hclaim {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 9px;
  margin-top: 22px;
  font-size: clamp(16px, 1.85vw, 24px); font-weight: 600;
  color: rgba(255,255,255,.86); letter-spacing: -0.015em;
}
.hclaim b { color: #fff; font-weight: 800; }
/* Красная здесь только цифра. Красить вместе с ней и соседнее слово
   незачем: акцент держит число, а не фраза вокруг него. */
.hclaim em { font-style: normal; color: #3FE289; font-weight: 800; }
.hclaim em i { font-style: normal; color: var(--sale); }
/* Класс, а не просто `.hclaim i`: внутри строки есть ещё один <i> — цифра
   скидки, — и по тегу правило красило её фоном точки. */
.hclaim__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3FE289; box-shadow: 0 0 0 5px rgba(63,226,137,.22);
}
/* Появляется последней — после кнопки, за которой теперь стоит. */
.js-anim .hclaim {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s .62s, transform .7s cubic-bezier(.16,.84,.28,1) .62s;
}
.js-anim .hero.is-in .hclaim { opacity: 1; transform: none; }

.hero__h {
  font-size: clamp(40px, 6.4vw, 92px); font-weight: 700;
  letter-spacing: -0.045em; line-height: .94; text-transform: uppercase;
}
.hero__sub {
  margin-top: 14px; overflow: hidden;
  font-size: clamp(14px, 1.4vw, 18px); color: rgba(255,255,255,.78);
}
.hero__sub span { display: block; }
.js-anim .hero__sub span {
  transform: translateY(110%);
  transition: transform .8s cubic-bezier(.16,.84,.28,1) .34s;
}
.js-anim .hero.is-in .hero__sub span { transform: none; }

.hero__cta {
  margin-top: 30px; display: flex; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.js-anim .hero__cta {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s .5s, transform .7s cubic-bezier(.16,.84,.28,1) .5s;
}
.js-anim .hero.is-in .hero__cta { opacity: 1; transform: none; }

/* ---------- кнопка и цена ----------
   Без плашек, рамок и стекла: на фотографии любой контейнер выглядит
   наклеенным поверх. Работают только сама кнопка и контраст чисел. */

.ld .lbtn--go {
  height: 52px; padding: 0 30px; font-size: 16px;
  background: #22CE74; color: #042111;
}
.ld .lbtn--go:hover { background: #2FE082; }

/* Метка скидки прямо в кнопке шапки. Кнопка маленькая, отдельная плашка
   рядом с ней не поместилась бы, а без метки шапка молчит о главном —
   человек мог долистать до конца, так и не увидев цифру. */
/* Высоту приходится повторять: `.ld .lbtn--go` весит больше, чем `.lbtn--sm`,
   и без этой строки маленькая кнопка вытянулась бы до 52px. */
.ld .lbtn--sm.lbtn--go { height: 40px; padding: 0 6px 0 16px; gap: 9px; font-size: 14px; }
.lbtn__off i { font-style: normal; color: var(--sale); }
.lbtn__off {
  padding: 3px 8px; border-radius: 100px;
  background: #042111; color: #4BEE93;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.hprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.hprice b {
  font-family: 'Sora', sans-serif; color: #fff;
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
}
.hprice s {
  font-size: clamp(14px, 1.3vw, 17px); color: rgba(255,255,255,.5);
  text-decoration-thickness: 1px;
}
.hprice em {
  font-style: normal; color: #3FE289;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hprice em i { font-style: normal; font-size: 15px; letter-spacing: -0.02em; color: var(--sale); }
/* Мелкий текст уходит на свою строку — «all fees included» это сноска,
   а не часть цены, и стоять с ней вровень не должен. */
.hprice > span {
  flex-basis: 100%; font-size: 13px; color: var(--dim);
}

/* Подсказка ушла вправо: по центру она теперь села бы на кнопку. */
.hero__cue {
  position: absolute; bottom: 30px; right: max(var(--gap), calc((100vw - var(--page)) / 2 + var(--gap)));
  z-index: 2; display: grid; justify-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
  opacity: calc(1 - var(--p, 0) * 2.4);
}
.hero__cue i {
  width: 1px; height: 34px; background: rgba(255,255,255,.4);
  transform-origin: top; animation: cue 1.9s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.25); opacity: .3; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* ---------- 2. заявление ---------- */

.say { padding: clamp(90px, 14vh, 170px) 0; }
.say__h {
  margin-top: 20px;
  font-size: clamp(30px, 4.6vw, 66px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.06;
}
.say__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px; margin-top: 48px; max-width: 900px;
  color: var(--dim); font-size: 16px; line-height: 1.65;
}
.say__cols p:nth-child(2) { transition-delay: .1s; }

/* ---------- 3. кадр с параллаксом ---------- */

.plate { position: relative; height: 76vh; overflow: hidden; }
.plate img {
  width: 100%; height: 128%; object-fit: cover;
  /* сдвиг медленнее прокрутки — оттого и глубина */
  transform: translateY(calc(var(--p, .5) * -20%));
  will-change: transform;
}
.plate__cap {
  position: absolute; left: 0; right: 0; bottom: 26px;
  padding: 0 var(--gap); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}

/* ---------- 4. цифры ---------- */

.specs { padding: clamp(90px, 14vh, 170px) 0; }
.specs__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px; margin-top: 44px;
}
.specs__grid li { border-top: 1px solid var(--line); padding-top: 20px; }
.specs__grid li:nth-child(2) { transition-delay: .07s; }
.specs__grid li:nth-child(3) { transition-delay: .14s; }
.specs__grid li:nth-child(4) { transition-delay: .21s; }
.specs__grid b {
  display: block; font-size: clamp(38px, 4.4vw, 62px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.specs__grid span {
  display: block; margin-top: 12px; font-size: 14px;
  color: var(--dim); line-height: 1.5;
}

/* ---------- 5. горизонтальный трек ----------
   Обёртка высокая, экран внутри прилипает, лента едет по --x из скрипта.
   Так вертикальная прокрутка превращается в горизонтальную без перехвата
   колеса — страница продолжает скроллиться штатно. */

.track { height: 340vh; position: relative; }
.track__pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  /* запас сверху под фиксированную шапку — иначе заголовок ленты уезжает под неё */
  padding-top: 84px;
  overflow: hidden;
}
.track__head {
  display: flex; align-items: baseline; gap: 16px;
  padding: 0 var(--gap); margin-bottom: 26px;
}
.track__hint { font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.track__rail {
  display: flex; align-items: flex-start; gap: 22px; padding: 0 var(--gap);
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.track__rail figure { flex: none; width: min(58vw, 720px); }
/* Высота задана от экрана, а не от пропорций кадра: кадры разного формата,
   и по aspect-ratio лента то и дело переставала помещаться в 100vh. */
.track__rail img {
  width: 100%; height: min(52vh, 430px); object-fit: cover; border-radius: 4px;
}
.track__rail figcaption {
  margin-top: 12px; font-size: 13px; color: var(--dim);
}

/* ---------- 6. даты ---------- */

.dates { padding: clamp(90px, 14vh, 170px) 0; }
.dates__note { margin-top: 18px; max-width: 56ch; color: var(--dim); }
.dates__list { margin-top: 40px; border-top: 1px solid var(--line); }

.drow { border-bottom: 1px solid var(--line); }
.drow a {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center; gap: 24px; padding: 22px 8px;
  transition: background-color .25s, padding-left .25s;
}
.drow a:hover { background: rgba(255,255,255,.04); padding-left: 18px; }
.drow__when b {
  display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
}
.drow__when span { font-size: 13px; color: var(--faint); }
.drow__what { font-size: 14px; color: var(--dim); }
.drow__tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 3px;
  background: #fff; color: #000; font-size: 10px; font-weight: 700;
  letter-spacing: .08em;
}
.drow__price { text-align: right; }
.drow__price s { font-size: 13px; color: var(--faint); margin-right: 8px; }
.drow__price em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--sale); }
.drow__price b {
  display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.drow__go {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.drow a:hover .drow__go { background: #fff; color: #000; border-color: #fff; }
.drow__go svg { width: 14px; height: 14px; }

/* ---------- 7. планирование ---------- */

.visit { padding: clamp(90px, 14vh, 170px) 0; }
.visit__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin-top: 44px;
}
.vcard {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.vcard:hover { border-color: rgba(255,255,255,.34); transform: translateY(-4px); }
.vcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vcard__t { padding: 20px; }
.vcard__t h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.vcard__t p { margin-top: 8px; font-size: 14px; color: var(--dim); line-height: 1.55; }
.visit__grid > *:nth-child(2) { transition-delay: .08s; }
.visit__grid > *:nth-child(3) { transition-delay: .16s; }

/* ---------- 8. вопросы ---------- */

.lfaq { padding: 0 0 clamp(90px, 14vh, 170px); }
.lfaq__list { margin-top: 28px; border-top: 1px solid var(--line); }
.lqa { border-bottom: 1px solid var(--line); }
.lqa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; letter-spacing: -0.02em;
  transition: color .2s;
}
.lqa summary::-webkit-details-marker { display: none; }
.lqa summary:hover { color: var(--dim); }
.lqa summary i {
  flex: none; width: 22px; height: 22px; position: relative; font-style: normal;
}
.lqa summary i::before, .lqa summary i::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .28s;
}
.lqa summary i::before { width: 14px; height: 1.5px; }
.lqa summary i::after  { width: 1.5px; height: 14px; }
.lqa[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }
.lqa p {
  padding: 0 4px 24px; max-width: 76ch;
  color: var(--dim); font-size: 15px; line-height: 1.65;
}

/* ---------- 9. другие шоу ---------- */

.more { padding: 0 0 clamp(90px, 14vh, 170px); }
.more__row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 32px;
}
.mcard { border-radius: 5px; overflow: hidden; position: relative; }
.mcard img {
  width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover;
  transition: transform .5s cubic-bezier(.16,.84,.28,1);
}
.mcard:hover img { transform: scale(1.05); }
.mcard span {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.more__row > *:nth-child(2) { transition-delay: .06s; }
.more__row > *:nth-child(3) { transition-delay: .12s; }
.more__row > *:nth-child(4) { transition-delay: .18s; }
.more__row > *:nth-child(5) { transition-delay: .24s; }
.more__row > *:nth-child(6) { transition-delay: .30s; }

/* ---------- 10. финал ---------- */

.fin { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; }
.fin__art { position: absolute; inset: 0; }
.fin__art img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.fin__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, transparent 30%, rgba(0,0,0,.65) 100%);
}
.fin__in { position: relative; z-index: 2; text-align: center; padding: 0 var(--gap); }
.fin__h {
  font-size: clamp(40px, 7vw, 104px); font-weight: 800;
  letter-spacing: -0.05em; line-height: .94; text-transform: uppercase;
}
.fin__in p { margin-top: 22px; font-size: 18px; color: var(--dim); }
.fin__in p s { color: var(--faint); }
.fin__in p b { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.fin__in .lbtn { margin-top: 32px; }

/* ---------- подвал ---------- */

.lftr { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.lftr__in { display: grid; gap: 16px; }
.lftr__logo { font-family: 'Sora', sans-serif; font-size: 20px; letter-spacing: -0.03em; }
.lftr__logo b { font-weight: 700; }
.lftr__logo span { font-weight: 500; color: rgba(255,255,255,.6); }
.lftr p { font-size: 12px; color: var(--faint); line-height: 1.6; max-width: 92ch; }

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .say__cols, .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__grid, .more__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhdr__nav { display: none; }
  .track__rail figure { width: 76vw; }
}
@media (max-width: 640px) {
  :root { --gap: 18px; }
  .specs__grid, .visit__grid, .more__row, .say__cols { grid-template-columns: minmax(0, 1fr); }
  .hero { height: 135vh; }
  .track { height: 300vh; }
  .drow a { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; }
  .drow__what { display: none; }
  .drow__go { display: none; }
}

/* Уважение к настройке «меньше движения»: вскрытия становятся мгновенными,
   параллакс и наезд отключаются. Контент при этом остаётся весь. */
@media (prefers-reduced-motion: reduce) {
  .ld * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .ln > i, .wr > i, .hero__kicker span, .hero__sub span { transform: none; }
  .hero__art img, .plate img { transform: none !important; }
  .hero__mid { transform: none; opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════
   ТЕЛЕФОН

   Раскладка на узких экранах описана выше, рядом с самими блоками.
   Здесь — то, что относится не к ширине, а к телефону как устройству:
   палец вместо курсора, вырез экрана, полоса жестов и другой способ
   листать.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {

  /* ---- лента кадров ----

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

     Поэтому на телефоне лента становится обычной каруселью: свайп вбок,
     прилипание к кадру. Скрипт в это время не трогает --x (см. land.js),
     иначе его transform дрался бы с нативной прокруткой. */
  .track { height: auto; }
  .track__pin {
    position: static; height: auto;
    padding: clamp(56px, 12vw, 84px) 0 clamp(28px, 8vw, 48px);
    overflow: visible;
  }
  .track__rail {
    transform: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Отступ справа равен левому: без него последний кадр прижимается к
       кромке экрана и выглядит обрезанным, хотя это конец ленты. */
    padding: 0 var(--gap);
    gap: 14px;
  }
  .track__rail::-webkit-scrollbar { display: none; }
  .track__rail figure {
    width: 78vw; scroll-snap-align: center;
  }
  .track__rail img { height: 46vh; }

  /* ---- размер цели нажатия ----
     Палец накрывает примерно 44px. Пункты меню в шапке были высотой в
     строку текста, и промах уводил на соседний. */
  .lhdr__nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .lqa summary { min-height: 52px; }

  /* ---- строка даты ----
     Стрелка справа спрятана, поэтому вся строка и есть кнопка: даём ей
     высоту, за которую удобно попадать. */
  .drow a { min-height: 64px; }

  /* ---- вырез экрана ----
     Шапка прижата к краям, и на iPhone её края заезжают под «уши». */
  .lhdr {
    padding-left: max(var(--gap), env(safe-area-inset-left));
    padding-right: max(var(--gap), env(safe-area-inset-right));
  }
  .lftr { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {

  /* ---- шапка ----
     Четыре пункта меню, логотип и кнопка в 375px не помещаются и лезут
     друг на друга. Меню убираем: все его разделы и так идут по странице
     сверху вниз, а прокрутка на телефоне дешевле навигации. Остаётся то,
     ради чего шапка нужна, — имя и кнопка покупки. */
  .lhdr__nav { display: none; }
  .lhdr { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .lhdr__logo { font-size: 17px; }

  /* Вправо кнопку прижимало меню своим margin-left: auto. Здесь меню
     скрыто, и подпорка исчезла вместе с ним — переносим её на саму
     кнопку, иначе та липнет к логотипу посреди шапки. */
  .ld .lhdr .lbtn--go { margin-left: auto; }
  .ld .lbtn--sm.lbtn--go { height: 32px; padding: 0 4px 0 11px; font-size: 12px; gap: 6px; }
  .lbtn__off { font-size: 9px; padding: 2px 6px; letter-spacing: .04em; }

  /* ---- герой ----
     Строка «лучшая цена» в две строки съедала первый экран целиком, а
     нижняя часть афиши уходила под сгиб. */
  .hclaim { font-size: 15px; gap: 0 7px; margin-top: 16px; }
  .hprice b { font-size: 30px; }

  /* ---- сноски ----
     Мелкий серый текст на телефоне читается хуже, чем на мониторе: экран
     ближе, но и ярче, и контраст съедается. */
  .hprice > span, .drow__when span { font-size: 12px; }

  /* ---- карточки ----
     Отступы, посчитанные для широкого экрана, на 375px съедают треть
     ширины карточки. */
  .vcard__t { padding: 16px; }
  .mcard span { font-size: 13px; padding: 12px; }
}

/* Подсказка к ленте: два варианта текста, показывается тот, что описывает
   способ листать на этом экране. */
.track__hint b, .track__hint i { font-style: normal; font-weight: inherit; }
.track__hint i { display: none; }
@media (max-width: 720px) {
  .track__hint b { display: none; }
  .track__hint i { display: inline; }
}

.drow__yr { font-style: normal; }
@media (max-width: 640px) {
  /* Колонка даты шире, а год из подписи убран: «Fri · 2026 · 8:30 PM» в
     92px рвался на три строки, и «PM» оставалось одно на последней. */
  .drow a { grid-template-columns: 106px minmax(0, 1fr) auto; }
  .drow__yr { display: none; }
  .drow__when span { white-space: nowrap; }
}
