/* =====================================================================
   STALKEROK - тема в стиле RAIDZONE.
   Палитра raidzone: чёрный бункерный металл, бетон, краска цвета кости, красный штамп.
   Плиты - бетонная фактура со сколотыми краями (маска frame-mask), заголовки - Oswald капсом
   с потёртостями и красной штампованной полосой.
   ===================================================================== */
:root {
  --bg: #0a0a09;
  --bg-deep: #080807;
  --surface: #121210;
  --surface-2: #0b0b0a;
  --surface-3: #1a1a17;
  --surface-hover: #1d1c19;
  --border: #2a2924;
  --border-strong: #3a3832;
  --text: #d3ccb8;
  --white: #e8e2d0;
  --soft: #b3ad9c;
  --soft-2: #9c9583;
  --muted: #7c776b;
  --muted-2: #5d5a52;
  --accent: #d3ccb8;
  --on-accent: #0d0d0c;
  --stamp: #8f1d1a;
  --stamp-hover: #a52521;
  --stamp-text: #d26a5e;
  --gold: #c9a35a;
  --success: #7fa356;
  --danger: #c2463c;
  --live: #c8322a;
  --accent-rgb: 211, 204, 184;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "PT Sans Narrow", "Arial Narrow", sans-serif;
  --tex-panel: url(/images/ui/panel.webp);
  --tex-frame: url(/images/ui/frame-mask.png);
  --tex-bar: url(/images/ui/bar-mask.png);
  --tex-wear: url(/images/ui/wear-fine.png);
  --wrap: 1440px;
  --gap: 24px;
  color-scheme: dark;
}

/* Шрифты игры (SIL Open Font License, тексты лицензий рядом в /fonts/stamp) */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/fonts/stamp/Oswald.woff2') format('woff2'); }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/stamp/PTSansNarrow-Regular.woff2') format('woff2'); }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/stamp/PTSansNarrow-Bold.woff2') format('woff2'); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; overflow-y: scroll; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: url(/images/ui/concrete.webp) 0 0 / 512px, var(--bg);
  overflow-x: hidden;
}
/* Зерно и затемнение по краям - как фон игровых экранов */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .5;
  background: url(/images/ui/grain-dark.png) 0 0 / 256px, radial-gradient(ellipse at 50% 40%, transparent 60%, rgba(0, 0, 0, .6) 100%);
}
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; }
a { color: var(--white); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; color: var(--white); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .03em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 3px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rz-container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.rz-main { flex: 1 0 auto; position: relative; }
.rz-page { padding-top: 36px; padding-bottom: 24px; }
.rz-muted { color: var(--muted); }
.rz-soft { color: var(--soft); }
.rz-gold { color: var(--gold); }
.rz-hidden { display: none !important; }
.rz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Плиты ---------- */
/* Непрозрачная плита с бетонной фактурой и сколотыми краями - как панели инвентаря.
   stretch, а не round: при round центр маски режется плитками и браузер рисует тёмные швы поверх содержимого */
.rz-panel {
  position: relative;
  background: var(--tex-panel) 0 0 / 1200px, var(--surface);
  -webkit-mask-box-image: var(--tex-frame) 48 fill / 22px stretch;
}
.rz-panel--sm { -webkit-mask-box-image: var(--tex-frame) 48 fill / 14px stretch; }
.rz-pad { padding: 28px 32px; }
.rz-pad-sm { padding: 18px 20px; }
/* Ниша - тёмная вдавленная ячейка с уголками, как слот снаряжения */
.rz-slot {
  position: relative;
  background-color: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 10px 24px rgba(0, 0, 0, .6);
}
.rz-slot--corners::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--border-strong), var(--border-strong)) 0 0 / 14px 2px no-repeat,
    linear-gradient(var(--border-strong), var(--border-strong)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--border-strong), var(--border-strong)) 100% 100% / 14px 2px no-repeat,
    linear-gradient(var(--border-strong), var(--border-strong)) 100% 100% / 2px 14px no-repeat;
}

/* ---------- Заголовки ---------- */
.rz-eyebrow, .rz-label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rz-eyebrow { display: block; margin-bottom: 8px; }
/* Крупный заголовок - потёртая краска цвета кости, под ним красная штампованная полоса */
.rz-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  -webkit-mask: var(--tex-wear) 31px 17px / 220px;
          mask: var(--tex-wear) 31px 17px / 220px;
}
.rz-bar, .rz-title-bar::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin-top: 14px;
  background: var(--stamp);
  -webkit-mask: var(--tex-bar) 0 0 / 100% 100%;
          mask: var(--tex-bar) 0 0 / 100% 100%;
}
.rz-center { text-align: center; }
.rz-center .rz-bar, .rz-center.rz-title-bar::after, .rz-center .rz-title-bar::after { margin-left: auto; margin-right: auto; }
.rz-h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
/* Шапка секции: заголовок слева, ссылка «все» справа, линия снизу */
.rz-section { margin-top: 56px; }
.rz-section:first-child { margin-top: 0; }
.rz-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.rz-section-head .rz-h2 { position: relative; }
.rz-section-head .rz-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 64px;
  height: 4px;
  background: var(--stamp);
  -webkit-mask: var(--tex-bar) 0 0 / 100% 100%;
          mask: var(--tex-bar) 0 0 / 100% 100%;
}
.rz-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft-2);
  white-space: nowrap;
}
.rz-link:hover { color: var(--white); }
.rz-link i { margin-left: 6px; font-size: .8em; }

/* Шапка страницы: подпись, заголовок с полосой, справа - действия/цифры */
.rz-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.rz-page-head__text { max-width: 760px; }
.rz-page-head__lead { color: var(--soft-2); font-size: 19px; margin: 14px 0 0; }
.rz-page-head__aside { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Кнопки ---------- */
/* Главная - штамп цвета кости со сколами (как активная вкладка ПДА), вторая - тёмная плашка с рамкой, третья - красный штамп */
.rz-btn, .style-theme-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 28px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-mask-box-image: var(--tex-frame) 48 fill / 8px stretch;
  transition: background .2s, color .2s, opacity .2s;
}
.rz-btn:hover, .style-theme-button:hover { background: var(--white); color: var(--on-accent); }
.rz-btn--ghost { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); -webkit-mask-box-image: none; }
.rz-btn--ghost:hover { background: #24231f; color: var(--white); }
.rz-btn--stamp { background: var(--stamp); color: #f1e6e2; }
.rz-btn--stamp:hover { background: var(--stamp-hover); color: #fff; }
.rz-btn--sm { min-height: 38px; padding: 6px 18px; font-size: 15px; }
.rz-btn--lg { min-height: 58px; padding: 14px 40px; font-size: 20px; }
.rz-btn--block { display: flex; width: 100%; }
.rz-btn--icon { padding: 0; width: 48px; }
.rz-btn[disabled], .rz-btn.is-disabled, .style-theme-button[disabled] { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- Поля ---------- */
.rz-input, .rz-textarea, .rz-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  outline: none;
  transition: box-shadow .2s;
}
.rz-textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.rz-input::placeholder, .rz-textarea::placeholder { color: var(--muted-2); }
.rz-input:focus, .rz-textarea:focus { box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- Шапка сайта ---------- */
/* Как верхняя полоса ПДА: тёмная плита во всю ширину, рваная кромка снизу, вкладки Oswald, активная - плашка цвета кости */
.rz-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--tex-panel) center / cover no-repeat, var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.rz-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  z-index: 1;
  pointer-events: none;
  background: var(--border-strong);
  -webkit-mask: var(--tex-bar) 0 0 / 100% 100%;
          mask: var(--tex-bar) 0 0 / 100% 100%;
}
.rz-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.rz-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); flex: 0 0 auto; }
.rz-logo:hover { color: var(--white); }
.rz-logo__mark { width: 30px; height: 30px; fill: currentColor; transition: transform .4s ease; }
.rz-logo:hover .rz-logo__mark { transform: rotate(60deg); }
.rz-logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .16em;
  text-transform: uppercase;
  -webkit-mask: var(--tex-wear) 31px 17px / 180px;
          mask: var(--tex-wear) 31px 17px / 180px;
}
.rz-logo__text small { font-size: .62em; letter-spacing: .1em; color: var(--muted); margin-left: 2px; }
.rz-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.rz-nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  isolation: isolate;
  transition: color .2s;
}
.rz-nav__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: 0; transition: opacity .15s; }
.rz-nav__link:hover { color: var(--white); }
.rz-nav__link.is-active { color: var(--on-accent); font-weight: 600; }
.rz-nav__link.is-active::after { opacity: 1; }
.rz-nav__link i { font-size: 11px; margin-left: 6px; vertical-align: 2px; }
.rz-nav .rz-nav__search { display: none; }
/* Выпадающие меню - как контекстное меню предмета в игре: пункт под курсором залит цветом кости */
.rz-drop { position: relative; }
.rz-drop__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 600;
  min-width: 240px;
  padding: 6px 0;
  background: var(--tex-panel) center / cover no-repeat, #131311;
  box-shadow: inset 0 0 0 1px var(--border-strong), 0 14px 34px rgba(0, 0, 0, .75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.rz-drop--right .rz-drop__menu { left: auto; right: 0; }
.rz-drop.is-open .rz-drop__menu { opacity: 1; visibility: visible; transform: none; }
.rz-drop__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 18px;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}
.rz-drop__item i { width: 18px; text-align: center; color: var(--muted); }
.rz-drop__item img { width: 24px; height: 24px; object-fit: contain; }
.rz-drop__item:hover { background: var(--accent); color: var(--on-accent); }
.rz-drop__item:hover i { color: var(--on-accent); }
.rz-drop__sep { height: 1px; margin: 6px 0; background: var(--border); }
.rz-drop__item .rz-badge { margin-left: auto; }

