/* ============================================
   LA2PLUS — Premium Dark Fantasy Landing
   ============================================ */

:root {
  --bg-1: #080A0D;
  --bg-2: #0D1016;
  --bg-3: #11141B;
  --gold-1: #D5AD68;
  --gold-2: #E6C382;
  --gold-3: #F0D39B;
  --text-1: #F5F1E8;
  --text-2: #9C9EA5;
  --magic-1: #6D73FF;
  --magic-2: #875CF6;
  --magic-3: #3ECFCC;
  --success: #4ADE80;
  --danger: #F87171;
  --discord: #5865F2;
  --telegram: #2AABEE;

  /* rgb-версии токенов для полупрозрачных цветов: rgb(var(--gold-1-rgb) / 0.3) */
  --bg-1-rgb: 8 10 13;
  --bg-2-rgb: 13 16 22;
  --gold-1-rgb: 213 173 104;
  --magic-1-rgb: 109 115 255;

  /* рамки и плиты кнопок и баннеров (buttons.css, landing/sections.css) */
  --line-light: #f3dfa8;
  --line-dark: #7a5c2c;
  --plate-1: #1c1912;
  --plate-2: #0f0e0b;
  --gold-btn-line-light: #fff0c0;
  --gold-btn-line-dark: #8f6f36;

  /* страницы CMS (pages/cms.css) */
  --cms-text: #d8d5ce;
  --cms-heading: #e5d3af;
  --cms-accent-hover: #f4dca4;
  --cms-surface: #171d25;
  --cms-border: #343a43;
  --line-soft: #ffffff1a;
  --fill-soft: #ffffff06;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --header-h: 80px;
  --container: 1280px;
  --gutter: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-1) var(--bg-2);
}

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}


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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.hidden { display: none !important; }

/* Шапка и футер общие с лендингом: шрифт и интерлиньяж не наследуем от .cms-page */
.header, .footer { font-family: var(--font-body); line-height: 1.6; }

/* ---- PRELOADER ---- */
.preloader {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__logo-img {
  width: min(320px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgb(var(--magic-1-rgb) / 0.4));
  animation: logoPulse 2s ease-in-out infinite;
}
.preloader__bar {
  width: 200px; height: 2px;
  background: var(--bg-3);
  margin: 24px auto 12px;
  border-radius: 2px;
  overflow: hidden;
}
.preloader__progress {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  animation: loadBar 1.5s var(--ease-out) forwards;
}
.preloader__text {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-2);
}

/* ---- ICONS & PARTICLES ---- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.fx-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* ---- ADAPTIVE ---- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
}
