/* ============================================================
   GTA5Mirage — основная таблица стилей
   Полная сборка: базовая + форум + wiki + новые секции

   СТРУКТУРА:
     1.  Переменные и сброс
     2.  Типографика и утилиты
     3.  Топбар и навигация
     4.  Кнопки
     5.  HERO V2 (главная)
     6.  Платежная полоса
     7.  Секции
     8.  Карточки (grid)
     9.  Steps
     10. About-grid
     11. IP-card
     12. Калькулятор
     13. Модальные окна
     14. Формы
     15. Toast
     16. Footer
     17. Таблицы
     18. Spinner
     19. Legal (оферта/ПДн/cookies)
     20. Forum teaser (на главной)
     21. CTA final
     22. МЕДИА — галерея
     23. ФРАКЦИИ
     24. НОВОСТИ
     25. FAQ-тизер
     26. FORUM — hero
     27. FORUM — layout
     28. FORUM — категории
     29. FORUM — темы
     30. FORUM — sidebar
     31. FORUM — заголовки / крошки / теги
     32. FORUM — посты и ответы
     33. WIKI
     34. COOKIE-БАННЕР
     35. Scrollbar
     36. Анимации
     37. Responsive
   ============================================================ */

/* ============================================================
   1. ПЕРЕМЕННЫЕ И СБРОС
   ============================================================ */
:root {
  --bg-0: #0a0a0f;
  --bg-1: #121218;
  --bg-2: #1a1a22;
  --bg-3: #242430;

  --gold: #e0a343;
  --gold-2: #f2c069;
  --accent: #ff8a3d;
  --accent-2: #ff5f2e;

  --text: #f6ecd9;
  --text-soft: #a89b87;
  --text-dim: #6b5f4f;

  --border: rgba(224, 163, 67, .15);
  --border-2: rgba(224, 163, 67, .28);

  --danger: #ff4d4d;
  --ok: #4ade80;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --shadow-gold: 0 10px 40px rgba(224, 163, 67, .2);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse at top right, rgba(224, 163, 67, .06), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255, 95, 46, .05), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ============================================================
   2. ТИПОГРАФИКА И УТИЛИТЫ
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  line-height: 1.15;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--gold-2);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-soft); }
.small { font-size: 13px; }
.gold  { color: var(--gold); }
.accent { color: var(--accent); }

.error {
  padding: 20px;
  background: rgba(255, 77, 77, .08);
  border: 1px solid rgba(255, 77, 77, .3);
  border-radius: var(--radius);
  color: var(--danger);
}

/* ============================================================
   3. ТОПБАР
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
  flex-wrap: nowrap;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.tb-logo em {
  font-style: normal;
  color: var(--gold);
}

.tb-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  color: #1a0f00;
  display: grid;
  place-items: center;
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(224, 163, 67, .4);
}

.tb-logo-mark-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1a1a22;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.tb-online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 14px;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .2);
  border-radius: 100px;
  flex-shrink: 0;
}

.tb-online .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s infinite;
}

.tb-ip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}

.tb-ip:hover {
  border-color: var(--border-2);
  background: var(--bg-3);
}

.tb-ip svg {
  width: 14px;
  height: 14px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.tb-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.tb-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}

.tb-nav a:hover {
  color: var(--text);
  background: rgba(224, 163, 67, .08);
}

.tb-nav a.active {
  color: var(--gold);
  background: rgba(224, 163, 67, .1);
}

.tb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.tb-user:hover {
  border-color: var(--border-2);
  color: inherit;
}

.tb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a0f00;
  font-size: 13px;
  flex-shrink: 0;
}

.tb-user-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.tb-user-dp {
  font-size: 12px;
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

/* ============================================================
   4. КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  color: #1a0f00;
  box-shadow: 0 8px 24px rgba(224, 163, 67, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 163, 67, .5);
  color: #1a0f00;
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text);
  border: 1.5px solid transparent;
}

.btn-ghost:hover {
  background: var(--bg-3);
  border-color: var(--border);
}

.btn-block { width: 100%; }

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: 12px;
}

.btn svg { flex-shrink: 0; }

/* ============================================================
   5. HERO V2 (главная)
   ============================================================ */
