:root {
  --bg: #0c0d0a;
  --bg2: #14160f;
  --card: #181a13;
  --line: #2a2d22;
  --tx: #ece8d8;
  --mut: #9a977f;
  --yel: #f2d62e;        /* жёлтый с обложки 1.6 */
  --hud: #ffa424;        /* оранжевый HUD */
  --ct: #5b8cff;
  --t: #e0602a;
  --ok: #7ed957;
  --bad: #ff5a4f;
  --r: 14px;
  --head: "Russo One", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 16px/1.55 Rubik, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* зерно поверх всего — грязный вид как у 1.6 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- шапка ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(#0c0d0ae6, #0c0d0a99);
  backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff0d;
}
.brand { display: flex; align-items: center; gap: 8px; font: 20px var(--head); letter-spacing: .04em; color: var(--yel); }
.brand span { color: var(--tx); margin-left: 4px; }
.brand .i { width: 24px; height: 24px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { white-space: nowrap; color: var(--mut); font-weight: 500; transition: color .2s; }
.nav nav a:hover { color: var(--yel); }
.nav-lk {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid #ffffff2a; background: #ffffff0a; color: var(--tx); font: 500 15px Rubik, sans-serif; cursor: pointer;
}
.nav-lk:hover { background: #ffffff18; }

.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: #000c; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(400px, 100%); padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--mut); cursor: pointer; padding: 4px; }
.modal-x:hover { color: var(--tx); }
.lk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 18px 0; background: #0006; border-radius: 10px; }
.lk-tabs button { padding: 9px; border: 0; border-radius: 7px; background: none; color: var(--mut); font: 500 15px Rubik, sans-serif; cursor: pointer; }
.lk-tabs button.on { background: var(--yel); color: #111; }
.lk-form { display: grid; gap: 12px; }
.lk-form[hidden] { display: none; }
.lk-form label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.lk-form input { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #0008; color: var(--tx); font: 15px Rubik, sans-serif; }
.lk-form input:disabled, .lk-form button:disabled { opacity: .5; cursor: not-allowed; }
.lk-form .btn { justify-content: center; margin-top: 4px; }
.lk-form .btn:disabled:hover { transform: none; }
.lk-soon { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #ffa42414; color: #f3d9b0; font-size: 14px; text-align: center; }

.nav-play {
  padding: 8px 18px; border-radius: 8px; background: var(--yel); color: #111;
  font: 15px var(--head); letter-spacing: .03em;
}

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
/* слои: фон de_dust → дым → огненное зарево → искры → бойцы → затемнение → вспышка */
.hero > * { will-change: transform; }
.hero-bg {
  position: absolute; inset: -30px;
  background: url("img/hero_bg.jpg") center 40% / cover no-repeat;
  filter: brightness(1.3) contrast(1.05);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { from { scale: 1.02; } to { scale: 1.1; } }

.hero-smoke { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.hero-smoke i {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(closest-side, #c8b89a33, #c8b89a10 55%, transparent);
  filter: blur(30px); animation: smoke 26s linear infinite;
}
.hero-smoke i:nth-child(1) { left: 30%; top: 10%; }
.hero-smoke i:nth-child(2) { left: 55%; top: 40%; animation-duration: 34s; animation-delay: -12s; }
.hero-smoke i:nth-child(3) { left: 5%; top: 50%; animation-duration: 40s; animation-delay: -20s; opacity: .7; }
@keyframes smoke {
  0% { translate: 0 0; rotate: 0deg; opacity: 0; }
  15% { opacity: 1; }
  100% { translate: -25vw -30vh; rotate: 40deg; opacity: 0; }
}

.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 74% 62%, #ff7a1a66, transparent 70%),
    radial-gradient(30% 40% at 82% 85%, #ffb02e55, transparent 70%),
    radial-gradient(60% 50% at 70% 110%, #ff4d0066, transparent 70%);
  mix-blend-mode: screen; animation: flicker 3.2s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: .85; } 40% { opacity: 1; } 55% { opacity: .7; } 70% { opacity: .95; } }

.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.hero-fighters {
  /* от самого верха экрана: обрез головы верхнего бойца прячется за краем и шапкой */
  /* прижаты к правому краю: задний боец (у него в оригинале срезана голова) почти уходит за экран */
  --shift: 30%;
  position: absolute; top: 0; bottom: 0; right: 0; translate: var(--shift) 0;
  height: 100%; width: auto; max-width: none;
  filter: drop-shadow(-24px 0 60px #ff6a0055) drop-shadow(0 30px 40px #000c) contrast(1.08) saturate(1.1);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 14%); mask-image: linear-gradient(0deg, transparent 0%, #000 14%);
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; translate: calc(var(--shift) + 60px) 30px; } to { opacity: 1; translate: var(--shift) 0; } }

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0c0d0af5 0%, #0c0d0ad9 30%, #0c0d0a66 52%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, #0c0d0aaa 12%, transparent 35%),
    linear-gradient(180deg, #0c0d0acc 0%, transparent 18%),
    repeating-linear-gradient(0deg, #0000 0 3px, #00000022 3px 4px);   /* строки ЭЛТ-монитора */
}
/* редкая вспышка — как выстрел где-то рядом */
.hero-flash {
  position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 70% 50%, #ffd28a, transparent 70%);
  opacity: 0; mix-blend-mode: overlay; animation: flash 9s infinite;
}
@keyframes flash { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .55; } 93% { opacity: .1; } 94% { opacity: .4; } 96% { opacity: 0; } }

.hero-in { position: relative; width: min(1200px, 100%); margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 80px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px;
  background: #ffffff10; border: 1px solid #ffffff1a; font-size: 14px; color: var(--mut);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mut); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 #7ed95799; animation: pulse 1.8s infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px #7ed95700; } 100% { box-shadow: 0 0 0 0 #7ed95700; } }

h1 {
  margin: 22px 0 14px; font: clamp(56px, 11vw, 140px)/.9 var(--head); letter-spacing: .01em;
  text-shadow: 0 6px 30px #000a;
}
h1 em {
  font-style: normal; color: var(--yel);
  background: linear-gradient(180deg, #fffbe0 0%, #ffe94d 35%, var(--yel) 60%, #ffae2e 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px #ffb02e55);
}
.hero h1 { animation: slam .9s cubic-bezier(.2, .8, .2, 1) both .15s; }
@keyframes slam { from { opacity: 0; transform: scale(1.25); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.lead { max-width: 520px; font-size: 19px; color: #d6d2bf; margin: 0 0 28px; }

.ipbox {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px;
  background: #000a; border: 1px solid #ffffff22; border-radius: 12px; margin-bottom: 22px;
}
.ipbox code { font-size: 20px; font-weight: 700; color: var(--yel); letter-spacing: .02em; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 9px 14px;
  border: 0; border-radius: 8px; background: #ffffff14; color: var(--tx); font: 500 14px Rubik, sans-serif;
  cursor: pointer; transition: background .2s;
}
.copy:hover { background: #ffffff26; }
.copy.sm { margin: 0; padding: 8px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 10px;
  font: 17px var(--head); letter-spacing: .03em; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--yel); color: #111; box-shadow: 0 10px 30px #f2d62e40; }
.btn-main:hover { box-shadow: 0 14px 40px #f2d62e66; }
.btn-ghost { border: 1px solid #ffffff33; background: #0006; }
.btn-ghost:hover { background: #ffffff14; }
.btn.sm { padding: 11px 18px; font-size: 15px; }

/* полоска как HUD внизу экрана 1.6 */
.hud { display: flex; flex-wrap: wrap; gap: 10px; }
.hud-cell {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; min-width: 150px;
  background: #000000a0; border: 1px solid #ffa42433; border-radius: 10px; color: var(--hud);
}
.hud-cell .i { align-self: center; }
.hud-cell b { font: 22px var(--head); max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-cell small { color: #ffa424aa; font-size: 13px; }

/* ---------- бегущая строка ---------- */
.ticker { background: var(--yel); color: #111; overflow: hidden; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 2; }
.ticker-in { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { padding: 14px 26px; font: 18px var(--head); letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; }
.ticker span::after { content: "✦"; margin-left: 52px; font-size: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.sec { width: min(1200px, 100%); margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px) 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
h2 { margin: 0; font: clamp(32px, 5vw, 48px)/1 var(--head); }
h2::before { content: ""; display: inline-block; width: 12px; height: .72em; margin-right: 14px; background: var(--yel); vertical-align: baseline; }
.sec-head p { margin: 0; color: var(--mut); }
h3 { margin: 0; font: 20px var(--head); letter-spacing: .02em; }

.offline-note {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 20px;
  border: 1px solid #ffa42455; background: #ffa42412; border-radius: var(--r); color: #f3d9b0;
}
.offline-note[hidden], .chart-empty[hidden] { display: none; }
.offline-note .i { color: var(--hud); width: 22px; height: 22px; margin-top: 2px; }
.offline-note code { background: #0006; padding: 1px 6px; border-radius: 5px; }

.live { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.live2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 18px; }
.map-card, .players, .chart-card, .maps-card, .step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.map-img { position: relative; aspect-ratio: 16 / 9; background: #000; }
.map-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; filter: saturate(1.1) contrast(1.05); }
.map-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000c, transparent 55%); }
.map-badge {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  font: clamp(22px, 3vw, 30px) var(--head); color: var(--yel); text-shadow: 0 2px 10px #000;
}
.map-meta { padding: 18px; display: grid; gap: 16px; }
.map-meta small { display: block; color: var(--mut); font-size: 13px; margin-bottom: 4px; }
.map-meta b { font-weight: 700; font-size: 17px; word-break: break-word; }
.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bar { height: 10px; border-radius: 99px; background: #ffffff12; overflow: hidden; margin: 6px 0 8px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hud), var(--yel)); transition: width .8s; }

.players { display: flex; flex-direction: column; }
.players-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.players-head span { color: var(--mut); font-size: 14px; }
[data-count] { background: var(--yel); color: #111 !important; font: 14px var(--head) !important; padding: 2px 10px; border-radius: 99px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; color: var(--mut); font-size: 13px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
td { padding: 10px 18px; border-bottom: 1px solid #ffffff08; }
td:first-child, th:first-child { width: 40px; color: var(--mut); }
td:nth-child(3) { font-family: var(--mono); color: var(--hud); }
td:nth-child(4) { color: var(--mut); white-space: nowrap; }
tr:hover td { background: #ffffff06; }
td.empty, li.empty { color: var(--mut); text-align: center; padding: 30px 18px; }
.nick { font-weight: 500; word-break: break-all; }
tr.top .nick { color: var(--yel); }

.chart { display: block; width: 100%; height: 170px; padding: 0 12px 14px; }
.chart-empty { margin: -100px 0 70px; text-align: center; color: var(--mut); font-size: 14px; }
.map-hist { list-style: none; margin: 0; padding: 0 12px 12px; }
.map-hist li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.map-hist li:not(.empty):hover { background: #ffffff08; }
.map-hist img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #000; }
.map-hist b { font-weight: 500; }
.map-hist small { margin-left: auto; color: var(--mut); white-space: nowrap; }
.map-hist li.now b { color: var(--yel); }

/* ---------- топ игроков ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; align-items: end; }
.pod {
  position: relative; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; display: grid; gap: 14px;
}
.pod::before { content: ""; position: absolute; inset: 0; opacity: .14; background: radial-gradient(80% 90% at 85% 0%, var(--c), transparent 70%); }
.pod.p1 { --c: #ffd23f; border-color: #ffd23f66; padding-top: 34px; }
.pod.p2 { --c: #cfd8e3; }
.pod.p3 { --c: #e08a4a; }
.pod-place { position: absolute; right: 18px; top: 6px; font: 72px/1 var(--head); color: transparent; -webkit-text-stroke: 2px var(--c); opacity: .5; }
.pod-medal { width: 38px; height: 38px; color: var(--c); }
.pod-name { position: relative; font: 22px var(--head); word-break: break-word; color: var(--c); }
.pod-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pod-stats div { background: #0005; border-radius: 8px; padding: 8px 10px; }
.pod-stats small { display: block; color: var(--mut); font-size: 12px; }
.pod-stats b { font: 18px var(--head); }

.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: #0006; border: 1px solid var(--line); color: var(--mut); min-width: min(280px, 100%); }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--tx); font: 15px Rubik, sans-serif; }
.muted { color: var(--mut); font-size: 14px; }
.table-scroll { overflow-x: auto; }
table.stats { min-width: 720px; }
table.stats td { font-variant-numeric: tabular-nums; }
table.stats td:nth-child(3) { font-family: inherit; color: inherit; }
table.stats td.num { font-family: var(--mono); color: var(--hud); }
table.stats td.dim { color: var(--mut); }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--tx); }
th.sortable.on { color: var(--yel); }
th.sortable.on::after { content: " ▾"; }
.rank { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; background: #ffffff0d; font: 13px var(--head); color: var(--mut); }

/* ---------- баны ---------- */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.seg button { padding: 7px 14px; border: 0; border-radius: 7px; background: none; color: var(--mut); font: 500 14px Rubik, sans-serif; cursor: pointer; }
.seg button.on { background: var(--yel); color: #111; }
table.bans { min-width: 760px; }
table.bans td:first-child { width: auto; color: var(--tx); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.act { color: var(--bad); background: #ff5a4f1a; }
.badge.exp { color: var(--mut); background: #ffffff0d; }
.badge.perm { color: #ff8a80; background: #ff5a4f26; }

/* ---------- как зайти ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step .num { font: 54px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px #f2d62e66; }
.step p { margin: 0; color: #cfcbb7; flex: 1; }
kbd { font-family: var(--mono); background: #ffffff1a; border: 1px solid #ffffff2a; border-bottom-width: 3px; padding: 0 7px; border-radius: 5px; }
.cmd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; background: #000a; border: 1px solid var(--line); border-radius: 10px; }
.cmd code { color: var(--yel); font-size: 14px; word-break: break-all; }
.step .btn { align-self: flex-start; }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; }
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(5) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: saturate(.9); }
.gallery button:hover img { transform: scale(1.06); filter: saturate(1.15); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #000e; cursor: zoom-out; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 80px #000; }

/* ---------- правила ---------- */
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li {
  counter-increment: r; display: flex; gap: 16px; align-items: baseline; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--t); border-radius: 10px; color: #cfcbb7;
}
.rules li:nth-child(even) { border-left-color: var(--ct); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 18px var(--head); color: var(--mut); }
.rules b { color: var(--tx); }

/* ---------- подвал ---------- */
.foot { margin-top: 110px; border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { width: min(1200px, 100%); margin: 0 auto; padding: 34px clamp(16px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot code { color: var(--yel); }
.foot small { color: var(--mut); margin-left: auto; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 140%);
  padding: 12px 20px; border-radius: 10px; background: var(--yel); color: #111; font: 15px var(--head);
  transition: transform .3s, opacity .3s; pointer-events: none; opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- телефон ---------- */
.nav-lk, .nav-play { white-space: nowrap; }
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-lk { margin-left: auto; }
}
@media (max-width: 900px) {
  .live, .live2, .steps, .podium { grid-template-columns: 1fr; }
  .pod.p1 { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery button:nth-child(5) { grid-row: span 1; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav-lk { margin-left: auto; padding: 8px 10px; }
  .nav-lk span { display: none; }
  .hero-fighters { --shift: 38%; opacity: .5; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 4%, #0c0d0acc 50%, #0c0d0a77 100%), repeating-linear-gradient(0deg, #0000 0 3px, #00000022 3px 4px); }
  .ipbox { display: flex; justify-content: space-between; }
  .ipbox code { font-size: 17px; }
  .copy span { display: none; }
  .hud-cell { flex: 1 1 100%; }
  .foot small { margin-left: 0; }
  td, th { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .ticker-in, .dot.on, .hero-smoke i, .hero-glow, .hero-flash, .hero h1, .hero-fighters { animation: none; }
  .hero-embers { display: none; }
}

/* ---------- Привилегии ---------- */
.priv-free {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center;
  background: linear-gradient(110deg, #1c1f15, var(--card)); border: 1px solid var(--line);
  border-left: 4px solid var(--ok); border-radius: var(--r); padding: 22px 24px; margin-bottom: 22px;
}
.priv-free-tag { grid-column: 1 / -1; font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.priv-free h3 { margin: 0; font: 26px var(--head); }
.priv-free h3 span { font: 15px/1 inherit; font-family: inherit; color: var(--mut); margin-left: 8px; }
.priv-free ul { grid-column: 1; }
.priv-free .priv-imgs { grid-column: 2; grid-row: 2 / span 2; width: 300px; }

.priv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.priv {
  --c: var(--yel);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: var(--r); padding: 20px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.priv:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c) 45%, transparent); }
.priv header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.priv h3 { margin: 0; font: 22px var(--head); color: var(--c); }
.priv .price { font: 20px var(--head); color: var(--tx); white-space: nowrap; }
.priv-free ul, .priv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; color: var(--mut); font-size: 15px; }
.priv-free li, .priv li { position: relative; padding-left: 18px; }
.priv-free li::before, .priv li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--ok)); }
.priv-free li::before { background: var(--ok); }
.priv li b, .priv-free li b { color: var(--tx); }
.priv li.hl { color: var(--tx); font-weight: 600; }
.priv-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.priv-imgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #0f100c; }
.priv-sponsor { background: radial-gradient(120% 80% at 100% 0%, #3a3010 0%, var(--card) 60%); }
.priv-demo { margin-top: auto; font: 14px var(--mono); background: #0f100c; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: #f2d62e; }
.priv-demo .g { color: #7ed957; } .priv-demo .t { color: var(--ct); }
.priv-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--r); }
.priv-buy p { margin: 0; color: var(--mut); }
.priv-buy b { color: var(--yel); }
@media (max-width: 720px) {
  .priv-free { grid-template-columns: 1fr; }
  .priv-free .priv-imgs { grid-column: 1; grid-row: auto; width: auto; }
}
