/* ═══════════════════════════════════════════════════════════════
   «Дело №1866» — страница поездки. Палитра и шрифты берутся из
   site.css, здесь только своя вёрстка. Всё под .trippage, чтобы
   общие классы (.card/.tag/.badge) не тащили стили с баттла.
   Написано mobile-first: база — телефон, десктоп в min-width.
   ═══════════════════════════════════════════════════════════════ */

/* Прокрутку возвращаем: в site.css она заглушена ради полноэкранного баттла.
   Скроллером должен остаться html — если повесить overflow и на body, тот
   становится вторым скролл-контейнером, и position:sticky у шапки с днями
   перестаёт липнуть (она уезжает вверх вместе со страницей). */
html { height: auto; overflow-x: hidden; overflow-y: auto; }
body.trippage { height: auto; overflow: visible; }
body.trippage {
  color: #f3e7d8; background: #1b0203;
  background-image: radial-gradient(120% 55% at 50% 0%, var(--red1) 0%, var(--red2) 22%, var(--red3) 52%, #1b0203 100%);
  background-attachment: fixed;
  font-family: var(--body);
  cursor: auto;                      /* топор-курсор с баттла тут мешает читать */
}
body.trippage a { color: inherit; text-decoration: none; }
body.trippage h1, body.trippage h2, body.trippage h3, body.trippage h4 {
  font-family: var(--disp); font-weight: 700; letter-spacing: .5px; line-height: 1.05; margin: 0;
}
.trippage ::selection { background: var(--yellow); color: #1b0203; }
.wrap, .over, .day, .tfin_in { width: min(92vw, 1120px); margin-inline: auto; }

/* появление блоков при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ─────────────────────────── ОБЛОЖКА ─────────────────────────── */
.thero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; }
.thimg { position: absolute; inset: 0; z-index: -2; }
.thimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  filter: saturate(.5) contrast(1.06) brightness(.82); transform: scale(1.06); }
.thsc { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,2,3,.72) 0%, rgba(20,2,3,.3) 34%, rgba(20,2,3,.86) 78%, #1b0203 100%); }
.thin { position: relative; z-index: 3; width: min(92vw, 1120px); margin: 0 auto; padding: 0 0 108px; }

.thcase { display: inline-block; font-family: var(--disp); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(245,197,24,.45);
  background: rgba(20,3,4,.5); padding: 7px 14px; border-radius: 999px; }
.thwho { margin-top: 20px; font-size: clamp(42px, 13.6vw, 116px); line-height: .88;
  text-transform: uppercase; color: #fff; display: flex; flex-direction: column;
  text-shadow: 0 4px 0 var(--red3), 0 0 70px rgba(0,0,0,.75); }
.thwho span { display: block; }
.thwho i { font-style: normal; color: var(--yellow); font-size: .58em; line-height: 1;
  margin: 4px 0 4px; text-shadow: 0 3px 0 var(--red3), 0 0 34px rgba(245,197,24,.5); }
.thcity { margin-top: 16px; font-family: var(--disp); font-size: clamp(15px, 4.6vw, 24px);
  letter-spacing: .3em; text-transform: uppercase; color: #f0c3a8; }
.thdates { margin-top: 8px; font-family: var(--hand); font-size: clamp(24px, 7vw, 40px); color: var(--yellow); }
.thlead { margin-top: 16px; max-width: 520px; font-size: 15px; line-height: 1.6; color: #e8cdbc; }

/* маскоты — вырезанные PNG, парой в правом нижнем углу, чтобы не лезть на текст */
.maspair { position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end;
  pointer-events: none; }
.mas { width: auto; height: 132px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.7)); }
.mliza { animation: bobA 6s ease-in-out infinite; margin-right: -22px; }
.mpol  { animation: bobB 7s ease-in-out infinite; }
@keyframes bobA { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes bobB { 0%,100% { transform: translateY(-6px) rotate(1.5deg); } 50% { transform: translateY(4px) rotate(-1deg); } }

.thscroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--disp); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: #e8b7a2; opacity: .7; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.thscroll span { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, var(--yellow));
  animation: dropline 2s ease-in-out infinite; }
@keyframes dropline { 0%,100% { opacity: .3; height: 22px; } 50% { opacity: 1; height: 34px; } }

