/* ══════════════════════════════════════════════════════════
   ТАЛЬВЕН · КОМЕНДАНТСКИЙ ЧАС — site styles
   ══════════════════════════════════════════════════════════ */

/* ---------- tokens ---------- */
:root {
  --ink: #070a0d;
  --bg: #0b0f13;
  --bg-2: #0e1318;
  --panel: #111820;
  --panel-2: #151d25;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #dde5ea;
  --muted: #93a2ac;
  --dim: #6b7a84;
  --amber: #e8a33d;
  --amber-hot: #ffbd5c;
  --amber-dim: rgba(232, 163, 61, 0.16);
  --rust: #b4552f;
  --steel: #7f9aa8;
  --danger: #d95c45;
  --ok: #7fb08a;

  --font-display: "Russo One", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; color: #eef4f7; }
code, kbd { font-family: var(--font-mono); }

::selection {
  background: var(--amber);
  color: #12100b;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #080b0e; }
::-webkit-scrollbar-thumb {
  background: #2a343c;
  border: 3px solid #080b0e;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: #3b4852; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--amber);
  color: #111;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- layout utils ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #eef4f7;
  margin-bottom: 26px;
}
.section-title em {
  font-style: normal;
  color: var(--amber);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 78px);
}
.section-lead {
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.75;
  max-width: 46ch;
  padding-bottom: 10px;
}
.section-head .section-title { margin-bottom: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  white-space: nowrap;
}
.tag--live {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.4);
  background: rgba(232, 163, 61, 0.07);
}
.tag--live::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.accent { color: var(--amber) !important; }
.danger { color: var(--danger) !important; }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f6b73;
  flex: none;
}
.live-dot.is-online {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(127, 176, 138, 0.8);
}
.live-dot.is-offline {
  background: var(--danger);
  box-shadow: none;
}
.live-dot.is-loading {
  background: var(--amber);
  animation: pulse 1.6s infinite;
}
.live-dot--lg { width: 9px; height: 9px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 25px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s,
    transform 0.25s var(--ease), box-shadow 0.3s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--amber);
  --btn-fg: #161006;
  --btn-bd: var(--amber);
  box-shadow: 0 8px 30px rgba(232, 163, 61, 0.16);
}
.btn--primary:hover {
  --btn-bg: var(--amber-hot);
  --btn-bd: var(--amber-hot);
  box-shadow: 0 12px 38px rgba(232, 163, 61, 0.3);
}
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover {
  --btn-bd: rgba(232, 163, 61, 0.6);
  color: var(--amber);
  background: rgba(232, 163, 61, 0.06);
}
.btn--wide { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 10.5px; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header--solid {
  background: rgba(8, 11, 14, 0.82);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  width: 100%;
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--amber);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}
.brand__text b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #f1f6f9;
}
.brand__text i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9b5bd;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a.is-current { color: var(--amber); }
.nav a:hover::after,
.nav a.is-current::after { transform: scaleX(1); }
.nav__cta {
  padding: 9px 16px !important;
  color: var(--amber) !important;
  border: 1px solid rgba(232, 163, 61, 0.38);
  border-radius: 2px;
  background: rgba(232, 163, 61, 0.06);
}
.nav__cta:hover { background: var(--amber) !important; color: #14100a !important; }

.header__tools { display: flex; align-items: center; gap: 8px; }

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
  transition: border-color 0.2s, background 0.2s;
}
.online-pill b {
  font-weight: 500;
  color: #dfe8ed;
}
.online-pill i { font-style: normal; }
.online-pill:hover {
  border-color: rgba(127, 176, 138, 0.5);
  background: rgba(127, 176, 138, 0.06);
}
.online-pill[data-state="offline"]:hover {
  border-color: rgba(217, 92, 69, 0.45);
  background: rgba(217, 92, 69, 0.05);
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: rgba(232, 163, 61, 0.5); color: var(--amber); }
.icon-btn[aria-pressed="true"] {
  color: #14100a;
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 22px rgba(232, 163, 61, 0.4);
}

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- progress / rain / torch ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rust), var(--amber), var(--amber-hot));
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.6);
  transition: width 0.1s linear;
}

.rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: screen;
}

