/* ==========================================================================
   RUSTFORGE — тема для магазина GameStores (Rust)
   Версия: 1.8.2
   Вставка: Панель GameStores → Внешний вид → Продвинутая конфигурация → CSS

   Структура файла:
     0. Шрифты
     1. ПЕРЕМЕННЫЕ (цвета, радиусы, размеры) — меняйте здесь
     2. База (фон, типографика, скроллбар)
     3. Панели boxHeader / boxBody / boxFooter
     4. Шапка, навигация, мобильное меню
     5. Раскладка главной (сайдбар + магазин)
     6. Мониторинг серверов
     7. Магазин: серверы, категории, поиск, карточки
     8. Модальные окна (товар, набор, выбор сервера)
     9. Кнопки, поля, таблицы (профиль, корзина, история)
    10. Статичные страницы (типографика контента)
    11. Блоки, которые добавляет theme.js (rf-*)
    12. Виджеты для статичных страниц (rf-w-*)
    13. Служебное: тосты, cookie, лоадер, футер
    14. Адаптив
    15. Уменьшенная анимация
   ========================================================================== */

/* 0. Шрифты ---------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

/* 1. ПЕРЕМЕННЫЕ ------------------------------------------------------------ */
:root {
  /* Фоны */
  --rf-bg:          #111110;   /* фон страницы */
  --rf-bg-2:        #171614;   /* фон под панелями */
  --rf-panel:       #1d1c1a;   /* панель */
  --rf-panel-2:     #252320;   /* панель, приподнятая (hover, поля) */
  --rf-panel-3:     #2e2b27;   /* активные элементы */
  --rf-line:        rgba(255, 255, 255, .07);
  --rf-line-strong: rgba(255, 255, 255, .14);

  /* Текст */
  --rf-text:        #e9e4da;
  --rf-text-dim:    #b5aea2;
  --rf-muted:       #847d72;

  /* Акценты (в духе игрового меню Rust) */
  --rf-accent:      #cd412b;   /* ржаво-красный — главные кнопки */
  --rf-accent-hi:   #e2553d;
  --rf-accent-glow: rgba(205, 65, 43, .35);
  --rf-green:       #6f8f2e;   /* оливковый — «купить», онлайн, баланс */
  --rf-green-hi:    #85a838;
  --rf-gold:        #d9a441;   /* скидки, топ, VIP */
  --rf-blue:        #4f8fc0;   /* инфо */
  --rf-danger:      #c23b3b;

  /* Формы */
  --rf-radius:      4px;
  --rf-radius-lg:   8px;
  --rf-gap:         16px;
  --rf-sidebar:     300px;     /* ширина колонки виджетов */
  --rf-cats:        230px;     /* ширина колонки категорий */
  --rf-container:   1880px;    /* максимальная ширина сайта (JS берёт из CONFIG.layout.width) */
  --rf-card-min:    178px;     /* минимальная ширина карточки товара */

  /* Шрифты */
  --rf-font-head:   "Oswald", "Roboto Condensed", Impact, sans-serif;
  --rf-font-body:   "Roboto", "Segoe UI", Arial, sans-serif;

  /* Тени и переходы */
  --rf-shadow:      0 10px 30px rgba(0, 0, 0, .45);
  --rf-ease:        cubic-bezier(.2, .8, .2, 1);
  --rf-t:           .18s var(--rf-ease);
}

/* 2. База ------------------------------------------------------------------ */
/* scroll-behavior: smooth на html не ставим — он мешает прокрутке самой платформы */

/* При открытии окна платформа вешает на body класс noScroll (overflow: hidden) — полоса
   прокрутки пропадала, и весь сайт прыгал вбок на её ширину. Полосу оставляем на месте,
   а прокрутку страницы под окном гасим самим слоем окна (overscroll-behavior). */
html { background: var(--rf-bg); }
/* у платформы body { width: 100vw } — это шире видимой области на ширину полосы прокрутки:
   всё съезжало на полпалосы вправо, а правый край прятался под полосой */
body { width: auto !important; }
body.noScroll { overflow-x: hidden !important; overflow-y: auto !important; }
.ModalLayout-module__overflowWrapper { overscroll-behavior: contain; }
.ModalLayout-module__wrapper { width: auto !important; }   /* было 100vw — окно стояло на 5–8 px правее центра */

body {
  background: var(--rf-bg) !important;
  color: var(--rf-text);
  font-family: var(--rf-font-body);
  -webkit-font-smoothing: antialiased;
}

/* Фоновая картинка платформы — приглушаем, поверх кладём сетку и виньетку */
.BGImage-module__img {
  opacity: .18 !important;
  filter: grayscale(.4) contrast(1.1);
}
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(205, 65, 43, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(111, 143, 46, .10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 48px),
    var(--rf-bg);
}

#root a { color: inherit; text-decoration: none; transition: color var(--rf-t); }
#root a:not(.rf-btn):not([class*="Button-module"]):hover { color: var(--rf-accent-hi); }

::selection { background: var(--rf-accent); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--rf-panel-3) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rf-panel-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--rf-accent); }

:focus-visible {
  outline: 2px solid var(--rf-accent-hi) !important;
  outline-offset: 2px;
}

/* У платформы .container { width: 1160px } — растягиваем до общей ширины темы,
   чтобы шапка, hero, статусбар и магазин стояли по одной линии */
.container {
  width: 100% !important;
  max-width: var(--rf-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box;
}

/* Баннер платформы (если загружен в панели). CONFIG.platformBanner: true — показать */
html:not(.rf-show-banner) .bannerContainer { display: none !important; }  /* скрыт сразу, без мелькания; JS добавляет rf-show-banner */
.bannerContainer { margin-top: 12px; }
.Banner-module__img {
  width: 100%;
  border-radius: var(--rf-radius-lg);
  border: 1px solid var(--rf-line);
  display: block;
}

/* 3. Панели ---------------------------------------------------------------- */
/* Любая секция в main (магазин, страницы, поддержка, профиль, корзина, история)
   и любой виджет сайдбара оформляются одной панелью */
.Widgets-module__wrapper > .Widgets-module__widgetWrapper,
main.container > section,
main.container > div:not(.Widgets-module__wrapper):not([class*="Loader"]) {
  background: linear-gradient(180deg, var(--rf-panel) 0%, var(--rf-bg-2) 100%) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius-lg) !important;
  box-shadow: var(--rf-shadow);
  overflow: hidden;
  min-width: 0;
}
/* Магазин: без overflow-обрезки и без containment — внутри «липкая» колонка категорий.
   overflow: clip + container-type давали в некоторых браузерах непрорисованные области
   (товары появлялись только при наведении курсора). Углы скругляем у шапки панели. */
main.container > .Shop-module__wrapper { overflow: visible; }
.Shop-module__wrapper > .boxHeader { border-radius: var(--rf-radius-lg) var(--rf-radius-lg) 0 0; }
/* Адаптив виджетов по ширине (container queries) — только там, где он нужен */
.Widgets-module__wrapper > .Widgets-module__widgetWrapper,
.Page-module__wrapper { container-type: inline-size; }
/* HTML-виджет сайдбара: внутри платформа кладёт ещё один .Widgets-module__widgetWrapper без отступов */
.Widgets-module__widgetWrapper .Widgets-module__widgetWrapper {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 14px !important;
  overflow: visible;
}
.Widgets-module__widgetWrapper .Widgets-module__widgetWrapper > :last-child { margin-bottom: 0 !important; }
.Widgets-module__widgetWrapper + .Widgets-module__widgetWrapper { margin-top: 0 !important; } /* отступ задаёт gap */

.boxHeader {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;  /* у платформы space-between — уводил текст вправо */
  gap: 10px;
  margin: 0 !important;
  padding: 14px 18px !important;
  background: rgba(0, 0, 0, .25) !important;
  border-bottom: 1px solid var(--rf-line) !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
}
/* красная «насечка» слева от заголовка */
.boxHeader::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--rf-accent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--rf-accent-glow);
  flex: 0 0 auto;
}
.boxHeader svg { width: 18px; height: 18px; color: var(--rf-accent); fill: currentColor; }
.boxHeader > button:last-child,
.boxHeader > .CrosseCloseBtn-module__btn { margin-left: auto; }

.boxBody   { padding: 16px 18px !important; background: transparent !important; }
.boxFooter {
  padding: 12px 18px !important;
  border-top: 1px solid var(--rf-line) !important;
  background: rgba(0, 0, 0, .18) !important;
}

/* 4. Шапка ----------------------------------------------------------------- */
/* ВАЖНО: backdrop-filter нельзя ставить на сам .headerContainer — он становится
   «контейнером» для position:fixed, и мобильное меню платформы ломается
   (начинается под шапкой и растягивает страницу вбок). Размытие — на ::before. */
.headerContainer {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rf-line);
  max-width: none !important;
  width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.headerContainer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(17, 17, 16, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.Header-module__wrapper {
  max-width: calc(var(--rf-container) - 32px);
  margin: 0 auto;
  min-height: 68px;
  display: flex !important;
  align-items: center;
  gap: 24px;
  background: transparent !important;
}
.Header-module__logoWrapper { margin: 0 !important; font-size: inherit; }
.Header-module__logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--rf-font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rf-text) !important;
}
.Header-module__logo img { max-height: 44px; width: auto; }

.HeaderNav-module__wrapper { display: flex; gap: 4px; flex: 1; }
:is(.HeaderNav-module__link, .SupportLink-module__link) {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  border-radius: var(--rf-radius);
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rf-text-dim) !important;
  background: transparent !important;
  transition: color var(--rf-t), background var(--rf-t);
}
:is(.HeaderNav-module__link, .SupportLink-module__link) svg { width: 16px; height: 16px; opacity: .8; }
:is(.HeaderNav-module__link, .SupportLink-module__link)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--rf-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--rf-t);
}
:is(.HeaderNav-module__link, .SupportLink-module__link):hover { color: var(--rf-text) !important; background: rgba(255,255,255,.04) !important; }
:is(.HeaderNav-module__link, .SupportLink-module__link):hover::after,
:is(.HeaderNav-module__link, .SupportLink-module__link).rf-current::after,
:is(.HeaderNav-module__link, .SupportLink-module__link)[aria-current="page"]::after,
:is(.HeaderNav-module__link, .SupportLink-module__link)[class*="active"]::after { transform: scaleX(1); }
:is(.HeaderNav-module__link, .SupportLink-module__link).rf-current,
:is(.HeaderNav-module__link, .SupportLink-module__link)[class*="active"] { color: var(--rf-text) !important; }

.PlayerMenu-module__wrapper { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.PlayerMenu-module__loginLink,
.PlayerMenuMobile-module__loginLink {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  border-radius: var(--rf-radius);
  background: var(--rf-accent) !important;
  color: #fff !important;
  font-family: var(--rf-font-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px var(--rf-accent-glow);
  transition: background var(--rf-t), transform var(--rf-t);
}
.PlayerMenu-module__loginLink:hover { background: var(--rf-accent-hi) !important; color: #fff !important; }
.PlayerMenu-module__loginLink svg { width: 16px; height: 16px; }

/* Баланс / профиль игрока (классы встречаются после входа) */
/* (кнопка баланса и профиля — в разделе «Кабинет игрока») */
[class*="PlayerMenu-module__avatar"] img,
img[class*="PlayerMenu-module__avatar"] {
  border-radius: var(--rf-radius);
  border: 2px solid var(--rf-panel-3);
}

/* Переключатель языка */
.LangSwitcher-module__wrapper { position: relative; }
.LangSwitcher-module__btn {
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  color: var(--rf-text) !important;
  border-radius: var(--rf-radius) !important;
  padding: 9px 12px !important;
  font-family: var(--rf-font-head);
  font-weight: 500;
  cursor: pointer;
}
.LangSwitcher-module__list {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line-strong) !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: var(--rf-shadow);
  overflow: hidden;
}
.LangSwitcher-module__lang {
  background: transparent !important;
  color: var(--rf-text-dim) !important;
  padding: 8px 14px !important;
  cursor: pointer;
}
.LangSwitcher-module__lang:hover { background: var(--rf-panel-3) !important; color: var(--rf-text) !important; }

/* Мобильное меню */
.PlayerMenuMobile-module__mobileMenuBtn {
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
}
.PlayerMenuMobile-module__line { background: var(--rf-text) !important; }
.PlayerMenuMobile-module__menuWrapper { background: rgba(6, 6, 5, .7) !important; }
.PlayerMenuMobile-module__menu {
  background: var(--rf-panel) !important;
  border-left: 1px solid var(--rf-line-strong);
  box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
}
.PlayerMenuMobile-module__header { min-height: 56px; }
.PlayerMenuMobile-module__body { padding: 14px !important; }
.PlayerMenuMobile-module__playerMenu { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.PlayerMenuMobile-module__loginLink { justify-content: center; width: 100%; box-sizing: border-box; }
.PlayerMenuMobile-module__langSwitcher .LangSwitcher-module__btn { width: 100%; }
.PlayerMenuMobile-module__nav { display: flex !important; flex-direction: column; gap: 2px; }
.PlayerMenuMobile-module__nav :is(.HeaderNav-module__link, .SupportLink-module__link) {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--rf-line);
  border-radius: 0;
}
.PlayerMenuMobile-module__nav :is(.HeaderNav-module__link, .SupportLink-module__link)::after { left: 0; right: auto; width: 3px; top: 8px; bottom: 8px; height: auto; transform: scaleY(0); }
.PlayerMenuMobile-module__nav :is(.HeaderNav-module__link, .SupportLink-module__link).rf-current::after { transform: scaleY(1); }
.CrosseCloseBtn-module__btn { cursor: pointer; }
.CrosseCloseBtn-module__line { background: var(--rf-text) !important; }

/* 5. Раскладка страниц ------------------------------------------------------- */
/* Любая страница, где есть боковая колонка: главная, статичные, поддержка, профиль… */
main.container:has(> .Widgets-module__wrapper),
.Index-module__wrapper,
.CustomPage-module__wrapper {
  display: grid !important;
  grid-template-columns: var(--rf-sidebar) minmax(0, 1fr);
  gap: var(--rf-gap) !important;
  align-items: start;
  margin-top: var(--rf-gap) !important;
  margin-bottom: 40px !important;
}
main.container {
  display: grid !important;               /* у платформы flex — с панелями темы колонки схлопывались */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rf-gap);
  align-items: start;
  margin-top: var(--rf-gap) !important;
}
main.container > * { min-width: 0; width: auto !important; margin: 0 !important; }
/* сайдбар справа (настройка платформы) */
main.container:has(> .Widgets-module__rightSide) { grid-template-columns: minmax(0, 1fr) var(--rf-sidebar); }
main.container > .Widgets-module__rightSide { order: 2; }

.Widgets-module__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--rf-gap);
  width: auto !important;
  min-width: 0 !important;   /* у платформы min/max-width: 264px */
  max-width: none !important;
  /* колонка не «липкая»: с несколькими виджетами она выше экрана */
}
.errorMessage {
  display: block;
  padding: 28px 12px;
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
}

