:root {
  --bg: #0b0c0e;
  --panel: rgba(18, 20, 24, .78);
  --line: rgba(255, 255, 255, .12);
  --text: #f2efe9;
  --muted: #a9aeb7;
  --red: #ff3b30;
  --accent: #ff6a2b;
  --a: #8fd3ff;
  --font: "Manrope", system-ui, sans-serif;
  --head: "Unbounded", "Manrope", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(30px, 4.4vw, 60px); max-width: 15ch; }
h2 { font-size: clamp(26px, 3.4vw, 46px); max-width: 20ch; margin-bottom: 22px; }
h3 { font-size: 18px; }
.wrap { position: relative; z-index: 2; width: min(1180px, 100% - 32px); margin: 0 auto; }

/* Кнопки, плоские */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 26px; background: var(--accent); color: #111; font: 800 15px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #ff8a55; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 11px 16px; font-size: 13px; }
.btn-xl { padding: 22px 40px; font-size: 18px; }

/* Шапка */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px 28px; background: linear-gradient(#0b0c0ee6, #0b0c0e00); }
.logo { font: 800 16px var(--head); text-decoration: none; letter-spacing: .04em; }
.logo span { font-weight: 400; color: var(--muted); }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--text); }

/* Сцены */
.scene { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 110px 0 90px; overflow: hidden; isolation: isolate; }
.scene .bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 40%, #2a2522 0%, #121315 60%, #0b0c0e 100%); }
.scene .bg img, .scene .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.scene .bg video { opacity: 0; transition: opacity .8s; }
.scene .bg video.on { opacity: 1; }
.scene .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,14,.94) 0%, rgba(11,12,14,.78) 38%, rgba(11,12,14,.15) 70%, rgba(11,12,14,.35) 100%), linear-gradient(0deg, rgba(11,12,14,.85), rgba(11,12,14,0) 30%); }
.kicker { font: 700 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); margin: 18px 0 26px; max-width: 34ch; }
.card { background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 22px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 560px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }

/* Первый экран */
.hero h1 { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, max-content); gap: 30px; margin: 0 0 28px; }
.stats b { display: block; font: 600 26px var(--head); }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dlg { margin-top: 24px; }