.torch {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  background:
    radial-gradient(circle 320px at var(--tx, 50%) var(--ty, 40%),
      rgba(255, 190, 100, 0.10) 0,
      rgba(255, 170, 70, 0.05) 45%,
      rgba(3, 5, 7, 0.62) 100%);
}
body.torch-on .torch { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--header-h);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #0a0e12 url("../img/hero.jpg") center 42% / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.075) translateX(-1.2%); }
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 9, 12, 0.94) 0%, rgba(6, 9, 12, 0.78) 28%, rgba(6, 9, 12, 0.24) 62%, rgba(6, 9, 12, 0.45) 100%),
    linear-gradient(180deg, rgba(6, 9, 12, 0.72) 0%, transparent 26%, transparent 55%, rgba(6, 9, 12, 0.94) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background: radial-gradient(ellipse at 72% 34%, rgba(232, 163, 61, 0.10), transparent 38%);
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 40px;
  padding-top: clamp(40px, 8vh, 90px);
  padding-bottom: clamp(34px, 6vh, 70px);
}
.hero__content { max-width: 730px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a7b5be;
  margin-bottom: clamp(18px, 3vh, 34px);
}
.kicker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  animation: pulse 2s infinite;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(20px, 3.5vh, 36px);
}
.hero__title-main {
  font-family: var(--font-display);
  font-size: clamp(64px, 11.2vw, 158px);
  line-height: 0.82;
  letter-spacing: 0.015em;
  color: #f3f7fa;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}
.hero__title-sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.45vw, 35px);
  line-height: 1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.hero__lead {
  max-width: 47ch;
  font-size: clamp(14.5px, 1.35vw, 17.5px);
  line-height: 1.72;
  color: #c0ccd3;
  margin-bottom: clamp(24px, 4vh, 38px);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(20px, 3vh, 30px);
}
.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__meta b { color: #b9c5cc; font-weight: 500; }
.hero__meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #3e4a53;
}

.hero__side { align-self: end; padding-bottom: 18px; }
.hero__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid rgba(232, 163, 61, 0.22);
  background: rgba(8, 11, 14, 0.34);
  backdrop-filter: blur(6px);
  min-width: 150px;
}
.hero__stamp-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__stamp-time {
  font-family: var(--font-display);
  font-size: 26px;
  color: #edf3f6;
  letter-spacing: 0.06em;
}
.hero__stamp-dash {
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--amber), transparent);
}
.hero__stamp .hero__stamp-time:last-of-type { color: var(--amber); }

.hero__stats {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 9, 12, 0.55);
  backdrop-filter: blur(8px);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 28px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1;
  color: #eef4f7;
  letter-spacing: 0.02em;
}
.stat__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat--live .stat__value {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.stat--live .stat__value b {
  font-weight: 400;
  color: #eef4f7;
}
.stat--live .stat__value small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.stat--live .stat__value small i { font-style: normal; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  width: 2px;
  height: 9px;
  background: var(--amber);
  border-radius: 2px;
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(14px); opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #090d10;
  padding: 11px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d8b94;
  white-space: nowrap;
}
.ticker__track i {
  font-style: normal;
  font-size: 7px;
  color: var(--amber);
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, #0b0f13, #0c1116 60%, #0b0f13); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 100px);
}

.prose p {
  color: var(--muted);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.82;
  margin-bottom: 20px;
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #e8eef2; }

.quote {
  margin-top: 34px;
  padding: 24px 0 24px 26px;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.06), transparent 70%);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.45;
  color: #dfe8ed;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.dossier {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(232, 163, 61, 0.05), transparent 45%),
    var(--panel);
  padding: 26px 26px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.dossier::before,
.dossier::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--amber);
  border-style: solid;
  opacity: 0.65;
}
.dossier::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.dossier::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.dossier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.dossier__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--amber);
}
.dossier__list { margin-bottom: 20px; }
.dossier__list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.dossier__list > div:last-child { border-bottom: 0; }
.dossier__list dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 2px;
}
.dossier__list dd {
  font-size: 12.5px;
  color: #cfdae1;
  text-align: right;
  line-height: 1.35;
}

