/* ==========================================================================
   ОСТРОВ ПОЮЩЕЙ СТАЛИ: ИСТОКИ — PROMO STYLESHEET
   Design System: AAA Steampunk Dark Fantasy / Lineage 2 DNA
   100% Zero Emojis / Compact Inter-Block Spacing / Luxury Class Dossier
   ========================================================================== */

:root {
  /* Базовая палитра бездны и поверхностей */
  --void: #030407;
  --ink: #060911;
  --surface: #0a0e1a;
  --surface-2: #101626;
  --panel: rgba(10, 14, 25, 0.88);
  --panel-card: rgba(13, 18, 32, 0.92);
  --panel-border: rgba(245, 195, 106, 0.18);
  --panel-light: rgba(20, 28, 48, 0.65);

  /* Палитра металлов (Полированная латунь, античное золото, медь, сталь) */
  --gold: #f5c36a;
  --gold-bright: #ffe8ab;
  --gold-light: #fff5db;
  --gold-2: #d49a3d;
  --gold-deep: #8a5818;
  --bronze: #c48b2c;
  --brass: #e6ab4e;
  --steel: #8e9bb0;
  --steel-bright: #d1dced;

  /* Акценты магии, пара и технологий */
  --cyan: #3dd6f5;
  --cyan-bright: #83ebff;
  --cyan-glow: rgba(61, 214, 245, 0.45);
  --yt: #ff2a3d;
  --yt-glow: rgba(255, 42, 61, 0.55);
  --ember: #ff5722;
  --ember-glow: rgba(255, 87, 34, 0.45);

  /* Разделители, границы и свечения */
  --line: rgba(245, 195, 106, 0.2);
  --line-bright: #f5c36a;
  --line-dim: rgba(255, 255, 255, 0.08);

  /* Текстовые стили */
  --text: #f0f4f9;
  --text-bright: #ffffff;
  --muted: #9bb0c9;
  --dim: #64748b;

  /* Шрифты */
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Габариты и анимация */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 1240px;
}

