/* =====================================================================
   0. ТОКЕНЫ
   ===================================================================== */
:root {
    /* Поверхности */
    --bg:           #202020;
    --panel:        #1a1a1a;
    --panel-hi:     #242424;
    --control:      #151515;

    /* Швы */
    --line:         rgba(255, 255, 255, 0.07);
    --line-hi:      rgba(255, 255, 255, 0.13);

    /* Акцент */
    --accent:       #cd422a;
    --accent-hi:    #e8543a;
    --accent-dim:   rgba(205, 66, 42, 0.14);
    --accent-line:  rgba(205, 66, 42, 0.34);

    /* Служебные */
    --green:        #4a8f3c;
    --green-hi:     #58a848;
    --green-dim:    rgba(74, 143, 60, 0.16);
    --green-line:   rgba(74, 143, 60, 0.55);

    --gold:         #f0b429;
    --gold-dim:     rgba(240, 180, 41, 0.15);
    --gold-line:    rgba(240, 180, 41, 0.42);

    --discord:      #5865f2;
    --discord-hi:   #6b76f5;
    --discord-dim:  rgba(88, 101, 242, 0.13);
    --discord-line: rgba(88, 101, 242, 0.4);

    --danger:       #ef4444;
    --ok:           #22c55e;

    /* Текст */
    --text:         #e8e6e3;
    --text-dim:     #a3a3a3;
    --text-mute:    #7a7a7a;

    /* Геометрия */
    --r:            4px;
    --r-chip:       3px;
    --gap:          14px;
    --pad:          18px;
    --modal-w:      380px;   /* ширина окна пополнения баланса (окно товара шире — 440px в блоке 6) */

    /* Типографика */
    --font-display: 'Oswald', 'Roboto', sans-serif;
    --font-body:    'Roboto', sans-serif;
}

/* =====================================================================
   1. СКРЫТЫЕ СТАНДАРТНЫЕ БЛОКИ
   ===================================================================== */
.bannerContainer,
.bannerContainerMobile,
[class*="bannerContainer"],
[class*="Banner-module"],
.Header-module__logoWrapper,
[class*="logoWrapper"],
.Shop-module__header,
[class*="Shop-module__header"],
.Search-module__wrapper,
[class*="Search-module"],
.Categories-module__categories,
.LangSwitcher-module__wrapper,
[class*="LangSwitcher-module"],
[class*="langSwitcher"],
.PlayerMenu-module__langSwitcher,
.MonitoringWidget-module__header,
[class*="MonitoringWidget-module__header"],
div.productModalDescription,
[class*="productModalDescription"],
[class*="Toasts-module__wrapper"],
div[class*="Toasts-module__wrapper"],
.MonitoringServer-module__progressWrapper > .MonitoringServer-module__progressInfo,
.HeaderNav-module__wrapper,
.Header-module__nav,
[class*="HeaderNav-module"],
.PlayerMenuMobile-module__mobileMenuBtn,
[class*="PlayerMenuMobile-module__mobileMenuBtn"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =====================================================================
   2. КАРКАС
   ===================================================================== */
html,
body {
    background: var(--bg) !important;
    color: var(--text);
    font-family: var(--font-body);
}

#root {
    width: 100% !important;
    max-width: 1920px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg) !important;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.headerContainer,
.Header-module__wrapper,
main.container,
main[class*="-module__wrapper"],
.Index-module__wrapper,
.CustomPage-module__wrapper,
.Profile-module__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

main[class*="-module__wrapper"],
.Index-module__wrapper {
    align-items: flex-start !important;
    gap: 20px !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
}

html,
body,
#root {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    position: relative !important;
}

/* =====================================================================
   3. ШАПКА
   ===================================================================== */
.Header-module__wrapper {
    justify-content: space-between !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    background: var(--panel) !important;
    border-bottom: 1px solid var(--line) !important;
}

.headerContainer {
    margin-bottom: 0 !important;
}

.PlayerMenu-module__wrapper {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}

/* Флаги */
.PlayerMenu-module__wrapper #custom-flags-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 16px !important;
    margin-left: 8px !important;
    z-index: 9999 !important;
    flex-shrink: 0 !important;
    order: -1 !important;
}

body > #custom-flags-container,
div:not(.PlayerMenu-module__wrapper) > #custom-flags-container {
    display: none !important;
}

.flag-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 7px !important;
    border-radius: var(--r) !important;
    background: var(--control) !important;
    border: 1px solid var(--line) !important;
    transition: border-color 0.16s ease, background 0.16s ease, opacity 0.16s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.flag-icon svg {
    border-radius: 1px !important;
    display: block !important;
    width: 22px !important;
    height: 15px !important;
}

.flag-icon:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent-line) !important;
    opacity: 1 !important;
}

/* Активный язык */
.flag-icon.is-active {
    background: var(--accent-dim) !important;
    border-color: var(--accent) !important;
}

.flag-icon:not(.is-active) {
    opacity: 0.5 !important;
}

/* Кнопки входа и выхода в шапке */
a.PlayerMenu-module__loginLink,
.PlayerMenu-module__loginLink,
a.PlayerMenu-module__profileLink,
[class*="PlayerMenu-module__profileLink"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: var(--r) !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    color: var(--text) !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease !important;
}

a.PlayerMenu-module__loginLink:hover,
.PlayerMenu-module__loginLink:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent-line) !important;
}

a.PlayerMenu-module__profileLink:hover,
[class*="PlayerMenu-module__profileLink"]:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: var(--danger) !important;
}

