/* ============================================================================
   ЗВУК С НУЛЯ — production stylesheet.
   Self-hosted fonts, no inline style anywhere: the server serves a strict CSP
   (script-src 'self'; style-src 'self'; font-src 'self') and every site here
   is expected to live inside it.
   ========================================================================== */

/* --- fonts: variable files, one per family and subset ---------------------- */
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos-cyrillic.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/golos-latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-cyrillic.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-latin.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* --- tokens ---------------------------------------------------------------- */
:root {
  --bg: #f4f3ef;
  --fg: #121214;
  --muted: #6c6c72;
  --line: #dedcd5;
  --accent: #6a15ff;
  --accent-fg: #fff;
  --dark: #0d0d10;
  --dark-fg: #f4f3ef;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.muted { color: var(--muted); }

/* --- header ---------------------------------------------------------------- */
.top {
  position: fixed; z-index: 60; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; mix-blend-mode: difference; color: #fff;
}
.brand {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.brand:hover { border-bottom-color: currentColor; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.snd {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid currentColor; background: transparent;
  padding: 8px 15px; border-radius: 100px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; opacity: .8; transition: opacity .25s;
}
.snd:hover { opacity: 1; }
.snd i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.is-playing .snd i { background: var(--accent); animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --- full-bleed frames ------------------------------------------------------ */
.stage {
  position: relative; min-height: 92vh; padding: 72px 20px;
  display: grid; place-items: center; overflow: hidden; background: var(--dark);
}
.stage--mid { min-height: 70vh; }
.stage--end { min-height: 76vh; }
.stage__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.55) contrast(1.02); transition: filter .8s ease;
}
.stage.lit .stage__bg { filter: sepia(0) contrast(1.02); }
.stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.1) 40%, rgba(0,0,0,.44));
}
.stage__t { position: relative; z-index: 2; color: #fff; text-align: center; }
.stage__t h1, .stage__h {
  font-family: var(--display); font-weight: 700; margin: 0;
  font-size: clamp(42px, min(11.5vw, 19vh), 168px); line-height: .9;
  letter-spacing: -.045em; text-transform: uppercase; word-spacing: .12em;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.stage__h { font-size: clamp(34px, 7vw, 96px); }
.stage__h--sm { font-size: clamp(30px, 6vw, 84px); }
.stage__t h1 span { display: inline-block; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s; }
.stage__t p {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; margin: 18px 0 0; opacity: .96;
  text-shadow: 0 1px 20px rgba(0,0,0,.7), 0 0 4px rgba(0,0,0,.4);
}
.stage__t .pitch { text-transform: none; letter-spacing: .01em; font-size: 15px; font-family: var(--body); }
.stage__t .facts { margin-top: 10px; letter-spacing: .14em; opacity: .78; }

/* --- panels riding over the frames ------------------------------------------ */
.panel {
  position: relative; z-index: 5;
  width: min(1080px, calc(100% - 40px)); margin: -14vh auto 0;
  background: var(--bg); padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
@media (min-width: 900px) { .panel { padding: 64px; } }
.panel--tight { margin-top: -9vh; }
.panel + .panel { margin-top: 0; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow--accent { color: var(--accent); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.9vw, 54px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.h2--light { color: var(--dark-fg); }
.lede { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.6; max-width: 60ch; margin: 0 0 24px; color: var(--muted); }
.fineprint { margin: 22px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row--center { justify-content: center; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 2px;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .22s, color .22s, border-color .22s, transform .22s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn--accent:hover { filter: brightness(.92); transform: translateY(-2px); }
.btn--light { background: #fff; border-color: #fff; color: #111; }

/* --- programme list --------------------------------------------------------- */
.list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.item { background: var(--bg); padding: 20px 4px; display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: baseline; }
.item b { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 400; }
.item h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.02em; }
.item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* --- works: the dark act with the manual carousel --------------------------- */
.act { background: var(--dark); color: var(--dark-fg); padding: 76px 24px; position: relative; z-index: 4; }
@media (min-width: 900px) { .act { padding: 130px 24px; } }
.act__head { text-align: center; margin-bottom: 36px; }

.deck { position: relative; }
.orbit { perspective: 1000px; height: clamp(260px, 44vh, 400px); position: relative; overflow: clip; }
/* driven by the arrows, not by a timer: an auto-spinning ring sweeps cards
   under the cursor and starts tracks nobody asked for */
.ring { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.16, 1, .3, 1); }

.card {
  position: absolute; left: 50%; top: 50%; width: 230px; height: 172px;
  margin: -86px 0 0 -115px; backface-visibility: hidden; overflow: hidden;
  border-radius: 2px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
  cursor: pointer; opacity: .38; filter: saturate(.5);
  transition: opacity .5s, filter .5s;
}
.card.is-front { opacity: 1; filter: none; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .3s; }
.card.is-playing::after { opacity: 1; }
.card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 9px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  font-family: var(--mono); font-size: 12px; color: #fff;
}
.card__play {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  display: grid; place-items: center; color: #fff; font-size: 11px;
  background: transparent; opacity: 0;
  transition: opacity .3s, border-color .3s, color .3s;
}
.card.is-front .card__play { opacity: .8; }
.card.is-front:hover .card__play { opacity: 1; }
.card.is-playing .card__play { opacity: 1; border-color: var(--accent); color: var(--accent); }

.step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  border: 0; background: transparent; padding: 14px;
  color: rgba(255,255,255,.4); font-size: 20px; line-height: 1;
  transition: color .25s, transform .25s;
}
.step:hover { color: var(--dark-fg); }
.step:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.step--l { left: calc(50% - clamp(150px, 20vw, 250px)); }
.step--r { right: calc(50% - clamp(150px, 20vw, 250px)); }
.step--l:hover { transform: translateY(-50%) translateX(-3px); }
.step--r:hover { transform: translateY(-50%) translateX(3px); }

/* --- people ---------------------------------------------------------------- */
.people { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(3, 1fr); } }
.people img { width: 100%; height: clamp(260px, 30vw, 360px); object-fit: cover; }
.people h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin: 14px 0 2px; }
.people p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.people .role { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* --- reviews: the quote is the content, the person is the footnote ---------- */
.quotes { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.quote { background: var(--bg); padding: 34px 4px; display: grid; gap: 22px; }
@media (min-width: 820px) { .quote { grid-template-columns: 1fr auto; align-items: start; gap: 46px; } }
.quote blockquote {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(19px, 2.1vw, 27px); line-height: 1.32; letter-spacing: -.02em;
  text-wrap: balance;
}
.quote blockquote em { font-style: normal; color: var(--accent); }
.was { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.who b { display: block; font-size: 15px; font-weight: 600; }
.who span span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 3px; }

/* --- tariffs ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan--best { border-color: var(--accent); }
.plan h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.plan .sum { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.03em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; }
.plan li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.plan li::before { content: "—"; position: absolute; left: 0; opacity: .5; }
.plan li.on { color: var(--fg); }
.plan li.on::before { content: "✓"; color: var(--accent); opacity: 1; }

/* --- footer and bottom navigation ------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 38px 24px 140px; }
.foot__row { width: min(1280px, 100%); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--fg); border-bottom-color: var(--fg); }

.bottomnav {
  position: fixed; z-index: 55; inset: auto 0 0 0;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  overflow-x: auto;
}
.bottomnav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.bottomnav a:hover, .bottomnav a.on { color: var(--fg); }

/* --- touch and short screens ------------------------------------------------ */
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .snd { min-height: 44px; }
  .step { padding: 18px; }
  .bottomnav a { padding-block: 8px; }
  .brand { padding-block: 8px; display: inline-block; }
}
@media (max-height: 520px) {
  .stage { min-height: 100vh; padding-block: 56px; }
  .stage__t h1 { font-size: clamp(32px, min(11vw, 17vh), 190px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
