/* ==========================================================================
   MRairCraft — Home page styles (index.html)
   ========================================================================== */

:root {
  --font: 'Dotumche Pixel', 'Pixelify Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-pixel: 'Dotumche Pixel', 'Classic Console Neue', 'Press Start 2P', 'Pixelify Sans', monospace;

  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #131f36;
  --surface-2: #1a2943;
  --line: rgba(148, 163, 184, 0.16);

  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;

  --aqua: #38bdf8;
  --aqua-deep: #0284c7;
  --gold: #fbbf24;
  --green: #22c55e;
  --red: #f87171;
  --orange: #fb923c;
  --purple: #c084fc;

  /* Цвета для наложений и кнопок (меняются в светлой теме) */
  --ink-rgb: 11, 18, 32;
  --surface-rgb: 19, 31, 54;
  --cta-from: #0c4a6e;
  --on-accent: #04121f;
  --on-gold: #1f1500;
  --ok-text: #bbf7d0;
  --err-text: #fecaca;
  color-scheme: dark;

  --max-w: 1160px;
  --radius: 14px;
}

/* Иконки из icons.svg (спрайт, рисуются цветом текста) */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Шрифт Dotumche Pixel (SIL OFL) — тест для заголовков и меток */
@font-face {
  font-family: 'Dotumche Pixel';
  src: url('DotumchePixel.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Шрифт Classic Console Neue (DeeJayy) — заголовки и метки */
@font-face {
  font-family: 'Classic Console Neue';
  src: url('ClassicConsoleNeue.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Светлая тема: включается атрибутом data-theme="light" на <html> */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #e2e8f0;
  --line: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --aqua: #0284c7;
  --aqua-deep: #0369a1;
  --gold: #b45309;
  --green: #15803d;
  --red: #b91c1c;
  --orange: #c2410c;
  --purple: #7e22ce;
  --ink-rgb: 248, 250, 252;
  --surface-rgb: 255, 255, 255;
  --cta-from: #bae6fd;
  --on-accent: #ffffff;
  --on-gold: #ffffff;
  --ok-text: #14532d;
  --err-text: #7f1d1d;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  /* Фон: пиксельная сетка и два мягких свечения */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.14), transparent 38%),
    radial-gradient(circle at 88% 36%, rgba(34, 197, 94, 0.10), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.07), transparent 45%),
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 32px 32px;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  background: var(--surface-2);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible, .nav-link:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}
.btn-primary { background: var(--aqua); color: var(--on-accent); }
.btn-primary:hover { background: var(--aqua-deep); }
.btn-secondary { background: var(--gold); color: var(--on-gold); }
.btn-secondary:hover { background: var(--gold); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--ink-rgb),0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.brand-title span { color: var(--aqua); }

.site-nav { display: flex; gap: 6px; }
.nav-link {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }

.nav-toggle {
  margin-left: auto;
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* Переключатель темы: в шапке, справа */
.site-nav { margin-left: auto; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 8px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--aqua); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 64px;
  background: var(--bg);
}
/* Фото сервера как размытый фон, поверх затемнение для читаемости текста */
.hero::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: url('hero-main.webp') center 30% / cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--ink-rgb),0.7) 0%, rgba(var(--ink-rgb),0.82) 60%, var(--bg) 100%);
  z-index: -1;
}
.hero-inner { text-align: center; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(var(--surface-rgb),0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15); }
.dot.is-online { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.dot.is-offline { background: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18); }
.status-players { color: var(--text-muted); font-weight: 600; }

.hero-title {
  margin: 22px 0 14px;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-title span { color: var(--aqua); }

.hero-desc {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 36px auto 28px;
  text-align: left;
}
.address-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: rgba(var(--surface-rgb),0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.address-head { display: flex; flex-direction: column; gap: 4px; }
.platform-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 9px;
  border-radius: 6px;
}
.platform-bedrock { color: var(--gold); background: rgba(251, 191, 36, 0.12); }
.address-note { font-size: 0.85rem; color: var(--text-muted); }
.address-code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}
.address-card .btn { width: 100%; }