a.PlayerMenu-module__loginLink::before,
.PlayerMenu-module__loginLink::before {
    content: '' !important;
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    background-image: url("https://s3.twcstorage.ru/72b28901-2369-4e4d-afed-5b0aa700db33/steam.png") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* =====================================================================
   4. ПАНЕЛИ САЙДБАРА
   ===================================================================== */
.Widgets-module__wrapper,
aside[class*="Widgets-module__wrapper"] {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--gap) !important;
    margin-right: 0 !important;
}

[class*="Widgets-module__widgetWrapper"],
[class*="MonitoringWidget-module__wrapper"] {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin: 0 !important;
}

[class*="Widgets-module__widgetWrapper"] .boxHeader,
[class*="Widgets-module__widgetWrapper"] [class*="boxHeader"],
[class*="MonitoringWidget-module__wrapper"] [class*="boxHeader"] {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    padding: 12px var(--pad) 12px calc(var(--pad) + 10px) !important;
    margin: 0 !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    color: var(--text) !important;
}

[class*="Widgets-module__widgetWrapper"] .boxHeader::before,
[class*="Widgets-module__widgetWrapper"] [class*="boxHeader"]::before,
[class*="MonitoringWidget-module__wrapper"] [class*="boxHeader"]::before {
    content: '';
    position: absolute;
    left: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--accent);
    border-radius: 1px;
}

[class*="Widgets-module__widgetWrapper"] .boxBody,
[class*="Widgets-module__widgetWrapper"] [class*="boxBody"],
[class*="MonitoringWidget-module__wrapper"] [class*="boxBody"] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: var(--pad) !important;
    margin: 0 !important;
    color: var(--text-dim) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

[class*="Widgets-module__widgetWrapper"] .boxFooter,
[class*="Widgets-module__widgetWrapper"] [class*="boxFooter"] {
    background: transparent !important;
    border: none !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    padding: 12px var(--pad) !important;
    margin: 0 !important;
    color: var(--text-mute) !important;
    font-size: 13px !important;
}

[class*="Widgets-module__widgetWrapper"] a {
    color: var(--accent-hi) !important;
    text-decoration: none !important;
    transition: color 0.16s ease !important;
}

[class*="Widgets-module__widgetWrapper"] a:hover {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* Мониторинг (Онлайн внутри прогресс-бара) */

[class*="MonitoringWidget-module__wrapper"] [class*="boxBody"],
[class*="Widgets-module__widgetWrapper"] [class*="MonitoringWidget-module__body"] {
    padding: 0 !important;
}

[class*="MonitoringServer-module__wrapper"] {
    background: transparent !important;
    border: none !important;
    padding: var(--pad) !important;
}

[class*="MonitoringServer-module__name"],
[class*="MonitoringServer-module__title"] {
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
    display: block !important;
    width: 100% !important;
    align-self: stretch !important;
    text-align: center !important;
}

.custom-srv-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 auto 8px !important;
    cursor: pointer !important;
}

.custom-srv-row [class*="MonitoringServer-module__name"],
.custom-srv-row [class*="MonitoringServer-module__title"] {
    width: auto !important;
    align-self: auto !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    transition: color 0.16s ease !important;
}

.custom-srv-row button[class*="MonitoringServer-module__btn"] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    background: var(--control) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-chip) !important;
    color: var(--text-mute) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease !important;
}

.custom-srv-row button[class*="MonitoringServer-module__btn"] svg {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
}

.custom-srv-row button[class*="MonitoringServer-module__btn"] svg,
.custom-srv-row button[class*="MonitoringServer-module__btn"] svg * {
    stroke: currentColor !important;
}

.custom-srv-row button[class*="MonitoringServer-module__btn"] svg [fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: currentColor !important;
}

.custom-srv-row:hover [class*="MonitoringServer-module__name"],
.custom-srv-row:hover [class*="MonitoringServer-module__title"] {
    color: var(--accent-hi) !important;
}

.custom-srv-row:hover button[class*="MonitoringServer-module__btn"] {
    background: var(--accent-dim) !important;
    border-color: var(--accent-line) !important;
    color: var(--accent-hi) !important;
}

.custom-srv-row.is-done [class*="MonitoringServer-module__name"],
.custom-srv-row.is-done [class*="MonitoringServer-module__title"] {
    color: var(--green-hi) !important;
}

.custom-srv-row.is-done button[class*="MonitoringServer-module__btn"] {
    background: var(--green-dim) !important;
    border-color: var(--green-line) !important;
    color: var(--green-hi) !important;
}

[class*="MonitoringServer-module__btns"]:empty {
    display: none !important;
}

