:root {
  --ink: #1b0d2b;
  --cream: #fff3d6;
  --yellow: #ffd400;
  --red: #ff4a1c;
  --blue: #2a3cff;
  --pink: #ffb4dc;
  --green: #0a7a50;
  --violet: #7a2bff;
  --paper: #fffaf0;
  --cream-deep: #ffe9b8;
  --line: rgb(27 13 43 / .16);
  --line-dark: rgb(255 243 214 / .22);
  --deep: var(--ink);
  --gutter: clamp(16px, 2.6vw, 36px);
  --r: 26px;
  --bar: 0px;
  --head: 76px;
  --cap: 60px;
  --cap-top: 14px;
  --pad: clamp(72px, 9vw, 130px);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.45 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 30; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.proto { font-size: 14px; line-height: 1.4; opacity: .82; max-width: 62ch; }

/* Один голос заголовков от первого экрана до футера */
h2 { font: 900 clamp(56px, 8vw, 124px)/.9 var(--display); text-wrap: balance; }
.head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.head p { font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 30px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap;
  transition: transform .18s, background-color .18s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--ink { background: var(--ink); color: var(--yellow); }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link--arrow { text-decoration: none; display: inline-flex; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link--arrow::after { content: "→"; transition: transform .18s; }
.link--arrow:hover::after { transform: translateX(4px); }

/* Шапка */
/* Цвет капсулы зависит от сцены под ней: tone ставит app.js, без него кремовая читается везде */
.bar {
  --cap-bg: var(--cream); --cap-t: var(--ink); --cap-btn: var(--yellow); --cap-btn-t: var(--ink);
  position: fixed; left: var(--gutter); right: var(--gutter); top: var(--cap-top); z-index: 20;
  height: var(--cap); padding: 0 8px 0 24px; border-radius: 999px;
  display: flex; align-items: center; gap: 28px;
  background: var(--cap-bg); color: var(--cap-t); transition: background-color .3s, color .3s;
}
.bar[data-tone="light"] { --cap-bg: var(--ink); --cap-t: var(--cream); }
.bar[data-tone="bright"] { --cap-bg: var(--yellow); --cap-btn: var(--ink); --cap-btn-t: var(--yellow); }
.bar .btn--small { background: var(--cap-btn); color: var(--cap-btn-t); transition: background-color .3s, color .3s; }
.logo { font: 900 30px/1 var(--display); text-decoration: none; white-space: nowrap; }
.bar__nav { display: flex; align-items: center; gap: 26px; margin-left: 20px; }
.bar__nav a { text-decoration: none; }
.bar__nav a:hover, .bar__login:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang select { background: none; color: inherit; border: 0; font: inherit; cursor: pointer; }
.lang option { color: var(--ink); }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.bar__login { text-decoration: none; }
.bar__menu { display: none; font-weight: 500; }

/* Первый экран */
.hero {
  position: relative; overflow: clip;
  min-height: max(calc(700px + var(--head)), 100svh);
  padding: var(--head) var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 24px;
  background: var(--deep); transition: background-color .5s;
}
.hero__text { position: relative; z-index: 2; padding-top: 16px; }
.hero h1 { font: 900 min(20vh, 11.8vw)/.85 var(--display); color: var(--yellow); margin-bottom: 26px; white-space: nowrap; }
.hero__text p { font-size: 20px; line-height: 1.35; max-width: 27em; margin-bottom: 24px; text-wrap: pretty; }
.hero__row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.fan { position: relative; align-self: stretch; min-height: 560px; left: 3%; }

/* Обложка голоса */
.cover {
  position: relative; overflow: hidden; container-type: size;
  border-radius: var(--r); background: var(--a); color: var(--t);
}
.cover__hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: inherit; }
.cover__hit:focus-visible { outline-offset: -6px; outline-color: var(--t); }
.cover__print { position: absolute; left: 0; right: 0; top: 0; height: 74%; pointer-events: none; }
.cover__print svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spin, .pulse { transform-box: view-box; transform-origin: 50% 50%; }
.cover.is-on .spin { animation: spin 14s linear infinite; }
.cover.is-paused .spin { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.cover__txt { position: absolute; left: 7cqw; right: 7cqw; bottom: 6cqw; pointer-events: none; }
.cover__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; padding-bottom: .06em; font: 900 clamp(30px, 13.5cqw, 76px)/.92 var(--display); overflow-wrap: break-word; hyphens: auto; }
.cover__txt small { display: block; margin-top: 6px; font-size: clamp(14px, 3.6cqw, 17px); line-height: 1.25; }
.cover__btn {
  position: absolute; right: 16px; top: 16px; z-index: 2; pointer-events: none;
  width: clamp(44px, 16cqw, 68px); aspect-ratio: 1; border-radius: 50%;
  color: var(--a); display: grid; place-items: center; transition: transform .18s;
}
.cover__btn svg { grid-area: 1 / 1; width: 100%; height: 100%; color: var(--t); overflow: visible; }
.cover__btn::after { grid-area: 1 / 1; content: ""; width: 34%; aspect-ratio: 1; background: currentColor; clip-path: polygon(14% 0, 100% 50%, 14% 100%); margin-left: 6%; }
.cover.is-on:not(.is-paused) .cover__btn::after { clip-path: polygon(8% 0, 38% 0, 38% 100%, 8% 100%, 8% 0, 62% 0, 92% 0, 92% 100%, 62% 100%, 62% 0); margin-left: 0; }
.cover:hover .cover__btn { transform: scale(1.1); }
.cover__bar { position: absolute; left: 0; bottom: 0; height: 7px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--t); pointer-events: none; }
@container (aspect-ratio > 1.2) {
  .cover__print { left: auto; width: 52%; height: 100%; }
  .cover__txt { left: 22px; right: 50%; bottom: 20px; }
  .cover__name { font-size: clamp(30px, 11.5cqw, 72px); }
  .cover__btn { width: 48px; }
}

@container (height < 200px) {
  .cover__txt small { display: none; }
}
@container (aspect-ratio <= 1.2) {
  .wall .cover__print { height: 62%; }
}

.fan .cover {
  position: absolute; left: 50%; top: 50%; width: min(49vh, 27vw); aspect-ratio: 3 / 4.25; margin: 0;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--rot) * (1 + var(--s, 0)))) scale(var(--z));
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.1), box-shadow .3s;
  box-shadow: 0 28px 60px rgb(0 0 0 / .34);
}
.fan .cover[data-pos="0"] { --x: 0%; --y: 5%; --rot: -2deg; --z: 1.14; z-index: 3; }
.fan .cover[data-pos="1"] { --x: calc(min(49vh, 27vw) * .68); --y: calc(min(49vh, 27vw) * -.2); --rot: 8deg; --z: .94; z-index: 2; }
.fan .cover[data-pos="2"] { --x: calc(min(49vh, 27vw) * -.6); --y: calc(min(49vh, 27vw) * .14); --rot: -9deg; --z: .88; z-index: 1; }
.fan .cover:not([data-pos="0"]):hover { --z: 1; }