.dossier__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.dossier__bar > span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.dossier__bar > b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  font-weight: 500;
}
.dossier__meter {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.dossier__meter i {
  display: block;
  height: 100%;
  width: var(--v);
  background: linear-gradient(90deg, var(--rust), var(--amber));
  box-shadow: 0 0 12px rgba(232, 163, 61, 0.4);
}
.dossier__note {
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.5;
  color: #5d6b74;
  font-style: italic;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 30px 26px 8px 0;
  position: relative;
}
.feature + .feature { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.feature__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--amber);
  display: block;
  margin-bottom: 42px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #e9f0f4;
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- lore ---------- */
.lore {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(232, 163, 61, 0.055), transparent 42%),
    #090d11;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.timeline { position: relative; padding-left: 58px; }
.timeline__line {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(232, 163, 61, 0.22) 45%, rgba(255, 255, 255, 0.06));
}
.tl {
  position: relative;
  padding: 0 0 46px;
}
.tl:last-child { padding-bottom: 0; }
.tl__marker {
  position: absolute;
  left: -58px;
  top: 4px;
  width: 39px;
  display: flex;
  justify-content: center;
}
.tl__marker span {
  width: 11px;
  height: 11px;
  border: 1px solid var(--amber);
  background: #0a0e12;
  transform: rotate(45deg);
  position: relative;
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}
.tl:hover .tl__marker span {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(232, 163, 61, 0.55);
}
.tl__body {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 34px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px 38px;
}
.tl:last-child .tl__body { border-bottom: 0; }
.tl__era {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 6px;
}
.tl__body h3 {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #edf3f6;
  margin-bottom: 10px;
}
.tl__body > p {
  grid-column: 2;
  max-width: 76ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}
.tl__tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.tl__tags span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c8b94;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 4px 8px;
}
.tl__tags--accent span {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.28);
  background: rgba(232, 163, 61, 0.05);
}
.tl--now .tl__era { color: var(--amber-hot); }
.tl--now .tl__body h3 { color: var(--amber-hot); }

/* ---------- city map ---------- */
.city {
  background:
    linear-gradient(180deg, #0b0f13, #0a0e12),
    var(--bg);
}
.city .section-title { font-size: clamp(32px, 4vw, 52px); }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: #0a0e12;
  padding: 10px;
  min-width: 0;
}
.map-scroll { min-width: 0; }
.map { width: 100%; height: auto; }
.map-hint {
  display: none;
  margin: 2px 8px 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.districts { cursor: pointer; }
.district path {
  fill: rgba(255, 255, 255, 0.024);
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.2;
  transition: fill 0.25s, stroke 0.25s;
}
.district text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  fill: #8b9ba5;
  pointer-events: none;
  transition: fill 0.25s;
}
.district circle { fill: var(--amber); opacity: 0; transition: opacity 0.25s; }
.district:hover path,
.district:focus-visible path,
.district.is-active path {
  fill: rgba(232, 163, 61, 0.14);
  stroke: rgba(232, 163, 61, 0.85);
}
.district:hover text,
.district:focus-visible text,
.district.is-active text { fill: #ffd79a; }
.district:hover circle,
.district:focus-visible circle,
.district.is-active circle { opacity: 1; }
.district:focus-visible { outline: none; }

.map-river {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  fill: rgba(127, 163, 181, 0.45);
}
.map-river-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  fill: rgba(127, 163, 181, 0.28);
}
.map-caption {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  fill: rgba(255, 255, 255, 0.16);
}
.map-compass text {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--amber);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 8px 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--amber { background: var(--amber); }
.dot--red { background: var(--danger); }
.dot--blue { background: #5f8798; }

.map-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(232, 163, 61, 0.045), transparent 40%),
    var(--panel);
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.map-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}
.map-panel__index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.map-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #f0f5f8;
  margin-bottom: 6px;
}
.map-panel__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.map-panel__text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.map-panel__risk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.map-panel__risk > span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.risk { display: flex; gap: 5px; }
.risk i {
  width: 18px;
  height: 4px;
  background: rgba(255, 255, 255, 0.09);
  transform: skewX(-24deg);
}
.risk i.on { background: var(--amber); box-shadow: 0 0 9px rgba(232, 163, 61, 0.4); }
.risk i.on:nth-child(4),
.risk i.on:nth-child(5) { background: var(--danger); box-shadow: 0 0 9px rgba(217, 92, 69, 0.4); }

