/* ============================================================
   MAJURE — дизайн-система
   Палитра: фиолетовый / розовый / пурпурный
   Стиль: liquid glass (жидкое стекло)
   ============================================================ */

/* ---------- Шрифты подключаются в HTML (Unbounded + Manrope) ---------- */

/* ---------- Токены: тёмная тема (по умолчанию) ---------- */
:root {
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --bg: #0b0614;
  --bg-2: #130a22;
  --bg-3: #1a0f2e;
  --text: #f3edfc;
  --text-muted: #b9aad8;
  --text-faint: #8d7cb0;

  --purple: #a855f7;
  --violet: #7c3aed;
  --pink: #ec4899;
  --fuchsia: #d946ef;
  --magenta: #c026d3;

  --grad-main: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(168,85,247,.35), rgba(236,72,153,.35));

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-highlight: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(10, 2, 26, 0.55);
  --glass-glow: 0 0 42px rgba(168, 85, 247, 0.18);

  --card-radius: 24px;
  --pill-radius: 999px;

  --header-h: 72px;

  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Светлая тема ---------- */
html[data-theme="light"] {
  --bg: #f5effd;
  --bg-2: #ede3fb;
  --bg-3: #e4d6f8;
  --text: #2a1546;
  --text-muted: #5d4483;
  --text-faint: #8a72ad;

  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(124, 58, 237, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 32px rgba(124, 58, 237, 0.14);
  --glass-glow: 0 0 42px rgba(168, 85, 247, 0.10);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .5s ease, color .5s ease;
}

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

::selection { background: rgba(217, 70, 239, .4); color: #fff; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Живой фон: парящие светящиеся пятна ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(1000px 700px at -10% 40%, rgba(236, 72, 153, .14), transparent 60%),
    radial-gradient(900px 900px at 60% 110%, rgba(217, 70, 239, .16), transparent 60%),
    var(--bg);
  transition: background .5s ease;
}
html[data-theme="light"] .bg-scene {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(168, 85, 247, .18), transparent 60%),
    radial-gradient(1000px 700px at -10% 40%, rgba(236, 72, 153, .12), transparent 60%),
    radial-gradient(900px 900px at 60% 110%, rgba(217, 70, 239, .12), transparent 60%),
    var(--bg);
}

.bg-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: blobFloat 22s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-blob.b1 { width: 480px; height: 480px; top: -120px; left: -80px; background: rgba(124, 58, 237, .35); }
.bg-blob.b2 { width: 420px; height: 420px; top: 30%; right: -140px; background: rgba(236, 72, 153, .28); animation-delay: -7s; }
.bg-blob.b3 { width: 380px; height: 380px; bottom: -120px; left: 30%; background: rgba(217, 70, 239, .3); animation-delay: -14s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, -40px) scale(1.12); }
  100% { transform: translate(-40px, 50px) scale(.95); }
}

/* Парящие пиксель-частицы по всему сайту */
.ambient-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-particles span {
  position: absolute; bottom: -12px;
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--fuchsia);
  opacity: 0;
  animation: floatUp linear infinite;
  box-shadow: 0 0 8px rgba(217, 70, 239, .8);
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .8; }
  90%  { opacity: .5; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 40px)) rotate(360deg); opacity: 0; }
}

/* ============================================================
   ШАПКА — жидкое стекло
   ============================================================ */
