:root { --bg: #0b0c0e; --line: rgba(255,255,255,.14); --text: #f2efe9; --muted: #b4b8c0; --red: #ff3b30; --accent: #ff6a2b; --head: "Unbounded", "Manrope", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Manrope", system-ui, sans-serif; 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, min(3.5vw, 6.4vh), 54px); max-width: 19ch; }
h2 { font-size: clamp(26px, min(3vw, 5.4vh), 44px); }
.wrap { position: relative; z-index: 2; width: min(1180px, 100% - 32px); margin: 0 auto; }
.nb { white-space: nowrap; }
.kicker { font: 700 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: clamp(16px, 2.3vh, 19px); color: var(--muted); margin: 14px 0 20px; max-width: 32em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 18px 28px; background: var(--accent); color: #111; font: 800 15px/1.1 "Manrope", sans-serif; letter-spacing: .04em; text-transform: uppercase; text-align: center; text-decoration: none; transition: background .2s; }
.btn:hover { background: #ff8a55; }
.btn:focus-visible, a:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 3px; }
.btn-xl { padding: 24px 44px; font-size: 18px; }

/* Рамка видоискателя и REC */
.corners i { position: fixed; z-index: 30; width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.65); pointer-events: none; }
.corners i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 20px 44px; pointer-events: none; }
.logo { font: 800 15px var(--head); letter-spacing: .04em; }
.logo span { font-weight: 600; color: var(--muted); }
.rec { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--red); font: 700 12px var(--mono); letter-spacing: .08em; }
.rec b { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
.count { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@keyframes blink { 50% { opacity: 0; } }

/* Экраны */
.screen { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; scroll-snap-align: start; padding: 64px 0 36px; }
.bg { position: absolute; inset: 0; z-index: -1; background: #111317; }
.bg img, .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.bg video { opacity: 0; transition: opacity .8s; }
.bg video.on { opacity: 1; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,14,.96) 0%, rgba(11,12,14,.84) 38%, rgba(11,12,14,.1) 68%, rgba(11,12,14,.25) 100%); }

/* Экран 1: в разметке стена, ролик стены, сверху неподвижный слой с людьми, чтобы лицо не плыло */
.stats { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 12px 30px; max-width: 620px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.stats li { max-width: 160px; }
.stats b { display: block; font: 600 clamp(20px, 3vh, 26px) var(--head); color: var(--text); margin-bottom: 3px; white-space: nowrap; }

/* Экран 2 */
.s2 h2 { margin-bottom: clamp(12px, 2.4vh, 22px); }
.plan { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.4vh, 12px); max-width: 720px; }
.plan li { counter-increment: p; position: relative; padding: clamp(9px, 1.5vh, 14px) 14px clamp(9px, 1.5vh, 14px) 46px; background: rgba(16,18,22,.82); border: 1px solid var(--line); }
.plan li::before { content: counter(p); position: absolute; left: 15px; top: clamp(9px, 1.5vh, 14px); font: 600 18px var(--head); color: var(--accent); }
.plan h3 { font-size: 14px; line-height: 1.25; }
.plan p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin-top: clamp(10px, 2vh, 18px); }
.who p { margin: 0; padding-left: 12px; border-left: 3px solid var(--accent); font-size: 13px; line-height: 1.35; color: var(--muted); }
.who b { display: block; font-size: 15px; font-weight: 800; color: var(--text); }

/* Экран 3 */
.s3 { flex-direction: column; justify-content: center; text-align: center; padding-bottom: 0; }
.s3 .bg img, .s3 .bg video { object-position: 50% 40%; }
.s3 .bg::after { background: radial-gradient(70% 60% at 50% 55%, rgba(11,12,14,.72), rgba(11,12,14,.28) 75%), linear-gradient(0deg, rgba(11,12,14,.92), rgba(11,12,14,0) 32%); }
.s3 .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 16vh; }
.when { font: 700 clamp(15px, 2.4vh, 19px) var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 26px; }
.foot { position: relative; z-index: 2; width: min(1180px, 100% - 72px); padding: 14px 0 22px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.foot p { margin: 0 0 10px; }
.gora-project-credit a { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.gora-project-credit a:hover { border-color: var(--accent); }

/* Окно с формой ГетКурса. Скрыто через visibility, чтобы виджет заранее посчитал свою высоту */
.gc-modal { position: fixed; inset: 0; z-index: 50; display: flex; padding: 24px 16px; background: rgba(5,6,8,.78); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.gc-modal.on { visibility: visible; opacity: 1; transition: opacity .2s; }
.gc-box { position: relative; width: min(480px, 100%); margin: auto; padding: 44px 0 8px; background: #17171f; border: 1px solid var(--line); }
.gc-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; background: none; border: 0; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.gc-x:hover { color: var(--accent); }
.gc-x:focus-visible { outline: 2px solid #8fd3ff; outline-offset: -2px; }
.gc-form { min-height: 200px; }
.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .top { position: absolute; padding: 16px 24px 30px; background: linear-gradient(rgba(11,12,14,.9), rgba(11,12,14,0)); }
  .screen { display: block; min-height: 0; padding: 0 0 44px; }
  .bg { position: relative; inset: auto; height: 62vw; min-height: 230px; }
  .bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,12,14,0) 45%); }
  .bg img, .bg video { object-position: 72% 50%; }
  .wrap { margin-top: -18px; }
  .btn { width: 100%; }
  .plan { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .s3 { display: flex; min-height: 100svh; padding-bottom: 0; position: relative; }
  .s3 .bg { position: absolute; inset: 0; height: auto; }
  .s3 .bg::after { background: radial-gradient(90% 60% at 50% 55%, rgba(11,12,14,.78), rgba(11,12,14,.35) 75%), linear-gradient(0deg, rgba(11,12,14,.95), rgba(11,12,14,0) 40%); }
  .s3 .wrap { margin-top: 0; padding-top: 22vh; }
  .btn-xl { padding: 22px 18px; font-size: 16px; }
  .foot { width: calc(100% - 40px); padding-bottom: 34px; }
}
@media (max-width: 560px) {
  .nb { white-space: normal; }
  h1 { font-size: 28px; max-width: none; }
  .stats { gap: 10px 20px; }
  .stats li { flex: 1 1 28%; max-width: none; }
  .stats b { font-size: 18px; }
  .top { gap: 10px; padding: 16px 22px; }
  .logo { font-size: 13px; white-space: nowrap; }
  .rec, .count { font-size: 10px; white-space: nowrap; }
  .s2 { padding-bottom: 22px; }
  .s2 .bg { height: 52vw; min-height: 190px; }
  .plan { gap: 6px; }
  .plan li { padding: 9px 12px 9px 40px; }
  .plan li::before { left: 13px; top: 8px; font-size: 16px; }
  .plan h3 { font-size: 13px; }
  .plan p { display: none; }
  .who { gap: 8px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rec b { animation: none; } html { scroll-behavior: auto; } }