[class*="MonitoringServer-module__progressWrapper"] {
    position: relative !important;
    border-radius: var(--r) !important;
    overflow: hidden !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    height: 22px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

[class*="MonitoringServer-module__progressBarWrapper"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

[class*="MonitoringServer-module__progressBarAnim"] {
    display: none !important;
}

[class*="MonitoringServer-module__progressWrapper"] div[class*="progressBar"]:not([class*="Anim"]):not([class*="Wrapper"]) {
    height: 100% !important;
    background: var(--accent) !important;
    background-image: none !important; 
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

[class*="MonitoringServer-module__progressInfo"] {
    display: none !important;
}

[class*="MonitoringServer-module__progressWrapper"] > span {
    position: absolute !important;
    z-index: 10 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

[class*="MonitoringServer-module__info"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

[class*="MonitoringServer-module__btns"] {
    margin-left: auto !important;
}

/* =====================================================================
   4a. КАРТА СЕРВЕРА НАД КНОПКОЙ «ПОДКЛЮЧИТЬСЯ»
   ===================================================================== */
.custom-map-preview {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
    border: 1px solid var(--line-hi);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--control);
    line-height: 0;
    transition: border-color 0.16s ease !important;
}

.custom-map-preview.is-ready {
    display: block;
}

.custom-map-preview:hover {
    border-color: var(--accent-line) !important;
}

.custom-map-preview img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопка «Подключиться» */
[class*="MonitoringWidget-module__updateBtn"] {
    opacity: 0 !important;
    pointer-events: none !important;
    animation: connectBtnFailsafe 0.01s linear 2.5s forwards !important;
}

@keyframes connectBtnFailsafe {
    to { opacity: 1; }
}

[class*="MonitoringServer-module__info"] ~ [class*="MonitoringWidget-module__updateBtn"] {
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    margin: 14px 0 0 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--green) !important;
    border-radius: var(--r) !important;
    background: var(--green) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.16s ease, border-color 0.16s ease !important;
}

[class*="MonitoringServer-module__info"] ~ [class*="MonitoringWidget-module__updateBtn"]:hover {
    background: var(--green-hi) !important;
    border-color: var(--green-hi) !important;
}

[class*="MonitoringServer-module__info"] ~ [class*="MonitoringWidget-module__updateBtn"]:active {
    background: #3d7a31 !important;
    border-color: #3d7a31 !important;
}

.custom-empty-footer {
    display: none !important;
}

/* =====================================================================
   4b. КАЛЕНДАРЬ ВАЙПОВ
   ===================================================================== */
.custom-wipe-widget {
    order: 99;
    overflow: visible !important;
}

.custom-wipe {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-body);
}

.custom-wipe__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.custom-wipe__month {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.custom-wipe__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: var(--control);
    border: 1px solid var(--line);
    border-radius: var(--r-chip);
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.16s ease, color 0.16s ease;
}

.custom-wipe__nav:hover {
    border-color: var(--accent-line);
    color: var(--accent-hi);
}

.custom-wipe__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 9px;
}

.custom-wipe__wd {
    text-align: center;
    padding-bottom: 3px;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.custom-wipe__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border: 1px solid transparent;
    border-radius: var(--r-chip);
    font-size: 11px;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.custom-wipe__day.is-empty {
    visibility: hidden;
}

.custom-wipe__day.is-past {
    color: rgba(122, 122, 122, 0.5);
}

.custom-wipe__day.is-today {
    background: var(--green-dim);
    border-color: var(--green-line);
    color: var(--green-hi);
    font-weight: 600;
}

.custom-wipe__day.is-wipe {
    background: var(--accent-dim);
    border-color: var(--accent-line);
    color: #fff;
    font-weight: 600;
}

.custom-wipe__day.is-wipe.is-force {
    background: var(--gold-dim);
    border-color: var(--gold-line);
    color: var(--gold);
}

.custom-wipe__day.is-wipe.is-past {
    opacity: 0.45;
}

.custom-wipe__day.is-today.is-wipe {
    box-shadow: 0 0 0 1px var(--green);
}

.custom-wipe__day.is-next::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.custom-wipe__day.is-force.is-next::before {
    background: var(--gold);
}

.custom-wipe__day[data-tip] {
    cursor: help;
}

.custom-wipe__day[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    padding: 7px 10px;
    background: var(--control);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-chip);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.custom-wipe__next {
    margin: -8px 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--accent-hi);
    font-variant-numeric: tabular-nums;
}

.custom-wipe__next.is-off {
    display: none;
}

.custom-wipe__next.is-force {
    color: var(--gold);
}

#custom-wipe-widget a.custom-wipe__vote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 38px;
    padding: 0 12px;
    background: var(--discord-dim);
    border: 1px solid var(--discord-line);
    border-radius: var(--r);
    color: var(--discord-hi) !important;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    line-height: 1.15;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

#custom-wipe-widget .custom-wipe__vote-icon {
    display: inline-flex;
    flex-shrink: 0;
}

#custom-wipe-widget .custom-wipe__vote-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

#custom-wipe-widget .custom-wipe__vote-label {
    line-height: 1;
}

#custom-wipe-widget a.custom-wipe__vote:hover {
    background: linear-gradient(180deg, var(--discord-hi) 0%, var(--discord) 100%);
    border-color: var(--discord-hi);
    color: #fff !important;
    text-decoration: none !important;
}

#custom-wipe-widget a.custom-wipe__vote:active {
    filter: brightness(0.94);
}

#custom-wipe-widget a.custom-wipe__vote.is-off {
    display: none;
}

/* =====================================================================
   5. HERO-КАРТОЧКА ТОВАРА
   ===================================================================== */
.Products-module__wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.Shop-module__wrapper {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.Shop-module__wrapper .boxBody {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

[class*="Product-module__wrapper"],
.Product-module__wrapper {
    display: grid !important;
    grid-template-columns: minmax(190px, 250px) minmax(200px, 1fr) 340px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 240px !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r) !important;
    padding: 26px 30px !important;
    box-sizing: border-box !important;
    position: relative !important;
    gap: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin: 0 !important;
}

[class*="Product-module__wrapper"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(205, 66, 42, 0) 55%);
    pointer-events: none;
    z-index: 2;
}