.site-header {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, 94%);
  border-radius: var(--pill-radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  transition: box-shadow .4s ease, background .4s ease, transform .4s var(--ease-smooth);
}
.site-header.scrolled {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow), var(--glass-glow), inset 0 1px 0 var(--glass-highlight);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 22px; min-height: 58px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-main);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff;
  box-shadow: 0 4px 18px rgba(217, 70, 239, .45), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .5s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.logo-text .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; padding: 9px 16px; border-radius: var(--pill-radius);
  font-weight: 600; font-size: 15px; color: var(--text-muted);
  transition: color .25s ease, background .3s ease, transform .3s var(--ease-spring);
  overflow: hidden;
}
.main-nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%) scaleX(0);
  width: 40%; height: 2px; border-radius: 2px; background: var(--grad-main);
  transition: transform .35s var(--ease-spring);
}
.main-nav a:hover { color: var(--text); background: var(--glass-bg-strong); transform: translateY(-1px); }
.main-nav a:hover::after { transform: translateX(-50%) scaleX(1); }
.main-nav a.active {
  color: var(--text);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 12px rgba(168, 85, 247, .18);
}
.main-nav a.active::after { transform: translateX(-50%) scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Переключатель темы */
.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: grid; place-items: center;
  transition: transform .5s var(--ease-spring), box-shadow .3s ease;
  overflow: hidden;
}
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 18px rgba(217, 70, 239, .35); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: transform .5s var(--ease-spring), opacity .3s ease; }
.theme-toggle .icon-sun { opacity: 0; transform: translateY(140%) rotate(90deg); }
.theme-toggle .icon-moon { opacity: 1; transform: translateY(0) rotate(0); }
html[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: translateY(0) rotate(0); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(-140%) rotate(-90deg); }

/* Бургер (мобильное меню) */
.burger {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: transform .3s var(--ease-spring);
}
.burger:active { transform: scale(.9); }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease-spring), opacity .25s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильная панель навигации */
.mobile-nav {
  position: fixed; top: 86px; left: 50%; transform: translateX(-50%) translateY(-12px);
  width: min(1180px, 94%); z-index: 99;
  border-radius: 24px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 12px;
  display: none; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-spring);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mobile-nav a {
  padding: 13px 18px; border-radius: 16px; font-weight: 600; color: var(--text-muted);
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--glass-bg-strong); color: var(--text); padding-left: 24px; }

/* ============================================================
   КНОПКИ — жидкое стекло
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--pill-radius);
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--text);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight), inset 0 -8px 18px rgba(168, 85, 247, .08);
  transition: transform .45s var(--ease-spring), box-shadow .35s ease, background .3s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* Блик, пробегающий по стеклу */
.btn::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease-smooth);
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glass-shadow), 0 10px 34px rgba(168, 85, 247, .35), inset 0 1px 0 var(--glass-highlight);
}
.btn:active { transform: translateY(0) scale(.97); }

.btn-primary {
  background: var(--grad-main);
  color: #fff; border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 8px 28px rgba(217, 70, 239, .4), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -10px 24px rgba(0, 0, 0, .18);
  background-size: 160% 160%;
  animation: gradShift 6s ease infinite;
}
.btn-primary:hover { box-shadow: 0 14px 42px rgba(217, 70, 239, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-lg { padding: 19px 38px; font-size: 17px; }
.btn .btn-icon { width: 20px; height: 20px; flex: none; }

/* Кнопка копирования IP */
.btn-ip { font-family: 'Unbounded', monospace; letter-spacing: .04em; }
.btn-ip .ip-copied { position: absolute; inset: 0; display: grid; place-items: center; background: inherit; border-radius: inherit; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .35s var(--ease-spring); font-family: var(--font-body); }
.btn-ip.copied .ip-copied { opacity: 1; transform: translateY(0); }
.btn-ip.copied { animation: pulseGlow .6s ease; }
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, .6); }
  100% { box-shadow: 0 0 0 26px rgba(217, 70, 239, 0); }
}

