/* ============================================================
   L2 WarNeT — Interlude x50 · Premium Design System
   Dark fantasy · gold accents · glassmorphism
   ------------------------------------------------------------
   Один файл вместо трёх (style.css + css/style.css +
   pages-premium.css). Покрывает все классы страниц.
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg:         #05060a;
  --bg2:        #0a0c12;
  --bg3:        #10131c;
  --bg4:        #151926;
  --bg-dark:    #030408;
  --bg-card:    #0d1018;
  --panel:      rgba(13, 16, 24, .72);
  --panel2:     rgba(18, 22, 32, .8);
  --panel-2:    rgba(18, 22, 32, .8);

  /* Lines & borders */
  --line:       rgba(212, 175, 55, .14);
  --line-gold:  rgba(212, 175, 55, .38);
  --border:     rgba(212, 175, 55, .12);
  --border-hov: rgba(212, 175, 55, .34);

  /* Gold */
  --gold:       #d4af37;
  --gold-light: #e8c96a;
  --gold-dim:   #9c8234;
  --gold-soft:  rgba(212, 175, 55, .10);
  --gold-glow:  rgba(212, 175, 55, .18);
  --gold-2:     #b8932c;
  --gold2:      #b8932c;

  /* Brand (legacy aliases) */
  --brand:      #d4af37;
  --brand-dark: #8a6d1f;

  /* Text */
  --text:       #ece7dc;
  --text-dim:   #9a948a;
  --text-muted: #6b665e;
  --muted:      #8d887d;
  --muted-2:    #6f6a60;
  --ink:        #f3efe6;

  /* Semantic */
  --red:        #e0564f;  --red-bg:    rgba(224, 86, 79, .12);
  --green:      #4fbf6f;  --green-bg:  rgba(79, 191, 111, .12);
  --orange:     #e08a3c;  --orange-bg: rgba(224, 138, 60, .12);
  --yellow:     #e3c14f;  --yellow-bg: rgba(227, 193, 79, .12);
  --purple:     #a78bfa;  --purple2:   #8d6ff0;  --purple-bg: rgba(167, 139, 250, .12);
  --blue:       #6aa7f5;  --blue-bg:   rgba(106, 167, 245, .12);
  --gray:       #8d887d;  --gray-bg:   rgba(141, 136, 125, .10);
  --dark2:      #0d0f16;
  --danger:     var(--red);
  --success:    var(--green);

  /* Fonts */
  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;

  /* Radius */
  --radius:     14px;
  --radius-sm:  8px;

  /* Layout */
  --container: 1200px;
  --nav-h:     72px;

  /* Shadows */
  /* Layout */
  --container: 1200px;
  --nav-h:     72px;

  /* Shadows */
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-gold: 0 0 24px var(--gold-glow);

  /* ---- Design System v2.1 ---- */
  /* Spacing scale */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;  --space-9: 96px;

  /* Typography scale */
  --text-xs:   12px;  --text-sm:  14px;  --text-base: 16px;
  --text-lg:   18px;  --text-xl:  22px;  --text-2xl: 28px;  --text-3xl: 36px;

  /* Shadow scale */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .4);

  /* Motion */
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --dur-fast:  .15s;
  --dur:       .25s;
  --dur-slow:  .45s;

  /* Z-index scale */
  --z-nav: 100; --z-overlay: 90; --z-modal: 200;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* тонкая золотая сетка поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 500px at 50% -10%, var(--gold-glow), transparent 60%),
    linear-gradient(rgba(212, 175, 55, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .025) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

#app, .site, main { position: relative; z-index: 1; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, opacity .2s ease; }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(212, 175, 55, .3); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }


/* ---------- 2.1. Focus & reduced motion (a11y) ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 3. Layout ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

section { position: relative; padding: 96px 0; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 4. Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 6, 10, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo, .logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo .l2, .logo .l2 {
  color: var(--gold);
  text-shadow: 0 0 18px var(--gold-glow);
}
.nav-logo .name, .logo .name { letter-spacing: .08em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #14100a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim));
  border: 1px solid rgba(255, 230, 150, .4);
  border-radius: 999px;
  box-shadow: 0 4px 18px var(--gold-glow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  color: #14100a;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, .3);
  filter: brightness(1.06);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #14100a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim));
  border-color: rgba(255, 230, 150, .4);
  box-shadow: 0 6px 24px var(--gold-glow);
}
.btn-primary:hover {
  color: #14100a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(212, 175, 55, .32);
  filter: brightness(1.06);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-gold);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-gold { color: #14100a; background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim)); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-danger { color: #fff; background: rgba(224, 86, 79, .85); }
.btn-danger:hover { background: var(--red); transform: translateY(-1px); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/images/hero-clean.webp');
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.02); } }

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 78% 28%, rgba(22, 66, 130, .16), transparent 70%),
    linear-gradient(90deg, rgba(5, 6, 10, .95) 0%, rgba(5, 6, 10, .80) 34%, rgba(5, 6, 10, .34) 62%, rgba(5, 6, 10, .52) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, .55) 0%, transparent 30%, transparent 62%, var(--bg) 100%);
}

.hero-content {
  z-index: 1;
  padding: 140px 0 110px;
  max-width: 720px;
}

.hero-line {
  width: 64px; height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 16px var(--gold-glow);
  animation: lineIn .9s ease both;
}
@keyframes lineIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  animation: fadeUp .8s .1s ease both;
}

.hero h1 {
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff7e0 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: fadeUp .9s .18s ease both;
}

.hero-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 18px;
  line-height: 1.25;
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  animation: fadeUp .9s .28s ease both;
}
.hero-sub .sep { color: var(--gold); opacity: .7; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp .9s .38s ease both;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding: 12px 22px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(5, 6, 10, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14.5px;
  color: var(--text-dim);
  animation: fadeUp .9s .5s ease both;
}
.hero-stat .num { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold-light); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(79, 191, 111, .8);
  animation: pulse 2s infinite;
}
.dot.warn { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.dot.off { background: var(--red); box-shadow: 0 0 10px rgba(224, 86, 79, .7); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 7. Page Hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 76px) 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, .92), rgba(5, 6, 10, .74)),
    radial-gradient(760px 340px at 78% 0%, rgba(106, 167, 245, .18), transparent 66%),
    url('/assets/images/hero-clean.webp') center 42% / cover;
  pointer-events: none;
}
.page-hero .container { z-index: 1; }
.page-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin: 14px 0 10px;
}
.page-hero p { color: var(--muted); font-size: 16.5px; max-width: 640px; }

.breadcrumb {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* ---------- 8. Section headers ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-tag.center, .center .section-tag { justify-content: center; }
.center .section-tag::before { display: none; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 56px;
}
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 9. Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.feature {
  position: relative;
  padding: 34px 30px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .75));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-2);
}
.feature:hover::before { opacity: 1; }
.feature .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .2em;
  margin-bottom: 16px;
  display: block;
  opacity: .85;
}
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- 10. Stats ---------- */
.stats-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .9), rgba(8, 10, 16, .85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 34px 38px;
}
.server-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
}
.status-pill .dot { width: 7px; height: 7px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-box {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s ease, transform .25s ease;
}
.stat-box:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.stat-box .num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-box .label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  padding: 38px 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .75));
  transition: transform .28s ease, border-color .28s ease;
}
.step::before {
  content: attr(data-num);
  position: absolute;
  top: 16px; right: 22px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, .28);
  line-height: 1;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-gold); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.step .btn { padding: 10px 22px; font-size: 14px; }