/* ==========================================================================
   RESET & БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--void);
  overflow-x: hidden;
  max-width: 100%;
}

/* Автоматический отступ для фиксированной шапки */
section[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(245, 195, 106, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 25%, rgba(61, 214, 245, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 55%, rgba(255, 87, 34, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 70% 35% at 50% 90%, rgba(245, 195, 106, 0.06) 0%, transparent 60%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

button, a {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

::selection {
  background: var(--gold-2);
  color: #000;
}

/* Доступность: ссылка перехода */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 9999;
  background: var(--gold);
  color: #000;
  padding: 10px 18px;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.skip-link:focus {
  left: 16px;
}

/* ==========================================================================
   ФОНОВЫЕ СЛОИ (CANVAS, GRAIN)
   ========================================================================== */
#steam-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Контейнер обертки */
.wrap {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 4;
  min-width: 0;
}

/* ==========================================================================
   ТИПОГРАФИКА И ЗАГОЛОВКИ
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(245, 195, 106, 0.08);
  border: 1px solid rgba(245, 195, 106, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: dot-glow 2s ease-in-out infinite alternate;
}
@keyframes dot-glow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
}

.eyebrow.gold {
  color: var(--gold-bright);
  border-color: rgba(245, 195, 106, 0.4);
  background: rgba(245, 195, 106, 0.09);
  box-shadow: 0 0 20px rgba(245, 195, 106, 0.15);
}
.eyebrow.cyan {
  color: var(--cyan-bright);
  border-color: rgba(61, 214, 245, 0.4);
  background: rgba(61, 214, 245, 0.09);
  box-shadow: 0 0 20px rgba(61, 214, 245, 0.15);
}
.eyebrow.yt {
  color: #ff949f;
  border-color: rgba(255, 42, 61, 0.4);
  background: rgba(255, 42, 61, 0.09);
  box-shadow: 0 0 20px rgba(255, 42, 61, 0.2);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 34px;
  position: relative;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 12px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #fff0cc 30%, #f7cd7e 65%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 25px rgba(245, 195, 106, 0.28));
}
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

/* ==========================================================================
   КНОПКИ (.btn)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 10px;
}
.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

/* Золотая кнопка */
.btn-gold {
  background: linear-gradient(180deg, #fff3cb 0%, #f7ce7f 35%, #d49a3d 70%, #9a6015 100%);
  color: #120902;
  border: 1px solid #fff5db;
  box-shadow:
    0 10px 30px rgba(245, 195, 106, 0.45),
    0 0 20px rgba(245, 195, 106, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(25deg);
  animation: btn-shine-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine-sweep {
  0%, 70% { left: -60%; }
  100% { left: 160%; }
}
.btn-gold:hover {
  box-shadow:
    0 14px 44px rgba(245, 195, 106, 0.7),
    0 0 30px rgba(245, 195, 106, 0.4),
    inset 0 1px 0 #fff;
  color: #000;
}

/* Контурная стеклянная кнопка */
.btn-ghost {
  background: rgba(245, 195, 106, 0.08);
  color: var(--gold-bright);
  border: 1px solid var(--line-bright);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover {
  background: rgba(245, 195, 106, 0.2);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 8px 30px rgba(245, 195, 106, 0.35);
}

/* YouTube кнопка */
.btn-yt {
  background: linear-gradient(180deg, rgba(255, 60, 80, 0.35) 0%, rgba(200, 20, 35, 0.45) 100%);
  color: #fff;
  border: 1px solid rgba(255, 60, 80, 0.65);
  box-shadow:
    0 4px 20px rgba(255, 42, 61, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-yt:hover {
  background: linear-gradient(180deg, rgba(255, 60, 80, 0.65) 0%, rgba(220, 20, 35, 0.8) 100%);
  border-color: #ff8591;
  box-shadow:
    0 8px 32px rgba(255, 42, 61, 0.6),
    0 0 25px rgba(255, 42, 61, 0.4);
}

/* ==========================================================================
   ШАПКА (.site-header)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(3, 4, 7, 0.72) 0%, rgba(3, 4, 7, 0.18) 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(3, 4, 7, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

/* Логотип */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--gold-2);
  box-shadow: 0 0 22px rgba(245, 195, 106, 0.45);
  transition: transform 0.3s var(--bounce);
}
.brand:hover .brand-mark {
  transform: scale(1.08) rotate(2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f7cd7e 50%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width 0.25s var(--ease);
}
.nav a:hover {
  color: var(--gold);
}
.nav a:hover::after {
  width: 100%;
}

/* Действия в шапке */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: 0.25s var(--ease);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 195, 106, 0.12);
  transform: translateY(-2px);
}
.icon-btn.active {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: rgba(61, 214, 245, 0.15);
  box-shadow: 0 0 20px rgba(61, 214, 245, 0.4);
}
.icon-btn.active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1px solid var(--cyan);
  animation: audio-ring-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes audio-ring-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.28); opacity: 0; }
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
}
.burger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
}

/* ==========================================================================
   HERO СЕКЦИЯ (.hero)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 0 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 48%;
  transform: scale(1.05);
  animation: hero-subtle-drift 32s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.06);
}
@keyframes hero-subtle-drift {
  0% { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.4%, -1.2%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 7, 0.82) 0%, rgba(3, 4, 7, 0.55) 28%, rgba(3, 4, 7, 0.16) 54%, rgba(3, 4, 7, 0.08) 72%, rgba(3, 4, 7, 0.38) 100%),
    linear-gradient(180deg, rgba(3, 4, 7, 0.48) 0%, transparent 22%, transparent 58%, rgba(3, 4, 7, 0.78) 100%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  z-index: 5;
  padding: 28px 0 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-rule {
  width: 92px;
  height: 2px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-2), transparent);
  box-shadow: 0 0 18px rgba(245, 195, 106, 0.55);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.04;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.95));
}

/* Слово "ИСТОКИ" — яркое полированное золото */
.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #fff9e6 0%, #ffe38f 30%, #f5c36a 60%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  letter-spacing: 0.14em;
  margin-top: 6px;
  filter: drop-shadow(0 0 35px rgba(245, 195, 106, 0.65));
}

.lede {
  font-size: 1.12rem;
  color: #d1dced;
  max-width: 680px;
  margin-bottom: 30px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  line-height: 1.68;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* Нижний HUD героя — единая стеклянная планка */
.hero-dock {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 8px 0 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 4, 7, 0.35) 40%, rgba(3, 4, 7, 0.55) 100%);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(245, 195, 106, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 12, 22, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-stats div {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(245, 195, 106, 0.14);
  border-radius: 0;
  padding: 16px 20px 15px;
  transition: background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.hero-stats div:last-child {
  border-right: 0;
}
.hero-stats div::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.hero-stats div:hover {
  background: rgba(245, 195, 106, 0.08);
}
.hero-stats dt {
  font-family: var(--mono);
  color: var(--gold-bright);
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hero-stats dt::before {
  content: "◆";
  font-size: 0.6rem;
  color: var(--gold);
}
.hero-stats div:nth-child(4) dt::before {
  color: var(--cyan);
}
.hero-stats dd {
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ==========================================================================
   БЕГУЩАЯ ЛЕНТА (.reel)
   ========================================================================== */
.reel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  height: 200px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #05070d;
  position: relative;
  z-index: 6;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.reel-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  animation: reel 50s linear infinite;
  will-change: transform;
}
.reel:hover .reel-track {
  animation-play-state: paused;
}
@keyframes reel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reel-track img {
  width: 356px;
  height: 200px;
  object-fit: cover;
  flex: 0 0 356px;
  filter: saturate(1.08) brightness(0.92);
  transition: transform 0.5s var(--ease), filter 0.5s;
  cursor: pointer;
  border-right: 1px solid rgba(245, 195, 106, 0.15);
}
.reel-track img:hover {
  transform: scale(1.06);
  filter: saturate(1.25) brightness(1.1);
}

/* ==========================================================================
   МАНИФЕСТ (.manifest) — КОМПАКТНЫЙ ОТСТУП
   ========================================================================== */
.manifest {
  padding: 56px 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(245, 195, 106, 0.08), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(61, 214, 245, 0.03), transparent 50%);
}
.manifest-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 46px;
  align-items: center;
}

.manifest-art {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(245, 195, 106, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(245, 195, 106, 0.2);
  background: #000;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
}
.manifest-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  pointer-events: none;
}
.manifest-art:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 75px rgba(0, 0, 0, 0.8),
    0 0 55px rgba(245, 195, 106, 0.3);
}
.manifest-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.manifest-art:hover img {
  transform: scale(1.04);
}

.manifest-copy {
  background: linear-gradient(145deg, rgba(14, 19, 34, 0.75), rgba(8, 11, 20, 0.92));
  border: 1px solid rgba(245, 195, 106, 0.22);
  border-top: 2px solid var(--gold);
  border-radius: 20px;
  padding: 34px 38px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}
.manifest-copy::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.6;
}
.manifest-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
  line-height: 1.22;
  color: #fff;
}
.manifest-copy p {
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 1.04rem;
  line-height: 1.74;
}
.manifest-copy a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(245, 195, 106, 0.12);
  border: 1px solid rgba(245, 195, 106, 0.35);
  transition: all 0.2s;
  display: inline-block;
}
.manifest-copy a:hover {
  color: #fff;
  background: rgba(245, 195, 106, 0.28);
  border-color: #fff;
}