/* ─────────────────────────── НАВИГАЦИЯ ─────────────────────────── */
.tnav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 9px max(4vw, 12px); background: rgba(22,3,4,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,197,24,.18); }
.tnavh { flex: 0 0 auto; font-family: var(--disp); font-size: 11px; letter-spacing: .18em;
  color: var(--yellow); opacity: .9; }
.tnavd { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.tnavd::-webkit-scrollbar { display: none; }
.tnavd a { flex: 0 0 auto; display: flex; align-items: baseline; gap: 5px; padding: 7px 11px;
  border: 1px solid rgba(245,197,24,.2); border-radius: 999px; background: rgba(20,3,4,.45);
  font-family: var(--disp); font-size: 12px; color: #e8b7a2; transition: .18s; }
.tnavd a b { font-size: 13px; color: var(--yellow); }
.tnavd a span { display: none; font-size: 11px; opacity: .8; }
.tnavd a.on { background: var(--yellow); border-color: var(--yellow); color: #1b0203; }
.tnavd a.on b { color: #1b0203; }
/* Кубик и «домой» живут в шапке, а не среди дней: они не про день,
   а про «прямо сейчас» и «выйти отсюда». На телефоне остаются иконками. */
.tnavdice, .tnavhome { flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(245,197,24,.34); background: rgba(245,197,24,.08);
  font-family: var(--disp); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow); line-height: 1.2; transition: .18s; }
.tnavdice:hover, .tnavhome:hover { background: var(--yellow); color: #1b0203; }
.tnavdice span, .tnavhome span { display: none; }
@media (min-width: 640px) { .tnavdice span, .tnavhome span { display: inline; } }
/* на узких экранах номер дела уступает место кнопкам — до него всё равно
   можно дотянуться логотипом наверху страницы */
@media (max-width: 419px) { .tnavh { display: none; } }

/* ─────────────────────────── ОБЗОР ─────────────────────────── */
.over { padding: 46px 0 8px; }
.ovhead h2 { font-size: clamp(30px, 9vw, 58px); text-transform: uppercase; color: #fff;
  text-shadow: 0 3px 0 var(--red3); }
.ovhead p { margin: 10px 0 22px; font-family: var(--hand2); font-size: 18px; color: #e8b7a2; }
.ovgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ovc { display: flex; gap: 13px; align-items: stretch; background: rgba(24,10,9,.66);
  border: 1px solid rgba(245,197,24,.16); border-radius: 16px; overflow: hidden;
  transition: border-color .2s, transform .2s; }
.ovc:hover, .ovc:focus-visible { border-color: rgba(245,197,24,.5); transform: translateY(-3px); }
/* Картинку держим абсолютом: в колонке flex-basis не работает из-за min-height:auto,
   и карточки разъезжались по высоте вслед за пропорциями кадра. */
.ovph { position: relative; flex: 0 0 108px; overflow: hidden; }
.ovph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) contrast(1.05); }
.ovn { position: absolute; left: 8px; top: 7px; font-family: var(--disp); font-weight: 700;
  font-size: 20px; color: var(--yellow); text-shadow: 0 2px 0 #1b0203, 0 0 16px rgba(0,0,0,.9); }
.ovb { flex: 1; padding: 13px 14px 13px 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ovdate { font-family: var(--disp); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); opacity: .85; }
.ovb b { font-family: var(--disp); font-size: 17px; color: #fff; line-height: 1.15; }
.ovmood { font-family: var(--hand2); font-size: 15px; color: #e8b7a2; }

/* ─────────────────────────── ДЕНЬ: ШАПКА ─────────────────────────── */
.day { padding-top: 30px; }
.dcover { position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  min-height: 60svh; display: flex; align-items: flex-end; overflow: hidden;
  border-top: 1px solid rgba(245,197,24,.16); border-bottom: 1px solid rgba(245,197,24,.16); }
.dcover img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover;
  filter: saturate(.48) contrast(1.06) brightness(.8); will-change: transform; }
.dsc { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,2,3,.55), rgba(20,2,3,.45) 40%, rgba(20,2,3,.94)); }
/* Обложки-иллюстрации живут по другим правилам, чем фотографии.
   Фотографию можно резать полосой и топить в затемнении — у рисунка так
   пропадает вся сцена. Но и растягивать рисунок на 100vw нельзя: исходник
   1280 px, на широком экране он превращается в мыло. Поэтому иллюстрация —
   аккуратная «вклейка» по ширине колонки, а заголовок идёт под ней. */
.dcover.art { min-height: 0; display: block; overflow: visible;
  width: min(92vw, 1120px); margin-inline: auto; border: 0; }
.dcover.art img { position: static; display: block; width: 100%; height: auto;
  max-width: 1120px; filter: none; border-radius: 16px;
  border: 1px solid rgba(245,197,24,.18); box-shadow: 0 26px 60px -30px rgba(0,0,0,.9); }
.dcover.art .dsc { display: none; }
.dcover.art .dch { position: static; width: auto; padding: 18px 0 2px; }
.dcover.art .dtitle { text-shadow: 0 3px 0 var(--red3); }
.dcover.art .dnum { top: 6px; right: 14px; }
.dch { position: relative; z-index: 2; width: min(92vw, 1120px); margin: 0 auto; padding: 0 0 26px; }
.dpart { font-family: var(--disp); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--yellow); }
.dtitle { margin-top: 9px; font-size: clamp(30px, 9.4vw, 74px); text-transform: uppercase; color: #fff;
  text-shadow: 0 3px 0 var(--red3), 0 0 46px rgba(0,0,0,.7); }
.dmeta { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.dmeta span { font-family: var(--disp); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(245,197,24,.3);
  background: rgba(20,3,4,.55); color: #f0c3a8; }
.dmeta .ddate { color: var(--yellow); border-color: rgba(245,197,24,.55); }
.dmeta .dmood { font-family: var(--hand2); font-size: 15px; letter-spacing: 0; text-transform: none; }
.dnum { position: absolute; right: 4vw; top: 16px; z-index: 2; font-family: var(--disp); font-weight: 700;
  font-size: clamp(56px, 18vw, 150px); line-height: 1; color: transparent;
  -webkit-text-stroke: 2px rgba(245,197,24,.32); pointer-events: none; }
.dlead { width: min(92vw, 780px); margin: 22px auto 4px; font-size: 15.5px; line-height: 1.68; color: #e8cdbc; }

.wx { margin-top: 13px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding: 8px 13px; border-radius: 12px; background: rgba(20,3,4,.6);
  border: 1px solid rgba(245,197,24,.22); font-size: 12.5px; color: #e8cdbc; }
.wx .wic { font-size: 16px; }
.wx b { font-family: var(--disp); font-size: 18px; color: var(--yellow); }
.wx .wmin { opacity: .65; }
.wx .wtxt { opacity: .85; }
.wx .wprec { font-family: var(--disp); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #9fd0ff; opacity: .9; }

/* ─────────────────────────── СХЕМА ДНЯ ─────────────────────────── */
.daymap { width: min(92vw, 1120px); margin: 26px auto 6px; padding: 14px 10px 8px;
  background: rgba(18,6,6,.5); border: 1px solid rgba(245,197,24,.16); border-radius: 18px; }
.daymap svg { display: block; width: 100%; height: auto; overflow: visible; }
.mline { fill: none; stroke: rgba(245,197,24,.5); stroke-width: 2.5; stroke-dasharray: 7 7;
  stroke-linecap: round; stroke-linejoin: round; }
.mhit { fill: transparent; }
.mdot { fill: var(--blood); stroke: var(--yellow); stroke-width: 2.5; transition: .2s; }
.mnum { font-family: var(--disp); font-weight: 700; font-size: 13px; fill: #fff; pointer-events: none; }
/* тёмная обводка — иначе подпись теряется на светлых участках схемы */
.mlbl { font-family: var(--body); font-weight: 600; font-size: 13px; fill: #e8cdbc;
  pointer-events: none; paint-order: stroke fill; stroke: #16090a; stroke-width: 3.5px;
  stroke-linejoin: round; transition: opacity .18s; }
.mlbl.hid { opacity: 0; }                     /* не поместилась — только по наведению */
.mpt { cursor: pointer; }
.mpt:hover .mdot, .mpt:focus-visible .mdot { fill: var(--yellow); r: 14; }
.mpt:hover .mlbl, .mpt:focus-visible .mlbl { fill: #fff; opacity: 1; }
.mpt:hover, .mpt:focus-visible { outline: none; }
.maplink { display: inline-block; margin: 6px 6px 4px; font-family: var(--disp); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); opacity: .85; }
.maplink:hover { opacity: 1; }

/* ─────────────────────────── ЛЕНТА ДНЯ ─────────────────────────── */
.tl { width: min(92vw, 1120px); margin: 10px auto 0; }
.tline { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.tw { position: sticky; top: 54px; padding-top: 6px; }
.ttime { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--yellow);
  letter-spacing: .04em; }
.tc { min-width: 0; }

/* переход между точками */
.hop { grid-column: 1 / -1; margin: 0 0 0 64px; padding: 5px 0 5px 10px; position: relative; }
.hop::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(245,197,24,.42) 0 6px, transparent 6px 12px); }
.hop a, .hop > .hic { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: 999px; background: rgba(24,10,9,.7); border: 1px solid rgba(245,197,24,.2);
  font-size: 12.5px; color: #e8cdbc; transition: .18s; }
.hop a:hover { border-color: rgba(245,197,24,.55); background: rgba(40,14,12,.8); }
.hop b { font-family: var(--disp); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.hop .hval { opacity: .9; }
.hop.taxi b { color: #ffd27a; }
.hop.bus b { color: #9fd0ff; }
.hop.plain .hic { opacity: .5; }

/* ─────────────────────────── КАРТОЧКА ─────────────────────────── */
.trippage .card { width: auto; min-width: 0; max-width: 100%; margin: 0 0 4px;
  background: linear-gradient(180deg, rgba(30,12,11,.86), rgba(20,7,7,.92));
  border: 1px solid rgba(245,197,24,.16); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .22s, transform .22s, box-shadow .22s; }
.trippage .card:hover { border-color: rgba(245,197,24,.42); transform: translateY(-2px);
  box-shadow: 0 26px 54px -26px rgba(0,0,0,.95); }
.trippage .card.must { border-color: rgba(245,197,24,.42); }
.trippage .card.must::after { content: ""; position: absolute; inset: 0; border-radius: 18px;
  pointer-events: none; box-shadow: inset 0 0 0 1px rgba(245,197,24,.25); }
.trippage .card.opt { opacity: .93; border-style: dashed; }
.trippage .card.hl { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(245,197,24,.35), 0 26px 54px -26px #000; }

.trippage .card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #140203; }
.trippage .card .ph > img { position: static; opacity: 1; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.62) contrast(1.05); transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.trippage .card:hover .ph > img { transform: scale(1.045); }
.trippage .card .ph::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,2,3,0) 42%, rgba(20,2,3,.8) 100%); }
/* рисованные карточки — в полный цвет и без затемнения снизу */
.trippage .card .ph.art > img { filter: none; }
.trippage .card .ph.art::after { background: linear-gradient(180deg, rgba(20,2,3,0) 62%, rgba(20,2,3,.45) 100%); }
.trippage .card:hover .ph::before { content: none; }

.gstrip { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 7px; }
.gth { width: 58px; height: 44px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.5); background: #1a0203; transition: .18s;
  box-shadow: 0 6px 14px rgba(0,0,0,.5); }
/* На баттле `.card .ph img` — карусель: кадры лежат стопкой с opacity:0.
   Сброс через `>` до вложенных миниатюр не доставал, и они выглядели
   как пустые кликабельные прямоугольники. Гасим правило явно. */
.trippage .gth img { position: static; opacity: 1; width: 100%; height: 100%;
  object-fit: cover; display: block; filter: none; }
.gth:hover, .gth.on { border-color: var(--yellow); transform: translateY(-2px); }

.trippage .badge { position: absolute; top: 11px; left: 11px; z-index: 3; display: inline-block;
  font-family: var(--disp); font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; margin: 0;
  background: rgba(20,3,4,.78); border: 1px solid rgba(245,197,24,.45); color: var(--yellow); }
.trippage .badge.must { background: linear-gradient(180deg, #F5C518, #d19b06); color: #2a0405; border-color: transparent; }

.cbody { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; position: relative; }
.chead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.chead h3 { font-size: 20px; color: var(--yellow); letter-spacing: .3px; }
.trippage .tag { font-family: var(--disp); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #e8b7a2; opacity: .75; white-space: nowrap; flex: 0 0 auto;
  position: static; background: none; border: none; padding: 0; }
.ctext { font-size: 14px; line-height: 1.62; color: #f0e2d4; opacity: .93; margin: 0; }
.cnote { margin: 12px 0 0; padding-left: 13px; border-left: 2px solid rgba(245,197,24,.45);
  font-family: var(--hand2); font-size: 16.5px; line-height: 1.35; color: #f0c3a8; }
.cnote.liza { border-left-color: #ff8fb0; color: #ffc2d2; }
.cwarn { margin: 11px 0 0; font-size: 12.5px; color: #ffc08a; }
.cmeta { margin-top: 13px; display: flex; flex-direction: column; gap: 5px; }
.mrow { display: flex; gap: 9px; font-size: 13px; line-height: 1.4; }
.mrow i { flex: 0 0 62px; font-style: normal; font-family: var(--disp); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); opacity: .7; padding-top: 2px; }
.mrow span { color: #e8cdbc; }
.mrow .rate { color: var(--yellow); font-weight: 600; }
.cst { position: absolute; right: 10px; bottom: 10px; width: 54px; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.55)); animation: stFloat 7s ease-in-out infinite; }
@keyframes stFloat { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }

.cbtns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 10px 15px; border-radius: 11px; white-space: nowrap;
  font-family: var(--disp); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.32); color: #f0c3a8;
  transition: .18s; cursor: pointer; }
.tbtn:hover { background: rgba(245,197,24,.18); border-color: rgba(245,197,24,.65); color: #fff; }
.tbtn.gold { background: linear-gradient(180deg, #F5C518, #d19b06); color: #2a0405; border-color: transparent; font-weight: 700; }
.tbtn.gold:hover { filter: brightness(1.08); color: #2a0405; }

/* пауза в расписании — сон, сборы */
.rest { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border-radius: 14px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 9px, transparent 9px 18px);
  border: 1px dashed rgba(245,197,24,.22); }
.rest b { font-family: var(--disp); font-size: 15px; color: #f0c3a8; letter-spacing: .04em; }
.rest span { font-size: 13.5px; color: #d9bcae; opacity: .85; }

/* квартира */
.card.flat { border-color: rgba(245,197,24,.5);
  background: linear-gradient(180deg, rgba(52,16,14,.92), rgba(24,8,8,.95)); }
.fopen { margin-top: 14px; align-self: flex-start; min-height: 44px; padding: 11px 16px; cursor: pointer;
  border-radius: 11px; border: 1px solid rgba(245,197,24,.5); background: rgba(245,197,24,.12);
  color: var(--yellow); font-family: var(--disp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.fopen:hover { background: rgba(245,197,24,.22); }
.fbox { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(245,197,24,.3); }
.fbox h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.frow { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(245,197,24,.08); font-size: 13.5px; }
.frow b { flex: 0 0 72px; font-family: var(--disp); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #e8b7a2; opacity: .75; font-weight: 500; padding-top: 2px; }
.frow span { color: #f0e2d4; }
.frow a { color: var(--yellow); text-decoration: underline; }
.fcode { display: flex; gap: 12px; align-items: flex-start; padding: 9px 11px; margin-bottom: 7px;
  border-radius: 11px; background: rgba(20,3,4,.55); border: 1px solid rgba(245,197,24,.22); }
.fcode b { flex: 0 0 auto; font-family: var(--disp); font-size: 21px; letter-spacing: .12em; color: var(--yellow);
  user-select: all; }
.fcode span { font-size: 12.5px; line-height: 1.45; color: #e8cdbc; }
.fcode i { display: block; font-style: normal; font-family: var(--disp); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .8; margin-bottom: 2px; }
.frules { margin: 0; padding-left: 17px; }
.frules li { font-size: 13px; line-height: 1.55; color: #e8cdbc; margin-bottom: 5px; }
.fbtns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.fwarn { margin-top: 12px; font-family: var(--hand2); font-size: 16px; color: #ffb3a8; }

/* карточка-история без фото */
.card.story { background: linear-gradient(180deg, rgba(40,10,20,.85), rgba(22,6,10,.92));
  border-color: rgba(255,143,176,.28); }
.card.story .chead h3 { color: #ffc2d2; }

/* ─────────────────────────── УЛИКА ─────────────────────────── */
.clue { width: min(92vw, 860px); margin: 34px auto 0; }
.cluein { position: relative; padding: 24px 20px 22px; border-radius: 4px;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 26px), rgba(14,4,4,.86);
  border: 1px solid rgba(195,16,24,.45); box-shadow: inset 0 0 60px rgba(195,16,24,.09); }
.cluein::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px;
  background: var(--blood); }
.cluetop { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; justify-content: space-between; }
.cluen { font-family: var(--disp); font-weight: 700; font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; color: #ff6b6b; border: 1px solid rgba(195,16,24,.6);
  padding: 5px 10px; border-radius: 3px; transform: rotate(-1.2deg); }
.clueaddr { font-family: var(--disp); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #e8b7a2; opacity: .7; }
.cluet { margin-top: 15px; font-size: clamp(22px, 6.4vw, 34px); text-transform: uppercase; color: #fff; }
.cluet::after { content: "▍"; color: var(--blood); animation: caret 1s step-end infinite; margin-left: 2px; }
.cluet.done::after { content: none; }
@keyframes caret { 50% { opacity: 0; } }
.cluetx { margin: 13px 0 0; font-size: 14.5px; line-height: 1.68; color: #e8cdbc; }
.cluep { margin: 14px 0 0; padding-top: 13px; border-top: 1px dashed rgba(195,16,24,.4);
  font-family: var(--hand); font-size: 21px; line-height: 1.28; color: #ffb3a8; }

/* ─────────────────────────── ПЛАН Б ─────────────────────────── */
.planb { width: min(92vw, 860px); margin: 26px auto 0; padding: 18px 18px 16px; border-radius: 16px;
  background: rgba(12,22,36,.42); border: 1px solid rgba(120,180,255,.24); }
.pbhead { display: flex; align-items: center; gap: 10px; }
.pbic { font-size: 20px; }
.pbhead h3 { flex: 1; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #bcdcff; }
.pbprob { font-family: var(--disp); font-size: 15px; color: #9fd0ff;
  border: 1px solid rgba(120,180,255,.4); border-radius: 999px; padding: 4px 11px; }
.pbtx { margin: 11px 0 0; font-size: 13.5px; line-height: 1.6; color: #cfe2f5; opacity: .92; }
.pblist { margin: 10px 0 0; padding-left: 17px; }
.pblist li { font-size: 13.5px; line-height: 1.55; color: #cfe2f5; opacity: .88; margin-bottom: 6px; }

/* ─────────────────────────── ИТОГ ДНЯ ─────────────────────────── */
.dsum { width: min(92vw, 860px); margin: 26px auto 8px; padding: 20px 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(60,10,12,.6), rgba(26,6,7,.7));
  border: 1px solid rgba(245,197,24,.24); text-align: center; }
.dsumrow { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.dsumrow span { display: flex; flex-direction: column; gap: 2px; font-family: var(--disp); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: #e8b7a2; opacity: .8; }
.dsumrow b { font-size: 30px; color: var(--yellow); letter-spacing: 0; }
.dsumline { margin: 15px auto 0; max-width: 560px; font-family: var(--hand); font-size: 22px;
  line-height: 1.3; color: #f0c3a8; }

/* ─────────────────────────── ФИНАЛ ─────────────────────────── */
.tfin { position: relative; margin-top: 46px; min-height: 92svh; display: flex; align-items: center;
  overflow: hidden; }
.tfimg { position: absolute; inset: 0; }
.tfimg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.7); }
.tfsc { position: absolute; inset: 0; background: linear-gradient(180deg, #1b0203 0%, rgba(20,2,3,.82) 26%, rgba(20,2,3,.9) 100%); }
.tfin_in { position: relative; z-index: 2; text-align: center; padding: 54px 0 46px; }
.tfstamp { display: inline-block; font-family: var(--disp); font-weight: 700;
  font-size: clamp(26px, 8.4vw, 62px); letter-spacing: .1em; text-transform: uppercase; color: #ff6b6b;
  border: 3px solid rgba(195,16,24,.75); border-radius: 6px; padding: 10px 20px;
  transform: rotate(-3deg); text-shadow: 0 3px 0 rgba(0,0,0,.5); }
.tfverdict { margin: 26px auto 0; max-width: 560px; font-family: var(--hand); font-size: clamp(21px, 5.6vw, 30px);
  line-height: 1.3; color: #f0c3a8; }
.tfstats { margin: 30px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 620px; }
.fst { padding: 14px 8px; border-radius: 14px; background: rgba(20,3,4,.6);
  border: 1px solid rgba(245,197,24,.2); display: flex; flex-direction: column; gap: 3px; }
.fst b { font-family: var(--disp); font-size: 27px; color: var(--yellow); }
.fst span { font-family: var(--disp); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #e8b7a2; opacity: .8; }
.tfbtns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.tfsign { margin-top: 26px; font-family: var(--hand2); font-size: 16px; color: #e8b7a2; opacity: .85; }

.totop { position: fixed; right: 14px; bottom: 14px; z-index: 45; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(245,197,24,.4); background: rgba(22,3,4,.85);
  color: var(--yellow); font-size: 19px; cursor: pointer; opacity: 0; pointer-events: none; transition: .25s;
  backdrop-filter: blur(8px); }
.totop.on { opacity: 1; pointer-events: auto; }

/* Фоновые стикеры-украшения.
   Раньше они лежали поверх текста и карты и мешали читать. Теперь они
   живут ТОЛЬКО в боковых полях за пределами колонки контента, поэтому по
   умолчанию скрыты — их включает медиазапрос ниже, когда поля достаточно
   широкие. Кликов не ловят и лежат под контентом. */
.deco { display: none; position: absolute; z-index: 0; pointer-events: none; user-select: none;
  opacity: .55; filter: saturate(1.2) brightness(1.15)
    drop-shadow(0 0 14px rgba(245,197,24,.28)) drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.deco.on { display: block; }             /* включает скрипт, когда поля широкие */
.deco.spin { animation: dspin 26s linear infinite; }
.deco.sway { animation: dsway 11s ease-in-out infinite; }
@keyframes dspin { to { transform: rotate(360deg); } }
@keyframes dsway { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(8deg); } }

/* лайтбокс */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10,1,2,.94); display: none;
  align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 88svh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.lbx { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(30,6,7,.9); border: 1px solid rgba(245,197,24,.4); color: var(--yellow);
  font-size: 20px; cursor: pointer; }

/* ═══════════════ ПЛАНШЕТ ═══════════════ */
@media (min-width: 700px) {
  .thin { padding-bottom: 130px; }
  .thwho { flex-direction: row; align-items: baseline; gap: 18px; font-size: clamp(46px, 9.4vw, 116px); }
  .thwho i { font-size: .52em; margin: 0; }
  .mas { height: 208px; }
  .mliza { margin-right: -34px; }
  .tnavd a span { display: inline; }
  .ovgrid { grid-template-columns: repeat(2, 1fr); }
  .ovc { flex-direction: column; }
  .ovph { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 10; }
  .ovb { padding: 15px 16px 17px; }
  .tline { grid-template-columns: 92px 1fr; gap: 16px; }
  .hop { margin-left: 92px; }
  .tfstats { grid-template-columns: repeat(4, 1fr); }
  .cluein { padding: 30px 30px 26px; }
  .planb, .dsum { padding: 24px 26px; }
}

/* ═══════════════ ДЕСКТОП ═══════════════ */
@media (min-width: 1000px) {
  .thin { padding-bottom: 150px; }
  .mas { height: 300px; }
  .mliza { margin-right: -48px; }
  .maspair { right: max(2vw, 12px); }
  .ovgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .over { padding: 66px 0 10px; }
  .dcover { min-height: 68svh; }
  .dlead { font-size: 17px; margin-top: 30px; }
  .tline { grid-template-columns: 116px 1fr; gap: 22px; }
  .tw { top: 64px; }
  .ttime { font-size: 18px; }
  .hop { margin-left: 116px; padding-left: 14px; }
  .trippage .card { display: grid; grid-template-columns: 46% 1fr; align-items: stretch; }
  .trippage .card .ph { aspect-ratio: auto; height: 100%; min-height: 262px; }
  .cbody { padding: 22px 26px 24px; }
  .chead h3 { font-size: 23px; }
  .ctext { font-size: 15px; }
  .trippage .card.flat, .trippage .card.story { display: flex; }
  .cst { width: 66px; }
  .dsumrow { gap: 46px; }
}
@media (min-width: 1280px) {
  .thwho { font-size: 132px; }
  .trippage .card .ph { min-height: 292px; }
}

/* ═══════════════ ТЕЛЕФОН: ДОВОДКА ═══════════════ */
@media (max-width: 700px) {
  /* На схеме дня подписи в 13 единиц viewBox дают ~4 px на экране — не читаются.
     Оставляем только номера, крупно: точка ведёт к своей карточке по тапу. */
  .mlbl { display: none; }
  .mdot { r: 26; stroke-width: 5; }
  .mhit { r: 44; }
  .mnum { font-size: 32px; }
  .mline { stroke-width: 5; stroke-dasharray: 14 12; }
  .mpt:hover .mdot, .mpt:focus-visible .mdot { r: 30; }
  .daymap { padding: 12px 6px 6px; }
  .gth { width: 56px; height: 42px; }        /* пальцем в 34 px не попасть */
  /* подсказка «листай» уходит влево, чтобы не лезть под маскотов */
  .thscroll { left: max(4vw, 14px); transform: none; align-items: flex-start; }
  .tbtn { min-height: 44px; }
}

/* очень узкие телефоны */
@media (max-width: 380px) {
  .tline { grid-template-columns: 52px 1fr; gap: 8px; }
  .hop { margin-left: 52px; }
  .ttime { font-size: 13.5px; }
  .ovph { flex: 0 0 92px; }
  .chead h3 { font-size: 18px; }
  .mas { height: 112px; }
  .fcode b { font-size: 19px; }
}

/* ─── ожившие иллюстрации ───
   Видео лежит поверх своей же картинки-постера и проявляется, когда
   действительно поехало. Пока не загрузилось (или у человека выключены
   анимации) — видна статичная иллюстрация, и разницы не заметно. */
.covervid, .cardvid { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; z-index: 1; }
.covervid.on, .cardvid.on { opacity: 1; }
.dcover.art.hasvid { position: relative; }
.dcover.art.hasvid .covervid { position: absolute; border-radius: 16px;
  border: 1px solid rgba(245,197,24,.18); }
.trippage .card .ph.hasvid .cardvid { z-index: 2; }
.trippage .card .ph.hasvid .badge, .trippage .card .ph.hasvid .gstrip { z-index: 4; }
/* значок «тут живая картинка» */
.ph.hasvid::before, .dcover.art.hasvid::before { content: "▶"; position: absolute; z-index: 5;
  right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(20,3,4,.72); border: 1px solid rgba(245,197,24,.45); color: var(--yellow);
  font-size: 11px; line-height: 28px; text-align: center; pointer-events: none;
  opacity: .9; transition: opacity .3s; }
.ph.hasvid.playing::before, .dcover.art.hasvid.playing::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .covervid, .cardvid { display: none; } }

/* ═══════════ ТЕЛЕФОН: СВЕТ ═══════════
   Стоит в самом конце файла осознанно: эти правила перебивают базовые
   фильтры и скримы, объявленные выше. Медиазапрос специфичность не
   повышает, так что порядок здесь и есть весь механизм.

   Почему вообще понадобилось: на широком экране тёмные слои читаются как
   края и глубина, а на телефоне тот же слой накрывает весь экран — страница
   уходила в чёрное. Палитру не меняем, только возвращаем свет. */
@media (max-width: 760px) {
  /* фон прибит к экрану, поэтому его нижняя, самая тёмная часть висит перед
     глазами всю прокрутку: растягиваем красное пятно и поднимаем нижний тон */
  body.trippage {
    background: #2b0608;
    background-image: radial-gradient(155% 80% at 50% 0%, var(--red1) 0%, var(--red2) 26%,
                                      var(--red3) 58%, #2b0608 100%);
  }
  .grain { opacity: .1; }

  /* шапка — первое, что видно, и фото там на весь экран. Низ скрима не
     трогаем: на нём стоит белый заголовок, ему нужна подложка */
  .thimg img { filter: saturate(.62) contrast(1.06) brightness(.95); }
  .thsc { background: linear-gradient(180deg, rgba(20,2,3,.42) 0%, rgba(20,2,3,.2) 34%,
                                      rgba(20,2,3,.84) 78%, #2b0608 100%); }
  .tfimg img { filter: saturate(.6) brightness(.88); }
  /* фотографии в карточках и в обзоре тоже глушились сильнее, чем нужно */
  .trippage .card .ph > img { filter: saturate(.72) contrast(1.04); }
  .ovph img { filter: saturate(.68) contrast(1.03); }
}