/* ---------- 12. Classes ---------- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.class-card {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 24, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: center;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.class-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.class-card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: var(--shadow-1); }
.class-card:hover::after { transform: scaleX(1); }
.class-card .role-tag, .class-card .role {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.class-card .name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.class-card .icon { font-size: 26px; margin-bottom: 8px; }
.class-card .desc { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }
.class-card .race { font-size: 12px; color: var(--text-muted); margin-top: 6px; letter-spacing: .08em; }

/* ---------- 13. Epics & Sieges ---------- */
.epic-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.epic-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  overflow: hidden;
}
.epic-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.epic-row:last-child { border-bottom: none; }
.epic-row:hover { background: rgba(255, 255, 255, .02); }
.epic-row .marker { color: var(--gold); font-size: 14px; }
.epic-info .name { font-family: var(--serif); font-size: 17.5px; color: var(--ink); }
.epic-info .lvl { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.epic-time {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
  min-width: 90px;
  text-align: right;
}
.epic-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.epic-status.alive { color: var(--green); background: var(--green-bg); border: 1px solid rgba(79, 191, 111, .3); }
.epic-status.soon { color: var(--gold); background: var(--gold-soft); border: 1px solid var(--line); }

.sieges-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  padding: 26px;
}
.sieges-card h3 { font-size: 20px; margin-bottom: 18px; color: var(--gold-light); }
.siege-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.siege-item:last-child { border-bottom: none; }
.siege-castle { color: var(--text); }
.siege-time { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------- 14. Leaderboard ---------- */
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.leaderboard-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  overflow: hidden;
}
.leaderboard-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.leaderboard-card .title { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.leaderboard-card .badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(212, 175, 55, .06);
  transition: background .2s ease;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: rgba(255, 255, 255, .02); }