/* ==========================================================================
   СТОЛПЫ (.pillars) — КОМПАКТНЫЙ ОТСТУП & БЕЗ ЭМОДЗИ
   ========================================================================== */
.pillars {
  padding: 54px 0 60px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Карточка столпа геймплея */
.card {
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.82), rgba(7, 10, 18, 0.95));
  border: 1px solid rgba(245, 195, 106, 0.16);
  border-top: 2px solid var(--gold);
  border-radius: 18px;
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* Фоновый водяной знак номера */
.card::after {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s;
}
.pillar-grid .card:nth-child(1)::after { content: "01"; }
.pillar-grid .card:nth-child(2)::after { content: "02"; }
.pillar-grid .card:nth-child(3)::after { content: "03"; }
.pillar-grid .card:nth-child(4)::after { content: "04"; }
.pillar-grid .card:nth-child(5)::after { content: "05"; }
.pillar-grid .card:nth-child(6)::after { content: "06"; }

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(245, 195, 106, 0.22);
}
.card:hover::before {
  opacity: 1;
}
.card:hover::after {
  opacity: 0.18;
  transform: scale(1.06);
}

.card-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.pillar-grid .card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: #fff;
}
.pillar-grid .card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ==========================================================================
   МИР (.world) — СЦЕНА ЛОКАЦИЙ
   ========================================================================== */