.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Facts ---------- */
.facts { border-block: 1px solid var(--line); background: var(--bg-alt); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 12px;
  text-align: center;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact-value { font-size: 1.25rem; font-weight: 800; color: var(--text); }

/* Живой счётчик онлайна */
.fact-live .fact-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
}
.fact-live .fact-label { font-weight: 600; color: var(--text-soft); }
.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.fact-label { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt {
  background-color: var(--bg-alt);
  /* Шахматка из пикселей поверх фона секции */
  background-image:
    conic-gradient(rgba(148, 163, 184, 0.035) 25%, transparent 0 50%, rgba(148, 163, 184, 0.035) 0 75%, transparent 0);
  background-size: 24px 24px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; line-height: 1.2; }
.section-head p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Modes ---------- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
/* Цветная полоска сверху: цвет берётся из бейджа режима */
.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--aqua));
  z-index: 2;
}
.mode-card:has(.badge-red) { --accent: var(--red); }
.mode-card:has(.badge-green) { --accent: var(--green); }
.mode-card:has(.badge-orange) { --accent: var(--orange); }
.mode-card:has(.badge-purple) { --accent: var(--purple); }
.mode-card:has(.badge-gold) { --accent: var(--gold); }
.mode-card:has(.badge-aqua) { --accent: var(--aqua); }
.mode-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent, var(--aqua)) 45%, transparent);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent, var(--aqua)) 55%, transparent);
}
.mode-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.mode-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mode-card:hover .mode-media img { transform: scale(1.05); }
/* Виньетка: затемняем края, чтобы взгляд уходил в центр карточки */
.mode-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(11, 18, 32, 0.75) 100%);
  pointer-events: none;
}
.mode-badge {
  z-index: 1;
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb),0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--text);
}
.mode-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.badge-red { color: var(--red); }
.badge-green { color: var(--green); }
.badge-orange { color: var(--orange); }
.badge-purple { color: var(--purple); }
.badge-gold { color: var(--gold); }
.badge-aqua { color: var(--aqua); }
/* Онлайн конкретного режима: в правом верхнем углу фото */
.mode-online {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(var(--ink-rgb),0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}
.mode-online b { color: var(--green); font-weight: 900; font-variant-numeric: tabular-nums; }
.mode-body { padding: 24px 26px 28px; }
.mode-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.mode-body p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
@media (min-width: 761px) {
  .mode-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .mode-card:last-child:nth-child(odd) .mode-media {
    aspect-ratio: auto;
    min-height: 280px;
    height: 100%;
  }
  .mode-card:last-child:nth-child(odd) .mode-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 34px;
  }
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--aqua);
  font-weight: 900;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--aqua); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding-bottom: 18px; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta { padding: 56px 0; background: linear-gradient(135deg, var(--cta-from) 0%, var(--bg) 100%); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { font-size: 1.6rem; font-weight: 900; }
.cta p { color: var(--text-soft); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; gap: 22px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 1.1rem; }
.footer-brand span, .footer-legal { color: var(--text-muted); font-size: 0.85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text-soft); font-size: 0.9rem; font-weight: 600; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 20px 18px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 6px; }

  .hero { padding: 48px 0 44px; }
  .address-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 8px; }
  .fact-value { font-size: 1.05rem; }
  .btn { width: 100%; }
  .hero-links .btn { width: auto; flex: 1 1 auto; }
  .cta-inner .btn { width: 100%; }
}

/* ==========================================================================
   Внутренние страницы: правила и жалоба
   ========================================================================== */

.nav-link.is-active { color: var(--aqua); }

.page-hero {
  padding: 56px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.page-hero h1 span { color: var(--aqua); }
.page-hero p { max-width: 620px; margin: 14px auto 0; color: var(--text-muted); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--aqua); color: var(--aqua); }