.leaderboard-row .name { font-size: 15px; color: var(--text); }
.leaderboard-row .clan { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.leaderboard-row .score { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--gold-light); }
.rank {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(255, 255, 255, .03);
}
.rank.gold { color: #1a1405; background: linear-gradient(135deg, #f4d970, #c9a227); border-color: #f4d970; box-shadow: 0 0 14px rgba(212, 175, 55, .5); }
.rank.silver { color: #10141c; background: linear-gradient(135deg, #e8ecf4, #9aa7bd); border-color: #e8ecf4; }
.rank.bronze { color: #1c1106; background: linear-gradient(135deg, #e8a76a, #a5672f); border-color: #e8a76a; }

/* ---------- 15. Donate ---------- */
.donate-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8)); overflow: hidden; }
.donate-grid { display: grid; grid-template-columns: 1.4fr 1fr; }
.donate-list { padding: 34px 38px; }
.donate-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid rgba(212, 175, 55, .06);
}
.donate-list li:last-child { border-bottom: none; }
.donate-list .mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}
.mark.yes { color: var(--green); background: var(--green-bg); border: 1px solid rgba(79, 191, 111, .3); }
.mark.no { color: var(--red); background: var(--red-bg); border: 1px solid rgba(224, 86, 79, .3); }

.donate-card {
  margin: 28px 28px 28px 0;
  padding: 34px 30px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(30, 26, 12, .65), rgba(10, 11, 16, .9));
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.donate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 160px at 85% -10%, rgba(212, 175, 55, .22), transparent 65%);
  pointer-events: none;
}
.donate-card .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.donate-card .price { font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--gold-light); line-height: 1.1; }
.donate-card .price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.donate-card .perks { margin: 22px 0 26px; }
.donate-card .perks li {
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.donate-card .perks li::before { content: "✦"; color: var(--gold); font-size: 11px; }

/* ---------- 16. News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-2); }
.news-thumb {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 40px;
  background:
    radial-gradient(240px 120px at 85% 0%, var(--gold-glow), transparent 70%),
    linear-gradient(150deg, rgba(22, 26, 38, .9), rgba(8, 10, 16, .6));
  border-bottom: 1px solid var(--line);
}
.news-thumb .cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 999px;
}
.news-body { padding: 22px 24px 26px; }
.news-date { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.news-body h3 { font-size: 19px; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- 17. Community ---------- */
.community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
}
.com-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 24, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.com-link:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow-1); color: var(--text); }
.com-link .ic {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 21px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--line);
}
.com-link.discord:hover .ic { color: #8b9cf7; box-shadow: 0 0 18px rgba(107, 125, 245, .3); }
.com-link.telegram:hover .ic { color: #5aa8f0; box-shadow: 0 0 18px rgba(74, 158, 240, .3); }

/* ---------- 18. FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 24, .6);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item.open { border-color: var(--line-gold); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease;
}
.faq-q:hover { color: var(--gold-light); }
.faq-q .icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  transition: transform .3s ease, background .3s ease;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--gold-soft); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- 19. Forms (auth) ---------- */
.auth-card, .auth-section, .auth-form, form[data-auth] {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  padding: 40px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.form-input, .form-group input, .form-group select, .form-group textarea, input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(5, 6, 10, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus, .form-group input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.auth-error, .alert-error {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(224, 86, 79, .3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.auth-success, .alert-success {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(79, 191, 111, .3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14.5px; }
.alert-error { color: var(--red); background: var(--red-bg); border: 1px solid rgba(224, 86, 79, .3); }
.alert-success { color: var(--green); background: var(--green-bg); border: 1px solid rgba(79, 191, 111, .3); }
.auth-switch { text-align: center; margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.auth-switch a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.auth-switch a:hover { color: var(--gold-light); }

/* ---------- 20. Tables (rating, admin-ish) ---------- */
.table-wrap, .info-table { overflow-x: auto; }
.rating-table, .info-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(13, 16, 24, .6);
}
.rating-table th, .info-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, .05);
  border-bottom: 1px solid var(--line);
}
.rating-table td, .info-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, .06);
  font-size: 14.5px;
  color: var(--text);
}
.rating-table tbody tr:hover, .info-table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.rating-table tbody tr:last-child td, .info-table tbody tr:last-child td { border-bottom: none; }

/* ---------- 21. Legacy panels / misc ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  padding: 26px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 24, .6);
  padding: 22px;
}
.content-section { padding: 26px 0; }
.clean-list li { padding: 8px 0; color: var(--text-dim); border-bottom: 1px solid rgba(212, 175, 55, .06); }
.clean-list li::before { content: "✦ "; color: var(--gold); font-size: 11px; }

/* Vote page */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vote-card, .vote-sites .panel, .reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 24, .6);
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.vote-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.vote-card img { max-height: 60px; }
.vote-badge { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); background: var(--green-bg); padding: 4px 12px; border-radius: 999px; }
.vote-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.vote-stats-grid .panel { text-align: center; }
.vote-stats-grid .panel .big { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold-light); }
.vote-title { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 18px; }
.vote-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

