/* v4.1 «Эпизоды»: светлый рабочий стол, окна, док, кинолента. Решения — redesign/CONCEPT_v4_final.md + team_v4/review.md */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-cyr-v2.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-lat-v2.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00AB, U+00B0-00B3, U+00B7, U+00BB, U+00D7, U+00D8, U+2010-2026, U+2030, U+2039, U+203A, U+20AC, U+2191, U+2193, U+2212; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-cyrillic-400-v2.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-latin-400-v2.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00AB, U+00B0-00B3, U+00B7, U+00BB, U+00D7, U+00D8, U+2010-2026, U+2030, U+2039, U+203A, U+20AC, U+2191, U+2193, U+2212; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-cyrillic-600-v2.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-latin-600-v2.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0020-007E, U+00A0, U+00A7, U+00A9, U+00AB, U+00B0-00B3, U+00B7, U+00BB, U+00D7, U+00D8, U+2010-2026, U+2030, U+2039, U+203A, U+20AC, U+2191, U+2193, U+2212; }

:root {
  --desk: #E8E9EC; --band: #DFE1E5; --win: #FFFFFF; --ink: #16181C; --mut: #5C636D; --line: rgba(22, 24, 28, .10); --line-2: rgba(22, 24, 28, .16);
  --dark: #0F1115; --dark-2: #1A1D23; --on-dark: #E9ECF1; --mut-dark: #8D96A3;
  --accent: #FF5A1F; --accent-2: #FF7440;
  --c-video: linear-gradient(155deg, #C4505D, #5E1B26); --c-prezentacii: linear-gradient(155deg, #5568C8, #232C72);
  --c-saity: linear-gradient(155deg, #2F9A6C, #124A35); --c-programmy: linear-gradient(155deg, #59606C, #1B1F25); --c-zadacha: linear-gradient(155deg, #FF7440, #E2470F);
  --k-video: #9E3440; --k-prezentacii: #3F4FAE; --k-saity: #23825A; --k-programmy: #474D58;
  --mono: "JB Mono", ui-monospace, Consolas, monospace;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-std: cubic-bezier(.2, .8, .2, 1); --e-sheet: cubic-bezier(.32, .72, 0, 1);
  --pad: clamp(16px, 4.4vw, 64px);
  --mb-h: 40px; --dock-h: 104px;
  --shadow-win: 0 1px 1px rgba(16, 18, 22, .04), 0 4px 10px -2px rgba(16, 18, 22, .08), 0 24px 48px -16px rgba(16, 18, 22, .22);
  --shadow-win-hi: 0 1px 1px rgba(16, 18, 22, .05), 0 10px 22px -6px rgba(16, 18, 22, .16), 0 44px 90px -24px rgba(16, 18, 22, .40);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mb-h) + 16px); scrollbar-gutter: stable; }
html.has-win { overflow: hidden; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #B23A0E; outline-offset: 2px; }   /* G7: 4,9:1 на столе */
.film :focus-visible, .vpl :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }

/* ── кнопки */
.v-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s, color .18s, box-shadow .18s, transform .09s; }
.v-btn:active { transform: scale(.97); }
.v-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(255, 90, 31, .8); }
.v-btn--accent:hover { background: var(--accent-2); }
.v-btn--ghost { background: rgba(255, 255, 255, .5); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.v-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.v-btn--sm { height: 32px; padding: 0 14px; font-size: 13.5px; }

/* ── значки рубрик */
[data-ic] { display: inline-grid; place-items: center; flex: none; color: #fff; border-radius: 26%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
[data-ic="video"] { background: var(--c-video); } [data-ic="prezentacii"] { background: var(--c-prezentacii); }
[data-ic="saity"] { background: var(--c-saity); } [data-ic="programmy"] { background: var(--c-programmy); } [data-ic="zadacha"] { background: var(--c-zadacha); }
[data-ic] .ico { width: 56%; height: 56%; }
.hw__ic { width: 18px; height: 18px; border-radius: 5px; }
.hw__ic .ico { stroke-width: 2.2; }

/* ── строка меню */
.mb { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--mb-h); display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  background: rgba(232, 233, 236, .78); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--line); font-size: 13.5px;
  padding: 0 max(var(--pad), calc((100% - 1320px) / 2 + var(--pad))); }   /* D7: та же вертикаль, что у разделов */
