/* «Кино» — сайт как короткий фильм. Общий слой для всех страниц.
   Чёрный здесь — рамка кадра (каше), а не фон «для красоты». Текст ведёт себя как титры и субтитры. */
:root {
  --black: #000;
  --room: #191a19;        /* графит монтажной */
  --room-2: #232422;
  --bone: #eae4d8;        /* основной текст */
  --bone-2: #cfc8ba;
  --stone: #a39e92;       /* вторичный текст */
  --glass: #9db8a8;       /* морское стекло — единственный акцент */
  --bottle: #2f5d57;      /* только в интерфейсах ботов */
  --line: rgba(234, 228, 216, .14);
  --line-2: rgba(234, 228, 216, .26);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 64px;
  --bot: 52px;
  --gut: clamp(28px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--bone); font: 400 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); overflow-x: hidden; padding-bottom: var(--bot); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.js-wurl[hidden], .js-af-url[hidden] { display: none !important; }
section[id], article[id] { scroll-margin-top: var(--top); }

/* плёночное зерно поверх всего — тихое, 6 кадров в секунду */
.grain { position: fixed; inset: -60px; z-index: 80; pointer-events: none; opacity: .07; background: url(img/grain.png) repeat; background-size: 128px; animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-23px, 11px); } 40% { transform: translate(17px, -29px); } 60% { transform: translate(-9px, 31px); } 80% { transform: translate(29px, 7px); } 100% { transform: translate(0, 0); } }

/* ——— кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 22px; border: 0; font: 500 15px/1.1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.btn svg { flex: none; }
.btn--tg { background: var(--bone); color: #121211; }
.btn--tg:hover { background: #fff; }
.btn--line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--bone); }
.link { color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--bone); }
.ext { display: inline-flex; align-items: center; gap: 6px; }
.ext svg { opacity: .7; }

/* ——— верхнее каше: имя и связь ——— */
.top { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: var(--top); background: var(--black); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut); }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; min-height: 44px; align-items: center; }
.brand b { font: 400 19px/1 var(--serif); letter-spacing: .005em; }
.brand span { font-size: 13.5px; color: var(--stone); }
.top__r { display: flex; align-items: center; gap: 22px; }
.top__tel { font-size: 14px; color: var(--stone); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.top__tel:hover { color: var(--bone); }
.top__menu { display: none; }
.top__ava { display: none; }

/* ——— нижнее каше: плеер-навигация по всей странице ——— */
.player { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: var(--bot); background: var(--black); display: flex; align-items: center; gap: 22px; padding: 0 var(--gut); }
.player__play { flex: none; width: 44px; height: 44px; margin-left: -12px; border: 0; border-radius: 50%; background: transparent; color: var(--bone); cursor: pointer; display: grid; place-items: center; }
.player__play:hover { background: rgba(234, 228, 216, .1); }
.player__play .i-pause, .player__play[aria-pressed="true"] .i-play { display: none; }
.player__play[aria-pressed="true"] .i-pause { display: block; }
.player__skip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 22px; color: var(--bone-2); font-size: 13.5px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s, opacity .3s; }
.player__skip:hover { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.player__skip.is-off { opacity: 0; pointer-events: none; }
.player__tc { flex: none; min-width: 104px; font-size: 13px; color: var(--stone); font-variant-numeric: tabular-nums; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.player__tc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glass); opacity: .9; }
.chapters { flex: 1; display: flex; gap: 14px; height: 100%; min-width: 0; }
.chapters li { flex: var(--w, 1) 1 0; min-width: max-content; }
.chapters a { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: var(--bot); text-decoration: none; color: var(--stone); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.chapters a:hover, .chapters .is-on a { color: var(--bone); }
.chapters i { position: relative; display: block; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 1px; }
.chapters i::after { content: ""; position: absolute; inset: 0; background: var(--glass); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chapters .is-done i::after { --p: 1; background: var(--stone); }

/* ——— кадр: изображение под обложку + наложенные «живые» экраны ——— */
.frame { position: absolute; inset: 0; overflow: hidden; background: #0b0b0a; }
.frame__img, .frame picture, .frame picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame__img, .frame picture img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.ov { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: hidden; }
.ov > img { width: 100%; height: 100%; }
.scrim-b::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent); pointer-events: none; }
.scrim-t::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent); pointer-events: none; z-index: 1; }

