/* AERN landing — стиль лаунчера: тёмный + золото + bordo */

:root {
  --bg-deep: #0c0a08;
  --bg-card: rgba(20, 18, 16, 0.82);
  --glass: rgba(12, 10, 8, 0.55);
  --gold: #e8c868;
  --gold-bright: #ffd070;
  --gold-text: #f0b850;
  --fire: #e85a28;
  --bordo-top: #8c1818;
  --bordo-bot: #6b1010;
  --bordo-dark: #2a0e0e;
  --text: #eef1f6;
  --text-dim: #a8a098;
  --border-gold: rgba(232, 200, 104, 0.45);
  --border-gold-strong: rgba(240, 184, 80, 0.65);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  --radius: 0;
  --font-btn: "Comfortaa", "Manrope", sans-serif;
  --header-h: 76px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-ui: 0.42s;
  --hero-scroll: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  position: relative;
}

/* Фон day/night — GIF только в hero, ниже — тёмный фон */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
  transform: scale(1.02);
  will-change: opacity, transform;
}

#pageBgDay {
  opacity: calc(1 - var(--hero-scroll, 0));
  transition: opacity 0.35s var(--ease-soft);
}

html.aern-night #pageBgDay {
  opacity: 0;
}

html.aern-night #pageBgNight {
  opacity: calc(1 - var(--hero-scroll, 0));
  transition: opacity 0.35s var(--ease-soft);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(12, 10, 8, 0.5) 0%,
      rgba(12, 10, 8, 0.15) 8%,
      transparent 16%,
      transparent 84%,
      rgba(12, 10, 8, 0.15) 92%,
      rgba(12, 10, 8, 0.5) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 10, 8, 0.06) 0%,
      rgba(12, 10, 8, 0.1) 35%,
      rgba(12, 10, 8, 0.22) 55%,
      rgba(12, 10, 8, 0.55) 78%,
      rgba(12, 10, 8, 0.88) 90%,
      var(--bg-deep) 100%
    );
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--bg-deep);
  opacity: calc(var(--hero-scroll, 0) * 0.98);
  transition: opacity 0.35s var(--ease-soft);
}

/* Виньетка по краям всего сайта */
.page-edge-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 10, 8, 0.45) 0%,
      rgba(12, 10, 8, 0.12) 6%,
      transparent 14%,
      transparent 86%,
      rgba(12, 10, 8, 0.12) 94%,
      rgba(12, 10, 8, 0.45) 100%
    );
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Кнопки (как #authButton в лаунчере) ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-btn);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.38s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft),
    filter 0.45s var(--ease-soft),
    color 0.35s var(--ease-soft);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-text);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 5;
  background:
    linear-gradient(180deg, #d4880a 0%, #a05808 100%) top/100% 2px no-repeat,
    linear-gradient(180deg, var(--bordo-top), var(--bordo-bot)),
    linear-gradient(180deg, var(--bordo-dark) 0%, #391414 30%, #341212 68%, #1c0808 100%);
  box-shadow:
    inset 0 1px 0 rgba(192, 40, 20, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.85);
}

.btn:hover {
  color: var(--gold-bright);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(220, 50, 24, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(192, 24, 24, 0.35),
    0 0 12px rgba(220, 150, 40, 0.25);
}

.btn:active {
  transform: scale(0.985);
  transition-duration: 0.1s;
}

.btn-lg { padding: 16px 36px; font-size: 0.98rem; }

.btn-sm {
  padding: 10px 18px;
  font-size: 0.78rem;
}

.btn-outline {
  background: rgba(12, 10, 8, 0.85);
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-text);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.75);
}

.btn-outline:hover {
  background: rgba(232, 200, 104, 0.08);
  color: var(--gold-bright);
  box-shadow:
    inset 0 0 24px rgba(232, 200, 104, 0.06),
    0 0 16px rgba(232, 200, 104, 0.12);
}

