@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0f0d0b;
  --bg-elevated: #1a1612;
  --surface: #231e18;
  --surface2: #2e2720;
  --border: #3a3228;
  --border-bright: #5c4d3d;
  --text: #f2ebe0;
  --muted: #a89b8c;
  --accent: #d4a84b;
  --accent-dim: #8a7020;
  --accent-hover: #e8bc55;
  --hud-green: #5fa070;
  --hud-green-dim: #2d4a32;
  --danger: #8b3a3a;
  --cta: #c45c1a;
  --cta-hover: #e07830;
  --radius: 4px;
  --radius-lg: 14px;
  --max: 64rem;
  --font-ui: "PT Sans", system-ui, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-hero: "Cinzel", "Times New Roman", serif;
  --glass: rgba(18, 15, 12, 0.78);
  --glass-edge: rgba(255, 245, 220, 0.06);
  --snap-header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* Тёплый градиент и лёгкое «зерно», как затёртый экран */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.07), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(45, 58, 38, 0.35), transparent 45%),
    linear-gradient(180deg, #1a1510 0%, var(--bg) 35%, #0f0d0b 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-dim) 20%,
    var(--accent) 50%,
    var(--accent-dim) 80%,
    transparent 100%
  );
  opacity: 0.9;
}

.site-header__inner {
  max-width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0.7rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav tray";
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-header__tray {
  grid-area: tray;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}

.site-online-wrap {
  margin: 0;
}

.site-online {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-online--ok {
  color: var(--hud-green);
}

.site-online--warn {
  color: var(--danger);
}

@media (max-width: 900px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tray"
      "nav nav";
    gap: 0.5rem 0.75rem;
  }

  .site-nav {
    justify-self: stretch;
    justify-content: center;
  }

  .site-header__tray {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.site-brand {
  grid-area: brand;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 24px rgba(201, 162, 39, 0.15);
}

.site-brand:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.3rem;
  align-items: center;
  justify-self: center;
  justify-content: center;
  min-width: 0;
}

.site-nav a {
  font-size: 0.74rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.92);
  padding: 0.38rem 0.5rem;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent-hover);
  text-decoration: none;
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-hover);
  border-color: rgba(212, 168, 75, 0.45);
  background: rgba(212, 168, 75, 0.1);
  text-decoration: none;
}

.site-header__cabinet {
  font-size: 0.74rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 168, 75, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: var(--accent-hover);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.site-header__cabinet:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 75, 0.12);
  color: #fff8e8;
  text-decoration: none;
}

/* Ник вместо «Личный кабинет» после входа (ставит site-header.js) */
.site-header__cabinet.site-nav-user {
  border-color: rgba(212, 168, 75, 0.55);
  background: rgba(212, 168, 75, 0.14);
  color: #fff4d4;
}

.site-online.site-status-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 160, 112, 0.28);
  background: rgba(12, 28, 18, 0.65);
  font-size: 0.66rem;
}

.site-online--ok.site-status-pill {
  color: #8fd4a0;
  border-color: rgba(95, 160, 112, 0.5);
  box-shadow: 0 0 16px rgba(95, 160, 112, 0.12);
}

.site-online--warn.site-status-pill {
  border-color: rgba(139, 58, 58, 0.45);
  background: rgba(40, 18, 18, 0.5);
}

/* Явные цвета по id: иначе при сбросе классов или кэше bfcache текст мог оставаться с базовым --muted */
#site-server-online.site-online--ok.site-status-pill {
  color: #8fd4a0;
  border-color: rgba(95, 160, 112, 0.55);
  box-shadow: 0 0 16px rgba(95, 160, 112, 0.14);
}

#site-server-online.site-online--warn.site-status-pill {
  color: var(--danger);
  border-color: rgba(139, 58, 58, 0.45);
  background: rgba(40, 18, 18, 0.5);
}

#site-server-online.site-online.site-status-pill:not(.site-online--ok):not(.site-online--warn) {
  color: var(--muted);
  border-color: rgba(110, 105, 98, 0.35);
  box-shadow: none;
}

/* Главная: hero как у лендинга MMO */
.landing {
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}

.landing-hero {
  position: relative;
  min-height: min(70vh, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 1.25rem 3.25rem;
  margin: 0 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.2) 0%, rgba(15, 13, 11, 0.92) 55%, var(--bg) 100%),
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(120, 70, 35, 0.22), transparent 52%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(40, 55, 35, 0.2), transparent 45%),
    #0c0a08;
}