/* субтитры — как в кино: по центру, без плашки, с мягкой тенью */
.sub { position: absolute; z-index: 6; left: 50%; bottom: 30px; width: min(780px, 86%); transform: translateX(-50%); text-align: center; font: 500 18px/1.42 var(--sans); color: #f6f1e7; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .45s; pointer-events: none; text-wrap: balance; }
.sub.is-on { opacity: 1; }
.sub time { color: var(--glass); font-variant-numeric: tabular-nums; margin-right: .35em; }

/* ——— подпись сцены: что это, сколько стоит, где посмотреть ——— */
.cap { position: absolute; z-index: 7; right: var(--gut); bottom: 96px; width: min(372px, 34vw); padding: 22px 24px 20px; border-radius: 4px; background: rgba(17, 17, 16, .9); color: var(--bone); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cap.is-on { opacity: 1; transform: none; }
.cap h3 { font: 400 25px/1.15 var(--serif); margin-bottom: 8px; }
.cap > p { font-size: 16px; line-height: 1.5; color: var(--bone-2); }
.price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 5px; font-size: 16px; }
.price b { font-weight: 600; color: var(--bone); }
.price span { color: var(--bone-2); }
.cap__src { margin-top: 14px; font-size: 15px; color: var(--stone); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.role { display: inline-block; font-size: 13px; line-height: 1; padding: 5px 8px 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone-2); white-space: nowrap; }

/* ——— сцены фильма (ПК): длинная секция, внутри — липкий кадр ——— */
.scene { position: relative; height: var(--len, 280vh); }
.stage { position: sticky; top: var(--top); height: calc(100vh - var(--top) - var(--bot)); overflow: hidden; background: var(--black); }
.shot { position: absolute; inset: 0; }
.scene__title { position: absolute; z-index: 6; left: var(--gut); top: 26px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.scene__no { font-size: 14px; color: var(--bone-2); }
.scene__title h2 { font: 300 34px/1.08 var(--serif); }
.only-m { display: none !important; }
.rm .player__play { display: none; }

/* ——— общие секции ——— */
.sec { position: relative; padding: 96px var(--gut) 104px; }
.sec__head { max-width: 1160px; margin: 0 auto 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.sec__head h2 { font: 300 34px/1.12 var(--serif); }
.sec__head p { max-width: 34em; color: var(--bone-2); font-size: 17px; }

/* ——— финальные титры (подвал) ——— */
.credits { padding: 110px var(--gut) 90px; background: var(--black); text-align: center; }
.credits__lead { font: 300 24px/1.35 var(--serif); color: var(--bone-2); margin-bottom: 48px; }
.roll { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; max-width: 760px; margin: 0 auto; font-size: 16px; }
.roll dt { text-align: right; color: var(--stone); }
.roll dd { text-align: left; color: var(--bone); }
.roll a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.roll a:hover { border-color: var(--bone); }
.credits__pages { margin: 64px auto 0; max-width: 820px; }
.credits__pages h2 { font: 400 15px/1.3 var(--sans); color: var(--stone); margin-bottom: 16px; }
.credits__pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 15px; }
.credits__pages a { display: inline-flex; min-height: 36px; align-items: center; color: var(--bone-2); text-decoration: none; }
.credits__pages a:hover { color: var(--bone); }
.credits__fine { margin-top: 56px; font-size: 14px; color: var(--stone); }

/* ——— сторис (телефон) ——— */
.st-bars { display: none; }

/* ——— интерфейсы в кадре: Telegram, экран блокировки, заказы ——— */
.tg { position: relative; width: 390px; height: 844px; display: flex; flex-direction: column; overflow: hidden; border-radius: 46px; font: 400 15.5px/1.32 Inter, var(--sans); color: #111; background: linear-gradient(180deg, #d9d3c7 0%, #e4dfd5 55%, #ddd7cb 100%); -webkit-font-smoothing: antialiased; }
.tg__sb { height: 47px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px 0 40px; font-weight: 600; font-size: 16px; background: rgba(247, 246, 243, .96); }
.tg__nav { height: 52px; flex: none; display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; padding: 0 12px; background: rgba(247, 246, 243, .96); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.tg__back { color: #2f6db5; font-size: 16px; display: flex; align-items: center; gap: 4px; }
.tg__ttl { text-align: center; line-height: 1.15; }
.tg__ttl b { display: block; font-size: 16px; font-weight: 600; }
.tg__ttl span { font-size: 12.5px; color: #8a8a8a; }
.tg__ava { justify-self: end; width: 36px; height: 36px; border-radius: 50%; background: var(--bottle); display: grid; place-items: center; overflow: hidden; }
.tg__ava img { width: 100%; height: 100%; object-fit: cover; }
.tg__feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 10px 8px; overflow: hidden; }
.tg__day { align-self: center; font-size: 12.5px; color: #fff; background: rgba(60, 60, 50, .32); padding: 3px 10px; border-radius: 10px; margin-bottom: 4px; }
.tg .m { max-width: 78%; padding: 7px 11px 6px; border-radius: 17px; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.tg .m i { font-style: normal; font-size: 11px; color: #8b8f86; float: right; margin: 6px 0 -2px 10px; }
.tg .in { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.tg .out { align-self: flex-end; background: #dcefc9; border-bottom-right-radius: 5px; }
.tg .out i { color: #5f9a52; }
.tg .kb { align-self: flex-start; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 78%; margin-top: -2px; }
.tg .kb.two { grid-template-columns: repeat(2, 1fr); }
.tg .kb span, .tg .kb button { text-align: center; font-size: 14px; font-weight: 500; color: #fff; background: rgba(52, 62, 56, .42); border-radius: 9px; padding: 8px 4px; border: 0; }
.tg__bar { height: 84px; flex: none; background: rgba(247, 246, 243, .97); border-top: 1px solid rgba(0, 0, 0, .07); display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px 0; }
.tg__fld { flex: 1; min-height: 36px; border-radius: 18px; border: 1px solid #d8d6d0; background: #fff; color: #9a9a95; font-size: 15.5px; padding: 8px 14px; }
.tg__home { position: absolute; left: 50%; bottom: 9px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; }
.tg .m, .tg .kb, .tg__day { transition: opacity .35s, transform .35s var(--ease); }
.tg .is-hid { opacity: 0; transform: translateY(8px); }

.lock { position: relative; width: 390px; height: 844px; overflow: hidden; border-radius: 46px; color: #fff; font-family: Inter, var(--sans); background: radial-gradient(120% 70% at 30% 20%, #4d5f63 0%, #263235 45%, #151b1d 100%); -webkit-font-smoothing: antialiased; }
.lock__sb { height: 47px; display: flex; align-items: center; padding: 0 40px; font-weight: 600; font-size: 16px; }
.lock__date { text-align: center; margin-top: 34px; font-size: 19px; font-weight: 500; opacity: .9; }
.lock__clock { text-align: center; font-size: 92px; font-weight: 600; letter-spacing: -2px; line-height: 1; margin-top: 2px; }
.lock__stack { position: absolute; left: 10px; right: 10px; bottom: 112px; display: flex; flex-direction: column; gap: 8px; }
.lock .n { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 22px; background: rgba(245, 243, 238, .76); color: #111; transition: opacity .4s, transform .4s var(--ease); }
.lock .n .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--bottle); display: grid; place-items: center; }
.lock .n b { font-size: 15px; font-weight: 600; display: block; }
.lock .n p { font-size: 15px; line-height: 1.3; }
.lock .n time { font-size: 13px; color: #5f625c; }
.lock .is-hid { opacity: 0; transform: translateY(-14px) scale(.98); }
.lock__home { position: absolute; left: 50%; bottom: 9px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .sub, .cap, .tg .m, .lock .n { transition: none; }
}
