/* Второй экран главной: разбор эфира на детали. Собирается скриптом build-xray.py из exploded.html, руками не править. */
.exp { --ink: light-dark(#111114, #f5f5f7); --muted: light-dark(#5b5b63, #a1a1a6); --pink: #ff1e8e; color: var(--ink); font-family: var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.exp *, .exp *::before, .exp *::after { box-sizing: border-box; }
/* Полоса прокрутки страницы на десктопе скрыта: при захвате экрана (overflow: hidden) она исчезала, ширина менялась на 15 px, страница перекладывалась и прокрутка дёргалась. Колесо, тачпад и клавиши работают как обычно. */
@media (hover: hover) and (pointer: fine) { html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; width: 0; height: 0; } }
/* Телефон: пока разобранный эфир на экране, шапка и язык уходят вверх, сцена во весь экран (сверху место под список «Список запечатан…» в финале) */
@media (max-width: 720px) {
  .nav, .lang-wrap { transition-property: width, top, left, height, padding, border-radius, background, border-color, box-shadow, opacity, translate; translate: 0 0; }
  html.xr-in .nav, html.xr-in .lang-wrap { opacity: 0; translate: 0 -24px; pointer-events: none; transition-duration: .55s, .55s, .55s, .55s, .55s, .55s, .4s, .4s, .4s, .3s, .35s; }
}
.exp h2, .exp p { font-family: inherit; }
/* Текст под заголовками: тот же шрифт, размер, интерлиньяж и цвет, что у текста под «Эфир с телефона» в карточках (.pcard__body .body) */
@media (min-width: 721px) { .exp .caps { top: 12svh; height: 34svh; width: clamp(300px, 36vw, 700px); } }
@media not all and (max-height: 520px) and (orientation: landscape) {
  .exp .cap p, .exp .xr-proof li { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.45; letter-spacing: -0.01em; color: light-dark(#56565e, #b4b4bc); }
}
.exp { height: 100svh; position: relative; --win: 0; --p: 0; }
.exp.is-live { height: 100svh; }
html.xr-lock { overflow: hidden; overscroll-behavior: none; }
/* у body на сайте overflow-x: hidden; пока у html тоже overflow: hidden, body сам становится областью прокрутки, и все липкие блоки (герой, второй экран, карточки) отклеиваются и прыгают на высоту прокрутки. Поэтому на время блокировки body снова обычный. */
html.xr-lock body { overflow: visible; }
html.xr-lock .exp .sticky { touch-action: none; }
/* пока сцена на экране, шапка без размытия фона: размытие над живым WebGL пересчитывается каждый кадр и тормозит */
html.xr-on .nav, html.xr-on .nav.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.xr-on .nav { background: color-mix(in srgb, var(--bg) 92%, transparent); }
html.xr-on .nav.is-stuck { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 42%, light-dark(#ffffff, #26232f) 0%, transparent 70%), linear-gradient(light-dark(#f1eff5, #1a1920), light-dark(#e4e1eb, #121215)); }
.sticky::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(20,10,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,10,40,.05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 45%, #000, transparent); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.floor { position: absolute; left: 50%; top: 80%; width: min(52vh, 70vw); height: 7vh; margin-left: calc(min(52vh, 70vw) / -2); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30,10,60,.34), rgba(30,10,60,0)); pointer-events: none; will-change: transform; }
.dots { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pink); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(255,30,142,.55); opacity: 0; will-change: transform; }
.hot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(255,30,142,.7); animation: ring 1.8s ease-out infinite; }
.hot.is-hover { background: #fff; border-color: var(--pink); }
@keyframes ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.lines { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; }
.lines line { stroke: var(--ink); stroke-width: 1.5; }
.lines circle { fill: var(--ink); }
.tip { position: fixed; left: 0; top: 0; z-index: 9; width: min(280px, calc(100vw - 32px)); padding: 14px 16px 15px; border-radius: 16px; pointer-events: none;
  background: light-dark(rgba(255,255,255,.92), rgba(30,28,38,.92)); border: 1px solid light-dark(rgba(20,10,40,.1), rgba(255,255,255,.1)); box-shadow: 0 18px 40px -12px rgba(30,10,60,.35); opacity: 0; transition: opacity .16s ease; }
.tip.is-on { opacity: 1; }
.tip h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.tip p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

#conf { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 7; }

.caps { position: absolute; left: clamp(20px, 5vw, 72px); bottom: clamp(24px, 7svh, 72px); width: min(400px, calc(100vw - 40px)); z-index: 6; pointer-events: none; }
.cap { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.cap.is-on { opacity: 1; transform: none; }
.cap h2 { margin: 0 0 .5em -.04em; font-size: clamp(1.75rem, 1rem + 2.2vw, 3.25rem); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.cap[data-s="2"] h2 { color: #9a96a6; }
.cap .cap-m { display: none; }   /* на телефоне подпись про касание, на компьютере про наведение мышью */
@media (max-width: 720px) { .cap .cap-d { display: none; } .cap .cap-m { display: inline; } .cap[data-s="2"] h2 { color: var(--ink); } }
.cap p { margin: 0; font-size: clamp(1rem, .9rem + .3vw, 1.2rem); line-height: 1.55; letter-spacing: .002em; color: light-dark(#4b4658, #bdb8cb); max-width: 38ch; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .cap { transition: opacity .2s ease; transform: none; } }
.exp { --gap: clamp(28px, 4vw, 72px); --ph-half: 12vw; }
.final-left { position: absolute; left: auto; bottom: auto; top: 46%; right: calc(50% + var(--ph-half) + var(--gap)); width: min(26vw, 400px); text-align: right; z-index: 6; pointer-events: none;
  opacity: 0; transform: translateY(calc(-50% + 10px)); transition: opacity .35s ease, transform .35s ease; }
.final-left.is-on { opacity: 1; transform: translateY(-50%); }
.final-left h2 { margin: 0 -.04em .5em 0; }
.final-left p { margin-left: auto; }
.xr-proof { position: absolute; left: calc(50% + var(--ph-half) + var(--gap)); right: auto; top: 46%; width: min(26vw, 400px); transform: translateY(-50%); z-index: 6; pointer-events: none; opacity: var(--win); }
.xr-proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1em; }
.xr-proof li { font-size: clamp(1rem, .9rem + .3vw, 1.2rem); line-height: 1.55; color: light-dark(#4b4658, #bdb8cb); padding-left: 1.9em; position: relative; opacity: clamp(0, calc((var(--win) - var(--i) * .15) * 3), 1); transform: translateX(calc((1 - clamp(0, calc((var(--win) - var(--i) * .15) * 3), 1)) * 14px)); }
.xr-proof li b { color: var(--ink); font-weight: 700; }
.xr-proof li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.4 2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
/* шаг «старый формат»: фото на весь экран поверх сцены; свайп вниз — фото уходит, появляется наш телефон */
.old { position: absolute; z-index: 5; overflow: hidden; background: #c9c6c0; border-radius: 28px; will-change: opacity, transform;
  right: clamp(20px, 5vw, 72px); top: clamp(84px, 12svh, 120px); bottom: clamp(36px, 8svh, 80px); aspect-ratio: 1 / 1; max-width: 44vw; }   /* картинка на пол экрана справа, текст слева, как у остальных шагов */
.old img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
@media (max-width: 720px) { .old { left: 20px; right: 20px; top: 76px; bottom: auto; height: 44svh; aspect-ratio: auto; max-width: none; border-radius: 22px; } .old img { object-position: 40% 50%; } }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; color: light-dark(rgba(30,10,60,.45), rgba(235,230,255,.5)); z-index: 6; opacity: var(--hint, 1); transition: opacity .3s ease; pointer-events: none; }
.nogl { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); z-index: 10; }

@media (min-width: 721px) {
  .caps { left: 17.5vw; top: 12svh; bottom: auto; width: clamp(300px, 32vw, 640px); height: 30svh; }
  .cap { bottom: 0; }
}
.dots, .lines, .tip { display: none; }
#capTip.has-sl { pointer-events: auto; }
.sl { margin-top: 1.2rem; max-width: 38ch; }
.sl label { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; letter-spacing: .005em; color: var(--ink-2); margin-bottom: .35rem; }
.sl output { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.sl-row { display: flex; align-items: center; gap: .7rem; }
.sl-row svg { flex: none; width: 18px; height: 18px; fill: #8e8e93; }
.sl input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; cursor: pointer; --v: 50%; }
.sl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--v), light-dark(rgba(60,60,67,.18), rgba(235,235,245,.22)) var(--v)); }
.sl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: light-dark(rgba(60,60,67,.18), rgba(235,235,245,.22)); }
.sl input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.sl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .12s ease; }
.sl input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); }
.sl input[type=range]:active::-webkit-slider-thumb { transform: scale(1.08); }
.sl input[type=range]:focus-visible { outline: 2px solid rgba(255,30,142,.5); outline-offset: 4px; border-radius: 14px; }
@media (max-height: 520px) and (orientation: landscape) {
  .caps { top: 5svh; height: 44svh; width: clamp(220px, 31vw, 400px); } .cap h2 { font-size: 1.15rem; margin-bottom: .3em; } .cap p { font-size: .72rem; line-height: 1.35; }
  .final-left h2 { font-size: 1.3rem; } .xr-proof li { font-size: .8rem; } .sl { margin-top: .6rem; } .hint { bottom: 6px; }
}
@media (min-width: 721px) and (max-height: 760px) { .cap p { font-size: .95rem; line-height: 1.5; } .cap h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); } }
@media (max-width: 720px) {
  .caps { bottom: 52px; left: 20px; right: 20px; width: auto; }
  .cap h2 { font-size: 1.65rem; }
  .cap p { font-size: .92rem; line-height: 1.45; }
  .final-left { top: auto; bottom: 56px; left: 20px; right: 20px; width: auto; text-align: left; transform: none; }
  .hint { bottom: 14px; font-size: 9.5px; letter-spacing: .04em; white-space: nowrap; }
  .final-left.is-on { transform: none; } .final-left h2 { margin: 0 0 .4em; } .final-left p { margin-left: 0; }
  .xr-proof { display: none; }   /* на телефоне в финале только аппарат с победителем и подпись: место отдано экрану */
}
@media (prefers-reduced-motion: reduce) { .hot::after { animation: none; } }
.clean .caps, .clean .hint, .clean .xr-proof, .clean .final-left { display: none; }