.map-panel__facts { margin-bottom: 20px; }
.map-panel__facts > div { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.055); }
.map-panel__facts dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}
.map-panel__facts dd { font-size: 12.5px; color: #c9d5dc; line-height: 1.5; }

.map-panel__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.map-panel__tags span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(232, 163, 61, 0.22);
  color: var(--amber);
}

/* ---------- factions ---------- */
.factions {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(180, 85, 47, 0.07), transparent 45%),
    #0a0e12;
  border-top: 1px solid var(--line-soft);
}
.factions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.faction {
  position: relative;
  padding: 32px 32px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.022), transparent 60%), var(--panel);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.faction::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--fac, var(--amber));
  opacity: 0.7;
}
.faction::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fac) 16%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.faction:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35); }
.faction:hover::after { opacity: 1; }
.faction--concession { --fac: #9aa9b2; }
.faction--order { --fac: #6f97b0; }
.faction--bandits { --fac: #b4552f; }
.faction--free { --fac: #e8a33d; }

.faction__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.faction__emblem { width: 52px; height: 52px; color: var(--fac); opacity: 0.9; }
.faction__role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  padding-top: 4px;
}
.faction h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #eef4f7;
  margin-bottom: 6px;
}
.faction__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fac);
  margin-bottom: 18px;
  line-height: 1.6;
}
.faction > p:not(.faction__sub) {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 54ch;
}
.faction__list { margin-bottom: 24px; }
.faction__list li {
  position: relative;
  padding: 7px 0 7px 17px;
  font-size: 12.5px;
  color: #b9c6ce;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.faction__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--fac);
  transform: rotate(45deg);
}
.faction__meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.faction__meter span {
  flex: none;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.faction__meter i {
  position: relative;
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.faction__meter i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: var(--fac);
  box-shadow: 0 0 10px color-mix(in srgb, var(--fac) 45%, transparent);
}

/* ---------- mechanics ---------- */
.mechanics { background: #0b0f13; border-top: 1px solid var(--line-soft); }
.mech-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.mech {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 26px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.025), transparent 55%), #0f151b;
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.mech:hover {
  border-color: rgba(232, 163, 61, 0.3);
  transform: translateY(-3px);
  background: linear-gradient(170deg, rgba(232, 163, 61, 0.055), transparent 55%), #10171e;
}
.mech--wide { grid-column: span 6; }
.mech--accent {
  grid-column: span 12;
  border-color: rgba(232, 163, 61, 0.22);
  background:
    linear-gradient(100deg, rgba(232, 163, 61, 0.07), transparent 55%),
    #0f151b;
}
.mech--accent:hover { border-color: rgba(232, 163, 61, 0.5); }
.mech__icon {
  width: 38px;
  height: 38px;
  color: var(--amber);
  margin-bottom: 22px;
  opacity: 0.9;
}
.mech__icon svg { width: 100%; height: 100%; }
.mech h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #ecf2f6;
  margin-bottom: 10px;
  line-height: 1.3;
}
.mech > p {
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.72;
}
.mech__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.mech__stats span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.mech__stats b { color: var(--amber); font-weight: 500; }
.mech--accent .mech__stats b { color: var(--amber-hot); }

@media (min-width: 981px) {
  .mech-grid > .mech:nth-child(4),
  .mech-grid > .mech:nth-child(5),
  .mech-grid > .mech:nth-child(6) { grid-column: span 4; }
}

/* ---------- gallery ---------- */
.media {
  background: #090d11;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: #0d1216;
  overflow: hidden;
  cursor: zoom-in;
  grid-column: span 4;
  min-width: 0;
}
.shot--big { grid-column: span 7; grid-row: span 2; }
.shot:nth-child(2),
.shot:nth-child(3) { grid-column: span 5; }
.shot:nth-child(4),
.shot:nth-child(5) { grid-column: span 6; }
.shot--wide { grid-column: span 12; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.88) contrast(1.03);
}
.shot:hover img { transform: scale(1.045); filter: saturate(1.02) contrast(1.05); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 9, 0.86));
  pointer-events: none;
}
.shot__cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transform: translateY(4px);
  transition: transform 0.35s var(--ease);
}
.shot:hover .shot__cap { transform: translateY(0); }
.shot__cap b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #f2f7fa;
}
.shot__cap i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}
.media__note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #56636c;
}