/* ============================================================
   HERO — главный экран
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: clip;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: var(--pill-radius);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: dotPulse 2s ease infinite; }
@keyframes dotPulse { 50% { transform: scale(1.4); opacity: .7; } }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: .04em;
  line-height: 1.05; margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--grad-main); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 5s ease infinite;
  filter: drop-shadow(0 0 26px rgba(217, 70, 239, .35));
}
.hero .slogan {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, 2vw, 23px); color: var(--text-muted);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.hero .slogan .cursor { display: inline-block; width: 3px; height: 1em; background: var(--fuchsia); margin-left: 4px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero .hero-desc { max-width: 520px; color: var(--text-muted); font-size: 17.5px; margin-bottom: 36px; }

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

.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-chip {
  padding: 12px 20px; border-radius: 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: transform .4s var(--ease-spring), box-shadow .3s ease;
}
.stat-chip:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 24px rgba(168, 85, 247, .22); }
.stat-chip b { display: block; font-family: var(--font-display); font-size: 21px; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-chip span { font-size: 13px; color: var(--text-faint); font-weight: 600; }

/* ---------- ПОРТАЛ В АД ---------- */
.portal-wrap {
  position: relative;
  display: grid; place-items: center;
  perspective: 900px;
}
.portal-scene { position: relative; animation: portalHover 7s ease-in-out infinite; will-change: transform; }
@keyframes portalHover {
  0%, 100% { transform: translateY(0) rotateY(-4deg) rotateX(2deg); }
  50% { transform: translateY(-16px) rotateY(4deg) rotateX(-2deg); }
}

.portal {
  --cell: clamp(34px, 5.6vw, 58px);
  display: grid;
  grid-template-columns: repeat(6, var(--cell));
  grid-template-rows: repeat(8, var(--cell));
  gap: 2px;
  filter: drop-shadow(0 30px 60px rgba(124, 58, 237, .45));
}

/* Обсидиановые блоки рамки */
.ob {
  border-radius: 6px;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(168, 85, 247, .38) 0%, transparent 42%),
    radial-gradient(150% 150% at 85% 90%, rgba(76, 29, 149, .5) 0%, transparent 50%),
    linear-gradient(145deg, #241436 0%, #150b26 55%, #0d0618 100%);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, .09),
    inset -3px -4px 6px rgba(0, 0, 0, .55),
    0 2px 6px rgba(0, 0, 0, .4);
  position: relative; overflow: hidden;
}
.ob::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(216, 180, 254, .16) 45%, transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.portal-scene:hover .ob::after { opacity: 1; }
.ob:nth-child(3n)  { filter: brightness(1.12); }
.ob:nth-child(4n)  { filter: brightness(.88); }
.ob:nth-child(7n)  { filter: brightness(1.05) hue-rotate(8deg); }

/* Поверхность портала */
.portal-surface {
  grid-column: 2 / 6; grid-row: 2 / 8;
  border-radius: 8px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(240, 171, 252, .8) 0%, transparent 55%),
    radial-gradient(90% 80% at 30% 70%, rgba(168, 85, 247, .9) 0%, transparent 60%),
    radial-gradient(90% 80% at 75% 25%, rgba(192, 38, 211, .85) 0%, transparent 60%),
    linear-gradient(160deg, #6d28d9, #a21caf 60%, #7c3aed);
  background-size: 200% 200%, 220% 220%, 220% 220%, 100% 100%;
  animation: portalSwirl 9s ease-in-out infinite;
  box-shadow:
    inset 0 0 46px rgba(59, 7, 100, .8),
    inset 0 0 90px rgba(240, 171, 252, .25),
    0 0 60px rgba(192, 38, 211, .55),
    0 0 130px rgba(168, 85, 247, .35);
}
@keyframes portalSwirl {
  0%, 100% { background-position: 0% 0%, 0% 100%, 100% 0%, 0 0; }
  33% { background-position: 60% 100%, 80% 20%, 20% 80%, 0 0; }
  66% { background-position: 100% 40%, 30% 60%, 70% 30%, 0 0; }
}
/* Пиксельная рябь поверх портала */
.portal-surface::before {
  content: ''; position: absolute; inset: -20%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, rgba(88, 28, 135, .16) 0 6px, transparent 6px 12px);
  animation: pixelDrift 3.2s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes pixelDrift { to { transform: translate(12px, -12px); } }
/* Мерцающее свечение */
.portal-surface::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(55% 45% at 50% 50%, rgba(250, 232, 255, .5), transparent 70%);
  animation: portalPulse 3.4s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes portalPulse { 50% { opacity: .35; transform: scale(1.14); } }