/* ── Header — всегда читаемый на фоне ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 6, 5, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold-strong);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: start;
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 20;
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: transparent !important;
  filter:
    drop-shadow(0 0 4px rgba(255, 175, 55, 0.5))
    drop-shadow(0 0 10px rgba(255, 110, 30, 0.22));
}

.brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.brand-logo-ember {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 185, 65, 0.42) 0%,
    rgba(255, 115, 30, 0.2) 48%,
    transparent 68%
  );
  filter: blur(6px);
  animation: ember-brand 3s ease-in-out infinite;
}

/* ── Hero logo: парение + мягкое ember-свечение ── */

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 24px;
  animation: logo-float 7s ease-in-out infinite;
}

.hero-logo-ember {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

.hero-logo-ember--inner {
  width: 78%;
  height: 78%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 200, 80, 0.5) 0%,
    rgba(255, 130, 40, 0.28) 52%,
    transparent 72%
  );
  filter: blur(10px);
  animation: ember-inner 2.6s ease-in-out infinite;
}

.hero-logo-ember--outer {
  width: 108%;
  height: 108%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 145, 45, 0.22) 0%,
    rgba(210, 55, 28, 0.14) 55%,
    transparent 76%
  );
  filter: blur(22px);
  animation: ember-outer 3.4s ease-in-out infinite;
  animation-delay: -1.2s;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(200px, 38vw);
  display: block;
  background: transparent !important;
  animation: logo-ember-glow 3s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes ember-inner {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes ember-outer {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.68; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes ember-brand {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes logo-ember-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 185, 60, 0.55))
      drop-shadow(0 0 18px rgba(255, 115, 35, 0.28))
      drop-shadow(0 0 32px rgba(190, 45, 28, 0.12));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 210, 90, 0.72))
      drop-shadow(0 0 24px rgba(255, 130, 45, 0.38))
      drop-shadow(0 0 40px rgba(200, 50, 30, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap,
  .hero-logo,
  .hero-logo-ember,
  .brand-logo-ember {
    animation: none !important;
  }

  .hero-logo-ember--inner { opacity: 0.65; }
  .hero-logo-ember--outer { opacity: 0.4; }
  .brand-logo-ember { opacity: 0.5; }

  .hero-logo {
    filter:
      drop-shadow(0 0 8px rgba(255, 185, 60, 0.45))
      drop-shadow(0 0 20px rgba(255, 115, 35, 0.2));
  }

  .nav-main,
  .nav-auth,
  .nav-dropdown-menu,
  .header-status-popover,
  .btn,
  .feature-panel.is-active {
    transition: none !important;
    animation: none !important;
  }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(232, 200, 104, 0.25);
}

/* Статус сервера в шапке — справа от AERN */
.header-server-status {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 22px;
}

.header-status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  padding: 6px 16px;
  cursor: default;
  user-select: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  position: relative;
  isolation: isolate;
}

.header-status-trigger::before {
  content: "";
  position: absolute;
  inset: -5px -12px;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.header-server-status.is-server-online .header-status-trigger::before {
  opacity: 1;
  animation: aura-green 2.8s ease-in-out infinite;
}

.header-server-status.is-server-offline .header-status-trigger::before {
  opacity: 1;
  animation: aura-red 2.8s ease-in-out infinite;
}

@keyframes aura-green {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(94, 207, 138, 0.35),
      0 0 14px rgba(94, 207, 138, 0.2),
      0 0 22px rgba(60, 180, 110, 0.12);
  }
  50% {
    box-shadow:
      0 0 12px rgba(94, 207, 138, 0.75),
      0 0 26px rgba(94, 207, 138, 0.45),
      0 0 40px rgba(60, 200, 120, 0.28);
  }
}

@keyframes aura-red {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(201, 68, 68, 0.35),
      0 0 14px rgba(201, 68, 68, 0.22),
      0 0 22px rgba(160, 40, 40, 0.12);
  }
  50% {
    box-shadow:
      0 0 12px rgba(220, 70, 70, 0.8),
      0 0 26px rgba(201, 68, 68, 0.5),
      0 0 42px rgba(180, 50, 50, 0.3);
  }
}

.header-status-text {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: color 0.3s, text-shadow 0.3s;
}

.header-server-status.is-server-online .header-status-text {
  color: #8ef0b0;
  animation: text-shimmer-green 2.8s ease-in-out infinite;
}

.header-server-status.is-server-offline .header-status-text {
  color: #f08080;
  animation: text-shimmer-red 2.8s ease-in-out infinite;
}