/* Студия: сцена окрашена в цвет выбранного голоса */
.studio {
  --scene-a: var(--yellow); --scene-b: var(--ink); --scene-t: var(--ink); --scene-dim: #5a3d73;
  background: var(--scene-a); color: var(--scene-t);
  padding: calc(var(--head) + 44px) var(--gutter) 36px; transition: background-color .45s, color .45s;
}
.studio__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.studio__head h2 { font: 500 20px/1.3 var(--text); }
.studio__tools { display: flex; align-items: baseline; gap: 22px; }
.studio__tools .is-max { font-weight: 600; }
.studio__main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 420px); gap: 32px; align-items: center; min-height: clamp(380px, 48vh, 500px); padding: 24px 0 36px; }
.script { position: relative; }
.script__text {
  position: relative; z-index: 1; outline: 0; min-height: 1em;
  font: 900 var(--fs)/.96 var(--display); overflow-wrap: anywhere; white-space: pre-wrap; caret-color: currentColor;
}
.script__text[data-fit="xl"] { --fs: clamp(64px, 8.6vw, 136px); }
.script__text[data-fit="l"] { --fs: clamp(50px, 6vw, 92px); }
.script__text[data-fit="m"] { --fs: clamp(40px, 4.2vw, 62px); line-height: 1; }
.script__text[data-fit="s"] { --fs: clamp(30px, 2.9vw, 42px); line-height: 1.04; }
.script__text:empty::before { content: attr(data-placeholder); opacity: .5; }
.script__text::selection { background: var(--scene-t); color: var(--scene-a); }
::highlight(sv-now) { color: var(--scene-a); }
::highlight(sv-next) { color: var(--scene-dim); }
.marker { position: absolute; left: 0; top: 0; background: var(--scene-t); border-radius: .14em; opacity: 0; transition: transform .09s ease-out, width .09s ease-out; pointer-events: none; }
.marker.is-on { opacity: 1; }
.marker.no-glide { transition: none; }
.studio__print { aspect-ratio: 1; color: var(--scene-b); }
.studio__print svg { display: block; width: 100%; height: 100%; overflow: visible; }