/* Частицы портала */
.portal-particles { position: absolute; inset: -60px; pointer-events: none; }
.portal-particles span {
  position: absolute; width: 7px; height: 7px; border-radius: 2px;
  background: #e879f9; box-shadow: 0 0 10px #d946ef, 0 0 22px rgba(217, 70, 239, .6);
  opacity: 0;
  animation: portalSpark var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes portalSpark {
  0%   { transform: translate(0, 0) scale(.4); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(var(--dx, 30px), var(--dy, -90px)) scale(1); opacity: 0; }
}

/* Отражение портала на "полу" */
.portal-floor {
  position: absolute; bottom: -48px; left: 50%; transform: translateX(-50%) rotateX(70deg);
  width: 120%; height: 90px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(192, 38, 211, .5), transparent 70%);
  filter: blur(18px);
  animation: floorPulse 3.4s ease-in-out infinite;
}
@keyframes floorPulse { 50% { opacity: .6; transform: translateX(-50%) rotateX(70deg) scale(1.1); } }

/* Стрелка вниз */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-faint); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  animation: hintBob 2.2s ease-in-out infinite;
}
@keyframes hintBob { 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   СЕКЦИИ И КАРТОЧКИ
   ============================================================ */
.section { position: relative; padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label {
  display: inline-block; padding: 7px 18px; margin-bottom: 18px;
  border-radius: var(--pill-radius);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fuchsia);
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.section-head h2 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--text-muted); font-size: 17px; }

.glass-card {
  position: relative;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  padding: 34px 30px;
  transition: transform .5s var(--ease-spring), box-shadow .4s ease, border-color .3s ease;
  overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: -90%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease-smooth);
  pointer-events: none;
}
.glass-card:hover::before { left: 140%; }
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 70, 239, .35);
  box-shadow: var(--glass-shadow), 0 18px 48px rgba(168, 85, 247, .28), inset 0 1px 0 var(--glass-highlight);
}

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card-icon {
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 20px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--grad-soft);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 6px 18px rgba(168, 85, 247, .2);
  transition: transform .5s var(--ease-spring);
}
.glass-card:hover .card-icon { transform: scale(1.12) rotate(-6deg); }
.glass-card h3 { font-size: 19px; margin-bottom: 12px; font-weight: 600; }
.glass-card p { color: var(--text-muted); font-size: 15.5px; }

/* Появление при прокрутке (скрываем только если работает JS) */
.reveal { transition: opacity .8s ease, transform .9s var(--ease-smooth); }
html.js .reveal { opacity: 0; transform: translateY(36px); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* Параллакс-слои (управляются JS) */
[data-depth] { will-change: transform; }

/* Плавающие мини-блоки украшения */
.float-block {
  position: absolute; border-radius: 10px; pointer-events: none;
  background: linear-gradient(145deg, #2d1b4e, #170c2b);
  box-shadow: inset 2px 2px 3px rgba(255,255,255,.08), inset -3px -3px 6px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.35);
  animation: blockBob 6s ease-in-out infinite;
  opacity: .85;
}
html[data-theme="light"] .float-block { background: linear-gradient(145deg, #d9c6f5, #b795ea); box-shadow: inset 2px 2px 3px rgba(255,255,255,.5), inset -3px -3px 6px rgba(124,58,237,.2), 0 10px 30px rgba(124,58,237,.15); }
@keyframes blockBob { 50% { transform: translateY(-18px) rotate(4deg); } }

/* ============================================================
   CTA-баннер
   ============================================================ */
.cta-banner {
  position: relative; border-radius: 32px; overflow: hidden;
  padding: 64px 48px; text-align: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-glow), inset 0 1px 0 var(--glass-highlight);
}
.cta-banner::after {
  content: ''; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 65%, rgba(217, 70, 239, .16) 75%, transparent 85%);
  animation: ctaSpin 9s linear infinite;
  pointer-events: none;
}
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; position: relative; z-index: 1; }
.cta-banner p { color: var(--text-muted); margin-bottom: 30px; position: relative; z-index: 1; }
.cta-banner .hero-cta { justify-content: center; margin-bottom: 0; position: relative; z-index: 1; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 56px;
  text-align: center; position: relative; overflow: clip;
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 16px; }
.page-hero h1 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(217, 70, 239, .3)); }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 17.5px; }