.world {
  padding: 72px 0 64px;
}
.world-stage {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(245, 195, 106, 0.28);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(245, 195, 106, 0.12);
  background: #05070d;
  aspect-ratio: 16 / 9;
}
.world-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s var(--ease), transform 0.8s var(--ease);
}
.world-stage:hover img {
  transform: scale(1.03);
}
.world-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 32px 26px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 4, 7, 0.88) 70%);
  pointer-events: none;
}
.world-caption h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fff1cc 50%, #f7cd7e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.world-caption p:last-child {
  color: #c5d4e8;
  max-width: 640px;
  font-size: 0.98rem;
}
.world-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.world-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition: 0.25s var(--ease);
}
.world-chip:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(245, 195, 106, 0.14);
}
.world-chip.on {
  border-color: var(--gold);
  color: #120902;
  background: linear-gradient(180deg, #fff3cb 0%, #f7ce7f 40%, #d49a3d 100%);
  box-shadow: 0 8px 22px rgba(245, 195, 106, 0.35);
}

/* ==========================================================================
   КЛАССЫ (.classes) — AAA CINEMATIC CHARACTER DOSSIER
   ========================================================================== */
.classes {
  padding: 50px 0 64px;
}
.class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.class-card {
  position: relative;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #060912;
  border: 1px solid rgba(245, 195, 106, 0.28);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.class-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow:
    0 32px 85px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(245, 195, 106, 0.3);
}

/* Декоративные угловые скобы стимпанк-досье */
.class-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 4;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.class-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  z-index: 4;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.class-card:hover::before, .class-card:hover::after {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 12px var(--gold);
}

/* Полноэкранный кинематографичный арт персонажа */
.class-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #000;
}
.class-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.2) 0%, rgba(4, 6, 12, 0.4) 40%, rgba(4, 6, 12, 0.94) 75%, rgba(4, 6, 12, 0.99) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 195, 106, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.class-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: brightness(0.92) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.class-card:hover .class-visual img {
  transform: scale(1.06);
  filter: brightness(1.02) contrast(1.1);
}

/* Содержимое досье персонажа */
.class-body {
  position: relative;
  z-index: 3;
  padding: 34px 32px 30px;
}

.class-body .card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(245, 195, 106, 0.14);
  border: 1px solid rgba(245, 195, 106, 0.38);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.class-body .card-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.class-body h3 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fff1cc 35%, #f7cd7e 70%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9));
}

.class-body p {
  color: #c5d4e8;
  margin-bottom: 22px;
  font-size: 0.98rem;
  line-height: 1.64;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* Специализации — тактические стимпанк-руны */
.class-body ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.class-body li {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(245, 195, 106, 0.24);
  border-radius: 6px;
  color: var(--steel-bright);
  background: rgba(13, 19, 34, 0.78);
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.class-body li::before {
  content: "◆";
  font-size: 0.52rem;
  color: var(--gold);
}
.class-body li:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(245, 195, 106, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 195, 106, 0.25);
}

/* ==========================================================================
   ДЕВЛОГ И YOUTUBE ТЕАТР (.devlog) — КОМПАКТНЫЙ ОТСТУП
   ========================================================================== */
.devlog {
  padding: 50px 0;
  background: linear-gradient(180deg, var(--void), #0b0f19 50%, var(--void));
}

.theater {
  background: var(--panel);
  border: 1px solid rgba(255, 42, 61, 0.45);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow:
    0 25px 75px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(255, 42, 61, 0.25);
  position: relative;
}

.theater-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff949f;
  font-weight: 700;
  margin-bottom: 4px;
}
.live-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2a3d;
  box-shadow: 0 0 10px #ff2a3d;
  animation: dot-glow 1.4s infinite;
}
.theater-head h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.theater-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #12080a;
  border: 1px solid rgba(255, 42, 61, 0.4);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(255, 42, 61, 0.2);
}
.theater-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
}
.yt-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-poster.hidden {
  display: none;
}
.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  border-radius: 50%;
  background: rgba(255, 42, 61, 0.95);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 42, 61, 0.75);
  pointer-events: none;
  transition: transform 0.3s var(--ease), background 0.3s;
  animation: play-btn-pulse 2.2s ease-in-out infinite;
}
@keyframes play-btn-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 42, 61, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75), 0 0 55px rgba(255, 42, 61, 0.95); }
}
.yt-play::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 25px;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
}
.yt-poster:hover .yt-play {
  transform: scale(1.15);
  background: #ff0d22;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.75),
    0 0 55px rgba(255, 42, 61, 0.95);
}