/* Скрываем верхнюю акцентную линию у неактивных карточек */
[class*="Product-module__wrapper"]:has(.custom-buy-stub)::after {
    display: none !important;
}

[class*="Product-module__wrapper"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 150px;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(240, 180, 41, 0.11) 0%, rgba(0, 0, 0, 0) 68%);
    pointer-events: none;
    z-index: 0;
}

[class*="Product-module__name"],
[class*="Product-module__price"],
[class*="Product-module__oldPrice"] {
    display: none !important;
}

.custom-hero-identity {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    text-align: center !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

/* ИСПРАВЛЕНО: селектор сужен до иконки товара — раньше правило ловило
   любую картинку внутри карточки, включая содержимое формы */
.custom-hero-identity img,
[class*="Product-module__image"] {
    width: 132px !important;
    height: 132px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 26px rgba(240, 180, 41, 0.45)) !important;
    z-index: 1 !important;
    animation: floatingCrown 4s ease-in-out infinite !important;
}

.custom-hero-title {
    margin: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: #fff !important;
}

@keyframes floatingCrown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.custom-hero-note {
    margin-top: -6px !important;
    padding: 5px 12px !important;
    border-radius: var(--r-chip) !important;
    background: var(--panel-hi) !important;
    border: 1px solid var(--gold-line) !important;
    font-family: var(--font-display) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    color: var(--gold) !important;
    white-space: nowrap !important;
}

.custom-hero-note.is-off {
    display: none !important;
}

[class*="Product-module__wrapper"].is-compact {
    min-height: 0 !important;
    padding: 20px 30px !important;
}

[class*="Product-module__wrapper"].is-compact::before {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.10) 0%, rgba(0, 0, 0, 0) 68%);
}

.is-compact .custom-hero-identity img {
    width: 84px !important;
    height: 84px !important;
    filter: drop-shadow(0 0 20px rgba(240, 180, 41, 0.3)) !important;
    animation: none !important;
}

.is-compact .custom-hero-title {
    font-size: 20px !important;
}

