/* ─────────────────────────────────────────────
   Кейс «Сдано.» — сцена и бэкстейдж
   Мир клиента: ночная афиша. Токены и компоненты повторяют sdano.site.
   ───────────────────────────────────────────── */

:root {
  --night: #0B0B0C;
  --night-1: #111113;
  --night-2: #18181B;
  --night-3: #232327;
  --paper: #ECEAE4;
  --paper-2: #DEDBD3;
  --sheet: #F8F7F3;
  --ink: #0B0B0C;
  --ink-2: #5E5D5A;
  --ink-3: #7A7873;
  --text: #ECEAE4;
  --text-2: #B4B2AC;
  --text-3: #8C8A85;
  --line: rgba(236, 234, 228, .13);
  --line-2: rgba(236, 234, 228, .26);
  --line-ink: rgba(11, 11, 12, .13);
  --line-ink-2: rgba(11, 11, 12, .28);
  --red: #FF3B1F;
  --red-hot: #FF5A3D;
  --red-deep: #D22A10;
  --acid: #D8FF3C;

  --f-wide: "Unbounded", "Sofia Sans", system-ui, sans-serif;
  --f-cond: "Sofia Sans Extra Condensed", "Sofia Sans", system-ui, sans-serif;
  --f-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --r: 3px;
  --nav-h: 68px;
  --sec: clamp(96px, 11vw, 176px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ── база ─────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--night);
  color-scheme: dark;
  scrollbar-color: var(--night-3) var(--night);
  scrollbar-width: thin;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(17px, .5vw + 14px, 19px);
  line-height: 1.55;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--red); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--night-3); border: 2px solid var(--night); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
input, textarea { caret-color: var(--red); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
figure { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--acid); color: var(--ink); padding: 10px 16px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.grain {
  position: fixed; inset: -100px; z-index: 120; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-30px, 20px); }
  40% { transform: translate(20px, -40px); } 60% { transform: translate(-50px, -10px); }
  80% { transform: translate(40px, 30px); } 100% { transform: translate(0, 0); }
}

/* ── типографика ──────────────────────────── */

.h2 {
  font-family: var(--f-wide); font-weight: 700; font-size: clamp(32px, 4.6vw, 76px);
  line-height: 1; letter-spacing: -.04em; margin: 0;
}
.h2 .quiet { color: var(--text-3); }
.lead { font-size: clamp(18px, 1.2vw + 8px, 23px); line-height: 1.45; color: var(--text-2); max-width: 36em; margin: 0; }

.logo__dot {
  display: inline-block; width: .24em; height: .24em; border-radius: 50%;
  background: var(--red); margin-left: .07em; flex: none;
  box-shadow: 0 0 .35em rgba(255, 59, 31, .55);
  animation: rec 2.6s ease-in-out infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── кнопки, метки, штампы ────────────────── */

.btn {
  --h: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 26px;
  font-family: var(--f-cond); font-weight: 800; font-size: 21px; line-height: 1;
  text-transform: uppercase; letter-spacing: .035em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; white-space: nowrap; position: relative;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease-out);
}
.btn i { font-size: .95em; transition: transform .35s var(--ease-out); }
.btn:hover i.ph-arrow-right, .btn:hover i.ph-arrow-up-right { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--red { background: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--red-hot); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--sm { --h: 42px; padding: 0 16px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }

.tag {
  display: inline-block; font-family: var(--f-cond); font-weight: 800; font-size: 13px; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px 4px; border: 1.5px solid currentColor; border-radius: 100px; vertical-align: .25em;
}
.tag--acid { color: var(--acid); }

.stamp {
  display: inline-block; font-family: var(--f-wide); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  padding: .16em .42em .2em; border: .1em solid currentColor; border-radius: .18em; transform: rotate(-10deg);
  white-space: nowrap;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.stamp--red { color: var(--red); background: rgba(11, 11, 12, .5); }
.stamp--final { color: var(--red); font-size: 30px; }
.stamp--acid { color: var(--acid); font-size: 30px; }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.4); }
  60% { opacity: 1; transform: rotate(-10deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}
.js [data-slam] { opacity: 0; }
.js [data-slam].is-in { animation: slam .5s var(--ease-out) forwards; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r);
}
.seg button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 2px; background: none; color: var(--text-2); cursor: pointer;
  font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.seg button[data-layer="back"][aria-pressed="true"] { background: var(--acid); }

/* ── шапка кейса ──────────────────────────── */

.sh {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 22px; padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.sh.is-solid {
  background: rgba(11, 11, 12, .92); border-color: var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.sh__studio { font-family: var(--f-wide); font-weight: 700; font-size: 18px; letter-spacing: -.04em; text-decoration: none; }
.sh__case {
  display: inline-flex; align-items: baseline; gap: 8px; padding-left: 22px; border-left: 1px solid var(--line-2);
  font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.sh__case b { display: inline-flex; align-items: baseline; font-family: var(--f-wide); font-weight: 800; font-size: 17px; letter-spacing: -.04em; text-transform: none; color: var(--text); }
.sh__nav { margin-left: auto; display: flex; gap: 22px; }
.sh__nav a {
  position: relative; font-family: var(--f-cond); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--text-2); padding: 6px 0; transition: color .2s;
}
.sh__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.sh__nav a:hover, .sh__nav a.is-on { color: var(--text); }
.sh__nav a.is-on::after { transform: none; }
.sh__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ── первый экран ─────────────────────────── */

.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 18px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 -30vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 10% 100%, rgba(255, 59, 31, .28), transparent 70%),
    radial-gradient(40% 35% at 92% 0%, rgba(236, 234, 228, .07), transparent 70%);
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center;
  font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.hero__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.hero__meta a:hover { color: var(--red-hot); }
.hero__meta span + span::before { content: "·"; margin-right: 28px; color: var(--line-2); }

.hero__mark { position: relative; padding-inline: clamp(6px, 1.4vw, 22px); margin-top: clamp(8px, 1.6vw, 24px); }
#chrome { width: 100%; height: 22vw; }
.mark2d { display: none; position: relative; width: 100%; isolation: isolate; }
.mark2d__img { display: block; width: 100%; height: auto; animation: mark-in 1.1s var(--ease-out) .15s both; }
.mark2d__shine {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("sdano-mark-800.webp") center / 100% 100% no-repeat;
  mask: url("sdano-mark-800.webp") center / 100% 100% no-repeat;
}
.mark2d__shine::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -45%; width: 38%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .15) 38%, rgba(255, 255, 255, .95) 50%, rgba(255, 220, 210, .15) 62%, transparent 85%);
  transform: translateX(0) skewX(-14deg);
  animation: mark-shine 6s var(--ease-io) 1.5s infinite;
}
.mark2d__dot {
  position: absolute; left: 95.3%; top: 76.9%; width: 9%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 90, 61, .9) 0 18%, rgba(255, 59, 31, .35) 36%, transparent 68%);
  animation: rec 2.6s ease-in-out infinite, mark-dot-in .6s var(--ease-out) .9s both;
}
@keyframes mark-in { from { clip-path: inset(100% 0 0 0); transform: translateY(14%); } to { clip-path: inset(0); transform: none; } }
@keyframes mark-shine { 0% { transform: translateX(0) skewX(-14deg); } 40%, 100% { transform: translateX(460%) skewX(-14deg); } }
@keyframes mark-dot-in { from { scale: 0; } }
.no-webgl #chrome { display: none; }
.no-webgl .mark2d { display: block; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px clamp(28px, 5vw, 96px);
  align-items: end; margin-top: clamp(8px, 1.2vw, 20px);
}
.hero__lead { margin: 0; font-family: var(--f-body); font-weight: 500; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.42; color: var(--text); max-width: 34em; }
.hero__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ── сцена: живой кабинет ─────────────────── */