.landing-hero .hero-eyebrow {
  margin-bottom: 0.65rem;
}

.landing-title {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text);
  margin: 0 0 0.65rem;
  line-height: 1.15;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.landing-tagline {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(235, 226, 210, 0.88);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

.landing-scroll-hint {
  margin: 2.25rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing .news-feed {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--cta-hover) 0%, var(--cta) 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 22px rgba(196, 92, 26, 0.38);
}

.btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn--ghost {
  background: rgba(8, 7, 6, 0.55);
  border-color: rgba(255, 245, 220, 0.12);
  color: rgba(245, 240, 232, 0.95);
}

.btn--ghost:hover {
  border-color: rgba(212, 168, 75, 0.4);
  background: rgba(18, 16, 14, 0.85);
  text-decoration: none;
  color: #fff;
}

/* Между primary (оранжевый) и ghost: акцент золотом темы, без агрессивного свечения */
.btn--accent-soft {
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(212, 168, 75, 0.48);
  color: #f4ead0;
  box-shadow: 0 2px 16px rgba(138, 112, 32, 0.22);
}

.btn--accent-soft:hover {
  background: rgba(201, 162, 39, 0.26);
  border-color: rgba(232, 188, 85, 0.58);
  color: #fffbf2;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(138, 112, 32, 0.28);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 3rem;
}

.hero {
  padding: 1.15rem 1.15rem 1.35rem 1.35rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(35, 30, 24, 0.92) 0%, rgba(26, 22, 18, 0.78) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
  font-size: 1.02rem;
}

.section {
  margin-top: 2rem;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem 1.05rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.35);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0.65;
}

.card + .card {
  margin-top: 0.75rem;
}

.card p,
.card li {
  margin: 0.4em 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card p:first-child,
.card ul:first-child {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card strong {
  color: var(--text);
  font-weight: 700;
}

.card ul {
  padding-left: 1.2rem;
}

kbd,
.code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.86em;
  color: #c8e6b0;
  background: #0d120c;
  border: 1px solid var(--hud-green-dim);
  border-radius: 2px;
  padding: 0.1em 0.4em;
  box-shadow: inset 0 0 8px rgba(109, 143, 92, 0.12);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-hover);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--hud-green-dim);
}

.admin-hint {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  line-height: 1.45;
}

.admin-hint strong {
  color: var(--text);
}

/* Главная: рубрика над заголовком (как в кабинете) */
.hero-eyebrow,
.masthead-eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.hero-lead,
.cabinet-hero-lead,
.masthead-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 42em;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero > h1 + .hero-lead,
.hero > h1 + .masthead-lead {
  margin-top: 0.55rem;
}

.news-feed-intro {
  margin: -0.35rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  max-width: 40em;
}

.news-item {
  margin-top: 1rem;
}