.is-compact .custom-product-features {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.is-compact .custom-buy-block {
    justify-content: center !important;
    gap: 14px !important;
}

.custom-product-specs {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    min-width: 0 !important;
    padding: 0 30px !important;
    border-left: 1px solid var(--line) !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.custom-product-specs__head {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.custom-product-specs__head::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}

/* Только заголовки: список строк в одну колонку */
.custom-product-features {
    list-style: none;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.custom-product-features li {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    border-radius: var(--r-chip);
    background: var(--panel-hi);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

/* Полоска слева */
.custom-product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.25;
    transition: opacity 0.2s ease;
}

.custom-product-features li:hover::before {
    opacity: 1;
}

.custom-product-features li:hover {
    background: var(--panel-hi);
    border-color: var(--accent-line);
    transform: translateX(3px);
}

.custom-product-features li:nth-child(1) {
    --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/></svg>");
}

.custom-product-features li:nth-child(2) {
    --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/></svg>");
}

.custom-product-features li:nth-child(3) {
    --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z'/></svg>");
}

.custom-product-features li:nth-child(4) {
    --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/><path d='m3.3 7 8.7 5 8.7-5'/><path d='M12 22V12'/></svg>");
}

.custom-feature__name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.custom-feature__name::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-color: var(--accent);
    -webkit-mask: var(--ico, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")) center / contain no-repeat;
    mask: var(--ico, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")) center / contain no-repeat;
    transition: background-color 0.16s ease;
}

.custom-product-features li:hover .custom-feature__name::before {
    background-color: var(--accent-hi);
}

.custom-buy-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 30px !important;
    border-left: 1px solid var(--line) !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

[class*="Product-module__discount"] {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: var(--accent) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
    padding: 4px 9px !important;
    border-radius: var(--r-chip) !important;
    z-index: 5 !important;
    box-shadow: none !important;
    animation: none !important;
}

/* =====================================================================
   6. ИСПРАВЛЕННОЕ СКРЫТИЕ И СТИЛИЗАЦИЯ МОДАЛОК
   ===================================================================== */
body > [class*="ModalLayout-module__wrapper"]:has(form[class*="ProductModal"]),
body > [class*="ModalLayout-module__wrapper"]:has([class*="productModal"]) {
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

div[class*="ModalLayout-module__wrapper"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

div[class*="ModalLayout-module__positionWrapper"],
.customModalPosition {
    height: auto !important;
    max-height: 90vh !important;
    width: 100% !important;
    max-width: 440px !important;
    background: var(--panel) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    color: var(--text) !important;
    overflow: hidden !important;
    margin: auto !important;
}

div[class*="ModalLayout-module__positionWrapper"] [class*="boxHeader"],
div[class*="ModalLayout-module__positionWrapper"] [class*="header"] {
    position: relative !important;
    background: transparent !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 14px var(--pad) 14px calc(var(--pad) + 12px) !important;
    margin: 0 !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--text) !important;
}

div[class*="ModalLayout-module__positionWrapper"] [class*="boxHeader"]::before,
div[class*="ModalLayout-module__positionWrapper"] [class*="header"]::before {
    content: '';
    position: absolute;
    left: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: var(--accent);
    border-radius: 1px;
}

div[class*="ModalLayout-module__positionWrapper"] [class*="boxBody"],
div[class*="ModalLayout-module__positionWrapper"] [class*="body"] {
    padding: var(--pad) !important;
    background: transparent !important;
}

div[class*="ModalLayout-module__positionWrapper"] label,
div[class*="ModalLayout-module__positionWrapper"] [class*="label"] {
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-mute) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.11em !important;
    margin-bottom: 8px !important;
    display: block !important;
}

div[class*="ModalLayout-module__positionWrapper"] input[type="number"],
div[class*="ModalLayout-module__positionWrapper"] input[type="text"] {
    height: 42px !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    padding: 0 12px !important;
    transition: border-color 0.16s ease !important;
}

div[class*="ModalLayout-module__positionWrapper"] input:focus-visible {
    border-color: var(--accent) !important;
    outline: none !important;
}

/* ИСПРАВЛЕНО: окно пополнения баланса исключено — иначе «RUB» получал
   акцентную красную плашку вместо прозрачной подписи в поле */
div[class*="ModalLayout-module__positionWrapper"] [class*="currency"]:not([class*="PlayerBalanceModal"]),
div[class*="ModalLayout-module__positionWrapper"] [class*="Currency"]:not([class*="PlayerBalanceModal"]) {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--r) 0 0 var(--r) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
}

div[class*="ModalLayout-module__positionWrapper"] [class*="boxFooter"],
div[class*="ModalLayout-module__positionWrapper"] [class*="footer"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 14px var(--pad) !important;
    border-top: 1px solid var(--line) !important;
    background: transparent !important;
}

div[class*="ModalLayout-module__positionWrapper"] button[class*="Button-module__accent"],
div[class*="ModalLayout-module__positionWrapper"] button[type="submit"] {
    height: 38px !important;
    padding: 0 20px !important;
    background: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    border-radius: var(--r) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.16s ease, border-color 0.16s ease !important;
}

div[class*="ModalLayout-module__positionWrapper"] button[class*="Button-module__accent"]:hover,
div[class*="ModalLayout-module__positionWrapper"] button[type="submit"]:hover {
    background: var(--accent-hi) !important;
    border-color: var(--accent-hi) !important;
}

div[class*="ModalLayout-module__positionWrapper"] button[class*="Button-module__gray"],
div[class*="ModalLayout-module__positionWrapper"] button:not([class*="accent"]):not([type="submit"]) {
    height: 38px !important;
    padding: 0 16px !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

div[class*="ModalLayout-module__positionWrapper"] button[class*="Button-module__gray"]:hover,
div[class*="ModalLayout-module__positionWrapper"] button:not([class*="accent"]):not([type="submit"]):hover {
    background: var(--panel-hi) !important;
    color: var(--text) !important;
}

.custom-buy-stub {
    position: relative;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.16s ease;
}

.custom-buy-stub * {
    pointer-events: none !important;
    user-select: none !important;
}

.custom-buy-stub:hover {
    opacity: 0.9;
}

.custom-buy-stub::after {
    content: attr(data-hint);
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r);
    background: rgba(26, 26, 26, 0.78);
    color: var(--accent-hi);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.custom-buy-stub:hover::after {
    opacity: 1;
}

.custom-embedded-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-embedded-form form,
.custom-embedded-form [class*="productModalForm"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.custom-embedded-form [class*="ItemContent-module__footer"],
.custom-embedded-form [class*="boxFooter"],
.custom-embedded-form [class*="ItemContent-module__wrapper"] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.custom-embedded-form [class*="productModalFormRow"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-embedded-form [class*="productModalFormRowItem"] {
    flex: 1 !important;
    width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.custom-embedded-form label,
.custom-embedded-form [class*="Label"]:not(.custom-label-text),
.custom-embedded-form [class*="FormRowItemLabel"],
.custom-embedded-form [class*="productModalFormRowItem"] > span:not(.custom-label-row),
.custom-embedded-form .custom-native-label {
    display: none !important;
}

.custom-label-row {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 18px !important;
    margin-bottom: 7px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ИСПРАВЛЕНО: бейдж скидки висит абсолютом в правом верхнем углу карточки
   и садится ровно на эту строку — освобождаем ему место */
.custom-embedded-form [class*="productModalFormRowItem"]:last-child .custom-label-row {
    padding-right: 52px !important;
}

.custom-label-text {
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-mute) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.11em !important;
    white-space: nowrap !important;
}

.custom-old-price-label {
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--danger) !important;
    text-decoration: line-through !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
}

.custom-action-row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 2px 0 !important;
}

.custom-action-row [class*="productModalFormRowItem"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Строка способа выдачи занимает всю ширину — отступ под бейдж ей не нужен */
.custom-action-row [class*="productModalFormRowItem"]:last-child .custom-label-row {
    padding-right: 0 !important;
}

.custom-action-row [class*="ActionSelector-module__label"] {
    display: none !important;
}

.custom-action-row [class*="ActionSelector-module__actionSelector"],
.custom-action-row [class*="dropDownWrapper"] {
    width: 100% !important;
    display: block !important;
}

.custom-action-row button[class*="dropDownCurrentItem"] {
    height: 42px !important;
    width: 100% !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    padding: 0 16px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    transition: border-color 0.16s ease !important;
}

.custom-action-row button[class*="dropDownCurrentItem"]:hover {
    border-color: var(--line-hi) !important;
}

.custom-embedded-form input,
.custom-embedded-form select,
.custom-embedded-form [class*="CountSelector-module__inputWrapper"] {
    height: 42px !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    color: var(--text) !important;
    border-radius: var(--r) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: border-color 0.16s ease !important;
}

.custom-embedded-form input:hover,
.custom-embedded-form select:hover {
    border-color: var(--line-hi) !important;
}

.custom-embedded-form input:focus-visible,
.custom-embedded-form select:focus-visible,
.custom-embedded-form button:focus-visible {
    border-color: var(--accent) !important;
    outline: 2px solid var(--accent-line) !important;
    outline-offset: 1px !important;
}

.custom-embedded-form input::placeholder {
    color: var(--text-mute) !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] button {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 100% !important;
    min-height: 40px !important;
    background: var(--panel-hi) !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--text) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: background 0.16s ease, color 0.16s ease !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] button:hover {
    background: var(--accent-dim) !important;
    color: var(--accent-hi) !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] input {
    flex: 1 1 auto !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
    cursor: text !important;
}

.custom-embedded-form input.custom-native-count {
    display: none !important;
}

.custom-buy-stub input.custom-native-count {
    display: block !important;
}

.custom-buy-stub .custom-count-proxy {
    display: none !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] input::-webkit-outer-spin-button,
.custom-embedded-form [class*="CountSelector-module__inputWrapper"] input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.custom-embedded-form [class*="CountSelector-module__inputWrapper"] input {
    -moz-appearance: textfield !important;
}

.custom-embedded-form [class*="currency"],
.custom-embedded-form [class*="Currency"] {
    border-radius: var(--r) !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
}

.custom-embedded-form label[class*="CountSelector"],
.custom-embedded-form label[class*="ActionSelector"],
.custom-embedded-form label[class*="Selector-module__label"],
.custom-embedded-form label[for="buyCount"],
.custom-embedded-form label.custom-native-label,
.custom-embedded-form span.custom-native-label,
.custom-embedded-form div.custom-native-label {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.custom-embedded-form button[class*="Button-module__accent"],
.custom-embedded-form button[type="submit"] {
    position: relative !important;
    height: 48px !important;
    background: var(--accent) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.13em !important;
    border-radius: var(--r) !important;
    border: 1px solid var(--accent) !important;
    width: 100% !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    transition: background 0.16s ease, border-color 0.16s ease !important;
    margin-top: 2px !important;
    overflow: hidden !important;
}

.custom-embedded-form button[class*="Button-module__accent"]:hover,
.custom-embedded-form button[type="submit"]:hover {
    background: var(--accent-hi) !important;
    border-color: var(--accent-hi) !important;
    transform: none !important;
}

.custom-embedded-form button[class*="Button-module__accent"]:active,
.custom-embedded-form button[type="submit"]:active {
    background: #b8391f !important;
    border-color: #b8391f !important;
}

.custom-embedded-form button[class*="Button-module__gray"] {
    display: none !important;
}

/* =====================================================================
   ПРОМОКОД (ВРЕМЕННО ЗАКОММЕНТИРОВАНО)
   ===================================================================== */
.custom-embedded-form .custom-promo-row {
    display: none !important;
}
/*
.custom-embedded-form .custom-promo-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}

.custom-embedded-form .custom-promo-input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    margin: 0 !important;
    height: 42px !important;
    padding: 0 13px !important;
}

.custom-embedded-form .custom-promo-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 118px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    background: transparent !important;
    border: 1px solid var(--accent-line) !important;
    border-radius: var(--r) !important;
    color: var(--accent-hi) !important;
    font-family: var(--font-display) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
}

.custom-embedded-form .custom-promo-btn:hover {
    background: var(--accent-dim) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    transform: none !important;
}
*/

/* =====================================================================
   FIX: УСТРАНЕНИЕ ВЕРТИКАЛЬНОГО ФОНА МОДАЛКИ БАЛАНСА
   ===================================================================== */
div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__overflowWrapper"],
div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__modal"],
div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__positionWrapper"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) {
    padding: 16px !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) section {
    background: var(--panel) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    margin: auto !important;
    width: 100% !important;
    max-width: var(--modal-w) !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__overflowWrapper"],
div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__positionWrapper"],
div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) div[class*="ModalLayout-module__modal"] {
    width: 100% !important;
    max-width: var(--modal-w) !important;
    flex: 0 0 auto !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) [class*="PlayerBalanceModal-module__label"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

[class*="PlayerBalanceModal-module__inputWrapper"] {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 2px 0 0 0 !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r) !important;
    overflow: hidden !important;
    transition: border-color 0.16s ease !important;
}

[class*="PlayerBalanceModal-module__inputWrapper"]:focus-within {
    border-color: var(--accent) !important;
}

/* ИСПРАВЛЕНО: селектор усилен родителем, иначе общее правило модалок
   перебивало его по специфичности и «RUB» рисовался красной плашкой */
div[class*="ModalLayout-module__wrapper"] [class*="PlayerBalanceModal-module__currency"],
div[class*="ModalLayout-module__positionWrapper"] [class*="PlayerBalanceModal-module__currency"] {
    position: absolute !important;
    top: 50% !important;
    right: 16px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--text-mute) !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    pointer-events: none !important;
}

[class*="PlayerBalanceModal-module__input"] {
    height: 58px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text) !important;
    padding: 0 52px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    letter-spacing: 0.02em !important;
    -moz-appearance: textfield !important;
}

[class*="PlayerBalanceModal-module__input"]::-webkit-outer-spin-button,
[class*="PlayerBalanceModal-module__input"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

#custom-modal-close {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-chip) !important;
    color: var(--text-mute) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
}

#custom-modal-close::before {
    content: '✕';
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1;
}

#custom-modal-close:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: var(--danger) !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) [class*="boxFooter"] {
    justify-content: center !important;
}

div[class*="ModalLayout-module__wrapper"]:has([class*="PlayerBalanceModal"]) [class*="boxFooter"] button[class*="accent"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    font-size: 14px !important;
    letter-spacing: 0.12em !important;
}

#custom-balance {
    width: 100% !important;
    align-self: stretch !important;
    margin-top: 14px;
}