.deck { display: grid; grid-template-columns: auto minmax(120px, auto) minmax(0, 1fr) auto; align-items: center; gap: 22px; }
/* Кнопка play: клякса голоса, который она запускает */
.play {
  width: 84px; height: 84px; flex: none;
  color: var(--scene-a, var(--ink));
  display: grid; place-items: center; transition: scale .18s;
}
.play svg { grid-area: 1 / 1; width: 100%; height: 100%; color: var(--scene-t, var(--cream)); overflow: visible; transition: transform .1s linear; }
.play:not(:disabled):hover { scale: 1.06; }
.play:disabled { opacity: .4; cursor: default; }
.play::after { grid-area: 1 / 1; z-index: 1; content: ""; width: 32%; aspect-ratio: 1; background: currentColor; clip-path: polygon(14% 0, 100% 50%, 14% 100%); margin-left: 5%; }
.play.is-playing::after { clip-path: polygon(8% 0, 38% 0, 38% 100%, 8% 100%, 8% 0, 62% 0, 92% 0, 92% 100%, 62% 100%, 62% 0); margin-left: 0; }
.play.is-loading::after { width: 40%; background: none; border: 4px solid currentColor; border-right-color: transparent; border-radius: 50%; clip-path: none; margin: 0; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.play--small { width: 52px; height: 52px; --scene-t: var(--yellow); --scene-a: var(--ink); }
.play--app { width: 48px; height: 48px; --scene-t: var(--ink); --scene-a: var(--paper); }
.deck__read { min-width: 0; }
.deck__read strong { display: block; font: 900 30px/1.05 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__status { font-size: 15px; }
.deck__status button { font-weight: 600; text-decoration: underline; }

.scrub { position: relative; cursor: pointer; touch-action: none; }
.scrub canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub--deck { height: 72px; }
.scrub__ghost { display: none; }
.scrub__head { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: currentColor; opacity: 0; pointer-events: none; }

.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 26px 0 18px; }
.cv {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 4px 14px 4px 5px;
  border-radius: 999px; font-weight: 500; font-size: 16px; text-align: left;
  background: color-mix(in srgb, var(--scene-t) 12%, transparent);
  transition: background-color .2s, color .2s;
}
.cv svg { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--a); color: var(--b); }
.cv span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv[aria-checked="true"] { background: var(--scene-t); color: var(--scene-a); }
.cv:hover:not([aria-checked="true"]) { background: color-mix(in srgb, var(--scene-t) 22%, transparent); }

/* Голоса */
.voices { padding: var(--pad) var(--gutter) clamp(64px, 8vw, 110px); }
.voices h2 { color: var(--yellow); }
.filters { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.tabs button:hover:not([aria-pressed="true"]) { background: rgb(255 243 214 / .12); }
.filters__count { margin-left: auto; opacity: .72; }
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15.5vw, 230px); grid-auto-flow: dense; gap: 14px; margin-bottom: 28px; }
.wall .cover__btn { right: auto; left: 16px; }
html.anim .reveal { opacity: 0; transform: translateY(36px) rotate(1.5deg); }
html.anim .reveal.in { opacity: 1; transform: none; transition: opacity .5s, transform .6s cubic-bezier(.2, .9, .25, 1.05); transition-delay: var(--d, 0ms); }