/* ---------- Правила ---------- */
.rules-stack {
  max-width: 880px;
  margin: 40px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rule-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.rule-card h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.rule-card-danger { border-color: rgba(248, 113, 113, 0.4); }
.rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--aqua);
  font-size: 0.85rem;
  font-weight: 900;
}
.rule-num-danger { background: rgba(248, 113, 113, 0.16); color: var(--red); }
.rule-num-gold { background: rgba(251, 191, 36, 0.16); color: var(--gold); }
.rule-note { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.rule-list { padding-left: 22px; color: var(--text-soft); font-size: 0.95rem; }
.rule-list li { margin-bottom: 9px; }
.rule-list li:last-child { margin-bottom: 0; }
.rule-list strong { color: var(--text); }
.rule-footnote { margin-top: 16px; color: var(--text-muted); font-size: 0.9rem; }

.table-wrap { overflow-x: auto; }
.penalty-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.penalty-table th, .penalty-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.penalty-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.penalty-table td { color: var(--text-soft); }
.penalty-severe { color: var(--red) !important; font-weight: 700; }

/* ---------- Жалоба ---------- */
.report-card {
  max-width: 780px;
  margin: 40px auto 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.report-card-head { text-align: center; margin-bottom: 28px; }
.report-card-head h2 { font-size: 1.5rem; font-weight: 900; margin-top: 12px; }
.report-card-head p { color: var(--text-muted); margin-top: 6px; font-size: 0.93rem; }
.report-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aqua);
  background: rgba(56, 189, 248, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
}

.report-form { display: flex; flex-direction: column; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-field { display: flex; flex-direction: column; gap: 7px; }
.report-field > label { font-size: 0.88rem; font-weight: 700; color: var(--text-soft); }
.req { color: var(--red); }
.report-hint { font-size: 0.8rem; color: var(--text-muted); }
.label-with-counter { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.desc-counter { font-size: 0.8rem; color: var(--text-muted); }

.report-field input,
.report-field select,
.report-field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.2s;
}
.report-field textarea { resize: vertical; min-height: 120px; }
.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
.report-field select option { background: var(--surface); color: var(--text); }

.report-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--border-soft, rgba(148, 163, 184, 0.35));
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.file-upload:hover { border-color: var(--aqua); color: var(--text-soft); }
.file-upload-icon { font-size: 1.3rem; }
.file-input-hidden { display: none; }

.report-status-box {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.report-status-box.success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: var(--ok-text); }
.report-status-box.error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: var(--err-text); }

.btn-block { width: 100%; font-size: 1rem; padding: 14px; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.report-notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--text-soft);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .report-card { padding: 22px 18px; }
  .rule-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Пиксельный стиль: заголовки и ключевые надписи — Press Start 2P,
   углы и рамки — ступенчатые, как в интерфейсе Minecraft
   ========================================================================== */

img.brand-icon, .mode-media img, .fact-value img { image-rendering: pixelated; }

/* Заголовки и ключевые надписи */
.brand,
.hero-title,
.section-head h2,
.page-hero h1,
.cta h2,
.report-card-head h2,
.rule-card h2,
.mode-body h3,
.step h3,
.fact-value,
.kicker,
.platform-tag,
.step-num,
.rule-num,
.report-badge {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.5;
}

.brand { font-size: 0.8rem; gap: 12px; }
.brand-title span { color: var(--aqua); }
.hero-title { font-size: clamp(1.4rem, 5vw, 2.4rem); line-height: 1.4; }
.section-head h2 { font-size: clamp(0.95rem, 2.6vw, 1.4rem); line-height: 1.6; }
.page-hero h1 { font-size: clamp(1rem, 3vw, 1.5rem); line-height: 1.6; }
.cta h2 { font-size: 0.9rem; line-height: 1.6; }
.report-card-head h2 { font-size: 0.9rem; line-height: 1.6; }
.rule-card h2 { font-size: 0.72rem; line-height: 1.8; }
.mode-body h3 { font-size: 0.8rem; line-height: 1.7; }
.step h3 { font-size: 0.7rem; line-height: 1.7; }
.fact-value { font-size: 0.8rem; }
.fact-live .fact-value { font-size: 1.1rem; text-transform: none; }
.kicker { font-size: 0.55rem; letter-spacing: 0; line-height: 1.8; }
.platform-tag { font-size: 0.5rem; padding: 6px 8px; }
.step-num, .rule-num { font-size: 0.6rem; min-width: 34px; height: 34px; }
.report-badge { font-size: 0.5rem; padding: 8px 10px; }