#custom-balance .custom-balance__presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

#custom-balance .custom-balance__chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    background: var(--control) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r-chip) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-display) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
}

#custom-balance .custom-balance__chip i {
    position: relative;
    top: 1px;
    font-style: normal;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--gold);
}

#custom-balance .custom-balance__chip.is-bonus {
    border-color: var(--gold-line) !important;
    color: var(--text) !important;
}

#custom-balance .custom-balance__chip:hover {
    border-color: var(--gold) !important;
    color: #fff !important;
}

#custom-balance .custom-balance__chip.is-active {
    background: var(--gold-dim) !important;
    border-color: var(--gold) !important;
    color: #fff !important;
}

#custom-balance .custom-balance__bar {
    position: relative;
    height: 5px;
    margin-top: 14px;
    border-radius: 3px;
    background: var(--control);
    border: 1px solid var(--line);
    overflow: hidden;
}

#custom-balance .custom-balance__bar i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

#custom-balance .custom-balance__bar.is-on i {
    box-shadow: 0 0 10px var(--gold-line);
}

#custom-balance .custom-balance__status {
    margin-top: 9px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-mute);
}

#custom-balance .custom-balance__status.is-on {
    color: var(--gold);
    font-weight: 500;
}

/* =====================================================================
   7. УВЕДОМЛЕНИЯ
   ===================================================================== */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.custom-gs-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    padding: 13px 16px;
    background: var(--panel);
    border: 1px solid var(--line-hi);
    border-left: 3px solid var(--line-hi);
    border-radius: var(--r);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    animation: gsToastSlideIn 0.22s ease forwards;
}