/* ---------- Магазин ---------- */
.shop-note {
  max-width: 760px; margin: 0 auto 48px; padding: 18px 26px;
  border-radius: 20px; text-align: center; font-size: 14.5px; color: var(--text-muted);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.rank-card { display: flex; flex-direction: column; text-align: center; padding: 40px 28px 34px; }
.rank-card .rank-icon { margin: 0 auto 18px; }
.rank-card .rank-name { font-family: var(--font-display); font-size: 21px; margin-bottom: 6px; }
.rank-card .rank-price { font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 14px 0 4px; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-card .rank-period { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.rank-card ul { list-style: none; text-align: left; margin-bottom: 26px; flex: 1; }
.rank-card ul li { padding: 8px 0 8px 30px; position: relative; color: var(--text-muted); font-size: 14.5px; border-bottom: 1px dashed var(--glass-border); }
.rank-card ul li:last-child { border-bottom: none; }
.rank-card ul li::before {
  content: '✦'; position: absolute; left: 4px; color: var(--fuchsia);
}
.rank-card .btn { width: 100%; }
.rank-card.featured {
  border-color: rgba(217, 70, 239, .5);
  box-shadow: var(--glass-shadow), 0 0 46px rgba(217, 70, 239, .3), inset 0 1px 0 var(--glass-highlight);
  transform: scale(1.03);
}
.rank-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.rank-badge {
  position: absolute; top: 18px; right: -34px; transform: rotate(38deg);
  padding: 6px 44px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad-main); color: #fff;
  box-shadow: 0 4px 14px rgba(217, 70, 239, .5);
}

/* ---------- Вики ---------- */
.wiki-search {
  max-width: 560px; margin: 0 auto 48px; position: relative;
}
.wiki-search input {
  width: 100%; padding: 17px 24px 17px 54px; border-radius: var(--pill-radius);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  color: var(--text); font-family: var(--font-body); font-size: 16px; font-weight: 500;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.wiki-search input::placeholder { color: var(--text-faint); }
.wiki-search input:focus { border-color: rgba(217, 70, 239, .5); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 0 0 4px rgba(217, 70, 239, .15), var(--glass-shadow); }
.wiki-search svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--text-faint); }

.wiki-card { cursor: pointer; }
.wiki-card .wiki-cat { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--fuchsia); padding: 5px 13px; border-radius: var(--pill-radius); background: rgba(217, 70, 239, .12); border: 1px solid rgba(217, 70, 239, .25); margin-bottom: 16px; }
.wiki-card .wiki-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--purple); transition: gap .3s var(--ease-spring); }
.wiki-card:hover .wiki-more { gap: 13px; }
.wiki-empty { text-align: center; color: var(--text-faint); padding: 40px 0; display: none; }

/* ---------- Карта ---------- */
.map-frame {
  position: relative; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(70% 90% at 20% 30%, rgba(124, 58, 237, .5), transparent 55%),
    radial-gradient(60% 70% at 75% 60%, rgba(236, 72, 153, .38), transparent 55%),
    radial-gradient(50% 60% at 55% 20%, rgba(192, 38, 211, .4), transparent 60%),
    linear-gradient(160deg, #17092e, #0d0519);
}
html[data-theme="light"] .map-frame {
  background:
    radial-gradient(70% 90% at 20% 30%, rgba(168, 85, 247, .35), transparent 55%),
    radial-gradient(60% 70% at 75% 60%, rgba(236, 72, 153, .25), transparent 55%),
    linear-gradient(160deg, #e9dcfa, #d8c3f4);
}
.map-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(216, 180, 254, .07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(216, 180, 254, .07) 0 1px, transparent 1px 46px);
  animation: mapPan 26s linear infinite;
}
@keyframes mapPan { to { background-position: 46px 46px, 46px 46px; } }
.map-marker {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fuchsia); border: 3px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 16px var(--fuchsia);
  animation: markerPing 2.6s ease-out infinite;
}
.map-marker::after {
  content: attr(data-name); position: absolute; left: 50%; bottom: 150%; transform: translateX(-50%);
  white-space: nowrap; padding: 5px 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: rgba(20, 8, 40, .85); color: #f3edfc; border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s ease, transform .3s var(--ease-spring);
  pointer-events: none;
}
.map-marker:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }
@keyframes markerPing {
  0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, .55), 0 0 16px var(--fuchsia); }
  100% { box-shadow: 0 0 0 22px rgba(217, 70, 239, 0), 0 0 16px var(--fuchsia); }
}
.map-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.map-overlay .map-glass {
  padding: 34px 44px; border-radius: 26px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}
