/* 99 ночей в лесу — промо. Тёмная ночная база, единственный акцент — огонь. */
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant"; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-latin-700-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-cyrillic-wght-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: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #06090b;
  --bg2: #0b1013;
  --text: #ece4d8;
  --muted: #9a9387;
  --line: rgba(236, 228, 216, 0.1);
  --ember: #ff7a2e;
  --ember-hi: #ffb266;
  --serif: "Cormorant", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Тени — тёплые снизу, как от костра в сцене. */
  --glow: 0 10px 40px -8px rgba(255, 110, 30, 0.55), 0 2px 0 rgba(255, 200, 150, 0.25) inset;
  --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 -1px 0 rgba(255, 160, 90, 0.08) inset;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ember); color: #000; padding: 8px 14px; border-radius: 8px; }

/* ---------- сцена ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 64% 62%, rgba(255, 110, 40, 0.28), transparent 70%), url("img/poster.webp") 64% 60% / cover no-repeat, var(--bg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.scene-ready .stage canvas { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 11, 0.88) 0%, rgba(6, 9, 11, 0.55) 34%, rgba(6, 9, 11, 0) 60%),
              linear-gradient(0deg, rgba(6, 9, 11, 0.7) 0%, rgba(6, 9, 11, 0) 30%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }

main, .top { position: relative; z-index: 2; }

/* ---------- шапка ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); transition: background 0.4s, backdrop-filter 0.4s; }
.top.solid { background: rgba(6, 9, 11, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand b { color: var(--ember); font-size: 30px; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a, .lang span { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.lang span { background: rgba(255, 122, 46, 0.18); color: var(--ember-hi); }
.nav .play-mini { color: #1a0c04; background: var(--ember); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .play-mini:hover { color: #1a0c04; background: var(--ember-hi); }

/* ---------- кнопки ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 17px; border-radius: 999px; padding: 17px 32px; transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s; }
.btn-play { background: linear-gradient(180deg, #ff8d43, #e2561a); color: #1a0a02; box-shadow: var(--glow); }
.btn-play:hover, .btn-play:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(255, 120, 40, 0.75), 0 2px 0 rgba(255, 220, 170, 0.3) inset; }
.btn-play svg { width: 14px; height: 14px; }
.btn-ghost { color: var(--text); border: 1px solid rgba(236, 228, 216, 0.25); background: rgba(6, 9, 11, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ember-hi); color: var(--ember-hi); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 90px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-hi); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 22px 0 18px; line-height: 0.86; display: flex; flex-direction: column; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.7); }
.hero h1 .n { font-size: clamp(120px, 19vw, 260px); color: var(--ember); letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffc27a 10%, #ff7a2e 55%, #b83b10 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 40px rgba(255, 100, 30, 0.35)); }
.hero h1 .w { font-size: clamp(44px, 6.4vw, 92px); font-weight: 600; }
.hook { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); color: #f5dcc0; max-width: 24ch; line-height: 1.2; }
.lede { margin: 16px 0 34px; max-width: 34rem; color: #c9c0b3; font-size: clamp(16px, 1.3vw, 18px); }
.scroll-hint { position: absolute; bottom: 30px; left: var(--pad); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--ember), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- скролл-история ---------- */
.story { position: relative; }
.step { min-height: 110vh; display: flex; align-items: center; padding: 0 var(--pad); }
.step-card { max-width: 30rem; }
.step .num { font-family: var(--serif); font-size: 18px; color: var(--ember); letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.step h2 { font-size: clamp(40px, 5vw, 72px); line-height: 0.98; margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.step p { color: #d2c9bc; font-size: clamp(17px, 1.35vw, 19px); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }

/* ---------- плотные секции поверх сцены ---------- */
.solid-sec { position: relative; background: var(--bg); padding: clamp(80px, 12vh, 140px) var(--pad); }
.solid-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.sec-head { max-width: 46rem; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-head h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1; margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: 18px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(56px, 8vh, 90px); }
.facts div { padding: 26px 20px 24px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); line-height: 1; color: var(--text); }
.facts span { color: var(--muted); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: linear-gradient(180deg, #10161a, #0a0e11); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px 30px; box-shadow: var(--card-shadow); overflow: hidden; transition: transform 0.35s ease, border-color 0.35s; }
.card::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -60px; height: 90px; background: radial-gradient(closest-side, rgba(255, 110, 30, 0.35), transparent); opacity: 0; transition: opacity 0.4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 150, 80, 0.3); }
.card:hover::after { opacity: 1; }
.card svg { width: 38px; height: 38px; color: var(--ember); margin-bottom: 26px; }
.card h3 { font-size: 30px; line-height: 1.05; margin-bottom: 12px; }
.card p { color: #b3ab9f; font-size: 16px; }
.note { margin-top: 34px; color: var(--muted); font-size: 15px; }
.note b { color: var(--text); font-weight: 600; }

/* ---------- скриншоты ---------- */
.shots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.shot { margin: 0; grid-column: span 6; }
.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; }
.shot .frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-shadow); aspect-ratio: 16 / 9; background: #0d1215; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- живые кадры ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.live-grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #0d1215; border: 1px solid var(--line); position: relative; }
.live-grid img, .live-grid video { width: 100%; height: 100%; object-fit: cover; }
.live-grid .vid::after { content: ""; position: absolute; right: 12px; top: 12px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px 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(--ember); margin-right: 4px; box-shadow: 0 0 0 0 rgba(255, 122, 46, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 122, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 46, 0); } }

/* ---------- финал ---------- */
.final { min-height: 110vh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 22vh var(--pad) 9vh; position: relative; }
.final-head { max-width: 60rem; }
.final::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30vh; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.final h2 { font-size: clamp(46px, 6.5vw, 100px); line-height: 0.95; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.85); }
.final p { margin: 18px 0 0; color: #d7cdbf; font-size: 19px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9); }
.final .btns { justify-content: center; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav .page-link { display: none; }
  .stage { background-position: 50% 60%, 50% 60%, 0 0; }
  .stage::after { background: linear-gradient(0deg, rgba(6, 9, 11, 0.95) 0%, rgba(6, 9, 11, 0.6) 45%, rgba(6, 9, 11, 0.1) 75%, rgba(6, 9, 11, 0.5) 100%); }
  .hero { justify-content: flex-end; padding-bottom: 80px; }
  .scroll-hint { display: none; }
  .step { align-items: flex-end; padding-bottom: 14vh; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .shot, .shot:nth-child(n) { grid-column: span 12; }
  .btn { padding: 15px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