.hero-v2 {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 80px 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(224, 163, 67, .22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 95, 46, .15), transparent 55%),
    linear-gradient(180deg, #0a0a0f 0%, #0e0d10 60%, #0a0a0f 100%);
  z-index: 0;
}

.hero-v2-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 3px);
}

.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-v2-content h1 {
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.02;
  margin: 20px 0 24px;
  color: var(--text);
}

.hero-v2-content h1 .gold {
  background: linear-gradient(135deg, #f2c069, #ff5f2e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-v2-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-v2-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-v2-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(26, 26, 34, .55);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  max-width: fit-content;
}

.hvs-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hvs-item b {
  font-family: 'Russo One', sans-serif;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}

.hvs-item span {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hvs-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-v2-art {
  position: relative;
  height: 480px;
  display: grid;
  place-items: center;
}

.hero-v2-logo {
  position: relative;
  z-index: 3;
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 30px 80px rgba(224, 163, 67, .55));
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-v2-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 163, 67, .35), transparent 65%);
  filter: blur(50px);
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite;
}

.hero-v2-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 163, 67, .25);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-v2-orbit-1 {
  width: 380px; height: 380px;
  animation: heroSpin 40s linear infinite;
}

.hero-v2-orbit-1::after {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--gold);
}

.hero-v2-orbit-2 {
  width: 460px; height: 460px;
  border-color: rgba(224, 163, 67, .12);
  animation: heroSpin 60s linear infinite reverse;
}

.hero-v2-orbit-2::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
}

.hero-v2-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text-soft);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 3;
}

.hero-v2-scroll svg { width: 18px; height: 18px; }

/* ============================================================
   6. ПЛАТЕЖНАЯ ПОЛОСА
   ============================================================ */
.logos-bar {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(18, 18, 24, .4);
}

.logos-bar .container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pay-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.pay-icon {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-soft);
  letter-spacing: .05em;
  background: rgba(224, 163, 67, .04);
  white-space: nowrap;
}

/* ============================================================
   7. СЕКЦИИ
   ============================================================ */
.section { padding: 90px 0; }
.section-alt { background: rgba(18, 18, 24, .5); }

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 56px;
  font-size: 16px;
}

/* ============================================================
   8. КАРТОЧКИ (grid)
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .9), rgba(18, 18, 24, .9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(224, 163, 67, .08), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}

.card:hover::before { opacity: 1; }

.card-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  color: #1a0f00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(224, 163, 67, .4);
  z-index: 1;
}

.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(224, 163, 67, .15), rgba(255, 95, 46, .1));
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-title {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-soft);
  flex: 1;
  margin-bottom: 22px;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-price {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: var(--gold);
}

.card .btn {
  padding: 10px 18px;
  font-size: 13px;
}

/* ============================================================
   9. STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  padding: 32px 26px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .9), rgba(18, 18, 24, .9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.step-num {
  display: inline-block;
  font-family: 'Russo One', sans-serif;
  font-size: 44px;
  background: linear-gradient(135deg, var(--gold-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* ============================================================
   10. ABOUT-GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.about-text p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-list li {
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.about-visual {
  text-align: center;
  position: relative;
}

.about-logo-big {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 50px rgba(224, 163, 67, .4));
  animation: floatAbout 8s ease-in-out infinite;
}

.about-quote {
  margin-top: 32px;
  padding: 22px;
  background: rgba(26, 26, 34, .6);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

/* ============================================================
   11. IP-CARD
   ============================================================ */
.ip-card {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(224, 163, 67, .08), rgba(255, 95, 46, .04));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ip-card-info {
  flex: 1;
  min-width: 240px;
}

.ip-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  color: var(--gold);
  font-weight: 600;
  margin: 6px 0 4px;
  word-break: break-all;
}