/* Кабинет: один поступок на жёлтой сцене, клякса голоса и есть главная кнопка */
.desk { background: var(--yellow); color: var(--ink); padding: var(--pad) var(--gutter); overflow: hidden; }
.desk__stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; margin-bottom: 28px; }
.desk__col { min-width: 0; }
.lab { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 16px; margin-bottom: 10px; }
.lab--modes { margin: 22px 0 8px; }
.desk__text { outline: 0; overflow-wrap: anywhere; white-space: pre-wrap; min-height: 3em; font: 900 var(--fs)/.96 var(--display); }
.desk__text[data-fit="l"] { --fs: clamp(44px, 5vw, 76px); }
.desk__text[data-fit="m"] { --fs: clamp(34px, 3.4vw, 50px); }
.desk__text[data-fit="s"] { --fs: clamp(24px, 2.2vw, 32px); line-height: 1.04; }
.desk__text:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
.desk__text::selection { background: var(--ink); color: var(--yellow); }
.desk__modes { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 500; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--yellow); }
.chip:hover:not([aria-checked="true"]) { background: rgb(27 13 43 / .1); }
.desk__hint { margin-top: 10px; font-size: 16px; max-width: 28em; min-height: 4.4em; }
.desk__go { position: relative; display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 1; margin: -24px auto 0; color: var(--ink); }
.desk__go svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.desk__go span { position: relative; font: 900 clamp(38px, 4vw, 60px)/1 var(--display); }
.desk__go:hover span { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.desk__go .o { transform-box: view-box; transform-origin: 50% 50%; }
.desk[data-state="work"] .desk__go .o { animation: spin 1.4s linear infinite; }
.desk__voices { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 4px; margin-top: 8px; }
.desk__voices .chip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 12px 0 6px; text-align: left; }
.desk__voices svg { width: 30px; height: 30px; flex: none; }
.desk__voices span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk__file { display: grid; gap: 22px; min-width: 0; transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .25, 1.1); }
.desk[data-state="work"] .desk__player, .desk[data-state="work"] .tg, .desk[data-state="changed"] .desk__player, .desk[data-state="changed"] .tg, .desk[data-state="error"] .desk__player, .desk[data-state="error"] .tg { opacity: .3; transform: translateY(14px); }
.desk__player, .tg { transition: opacity .3s, transform .4s cubic-bezier(.2, .9, .25, 1.1); }
.desk__status { font: 900 clamp(56px, 7vw, 108px)/.9 var(--display); }
.desk__note { font-size: 16px; margin-top: 10px; max-width: 28em; overflow-wrap: anywhere; }
.desk__note:empty { display: none; }
.desk__note button, .deck__status button { font-weight: 600; text-decoration: underline; min-height: 32px; }
.lab .is-max { font-weight: 600; }
.desk__player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.desk__dl { grid-column: 1 / -1; justify-self: start; }
.scrub--app { height: 56px; color: var(--ink); }
.tg { background: var(--ink); color: var(--cream); border-radius: 22px 22px 22px 6px; padding: 16px 18px; rotate: -1.4deg; }
.tg__who { font-size: 14px; opacity: .8; margin-bottom: 8px; }
.tg strong { display: block; font-weight: 600; }
.tg p { font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }

/* Режимы: две обложки-плаката, каждая звучит своей записью */
.modes { background: var(--blue); color: var(--cream); padding: var(--pad) var(--gutter); }
.modes h2 { color: var(--yellow); }
.modes__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mode > p { margin-top: 14px; max-width: 34em; font-size: 18px; }
.cover--poster { aspect-ratio: 1 / .9; }
.cover--poster .cover__print { left: auto; right: -11cqw; top: -13cqw; width: 76cqw; height: 76cqw; }
.cover--poster .cover__txt { left: 5cqw; right: 5cqw; bottom: 5cqw; }
.cover--poster .cover__name { display: block; font-size: 16.4cqw; line-height: .86; white-space: nowrap; }
.cover--poster small { font-size: clamp(16px, 2.6cqw, 20px); margin-top: 10px; }
.cover--poster .cover__btn { right: auto; left: 5cqw; top: 5cqw; width: clamp(68px, 15cqw, 104px); }