/* 5a. Раскладка: ширина, колонки, категории сбоку ---------------------------------
   Классы rf-* на <html> ставит theme.js по CONFIG.layout */

/* мониторинг переехал в панель «Наши серверы» — штатный виджет прячем (данные JS читает из него) */
html.rf-mon-top .Widgets-module__wrapper > .Widgets-module__widgetWrapper:has(.MonitoringWidget-module__body) { display: none !important; }

/* виджетов не осталось / sidebar: 'hidden' — магазин на всю ширину */
main.container.rf-no-sidebar { grid-template-columns: minmax(0, 1fr) !important; }
main.container.rf-no-sidebar > .Widgets-module__wrapper { display: none !important; }

@media (min-width: 981px) {
  html.rf-sidebar-right main.container:has(> .Widgets-module__wrapper) { grid-template-columns: minmax(0, 1fr) var(--rf-sidebar); }
  html.rf-sidebar-right main.container > .Widgets-module__wrapper { order: 2; }

  html.rf-sidebar-bottom main.container:has(> .Widgets-module__wrapper) { grid-template-columns: minmax(0, 1fr); }
  html.rf-sidebar-bottom main.container > .Widgets-module__wrapper {
    order: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    align-items: start;
  }

  /* Категории колонкой у левого края магазина */
  html.rf-cats-side .Shop-module__wrapper > .boxBody {
    display: grid !important;
    grid-template-columns: var(--rf-cats) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 22px;
    align-items: start;
  }
  html.rf-cats-side .Shop-module__wrapper > .boxBody > * { grid-column: 2; min-width: 0; }
  html.rf-cats-side .Shop-module__wrapper > .boxBody > .Categories-module__categories {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: 86px;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px;
    max-height: calc(100vh - 106px);
    overflow-x: hidden !important;   /* никакой прокрутки влево/вправо */
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .14) transparent;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--rf-line);
    border-radius: var(--rf-radius-lg);
  }
  html.rf-cats-side .Categories-module__categories::-webkit-scrollbar { width: 6px; height: 0; }
  html.rf-cats-side .Categories-module__categories::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }
  html.rf-cats-side .Categories-module__categories::before {
    content: "Категории";
    display: block;
    flex: 0 0 auto;
    padding: 4px 12px 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--rf-line);
    color: var(--rf-muted);
    font-family: var(--rf-font-head);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  html.rf-cats-side .Categories-module__categories .Categories-module__category {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    gap: 11px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    transform: none !important;
    border-radius: var(--rf-radius) !important;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
  }
  html.rf-cats-side .Categories-module__categories .Categories-module__category:hover {
    background: rgba(255, 255, 255, .05) !important;
  }
  html.rf-cats-side .Categories-module__categories .Categories-module__category.Categories-module__active {
    background: rgba(205, 65, 43, .14) !important;
    box-shadow: inset 3px 0 0 var(--rf-accent);
    color: var(--rf-text) !important;
  }
  html.rf-cats-side .Categories-module__categories .rf-cat-icon { width: 17px; height: 17px; }
}

/* Панель «Наши серверы» (вместо виджета мониторинга) */
.rf-servers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: stretch;
  max-width: calc(var(--rf-container) - 32px);
  margin: 16px auto 0;
  padding: 18px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(205, 65, 43, .12), transparent 70%),
    linear-gradient(180deg, var(--rf-panel) 0%, var(--rf-bg-2) 100%);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow);
}
.rf-servers__head { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.rf-servers__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rf-servers__title::before {
  content: "";
  width: 4px; height: 22px;
  background: var(--rf-accent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--rf-accent-glow);
}
.rf-servers__sub { display: block; color: var(--rf-muted); font-size: 13px; line-height: 1.5; }
.rf-servers__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rf-servers__total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rf-servers__total i { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-green-hi); animation: rf-pulse 2s infinite; }
.rf-servers__total b { color: var(--rf-green-hi); font-size: 20px; }
.rf-servers.is-updating [data-rf-act="refresh"] { opacity: .5; pointer-events: none; }

.rf-servers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
}
.rf-srv {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(160deg, var(--rf-panel-2) 0%, var(--rf-panel) 100%);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  overflow: visible;             /* чтобы подсказка онлайна не обрезалась */
  transition: border-color var(--rf-t), box-shadow var(--rf-t);
}
.rf-srv:hover, .rf-srv:focus-within { z-index: 2; }
.rf-srv::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  border-radius: var(--rf-radius-lg) var(--rf-radius-lg) 0 0;
  background: var(--rf-muted);
}
.rf-srv.is-online::before { background: linear-gradient(90deg, var(--rf-green), var(--rf-green-hi)); }
.rf-srv.is-offline::before { background: var(--rf-danger); opacity: .7; }
.rf-srv__in { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.rf-srv:hover { border-color: var(--rf-line-strong); box-shadow: 0 12px 26px rgba(0,0,0,.45); }
.rf-srv__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.rf-srv__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rf-muted);
}
.rf-srv__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-danger); }
.rf-srv.is-online .rf-srv__status { color: var(--rf-green-hi); }
.rf-srv.is-online .rf-srv__status i { background: var(--rf-green-hi); animation: rf-pulse 2s infinite; }
.rf-srv__players { color: var(--rf-muted); font-family: var(--rf-font-head); font-size: 13px; }
.rf-srv__players b { color: var(--rf-text); font-size: 20px; }
.rf-srv__name {
  margin: 0;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-srv__bar { height: 6px; background: rgba(0, 0, 0, .45); border-radius: 3px; overflow: hidden; }
.rf-srv__bar i {
  display: block;
  width: var(--pct, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--rf-green), var(--rf-green-hi));
  border-radius: 3px;
  transition: width .6s var(--rf-ease);
}
.rf-srv.is-offline .rf-srv__name { color: var(--rf-text-dim); }

/* Полоса онлайна с подсказкой «Играют / Подключаются / В очереди» */
.rf-srv__barwrap { position: relative; padding: 5px 0; margin: -5px 0; outline: none; }
.rf-srv__barwrap.has-tip { cursor: help; }
.rf-srv__barwrap.has-tip:hover .rf-srv__bar,
.rf-srv__barwrap.has-tip:focus-visible .rf-srv__bar { box-shadow: 0 0 0 1px rgba(133, 168, 56, .5); }

.rf-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  padding: 10px 12px;
  background: #0d0d0c;
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;          /* подсказка не перехватывает курсор — никакого мерцания */
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility 0s linear .15s;
}
.rf-tip::after {
  content: "";
  position: absolute;
  left: 18px; top: 100%;
  border: 6px solid transparent;
  border-top-color: #0d0d0c;
}
.rf-tip__row { display: flex; justify-content: space-between; gap: 16px; }
.rf-tip__row b { color: var(--rf-text); font-weight: 600; }
.rf-tip__row:first-child b { color: var(--rf-green-hi); }
.has-tip:hover > .rf-tip,
.has-tip:focus > .rf-tip { opacity: 1; visibility: visible; transition: opacity .15s ease, visibility 0s; }

.rf-servers__total { position: relative; outline: none; }
.rf-servers__total.has-tip { cursor: help; }
.rf-servers__total .rf-tip { left: -6px; }
.rf-servers__total .rf-tip b { font-size: 13px; color: var(--rf-text); }
.rf-servers__total .rf-tip .rf-tip__row:first-child b { color: var(--rf-green-hi); }
.rf-srv__actions { display: flex; gap: 8px; margin-top: 2px; }
.rf-srv__actions .rf-btn { flex: 1; white-space: nowrap; }

/* широкая карточка (мало серверов): информация слева, кнопки справа */
@container (min-width: 480px) {
  .rf-srv__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top actions" "name actions" "bar bar";
    column-gap: 18px;
    row-gap: 8px;
    align-items: center;
  }
  .rf-srv__top { grid-area: top; justify-content: flex-start; gap: 18px; }
  .rf-srv__name { grid-area: name; font-size: 22px; }
  .rf-srv__barwrap { grid-area: bar; margin-top: 2px; }
  .rf-srv__actions { grid-area: actions; margin: 0; }
  .rf-srv__actions .rf-btn { flex: 0 0 auto; min-width: 120px; }
}

/* --- Rust Admin в карточке сервера: превью карты и показатели (CONFIG.rustAdmin.serverCard) --- */
.rf-srv__map {
  display: block;
  width: 100%;
  height: 120px;
  padding: 0;
  overflow: hidden;
  background: #0b0b0a;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  cursor: zoom-in;
  transition: border-color var(--rf-t);
}
/* у картинок карт Facepunch широкое поле океана — приближаем, чтобы был виден сам остров */
.rf-srv__map img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); transition: transform .4s var(--rf-ease); }
.rf-srv__map:hover { border-color: var(--rf-line-strong); }
.rf-srv__map:hover img { transform: scale(1.6); }   /* увеличивается только картинка внутри — карточка не двигается */
.rf-srv__map:focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 2px; }
.rf-srv.is-offline .rf-srv__map img { filter: grayscale(.8) brightness(.7); }
.rf-srv__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-srv__meta span {
  padding: 3px 8px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.rf-srv__meta span.is-warn { color: var(--rf-gold); border-color: rgba(217, 164, 65, .4); }
@container (min-width: 480px) {
  .rf-srv.has-ra .rf-srv__in:has(.rf-srv__map) {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    grid-template-areas: "map top actions" "map name actions" "map meta actions" "bar bar bar";
  }
  .rf-srv.has-ra .rf-srv__in:not(:has(.rf-srv__map)) { grid-template-areas: "top actions" "name actions" "meta actions" "bar bar"; }
  .rf-srv.has-ra .rf-srv__map { grid-area: map; width: 112px; height: 112px; align-self: start; }
  .rf-srv.has-ra .rf-srv__meta { grid-area: meta; }
}

/* крупная карта поверх сайта */
.rf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 6, 5, .86);
  animation: rf-fade .2s ease;
  cursor: zoom-out;
}
.rf-lightbox__fig { margin: 0; max-width: min(92vw, 900px); text-align: center; cursor: default; }
.rf-lightbox__fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.rf-lightbox__fig figcaption { margin-top: 12px; color: var(--rf-text-dim); font-family: var(--rf-font-head); letter-spacing: .05em; }
.rf-lightbox__close {
  position: fixed; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: var(--rf-panel); border: 1px solid var(--rf-line-strong); border-radius: var(--rf-radius);
  color: var(--rf-text); font-size: 22px; line-height: 1; cursor: pointer;
}
.rf-lightbox__close:hover { background: var(--rf-accent); border-color: var(--rf-accent); }