/* ---------- download ---------- */
.download {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 163, 61, 0.09), transparent 48%),
    linear-gradient(180deg, #0c1116, #090d11);
}
.download__panel {
  position: relative;
  border: 1px solid rgba(232, 163, 61, 0.2);
  background:
    linear-gradient(165deg, rgba(232, 163, 61, 0.05), transparent 45%),
    rgba(13, 18, 23, 0.72);
  padding: clamp(26px, 4vw, 56px);
  overflow: hidden;
}
.download__glow {
  position: absolute;
  right: -15%;
  top: -40%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.13), transparent 66%);
  pointer-events: none;
}
.download__head {
  position: relative;
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.download__head .section-lead { padding-bottom: 0; }

.server-live {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr auto;
  gap: 16px 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 24px 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(127, 176, 138, 0.06), transparent 55%),
    #0d1318;
  transition: border-color 0.3s, background 0.3s;
}
.server-live[data-state="offline"] {
  background:
    linear-gradient(90deg, rgba(217, 92, 69, 0.05), transparent 55%),
    #0d1318;
}
.server-live__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.server-live__kicker {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-live__count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  color: #eef4f7;
}
.server-live__count b { font-weight: 400; }
.server-live__count span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.server-live__count span i { font-style: normal; }
.server-live__mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.server-live__state {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ok);
}
.server-live[data-state="offline"] .server-live__state { color: var(--danger); }
.server-live[data-state="loading"] .server-live__state { color: var(--amber); }
.server-live__updated {
  font-size: 10.5px;
  line-height: 1.5;
  color: #5d6b74;
}
.server-live__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.server-live__addr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #b9c5cc;
  white-space: nowrap;
}
.server-live__refresh {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.server-live__refresh:hover {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.45);
  background: rgba(232, 163, 61, 0.06);
}
.server-live__bar {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: -2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.server-live__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ok), #a6d0aa);
  box-shadow: 0 0 10px rgba(127, 176, 138, 0.4);
  transition: width 0.6s var(--ease);
}
.server-live[data-state="offline"] .server-live__bar i {
  background: var(--danger);
  box-shadow: none;
}

.dl-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #0d1318;
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.dl-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.18); }
.dl-card--main {
  border-color: rgba(232, 163, 61, 0.4);
  background:
    linear-gradient(170deg, rgba(232, 163, 61, 0.075), transparent 55%),
    #0e1419;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.dl-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dl-card__os { width: 26px; height: 26px; color: var(--amber); }
.dl-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #eff5f8;
  margin-bottom: 8px;
}
.dl-card__desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.dl-card__desc code {
  color: var(--amber);
  font-size: 11.5px;
  background: rgba(232, 163, 61, 0.08);
  padding: 1px 4px;
}
.dl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.dl-card__meta b { color: #b8c4cb; font-weight: 500; }
.dl-card__hint {
  font-size: 10px;
  line-height: 1.5;
  color: #5e6c75;
  margin-top: 10px;
}

.dl-foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.dl-foot__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-foot__item span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.dl-foot__item b,
.dl-foot__item a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #c5d0d7;
}
.dl-foot__item a { text-decoration: underline; text-underline-offset: 3px; }
.dl-foot__item a:hover { color: var(--amber); }

.req {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 26px;
  padding: 0 8px;
}
.req h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dfe8ed;
  margin-bottom: 14px;
}
.checklist li {
  position: relative;
  padding: 7px 0 7px 25px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(-45deg);
}
.checklist--no li::before {
  width: 9px;
  height: 9px;
  border: 0;
  top: 12px;
  background:
    linear-gradient(45deg, transparent 42%, var(--danger) 42%, var(--danger) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--danger) 42%, var(--danger) 58%, transparent 58%);
  transform: none;
}