/* Диалоги как субтитры */
.dlg { display: grid; gap: 10px; max-width: 600px; margin: 0 0 24px; }
.line { margin: 0; padding: 12px 16px; background: rgba(0,0,0,.55); border-left: 3px solid var(--accent); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.line.a { border-left-color: var(--a); }
.line b { display: block; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.line.a b { color: var(--a); }
.line.in { opacity: 1; transform: none; }
.dlg.big .line { font-size: 24px; }

/* Видоискатель */
.vf { position: fixed; inset: 12px; z-index: 30; pointer-events: none; font: 600 12px var(--mono); color: #fff; letter-spacing: .08em; }
.vf-c { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.7); }
.vf-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-top { position: absolute; top: 62px; left: 40px; right: 40px; display: flex; gap: 22px; align-items: center; }
.vf-bottom { position: absolute; bottom: 14px; left: 40px; right: 40px; display: flex; justify-content: space-between; opacity: .85; }
.rec { display: flex; align-items: center; gap: 7px; color: var(--red); }
.rec b { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
.vf-meta { opacity: .7; }
.bat { margin-left: auto; width: 30px; height: 14px; border: 2px solid #fff; position: relative; }
.bat::after { content: ""; position: absolute; right: -5px; top: 3px; width: 3px; height: 4px; background: #fff; }
.bat i { position: absolute; inset: 2px; right: auto; width: 80%; background: #7dff9a; transition: width .3s, background .3s; }
@keyframes blink { 50% { opacity: 0; } }

/* Хлопушка, как настоящая: палка на шарнире, нижняя планка, грифельная доска с мелом */
.clap { position: fixed; left: 50%; top: 50%; z-index: 50; width: 380px; margin: -150px 0 0 -190px; opacity: 0; pointer-events: none; transform: translateY(40px) rotate(-6deg) scale(.9); filter: drop-shadow(0 24px 40px rgba(0,0,0,.65)); }
.clap.go { animation: clapIn 1.25s cubic-bezier(.2, .8, .2, 1) forwards; }
.clap-arm, .clap-stick { height: 34px; position: relative; border-radius: 3px 3px 2px 2px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.clap-arm { background: repeating-linear-gradient(118deg, #141414 0 26px, #ecebe6 26px 52px); transform-origin: 14px 100%; transform: rotate(-26deg); z-index: 2; }
.clap-arm i { position: absolute; left: 4px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5f5f5, #8a8a8a 55%, #3a3a3a); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.clap-stick { margin-top: 2px; background: repeating-linear-gradient(62deg, #141414 0 26px, #ecebe6 26px 52px); }
.clap.go .clap-arm { animation: clapSnap 1.25s ease forwards; }
.clap-slate { margin-top: 2px; padding: 10px 14px 12px; border-radius: 2px 2px 6px 6px; background: radial-gradient(120% 90% at 30% 20%, #2b2d2c, #171818 70%), #1a1b1b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 40px rgba(255,255,255,.04); color: #f1efe8; }
.cs-row { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px solid rgba(241,239,232,.55); padding: 6px 2px 4px; }
.cs-row small, .cs-3 small { font: 700 9px var(--font); letter-spacing: .14em; opacity: .75; min-width: 62px; }
.cs-row b { font: 700 25px/1 "Caveat", cursive; letter-spacing: .02em; text-shadow: 0 0 1px rgba(255,255,255,.4); }
.cs-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; padding: 0; }
.cs-3 > div { padding: 6px 8px 4px; border-left: 1.5px solid rgba(241,239,232,.55); display: flex; flex-direction: column; gap: 2px; }
.cs-3 > div:first-child { border-left: 0; padding-left: 2px; }
.cs-3 b { font-size: 34px; }
.cs-loc { font: 700 22px/1.1 "Caveat", cursive; color: #ffb38a; padding: 8px 2px 0; }
@keyframes clapIn { 0% { opacity: 0; transform: translateY(60px) rotate(-8deg) scale(.88); } 16% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); } 40% { transform: translateY(0) rotate(-3deg) scale(1); } 44% { transform: translateY(3px) rotate(-2deg) scale(1); } 75% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); } 100% { opacity: 0; transform: translate(80px, -30px) rotate(6deg) scale(.95); } }
@keyframes clapSnap { 0%, 30% { transform: rotate(-26deg); } 40% { transform: rotate(1.5deg); } 44%, 100% { transform: rotate(0); } }
@media (max-width: 560px) { .clap { width: 300px; margin: -120px 0 0 -150px; } .cs-row b { font-size: 21px; } .cs-3 b { font-size: 28px; } }

/* Калькулятор */
.calc { max-width: 560px; }
.calc label { display: flex; justify-content: space-between; font-weight: 700; }
.calc output { font: 600 22px var(--head); color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 12px 0 18px; }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-res b { display: block; font: 600 34px var(--head); }
.calc-res span { font-size: 14px; color: var(--muted); }

/* Счетчики, карточки */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; }
.counters b { display: block; font: 600 30px var(--head); color: var(--accent); }
.counters span { color: var(--muted); font-size: 14px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; }
.who-grid p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; }
.items .card { padding: 18px; font-weight: 600; }
.items b { display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 6px; }

/* Глубина */
.depth { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 680px; border-left: 2px dashed rgba(143, 211, 255, .45); }
.depth li { display: flex; gap: 18px; padding: 10px 0 10px 18px; position: relative; }
.depth li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px rgba(143,211,255,.2); }
.depth span { font: 700 13px var(--mono); color: var(--a); min-width: 52px; padding-top: 2px; }
.depth p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.deep .bg::after { background: linear-gradient(90deg, rgba(4,20,32,.95) 0%, rgba(4,20,32,.75) 45%, rgba(4,20,32,.2) 100%); }

/* Студия */
.studio { max-width: 720px; }
.studio-head { font-weight: 800; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.badge { display: inline-block; background: var(--accent); color: #111; font: 800 11px var(--mono); letter-spacing: .12em; padding: 5px 9px; }
.pipe { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pipe li { font-size: 13px; padding: 10px; border: 1px solid var(--line); color: var(--muted); display: flex; gap: 8px; align-items: center; transition: all .3s; }
.pipe li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.pipe li.on { color: var(--text); border-color: var(--accent); }
.pipe li.on i { background: var(--accent); border-color: var(--accent); }
.typer { min-height: 150px; margin: 0 0 14px; padding: 14px; background: #050607; border: 1px solid var(--line); font: 500 13px/1.6 var(--mono); color: #b9f5c7; white-space: pre-wrap; }

/* Кейсы */
.game-hint { color: var(--muted); margin: -6px 0 16px; }
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.case .thumb { aspect-ratio: 16/9; background: #1b1d21; overflow: hidden; margin-bottom: 6px; border: 4px solid #111; box-shadow: 0 0 0 1px #333; }
.case .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-txt { display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(135deg, #3a1b12, #0f1012); }
.thumb-txt span { font: 800 22px var(--head); color: #fff; letter-spacing: .08em; }
.thumb-txt small { color: var(--muted); font-size: 12px; }
.case h3 { font-size: 15px; }
.case p { margin: 0; color: var(--muted); font-size: 13px; }
.case input { margin: 8px 0 0; }
.case output { font: 600 18px var(--head); }
.verdict { min-height: 44px; font-size: 14px; }
.verdict b { display: block; font: 600 24px var(--head); color: var(--accent); }

/* Спикеры */
.speakers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; }
.role { color: var(--muted); margin: 6px 0 0; }

/* Тарифы */
.prices .bg::after { background: rgba(11,12,14,.82); }
.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; }
.tariff { display: flex; flex-direction: column; padding: 28px; }
.tariff h3 { font-size: 26px; }
.tariff .price { font: 600 40px var(--head); margin: 14px 0 0; }
.tariff .inst { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.tariff .ticks { margin-bottom: 24px; flex: 1; }
.tariff.pro { border-color: var(--accent); }
.tariff.pro .badge { align-self: flex-start; margin-bottom: 12px; }
.cmp { width: 100%; max-width: 900px; margin-top: 22px; border-collapse: collapse; background: var(--panel); font-size: 15px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 110px; }
.cmp td:not(:first-child) { color: var(--accent); font-weight: 800; }

/* Гэг */
.gag { text-align: center; }
.gag .wrap { display: flex; flex-direction: column; align-items: center; }
.gag .dlg { text-align: left; }
.gag .bg::after { background: rgba(11,12,14,.6); }

/* FAQ и футер */
.faq { padding: 90px 0; }
.faq details { max-width: 820px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.foot { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 6px; }
.gora-project-credit { margin-top: 18px; }
.gora-project-credit a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; }
.gora-project-credit a:hover { border-color: var(--accent); }

/* Оплата */
.pay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s, visibility .2s; }
.pay.on { visibility: visible; opacity: 1; pointer-events: auto; }
.pay-pane:not(.on) { height: 0 !important; overflow: hidden; visibility: hidden; }
.pay-box.card { width: min(560px, 100%); max-height: 90vh; overflow: auto; position: relative; background: #15171b; color: var(--text); }
.pay-box h3 { padding-right: 40px; }
.pay-x { position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.pay-x:hover { color: var(--accent); }

.start-tag { display: inline-block; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent); font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.t-btns { display: flex; flex-direction: column; gap: 10px; }
.t-btns .btn { width: 100%; text-align: center; line-height: 1.2; }
.bron-t { max-width: 900px; margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.bron-t b { color: var(--text); }
@media (max-width: 900px) {
  .top nav { display: none; }
  .top { padding: 12px 16px; gap: 12px; }
  .top .btn-sm { margin-left: auto; }
  /* на телефоне кадр сверху целиком, текст под ним */
  .scene { display: block; min-height: 0; padding: 0 0 64px; }
  .scene .bg { position: relative; inset: auto; z-index: 0; height: 64vw; min-height: 230px; }
  .scene .bg img, .scene .bg video { object-position: 70% 50%; }
  .scene .bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 45%); }
  .scene .wrap { margin-top: -28px; }
  .hero .bg { height: 56vw; margin-top: 56px; }
  .deep .bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(4,20,32,0) 45%); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .counters, .who-grid, .items, .speakers, .tariffs, .reel, .pipe { grid-template-columns: 1fr 1fr; }
  .vf-top { top: 56px; left: 20px; right: 20px; gap: 12px; }
  .vf-bottom { left: 20px; right: 20px; }
  .vf-meta, .vf-iso { display: none; }
  .counters b { font-size: 22px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 17px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .who-grid, .items, .speakers, .tariffs, .reel, .calc-res { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .stats b { font-size: 22px; }
  .tariff .price { font-size: 32px; }
  .dlg.big .line { font-size: 19px; }
  .vf { inset: 6px; }
  .cmp { font-size: 13px; }
  .cmp td:not(:first-child), .cmp th:not(:first-child) { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .line { opacity: 1; transform: none; }
}