.stage { position: relative; padding: clamp(28px, 3vw, 48px) 0 0; }
.stage .stage__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); margin-bottom: clamp(20px, 2.2vw, 32px); }
.stage .h2 { font-size: clamp(26px, 2.5vw, 40px); }
.stage .lead { font-size: clamp(16px, .6vw + 9px, 18px); }
.stage__intro, .brand__intro, .site__intro, .rider__intro, .numbers__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.rig-wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 360px); gap: 24px; align-items: stretch; }

.rig {
  min-width: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--night); overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
}
.rig__bar {
  display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line); background: var(--night-1);
}
.rig__url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rig__advance { margin-left: auto; }
.cab-me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--night-3); font-size: 17px; color: var(--text-2); }
.rig__reset {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: var(--r);
  background: none; color: var(--text-2); cursor: pointer;
  font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.rig__reset:hover { border-color: var(--acid); color: var(--acid); }

.rig__view {
  position: relative; height: clamp(660px, 82vh, 840px); overflow: hidden;
  container: rig / inline-size;
}
.rail {
  position: absolute; inset: 0 0 auto; height: 30px; z-index: 1;
  background: var(--night-1) linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px) 0 100% / 24px 7px repeat-x;
  border-bottom: 1px solid var(--line);
}

/* сцена и бэкстейдж лежат друг на друге */
.cab {
  position: absolute; inset: 30px 0 0;
  display: grid;
  grid-template-columns: clamp(214px, 25cqi, 300px) minmax(0, 1fr) clamp(250px, 28cqi, 360px);
  grid-template-rows: 60px minmax(0, 1fr);
  grid-template-areas: "top top top" "stages stage chat";
  font-size: 15px; line-height: 1.45;
}
.cab--x {
  z-index: 2;
  clip-path: inset(0 0 0 var(--curtain));
  background-color: #0E0F11;
  background-image:
    linear-gradient(rgba(236, 234, 228, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 228, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.rig__view.is-anim .cab--x { transition: clip-path .9s var(--ease-out); }
.rig__view.is-anim .curtain { transition: left .9s var(--ease-out); }

.cab-label {
  margin: 0; font-family: var(--f-cond); font-weight: 800; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}

/* верх кабинета */
.cab-top {
  grid-area: top; display: flex; align-items: center; gap: 22px; padding: 0 16px; min-width: 0;
  border-bottom: 1px solid var(--line); background: var(--night);
}
.cab-logo { display: inline-flex; align-items: baseline; font-family: var(--f-wide); font-weight: 800; font-size: 19px; letter-spacing: -.04em; line-height: 1; flex: none; }
.cab-top__order { min-width: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.cab-top__title { margin: 0; font-family: var(--f-cond); font-weight: 900; font-size: 20px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-top__title span { color: var(--text-3); font-weight: 700; }
.cab-top__meta { margin: 2px 0 0; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cab-top__meta i { color: var(--red); }
.cab-top__left { color: var(--text-3); }
.cab-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.cab-top__right .tag { color: var(--acid); }
.cab-demo {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; cursor: pointer;
  background: none; color: var(--text); border: 1px dashed var(--line-2); border-radius: var(--r);
  font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background-color .2s;
}
.cab-demo:hover { border-color: var(--acid); color: var(--acid); }
.cab-demo[disabled] { opacity: .35; cursor: default; }
.cab-demo.is-hint { border-color: var(--acid); color: var(--acid); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { background: rgba(216, 255, 60, .12); } }

/* колонка этапов */
.cab-stages { grid-area: stages; min-height: 0; overflow: auto; border-right: 1px solid var(--line); display: flex; flex-direction: column; scrollbar-width: thin; }
.cab-stages__head { padding: 18px 16px 14px; border-bottom: 1px solid var(--line); }
.cab-paid { margin: 6px 0 10px; font-family: var(--f-cond); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.cab-paid small { display: block; margin-top: 6px; font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--text-3); }
.cab-meter { height: 4px; border-radius: 4px; background: var(--night-3); overflow: hidden; }
.cab-meter span { display: block; height: 100%; width: 100%; background: var(--acid); border-radius: inherit; transform-origin: left; transform: scaleX(.2); transition: transform .8s var(--ease-out); }

.cab-lineup { list-style: none; margin: 0; padding: 6px 0; flex: 1; }
.cab-lineup button {
  width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 10px 16px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit;
  transition: background-color .2s;
}
.cab-lineup button:hover { background: var(--night-1); }
.cab-lineup button.is-sel { background: var(--night-2); box-shadow: inset 0 1px 0 var(--line-2), inset 0 -1px 0 var(--line-2); }
.cab-lineup__no { font-family: var(--f-cond); font-weight: 900; font-size: 26px; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cab-lineup__name { display: block; font-family: var(--f-cond); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: .015em; line-height: 1.05; }
.cab-lineup__sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cab-lineup__st { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-cond); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-paid { color: var(--acid); }
.st-review { color: var(--ink); background: var(--red); padding: 4px 8px 3px; border-radius: 100px; }
.st-work { color: var(--text); }
.st-fix { color: var(--red-hot); }
.st-next { color: var(--text-3); }
.st-stop { color: var(--text-3); text-decoration: line-through; }
.cab-lineup li.is-paid .cab-lineup__no { color: var(--acid); }
.cab-lineup li.is-review .cab-lineup__no, .cab-lineup li.is-work .cab-lineup__no { color: var(--red); }
.cab-lineup li.is-next .cab-lineup__name, .cab-lineup li.is-stop .cab-lineup__name { color: var(--text-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rec 1.4s ease-in-out infinite; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { display: block; width: 3px; background: currentColor; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

.cab-stages__foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.cab-stages__foot p { margin: 0 0 8px; display: flex; gap: 8px; }
.cab-stages__foot i { color: var(--acid); font-size: 17px; flex: none; }
.cab-link { background: none; border: 0; padding: 0; color: var(--text-3); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cab-link:hover { color: var(--red-hot); }
.cab-link[disabled] { cursor: default; text-decoration: none; }

/* текущий этап */
.cab-stage { grid-area: stage; min-height: 0; overflow: auto; position: relative; scrollbar-width: thin; }
.cab-stage:focus { outline: none; }
.sv { max-width: 760px; margin: 0 auto; padding: 26px clamp(18px, 3cqi, 36px) 0; }
.sv__head { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; padding-bottom: 18px; border-bottom: 3px solid var(--text); }
.sv__no { grid-row: span 2; font-family: var(--f-cond); font-weight: 900; font-size: clamp(64px, 7cqi, 96px); line-height: .78; color: var(--red); font-variant-numeric: tabular-nums; }
.sv__title { margin: 0; font-family: var(--f-wide); font-weight: 700; font-size: clamp(24px, 3cqi, 38px); letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; }
.sv__status { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--text-2); }
.sv__status .cab-lineup__st { font-size: 14px; }

.sv__note { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 16px 0 18px; }
.sv__note .cab-ava { width: 36px; height: 36px; font-size: 12px; }
.sv__note p { margin: 0; font-size: 15px; line-height: 1.5; }
.sv__note small { display: block; margin-top: 5px; font-size: 12px; color: var(--text-3); }

.sv__sec { margin: 20px 0; }
.sv__sec > .cab-label { margin-bottom: 10px; }
.sv__sec > p { margin: 0; color: var(--text-2); font-size: 15px; }
.sv__files { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.fcard {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  background: var(--night-1); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text);
  transition: border-color .2s, background-color .2s; cursor: pointer; font: inherit; text-align: left;
}
.fcard:hover { border-color: var(--line-2); background: var(--night-2); }
.fcard > i { font-size: 26px; color: var(--red); }
.fcard b { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; word-break: break-word; }
.fcard small { color: var(--text-3); font-size: 12px; }
.fcard .ph-download-simple { font-size: 18px; color: var(--text-2); }

.sheet { background: var(--sheet); color: var(--ink); border-radius: var(--r); padding: clamp(16px, 2.4cqi, 26px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.sheet dl { margin: 0; display: grid; }
.sheet dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line-ink-2); }
.sheet dl div:last-child { border-bottom: 0; }
.sheet dt { font-family: var(--f-cond); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 13px; color: var(--ink-2); padding-top: 1px; }
.sheet dd { margin: 0; font-weight: 600; font-size: 15px; }
.proof__label { font-family: var(--f-cond); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.toc { margin: 0; padding: 0; list-style: none; }
.toc li { padding: 5px 0; border-bottom: 1px dotted var(--line-ink-2); font-weight: 600; font-size: 15px; }
.toc li:last-child { border: 0; }
.toc__sub { padding-left: 16px !important; font-weight: 500 !important; color: var(--ink-2); }
.src { list-style: none; margin: 0; padding: 0; }
.src li { padding: 7px 0; border-bottom: 1px solid var(--line-ink); font-weight: 600; font-size: 15px; }
.src li span { display: block; }
.src small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.src .src__more { border: 0; color: var(--ink-2); font-weight: 500; font-style: italic; }
.page__h { font-weight: 800; margin: 0 0 6px; }
.page__p { margin: 0 0 10px; font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: 1.45; }
.page__line { display: block; height: 7px; border-radius: 4px; background: rgba(11, 11, 12, .1); margin: 7px 0; }
.page__line--short { width: 60%; }
.page__note { margin: 12px 0 0; background: var(--acid); padding: 8px 10px; border-radius: var(--r); font-size: 13px; }
.report__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-ink); font-size: 15px; }
.report__row b { font-family: var(--f-cond); font-weight: 900; font-size: 18px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.report__row b i { color: var(--red); }
.report__row--main { border: 0; padding-bottom: 6px; }
.report__row--main b { font-size: 38px; line-height: .9; }
.report__bar { position: relative; height: 8px; background: rgba(11, 11, 12, .1); border-radius: 8px; margin-bottom: 6px; }
.report__bar span { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--ink); border-radius: inherit; }
.report__bar i { position: absolute; top: -4px; bottom: -4px; left: var(--v); width: 2px; background: var(--red); }
.sheet--dim { opacity: .55; filter: grayscale(.4); }
.sheet__lock { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; margin: 0; }
.sheet__lock i { font-size: 20px; color: var(--red); }

.sv__hist { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.sv__hist li { position: relative; padding: 0 0 14px 18px; font-size: 14px; color: var(--text-2); }
.sv__hist li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--night); border: 2px solid var(--text-3); }
.sv__hist li.is-ok::before { border-color: var(--acid); background: var(--acid); }
.sv__hist time { color: var(--text-3); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }

.sv__actions {
  position: sticky; bottom: 0; z-index: 3; margin: 28px calc(-1 * clamp(18px, 3cqi, 36px)) 0;
  padding: 20px clamp(18px, 3cqi, 36px) 12px;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0), var(--night) 18px);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sv__actions .btn { --h: 52px; font-size: 19px; }
.sv__actions .btn--ghost { background: var(--night); }
.sv__actions .btn--ghost:hover { background: var(--night-2); }
.sv__actions .btn--red { flex: 1 1 260px; }
.sv__actions .btn--ghost { flex: 0 1 auto; }
.sv__actions > p { flex: 1 1 100%; display: none; margin: 0; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.sv__actions > p i { color: var(--acid); }
.fix { flex: 1 1 100%; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--night-1); display: grid; gap: 10px; }
.fix[hidden] { display: none; }
.fix textarea {
  width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--night); border: 1px solid var(--line-2); border-radius: var(--r);
}
.fix textarea::placeholder { color: var(--text-3); }
.fix textarea:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 3px rgba(255, 59, 31, .35); }
.fix__row { display: flex; gap: 8px; flex-wrap: wrap; }

.sv-work { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 22px 0; border: 1px dashed var(--line-2); border-radius: var(--r); }
.sv-work .eq { height: 22px; color: var(--red); }
.sv-work .eq i { width: 4px; }
.sv-work p { margin: 0; }
.sv-work b { display: block; font-family: var(--f-cond); font-weight: 900; font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.sv-work span { color: var(--text-2); font-size: 14px; }
.sv-done { padding: 28px 0 8px; }
.sv-done .stamp { font-size: clamp(48px, 7cqi, 84px); animation: slam .5s var(--ease-out) both; }

/* чат */
.cab-chat { grid-area: chat; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--night-1); }
.cab-chat__head { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cab-ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center;
  font-family: var(--f-wide); font-weight: 800; font-size: 13px; letter-spacing: -.04em; flex: none;
}
.cab-chat__name { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.2; }
.cab-chat__status { margin: 0; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.cab-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: none; border: 1px solid var(--line);
  color: var(--text-2); font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s; flex: none;
}
.cab-icon:hover { border-color: var(--line-2); color: var(--text); }
.cab-chat__log { flex: 1; min-height: 0; overflow: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; scrollbar-width: thin; overscroll-behavior: contain; }
.cm { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; animation: cm-in .5s var(--ease-out); }
@keyframes cm-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.cm time { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.cm--in { align-self: flex-start; background: var(--night-3); border-bottom-left-radius: 4px; }
.cm--out { align-self: flex-end; background: var(--paper); color: var(--ink); border-bottom-right-radius: 4px; }
.cm--out time { color: var(--ink-2); }
.cm--out mark { background: var(--ink); color: var(--acid); padding: 0 4px; border-radius: 2px; font-family: var(--f-cond); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.cm--sys {
  align-self: center; max-width: 94%; background: none; padding: 5px 0; text-align: center;
  font-family: var(--f-cond); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
}
.cm--sys.is-ok { color: var(--acid); }
.cm--sys.is-warn { color: var(--red-hot); }
.cm--file { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; }
.cm--file > i { font-size: 26px; color: var(--red); }
.cm--file b { display: block; font-size: 13.5px; }
.cm--file small { color: var(--text-3); font-size: 12px; }
.cm--file p { grid-column: 1 / -1; margin: 3px 0 0; }
.cm--typing { display: flex; gap: 4px; padding: 12px; }
.cm--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.cm--typing span:nth-child(2) { animation-delay: .15s; } .cm--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.cm-day { align-self: center; font-size: 11px; color: var(--text-3); padding: 3px 10px; border-radius: 100px; background: var(--night-2); margin: 6px 0 2px; }

.cab-chat__form { display: grid; grid-template-columns: 1fr 40px; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.cab-chat__form input {
  min-width: 0; height: 40px; border-radius: 100px; padding: 0 14px; border: 1px solid var(--line); background: var(--night); color: var(--text); font: inherit; font-size: 14px;
}
.cab-chat__form input::placeholder { color: var(--text-3); }
.cab-chat__form input:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(255, 59, 31, .3); }
.cab-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: var(--ink); font-size: 18px; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s var(--ease-out); }
.cab-send:hover { background: var(--red-hot); }
.cab-send:active { transform: scale(.94); }

.cab-tabs { display: none; }

/* оплата внутри рамки */
.pay {
  position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .3s ease-out;
}
.pay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.pay__sheet {
  width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 18px; display: grid; gap: 16px;
  border-radius: 6px; background: var(--night-1); color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8);
  animation: sheet-in .5s var(--ease-out);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.pay__head { display: flex; justify-content: space-between; align-items: center; }
.pay__note { margin: 0; font-size: 12px; color: var(--text-3); }
.pay .btn.is-ok { background: var(--acid); color: var(--ink); opacity: 1; }
.receipt {
  position: relative; background: var(--sheet); color: var(--ink); padding: 20px 20px 32px; font-family: var(--f-cond); font-size: 17px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
}
.receipt__shop { margin: 0 0 12px; text-align: center; font-family: var(--f-wide); font-weight: 800; font-size: 24px; letter-spacing: -.04em; display: flex; justify-content: center; align-items: baseline; }
.receipt__line { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.receipt__line--muted { color: var(--ink-2); font-weight: 600; }
.receipt__total { margin: 10px 0 0; display: flex; justify-content: space-between; font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; font-variant-numeric: tabular-nums; }
.receipt__stamp { position: absolute; right: 16px; top: 44%; font-size: 36px; opacity: 0; pointer-events: none; }
.receipt.is-paid .receipt__stamp { animation: slam .5s var(--ease-out) forwards; }
.pay-methods { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-methods legend { margin-bottom: 8px; }
.pay-methods label { position: relative; cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pay-methods span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-family: var(--f-cond); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; transition: all .2s;
}
.pay-methods input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pay-methods input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 3px; }

.cab-toast {
  position: absolute; left: 50%; bottom: 22px; z-index: 9; translate: -50% 0; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 100px;
  background: var(--acid); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  animation: toast-in .5s var(--ease-out); pointer-events: none;
}
.cab-toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }

/* ── бэкстейдж: монтажная схема ───────────── */

.cab--x { color: var(--text-2); font-family: var(--f-cond); }
.x-top { grid-area: top; display: flex; align-items: center; gap: 0; border-bottom: 1px dashed var(--line-2); overflow: hidden; }
.x-pane { position: relative; min-height: 0; overflow: hidden; padding: 30px 14px 14px; border: 1px dashed var(--line-2); margin: 10px; border-radius: 2px; }
.x-stages { grid-area: stages; }
.x-stage { grid-area: stage; }
.x-chat { grid-area: chat; }
.x-tab {
  position: absolute; left: -1px; top: -1px; padding: 4px 8px 3px; background: var(--acid); color: var(--ink);
  font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px 0 2px 0;
}
.x-cell { display: flex; flex-direction: column; justify-content: center; gap: 1px; height: 100%; padding: 0 16px; border-right: 1px dashed var(--line); white-space: nowrap; }
.x-cell:last-child { border-right: 0; }
.x-cell b { font-weight: 900; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.x-cell span { font-family: var(--f-body); font-size: 12px; color: var(--text-3); }
.x-k { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.x-sum { margin: 0 0 12px; font-weight: 900; font-size: 26px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.x-sum small { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--text-3); }
.x-rows { list-style: none; margin: 0 0 12px; padding: 0; border-top: 2px solid var(--line-2); }
.x-rows li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.x-rows li > span:first-child { color: var(--text-3); font-weight: 800; }
.x-rows li b { font-weight: 800; font-size: 15px; color: var(--text); text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-rows li small { display: block; font-family: var(--f-body); font-size: 11.5px; color: var(--text-3); }
.x-st { font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px 1px; border-radius: 2px; border: 1px solid currentColor; }
.x-st--paid { color: var(--acid); }
.x-st--accepted { color: var(--acid); }
.x-st--review { color: var(--ink); background: var(--red); border-color: var(--red); }
.x-st--work { color: var(--text); }
.x-st--fix { color: var(--red-hot); }
.x-st--next, .x-st--stop { color: var(--text-3); }
.x-note { margin: 0 0 6px; font-family: var(--f-body); font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.x-note b { color: var(--text-2); font-weight: 700; }
.x-blk { margin: 0 0 14px; }
.x-rail { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.x-rail li { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px 2px; border: 1px solid var(--line); border-radius: 2px; color: var(--text-3); }
.x-rail li.is-past { color: var(--acid); border-color: rgba(216, 255, 60, .35); }
.x-rail li.is-cur { color: var(--ink); background: var(--red); border-color: var(--red); }
.x-flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.x-flow li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: baseline; font-family: var(--f-body); font-size: 13px; color: var(--text-2); }
.x-flow li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-3); transform: translateY(-1px); }
.x-flow li b { font-family: var(--f-cond); font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.x-flow li.is-hot::before { background: var(--red); border-color: var(--red); }
.x-file { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.x-file b { color: var(--text); font-weight: 800; text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }
.x-file span { font-family: var(--f-body); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.x-msg { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.x-msg b { font-weight: 900; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.x-msg span { font-family: var(--f-body); font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-msg time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.x-msg.is-warn b { color: var(--red-hot); }
.x-flash { animation: x-flash 1.2s var(--ease-out); }
@keyframes x-flash { from { background: rgba(216, 255, 60, .18); } }

/* ── шторка ───────────────────────────────── */

.curtain {
  position: absolute; top: 0; bottom: 0; z-index: 6; width: 44px; margin-left: -22px;
  left: clamp(22px, var(--curtain), calc(100% - 22px));
  cursor: ew-resize; touch-action: none; outline: none;
}
.curtain__line { position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--red); }
.curtain__grip {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--red); color: var(--ink); font-size: 15px; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease-out), background-color .2s;
}
.curtain__r { transform: scaleX(-1); }
.curtain:hover .curtain__grip, .curtain.is-drag .curtain__grip { transform: scale(1.1); background: var(--red-hot); }
.curtain:focus-visible .curtain__grip { outline: 2px solid var(--acid); outline-offset: 3px; }
.curtain__tag {
  position: absolute; top: 6px; padding: 3px 7px 2px; border-radius: 2px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-cond); font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .3s;
}
.curtain__tag--l { right: 30px; background: var(--paper); color: var(--ink); }
.curtain__tag--r { left: 30px; background: var(--acid); color: var(--ink); }
.is-full > .curtain .curtain__tag--r, .is-back > .curtain .curtain__tag--l { opacity: 0; }
.is-full > .curtain .curtain__line, .is-back > .curtain .curtain__line { opacity: 0; }
.curtain__line { transition: opacity .3s; }

/* ── монтажный лист ───────────────────────── */

.runsheet {
  display: flex; flex-direction: column; min-height: 0; max-height: calc(clamp(660px, 82vh, 840px) + 53px);
  background: var(--sheet); color: var(--ink); border-radius: var(--r); padding: 18px 18px 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .5) inset;
  transform: rotate(.6deg);
}
.runsheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.runsheet__title { margin: 0; font-family: var(--f-cond); font-weight: 900; font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.runsheet__no { font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.runsheet__list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--paper-2) transparent; }
.runsheet__list li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line-ink); }
.runsheet__list time { font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.runsheet__list b { display: block; font-family: var(--f-cond); font-weight: 900; font-size: 17px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.runsheet__list p { margin: 3px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.runsheet__list li.is-ok b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--ink); vertical-align: .12em; }
.runsheet__list li.is-now { background: var(--red); border-color: var(--red); }
.runsheet__list li.is-now time, .runsheet__list li.is-now p { color: var(--ink); }
.runsheet__list li.is-new { animation: row-in .6s var(--ease-out); }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } }
.runsheet__foot { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }

.stage__hints { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; }
.stage__hints p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.stage__hints i { color: var(--acid); font-size: 17px; }

/* ── задача ───────────────────────────────── */

.market { padding: var(--sec) 0 0; }
.market__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px clamp(40px, 6vw, 120px); align-items: center; }
.market__copy .h2 { margin-bottom: 28px; }
.market__copy .lead { margin-bottom: 18px; }
.market__copy > p:last-child { color: var(--text-2); max-width: 38em; }
.market__specimen { position: relative; justify-self: center; width: min(320px, 100%); }
.popup95 {
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif; font-size: 13px; color: #000; background: #ECE9D8;
  border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 2px 2px 0 #000;
  transform: rotate(3deg); transition: filter .6s, opacity .6s, transform .8s var(--ease-out);
}
.popup95__bar { display: flex; justify-content: space-between; align-items: center; padding: 3px 6px; background: linear-gradient(90deg, #0A246A, #A6CAF0); color: #fff; font-weight: 700; }
.popup95__bar b { background: #ECE9D8; color: #000; width: 16px; height: 14px; display: grid; place-items: center; font-size: 12px; line-height: 1; border: 1px solid #fff; border-color: #fff #404040 #404040 #fff; }
.popup95__body { padding: 12px; text-align: center; }
.popup95__body p { margin: 0 0 8px; }
.popup95__big { font: 900 24px/1 Impact, "Arial Black", sans-serif; color: #FF0000; background: #FFFF00; padding: 6px; animation: blink95 .8s steps(1) infinite; }
@keyframes blink95 { 50% { color: #0000FF; } }
.popup95__btn { display: inline-block; margin: 4px 0 0 !important; padding: 6px 12px; background: linear-gradient(#7CFC00, #228B22); color: #fff; font-weight: 700; border-radius: 12px; text-shadow: 1px 1px 0 #000; }
.market__specimen .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 34px; opacity: 0; }
.market__specimen.is-killed .popup95 { filter: grayscale(1) contrast(.9); opacity: .45; transform: rotate(-4deg) translateY(10px); }
.market__specimen.is-killed .stamp { animation: slam .5s var(--ease-out) forwards; }
.market__specimen.is-killed .popup95__big { animation: none; }

.versus { list-style: none; margin-top: clamp(48px, 6vw, 88px); margin-bottom: 0; border-top: 3px solid var(--text); }
.versus li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px 48px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.versus s { color: var(--text-3); font-size: clamp(16px, 1.1vw + 4px, 21px); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.versus span { font-family: var(--f-wide); font-weight: 600; font-size: clamp(18px, 1.5vw + 4px, 28px); line-height: 1.18; letter-spacing: -.03em; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); margin-bottom: 0; border-top: 3px solid var(--text); }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-cond); font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 0; }
.facts dd b { display: block; font-family: var(--f-wide); font-weight: 700; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -.035em; line-height: 1.1; }
.facts dd span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* ── бренд: бумажная полоса ───────────────── */

.brand { margin-top: var(--sec); padding: var(--sec) 0; background: var(--paper); color: var(--ink); position: relative; }
.brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .53 0 0 0 0 .5 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.brand > * { position: relative; z-index: 1; }
.brand .lead { color: var(--ink-2); }
.brand__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 88px) clamp(40px, 5vw, 96px); }

.palette { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); align-self: start; }
.palette li {
  display: grid; grid-template-columns: 54px minmax(0, 120px) auto minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px 10px; border-bottom: 1px solid var(--line-ink-2);
}
.palette__sw { width: 54px; height: 54px; border-radius: var(--r); background: var(--sw); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .18); }
.palette b { font-family: var(--f-cond); font-weight: 900; font-size: clamp(22px, 1.9vw, 30px); text-transform: uppercase; letter-spacing: .005em; line-height: 1; }
.palette__hex { font-family: var(--f-cond); font-weight: 700; font-size: 16px; letter-spacing: .05em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.palette__role { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.palette li.is-now { background: var(--red); }
.palette li.is-now .palette__hex, .palette li.is-now .palette__role { color: var(--ink); }
.palette li.is-now .palette__sw { box-shadow: inset 0 0 0 2px var(--ink); }

.voices { display: grid; gap: 22px; align-content: start; }
.voices p { margin: 0; }
.voices__wide { font-family: var(--f-wide); font-weight: 800; font-size: clamp(34px, 4vw, 64px); line-height: .95; letter-spacing: -.045em; }
.voices__cond { font-family: var(--f-cond); font-weight: 900; font-size: clamp(30px, 3vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.voices__cond span { display: block; margin-top: 6px; font-weight: 700; font-size: .5em; letter-spacing: .06em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.voices__body { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.voices__sheet {
  justify-self: start; max-width: 440px; padding: 22px 24px; background: var(--sheet); border-radius: var(--r); transform: rotate(-1.4deg);
  box-shadow: 0 30px 50px -28px rgba(11, 11, 12, .55);
}
.voices__sheet p { font-family: "Times New Roman", Times, serif; font-size: 19px; line-height: 1.45; }

.props { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) minmax(0, 260px); gap: 20px clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line-ink-2); }
.props__mark img { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 34px 60px -30px rgba(11, 11, 12, .8); }
.props__mark figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.props__stamps { display: flex; flex-wrap: wrap; gap: 26px 22px; align-items: center; justify-content: center; padding: 24px 0; }
.props__stamps .stamp--acid { color: var(--ink); background: var(--acid); border-color: var(--ink); }
.props__stamps .stamp--big { font-size: clamp(42px, 4.4vw, 68px); }
.props__cap { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ── сайт ─────────────────────────────────── */

.site { padding: var(--sec) 0 0; }
.desk {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 19vw, 280px); gap: clamp(20px, 3vw, 48px); align-items: end;
  position: relative;
}
.desk::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -12%; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 80%, rgba(255, 59, 31, .2), transparent 70%);
}
.browser { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--night-1); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); }
.browser__bar { height: 38px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); font-family: var(--f-cond); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.browser__view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.browser__page { width: 100%; height: auto; will-change: transform; }
.phone { border-radius: 28px; padding: 8px; background: #000; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.phone img { width: 100%; height: auto; border-radius: 21px; }
.desk__cap { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text-3); }

.xray { margin-top: clamp(80px, 9vw, 140px); }
.xray__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 24px; padding-bottom: 16px; border-bottom: 3px solid var(--text); margin-bottom: 22px; }
.xray__title { margin: 0; font-family: var(--f-wide); font-weight: 700; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.04em; line-height: 1.05; }
.xray__frame {
  position: relative; overflow: hidden; padding-top: 30px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--night);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
  container: xray / inline-size;
}
.xray__shot { display: block; width: 100%; height: auto; }
.xray__back {
  position: absolute; inset: 30px 0 0; z-index: 2; clip-path: inset(0 0 0 var(--curtain));
  background-color: #0E0F11;
  background-image:
    linear-gradient(rgba(236, 234, 228, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 234, 228, .045) 1px, transparent 1px);
  background-size: 24px 24px;
  container: xb / inline-size;
}
.xray__frame.is-anim .xray__back { transition: clip-path .9s var(--ease-out); }
.xray__frame.is-anim .curtain { transition: left .9s var(--ease-out); }
.xb {
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  border: 1px dashed var(--line-2); border-radius: 2px; padding: .5cqi .7cqi; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: .35cqi;
  color: var(--text-2); font-size: clamp(10px, 1.05cqi, 15px); line-height: 1.3;
}
.xb b { flex: none; font-family: var(--f-cond); font-weight: 900; font-size: clamp(10px, 1.05cqi, 15px); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: .15em .45em .05em; border-radius: 2px; white-space: nowrap; }
.xb > span { min-width: 0; }
.xb em { font-style: normal; font-family: var(--f-cond); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--acid); }
.xb--line { flex-direction: row; align-items: center; gap: .9cqi; }
.xb--line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xb__ghost {
  font-family: var(--f-wide); font-weight: 800; font-size: 11.4cqi; line-height: .9; letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 234, 228, .55);
}
.xb__ghost--sm { font-size: 2.55cqi; line-height: 1; white-space: nowrap; -webkit-text-stroke: 1px rgba(236, 234, 228, .5); }
.xb--title b { background: var(--acid); }
.xb--red { border-color: var(--red); }
.xb--red b { background: var(--red); }
.xb--acid { border-color: rgba(216, 255, 60, .6); }
.xb--acid b { background: var(--acid); }
.xb--flyer { gap: .6cqi; }
.xb__table { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 2px solid var(--line-2); }
.xb__table li { display: grid; grid-template-columns: 6.5cqi minmax(0, 1fr) auto; gap: .8cqi; align-items: baseline; padding: .55cqi .3cqi; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.xb__table li span:first-child { font-family: var(--f-cond); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.xb__table li span:nth-child(2) { font-family: var(--f-cond); font-weight: 900; font-size: 1.35em; letter-spacing: .01em; text-transform: uppercase; color: var(--text); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xb__table li span:last-child { font-family: var(--f-cond); font-weight: 800; color: var(--text-2); }
.xb__table li.is-now { background: var(--red); border-color: var(--red); }
.xb__table li.is-now span { color: var(--ink) !important; }

.outputs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.outputs li { padding: 14px 16px 0 0; display: grid; gap: 4px; align-content: start; }
.outputs li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.outputs i { color: var(--red); font-size: 22px; }
.outputs b { font-family: var(--f-cond); font-weight: 900; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.outputs span { font-size: 14px; color: var(--text-2); line-height: 1.4; }

.season { margin-top: clamp(80px, 9vw, 140px); }
.season__poster {
  position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(24px, 4vw, 64px) clamp(18px, 4vw, 64px);
  text-align: center; transform: rotate(-.5deg);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -24px rgba(0, 0, 0, .7), 0 12px 24px -8px rgba(0, 0, 0, .5);
}
.season__top { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); font-family: var(--f-cond); font-weight: 900; font-size: clamp(15px, 1.4vw, 20px); letter-spacing: .06em; text-transform: uppercase; }
.season__top span:first-child { display: inline-flex; align-items: baseline; gap: 2px; }
.season__title { margin: 0 0 clamp(16px, 2vw, 28px); font-family: var(--f-wide); font-weight: 800; font-size: clamp(30px, 4.4vw, 72px); letter-spacing: -.045em; line-height: 1; }
.season__lineup { margin: 0; font-family: var(--f-cond); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: 1.12; }
.season__lineup a { text-decoration: none; border-radius: 2px; padding: 0 .12em; transition: background-color .2s, color .2s; }
.season__lineup a:hover, .season__lineup a:focus-visible { background: var(--red); color: var(--ink); outline: none; }
.season__lineup .w { white-space: nowrap; }
.season__lineup i { display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--red); margin: 0 .3em; vertical-align: .2em; }
.season__lineup .t1 { font-size: clamp(44px, 7vw, 116px); line-height: 1; }
.season__lineup .t2 { font-size: clamp(24px, 3vw, 46px); }
.season__lineup .t3 { font-size: clamp(18px, 1.9vw, 29px); color: #2A2A2C; }
.season__lineup br + .t2, .season__lineup br + .t3 { margin-top: .25em; display: inline-block; }
.season__foot { margin: clamp(18px, 2vw, 28px) 0 0; padding-top: 12px; border-top: 1px solid var(--line-ink-2); font-size: 15px; line-height: 1.45; color: var(--ink-2); min-height: 2.9em; }
.season__foot b { font-family: var(--f-cond); font-weight: 900; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.season__foot b { color: var(--ink); }

/* ── райдер ───────────────────────────────── */

.rider { padding: var(--sec) 0 0; }
.life { margin-bottom: clamp(48px, 6vw, 80px); }
.life__title { margin: 0 0 14px; font-family: var(--f-cond); font-weight: 900; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
.life__rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 3px solid var(--text); border-bottom: 1px solid var(--line-2); }
.life__rail li {
  position: relative; padding: 18px 14px 16px; font-family: var(--f-cond); font-weight: 900; font-size: clamp(18px, 1.8vw, 28px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--text-3);
  transition: background-color .4s, color .4s;
}
.life__rail li + li { border-left: 1px solid var(--line); }
.life__rail li i { font-size: .62em; margin-right: .35em; vertical-align: .16em; opacity: .75; }
.life__rail li.is-past { color: var(--acid); }
.life__rail li.is-cur { background: var(--red); color: var(--ink); }
.life__now { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }
.rider__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.rider__col { padding: 0 24px 0 0; border-top: 3px solid var(--text); }
.rider__col + .rider__col { padding-left: 24px; border-left: 1px solid var(--line); }
.rider__h { margin: 16px 0 6px; font-family: var(--f-cond); font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.rider__col ul { list-style: none; margin: 0; padding: 0; }
.rider__col li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; color: var(--text-2); }
.rider__col li:last-child { border-bottom: 0; }

/* ── цифры ────────────────────────────────── */

.numbers { padding: var(--sec) 0 0; }
.numbers .lead .tag { margin-right: 6px; }
.board { }
.board__head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 3px solid var(--text); font-family: var(--f-cond); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.board__rows { margin: 0; }
.board__rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board__rows dt { font-family: var(--f-cond); font-weight: 900; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.board__rows dt small { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.board__rows dd { margin: 0; font-family: var(--f-cond); font-weight: 900; font-size: clamp(44px, 6vw, 96px); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.board__foot { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }

/* ── финал ────────────────────────────────── */

.finale { position: relative; isolation: isolate; margin-top: var(--sec); padding: var(--sec) 0 clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 60% at 15% 100%, rgba(255, 59, 31, .3), transparent 70%); }
.finale__inner { display: grid; justify-items: start; gap: 24px; }
.finale__stamp { font-size: clamp(56px, 8vw, 128px); margin-bottom: clamp(10px, 1.6vw, 26px); }
.finale__title { margin: 0; font-family: var(--f-wide); font-weight: 800; font-size: clamp(36px, 6vw, 96px); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.finale__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.finale__tg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.finale__tg i { color: var(--red); }
.finale__tg:hover { color: var(--red-hot); }
.next { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(64px, 8vw, 120px); border-top: 3px solid var(--text); }
.next a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 22px 24px 22px 0; text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.next a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.next span { grid-column: 1; font-size: 15px; color: var(--text-3); }
.next b { grid-column: 1; font-family: var(--f-wide); font-weight: 700; font-size: clamp(26px, 3vw, 46px); letter-spacing: -.04em; line-height: 1; }
.next i { grid-column: 2; grid-row: 1 / 3; font-size: 28px; color: var(--red); transition: transform .35s var(--ease-out); }
.next a:hover i { transform: translateX(6px); }
.next a:hover b { color: var(--red-hot); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--text-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ── кабинет узкий: раскладка телефона ────── */

@container xray (max-width: 760px) {
  .curtain, .rail { display: none; }
  .xray__back { inset: 0; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
  .xb { flex: none; position: static; width: auto; height: auto; overflow: visible; padding: 10px 12px; gap: 6px; font-size: 13px; }
  .xb > span, .xb--line > span { overflow: visible; text-overflow: clip; white-space: normal; }
  .xb b { font-size: 12px; }
  .xb--line { flex-direction: column; align-items: flex-start; gap: 6px; }
  .xb__ghost { font-size: 46px; }
  .xb__ghost--sm { font-size: 18px; white-space: normal; }
  .xb__table li { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; padding: 6px 4px; }
}
@container rig (max-width: 1020px) {
  .cab-top__left { display: none; }
}
@container rig (max-width: 760px) {
  .cab {
    grid-template-columns: 1fr;
    grid-template-rows: 56px minmax(0, 1fr) 58px;
    grid-template-areas: "top" "main" "tabs";
  }
  .cab-logo { display: none; }
  .cab-top { gap: 12px; padding: 0 12px; }
  .cab-top__order { border: 0; padding: 0; }
  .cab-top__title { font-size: 18px; }
  .cab-top__meta { font-size: 12px; }
  .cab-top__right .tag { display: none; }
  .cab-stages, .cab-stage, .cab-chat { grid-area: main; border: 0; }
  .cab [data-panel] { display: none; }
  .cab [data-panel].is-on { display: flex; }
  .cab .cab-stage.is-on { display: block; }
  .x-pane[data-panel].is-on { display: block; }
  .x-pane { margin: 10px; }
  .sv { padding-top: 18px; }
  .sv__head { grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; padding-bottom: 14px; }
  .sv__no { grid-row: auto; font-size: 56px; }
  .sv__title { font-size: 26px; }
  .sv__status { grid-column: 1 / -1; }
  .sv__actions { position: static; background: none; margin: 22px 0 0; padding: 0 0 22px; }
  .sv__actions .btn { flex: 1 1 100%; }
  .sheet dl div { grid-template-columns: 96px 1fr; }
  .cab-tabs {
    grid-area: tabs; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--night);
  }
  .cab-tabs button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    background: none; border: 0; color: var(--text-3); cursor: pointer;
    font-family: var(--f-cond); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  }
  .cab-tabs i { font-size: 21px; }
  .cab-tabs button.is-on { color: var(--text); }
  .cab-tabs button.is-on i { color: var(--red); }
  .cab-badge { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--red); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
  .cab-badge[hidden] { display: none; }
  .cab-toast { bottom: 72px; }
  .curtain, .rail { display: none; }
  .cab { top: 0; }
  .cab--x { bottom: 58px; grid-template-rows: 56px minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .x-pane { grid-area: main; overflow: auto; }
  .x-top .x-cell:nth-child(n + 3) { display: none; }
}

/* ── адаптив страницы ─────────────────────── */

@media (max-width: 1180px) {
  .sh__nav { display: none; }
  .rig-wrap { grid-template-columns: 1fr; }
  .runsheet { transform: none; max-height: 420px; }
  .outputs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .outputs li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .hero__grid, .stage__intro, .brand__intro, .site__intro, .rider__intro, .numbers__intro, .market__grid, .brand__grid { grid-template-columns: 1fr; }
  .hero__act { justify-content: flex-start; }
  .stage .stage__intro { grid-template-columns: 1fr; }
  .palette { grid-row: auto; }
  .facts { grid-template-columns: 1fr; }
  .rider__grid { grid-template-columns: 1fr; gap: 32px; }
  .rider__col, .rider__col + .rider__col { padding: 0; border-left: 0; }
  .life__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .life__rail li:nth-child(4) { border-left: 0; }
  .life__rail li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .versus li { grid-template-columns: 1fr; }
  .desk { grid-template-columns: minmax(0, 1fr) 150px; }
}
@media (max-width: 760px) {
  .xray__frame { padding-top: 0; }
  #chrome { display: none; }
  .mark2d { display: block; }
  .sh { gap: 12px; }
  .sh__case { display: none; }
  .sh__cta { margin-left: auto; }
  .hero__meta span:last-child { display: none; }
  .hero__lead { font-size: 18px; }
  .rig__view { height: 640px; }
  .rig__url { display: none; }
  .rig__advance { margin-left: 0; }
  .rig__advance span { display: none; }
  .rig__advance { width: 40px; padding: 0; justify-content: center; }
  .rig__reset span { display: none; }
  .rig__reset { width: 40px; padding: 0; justify-content: center; margin-left: auto; }
  .desk { grid-template-columns: 1fr; }
  .phone { width: min(260px, 70%); justify-self: center; }
  .outputs { grid-template-columns: 1fr; }
  .outputs li, .outputs li + li { padding: 14px 0 0; border-left: 0; }
  .palette li { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .palette__sw { width: 44px; height: 44px; grid-row: span 3; }
  .palette__hex, .palette__role { grid-column: 2; }
  .props { grid-template-columns: 1fr; }
  .props__mark { max-width: 280px; }
  .next { grid-template-columns: 1fr; }
  .next a + a { padding-left: 0; border-left: 0; }
  .board__rows > div { grid-template-columns: 1fr; gap: 6px; }
  .board__rows dd { text-align: left; }
}
@media (max-width: 640px) {
  .btn { --h: 54px; font-size: 19px; }
  .hero__act .btn, .finale__act .btn { width: 100%; }
  .facts > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .facts dt { font-size: 14px; }
  .life__rail { grid-template-columns: 1fr 1fr; }
  .life__rail li:nth-child(odd) { border-left: 0; }
  .life__rail li:nth-child(4) { border-left: 1px solid var(--line); }
  .life__rail li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .season__top { flex-direction: column; align-items: center; gap: 4px; }
}
@media (max-width: 380px) {
  .sh__studio { font-size: 16px; }
  .sh__cta { padding: 0 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
  .js [data-slam] { opacity: 1; }
  .market__specimen .stamp { opacity: 1; }
}

.next img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 16px; outline: 1px solid var(--line); outline-offset: -1px; transition: opacity .25s; }
.next a:hover img { opacity: .88; }
.next a:has(img) i { grid-row: 2 / 4; }