/* --- Виджеты Rust Admin: топ игроков и бан-лист (data-rf="ra-top" / "ra-bans") --- */
.rf-ra { margin: 16px 0; }
.rf-ra-state {
  padding: 18px;
  background: rgba(0, 0, 0, .25);
  border: 1px dashed var(--rf-line-strong);
  border-radius: var(--rf-radius-lg);
  color: var(--rf-muted);
  text-align: center;
}
.rf-ra-state--error { color: #e8a29a; border-color: rgba(205, 65, 43, .5); }
.rf-ra-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rf-ra-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-ra-tab {
  padding: 8px 14px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--rf-t), color var(--rf-t), background-color var(--rf-t);
}
.rf-ra-tab:hover { color: var(--rf-text); border-color: var(--rf-line-strong); }
.rf-ra-tab.is-active { background: rgba(205, 65, 43, .14); border-color: var(--rf-accent); color: var(--rf-text); }
.rf-ra-select,
.rf-ra-search {
  height: 40px;
  padding: 0 12px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  font: inherit;
}
.rf-ra-select:focus, .rf-ra-search:focus { outline: none; border-color: var(--rf-accent); }
.rf-ra-searchwrap { flex: 1 1 280px; display: flex; }
.rf-ra-search { width: 100%; }
.rf-ra-count { color: var(--rf-muted); font-family: var(--rf-font-head); letter-spacing: .05em; text-transform: uppercase; font-size: 13px; }
.rf-ra-count b { color: var(--rf-text); }
.rf-ra-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rf-ra-row, .rf-ra-ban {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
}
.rf-ra-row { grid-template-columns: 34px 40px minmax(0, 1fr) auto auto; }
.rf-ra-ban { grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) auto; }
.rf-ra-rank { color: var(--rf-muted); font-family: var(--rf-font-head); font-size: 18px; text-align: center; }
.rf-ra-row.is-top1 { border-color: rgba(217, 164, 65, .55); background: linear-gradient(90deg, rgba(217, 164, 65, .1), var(--rf-panel-2) 45%); }
.rf-ra-row.is-top1 .rf-ra-rank { color: var(--rf-gold); }
.rf-ra-row.is-top2 .rf-ra-rank { color: #c7c7c2; }
.rf-ra-row.is-top3 .rf-ra-rank { color: #c98b5b; }
.rf-ra-ava { width: 40px; height: 40px; border-radius: var(--rf-radius); object-fit: cover; background: rgba(0, 0, 0, .35); }
/* нет аватара (часто у записей банов) — плашка с первой буквой ника */
.rf-ra-ava--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(205, 65, 43, .28), rgba(0, 0, 0, .35));
  border: 1px solid var(--rf-line-strong);
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}
.rf-ra-who { display: flex; flex-direction: column; min-width: 0; }
.rf-ra-who a { overflow: hidden; color: var(--rf-text) !important; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.rf-ra-who a:hover { color: var(--rf-accent-hi, #e85a3f) !important; }
.rf-ra-who small, .rf-ra-term small { overflow: hidden; color: var(--rf-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rf-ra-online { padding: 2px 8px; border: 1px solid rgba(133, 168, 56, .45); border-radius: 999px; color: var(--rf-green-hi); font-size: 12px; }
.rf-ra-val { min-width: 70px; color: var(--rf-green-hi); font-family: var(--rf-font-head); font-size: 18px; text-align: right; }
.rf-ra-reason { color: var(--rf-text-dim); font-size: 14px; }
.rf-ra-term { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rf-ra-term b { color: var(--rf-gold); font-family: var(--rf-font-head); font-weight: 500; letter-spacing: .03em; }
.rf-ra-term b.is-perm { color: #e8a29a; }
.rf-ra-empty { padding: 18px; background: rgba(0, 0, 0, .2); border: 1px dashed var(--rf-line); border-radius: var(--rf-radius); color: var(--rf-muted); text-align: center; }
.rf-ra-more, .rf-ra-src { margin-top: 10px; color: var(--rf-muted); font-size: 12px; }
@media (max-width: 640px) {
  .rf-ra-row { grid-template-columns: 26px 36px minmax(0, 1fr) auto; }
  .rf-ra-row .rf-ra-online { display: none; }
  .rf-ra-ava { width: 36px; height: 36px; }
  .rf-ra-ban { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .rf-ra-ban .rf-ra-reason { grid-column: 2 / -1; grid-row: 2; }
  .rf-ra-tab { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 980px) {
  .rf-servers { grid-template-columns: 1fr; }
  .rf-servers__head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .rf-servers__meta { flex-direction: row; align-items: center; }
}
@media (max-width: 560px) {
  .rf-servers { width: calc(100% - 20px); padding: 14px; margin-top: 10px; }
  .rf-servers__title { font-size: 19px; }
  .rf-servers__sub { display: none; }
  .rf-servers__grid { grid-template-columns: 1fr; }
}

/* 6. Мониторинг -------------------------------------------------------------- */
.MonitoringWidget-module__body { display: flex; flex-direction: column; gap: 10px; }

.MonitoringServer-module__wrapper {
  position: relative;
  padding: 12px 12px 10px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t), transform var(--rf-t);
}
.MonitoringServer-module__wrapper:hover { border-color: var(--rf-line-strong) !important; }

.MonitoringServer-module__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rf-font-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rf-text) !important;
}
/* индикатор онлайна; класс rf-online / rf-offline ставит theme.js */
.MonitoringServer-module__name::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rf-muted);
  flex: 0 0 auto;
}
.rf-online .MonitoringServer-module__name::before {
  background: var(--rf-green-hi);
  box-shadow: 0 0 0 0 rgba(133, 168, 56, .6);
  animation: rf-pulse 2s infinite;
}
.rf-offline { opacity: .65; }
.rf-offline .MonitoringServer-module__name::before { background: var(--rf-danger); }

.MonitoringServer-module__progressInfo,
.MonitoringServer-module__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--rf-muted) !important;
}
.MonitoringServer-module__playersInfo { color: var(--rf-text-dim) !important; }
.MonitoringServer-module__progressBarWrapper {
  position: relative;
  height: 6px !important;
  margin: 8px 0 !important;
  background: rgba(0, 0, 0, .45) !important;
  border-radius: 3px !important;
  overflow: hidden;
}
.MonitoringServer-module__progressBar {
  height: 100% !important;
  background: linear-gradient(90deg, var(--rf-green), var(--rf-green-hi)) !important;
  border-radius: 3px !important;
  transition: width .6s var(--rf-ease);
}
.MonitoringServer-module__progressBarAnim { background: rgba(255, 255, 255, .12) !important; }
/* выключенный сервер: платформа рисует полную полосу — гасим её */
.rf-offline .MonitoringServer-module__progressBar,
.rf-offline .MonitoringServer-module__progressBarAnim { background: rgba(255, 255, 255, .06) !important; }
/* строка «Всего онлайн» (класс rf-mon-total ставит theme.js) */
.MonitoringServer-module__wrapper.rf-mon-total {
  background: rgba(111, 143, 46, .08) !important;
  border-color: rgba(111, 143, 46, .3) !important;
  opacity: 1;
}
.rf-mon-total:hover { transform: none; }
.rf-mon-total .MonitoringServer-module__name::before { background: var(--rf-green-hi); animation: none; box-shadow: none; }
.MonitoringServer-module__olineDivider { margin: 0 3px; color: var(--rf-muted); }
.MonitoringWidget-module__body { position: relative; }
.MonitoringServer-module__btns { display: flex; gap: 6px; }
.MonitoringServer-module__link,
.MonitoringServer-module__btn {
  display: inline-grid !important;
  place-items: center;
  width: 28px; height: 28px;
  padding: 0 !important;
  background: var(--rf-panel-3) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  cursor: pointer;
  transition: background var(--rf-t), color var(--rf-t);
}
.MonitoringServer-module__link:hover,
.MonitoringServer-module__btn:hover { background: var(--rf-accent) !important; color: #fff !important; }
.MonitoringServer-module__link svg,
.MonitoringServer-module__btn svg { width: 14px; height: 14px; fill: currentColor; }
.MonitoringWidget-module__updateBtn { width: 100%; }

/* 7. Магазин ----------------------------------------------------------------- */
/* Вкладки серверов */
.Servers-module__servers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px !important;
}
.Servers-module__server {
  padding: 9px 14px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rf-t);
}
.Servers-module__server:hover { color: var(--rf-text) !important; border-color: var(--rf-line-strong) !important; }
.Servers-module__server[class*="active"],
.Servers-module__server[class*="Active"] {
  background: var(--rf-accent) !important;
  border-color: var(--rf-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--rf-accent-glow);
}

/* Категории */
.Categories-module__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px !important;
}
.Categories-module__category {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;            /* у платформы margin: 5px — из-за него ряд «гулял» */
  padding: 8px 12px !important;
  box-sizing: border-box;
  background: transparent !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rf-t);
}
.Categories-module__category:hover {
  background: var(--rf-panel-2) !important;
  color: var(--rf-text) !important;
}
.Categories-module__category.Categories-module__active {
  background: var(--rf-panel-3) !important;
  border-color: var(--rf-accent) !important;
  color: var(--rf-text) !important;
  box-shadow: inset 0 -2px 0 var(--rf-accent);
}
.rf-cat-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--rf-accent); }

/* Поиск */
.Search-module__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t), box-shadow var(--rf-t);
}
.Search-module__wrapper:focus-within {
  border-color: var(--rf-accent) !important;
  box-shadow: 0 0 0 3px var(--rf-accent-glow);
}
.Search-module__iconWrapper { padding: 0 4px 0 14px; color: var(--rf-muted); display: flex; }
.Search-module__iconWrapper svg { width: 16px; height: 16px; fill: currentColor; }
.Search-module__input {
  flex: 1;
  height: 44px;
  padding: 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  color: var(--rf-text) !important;
  font-size: 15px;
}
.Search-module__input::placeholder { color: var(--rf-muted); }

/* Сетка товаров */
.Products-module__wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(var(--rf-card-min), 1fr));
  gap: 12px !important;
}

/* Карточка товара */
.Product-module__wrapper {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  min-height: 220px;
  padding: 12px !important;
  margin: 0 !important;
  width: auto !important;
  box-sizing: border-box;
  background:
    radial-gradient(120% 70% at 50% 30%, rgba(255,255,255,.05), transparent 70%),
    var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius-lg) !important;
  cursor: pointer;
  overflow: hidden;
  /* у платформы карточки «проявляются» из opacity:0 — 74 анимации разом; отключаем,
     карточки сразу видимы и не зависят от того, успел ли браузер доиграть анимацию */
  animation: none !important;
  transition: border-color var(--rf-t), box-shadow var(--rf-t);
}
.Product-module__wrapper::after {   /* блик при наведении */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--rf-ease);
  pointer-events: none;
}
.Product-module__wrapper:hover {
  border-color: rgba(205, 65, 43, .55) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(205,65,43,.25);
}
.Product-module__wrapper:hover::after { transform: translateX(120%); }

.Product-module__img {
  order: -1;
  width: 100% !important;
  height: 110px !important;
  object-fit: contain;
  margin: 4px 0 10px !important;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.55));
  transition: transform .3s var(--rf-ease);
}
.Product-module__wrapper:hover .Product-module__img { transform: scale(1.07); }

/* У платформы название — выезжающий снизу слой (absolute + translateY(100%)).
   Возвращаем его в обычный поток, иначе оно спрятано и видно только при наведении. */
.Product-module__name {
  order: 1;
  flex: 1;
  position: static !important;
  transform: none !important;
  width: auto !important;
  padding: 0 !important;
  margin-bottom: 10px;
  background: none !important;
  z-index: auto !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
}
.Product-module__price {
  order: 2;
  display: flex !important;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  position: static !important;
  padding: 8px 10px !important;
  background: rgba(111, 143, 46, .16) !important;
  border: 1px solid rgba(111, 143, 46, .4) !important;
  border-radius: var(--rf-radius) !important;
  color: #cfe39a !important;
  font-family: var(--rf-font-head);
  font-size: 16px;
  font-weight: 600;
  transition: background var(--rf-t), color var(--rf-t);
}
.Product-module__wrapper:hover .Product-module__price {
  background: var(--rf-green) !important;
  color: #fff !important;
}
.Product-module__oldPrice {
  color: var(--rf-muted) !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 0 !important;
}
.Product-module__oldPrice::after { display: none !important; } /* у платформы своя черта поверх */
.Product-module__discount {
  position: absolute !important;
  top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important;
  z-index: 2;
  padding: 3px 7px !important;
  background: var(--rf-accent) !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 3px 10px var(--rf-accent-glow);
}
.Product-module__count {
  position: absolute !important;
  top: 10px !important; right: 10px !important; bottom: auto !important; left: auto !important;
  transform: none !important;
  z-index: 2;
  padding: 3px 7px !important;
  background: rgba(0,0,0,.55) !important;
  color: var(--rf-text) !important;
  border: 1px solid var(--rf-line-strong);
  border-radius: 3px !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
}
/* если есть кнопка избранного — сдвигаем количество ниже */
.rf-has-fav .Product-module__count { top: 42px !important; }

/* Штатное избранное платформы (показывается после входа) — в стиль темы */
.Product-module__favorite {
  top: 8px !important; right: 8px !important;
  width: 28px; height: 28px;
  display: grid !important; place-items: center;
  padding: 0 !important;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--rf-line);
  border-radius: 50%;
  color: var(--rf-muted) !important;
}
.Product-module__favorite svg { width: 14px !important; height: 14px !important; }
.Product-module__favorite:hover,
.Product-module__favorite[data-favorite="true"] { color: var(--rf-gold) !important; border-color: rgba(217,164,65,.5); }
.Product-module__wrapper:has(.Product-module__favorite) .rf-fav { display: none !important; }

/* 8. Модальные окна ---------------------------------------------------------- */
.ModalLayout-module__wrapper {
  background: rgba(6, 6, 5, .78) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rf-fade .2s ease;
}
.ModalLayout-module__modal {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line-strong) !important;
  border-radius: var(--rf-radius-lg) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(205,65,43,.15);
  color: var(--rf-text) !important;
  overflow: hidden;
  animation: rf-pop .25s var(--rf-ease);
  position: relative;
}
.ProductModal-module__header { padding-right: 52px !important; }
.ModalLayout-module__modal { max-width: calc(100vw - 24px); box-sizing: border-box; }

.productModalImg {
  display: block;
  max-width: 160px !important;
  max-height: 160px;
  margin: 4px auto 16px !important;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.6));
}
.productModalDescription {
  color: var(--rf-text-dim) !important;
  line-height: 1.6;
  margin-bottom: 14px;
}
.productModalFormRow { display: flex; gap: 12px; flex-wrap: wrap; }
.productModalFormRowItem { flex: 1 1 160px; }

.TotalSum-module__label,
.CountSelector-module__label,
.ProductItemSelector-module__label,
.ProductModal-module__form label {
  display: block;
  margin-bottom: 6px;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.TotalSum-module__inputWrapper,
.CountSelector-module__inputWrapper {
  display: flex !important;
  align-items: stretch;
  height: 44px;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  overflow: hidden;
}
.TotalSum-module__currency {
  display: flex; align-items: center;
  padding: 0 12px !important;
  background: rgba(0,0,0,.25) !important;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 13px;
}
.TotalSum-module__input,
.CountSelector-module__input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 18px !important;
  font-weight: 600;
  text-align: center;
  outline: none !important;
}
.CountSelector-module__changeCountBtn {
  width: 44px;
  background: var(--rf-panel-3) !important;
  border: 0 !important;
  color: var(--rf-text) !important;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--rf-t);
}
.CountSelector-module__changeCountBtn:hover { background: var(--rf-accent) !important; }