/* Текст и интерфейс — Pixelify Sans (уже базовый шрифт), чуть крупнее для читаемости */
body { font-size: 1.05rem; }
.nav-link, .btn, .mode-badge, .mode-online, .faq-item summary, .fact-label,
.address-note, .address-code, .status-chip, .penalty-table th {
  font-family: var(--font);
}
.btn { font-size: 1.05rem; font-weight: 600; }
.mode-badge, .mode-online { font-size: 0.85rem; font-weight: 600; }
.faq-item summary { font-size: 1.05rem; }

/* Пиксельные рамки и углы: почти без скруглений, ступенчатая тень */
:root {
  --radius: 4px;
  --pixel-edge: 0 0 0 2px var(--bg), 0 0 0 4px var(--line);
}

.btn {
  border-radius: 0;
  border-width: 2px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28); }
.btn-primary { border-color: #0c4a6e; }
.btn-secondary { border-color: #92400e; }
.btn-ghost { box-shadow: none; }

.address-card, .step, .faq-item, .rule-card, .report-card, .mode-card,
.report-field input, .report-field select, .report-field textarea,
.file-upload, .status-chip, .mode-badge, .mode-online, .fact-live,
.platform-tag, .step-num, .rule-num, .report-badge, .live-dot, .dot {
  border-radius: 0;
}
.address-card, .step, .faq-item, .rule-card, .report-card, .mode-card {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
}
.mode-card:hover {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent, var(--aqua));
}
.mode-badge, .mode-online, .status-chip {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}
.nav-link { border-radius: 0; }
.site-nav .nav-link.is-active { box-shadow: inset 0 -3px 0 var(--aqua); }

/* Пиксельные точки статуса */
.dot, .live-dot { border-radius: 0; }
.live-dot::after { border-radius: 0; }

/* ==========================================================================
   Крупнее текст: пиксельный шрифт мелкий, поэтому поднимаем размеры
   ========================================================================== */

body { font-size: 1.15rem; }

/* Пиксельные заголовки и метки */
.brand { font-size: 0.95rem; }
.kicker { font-size: 0.7rem; }
.platform-tag { font-size: 0.62rem; padding: 7px 10px; }
.fact-value { font-size: 0.95rem; }
.fact-live .fact-value { font-size: 1.4rem; }
.section-head h2 { font-size: clamp(1.1rem, 3vw, 1.6rem); }
.page-hero h1 { font-size: clamp(1.1rem, 3.4vw, 1.7rem); }
.cta h2 { font-size: 1.05rem; }
.report-card-head h2 { font-size: 1.05rem; }
.rule-card h2 { font-size: 0.85rem; }
.mode-body h3 { font-size: 1rem; }
.step h3 { font-size: 0.85rem; }
.step-num, .rule-num { font-size: 0.75rem; }
.report-badge { font-size: 0.62rem; }

/* Пиксельные кнопки и бейджи */
.btn { font-size: 1.2rem; }
.mode-badge, .mode-online { font-size: 1rem; }
.status-chip { font-size: 1.05rem; }
.address-code { font-size: 1.4rem; }

/* Текст: Pixelify Sans */
.address-note, .fact-label, .report-hint, .desc-counter { font-size: 1rem; }
.mode-body p { font-size: 1.1rem; line-height: 1.6; }
.step p, .faq-item p, .rule-list, .cta p, .rule-footnote { font-size: 1.08rem; }
.faq-item summary { font-size: 1.2rem; }
.nav-link { font-size: 1.1rem; }
.hero-desc { font-size: 1.2rem; }
.section-head p, .page-hero p { font-size: 1.15rem; }
.penalty-table { font-size: 1.05rem; }
.penalty-table th { font-size: 0.95rem; }
.report-field > label { font-size: 1.05rem; }
.report-field input, .report-field select, .report-field textarea { font-size: 1.1rem; }
.report-status-box, .report-notice { font-size: 1.05rem; }
.footer-brand span, .footer-legal, .footer-nav a { font-size: 1.05rem; }
.file-upload { font-size: 1.05rem; }

/* ==========================================================================
   Финальные размеры для Pixelify Sans (заменил Press Start 2P: он плохо
   рисует кириллицу, например «Ы» выглядела как большая заглавная)
   ========================================================================== */

.brand { font-size: 1.35rem; }
.hero-title { font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.1; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; }
.cta h2 { font-size: 1.7rem; }
.report-card-head h2 { font-size: 1.6rem; }
.rule-card h2 { font-size: 1.3rem; }
.mode-body h3 { font-size: 1.45rem; }
.step h3 { font-size: 1.25rem; }
.fact-value { font-size: 1.35rem; }
.fact-live .fact-value { font-size: 2.4rem; }
.kicker { font-size: 1rem; letter-spacing: 0.02em; }
.platform-tag { font-size: 0.85rem; padding: 4px 9px; }
.step-num, .rule-num { font-size: 1.1rem; min-width: 38px; height: 38px; }
.report-badge { font-size: 0.95rem; padding: 6px 12px; }
.btn { font-size: 1.2rem; font-weight: 700; }
.mode-badge, .mode-online { font-size: 1.05rem; font-weight: 700; }
.status-chip { font-size: 1.15rem; }
.address-code { font-size: 1.5rem; }
.faq-item summary { font-weight: 700; }

/* ==========================================================================
   Press Start 2P для заголовков: размеры под него (он крупнее Pixelify)
   ========================================================================== */

.brand { font-size: 0.95rem; }
.hero-title { font-size: clamp(1.4rem, 5vw, 2.4rem); line-height: 1.4; }
.section-head h2 { font-size: clamp(1.1rem, 3vw, 1.6rem); line-height: 1.6; }
.page-hero h1 { font-size: clamp(1.1rem, 3.4vw, 1.7rem); line-height: 1.6; }
.cta h2 { font-size: 1.05rem; line-height: 1.6; }
.report-card-head h2 { font-size: 1.05rem; line-height: 1.6; }
.rule-card h2 { font-size: 0.85rem; line-height: 1.8; }
.mode-body h3 { font-size: 1rem; line-height: 1.7; }
.step h3 { font-size: 0.85rem; line-height: 1.7; }
.fact-value { font-size: 0.95rem; }
.fact-live .fact-value { font-size: 1.4rem; }
.kicker { font-size: 0.7rem; line-height: 1.8; }
.platform-tag { font-size: 0.62rem; padding: 7px 10px; }
.step-num, .rule-num { font-size: 0.75rem; min-width: 34px; height: 34px; }
.report-badge { font-size: 0.62rem; padding: 8px 10px; }

/* Classic Console Neue мельче Press Start при том же кегле — поднимаем размеры */
.brand { font-size: 1.2rem; }
.hero-title { font-size: clamp(2rem, 6vw, 3.2rem); }
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.page-hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.cta h2 { font-size: 1.6rem; }
.report-card-head h2 { font-size: 1.4rem; }
.rule-card h2 { font-size: 1.1rem; }
.mode-body h3 { font-size: 1.3rem; }
.step h3 { font-size: 1.1rem; }
.fact-value { font-size: 1.2rem; }
.fact-live .fact-value { font-size: 2rem; }
.kicker { font-size: 0.9rem; }
.platform-tag { font-size: 0.8rem; }
.step-num, .rule-num { font-size: 1rem; }
.report-badge { font-size: 0.8rem; }

/* ==========================================================================
   FAQ, призыв и подвал: карточки, шеврон, сетка колонок
   ========================================================================== */

/* FAQ: акцент слева, шеврон вместо плюса, подсветка открытого */
.faq-item {
  position: relative;
  padding: 0 22px 0 26px;
  transition: border-color 0.2s, background-color 0.2s;
}
.faq-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  bottom: -2px;
  width: 4px;
  background: var(--aqua);
  opacity: 0;
  transition: opacity 0.2s;
}
.faq-item:hover { border-color: color-mix(in srgb, var(--aqua) 40%, transparent); }
.faq-item[open] { background: color-mix(in srgb, var(--surface) 92%, var(--aqua) 8%); }
.faq-item[open]::before { opacity: 1; }
/* Шеврон из двух границ: без mask и data-URI, они подвешивали отрисовку */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin: 0 6px 6px 0;
  border-right: 3px solid var(--aqua);
  border-bottom: 3px solid var(--aqua);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(225deg); }