@keyframes text-shimmer-green {
  0%, 100% { text-shadow: 0 0 6px rgba(94, 207, 138, 0.35); }
  50% { text-shadow: 0 0 14px rgba(94, 207, 138, 0.75), 0 0 22px rgba(94, 207, 138, 0.35); }
}

@keyframes text-shimmer-red {
  0%, 100% { text-shadow: 0 0 6px rgba(201, 68, 68, 0.35); }
  50% { text-shadow: 0 0 14px rgba(220, 70, 70, 0.8), 0 0 22px rgba(201, 68, 68, 0.4); }
}

.header-server-status:hover .header-status-trigger::before,
.header-server-status:focus-within .header-status-trigger::before {
  filter: brightness(1.15);
}

.header-status-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-ui) var(--ease-pop),
    transform var(--duration-ui) var(--ease-pop),
    visibility var(--duration-ui);
  padding: 14px 18px;
  min-width: 168px;
  text-align: center;
  background: rgba(10, 8, 6, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  z-index: 120;
}

.header-status-popover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: rgba(232, 200, 104, 0.45);
}

.header-status-popover::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(10, 8, 6, 0.98);
}

.header-server-status:hover .header-status-popover,
.header-server-status:focus-within .header-status-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0.05s;
}

.header-status-popover-label {
  color: var(--text-dim);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.status-dot.is-online {
  background: #5ecf8a;
  animation: dot-shimmer-green 2.8s ease-in-out infinite;
}

.status-dot.is-offline {
  background: #e05050;
  animation: dot-shimmer-red 2.8s ease-in-out infinite;
}

@keyframes dot-shimmer-green {
  0%, 100% {
    box-shadow: 0 0 6px rgba(94, 207, 138, 0.5), 0 0 12px rgba(94, 207, 138, 0.25);
  }
  50% {
    box-shadow: 0 0 12px rgba(94, 207, 138, 0.95), 0 0 22px rgba(94, 207, 138, 0.55), 0 0 32px rgba(60, 200, 120, 0.3);
  }
}

@keyframes dot-shimmer-red {
  0%, 100% {
    box-shadow: 0 0 6px rgba(201, 68, 68, 0.5), 0 0 12px rgba(201, 68, 68, 0.25);
  }
  50% {
    box-shadow: 0 0 12px rgba(220, 70, 70, 0.95), 0 0 22px rgba(201, 68, 68, 0.55), 0 0 32px rgba(180, 50, 50, 0.3);
  }
}

.load-badge {
  display: inline-block;
  padding: 5px 16px;
  font-family: var(--font-btn);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.load-low {
  color: #5ecf8a;
  background: rgba(94, 207, 138, 0.12);
  border-color: rgba(94, 207, 138, 0.35);
  box-shadow: 0 0 16px rgba(94, 207, 138, 0.15);
}

.load-medium {
  color: #f0a030;
  background: rgba(240, 160, 48, 0.12);
  border-color: rgba(240, 160, 48, 0.4);
  box-shadow: 0 0 16px rgba(240, 160, 48, 0.15);
}

.load-high {
  color: #f06050;
  background: rgba(240, 96, 80, 0.14);
  border-color: rgba(240, 96, 80, 0.45);
  box-shadow: 0 0 16px rgba(240, 96, 80, 0.2);
}

.load-unknown {
  color: var(--text-dim);
  background: rgba(168, 160, 152, 0.08);
  border-color: rgba(168, 160, 152, 0.2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger,
.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  background: rgba(8, 6, 5, 0.55);
  border: 1px solid rgba(232, 200, 104, 0.18);
  transition:
    color 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
  pointer-events: auto;
  cursor: pointer;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  outline: none;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--gold-bright);
  opacity: 0.7;
  transition: transform 0.35s var(--ease-soft);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--gold-bright);
  background: rgba(232, 200, 104, 0.08);
  border-color: rgba(232, 200, 104, 0.35);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-ui) var(--ease-pop),
    transform var(--duration-ui) var(--ease-pop),
    visibility var(--duration-ui);
  min-width: 188px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 8, 6, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  z-index: 120;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: rgba(232, 200, 104, 0.45);
}