/* ============================================================
   12. КАЛЬКУЛЯТОР
   ============================================================ */
.calc {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .95), rgba(18, 18, 24, .95));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calc-row { margin-bottom: 24px; }

.calc-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.calc-row input {
  width: 100%;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  background: var(--bg-0);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: all .15s;
}

.calc-row input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 163, 67, .15);
}

.calc-result {
  padding: 24px;
  background: var(--bg-0);
  border-radius: 14px;
  border: 1px dashed var(--border-2);
}

.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-soft);
  gap: 12px;
}

.calc-line b {
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

.calc-line.bonus b { color: var(--ok); }

.calc-line.total {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 17px;
}

.calc-line.total b {
  font-family: 'Russo One', sans-serif;
  font-size: 26px;
  color: var(--gold);
}

/* ============================================================
   13. МОДАЛЬНЫЕ ОКНА
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-win {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .25s;
}

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color .15s;
}

.modal-close:hover { color: var(--gold); }

.modal h2,
.modal-title {
  font-size: 24px;
  margin-bottom: 12px;
  font-family: 'Russo One', sans-serif;
}

.modal p,
.modal-text {
  color: var(--text-soft);
  margin-bottom: 20px;
}

.confirm-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.confirm-icon {
  font-size: 36px;
  line-height: 1;
}

.confirm-name {
  font-family: 'Russo One', sans-serif;
  color: var(--gold);
  font-size: 18px;
}

.confirm-desc {
  color: var(--text-soft);
  font-size: 13px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.confirm-row:last-of-type { border-bottom: none; }

/* ============================================================
   14. ФОРМЫ
   ============================================================ */
.form label {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-0);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all .15s;
}

.form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 163, 67, .12);
}

/* ============================================================
   15. TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  max-width: 400px;
  animation: toastIn .3s;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .3s;
}

.toast.ok  { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: 'Russo One', sans-serif;
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col a:hover { color: var(--gold); }

.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0;
  line-height: 1.6;
}

.footer-brand b { color: var(--gold); }

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.footer-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s infinite;
}

.copyright {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

.copyright p { margin: 4px 0; }

/* ============================================================
   17. ТАБЛИЦЫ
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-soft);
  background: var(--bg-2);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(224, 163, 67, .03); }

/* ============================================================
   18. SPINNER
   ============================================================ */
.spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 3px solid var(--bg-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinSimple .8s linear infinite;
}

/* ============================================================
   19. LEGAL
   ============================================================ */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 32px;
  color: var(--gold);
}

.legal p,
.legal li {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.legal b { color: var(--text); }

.legal ul {
  padding-left: 20px;
  margin: 10px 0;
}

/* ============================================================
   20. FORUM TEASER (на главной)
   ============================================================ */
.forum-teaser {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(26, 26, 34, .9), rgba(18, 18, 24, .9));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
}

.forum-teaser-preview { position: relative; }

.forum-mini {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.forum-mini-head {
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-soft);
}

.forum-mini-title { display: block; }

.forum-mini-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forum-mini-item:last-child { border-bottom: none; }

.forum-mini-item b {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.forum-mini-item span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================================
   21. CTA FINAL
   ============================================================ */
.cta-final {
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(224, 163, 67, .15), transparent 70%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.cta-final p {
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 17px;
}

.cta-final-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   22. МЕДИА — галерея
   ============================================================ */
.media-section { padding-top: 60px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.media-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-color: #15151c;
  border: 1px solid var(--border);
}

.media-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}

.media-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85) 100%),
    radial-gradient(circle at 50% 50%, rgba(224, 163, 67, .12), transparent 70%);
  z-index: 1;
}

.media-tile-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.media-tile-overlay { color: var(--text); }

.media-tile-title {
  font-family: 'Russo One', sans-serif;
  font-size: 17px;
  margin-bottom: 4px;
}

.media-tile-sub {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}

