/* SITE-404 — в стиле сайтов BloodStone: чёрный фон, Russo One заглавными; акцент — зелёный цвет логотипа. */
:root {
  --bg: #030303;
  --bg-2: #08080a;
  --card: #0d0d10;
  --card-2: #151517;
  --line: #1f1f23;
  --line-2: #303035;
  --text: #f5f5f5;
  --soft: #dddddd;
  --muted: #888888;
  --dim: #55555c;
  --num: #333338;
  --acc: #3ddc84;
  --acc-hi: #6cf0a6;
  --acc-dark: #0d4528;
  --acc-line: #2a9d5f;
  --danger: #e5484d;
  --green: #3fd17a;

  --head: "Russo One", "Arial Black", sans-serif;
  --body: "Montserrat", "Segoe UI", sans-serif;
  --wrap: 1240px;
  --r: 8px;
  --r-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: none; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.12; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.red { color: var(--acc); }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 27px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card-2); color: #fff; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, filter .15s;
}
.btn:hover { border-color: #4a4a52; }
.btn.fire { background: linear-gradient(#1c7d4a, var(--acc-dark)); border-color: var(--acc-line); }
.btn.fire:hover { filter: brightness(1.18); border-color: var(--acc); }
.btn.big { height: 52px; padding: 0 32px; text-transform: uppercase; letter-spacing: .3px; }
.btn.ghost { background: var(--card-2); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.steam { background: #111216; border-color: #2a3240; }
.btn.steam:hover { border-color: #66c0f4; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .4; cursor: default; }
.round-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(#1c7d4a, var(--acc-dark)); border: 1px solid var(--acc-line); }
.round-btn svg { width: 14px; height: 14px; }

/* ---------------- шапка ---------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(4, 4, 4, .96); border-bottom: 1px solid #111114; }
.topbar-in { display: flex; align-items: center; gap: 22px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 40px; width: auto; flex: none; max-width: none; }
.logo span { font: 400 17px/0.95 var(--head); text-transform: uppercase; }
.logo span em { display: block; font-style: normal; color: var(--acc); }
.menu { display: flex; align-self: stretch; gap: 4px; margin-left: 18px; }
.menu a { display: flex; align-items: center; padding: 0 12px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .2px; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; }
.menu a.active { color: #fff; border-bottom-color: var(--acc); background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(61, 220, 132, 0.12)); }
.online-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line-2); text-decoration: none; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.off { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.account { display: flex; align-items: center; }
.me-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 4px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line-2); text-decoration: none; font-weight: 700; font-size: 14px; max-width: 200px; }
.me-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card-2); cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; }

/* ---------------- аватары ---------------- */
.ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); display: inline-grid; place-items: center; font: 700 14px var(--body); color: #fff; overflow: hidden; }
.ava.lg { width: 104px; height: 104px; font-size: 38px; border-radius: var(--r); }
.ava.md { width: 48px; height: 48px; font-size: 18px; border-radius: var(--r-sm); }
.ava.sm { width: 28px; height: 28px; font-size: 12px; }

/* ---------------- первый экран ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #111114;
  background: radial-gradient(ellipse 55% 75% at 72% 50%, rgba(20, 110, 60, 0.35), transparent 70%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 560px; padding-top: 40px; padding-bottom: 40px; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .4px; text-transform: uppercase; }
.hero h1 { margin: 14px 0 16px; font-size: clamp(46px, 6vw, 72px); letter-spacing: -1px; line-height: 1.02; }
.hero h1 span { display: block; color: var(--acc); }
.hero .sub { max-width: 44ch; margin: 0 0 30px; color: #b5b5b8; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(100%, 480px); height: auto; filter: drop-shadow(0 0 60px rgba(61, 220, 132, .28)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ip { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.ip button { border: 1px dashed var(--line-2); background: transparent; color: #fff; font: 700 14px var(--body); padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; }
.ip button:hover { border-color: var(--acc); }

/* живой онлайн под героем */
.live-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 22px 26px; margin-top: -1px; }
.live-num { display: flex; align-items: baseline; gap: 10px; font: 400 46px/1 var(--head); font-variant-numeric: tabular-nums; }
.live-num small { font: 600 15px var(--body); color: var(--muted); }
.live-mid { min-width: 0; }
.live-top { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 10px; }
.live-top .rt { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-players { display: flex; gap: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--acc-line); }
.chip.afk { color: var(--dim); }
.live-peak { text-align: right; color: var(--muted); font-size: 14px; }
.live-peak b { display: block; color: #fff; font: 400 26px var(--head); }

/* ---------------- разделы ---------------- */
.section { padding: 84px 0 0; }
.sec-title { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 34px; font-size: clamp(24px, 3.2vw, 32px); text-align: center; }
.sec-title::before, .sec-title::after { content: ""; width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--acc)); flex: none; }
.sec-title::after { background: linear-gradient(90deg, var(--acc), transparent); }
.sec-more { display: flex; justify-content: center; margin-top: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.more { color: var(--acc); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.page-head { padding: 56px 0 6px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -1px; }
.page-head h1 span { color: var(--acc); }
.page-head p { margin: 12px 0 0; color: var(--muted); max-width: 64ch; font-size: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.empty { padding: 28px; color: var(--muted); text-align: center; }

/* цифры сервера */
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat b { display: block; font: 400 34px/1.1 var(--head); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }

/* как зайти — как «Как это работает» */
.how { background: var(--bg-2); border-top: 1px solid #111114; border-bottom: 1px solid #111114; padding: 64px 0; margin-top: 84px; }
.how .sec-title { margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 400 42px/1 var(--head); color: var(--num); }
.steps b { font: 700 15px var(--body); text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 14px; }
.steps code { font: 700 13px var(--body); color: #fff; background: var(--card-2); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* почему мы — сетка с красными номерами */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.feature { counter-increment: f; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.feature::before { content: "0" counter(f); display: block; font: 400 22px var(--head); color: var(--acc); margin-bottom: 14px; }
.feature b { display: block; font-size: 16px; margin-bottom: 8px; }
.feature span { color: var(--muted); font-size: 14px; }

/* новости */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: border-color .15s; }
.news-card:hover { border-color: var(--acc-line); }
.news-img { aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 50% 60%, rgba(20, 110, 60, 0.50), transparent 70%), var(--card-2); background-size: cover; background-position: center; position: relative; }
.news-img.none::after { content: ""; position: absolute; inset: 24%; background: url("/static/img/logo.png") center / contain no-repeat; opacity: .35; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.news-body time { font-size: 13px; color: var(--acc); font-weight: 700; }
.news-body h3 { font-size: 18px; }
.news-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article { max-width: 780px; }
.article .cover { width: 100%; border-radius: var(--r); margin: 24px 0; border: 1px solid var(--line); }
.article .text { font-size: 17px; line-height: 1.75; color: #d0d0d3; white-space: pre-line; }

/* топ */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.board { padding: 6px 6px 10px; }
.board h3 { padding: 16px 16px 10px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.board h3 i { width: 4px; height: 18px; background: var(--acc); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 36px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
a.row:hover { background: var(--card-2); }
.row .n { font: 400 17px var(--head); color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
li:nth-child(-n+3) > .row .n { color: var(--acc); }
.row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line-2); }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 700 14px var(--body); cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: linear-gradient(#1c7d4a, var(--acc-dark)); color: #fff; box-shadow: inset 0 0 0 1px var(--acc-line); }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--card); color: #fff; font: 600 15px var(--body); }
.search input:focus { outline: none; border-color: var(--acc); }
.search svg { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; color: var(--dim); }
.suggest { position: absolute; left: 0; right: 0; top: 52px; z-index: 5; padding: 6px; display: grid; gap: 2px; box-shadow: 0 20px 50px -10px #000; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.suggest a:hover, .suggest a:focus-visible { background: var(--card-2); }

/* таблицы */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; padding: 14px 16px; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #101013; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .nowrap { white-space: nowrap; }
.t a { text-decoration: none; font-weight: 700; }
.t a:hover { color: var(--acc); }
.team { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.team i { width: 8px; height: 8px; border-radius: 50%; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.red { background: rgba(229, 72, 77, .15); color: #ff7a7f; border: 1px solid rgba(229, 72, 77, .35); }
.tag.green { background: rgba(63, 209, 122, .1); color: #7be3a6; border: 1px solid rgba(63, 209, 122, .3); }
.tag.grey { background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 18px; color: var(--muted); }

/* график */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 22px 22px 0; }
.chart span { flex: 1; min-width: 2px; background: linear-gradient(var(--acc), var(--acc-dark)); opacity: .85; }
.chart span:hover { opacity: 1; background: var(--acc-hi); }
.chart span.gap { background: var(--line); height: 2px !important; }
.chart-axis { display: flex; justify-content: space-between; padding: 8px 22px 16px; font-size: 13px; color: var(--dim); }

/* донат — как карточки кейсов */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiers.scroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier { --c: #fff; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .15s; }
.tier:hover { border-color: var(--acc-line); }
.tier.mine { border-color: var(--c); }
.tier-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(ellipse 55% 70% at 50% 60%, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%), #08080a; }
.tier-art img { position: absolute; inset: 9% 11%; width: 78%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .85)); transform: rotate(-5deg); transition: transform .25s; }
.tier:hover .tier-art img { transform: rotate(-2deg) scale(1.04); }
.tier.hit .tier-art::after { content: "ХИТ"; position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 4px; background: linear-gradient(#1c7d4a, var(--acc-dark)); border: 1px solid var(--acc-line); font: 700 12px var(--body); }
.tier-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; background: linear-gradient(rgba(0, 0, 0, 0), rgba(12, 12, 15, .93) 43%, #0d0d10); }
.tier h3 { font-size: 20px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-chip { display: flex; flex-direction: column; padding: 5px 10px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line-2); font: 700 15px/1.2 var(--body); }
.price-chip small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.price-chip.red { background: rgba(20, 110, 60, 0.25); border-color: rgba(61, 220, 132, 0.40); color: #7be3a6; }
.price-row .round-btn { margin-left: auto; }
.tier .lim { margin: 0; font-weight: 600; color: var(--soft); font-size: 14px; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 7px; font-size: 14px; color: #bdbdc1; flex: 1; }
.perks li { position: relative; padding-left: 18px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--acc); transform: rotate(45deg); }
.perks .inh { color: var(--muted); font-style: italic; }
.perks .inh::before { display: none; }
.tier .btn { width: 100%; }
.buy-note { margin-top: 24px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.buy-note p { margin: 0; color: var(--muted); max-width: 72ch; }
.buy-note b { color: #fff; }
.rules-list { columns: 2 340px; column-gap: 48px; margin: 0; padding-left: 20px; color: #c2c2c6; }
.rules-list li { break-inside: avoid; margin-bottom: 8px; }

/* состав */
.staff-group { margin-bottom: 36px; }
.staff-group h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.staff-group h2 i { width: 4px; height: 20px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.member { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; transition: border-color .15s; }
a.member:hover { border-color: var(--acc-line); }
.member .who { min-width: 0; }
.member b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member small { color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* правила */
.rules-sec { padding: 26px 28px; margin-bottom: 16px; }
.rules-sec h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.rules-sec h2::before { content: ""; width: 4px; height: 20px; background: var(--acc); }
.rules-sec ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: #cfcfd2; }

/* профиль и кабинет */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px; position: relative; overflow: hidden; }
.profile-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 120% at 0% 50%, rgba(20, 110, 60, 0.35), transparent 70%); }
.profile-head > * { position: relative; }
.profile-head h1 { font-size: clamp(26px, 4vw, 38px); word-break: break-word; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge { padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 13px; background: var(--card-2); border: 1px solid var(--line-2); }
.profile-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tile { padding: 22px; }
.tile b { display: block; font: 400 28px/1.15 var(--head); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 14px; }
.ban-alert { margin-top: 16px; padding: 18px 22px; border-color: rgba(229, 72, 77, .5); background: rgba(229, 72, 77, .1); }
.login-card { max-width: 560px; margin: 48px auto 0; padding: 44px 34px; text-align: center; }
.login-card h2 { font-size: 28px; margin-bottom: 12px; }
.login-card p { color: var(--muted); margin: 0 0 26px; }
.cab-donate { margin-top: 16px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cab-donate h3 { font-size: 20px; margin-bottom: 6px; }

/* подвал */
.footer { margin-top: 100px; border-top: 1px solid #111114; background: var(--bg-2); }
.footer-in { max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand p { margin: 14px 0 0; color: var(--dim); max-width: 38ch; font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols b { font: 400 14px var(--head); text-transform: uppercase; margin-bottom: 4px; }
.footer-cols a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-cols a:hover { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--acc-line); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* документы */
.doc { max-width: 800px; margin: 0 auto; padding: 56px 24px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 700 18px var(--body); text-transform: none; margin: 32px 0 10px; }
.doc p { margin: 0 0 12px; color: #c9c9cc; }

/* ---------------- адаптив ---------------- */
@media (max-width: 1140px) {
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: rgba(4, 4, 4, .98); border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 8px; font-size: 15px; border-bottom: 1px solid #111114; }
  .menu a.active { border-bottom-color: var(--acc); }
  .burger { display: flex; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 36px; }
  .hero-art { order: -1; } .hero-art img { width: min(58%, 260px); }
  .live-strip { grid-template-columns: auto minmax(0, 1fr); }
  .live-peak { display: none; }
  .stats-strip, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid, .steps, .tiers, .tiers.scroll, .duo { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap, .topbar-in { padding-left: 16px; padding-right: 16px; }
  .topbar-in { gap: 10px; height: 64px; }
  .menu { inset: 64px 0 auto 0; }
  .me-link span:not(.ava), .account .btn span { display: none; }
  .tile { padding: 16px; } .tile b { font-size: 21px; }
  .me-link { padding: 0 4px; }
  .account .btn { padding: 0 10px; }
  .hero h1 { font-size: 42px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .live-strip { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .sec-title::before, .sec-title::after { width: 28px; }
  .stat { padding: 16px; } .stat b { font-size: 26px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 64px; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 0 6px; }
  .t th, .t td { padding: 12px 10px; }
  .profile-head { padding: 20px; } .profile-head .actions { margin-left: 0; width: 100%; }
}

/* ---------------- фигурки SCP ---------------- */
.deco-sec { position: relative; }
.deco {
  position: absolute; bottom: 0; z-index: 0; pointer-events: none;
  height: min(clamp(280px, 22vw, 420px), calc(100% - 70px)); width: auto; max-width: calc((100vw - var(--wrap)) / 2 - 20px); object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .85)); transform: none;
  animation: bob 7s ease-in-out infinite;
}
.deco.l { right: calc(100% + 28px); object-position: right bottom; }
.deco.r { left: calc(100% + 28px); object-position: left bottom; animation-delay: -3.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.deco.rv { opacity: 0; transform: translate(var(--dx, 0), 0); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.deco.l.rv { --dx: -60px; } .deco.r.rv { --dx: 60px; }
.deco.rv.in { opacity: 1; transform: none; }
.how .deco { height: min(300px, calc(100% + 110px)); bottom: -64px; }
@media (max-width: 1500px) { .deco { display: none; } }

.deco-head { position: relative; min-height: 230px; padding-right: 240px; }
.head-deco { position: absolute; right: 0; bottom: -18px; height: 250px; width: auto; max-width: 260px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .85)); animation: appear .8s ease-out both, bob 7s 1s ease-in-out infinite; }
@media (max-width: 760px) { .deco-head { padding-right: 0; min-height: 0; } .head-deco { display: none; } }

/* ---------------- правила ---------------- */
.rule { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 22px 24px; margin-bottom: 14px; transition: border-color .2s, translate .25s, opacity .6s ease, transform .6s; }
.rule:hover { border-color: var(--acc-line); translate: 4px 0; }
.rule-n { font: 400 36px/1 var(--head); color: var(--acc); }
.rule h2 { font-size: 18px; margin-bottom: 6px; }
.rule p { margin: 0 0 12px; color: #c2c2c6; }
.rule-pun { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rule-pun small { width: 100%; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.rule-pun span { padding: 3px 10px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.rule-pun span:last-of-type { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .4); color: #ff8a8e; }
.rule-pun i { color: var(--dim); font-style: normal; }

/* ---------------- подвал: копирайт справа ---------------- */
.footer-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; color: var(--muted); font-size: 14px; }
.footer-copy span:first-child { color: #fff; font: 400 14px var(--head); text-transform: uppercase; }
.footer-copy .btn { margin-top: 10px; }
@media (max-width: 760px) { .footer-copy { align-items: flex-start; text-align: left; } }

/* ---------------- анимации ---------------- */
/* логотип: плавает, иногда «глючит» как на самом логотипе — сдвиг и цветные тени */
.hero-art img { animation: glitch 5s steps(1) infinite; }
@keyframes glitch {
  0%, 86%, 100% { transform: none; filter: drop-shadow(0 0 60px rgba(61, 220, 132, .28)); }
  87% { transform: translate(-6px, 2px) skewX(-6deg); filter: drop-shadow(-6px 0 0 rgba(229, 72, 77, .8)) drop-shadow(6px 0 0 rgba(90, 160, 255, .8)); }
  89% { transform: translate(5px, -3px); filter: drop-shadow(5px 0 0 rgba(229, 72, 77, .8)) drop-shadow(-5px 0 0 rgba(90, 160, 255, .8)); clip-path: inset(30% 0 40% 0); }
  91% { transform: translate(-3px, 0); filter: drop-shadow(-3px 0 0 rgba(229, 72, 77, .7)) drop-shadow(3px 0 0 rgba(90, 160, 255, .7)); clip-path: none; }
  93% { transform: none; filter: drop-shadow(0 0 60px rgba(61, 220, 132, .28)); }
}
/* первый экран выезжает по очереди */
.hero-in > div:first-child > * { opacity: 0; animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-in > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero-in > div:first-child > *:nth-child(3) { animation-delay: .18s; }
.hero-in > div:first-child > *:nth-child(4) { animation-delay: .28s; }
.hero-in > div:first-child > *:nth-child(5) { animation-delay: .38s; }
.hero-art { opacity: 0; animation: appear 1s .2s ease-out forwards, float 6s 1.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* блоки появляются при прокрутке */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
/* смена страницы */
#app.enter { animation: page .35s ease-out; }
@keyframes page { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* «сервер работает» пульсирует */
.dot.on { position: relative; }
.dot.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
/* блик на зелёных кнопках */
.btn.fire { position: relative; overflow: hidden; }
.btn.fire::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn.fire:hover::after { left: 120%; }
/* карточки приподнимаются и светятся */
.tier, .news-card, .stat, .feature, a.member, .board { transition: transform .25s, border-color .2s, box-shadow .25s; }
.tier:hover, .news-card:hover, .feature:hover, a.member:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(61, 220, 132, .45); }
.stat:hover { border-color: var(--acc-line); }
.feature:hover::before { color: var(--acc-hi); }
/* столбики графиков вырастают */
.chart span { transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 12ms); }
@keyframes grow { from { transform: scaleY(0); } }
/* строки топа появляются по очереди */
.rows li { animation: rise .45s ease-out backwards; animation-delay: calc(var(--i, 0) * 45ms); }
/* загрузка — бегущий блик */
.empty.loading { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .hero-in > div:first-child > *, .hero-art { opacity: 1 !important; transform: none !important; }
  .deco { transform: none !important; }
}