.mb__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.mb__mark { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); position: relative; }
.mb__mark::after { content: ""; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; border-radius: 1.5px; background: var(--accent); }
.mb__brand b { font-weight: 700; }
.mb__muted { color: var(--mut); }
.mb__app { font-weight: 700; opacity: 0; transform: translateY(3px); transition: opacity .18s, transform .18s var(--e-out); white-space: nowrap; }
.mb__app.is-on { opacity: 1; transform: none; }
.mb__menu { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.mb__menu:hover, .mb__menu[aria-expanded="true"] { background: rgba(22, 24, 28, .08); }
.mb__menu svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mb__sp { flex: 1; }
.mb__clock { font: 500 12px/1 var(--mono); color: var(--mut); letter-spacing: .02em; }
.mb__link { text-decoration: none; color: var(--mut); }
.mb__link:hover { color: var(--ink); }

/* ── первый экран: заголовок строкой и стол */
.hero { max-width: 1320px; margin: 0 auto; padding: calc(var(--mb-h) + 34px) var(--pad) 16px; }   /* D7, D36 */
#video.rub { padding-top: 88px; }
.hero__h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 3.25vw, 47px); line-height: 1.04; letter-spacing: -.032em; text-wrap: balance; }
.hw-w { position: relative; }
.hw-w::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: 3px; border-radius: 2px; background: var(--k, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--e-out); }
.hw-w[data-w="video"] { --k: var(--k-video); } .hw-w[data-w="prezentacii"] { --k: var(--k-prezentacii); } .hw-w[data-w="saity"] { --k: var(--k-saity); } .hw-w[data-w="programmy"] { --k: var(--k-programmy); }
.hw-w.is-on::after { transform: scaleX(1); }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 16px; }
.hero__lead { margin: 0; max-width: 40em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: #2B2F36; }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }

/* стол: переднее окно слева, три окна каскадом справа; окна меняются местами */
.desk { --bw: min(440px, 31vw); position: relative; height: calc(var(--bw) * .5625 + 32px + 230px); margin-top: 30px; }
.hw { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--win); box-shadow: var(--shadow-win); color: var(--ink); will-change: transform; }
.hw.is-s0 { left: 0; top: 36px; width: calc(100% - var(--bw) - 32px); z-index: 5; box-shadow: var(--shadow-win-hi); }
.hw.is-s1 { right: 92px; top: 0; width: var(--bw); z-index: 1; }
.hw.is-s2 { right: 40px; top: 115px; width: var(--bw); z-index: 2; }
.hw.is-s3 { right: 0; top: 230px; width: var(--bw); z-index: 3; }
.hw__bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; flex: none; font-size: 13px; border-bottom: 1px solid var(--line); background: #FAFAFB; text-decoration: none; }
.hw__bar b { font-weight: 600; white-space: nowrap; }
.hw__bar span { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw__bar:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hw__body { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; cursor: zoom-in; }
.hw__body img, .hw__body video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hw__body video { opacity: 0; transition: opacity .24s; }
.hw__body video.is-on { opacity: 1; }
.hw__body--page { background: #fff; }
.hw__body--page .hw__long { height: auto; bottom: auto; object-fit: initial; }
.hw__veil { position: absolute; inset: 0; background: var(--desk); opacity: .45; transition: opacity .44s var(--e-std); pointer-events: none; }
.hw.is-s0 .hw__veil { opacity: 0; }
.hw__thread { position: absolute; left: 0; top: 31px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hw.is-s0 .hw__thread.is-run { animation: thread 4s linear forwards; }
@keyframes thread { to { transform: scaleX(1); } }
.desk__hint { margin: 14px 0 0; max-width: min(26em, calc(50vw - 240px)); font-size: 13.5px; color: var(--mut); }   /* не уходит под док */

/* ── рубрики: короткая шапка → эпизоды → «что вы получаете» */
.rub { padding: 104px 0 0; }
.rub__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.rub__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; }
.rub__name { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.rub__ic { width: 26px; height: 26px; border-radius: 7px; }
.rub__count { font-weight: 400; color: var(--mut); }
.rub__count::before { content: "·"; margin: 0 8px 0 2px; }
.rub__h2 { margin: 0; max-width: 21em; font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.06; letter-spacing: -.028em; text-wrap: balance; }
.rub__lead { margin: 12px 0 0; max-width: 46em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: #2B2F36; }
.rub__want { margin-bottom: 4px; }
.rub__get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.rub__get li { font-size: 15px; line-height: 1.5; color: var(--mut); }
.rub__get b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* ── кинолента: крупные кадры, ракорды фильмов, рамка в центре */
.film { --fw: clamp(320px, 34vw, 600px); --fh: calc(var(--fw) * .5625); margin-top: 34px; }
.film__tc { display: flex; justify-content: space-between; gap: 16px; max-width: 1320px; margin: 0 auto 10px; padding: 0 var(--pad); font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.film__tc span:last-child { color: var(--mut); }
.film__strip { position: relative; background: var(--dark); }
.film__track { display: flex; gap: 16px; margin: 0; padding: 30px calc(50% - var(--fw) / 2) 46px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.film__track::-webkit-scrollbar { display: none; }
.film__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.film__track.is-drag * { pointer-events: none; }
.fr { position: relative; flex: none; width: var(--fw); scroll-snap-align: center; }
.fr__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 3px; overflow: hidden; }
.fr__btn img, .fr__btn video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fr__btn video { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity .24s; }
.fr__btn video.is-on { opacity: 1; }
.fr__veil { position: absolute; inset: 0; background: rgba(15, 17, 21, .5); transition: opacity .32s; pointer-events: none; }
.fr.is-c .fr__veil { opacity: 0; }
.fr::before, .fr::after { content: ""; position: absolute; left: -8px; right: -8px; height: 9px; pointer-events: none;
  background: radial-gradient(closest-side, #2A2E36 0 6px, transparent 6.5px) 0 0 / 26px 9px repeat-x; }
.fr::before { top: -19px; } .fr::after { bottom: -19px; }
.fr__edge { position: absolute; left: 2px; bottom: -36px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7B8390; white-space: nowrap; pointer-events: none; }
/* ракорд — заставка фильма перед его сценами */
.fr--lead { scroll-snap-align: none; }
.fr__lead { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 9; padding: 6% 7%; border-radius: 3px; background: #08090B; box-shadow: inset 0 0 0 1px #20242B; color: #C9CED6; font: 500 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; position: relative; overflow: hidden; }
.fr__lead b { display: block; font: 600 clamp(18px, 1.7vw, 26px)/1.15 var(--sans); letter-spacing: -.01em; text-transform: none; color: #fff; }
.fr__lead { align-items: flex-end; text-align: right; }
.fr__lead i { position: absolute; left: 7%; top: 50%; width: 30%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 1.5px solid #343944; }
.fr__lead i::before, .fr__lead i::after { content: ""; position: absolute; background: #343944; }
.fr__lead i::before { left: 50%; top: -12%; bottom: -12%; width: 1.5px; } .fr__lead i::after { top: 50%; left: -12%; right: -12%; height: 1.5px; }
.film__gate { position: absolute; left: 50%; top: 24px; width: calc(var(--fw) + 12px); height: calc(var(--fh) + 12px); transform: translateX(-50%); border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 6px; pointer-events: none; }
.film__arr { position: absolute; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.film__arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film .film__arr { top: calc(30px + var(--fh) / 2 - 22px); }
.film .film__arr--l { left: calc(50% - var(--fw) / 2 - 28px); } .film .film__arr--r { right: calc(50% - var(--fw) / 2 - 28px); }
.film__cap { display: flex; justify-content: space-between; gap: 16px; max-width: 1320px; margin: 14px auto 0; padding: 0 var(--pad); font-size: 15px; }
.film__hint { color: var(--mut); font-size: 13.5px; transition: opacity .3s; }
.film__hint.is-off { opacity: 0; }

/* ── окна рубрик: сцена презентаций и окно программ */
.pstage { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--win); box-shadow: var(--shadow-win-hi); cursor: zoom-in; text-align: left; }
.pstage__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); background: #FAFAFB; }
.pstage__bar b { font-weight: 600; }
.pstage__bar span { margin-left: auto; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; color: var(--mut); }
.pstage__body { position: relative; aspect-ratio: 16 / 9; background: var(--dark); overflow: hidden; }
.pstage--light .pstage__body { background: #F4F5F7; }
.pstage__body img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s, transform .6s var(--e-out); }
.pstage:hover .pstage__body img { transform: scale(1.015); }
.pstage__open { position: absolute; right: 14px; bottom: 14px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255, 255, 255, .94); font-weight: 600; font-size: 13.5px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.prz { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.pthumbs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pthumbs button { position: relative; display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; transition: background-color .18s, box-shadow .18s; }
.pthumbs button:hover, .pthumbs [aria-current="true"] { background: #fff; box-shadow: var(--shadow-win); }
.pthumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--dark); }
.pthumbs b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.pthumbs b + span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--mut); }
.pthumbs b { color: var(--ink); }
.pthumbs i { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.pthumbs [aria-current="true"] i.is-run { animation: thread 6s linear forwards; }

.prog { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px; align-items: start; margin-top: 36px; }
.plist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plist button { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; align-items: center; transition: background-color .18s; }
.plist button:hover, .plist button[aria-current="true"] { background: rgba(255, 255, 255, .65); }
.plist [data-ic] { width: 32px; height: 32px; border-radius: 9px; grid-row: span 2; }
.plist img { display: none; }
.plist b { font-size: 15.5px; font-weight: 600; }
.plist span { font-size: 13.5px; color: var(--mut); line-height: 1.35; }
.plist i.thr { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.plist [aria-current="true"] i.thr.is-run { animation: thread 6s linear forwards; }

/* ── сайты: карусель окон браузера */
.rub--band { background: linear-gradient(var(--desk), var(--band) 26%, var(--band) 86%, var(--desk)); padding-bottom: 8px; }
.bc { --bww: min(880px, 72vw); position: relative; margin-top: 36px; height: calc(var(--bww) * .625 + 38px + 60px); overflow: hidden; touch-action: pan-y; cursor: grab; }
.bc.is-drag { cursor: grabbing; }
.bc__track { position: absolute; inset: 0; }
.bw { position: absolute; left: 50%; top: 0; width: var(--bww); margin-left: calc(var(--bww) / -2); border-radius: 12px; overflow: hidden; background: var(--win); box-shadow: var(--shadow-win); will-change: transform; transform-origin: 50% 0; }
.bw.is-c { box-shadow: var(--shadow-win-hi); }
.bw__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #FAFAFB; }
.bw__dots { display: flex; gap: 6px; } .bw__dots i { width: 9px; height: 9px; border-radius: 50%; background: #D5D8DD; }
.bw__url { flex: 1; height: 24px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 7px; background: #EEF0F3; font: 500 11.5px/1 var(--mono); color: var(--mut); overflow: hidden; white-space: nowrap; }
.bw__chip { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: #fff; color: var(--mut); box-shadow: inset 0 0 0 1px var(--line); }
.bw__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.bw__view img { width: 100%; height: auto; }
.bw__veil { position: absolute; inset: 0; background: var(--band); opacity: 0; pointer-events: none; }
.bw__open { position: absolute; right: 14px; bottom: 14px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; opacity: 0; transition: opacity .2s; }
.bw.is-c .bw__open { opacity: 1; }
.bc .bc__arr { top: calc((var(--bww) * .625 + 38px) / 2 - 22px); z-index: 20; }   /* стрелки — над карточками карусели */
.bc .bc__arr.film__arr--l { left: calc(50% - var(--bww) / 2 - 22px); } .bc .bc__arr.film__arr--r { right: calc(50% - var(--bww) / 2 - 22px); }
.bc__cap { margin: 0 auto; padding: 0 var(--pad); text-align: center; font-size: 16px; line-height: 1.5; }
.bc__cap [data-bc-brand] { color: var(--ink); font-weight: 600; } .bc__cap [data-bc-sub] { color: var(--mut); }
.bc__note { font-size: 13.5px; color: var(--mut); }

/* ── как работаем */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 18px 22px 8px 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--mut); line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 12px/1 var(--mono); color: #B23A0E; }
.steps b { color: var(--ink); font-size: 18px; font-weight: 600; }
.rules { columns: 2; column-gap: 48px; margin: 30px 0 0; padding: 0; list-style: none; }
.rules li { break-inside: avoid; padding: 0 0 14px; font-size: 15px; color: var(--mut); line-height: 1.5; }
.rules b { color: var(--ink); font-weight: 600; }

/* ── заявка: окно «Новое письмо» */
.zad { padding-bottom: 120px; }
.zad__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.how { margin: 22px 0 0; padding: 0 0 0 20px; color: var(--mut); font-size: 15.5px; }
.how li { margin: 0 0 8px; }
.mail { margin: 0; border-radius: 12px; background: var(--win); box-shadow: var(--shadow-win-hi); overflow: hidden; }
.mail__bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: #FAFAFB; font-size: 14px; }
.mail__bar b { font-weight: 600; flex: 1; }
.mail__row { display: flex; align-items: center; gap: 14px; min-height: 48px; margin: 0; padding: 8px 18px; border: 0; border-bottom: 1px solid var(--line); }
.mail__row--chips { align-items: flex-start; flex-wrap: wrap; }
.mail__k { flex: none; width: 128px; padding: 0; font-size: 14px; color: var(--mut); }
.mail__row--chips .mail__k { float: left; padding-top: 8px; }
.mail__v { font-size: 14.5px; }
.mail__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.mail__chips label { cursor: pointer; }
.mail__chips input { position: absolute; opacity: 0; pointer-events: none; }
.mail__chips span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 14px; transition: background-color .15s, color .15s; }
.mail__chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.mail__chips input:focus-visible + span { outline: 2px solid #B23A0E; outline-offset: 2px; }
.mail__tok { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: #EEF0F3; font-size: 14px; }
.mail__tok button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--mut); }
.mail__body { display: block; padding: 14px 18px 6px; }
.mail__body .mail__k { display: block; width: auto; margin-bottom: 8px; }
.mail__body textarea { width: 100%; resize: vertical; min-height: 140px; border: 0; padding: 0; font: 400 16px/1.55 var(--sans); color: var(--ink); background: none; outline: none; }
.mail__help { display: block; margin-top: 6px; font-size: 13px; color: var(--mut); }
.mail__err { display: block; margin-top: 6px; font-size: 13.5px; color: #B3261E; }
.mail__foot { display: flex; align-items: center; gap: 18px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.mail__foot p { margin: 0; font-size: 13px; color: var(--mut); line-height: 1.45; }
.mail__done { padding: 26px 22px 22px; }
.mail__done b { font-size: 22px; font-weight: 600; }
.mail__done p { margin: 8px 0 0; color: var(--mut); }
.mail__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.mail__back { border: 0; background: none; cursor: pointer; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; }
.mail.is-done > :not(.mail__bar):not(.mail__done) { display: none; }

.foot { max-width: 1320px; margin: 0 auto; padding: 24px var(--pad) calc(var(--dock-h) + 20px); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mut); }
.foot p { margin: 0 0 4px; }

/* ── док: увеличение, автоскрытие при прокрутке вниз, стопки эпизодов */
.dock { position: fixed; left: 50%; bottom: 10px; z-index: 70; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 12px; height: 88px; padding: 0 16px 26px;
  transition: transform .26s var(--e-std), opacity .2s; }
.dock.is-hide { transform: translate(-50%, calc(100% + 16px)); }
.dock__plate { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; border-radius: 22px; background: rgba(250, 250, 251, .7); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 1px var(--line), 0 18px 40px -18px rgba(16, 18, 22, .35); transform-origin: 50% 100%; }
.dock__it { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 52px; text-decoration: none; color: var(--ink); transform-origin: 50% 100%; will-change: transform; }
.dock__tile { width: 52px; height: 52px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px -6px rgba(16, 18, 22, .45); }
.dock__tile .ico { width: 50%; height: 50%; stroke-width: 1.7; }
.dock__lbl { position: absolute; top: calc(100% + 8px); font-size: 11.5px; font-weight: 500; color: rgba(22, 24, 28, .75); white-space: nowrap; letter-spacing: -.01em; }
.dock__tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(4px); padding: 6px 10px; border-radius: 7px; background: rgba(22, 24, 28, .88); color: #fff; font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.dock__it:hover .dock__tip, .dock__it:focus-visible .dock__tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.has-stack .dock__tip { opacity: 0 !important; }
.dock__it.is-run::after { content: ""; position: absolute; bottom: -5px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.dock__sep { position: relative; z-index: 1; width: 1px; height: 44px; margin: 0 2px 4px; background: var(--line-2); }
html.has-win .dock { pointer-events: none; }

.stack { position: fixed; z-index: 80; min-width: 280px; max-width: min(460px, 94vw); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border-radius: 14px; background: rgba(250, 250, 251, .9); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(16, 18, 22, .45); transform-origin: 50% 100%; }
.stack__h { margin: 6px 10px 6px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.stack__it { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.stack__it:hover, .stack__it:focus-visible { background: rgba(22, 24, 28, .07); outline: none; }
.stack__it:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.stack__it img { width: 56px; height: 36px; object-fit: cover; border-radius: 5px; background: var(--dark); }
.stack__it span { line-height: 1.25; }
.stack--grid { display: grid; grid-template-columns: repeat(4, 96px); gap: 6px; max-width: none; }
.stack--grid .stack__h { grid-column: 1 / -1; }
.stack--grid .stack__it { display: block; padding: 3px; }
.stack--grid .stack__it img { width: 90px; height: 51px; }
.stack--grid .stack__it span { display: block; margin-top: 3px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── окно-эпизод */
.wl { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: calc(var(--mb-h) + 8px) 16px 16px; }
.wl.is-open { display: grid; }
.wl__scrim { position: absolute; inset: 0; background: rgba(20, 22, 26, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: var(--scrim, 1); }
.win { position: relative; display: flex; flex-direction: column; width: min(1180px, 92vw); height: min(760px, calc(100vh - var(--mb-h) - 40px)); border-radius: 12px; overflow: hidden; background: var(--win); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .06); outline: none; }
.win[data-kind="karta"] { width: min(1320px, 95vw); height: min(840px, calc(100vh - var(--mb-h) - 32px)); }
.win[data-kind="video"] { width: min(1180px, 92vw, calc((min(760px, 100vh - var(--mb-h) - 40px) - 84px - 112px) * 16 / 9)); }
.win__bar { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px 0 16px; flex: none; border-bottom: 1px solid var(--line); background: #FAFAFB; }
.win__grip { display: none; }
.win__title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
.win__title b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__meta { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.win__nav { display: flex; gap: 4px; }
.win__arr, .win__x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); flex: none; }
.win__arr:hover, .win__x:hover { background: rgba(0, 0, 0, .06); }
.win__arr:disabled { opacity: .3; cursor: default; }
.win__arr:disabled:hover { background: none; }   /* G8 */
.win__arr svg, .win__x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.win__thread { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.win__body { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--dark); }
.win__body[data-light] { background: #F4F5F7; }
.win__foot { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; flex: none; border-top: 1px solid var(--line); background: #FAFAFB; font-size: 13px; }
.win__mark { padding: 4px 9px; border-radius: 999px; background: #EEF0F3; color: var(--mut); font-size: 12.5px; cursor: help; white-space: nowrap; }
.win__chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); transition: opacity .2s; }
.win__chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.win__again { border: 0; background: none; cursor: pointer; color: var(--mut); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.win__err { color: var(--on-dark); padding: 40px; }
.win__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .24s; z-index: 2; }
.win__poster.is-off { opacity: 0; pointer-events: none; }
.win__load { position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; height: 34px; margin: 0; padding: 0 14px; border-radius: 999px;
  background: rgba(16, 18, 22, .78); color: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; animation: wl-in .3s .7s forwards; }
.win__load i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: wl-spin .9s linear infinite; }
@keyframes wl-in { to { opacity: 1; } }
@keyframes wl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .win__load { animation-duration: .01s; } .win__load i { animation: none; } }
.mp__panel.is-wait { opacity: .55; transition: opacity .3s; }
.win__poster--top { object-position: top; }   /* заставка окна сайта — верх страницы */
.ring { box-shadow: 0 0 0 3px var(--accent) !important; transition: box-shadow .2s; }
/* в окне одна оранжевая кнопка — в шапке; призывы внутри модулей скрыты */
.win .app-root [data-contact], .win .app-root [data-act="contact"], .win .app-root [data-act="want"], .win .app-root .sm-want { display: none !important; }
.win .app-root .btn--accent[data-act="pdf"], .win .app-root a.btn--accent[download] { background: #fff !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-2) !important; }
.win .a-planeta.pl--demo .pl-co, .win .a-planeta.pl--demo .pl-co-lines { display: none !important; }

/* письмо рядом с эпизодом */
.msheet { position: absolute; z-index: 20; top: 46px; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--win); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45); overflow-y: auto; }
.msheet .mail { border-radius: 0; box-shadow: none; }
.msheet .mail__k { width: 104px; }
.msheet .mail__foot { flex-direction: column; align-items: stretch; }

/* плеер видео: «монтажный стол» */
.vpl { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #000; }
.vpl__frame { position: relative; min-height: 0; overflow: hidden; }
.vpl__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vpl__desk { padding: 14px 18px 16px; background: var(--dark); color: var(--on-dark); }
.vpl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.vpl__tag { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.vpl__src { font-size: 13.5px; color: var(--mut-dark); }
.vpl__track { position: relative; height: 26px; margin-top: 12px; border-radius: 4px; background: #23272F; }
.vpl__seg { position: absolute; top: 0; bottom: 0; border: 0; padding: 0; border-radius: 3px; background: #3A404B; cursor: pointer; }
.vpl__seg:hover { background: #4B5260; }
.vpl__seg.is-on { background: var(--accent); }
.vpl__seg.is-on::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--ph, 0%); width: 2px; background: #fff; border-radius: 1px; }
.vpl__sub { margin: 10px 0 0; font-size: 14px; color: var(--mut-dark); }
.vpl__list { display: none; }

/* окно-браузер */
.br { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; background: #E4E6EA; }
.br__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: #F2F3F5; border-bottom: 1px solid var(--line); }
.br__url { flex: 1; height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; background: #fff; font: 500 12px/1 var(--mono); color: var(--mut); overflow: hidden; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.wseg { display: inline-flex; padding: 3px; border-radius: 9px; background: #E2E4E8; }
.wseg button { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 13px; color: var(--mut); }
.wseg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.br__new { font-size: 13px; color: var(--mut); text-decoration: none; white-space: nowrap; }
.br__new:hover { color: var(--ink); }
.br__stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.br__frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff; transition: width .42s var(--e-std), height .42s var(--e-std), border-radius .42s var(--e-std), box-shadow .42s; }
.br__frame.is-phone { width: 390px; border-radius: 22px; box-shadow: 0 0 0 8px #15171C, 0 30px 60px -20px rgba(0, 0, 0, .5); }
.br__frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; transition: opacity .2s; }
.br__note { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 90%); padding: 22px; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); }
.br__note b { font-size: 18px; font-weight: 600; } .br__note p { margin: 8px 0 16px; color: var(--mut); font-size: 14.5px; } .br__note div { display: flex; flex-wrap: wrap; gap: 8px; }
.br__frame img { position: absolute; inset: 0; width: 100%; height: auto; transition: opacity .24s; z-index: 1; pointer-events: none; }

/* окно-программа «3D-карта» */
.mp { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 280px; }
.mp__canvas { position: relative; min-width: 0; overflow: hidden; background: #111419; }
.mp__panel { display: flex; flex-direction: column; gap: 18px; padding: 16px; overflow-y: auto; background: #F6F7F9; border-left: 1px solid var(--line); color: var(--ink); }
.mp__h { margin: 0 0 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.mp__tod, .mp__modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 10px; background: #E4E6EA; }
.mp__modes { grid-template-columns: .85fr .85fr 1.3fr; }
.mp__modes button { padding: 0 4px; white-space: nowrap; }
.mp__tod button, .mp__views button, .mp__lay button, .mp__modes button { border: 0; cursor: pointer; font-size: 13.5px; }
.mp__tod button, .mp__modes button { height: 32px; border-radius: 8px; background: none; color: var(--mut); }
.mp__tod button[aria-pressed="true"], .mp__modes button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.mp__clock { float: right; font: 600 12px/1 var(--mono); color: var(--ink); letter-spacing: .02em; text-transform: none; }
.mp__time { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mp__time input { flex: 1; height: 22px; margin: 0; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
.mp__time input::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1E2C48 0%, #1E2C48 18%, #F2A46E 26%, #9FC2E6 35%, #9FC2E6 68%, #F2A46E 79%, #5C4A78 86%, #1E2C48 92%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mp__time input::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1E2C48 0%, #1E2C48 18%, #F2A46E 26%, #9FC2E6 35%, #9FC2E6 68%, #F2A46E 79%, #5C4A78 86%, #1E2C48 92%); }
.mp__time input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; background: #FFD27A; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .35); }
.mp__time input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #FFD27A; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, .35); }
.mp__auto { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: #E4E6EA; cursor: pointer; font-size: 13px; color: var(--mut); }
.mp__auto[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mp__lay { display: flex; flex-direction: column; gap: 2px; }
.mp__lay button { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px; border-radius: 8px; background: none; text-align: left; }
.mp__lay button:hover { background: rgba(0, 0, 0, .04); }
.mp__lay button::after { content: ""; width: 30px; height: 18px; border-radius: 999px; transition: background-color .18s; }
.mp__lay button[aria-pressed="true"]::after { background: radial-gradient(circle at 21px 9px, #fff 0 6px, transparent 6.5px), #2F9A6C; }
.mp__lay button[aria-pressed="false"]::after { background: radial-gradient(circle at 9px 9px, #fff 0 6px, transparent 6.5px), #CDD1D7; }
.mp__views { display: flex; flex-direction: column; gap: 4px; }
.mp__views button { height: 36px; padding: 0 12px; border-radius: 8px; background: #fff; text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.mp__views button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 600; }
.mp__edge { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -8px); z-index: 6; padding: 8px 14px; border-radius: 10px; background: rgba(20, 22, 26, .82); color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.mp__edge.is-on { opacity: 1; transform: translate(-50%, 0); }

/* окно модуля: боковая панель «вся программа» + модуль + кнопки */
.ap { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; }
.ap__side { grid-row: 1 / -1; width: 200px; padding: 14px 10px; background: #F6F7F9; border-right: 1px solid var(--line); overflow-y: auto; }
.ap__side p { margin: 4px 8px 10px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ap__side ul { margin: 0; padding: 0; }
.ap__side li { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border-radius: 8px; font-size: 13.5px; color: var(--mut); }
.ap__side li.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.ap__side li:not(.is-on) { color: var(--mut); }
.ap__side li:not(.is-on)::after { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2' y='5' width='8' height='6' rx='1.2'/%3E%3Cpath d='M4 5V3.6a2 2 0 0 1 4 0V5' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2' y='5' width='8' height='6' rx='1.2'/%3E%3Cpath d='M4 5V3.6a2 2 0 0 1 4 0V5' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.ap__side small { display: block; margin: 12px 8px 0; font-size: 12px; color: var(--mut); line-height: 1.4; }
.ap__mount { position: relative; min-height: 0; min-width: 0; overflow: hidden; }
.ap__mount--light { background: #F4F5F7; }
.ap__ctl { grid-column: 2; display: flex; justify-content: center; gap: 8px; padding: 10px; background: #F6F7F9; border-top: 1px solid var(--line); }
.ap--noside { grid-template-columns: 1fr; }
.ap--noside .ap__ctl { grid-column: 1; }
.ap__ctl button { height: 36px; padding: 0 16px; border-radius: 9px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-size: 14px; font-weight: 500; }
.ap__ctl button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ap .pz-hctl { display: none !important; }

/* появление по входу в кадр (только время, не колесо) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .64s var(--e-out), transform .64s var(--e-out); }

/* ── телефон */
@media (max-width: 1100px) { .mb__muted, .mb__clock { display: none; } }
@media (max-width: 860px) {
  :root { --mb-h: 44px; --dock-h: calc(62px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  .mb { gap: 10px; background: rgba(232, 233, 236, .92); } .mb__menu, .mb__link, .mb__cta { display: none !important; }
  .mb__app { font-weight: 600; color: var(--mut); overflow: hidden; text-overflow: ellipsis; } .mb__app::before { content: "· "; }   /* M32 */
  .hero { display: flex; flex-direction: column; min-height: 0; padding: calc(var(--mb-h) + 22px) 16px 0; }
  .hero__top { display: contents; }
  .hero__h1 { order: 1; font-size: clamp(30px, 8.6vw, 40px); }
  .desk { order: 2; --fw: 100%; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
  .hero__row { order: 3; margin-top: 20px; }
  .desk__hint { order: 4; max-width: none; }
  .hw, .hw.is-s0, .hw.is-s1, .hw.is-s2, .hw.is-s3 { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .hw.is-s0 { grid-column: 1 / -1; order: 0; } .hw.is-s1 { order: 1; } .hw.is-s2 { order: 2; } .hw.is-s3 { order: 3; }
  .hw:not(.is-s0) .hw__bar { height: 24px; padding: 0 6px; font-size: 10.5px; gap: 5px; } .hw:not(.is-s0) .hw__bar span, .hw:not(.is-s0) .hw__ic { display: none; }
  .hw.is-s0 .hw__bar { height: 30px; } .hw__thread { display: none; }
  .hero__act { width: 100%; } .hero__act .v-btn { flex: 1; }
  .rub { padding-top: 64px; }
  .rub__top { grid-template-columns: 1fr; }
  .rub__want { justify-self: start; }
  .rub__get { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .film { --fw: 78vw; }
  .film__track { padding: 26px 11vw 44px; cursor: auto; }
  .film__arr { display: none !important; }
  .film__cap { flex-direction: column; gap: 4px; }
  .prz, .prog, .zad__in { grid-template-columns: 1fr; gap: 16px; }
  .pthumbs button { grid-template-columns: 38% 1fr; }
  .prog [data-pwin] { display: none; }
  .prog { margin-top: 24px; }
  .plist button { grid-template-columns: 72px 1fr; }
  .plist [data-ic] { display: none; }
  .plist img { display: block; grid-row: span 2; width: 72px; height: 44px; object-fit: cover; border-radius: 6px; }
  .bc { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: auto; padding: 4px 0 18px; }
  .bc__track { position: static; display: flex; gap: 12px; padding: 0 11vw; width: max-content; }
  .bw { position: relative; left: auto; margin: 0; width: 78vw; scroll-snap-align: center; transform: none !important; }
  .bw__veil { display: none; } .bw__open { opacity: 1; }
  .bc__arr { display: none !important; }
  .steps { grid-template-columns: 1fr 1fr; } .rules { columns: 1; }
  .mail__k { width: 92px; } .mail__who { display: none; }
  .mail__foot { flex-direction: column; align-items: stretch; }
  /* док — постоянная нижняя панель */
  .dock, .dock.is-hide { left: 0; right: 0; bottom: 0; transform: none; height: var(--dock-h); gap: 0; padding: 6px 0 env(safe-area-inset-bottom); align-items: flex-start; }
  .dock__plate { height: 100%; border-radius: 0; box-shadow: 0 -1px 0 var(--line); background: rgba(250, 250, 251, .94); }
  .dock__it { width: 20%; flex: none; min-height: 52px; padding-top: 2px; }
  .dock__tile { width: 30px; height: 30px; border-radius: 9px; box-shadow: none; }
  .dock__lbl { position: static; margin-top: 4px; font-size: 11px; color: var(--ink); }
  .dock__tip, .dock__sep { display: none; }
  .dock__it.is-run::after { bottom: auto; top: -5px; }
  .stack { left: 8px !important; right: 8px; max-width: none; bottom: calc(var(--dock-h) + 8px) !important; top: auto !important; }
  .stack--grid { grid-template-columns: repeat(3, 1fr); } .stack--grid .stack__it img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* окно на весь экран */
  .wl { padding: 0; }
  .win, .win[data-kind="karta"], .win[data-kind="video"] { width: 100vw; height: 100dvh; border-radius: 0; }
  .win__bar { height: 52px; padding-top: 6px; gap: 6px; }
  .win__grip { display: block; position: absolute; left: 50%; top: 5px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #C9CDD3; }
  .win__title { gap: 6px; } .win__title b { font-size: 14px; }
  .win__meta, .win__bar [data-win-ic] { display: none; }
  .win__arr { width: 30px; height: 30px; }
  .win__foot { height: calc(44px + env(safe-area-inset-bottom)); padding: 0 12px env(safe-area-inset-bottom); }
  .win__chip { position: absolute; left: 12px; right: 12px; bottom: calc(54px + env(safe-area-inset-bottom)); z-index: 30; justify-content: center; padding: 10px 14px; border-radius: 12px; background: rgba(20, 22, 26, .88); color: #fff; margin: 0; pointer-events: none; }
  .win__again { margin-left: auto; }
  .vpl { grid-template-rows: auto auto minmax(0, 1fr); }
  .vpl__frame { aspect-ratio: 16 / 9; }
  .vpl__list { display: block; margin: 0; padding: 8px 12px 16px; overflow-y: auto; list-style: none; background: var(--dark); }
  .vpl__list button { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px 0; border: 0; background: none; color: var(--on-dark); text-align: left; font-size: 14px; cursor: pointer; }
  .vpl__list img { width: 120px; height: 68px; object-fit: cover; border-radius: 5px; }
  .vpl__list .is-on { color: var(--accent); }
  .mp { grid-template-columns: 1fr; grid-template-rows: 56% 1fr; }
  .mp__panel { border-left: 0; border-top: 1px solid var(--line); }
  .mp__views { flex-direction: row; flex-wrap: wrap; } .mp__views button { flex: 1 1 auto; }
  .ap { grid-template-columns: 1fr; }
  .ap__side { display: none; }
  .ap__ctl { grid-column: 1; }
  .br__new { display: none; }
  .msheet { top: auto; left: 0; height: 85%; width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── аудит формы 22.10 (redesign/team_v4/inspect_form_2026-10-22.md) */
:root { --accent-btn: #D24412; --accent-btn-2: #BA3B0F; }   /* белый текст 4,6:1 и 5,6:1; фирменный #FF5A1F — нити, точки, фокус */
.v-btn--accent { background: var(--accent-btn); box-shadow: 0 8px 22px -10px rgba(210, 68, 18, .75); }
.v-btn--accent:hover { background: var(--accent-btn-2); }
@media (min-width: 861px) { .bc { overflow: visible; overflow-x: clip; } }   /* тень центрального окна карусели не обрезается снизу (на телефоне .bc — горизонтальный скроллер) */
.stack--grid .stack__it span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; min-height: 2.4em; }
.foot { border-top: 0; background: linear-gradient(var(--line), var(--line)) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.mail__chips span { height: auto; min-height: 34px; padding: 7px 14px; line-height: 1.25; }
@media (min-width: 861px) { .dock__lbl { display: none; } }   /* на столе название рубрики — во всплывающей подсказке */
@media (max-width: 860px) {
  .mail__row--chips .mail__k { float: none; width: auto; padding: 0 0 8px; }
  .film__tc span:last-child { display: none; }
  .film__tc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vpl__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .win:has(.ap__ctl) .win__chip { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .plist button[aria-current="true"] { background: none; }
  .plist i.thr { display: none; }
  .prz [data-pstage] { display: none; }
  .prog + .rub__in .rub__get { border-top: 0; padding-top: 0; }
  .bc { padding-bottom: 48px; margin-bottom: -30px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* ── мобильная версия 22.10 (redesign/team_v4/inspect_mobile_2026-10-22.md) */
.mail__chips span { min-height: 40px; padding: 8px 14px; }
.mail__tok { height: auto; min-height: 30px; padding: 5px 6px 5px 12px; line-height: 1.3; }
:root { --pad: max(clamp(16px, 4.4vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right)); }
@media (max-width: 860px) {
  .bc { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }                       /* M1 */
  .win__foot { height: auto; min-height: calc(44px + env(safe-area-inset-bottom)); padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .win__chip { position: static; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; justify-content: flex-start; background: none; color: var(--ink); border-radius: 0; font-size: 13px; line-height: 1.3; pointer-events: none; box-shadow: none; }
  .win__foot:has(.win__chip:not([hidden])) .win__again { display: none; }
  .win__foot:has(.win__chip:not([hidden])) { flex-wrap: wrap; align-content: center; row-gap: 3px; }   /* T27: пометка о вымышленности видна и во время подсказок */
  .win__foot:has(.win__chip:not([hidden])) .win__chip { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .win__foot:has(.win__chip:not([hidden])) .win__mark { padding: 0; background: none; font-size: 11.5px; }
  .win__foot:has(.win__chip:not([hidden])) .win__chip::before { display: inline-block; margin-right: 8px; vertical-align: 1px; }
  .msheet { z-index: 40; }                                                                  /* M2 */
  .mail__row--chips { display: block; }
  .mail__row--chips .mail__k { float: none; display: block; width: auto; padding: 2px 0 10px; }
  .mail__chips span { min-height: 44px; }
  .mail__tok button { width: 36px; height: 36px; }                                          /* M3 */
  body:has(.mail textarea:focus, .mail input:focus) .dock { transform: translateY(calc(100% + 8px)); }   /* M6 */
  .win__bar { touch-action: none; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .wl { overscroll-behavior: contain; }                                                     /* M7, M13 */
  .bw__view { aspect-ratio: 4 / 5; } .bw__view img { height: 100%; object-fit: cover; object-position: top; }   /* M9 */
  .hero__row { order: 2; } .desk { order: 3; } .desk__hint { order: 4; }
  .hero__act .v-btn--ghost { display: none; }                                               /* M11 */
  .hero { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .vpl__desk, .vpl__list { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .mp__panel { padding-right: max(16px, env(safe-area-inset-right)); }                      /* M13 */
  .win__arr { width: 40px; height: 44px; } .win__x { width: 44px; height: 44px; } .win__nav { gap: 0; }
  .win__bar [data-want] { height: 36px; padding: 0 14px; }
  .win__again { min-height: 44px; }
  .vpl__track { height: 34px; }
  .foot a { display: inline-block; padding: 12px 0; }                                       /* M14 */
  .win__mark { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .win__again { flex: none; }   /* M15 */
  .fr__edge { font-size: 11px; color: #9AA2AE; } .bw__chip { font-size: 11px; }
  .hw:not(.is-s0) .hw__bar { font-size: 12px; } .mail__help, .mail__foot p, .foot { font-size: 14px; }   /* M24 */
  .br__frame.is-phone { width: 100%; border-radius: 0; box-shadow: none; }                  /* M27 */
  .win__title b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; line-height: 1.2; }   /* M28 */
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {           /* M12 */
  :root { --mb-h: 44px; --dock-h: calc(48px + env(safe-area-inset-bottom)); }
  .dock__lbl { display: none; } .dock__it { min-height: 40px; padding-top: 4px; }
  .hw:not(.is-s0) { display: none; }
  .hw.is-s0 .hw__body { aspect-ratio: auto; height: 46svh; }
  .film { --fw: min(78vw, (100svh - 170px) * 16 / 9); }
  .bc { --bww: min(78vw, (100svh - 150px) * 1.6); } .bw { width: var(--bww); }
  .win__bar { height: 44px; padding-top: 0; } .win__grip { display: none; }
  .vpl { grid-template-columns: minmax(0, 1fr) 260px; grid-template-rows: minmax(0, 1fr) auto; }
  .vpl__frame { aspect-ratio: auto; grid-column: 1; grid-row: 1; }
  .vpl__desk { grid-column: 1; grid-row: 2; padding: 8px 12px 10px; }
  .vpl__list { grid-column: 2; grid-row: 1 / 3; }
  .mp { grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: none; }
  .mp__panel { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 861px) and (pointer: coarse) { .hero { padding-bottom: 110px; } }      /* M29 */

/* ── функционал 22.10 (redesign/team_v4/inspect_func_2026-10-22.md) */
.toast { position: fixed; z-index: 160; left: 50%; bottom: 112px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(23, 25, 29, .92); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap; }
html.has-win .toast { bottom: 64px; }                                                            /* F7 */
.win .app-root .btn--accent[data-act="talk"] { background: #fff !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-2) !important; }   /* F8 */
.msheet .mail { overflow: visible; flex: none; }                                                 /* F9 */
.win__err { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 40px; text-align: center; background: var(--dark, #111418); color: var(--on-dark, #EEF2F4); }   /* F10 */
.mail__body:focus-within { box-shadow: inset 3px 0 0 var(--accent); }                            /* F17 */
.film__arr:disabled, .bc__arr:disabled { opacity: 0; pointer-events: none; }                       /* F13, F18 */
.mail__copy { width: 100%; margin-top: 10px; font: 13px/1.45 var(--mono, monospace); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; }   /* F22 */
@media (min-width: 861px) and (max-height: 800px) {   /* G1: низкий экран — окна по высоте; каскад у правого края кнопок и выше дока */
  .hero { padding-top: calc(var(--mb-h) + 18px); }
  .desk { --bw: min(400px, 30vw); --D: clamp(300px, calc(100svh - 305px), 520px); --st: clamp(40px, calc(var(--D) * .16), 115px);
    --fwc: min(calc(100% - var(--bw) - 32px), calc((var(--D) - 68px) * 1.7778)); height: var(--D); margin-top: 18px; }
  .hw.is-s0 { width: var(--fwc); }
  .hw.is-s1, .hw.is-s2, .hw.is-s3 { width: calc(100% - var(--fwc) - 32px); }
  .hw.is-s2 { top: var(--st); } .hw.is-s3 { top: calc(var(--st) * 2); }
  .hw:not(.is-s0) .hw__body { aspect-ratio: auto; height: calc(var(--D) - 32px - 2 * var(--st)); }
}
@media (min-width: 861px) and (max-width: 1100px) and (max-height: 800px) { .desk { --D: clamp(300px, calc(100svh - 365px), 520px); } }   /* кнопки под заголовком — стол ниже */

/* D40: в окне «Первой смены» пометка о вымышленности уже есть в нижней рамке окна — дубль в сцене не нужен */
.win .a-smena .sm-foot { display: none; }
/* ── ревью формы, раунд 2 (22.10) */
.film__arr { transition: background-color .15s, box-shadow .15s, opacity .2s; }
.film__arr:not(:disabled):hover { background: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .75); }   /* G8: наведение */
.win__again:hover { color: var(--ink); }
.wseg button:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(22, 24, 28, .06); }
.ap__ctl button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.mail__chips input:not(:checked) + span:hover { background: rgba(22, 24, 28, .06); }
.foot a:hover { color: var(--ink); }
.dock__it:focus-visible { outline: none; } .dock__it:focus-visible .dock__tile { outline: 2px solid #B23A0E; outline-offset: 3px; }   /* G21 */
.plist button, .win__again, .br__new, .foot a { border-radius: 8px; }
.pthumbs { justify-content: space-between; } .pthumbs li { flex: 1; display: flex; } .pthumbs li > button { flex: 1; }   /* G23 */
.stack--grid .stack__it span { hyphens: auto; -webkit-hyphens: auto; }   /* G25 */
@media (max-width: 560px) { .rub__h2 { font-size: 28px; text-wrap: pretty; } }   /* G13 */
@media (max-width: 860px) { .win__foot { min-height: calc(58px + env(safe-area-inset-bottom)); } }   /* G15: рамка не прыгает */
/* G24: без одиноких последних слов в абзацах и подписях (Chrome/Edge 117+, Safari 26; где не поддерживается — как раньше) */
p, li, .plist span, .pthumbs span, .bc__cap, .desk__hint { text-wrap: pretty; }
/* ── мобильная версия, раунд 2 (22.10) */
.msheet .mail__bar { position: sticky; top: 0; z-index: 2; }   /* N11: «×» письма не уезжает */
@media (max-width: 860px) {
  .msheet .mail__bar, .msheet .mail__row, .msheet .mail__body, .msheet .mail__foot { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }   /* N20 */
  .br__bar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .win__foot { min-height: calc(34px + env(safe-area-inset-bottom)); padding-top: 2px; }   /* N5: подвал не съедает кадр */
  .vpl__frame video { object-fit: contain; background: #000; }
  .vpl__list button { grid-template-columns: 96px 1fr; } .vpl__list img { width: 96px; height: 54px; }
  .bw__view { aspect-ratio: auto; height: calc(100svh - var(--mb-h) - var(--dock-h) - 66px); }   /* N6: карточка карусели целиком */
  .br__bar { display: none; } .br { grid-template-rows: minmax(0, 1fr); }   /* N3: под сайт — вся высота */
}
.ap__ctl.is-wait { opacity: .55; transition: opacity .3s; }   /* Q19 */
/* мобильная версия, раунд 2 — мелкие цели касания и обрезки (N9, N14, N22) */
.mp__auto { white-space: nowrap; }
.bw__chip { flex: none; }
@media (pointer: coarse) { .mp__tod button, .mp__modes button { height: 40px; } .mp__auto { height: 40px; } .mp__lay button, .mp__views button { height: 44px; } }
/* Q21: видимая кнопка паузы у видео в окне */
.vpl__pp { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(16, 18, 22, .62); color: #fff; cursor: pointer; opacity: .85; transition: opacity .2s, background-color .2s; }
.vpl__pp:hover { opacity: 1; background: rgba(16, 18, 22, .82); }
.vpl__pp svg { width: 18px; height: 18px; fill: currentColor; } .vpl__pp .pl { display: none; } .vpl__pp.is-paused .pl { display: block; } .vpl__pp.is-paused .pa { display: none; }