/* Сценарии: полосы цвета */
.uses .head { padding: var(--pad) var(--gutter) 4px; }
.uses h2 { color: var(--yellow); }
.band { --bg: var(--yellow); --fg: var(--ink); background: var(--bg); color: var(--fg); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: clamp(36px, 4.4vw, 64px) var(--gutter); }
.band--y { --scene-dim: #5a3d73; }
.band--p { --bg: var(--pink); --scene-dim: #6e2352; }
.band--r { --bg: var(--red); --scene-dim: #7a1a10; }
.band--g { --bg: var(--green); --fg: var(--cream); }
.band h3 { font: 900 clamp(64px, 9vw, 150px)/.86 var(--display); }
.band__stage { position: relative; }
.band__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 26px; }
.band__text { position: relative; z-index: 1; font: 800 clamp(32px, 3.6vw, 56px)/1 var(--display); }
.band .play { --scene-t: var(--fg); --scene-a: var(--bg); width: clamp(72px, 7vw, 104px); height: clamp(72px, 7vw, 104px); }
.band .marker { background: var(--fg); }
.band { --scene-t: var(--fg); --scene-a: var(--bg); }
.band__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; }
.band__foot p { max-width: 34em; }
.band__foot .link { white-space: nowrap; }
.code { margin: 0 0 26px; padding: 20px 22px; border-radius: 20px; background: var(--ink); color: var(--cream); font: 400 15px/1.55 ui-monospace, Menlo, monospace; overflow-x: auto; }

/* Журнал задач и отзывы */
.proof { background: var(--violet); color: var(--cream); padding: var(--pad) var(--gutter); }
.proof h2 { color: var(--yellow); }
.proof__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px 32px; align-items: start; }
.log { width: 100%; border-collapse: collapse; }
.log th { font-weight: 400; font-size: 16px; text-align: left; padding: 0 16px 10px 0; }
.log td { padding: 10px 16px 12px 0; border-top: 2px solid var(--cream); vertical-align: baseline; }
.log td:first-child { font: 900 clamp(60px, 8vw, 124px)/.9 var(--display); color: var(--yellow); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.log td:nth-child(2) { font: 800 clamp(26px, 2.8vw, 40px)/1 var(--display); white-space: nowrap; }
.log td:last-child, .log th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.log a { text-underline-offset: 3px; }
.quotes { display: grid; gap: 26px; }
blockquote { margin: 0; border-top: 2px solid var(--cream); padding-top: 12px; }
blockquote p { font: 800 clamp(30px, 3vw, 44px)/1 var(--display); margin-bottom: 8px; }
cite { font-style: normal; font-size: 15px; }
cite a { text-underline-offset: 3px; }

/* Тарифы: герой сцены сам расчёт, площадь кляксы равна цене */
.pricing { --D: min(62vw, 900px); overflow: hidden; padding: var(--pad) var(--gutter); }
.pricing h2 { min-height: 2.7em; }
.pricing h2 em { font-style: normal; color: var(--yellow); }
.price__stage, .price__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 16px; }
.price__stage { height: clamp(240px, 31vw, 460px); margin-top: 20px; border-bottom: 2px solid var(--line-dark); overflow-y: clip; overflow-x: visible; }
.price__cell { position: relative; height: 100%; }
.price__cell:nth-child(1) { z-index: 2; }
.price__cell:nth-child(2) { z-index: 1; }
.price__cell svg { position: absolute; left: 50%; bottom: 0; width: var(--D); height: var(--D); margin-left: calc(var(--D) / -2); overflow: visible; transform-origin: 50% 100%; transform: scale(var(--k, 0)); transition: transform .35s cubic-bezier(.2, .9, .25, 1.1); }
.price__row { margin: 14px 0 28px; }
.price__row b { display: block; font: 900 clamp(52px, 7.4vw, 116px)/.86 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.price__row span { display: block; }
.price__row small { display: block; font-size: 15px; opacity: .82; }
.rail { --t: 76px; }
.rail input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--t); margin: 0; border-radius: 999px; cursor: grab; background: linear-gradient(to right, var(--yellow) calc(var(--t) / 2 + var(--f, .5) * (100% - var(--t))), rgb(255 243 214 / .14) 0); }
.rail input:active { cursor: grabbing; }
.rail input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--t); height: var(--t); border-radius: 50%; background: var(--cream); border: 6px solid var(--ink); box-shadow: 0 0 0 2px var(--cream); }
.rail input::-moz-range-thumb { box-sizing: border-box; width: var(--t); height: var(--t); border-radius: 50%; background: var(--cream); border: 6px solid var(--ink); }
.rail input:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; border-radius: 999px; }
.rail__marks { position: relative; height: 26px; margin-top: 10px; font-size: 16px; }
.rail__marks span { position: absolute; left: calc(var(--t) / 2 + var(--i) / 4 * (100% - var(--t))); transform: translateX(-50%); white-space: nowrap; }
.offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; margin-top: 56px; }
.offer__step strong { display: block; font: 900 clamp(40px, 4.4vw, 68px)/.96 var(--display); margin-bottom: 18px; }
.offer em { font-style: normal; color: var(--yellow); }
.offer__step .btn { margin-top: 6px; }
.offer__note { font-size: 16px; line-height: 1.5; max-width: 54em; }
.offer__note p + p { margin-top: 10px; }
.offer__note .proto { margin-top: 16px; max-width: none; }
.offer__note a { text-underline-offset: 3px; }