/* быстрые кнопки количества (добавляет theme.js) */
.rf-qty-presets { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.rf-qty-presets button {
  flex: 1;
  padding: 6px 8px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--rf-t);
}
.rf-qty-presets button:hover { border-color: var(--rf-accent); color: var(--rf-text); }
.rf-qty-presets button.rf-on {
  background: rgba(205, 65, 43, .16);
  border-color: var(--rf-accent);
  color: var(--rf-text);
}
.rf-qty-presets button:focus { outline: none; }
.rf-qty-presets button:focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 1px; }

/* Варианты товара / состав набора */
.ProductItemSelector-module__items {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.ProductItemSelector-module__item {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--rf-t);
}
.ProductItemSelector-module__item:hover { border-color: var(--rf-line-strong) !important; color: var(--rf-text) !important; }
.ProductItemSelector-module__item.ProductItemSelector-module__active {
  border-color: var(--rf-accent) !important;
  background: rgba(205, 65, 43, .12) !important;
  color: var(--rf-text) !important;
}
.ProductItemSelector-module__img { width: 52px !important; height: 52px !important; object-fit: contain; }

/* Состав набора (окно набора / кита) */
.KitContent-module__label,
.ItemContent-module__label {
  display: block;
  margin-bottom: 6px;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
  font-weight: 400 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.KitContent-module__containsItems {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}
.KitContent-module__containsItem {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t);
}
.KitContent-module__containsItem:hover { border-color: var(--rf-line-strong); }
/* у картинок loading=lazy и height:auto — до загрузки высота 0, задаём явно */
.KitContent-module__itemImg {
  order: 1;
  width: 100% !important;
  height: 64px !important;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5));
}
.KitContent-module__itemName {
  order: 2;
  position: static !important;
  width: 100% !important;
  padding: 0 !important;
  background: none !important;
  color: var(--rf-text-dim) !important;
  font-size: 12px !important;
  line-height: 1.3;
  text-align: center !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.KitContent-module__itemCount {
  position: absolute !important;
  top: 6px !important; right: 6px !important; left: auto !important; bottom: auto !important;
  padding: 2px 6px !important;
  background: rgba(0,0,0,.6) !important;
  border-radius: 3px;
  color: var(--rf-gold) !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
}
.KitContent-module__footer {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Выпадающий список (выбор сервера / варианта в окне товара) */
.Selector-module__dropDownCurrentItem {
  min-height: 44px;
  padding: 0 12px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  outline: none !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color var(--rf-t);
}
.Selector-module__dropDownCurrentItem:hover,
.Selector-module__dropDownCurrentItem:focus { border-color: var(--rf-accent) !important; }
.Selector-module__dropDownList {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-radius) !important;
  box-shadow: var(--rf-shadow) !important;
  padding: 6px !important;
}
.Selector-module__dropDownItem {
  color: var(--rf-text-dim) !important;
  border-radius: var(--rf-radius) !important;
}
.Selector-module__dropDownItem:hover,
.Selector-module__dropDownItem:focus,
.Selector-module__dropDownItem.Selector-module__active { background: var(--rf-panel-3) !important; color: var(--rf-text) !important; }
.Selector-module__icon { color: var(--rf-accent); }

.ProductModal-module__dropdown,
.SelectContent-module__selectorWrapper select,
.ProductModal-module__form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
}
.ProductModal-module__command {
  display: block;
  padding: 10px 12px;
  background: rgba(0,0,0,.35) !important;
  border: 1px dashed var(--rf-line-strong);
  border-radius: var(--rf-radius);
  color: var(--rf-gold) !important;
  font-family: Consolas, "Courier New", monospace;
}
.productModalProductAvailability,
.productModalGiveText {
  display: block;
  margin-top: 12px;
  padding: 10px 12px 10px 36px;
  position: relative;
  background: rgba(79, 143, 192, .08);
  border: 1px solid rgba(79, 143, 192, .25);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim) !important;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.productModalProductAvailability::before,
.productModalGiveText::before {
  content: "i";
  position: absolute;
  left: 11px; top: 10px;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rf-blue);
  color: #fff;
  font: 700 11px/1 Georgia, serif;
}
.ItemContent-module__footer,
.SelectContent-module__footer {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.rf-modal-total {
  margin-right: auto;
  font-family: var(--rf-font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--rf-text);
}
.rf-modal-total b { color: var(--rf-green-hi); }

.rf-modal-close {
  position: absolute;
  top: 9px; right: 10px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--rf-t);
}
.rf-modal-close:hover { background: var(--rf-accent); border-color: var(--rf-accent); color: #fff; }

/* 8b. Окна: единый размер, по центру, две колонки --------------------------------
   Все окна (товар, набор, пополнение баланса) одного размера: --rf-modal-w × --rf-modal-h.
   Слева — содержимое (картинка / состав / текущий баланс), справа — панель действия. */
:root {
  --rf-modal-w: 1000px;     /* ширина окна */
  --rf-modal-h: 600px;      /* высота окна */
  --rf-modal-side: 330px;   /* ширина правой панели */
}

/* по центру экрана (safe — если окно выше экрана, верх не обрезается) */
.ModalLayout-module__positionWrapper { align-items: safe center !important; }

.ModalLayout-module__modal {
  width: min(var(--rf-modal-w), calc(100vw - 40px)) !important;
  max-width: none !important;
  min-height: min(var(--rf-modal-h), calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  display: flex !important;
  flex-direction: column;
  background:
    radial-gradient(900px 300px at 0 0, rgba(205, 65, 43, .07), transparent 70%),
    var(--rf-panel) !important;
}
/* у известных окон высота фиксированная — все одинаковые */
.ModalLayout-module__modal:is(.ProductModal-module__item, .ProductModal-module__set, .PlayerBalance-module__modal) {
  height: min(var(--rf-modal-h), calc(100vh - 40px));
}
.ModalLayout-module__modal > section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* шапка */
.ModalLayout-module__modal > .boxHeader,
.ModalLayout-module__modal > section > .boxHeader {
  position: relative;
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 16px 60px 16px 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent) !important;
  border-bottom: 1px solid var(--rf-line) !important;
  font-size: 20px !important;
  letter-spacing: .06em;
}
.ModalLayout-module__modal > .boxHeader::before,
.ModalLayout-module__modal > section > .boxHeader::before {      /* «опасная» полоска, как в подвале */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: repeating-linear-gradient(135deg, var(--rf-accent) 0 10px, transparent 10px 20px);
  opacity: .55;
  pointer-events: none;
}
.ModalLayout-module__modal > .rf-modal-close { top: 13px; right: 14px; }

/* тело */
.ModalLayout-module__modal > .boxBody,
.ModalLayout-module__modal > section > .boxBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent;
  padding: 22px !important;
}

/* подвал */
.ModalLayout-module__modal > .boxFooter,
.ModalLayout-module__modal > section > .boxFooter {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 !important;
  padding: 14px 22px !important;
  background: rgba(0, 0, 0, .25) !important;
  border-top: 1px solid var(--rf-line) !important;
}
.ModalLayout-module__modal .boxFooter .rf-modal-total { font-size: 20px; }
.ModalLayout-module__modal .boxFooter .Button-module__btn { min-width: 140px; height: 44px; }

/* --- Правая панель действия (общий вид) --- */
:is(.ProductModal-module__set, .ProductModal-module__item) > .boxBody > .ProductModal-module__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
}
:is(.ProductModal-module__set, .ProductModal-module__item) .productModalFormRow { flex-direction: column; gap: 16px; margin: 0 !important; }
:is(.ProductModal-module__set, .ProductModal-module__item) .productModalFormRowItem { flex: 0 0 auto; width: 100%; margin: 0 !important; }
:is(.ProductModal-module__set, .ProductModal-module__item) .rf-qty-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
:is(.ProductModal-module__set, .ProductModal-module__item) > .boxBody > .productModalGiveText { margin-top: 12px; }

/* --- Окно товара: слева витрина с картинкой, справа покупка --- */
.ProductModal-module__item > .boxBody {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--rf-modal-side);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 24px;
}
.ProductModal-module__item > .boxBody > * { grid-column: 1; min-width: 0; }
.ProductModal-module__item > .boxBody > .productModalImg { grid-row: 1; }
.ProductModal-module__item > .boxBody:not(:has(> .productModalDescription)) > .productModalImg { grid-row: 1 / -1; }
/* без описания: подсказка сразу под панелью покупки, без пустого промежутка */
.ProductModal-module__item > .boxBody:not(:has(> .productModalDescription)) { grid-template-rows: auto minmax(0, 1fr); }
.ProductModal-module__item > .boxBody > .productModalDescription { grid-row: 2; margin: 14px 0 0 !important; }
.ProductModal-module__item > .boxBody > .ProductModal-module__form { grid-column: 2; grid-row: 1; align-self: start; }
.ProductModal-module__item > .boxBody > .productModalGiveText { grid-column: 2; grid-row: 2; align-self: start; }
.ProductModal-module__item .productModalImg {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 240px;
  max-height: none !important;
  margin: 0 !important;
  padding: 40px;
  box-sizing: border-box;
  object-fit: contain;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(205, 65, 43, .16), transparent 75%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 12px),
    rgba(0, 0, 0, .22);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  filter: none !important;
}

/* --- Окно набора: слева состав, справа покупка --- */
.ProductModal-module__set > .boxBody {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--rf-modal-side);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 24px;
  align-items: start;
}
.ProductModal-module__set > .boxBody > * { grid-column: 1; min-width: 0; }
.ProductModal-module__set > .boxBody > .rf-kit-head { grid-row: 1; }
.ProductModal-module__set > .boxBody > .KitContent-module__containsItems { grid-row: 2 / -1; }
.ProductModal-module__set > .boxBody > .ProductModal-module__form { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 0; }
.ProductModal-module__set > .boxBody > .productModalGiveText { grid-column: 2; grid-row: 3; }

/* заголовок состава (добавляет theme.js) */
.rf-kit-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--rf-muted);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-kit-head b {
  padding: 2px 8px;
  background: rgba(205, 65, 43, .14);
  border: 1px solid rgba(205, 65, 43, .35);
  border-radius: 999px;
  color: var(--rf-text);
  font-weight: 600;
  letter-spacing: .06em;
}

/* сетка предметов: без своей прокрутки */
.ProductModal-module__set .KitContent-module__containsItems {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 8px !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ProductModal-module__set .KitContent-module__containsItem {
  position: relative;
  gap: 6px;
  padding: 12px 8px 10px !important;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(255, 255, 255, .06), transparent 70%),
    var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line);
  transition: border-color var(--rf-t), background-color var(--rf-t);
}
.ProductModal-module__set .KitContent-module__containsItem:hover {
  border-color: rgba(205, 65, 43, .55);
  background-color: var(--rf-panel-3) !important;
}
.ProductModal-module__set .KitContent-module__itemImg { height: 58px !important; }
.ProductModal-module__set .KitContent-module__itemName { font-size: 12px !important; color: var(--rf-text-dim) !important; }
.ProductModal-module__set .KitContent-module__containsItem:hover .KitContent-module__itemName { color: var(--rf-text) !important; }
.ProductModal-module__set .KitContent-module__itemCount {
  top: 6px !important; right: 6px !important;
  padding: 1px 6px !important;
  background: rgba(217, 164, 65, .12) !important;
  border: 1px solid rgba(217, 164, 65, .35);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* --- Окно пополнения: слева текущий баланс, справа сумма --- */
.PlayerBalance-module__modal > section > .boxBody { display: flex; flex-direction: column; }
.PlayerBalance-module__modal .PlayerBalanceModal-module__form {
  flex: 1 1 auto;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--rf-modal-side);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 24px;
  align-content: stretch;
}
.PlayerBalance-module__modal .PlayerBalanceModal-module__form > * { grid-column: 2; min-width: 0; }
.PlayerBalance-module__modal .PlayerBalanceModal-module__form > .rf-topup-current {
  grid-column: 1;
  grid-row: 1 / -1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 32px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(133, 168, 56, .22), transparent 70%),
    radial-gradient(300px 200px at 0% 100%, rgba(205, 65, 43, .08), transparent 70%),
    var(--rf-panel-2);
  border-radius: var(--rf-radius-lg);
}
.PlayerBalance-module__modal .rf-topup-current::after {          /* крупная «карта» на фоне */
  content: "";
  position: absolute;
  right: -36px; bottom: -64px;
  width: 260px; height: 260px;
  background: var(--rf-green-hi);
  opacity: .06;
  transform: rotate(-14deg);       /* наклон — видно, что это декор, а не обрезанный блок */
  -webkit-mask: var(--rf-i-card) center / contain no-repeat; mask: var(--rf-i-card) center / contain no-repeat;
  pointer-events: none;
}
.PlayerBalance-module__modal .rf-topup-current span { font-size: 13px; }
.PlayerBalance-module__modal .rf-topup-current b { font-size: 46px; line-height: 1.05; letter-spacing: .01em; }
/* правая панель — такая же плашка, как у формы покупки товара (фон рисует ::before) */
.PlayerBalance-module__modal .PlayerBalanceModal-module__form:has(> .rf-topup-current)::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / 4;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
}
.PlayerBalance-module__modal .PlayerBalanceModal-module__form:has(> .rf-topup-current) > :is(.PlayerBalanceModal-module__label, .PlayerBalanceModal-module__inputWrapper, .rf-topup-presets) {
  position: relative;
  z-index: 1;
  width: auto !important;
  box-sizing: border-box;
  margin-left: 16px !important;
  margin-right: 16px !important;
}
.PlayerBalance-module__modal .PlayerBalanceModal-module__label { grid-row: 1; margin-top: 16px !important; }
.PlayerBalance-module__modal .PlayerBalanceModal-module__inputWrapper { grid-row: 2; }
.PlayerBalance-module__modal .rf-topup-presets { grid-row: 3; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); margin-bottom: 16px; }
.PlayerBalance-module__modal .rf-topup-note { grid-row: 4; align-self: start; margin-top: 12px; }
/* кнопки как у окна товара: справа, одинаковой ширины */
.PlayerBalance-module__modal .PlayerBalanceModal-module__footer .Button-module__accent { flex: 0 0 auto !important; min-width: 180px; }
/* если текущий баланс не найден — одна колонка по центру */
.PlayerBalance-module__modal .PlayerBalanceModal-module__form:not(:has(> .rf-topup-current)) {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}
.PlayerBalance-module__modal .PlayerBalanceModal-module__form:not(:has(> .rf-topup-current)) > * { grid-column: 1; }

