/* ============================================================
   WILDGRIEF — стили
   ============================================================ */

:root {
  --bg: #0f0f10;
  --surface: #18181a;
  --panel: #18181acc;
  --raised: #202023;
  --raised-hover: #2a2a2e;
  --ink: #f4f4f5;
  --text: #f4f4f5cc;
  --muted: #8e8e96;
  --dim: #6e6e76;
  --hint: #4e4e56;
  --line: #26262a;
  --fill: #ffffff08;
  --fill-mid: #ffffff0f;
  --fill-strong: #ffffff1a;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-ink: #1c0e04;
  --ok: #3ddc6d;
  --warn: #f0a020;
  --danger: #ff4545;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 8px 30px #00000055;
  --blur: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
:root.light {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --panel: #ffffffcc;
  --raised: #f0f1f3;
  --raised-hover: #e4e5e8;
  --ink: #16181d;
  --text: #2a2d34cc;
  --muted: #6b6e76;
  --dim: #9a9da4;
  --hint: #c0c3c8;
  --line: #e2e3e6;
  --fill: #16181d08;
  --fill-mid: #16181d0f;
  --fill-strong: #16181d1a;
  --accent: #e86a0a;
  --accent-hover: #ff7a1a;
  --accent-ink: #fff;
  --ok: #2ecc71;
  --warn: #f0a020;
  --danger: #e5484d;
  --shadow: 0 8px 30px #16181d1a;
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
code { font-family: inherit; font-weight: 700; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1680px; margin: 0 auto; padding: 20px 16px 24px; display: grid; gap: 16px; }
@media (min-width: 768px) { .container { padding: 24px 32px 32px; gap: 20px; } }
@media (min-width: 1440px) { .container { padding: 28px 48px 40px; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--raised); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--raised-hover); }
.btn--light { background: #fff; color: #1a1a1a; }
.btn--light:hover { background: #f0f0f0; }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 52px; font-size: 15px; }
.btn--block { width: 100%; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 109, .18); flex: none; }
.dot--lg { width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(61, 220, 109, .2); }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--panel);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line);
}
.header__in {
  position: relative;
  width: 100%; max-width: 1680px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}
@media (min-width: 768px) { .header__in { padding: 12px 32px; } }
@media (min-width: 1440px) { .header__in { padding: 14px 48px; } }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }

.online-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .07);
  font-weight: 700; font-size: 13px; color: var(--muted);
  letter-spacing: .01em; white-space: nowrap;
}
.online-pill svg { color: var(--muted); }
.online-pill b { color: var(--ink); font-weight: 800; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: var(--ink); background: rgba(255, 255, 255, .12); font-weight: 700; }

.ip-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; font-size: 14px;
}
.ip-btn svg { color: var(--muted); }
.ip-btn:hover { background: var(--raised-hover); }

.header__cta { height: 42px; }
.header__auth {
  height: 42px;
  background: rgba(255, 122, 26, .14); color: var(--ink);
  border: 1px solid rgba(255, 122, 26, .42);
}
.header__auth:hover { background: rgba(255, 122, 26, .22); border-color: rgba(255, 122, 26, .6); }

.theme-btn { width: 42px; height: 42px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s; }
.theme-btn:hover { color: var(--ink); background: var(--fill-strong); }
.theme-btn .i-moon { display: none; }
.light .theme-btn .i-sun { display: none; }
.light .theme-btn .i-moon { display: block; }

.burger { display: none; width: 42px; height: 42px; border-radius: var(--r-md); background: var(--raised); place-items: center; }
/* На средних ширинах прячем IP-кнопку (IP есть в плитке «Сервер онлайн» и мобильном меню) */
@media (max-width: 1300px) { .ip-btn { display: none; } }
@media (max-width: 1120px) { .header__in { gap: 8px; } .nav a { padding: 9px 11px; } }
@media (min-width: 961px) and (max-width: 1120px) { .header__in { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    margin: 0; flex-direction: column; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; font-size: 16px; color: var(--ink); }
  .nav a.is-active { background: var(--raised); }
  .burger { display: grid; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .theme-btn { display: none; }
}
@media (max-width: 640px) {
  .header__cta { display: none; }
  .online-pill { display: none; }
  .theme-btn { width: 36px; height: 36px; }
  .ip-btn { padding: 0 12px; font-size: 13px; }
  .ip-btn svg { display: none; }
}
@media (max-width: 400px) { .brand span { display: none; } }

/* ---------- первый экран ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
@media (min-width: 1440px) { .banner { min-height: 460px; } }
.banner {
  position: relative; overflow: hidden;
  min-height: 400px;
  border-radius: var(--r-xl);
  /* картинка на весь баннер (assets/banner.webp) */
  background: #16161a url("../assets/banner.webp") 50% 35% / cover no-repeat;
  display: flex;
}
/* затемнение под текстом слева для читаемости */
.banner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, .74) 0%, rgba(10, 10, 12, .46) 28%, rgba(10, 10, 12, 0) 52%);
}
.banner__content { position: relative; z-index: 2; padding: 36px; display: flex; flex-direction: column; max-width: 440px; }
.banner h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 900; line-height: 1.08; color: #fff; }
.banner p { margin-top: 14px; color: rgba(255, 255, 255, .88); font-weight: 500; max-width: 340px; }
.banner__actions { margin-top: auto; padding-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.banner__art { position: absolute; right: 0; bottom: 0; top: 0; width: 56%; z-index: 1; }
.banner__art .skin { position: absolute; bottom: -6px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 24px rgba(80, 20, 0, .45)); }
.banner__art .skin--a { right: 44%; height: 76%; }
.banner__art .skin--b { right: 9%; height: 88%; }
.banner__art .skin--griefer { right: 12%; height: 100%; bottom: -14px; }
.banner__art .cube-slot { position: absolute; }
.banner__art .cube-slot--1 { right: 68%; bottom: 10px; }
.banner__art .cube-slot--2 { right: 1%; bottom: 6px; }