/* Призыв: карточка с иконкой и двумя кнопками */
.cta { padding: 64px 0; background: none; }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 36px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cta-from) 85%, transparent), var(--surface));
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--aqua) 35%, transparent), 6px 6px 0 rgba(0, 0, 0, 0.3);
}
.cta-text { display: flex; align-items: center; gap: 20px; }
.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: rgba(var(--ink-rgb), 0.6);
  border: 2px solid var(--aqua);
  color: var(--aqua);
}
.cta-icon .icon { width: 2rem; height: 2rem; }
.cta h2 { margin-bottom: 6px; }
.cta p { color: var(--text-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { min-width: 150px; }

/* Подвал: колонки, логотип, соцссылки, нижняя полоса */
.site-footer {
  position: relative;
  padding: 56px 0 28px;
  background: var(--bg-alt);
  border-top: 4px solid var(--aqua);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .brand-icon { width: 40px; height: 40px; }
.footer-logo strong { font-family: var(--font-pixel); font-size: 1rem; text-transform: uppercase; color: var(--text); }
.footer-logo strong span { color: var(--aqua); }
.footer-brand p { color: var(--text-muted); font-size: 1.05rem; max-width: 320px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.social-link:hover { border-color: var(--aqua); color: var(--aqua); text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-col a { color: var(--text-soft); font-size: 1.1rem; }
.footer-col a:hover { color: var(--aqua); text-decoration: none; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cta-card { padding: 24px 20px; }
  .cta-text { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Полоса цифр: иконка сверху, цифра и подпись ровно по центру */
.facts-grid { align-items: stretch; }
.fact {
  gap: 8px;
  padding: 30px 14px;
}
.fact-icon {
  width: 2rem;
  height: 2rem;
  color: var(--aqua);
  margin-bottom: 4px;
}
.fact-value { font-size: 1.5rem; line-height: 1.2; }
.fact-live .fact-icon {
  color: var(--green);
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
  animation: online-glow 2.4s ease-in-out infinite;
}
.fact-live .fact-value {
  display: block;
  font-size: 2.2rem;
  color: var(--green);
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}
@keyframes online-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.7)); }
}

/* Dotumche Pixel везде: у него низкий x-height, текст поднимаем */
body { font-size: 1.25rem; }
.mode-body p, .step p, .faq-item p, .rule-list, .cta p, .rule-footnote { font-size: 1.2rem; line-height: 1.6; }
.address-note, .fact-label, .report-hint, .desc-counter { font-size: 1.05rem; }
.nav-link { font-size: 1.2rem; }
.hero-desc { font-size: 1.35rem; }
.section-head p, .page-hero p { font-size: 1.3rem; }
.btn { font-size: 1.25rem; }
.mode-badge, .mode-online { font-size: 1.1rem; }
.faq-item summary { font-size: 1.3rem; }
.penalty-table { font-size: 1.15rem; }
.report-field > label { font-size: 1.15rem; }
.report-field input, .report-field select, .report-field textarea { font-size: 1.2rem; }

/* ---------- Donate Store ---------- */
.donate-wrap { padding-bottom: 80px; }

.donate-status-banner,
.donate-gateway-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
  font-size: 1.08rem;
  line-height: 1.5;
}
.donate-status-banner[hidden],
.donate-gateway-banner[hidden],
.donate-mode-banner[hidden],
.donate-modal[hidden],
.donate-online-warn[hidden] { display: none; }

.donate-status-banner.is-success {
  border-color: var(--green);
  color: var(--ok-text);
  background: rgba(34, 197, 94, 0.12);
}
.donate-status-banner.is-pending {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(251, 191, 36, 0.12);
}
.donate-status-banner.is-error {
  border-color: var(--red);
  color: var(--err-text);
  background: rgba(248, 113, 113, 0.12);
}
.donate-gateway-banner {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text-soft);
}
.donate-gateway-banner .icon { color: var(--gold); width: 1.4rem; height: 1.4rem; }

.donate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.donate-tab {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 11px 18px;
  background: var(--surface);
  color: var(--text-soft);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, color 0.2s, background-color 0.2s;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.donate-tab:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--accent, var(--aqua));
}
.donate-tab.is-active {
  background: var(--accent, var(--aqua));
  border-color: var(--accent, var(--aqua));
  color: var(--on-accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.accent-aqua { --accent: var(--aqua); }
.accent-green { --accent: var(--green); }
.accent-orange { --accent: var(--orange); }
.accent-purple { --accent: var(--purple); }
.accent-red { --accent: var(--red); }
.accent-gold { --accent: var(--gold); }

.donate-mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 22px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
}
.donate-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 2px solid var(--accent, var(--aqua));
  color: var(--accent, var(--aqua));
  background: rgba(var(--ink-rgb), 0.45);
}
.donate-mode-banner p {
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.5;
  flex: 1 1 320px;
}