/* --- Планшеты и телефоны: одна колонка, высота по содержимому --- */
@media (max-width: 900px) {
  .ModalLayout-module__modal,
  .ModalLayout-module__modal:is(.ProductModal-module__item, .ProductModal-module__set, .PlayerBalance-module__modal) {
    height: auto;
    min-height: 0;
  }
  :is(.ProductModal-module__set, .ProductModal-module__item) > .boxBody,
  .PlayerBalance-module__modal .PlayerBalanceModal-module__form {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
  }
  :is(.ProductModal-module__set, .ProductModal-module__item) > .boxBody > *,
  .PlayerBalance-module__modal .PlayerBalanceModal-module__form > * { grid-column: 1 !important; grid-row: auto !important; }
  .ProductModal-module__set > .boxBody > .ProductModal-module__form { position: static; margin-top: 16px; }
  .ProductModal-module__item > .boxBody > .ProductModal-module__form { margin-top: 16px; }
  .ProductModal-module__item .productModalImg { height: 200px !important; min-height: 0; padding: 24px; }
  .ProductModal-module__set .KitContent-module__containsItems { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important; }
  /* длинные слова («Металлические») не обрезаем посередине — чуть мельче и с переносом */
  .ProductModal-module__set .KitContent-module__itemName { font-size: 11px !important; overflow-wrap: anywhere; hyphens: auto; text-overflow: clip !important; }
  .PlayerBalance-module__modal .PlayerBalanceModal-module__form > .rf-topup-current { padding: 18px 20px; margin-bottom: 16px; }
  .PlayerBalance-module__modal .rf-topup-current b { font-size: 32px; }
  .PlayerBalance-module__modal .PlayerBalanceModal-module__form::before { display: none; }
  .PlayerBalance-module__modal .PlayerBalanceModal-module__form > * { margin-left: 0 !important; margin-right: 0 !important; }
  .PlayerBalance-module__modal .PlayerBalanceModal-module__label { margin-top: 0 !important; }
}
@media (max-width: 640px) {
  .ModalLayout-module__modal { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px); }
  .ModalLayout-module__modal > .boxHeader,
  .ModalLayout-module__modal > section > .boxHeader { font-size: 17px !important; padding: 14px 54px 14px 16px !important; }
  .ModalLayout-module__modal > .boxBody,
  .ModalLayout-module__modal > section > .boxBody { padding: 16px !important; }
  .ModalLayout-module__modal > .boxFooter,
  .ModalLayout-module__modal > section > .boxFooter { padding: 12px 16px !important; }
  .ModalLayout-module__modal .boxFooter .Button-module__btn { min-width: 0 !important; flex: 1 1 0 !important; }
}

/* Окно выбора основного сервера */
.WelcomeSelectServer-module__header { font-family: var(--rf-font-head) !important; }
.WelcomeSelectServer-module__description { color: var(--rf-text-dim) !important; line-height: 1.6; }
.WelcomeSelectServer-module__servers { display: flex; flex-direction: column; gap: 8px; }
.Server-module__server {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t);
}
.Server-module__server:hover { border-color: var(--rf-accent) !important; }
/* Платформа ставит на название инлайн max-width, посчитанный до отрисовки окна
   (часто 0px) — из-за этого названия серверов были пустыми */
.Server-module__serverName {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  text-align: left;
  font-family: var(--rf-font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rf-text) !important;
}

/* 9. Кнопки, поля, таблицы --------------------------------------------------- */
.Button-module__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px !important;
  border: 1px solid transparent !important;
  border-radius: var(--rf-radius) !important;
  font-family: var(--rf-font-head) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--rf-t), transform var(--rf-t), box-shadow var(--rf-t), color var(--rf-t);
}
.Button-module__btn:active { transform: translateY(1px); }
.Button-module__btn:disabled { opacity: .5; cursor: not-allowed; }

.Button-module__accent {
  background: var(--rf-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px var(--rf-accent-glow);
}
.Button-module__accent:hover { background: var(--rf-accent-hi) !important; }

.Button-module__gray,
.Button-module__btn:not(.Button-module__accent):not([class*="green"]) {
  background: var(--rf-panel-3) !important;
  border-color: var(--rf-line) !important;
  color: var(--rf-text-dim) !important;
}
.Button-module__gray:hover { color: var(--rf-text) !important; border-color: var(--rf-line-strong) !important; }

[class*="Button-module__green"],
[class*="Button-module__success"] {
  background: var(--rf-green) !important;
  color: #fff !important;
}

/* Поля в профиле, корзине, промокоде и т.п. */
#root input[type="text"]:not([class*="module__input"]),
#root input[type="number"]:not([class*="module__input"]),
#root input[type="email"],
#root textarea,
#root select:not(.rf-sort) {
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
  padding: 10px 12px;
  font-family: var(--rf-font-body);
  outline: none;
  transition: border-color var(--rf-t);
}
#root input:focus,
#root textarea:focus,
#root select:focus { border-color: var(--rf-accent) !important; }

/* Таблицы (история покупок, пополнения, топ) */
#root table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
#root th {
  padding: 10px 12px;
  background: rgba(0,0,0,.3);
  color: var(--rf-muted);
  font-family: var(--rf-font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--rf-line);
}
#root td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rf-line);
  color: var(--rf-text-dim);
}
#root tr:hover td { background: rgba(255,255,255,.025); color: var(--rf-text); }

/* 10. Статичные страницы ------------------------------------------------------ */
.Page-module__wrapper .boxBody { padding: 22px 26px !important; line-height: 1.7; color: var(--rf-text-dim); }
.Page-module__wrapper .boxBody h1,
.Page-module__wrapper .boxBody h2,
.Page-module__wrapper .boxBody h3,
.Page-module__wrapper .boxBody h4 {
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 1.6em 0 .6em;
}
.Page-module__wrapper .boxBody h1 { font-size: 30px; }
.Page-module__wrapper .boxBody h2 { font-size: 24px; }
.Page-module__wrapper .boxBody h3 { font-size: 19px; }
.Page-module__wrapper .boxBody > *:first-child,
.Page-module__wrapper .boxBody > div > *:first-child { margin-top: 0; }
.Page-module__wrapper .boxBody p { margin: 0 0 1em; }
/* ссылки в тексте страниц (кнопки .rf-btn и кнопки платформы не трогаем) */
.Page-module__wrapper .boxBody a:not(.rf-btn):not([class*="Button-module"]) { color: var(--rf-accent-hi) !important; border-bottom: 1px dashed currentColor; }
.Page-module__wrapper .boxBody a:not(.rf-btn):not([class*="Button-module"]):hover { color: var(--rf-text) !important; }
/* виджеты Rust Admin: общие стили ссылок и списков страницы на них не действуют */
.Page-module__wrapper .boxBody .rf-ra a:not(.rf-btn) { color: var(--rf-text) !important; border-bottom: 0; }
.Page-module__wrapper .boxBody .rf-ra a:not(.rf-btn):hover { color: var(--rf-accent-hi) !important; }
.Page-module__wrapper .boxBody .rf-ra .rf-ra-list { margin: 0; padding: 0; }
.Page-module__wrapper .boxBody .rf-ra .rf-ra-list > li { margin: 0; }
.Page-module__wrapper .boxBody .rf-ra .rf-ra-list > li::marker { content: none; }
.Page-module__wrapper .boxBody ul,
.Page-module__wrapper .boxBody ol { padding-left: 1.3em; margin: 0 0 1em; }
.Page-module__wrapper .boxBody li { margin-bottom: .35em; }
.Page-module__wrapper .boxBody li::marker { color: var(--rf-accent); }
.Page-module__wrapper .boxBody code {
  padding: 2px 6px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--rf-line);
  border-radius: 3px;
  color: var(--rf-gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
}
.Page-module__wrapper .boxBody hr { border: 0; height: 1px; background: var(--rf-line-strong); margin: 24px 0; }
.Page-module__wrapper .boxBody img { max-width: 100%; border-radius: var(--rf-radius); }
.Page-module__wrapper .boxBody blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-left: 3px solid var(--rf-accent);
  background: rgba(205,65,43,.06);
  color: var(--rf-text);
}

/* 11. Блоки theme.js ------------------------------------------------------------ */