.media-tile-big {
  grid-column: span 2;
  grid-row: span 2;
}

.media-tile-big .media-tile-title { font-size: 22px; }
.media-tile-wide { grid-column: span 2; }

/* ============================================================
   23. ФРАКЦИИ
   ============================================================ */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.faction-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .92), rgba(18, 18, 24, .92));
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: all .3s;
  overflow: hidden;
}

.faction-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.faction-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}

.faction-card:hover::before { opacity: 1; }

.faction-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--c1, var(--gold)), var(--c2, var(--accent-2)));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  margin-bottom: 18px;
}

.faction-title {
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.faction-desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 66px;
}

.faction-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(224, 163, 67, .12);
  border: 1px solid var(--border-2);
  color: var(--gold);
  border-radius: 100px;
}

/* ============================================================
   24. НОВОСТИ
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(26, 26, 34, .92), rgba(18, 18, 24, .92));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
  color: inherit;
}

.news-cover {
  height: 180px;
  background: linear-gradient(135deg, rgba(224, 163, 67, .18), rgba(255, 95, 46, .1));
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.news-cover-emoji { font-size: 48px; opacity: .8; }

.news-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.news-cat {
  padding: 3px 10px;
  background: rgba(224, 163, 67, .15);
  border: 1px solid var(--border-2);
  color: var(--gold);
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.news-date { color: var(--text-dim); }

.news-title {
  font-family: 'Russo One', sans-serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-excerpt {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.news-more {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

/* ============================================================
   25. FAQ-тизер
   ============================================================ */
.faq-teaser {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .9), rgba(18, 18, 24, .9));
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all .2s;
}

.faq-item[open] {
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(224, 163, 67, .05), transparent);
}

.faq-item summary {
  font-family: 'Russo One', sans-serif;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: -2px;
  font-size: 24px;
  color: var(--gold);
  transition: transform .2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

/* ============================================================
   26. FORUM — hero
   ============================================================ */
.forum-hero {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
}

.forum-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(224, 163, 67, .18), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(255, 95, 46, .1), transparent 60%),
    linear-gradient(180deg, #0a0a0f 0%, #0e0d11 100%);
  z-index: 0;
}

.forum-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.forum-hero-content h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  margin: 16px 0 20px;
}

.forum-hero-lead {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.forum-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.forum-hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 28px;
  background: rgba(26, 26, 34, .6);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.fhs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 72px;
}

.fhs-item b {
  font-family: 'Russo One', sans-serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

.fhs-item span {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fhs-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   27. FORUM — layout
   ============================================================ */
.forum-main { padding: 40px 0 80px; }

.forum-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.forum-content { min-width: 0; }

/* ============================================================
   28. FORUM — категории
   ============================================================ */
.forum-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .95), rgba(18, 18, 24, .95));
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .3s;
  overflow: hidden;
}

.forum-cat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent-2));
  opacity: 0;
  transition: opacity .3s;
}

.forum-cat:hover {
  transform: translateX(4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
  color: inherit;
}

.forum-cat:hover::before { opacity: 1; }

.forum-cat-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(135deg, rgba(224, 163, 67, .12), rgba(255, 95, 46, .08));
  border: 1px solid var(--border-2);
  border-radius: 16px;
  flex-shrink: 0;
}

.forum-cat-body { flex: 1; min-width: 0; }

.forum-cat-name {
  font-family: 'Russo One', sans-serif;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 4px;
}

.forum-cat-desc { font-size: 13px; }

.forum-cat-stats {
  display: flex;
  gap: 22px;
  flex-shrink: 0;
}

.forum-cat-stats > div {
  text-align: center;
  min-width: 60px;
}

.forum-cat-stats b {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.forum-cat-stats span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   29. FORUM — темы
   ============================================================ */
.forum-topic {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.forum-topic:hover {
  border-color: var(--border-2);
  background: rgba(224, 163, 67, .04);
  color: inherit;
  transform: translateX(3px);
}

.forum-topic-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #1a0f00;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  box-shadow: 0 4px 12px rgba(224, 163, 67, .3);
}

.forum-topic-main { flex: 1; min-width: 0; }

.forum-topic-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  word-wrap: break-word;
}