.rz-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }
.rz-search { position: relative; display: flex; align-items: center; }
.rz-search__input {
  width: 170px;
  height: 40px;
  padding: 6px 40px 6px 14px;
  background: var(--surface-2);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--white);
  font-size: 16px;
  outline: none;
  transition: width .25s, box-shadow .2s;
}
.rz-search__input::placeholder { color: var(--muted-2); }
.rz-search__input:focus { width: 230px; box-shadow: inset 0 0 0 1px var(--accent); }
.rz-search__btn { position: absolute; right: 0; top: 0; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.rz-search__btn:hover { color: var(--white); }
.rz-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--soft-2);
  font-size: 17px;
  border: 0;
  cursor: pointer;
}
.rz-icon-btn:hover { color: var(--white); background: #24231f; }
.rz-icon-btn.has-new { color: var(--white); }
/* Счётчик - красная метка, как значок эффекта на HUD */
.rz-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--stamp);
  color: #f1e6e2;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.rz-icon-btn .rz-badge { position: absolute; top: -7px; right: -8px; }
.rz-icon-btn .rz-badge--mod { top: auto; bottom: -7px; background: var(--accent); color: var(--on-accent); }
.rz-user { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 0; background: none; border: 0; color: var(--text); cursor: pointer; }
.rz-user__ava { width: 40px; height: 40px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-user__name { font-family: var(--font-head); font-size: 16px; letter-spacing: .05em; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-user i { font-size: 11px; color: var(--muted); }
.rz-user:hover .rz-user__name { color: var(--white); }
/* Трансляция в эфире - красная мигающая метка */
.rz-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: rgba(200, 50, 42, .14);
  box-shadow: inset 0 0 0 1px rgba(200, 50, 42, .6);
  color: #f1c9c4;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rz-live::before { content: ""; width: 8px; height: 8px; background: var(--live); animation: rz-blink 1.2s infinite; }
.rz-live:hover { color: #fff; background: rgba(200, 50, 42, .25); }
@keyframes rz-blink { 50% { opacity: .2; } }
/* Бургер без flex внутри <button>: Safari не даёт кнопке быть flex-контейнером и полоски схлопываются */
.rz-burger { display: none; width: 42px; height: 40px; padding: 8px 10px; background: var(--surface-3); border: 0; box-shadow: inset 0 0 0 1px var(--border-strong); cursor: pointer; }
.rz-burger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--accent); transition: transform .2s, opacity .2s; }
.rz-burger span + span { margin-top: 5px; }
.rz-nav-open .rz-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rz-nav-open .rz-burger span:nth-child(2) { opacity: 0; }
.rz-nav-open .rz-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Плашка выбора группировки (до первого выбора) */
.rz-faction-bar { position: relative; z-index: 1; background: rgba(0, 0, 0, .35); border-bottom: 1px solid var(--border); }
.rz-faction-bar__inner { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.rz-faction-bar__q { font-family: var(--font-head); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rz-faction-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; background: var(--surface-3); border: 0; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); font-family: var(--font-head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rz-faction-btn:hover { background: var(--accent); color: var(--on-accent); }
.rz-faction-btn img, .rz-faction-btn svg { width: 24px; height: 24px; }

/* Глобальные уведомления администрации */
.rz-alerts { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.rz-alert {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 22px;
  background: rgba(143, 29, 26, .14);
  box-shadow: inset 0 0 0 1px rgba(143, 29, 26, .55), inset 4px 0 0 var(--stamp);
  cursor: pointer;
}
.rz-alert > i { color: var(--danger); font-size: 26px; margin-top: 2px; }
.rz-alert__hint { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Футер ---------- */
.rz-footer {
  position: relative;
  margin-top: 80px;
  padding: 56px 0 0;
  background: var(--tex-panel) center / cover no-repeat, var(--bg-deep);
  color: var(--soft-2);
}
.rz-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 6px;
  background: var(--border-strong);
  -webkit-mask: var(--tex-bar) 0 0 / 100% 100%;
          mask: var(--tex-bar) 0 0 / 100% 100%;
}
.rz-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.rz-footer__brand .rz-logo { margin-bottom: 14px; }
.rz-footer__tagline { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 340px; margin: 0 0 20px; }
.rz-footer__title { font-family: var(--font-head); font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.rz-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rz-footer__list a { color: var(--soft); font-size: 17px; }
.rz-footer__list a:hover { color: var(--white); }
.rz-footer__social { display: flex; gap: 10px; }
.rz-footer__social a { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--soft-2); font-size: 18px; }
.rz-footer__social a:hover { background: var(--accent); color: var(--on-accent); }
.rz-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 26px; font-size: 15px; color: var(--muted-2); }
.rz-footer__bottom a { color: var(--muted); }
.rz-footer__bottom a:hover { color: var(--white); }

/* ---------- Общие куски ---------- */
.rz-h3 { font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin: 0; }
/* Шапка плиты: заголовок слева, подпись справа, тонкая линия снизу */
.rz-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.rz-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--soft);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rz-tag--stamp { background: var(--stamp); box-shadow: none; color: #f1e6e2; }
.rz-tag--gold { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(201, 163, 90, .45); }
.rz-tag--green { color: var(--success); box-shadow: inset 0 0 0 1px rgba(127, 163, 86, .45); }
.rz-tag--red { color: var(--danger); box-shadow: inset 0 0 0 1px rgba(194, 70, 60, .5); }
.rz-online { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--success); }
.rz-online i { width: 8px; height: 8px; background: var(--success); box-shadow: 0 0 8px rgba(127, 163, 86, .8); animation: rz-blink 2s infinite; }
/* Квадрат по центру заглавных, а не строки: при align-items: center он зависит от того, как ОС раскладывает шрифт по строке */
@supports (height: 1cap) {
  .rz-online { align-items: baseline; }
  .rz-online i { align-self: baseline; transform: translateY(calc(4px - .5cap)); }
}
.rz-stat { display: flex; flex-direction: column; gap: 2px; }
.rz-stat__val { font-family: var(--font-head); font-weight: 600; font-size: 34px; line-height: 1; color: var(--white); }
.rz-stat__val--live { color: var(--success); }
.rz-stat__lbl { font-family: var(--font-head); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rz-bar--wide { width: 180px; }
kbd { display: inline-block; padding: 1px 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); font-family: var(--font-head); font-size: .85em; color: var(--white); }

/* ---------- Главная: герой ---------- */
.rz-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 75% at 72% 55%, rgba(143, 29, 26, .16), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 40%, rgba(10, 10, 9, .9));
}
/* Крупный знак радиации за сталкером - тусклая краска на бетоне */
.rz-hero::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 50%;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  opacity: .05;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-300 -300 600 600'%3E%3Ccircle r='50'/%3E%3Cpath id='b' d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z'/%3E%3Cpath d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z' transform='rotate(120)'/%3E%3Cpath d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z' transform='rotate(240)'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-300 -300 600 600'%3E%3Ccircle r='50'/%3E%3Cpath id='b' d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z'/%3E%3Cpath d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z' transform='rotate(120)'/%3E%3Cpath d='M75,0 A 75,75 0 0,0 37.5,-64.952 L 125,-216.506 A 250,250 0 0,1 250,0 z' transform='rotate(240)'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rz-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 32px; min-height: 560px; }
.rz-hero__text { padding: 64px 0 56px; position: relative; z-index: 1; }
.rz-hero__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: .95;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  -webkit-mask: var(--tex-wear) 23px 11px / 260px;
          mask: var(--tex-wear) 23px 11px / 260px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .8));
}
.rz-hero__h1 { margin: 22px 0 0; font-size: 26px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.rz-hero__lead { max-width: 600px; margin: 14px 0 0; font-size: 20px; line-height: 1.55; color: var(--soft-2); }
.rz-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.rz-hero__stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 560px; }
.rz-hero__art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
/* Сталкер стоит вплотную на нижней кромке героя (картинка обрезана по фигуре), низ чуть растворяется в фоне */
.rz-hero__art img {
  display: block;
  width: auto;
  height: 500px;
  max-width: none;
  object-fit: contain;
  /* без drop-shadow: маска резала тень ровно по краям картинки - были резкие полосы слева и справа */
  filter: saturate(.55) sepia(.18);
  /* низ и бока растворяются в фоне - пересечение двух градиентов */
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-composite: intersect;
}