/* Бегущая строка-объявление над шапкой */
.rf-announce {
  position: relative;
  z-index: 1;                    /* ниже #root (z 1, дальше по DOM): открытое мобильное меню перекрывает строку */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 44px 8px 16px;
  background: linear-gradient(90deg, var(--rf-accent), #8f2a1b);
  color: #fff;
  font-family: var(--rf-font-head);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
}
.rf-announce__track { display: flex; gap: 60px; white-space: nowrap; animation: rf-marquee 30s linear infinite; }
.rf-announce:hover .rf-announce__track { animation-play-state: paused; }
/* бегущий текст плавно уходит под крестик, а не проезжает поверх него */
.rf-announce::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 84px;
  background: linear-gradient(90deg, rgba(143, 42, 27, 0), #8f2a1b 55%);
  pointer-events: none;
}
.rf-announce__close {
  position: absolute; right: 8px; top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: rgba(0,0,0,.2);
  border: 0; border-radius: var(--rf-radius);
  color: #fff; font-size: 16px;
  cursor: pointer;
}
.rf-announce a { color: #fff !important; text-decoration: underline !important; }

/* Полоса соцсетей + онлайн */
.rf-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--rf-container);
  margin: 12px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.rf-online-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rf-online-total b { color: var(--rf-green-hi); font-size: 16px; }
.rf-online-total::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rf-green-hi);
  animation: rf-pulse 2s infinite;
}
.rf-socials { display: flex; gap: 6px; margin-left: auto; }
.rf-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  background: var(--rf-panel);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--rf-t);
}
.rf-social svg { width: 16px; height: 16px; fill: currentColor; }
.rf-social:hover { color: #fff !important; }
.rf-social--discord:hover  { background: #5865f2; border-color: #5865f2; }
.rf-social--telegram:hover { background: #229ed9; border-color: #229ed9; }
.rf-social--vk:hover       { background: #0077ff; border-color: #0077ff; }
.rf-social--youtube:hover  { background: #e62117; border-color: #e62117; }
.rf-social--steam:hover    { background: #1b2838; border-color: #66c0f4; }
.rf-social.is-disabled { opacity: .4; pointer-events: none; }

/* HERO на главной */
.rf-hero {
  position: relative;
  max-width: var(--rf-container);
  margin: 16px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.rf-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 340px;
  padding: 40px 44px;
  background:
    linear-gradient(90deg, rgba(17,17,16,.97) 0%, rgba(17,17,16,.85) 45%, rgba(17,17,16,.2) 100%),
    var(--rf-hero-image, none) center / cover no-repeat,
    var(--rf-panel);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  overflow: hidden;
  box-shadow: var(--rf-shadow);
}
.rf-hero__inner::before { /* полоса предупреждения сверху */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--rf-gold) 0 14px, #1a1a1a 14px 28px);
  opacity: .85;
}
.rf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rf-accent-hi);
  font-family: var(--rf-font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rf-hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.rf-hero__title {
  margin: 0 0 14px;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.rf-hero__title span { color: var(--rf-accent); text-shadow: 0 0 30px var(--rf-accent-glow); }
.rf-hero__text { max-width: 520px; margin: 0 0 24px; color: var(--rf-text-dim); font-size: 16px; line-height: 1.6; }
.rf-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rf-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.rf-hero__tag {
  padding: 5px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rf-line);
  border-radius: 3px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rf-hero__side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; justify-self: end; width: 100%; max-width: 360px; }

/* Универсальная кнопка темы */
.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--rf-radius);
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rf-t);
  text-decoration: none !important;
}
.rf-btn--accent { background: var(--rf-accent); color: #fff !important; box-shadow: 0 6px 20px var(--rf-accent-glow); }
#root .rf-btn.rf-btn--accent, #root .rf-btn.rf-btn--green { color: #fff !important; }
#root .rf-btn.rf-btn--ghost { color: var(--rf-text) !important; }
.rf-btn--accent:hover { background: var(--rf-accent-hi); box-shadow: 0 6px 24px rgba(205, 65, 43, .5); }
.rf-btn--ghost { background: rgba(255,255,255,.04); border-color: var(--rf-line-strong); color: var(--rf-text) !important; }
.rf-btn--ghost:hover { border-color: var(--rf-text-dim); background: rgba(255,255,255,.08); }
.rf-btn--green { background: var(--rf-green); color: #fff !important; }
.rf-btn--green:hover { background: var(--rf-green-hi); }
.rf-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* Карточка таймера вайпа (hero и виджет) */
.rf-timer {
  display: flex;                   /* если блок растянут соседом (страница «Вайп») — содержимое по центру */
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-radius-lg);
  backdrop-filter: blur(4px);
}
.rf-timer__label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  color: var(--rf-muted);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-timer__label { flex-wrap: wrap; gap: 2px 10px; }
.rf-timer__label em { font-style: normal; color: var(--rf-gold); white-space: nowrap; }
.rf-timer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rf-timer__cell {
  padding: 8px 4px 6px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  text-align: center;
}
.rf-timer__num {
  display: block;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.rf-timer__unit { color: var(--rf-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.rf-timer.is-live .rf-timer__num { color: var(--rf-green-hi); }

/* Инструменты каталога: счётчик, избранное, сортировка */
.rf-catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
}
.rf-results { color: var(--rf-muted); font-size: 13px; }
.rf-results b { color: var(--rf-text); }
.rf-tools-right { display: flex; gap: 8px; align-items: center; }
.rf-fav-toggle,
.rf-sort {
  height: 36px;
  padding: 0 12px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rf-t);
}
.rf-fav-toggle { display: inline-flex; align-items: center; gap: 6px; }
.rf-fav-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.rf-fav-toggle:hover,
.rf-sort:hover { color: var(--rf-text); border-color: var(--rf-line-strong); }
.rf-fav-toggle.is-active { color: var(--rf-gold); border-color: var(--rf-gold); }
.rf-fav-toggle.is-active svg { fill: currentColor; }
.rf-sort option { background: var(--rf-panel); color: var(--rf-text); }

/* Звезда избранного на карточке */
.rf-fav {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--rf-line);
  border-radius: 50%;
  color: var(--rf-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--rf-t);
}
.rf-fav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.Product-module__wrapper:hover .rf-fav,
.rf-fav.is-active,
.rf-fav:focus-visible { opacity: 1; }
.rf-fav:hover { color: var(--rf-gold); transform: scale(1.1); }
.rf-fav.is-active { color: var(--rf-gold); border-color: rgba(217,164,65,.5); }
.rf-fav.is-active svg { fill: currentColor; }

/* Ярлыки HIT / NEW / VIP на карточке */
.rf-badge {
  position: absolute;
  left: 10px; top: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--rf-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #111;
  background: var(--rf-gold);
}
.Product-module__discount ~ .rf-badge { top: 38px; }  /* под плашкой скидки */
.rf-badge--new { background: var(--rf-green-hi); color: #fff; }
.rf-badge--hit { background: var(--rf-accent); color: #fff; }

.rf-hidden { display: none !important; }

.rf-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed var(--rf-line-strong);
  border-radius: var(--rf-radius-lg);
  color: var(--rf-muted);
  text-align: center;
  font-family: var(--rf-font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Кнопка «наверх» */
.rf-to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--rf-accent);
  border: 0;
  border-radius: var(--rf-radius);
  color: #fff;
  box-shadow: 0 8px 20px var(--rf-accent-glow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--rf-t);
}
.rf-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.rf-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* Тосты темы (копирование и т.п.) */
.rf-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 9999;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: var(--rf-panel);
  border: 1px solid var(--rf-green);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  letter-spacing: .04em;
  box-shadow: var(--rf-shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .25s var(--rf-ease);
}
.rf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Искры (эмберы) на фоне */
.rf-embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.rf-embers i {
  position: absolute;
  bottom: -10px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 6px 2px rgba(255, 110, 40, .6);
  opacity: 0;
  animation: rf-ember linear infinite;
}
#root { position: relative; z-index: 1; }

/* 12. Виджеты для статичных страниц (rf-w-*) -------------------------------- */

/* Шапка документа */
.rf-w-head { margin-bottom: 22px; }
.rf-w-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--rf-accent-hi);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rf-w-head h1, .rf-w-head h2 { margin: 0 0 8px !important; }
.rf-w-lead { font-size: 16px; color: var(--rf-text-dim); }

/* Плашки-уведомления */
.rf-w-note {
  position: relative;
  margin: 0 0 16px;
  padding: 14px 16px 14px 46px;
  border-radius: var(--rf-radius);
  border: 1px solid rgba(79,143,192,.3);
  background: rgba(79,143,192,.08);
  color: var(--rf-text);
}
.rf-w-note::before {
  content: "i";
  position: absolute; left: 14px; top: 14px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rf-blue);
  color: #fff;
  font: 700 13px/1 Georgia, serif;
}
.rf-w-note--warn   { border-color: rgba(217,164,65,.35); background: rgba(217,164,65,.08); }
.rf-w-note--warn::before   { content: "!"; background: var(--rf-gold); color: #111; font-family: var(--rf-font-head); }
.rf-w-note--danger { border-color: rgba(194,59,59,.4); background: rgba(194,59,59,.09); }
.rf-w-note--danger::before { content: "×"; background: var(--rf-danger); font-family: var(--rf-font-body); }
.rf-w-note--ok     { border-color: rgba(111,143,46,.4); background: rgba(111,143,46,.1); }
.rf-w-note--ok::before     { content: "✓"; background: var(--rf-green); font-family: var(--rf-font-body); }

/* Пронумерованные правила */
.rf-w-rules { counter-reset: rf-rule; display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; padding: 0 !important; list-style: none; }
.rf-w-rules > li {
  counter-increment: rf-rule;
  position: relative;
  margin: 0 !important;
  padding: 12px 14px 12px 64px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
}
.rf-w-rules > li::before {
  content: attr(data-num);
  position: absolute;
  left: 12px; top: 12px;
  min-width: 38px;
  padding: 2px 0;
  background: rgba(205,65,43,.15);
  border: 1px solid rgba(205,65,43,.4);
  border-radius: 3px;
  color: var(--rf-accent-hi);
  font-family: var(--rf-font-head);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.rf-w-rules > li:not([data-num])::before { content: counter(rf-rule); }
.rf-w-rules > li b,
.rf-w-rules > li strong { color: var(--rf-text); }
.rf-w-punish {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(194,59,59,.14);
  border-radius: 3px;
  color: #f08a7a;
  font-size: 12px;
  font-family: var(--rf-font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Аккордеон (на нативных <details>, работает без JS) */
.rf-w-accordion { display: flex; flex-direction: column; gap: 8px; margin: 0 0 22px; }
.rf-w-accordion details {
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  overflow: hidden;
  transition: border-color var(--rf-t);
}
.rf-w-accordion details[open] { border-color: rgba(205,65,43,.45); }
.rf-w-accordion summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.rf-w-accordion summary::-webkit-details-marker { display: none; }
.rf-w-accordion summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--rf-accent);
  font-size: 22px;
  transition: transform var(--rf-t);
}
.rf-w-accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.rf-w-accordion .rf-w-accordion__body { padding: 0 16px 14px; color: var(--rf-text-dim); }

/* Вкладки (data-rf="tabs") */
.rf-w-tabs { margin: 0 0 22px; }
.rf-w-tabs__nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--rf-line); margin-bottom: 14px; }
.rf-w-tabs__btn {
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--rf-t);
}
.rf-w-tabs__btn:hover { color: var(--rf-text); }
.rf-w-tabs__btn.is-active { color: var(--rf-text); border-bottom-color: var(--rf-accent); }
.rf-w-tabs [data-tab]:not(.is-active) { display: none; }
/* без JS показываем все вкладки подряд */
.rf-w-tabs:not(.is-ready) [data-tab] { display: block; }

/* Карточки серверов с кнопкой копирования IP */
.rf-w-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 22px; }
.rf-w-server {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  transition: border-color var(--rf-t), transform var(--rf-t);
}
.rf-w-server:hover { border-color: rgba(205,65,43,.45); }
.rf-w-server h3 { margin: 0 !important; font-size: 17px !important; }
.rf-w-server__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-w-server__meta span {
  padding: 3px 8px;
  background: rgba(255,255,255,.05);
  border-radius: 3px;
  font-size: 12px;
  color: var(--rf-text-dim);
}
.rf-w-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: rgba(0,0,0,.4);
  border: 1px dashed var(--rf-line-strong);
  border-radius: var(--rf-radius);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--rf-gold);
  cursor: pointer;
  transition: border-color var(--rf-t);
}
.rf-w-copy::after { flex: 0 0 auto; }
.rf-w-copy:hover { border-color: var(--rf-gold); }
.rf-w-copy::after {
  content: "КОПИРОВАТЬ";
  padding: 4px 8px;
  background: var(--rf-panel-3);
  border-radius: 3px;
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 11px;
  letter-spacing: .06em;
}
.rf-w-copy.is-copied::after { content: "СКОПИРОВАНО"; background: var(--rf-green); color: #fff; }

/* Сравнение привилегий */
.rf-w-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 22px; }
.rf-w-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 18px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
}
.rf-w-plan--featured { border-color: var(--rf-gold); box-shadow: 0 0 0 1px rgba(217,164,65,.3), 0 12px 30px rgba(0,0,0,.4); }
.rf-w-plan--featured::before {
  content: attr(data-label);
  position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: var(--rf-gold);
  border-radius: 3px;
  color: #111;
  font-family: var(--rf-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  white-space: nowrap;
}
.rf-w-plan h3 { margin: 0 0 4px !important; text-align: center; }
.rf-w-plan__price { margin-bottom: 14px; text-align: center; color: var(--rf-green-hi); font-family: var(--rf-font-head); font-size: 28px; font-weight: 600; }
.rf-w-plan__price small { color: var(--rf-muted); font-size: 13px; font-weight: 400; }
.rf-w-plan ul { flex: 1; list-style: none; padding: 0 !important; margin: 0 0 16px !important; }
.rf-w-plan li { position: relative; padding: 6px 0 6px 24px; border-bottom: 1px solid var(--rf-line); font-size: 14px; }
.rf-w-plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--rf-green-hi); font-weight: 700; }
.rf-w-plan li.is-off { color: var(--rf-muted); text-decoration: line-through; }
.rf-w-plan li.is-off::before { content: "×"; color: var(--rf-muted); }

/* Шаги (как начать играть) */
.rf-w-steps { counter-reset: rf-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0 !important; list-style: none; }
.rf-w-steps > li {
  counter-increment: rf-step;
  position: relative;
  margin: 0 !important;
  padding: 44px 16px 16px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
}
.rf-w-steps > li::before {
  content: counter(rf-step, decimal-leading-zero);
  position: absolute; left: 16px; top: 12px;
  color: var(--rf-accent);
  font-family: var(--rf-font-head);
  font-size: 22px;
  font-weight: 700;
}
.rf-w-steps > li b { display: block; margin-bottom: 4px; color: var(--rf-text); font-family: var(--rf-font-head); text-transform: uppercase; letter-spacing: .04em; }

/* Таблица-расписание */
.rf-w-table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); }

/* Таймер в странице */
.rf-w-timer-block { max-width: 420px; margin: 0 0 22px; }

/* Счётчик онлайна в странице */
.rf-w-online {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 10px 16px;
  background: rgba(111,143,46,.12);
  border: 1px solid rgba(111,143,46,.4);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rf-w-online b { color: var(--rf-green-hi); font-size: 22px; }

/* Две колонки контента */
.rf-w-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 22px; }
.rf-w-card {
  padding: 16px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
}
.rf-w-card h3 { margin-top: 0 !important; }

/* 12b. Кабинет игрока: баланс, профиль, корзина, история, пополнение ----------------- */

