/* «Европа: подо льдом» — промо-сайт.
   Тёмная ледяная база, один акцент — янтарь Юпитера. Две гарнитуры:
   Unbounded (заголовки) и Manrope (текст), обе файлами рядом. */

@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('fonts/unbounded-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('fonts/unbounded-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #05070a;
  --bg-2: #0a0e13;
  --panel: #0d1218;
  --ink: #eaf0f4;
  --muted: #8b97a3;
  --line: rgba(220, 235, 245, 0.09);
  --accent: #ff9a4d;
  --accent-ink: #1a0d03;
  --glow: rgba(255, 154, 77, 0.35);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  /* Тени согласованы со светом сцены: ключевой свет справа сверху, тень влево вниз. */
  --shadow: -18px 28px 60px -20px rgba(0, 0, 0, 0.75), -2px 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-warm: -10px 18px 50px -12px rgba(255, 140, 60, 0.35);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3D-слой ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* Постер, пока сцена не проснулась, и навсегда — если WebGL нет. */
  background:
    radial-gradient(60% 55% at 62% 42%, rgba(255, 154, 77, 0.10), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgba(120, 170, 200, 0.12), transparent 70%),
    linear-gradient(180deg, #030407 0%, #070a0f 60%, #0b1016 100%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.stage.ready canvas { opacity: 1; }
.stage .poster {
  position: absolute; inset: 0; background: url('img/shot-ice.webp') center / cover no-repeat;
  opacity: 0; transition: opacity 0.8s ease;
}
.no-webgl .stage .poster { opacity: 0.55; }
.stage.hidden canvas { visibility: hidden; }
/* Проход сквозь лёд: белёсая вспышка, пока камера внутри толщи. */
.stage .veil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(80% 80% at 50% 50%, #d9f3ff 0%, #7fb9cf 55%, #1f4e5e 100%); }

/* ---------- шапка ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.85), rgba(5, 7, 10, 0));
}
.brand { font: 500 14px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 999px; color: var(--muted); transition: color 0.2s; }
.top nav a:hover { color: var(--ink); }
.top nav .lang { border: 1px solid var(--line); color: var(--ink); }
.top nav .play-mini { background: var(--accent); color: var(--accent-ink); }
.top nav .play-mini:hover { color: var(--accent-ink); filter: brightness(1.08); }

/* ---------- кнопки ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 600 17px/1 var(--text); padding: 20px 30px; border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s, background 0.25s;
}
.btn-play { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-warm), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-play:hover { transform: translateY(-2px); box-shadow: -12px 22px 60px -10px rgba(255, 140, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-play svg { width: 14px; height: 14px; }
.btn-ghost { color: var(--ink); border: 1px solid rgba(234, 240, 244, 0.22); background: rgba(5, 7, 10, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- общая сетка ---------- */
main { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.kicker { font: 600 13px/1.4 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h2 { font: 500 clamp(30px, 4.4vw, 60px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance; }
h3 { font: 500 22px/1.25 var(--display); letter-spacing: -0.01em; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c9d3db; max-width: 34em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(48px, 9vh, 110px);
}
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 4, 7, 0.7) 0%, rgba(3, 4, 7, 0.35) 38%, rgba(3, 4, 7, 0) 62%), linear-gradient(0deg, rgba(3, 4, 7, 0.55), rgba(3, 4, 7, 0) 40%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 {
  font: 500 clamp(44px, 8.6vw, 132px)/0.95 var(--display); letter-spacing: -0.035em;
  margin: 0 0 26px; max-width: 9.5em; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 34px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9); }
.hero .meta { margin-top: 26px; font-size: 14px; color: var(--muted); }
.scroll-cue { position: absolute; right: var(--pad); bottom: clamp(48px, 9vh, 110px); font-size: 13px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ''; width: 1px; height: 64px; background: linear-gradient(var(--muted), transparent); }

/* ---------- спуск (скролл-история) ---------- */
.descent { position: relative; }
.gauge {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  pointer-events: none; z-index: 2;
}
.gauge .rail { position: absolute; right: calc(var(--pad) - 4px); top: 22vh; bottom: 22vh; width: 1px; background: var(--line); }
.gauge .fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.gauge .depth { position: absolute; right: calc(var(--pad) + 14px); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--display); color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }
.gauge .depth b { color: var(--ink); font-weight: 500; }
.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.step .wrap { width: 100%; }
.step .card {
  max-width: 460px; padding: 34px 34px 26px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(14, 19, 26, 0.82), rgba(8, 11, 15, 0.72));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.step:nth-of-type(even) .card { margin-left: auto; margin-right: 48px; }
.step .num { font: 500 13px/1 var(--display); color: var(--accent); letter-spacing: 0.1em; margin-bottom: 18px; display: block; }
.step h2 { font-size: clamp(26px, 3vw, 40px); }
.step p { color: #c3cdd6; }
.step p:last-child { margin-bottom: 0; }
.js .step .card { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .step .card.in { opacity: 1; transform: none; }

/* ---------- плотные секции (перекрывают 3D) ---------- */
.solid { position: relative; z-index: 3; background: var(--bg); padding: clamp(90px, 13vh, 150px) 0; }
.solid::before { content: ''; position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(180deg, rgba(5, 7, 10, 0), var(--bg)); pointer-events: none; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 56px; max-width: 820px; }

/* механики */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mech {
  position: relative; padding: 30px 26px 28px; border-radius: 20px; min-height: 340px;
  background: linear-gradient(170deg, #111820, #0a0f14 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.mech::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0.35; transition: opacity 0.4s; }
.mech:hover::after { opacity: 0.8; }
.mech .ico { width: 44px; height: 44px; color: var(--accent); margin-bottom: 30px; }
.mech p { color: #aeb9c3; font-size: 16px; margin: 0; }
.mech .tag { margin-top: auto; padding-top: 24px; font: 500 12px/1.4 var(--display); color: var(--muted); letter-spacing: 0.06em; }

/* скриншоты */
.shots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; font-size: 15px; color: #d6dee5; background: linear-gradient(180deg, transparent, rgba(3, 5, 8, 0.9)); }
.shot figcaption b { display: block; font: 500 16px/1.3 var(--display); color: var(--ink); margin-bottom: 4px; }
.shot:nth-child(1) { grid-column: span 7; }
.shot:nth-child(2) { grid-column: span 5; }
.shot:nth-child(3) { grid-column: span 5; }
.shot:nth-child(4) { grid-column: span 7; }

/* живые кадры */
.live[hidden] { display: none; }
.live { padding-top: 0; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.live-grid a { display: block; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 16 / 10; position: relative; }
.live-grid img, .live-grid video { width: 100%; height: 100%; object-fit: cover; }
.live-grid .vid::after { content: ''; position: absolute; left: 14px; bottom: 14px; width: 0; height: 0; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8)); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 154, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 154, 77, 0); } }

/* финал */
.final { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; padding: 140px 0; }
.final::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 45%, rgba(3, 4, 7, 0.72), rgba(3, 4, 7, 0) 75%); }
.final .wrap { position: relative; }
.final .wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(38px, 6.4vw, 96px); line-height: 1; max-width: 12em; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.7); }
.final .lead { margin: 0 auto 36px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9); }
.final .actions { justify-content: center; }
.facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.facts li { font-size: 14px; color: #c3cdd6; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 7, 10, 0.55); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mech { min-height: 280px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 14px 18px; }
  .top nav .page-link { display: none; }
  .brand { font-size: 12px; }
  .hero { align-items: flex-end; }
  .scroll-cue { display: none; }
  .btn { padding: 18px 24px; font-size: 16px; }
  .step { align-items: flex-end; padding-bottom: 12vh; }
  .step .card, .step:nth-of-type(even) .card { margin: 0; padding: 26px 22px 20px; max-width: none; }
  .gauge .depth { display: none; }
  .cards { grid-template-columns: 1fr; }
  .mech { min-height: 0; }
  .shots { grid-template-columns: 1fr; }
  .shot:nth-child(n) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .step .card { opacity: 1; transform: none; }
}
.no-webgl .gauge { display: none; }