/* ---------- guide ---------- */
.guide { background: #0b0f13; border-top: 1px solid var(--line-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 52px;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step--last { grid-column: 1 / -1; border-bottom: 0; }
.step__n {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 163, 61, 0.6);
  padding-top: 2px;
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.step:hover .step__n { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.step h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e8eff3;
  margin-bottom: 7px;
}
.step p { font-size: 12.8px; line-height: 1.7; color: var(--muted); max-width: 62ch; }

.guide__bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  margin-top: 58px;
}
.controls h3,
.serverbox h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e1eaef;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.controls__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.controls__grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #0c1116;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  font-size: 9.5px;
  color: #cfdae1;
  background: #131b22;
  border: 1px solid #2a3740;
  border-bottom-width: 2px;
  border-radius: 2px;
  flex: none;
}
.controls__grid span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.serverbox ol { counter-reset: s; }
.serverbox li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  counter-increment: s;
}
.serverbox li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber);
}
.serverbox code {
  color: var(--amber);
  font-size: 11px;
  background: rgba(232, 163, 61, 0.07);
  padding: 1px 5px;
}
.serverbox__note {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 2px solid rgba(232, 163, 61, 0.5);
  background: rgba(232, 163, 61, 0.045);
  font-size: 11.5px;
  line-height: 1.65;
  color: #8d9ba4;
}