.side-tiles { display: grid; grid-template-rows: repeat(3, auto) 1fr; gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: background .15s;
}
a.tile:hover { background: var(--raised); }
.tile b { display: block; font-size: 15px; font-weight: 700; }
.tile small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.tile__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.tile__icon--tg { background: rgba(42, 171, 238, .14); color: #3bb4f2; }
.tile__icon--ds { background: rgba(88, 101, 242, .16); color: #7b87ff; }
.tile__icon--chat { background: rgba(255, 122, 26, .14); color: var(--accent); }
.tile__icon--on { background: rgba(61, 220, 109, .12); color: var(--ok); }
.tile--online { flex-direction: column; align-items: stretch; gap: 12px; }
.tile__row { display: flex; align-items: center; gap: 14px; }
.ip-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; border-radius: var(--r-md);
  background: var(--raised); font-weight: 700; font-size: 14px;
}
.ip-row svg { color: var(--muted); }
.ip-row:hover { background: var(--raised-hover); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .side-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 640px) {
  .banner { min-height: 0; flex-direction: column; }
  .banner { background-position: 50% 60%; background-size: cover; }
  .banner::before { background: linear-gradient(180deg, rgba(10, 10, 12, .72) 0%, rgba(10, 10, 12, .45) 40%, rgba(10, 10, 12, 0) 62%); }
  .banner__content { padding: 24px 22px 0; }
  .banner__art { position: relative; width: 100%; height: 210px; }
  .banner__art .skin--a { right: 52%; }
  .banner__art .skin--b { right: 14%; }
  .banner__actions { order: 3; padding: 20px 0 22px; }
  .side-tiles { grid-template-columns: 1fr; }
}

/* ---------- 3D-блоки ---------- */
.cube-slot { display: inline-grid; place-items: center; width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.6); }
.cube { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-45deg); }
.cube > i {
  position: absolute; inset: 0;
  background-size: 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.cube .f-front { transform: translateZ(calc(var(--s) / 2)); }
.cube .f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f-front::after, .cube .f-right::after { content: ''; position: absolute; inset: 0; }
.cube .f-front::after { background: rgba(0, 0, 0, .16); }
.cube .f-right::after { background: rgba(0, 0, 0, .36); }

/* ---------- калькулятор и промо ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.calc { padding: 28px; display: grid; gap: 16px; align-content: start; }
.calc__head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.calc h2 { font-size: 22px; font-weight: 800; line-height: 1.15; max-width: 200px; }
.calc__head p { color: var(--muted); font-size: 13px; font-weight: 500; padding: 12px 14px; background: var(--raised); border-radius: var(--r-md); }
.calc__label { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 6%), var(--raised-hover) var(--fill, 6%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); cursor: pointer; }
.calc__foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: stretch; }
.calc__val { padding: 10px 14px; background: var(--raised); border-radius: var(--r-md); position: relative; }
.calc__val small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.calc__val b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc__bonus { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; color: var(--ok); }
.calc__foot .btn { height: auto; min-height: 44px; padding: 0 28px; }

/* апгрейд привилегии */
.upgrade { padding: 28px; display: grid; gap: 16px; align-content: start; }
.upgrade h2 { font-size: 22px; font-weight: 800; line-height: 1.15; }
.upgrade__head p { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.upgrade__pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
/* кастомный выбор привилегии: иконка-куб + название + цена, выпадающее меню */
.upsel { position: relative; min-width: 0; }
.upsel__trigger {
  width: 100%;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md);
  text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upsel__trigger:hover { border-color: #3a3a40; }
.upsel.is-open .upsel__trigger { border-color: var(--accent); }
.upsel--to .upsel__trigger { border-color: rgba(255, 122, 26, .5); background: rgba(255, 122, 26, .06); }
.upsel--to.is-open .upsel__trigger { border-color: var(--accent); }
.upsel__art { width: 46px; height: 46px; display: grid; place-items: center; }
.upsel__art .cube-slot { --s: 24px; }
.upsel__info { min-width: 0; display: grid; }
.upsel__info small { color: var(--muted); font-size: 11px; font-weight: 600; }
.upsel__info b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upsel__chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s; }
.upsel.is-open .upsel__chev { transform: rotate(180deg); }

.upsel__menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  display: none; flex-direction: column; gap: 2px;
  max-height: 290px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.upsel.is-open .upsel__menu { display: flex; }
.upopt {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  transition: background .12s;
}
.upopt:hover { background: var(--raised); }
.upopt.is-active { background: rgba(255, 122, 26, .1); }
.upopt__art { width: 34px; height: 34px; display: grid; place-items: center; }
.upopt__art .cube-slot { --s: 18px; }
.upopt__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upopt.is-active .upopt__name { color: var(--accent); }
.upopt__price { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.upgrade__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--raised-hover); color: var(--accent); }
.upgrade__pay { color: var(--accent); }
@media (max-width: 560px) {
  .upgrade { padding: 22px; }
  .upgrade__pick { grid-template-columns: 1fr; }
  .upgrade__arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc { padding: 22px; }
  .calc__head { grid-template-columns: 1fr; gap: 12px; }
  .calc__foot { grid-template-columns: 1fr 1fr; }
  .calc__foot .btn { grid-column: 1 / -1; height: 48px; }
}

/* ---------- магазин ---------- */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 12px; }
.sidebar { padding: 16px; position: sticky; top: 92px; display: grid; gap: 8px; }
.sidebar__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 4px 0; }
.sidebar__label:not(:first-child) { margin-top: 10px; }
.sidebar__list { display: grid; gap: 6px; }
.side-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 48px; padding: 0 6px 0 14px;
  border-radius: var(--r-md);
  background: var(--raised); border: 1px solid transparent;
  font-weight: 700; font-size: 14px; color: var(--muted);
  text-align: left;
}
.side-btn:hover { color: var(--ink); }
.side-btn.is-active { color: var(--ink); border-color: var(--accent); background: rgba(255, 122, 26, .08); }
.side-btn .cube-slot { --s: 16px; }

.shop__main { min-width: 0; }

/* ---------- горячие товары (компактный стиль как в профиле) ---------- */
.hot { padding-top: 12px; display: grid; gap: 16px; }
.hot__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hot__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hot__eyebrow svg { color: var(--accent); }
.hot__title { margin-top: 10px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.hot__head p { margin-top: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.55; max-width: 60ch; }
.hot__timer { color: var(--muted); font-size: 13px; font-weight: 500; }
.hot__timer b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hot__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hot-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px;
  background: var(--surface); border-radius: 16px;
  text-align: left; width: 100%;
  transition: background .15s;
}
.hot-card:hover { background: #1d1d20; }
.hot-card__art { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--raised); }
.hot-card__art .cube-slot { --s: 26px; }
.hot-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.hot-card__name { display: block; font-size: 14.5px; font-weight: 700; margin-top: 2px; padding-right: 44px; }
.hot-card__price { margin-top: 5px; display: flex; align-items: baseline; gap: 8px; }
.hot-card__price b { color: var(--accent); font-size: 16px; font-weight: 700; }
.hot-card__price s { color: var(--muted); font-size: 12px; font-weight: 500; }
.hot-card .badge { position: absolute; top: 12px; right: 12px; }
.badge--accent { background: rgba(255, 122, 26, .14); color: var(--accent); font-weight: 700; }
@media (max-width: 960px) {
  .hot__list { grid-template-columns: 1fr; }
}

/* ---------- почему WildGrief (компактный стиль как в профиле) ---------- */
.why { padding-top: 112px; display: grid; gap: 20px; }
@media (max-width: 640px) { .why { padding-top: 72px; } }
.why__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.why__eyebrow svg { color: var(--accent); }
.why__head h2 { margin-top: 10px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.why__head h2 span { color: var(--accent); }
.why__head p { margin-top: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; line-height: 1.55; max-width: 62ch; }
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* Плоская карточка-плитка: иконка сверху, под ней заголовок и текст */
.feature {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px;
  background: var(--surface); border-radius: 16px;
  transition: background .15s;
}
.feature:hover { background: #1d1d20; }
.feature__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px; background: var(--raised);
}
.feature__icon .cube-slot { --s: 24px; }
.feature h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.feature p { margin-top: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.55; }

@media (max-width: 900px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }
.shop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop__head h2 { font-size: 26px; font-weight: 800; }
.shop__head .btn[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.product {
  display: flex; flex-direction: column;
  padding: 10px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: translate .35s cubic-bezier(.2, .8, .3, 1.2), rotate .35s cubic-bezier(.2, .8, .3, 1.2), border-color .3s, box-shadow .35s, background .35s;
}
/* Наведение: карточка слегка поворачивается (чётные — вправо, нечётные — влево) и подсвечивается оранжевым.
   translate/rotate — отдельные свойства, чтобы не конфликтовать с transform анимации появления. */
.product:hover {
  translate: 0 -6px; rotate: -1.6deg;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 75%, transparent);
}
.product:nth-child(even):hover { rotate: 1.6deg; }
.product:hover .product__art {
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 28%, var(--raised)), var(--raised) 75%);
}
.product:hover .product__name { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .product:hover, .product:nth-child(even):hover { rotate: none; translate: none; }
}
.product__art {
  position: relative;
  display: grid; place-items: center;
  height: 190px;
  background: var(--raised); border-radius: 14px;
  cursor: pointer;
  transition: background .35s;
}
.product__art .cube-slot { --s: 84px; transition: transform .25s; }
.product__art:hover .cube-slot { transform: translateY(-4px); }

