/* Russo One — шрифт интерфейса игры (Jovanny Lemonad, SIL Open Font License 1.1) */
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/russo-cyr.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/russo-lat.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/russo-latext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}

:root {
  --bg: #0b0b0d;
  --bg-2: #131316;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #f4f1ec;
  --mute: #a19ea6;
  --acc: #ff5a1f;
  --acc-2: #ff8a3d;
  --display: 'Russo One', 'Arial Black', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* тени — тёплые, как ключевой свет сцены сверху справа */
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 12px 24px -12px rgba(255, 90, 31, 0.12);
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- сцена за контентом ---------- */
.backdrop, .stage { position: fixed; inset: 0; pointer-events: none; }
.stage { z-index: 1; }
.backdrop {
  z-index: 0;
  background:
    radial-gradient(42% 36% at 50% 62%, rgba(255, 90, 31, 0.22), transparent 70%),
    radial-gradient(70% 55% at 50% 70%, rgba(255, 138, 61, 0.07), transparent 75%),
    linear-gradient(180deg, #0b0b0d 0%, #111014 55%, #0b0b0d 100%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* виньетка над городом: текст читается поверх улиц */
.stage::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.62) 0%, rgba(11, 11, 13, 0.25) 30%, rgba(11, 11, 13, 0) 55%, rgba(11, 11, 13, 0.8) 100%),
    linear-gradient(90deg, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0) 42%);
}
.no-webgl .stage::after { display: none; }
.no-webgl .stage canvas { display: none; }

/* ---------- шапка ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad);
}
.brand { font-family: var(--display); font-size: 15px; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); }
.brand b { color: var(--acc); font-weight: 400; }
.top nav { display: flex; align-items: center; gap: 10px; }
.lang {
  font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-decoration: none;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute);
}
.lang:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 400 17px/1 var(--display); letter-spacing: 0.01em; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-play {
  background: linear-gradient(180deg, var(--acc-2), var(--acc));
  color: #140804;
  box-shadow: 0 14px 34px -12px rgba(255, 90, 31, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-play::after {
  content: ''; width: 0; height: 0;
  border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(255, 90, 31, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--ink); background: rgba(11, 11, 13, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn:focus-visible, .lang:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
/* верх по центру (~110 px) занимает «чёлка» платформы — контент hero начинается ниже */
main { position: relative; }
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; padding: 128px var(--pad) 40px;
}
.hero-title {
  position: relative; z-index: 2; align-self: start; text-align: center;
  text-shadow: 0 6px 40px rgba(11, 11, 13, 0.45);
  font-size: clamp(56px, 11.5vw, 190px); line-height: 0.88;
  color: var(--ink);
  margin-top: clamp(4px, 2vh, 30px);
}
.hero-title span { display: block; }
.hero-title span:first-child { background: linear-gradient(180deg, #fff 30%, #c4beb7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title span + span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6); }
.eyebrow {
  position: relative; z-index: 2;
  font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--acc-2);
  text-align: center; margin-bottom: 18px;
}
.hero-foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.hook { max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); color: #dcd8d2; margin-bottom: 22px; }
.facts { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); }
.facts b { font: 400 clamp(26px, 3vw, 40px)/1 var(--display); color: var(--ink); margin-bottom: 6px; }

.no-webgl .hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.5) 45%, rgba(11, 11, 13, 0.96)), url(shots/ru_moscow_basil.webp) center / cover no-repeat;
}
html[lang='en'].no-webgl .hero::before {
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.5) 45%, rgba(11, 11, 13, 0.96)), url(shots/en_moscow_basil.webp) center / cover no-repeat;
}

/* ---------- скролл-история ---------- */
.story { position: relative; z-index: 2; }
.step {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 0 var(--pad);
}
.step-in { max-width: 470px; }
.step-num { font: 400 14px/1 var(--display); color: var(--acc); letter-spacing: 0.1em; display: block; margin-bottom: 18px; }
.step h2 { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 20px; }
.step p { color: #cfcac4; font-size: 18px; }
.step p + p { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: #d8d3cd; background: rgba(11, 11, 13, 0.4); }
.chips li.hot { border-color: rgba(255, 90, 31, 0.5); color: var(--acc-2); }
.metric { display: flex; gap: 22px; margin-top: 26px; }
.metric div { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); }
.metric b { font: 400 34px/1 var(--display); color: var(--ink); }
.metric b small { font-size: 16px; color: var(--mute); margin-left: 3px; }

/* ---------- секции на плотном фоне ---------- */
.solid { position: relative; z-index: 2; background: var(--bg); padding: clamp(80px, 12vw, 160px) var(--pad); }
.solid::before { content: ''; position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(36px, 5vw, 76px); max-width: 12em; }
.sec-head p { max-width: 26em; color: var(--mute); }
.kicker { font: 600 12px/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--acc-2); margin-bottom: 18px; display: block; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; padding: 30px 26px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, #17161a, #111013);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.card::after { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: 0.8; }
.card .ico { width: 44px; height: 44px; margin-bottom: 26px; color: var(--acc-2); }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: #bdb8b2; font-size: 16px; }
.controls { margin-top: 26px; color: var(--mute); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.shots figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.shots figure:hover img { transform: scale(1.025); }
.shots figcaption { padding: 14px 18px 16px; font-size: 14px; color: var(--mute); }
.shots figcaption b { color: var(--ink); font-weight: 600; }

.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.live-grid a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.live-grid img, .live-grid video { width: 100%; height: 100%; object-fit: cover; }
.live-grid .tag { position: absolute; left: 10px; top: 10px; font: 600 11px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: rgba(11, 11, 13, 0.7); }
.live-grid .tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 1px; }

/* ---------- финал ---------- */
.final {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: 120px var(--pad) clamp(56px, 9vh, 110px);
}
.final h2 { font-size: clamp(40px, 7vw, 110px); margin-bottom: 18px; }
.final p { color: #d3cec8; max-width: 30em; margin: 0 auto 30px; font-size: 18px; }
.final .actions { justify-content: center; }

/* ---------- появление ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .shots img { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 16px var(--pad); }
  .top .btn-sm { display: none; }
  .hero { padding-top: 150px; padding-bottom: 28px; }
  .eyebrow { display: none; }
  .hero-title { font-size: clamp(50px, 16vw, 90px); }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-foot .actions .btn { flex: 1 1 auto; }
  .facts { justify-content: space-between; }
  .step { align-items: flex-end; padding-bottom: 8vh; }
  .step-in { background: rgba(11, 11, 13, 0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
  .step p { font-size: 16px; }
  .cards, .shots { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}