/* ---------- roadmap ---------- */
.roadmap {
  background:
    radial-gradient(ellipse at 15% 100%, rgba(127, 154, 168, 0.06), transparent 45%),
    #090d11;
  border-top: 1px solid var(--line-soft);
}
.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.road__item {
  padding: 24px;
  border: 1px solid var(--line-soft);
  background: #0d1318;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.road__item:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.15); }
.road__state {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px;
  margin-bottom: 18px;
  border: 1px solid currentColor;
  color: var(--ok);
}
.road__item--beta .road__state { color: var(--amber); }
.road__item--wip .road__state { color: var(--dim); }
.road__item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #e9f0f4;
  margin-bottom: 8px;
}
.road__item p {
  font-size: 12.3px;
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 63px;
}
.road__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.road__bar i {
  display: block;
  height: 100%;
  width: var(--v);
  background: var(--ok);
}
.road__item--beta .road__bar i { background: var(--amber); }
.road__item--wip .road__bar i { background: #55636c; }
.road__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.road__foot > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- faq ---------- */
.faq { background: #0b0f13; border-top: 1px solid var(--line-soft); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}
.faq__grid .section-title { font-size: clamp(32px, 4vw, 52px); }
.faq__cta {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.faq__cta span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #dce6eb;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--amber); }
.faq details p {
  padding: 0 44px 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  max-width: 72ch;
}
.faq details p code {
  color: var(--amber);
  font-size: 11.5px;
  background: rgba(232, 163, 61, 0.07);
  padding: 1px 5px;
}

/* ---------- community ---------- */
.community {
  overflow: hidden;
  background: #090d11;
  border-top: 1px solid var(--line-soft);
}
.community__inner {
  text-align: center;
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(20px, 4vw, 40px);
}
.community__glow {
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 900px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232, 163, 61, 0.14), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.community .section-title { font-size: clamp(32px, 4.6vw, 60px); }

@media (max-width: 520px) {
  .community .section-title { font-size: clamp(25px, 7vw, 34px); }
}
.community .section-lead { margin: 0 auto 30px; max-width: 58ch; }
.community__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.soon {
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  opacity: 0.65;
}
.community__fine {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f5c65;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #070a0d;
  padding: 56px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1.5fr 0.75fr;
  gap: 50px;
}
.footer .brand { margin-bottom: 18px; }
.footer__brand p {
  font-size: 12px;
  line-height: 1.7;
  color: #6f7d86;
  max-width: 34ch;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__nav h4 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.footer__nav a {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  color: #8b99a2;
  transition: color 0.2s, transform 0.2s;
}
.footer__nav a:hover { color: #dce6eb; transform: translateX(3px); }
.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.footer__meta p { font-size: 10.5px; line-height: 1.6; color: #5e6b74; }
.footer__top {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: color 0.2s;
}
.footer__top span { color: var(--amber); font-size: 14px; }
.footer__top:hover { color: var(--amber); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  background: rgba(4, 7, 9, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure {
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox img {
  max-height: 76vh;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox__close:hover { border-color: var(--amber); color: var(--amber); }
.lightbox__nav {
  width: 46px;
  height: 62px;
  flex: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 17px;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lightbox__nav:hover { border-color: var(--amber); color: var(--amber); background: rgba(232, 163, 61, 0.08); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 210;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  background: #131b22;
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dfe8ed;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* служебный режим для локальных скриншотов: ?preview */
.preview .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.preview .hero__bg { animation: none !important; }
.preview .hero { min-height: 860px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .online-pill { display: none; }
  .hero__side { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1.2fr 0.8fr; gap: 44px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: repeat(2, 1fr); }
  .server-live { grid-template-columns: 1fr 1fr; }
  .server-live__right { grid-column: 1 / -1; justify-content: space-between; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 24px;
    background: rgba(8, 11, 14, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a {
    padding: 13px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0 !important; }
  .burger { display: flex; }

  .section-head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .section-lead { padding-bottom: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .dossier { position: static; max-width: 480px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line-soft); margin-top: 26px; }
  .feature:nth-child(3) { margin-top: 0; }
  .feature:nth-child(3), .feature:nth-child(4) { padding-top: 26px; }

  .tl__body { grid-template-columns: 1fr; gap: 8px; }
  .tl__era, .tl__body h3, .tl__body > p, .tl__tags { grid-column: 1; }

  .map-layout { grid-template-columns: 1fr; }
  .map-panel { min-height: 0; }

  .factions__grid { grid-template-columns: 1fr; }
  .mech { grid-column: span 6; }
  .mech--wide { grid-column: span 12; }
  .mech--accent { grid-column: span 12; }

  .gallery { grid-auto-rows: 180px; }
  .shot--big { grid-column: span 12; grid-row: span 2; }
  .shot:nth-child(2), .shot:nth-child(3) { grid-column: span 6; }
  .shot:nth-child(4), .shot:nth-child(5) { grid-column: span 6; }
  .shot--wide { grid-column: span 12; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step--last { grid-column: auto; }
  .guide__bottom { grid-template-columns: 1fr; gap: 36px; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .footer__top { margin-top: 0; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__inner { padding-top: 46px; padding-bottom: 46px; }
  .hero__title-main { font-size: clamp(44px, 15vw, 86px); }
  .hero__inner > *,
  .hero__content { min-width: 0; }
  .kicker { flex-wrap: wrap; }
  .hero__title-sub { font-size: clamp(14px, 4.2vw, 22px); letter-spacing: 0.14em; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 18px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .stat:first-child { padding-left: 18px; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.06); }
  .hero__scroll { display: none; }

  .timeline { padding-left: 42px; }
  .timeline__line { left: 14px; }
  .tl__marker { left: -42px; width: 29px; }

  .features { grid-template-columns: 1fr; }
  .feature { padding-right: 0; }
  .feature + .feature { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); margin-top: 0; }
  .feature { padding-top: 24px; padding-bottom: 20px; }
  .feature__num { margin-bottom: 20px; }

  .dl-grid { grid-template-columns: 1fr; }
  .dl-foot { grid-template-columns: repeat(2, 1fr); }
  .req { grid-template-columns: 1fr; padding: 0; }
  .server-live { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .server-live__right { grid-column: auto; justify-content: space-between; }

  .road { grid-template-columns: 1fr; }
  .road__item p { min-height: 0; }

  .map-panel { padding: 20px; }
  .map-hint { display: block; }
  .map-scroll { overflow-x: auto; padding-bottom: 6px; }
  .map { min-width: 660px; }
  .map .district text { font-size: 15px; }
  .map-river { font-size: 14px; }
  .map-legend { gap: 12px; }

  .gallery { grid-auto-rows: 165px; }
  .shot--big { grid-row: span 2; }
  .shot:nth-child(2), .shot:nth-child(3),
  .shot:nth-child(4), .shot:nth-child(5) { grid-column: span 6; }
  .shot--wide { grid-column: span 12; }
  .shot__cap { left: 12px; right: 12px; bottom: 10px; }
  .shot__cap b { font-size: 11px; }
  .shot__cap i { display: none; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
  .lightbox { padding: 14px; }
  .lightbox__nav { width: 36px; height: 52px; }
  .lightbox__close { top: 10px; right: 12px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .hero__meta { gap: 8px; }
  .hero__meta-sep { display: none; }
  .hero__meta > span:not(.tag) { display: block; width: 100%; }
  .mech { grid-column: span 12; }
  .controls__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .community__actions .btn { width: 100%; }
  .quote { padding-left: 18px; }
}

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

/* ---------- print ---------- */
@media print {
  .header, .rain, .torch, .progress, .hero__scroll, .ticker, .lightbox, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding: 24px 0; }
  .hero { min-height: auto; color: #111; }
}