/* Картинки товаров/категорий (аватарки с cdonate) */
.art-img { display: block; object-fit: contain; }
.product__art .art-img { width: 86%; height: 158px; border-radius: 10px; transition: transform .25s; }
.product__art:hover .art-img { transform: translateY(-4px); }
.buy__art .art-img { width: 92%; height: 92%; border-radius: 11px; }
.hot-card__art .art-img { width: 84%; height: 84%; border-radius: 8px; }
.upsel__art .art-img { width: 86%; height: 86%; border-radius: 8px; }
.upopt__art .art-img { width: 88%; height: 88%; border-radius: 6px; }
.side-btn .art-img { width: 22px; height: 22px; flex: none; }
.product__badges { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; pointer-events: none; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; font-size: 11px; font-weight: 800; }
.badge--sale { background: var(--danger); color: #fff; }
.badge--hit { background: rgba(255, 122, 26, .16); color: var(--accent); }
.badge--top { background: var(--accent); color: var(--accent-ink); }
.product__info {
  position: absolute; z-index: 2; right: 10px; bottom: 10px;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); color: var(--muted);
  font-weight: 800; font-size: 13px;
}
.product__art:hover .product__info { color: var(--ink); background: rgba(255, 255, 255, .1); }
.product__body { padding: 14px 6px 0; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 17px; font-weight: 800; transition: color .3s; }
.product__meta { margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.product__meta.is-bonus { color: var(--ok); }
.product__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { display: grid; line-height: 1.15; }
.price s { color: var(--muted); font-size: 12px; font-weight: 600; }
.price__spacer { height: 14px; }
.price b { font-size: 21px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 3px; }

@media (max-width: 960px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; padding: 12px; grid-template-columns: minmax(0, 1fr); }
  .sidebar__list { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sidebar__list::-webkit-scrollbar { display: none; }
  .side-btn { flex: none; height: 44px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { padding: 8px 8px 12px; border-radius: 16px; }
  .product__art { height: 140px; border-radius: 12px; }
  .product__art .cube-slot { --s: 60px; }
  .product__art .art-img { height: 114px; }
  .product__body { padding: 10px 4px 0; }
  .product__name { font-size: 15px; }
  .product__foot { flex-direction: column; align-items: stretch; }
  .product__foot .btn { width: 100%; }
  .price b { font-size: 18px; }
  .badge--hit { display: none; }
}

/* ---------- инфо-плитки ---------- */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 32px; }
.info__card { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.info__card h3 { margin-top: 6px; font-size: 18px; font-weight: 800; }
.info__card p { color: var(--muted); font-weight: 500; font-size: 14px; flex: 1; }
.info__card p b { color: var(--ink); }
.info__card .btn { margin-top: 8px; }
@media (max-width: 860px) { .info { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-section { padding-top: 48px; display: grid; gap: 20px; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.faq__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.faq__eyebrow svg { color: var(--accent); }
.faq__head h2 { margin-top: 10px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.faq details { background: var(--surface); border-radius: 14px; transition: background .15s; }
.faq details:hover { background: #1d1d20; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; font-size: 14.5px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__col { display: grid; gap: 10px; align-content: start; }
.faq__chev {
  width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s;
}
.faq details[open] .faq__chev { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.55; }
@media (max-width: 760px) {
  .faq { display: flex; flex-direction: column; }
  .faq__col { display: contents; }
  .faq details { width: 100%; }
}

/* ---------- подвал ---------- */
.footer { margin-top: 48px; background: var(--bg); border-top: 1px solid var(--line); }
.footer__inner {
  max-width: 1400px; margin: 0 auto; padding: 56px 48px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 40px;
}
.footer__brand .brand { font-size: 22px; }
.footer__pay { display: grid; grid-template-columns: repeat(2, 80px); gap: 22px 26px; margin-top: 30px; color: #fff; }
.footer__pay svg { width: 80px; height: 28px; display: block; }
.light .footer__pay { color: #1b1b1f; }
.footer__copy { font-size: 15px; font-weight: 600; color: var(--ink); }
.footer__note { margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.footer__legal small { display: block; margin-top: 24px; font-size: 15px; line-height: 2.05; color: #a4a4ab; }
.light .footer__legal small { color: #5f5f66; }
.footer__col { display: grid; align-content: start; gap: 18px; font-size: 15px; font-weight: 500; }
.footer__col h4 { margin-bottom: 14px; font-size: 19px; font-weight: 800; color: var(--ink); }
.footer__col a { color: #a4a4ab; transition: color .15s; }
.light .footer__col a { color: #5f5f66; }
.footer__col a:hover { color: var(--accent); }
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (max-width: 600px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 16px; }
  .footer__col h4 { margin-bottom: 4px; }
  .footer__col { gap: 14px; }
}

/* ---------- модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; }
.modal.is-open { display: grid; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 24px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.modal__dialog--wide { max-width: 1000px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; background: var(--raised); color: var(--muted); display: grid; place-items: center; }
.modal__close:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }

.buy__head { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.buy__art { width: 116px; height: 116px; flex: none; border-radius: 16px; background: var(--raised); display: grid; place-items: center; overflow: hidden; }
.buy__art .cube-slot { --s: 56px; }
.buy__mode { font-size: 12px; color: var(--muted); font-weight: 700; }
.buy__head h3 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.buy__bonus { font-size: 13px; color: var(--ok); font-weight: 700; }
.buy__form { margin-top: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  height: 48px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--raised); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 600;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input.is-invalid { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 12px; font-weight: 600; }
.field__error:empty { display: none; }
.field input.is-valid { border-color: var(--ok); }
.field__hint { font-size: 12px; font-weight: 600; margin-top: 4px; min-height: 14px; color: var(--muted); }
.field__hint:empty { display: none; }
.field__hint.is-ok { color: var(--ok); }
.field__hint.is-warn { color: var(--warn); }
.field[hidden] { display: none; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line); }
.pay b { font-size: 14px; }
.pay small { font-size: 11px; color: var(--muted); font-weight: 600; }
.pay:hover { border-color: #3a3a40; }
.pay.is-active { border-color: var(--accent); background: rgba(255, 122, 26, .08); }
@media (max-width: 420px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid span { color: var(--danger); }
.buy__total { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--raised); }
.buy__total > span { font-weight: 700; color: var(--muted); font-size: 14px; }
.buy__total s { margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.buy__total s:empty { display: none; }
.buy__total s:empty + b { margin-left: auto; }
.buy__total b { font-size: 26px; font-weight: 800; }

.perks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 2px; }
.perks li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.perks li:nth-child(odd) { background: var(--raised); }
.perks li span { color: var(--muted); }
.perks li .new { color: var(--ok); }


/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--r-md);
  background: #fff; color: #141414; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  transition: transform .2s, opacity .2s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- кнопка входа в шапке ---------- */
.header__auth { gap: 8px; }
.header__auth.is-auth { padding-left: 8px; }
.header__auth-ava { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; background: var(--raised-hover); flex: none; }
.header__auth-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .header__auth-label { display: none; }
  .header__auth { padding: 0 12px; }
}

/* ---------- окно входа ---------- */
.modal__dialog--auth { max-width: 420px; }
.auth__brand { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 4px 0 2px; }
.auth__avatar { width: 68px; height: 68px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 8px; }
.auth__brand h3 { font-size: 22px; font-weight: 800; }
.auth__brand p { color: var(--muted); font-size: 13px; font-weight: 500; }
.auth__form { margin-top: 20px; display: grid; gap: 14px; }
.field--icon .field__wrap { position: relative; display: flex; align-items: center; }
.field--icon .field__ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.field--icon input { width: 100%; padding-left: 42px; }
.field--icon input[type="password"], .field--icon #authPass { padding-right: 46px; }
.field__eye { position: absolute; right: 8px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.field__eye:hover { color: var(--ink); background: var(--raised-hover); }
.field__eye.is-on { color: var(--accent); }
.auth__forgot { justify-self: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth__forgot:hover { color: var(--accent); }
.auth__hint { text-align: center; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }

/* ---------- светлая тема — переопределения для хардкодированных значений ---------- */
.light .banner::before { background: linear-gradient(90deg, rgba(244, 245, 247, .82) 0%, rgba(244, 245, 247, .5) 28%, transparent 52%); }
.light .banner h1 { color: var(--ink); }
.light .banner p { color: var(--text); }
.light .btn--light { background: var(--ink); color: var(--bg); }
.light .btn--light:hover { background: #2a2d34; }
.light .btn--glass { background: rgba(0, 0, 0, .08); color: var(--ink); }
.light .btn--glass:hover { background: rgba(0, 0, 0, .14); }
.light .online-pill { background: var(--fill-strong); border-color: var(--line); }
.light .nav a:hover { background: var(--fill-mid); }
.light .nav a.is-active { background: var(--fill-strong); }
.light .hot-card:hover,
.light .feature:hover,
.light .faq details:hover,
.light .dtile:hover { background: var(--raised); }
.light .toast { background: var(--ink); color: var(--bg); }
.light .header__auth { background: rgba(232, 106, 10, .1); border-color: rgba(232, 106, 10, .35); }
.light .header__auth:hover { background: rgba(232, 106, 10, .18); border-color: rgba(232, 106, 10, .5); }
.light code { color: var(--accent); }
@media (max-width: 960px) {
  .light .nav { background: var(--surface); border-color: var(--line); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .12); }
}

/* ============================================================
   СТРАНИЦА ПРОФИЛЯ — дашборд (шапка как на главной + панель слева)
   ============================================================ */
body.is-dash {
  /* --gut — боковой отступ, как у .container на главной; --top-h — где «прилипает» панель под шапкой */
  --side-w: 300px; --gut: 16px; --top-h: 80px;
  --d-bg: #111112; --d-card: #19191b; --d-card-2: #232326; --d-line: rgba(255, 255, 255, .06);
  --d-text: #ededef; --d-soft: #cfcfd4; --d-muted: #85858c; --d-faint: #5d5d64;
  background: var(--d-bg); color: var(--d-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; letter-spacing: -.006em;
}

/* --- ШАПКА: та же .header, что на главной --- */
.dash-header { font-family: var(--font); font-size: 15px; letter-spacing: 0; }
@media (min-width: 768px) { body.is-dash { --gut: 32px; } }
@media (min-width: 1440px) { body.is-dash { --gut: 48px; } }

/* --- КАРКАС: панель слева стоит, справа листается --- */
/* панель + контент одним блоком по центру экрана */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; max-width: calc(var(--side-w) + 1140px); margin: 16px auto 0; min-height: calc(100vh - var(--top-h)); }
.app__main { min-width: 0; }

/* --- ЛЕВАЯ ПАНЕЛЬ --- */
.side {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h));
  display: flex; flex-direction: column;
  padding: 30px 20px 26px var(--gut);
  overflow-y: auto; scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__link {
  display: flex; align-items: center; gap: 14px; flex: none;
  height: 40px; padding: 0 12px 0 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: #e4e4e7;
  transition: background .15s, color .15s;
}
.side__link svg { width: 17px; height: 17px; flex: none; color: #b1b1b8; stroke-width: 1.6; transition: color .15s; }
.side__link:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.side__link:hover svg { color: #e4e4e7; }
.side__link.is-active {
  margin: 4px 0; background: #fff; color: #0d0d0e; font-weight: 500;
  box-shadow: 0 0 0 3px #2a2a2d;
}
.side__link.is-active svg { color: #0d0d0e; }
.side__count {
  margin-left: auto; height: 22px; padding: 0 9px;
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  background: #26262a; color: #fff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.side__link.is-active .side__count { background: #ececee; color: #0d0d0e; }
.side__tag { margin-left: auto; padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #f5c518; background: rgba(245, 197, 24, .14); }
.side__label { margin: 30px 12px 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7b7b82; }

.side__foot { display: flex; align-items: center; gap: 12px; flex: none; margin-top: 34px; padding: 26px 0 0 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side__ava-wrap { position: relative; flex: none; width: 40px; height: 40px; }
.side__ava { width: 40px; height: 40px; border-radius: 50%; image-rendering: pixelated; background: var(--d-card-2); }
.side__ava-wrap::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 2.5px var(--d-bg); }
.side__who { flex: 1; min-width: 0; }
.side__logout { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #7b7b82; transition: color .15s, background .15s; }
.side__logout:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.side__who b { display: block; font-size: 14.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__who small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: #7b7b82; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__who small span { color: #cfcfd4; font-weight: 600; }

/* --- КОНТЕНТ --- */
.dash { padding: 22px var(--gut) 56px 40px; max-width: 1140px; display: grid; gap: 16px; align-content: start; }
.dash__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.dash__title { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
.dash__legal { margin-top: 28px; color: #a4a4ab; font-size: 13px; line-height: 1.6; }

.dash .btn { height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.dash .btn--light { background: #fff; color: #0c0c0d; }
.dash .btn--light:hover { background: #e9e9ec; }
.dash .btn--ghost { background: #26262a; border: 0; color: #fff; }
.dash .btn--ghost:hover { background: #2f2f34; }

.dcard { background: var(--d-card); border: 1px solid rgba(255, 255, 255, .035); border-radius: 24px; }

/* HERO */
.dhero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 40px; }
.dhero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(55% 90% at 100% 0%, rgba(255, 255, 255, .075), transparent 62%); pointer-events: none; }
.dhero__bg { display: none; }
.dhero__body { position: relative; z-index: 2; flex: 1; min-width: 0; }
.dhero__label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.dhero__total { margin-top: 10px; }
.dhero__total b { font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.dhero__hint { margin-top: 16px; max-width: 46ch; color: var(--d-muted); font-size: 14px; line-height: 1.55; }
.dhero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.dhero__actions { position: relative; z-index: 2; flex: none; display: grid; gap: 10px; }
.dhero__actions .btn { min-width: 132px; }

.ptag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--d-muted); }
.ptag.is-on { background: rgba(61, 220, 109, .12); color: var(--ok); }

/* МЕТА-плитки */
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dtile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px 14px 14px; background: var(--d-card); border-radius: 16px; transition: background .15s; }
.dtile:hover { background: #1d1d20; }
.dtile__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--d-card-2); color: var(--d-soft); }
.dtile__label { font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtile b { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--d-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* СЕКЦИЯ */
.dsection { display: grid; gap: 16px; padding-top: 34px; }
.dsection__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dsection__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.dsection__head h2 { margin-top: 6px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.dsection__head > span { color: var(--d-muted); font-size: 13px; font-weight: 500; }

/* ИГРОВАЯ СТАТИСТИКА */
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dstat { padding: 18px 20px; background: var(--d-card); border-radius: 16px; transition: background .15s; }
.dstat:hover { background: #1d1d20; }
.dstat__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dstat__top small { color: var(--d-muted); font-size: 13px; font-weight: 500; }
.dstat__rank { font-size: 11px; font-weight: 700; color: #f5b52e; background: rgba(245, 181, 46, .12); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.dstat b { display: block; margin-top: 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dstat b i { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--d-muted); }

/* ИСТОРИЯ */
.dtimeline { background: var(--d-card); border-radius: 20px; padding: 4px 22px; }
.dtl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 0; }
.dtl + .dtl { border-top: 1px solid rgba(255, 255, 255, .05); }
.dtl__dot { width: 8px; height: 8px; flex: none; margin-left: 4px; border-radius: 50%; background: var(--d-soft); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.dtl__name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtl__date { margin-top: 2px; color: var(--d-muted); font-size: 12.5px; }
.dtl__sum { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dempty { padding: 34px; text-align: center; color: var(--d-muted); font-weight: 500; }

.pstate { padding: 120px 24px; text-align: center; color: var(--d-muted, var(--muted)); font-weight: 500; font-size: 15px; }
.side__scrim { display: none; }

@media (max-width: 1100px) {
  .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .dash { padding-left: var(--gut); }
  .side {
    position: fixed; top: 0; left: 0; z-index: 70; width: 300px; height: 100vh; height: 100dvh;
    padding-top: 24px;
    background: #141416; border-right: 1px solid var(--d-line);
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .side.is-open { transform: none; box-shadow: 24px 0 60px rgba(0, 0, 0, .5); }
  .side__scrim.is-open { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .55); }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .dash { padding: 18px 16px 40px; }
  .dhero { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .dhero__actions { grid-template-columns: 1fr 1fr; }
  .dhero__actions .btn { min-width: 0; }
  .dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dstat { padding: 16px; }
  .dstat b { font-size: 20px; }
  .dtimeline { padding: 4px 16px; }
}

/* ============================================================
   Вторичные страницы: рейтинг, баны, игровая статистика
   ============================================================ */
.nav a.is-current { color: var(--ink); background: rgba(255, 255, 255, .12); font-weight: 700; }

/* ---------- рейтинг (tops.html) — в стиле профиля ---------- */

.rk { max-width: 1240px; margin: 0 auto; padding: 40px var(--gut, 16px) 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

/* две колонки: слева выбор, справа сам топ */
.rk-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.rk-side { position: sticky; top: 88px; display: grid; gap: 12px; padding: 14px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .035); border-radius: 22px; }
.rk-side__label { margin: 6px 6px 0; color: var(--d-faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rk-main { display: grid; gap: 16px; min-width: 0; }
.rk-main #lbPlayer:empty { display: none; }
.rk-board-head { display: flex; align-items: center; gap: 14px; }
.rk-board-head__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 122, 26, .12); color: var(--accent); }
.rk-board-head__ic svg { width: 22px; height: 22px; }
.rk-board-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rk-board-head p { margin-top: 2px; color: var(--d-muted); font-size: 13.5px; }
.is-dash .footer { font-family: var(--font); letter-spacing: 0; }

/* заголовок + поиск */
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; margin-bottom: 8px; }
.rk-head h1 { margin-top: 10px; font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.rk-head p { margin-top: 10px; max-width: 54ch; color: var(--d-muted); font-size: 14.5px; line-height: 1.55; }
.rk-search { position: relative; flex: none; width: 100%; }
.rk-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--d-muted); pointer-events: none; }
.rk-search input {
  width: 100%; height: 48px; padding: 0 104px 0 44px; border-radius: 14px;
  background: var(--d-card); border: 1px solid rgba(255, 255, 255, .06); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500; transition: border-color .15s;
}
.rk-search input::placeholder { color: var(--d-faint); }
.rk-search input:focus { outline: none; border-color: rgba(255, 255, 255, .22); }
.rk-search input.is-invalid { border-color: rgba(255, 69, 69, .6); }
.rk-search button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 16px; border-radius: 10px; background: #fff; color: #0c0c0d; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.rk-search button:hover { background: #e9e9ec; }

/* категории — сегментированный переключатель */
.rk-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 5px; overflow-x: auto; scrollbar-width: none; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .05); border-radius: 16px; }
.rk-tabs::-webkit-scrollbar { display: none; }
.rk-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 16px; border-radius: 11px; color: var(--d-soft); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, background .15s; }
.rk-tab svg { width: 16px; height: 16px; color: var(--d-muted); transition: color .15s; }
.rk-tab:hover { color: #fff; background: rgba(255, 255, 255, .045); }
.rk-tab.is-active { background: #fff; color: #0c0c0d; }
.rk-tab.is-active svg { color: #0c0c0d; }

/* рейтинг: вертикальный список категорий в левой панели */
.rk-side .rk-tabs { display: grid; gap: 4px; width: auto; padding: 0; overflow: visible; background: none; border: 0; border-radius: 0; }
.rk-side .rk-tab { display: flex; gap: 12px; width: 100%; height: auto; padding: 10px; border-radius: 14px; text-align: left; white-space: normal; font-size: inherit; font-weight: inherit; }
.rk-side .rk-tab__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--d-card-2); color: var(--d-muted); transition: color .15s, background .15s; }
.rk-side .rk-tab__ic svg { width: 18px; height: 18px; color: currentColor; }
.rk-side .rk-tab__txt { display: grid; gap: 2px; min-width: 0; }
.rk-side .rk-tab__txt b { font-size: 14.5px; font-weight: 600; }
.rk-side .rk-tab__txt small { color: var(--d-muted); font-size: 12px; line-height: 1.35; }
.rk-side .rk-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.rk-side .rk-tab:hover .rk-tab__ic { color: #fff; }
.rk-side .rk-tab.is-active { background: rgba(255, 122, 26, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .28); }
.rk-side .rk-tab.is-active .rk-tab__ic { background: var(--accent); color: #fff; }
.rk-side .rk-tab.is-active svg { color: #fff; }

/* пьедестал: 2 — 1 — 3 */
.rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-top: 6px; }
.rk-pod {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 20px 24px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .04); border-radius: 22px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.rk-pod::before { content: ''; position: absolute; inset: 0; background: radial-gradient(75% 65% at 50% 0%, rgba(var(--tint), .15), transparent 72%); pointer-events: none; }
.rk-pod:hover { border-color: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.rk-pod--1 { --tint: 245, 190, 60; order: 2; padding: 40px 20px 32px; }
.rk-pod--2 { --tint: 200, 206, 218; order: 1; }
.rk-pod--3 { --tint: 214, 145, 96; order: 3; }
.rk-pod > * { position: relative; }
.rk-pod__ava { width: 76px; height: 76px; margin-bottom: 14px; }
.rk-pod--1 .rk-pod__ava { width: 96px; height: 96px; }
.rk-pod__ava img { width: 100%; height: 100%; border-radius: 22%; image-rendering: pixelated; background: var(--d-card-2); box-shadow: 0 0 0 3px rgba(var(--tint), .55), 0 16px 32px -12px rgba(0, 0, 0, .7); }
.rk-pod__badge {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
  background: rgb(var(--tint)); color: #141416; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 0 0 3px var(--d-card);
}
.rk-pod__nick { margin-top: 6px; max-width: 100%; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pod__val { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rk-pod--1 .rk-pod__val { font-size: 30px; }
.rk-pod__cat { margin-top: 6px; color: var(--d-muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rk-pod__val i, .rk-val i { font-style: normal; font-size: .55em; font-weight: 600; letter-spacing: 0; color: var(--d-muted); }

/* таблица */
.rk-table { padding: 6px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .035); border-radius: 22px; }
.rk-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(130px, 32%); align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.rk-row:hover { background: rgba(255, 255, 255, .035); }
.rk-row--head { cursor: default; padding: 12px 16px 8px; color: var(--d-faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rk-row--head:hover { background: none; }
.rk-row.is-me { background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.rk-pos { color: var(--d-muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-who img { width: 34px; height: 34px; flex: none; border-radius: 10px; image-rendering: pixelated; background: var(--d-card-2); }
.rk-who b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-me { flex: none; padding: 2px 8px; border-radius: 6px; background: #fff; color: #0c0c0d; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rk-metric { display: grid; gap: 7px; justify-items: end; text-align: right; }
.rk-val { font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-bar { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.rk-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .85)); }
.rk-empty { padding: 44px 20px; text-align: center; color: var(--d-muted); font-weight: 500; }
.rk-skel { height: 54px; margin: 2px 0; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .025) 25%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .025) 75%); background-size: 200% 100%; animation: rk-shimmer 1.2s linear infinite; }
.rk-podium .rk-skel { height: 220px; border-radius: 22px; margin: 0; }
.rk-podium .rk-skel:nth-child(2) { height: 250px; }
@keyframes rk-shimmer { to { background-position: -200% 0; } }

/* карточка найденного игрока */
.rk-player { display: grid; gap: 18px; padding: 22px; animation: pop .18s ease-out; }
.rk-player__head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rk-player__head img { width: 60px; height: 60px; flex: none; border-radius: 16px; image-rendering: pixelated; background: var(--d-card-2); }
.rk-player__head small { display: block; color: var(--d-muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rk-player__head h3 { margin-top: 4px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.rk-player__close { flex: none; margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--d-muted); background: var(--d-card-2); transition: color .15s, background .15s; }
.rk-player__close:hover { color: #fff; background: #2b2b2f; }
.rk-player .dstat { background: var(--d-card-2); }
.rk-player .dstat:hover { background: #26262a; }
.rk-player--msg { padding: 28px; text-align: center; color: var(--d-muted); font-weight: 500; }

@media (max-width: 960px) {
  .rk-layout { grid-template-columns: minmax(0, 1fr); }
  .rk-side { position: static; }
  .rk-side__label { display: none; }
  .rk-side .rk-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .rk-side .rk-tab { width: auto; flex: none; padding: 6px 14px 6px 6px; }
  .rk-side .rk-tab__ic { width: 32px; height: 32px; border-radius: 9px; }
  .rk-side .rk-tab__ic svg { width: 16px; height: 16px; }
  .rk-side .rk-tab__txt small { display: none; }
  .rk-side .rk-tab__txt b { white-space: nowrap; font-size: 14px; }
}
@media (max-width: 760px) {
  .rk { padding-top: 28px; }
  .rk-search { width: 100%; }
  .rk-podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rk-pod, .rk-pod--1 {
    order: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
    align-items: center; column-gap: 16px; text-align: left; padding: 16px 18px;
  }
  .rk-pod::before { background: radial-gradient(60% 120% at 0% 50%, rgba(var(--tint), .14), transparent 70%); }
  .rk-pod__ava, .rk-pod--1 .rk-pod__ava { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; }
  .rk-pod__badge { min-width: 22px; height: 22px; font-size: 11px; bottom: -8px; }
  .rk-pod__nick { grid-column: 2; margin: 0; font-size: 15px; }
  .rk-pod__cat { grid-column: 2; margin-top: 2px; }
  .rk-pod__val, .rk-pod--1 .rk-pod__val { grid-column: 3; grid-row: 1 / 3; margin: 0; font-size: 20px; }
  .rk-podium .rk-skel, .rk-podium .rk-skel:nth-child(2) { height: 88px; }
  .rk-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .rk-row .rk-bar { width: 90px; }
  .rk-player { padding: 18px; }
}
@media (max-width: 420px) {
  .rk-tab { padding: 0 12px; }
  .rk-tab svg { display: none; }
  .rk-side .rk-tab { padding: 6px 14px 6px 6px; }
  .rk-side .rk-tab svg { display: block; }
  .rk-board-head h2 { font-size: 19px; }
}

/* ---------- бан-лист (bans.html) — в стиле рейтинга ---------- */
.bn-live { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .05); color: var(--d-soft); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bn-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 220, 109, .18); animation: bn-pulse 2.4s ease-in-out infinite; }
@keyframes bn-pulse { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 109, .05); } }

.bn-stats { display: grid; gap: 2px; }
.bn-stat { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--d-soft); font-size: 13.5px; font-weight: 500; }
.bn-stat__ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--d-card-2); color: var(--d-muted); }
.bn-stat__ic svg { width: 16px; height: 16px; }
.bn-stat b { margin-left: auto; color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bn-ic--red { background: rgba(255, 69, 69, .12) !important; color: #ff6b6b !important; }
.bn-ic--amber { background: rgba(245, 181, 46, .12) !important; color: #f5b52e !important; }

/* фильтры */
.bn-side .rk-tab__count { margin-left: auto; align-self: center; }
.bn-side .rk-tab.is-active .rk-tab__count { background: rgba(255, 122, 26, .2); color: #fff; }
.bn-side .bn-switch { height: 46px; justify-content: flex-start; background: var(--d-card-2); border-color: transparent; }
.bn-side .bn-switch input:checked + .bn-switch__ui { background: var(--accent); }
.bn-side .bn-switch input:checked + .bn-switch__ui::after { background: #fff; }
.rk-tab__count { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--d-soft); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-tab__count:empty { display: none; }
.rk-tab.is-active .rk-tab__count { background: rgba(0, 0, 0, .08); color: #333; }
.bn-search { width: 100%; }
.bn-search input { padding-right: 16px; }
.bn-switch { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .06); color: var(--d-soft); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; }
.bn-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bn-switch__ui { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: #2c2c31; transition: background .18s; }
.bn-switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9a9aa1; transition: transform .18s, background .18s; }
.bn-switch input:checked + .bn-switch__ui { background: #fff; }
.bn-switch input:checked + .bn-switch__ui::after { transform: translateX(14px); background: #0c0c0d; }
.bn-switch input:focus-visible + .bn-switch__ui { outline: 2px solid #fff; outline-offset: 2px; }

/* таблица */
.bn-table { padding: 6px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .035); border-radius: 22px; container-type: inline-size; }
@container (max-width: 780px) {
  .bn-row--head { display: none; }
  .bn-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "player term" "reason reason" "mod when";
    gap: 10px 12px; padding: 14px;
  }
  .bn-row + .bn-row { border-top: 1px solid rgba(255, 255, 255, .05); border-radius: 0; }
  .bn-player { grid-area: player; }
  .bn-reason { grid-area: reason; }
  .bn-mod { grid-area: mod; }
  .bn-when { grid-area: when; justify-self: end; }
  .bn-left { grid-area: term; }
}
.bn-row { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.6fr) minmax(0, 1.5fr) 118px 150px; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; transition: background .15s; }
.bn-row:not(.bn-row--head):hover { background: rgba(255, 255, 255, .035); }
.bn-row--head { padding: 12px 16px 8px; color: var(--d-faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bn-term { text-align: right; }

.bn-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bn-player img { width: 38px; height: 38px; flex: none; border-radius: 11px; image-rendering: pixelated; background: var(--d-card-2); }
.bn-player__nm { min-width: 0; }
.bn-player b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-tags { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--d-muted); }
.bn-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bn-state.is-active { color: #ff6b6b; }
.bn-state.is-removed { color: var(--ok); }
.bn-ip { padding: 1px 6px; border-radius: 5px; background: rgba(123, 135, 255, .15); color: #a3adff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }

.bn-reason { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--d-text); }
.bn-reason span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-reason.is-none { color: var(--d-faint); font-style: italic; }
.bn-rule { flex: none; padding: 3px 8px; border-radius: 7px; background: var(--d-card-2); color: var(--d-soft); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.bn-mod { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--d-soft); font-size: 13.5px; font-weight: 500; }
.bn-mod img { width: 24px; height: 24px; flex: none; border-radius: 7px; image-rendering: pixelated; background: var(--d-card-2); }
.bn-mod span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-when { color: var(--d-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }

.bn-left { display: grid; justify-items: end; gap: 6px; text-align: right; }
.bn-left b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.bn-left small { color: var(--d-muted); font-size: 11.5px; white-space: nowrap; }
.bn-left .is-perm { color: #ff6b6b; }
.bn-left .is-muted { color: var(--d-muted); font-weight: 600; }
.bn-prog { width: 92px; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.bn-prog span { display: block; height: 100%; border-radius: inherit; background: #fff; }

.bn-row--skel { padding: 0; }
.bn-row--skel .rk-skel { grid-column: 1 / -1; height: 60px; }

/* низ: счётчик + страницы */
.bn-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 4px; color: var(--d-muted); font-size: 13px; font-weight: 500; }
.bn-pager { display: flex; gap: 6px; flex-wrap: wrap; }
.bn-page { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .05); color: var(--d-soft); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.bn-page:hover:not([disabled]):not(.is-active) { background: #1f1f22; color: #fff; }
.bn-page.is-active { background: #fff; color: #0c0c0d; border-color: #fff; }
.bn-page[disabled]:not(.is-active) { opacity: .35; cursor: default; }
.bn-dots { align-self: center; padding: 0 2px; color: var(--d-faint); }

@media (max-width: 960px) {
  .bn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bn-stat { background: var(--d-card-2); }
  .bn-side .rk-tab__count { margin-left: 8px; }
}
@media (max-width: 860px) {
  .bn-row--head { display: none; }
  .bn-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "player term" "reason reason" "mod when";
    gap: 10px 12px; padding: 14px;
  }
  .bn-row + .bn-row { border-top: 1px solid rgba(255, 255, 255, .05); border-radius: 0; }
  .bn-player { grid-area: player; }
  .bn-reason { grid-area: reason; }
  .bn-mod { grid-area: mod; }
  .bn-when { grid-area: when; justify-self: end; }
  .bn-left { grid-area: term; }
}
@media (max-width: 520px) {
  .bn-stat { display: grid; gap: 2px; padding: 10px 12px; font-size: 12px; }
  .bn-stat__ic { display: none; }
  .bn-stat b { margin-left: 0; font-size: 17px; }
  .bn-foot { justify-content: center; }
  .bn-live { display: none; }
}

/* ============================================================
   СТРАНИЦА ПРАВИЛ (rules.html)
   ============================================================ */
/* --- каркас: содержание слева, документы справа --- */
.rl-app {
  display: grid; grid-template-columns: var(--side-w, 300px) minmax(0, 1fr); gap: 28px;
  align-items: start; max-width: 1260px; margin: 0 auto;
  padding: 32px var(--gut, 16px) 56px;
}
.rl-main { min-width: 0; display: grid; gap: 14px; align-content: start; }

/* --- боковое содержание --- */
.rl-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.rl-side__panel { padding: 14px 12px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .05); border-radius: 22px; }
.rl-side__label { margin: 4px 10px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7b7b82; }
.rl-side__nav { display: flex; flex-direction: column; gap: 3px; }
.rl-side__link {
  display: flex; align-items: center; gap: 13px; min-width: 0;
  padding: 10px 12px; border-radius: 13px;
  color: var(--d-muted); font-size: 14px; font-weight: 600; line-height: 1.3;
  transition: background .15s, color .15s;
}
.rl-side__no {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 9px; background: var(--d-card-2); color: var(--d-muted);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .15s, color .15s;
}
.rl-side__link i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--d-faint); }
.rl-side__link:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.rl-side__link:hover .rl-side__no { color: #fff; }
.rl-side__link.is-active { background: rgba(255, 255, 255, .06); color: #fff; }
.rl-side__link.is-active .rl-side__no { background: var(--accent); color: var(--accent-ink); }
.rl-side__link.is-active i { color: rgba(255, 255, 255, .5); }

/* карточка «Есть вопрос?» */
.rl-ask {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 18px; transition: background .15s, border-color .15s;
}
.rl-ask:hover { background: #1f1f22; border-color: rgba(255, 255, 255, .12); }
.rl-ask__ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(51, 144, 236, .15); color: #4d9bec; }
.rl-ask__txt { flex: 1; min-width: 0; }
.rl-ask__txt b { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.rl-ask__txt small { font-size: 12px; color: var(--d-muted); }
.rl-ask__chev { flex: none; color: var(--d-faint); }

/* --- документ-секция --- */
.rl-doc { scroll-margin-top: 92px; display: grid; gap: 14px; padding-top: 30px; }
.rl-doc__head { display: flex; align-items: center; gap: 13px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rl-doc__no {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: linear-gradient(145deg, var(--accent-hover), var(--accent));
  color: var(--accent-ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 26, .6);
}
.rl-doc__head h2 { font-size: clamp(20px, 2.6vw, 25px); font-weight: 700; letter-spacing: -.02em; }
.rl-count { margin-left: auto; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--d-card-2); color: var(--d-soft); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-count--red { background: rgba(255, 69, 69, .12); color: var(--danger); }
.rl-doc__lead { max-width: 74ch; margin: -2px 0 2px; color: var(--d-muted); font-size: 14px; line-height: 1.6; }
.rl-doc__lead b { color: var(--d-soft); font-weight: 700; }
.rl-doc__lead a { color: var(--accent); font-weight: 600; }
.rl-doc__lead a:hover { text-decoration: underline; }

/* --- список правил --- */
.rl-list { display: grid; gap: 10px; }
.rl-item {
  display: flex; gap: 16px; padding: 18px 20px;
  background: var(--d-card); border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 18px; transition: background .15s, border-color .15s;
}
.rl-item:hover { background: #1c1c1f; border-color: rgba(255, 255, 255, .08); }
.rl-item__no {
  flex: none; min-width: 48px; height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--d-card-2); color: var(--d-soft);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rl-item__body { min-width: 0; flex: 1; display: grid; gap: 9px; }
.rl-item__body h3 { font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.3; }
.rl-item__body p { font-size: 14px; line-height: 1.6; color: var(--d-soft); }
.rl-item__body code { font-family: 'Inter', monospace; font-weight: 700; color: var(--accent); font-size: .92em; }
.rl-item__body a { color: var(--accent); font-weight: 600; }
.rl-item__body a:hover { text-decoration: underline; }

.rl-ul { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 7px; }
.rl-ul li { font-size: 14px; line-height: 1.55; color: var(--d-soft); }
.rl-ul li::marker { color: var(--d-faint); }

.rl-note {
  padding: 10px 14px; border-left: 2px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .025); border-radius: 0 10px 10px 0;
  font-size: 13.5px !important; color: var(--d-muted) !important;
}
.rl-note b { color: var(--d-soft); }

/* --- плашки наказаний --- */
.rl-pen {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  margin-top: 2px; padding: 6px 12px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.rl-pen::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rl-pen--mute { color: #f5b52e; background: rgba(245, 181, 46, .12); }
.rl-pen--ban { color: #ff7a4d; background: rgba(255, 122, 77, .12); }
.rl-pen--perm { color: var(--danger); background: rgba(255, 69, 69, .13); }
.rl-pen + .rl-pen { margin-left: 8px; }

.rl-foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--d-faint); font-size: 12.5px; line-height: 1.6; }

/* --- сетки программ и запрещённых модов --- */
.rl-apps, .rl-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.rl-app-card, .rl-mod-card {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 13px 15px; background: var(--d-card); border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 14px; transition: background .15s, border-color .15s, transform .15s;
}
.rl-app-card:hover, .rl-mod-card:hover { background: #1c1c1f; border-color: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.rl-app-card__ic, .rl-mod-card__ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.rl-app-card__ic { background: rgba(61, 220, 109, .13); color: var(--ok); }
.rl-mod-card__ic { background: rgba(255, 69, 69, .12); color: var(--danger); }
.rl-app-card__txt, .rl-mod-card__txt { min-width: 0; display: grid; }
.rl-app-card__txt b, .rl-mod-card__txt b { font-size: 13.5px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-app-card__txt small, .rl-mod-card__txt small { font-size: 12px; color: var(--d-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- hero-заголовок страницы правил --- */
.rl-main .rk-head {
  position: relative; overflow: hidden; margin-bottom: 6px;
  padding: 30px 30px 28px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 122, 26, .12), transparent 60%),
    var(--d-card);
  border: 1px solid rgba(255, 255, 255, .05); border-radius: 24px;
}
.rl-main .rk-head h1 { font-size: clamp(30px, 4.4vw, 44px); }
.rl-main .rk-head p { color: var(--d-soft); }
.rl-main .dash__eyebrow {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 122, 26, .12); color: var(--accent);
  font-size: 11px; letter-spacing: .12em;
}
.rl-main .rk-head .bn-live { align-self: flex-start; margin-top: 4px; }

@media (max-width: 960px) {
  .rl-main .rk-head { padding: 24px 20px; border-radius: 20px; }
  .rl-app { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; }
  .rl-side { position: static; top: auto; }
  .rl-side__panel { padding: 10px; }
  .rl-side__nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .rl-side__nav::-webkit-scrollbar { display: none; }
  .rl-side__link { flex: none; }
  .rl-side__link span:last-child { white-space: nowrap; }
}
@media (max-width: 560px) {
  .rl-item { flex-direction: column; gap: 10px; padding: 16px; }
  .rl-item__no { justify-self: start; }
  .rl-pen + .rl-pen { margin-left: 0; margin-top: 6px; }
}

/* ============================================================
   АНИМАЦИИ (включаются классом .anim на <html> через JS;
   не применяются при prefers-reduced-motion)
   ============================================================ */
.anim [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .65s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }
.anim .product[data-reveal] {
  transition: opacity .6s ease, transform .65s cubic-bezier(.2, .7, .2, 1),
    translate .35s cubic-bezier(.2, .8, .3, 1.2), rotate .35s cubic-bezier(.2, .8, .3, 1.2),
    border-color .3s, box-shadow .35s, background .35s;
}

/* микро-интеракции кнопок */
.btn { transition: background .15s, color .15s, border-color .15s, transform .12s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--accent:hover, .btn--light:hover, .btn--glass:hover { transform: translateY(-1px); }

/* лёгкий подъём инфо-карточек */
.info__card { transition: transform .18s ease, border-color .15s, background .15s; }
.info__card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .12); }

/* пульс индикатора онлайна */
@keyframes wgPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 109, .4); } 70% { box-shadow: 0 0 0 7px rgba(61, 220, 109, 0); } }
.anim .online-pill .dot, .anim .tile--online .dot { animation: wgPulse 2.4s ease-out infinite; }

/* плавный вход баннера на загрузке */
@keyframes wgBanner { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.anim .banner { animation: wgBanner .9s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* реквизиты в подвале: каждая строка отдельно */
[data-legal] { white-space: pre-line; }

/* ============================================================
   Профиль (profile.html) — по образцу: светлые/тёмные карточки по теме сайта
   ============================================================ */
.is-pf .pstate { padding: 140px 24px; }
.pf {
  --pf-head: 'Montserrat', var(--font);
  --pf-box: color-mix(in srgb, var(--ink) 3%, var(--surface));
  max-width: 1400px; margin: 0 auto; padding: 28px 24px 8px;
  display: grid; gap: 24px; color: var(--ink);
}
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.pf h1, .pf h2 { font-family: var(--pf-head); letter-spacing: -.01em; }

/* приветствие */
.pf-hello { display: flex; align-items: center; gap: 18px; padding: 20px 20px 20px 20px; }
.pf-hello__face { width: 64px; height: 64px; flex: none; border-radius: 14px; image-rendering: pixelated; background: var(--raised); }
.pf-hello__txt { min-width: 0; }
.pf-hello h1 { font-size: 27px; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-hello p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.pf-hello__actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 20px; border-radius: 12px; background: var(--raised); color: var(--ink); font-family: var(--pf-head); font-size: 14.5px; font-weight: 600; transition: background .15s, color .15s; }
.pf-btn:hover { background: var(--raised-hover); }
.pf-btn--icon { width: 42px; padding: 0; color: var(--muted); }
.pf-btn--icon:hover { color: var(--danger); }

.pf-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-col { display: grid; gap: 24px; min-width: 0; }
.pf-cap { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* скин */
.pf-skin { padding: 18px 20px 12px; }
.pf-skin__stage { height: 200px; cursor: grab; touch-action: pan-y; }
.pf-skin__stage:active { cursor: grabbing; }
.pf-skin__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.pf-skin__flat { display: block; height: 100%; margin: 0 auto; object-fit: contain; image-rendering: pixelated; }
.pf-skin__nick { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.pf-rows { margin-top: 14px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; font-size: 14px; color: var(--muted); }
.pf-row b { color: var(--ink); font-family: var(--pf-head); font-weight: 600; text-align: right; }
.pf-row b.is-on { color: var(--ok); }
.pf-row b.is-off { color: var(--muted); }

/* донат */
.pf-wallet { padding: 22px 20px; }
.pf-wallet__sum { margin-top: 6px; font-family: var(--pf-head); font-size: 28px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pf-main-btn { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 16px; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--pf-head); font-size: 14.5px; font-weight: 700; transition: background .15s; }
.pf-main-btn:hover { background: var(--accent-hover); }
.pf-wallet__sep { height: 1px; margin: 24px 0 20px; background: var(--line); }
.pf-wallet__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pf-wallet__count { margin-top: 6px; font-family: var(--pf-head); font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.pf-wallet__foot span { color: var(--muted); font-size: 12.5px; text-align: right; }

/* полоска с IP */
.pf-strip { display: flex; align-items: center; gap: 16px; padding: 20px; }
.pf-strip__txt { flex: 1; min-width: 160px; max-width: 320px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.pf-strip__boxes { display: flex; gap: 12px; margin-left: auto; }
.pf-box { display: grid; justify-items: center; gap: 4px; min-width: 110px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--pf-box); }
.pf-box b { font-family: var(--pf-head); font-size: 17px; font-weight: 700; }
.pf-box small { color: var(--muted); font-size: 11.5px; }
.pf-ip { display: flex; align-items: center; gap: 8px; margin-left: 40px; }
.pf-ip span { display: flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--raised); font-family: var(--pf-head); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.pf-ip__copy { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; transition: background .15s; }
.pf-ip__copy:hover { background: var(--accent-hover); }

/* блоки справа */
.pf-block { padding: 24px 20px 20px; }
.pf-block h2 { font-size: 24px; font-weight: 800; }
.pf-block__sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.pf-stat { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--pf-box); }
.pf-stat small { color: var(--muted); font-size: 13px; }
.pf-stat b { font-family: var(--pf-head); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-stat span { color: var(--accent); font-size: 12.5px; font-weight: 600; }

.pf-history { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pf-empty { display: grid; justify-items: center; gap: 18px; padding: 52px 20px; text-align: center; }
.pf-empty__ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--hint); color: var(--surface); }
.pf-empty p { color: var(--muted); font-size: 15px; }
.pf-buy { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.pf-buy + .pf-buy { border-top: 1px solid var(--line); }
.pf-buy__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--raised); color: var(--accent); }
.pf-buy__body { display: grid; gap: 3px; min-width: 0; }
.pf-buy__body b { font-family: var(--pf-head); font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-buy__body small { color: var(--muted); font-size: 12.5px; }
.pf-buy__sum { margin-left: auto; font-family: var(--pf-head); font-size: 15px; font-weight: 700; white-space: nowrap; }

@media (max-width: 1180px) {
  .pf-strip { flex-wrap: wrap; }
  .pf-strip__txt { max-width: none; flex-basis: 100%; }
  .pf-strip__boxes { margin-left: 0; }
  .pf-ip { margin-left: auto; }
}
@media (max-width: 900px) {
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-skin__stage { height: 220px; }
}
@media (max-width: 560px) {
  .pf { padding: 16px 16px 4px; gap: 16px; }
  .pf-grid, .pf-col { gap: 16px; }
  .pf-hello { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .pf-hello__face { width: 52px; height: 52px; border-radius: 12px; }
  .pf-hello h1 { font-size: 22px; }
  .pf-hello__actions { margin-left: 0; width: 100%; }
  .pf-hello__actions .pf-btn:first-child { flex: 1; }
  .pf-strip { padding: 16px; }
  .pf-strip__boxes { width: 100%; }
  .pf-box { flex: 1; min-width: 0; }
  .pf-ip { width: 100%; margin-left: 0; }
  .pf-ip span { flex: 1; }
  .pf-block { padding: 18px 16px 16px; }
  .pf-block h2 { font-size: 21px; }
  .pf-stat { padding: 14px; }
  .pf-stat b { font-size: 19px; }
}

/* пиксельные иконки (бан-лист) */
.px-ic { display: block; width: 20px; height: 20px; image-rendering: pixelated; }
.bn-side .rk-tab__ic, .bn-stat__ic, .bn-page .rk-board-head__ic { background: var(--d-card-2); }
.bn-side .rk-tab__ic .px-ic { width: 22px; height: 22px; }
.bn-side .rk-tab.is-active .rk-tab__ic { background: rgba(255, 122, 26, .16); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .45); }
.bn-stat__ic.bn-ic--red, .bn-stat__ic.bn-ic--amber { background: var(--d-card-2) !important; }
.bn-stat__ic .px-ic { width: 18px; height: 18px; }
#banHeadIcon .px-ic { width: 26px; height: 26px; }