/* Вопросы */
.ask { background: var(--cream); color: var(--ink); padding: var(--pad) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.ask h2 { position: sticky; top: calc(var(--head) + 24px); align-self: start; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font: 800 clamp(26px, 2.6vw, 36px)/1.04 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 30px/1 var(--text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 48px 22px 0; }
.faq details p + p { margin-top: 10px; }
.faq ul { margin: 0; padding-left: 20px; }

/* Финал */
.final { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.final h2 { position: relative; z-index: 1; font-size: clamp(76px, 14.4vw, 240px); max-width: 8.4em; margin-bottom: 26px; }
.final p { position: relative; z-index: 1; font-size: 20px; margin-bottom: 24px; }
.final__row { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.final__print { position: absolute; right: -8vw; top: 50%; width: min(62vw, 880px); aspect-ratio: 1; transform: translateY(-50%); color: var(--red); --a: var(--yellow); }
.final__print svg { width: 100%; height: 100%; }

/* Подвал */
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding: 56px var(--gutter) 40px; font-size: 15px; }
.foot h3 { font: 800 22px/1 var(--display); margin: 0 0 12px; }
.foot p { margin-top: 10px; }
.foot nav a { display: block; text-decoration: none; padding: 3px 0; }
.foot nav a:hover { color: var(--yellow); }

/* Нижний плеер */
.dock {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 180px) minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
}
.dock[hidden] { display: none; }
/* Плеер встаёт на место меню, само меню уходит под кнопку */
.bar.is-player .bar__menu { display: block; min-height: 44px; }
.bar.is-player .bar__nav {
  position: absolute; right: 0; top: calc(var(--cap) + 8px); display: none; margin: 0;
  flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 22px 20px; border-radius: 26px;
  background: var(--cap-bg); font-size: 20px; box-shadow: 0 14px 40px rgb(27 13 43 / .35);
}
.bar.is-player .bar__nav.is-open { display: flex; }
.dock__title { min-width: 0; line-height: 1.15; }
.dock__title strong { display: block; font: 900 22px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__title span { font-size: 13px; opacity: .72; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scrub--dock { height: 34px; color: var(--cap-t); }
.dock .play--small { width: 44px; height: 44px; --scene-t: var(--cap-t); --scene-a: var(--cap-bg); }
.dock__close { width: 36px; height: 36px; border-radius: 50%; position: relative; }
.dock__close::before, .dock__close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 2px; background: currentColor; transform: rotate(45deg); }
.dock__close::after { transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .desk__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk__file { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; align-items: end; }
  .desk__file > :first-child { grid-column: 1 / -1; }
  .bar { gap: 20px; }
  .bar__nav { gap: 18px; margin-left: 0; }
  .bar__login { display: none; }
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--head) + 12px); }
  .hero h1 { font-size: clamp(96px, 19vw, 170px); }
  .fan { min-height: clamp(440px, 72vw, 620px); left: 0; }
  .fan .cover { width: clamp(236px, 40vw, 330px); }
  .fan .cover[data-pos="1"] { --x: clamp(84px, 24vw, 220px); --y: -26px; }
  .fan .cover[data-pos="2"] { --x: clamp(-220px, -24vw, -84px); --y: 22px; }
  .bar__nav {
    position: absolute; left: 0; right: 0; top: calc(var(--cap) + 8px); display: none;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 22px 20px; border-radius: 26px;
    background: var(--cap-bg); font-size: 20px; box-shadow: 0 14px 40px rgb(27 13 43 / .35);
  }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 6px 0; }
  .bar__menu { display: block; min-height: 44px; }
  .studio__main { grid-template-columns: minmax(0, 1fr) 180px; min-height: 320px; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .proof__grid { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .cast { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cv { font-size: 15px; padding-right: 10px; }
  .band { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .ask h2 { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --head: 64px; --cap: 56px; --cap-top: 10px; --r: 20px; }
  body { font-size: 16px; }
  .logo { font-size: 22px; }
  .bar { gap: 6px; padding: 0 6px 0 16px; }
  .bar__end { gap: 4px; }
  .btn--small { min-height: 40px; padding: 0 11px; font-size: 13px; }
  .bar__menu { padding: 0 8px 0 2px; font-size: 14px; }
  .bar.is-player { padding-left: 6px; }
  .bar.is-player .logo, .bar.is-player .btn--small { display: none; }
  .btn { min-height: 56px; }
  .hero__text .btn { width: 100%; }
  .hero h1 { font-size: 27.5vw; }
  .hero__text p { font-size: 18px; }
  .fan { min-height: 104vw; }
  .fan .cover { width: 60vw; }
  .fan .cover[data-pos="1"] { --x: 22vw; --y: -24px; }
  .fan .cover[data-pos="2"] { --x: -22vw; --y: 18px; }
  .studio__main { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 16px; padding: 28px 0 22px; }
  .studio { position: relative; }
  .studio__head h2 { max-width: 62%; }
  .studio__print { position: absolute; right: 6px; top: 20px; width: 108px; }
  .script__text[data-fit="xl"] { --fs: 16.5vw; }
  .script__text[data-fit="l"] { --fs: 12.5vw; }
  .script__text[data-fit="m"] { --fs: 9.4vw; }
  .script__text[data-fit="s"] { --fs: 7.4vw; }
  .deck { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; }
  .deck .play { width: 72px; height: 72px; }
  .scrub--deck { grid-column: 1 / -1; grid-row: 2; height: 60px; }
  .cast { display: flex; overflow-x: auto; margin: 20px calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter); scrollbar-width: none; }
  .cv { flex: none; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 10px; }
  .wall .cover { grid-column: span 1 !important; grid-row: span 1 !important; }
  .wall .cover:nth-child(5n + 1) { grid-column: span 2 !important; grid-row: span 2 !important; }
  .wall .cover__btn { width: 40px; left: 10px; top: 10px; }
  .wall .cover__txt { bottom: 10px; left: 12px; right: 12px; }
  .wall .cover:not(:nth-child(5n + 1)) small { display: none; }
  .wall .cover:not(:nth-child(5n + 1)) .cover__name { font-size: 30px; }
  .modes__pair { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cover--poster { aspect-ratio: 1 / 1.08; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .desk__stage, .desk__file { grid-template-columns: minmax(0, 1fr); }
  .desk__text { min-height: 0; }
  .desk__hint { min-height: 0; }
  .desk__go { width: min(100%, 300px); margin-top: 0; }
  .pricing { --D: 104vw; }
  .pricing h2 { min-height: 3.6em; font-size: 15.5vw; }
  .price__stage, .price__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 4fr); gap: 8px; }
  .price__stage { height: 62vw; }
  .price__row b { font-size: 12.5vw; }
  .price__row span { font-size: 14px; line-height: 1.2; }
  .price__row small { font-size: 13px; }
  .rail { --t: 60px; }
  .rail__marks { font-size: 13px; }
  .offer__step .btn { width: 100%; }
  .log th { font-size: 14px; padding-right: 8px; }
  .log td { padding-right: 8px; }
  .log td:nth-child(2) { font-size: 21px; }
  .log td:first-child { font-size: 15.5vw; }
  .log td:last-child { font-size: 14px; }
  .band__row { gap: 14px; }
  .code { font-size: 13px; padding: 16px; }
  .foot { grid-template-columns: 1fr; gap: 24px; padding-bottom: 96px; }
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .scrub--dock, .dock__time { display: none; }
  .final h2 { font-size: 22vw; }
  .final__print { width: 118vw; right: -46vw; top: 34%; opacity: 1; }
  .final .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.anim .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bar, .bar .btn--small { transition: none; }
}