.news-item:first-of-type {
  margin-top: 0.5rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.news-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-rubric {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-title {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--text);
  text-transform: none;
}

.news-body {
  font-size: 0.98rem;
}

.news-body p {
  margin: 0 0 0.65em;
  color: var(--muted);
}

.news-body p:last-child {
  margin-bottom: 0;
}

.page-back {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.page-back a {
  color: var(--muted);
}

.page-back a:hover {
  color: var(--accent-hover);
}

/* Wiki: оглавление + статья */
.wiki-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 800px) {
  .wiki-layout {
    grid-template-columns: 11.5rem minmax(0, 1fr);
  }
}

.wiki-toc {
  position: sticky;
  top: 5.5rem;
}

.wiki-toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.wiki-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-toc li {
  margin: 0.35rem 0;
}

.wiki-toc a {
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.wiki-toc a:hover {
  color: var(--accent-hover);
}

.wiki-article h2 {
  margin: 1.35rem 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}

.wiki-article h2:first-child {
  margin-top: 0;
}

.wiki-article--main {
  margin-top: 0;
}

/* Страница wiki: ближе к MediaWiki (тело статьи, ссылки) */
body.wiki-page .wiki-toc h2 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

body.wiki-page .wiki-article .card a {
  color: #8ec8f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.wiki-page .wiki-article .card a:hover {
  color: #c5e4ff;
}

.wiki-article .card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

/* Wiki-приложение: боковое дерево + статья (данные с API) */
body.wiki-app-page {
  min-height: 100vh;
}

.wiki-app-mainwrap {
  max-width: min(100%, 90rem);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.wiki-app-back {
  margin-bottom: 0.75rem;
}

.wiki-app {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .wiki-app {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  }
}

.wiki-app-sidebar {
  padding: 1rem 1rem 1.15rem;
}

.wiki-app-sidebar__head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.wiki-app-sidebar__title {
  margin: 0 0 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.wiki-app-sidebar__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.wiki-sidebar-nav {
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  margin-right: -0.25rem;
  padding-right: 0.25rem;
}

.wiki-nav-group {
  margin-bottom: 1rem;
}

.wiki-nav-group:last-child {
  margin-bottom: 0;
}

.wiki-nav-node {
  margin-bottom: 0.35rem;
}

.wiki-nav-cat-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wiki-nav-cat-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.wiki-nav-cat-action {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
}

.wiki-nav-cat-action:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(255, 255, 255, 0.06);
}

.wiki-nav-toggle,
.wiki-nav-toggle-spacer {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 0.9rem;
}

.wiki-nav-toggle {
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wiki-nav-toggle[aria-expanded="false"] {
  background: rgba(255, 255, 255, 0.03);
}

.wiki-nav-toggle:hover {
  color: var(--text);
  border-color: var(--border);
}

.wiki-nav-cat-head .wiki-nav-group__title {
  margin: 0;
}

.wiki-nav-cat-body {
  margin: 0.25rem 0 0.35rem 1.25rem;
}

.wiki-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-nav-children {
  margin-top: 0.2rem;
}

.wiki-nav-node.depth-1 .wiki-nav-group__title,
.wiki-nav-node.depth-2 .wiki-nav-group__title,
.wiki-nav-node.depth-3 .wiki-nav-group__title {
  font-size: 0.62rem;
  letter-spacing: 0.11em;
}

.wiki-nav-node.depth-1,
.wiki-nav-node.depth-2,
.wiki-nav-node.depth-3 {
  margin-left: 0.4rem;
}

.wiki-nav-group__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.wiki-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-nav-link {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 2px;
}

.wiki-nav-link:hover {
  color: var(--accent-hover);
}

.wiki-nav-link.is-active {
  color: var(--accent-hover);
  font-weight: 600;
}

.wiki-nav-empty {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.wiki-app-content {
  min-width: 0;
}

.wiki-article-prose {
  padding: 1.15rem 1.25rem 1.5rem;
}

.wiki-article-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.wiki-article-h1 {
  margin: 0 0 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.wiki-article-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.wiki-article-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.wiki-article-body h2 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-hero);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

.wiki-article-body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.wiki-article-body a {
  color: #8ec8f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wiki-article-body a:hover {
  color: #c5e4ff;
}

.wiki-article-body ul,
.wiki-article-body ol {
  padding-left: 1.35rem;
}

.wiki-article-body code {
  font-size: 0.88em;
}

.wiki-sidebar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wiki-sidebar-head-row .wiki-app-sidebar__title {
  margin-bottom: 0;
}

.wiki-sidebar-add {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface, #1e1914);
  color: var(--accent-hover);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.wiki-sidebar-add:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.wiki-new-page-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid var(--border);
}

.wiki-new-page-row .wiki-form-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.wiki-new-page-row .wiki-new-category {
  flex: 1 1 11rem;
}

.wiki-new-create-btn {
  flex-shrink: 0;
}

.wiki-inline-msg {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1rem;
}

.wiki-inline-msg.is-error {
  color: #e8a0a0;
}

.wiki-inline-msg.is-ok {
  color: #9bc89b;
}

.wiki-categories-panel {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.wiki-categories-panel summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wiki-categories-panel summary:hover {
  color: var(--text);
}

.wiki-categories-hint {
  margin: 0.5rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.wiki-categories-hint--accent {
  margin-top: -0.2rem;
  color: var(--accent-dim);
}

.wiki-categories-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wiki-cat-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

.wiki-cat-row.is-new {
  border-color: rgba(201, 162, 39, 0.5);
}

.wiki-cat-row.is-focused {
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.65) inset;
}

.wiki-cat-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wiki-cat-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
}

.wiki-cat-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.wiki-cat-row__toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.3rem;
  margin: -0.2rem 0 -0.15rem;
}

.wiki-cat-row__move,
.wiki-cat-row__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.wiki-cat-row__move {
  min-width: 2.9rem;
  font-size: 0.75rem;
}

.wiki-cat-row__move:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  background: rgba(255, 255, 255, 0.06);
}

.wiki-cat-row__remove:hover {
  color: #e8a0a0;
  border-color: rgba(200, 90, 90, 0.45);
  background: rgba(200, 90, 90, 0.08);
}

.wiki-cat-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.wiki-cat-field-caption {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wiki-cat-field .wiki-form-input {
  width: 100%;
}

.wiki-cat-row__pair {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wiki-cat-field--order {
  max-width: 7rem;
}

.wiki-cat-field--order .wiki-form-input {
  text-align: center;
}

.wiki-categories-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.wiki-categories-actions .btn {
  font-size: 0.68rem;
  padding: 0.48rem 0.55rem;
  letter-spacing: 0.06em;
}

.wiki-article-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wiki-article-tools {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.wiki-tool-text-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.wiki-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

/* Атрибут hidden: классы с display перебивают display:none в UA */
#wiki-edit-toolbar[hidden],
#wiki-btn-toggle-new[hidden],
#wiki-new-page-row[hidden],
#wiki-article-tools[hidden],
#wiki-page-settings[hidden],
#wiki-categories-panel[hidden],
#wiki-body-editor[hidden],
#wiki-body-editor-label[hidden] {
  display: none !important;
}

.wiki-body-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wiki-body-editor-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.wiki-body-editor {
  box-sizing: border-box;
  width: 100%;
  min-height: min(50vh, 28rem);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, #1e1914);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
}

.wiki-body-editor:focus {
  outline: 2px solid var(--accent, #c9a227);
  outline-offset: 1px;
}

.wiki-draft-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--accent-dim);
}

.wiki-md-preview {
  margin: 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.wiki-page-settings {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.wiki-page-settings summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wiki-page-settings summary:hover {
  color: var(--text);
}

.wiki-page-settings .wiki-form-field {
  margin-top: 0.75rem;
}

select.wiki-form-input {
  cursor: pointer;
}

.wiki-form-field {
  margin-bottom: 0.85rem;
}

.wiki-form-field label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.wiki-form-input,
.wiki-form-textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface, #1e1914);
  color: var(--text);
  font: inherit;
}

.wiki-form-textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.wiki-form-textarea--tall {
  min-height: 12rem;
}

.wiki-form-input:focus,
.wiki-form-textarea:focus {
  outline: 2px solid var(--accent, #c9a227);
  outline-offset: 1px;
}

.wiki-page-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn--danger-ghost {
  border: 1px solid rgba(200, 90, 90, 0.45);
  background: transparent;
  color: #e8a0a0;
}

.btn--danger-ghost:hover {
  background: rgba(200, 90, 90, 0.12);
  border-color: rgba(200, 90, 90, 0.65);
}

/* Текст с сервера (управляется через админку) */
.site-managed {
  margin-bottom: 1.25rem;
}

.site-managed .news-body,
.site-managed p {
  color: var(--muted);
}

/* Блочный скролл: экран за экраном (как aa-classic.com) */
html.snap-page {
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--snap-header-h);
  overscroll-behavior-y: contain;
}

body.snap-page {
  padding-top: 0;
}

body.snap-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
}

.landing--snap {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.snap-section {
  box-sizing: border-box;
  flex: 0 0 100vh;
  flex: 0 0 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  padding: calc(var(--snap-header-h) + 1rem) 1.25rem 2rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-bottom: none;
  box-shadow: 0 1px 0 var(--border);
}

.snap-section__body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.snap-section--stack .snap-section__body {
  justify-content: flex-start;
  overflow: visible;
  flex: 0 0 auto;
}

.snap-section--with-footer .snap-section__body {
  justify-content: flex-start;
}

.landing-hero.snap-section {
  margin-bottom: 0;
}

main.landing--snap .snap-section.landing-hero {
  flex: 0 0 100vh;
  flex: 0 0 100dvh;
  margin: 0;
  border-bottom: none;
  padding: calc(var(--snap-header-h) + 1.25rem) 1.25rem 2rem;
}

/* Новости: без внутреннего скролла, высота по сетке карточек (не ниже экрана) */
.snap-section.snap-section--stack {
  flex: 0 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
}

.snap-section--stack {
  justify-content: flex-start;
  padding-top: calc(var(--snap-header-h) + 0.75rem);
  padding-bottom: 1rem;
}

.snap-section--stack-inner {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.snap-section__scroll--news {
  flex: 0 0 auto;
  overflow: visible;
}

.snap-section--footer {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  text-align: center;
}

/* Последняя секция: контент (прокрутка внутри body) и футер */
.snap-section--with-footer {
  justify-content: flex-start;
}

.snap-section--with-footer > .site-footer {
  flex-shrink: 0;
  margin-top: 0;
  border-top: none;
  padding-top: 1.25rem;
  padding-bottom: max(2.75rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
  padding-left: 0;
  padding-right: 0;
}

.snap-to-top {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 2.85rem;
  height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(212, 168, 75, 0.28);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.42);
  color: var(--accent-hover);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  transition:
    opacity 0.2s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.snap-to-top:hover {
  border-color: rgba(212, 168, 75, 0.5);
  background: rgba(18, 15, 12, 0.55);
  color: #fff4d4;
}

.snap-to-top__icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.snap-to-top[hidden] {
  display: none;
}

.landing-discover {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 0;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  text-decoration: none;
  color: rgba(209, 209, 209, 0.88);
  font-family: var(--font-hero);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: discover-bob 2.4s ease-in-out infinite;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.85rem 0.75rem 0.35rem;
}

.landing-discover:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.landing-discover__chev {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.landing-discover__chev-line {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
}

@keyframes discover-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.aa-block {
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.35) 0%, rgba(12, 10, 8, 0.85) 100%);
}

.aa-block--dim {
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.55) 0%, rgba(10, 9, 8, 0.92) 100%);
}

.aa-block--news {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 70, 35, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(14, 12, 10, 0.9) 0%, rgba(8, 7, 6, 0.98) 100%);
}

.aa-block__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.aa-block__inner--wide {
  max-width: min(100%, 70rem);
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.aa-block__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.aa-block__lead {
  margin: 0 0 1.25rem;
  color: rgba(235, 226, 210, 0.88);
  max-width: 42em;
  font-size: 1.02rem;
}

.aa-feature-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .aa-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aa-feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.aa-feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.connect-card p {
  margin: 0.5rem 0;
}

.rules-short {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
}

.rules-short li {
  margin: 0.4rem 0;
}

.news-section-intro {
  margin: -0.25rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-news-mount {
  width: 100%;
}

.news-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.news-empty--err {
  border-color: rgba(139, 58, 58, 0.45);
  color: #d8a8a8;
}

.news-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.news-grid .news-card + .news-card {
  margin-top: 0;
}

.news-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.news-card__thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(160deg, rgba(35, 48, 38, 0.85) 0%, rgba(12, 14, 12, 0.95) 100%),
    radial-gradient(circle at 70% 30%, rgba(80, 110, 90, 0.2), transparent 50%);
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.news-card__thumb--hasimg {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.news-card__thumb--hasimg {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 8, 0.55);
}

.news-card__thumb--hasimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__body {
  position: relative;
  padding: 1rem 1.15rem 1.1rem;
  padding-right: 1.15rem;
  padding-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  flex: 1;
  min-height: 10.5rem;
}

@media (min-width: 760px) {
  .news-card {
    grid-template-columns: clamp(220px, 28vw, 360px) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: clamp(170px, 22vw, 220px);
  }

  .news-card__thumb,
  .news-card__thumb--hasimg {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .news-card__body {
    min-height: 0;
    padding: 0.9rem 1.05rem 0.95rem;
    padding-bottom: 2.15rem;
  }
}

.news-card__body::before {
  display: none;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  color: var(--cta-hover);
  background: rgba(0, 0, 0, 0.35);
}

.news-tag--update {
  border-color: rgba(120, 160, 200, 0.45);
  color: #9ec8f0;
}

.news-tag--announcement {
  border-color: rgba(212, 140, 60, 0.5);
  color: #f0b060;
}

.news-tag--editorial {
  border-color: rgba(160, 150, 130, 0.4);
  color: var(--muted);
}

.news-card__footer-meta {
  position: absolute;
  bottom: 0.85rem;
  right: 0.9rem;
  font-size: 0.68rem;
  color: rgba(180, 170, 155, 0.75);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-card__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-hero);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(200, 190, 175, 0.92);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__read {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta-hover);
  text-decoration: none;
  align-self: flex-start;
}

.news-card__read:hover {
  color: var(--text);
  text-decoration: underline;
}

.news-article-shell {
  width: 100%;
  max-width: min(100%, 48rem);
  margin: 0 auto;
}

.news-article-page .news-article {
  padding: 0;
  overflow: hidden;
}

.news-article__hero {
  margin: 0;
  max-height: min(52vh, 28rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 6, 4, 0.65);
}

.news-article__hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: cover;
}

.news-article__head {
  position: relative;
  padding: 1.15rem 1.25rem 0.75rem;
  padding-right: 1.25rem;
  padding-bottom: 2.1rem;
}

.news-article__footer-meta {
  position: absolute;
  right: 1.25rem;
  bottom: 0.75rem;
  display: block;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(180, 170, 155, 0.75);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .news-card__footer-meta {
    right: 0.8rem;
    bottom: 0.78rem;
    font-size: 0.64rem;
  }

  .news-article__head {
    padding-bottom: 2rem;
  }

  .news-article__footer-meta {
    right: 1rem;
    bottom: 0.62rem;
    font-size: 0.68rem;
  }
}

.news-article__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.news-article__excerpt {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  color: rgba(200, 190, 175, 0.95);
  line-height: 1.45;
}

.news-article__body {
  padding: 0.5rem 1.25rem 1.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(215, 205, 190, 0.96);
}

.news-article__body p {
  margin: 0.65em 0;
}

.news-article__body h2,
.news-article__body h3 {
  margin: 1.15em 0 0.45em;
  font-family: var(--font-hero);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.news-article__body h2 {
  font-size: 1.25rem;
}

.news-article__body h3 {
  font-size: 1.08rem;
}

.news-article__body ul,
.news-article__body ol {
  margin: 0.5em 0;
  padding-left: 1.35rem;
}

.news-article__body a {
  color: var(--cta-hover);
  text-decoration: underline;
}

.news-article__body a:hover {
  color: var(--text);
}

.news-article__body pre,
.news-article__body code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
}

.news-article__body pre {
  overflow: auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.rules-mount {
  width: 100%;
  max-width: 100%;
  margin: 0.75rem 0 0;
}

.rules-page .rules-article.card {
  padding: 0;
  overflow: hidden;
}

/* Совпадает с .site-header__inner (72rem); иначе .news-page .news-page-main перебивает ниже */
.news-page.rules-page .news-page-main {
  max-width: min(100%, 72rem);
}

.site-footer--snap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0;
}

/* Нижняя строка лендинга: как на макете, приглушённое золото, края по ширине блока контента */
.site-footer--landing-tail {
  display: block;
  font-family: var(--font-display);
  --footer-landing: #c4b498;
}

.site-footer--landing-tail__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.site-footer--landing-tail .footer-copy {
  color: var(--footer-landing);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.35;
  max-width: 36rem;
}

/* «Наверх»: только типографика, без подложки-овала */
.site-footer--landing-tail a.footer-top.landing-footer-up {
  display: inline-block;
  padding: 0.2rem 0;
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--footer-landing);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.site-footer--landing-tail a.landing-footer-up:hover {
  color: var(--accent-hover);
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.snap-page .site-footer.snap-section {
  border-top: none;
}

.footer-top {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.news-all-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
}

.news-pagination__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
}

.news-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cta-hover);
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.news-pagination__num:hover {
  color: var(--text);
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.news-pagination__num--current {
  color: var(--text);
  border-color: rgba(212, 168, 75, 0.45);
  background: rgba(212, 168, 75, 0.1);
  cursor: default;
}

.news-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 0.15rem;
  font-size: 0.95rem;
  color: var(--muted);
  user-select: none;
}

.news-pagination__edge {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cta-hover);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
}

.news-pagination__edge:hover {
  color: var(--text);
  text-decoration: underline;
}

.news-page .news-page-main {
  max-width: min(100%, 70rem);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 3rem;
}

.news-page #site-news-root {
  margin-top: 0.5rem;
}

.connect-redirect-main {
  max-width: min(100%, 72rem);
  margin-inline: auto;
}

.connect-redirect-hero .connect-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1rem 0 0;
  justify-content: flex-start;
}

.connect-redirect-hint {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.connect-card__steam {
  margin: 0 0 0.75rem;
}