.custom-gs-toast.toast-error   { border-left-color: var(--danger); }
.custom-gs-toast.toast-success { border-left-color: var(--ok); }

.custom-gs-toast.toast-error .toast-icon   { background: var(--danger); }
.custom-gs-toast.toast-success .toast-icon { background: var(--ok); }

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.toast-content {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
}

.toast-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text);
}

.toast-desc {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 3px;
}

@keyframes gsToastSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes gsToastFadeOut {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* =====================================================================
   8. ДИНАМИЧЕСКИЙ COOKIE-БАННЕР
   ===================================================================== */
[class*="Cookie-module__wrapper"] {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 20px;
    margin: 0 !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    max-width: calc(100% - 24px) !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: var(--panel) !important;
    border: 1px solid var(--line-hi) !important;
    border-radius: var(--r) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
    color: var(--text-dim) !important;
    font-size: 13px !important;
    transition: bottom 0.1s ease-out !important;
}

[class*="Cookie-module__wrapper"] svg,
[class*="Cookie-module__icon"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

[class*="Cookie-module__wrapper"] p,
[class*="Cookie-module__text"] {
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    color: var(--text-dim) !important;
}

[class*="Cookie-module__wrapper"] button {
    height: 32px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    border-radius: var(--r) !important;
    background: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.16s ease !important;
    flex-shrink: 0 !important;
}

[class*="Cookie-module__wrapper"] button:hover {
    background: var(--accent-hi) !important;
}

/* =====================================================================
   9. ФУТЕР
   ===================================================================== */
#custom-site-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg) !important;
    border: none !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 20px !important;
    color: var(--text-mute) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

#custom-site-footer > *,
#custom-site-footer > [class*="container"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

#custom-site-footer [class*="ShopFooter-module__text"] {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    color: var(--text-mute) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}

#custom-site-footer [class*="ShopFooter-module__links"],
#custom-site-footer .custom-footer-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#custom-site-footer [class*="ShopFooter-module__links"] > *,
#custom-site-footer .custom-footer-links > * {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

#custom-site-footer [class*="ShopFooter-module__links"] > *:nth-child(2) {
    text-align: center !important;
}

#custom-site-footer [class*="ShopFooter-module__links"] > *:last-child {
    text-align: right !important;
}

@media (max-width: 768px) {
    #custom-site-footer [class*="ShopFooter-module__links"],
    #custom-site-footer .custom-footer-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

#custom-site-footer a {
    color: var(--text-mute) !important;
    font-family: var(--font-display) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.16s ease !important;
}

#custom-site-footer a:hover {
    color: var(--accent-hi) !important;
}

/* =====================================================================
   10. АДАПТИВНОСТЬ
   ===================================================================== */
@media (max-width: 1400px) {
    [class*="Product-module__wrapper"],
    .Product-module__wrapper {
        grid-template-columns: minmax(170px, 210px) minmax(180px, 1fr) 300px !important;
    }
}