.map-overlay h3 { font-size: 21px; margin-bottom: 8px; }
.map-overlay p { color: var(--text-muted); font-size: 15px; max-width: 380px; }

.map-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.legend-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: var(--pill-radius); background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.legend-chip i { width: 11px; height: 11px; border-radius: 4px; }

/* ---------- О проекте ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 80px; }
.about-grid .glass-card { padding: 40px; }
.about-grid h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.about-grid p { color: var(--text-muted); margin-bottom: 14px; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--purple), var(--pink)); box-shadow: 0 0 14px rgba(168, 85, 247, .5); }
.timeline-item { position: relative; padding: 0 0 40px 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-main); border: 3px solid var(--bg);
  box-shadow: 0 0 14px rgba(217, 70, 239, .6);
}
.timeline-item h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-item .tl-date { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fuchsia); display: block; margin-bottom: 6px; }
.timeline-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- Шаги «Как играть» ---------- */
.steps { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.step-card { display: flex; gap: 26px; align-items: flex-start; padding: 30px 32px; }
.step-num {
  flex: none; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
  background: var(--grad-main);
  box-shadow: 0 6px 20px rgba(217, 70, 239, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.step-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 15.5px; }
.step-card code, .inline-code {
  font-family: 'Unbounded', monospace; font-size: .86em; font-weight: 500;
  padding: 3px 10px; border-radius: 8px;
  background: rgba(168, 85, 247, .14); border: 1px solid rgba(168, 85, 247, .3);
  color: var(--fuchsia); white-space: nowrap;
}
.ip-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ---------- Текстовые страницы (соглашение) ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal .glass-card { padding: 48px; }
.legal h2 { font-size: 21px; margin: 34px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal .legal-date { font-size: 13px; color: var(--text-faint); margin-top: 30px; }

/* ---------- Контакты ---------- */
.contact-card { text-align: center; padding: 44px 30px; }
.contact-card .card-icon { margin: 0 auto 20px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { margin-bottom: 22px; font-size: 14.5px; }
.contact-card .btn { width: 100%; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
  margin-top: 80px; position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-top: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding: 56px 0 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; transition: color .25s ease, transform .3s var(--ease-spring); }
.footer-col a:hover { color: var(--text); transform: translateX(5px); }
.footer-col a svg { width: 17px; height: 17px; opacity: .8; }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 22px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.footer-bottom p { font-size: 12.8px; color: var(--text-faint); max-width: 640px; }
.footer-bottom .foot-copy { font-weight: 700; color: var(--text-muted); }

/* ============================================================
   ДОСТУПНОСТЬ И АДАПТИВ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1020px) {
  .cards-grid, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .hero .hero-desc { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: flex; }
  .cards-grid, .cards-grid-2, .cards-grid-4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .step-card { flex-direction: column; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 48px 24px; }
  .legal .glass-card { padding: 30px 22px; }
  .map-frame { aspect-ratio: 4 / 5; }
  .rank-card.featured { transform: none; }
  .rank-card.featured:hover { transform: translateY(-8px); }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .portal { --cell: clamp(30px, 10vw, 46px); }
}