.donate-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.donate-group-head {
  margin: 44px 0 20px;
}
.donate-group-head h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  text-transform: uppercase;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.donate-grid.donate-grid-two {
  grid-template-columns: repeat(2, 1fr);
}
.donate-grid.is-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.donate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--aqua));
  z-index: 2;
}
.donate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent, var(--aqua));
}

.donate-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.donate-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.donate-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px 0;
}
.donate-card-kicker {
  font-size: 0.98rem;
  color: var(--accent, var(--aqua));
  font-weight: 700;
}
.donate-featured-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--accent, var(--gold));
  color: var(--on-accent);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}
.donate-featured-tag.is-inline {
  position: static;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.donate-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 22px 22px;
}
.donate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.donate-card-head h3 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  text-transform: uppercase;
}
.donate-subtitle {
  display: block;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 2px;
}
.donate-price-wrap {
  text-align: right;
  flex-shrink: 0;
}
.donate-old-price {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.donate-price {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--accent, var(--green));
  white-space: nowrap;
}

.donate-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.donate-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.donate-chip {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--accent, var(--aqua));
  border: 1px solid var(--line);
}

.donate-accordion { margin-bottom: 16px; }
.donate-toggle-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--text-muted);
  font: inherit;
  font-size: 1.02rem;
  cursor: pointer;
}
.donate-toggle-btn:hover { color: var(--text); border-color: var(--aqua); }
.donate-extra-list {
  list-style: disc;
  padding: 10px 0 4px 20px;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}
