:root {
  --paper: #fff;
  --ink: #000;
  --blue: #1a7bff;
  --xt: #075985;
  --xt-sky: #7dd3fc;
  --xt-star: #ffd959;
  --xr: #0a66c2;
  --xr-ok: #34be72;
  --sw: #0e131b;
  --sw-sky: #5aadfc;
  --mb: #07011a;
  --mb-glow: #5416da;
  --stub: #ececec;
  --stub-ink: #8a8a8a;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--paper); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Шапка */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 48px; padding: 0 32px;
  display: flex; align-items: center; color: #fff; mix-blend-mode: difference;
  font-size: 14px; font-weight: 500;
}
.top nav { display: flex; gap: 28px; }
.top .me { margin-right: 40px; white-space: nowrap; }
.top .me b { font-weight: 700; }
.top .ext { display: flex; gap: 22px; margin-left: auto; }
.top .ext a { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.top a { text-decoration: none; display: flex; align-items: center; gap: 8px; opacity: .55; transition: opacity .2s; }
.top a.on, .top a:hover { opacity: 1; }
.top a.back { margin-right: 32px; font-weight: 700; opacity: 1; white-space: nowrap; }
.top a.off { cursor: default; opacity: .3; }
.top i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.top a.on i { background: currentColor; }

/* Меню с прогрессом на главной: равные сегменты, заполнение идёт из --p */
.top .prog { flex: 0 1 620px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-right: 24px; }
.top .prog a { flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; height: 48px; opacity: 1; white-space: nowrap; }
.top .prog span { opacity: .55; transition: opacity .2s; }
.top .prog a.on span, .top .prog a:hover span { opacity: 1; }
.top .prog i, .top .prog a.on i { position: relative; display: block; width: auto; height: 2px; border: 0; border-radius: 1px; overflow: hidden; background: color-mix(in srgb, currentColor 28%, transparent); }
.top .prog i::after { content: ''; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
/* На главной цвет шапки и подсказок задаёт таймлайн: белый или тёмный по фону экрана */
html.hud { --hud: #000; }
html.hud.hud-light { --hud: #fff; }
html.hud .top, html.hud .foot, html.hud .skip { color: var(--hud); mix-blend-mode: normal; }
html.hud-on .top { transition: color .2s; }
html.hud-on .foot { transition: opacity .25s, color .2s; }
html.hud-on .foot.off { transition: none; }
html.hud-on .skip { transition: opacity .25s, color .2s; }
@media (max-width: 1040px) { .top .me { display: none; } }

/* Сцена */
#stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.paper { position: absolute; inset: 0; background: var(--paper); }

#ball { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--mb); visibility: hidden; }
#halo { position: absolute; inset: 2%; border-radius: 50%; opacity: 0; box-shadow: 0 0 0 3px #9854fb, 0 0 70px 14px var(--mb-glow), 0 0 220px 50px rgba(84, 22, 218, .45); }
#rig { position: absolute; left: 50%; top: 50%; }
#rigin, #orb, #glow { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#glow { opacity: 0; }

.q {
  position: absolute; left: 0; right: 0; top: 56px; padding: 0 32px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  font: 400 min(12.4vw, 24vh)/1.02 var(--display); text-transform: uppercase;
  transform-origin: 50% 40%;
}
.ln { display: block; white-space: nowrap; }
.ln .ch { display: inline-block; margin-right: .05em; }

.foot {
  position: fixed; left: 50%; bottom: 22px; z-index: 20; pointer-events: none; transform: translateX(-50%); white-space: nowrap;
  color: #fff; mix-blend-mode: difference; font-size: 15px; font-weight: 500; transition: opacity .25s;
}
.foot.off { opacity: 0; transition: none; }
.foot.playing { opacity: 0; }

.auto {
  position: fixed; left: 32px; bottom: 16px; z-index: 21; display: flex; flex-direction: row-reverse; align-items: center; gap: 6px;
  color: #fff; font-size: 14px; font-weight: 500; transition: opacity .2s;
}
.auto.off { opacity: 0; visibility: hidden; pointer-events: none; }
.auto[data-state="play"] { opacity: .5; }
.auto[data-state="play"]:has(:focus-visible) { opacity: 1; }
@media (hover: hover) { .auto[data-state="play"]:hover { opacity: 1; } }
.auto button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.auto button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.auto .auto-btn, .auto-speed { background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; }
.auto .auto-btn { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 4px; }
.auto-btn i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.auto-btn svg { width: 9px; height: 9px; fill: #111; }
.auto .i-pause, .auto[data-state="play"] .i-play { display: none; }
.auto[data-state="play"] .i-pause { display: block; }
.auto-speed { display: none; gap: 2px; padding: 3px; font-size: 13px; }
.auto[data-state="play"] .auto-speed { display: flex; }
.auto .auto-speed button { height: 26px; padding: 0 9px; border-radius: 999px; }
.auto .auto-speed button[aria-pressed="true"] { background: #fff; color: #111; }

.skip {
  position: fixed; right: 32px; bottom: 22px; z-index: 20; color: #fff; mix-blend-mode: difference;
  font-size: 15px; font-weight: 500; transition: opacity .25s;
}
.skip.off { opacity: 0; pointer-events: none; }

.intro { position: absolute; left: 32px; right: 32px; bottom: 56px; max-width: 34ch; color: var(--ink); font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }
.intro span { display: block; }
.intro span + span { margin-top: .5em; }

#lens {
  position: absolute; left: 50.04%; top: 50.29%; width: 52.21%; height: 52.21%; translate: -50% -50%;
  border-radius: 50%; overflow: hidden; background: #000; visibility: hidden;
}
#ansc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ans-static { display: none; }
.cap {
  position: absolute; left: 0; right: 0; bottom: 52px; text-align: center; color: #fff;
  font-size: 15px; font-weight: 500; visibility: hidden; pointer-events: none;
}

/* Экран приложения */
.end {
  position: absolute; inset: 0; padding: 64px 32px 28px; visibility: hidden; pointer-events: none;
  display: grid; grid-template-columns: auto minmax(150px, 1fr) auto; grid-template-rows: auto 1fr;
  gap: 16px 24px; align-items: center;
}
.title {
  grid-column: 1 / -1; overflow: hidden; align-self: start;
  font: 400 min(10vw, 19vh)/1.1 var(--display); text-transform: uppercase; white-space: nowrap;
}
.title span { display: block; }
.lc { font-style: normal; text-transform: none; }
.slot { width: clamp(120px, 17vw, 32vh); aspect-ratio: 1; }
.info { pointer-events: auto; max-width: 38ch; }
.line { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.4; }
.line-big { display: block; margin-bottom: .55em; font-size: 1.35em; font-weight: 500; line-height: 1.25; }
.cta { margin-top: 18px; }
.stats { display: flex; align-items: flex-start; gap: 28px; margin-top: 16px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font: 400 clamp(26px, 2.8vw, 40px)/1.1 var(--display); }
.stats .star { margin-left: .1em; font: 400 .72em/1 var(--text); vertical-align: .08em; }
.stats dt { font-size: 13px; line-height: 1.3; opacity: .7; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: block; padding: 7px 14px 8px; background: #000; color: #fff; border-radius: 9px;
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.15;
}
.store small { display: block; font-size: 10px; font-weight: 400; opacity: .8; }
.more { display: inline-block; margin-top: 14px; font-weight: 700; text-underline-offset: 4px; }

.shots { display: flex; gap: 12px; pointer-events: auto; }
.shot {
  position: relative; flex: none; height: min(52vh, 34vw); width: calc(min(52vh, 34vw) * 9 / 19.5); aspect-ratio: 9 / 19.5; border-radius: 18px; background: var(--stub); color: var(--stub-ink);
  cursor: zoom-in; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500;
  transition: transform .25s;
}
.shot:hover { transform: translateY(-6px); }

/* XTranscript */
#xtbg { position: absolute; inset: 0; background: var(--xt); clip-path: inset(50% 0 50% 0); }
#wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xt { position: absolute; left: 32px; right: 32px; top: 64px; visibility: hidden; color: #fff; }
.xt h2 { font: 400 min(7.4vw, 15vh)/1.05 var(--display); text-transform: uppercase; }
.xt p { margin-top: 12px; max-width: none; font-size: clamp(17px, 1.72vw, 25px); line-height: 1.4; }


/* Слова встречи */
.tr { position: absolute; inset: 0; pointer-events: none; font-weight: 500; }
.tr span { position: absolute; left: 0; top: 0; white-space: nowrap; visibility: hidden; will-change: transform; background: linear-gradient(#ffd959, #ffd959) no-repeat 0 0 / 0% 100%; }
.mk { position: absolute; left: 0; top: 0; visibility: hidden; background: rgba(255, 217, 89, .4); }
.heads {
  position: absolute; left: 32px; display: grid; font: 400 clamp(18px, 2.6vw, 34px)/1.1 var(--display);
  visibility: hidden; pointer-events: none;
}
.heads span:nth-child(1) { color: var(--xt-sky); }
.heads span:nth-child(2) { color: var(--xt-star); }
.heads span:nth-child(3) { color: #ffa8b8; }
.sum {
  position: absolute; left: 32px; right: 32px; top: 50%; transform: translateY(-50%); visibility: hidden;
  font: 400 min(4.7vw, 9vh)/1.25 var(--display); pointer-events: none;
}
.sum .t i { font-style: normal; opacity: 0; }
.tpl { margin-bottom: .5em; font: 500 clamp(16px, 1.6vw, 22px)/1.3 var(--text); opacity: .75; }
.sum-caret { position: absolute; left: 0; top: 0; width: .07em; height: 1.1em; background: #fff; visibility: hidden; animation: caret 1s steps(2, jump-none) infinite; }
@keyframes caret { from { background: #fff; } to { background: transparent; } }
.llm { position: absolute; left: 20px; bottom: 44px; display: grid; padding: 6px 12px; background: var(--xt); color: #fff; font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; visibility: hidden; }
.llm span { grid-area: 1 / 1; }

/* Экран XTranscript */
.endw { grid-template-columns: minmax(170px, 1fr) auto; }
.endw .title { font-size: min(9vw, 19vh); }
.shots.wide .shot { height: auto; width: min(30vw, 58vh); aspect-ratio: 16 / 10; }

/* Portreto */
#ptbg { position: absolute; inset: 0; background: #6b4a5e; clip-path: circle(0px at 50% 50%); }
.sun { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.sun-a { background: #ffd9b8; }
.sun-b { background: #f6b78c; }
.sun-c { background: #6b4a5e; }
#pt { position: absolute; overflow: visible; visibility: hidden; pointer-events: none; }
#ptline, #ptring { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
#ptrim { fill: none; stroke: #fbf3e4; stroke-width: 14; opacity: 0; }
.ptf { fill: #fbf3e4; fill-opacity: 0; stroke: #fbf3e4; stroke-width: 5; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.pt { position: absolute; left: 32px; right: 32px; top: 64px; visibility: hidden; pointer-events: none; color: #fbf3e4; }
.pt h2 { overflow: hidden; font: 400 min(5.8vw, 11vh)/1.08 var(--display); text-transform: uppercase; }
.pt h2 span { display: block; }
.pt p { margin-top: 12px; max-width: none; font-size: clamp(17px, 1.72vw, 25px); line-height: 1.4; }

/* Portreto: сцены */
.pq {
  position: absolute; left: 32px; right: 32px; top: 50%; transform: translateY(-50%); visibility: hidden; pointer-events: none;
  font: 400 min(6.2vw, 11.5vh)/1.14 var(--display); color: #6b4a5e;
}
.pq.pq-e { color: #fbf3e4; }
.pq span { display: inline-block; margin-right: .26em; }
#rc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pq.pq-f { text-align: center; text-wrap: balance; }
.pq .pl { margin-bottom: .6em; font: 500 clamp(18px, 2vw, 28px)/1.2 var(--text); }
.ptw { position: absolute; left: 50%; top: 50%; width: min(25vh, 21vw); height: 8em; transform: translate(-50%, -50%); overflow: hidden; visibility: hidden; pointer-events: none; font-size: clamp(18px, 2vw, 28px); }
.ptr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; text-align: center; text-wrap: balance; visibility: hidden; color: #fbf3e4; font: 500 1em/1.25 var(--text); }
.end3 { color: #fbf3e4; }
.badge { display: block; height: 44px; width: auto; }
.end3 .more { margin-top: 12px; }

/* xRADAR */
.rt {
  position: absolute; left: 50%; top: 50%; width: min(58vh, 72vw); transform: translate(-50%, -50%); display: grid; align-items: center; text-align: center; visibility: hidden; pointer-events: none; color: #fff;
}
.rt h2 { grid-area: 1 / 1; font: 400 min(5vh, 5.4vw)/1.12 var(--display); text-transform: uppercase; text-wrap: balance; }
.rt .qm { display: inline-block; }
.rt .rt-1 { overflow: hidden; }
.rt .rt-1 span { display: block; }
.rt .rt-3 { visibility: hidden; color: var(--xr); }
.rf { position: absolute; left: 50%; top: 50%; margin: 0; width: min(58vh, 72vw); text-align: center; color: #fff; visibility: hidden; pointer-events: none; font: 400 min(5vh, 5.4vw)/1.12 var(--display); text-transform: uppercase; }
.rd { position: absolute; left: 50%; top: 50%; background: #fff; visibility: hidden; pointer-events: none; }
.rs b { display: block; margin-top: 2px; font: 400 clamp(18px, 2.2vw, 30px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.rq {
  position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: .5em; padding: .5em 1.1em; border-radius: 999px; background: #fff; color: #0f1b2d; visibility: hidden; pointer-events: none;
  font: 500 clamp(18px, 2.2vw, 30px)/1.2 var(--text); white-space: nowrap;
}
.rq span { display: block; }
.rq svg { flex: none; width: 1em; height: 1em; }
.rt .nb { white-space: nowrap; }
.rs svg, .rs img { display: block; border-radius: 20.8%; width: clamp(34px, 3.6vw, 50px); height: clamp(34px, 3.6vw, 50px); margin: 0 auto 6px; }
.rs { position: absolute; text-align: center; visibility: hidden; pointer-events: none; color: #fff; white-space: nowrap; font: 500 clamp(15px, 1.7vw, 23px)/1.2 var(--text); }
.rn { position: absolute; left: 50%; top: 50%; text-align: center; color: #fff; visibility: hidden; pointer-events: none; }
.rn b { display: block; font: 400 min(11vh, 8vw)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.rn-l { display: grid; font-size: clamp(16px, 1.7vw, 23px); font-weight: 500; }
.rn small { grid-area: 1 / 1; font-size: inherit; }
.rm { position: absolute; inset: 0; background: #5ff0a8; visibility: hidden; pointer-events: none; }
.jc { position: absolute; inset: 0; color: #061a3a; visibility: hidden; pointer-events: none; }
.jc-h, .jc-pct, .jc-t { overflow: hidden; }
.jc-h span, .jc-pct span, .jc-t span { display: block; }
.jc-h { position: absolute; left: 32px; right: 32px; top: 11vh; font: 400 min(4.8vw, 8.4vh)/1.15 var(--display); }
.jc-pct { position: absolute; left: 32px; bottom: 5vh; font: 400 min(20vw, 40vh)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.jc-b { position: absolute; left: 64vw; right: 32px; bottom: 8vh; }
.jc-t { font: 400 min(2.2vw, 4vh)/1.2 var(--display); }
.jc ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; }
.jc li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: .6em 0; }
.jc li i { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: #061a3a; transform-origin: 0 50%; }
.cv {
  position: absolute; left: 20vw; width: 60vw; top: 9vh; height: 104vh; padding: 6vh 4.5vw; background: #fff; color: #061a3a; display: flex; flex-direction: column; gap: 2.6vh; visibility: hidden; pointer-events: none;
}
.cv h3 { margin: 0 0 3vh; max-width: 80%; text-wrap: balance; font: 400 min(4vw, 7vh)/1.14 var(--display); }
.cv b { position: absolute; right: 4.5vw; top: 6vh; font: 400 min(2vw, 3.6vh)/1 var(--display); }
.cv i { display: block; flex: none; height: 16px; background: #061a3a; transform-origin: 0 50%; }
.cv i:nth-of-type(2) { width: 70%; }
.cv i:nth-of-type(3) { width: 86%; }
.cv i:nth-of-type(5) { width: 52%; }
.cv i.hit { background: #061a3a; }
.end4 { color: #fff; }
.rb { --a: 0deg; position: absolute; inset: 0; visibility: hidden; pointer-events: none;
  background: conic-gradient(from var(--a), #fff 0 .5deg, transparent .5deg 290deg, rgba(255, 255, 255, 0) 290deg, rgba(255, 255, 255, .3) 360deg); }
.end4 .more, .end5 .more { margin-top: 0; }

/* XSwitcher */
.wp { position: absolute; inset: 0; pointer-events: none; }
.lx { display: grid; justify-items: start; }
.lx > span { grid-area: 1 / 1; white-space: nowrap; }
.sw {
  position: absolute; left: 32px; right: 32px; top: 15vh;
  color: #fff; font: 400 min(3.7vw, 7vh)/1.12 var(--display); pointer-events: none;
}
.sw .lx-g { color: var(--sw-sky); }
.caret { position: absolute; left: 0; top: 0; width: .09em; height: 1em; font-size: min(7.4vw, 11vh); background: #fff; visibility: hidden; pointer-events: none; }
.sq { position: absolute; left: 32px; right: 32px; top: 15vh; margin: 0; color: #fff; font: 400 min(7.4vw, 11vh)/1.12 var(--display); pointer-events: none; }
.sq .nb, .so-c .nb, .au .nb { display: inline-block; white-space: pre; }
.sb { position: absolute; left: 38vw; top: 34vh; width: min(38vw, 72vh); pointer-events: none; }
.sb svg { display: block; width: 100%; }
.sb p { position: absolute; left: 0; right: 0; top: 54%; transform: translateY(-50%); margin: 0; text-align: center; color: #0e131b; font: 400 min(2.5vw, 4.7vh)/1.15 var(--display); }
.sb b { display: block; margin-top: .1em; color: #e8433a; font-weight: 400; font-size: 1.7em; }
.key { --k: min(15vw, 27vh); position: absolute; width: var(--k); height: calc(var(--k) * .9); border-radius: calc(var(--k) * .12); background: #8d929c; visibility: hidden; pointer-events: none; }
.key-big { left: 12vw; bottom: 13vh; }
.key-cap { position: absolute; left: 0; right: 0; top: 0; height: 93%; border-radius: inherit; background: linear-gradient(#fdfdfe, #e6e7eb); color: #33363d; }
.key-cap svg { position: absolute; top: 13%; right: 13%; width: 25%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.key-cap span { position: absolute; right: 13%; bottom: 13%; font: 400 calc(var(--k) * .135)/1 var(--text); }
.so { position: absolute; inset: 0; padding: 13vh 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-content: start; color: #0e131b; pointer-events: none; }
.so h2 { margin: 0; font: 400 min(3.6vw, 6.6vh)/1.14 var(--display); }
.so-c p { margin: 2.4vh 0 0; font: 500 min(2vw, 3.7vh)/1.3 var(--text); }
.so-d { position: absolute; left: 32px; bottom: 14vh; display: inline-block; isolation: isolate; padding: .08em .14em; font: 400 min(3.1vw, 5.8vh)/1.2 var(--display); }
.so-sel { position: absolute; inset: 0; z-index: 0; background: #b3d7ff; }
.so-t { position: relative; z-index: 1; }
.key-small { --k: min(12vw, 21vh); right: 5vw; bottom: 10vh; }
.sf { position: absolute; inset: 0; background: #0e131b; pointer-events: none; }
.end5 { color: #fff; }
.end5 .title .lx { display: grid; }
.end5 .title .lx span { display: inline; }
.end5 .title .lx > span { display: block; }
.end5 .title .nb, .end5 .line .nb { display: inline-block; white-space: pre; }
.end5 .lx-g { color: var(--sw-sky); }
.end5 code { font: inherit; font-weight: 700; }
.end5 { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 5vw, 88px); }
.sw-ic { display: block; width: min(25vw, 42vh); height: auto; }
.end5 .info { max-width: 38ch; font-size: clamp(16px, 1.7vw, 25px); }
.end5 .line { font-size: inherit; }

/* Автор */
.au {
  position: absolute; left: 32px; right: 32px; top: 50%; transform: translateY(-50%); visibility: hidden; color: #000;
}
.au h2 { margin: 0; font: 400 min(5.6vw, 11vh)/1.14 var(--display); }
.au-a { color: var(--blue); }
.au-pen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.au-pen path { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.au-qm { display: inline-block; }
.au-ball { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.au-ball img { position: absolute; inset: 0; width: 100%; height: 100%; }
.au-ball b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #2f9e6e; font: 500 1em/1 var(--display); }
.au-p { margin: 4vh 0 0; max-width: 34em; font: 500 clamp(19px, 2vw, 26px)/1.35 var(--text); }
.au-ps { position: absolute; left: 32px; bottom: 22px; margin: 0; color: #000; font-size: 15px; font-weight: 500; visibility: hidden; }

/* Лайтбокс */
#lb {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: rgba(0, 0, 0, .9); color: #fff;
}
#lb[open] { display: flex; align-items: center; justify-content: center; gap: 24px; }
.lb-shot {
  position: relative; height: 84vh; height: 84dvh; max-width: 86vw; aspect-ratio: 9 / 19.5; border-radius: 28px; background: var(--stub); color: var(--stub-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 500;
}
.lb-shot.wide { height: auto; width: min(84vw, 130vh); aspect-ratio: 16 / 10; }
.lb-x { position: absolute; top: 16px; right: 24px; font-weight: 500; }
.lb-prev, .lb-next { font-size: 40px; padding: 8px 14px; line-height: 1; }

/* Без анимаций: «уменьшить движение» и слабые устройства */
.static #stage { height: auto; overflow: visible; display: flex; flex-direction: column; }
.static .intro, .static .skip, .static #ball, .static #wave, .static #xtbg, .static .foot, .static .cap, .static #ansc,
.static .llm, .static .tr, .static .heads, .static .sum, .static #pt, .static #ptbg, .static .pq, .static #rc,
.static .ptw, .static .ptr, .static .rd, .static .rf, .static .rm, .static .rt, .static .rq, .static .rs, .static .rn, .static .jc, .static .cv, .static .sw, .static .caret, .static .key { display: none; }
.static .q { position: static; color: #000; mix-blend-mode: normal; padding-top: 64px; order: -1; }
.static #rig { position: relative; left: auto; top: auto; width: min(80vw, 520px); aspect-ratio: 1; margin: 48px auto; flex: none; }
.static #lens { visibility: visible; }
.static #glow { opacity: 1; }
.static .ans-static { display: block; width: 100%; height: 100%; }
.static .au-pen, .static .au-ball, .static .rb, .static .sun, .static .wp, .static .sq, .static .sb, .static .so, .static .sf { display: none; }
.static .end { position: relative; visibility: visible; padding-top: 24px; }
.static .slot, .static .paper { display: none; }
.static .xt { position: static; visibility: visible; background: var(--xt); padding: 32px; margin: 0; }
.static .end2 { background: var(--xt); color: #fff; }
.static .end3 { background: #6b4a5e; }
.static .end4 { background: var(--xr); }
.static .end5 { background: var(--sw); }
.static .au-ps { position: static; visibility: visible; padding: 0 32px 48px; }
.static .au { position: static; transform: none; visibility: visible; padding: 48px 32px; }
.static .endw { padding-top: 32px; }
.static .pt { position: static; visibility: visible; background: #6b4a5e; padding: 32px; margin: 0; }

/* Цвета экранов приложений */
.end1 .title { color: var(--mb-glow); }
html:not(.static) .end1 { color: #fff; }
html:not(.static) .end1 .title { color: #8a63ff; }
html:not(.static) .end1 .badge { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
html:not(.static) .end1 .shot { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
#dot { position: absolute; inset: 0; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; }
.end2, .sum { color: #fff; }

/* Настоящие скрины */
.shot img, .lb-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.shot:has(img), .lb-shot:has(img) { background: #000; overflow: hidden; }
/* Скрины окна Mac: углы прозрачные, окно показываем целиком */
.shots[data-shape="wide"] .shot:has(img), .lb-shot.wide:has(img) { background: none; border-radius: 0; box-shadow: none; }
.shots[data-shape="wide"] .shot img, .lb-shot.wide img { object-fit: contain; }
.end2 .shots.wide .shot { aspect-ratio: 1413 / 928; }
.end4 .shots.wide .shot:nth-child(1) { aspect-ratio: 1858 / 1165; }
.end4 .shots.wide .shot:nth-child(2) { aspect-ratio: 1914 / 1080; }
@media (min-width: 761px) {
  .end4 .shots.wide .shot { width: auto; height: calc(min(30vw, 58vh) / 1.6); }
}
#stage .shot { transition: none; }

/* Телефон: все правки в одном блоке. Он стоит в конце файла, чтобы перекрывать общие правила */
@media (max-width: 760px) {
  .jc-b { left: 16px; right: 16px; bottom: 24vh; }
  .cv { left: 16px; right: 16px; width: auto; }
  .jc { left: 16px; right: 16px; }
  .top { padding: 0 16px; }
  .top nav { gap: 8px; justify-content: flex-start; }
  .top a span { display: none; }
  .top a.on span { display: inline; }
  .q { padding: 0 16px; font-size: 12.6vw; top: 11vh; }
  .auto { left: 16px; bottom: 8px; flex-direction: column; align-items: flex-start; font-size: 13px; }
  .skip { right: 16px; }
  .foot, .skip { bottom: 14px; font-size: 13px; }
  .end { padding: 56px 16px 44px; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr auto; gap: 12px 14px; }
  .title { font-size: 10.2vw; }
  .slot { width: 92px; }
  .info { display: contents; }
  .line { font-size: 14px; grid-column: 2; pointer-events: auto; }
  .shots { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; gap: 8px; min-height: 0; height: 100%; align-items: center; }
  .shot { height: auto; width: 31.5%; max-height: 100%; border-radius: 12px; font-size: 12px; }
  .cta { grid-column: 1 / -1; grid-row: 4; margin-top: 0; pointer-events: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .more { margin-top: 0; font-size: 14px; }
  .store { padding: 6px 10px 7px; font-size: 13px; }
  .xt { left: 16px; right: 16px; }
  .xt h2 { font-size: 10.6vw; }
  .pq { left: 16px; right: 16px; font-size: 8.6vw; }
  .ptr { left: 16px; right: 16px; max-width: none; text-align: center; font-size: 17px; }
  .sw { left: 16px; right: 16px; font-size: 10.4vw; }
  .caret { font-size: 10.4vw; }
  .sq { left: 16px; right: 16px; font-size: 10.4vw; }
  .au { left: 16px; right: 16px; }
  .au-ps { left: 16px; bottom: 14px; }
  .au h2 { font-size: 9.6vw; }
  .heads { left: 16px; }
  .sum { left: 16px; right: 16px; font-size: 6.4vw; }
  .endw { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .endw .line { grid-column: 1; }
  .endw .title { font-size: 8.6vw; }
  .shots.wide { flex-direction: column; align-items: center; justify-content: center; }
  .shots.wide .shot { width: min(100%, calc(80vh - 240px)); }
  .pt { left: 16px; right: 16px; }
  .pt h2 { font-size: 9.6vw; }
  .lb-prev, .lb-next { display: none; }
  /* Сцена на весь экран: когда адресная строка прячется, снизу не должно оставаться пустоты */
  #stage { height: 100lvh; }
  .end4 .shots.wide .shot { width: min(100%, calc((100vh - 340px) * .8)); }
  .end2 .shots.wide .shot { width: min(100%, calc((100vh - 430px) * .76)); }
  .top .ext a:first-child { display: none; }
  .top a { white-space: nowrap; }
  .top a.back { margin-right: 14px; }
  .top .ext { gap: 16px; }
  /* Телефон: сегменты на всю ширину под строкой шапки, имя текущего приложения над ними */
  .top .prog { position: absolute; inset: 0 16px; margin: 0; gap: 4px; }
  .top .prog a { position: static; justify-content: flex-end; padding-bottom: 5px; }
  .top .prog span { position: absolute; left: 0; top: 13px; }
  .top .ext { position: relative; }
  .cap { bottom: 40px; }
  .intro { left: 16px; right: 16px; bottom: auto; font-size: 17px; }
  .au-p { max-width: calc(100% - 26px); }

  .end5 { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .sw-ic { grid-row: 2; justify-self: center; width: min(60vw, 34vh); }
  .end5 .line { grid-column: 1; grid-row: 3; }
  .end5 .cta { grid-row: 4; }

  .sw.lx { grid-template-columns: minmax(0, 1fr); }
  .sw.lx > span { white-space: normal; }
  .sw .nb { display: inline-block; white-space: pre; }
  .so { grid-template-columns: 1fr; gap: 4vh; padding: 13vh 16px 0; }
  .so h2 { font-size: 6.6vw; }
  .so-c p { margin-top: 1.2vh; font-size: 16px; }
  .so-d { left: 16px; bottom: 24vh; font-size: 3.9vw; }
  .key-big { --k: 26vw; left: 16px; bottom: 16vh; }
  .key-small { --k: 22vw; right: 16px; bottom: 11vh; }

  .lb-shot.wide { width: 100vw; }
}

/* Телефон боком: история собрана под вертикальный экран */
.turn { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .turn { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: #000; color: #fff; text-align: center; font: 400 22px/1.3 var(--display); }
}