.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(10, 8, 6, 0.98);
}

.nav-dropdown-menu a {
  display: block;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  text-align: left;
}

.nav-dropdown-menu a:hover {
  color: var(--gold-bright);
  background: rgba(232, 200, 104, 0.1);
  border-color: rgba(232, 200, 104, 0.35);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0.06s;
}

.nav-auth .btn { padding: 10px 20px; font-size: 0.82rem; pointer-events: auto; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: rgba(12, 10, 8, 0.8);
  transition:
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* ── Hero + day/night GIF ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(180px, 24vh);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(12, 10, 8, 0.2) 40%,
    rgba(12, 10, 8, 0.65) 75%,
    var(--bg-deep) 100%
  );
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  color: var(--gold-bright);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(232, 200, 104, 0.15);
}

.hero-tagline {
  font-size: clamp(0.88rem, 1.1vw + 0.45rem, 1.08rem);
  color: #d4cdc0;
  max-width: min(920px, 96vw);
  margin: 0 auto 28px;
  padding-inline: 8px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero-tagline {
    white-space: normal;
    max-width: 22em;
    font-size: clamp(0.84rem, 3.6vw, 0.98rem);
    line-height: 1.45;
    text-wrap: balance;
  }
}

.hero-actions-panel {
  display: inline-block;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: rgba(8, 6, 5, 0.82);
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.hero-actions-panel--solo {
  display: block;
  width: fit-content;
  margin-inline: auto;
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-actions-panel--solo .btn {
  animation: none;
  box-shadow:
    inset 0 1px 0 rgba(192, 40, 20, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(255, 180, 60, 0.22),
    0 0 20px rgba(255, 120, 35, 0.1);
  transition:
    transform 0.35s var(--ease-soft),
    box-shadow 0.65s var(--ease-soft),
    filter 0.65s var(--ease-soft),
    color 0.35s var(--ease-soft);
}

.hero-actions-panel--solo .btn:hover {
  animation:
    btn-flare-up 0.55s ease-out forwards,
    btn-burn-glow 2.2s ease-in-out 0.55s infinite;
}

@keyframes btn-flare-up {
  0% {
    color: var(--gold-text);
    filter: brightness(1);
    box-shadow:
      inset 0 1px 0 rgba(192, 40, 20, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.35),
      0 3px 8px rgba(0, 0, 0, 0.85),
      0 0 10px rgba(255, 180, 60, 0.22),
      0 0 20px rgba(255, 120, 35, 0.1);
  }
  18% {
    color: #fff8dc;
    filter: brightness(1.4);
    box-shadow:
      inset 0 1px 0 rgba(255, 140, 50, 0.5),
      0 0 28px rgba(255, 230, 120, 1),
      0 0 52px rgba(255, 160, 55, 0.85),
      0 0 78px rgba(255, 100, 35, 0.55),
      0 0 100px rgba(220, 45, 25, 0.35);
  }
  100% {
    color: var(--gold-bright);
    filter: brightness(1.14);
    box-shadow:
      inset 0 1px 0 rgba(220, 50, 24, 0.34),
      0 4px 14px rgba(0, 0, 0, 0.6),
      0 0 22px rgba(255, 200, 80, 0.7),
      0 0 42px rgba(255, 130, 45, 0.48),
      0 0 62px rgba(210, 55, 30, 0.3);
  }
}

@keyframes btn-burn-glow {
  0%, 100% {
    color: var(--gold-bright);
    filter: brightness(1.12);
    box-shadow:
      inset 0 1px 0 rgba(220, 50, 24, 0.3),
      0 4px 14px rgba(0, 0, 0, 0.6),
      0 0 20px rgba(255, 190, 70, 0.62),
      0 0 38px rgba(255, 120, 40, 0.42),
      0 0 56px rgba(200, 50, 28, 0.26);
  }
  50% {
    color: #ffe8a8;
    filter: brightness(1.24);
    box-shadow:
      inset 0 1px 0 rgba(255, 100, 35, 0.42),
      0 4px 16px rgba(0, 0, 0, 0.55),
      0 0 28px rgba(255, 210, 90, 0.88),
      0 0 50px rgba(255, 130, 45, 0.62),
      0 0 72px rgba(230, 60, 25, 0.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions-panel--solo .btn:hover {
    animation: none;
    filter: brightness(1.1);
    box-shadow:
      0 0 18px rgba(255, 190, 70, 0.5),
      0 0 32px rgba(255, 120, 40, 0.3);
  }
}

.nav-auth .btn[data-aern-launcher] {
  white-space: nowrap;
}

/* Скачивание лаунчера — только после входа (кнопка скрыта для гостей) */
html.aern-auth-pending [data-aern-launcher],
html.aern-auth-pending [data-aern-launcher-wrap],
html.aern-auth-guest [data-aern-launcher],
html.aern-auth-guest [data-aern-launcher-wrap] {
  display: none !important;
}

html.aern-auth-user [data-aern-launcher-hint] {
  display: none !important;
}

.step-launcher-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 25;
}

.hero-actions .btn,
a[data-aern-auth] {
  position: relative;
  z-index: 30;
  pointer-events: auto !important;
  cursor: pointer;
  isolation: isolate;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */

.section { padding: 88px 0; position: relative; background: var(--bg-deep); }
.section-alt { background: var(--bg-deep); }

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 0 40px;
}

.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.about-text p { color: var(--text-dim); margin: 0 0 14px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card { padding: 22px; text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.stat-label { font-size: 0.82rem; color: var(--text-dim); }

/* Features */
.features-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  min-height: 300px;
}

.feature-tabs { display: flex; flex-direction: column; gap: 6px; }

.feature-tab {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    color 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.feature-tab:hover {
  background: rgba(232, 200, 104, 0.06);
  color: var(--text);
}

.feature-tab.is-active {
  background: var(--bg-card);
  border-color: var(--border-gold);
  color: var(--gold-bright);
  box-shadow: inset 3px 0 0 var(--fire);
}

.feature-panel { padding: 32px; display: none; }
.feature-panel.is-active { display: block; animation: fadeIn 0.5s var(--ease-pop); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: var(--gold);
}

.feature-panel p { color: var(--text-dim); margin: 0; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card { padding: 28px 24px; }

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(232, 200, 104, 0.25);
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--gold);
}

.step-card p {
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.step-card .btn { width: 100%; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  aspect-ratio: 16 / 9;
  background: #141210 center / cover no-repeat;
  border-bottom: 1px solid var(--border-gold);
}

.news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.78rem;
  color: var(--fire);
  margin-bottom: 6px;
  font-weight: 600;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
  line-height: 1.35;
}

.news-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 14px;
  flex: 1;
}

.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-gold);
  padding: 48px 0 28px;
  background: rgba(8, 6, 5, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-brand img { width: 52px; margin-bottom: 14px; }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.35s var(--ease-soft);
}

.footer-links a:hover { color: var(--gold-bright); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(232, 200, 104, 0.15);
  font-size: 0.84rem;
  color: var(--text-dim);
  text-align: center;
}

/* Mobile */
@media (max-width: 960px) {
  .about-grid, .features-wrap, .steps-grid, .news-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .feature-tab { white-space: nowrap; flex-shrink: 0; }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-group {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-main, .nav-auth {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(8, 6, 5, 0.97);
    z-index: 99;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.45s var(--ease-pop),
      transform 0.45s var(--ease-pop),
      visibility 0.45s;
  }

  .nav-main {
    top: var(--header-h);
    border-bottom: 1px solid var(--border-gold);
  }

  .nav-auth {
    top: calc(var(--header-h) + 220px);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
  }

  .nav-main.is-open, .nav-auth.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-main.is-open .nav-dropdown {
    width: 100%;
  }

  .nav-main.is-open .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-main.is-open .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .nav-main.is-open .nav-dropdown-menu::before,
  .nav-main.is-open .nav-dropdown-menu::after {
    display: none;
  }

  .nav-auth.is-open {
    top: calc(var(--header-h) + 220px);
  }

  .nav-auth.is-open .btn {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle { display: block; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .about-stats { grid-template-columns: 1fr; }

  .header-status-text { display: none; }
  .header-status-trigger {
    min-width: 36px;
    padding: 6px 10px;
    justify-content: center;
  }
}