.donate-buy-btn { margin-top: auto; }

.donate-legal-box {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line);
}
.donate-legal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.donate-legal-head .icon { color: var(--aqua); width: 1.4rem; height: 1.4rem; }
.donate-legal-head h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.donate-legal-box p {
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}
.donate-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Modal */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.donate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(4px);
}
.donate-modal-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 26px;
  background: var(--surface);
  border: 2px solid var(--aqua);
  box-shadow: 0 0 0 2px var(--bg), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.donate-modal-panel h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 4px 0 18px;
}
.donate-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 1.1rem;
  cursor: pointer;
}
.donate-modal-close:hover { border-color: var(--red); color: var(--red); }

.donate-order-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 1.12rem;
}
.donate-order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.donate-order-summary span { color: var(--text-muted); }
.summary-price { color: var(--green); font-family: var(--font-pixel); font-size: 0.95rem; }

.donate-online-warn {
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.5;
}
.donate-form { display: flex; flex-direction: column; gap: 16px; }
.donate-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-soft);
  cursor: pointer;
}
.donate-agree input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 980px) {
  .donate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .donate-grid,
  .donate-grid.donate-grid-two { grid-template-columns: 1fr; }
  .donate-tab { flex: 1 1 auto; text-align: center; }
  .donate-modal-panel { padding: 22px 18px; }
}

/* ---------- Юридические документы (offer, privacy, payment-order) ---------- */
.doc-card p,
.doc-card li {
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.65;
}
.doc-card p + p,
.doc-card p + ul,
.doc-card ul + p,
.doc-card h3 { margin-top: 12px; }
.doc-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--aqua);
  margin-bottom: 6px;
}
.doc-card ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-requisites {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-requisites p { margin-top: 0; }

.donate-extra-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donate-extra-list[hidden] { display: none; }
.donate-extra-list li + li { margin-top: 2px; }
.donate-extra-list code {
  font-size: 0.92em;
  padding: 1px 6px;
}

/* Логотипы платёжных систем и полоса «Способы оплаты» в подвале */
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pay-logos img {
  height: 52px;
  width: 52px;
  padding: 7px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}
.rule-list .pay-logos { margin-top: 12px; }
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-pay-label { color: var(--text-muted); font-size: 1.05rem; }