/* Иконки (линии, для mask-image). Чтобы заменить иконку — поменяйте path d='…' */
:root {
  --rf-i-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h15a3 3 0 013 3v8a2 2 0 01-2 2H5a2 2 0 01-2-2zM3 7l2-3h11l2 3M16 13.5h2'/%3E%3C/svg%3E");
  --rf-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
  --rf-i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5L12 3l9 4.5v9L12 21l-9-4.5zM3 7.5L12 12l9-4.5M12 12v9'/%3E%3C/svg%3E");
  --rf-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 100 18 9 9 0 000-18zM12 7v5l3 2'/%3E%3C/svg%3E");
  --rf-i-exit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E");
  --rf-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --rf-i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 10h18M7 15h3'/%3E%3C/svg%3E");
  --rf-i-plus-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* --- Кнопки в шапке --- */
.PlayerBalance-module__wrapper { background: none !important; padding: 0 !important; }
.PlayerBalance-module__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 10px 0 14px !important;
  background: linear-gradient(180deg, var(--rf-green-hi) 0%, var(--rf-green) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: var(--rf-radius) !important;
  box-shadow: 0 4px 16px rgba(111, 143, 46, .3), inset 0 1px 0 rgba(255, 255, 255, .15);
  color: #fff !important;
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  transition: filter var(--rf-t), box-shadow var(--rf-t);
}
.PlayerBalance-module__btn::before {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--rf-i-wallet) center / contain no-repeat; mask: var(--rf-i-wallet) center / contain no-repeat;
}
.PlayerBalance-module__btn::after {             /* значок «+» — подсказка, что можно пополнить */
  content: "";
  width: 24px; height: 24px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: rgba(0, 0, 0, .22) center / 14px no-repeat;
  background-image: var(--rf-i-plus-white);
}
.PlayerBalance-module__btn:hover,
.PlayerBalance-module__btn:focus-visible {
  background: linear-gradient(180deg, #93b83f 0%, var(--rf-green-hi) 100%) !important;   /* зелёный, без красного */
  box-shadow: 0 6px 22px rgba(133, 168, 56, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff !important;
}

.PlayerMenu-module__profileLink,
.PlayerMenuMobile-module__profileLink {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  transition: border-color var(--rf-t), background var(--rf-t);
}
.PlayerMenu-module__profileLink::before,
.PlayerMenuMobile-module__profileLink::before {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--rf-i-user) center / contain no-repeat; mask: var(--rf-i-user) center / contain no-repeat;
}
.PlayerMenu-module__profileLink:hover,
.PlayerMenu-module__profileLink:focus-visible,
.PlayerMenuMobile-module__profileLink:hover {
  background: var(--rf-panel-3) !important;
  border-color: var(--rf-line-strong) !important;
  color: var(--rf-text) !important;
}

/* в мобильном меню кнопки на всю ширину */
.PlayerMenuMobile-module__playerMenu .PlayerBalance-module__wrapper,
.PlayerMenuMobile-module__playerMenu .PlayerBalance-module__btn,
.PlayerMenuMobile-module__playerMenu [class*="profileLink"] { width: 100% !important; justify-content: center; box-sizing: border-box; }

/* --- Раскладка профиля: меню слева, содержимое справа --- */
main.container:has(> .ProfileNav-module__wrapper) {
  display: grid !important;
  grid-template-columns: var(--rf-sidebar) minmax(0, 1fr) !important;
  gap: var(--rf-gap) !important;
  align-items: start;
}
main.container > .ProfileNav-module__wrapper { min-width: 0 !important; max-width: none !important; }
main.container:has(> .ProfileNav-module__rightSide) { grid-template-columns: minmax(0, 1fr) var(--rf-sidebar) !important; }
main.container > .ProfileNav-module__rightSide { order: 2; }

/* карточка игрока */
.ProfileNav-module__header {
  flex-direction: column !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 26px 18px 20px !important;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(205, 65, 43, .22), transparent 70%),
    rgba(0, 0, 0, .25) !important;
  text-transform: none !important;
}
.ProfileNav-module__header::before { display: none !important; }
.ProfileNav-module__img {
  width: 112px !important;
  height: 112px !important;
  margin: 0 !important;
  object-fit: cover;
  border-radius: var(--rf-radius-lg);
  border: 2px solid var(--rf-accent);
  box-shadow: 0 0 0 4px rgba(205, 65, 43, .15), 0 10px 26px rgba(0, 0, 0, .5);
}
.ProfileNav-module__name {
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 22px !important;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  word-break: break-word;
}
.ProfileNav-module__body { gap: 4px; padding: 10px !important; }
.ProfileNav-module__navItem {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 12px 14px !important;
  background: transparent !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background var(--rf-t), color var(--rf-t);
}
.ProfileNav-module__navItem::before {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 auto;
  background: var(--rf-accent);
  -webkit-mask: var(--rf-i-user) center / contain no-repeat; mask: var(--rf-i-user) center / contain no-repeat;
}
.ProfileNav-module__navItem[href*="basket"]::before { -webkit-mask: var(--rf-i-box) center / contain no-repeat; mask: var(--rf-i-box) center / contain no-repeat; }
.ProfileNav-module__navItem[href*="history"]::before { -webkit-mask: var(--rf-i-clock) center / contain no-repeat; mask: var(--rf-i-clock) center / contain no-repeat; }
.ProfileNav-module__navItem:hover { background: rgba(255, 255, 255, .05) !important; color: var(--rf-text) !important; }
.ProfileNav-module__navItem.ProfileNav-module__active {
  background: rgba(205, 65, 43, .14) !important;
  box-shadow: inset 3px 0 0 var(--rf-accent);
  color: var(--rf-text) !important;
}
.ProfileNav-module__logOut {
  width: 100%;
  gap: 8px;
  background: transparent !important;
  border: 1px solid rgba(194, 59, 59, .45) !important;
  color: #e58a7c !important;
  box-shadow: none !important;
}
.ProfileNav-module__logOut::before {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--rf-i-exit) center / contain no-repeat; mask: var(--rf-i-exit) center / contain no-repeat;
}
.ProfileNav-module__logOut:hover,
.ProfileNav-module__logOut:focus-visible { background: var(--rf-danger) !important; border-color: var(--rf-danger) !important; color: #fff !important; }

/* содержимое профиля */
.ProfileContent-module__body { gap: 0; }
.ProfileContent-module__title {
  margin: 0 0 10px !important;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ProfileContent-module__infoWrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 22px !important;
  padding: 0 !important;
  background: none !important;
}
.ProfileContent-module__infoLine {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 6px;
  padding: 16px 18px !important;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius-lg);
}
.ProfileContent-module__infoLine > span:first-child {
  color: var(--rf-muted);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ProfileContent-module__infoLineValue {
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .03em;
  word-break: break-all;
}
.ProfileContent-module__steamid { color: var(--rf-gold) !important; font-size: 18px; }
.ProfileContent-module__steamid:hover { color: #f0c46a !important; }
/* карточка баланса — зелёная, с кнопкой «Пополнить» (добавляет theme.js) */
.ProfileContent-module__infoLine.rf-balance-line {
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(133, 168, 56, .18), transparent 70%),
    var(--rf-panel-2);
  border-color: rgba(111, 143, 46, .35) !important;
}
.rf-balance-line .ProfileContent-module__infoLineValue { color: var(--rf-green-hi) !important; font-size: 28px; }
.ProfileContent-module__infoLine.rf-balance-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center !important;
}
.rf-balance-line > * { grid-column: 1; }
.rf-balance-line .rf-btn { grid-column: 2; grid-row: 1 / span 2; }

/* промокод */
.ProfileContent-module__inputWrapper {
  gap: 10px;
  height: auto !important;
  margin-bottom: 6px !important;
}
.ProfileContent-module__input {
  height: 46px !important;
  padding: 0 14px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ProfileContent-module__input:focus { border-color: var(--rf-accent) !important; box-shadow: 0 0 0 3px var(--rf-accent-glow); }
.ProfileContent-module__input::placeholder { color: var(--rf-muted); text-transform: none; letter-spacing: 0; }
.ProfileContent-module__usePromoBtn { margin: 0 !important; height: 46px !important; min-width: 180px !important; }
.ProfileContent-module__timedDiscountInfo {
  background: rgba(217, 164, 65, .08) !important;
  border: 1px solid rgba(217, 164, 65, .3);
  border-radius: var(--rf-radius);
  color: var(--rf-text) !important;
}

/* --- Корзина и история --- */
.BasketFilters-module__wrapper,
.HistoryFilters-module__wrapper { display: flex; gap: 10px; margin-bottom: 14px !important; }
.BasketFilters-module__serverSelector { margin: 0 !important; min-width: 220px; }
.BasketSearch-module__wrapper,
.HistorySearch-module__wrapper {
  height: 44px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t), box-shadow var(--rf-t);
}
.BasketSearch-module__wrapper:focus-within,
.HistorySearch-module__wrapper:focus-within { border-color: var(--rf-accent); box-shadow: 0 0 0 3px var(--rf-accent-glow); }
.BasketSearch-module__iconWrapper,
.HistorySearch-module__iconWrapper { background: transparent !important; padding: 0 4px 0 14px !important; }
.BasketSearch-module__icon path,
.HistorySearch-module__icon path { stroke: var(--rf-muted) !important; }
.BasketSearch-module__input,
.HistorySearch-module__input { background: transparent !important; color: var(--rf-text) !important; }