.forum-topic-meta { font-size: 12px; }
.forum-topic-meta b { color: var(--gold); }

.forum-topic-stats {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}

.forum-topic-stats > div {
  text-align: center;
  min-width: 56px;
}

.forum-topic-stats b {
  display: block;
  font-family: 'Russo One', sans-serif;
  color: var(--gold);
  font-size: 15px;
}

.forum-topic-stats span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   30. FORUM — sidebar
   ============================================================ */
.forum-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.forum-widget {
  background: linear-gradient(180deg, rgba(26, 26, 34, .95), rgba(18, 18, 24, .95));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.fw-head {
  padding: 14px 18px;
  background: rgba(224, 163, 67, .06);
  border-bottom: 1px solid var(--border);
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fw-body { padding: 12px 14px 16px; }

.fw-topic {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}

.fw-topic:last-child { border-bottom: none; }

.fw-topic:hover {
  background: rgba(224, 163, 67, .06);
  color: inherit;
}

.fw-topic-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw-topic-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.fw-topic-meta b { color: var(--gold); }
.forum-widget-cta .fw-body { padding: 16px 18px; }

/* ============================================================
   31. FORUM — заголовки / крошки / теги
   ============================================================ */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.forum-h2 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
  color: var(--text);
}

.forum-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-soft);
}

.forum-breadcrumbs a { color: var(--gold); }
.forum-breadcrumbs a:hover { color: var(--gold-2); }
.forum-breadcrumbs .sep { color: var(--text-dim); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 100px;
  background: rgba(224, 163, 67, .12);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 6px;
  vertical-align: middle;
}

.tag-gold {
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  color: #1a0f00;
}

/* ============================================================
   32. FORUM — посты и ответы
   ============================================================ */
.forum-thread { margin-top: 24px; }

.forum-thread-title {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 8px;
  word-wrap: break-word;
}

.forum-thread-meta { margin-bottom: 24px; }
.forum-thread-meta b { color: var(--gold); }

.forum-post {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
}

.forum-post-op {
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(224, 163, 67, .05), transparent);
}

.forum-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #1a0f00;
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
}

.forum-post-body { flex: 1; min-width: 0; }

.forum-post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-post-head b {
  color: var(--gold);
  font-weight: 700;
}

.forum-post-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.forum-post-text a {
  color: var(--gold);
  text-decoration: underline;
  word-break: break-all;
}

.forum-post-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn-like {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
}

.btn-like:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-like:active { transform: scale(.97); }

.btn-like.liked {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(224, 163, 67, .1);
}

.forum-reply {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.forum-reply h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.forum-reply-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.forum-label {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
}

.forum-input,
.forum-select,
.forum-textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-0);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.forum-input:focus,
.forum-select:focus,
.forum-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 163, 67, .12);
}

.forum-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  font-family: inherit;
}

.forum-select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.forum-select option {
  background: var(--bg-1);
  color: var(--text);
}

.forum-field-hint {
  margin-top: 6px;
  text-align: right;
}

.forum-preview {
  margin: 20px 0;
  padding: 18px;
  background: var(--bg-0);
  border: 1px dashed var(--border-2);
  border-radius: 12px;
}

.forum-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   33. WIKI
   ============================================================ */
.wiki-hero {
  position: relative;
  padding: 60px 0 50px;
  overflow: hidden;
  text-align: center;
}

.wiki-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(224, 163, 67, .18), transparent 60%),
    linear-gradient(180deg, #0a0a0f 0%, #0e0d11 100%);
  z-index: 0;
}

.wiki-hero-inner {
  position: relative;
  z-index: 1;
}

.wiki-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 12px 0 16px;
}