/* ---------- Главная: все части игры ---------- */
.rz-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rz-game {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  -webkit-mask-box-image: var(--tex-frame) 48 fill / 22px stretch;
}
.rz-game__img { position: absolute; inset: 0; background-size: cover; transition: transform .6s ease, filter .3s; filter: saturate(.6) brightness(.75); }
.rz-game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 9, .05) 20%, rgba(10, 10, 9, .92) 78%); }
.rz-game:hover .rz-game__img { transform: scale(1.06); filter: saturate(.8) brightness(.9); }
.rz-game__body { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; }
.rz-game__sub { font-family: var(--font-head); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rz-game__title { font-family: var(--font-head); font-weight: 600; font-size: 27px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
.rz-game__btn { align-self: flex-start; margin-top: 14px; }
.rz-game__btn i { font-size: .85em; }
.rz-game__icon { position: absolute; top: 16px; right: 16px; z-index: 1; width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }

/* ---------- Главная: сетки ---------- */
.rz-home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rz-home-side { display: flex; flex-direction: column; gap: 18px; }

/* Чат */
.rz-chat { display: flex; flex-direction: column; }
.chat__wrapper { height: 520px; overflow: hidden; }
.chat__list { height: 100%; overflow-y: auto; padding: 8px 12px 8px 24px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.chat__message__wrapper { padding: 12px 0; border-bottom: 1px solid rgba(42, 41, 36, .7); }
.chat__message__wrapper:last-child { border-bottom: 0; }
.chat__message { display: flex; gap: 14px; }
.chat__ava { flex: 0 0 auto; }
.chat__avatar { display: block; width: 46px; height: 46px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chat__main { flex: 1 1 auto; min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 8px; }
.chat__message__author { font-family: var(--font-head); font-size: 16px; letter-spacing: .04em; color: var(--white); }
.chat__message__author:hover { color: var(--accent); text-decoration: underline; }
.chat__user__faction { width: 18px; height: 18px; object-fit: contain; }
.chat__time { margin-left: auto; font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.chat__message__body { margin-top: 2px; color: var(--soft); font-size: 17px; overflow-wrap: anywhere; }
.rz-chat__form { display: flex; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--border); }
.rz-chat__guest { padding: 18px 24px 22px; border-top: 1px solid var(--border); color: var(--muted); }
.rz-chat__guest a { color: var(--white); text-decoration: underline; }

/* Топ сталкеров */
.rz-top__list { list-style: none; margin: 0; padding: 8px 0 14px; }
.rz-top__row { display: grid; grid-template-columns: 34px 36px minmax(0, 1fr) auto 22px; align-items: center; gap: 12px; padding: 9px 24px; color: var(--text); }
.rz-top__row:hover { background: rgba(var(--accent-rgb), .05); color: var(--white); }
.rz-top__pos { font-family: var(--font-head); font-size: 16px; color: var(--muted-2); }
.rz-top__row--1 .rz-top__pos { color: var(--gold); }
.rz-top__row--2 .rz-top__pos { color: #a9a69c; }
.rz-top__row--3 .rz-top__pos { color: #a0673a; }
.rz-top__ava { width: 36px; height: 36px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-top__name { font-family: var(--font-head); font-size: 16px; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-top__money { font-family: var(--font-head); font-size: 15px; color: var(--soft-2); white-space: nowrap; }
.rz-top__faction { width: 22px; height: 22px; object-fit: contain; }

/* Колонка справа */
.rz-newbie__row { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--text); }
.rz-newbie__ava { width: 52px; height: 52px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--surface-2); }
.rz-newbie__row b { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 500; color: var(--white); }
.rz-newbie__row small { color: var(--muted); font-size: 15px; }
.rz-donate { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; color: var(--soft-2); background: radial-gradient(ellipse at 100% 0, rgba(143, 29, 26, .22), transparent 60%), var(--tex-panel) 0 0 / 1200px, var(--surface); }
.rz-donate__title { font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.rz-donate__text { font-size: 16px; line-height: 1.55; }
.rz-donate:hover { color: var(--soft); }
.rz-donate .rz-btn { margin-top: 6px; }
.rz-bookmark { display: flex; align-items: center; gap: 14px; color: var(--soft-2); font-size: 16px; }
.rz-bookmark > i { font-size: 20px; color: var(--stamp-text); }

/* Последние комментарии */
.last-comments__item { display: flex; gap: 14px; padding: 14px 24px; border-bottom: 1px solid rgba(42, 41, 36, .7); }
.last-comments__item:last-child { border-bottom: 0; padding-bottom: 20px; }
.last-comments__ava img { display: block; width: 46px; height: 46px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.last-comments__body { min-width: 0; flex: 1; }
.last-comments__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; }
.last-comments__author { font-family: var(--font-head); font-size: 16px; color: var(--white); }
.last-comments__where { color: var(--muted); }
.last-comments__where a { color: var(--soft); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.last-comments__where a:hover { color: var(--white); }
.last-comments__date { margin-left: auto; color: var(--muted-2); font-size: 14px; }
.last-comments__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--soft-2); font-size: 17px; overflow-wrap: anywhere; }
.last-comments__text:hover { color: var(--white); }

/* Новости: карточки */
.rz-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rz-news-card { display: flex; flex-direction: column; color: var(--text); overflow: hidden; }
.rz-news-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.rz-news-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .5s ease, filter .3s; }
.rz-news-card:hover .rz-news-card__img img { transform: scale(1.05); filter: saturate(.95); }
.rz-news-card__pin { position: absolute; left: 14px; top: 14px; }
.rz-news-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 24px; }
.rz-news-card__date { font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rz-news-card__title { font-family: var(--font-head); font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: .02em; color: var(--white); }
.rz-news-card:hover .rz-news-card__title { color: var(--accent); }


/* ---------- Каталог модов ---------- */
.rz-mods-counts { gap: 10px; }
.rz-mods-count { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 150px; padding: 10px 16px 10px 12px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--border); }
.rz-mods-count img { grid-row: span 2; width: 30px; height: 30px; }
.rz-mods-count b { font-family: var(--font-head); font-size: 24px; line-height: 1; color: var(--white); }
.rz-mods-count span { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rz-mods-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.rz-filter { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; padding: 24px 22px 26px; }
.rz-filter__group { display: flex; flex-direction: column; gap: 10px; }
.rz-filter__search { position: relative; }
.rz-filter__search .rz-input { padding-right: 40px; }
.rz-filter__search i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.rz-filter__games { display: flex; flex-direction: column; gap: 6px; }
/* Флажок-плашка: скрытый checkbox, отмеченная - залита цветом кости */
.rz-check { display: block; cursor: pointer; }
.rz-check input { position: absolute; opacity: 0; pointer-events: none; }
.rz-check span { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-head); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); transition: background .15s, color .15s; }
.rz-check span img { width: 24px; height: 24px; }
.rz-check:hover span { color: var(--white); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-check input:checked + span { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz-filter__tags { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rz-tagcheck { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.rz-tagcheck input { position: absolute; opacity: 0; pointer-events: none; }
.rz-tagcheck svg { width: 30px !important; height: 30px !important; fill: currentColor !important; }
.rz-tagcheck svg [fill]:not([fill="none"]) { fill: currentColor; }
.rz-tagcheck:hover { color: var(--white); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-tagcheck.is-on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-tagcheck__tip { position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; transform: translateX(-50%); padding: 4px 10px; background: #131311; box-shadow: inset 0 0 0 1px var(--border-strong), 0 6px 16px rgba(0, 0, 0, .6); color: var(--white); font-size: 14px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.rz-tagcheck:hover .rz-tagcheck__tip { opacity: 1; visibility: visible; }
.rz-sort { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--border); color: var(--success); font-family: var(--font-head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-align: left; }
.rz-sort i { transition: transform .3s; }
.rz-sort.is-worst { color: var(--danger); }
.rz-sort.is-worst i { transform: scaleY(-1); }
.rz-sort:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-filter__toggle { display: none; }

/* Карточка мода */
.rz-mods-list > div > .rz-mod + .rz-mod, #ajax-list > .rz-mod + .rz-mod { margin-top: 22px; }
.rz-mod { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 26px; padding: 22px; }
.rz-mod__media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rz-mod__poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.rz-mod__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rz-mod__poster:hover img { transform: scale(1.04); }
.rz-mod__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rz-mod__shots a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.rz-mod__shots img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.rz-mod__shots a:hover img { opacity: 1; transform: scale(1.06); }
.rz-mod__info { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.rz-mod__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rz-mod__date { font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rz-mod__title { margin: 10px 0 0; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; }
.rz-mod__title a { color: var(--white); }
.rz-mod__title a:hover { color: var(--accent); }
.rz-mod__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.rz-mod__tag { display: grid; place-items: center; width: 38px; height: 38px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.rz-mod__tag svg { width: 24px !important; height: 24px !important; }
.rz-mod__desc { margin: 14px 0 0; color: var(--soft-2); font-size: 17px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rz-mod__dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 20px; }
/* Оценка мода */
.rz-rating { --rating: var(--muted); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--rating); color: var(--rating); font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.rz-rating i { font-size: 13px; }
.rz-rating--none { color: var(--muted-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
/* Кнопка скачивания: тёмная плашка с иконкой, недоступная - тусклая */
.rz-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--surface-3);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.rz-dl i { font-size: 17px; color: var(--soft-2); transition: color .15s; }
.rz-dl:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-dl:hover i { color: var(--on-accent); }
.rz-dl.is-off { background: transparent; color: var(--muted-2); box-shadow: inset 0 0 0 1px var(--border); cursor: default; }
.rz-dl.is-off i { color: var(--muted-2); }
.rz-more { display: flex; justify-content: center; margin-top: 26px; }
.rz-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; text-align: center; color: var(--muted); }
.rz-empty i { font-size: 34px; color: var(--muted-2); }
.rz-empty b { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.rz-seo { margin-top: 30px; }
.rz-seo p { margin: 18px 0 0; color: var(--soft-2); font-size: 18px; line-height: 1.6; }

/* Пагинация */
.rz-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }
.rz-pager__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text); }
.rz-pager__btn:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-pager__btn.is-off { background: transparent; color: var(--muted-2); box-shadow: inset 0 0 0 1px var(--border); }
.rz-pager__current { min-width: 170px; padding: 0 18px; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-head); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rz-pager__current b { color: var(--white); font-weight: 600; }

/* ---------- Хлебные крошки ---------- */
.rz-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.rz-crumbs a { color: var(--muted); }
.rz-crumbs a:hover { color: var(--white); }
.rz-crumbs i { font-size: 10px; color: var(--stamp-text); }
.rz-crumbs span { color: var(--soft-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* ---------- Страница мода: шапка ---------- */
.rz-modhero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rz-modhero__media { padding: 20px; }
.rz-modhero__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rz-modhero__gallery a { display: block; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); aspect-ratio: 16 / 9; }
.rz-modhero__gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.rz-modhero__gallery a:hover img { transform: scale(1.04); }
.rz-modhero__main { grid-column: 1 / -1; }
.rz-modhero__thumb img { opacity: .85; }
.rz-modhero__thumb:hover img { opacity: 1; }
.rz-modhero__info { display: flex; flex-direction: column; padding: 28px 30px 30px; }
.rz-modhero__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rz-modhero__title { margin: 16px 0 0; font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; -webkit-mask: var(--tex-wear) 31px 17px / 220px; mask: var(--tex-wear) 31px 17px / 220px; }
.rz-modhero__date { margin-top: 10px; font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rz-modhero__desc { margin: 16px 0 0; color: var(--soft-2); font-size: 17px; line-height: 1.6; }
.rz-modhero__dl { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 22px; }
.rz-modhero__dl .rz-dl { justify-content: flex-start; min-height: 52px; padding: 0 18px; font-size: 16px; }
.rz-modhero__dl .rz-dl:not(.is-off):first-child { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-modhero__dl .rz-dl:not(.is-off):first-child i { color: var(--on-accent); }
.rz-modhero__dl .rz-dl:not(.is-off):first-child:hover { background: var(--white); }
/* Паспорт: подпись слева, значение справа, как характеристики предмета */
.rz-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0 0; box-shadow: inset 0 0 0 1px var(--border); }
.rz-specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rz-specs > div:nth-child(odd) { border-right: 1px solid var(--border); }
.rz-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.rz-specs dt { color: var(--muted); font-size: 15px; }
.rz-specs dd { margin: 0; color: var(--white); font-family: var(--font-head); font-size: 15px; letter-spacing: .03em; text-align: right; }

/* Описание и оценка */
.rz-article { margin-top: 24px; }
/* Длинный текст - колонкой удобной ширины по центру плиты */
.rz-article > .rz-prose, .rz-readable { max-width: 980px; margin-left: auto; margin-right: auto; }
.rz-vote { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }
.rz-vote__value { font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: 1; color: var(--white); }
.rz-vote__value.is-voted { color: var(--gold); }
.rz-vote__scale { display: flex; justify-content: space-between; width: 100%; margin-top: -6px; font-family: var(--font-head); font-size: 13px; color: var(--muted-2); }
.rz-vote .rz-btn { margin-top: 8px; }
.rz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); outline: none; cursor: pointer; }
.rz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 30px; background: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .6); cursor: grab; }
.rz-range::-moz-range-thumb { width: 18px; height: 30px; border: 0; border-radius: 0; background: var(--accent); cursor: grab; }

/* Похожие моды и моды к части игры */
.rz-minimods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rz-minimod { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 20px; padding: 18px; color: var(--text); }
.rz-minimod__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.rz-minimod__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rz-minimod:hover .rz-minimod__img img { transform: scale(1.05); }
.rz-minimod__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rz-minimod__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rz-minimod__title { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.rz-minimod:hover .rz-minimod__title { color: var(--accent); }
.rz-minimod__desc { color: var(--soft-2); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rz-minimod__dl { display: flex; gap: 14px; margin-top: auto; color: var(--soft-2); font-size: 16px; }
.rz-minimod__dl .is-off { color: var(--muted-2); opacity: .5; }

/* Вкладки */
.rz-tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.rz-tabs__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 14px; background: none; border: 0; color: var(--muted); font-family: var(--font-head); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rz-tabs__btn i { font-size: 15px; }
.rz-tabs__btn:hover { color: var(--white); }
.rz-tabs__btn.is-active { color: var(--white); }
.rz-tabs__btn.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 5px; background: var(--stamp); -webkit-mask: var(--tex-bar) 0 0 / 100% 100%; mask: var(--tex-bar) 0 0 / 100% 100%; }
.rz-tabs__count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 13px; color: var(--soft); }
#reviews-switch { display: none; }
.rz-note { margin-bottom: 18px; padding: 14px 18px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border-strong), inset 4px 0 0 var(--muted); color: var(--soft); }
.rz-note--error { box-shadow: inset 0 0 0 1px rgba(194, 70, 60, .5), inset 4px 0 0 var(--danger); color: #e9b2ab; }
.rz-note--ok { box-shadow: inset 0 0 0 1px rgba(127, 163, 86, .45), inset 4px 0 0 var(--success); }

/* ---------- Комментарии ---------- */
.rz-comments { display: flex; flex-direction: column; gap: 14px; }
.rz-comment { padding: 18px 22px 12px; }
.rz-comment__head { display: flex; align-items: center; gap: 14px; }
.rz-comment__ava img { display: block; width: 48px; height: 48px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-comment__who { display: flex; flex-direction: column; min-width: 0; }
.rz-comment__line { display: inline-flex; align-items: center; gap: 6px; }
.rz-comment__name { font-family: var(--font-head); font-size: 18px; font-weight: 500; letter-spacing: .03em; color: var(--white); }
.rz-comment__name:hover { color: var(--accent); }
.rz-comment__sub { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.rz-comment__date { margin-left: auto; align-self: flex-start; font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.rz-comment__body { margin: 14px 0 0; padding-left: 62px; font-size: 18px; overflow-wrap: anywhere; }
.rz-comment__actions { display: flex; gap: 6px; margin-top: 8px; padding-left: 56px; }
.rz-comment__act { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; background: none; border: 0; color: var(--muted); font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.rz-comment__act:hover { color: var(--white); }
.rz-comment__act i { font-size: 12px; }
.rz-role { color: var(--muted); }
.rz-role--admin { color: var(--gold); }
.rz-role--mod { color: var(--success); }
.rz-role--blocked { color: var(--danger); }
.rz-comments__empty { padding: 40px 20px; }

/* Отзывы: плита со сколами, цвет оценки - оттенок и рамка текста */
.rz-review { --rv: #7fa356; --rv-rgb: 127, 163, 86; position: relative; padding: 18px 22px 20px; background: var(--tex-panel) 0 0 / 1200px, var(--surface); -webkit-mask-box-image: var(--tex-frame) 48 fill / 14px stretch; }
.rz-review + .rz-review { margin-top: 14px; }
.review-yellow-wrapper { --rv: #c9a35a; --rv-rgb: 201, 163, 90; }
.review-red-wrapper { --rv: #c2463c; --rv-rgb: 194, 70, 60; }
.rz-review__head { display: flex; align-items: center; gap: 14px; }
.rz-review__verdict { margin-left: auto; width: 12px; height: 12px; background: var(--rv); box-shadow: 0 0 10px rgba(var(--rv-rgb), .6); }
.rz-review__body { margin-top: 14px; padding: 16px 18px; background: rgba(var(--rv-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--rv-rgb), .25), inset 0 8px 20px rgba(0, 0, 0, .45); font-size: 18px; }
.rz-review-type { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.rz-review-type__btn { padding: 8px 12px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); font-family: var(--font-head); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rz-review-type__btn:hover { color: var(--white); }
.rz-review-type__btn.is-active.is-good { color: var(--success); box-shadow: inset 0 0 0 1px var(--success); }
.rz-review-type__btn.is-active.is-mid { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.rz-review-type__btn.is-active.is-bad { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }

/* Редактор (TinyMCE) - плита с подписью и нижней панелью */
.rz-editor { margin-top: 24px; padding: 20px 22px 22px; background: var(--tex-panel) 0 0 / 1200px, var(--surface); -webkit-mask-box-image: var(--tex-frame) 48 fill / 14px stretch; }
.rz-editor__title { margin-bottom: 12px; font-family: var(--font-head); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.rz-editor__bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rz-editor__bar > .rz-btn:last-child { margin-left: auto; }
.rz-editor__smile { display: inline-grid; place-items: center; width: 44px; height: 38px; padding: 0; background: var(--surface-3); border: 0; box-shadow: inset 0 0 0 1px var(--border-strong); cursor: pointer; }
.rz-editor__smile img { width: 26px; height: 26px; }
.rz-editor__smile:hover { background: #24231f; }
.rz-editor textarea.tinymce { min-height: 220px; width: 100%; }
.rz-login-hint { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--soft-2); }
.rz-login-hint > i { color: var(--muted); font-size: 18px; }
.rz-login-hint a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
/* Смайлы - всплывающая плашка в правом нижнем углу */
.rz-smiles { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: none; flex-wrap: wrap; gap: 6px; max-width: 220px; padding: 12px; background: var(--tex-panel) center / cover no-repeat, #131311; box-shadow: inset 0 0 0 1px var(--border-strong), 0 14px 34px rgba(0, 0, 0, .75); }
.rz-smiles__item { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
.rz-smiles__item:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.rz-smiles__item img { width: 40px; height: 40px; }

/* TinyMCE: рамка и панель инструментов в палитре */
.tox.tox-tinymce { border: 0 !important; border-radius: 0 !important; box-shadow: inset 0 0 0 1px var(--border-strong) !important; }
.tox .tox-editor-header, .tox .tox-toolbar, .tox .tox-toolbar__primary, .tox .tox-toolbar-overlord, .tox .tox-toolbar__overflow { background: var(--surface-3) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.tox .tox-editor-header { border-bottom: 1px solid var(--border-strong) !important; }
.tox .tox-edit-area__iframe { background: var(--surface-2) !important; }
.tox .tox-edit-area::before { border: 0 !important; }
.tox .tox-tbtn { color: var(--soft) !important; border-radius: 0 !important; }
.tox .tox-tbtn svg { fill: var(--soft) !important; }
.tox .tox-tbtn:hover, .tox .tox-tbtn--enabled, .tox .tox-tbtn--enabled:hover { background: var(--accent) !important; }
.tox .tox-tbtn:hover svg, .tox .tox-tbtn--enabled svg { fill: var(--on-accent) !important; }
.tox .tox-toolbar__group:not(:last-of-type) { border-right: 1px solid var(--border-strong) !important; }
.tox .tox-menu, .tox .tox-collection--list, .tox .tox-dialog, .tox .tox-dialog__header, .tox .tox-dialog__footer, .tox .tox-swatches-menu { background: #131311 !important; border-color: var(--border-strong) !important; border-radius: 0 !important; color: var(--text) !important; }
.tox .tox-collection__item { color: var(--text) !important; }
.tox .tox-collection__item--active { background: var(--accent) !important; color: var(--on-accent) !important; }
.tox .tox-dialog__title, .tox .tox-label, .tox .tox-form__group label { color: var(--text) !important; }
.tox .tox-textfield, .tox .tox-textarea, .tox .tox-listboxfield .tox-listbox--select { background: var(--surface-2) !important; border-color: var(--border-strong) !important; color: var(--white) !important; border-radius: 0 !important; }
.tox .tox-button { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important; border-radius: 0 !important; }
.tox .tox-button--secondary, .tox .tox-button--naked { background: var(--surface-3) !important; border-color: var(--border-strong) !important; color: var(--text) !important; }
.tox .tox-dialog-wrap__backdrop { background: rgba(0, 0, 0, .75) !important; }
.tox .tox-statusbar { background: var(--surface-3) !important; border-color: var(--border-strong) !important; }

/* ---------- Текст из редактора (описания модов, новости, темы, комментарии) ---------- */
.rz-prose { color: var(--text); font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.rz-prose > :first-child { margin-top: 0; }
.rz-prose > :last-child { margin-bottom: 0; }
.rz-prose p { margin: 0 0 1em; }
.rz-prose h1, .rz-prose h2, .rz-prose h3, .rz-prose h4 { margin: 1.6em 0 .6em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
.rz-prose h2 { font-size: 26px; }
.rz-prose h3 { font-size: 21px; }
.rz-prose h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; background: var(--stamp); -webkit-mask: var(--tex-bar) 0 0 / 100% 100%; mask: var(--tex-bar) 0 0 / 100% 100%; }
.rz-prose h2[style*="center"]::after { margin-left: auto; margin-right: auto; }
.rz-prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--stamp-text); text-underline-offset: 3px; }
.rz-prose a:hover { color: var(--accent); }
.rz-prose ul, .rz-prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.rz-prose li { margin: .25em 0; }
.rz-prose ul li::marker { color: var(--stamp-text); }
.rz-prose img { max-width: 100%; height: auto; }
.rz-prose hr { border-top-color: var(--border); }
.rz-prose strong, .rz-prose b { color: var(--white); }
.rz-prose iframe { max-width: 100%; }
/* Цвета, вписанные в старые тексты инлайном: голубые заголовки -> кость, серый -> приглушённый, бирюза и персик -> золото */
.rz-prose [style*="rgb(79, 181, 255)"], .rz-prose [style*="#4fb5ff" i], .rz-prose [style*="rgb(31, 97, 131)"], .rz-prose [style*="#1f6183" i] { color: var(--white) !important; }
.rz-prose [style*="rgb(101, 110, 127)"], .rz-prose [style*="#656e7f" i] { color: var(--muted) !important; }
.rz-prose [style*="rgb(49, 213, 200)"], .rz-prose [style*="#31d5c8" i], .rz-prose [style*="rgb(255, 204, 153)"] { color: var(--gold) !important; }
.rz-prose [style*="color: white"], .rz-prose [style*="color:#fff"], .rz-prose [style*="rgb(255, 255, 255)"] { color: var(--white) !important; }
/* Остальные цвета из старых текстов и TinyMCE (сверено по базе прода 18.10.2026) - в палитру сайта */
.rz-prose [style*="#0fc0fc" i], .rz-prose [style*="rgb(15, 192, 252)"], .rz-prose [style*="#00ccff" i], .rz-prose [style*="rgb(0, 204, 255)"], .rz-prose [style*="#00c0ff" i], .rz-prose [style*="rgb(0, 192, 255)"], .rz-prose [style*="#3598db" i], .rz-prose [style*="rgb(53, 152, 219)"], .rz-prose [style*="rgb(66, 174, 246)"], .rz-prose [style*="#42aef6" i] { color: var(--white) !important; }
.rz-prose [style*="#e03e2d" i], .rz-prose [style*="rgb(224, 62, 45)"] { color: var(--danger) !important; }
.rz-prose [style*="#2dc26b" i], .rz-prose [style*="rgb(45, 194, 107)"] { color: var(--success) !important; }
.rz-prose [style*="#f1c40f" i], .rz-prose [style*="rgb(241, 196, 15)"], .rz-prose [style*="#f0c62b" i], .rz-prose [style*="rgb(248, 215, 80)"], .rz-prose [style*="#e67e23" i], .rz-prose [style*="rgb(230, 126, 35)"], .rz-prose [style*="#fbeeb8" i] { color: var(--gold) !important; }
.rz-prose [style*="#b96ad9" i], .rz-prose [style*="rgb(185, 106, 217)"] { color: var(--soft) !important; }
.rz-prose [style*="rgb(149, 165, 166)"], .rz-prose [style*="#95a5a6" i], .rz-prose [style*="rgb(126, 140, 141)"], .rz-prose [style*="#7e8c8d" i] { color: var(--muted) !important; }
.rz-prose [style*="color: #000" i], .rz-prose [style*="color:#000" i], .rz-prose [style*="color: rgb(0, 0, 0)"], .rz-prose [style*="color: black" i] { color: var(--text) !important; }
.rz-prose [style*="background-color: #222b3e" i], .rz-prose [style*="background-color: rgb(34, 43, 62)"], .rz-prose [style*="background: #222b3e" i] { background: transparent !important; }
/* Спойлеры «скриншоты / системные требования / как установить» */
.rz-prose .list-group { display: flex; flex-direction: column; margin: 1.2em 0; box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-prose .list-group-item { position: relative; display: block; margin: 0; padding: 0; }
.rz-prose .list-header { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 20px; background: var(--surface-3); border-bottom: 1px solid var(--border-strong); color: var(--white); font-family: var(--font-head); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.rz-prose .list-header::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--stamp); color: #f1e6e2; font-size: 16px; line-height: 1; }
.rz-prose .list-header:hover { background: #24231f; }
.rz-prose .list-header * { color: inherit !important; margin: 0 !important; font: inherit !important; }
.rz-prose .list-content { display: block; padding: 20px; background: var(--surface-2); border-bottom: 1px solid var(--border-strong); }
.rz-prose .list-group .list-content:last-child { border-bottom: 0; }
.rz-prose .spoiler-body { display: none; }
/* Цитаты отзывов «(с) Сталкер X про мод» */
.rz-prose .quote__paragraph { max-width: 760px; margin: 0 auto 1em !important; padding: 16px 20px 16px 24px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border), inset 4px 0 0 var(--stamp); font-style: italic; color: var(--soft); }
.rz-prose .content__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1em 0; }
.rz-prose .content__gallery a { display: block; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.rz-prose .content__gallery img { display: block; width: 100%; transition: transform .4s; }
.rz-prose .content__gallery a:hover img { transform: scale(1.03); }
.rz-prose .highslide { display: block; margin: 0 auto; }
.rz-prose .highslide img { display: block; width: 100%; box-shadow: inset 0 0 0 1px var(--border); }
.rz-prose .video__guide { position: relative; margin: 1em 0; }
.rz-prose .video__guide img { display: block; width: 100%; opacity: .6; }
.rz-prose .iframe__play__button { position: absolute; top: calc(50% - 44px); left: calc(50% - 44px); display: flex; justify-content: center; align-items: center; width: 88px; height: 88px; background: var(--stamp); color: #f1e6e2; font-size: 30px; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.rz-prose .iframe__play__button:hover { background: var(--stamp-hover); }
.rz-prose .iframe__play__button i { margin-left: 6px; }
.rz-prose .content__iframe__video { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.rz-prose .blockquote, .blockquote { position: relative; margin: 0 0 14px; padding: 12px 16px; max-height: 260px; overflow: hidden; background: rgba(0, 0, 0, .3) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--border), inset 3px 0 0 var(--muted-2); color: var(--muted) !important; font-size: 16px; cursor: pointer; }
.rz-prose .blockquote * { color: var(--muted) !important; }

/* ---------- Статья / тема форума ---------- */
.rz-post { overflow: hidden; }
.rz-post__cover { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--surface-2); }
.rz-post__cover img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.rz-post__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 18, 16, .95)); }
.rz-post__inner { max-width: 1020px; margin: 0 auto; padding: 36px 40px 44px; }
.rz-post__cover + .rz-post__inner { margin-top: -110px; position: relative; }
.rz-post__head { margin-bottom: 28px; }
.rz-post__title { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
.rz-post__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 16px; font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rz-post__meta i { margin-right: 8px; color: var(--muted-2); }
.rz-post__tools { display: flex; gap: 10px; margin-top: 18px; }
.rz-post__tools:empty { display: none; }
.rz-post__author { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 14px 18px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); }
.rz-post__author > img { width: 64px; height: 64px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-post__author b { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 20px; font-weight: 500; color: var(--white); }
.rz-post__author small { display: block; color: var(--muted); font-size: 15px; }
.rz-post__author:hover b { color: var(--accent); }

/* ---------- Форум: список тем ---------- */
.rz-topics { padding: 6px 0 10px; }
.rz-topics__head, .rz-topics__row { display: grid; grid-template-columns: minmax(0, 1fr) 260px 110px; gap: 20px; align-items: center; padding: 0 26px; }
.rz-topics__head { height: 46px; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.rz-topics__head span:last-child, .rz-topics__count { justify-self: end; }
.rz-topics__row { min-height: 78px; border-bottom: 1px solid rgba(42, 41, 36, .7); transition: background .15s; }
.rz-topics__row:last-child { border-bottom: 0; }
.rz-topics__row:hover { background: rgba(var(--accent-rgb), .04); }
.rz-topics__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 0; }
.rz-topics__title { font-family: var(--font-head); font-size: 20px; font-weight: 500; letter-spacing: .02em; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-topics__title:hover { color: var(--accent); }
.rz-topics__date { font-size: 14px; color: var(--muted-2); }
.rz-topics__author { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.rz-topics__author img { width: 40px; height: 40px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--border-strong); background: var(--surface-2); }
.rz-topics__author b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-topics__author .rz-role { font-size: 13px; }
.rz-topics__count { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 18px; color: var(--white); }
.rz-topics__count i { font-size: 14px; color: var(--muted-2); }

/* ---------- Магазин ---------- */
.rz-wallet { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 20px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-wallet b { font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1.1; }
.rz-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.rz-shop--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rz-item { display: flex; flex-direction: column; padding: 16px 16px 18px; }
.rz-item__slot { display: grid; place-items: center; aspect-ratio: 1; padding: 14px; }
.rz-item--weapon .rz-item__slot { aspect-ratio: 16 / 9; }
.rz-item__img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); transition: transform .3s; }
.rz-item:hover .rz-item__img { transform: scale(1.05); }
.rz-item__faction { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; object-fit: contain; }
.rz-item__title { margin-top: 14px; font-family: var(--font-head); font-size: 18px; font-weight: 500; letter-spacing: .03em; line-height: 1.2; color: var(--white); }
.rz-item__tier { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rz-item__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.rz-item__price { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--gold); white-space: nowrap; }

/* ---------- ПДА (профиль) ---------- */
.rz-pda { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.rz-pda__card { display: flex; gap: 28px; padding: 30px; }
.rz-pda__ava { flex: 0 0 auto; width: 210px; height: 210px; padding: 8px; }
.rz-pda__ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rz-pda__id { display: flex; flex-direction: column; min-width: 0; }
.rz-pda__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: .04em; color: var(--white); overflow-wrap: anywhere; }
.rz-pda__role { margin-top: 6px; font-family: var(--font-head); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.rz-pda__stats { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: auto; padding-top: 22px; }
.rz-pda__stats .rz-stat__val { font-size: 26px; }
.rz-pda__settings { align-self: flex-start; margin-top: 20px; }
.rz-pda__inv { display: flex; flex-direction: column; }
.rz-pda__slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 24px 24px; flex: 1; }
.rz-pda__slot { display: flex; flex-direction: column; gap: 8px; }
.rz-pda__slot .rz-slot { flex: 1; display: grid; place-items: center; min-height: 110px; padding: 12px; }
.rz-pda__slot img { max-width: 100%; max-height: 120px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.rz-pda__empty { color: var(--muted-2); font-family: var(--font-head); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.rz-verify { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Достижения */
.ach { padding: 26px 28px 24px; }
.ach__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ach__title { font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.ach__count { font-family: var(--font-head); font-size: 18px; color: var(--muted); }
.ach__count b { color: var(--gold); font-weight: 600; }
.ach__progress { height: 8px; margin: 14px 0 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.ach__progress-fill { height: 100%; background: var(--stamp); }
.ach__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ach__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 16px; text-align: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); opacity: .55; }
.ach__item.is-earned { opacity: 1; box-shadow: inset 0 0 0 1px var(--border-strong); background: rgba(201, 163, 90, .06); }
.ach__icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); font-size: 19px; }
.ach__item.is-earned .ach__icon { background: var(--gold); color: var(--on-accent); box-shadow: none; }
.ach__name { font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--white); line-height: 1.2; }
.ach__desc { font-size: 14px; line-height: 1.35; color: var(--muted); }
.ach__item.is-earned .ach__desc { color: var(--soft-2); }
.ach__note { margin-top: 18px; font-size: 15px; color: var(--muted); text-align: center; }

/* Панель модерации */
.rz-modtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.rz-modtabs__btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--soft); font-family: var(--font-head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rz-modtabs__btn:hover { color: var(--white); }
.rz-modtabs__btn.is-active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rz-moder .moderator-content { display: none; color: var(--soft); }
.rz-moder .moderator-content button, .rz-moder .moderator-content input[type="submit"] { border-radius: 0 !important; box-shadow: inset 0 0 0 1px var(--border-strong) !important; background: var(--surface-3) !important; color: var(--text) !important; font-family: var(--font-head); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.rz-moder .moderator-content button:hover, .rz-moder .moderator-content input[type="submit"]:hover { background: var(--accent) !important; color: var(--on-accent) !important; box-shadow: none !important; }
.rz-moder .moderator-content [data-value="delete"]:hover, .rz-moder .moderator-content [data-value="reject"]:hover { background: var(--stamp) !important; color: #f1e6e2 !important; }
.rz-moder .moderator-content [data-value="approve"]:hover { background: var(--success) !important; color: var(--on-accent) !important; }
.rz-moder .moderator-content textarea, .rz-moder .moderator-content input[type="text"] { width: 100%; padding: 10px 14px; background: var(--surface-2) !important; border: 0 !important; border-radius: 0 !important; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--white) !important; }
.rz-moder [role="alert"] img { box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-moder__chat { gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.rz-moder__chat > button { margin-left: auto !important; }
.rz-moder__last { margin-top: 20px; }
.rz-moder__last .rz-h3 { margin-bottom: 14px; }
.rz-moder .last-message a, .rz-moder [role="alert"] a { color: var(--white); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.rz-moder .last-message a:hover { color: var(--accent); }
.rz-moder .last-message__id { color: var(--muted) !important; text-decoration: none !important; }

/* ---------- Настройки ---------- */
.settings__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.settings__card { padding: 26px 28px 28px; }
.settings__card .rz-h3 { margin-bottom: 20px; }
.settings__avatar-row { display: flex; gap: 24px; align-items: flex-start; }
.settings__avatar { flex: 0 0 auto; width: 150px; height: 150px; padding: 6px; }
.settings__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.settings__avatar-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.settings__hint { color: var(--muted); font-size: 16px; }
.settings__file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.settings__file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.settings__file-name { color: var(--soft-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; max-width: 220px; white-space: nowrap; }
.rz-specs--one { grid-template-columns: 1fr; }
.rz-specs--one > div:nth-child(odd) { border-right: 0; }
.rz-specs--one > div { border-bottom: 1px solid var(--border) !important; }
.rz-specs--one > div:last-child { border-bottom: 0 !important; }
.rz-specs dd a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Уведомления ---------- */
.rz-notices { display: flex; flex-direction: column; gap: 10px; }
.rz-notice { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border); color: var(--soft); }
.rz-notice > i { margin-top: 3px; width: 18px; text-align: center; color: var(--muted-2); }
.rz-notice.is-fresh { background: var(--tex-panel) 0 0 / 1200px, var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong), inset 3px 0 0 var(--stamp); color: var(--text); }
.rz-notice.is-fresh > i { color: var(--stamp-text); }
.rz-notice.is-moder > i { color: var(--gold); }
.rz-notice.is-moder:hover { color: var(--white); }
.rz-notice__text { flex: 1; min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
.rz-notice__text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.rz-notice__date { flex: 0 0 auto; font-size: 14px; color: var(--muted-2); white-space: nowrap; }

/* ---------- Поиск ---------- */
.rz-searchpage { display: flex; gap: 10px; margin-bottom: 30px; }
.rz-searchpage .rz-input { min-height: 54px; font-size: 19px; }
.rz-results { display: flex; flex-direction: column; gap: 26px; }
.rz-results__group .rz-h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rz-results__list { padding: 6px 0; }
.rz-results__item { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid rgba(42, 41, 36, .7); color: var(--text); font-size: 18px; }
.rz-results__item:last-child { border-bottom: 0; }
.rz-results__item i { width: 18px; text-align: center; color: var(--muted-2); font-size: 15px; }
.rz-results__item:hover { background: rgba(var(--accent-rgb), .05); color: var(--white); }

/* ---------- Тикеты ---------- */
.rz-tickets-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.rz-tickets { padding: 6px 0 16px; }
.rz-tickets .rz-pager { margin: 18px 0 4px; }
/* An empty section (0 tickets): no slab — a bare panel was a thin dark strip — just a quiet line */
.rz-tickets:not(:has(*)) { background: none; -webkit-mask-box-image: none; mask: none; box-shadow: none; padding: 4px 0; }
.rz-tickets:not(:has(*))::before { content: "В этом разделе тикетов пока нет."; color: var(--muted); font-size: 17px; }
.rz-ticket { display: flex; gap: 20px; padding: 20px 24px; border-bottom: 1px solid rgba(42, 41, 36, .7); }
.rz-ticket:last-of-type { border-bottom: 0; }
.rz-ticket__like { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.rz-ticket__like span { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1; color: var(--white); }
.rz-ticket__like i { font-size: 13px; }
.rz-ticket__like:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--white); }
.rz-ticket__like.likes__active { background: var(--success); color: var(--on-accent); box-shadow: none; }
.rz-ticket__like.likes__active__complaint { background: var(--stamp); color: #f1e6e2; box-shadow: none; }
.rz-ticket__like.likes__active span, .rz-ticket__like.likes__active__complaint span { color: inherit; }
.rz-ticket__like--big { width: 96px; height: 96px; }
.rz-ticket__like--big span { font-size: 30px; }
.rz-ticket__info { min-width: 0; flex: 1; }
.rz-ticket__title { font-family: var(--font-head); font-size: 21px; font-weight: 500; letter-spacing: .02em; color: var(--white); }
.rz-ticket__title:hover { color: var(--accent); }
.rz-ticket__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rz-ticket__text { margin: 10px 0 0; color: var(--soft-2); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
#suggests__list > hr { margin: 0 24px; }
.rz-tickets__filter { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.rz-tickets__filter ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rz-tickets__filter li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); color: var(--soft); font-family: var(--font-head); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.rz-tickets__filter li:hover { color: var(--white); }
.rz-tickets__filter li.suggest__row__active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.suggests__count { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; background: rgba(0, 0, 0, .35); font-size: 13px; color: inherit; }
/* Переключатель «‹ значение ›» */
.rz-switcher { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--white); font-family: var(--font-head); font-size: 16px; letter-spacing: .08em; text-transform: uppercase; user-select: none; }
.rz-switcher svg { cursor: pointer; color: var(--muted); flex: 0 0 auto; }
.rz-switcher svg:hover { color: var(--white); }
.rz-switcher.selector__color__1 { box-shadow: inset 0 0 0 1px var(--success); }
.rz-switcher.selector__color__2 { box-shadow: inset 0 0 0 1px var(--danger); }
.rz-ticket-form .rz-editor__title { display: block; margin-top: 18px; }
.rz-ticket-form .rz-editor__title:first-of-type { margin-top: 0; }
.rz-ticket-form__sections { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suggest__select__section { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--soft); font-family: var(--font-head); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.suggest__select__section:hover { color: var(--white); }
.suggest__section__active__1 { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.suggest__section__active__2 { background: var(--stamp); color: #f1e6e2; box-shadow: none; }
.rz-ticketpage__grid { display: flex; gap: 26px; align-items: flex-start; }
.rz-ticketpage__grid .rz-post__head { flex: 1; min-width: 0; }
.rz-ticketpage__author { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.rz-ticketpage__author img { width: 24px; height: 24px; object-fit: cover; }
.rz-ticketpage__author:hover { color: var(--white); }

/* ---------- Части игры: группировки ---------- */
.rz-groups { max-width: 980px; margin: 36px auto 0; padding-top: 30px; border-top: 1px solid var(--border); }
.rz-groups .rz-h3 { margin-bottom: 18px; text-align: center; }
.rz-groups__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rz-groups__item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); text-align: center; }
.rz-groups__item img { width: 64px; height: 64px; object-fit: contain; }
.rz-swal-versions { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 4px; }
.rz-swal-versions .style-theme-button { width: 100%; }

/* ---------- Вход и регистрация ---------- */
.rz-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); min-height: 100vh; }
.rz-auth__art { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 60% at 50% 60%, rgba(143, 29, 26, .18), transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(10, 10, 9, .9)); border-right: 1px solid var(--border); }
.rz-auth__art img { position: absolute; left: 50%; bottom: -12%; height: 105%; width: auto; max-width: none; transform: translateX(-50%); filter: saturate(.55) sepia(.18) drop-shadow(0 0 40px rgba(0, 0, 0, .7)); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 74%); mask-image: linear-gradient(180deg, #000 55%, transparent 74%); }
.rz-auth__box { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px 56px; }
.rz-auth__logo { align-self: flex-start; }
.rz-auth__card { padding: 30px 32px 32px; }
.rz-auth__title { font-size: 30px; }
.rz-auth__form { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.rz-auth__form .rz-label { margin-top: 8px; }
.rz-auth__form .rz-btn { margin-top: 16px; }
.rz-auth__form .rz-note { margin: 10px 0 0; }
.rz-auth__hint { margin: 0; color: var(--soft-2); }
.rz-auth__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rz-auth__links a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-2); }
.rz-auth__links a:hover { color: var(--white); }
.rz-factions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rz-factions__item { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
.rz-factions__item img { width: 34px; height: 34px; object-fit: contain; }
.rz-factions__item:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.rz-factions__item.is-active { background: var(--accent); box-shadow: none; }
.rz-captcha { margin-top: 14px; min-height: 78px; }

/* ---------- Всплывающие окна (SweetAlert2) ---------- */
.swal2-container.swal2-backdrop-show { background: rgba(0, 0, 0, .75) !important; }
.swal2-popup { border-radius: 0 !important; background: var(--tex-panel) 0 0 / 1200px, var(--surface) !important; color: var(--text) !important; box-shadow: 0 20px 60px rgba(0, 0, 0, .8) !important; -webkit-mask-box-image: var(--tex-frame) 48 fill / 22px stretch; font-family: var(--font-body) !important; }
.swal2-title { font-family: var(--font-head) !important; font-weight: 600 !important; letter-spacing: .05em; text-transform: uppercase; color: var(--white) !important; }
.swal2-html-container, .swal2-content { color: var(--soft) !important; font-size: 18px !important; }
.swal2-styled.swal2-confirm, .swal2-styled.swal2-deny, .swal2-styled.swal2-cancel { border-radius: 0 !important; background: var(--accent) !important; color: var(--on-accent) !important; font-family: var(--font-head) !important; font-weight: 600 !important; letter-spacing: .08em; text-transform: uppercase; box-shadow: none !important; }
.swal2-styled.swal2-cancel { background: var(--surface-3) !important; color: var(--text) !important; }
.swal2-icon { border-color: var(--border-strong) !important; color: var(--soft) !important; }
.swal2-icon.swal2-error { border-color: var(--danger) !important; color: var(--danger) !important; }
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: var(--danger) !important; }
.swal2-icon.swal2-success { border-color: var(--success) !important; color: var(--success) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--success) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(127, 163, 86, .35) !important; }
.swal2-icon.swal2-success [class^='swal2-success-circular-line'], .swal2-icon.swal2-success .swal2-success-fix { background: transparent !important; }
.swal2-icon.swal2-info, .swal2-icon.swal2-question { border-color: var(--gold) !important; color: var(--gold) !important; }
.swal2-icon.swal2-warning { border-color: var(--gold) !important; color: var(--gold) !important; }
.swal2-input { border-radius: 0 !important; background: var(--surface-2) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--border-strong) !important; color: var(--white) !important; }

/* Галерея PhotoSwipe и Highslide - тёмный фон */
.pswp__bg { background: #050505 !important; }

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1320px) {
  .rz-header__search .rz-search__input { width: 130px; }
  .rz-header__search .rz-search__input:focus { width: 180px; }
  .rz-nav__link { padding: 8px 11px; }
}

/* Меню прячется в бургер: выпадает плитой под шапкой */
@media (max-width: 1180px) {
  .rz-burger { display: block; }
  .rz-header__search, .rz-header__register { display: none; }
  .rz-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gap) 18px;
    background: var(--tex-panel) center / cover no-repeat, var(--surface);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .6);
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .rz-nav-open .rz-nav { display: flex; }
  .rz-nav .rz-nav__search { display: flex; margin-bottom: 10px; }
  .rz-nav__search .rz-search__input, .rz-nav__search .rz-search__input:focus { width: 100%; height: 46px; }
  .rz-nav__search .rz-search__btn { height: 46px; }
  .rz-nav__link { padding: 13px 10px; border-bottom: 1px solid var(--border); font-size: 18px; text-align: left; width: 100%; }
  .rz-nav__link.is-active { padding-left: 14px; }
  .rz-drop__menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; padding: 4px 0 8px; background: none; box-shadow: none; }
  .rz-nav .rz-drop.is-open .rz-drop__menu { display: block; }
  .rz-header__actions .rz-drop__menu { position: absolute; display: block; opacity: 0; visibility: hidden; min-width: 220px; background: var(--tex-panel) center / cover no-repeat, #131311; box-shadow: inset 0 0 0 1px var(--border-strong), 0 14px 34px rgba(0, 0, 0, .75); }
  .rz-header__actions .rz-drop.is-open .rz-drop__menu { opacity: 1; visibility: visible; }
  .rz-user__name { display: none; }
  .rz-header__actions { gap: 8px; }

  .rz-mods-layout { grid-template-columns: 1fr; }
  .rz-filter { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .rz-filter__games { display: grid; grid-template-columns: 1fr 1fr; }
  .rz-filter__tags { grid-template-columns: repeat(10, 1fr); }
  .rz-games { grid-template-columns: repeat(2, 1fr); }
  .rz-tickets-layout { grid-template-columns: 1fr; }
  .rz-tickets__filter { position: static; order: -1; }
}

@media (max-width: 1000px) {
  .rz-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .rz-hero__art { position: absolute; right: -40px; bottom: 0; top: 0; width: 55%; opacity: .35; pointer-events: none; }
  .rz-hero__art img { height: auto; max-height: 100%; width: 100%; object-fit: contain; object-position: bottom; }
  .rz-hero::before { right: -120px; width: 520px; height: 520px; }
  .rz-home-grid, .rz-modhero, .rz-pda, .settings__grid { grid-template-columns: 1fr; }
  .rz-news-grid { grid-template-columns: repeat(2, 1fr); }
  .rz-minimods { grid-template-columns: 1fr; }
  .rz-footer__top { grid-template-columns: 1fr 1fr; }
  .rz-footer__brand { grid-column: 1 / -1; }
  .rz-auth { grid-template-columns: 1fr; }
  .rz-auth__art { display: none; }
  .rz-auth__box { max-width: 560px; width: 100%; margin: 0 auto; padding: 40px 20px; }
}

@media (max-width: 900px) {
  /* Фильтр каталога сворачивается: видны поиск и кнопка «Фильтры» */
  .rz-filter__toggle { display: inline-flex; justify-self: start; }
  .rz-filter:not(.is-open) .rz-filter__group:not(:first-child) { display: none; }
  .rz-mod { grid-template-columns: 1fr; }
  .rz-mod__dl { padding-top: 18px; }
  .rz-topics__head, .rz-topics__row { grid-template-columns: minmax(0, 1fr) 90px; padding: 0 18px; }
  .rz-topics__head span:nth-child(2), .rz-topics__author { display: none; }
  .rz-pda__card { flex-direction: column; }
  .rz-filter { grid-template-columns: 1fr; }
  .rz-filter__tags { grid-template-columns: repeat(7, 1fr); }
}

@media (max-width: 768px) {
  :root { --gap: 16px; }
  html { font-size: 16px; }
  .rz-page { padding-top: 24px; }
  .rz-title { font-size: 34px; }
  .rz-h2 { font-size: 23px; }
  .rz-section { margin-top: 40px; }
  .rz-pad { padding: 22px 20px; }
  .rz-page-head { margin-bottom: 22px; padding-bottom: 20px; }
  .rz-page-head__lead { font-size: 17px; }
  .rz-header__inner { min-height: 62px; gap: 12px; }
  .rz-logo__text { font-size: 21px; letter-spacing: .12em; }
  .rz-logo__mark { width: 26px; height: 26px; }
  .rz-header__login { display: none; }
  .rz-nav { max-height: calc(100vh - 62px); }
  .rz-hero__text { padding: 40px 0 36px; }
  .rz-hero__h1 { font-size: 21px; }
  .rz-hero__lead { font-size: 17px; }
  .rz-hero__stats { gap: 26px; }
  .rz-stat__val { font-size: 28px; }
  .rz-hero__cta .rz-btn--lg { padding: 12px 26px; min-height: 52px; font-size: 17px; }
  .rz-mods-counts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .rz-mods-count { min-width: 0; }
  .rz-mod { padding: 16px; gap: 18px; }
  .rz-mod__title { font-size: 26px; }
  .rz-mod__dl { grid-template-columns: 1fr; }
  .rz-modhero__info { padding: 22px 20px 24px; }
  .rz-modhero__title { font-size: 30px; }
  .rz-specs { grid-template-columns: 1fr; }
  .rz-specs > div:nth-child(odd) { border-right: 0; }
  .rz-specs > div { border-bottom: 1px solid var(--border) !important; }
  .rz-specs > div:last-child { border-bottom: 0 !important; }
  .rz-post__inner { padding: 26px 20px 30px; }
  .rz-post__cover + .rz-post__inner { margin-top: -60px; }
  .rz-post__title { font-size: 30px; }
  .rz-comment { padding: 16px 16px 10px; }
  .rz-comment__body, .rz-comment__actions { padding-left: 0; }
  .rz-comment__date { display: none; }
  .rz-editor { padding: 16px; }
  .rz-editor__bar { flex-wrap: wrap; }
  .rz-review-type { order: 3; width: 100%; margin-left: 0; }
  .rz-tabs__btn { padding: 10px 14px 12px; font-size: 16px; }
  .rz-minimod { grid-template-columns: 1fr; }
  .rz-pda__ava { width: 160px; height: 160px; }
  .rz-pda__name { font-size: 34px; }
  .settings__avatar-row { flex-direction: column; }
  .rz-ticket { padding: 16px; gap: 14px; }
  .rz-ticketpage__grid { flex-direction: column-reverse; }
  .rz-groups__grid { grid-template-columns: repeat(3, 1fr); }
  .rz-chat__form { padding: 14px 16px 18px; }
  .chat__wrapper { height: 440px; }
  .chat__list { padding: 6px 10px 6px 16px; }
  .rz-panel-head { padding: 16px 16px 14px; }
  .rz-top__row { padding: 9px 16px; }
  .last-comments__item { padding: 12px 16px; }
  .rz-searchpage { flex-direction: column; }
  .rz-smiles { right: 12px; bottom: 12px; }
}

@media (max-width: 560px) {
  .rz-games, .rz-news-grid { grid-template-columns: 1fr; }
  .rz-section-head > .rz-label { display: none; }
  .rz-shop, .rz-shop--wide { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rz-item { padding: 10px 10px 12px; }
  .rz-item__title { font-size: 15px; }
  .rz-item__buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .rz-item__price { font-size: 17px; }
  .rz-game { min-height: 220px; }
  .rz-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .rz-footer__bottom { flex-direction: column; align-items: flex-start; }
  .rz-filter__games { grid-template-columns: 1fr; }
  .rz-filter__tags { grid-template-columns: repeat(5, 1fr); }
  .rz-hero__stats { gap: 18px; }
  .rz-hero__brand { font-size: 52px; }
  .rz-top__row { grid-template-columns: 28px 32px minmax(0, 1fr) auto; }
  .rz-top__faction { display: none; }
  .rz-mods-counts { grid-template-columns: 1fr 1fr; }
  .rz-pager__current { min-width: 0; }
  .rz-factions { grid-template-columns: repeat(4, 1fr); }
  .rz-groups__grid { grid-template-columns: repeat(2, 1fr); }
  .rz-crumbs span { max-width: 100%; }
  .rz-faction-bar__inner { gap: 10px; }
  .rz-faction-bar__q { width: 100%; text-align: center; }
  .rz-modhero__gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rz-modhero__media { padding: 12px; }
}

/* Firefox не умеет -webkit-mask-box-image: сколы собираются обычной маской из 9 кусков frame-mask-*.png */
@supports not (-webkit-mask-box-image: none) {
  .rz-panel, .rz-game, .rz-editor, .rz-review, .swal2-popup {
    --fm: 22px;
    mask-image: url(/images/ui/frame-mask-tl.png), url(/images/ui/frame-mask-tr.png),
                url(/images/ui/frame-mask-bl.png), url(/images/ui/frame-mask-br.png),
                url(/images/ui/frame-mask-t.png), url(/images/ui/frame-mask-b.png),
                url(/images/ui/frame-mask-l.png), url(/images/ui/frame-mask-r.png),
                linear-gradient(#000, #000);
    mask-repeat: no-repeat;
    mask-position: left top, right top, left bottom, right bottom,
                   var(--fm) top, var(--fm) bottom, left var(--fm), right var(--fm),
                   var(--fm) var(--fm);
    mask-size: var(--fm) var(--fm), var(--fm) var(--fm), var(--fm) var(--fm), var(--fm) var(--fm),
               calc(100% - 2 * var(--fm)) var(--fm), calc(100% - 2 * var(--fm)) var(--fm),
               var(--fm) calc(100% - 2 * var(--fm)), var(--fm) calc(100% - 2 * var(--fm)),
               calc(100% - 2 * var(--fm)) calc(100% - 2 * var(--fm));
  }
  .rz-panel--sm, .rz-editor, .rz-review { --fm: 14px; }
}

/* Narrowest phones (≤380px): the mod page tabs «Комментарии N / Отзывы N» fit on one line */
@media (max-width: 380px) {
  .rz-tabs { gap: 2px; }
  .rz-tabs__btn { gap: 6px; padding: 10px 8px 12px; font-size: 15px; letter-spacing: .04em; }
  .rz-tabs__btn i { display: none; }
  .rz-tabs__count { min-width: 20px; padding: 0 4px; }
}

/* Страницы ошибок */
.rz-error__code { font-family: var(--font-head); font-weight: 600; font-size: 96px; line-height: 1; letter-spacing: .04em; color: var(--stamp-text); margin-bottom: 10px; }
.rz-error__text { margin: 18px 0 0; font-size: 18px; color: var(--soft); }
.rz-error__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 575.98px) { .rz-error__code { font-size: 72px; } .rz-error__actions .rz-btn { flex: 1 1 100%; } }