.BasketTable-module__table,
.HistoryTable-module__table {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.BasketTable-module__tableHeader,
.HistoryTable-module__tableHeader { background: rgba(0, 0, 0, .3) !important; border-bottom: 1px solid var(--rf-line); }
/* у платформы таблицы шириной от 920 px — в панели темы это давало горизонтальный скролл */
.BasketTable-module__tableData,
.HistoryTable-module__tableData { min-width: 0 !important; }
.BasketTable-module__tableLine.BasketTable-module__canSell,
.BasketTable-module__tableHeader.BasketTable-module__canSell { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 120px !important; }
.HistoryTable-module__tableLine,
.HistoryTable-module__tableHeader { grid-template-columns: minmax(0, 1fr) 170px 120px !important; }
/* заголовок «Сервер» в корзине стоял по центру, а значения — слева: выравниваем по колонке */
.BasketTable-module__tableHeader > .BasketTable-module__tableTitle:not(:last-child) { text-align: left !important; }
.BasketTable-module__tableTitle,
.HistoryTable-module__tableTitle {
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 12px !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.BasketTable-module__tableLine,
.HistoryTable-module__tableLine { background: transparent !important; transition: background var(--rf-t); }
.BasketTable-module__tableLine + .BasketTable-module__tableLine,
.HistoryTable-module__tableLine + .HistoryTable-module__tableLine { border-top: 1px solid var(--rf-line); }
.BasketTable-module__tableLine:nth-child(2n-1),
.HistoryTable-module__tableLine:nth-child(2n-1) { background: rgba(255, 255, 255, .015) !important; }
.BasketTable-module__tableLine:hover,
.HistoryTable-module__tableLine:hover { background: rgba(255, 255, 255, .04) !important; }
.BasketTable-module__value,
.HistoryTable-module__value { color: var(--rf-text-dim) !important; }
.BasketTable-module__productInfoWrapper .BasketTable-module__value {
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
/* у картинки есть класс productModalImg (как в окне товара, где она центрируется) — сбрасываем */
.BasketTable-module__itemImg {
  margin: 0 14px 0 0 !important;
  max-width: none !important;
  filter: none !important;
  width: 52px !important;
  height: 52px !important;
  padding: 4px;
  object-fit: contain;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
}
.BasketTable-module__inlineBtn { color: var(--rf-accent-hi) !important; font-size: 13px; }
.BasketTable-module__inlineBtn:hover { color: var(--rf-text) !important; }
.HistoryTable-module__value:last-child { color: var(--rf-text) !important; font-family: var(--rf-font-head); font-size: 15px; }
.HistoryTable-module__value.rf-plus { color: var(--rf-green-hi) !important; }
.HistoryTable-module__value.rf-minus { color: #e58a7c !important; }
.BasketTable-module__disabledLine { background: rgba(10, 10, 9, .75) !important; color: var(--rf-text-dim); }
.BasketTable-module__skeletonImg, .BasketTable-module__skeletonName, .BasketTable-module__skeletonServer,
.HistoryTable-module__skeletonDetail, .HistoryTable-module__skeletonDate, .HistoryTable-module__skeletonSum { background: var(--rf-panel-3) !important; }

/* пагинация */
.Pagination-module__pagination { gap: 6px; margin-top: 18px !important; }
.Pagination-module__navPageBtn,
.Pagination-module__page {
  width: 36px !important;
  height: 36px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text-dim) !important;
  font-family: var(--rf-font-head);
  font-size: 14px;
  cursor: pointer;
}
.Pagination-module__left, .Pagination-module__right { margin: 0 !important; }
.Pagination-module__pagIcon { stroke: currentColor !important; }
.Pagination-module__page:hover,
.Pagination-module__navPageBtn:hover { border-color: var(--rf-line-strong) !important; color: var(--rf-text) !important; }
.Pagination-module__page.Pagination-module__active {
  background: var(--rf-accent) !important;
  border-color: var(--rf-accent) !important;
  color: #fff !important;
}

/* --- Окно пополнения баланса --- */
.PlayerBalanceModal-module__header::after {
  content: "";
  width: 20px; height: 20px;
  margin-left: auto;
  background: var(--rf-green-hi);
  -webkit-mask: var(--rf-i-card) center / contain no-repeat; mask: var(--rf-i-card) center / contain no-repeat;
}
.PlayerBalanceModal-module__form { align-items: stretch !important; gap: 0; text-align: left; }
.rf-topup-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background:
    radial-gradient(200px 80px at 100% 0%, rgba(133, 168, 56, .16), transparent 70%),
    var(--rf-panel-2);
  border: 1px solid rgba(111, 143, 46, .3);
  border-radius: var(--rf-radius);
}
.rf-topup-current span {
  color: var(--rf-muted);
  font-family: var(--rf-font-head);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-topup-current b { color: var(--rf-green-hi); font-family: var(--rf-font-head); font-size: 20px; font-weight: 600; }
.PlayerBalanceModal-module__label {
  margin-bottom: 8px !important;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 12px;
  font-weight: 400 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.PlayerBalanceModal-module__inputWrapper {
  height: 58px !important;
  background: var(--rf-panel-2) !important;
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-radius) !important;
  transition: border-color var(--rf-t), box-shadow var(--rf-t);
}
.PlayerBalanceModal-module__inputWrapper:focus-within { border-color: var(--rf-green-hi); box-shadow: 0 0 0 3px rgba(133, 168, 56, .25); }
.PlayerBalanceModal-module__currency {
  order: 2;
  display: flex;
  align-items: center;
  padding: 0 16px !important;
  background: transparent !important;
  color: var(--rf-muted) !important;
  font-family: var(--rf-font-head);
  font-size: 16px;
  line-height: 1 !important;
}
.PlayerBalanceModal-module__input {
  padding: 0 16px !important;
  background: transparent !important;
  color: var(--rf-text) !important;
  font-family: var(--rf-font-head);
  font-size: 28px !important;
  font-weight: 600;
  outline: none !important;
}
.PlayerBalanceModal-module__input::placeholder { color: var(--rf-muted); font-weight: 400; font-size: 20px; }
.rf-topup-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; margin-top: 10px; }
.rf-topup-presets button {
  height: 38px;
  background: var(--rf-panel-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-family: var(--rf-font-head);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--rf-t), color var(--rf-t), background var(--rf-t);
}
.rf-topup-presets button:hover { border-color: var(--rf-line-strong); color: var(--rf-text); }
.rf-topup-presets button.is-active { background: rgba(133, 168, 56, .16); border-color: var(--rf-green-hi); color: var(--rf-text); }
.rf-topup-note {
  position: relative;
  margin-top: 14px;
  padding: 10px 12px 10px 34px;
  background: rgba(79, 143, 192, .08);
  border: 1px solid rgba(79, 143, 192, .25);
  border-radius: var(--rf-radius);
  color: var(--rf-text-dim);
  font-size: 13px;
  line-height: 1.5;
}
.rf-topup-note::before {
  content: "i";
  position: absolute; left: 10px; top: 11px;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rf-blue);
  color: #fff;
  font: 700 11px/1 Georgia, serif;
}
.PlayerBalanceModal-module__footer { gap: 10px; }
.PlayerBalanceModal-module__footer .Button-module__accent {
  flex: 1;
  background: linear-gradient(180deg, var(--rf-green-hi) 0%, var(--rf-green) 100%) !important;
  box-shadow: 0 6px 20px rgba(111, 143, 46, .35) !important;
}
.PlayerBalanceModal-module__footer .Button-module__accent:hover { background: linear-gradient(180deg, #93b83f 0%, var(--rf-green-hi) 100%) !important; }

@media (max-width: 980px) {
  main.container:has(> .ProfileNav-module__wrapper) { grid-template-columns: minmax(0, 1fr) !important; }
  main.container > .ProfileNav-module__wrapper { order: 0 !important; }
  .ProfileNav-module__header { flex-direction: row !important; justify-content: flex-start !important; padding: 16px !important; }
  .ProfileNav-module__img { width: 64px !important; height: 64px !important; }
  .ProfileNav-module__name { text-align: left; font-size: 19px !important; }
  .ProfileNav-module__body { flex-direction: row !important; flex-wrap: wrap; }
  .ProfileNav-module__navItem { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 700px) {
  .BasketFilters-module__wrapper { flex-direction: column; }
  .BasketFilters-module__serverSelector { min-width: 0; width: 100%; }
  .BasketTable-module__tableData, .HistoryTable-module__tableData { min-width: 0 !important; }
  .BasketTable-module__tableHeader, .HistoryTable-module__tableHeader { display: none !important; }
  .BasketTable-module__tableLine, .HistoryTable-module__tableLine { grid-template-columns: 1fr !important; gap: 6px !important; }
  .BasketTable-module__value, .HistoryTable-module__value { text-align: left !important; white-space: normal !important; }
  .BasketTable-module__serverInfoWrapper { align-items: flex-start !important; padding-left: 68px; }
  .ProfileContent-module__inputWrapper { flex-direction: column; }
  .ProfileContent-module__usePromoBtn { width: 100%; }
  .rf-balance-line .rf-btn { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
@media (max-width: 600px) {
  .PlayerBalance-module__btn { width: 100%; justify-content: center; }
}

/* 13. Служебное ----------------------------------------------------------------- */
.Toasts-module__wrapper > * {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line-strong) !important;
  border-left: 3px solid var(--rf-accent) !important;
  border-radius: var(--rf-radius) !important;
  color: var(--rf-text) !important;
  box-shadow: var(--rf-shadow) !important;
}

.Cookie-module__wrapper {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line-strong) !important;
  border-radius: var(--rf-radius-lg) !important;
  box-shadow: var(--rf-shadow) !important;
  color: var(--rf-text-dim) !important;
}
.Cookie-module__button {
  background: var(--rf-accent) !important;
  border: 0 !important;
  border-radius: var(--rf-radius) !important;
  color: #fff !important;
  font-family: var(--rf-font-head);
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
}

.gs-loader { background: var(--rf-bg) !important; }
.gs-loader__spinner,
.Loader-module__loader {
  border-color: var(--rf-panel-3) !important;
  border-top-color: var(--rf-accent) !important;
}

.DesktopCopyright-module__wrapper {
  background: var(--rf-panel) !important;
  border: 1px solid var(--rf-line) !important;
  color: var(--rf-muted) !important;
  border-radius: var(--rf-radius) !important;
  z-index: 40 !important;
}
.DesktopCopyright-module__link { color: var(--rf-text-dim) !important; }

.ShopFooter-module__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ShopFooter-module__link { color: var(--rf-muted) !important; font-size: 13px; }
.ShopFooter-module__link:hover { color: var(--rf-accent-hi) !important; }
.ShopFooter-module__text { color: var(--rf-muted) !important; font-size: 12px; line-height: 1.6; }

/* Подвал темы (CONFIG.footer) ----------------------------------------------------- */
/* прижимаем подвал к низу экрана даже на коротких страницах (профиль, поддержка) */
html.rf-has-footer body { display: flex; flex-direction: column; min-height: 100vh; }
html.rf-has-footer #root { flex: 1 0 auto; }
/* блок платформы из панели магазина переехал в подвал */
html.rf-hide-shop-footer .Shop-module__wrapper > .boxFooter:has(.ShopFooter-module__text, .ShopFooter-module__links) { display: none !important; }

.rf-footer {
  position: relative;
  z-index: 0;                    /* ниже #root — мобильное меню и окна поверх подвала */
  flex: 0 0 auto;
  margin-top: 48px;
  background:
    radial-gradient(900px 220px at 15% 0%, rgba(205, 65, 43, .10), transparent 70%),
    linear-gradient(180deg, #151413 0%, #0c0c0b 100%);
  border-top: 1px solid var(--rf-line-strong);
  color: var(--rf-text-dim);
  font-size: 14px;
}
.rf-footer::before {             /* полоса «осторожно» сверху, как у hero */
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 3px;
  background: repeating-linear-gradient(135deg, var(--rf-gold) 0 14px, #1a1a1a 14px 28px);
  opacity: .55;
}
.rf-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 32px 40px;
  max-width: calc(var(--rf-container) - 32px);
  margin: 0 auto;
  padding: 44px 16px 34px;
  box-sizing: border-box;
}
.rf-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rf-footer__logo::before {
  content: "";
  width: 4px; height: 24px;
  background: var(--rf-accent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--rf-accent-glow);
}
.rf-footer__about { max-width: 380px; margin: 0 0 16px; color: var(--rf-muted); line-height: 1.6; }
.rf-footer__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  background: rgba(111, 143, 46, .1);
  border: 1px solid rgba(111, 143, 46, .35);
  border-radius: var(--rf-radius);
  font-family: var(--rf-font-head);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rf-footer__online i { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-green-hi); animation: rf-pulse 2s infinite; }
.rf-footer__online b { color: var(--rf-green-hi); font-size: 15px; }
.rf-footer__socials { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-footer__socials .rf-social span { display: none; }      /* в подвале — только иконки */
.rf-footer__socials .rf-social { width: 38px; height: 38px; padding: 0; justify-content: center; }

.rf-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rf-footer__col h4 {
  margin: 0 0 6px;
  color: var(--rf-text);
  font-family: var(--rf-font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#root ~ .rf-footer a { text-decoration: none; }
.rf-footer__col a {
  position: relative;
  color: var(--rf-text-dim) !important;
  transition: color var(--rf-t);
}
.rf-footer__col a::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--rf-accent);
  transform: translateY(-50%) scale(0);
  transition: transform var(--rf-t);
}
.rf-footer__col a:hover,
.rf-footer__col a.rf-current { color: var(--rf-text) !important; }
.rf-footer__col a:hover::before,
.rf-footer__col a.rf-current::before { transform: translateY(-50%) scale(1); }

.rf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: calc(var(--rf-container) - 32px);
  margin: 0 auto;
  padding: 18px 16px 22px;
  box-sizing: border-box;
  border-top: 1px solid var(--rf-line);
  color: var(--rf-muted);
  font-size: 12px;
  line-height: 1.6;
}
.rf-footer__copy { color: var(--rf-text-dim); font-family: var(--rf-font-head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.rf-footer__legal { flex: 1 1 420px; max-width: 760px; }
.rf-footer__disclaimer { opacity: .8; }

/* «Сайт создан в системе GameStores» платформы закреплён внизу слева — оставляем под ним место */
@media (min-width: 761px) { .rf-footer__bottom { padding-bottom: 64px; } }

@media (max-width: 1100px) {
  .rf-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .rf-footer { margin-top: 32px; }
  .rf-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding: 32px 14px 24px; }
  .rf-footer__logo { font-size: 22px; }
  .rf-footer__bottom { flex-direction: column; align-items: flex-start; padding: 16px 14px 20px; }
}

/* Анимации */
@keyframes rf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(133,168,56,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(133,168,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(133,168,56,0); }
}
@keyframes rf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rf-pop  { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes rf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rf-ember {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translate(var(--rf-drift, 40px), -105vh); opacity: 0; }
}

/* 14. Адаптив --------------------------------------------------------------------- */

/* Виджеты подстраиваются под ширину своей панели (container queries):
   один и тот же HTML нормально смотрится и в широкой странице, и в узком сайдбаре */
@container (max-width: 420px) {
  .rf-w-servers, .rf-w-plans, .rf-w-steps, .rf-w-grid { grid-template-columns: 1fr !important; }
  .rf-w-plans { gap: 18px; padding-top: 6px; }
  .rf-w-plan { padding: 18px 14px 14px; }
  .rf-w-plan__price { font-size: 24px; }
  .rf-w-rules > li { padding: 10px 12px 10px 54px; font-size: 13px; }
  .rf-w-rules > li::before { left: 10px; top: 10px; min-width: 34px; font-size: 12px; }
  .rf-w-note { padding: 12px 12px 12px 40px; font-size: 13px; }
  .rf-w-note::before { left: 11px; top: 12px; width: 18px; height: 18px; }
  .rf-w-tabs__btn { padding: 8px 9px; font-size: 12px; }
  .rf-w-steps > li { padding: 38px 12px 12px; font-size: 13px; }
  .rf-w-accordion summary { padding: 12px 38px 12px 12px; font-size: 13px; }
  .rf-w-accordion .rf-w-accordion__body { padding: 0 12px 12px; font-size: 13px; }
  .rf-w-server { padding: 12px; }
  .rf-w-copy { font-size: 12px; }
  .rf-w-copy::after { content: "⧉"; padding: 2px 7px; font-size: 13px; }
  .rf-w-copy.is-copied::after { content: "✓"; }
  .rf-w-card { padding: 12px; }
  .rf-w-card h3 { font-size: 16px !important; }
  .rf-timer { padding: 12px; }
  .rf-timer__num { font-size: 20px; }
  .rf-w-timer-block { max-width: none; }
  .rf-w-online { display: flex; justify-content: center; }
}

@media (max-width: 1180px) {
  :root { --rf-sidebar: 240px; }
  :is(.HeaderNav-module__link, .SupportLink-module__link) { padding: 10px 9px !important; font-size: 14px; }
  .Header-module__wrapper { gap: 14px; }
}

/* с 980px платформа показывает бургер — прячем верхнюю навигацию, чтобы не было и того и другого */
@media (max-width: 980px) {
  main.container:has(> .Widgets-module__wrapper),
  .Index-module__wrapper,
  .CustomPage-module__wrapper { grid-template-columns: minmax(0, 1fr) !important; }
  main.container > .Widgets-module__wrapper { order: 2; }
  .rf-hero__inner { grid-template-columns: 1fr; padding: 30px 24px; min-height: 0; }
  .rf-hero__side { justify-self: stretch; max-width: none; }
  .Header-module__nav { display: none !important; }
}

@media (max-width: 560px) {
  :root { --rf-card-min: 140px; --rf-gap: 12px; }
  .container, .headerContainer { padding-left: 10px !important; padding-right: 10px !important; }
  .Header-module__wrapper { min-height: 58px; gap: 10px; }
  .Header-module__logo { font-size: 19px; }
  .PlayerMenu-module__loginLink { padding: 8px 12px !important; font-size: 14px; }
  .boxBody { padding: 12px !important; }
  .boxHeader { padding: 12px 14px !important; font-size: 15px !important; }
  .Product-module__wrapper { min-height: 196px; padding: 10px !important; }
  .Product-module__img { height: 84px !important; }
  .Product-module__name { font-size: 13px; }
  .Product-module__price { font-size: 14px; padding: 6px !important; }
  /* hero на телефоне компактный: без описания и тегов, таймер в строку */
  .rf-hero { padding: 0 10px; margin-top: 10px; }
  .rf-hero__inner { padding: 22px 16px 18px; gap: 16px; }
  .rf-hero__eyebrow { font-size: 11px; margin-bottom: 8px; }
  .rf-hero__title { font-size: 30px; margin-bottom: 14px; }
  .rf-hero__text, .rf-hero__tags { display: none; }
  .rf-hero__actions .rf-btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: 14px; }
  .rf-timer { padding: 10px 12px; }
  .rf-timer__num { font-size: 20px; }
  .rf-social { padding: 0 10px; }
  .rf-social span { display: none; }
  .rf-statusbar { padding: 0 10px; }
  .rf-announce { font-size: 12px; padding: 7px 40px 7px 10px; }
  .Servers-module__server { flex: 1 1 100%; }
  .Categories-module__categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .Categories-module__categories::-webkit-scrollbar { display: none; }
  .Categories-module__category { flex: 0 0 auto; }
  .rf-catalog-tools { gap: 8px; }
  .rf-tools-right { width: 100%; }
  .rf-tools-right .rf-sort { flex: 1; }
  .ItemContent-module__footer .Button-module__btn,
  .KitContent-module__footer .Button-module__btn { flex: 1; }
  .rf-modal-total { width: 100%; text-align: center; }
  .KitContent-module__containsItems { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important; max-height: 260px; }
  .Page-module__wrapper .boxBody { padding: 16px !important; }
  .Page-module__wrapper .boxBody h1 { font-size: 24px; }
  .rf-fav { opacity: 1; }
  .rf-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

/* 15. Уменьшенная анимация ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rf-embers { display: none; }
}

/* открытое мобильное меню: кнопка «наверх» не должна висеть поверх него */
body:has(.PlayerMenuMobile-module__visible) .rf-to-top { opacity: 0 !important; pointer-events: none !important; }