/* Сетка эпизодов */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ep-card {
  text-align: left;
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.75), rgba(8, 12, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s var(--ease);
}
.ep-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
.ep-card.active {
  border-color: var(--yt);
  background: rgba(255, 42, 61, 0.12);
  box-shadow: 0 10px 32px rgba(255, 42, 61, 0.4);
}
.ep-thumb {
  aspect-ratio: 16 / 9;
  background: #1a1012;
  overflow: hidden;
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.ep-card:hover .ep-thumb img {
  transform: scale(1.06);
}
.ep-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 12px 14px 2px;
  font-weight: 700;
}
.ep-name {
  padding: 2px 14px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Дорожная карта — КОМПАКТНЫЙ ОТСТУП & БЕЗ ЭМОДЗИ */
.roadmap {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 18px;
  padding: 28px;
  background: rgba(8, 11, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}
.roadmap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.roadmap-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.roadmap-head h3 { font-size: 1.35rem; }
.roadmap-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yt);
  background: rgba(255, 42, 61, 0.12);
  border: 1px solid rgba(255, 42, 61, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yt);
  box-shadow: 0 0 8px var(--yt);
  animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}
.roadmap-count { font-family: var(--mono); color: var(--gold-bright); font-size: 0.95rem; }
.roadmap-count strong { font-size: 1.6rem; color: var(--yt); }

.progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.progress-fill {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #ff2a3d,
    #ff2a3d 12px,
    #f5c36a 12px,
    #f5c36a 24px
  );
  background-size: 40px 100%;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 42, 61, 0.7);
  animation: progress-stripe-move 1.5s linear infinite;
}
@keyframes progress-stripe-move {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.miles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mile:nth-child(1)::before {
  content: "ЭТАП 01";
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
.mile:nth-child(2)::before {
  content: "ЭТАП 02";
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.mile:nth-child(3)::before {
  content: "ЭТАП 03";
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.mile:nth-child(4)::before {
  content: "ЭТАП 04";
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.mile.on {
  border-color: var(--gold);
  background: rgba(245, 195, 106, 0.14);
  box-shadow:
    0 8px 24px rgba(245, 195, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.mile h4 {
  font-size: 1rem;
  color: #fff;
  margin: 0;
}
.mile.on h4 {
  color: var(--gold-bright);
}

/* ==========================================================================
   ФАНКИТ (.fankit) — КОМПАКТНЫЙ ОТСТУП & БЕЗ ЭМОДЗИ
   ========================================================================== */
.fankit {
  padding: 50px 0 50px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}
.filter {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  transition: 0.25s var(--ease);
  background: rgba(255, 255, 255, 0.03);
}
.filter.on, .filter:hover {
  border-color: var(--gold);
  color: #fff;
  background: rgba(245, 195, 106, 0.18);
  box-shadow: 0 4px 20px rgba(245, 195, 106, 0.3);
}

.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.poster {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #080b12;
  transition: 0.3s var(--ease);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.poster:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(245, 195, 106, 0.18);
}

.poster-hit {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.poster-hit::after {
  content: "Полноэкранный просмотр";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 195, 106, 0.4);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.poster:hover .poster-hit::after {
  opacity: 1;
  transform: translateY(0);
}

.poster-hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.poster:hover .poster-hit img {
  transform: scale(1.06);
}

.poster-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.poster-bar h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: #fff;
}
.poster-bar p {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}

/* ==========================================================================
   ФИНАЛЬНЫЙ БЛОК (.finale) — КОМПАКТНЫЙ ОТСТУП
   ========================================================================== */
.finale {
  position: relative;
  padding: 72px 0 80px;
  text-align: center;
  overflow: hidden;
}
.finale-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.finale-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.05) brightness(0.55);
}
.finale-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.82) 0%, rgba(3, 4, 7, 0.42) 40%, rgba(3, 4, 7, 0.78) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(3, 4, 7, 0.55) 100%);
}
.finale-box {
  border: 1px solid var(--gold-2);
  border-top: 2px solid var(--gold-bright);
  border-radius: 22px;
  padding: 52px 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 42, 61, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 195, 106, 0.14), transparent 60%),
    rgba(8, 11, 19, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 30px 85px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(245, 195, 106, 0.2);
  position: relative;
  overflow: hidden;
}
.finale-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 20px #fff;
}
.finale-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 16px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #fff0cc 30%, #f7cd7e 60%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(245, 195, 106, 0.3));
}
.finale-box p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.7;
}
.finale-box p strong {
  color: var(--gold-bright);
}
.finale-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   ПОДВАЛ (.site-footer)
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(245, 195, 106, 0.18);
  padding: 38px 0 46px;
  color: var(--dim);
  font-size: 0.92rem;
  background: #030407;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer strong {
  color: #fff;
  font-family: var(--display);
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7cd7e 70%, #c48b2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-footer ul {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--gold);
}