.wiki-hero-lead {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.wiki-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.wiki-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

.wiki-search-input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-family: inherit;
  font-size: 16px;
  background: rgba(26, 26, 34, .9);
  border: 1.5px solid var(--border-2);
  border-radius: 14px;
  color: var(--text);
  transition: all .2s;
  backdrop-filter: blur(10px);
}

.wiki-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 163, 67, .15);
}

.wiki-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(18, 18, 24, .98);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 20;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
}

.wsr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.wsr-item:last-child { border-bottom: none; }
.wsr-item:hover { background: rgba(224, 163, 67, .06); color: inherit; }
.wsr-icon { font-size: 20px; }

.wsr-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.wsr-cat {
  font-size: 12px;
  color: var(--text-dim);
}

.wsr-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.wiki-main { padding: 40px 0 80px; }

.wiki-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.wiki-sidebar {
  position: sticky;
  top: 90px;
  background: linear-gradient(180deg, rgba(26, 26, 34, .95), rgba(18, 18, 24, .95));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.wiki-sidebar-head {
  padding: 14px 18px;
  background: rgba(224, 163, 67, .06);
  border-bottom: 1px solid var(--border);
  font-family: 'Russo One', sans-serif;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.wiki-sidebar-nav {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wiki-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}

.wiki-nav-item:hover {
  background: rgba(224, 163, 67, .08);
  color: var(--text);
}

.wiki-nav-item.active {
  background: rgba(224, 163, 67, .14);
  color: var(--gold);
}

.wiki-nav-icon { font-size: 18px; }
.wiki-nav-name { flex: 1; }

.wiki-nav-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(224, 163, 67, .1);
  color: var(--gold);
  font-weight: 700;
}

.wiki-content { min-width: 0; }

.wiki-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wiki-article {
  background: linear-gradient(180deg, rgba(26, 26, 34, .95), rgba(18, 18, 24, .95));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
}

.wiki-article-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.wiki-article-cat {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(224, 163, 67, .1);
  border: 1px solid var(--border-2);
  color: var(--gold);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wiki-article-title {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.wiki-article-meta { font-size: 13px; }

.wiki-article-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

.wiki-article-body h1,
.wiki-article-body h2,
.wiki-article-body h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  font-family: 'Russo One', sans-serif;
}

.wiki-article-body h1 { font-size: 28px; }
.wiki-article-body h2 { font-size: 22px; color: var(--gold); }
.wiki-article-body h3 { font-size: 18px; }

.wiki-article-body p {
  margin-bottom: 16px;
  color: var(--text-soft);
}

.wiki-article-body b { color: var(--text); }

.wiki-article-body ul {
  padding-left: 24px;
  margin: 14px 0 20px;
}

.wiki-article-body li {
  color: var(--text-soft);
  margin-bottom: 6px;
  line-height: 1.7;
}

.wiki-article-body a {
  color: var(--gold);
  text-decoration: underline;
  word-break: break-word;
}

.wiki-article-body code {
  padding: 2px 8px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--gold);
}

/* ============================================================
   34. COOKIE-БАННЕР
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  padding: 16px;
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(18, 18, 24, .96);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner-text b {
  display: block;
  color: var(--text);
  font-family: 'Russo One', sans-serif;
  font-size: 15px;
  margin-bottom: 4px;
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 12px 26px;
}

/* ============================================================
   35. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track { background: var(--bg-0); }

::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover { background: var(--gold); }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) var(--bg-0);
}

/* ============================================================
   36. АНИМАЦИИ
   ============================================================ */
@keyframes pulse {
  50% { opacity: .4; }
}

@keyframes spinSimple {
  to { transform: rotate(360deg); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.02); }
}

@keyframes heroGlow {
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: .7; }
}