@media (max-width: 1200px) {
    main[class*="-module__wrapper"],
    .Index-module__wrapper {
        flex-direction: column !important;
    }

    .Widgets-module__wrapper,
    aside[class*="Widgets-module__wrapper"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .custom-map-preview {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .custom-wipe {
        max-width: 420px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1100px) {
    [class*="Product-module__wrapper"],
    .Product-module__wrapper {
        grid-template-columns: 1fr !important;
        padding: 26px 20px !important;
    }

    [class*="Product-module__wrapper"]::before {
        left: 50%;
        top: 120px;
    }

    .custom-hero-identity {
        padding-right: 0 !important;
        padding-bottom: 22px !important;
    }

    .custom-hero-identity img {
        width: 108px !important;
        height: 108px !important;
    }

    .custom-product-specs,
    .custom-buy-block {
        border-left: none !important;
        border-top: 1px solid var(--line) !important;
        padding: 22px 0 0 0 !important;
    }

    .is-compact .custom-product-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 576px) {
    .custom-product-features {
        grid-template-columns: 1fr !important;
    }

    .is-compact .custom-product-features {
        grid-template-columns: 1fr !important;
    }

    .headerContainer,
    .Header-module__wrapper,
    main.container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .custom-hero-title {
        font-size: 22px !important;
    }

    .custom-embedded-form [class*="productModalFormRow"] {
        flex-direction: column !important;
    }

    .custom-embedded-form [class*="productModalFormRowItem"] {
        width: 100% !important;
    }

    .custom-embedded-form .custom-promo-row {
        flex-direction: column !important;
    }

    .custom-embedded-form .custom-promo-input,
    .custom-embedded-form .custom-promo-btn {
        width: 100% !important;
        flex: none !important;
    }

    .PlayerMenu-module__wrapper #custom-flags-container {
        margin-right: 8px !important;
        gap: 4px !important;
    }

    .flag-icon {
        padding: 3px 5px !important;
    }

    .flag-icon svg {
        width: 18px !important;
        height: 12px !important;
    }

    #custom-site-footer {
        padding: 18px 12px !important;
    }

    .custom-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }
}

/* =====================================================================
   11. ВОРДМАРК В ШАПКЕ
   ===================================================================== */
.custom-wordmark {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: var(--text) !important;
    text-decoration: none !important;
    transition: color 0.16s ease !important;
}

.custom-wordmark::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-image: url("https://s3.twcstorage.ru/72b28901-2369-4e4d-afed-5b0aa700db33/favicons/favicon-32x32.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    flex-shrink: 0;
}

.custom-wordmark:hover {
    color: #fff !important;
}

/* =====================================================================
   12. ПОЛОСА «КАК ПОЛУЧИТЬ»
   ===================================================================== */
.custom-howto {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.custom-howto__step {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 24px 28px;
    border-left: 1px solid var(--line);
    box-sizing: border-box;
}

.custom-howto__step:first-child {
    border-left: none;
}

.custom-howto__num {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.custom-howto__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.custom-howto__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-mute);
}

@media (max-width: 1100px) {
    .custom-howto {
        grid-template-columns: 1fr !important;
    }

    .custom-howto__step {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .custom-howto__step:first-child {
        border-top: none;
    }
}

/* =====================================================================
   12b. ПОЛОСА DISCORD
   ===================================================================== */
.custom-discord {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, auto) 1fr;
    align-items: center;
    gap: 28px;
    width: 100%;
    margin-top: 14px;
    padding: 24px 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-sizing: border-box;
    overflow: hidden;
}

.custom-discord::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--discord-dim) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.custom-discord__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.custom-discord__head {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.custom-discord__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.custom-discord__stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.custom-discord__stat {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border-radius: var(--r-chip);
    background: var(--panel-hi);
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    white-space: nowrap;
}

.custom-discord__stat.is-ready {
    display: inline-flex;
}

.custom-discord__stat i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-hi);
    box-shadow: 0 0 0 3px var(--green-dim);
    flex-shrink: 0;
}

.custom-discord__stat b {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.custom-discord__stat.is-total {
    background: transparent;
    color: var(--text-mute);
}

.custom-discord__perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0 0;
    padding: 0;
}

.custom-discord__perks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: var(--r-chip);
    background: var(--panel-hi);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-dim);
    transition: border-color 0.16s ease, color 0.16s ease;
}

.custom-discord__perks li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--discord-hi);
    flex-shrink: 0;
}

.custom-discord__perks li:hover {
    border-color: var(--discord-line);
    color: var(--text);
}

.custom-discord__btn {
    position: relative;
    z-index: 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    height: 48px;
    padding: 0 28px;
    background: linear-gradient(180deg, var(--discord-hi) 0%, var(--discord) 100%);
    border: 1px solid var(--discord-hi);
    border-radius: var(--r);
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.22);
    transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.custom-discord__btn-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.custom-discord__btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.custom-discord__btn-label {
    line-height: 1;
}

.custom-discord__btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    transform: skewX(-18deg);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.custom-discord__btn:hover::after {
    animation: dsShine 0.75s ease forwards;
}

@keyframes dsShine {
    to { left: 120%; }
}

.custom-discord__btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 8px 26px rgba(88, 101, 242, 0.4);
}

.custom-discord__btn:active {
    filter: brightness(0.94);
    box-shadow: 0 3px 10px rgba(88, 101, 242, 0.3);
}

.custom-discord__btn.is-off {
    display: none;
}

@media (max-width: 1100px) {
    .custom-discord {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 20px;
    }

    .custom-discord__btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 576px) {
    .custom-wordmark {
        font-size: 17px !important;
        margin-right: 0 !important;
        letter-spacing: 0.12em !important;
    }

    .custom-howto__step {
        padding: 20px !important;
    }

    .custom-discord__title {
        font-size: 15px;
    }
}

/* =====================================================================
   13. ДОСТУПНОСТЬ
   ===================================================================== */
:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}