/* Rating page */
.rating-page .rating-table { max-width: 900px; margin: 0 auto; }
.big { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold-light); }
.num { color: var(--gold-light); }

/* Status page */
.stat-card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.stat-card span { font-size: 36px; display: block; margin-bottom: 8px; }
.stat-card strong { font-size: 28px; color: var(--gold-light); display: block; font-family: var(--serif); }
.stat-card small { color: var(--muted); font-size: 13px; }

/* Панель: адаптивные гриды-таблицы */
.p-grid5 { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; gap: 8px; }
.p-grid4 { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr; gap: 8px; }
@media (max-width: 640px) {
  .p-grid5, .p-grid4 { grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }
}
.status-page .status-grid-simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.status-icon { font-size: 30px; }
.status-text .name { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.status-text .state { font-size: 13px; color: var(--muted); }
.status-page .online { color: var(--green); }
.status-page .offline { color: var(--red); }
.status-banner, .server-status-banner {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30, 26, 12, .5), rgba(10, 11, 16, .85));
  padding: 22px 28px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

/* Rules / about lists */
.rules-section, .rules-body { max-width: 860px; margin: 0 auto; }
.rule-group { margin-bottom: 34px; }
.rule-group h2 { font-size: 24px; color: var(--gold-light); margin-bottom: 16px; }
.rule-card {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(13, 16, 24, .55);
  margin-bottom: 12px;
}
.rule-card p { color: var(--muted); font-size: 15px; }
.setup-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(212, 175, 55, .06); }
.setup-list .step-num { font-family: var(--serif); color: var(--gold); font-weight: 700; }
.text-list li { padding: 10px 0; border-bottom: 1px solid rgba(212, 175, 55, .06); color: var(--text-dim); }
.content-section h2, .rules-body h2 { color: var(--gold-light); margin-bottom: 14px; }
.content-section p, .rules-body p { color: var(--muted); margin-bottom: 14px; }

/* Download page */
.download-section .download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 19, 28, .85), rgba(8, 10, 16, .8));
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.download-info h3 { font-size: 24px; margin-bottom: 8px; }
.download-info p { color: var(--muted); font-size: 15px; }
.download-info .meta { font-size: 13px; color: var(--gold); letter-spacing: .08em; }
.download-info span { color: var(--text-dim); }