/* ==========================================================================
   LIGHTBOX & TOASTS
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 16px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 65px rgba(245, 195, 106, 0.3);
}
.lightbox p {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.lightbox-x {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-x:hover {
  color: var(--yt);
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 3000;
  background: rgba(10, 14, 24, 0.96);
  border: 1px solid var(--gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: 0.3s var(--ease);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE (АДАПТИВНОСТЬ)
   ========================================================================== */
@media (max-width: 1024px) {
  .manifest-grid, .class-grid, .pillar-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(1),
  .hero-stats div:nth-child(2) { border-bottom: 1px solid rgba(245, 195, 106, 0.14); }
  .ep-grid { grid-template-columns: 1fr 1fr; }
  .miles { grid-template-columns: 1fr 1fr; }
  .world-stage { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {
  .wrap { width: 100%; margin: 0; padding: 0 18px; }
  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: #05070d;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 18px;
    z-index: 1001;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; width: 100%; }
  .burger { display: flex; }
  .header-actions .btn { display: none; }
  .manifest-grid, .class-grid, .pillar-grid, .poster-grid, .ep-grid { grid-template-columns: 1fr; }
  .class-card { min-height: 480px; }
  .hero { min-height: auto; padding: 92px 0 0; }
  .hero-inner { max-width: 100%; padding: 18px 0 8px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 4, 7, 0.55) 0%, rgba(3, 4, 7, 0.42) 28%, rgba(3, 4, 7, 0.78) 100%),
      linear-gradient(90deg, rgba(3, 4, 7, 0.55) 0%, rgba(3, 4, 7, 0.22) 100%);
  }
  .hero-media img { object-position: 58% 40%; }
  .hero-cta { align-self: stretch; width: 100%; }
  .eyebrow { letter-spacing: 0.12em; font-size: 0.68rem; }
  .lede { font-size: 1rem; }
  .hero-cta .btn-lg { width: 100%; }
  .reel { height: 160px; }
  .reel-track img { width: 280px; height: 160px; flex-basis: 280px; }
  .world-stage { aspect-ratio: 4 / 3; }
  .world-caption { padding: 36px 18px 18px; }
  .finale { padding: 48px 0 56px; }
  .finale-box { padding: 42px 20px; }
}

@media (max-width: 560px) {
  .hero-stats, .miles { grid-template-columns: 1fr; }
  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(245, 195, 106, 0.14);
  }
  .hero-stats div:last-child { border-bottom: 0; }
  .poster-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-track { animation: none; }
  .btn:hover, .poster:hover, .card:hover, .class-card:hover { transform: none; }
}