@keyframes heroSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scrollBounce {
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes floatAbout {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

/* ============================================================
   37. RESPONSIVE
   ============================================================ */

/* Планшеты горизонтально */
@media (max-width: 1100px) {
  .tb-nav { gap: 0; }
  .tb-nav a { padding: 8px 10px; font-size: 13px; }
}

/* Планшеты */
@media (max-width: 960px) {
  .tb-nav { display: none; }

  .hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-v2-cta { justify-content: center; }
  .hero-v2-stats { margin: 0 auto; }
  .hero-v2-art { height: 320px; }
  .hero-v2-logo { width: 220px; height: 220px; }
  .hero-v2-orbit-1 { width: 280px; height: 280px; }
  .hero-v2-orbit-2 { width: 340px; height: 340px; }
  .hero-v2-glow { width: 340px; height: 340px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-grid,
  .forum-teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .forum-teaser { padding: 32px 24px; }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .media-tile-big { grid-column: span 2; grid-row: span 1; }

  .forum-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .forum-hero-cta { justify-content: center; }
  .forum-hero-stats { margin: 0 auto; }

  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar {
    position: static;
    order: -1;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .forum-widget {
    min-width: 280px;
    flex-shrink: 0;
  }

  .wiki-layout { grid-template-columns: 1fr; gap: 20px; }
  .wiki-sidebar { position: static; }
  .wiki-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  .wiki-nav-item { flex-shrink: 0; }
  .wiki-article { padding: 28px 22px; }
}

/* Мобильные */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .hero-v2 { min-height: auto; padding: 50px 0 60px; }
  .hero-v2-stats { flex-direction: row; gap: 14px; padding: 14px 18px; }
  .hvs-item b { font-size: 20px; }
  .hvs-item span { font-size: 9px; }
  .btn-xl { padding: 15px 24px; font-size: 15px; width: 100%; justify-content: center; }
  .hero-v2-cta .btn { width: 100%; }

  .section { padding: 56px 0; }
  .section-sub { margin-bottom: 36px; }

  .calc { padding: 22px; }

  .ip-card {
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ip-card .btn { width: 100%; }

  .tb-online,
  .tb-ip { display: none; }

  .topbar-inner { gap: 12px; height: 60px; }
  .tb-logo { font-size: 17px; }
  .tb-logo-mark,
  .tb-logo-mark-img { width: 32px; height: 32px; }

  .cta-final { padding: 40px 22px; }
  .modal-win { padding: 26px 22px; }
  .toast {
    left: 16px; right: 16px;
    bottom: 16px;
    max-width: none;
  }

  /* Галерея */
  .media-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .media-tile-big,
  .media-tile-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Форум */
  .forum-hero { padding: 40px 0 32px; }
  .forum-hero-stats { padding: 16px 18px; gap: 12px; }
  .fhs-item b { font-size: 20px; }
  .fhs-item span { font-size: 9px; }
  .fhs-item { min-width: 56px; }

  .forum-cat {
    padding: 18px;
    flex-wrap: wrap;
  }
  .forum-cat-icon { width: 48px; height: 48px; font-size: 24px; }
  .forum-cat-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .forum-topic {
    flex-wrap: wrap;
    padding: 14px;
  }
  .forum-topic-stats {
    width: 100%;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .forum-post {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .forum-post-avatar { width: 38px; height: 38px; font-size: 14px; }

  .forum-reply { padding: 18px; }
  .forum-actions { flex-direction: column; align-items: stretch; }

  .table { font-size: 13px; }
  .table th,
  .table td { padding: 10px 12px; }

  .legal { padding: 40px 16px; }

  /* Wiki */
  .wiki-hero { padding: 40px 0 32px; }
  .wiki-search-input { padding: 15px 18px 15px 46px; font-size: 15px; }
  .wiki-search-icon { left: 16px; width: 18px; height: 18px; }

  /* Cookie */
  .cookie-banner { padding: 10px; }
  .cookie-banner-inner {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .hero-v2-content h1 { font-size: 32px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .hero-v2-cta .btn { width: 100%; }

  .forum-cat-stats > div,
  .forum-topic-stats > div { min-width: 44px; }
}

/* Уважаем предпочтения пользователя */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}