/* CTA section */
.cta-section { text-align: center; border: 1px solid var(--line-gold); border-radius: var(--radius); background: linear-gradient(160deg, rgba(30, 26, 12, .45), rgba(8, 10, 16, .85)); padding: 64px 32px; }
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.page-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Tabs (legacy) */
.tab-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab-bar button, .tab-bar a {
  padding: 12px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color .2s ease, border-color .2s ease;
}
.tab-bar button:hover, .tab-bar a:hover { color: var(--gold-light); }
.tab-bar button.active, .tab-bar a.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Filters */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-tabs button {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s ease;
}
.filter-tabs button:hover { color: var(--gold-light); border-color: var(--line-gold); }
.filter-tabs button.active { color: #14100a; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: var(--gold); }

/* ---------- 22. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 10, 16, .6), rgba(3, 4, 8, .95));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.footer-meta { color: var(--gold); font-size: 13.5px !important; letter-spacing: .06em; }
.footer-start { color: var(--text-muted) !important; font-size: 13px !important; }
.footer-logo { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); }
.footer-logo::first-letter { color: var(--gold); }
.footer-nav h3, .footer-social h3, .footer-contact h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav a, .footer-social a, .footer-contact a {
  display: block;
  padding: 7px 0;
  color: var(--text-dim);
  font-size: 14.5px;
}
.footer-nav a:hover, .footer-social a:hover, .footer-contact a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-vote {
  border-top: 1px solid rgba(212, 175, 55, .08);
  padding: 36px 0;
  background: rgba(0, 0, 0, .25);
}
.footer-vote .vote-title {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.footer-vote .vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.footer-vote .vote-grid a {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
  line-height: 0;
}
.footer-vote .vote-grid a:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.footer-vote .vote-grid img {
  max-height: 42px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, .08);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-theme { color: var(--gold-dim); letter-spacing: .08em; }
.footer-bottom .tops a { color: var(--text-muted); margin-left: 14px; font-size: 13px; }
.footer-bottom .tops a:hover { color: var(--gold); }

/* ---------- 23. Floating UI ---------- */
.scroll-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--gold);
  background: rgba(10, 12, 18, .85);
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { box-shadow: var(--shadow-gold); color: var(--gold-light); }

.cookie-banner {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 150;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(10, 12, 18, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  font-size: 13.5px;
  color: var(--text-dim);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner button {
  align-self: flex-start;
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14100a;
  font-weight: 700;
  font-size: 13.5px;
  transition: filter .2s ease;
}
.cookie-banner button:hover { filter: brightness(1.08); }

/* ---------- 24. Animations & utilities ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Контент всегда виден; JS только мягко добавляет состояние без риска пустых секций. */
html.js .reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}


/* ---------- 24.1. Utilities & component scale ---------- */
/* Кнопки: размеры */
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 999px; }
.btn-lg { padding: 17px 38px; font-size: 16px; border-radius: 999px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* Карточки: hover-подъём (утилита поверх базовых компонентов) */
.card-hover { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-gold); box-shadow: var(--shadow-md); }

/* Формы: состояния */
.form-group.is-error input, .form-group.is-error select, .form-group.is-error textarea { border-color: var(--red); }
.form-group.is-error .field-error { display: block; }
.field-error { display: none; margin-top: 8px; font-size: 13px; color: var(--red); }
.form-group input[readonly] { opacity: .7; background: rgba(255,255,255,.03); }

/* Текст-утилиты */
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.fs-sm { font-size: var(--text-sm); }
.fs-lg { font-size: var(--text-lg); }

/* Отступы-утилиты */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Контейнеры-утилиты */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); border: none; margin: var(--space-6) 0; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1024px) {
  section { padding: 76px 0; }
  .epic-wrap { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .donate-card { margin: 0 28px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 26px;
    background: rgba(5, 6, 10, .96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: var(--gold-soft); }
  .hero { min-height: 88vh; }
  .hero-content { padding: 130px 0 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-vote .vote-grid { gap: 8px; }
  .donate-list { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  section { padding: 60px 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-panel { padding: 24px 20px; }
  .epic-row { grid-template-columns: auto 1fr auto; }
  .epic-time { grid-column: 2 / 4; text-align: left; min-width: 0; }
  .leaderboard-row { padding: 12px 16px; }
  .auth-card, .auth-section, form[data-auth] { padding: 26px 20px; }
  .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .scroll-top { right: 16px; bottom: 16px; }
  .donate-card { margin: 0 16px 20px; padding: 28px 22px; }
}
