/* ==========================================================================
   ANCIENT — «Molten Gold»
   Тёплый чёрный фон, расплавленное золото, искры.
   Шрифты (подключаются <link> в <head> каждой страницы):
     Sofia Sans Extra Condensed — заголовки, Onest — текст, JetBrains Mono — HUD/цифры.
   Эффекты и анимации, которым нужен JS, — в js/main.js.
   ========================================================================== */

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

:root {
    /* Поверхности */
    --bg: #090705;
    --bg-2: #0e0b08;
    --surface: #14100c;
    --surface-2: #1b1611;

    /* Линии */
    --line: rgba(255, 214, 160, 0.08);
    --line-2: rgba(255, 214, 160, 0.14);
    --line-3: rgba(255, 214, 160, 0.24);
    --line-gold: rgba(247, 169, 40, 0.5);

    /* Текст */
    --text: #f6efe3;
    --text-2: #bcb09f;
    --text-3: #857b6d;

    /* Золото */
    --g-50: #fff8e7;
    --g-100: #ffedc2;
    --g-200: #ffdd92;
    --g-300: #ffc75e;
    --g-400: #f7a928;
    --g-500: #dc8a10;
    --g-600: #a8660b;
    --g-700: #6a3f08;
    --ember: #ff6a1a;
    --ink: #1b1004;

    /* Статусы */
    --ok: #3ee08a;
    --info: #5aa9ff;
    --frost: #8ad8ff;  /* Frozen — цвет льда */
    --test: #ffd23f;   /* Testing / Updating — жёлтый */
    --warn: #ffb547;
    --bad: #ff5a5f;
    --idle: #9a9183;

    /* Градиенты */
    --metal: linear-gradient(100deg, #7a4b0e 0%, #e9a43a 14%, #fff4d6 26%, #f4b54a 38%, #b8741a 52%, #ffe3a0 70%, #f0a83a 84%, #7a4b0e 100%);
    --gold-fill: linear-gradient(180deg, #ffe39a 0%, #f7a928 52%, #cf7c0a 100%);
    --cream: linear-gradient(180deg, #fffaf0 0%, #f5e7cd 55%, #dcae62 100%);
    --panel: linear-gradient(180deg, rgba(255, 230, 190, 0.034), rgba(255, 230, 190, 0.012));

    /* Шрифты */
    --font-display: 'Sofia Sans Extra Condensed', 'Oswald', 'Arial Narrow', sans-serif;
    --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

    /* Геометрия и движение */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    /* Иконки (data URI) */
    --i-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc75e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
    --i-arrow-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1004' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
    --i-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc75e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
    --i-cross: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a85' stroke-width='3' stroke-linecap='round'><path d='M7 7l10 10M17 7L7 17'/></svg>");
    --i-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc75e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    --i-zoom: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffdd92' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M20 20l-4.2-4.2M11 8.4v5.2M8.4 11h5.2'/></svg>");
    --m-warn: 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' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.5 2.5 20h19z'/><path d='M12 10v4.5M12 17.3v.2'/></svg>");
    --m-info: 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' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5.5M12 7.8v.2'/></svg>");

    /* Совместимость со старыми именами (инлайн-стили в разметке) */
    --accent: var(--g-300);
    --accent-hover: var(--g-200);
    --accent-gold: var(--g-300);
    --text-primary: var(--text);
    --text-secondary: var(--text-2);
    --text-muted: var(--text-3);
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-2);
    --bg-card: var(--surface);
    --border: var(--line-2);
    --border-strong: var(--line);
    --gradient: var(--gold-fill);
}

/* ==========================================================================
   База
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color-scheme: dark;
    scrollbar-color: var(--g-600) #0b0806;
}

body {
    min-height: 100vh;
    overflow-x: clip;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1100px 520px at 50% -180px, rgba(247, 169, 40, 0.1), transparent 70%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Плёночное зерно поверх всего — убирает «пластиковость» градиентов */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .78 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 180px 180px;
}

img,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

iframe {
    max-width: 100%;
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

input,
select,
textarea {
    font-size: 16px; /* iOS не зумит поля ввода */
    -webkit-appearance: none;
    appearance: none;
}

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

strong,
b {
    font-weight: 650;
}

::selection {
    background: var(--g-400);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--g-300);
    outline-offset: 3px;
    border-radius: 6px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0b0806;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--g-500), var(--g-700));
    border: 2px solid #0b0806;
    border-radius: 10px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Ключевые кадры
   ========================================================================== */

@keyframes metalFlow {
    from { background-position: 0% 0; }
    to { background-position: -200% 0; }
}

@keyframes glint {
    0%, 58% { background-position: 160% 0, 0 0; }
    86%, 100% { background-position: -60% 0, 0 0; }
}

@keyframes angleSpin {
    to { --angle: 360deg; }
}

@keyframes spin {
    to { rotate: 360deg; }
}

@keyframes fadeUp {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes lineUp {
    to { translate: 0 0; }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(62, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 224, 138, 0); }
}

@keyframes ringPulse {
    0% { opacity: 0.9; scale: 0.85; }
    100% { opacity: 0; scale: 1.6; }
}

@keyframes cardIn {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -3%, 0) scale(1.06); }
}

@keyframes sheen {
    0% { left: -60%; }
    55%, 100% { left: 140%; }
}

@keyframes ticker {
    to { translate: -50% 0; }
}

@keyframes blip {
    0% { opacity: 1; scale: 1.6; }
    12% { opacity: 0.95; scale: 1; }
    60% { opacity: 0.35; }
    100% { opacity: 0.16; }
}

@keyframes blipLabel {
    0% { opacity: 1; }
    45% { opacity: 0.5; }
    100% { opacity: 0.14; }
}

@keyframes hudBar {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@keyframes glitch {
    0%, 90%, 100% { translate: 0 0; clip-path: none; }
    91% { translate: -7px 2px; clip-path: inset(12% 0 52% 0); }
    93% { translate: 6px -2px; clip-path: inset(58% 0 10% 0); }
    95% { translate: -3px 0; clip-path: inset(32% 0 36% 0); }
    97% { translate: 2px 1px; clip-path: inset(0 0 80% 0); }
}

/* ==========================================================================
   Общие элементы: металлический текст, живая точка, вспышки
   ========================================================================== */

.text-metal {
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 9s linear infinite;
}

.live-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: livePulse 2s infinite;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: var(--header-h);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Без backdrop-filter: размытие поверх играющего видео пересчитывается каждый кадр */
    background: linear-gradient(180deg, rgba(9, 7, 5, 0.97), rgba(10, 8, 6, 0.9));
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

.header.is-scrolled::before {
    opacity: 1;
}

/* Полоса прогресса прокрутки */
.header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    background: linear-gradient(90deg, var(--g-700), var(--g-400) 60%, var(--g-50));
    box-shadow: 0 0 12px rgba(247, 169, 40, 0.8);
    pointer-events: none;
}

.header > .container {
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(247, 169, 40, 0.5));
    transition: transform 0.7s var(--ease);
}

.logo:hover .logo-mark {
    transform: rotate(-10deg) scale(1.08);
}

.logo-text,
.footer-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    background:
        linear-gradient(100deg, transparent 42%, rgba(255, 252, 240, 0.95) 50%, transparent 58%) no-repeat,
        var(--metal);
    background-size: 250% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glint 6.5s var(--ease-io) infinite;
}

.logo-text {
    font-size: 27px;
    margin-right: -0.24em;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--g-300), transparent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.nav-link:hover {
    color: var(--g-100);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link.is-active {
    color: var(--g-200);
}

.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 12px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 230, 190, 0.03);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font: 600 12px/1 var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.25s, background-color 0.25s;
}

.lang-link:hover {
    color: var(--g-100);
}

.lang-link.active {
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow: 0 0 16px -2px rgba(247, 169, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Бургер */
.menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 230, 190, 0.04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 2px;
    background: var(--g-200);
    transition: transform 0.45s var(--ease), opacity 0.3s, top 0.45s var(--ease), right 0.45s var(--ease);
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; right: 19px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; right: 13px; }
.menu-toggle.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-overlay {
    display: none;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    font: 700 15px/1.1 var(--font-text);
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.35s var(--ease), translate 0.3s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s, background-color 0.3s, color 0.3s;
}

.btn svg {
    flex-shrink: 0;
    transition: transform 0.35s var(--ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn-lg {
    min-height: 58px;
    padding: 0 32px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-primary,
.price-button,
.partnership-cta-button,
.panel-promo-btn {
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(120, 60, 0, 0.35),
        0 0 0 1px rgba(255, 200, 110, 0.45),
        0 12px 32px -12px rgba(247, 169, 40, 0.75);
}

/* Блик, пробегающий по золотой кнопке */
.btn-primary::after,
.price-button::after,
.partnership-cta-button::after,
.panel-promo-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s var(--ease);
    pointer-events: none;
}

.btn-primary:hover::after,
.price-button:hover::after,
.partnership-cta-button:hover::after,
.panel-promo-btn:hover::after {
    left: 135%;
}

.btn-shine::after {
    animation: sheen 4.5s var(--ease-io) 2s infinite;
}

.btn-primary:hover,
.price-button:hover,
.partnership-cta-button:hover,
.panel-promo-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(120, 60, 0, 0.35),
        0 0 0 1px rgba(255, 214, 140, 0.7),
        0 18px 44px -12px rgba(247, 169, 40, 0.95),
        0 0 40px -6px rgba(247, 169, 40, 0.45);
}

.btn-primary:hover svg,
.price-button:hover svg,
.partnership-cta-button:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    color: var(--g-100);
    background: rgba(18, 13, 9, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-3);
}

.btn-secondary:hover {
    color: #fff;
    background: rgba(247, 169, 40, 0.08);
    box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 32px -8px rgba(247, 169, 40, 0.55);
    transform: translateY(-2px);
}

.btn-disabled,
.price-button.btn-disabled,
.price-button[disabled] {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.7);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ==========================================================================
   Заголовки страниц и секций
   ========================================================================== */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 30px 0 0;
    margin-bottom: 20px;
    font: 500 11.5px/1.5 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.breadcrumbs a {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--g-200);
}

.breadcrumb-separator {
    color: var(--g-600);
    user-select: none;
}

.breadcrumb-current {
    color: var(--g-200);
}

.page-title,
.section-title,
.article-title,
.partnership-cta-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.003em;
    text-transform: uppercase;
    background: var(--cream);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow-wrap: break-word;
    padding-top: 0.12em; /* диакритика (Ё, Й) не выходит за зону заливки */
}

.page-title {
    max-width: 18ch;
    margin: 0 0 48px;
    font-size: clamp(50px, 7vw, 100px);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 40px;
    margin-bottom: 44px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font: 500 12px/1.2 var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g-300);
}

.section-kicker::before {
    content: '';
    width: 40px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--g-400), transparent);
}

.section-title {
    margin: 0;
    font-size: clamp(48px, 6.6vw, 96px);
}

/* Подзаголовки (страница продавцов) */
.section-subtitle {
    margin: 76px 0 26px;
    font: 900 clamp(38px, 5vw, 64px)/0.92 var(--font-display);
    letter-spacing: -0.003em;
    text-transform: uppercase;
    color: var(--text);
}

.section-subtitle::before {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--gold-fill);
    box-shadow: 0 0 12px rgba(247, 169, 40, 0.6);
}

.wholesale-section > .section-subtitle {
    margin-top: 8px;
}

/* Свечение вверху внутренних страниц. Без isolation: иначе модальная
   галерея товара (z-index 10000) оказывается под шапкой и кнопкой «наверх». */
.product-page,
.status-page,
.guarantees-page,
.errors-page,
.agreement-page,
.contacts-page {
    position: relative;
    /* flow-root: верхний margin первого блока (плашка статуса товара) не «проваливается»
       наружу и не сдвигает свечение страницы вниз — иначе под шапкой тёмная полоса */
    display: flow-root;
    padding: 0 0 110px;
}

.product-page::before,
.status-page::before,
.guarantees-page::before,
.errors-page::before,
.agreement-page::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: 50%;
    top: calc(var(--header-h) * -1);
    width: min(1400px, 140%);
    height: 620px;
    translate: -50% 0;
    background:
        radial-gradient(50% 60% at 30% 0%, rgba(247, 169, 40, 0.12), transparent 70%),
        radial-gradient(40% 50% at 80% 10%, rgba(255, 106, 26, 0.07), transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   Hero (главная)
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 760px;
    min-height: min(100svh, 1000px);
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + 24px) 0 120px;
    overflow: hidden;
    background: #070504;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: -5;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    /* Золотая тонировка «запечена» в сам файл (backvideo/ancientdf-gold.mp4):
       CSS filter на видео пересчитывается каждый кадр и давал лаги */
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(60% 55% at 74% 45%, rgba(247, 169, 40, 0.14), transparent 70%),
        radial-gradient(110% 70% at 50% 125%, rgba(255, 106, 26, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(7, 5, 4, 0.7) 0%, rgba(7, 5, 4, 0.12) 28%, rgba(7, 5, 4, 0.28) 70%, var(--bg) 100%),
        linear-gradient(90deg, rgba(7, 5, 4, 0.86) 0%, rgba(7, 5, 4, 0.42) 45%, rgba(7, 5, 4, 0.05) 100%);
}

.hero-rays {
    position: absolute;
    z-index: -3;
    left: 72%;
    top: 46%;
    width: 1500px;
    height: 1500px;
    translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 205, 130, 0.07) 0deg 3deg, transparent 3deg 15deg);
    -webkit-mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.5) 30%, transparent 62%);
    mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.5) 30%, transparent 62%);
    pointer-events: none;
}

.hero-embers {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 9px 16px 9px 13px;
    border-radius: 999px;
    font: 500 11.5px/1.2 var(--font-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--g-100);
    background: rgba(16, 12, 8, 0.82);
    box-shadow: inset 0 0 0 1px var(--line-2);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero-title {
    margin-bottom: 26px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(56px, 7.2vw, 116px);
    line-height: 0.86;
    letter-spacing: -0.004em;
    text-transform: uppercase;
    color: var(--text);
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding: 0.18em 0 0.04em;
    margin: -0.18em 0 -0.04em;
}

/* Запас сверху, чтобы точки «Ё» попадали в зону градиентной заливки */
.hero-title .line > span {
    display: inline-block;
    padding-top: 0.16em;
    margin-top: -0.16em;
    translate: 0 108%;
    animation: lineUp 1.15s var(--ease) forwards;
    animation-delay: 0.18s;
    background: var(--cream);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title .line:nth-child(2) > span { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.42s; }

/* Бренд в заголовке — расплавленный металл с бликом.
   Свечение — фоном строки: filter на тексте с background-clip:text
   в Chrome рисует тёмную подложку. */
.hero-title .line-brand {
    width: fit-content;
    background: radial-gradient(closest-side, rgba(247, 169, 40, 0.24), rgba(247, 169, 40, 0.07) 62%, transparent);
}

.hero-title .line-brand > span {
    font-size: 1.22em;
    letter-spacing: 0.035em;
    background:
        linear-gradient(100deg, transparent 42%, rgba(255, 252, 240, 0.95) 50%, transparent 58%) no-repeat,
        var(--metal);
    background-size: 250% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: lineUp 1.15s var(--ease) forwards, glint 5.5s var(--ease-io) 1.4s infinite;
}

.hero-title .line-brand:nth-child(1) > span { animation-delay: 0.18s, 1.4s; }
.hero-title .line-brand:nth-child(2) > span { animation-delay: 0.3s, 1.4s; }
.hero-title .line-brand:nth-child(3) > span { animation-delay: 0.42s, 1.4s; }

.hero-lead {
    max-width: 520px;
    margin-bottom: 36px;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
    color: var(--text-2);
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.6s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.75s forwards;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 0;
    opacity: 0;
    animation: fadeUp 1s var(--ease) 0.9s forwards;
}

.hero-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 0 28px;
    border-left: 1px solid var(--line-2);
}

.hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stat dd {
    font: 800 46px/0.9 var(--font-display);
    letter-spacing: 0.01em;
    color: var(--g-200);
    text-shadow: 0 0 24px rgba(247, 169, 40, 0.35);
    font-variant-numeric: tabular-nums;
}

.hero-stat dt {
    font: 500 10.5px/1.3 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* Радар */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    padding: 34px;
    opacity: 0;
    animation: fadeUp 1.6s var(--ease) 0.35s forwards;
}

.radar {
    position: relative;
    width: min(500px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.8s var(--ease);
    background: radial-gradient(circle closest-side, rgba(247, 169, 40, 0.14), rgba(30, 20, 10, 0.6) 55%, rgba(12, 9, 6, 0.88) 97%, transparent 100%);
    box-shadow:
        0 0 0 1px rgba(255, 205, 130, 0.24),
        0 0 0 12px rgba(255, 205, 130, 0.025),
        0 0 140px -20px rgba(247, 169, 40, 0.5),
        inset 0 0 90px rgba(247, 169, 40, 0.1);
}

/* Кольца и перекрестие */
.radar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle closest-side, transparent 0 calc(25% - 1px), rgba(255, 205, 130, 0.17) calc(25% - 1px) 25%),
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 205, 130, 0.16) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(255, 205, 130, 0.16) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* Шкала по краю */
.radar::after {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 205, 130, 0.55) 0 0.6deg, transparent 0.6deg 7.5deg);
    -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    mask: radial-gradient(circle closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    animation: spin 150s linear infinite reverse;
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 245deg, rgba(247, 169, 40, 0.05) 290deg, rgba(255, 199, 94, 0.3) 352deg, rgba(255, 240, 205, 0.85) 359.4deg, transparent 360deg);
    animation: spin 4.8s linear infinite;
}

.radar-sweep::after {
    content: '';
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    width: 2px;
    height: 50%;
    border-radius: 2px;
    background: linear-gradient(to top, rgba(255, 240, 205, 0), rgba(255, 240, 205, 0.95));
    box-shadow: 0 0 14px rgba(255, 214, 140, 0.9);
}

.radar-blips {
    position: absolute;
    inset: 0;
}

.radar-blip {
    position: absolute;
    left: var(--x);
    top: var(--y);
}

.radar-blip i {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g-100);
    box-shadow: 0 0 10px 2px rgba(255, 199, 94, 0.85), 0 0 26px 6px rgba(247, 169, 40, 0.35);
    opacity: 0.16;
    animation: blip 4.8s linear infinite;
    animation-delay: var(--d);
}

.radar-blip b {
    position: absolute;
    left: 10px;
    top: -6px;
    font: 600 10px/1 var(--font-mono);
    letter-spacing: 0.12em;
    color: var(--g-100);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(247, 169, 40, 0.8);
    opacity: 0.14;
    animation: blipLabel 4.8s linear infinite;
    animation-delay: var(--d);
}

.radar-core {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 169, 40, 0.25), rgba(12, 9, 6, 0.9) 70%);
    box-shadow: 0 0 0 1px rgba(255, 205, 130, 0.35), 0 0 40px rgba(247, 169, 40, 0.45);
}

.radar-core::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(247, 169, 40, 0.6);
    animation: ringPulse 2.4s var(--ease) infinite;
}

.radar-core svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(247, 169, 40, 0.7));
}

/* HUD-подписи вокруг радара */
.radar-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hud {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 500 10.5px/1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 221, 146, 0.7);
}

.hud b {
    color: var(--g-200);
    font-weight: 700;
}

.hud::before {
    content: '';
    width: 14px;
    height: 14px;
    border: solid rgba(247, 169, 40, 0.6);
    border-width: 0;
}

.hud--tl { top: 0; left: 0; }
.hud--tr { top: 0; right: 0; }
.hud--bl { bottom: 0; left: 0; }
.hud--br { bottom: 0; right: 0; }

/* У правых подписей уголок — справа от текста */
.hud--tr::before,
.hud--br::before {
    order: 2;
}

.hud--tl::before { border-top-width: 1px; border-left-width: 1px; }
.hud--tr::before { border-top-width: 1px; border-right-width: 1px; }
.hud--bl::before { border-bottom-width: 1px; border-left-width: 1px; }
.hud--br::before { border-bottom-width: 1px; border-right-width: 1px; }

.hud-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 10px;
}

.hud-bars i {
    width: 3px;
    background: var(--g-300);
    animation: hudBar 1.6s ease-in-out infinite;
}

.hud-bars i:nth-child(1) { height: 3px; }
.hud-bars i:nth-child(2) { height: 5px; animation-delay: 0.15s; }
.hud-bars i:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.hud-bars i:nth-child(4) { height: 10px; animation-delay: 0.45s; }

/* Кнопка паузы видео */
.video-control-btn {
    position: absolute;
    right: 24px;
    bottom: 84px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--g-100);
    background: rgba(16, 12, 8, 0.78);
    box-shadow: inset 0 0 0 1px var(--line-2);
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, scale 0.3s var(--ease);
}

.video-control-btn:hover {
    background: rgba(247, 169, 40, 0.15);
    box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 24px rgba(247, 169, 40, 0.4);
    scale: 1.06;
}

.video-control-btn svg {
    width: 16px;
    height: 16px;
}

.video-control-btn .ico-play,
.video-control-btn.is-paused .ico-pause {
    display: none;
}

.video-control-btn.is-paused .ico-play {
    display: block;
}

/* ==========================================================================
   Бегущая строка с играми
   ========================================================================== */

.ticker {
    position: relative;
    z-index: 3;
    width: 112%;
    margin: -46px 0 0 -6%;
    transform: rotate(-2deg);
}

.ticker-band {
    overflow: hidden;
    padding: 16px 0;
    background: linear-gradient(180deg, #19120a, #0e0a07);
    border-block: 1px solid rgba(247, 169, 40, 0.38);
    box-shadow: 0 0 46px -10px rgba(247, 169, 40, 0.4), 0 24px 50px -20px rgba(0, 0, 0, 0.85);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 55s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font: 900 clamp(26px, 3.2vw, 40px)/1 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 214, 150, 0.4);
}

.ticker-item:nth-child(even) {
    -webkit-text-stroke: 0;
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.ticker-item::after {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    rotate: 45deg;
    background: var(--g-400);
    box-shadow: 0 0 12px var(--g-400);
}

/* ==========================================================================
   Каталог
   ========================================================================== */

.products-section {
    position: relative;
    padding: 130px 0 110px;
}

.products-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(55% 40% at 15% 8%, rgba(247, 169, 40, 0.07), transparent 70%);
    pointer-events: none;
}

.catalog-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.catalog-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(340px, 100%);
}

.catalog-search svg {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--g-400);
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 46px;
    border: 0;
    border-radius: 14px;
    color: var(--text);
    font: 500 15.5px var(--font-text);
    background: rgba(255, 230, 190, 0.035);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow 0.3s, background-color 0.3s;
}

.catalog-search input::placeholder {
    color: var(--text-3);
}

.catalog-search input:focus {
    outline: none;
    background: rgba(255, 230, 190, 0.06);
    box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 0 4px rgba(247, 169, 40, 0.12), 0 0 34px -8px rgba(247, 169, 40, 0.45);
}

.catalog-search input::-webkit-search-cancel-button {
    filter: sepia(1) saturate(5) hue-rotate(-12deg);
    cursor: pointer;
}

.catalog-count {
    font: 500 11.5px/1.3 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.catalog-count b {
    color: var(--g-200);
    font-weight: 700;
}

.catalog-empty {
    display: none;
    padding: 70px 0 20px;
    text-align: center;
    font: 500 13px/1.6 var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--text-3);
}

.products-grid.is-empty + .catalog-empty {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, #17120d, #0f0b08);
    box-shadow: 0 0 0 1px var(--line), 0 22px 44px -26px rgba(0, 0, 0, 0.9);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform 0.6s var(--ease), box-shadow 0.45s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.product-card.is-tilting {
    transition: transform 0.12s linear, box-shadow 0.45s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.product-card:hover {
    --lift: -6px;
    box-shadow:
        0 0 0 1px rgba(255, 190, 90, 0.5),
        0 32px 64px -26px rgba(247, 169, 40, 0.5),
        0 0 44px -12px rgba(247, 169, 40, 0.38);
}

.product-card.is-hidden {
    display: none;
}

/* Бегущий световой контур при наведении */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 0deg 210deg, rgba(247, 169, 40, 0.15) 240deg, var(--g-300) 300deg, #fff3d0 328deg, var(--g-400) 345deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    animation: angleSpin 3.2s linear infinite paused;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

/* Затемнение низа обложки */
.product-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    top: 0;
    aspect-ratio: 3 / 2;
    background: linear-gradient(180deg, rgba(9, 7, 5, 0) 62%, rgba(15, 11, 8, 0.7) 100%);
    pointer-events: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #0e0a07;
    filter: saturate(0.92) brightness(0.92);
    transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.product-card:hover .product-image {
    transform: scale(1.07);
    filter: saturate(1.08) brightness(1.03);
}

/* Блик, следующий за курсором (элемент добавляет main.js) */
.card-glare {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 236, 196, 0.22), transparent 42%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.product-card:hover .card-glare,
.product-cover:hover .card-glare {
    opacity: 1;
}

.product-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 18px;
}

.product-title {
    flex: 1 1 100%;
    font: 800 25px/1.02 var(--font-display);
    letter-spacing: 0.012em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s;
}

.product-card:hover .product-title {
    color: var(--g-100);
}

.product-price {
    padding: 8px 11px 7px;
    border-radius: 9px;
    font: 600 12.5px/1 var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--g-200);
    background: rgba(247, 169, 40, 0.08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.26);
    font-variant-numeric: tabular-nums;
}

.product-info::after {
    content: '';
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--i-arrow) center / 16px no-repeat;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: background-color 0.35s, box-shadow 0.35s, rotate 0.5s var(--ease);
}

.product-card:hover .product-info::after {
    rotate: -45deg;
    background-image: var(--i-arrow-dark);
    background-color: var(--g-400);
    box-shadow: 0 0 22px rgba(247, 169, 40, 0.65);
}

/* Живой статус на карточке (добавляет main.js) */
.card-status {
    --dot: var(--idle);
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    font: 600 10px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #efe7da;
    background: rgba(9, 7, 5, 0.74);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeUp 0.6s var(--ease) both;
}

.card-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 0 9px var(--dot);
}

.card-status--undetected,
.card-status--testing,
.card-status--frozen {
    color: var(--dot);
}

.card-status--undetected { --dot: var(--ok); }
.card-status--testing { --dot: var(--test); }
.card-status--frozen { --dot: var(--frost); }

.card-status--undetected::before {
    animation: livePulse 2s infinite;
}

/* ==========================================================================
   Статья на главной
   ========================================================================== */

.info-section {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(247, 169, 40, 0.025), transparent 30%);
}

.info-article {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.article-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.article-title {
    font-size: clamp(42px, 4.8vw, 72px);
}

.article-content {
    counter-reset: art;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-2);
}

.article-content > p:first-child {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text);
}

.article-content p {
    margin-bottom: 18px;
}

.article-content strong {
    color: var(--text);
}

.article-content h3 {
    counter-increment: art;
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 64px 0 20px;
    font: 800 clamp(28px, 2.7vw, 36px)/1.02 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.article-content h3::before {
    content: counter(art, decimal-leading-zero);
    flex-shrink: 0;
    padding: 6px 8px;
    border-radius: 6px;
    font: 500 12px/1 var(--font-mono);
    color: var(--g-300);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38);
    translate: 0 -7px;
}

.article-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 8px;
    padding: 0;
    list-style: none;
}

ul.article-list li {
    position: relative;
    padding-left: 26px;
}

ul.article-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    rotate: 45deg;
    background: var(--gold-fill);
    box-shadow: 0 0 10px rgba(247, 169, 40, 0.6);
}

ol.article-list {
    counter-reset: step;
    gap: 10px;
}

ol.article-list li {
    counter-increment: step;
    position: relative;
    padding: 16px 18px 16px 66px;
    border-radius: 14px;
    color: var(--text);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
}

ol.article-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 50%;
    translate: 0 -50%;
    font: 900 28px/1 var(--font-display);
    color: var(--g-300);
}

.article-note,
.errors-video-note,
.support-note,
.wholesale-abuse-warning {
    position: relative;
    padding: 18px 22px 18px 58px;
    border-radius: 16px;
    background: rgba(255, 230, 190, 0.025);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.article-note::before,
.errors-video-note::before,
.support-note::before,
.wholesale-abuse-warning::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 19px;
    width: 22px;
    height: 22px;
    background: var(--g-300);
    -webkit-mask: var(--m-info) center / contain no-repeat;
    mask: var(--m-info) center / contain no-repeat;
}

.article-note,
.errors-video-note,
.support-note--warn {
    background: rgba(255, 181, 71, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.32);
}

.article-note::before,
.errors-video-note::before,
.support-note--warn::before {
    background: var(--warn);
    -webkit-mask-image: var(--m-warn);
    mask-image: var(--m-warn);
}

.article-note {
    margin-top: 28px;
    color: var(--text-2);
}

.article-note strong,
.errors-video-note strong,
.support-note--warn strong {
    color: var(--warn);
}

/* ==========================================================================
   Поддержка / контакты
   ========================================================================== */

.support-section {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

/* Страница контактов: секция поддержки — основной контент */
section.support-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.support-content {
    width: 100%;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.support-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.5s var(--ease), box-shadow 0.45s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

/* Подсветка под курсором (координаты ставит main.js) */
.support-card::after,
.guarantee-card::after,
.partnership-step::after,
.price-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(247, 169, 40, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
}

.support-card:hover::after,
.guarantee-card:hover::after,
.partnership-step:hover::after,
.price-item:hover::after {
    opacity: 1;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38), 0 26px 54px -30px rgba(247, 169, 40, 0.55);
}

.support-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 15px;
    font-size: 24px;
    line-height: 1;
    color: var(--g-300);
    background: radial-gradient(circle at 30% 20%, rgba(247, 169, 40, 0.24), rgba(247, 169, 40, 0.05));
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.32), 0 0 26px -8px rgba(247, 169, 40, 0.6);
    transition: transform 0.6s var(--ease), box-shadow 0.4s;
}

.support-card:hover .support-icon {
    transform: rotate(-6deg) scale(1.06);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.55), 0 0 34px -6px rgba(247, 169, 40, 0.8);
}

.support-icon svg {
    width: 25px;
    height: 25px;
}

.support-card-title {
    margin-bottom: 10px;
    font: 800 27px/1.02 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.support-card-text {
    flex-grow: 1;
    margin-bottom: 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-2);
}

.support-card-text strong {
    color: var(--g-100);
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--g-100);
    text-decoration: none;
    overflow-wrap: anywhere;
    background: rgba(247, 169, 40, 0.06);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.3);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.35s, translate 0.3s var(--ease);
}

.support-link::after {
    content: '';
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background: var(--i-arrow) center / contain no-repeat;
    transition: transform 0.35s var(--ease);
}

.support-link:hover {
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow: 0 12px 30px -10px rgba(247, 169, 40, 0.75);
}

.support-link:hover::after {
    background-image: var(--i-arrow-dark);
    transform: translateX(3px);
}

.support-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    font: 600 10.5px/1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--g-200);
    background: rgba(247, 169, 40, 0.1);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38);
}

.support-card-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    animation: livePulse 2s infinite;
}

/* Главная карточка — бот поддержки */
.support-card--primary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        'icon badge link'
        'icon title link'
        'icon text link';
    column-gap: 30px;
    align-items: center;
    padding: 38px 42px;
    background:
        radial-gradient(80% 140% at 0% 0%, rgba(247, 169, 40, 0.17), transparent 60%),
        linear-gradient(180deg, #19130d, #110d09);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.3), 0 34px 80px -44px rgba(247, 169, 40, 0.6);
}

.support-card--primary::before,
.wholesale-summary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 0deg 250deg, var(--g-300) 315deg, #fff3d0 335deg, var(--g-400) 348deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: angleSpin 6s linear infinite;
    pointer-events: none;
}

.support-card--primary:hover {
    transform: translateY(-3px);
}

.support-card--primary .support-icon {
    grid-area: icon;
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 24px;
}

.support-card--primary .support-icon svg {
    width: 42px;
    height: 42px;
}

.support-card--primary .support-card-badge {
    grid-area: badge;
    justify-self: start;
}

.support-card--primary .support-card-title {
    grid-area: title;
    font-size: clamp(34px, 3.4vw, 44px);
    margin-bottom: 8px;
}

.support-card--primary .support-card-text {
    grid-area: text;
    max-width: 660px;
    margin: 0;
}

.support-card--primary .support-link {
    grid-area: link;
    min-height: 56px;
    padding: 0 28px;
    font-size: 15px;
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 34px -12px rgba(247, 169, 40, 0.8);
}

.support-card--primary .support-link::after {
    background-image: var(--i-arrow-dark);
}

.support-note p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-2);
}

.support-note strong {
    color: var(--g-100);
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
    position: relative;
    overflow: hidden;
    padding: 92px 0 0;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(70% 90% at 50% 120%, rgba(247, 169, 40, 0.13), transparent 60%),
        linear-gradient(180deg, rgba(10, 8, 6, 0.4), rgba(12, 9, 7, 0.9));
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: min(760px, 80%);
    height: 1px;
    translate: -50% 0;
    background: linear-gradient(90deg, transparent, var(--g-400), transparent);
    box-shadow: 0 0 18px var(--g-400);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 56px;
}

.footer-title {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 32px;
}

.footer-text {
    max-width: 280px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-2);
}

.footer-subtitle {
    margin-bottom: 20px;
    font: 500 11.5px/1.3 var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g-300);
}

.footer-links {
    display: grid;
    gap: 11px;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: 14.5px;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--g-300);
    transition: width 0.35s var(--ease), margin 0.35s var(--ease);
}

.footer-links a:hover {
    color: var(--g-100);
}

.footer-links a:hover::before {
    width: 14px;
    margin-right: 8px;
}

.footer-bottom {
    display: grid;
    gap: 14px;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-3);
}

.footer-bottom > p:first-child {
    font: 500 11.5px/1.4 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

.footer-disclaimer {
    max-width: 980px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-3);
}

.footer-contact a {
    color: var(--g-200);
    text-decoration: none;
    border-bottom: 1px solid rgba(247, 169, 40, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.footer-contact a:hover {
    color: var(--g-100);
    border-color: var(--g-300);
}

/* Огромный вордмарк внизу */
.footer-wordmark {
    display: block;
    margin-top: -6px;
    text-align: center;
    font: 900 clamp(110px, 25vw, 400px)/0.74 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 214, 150, 0.13);
    background:
        linear-gradient(100deg, transparent 44%, rgba(255, 236, 196, 0.5) 50%, transparent 56%) no-repeat,
        linear-gradient(180deg, rgba(247, 169, 40, 0) 25%, rgba(247, 169, 40, 0.22) 100%);
    background-size: 250% 100%, 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: glint 9s var(--ease-io) infinite;
    translate: 0 16%;
    user-select: none;
    pointer-events: none;
}

/* Наверх — с кольцом прогресса */
.scroll-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: var(--g-100);
    cursor: pointer;
    background: conic-gradient(var(--g-400) calc(var(--progress, 0) * 1turn), rgba(255, 230, 190, 0.1) 0);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9), 0 0 24px -8px rgba(247, 169, 40, 0.5);
    opacity: 0;
    visibility: hidden;
    translate: 0 14px;
    transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), visibility 0s linear 0.4s;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #110d09;
    transition: background-color 0.3s;
}

.scroll-to-top svg {
    position: relative;
    width: 20px;
    height: 20px;
    transition: translate 0.35s var(--ease);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), visibility 0s;
}

.scroll-to-top:hover {
    color: var(--ink);
}

.scroll-to-top:hover::before {
    background: var(--g-400);
}

.scroll-to-top:hover svg {
    translate: 0 -2px;
}

/* ==========================================================================
   Глобальные эффекты (элементы создаёт main.js)
   ========================================================================== */

.fx-embers {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, rgba(247, 169, 40, 0.11), rgba(247, 169, 40, 0.035) 45%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    will-change: transform;
}

.cursor-glow.is-on {
    opacity: 1;
}

/* Появление при прокрутке: элемент скрыт до пересечения, саму анимацию
   запускает main.js через Web Animations — так она не перебивает transition
   и собственные animation элементов (наклон карточек, бегущие контуры). */
.reveal {
    opacity: 0;
}

/* Мобильная панель «Купить» на странице товара */
.buy-bar {
    display: none;
}

/* ==========================================================================
   Страница товара
   ========================================================================== */

#product-content {
    counter-reset: psec;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 140px 20px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--g-200);
}

.loading::before {
    content: '';
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 270deg, var(--g-300) 345deg, #fff2cc 360deg);
    -webkit-mask: radial-gradient(circle closest-side, transparent 72%, #000 74%);
    mask: radial-gradient(circle closest-side, transparent 72%, #000 74%);
    animation: spin 0.9s linear infinite;
}

.error {
    padding: 110px 20px;
    text-align: center;
    font-size: 18px;
    color: var(--text-2);
}

.product-header {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    margin: 8px 0 64px;
}

.product-cover {
    position: relative;
    border-radius: 24px;
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.7s var(--ease);
    animation: fadeUp 1s var(--ease) both;
}

.product-cover.is-tilting {
    transition: transform 0.12s linear;
}

.product-cover::before {
    content: '';
    position: absolute;
    inset: 10% 8% -8%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(247, 169, 40, 0.5), transparent);
    filter: blur(44px);
    pointer-events: none;
}

.product-main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(247, 169, 40, 0.32), 0 44px 90px -34px rgba(0, 0, 0, 0.95);
}

.product-header-info {
    min-width: 0;
    animation: fadeUp 1s var(--ease) 0.15s both;
}

.product-main-title {
    margin-bottom: 24px;
    font: 900 clamp(54px, 7vw, 112px)/0.86 var(--font-display);
    letter-spacing: -0.004em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 10s linear infinite;
}

.product-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border-radius: 999px;
    font: 600 11.5px/1.2 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g-100);
    background: rgba(247, 169, 40, 0.08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.34);
}

.product-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ok);
    animation: livePulse 2s infinite;
}

.product-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
    margin-top: 34px;
}

/* Продажи приостановлены (кнопки тарифов заблокированы) — гасим и главную кнопку */
#product-content:has(.price-button.btn-disabled) .product-header-meta .btn {
    opacity: 0.45;
    filter: grayscale(0.6);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

#product-content:has(.price-button.btn-disabled) .product-header-meta .btn::after {
    content: none;
}

.product-from {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-from span {
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.product-from b {
    font: 900 50px/0.9 var(--font-display);
    color: var(--g-200);
    text-shadow: 0 0 26px rgba(247, 169, 40, 0.4);
}

.product-section {
    position: relative;
    counter-increment: psec;
    margin-bottom: 26px;
    padding: clamp(22px, 3.4vw, 42px);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

/* HUD-уголки */
.product-section::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0.6;
    background:
        linear-gradient(var(--g-400), var(--g-400)) top left / 14px 1px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) top left / 1px 14px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) top right / 14px 1px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) top right / 1px 14px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) bottom left / 14px 1px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) bottom left / 1px 14px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) bottom right / 14px 1px no-repeat,
        linear-gradient(var(--g-400), var(--g-400)) bottom right / 1px 14px no-repeat;
}

.purchase-section {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(247, 169, 40, 0.13), transparent 55%),
        linear-gradient(180deg, #17120c, #100c08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.3), 0 44px 100px -56px rgba(247, 169, 40, 0.6);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 26px;
    font: 800 clamp(32px, 3.4vw, 46px)/1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.section-heading::before {
    content: counter(psec, decimal-leading-zero);
    flex-shrink: 0;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.1em;
    color: var(--g-300);
    translate: 0 -10px;
}

/* Тарифы */
.prices-block {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.price-item {
    position: relative;
    isolation: isolate;
    flex: 1 1 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(9, 7, 5, 0.55);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: transform 0.45s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s;
}

.price-item:hover {
    transform: translateY(-4px);
    background: rgba(20, 15, 10, 0.75);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.5), 0 26px 54px -28px rgba(247, 169, 40, 0.65);
}

.price-item.is-best {
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.6), 0 0 54px -22px rgba(247, 169, 40, 0.7);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-period {
    font: 600 12px/1.2 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
}

.price-value {
    font: 900 60px/0.88 var(--font-display);
    letter-spacing: 0.005em;
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 9s linear infinite;
    font-variant-numeric: tabular-nums;
}

.price-per-day {
    font: 500 12px/1.3 var(--font-mono);
    color: var(--text-3);
}

.price-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow: 0 0 18px rgba(247, 169, 40, 0.65);
}

.price-button {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    overflow: hidden;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.35s var(--ease), translate 0.3s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s;
}

.price-item--alternative {
    flex-basis: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
}

.price-item--alternative:hover {
    transform: none;
    background: none;
    box-shadow: none;
}

.price-item--alternative::after {
    content: none;
}

.price-button--full {
    color: var(--g-100);
    background: rgba(255, 230, 190, 0.035);
    box-shadow: inset 0 0 0 1px var(--line-3);
}

.price-button--full::after {
    content: none;
}

.price-button--full:hover {
    color: var(--ink);
    background: var(--gold-fill);
    box-shadow: 0 16px 40px -14px rgba(247, 169, 40, 0.85);
}

/* Оплата ещё не подключена (тарифы без ссылок) */
.prices-soon-note {
    margin: 16px 0 0;
    font: 500 12px/1.5 var(--font-mono);
    letter-spacing: 0.06em;
    color: var(--test);
}

.payment-info-link {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.payment-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.25s;
}

.payment-link svg {
    color: var(--g-400);
}

.payment-link:hover {
    color: var(--g-100);
}

/* Системные требования */
/* Две колонки: таблица требований вдвое короче */
.system-requirements-block,
.system-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.system-requirement-item,
.system-item {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: 4px 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 230, 190, 0.02);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s, background-color 0.3s;
}

.system-requirement-item:hover {
    background: rgba(247, 169, 40, 0.035);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.32);
}

.system-requirement-key {
    font: 600 12px/1.5 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g-300);
}

.system-requirement-value {
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
}

.system-requirement-warning {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    background: rgba(255, 181, 71, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.3);
}

.system-requirement-warning .system-requirement-value {
    color: var(--text-2);
}

/* Видео */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 18px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0b0806;
    box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}

.video-item-embed {
    aspect-ratio: 16 / 9;
}

.video-item-embed iframe,
.product-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-item.video-placeholder-active::before {
    content: '';
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 169, 40, 0.38), rgba(247, 169, 40, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.6), 0 0 44px rgba(247, 169, 40, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: scale 0.4s var(--ease);
    pointer-events: none;
}

.video-item.video-placeholder-active::after {
    content: '';
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 50%;
    margin: -14px 0 0 -8px;
    border-left: 24px solid var(--g-100);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    pointer-events: none;
}

.video-item.video-placeholder-active:hover::before {
    scale: 1.1;
}

/* Функции */
.functions-block {
    display: grid;
    gap: 14px;
}

.function-section {
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(9, 7, 5, 0.45);
    box-shadow: inset 0 0 0 1px var(--line);
}

.function-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font: 800 27px/1 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--g-200);
}

.function-title::before {
    content: '';
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    rotate: 45deg;
    background: var(--gold-fill);
    box-shadow: 0 0 12px rgba(247, 169, 40, 0.75);
}

/* Подразделы раздела — «кирпичная» раскладка (masonry на CSS-колонках):
   короткие блоки встают под соседние, без пустот */
.function-groups {
    columns: 240px var(--cols, 3);
    column-gap: 12px;
    margin-bottom: -12px;
}

.function-group {
    min-width: 0;
    margin: 0 0 12px;
    padding: 16px 18px 12px;
    break-inside: avoid;
    border-radius: 14px;
    background: rgba(255, 230, 190, 0.025);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s;
}

.function-group:hover {
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.32);
}

/* Длинные описания (ABI, радар, R6) — во всю ширину раздела */
.function-group--wide {
    column-span: all;
}

/* Единственный безымянный блок — без рамки, список сам раскладывается в колонки */
.function-group:only-child:not(:has(.function-subtitle)):not(.function-group--wide) {
    column-span: all;
    padding: 0;
    background: none;
    box-shadow: none;
}

.function-group:only-child:not(:has(.function-subtitle)):not(.function-group--wide) .function-list {
    columns: 220px auto;
    column-gap: 28px;
}

.function-subtitle {
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line-2);
    font: 600 12px/1.3 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g-100);
}

.function-lead {
    margin: 2px 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.function-list {
    min-width: 0;
    list-style: none;
}

.function-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-2);
    overflow-wrap: break-word;
    break-inside: avoid;
}

.function-list li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 13px;
    width: 6px;
    height: 6px;
    rotate: 45deg;
    background: var(--g-500);
    box-shadow: 0 0 6px rgba(247, 169, 40, 0.5);
}

/* Скриншоты */
.menu-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.menu-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0b0806;
    cursor: zoom-in;
    transition: transform 0.45s var(--ease), box-shadow 0.4s;
}

.menu-image-item::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow 0.4s;
    pointer-events: none;
}

.menu-image-item::after {
    content: '';
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(9, 7, 5, 0.72) var(--i-zoom) center / 18px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.45);
    opacity: 0;
    scale: 0.8;
    transition: opacity 0.35s, scale 0.35s var(--ease);
    pointer-events: none;
}

.menu-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -24px rgba(247, 169, 40, 0.6);
}

.menu-image-item:hover::before {
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.6);
}

.menu-image-item:hover::after {
    opacity: 1;
    scale: 1;
}

.menu-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.menu-image-item:hover .menu-image {
    transform: scale(1.06);
}

/* Подпись кадра (из имени файла: Aimbot, Loot filter…) */
.menu-image-caption {
    position: absolute;
    z-index: 3;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 64px);
    padding: 6px 10px;
    border-radius: 8px;
    overflow: hidden;
    font: 600 11px/1.2 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--g-100);
    background: rgba(9, 7, 5, 0.78);
    box-shadow: inset 0 0 0 1px var(--line-2);
    pointer-events: none;
}

/* Модальная галерея */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 4, 3, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease);
}

.gallery-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: min(1200px, 92vw);
    scale: 0.96;
    transition: scale 0.45s var(--ease);
}

.gallery-modal.active .gallery-modal-content {
    scale: 1;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(247, 169, 40, 0.3), 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(247, 169, 40, 0.55);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    color: var(--g-100);
    cursor: pointer;
    background: rgba(20, 15, 10, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, scale 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.gallery-modal-close {
    top: 20px;
    right: 20px;
}

.gallery-modal-prev,
.gallery-modal-next {
    top: 50%;
    translate: 0 -50%;
}

.gallery-modal-prev { left: 20px; }
.gallery-modal-next { right: 20px; }

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: var(--ink);
    background: var(--g-400);
    box-shadow: 0 0 30px rgba(247, 169, 40, 0.6);
    scale: 1.06;
}

.gallery-modal-counter {
    padding: 8px 14px;
    border-radius: 999px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.14em;
    color: var(--text-2);
    background: rgba(20, 15, 10, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

/* «Другие продукты» внизу страницы товара — 3 карточки в ряд */
.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-grid .product-title {
    font-size: 23px;
}

/* SEO-статья товара */
.product-seo-article {
    margin-top: 56px;
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 230, 190, 0.025), transparent);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.product-seo-article .section-heading {
    font-size: clamp(28px, 3vw, 42px);
}

.product-seo-article .section-heading::before {
    content: none;
}

.seo-article-content {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
}

.seo-article-content h3 {
    margin: 32px 0 12px;
    font: 800 27px/1.1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--g-200);
}

.seo-article-content p {
    margin-bottom: 18px;
}

.seo-article-content strong {
    color: var(--text);
}

/* Плашка статуса продукта. Цвет задаёт --st (RGB):
   Detected — красный (по умолчанию), Frozen — ледяной, Testing/Updating — жёлтый */
.product-status-banner {
    --st: 255, 90, 95;
    --st-text: #ffd9d7;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 0;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--st-text);
    background: rgba(var(--st), 0.08);
    box-shadow: inset 0 0 0 1px rgba(var(--st), 0.42), 0 0 44px -22px rgba(var(--st), 0.7);
    animation: fadeUp 0.6s var(--ease) both;
}

.product-status-banner-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    font-size: 18px;
    line-height: 1;
    color: rgb(var(--st));
    background: rgba(var(--st), 0.14);
}

.product-status-banner-icon svg {
    width: 20px;
    height: 20px;
}

.product-status-banner-text {
    flex: 1 1 auto;
}

.product-status-banner-frozen {
    --st: 138, 216, 255;
    --st-text: #dcf3ff;
    background:
        radial-gradient(70% 140% at 0% 0%, rgba(200, 240, 255, 0.12), transparent 60%),
        rgba(var(--st), 0.07);
}

.product-status-banner-updating,
.product-status-banner-testing {
    --st: 255, 210, 63;
    --st-text: #fff2c2;
}

.product-status-banner-offline,
.product-status-banner-unknown {
    --st: 154, 145, 131;
    --st-text: #ece6dc;
}

/* ==========================================================================
   Статусы
   ========================================================================== */

.status-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 22px;
    padding: 10px 16px;
    border-radius: 999px;
    font: 500 12px/1.3 var(--font-mono);
    letter-spacing: 0.06em;
    color: var(--text-2);
    background: rgba(255, 230, 190, 0.03);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.status-meta strong {
    color: var(--g-100);
    font-weight: 600;
}

.status-meta-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ok);
    animation: livePulse 1.8s infinite;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font: 500 11.5px/1.2 var(--font-mono);
    letter-spacing: 0.04em;
    background: rgba(255, 230, 190, 0.025);
    box-shadow: inset 0 0 0 1px var(--line);
}

.status-legend-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.status-card {
    --state: transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    animation: cardIn 0.7s var(--ease) both;
}

.status-card:nth-child(2) { animation-delay: 0.03s; }
.status-card:nth-child(3) { animation-delay: 0.06s; }
.status-card:nth-child(4) { animation-delay: 0.09s; }
.status-card:nth-child(5) { animation-delay: 0.12s; }
.status-card:nth-child(6) { animation-delay: 0.15s; }
.status-card:nth-child(7) { animation-delay: 0.18s; }
.status-card:nth-child(8) { animation-delay: 0.21s; }
.status-card:nth-child(9) { animation-delay: 0.24s; }
.status-card:nth-child(10) { animation-delay: 0.27s; }
.status-card:nth-child(11) { animation-delay: 0.3s; }
.status-card:nth-child(12) { animation-delay: 0.33s; }
.status-card:nth-child(n+13) { animation-delay: 0.36s; }

.status-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--state);
    box-shadow: 0 0 16px var(--state);
}

.status-card:has(.status-state-undetected),
.status-card:has(.status-state-ok) { --state: var(--ok); }
.status-card:has(.status-state-testing),
.status-card:has(.status-state-updating) { --state: var(--test); }
.status-card:has(.status-state-frozen) { --state: var(--frost); }
.status-card:has(.status-state-detected) { --state: var(--bad); }

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38), 0 18px 40px -24px rgba(247, 169, 40, 0.55);
}

.status-card-thumb {
    width: 66px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #0b0806;
    box-shadow: 0 0 0 1px var(--line-2);
}

.status-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.status-card-name {
    overflow: hidden;
    font: 800 21px/1.05 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.status-card-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    font: 600 11px/1.2 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-card-state::before {
    content: '';
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.status-state-undetected,
.status-state-ok { color: var(--ok); }
.status-state-testing,
.status-state-updating { color: var(--test); }
.status-state-frozen { color: var(--frost); }
.status-state-detected { color: var(--bad); }
.status-state-offline,
.status-state-unknown { color: var(--idle); }

.status-error {
    padding: 40px 20px;
    text-align: center;
    font: 500 13px/1.6 var(--font-mono);
    color: var(--text-3);
}

/* ==========================================================================
   Гарантии
   ========================================================================== */

.guarantees-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
    counter-reset: gcard;
}

.guarantee-card {
    position: relative;
    isolation: isolate;
    counter-increment: gcard;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.45s var(--ease), box-shadow 0.4s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.guarantee-card::before {
    content: counter(gcard, decimal-leading-zero);
    margin-bottom: 8px;
    font: 500 11.5px/1 var(--font-mono);
    letter-spacing: 0.14em;
    color: var(--g-400);
}

.guarantee-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.42), 0 26px 52px -30px rgba(247, 169, 40, 0.6);
}

.guarantee-card-title {
    font: 800 28px/1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.3s;
}

.guarantee-card:hover .guarantee-card-title {
    color: var(--g-100);
}

.guarantee-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-2);
}

.guarantee-section {
    position: relative;
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease), box-shadow 0.4s;
}

.guarantee-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-fill);
    box-shadow: 0 0 16px rgba(247, 169, 40, 0.6);
}

.guarantee-title {
    margin-bottom: 16px;
    font: 800 clamp(28px, 3vw, 40px)/1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.guarantee-section p {
    margin: 0 0 14px;
    line-height: 1.75;
    color: var(--text-2);
}

.guarantee-section p:last-child {
    margin-bottom: 0;
}

.guarantee-section strong {
    color: var(--g-200);
}

.guarantee-section-highlight {
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(247, 169, 40, 0.1), transparent 60%),
        var(--panel);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.28);
}

.guarantee-section-warning {
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(255, 90, 95, 0.08), transparent 60%),
        var(--panel);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.3);
}

.guarantee-section-warning::before {
    background: linear-gradient(180deg, #ff9a8a, #ff4d4f);
    box-shadow: 0 0 16px rgba(255, 77, 79, 0.6);
}

.guarantee-section-warning .guarantee-title {
    color: #ffbab4;
}

.guarantee-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.guarantee-list li {
    position: relative;
    padding: 1px 0 1px 34px;
    line-height: 1.65;
    color: var(--text-2);
}

.guarantee-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(247, 169, 40, 0.12) var(--i-check) center / 13px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.42);
}

.guarantee-section-warning .guarantee-list li::before {
    background: rgba(255, 90, 95, 0.12) var(--i-cross) center / 11px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.45);
}

/* Списки в юридических текстах — нейтральный маркер */
.agreement-content .guarantee-list li {
    padding-left: 26px;
}

.agreement-content .guarantee-list li::before {
    left: 3px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 0;
    rotate: 45deg;
    background: var(--gold-fill);
    box-shadow: 0 0 10px rgba(247, 169, 40, 0.5);
}

/* ==========================================================================
   Ошибки
   ========================================================================== */

.errors-video-section {
    margin-bottom: 40px;
    padding: clamp(22px, 3.4vw, 40px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(247, 169, 40, 0.1), transparent 60%),
        linear-gradient(180deg, #16110c, #0f0b08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.26);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.errors-video-title {
    margin-bottom: 12px;
    font: 800 clamp(30px, 3.2vw, 44px)/1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.errors-video-description {
    max-width: 760px;
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-2);
}

.errors-video-container {
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 0 0 1px var(--line-2), 0 34px 70px -34px rgba(0, 0, 0, 0.95);
}

.errors-video {
    display: block;
    width: 100%;
}

.errors-video-note {
    margin-top: 20px;
}

.errors-video-note p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
}

.errors-list {
    display: grid;
    gap: 12px;
    counter-reset: err;
}

.error-item {
    counter-increment: err;
    position: relative;
    padding: 22px 24px 22px 76px;
    border-radius: 16px;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.35s, transform 0.45s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.error-item::before {
    content: counter(err, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 21px;
    padding: 6px 7px;
    border-radius: 6px;
    font: 600 12px/1 var(--font-mono);
    color: var(--g-400);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38);
}

.error-item:hover {
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38), 0 18px 40px -28px rgba(247, 169, 40, 0.55);
}

.error-title {
    margin-bottom: 10px;
    font: 600 14.5px/1.55 var(--font-mono);
    color: #ffcf9a;
    overflow-wrap: anywhere;
}

.error-solution {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    overflow-wrap: break-word;
}

.error-solution strong {
    color: var(--text);
}

.error-solution a {
    color: var(--g-200);
    text-decoration: underline;
    text-decoration-color: rgba(247, 169, 40, 0.4);
    text-underline-offset: 3px;
}

.error-solution code {
    display: block;
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    font: 13px/1.6 var(--font-mono);
    color: var(--g-100);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #0b0806;
    box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ==========================================================================
   Документы: соглашение, политики, оплата
   ========================================================================== */

.agreement-content {
    max-width: 920px;
    padding: clamp(24px, 4.5vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
}

.agreement-content .page-title {
    font-size: clamp(44px, 6vw, 80px);
}

.agreement-intro {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
}

.agreement-intro p {
    margin: 0;
}

.agreement-intro a,
.agreement-paragraph a,
.agreement-contact a {
    color: var(--g-200);
    text-decoration: underline;
    text-decoration-color: rgba(247, 169, 40, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.agreement-intro a:hover,
.agreement-paragraph a:hover,
.agreement-contact a:hover {
    color: var(--g-100);
    text-decoration-color: var(--g-300);
}

.agreement-section {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.agreement-section-title {
    margin-bottom: 18px;
    font: 800 clamp(26px, 2.8vw, 36px)/1.05 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.agreement-paragraph {
    margin-bottom: 14px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-2);
}

.agreement-paragraph strong {
    color: var(--g-200);
    font-weight: 600;
}

/* --- Оплата и возвраты (payment.html) --- */

/* Номер пункта перед заголовком раздела */
.clause-num {
    display: inline-grid;
    place-items: center;
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.45em;
    border-radius: 8px;
    font: 700 0.62em/1 var(--font-mono);
    color: var(--g-200);
    vertical-align: 0.18em;
    background: rgba(247, 169, 40, 0.1);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.4);
}

/* Шаги покупки */
.pay-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pay-step {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: var(--radius);
    background: rgba(255, 230, 190, 0.025);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

/* Стрелка-связка между шагами */
.pay-step:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 26px;
    right: -11px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--g-500);
    border-right: 2px solid var(--g-500);
    rotate: 45deg;
}

.pay-step-num {
    display: block;
    margin-bottom: 12px;
    font: 700 13px/1 var(--font-mono);
    letter-spacing: 0.14em;
    color: var(--g-300);
}

.pay-step h3 {
    margin: 0 0 8px;
    font: 800 22px/1.05 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
}

.pay-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
}

.pay-step p strong {
    color: var(--g-200);
    font-weight: 600;
}

.pay-step a {
    color: var(--g-200);
    text-decoration: underline;
    text-decoration-color: rgba(247, 169, 40, 0.35);
    text-underline-offset: 3px;
}

/* Возврат: «возвращаем» / «не возвращаем» */
.refund-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
    margin-bottom: 18px;
}

.refund-card {
    --tone: 62, 224, 138;
    padding: 20px 20px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(var(--tone), 0.07), rgba(var(--tone), 0.015));
    box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.28);
}

.refund-card--no {
    --tone: 255, 90, 95;
}

.refund-card-title {
    margin: 0 0 6px;
    font: 800 24px/1 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgb(var(--tone));
}

.refund-card .guarantee-list {
    margin: 12px 0 0;
}

.refund-card .guarantee-list li {
    font-size: 14.5px;
}

.agreement-content .refund-card .guarantee-list li {
    padding-left: 32px;
}

.agreement-content .refund-card .guarantee-list li::before {
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    rotate: none;
    background: rgba(var(--tone), 0.12) var(--i-check) center / 13px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(var(--tone), 0.45);
}

.agreement-content .refund-card--no .guarantee-list li::before {
    background: rgba(var(--tone), 0.12) var(--i-cross) center / 11px no-repeat;
}

.refund-card-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(var(--tone), 0.2);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
}

@media (max-width: 900px) {
    .pay-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pay-step:nth-child(2)::after {
        display: none;
    }

    .refund-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .pay-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .pay-step::after {
        display: none;
    }
}

.agreement-contact {
    margin-top: 44px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(247, 169, 40, 0.05);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.25);
}

.agreement-contact p {
    margin: 0;
    color: var(--text);
}

.agreement-contact p + p {
    margin-top: 10px;
}

/* ==========================================================================
   Продавцам: опт, промо, сотрудничество
   ========================================================================== */

.wholesale-section {
    margin-bottom: 64px;
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.wholesale-description {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
}

.wholesale-description strong {
    color: var(--g-200);
}

.wholesale-abuse-warning {
    max-width: 880px;
    margin: 0 0 28px;
    background: rgba(255, 90, 95, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.36);
}

.wholesale-abuse-warning::before {
    background: var(--bad);
    -webkit-mask-image: var(--m-warn);
    mask-image: var(--m-warn);
}

.wholesale-abuse-warning p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
}

.wholesale-abuse-warning strong {
    color: #ffb4ae;
}

.wholesale-row {
    position: relative;
    margin-bottom: 12px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.3s;
    animation: cardIn 0.5s var(--ease) both;
}

.wholesale-row:hover {
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.3);
}

.wholesale-row.wholesale-row-invalid {
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.55);
}

.wholesale-row.wholesale-row-invalid .wholesale-input {
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.7);
}

.wholesale-row.wholesale-row-nodiscount {
    box-shadow: inset 0 0 0 1px rgba(154, 145, 131, 0.38);
}

.wholesale-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wholesale-row-num {
    font: 600 12px/1 var(--font-mono);
    letter-spacing: 0.16em;
    color: var(--g-300);
}

.wholesale-remove-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    color: var(--text-3);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.wholesale-remove-btn:hover {
    color: var(--bad);
    background: rgba(255, 90, 95, 0.1);
}

.wholesale-row-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) auto;
    align-items: center;
    gap: 12px;
}

.wholesale-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wholesale-select,
.wholesale-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    font: 500 15px var(--font-text);
    color: var(--text);
    background-color: rgba(9, 7, 5, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow 0.3s, background-color 0.3s;
}

.wholesale-select {
    padding-right: 42px;
    background-image: var(--i-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.wholesale-input {
    font-family: var(--font-mono);
}

.wholesale-select:focus,
.wholesale-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 0 4px rgba(247, 169, 40, 0.12);
}

.wholesale-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wholesale-select option {
    color: var(--text);
    background: #15100b;
}

.wholesale-input-wrap {
    position: relative;
}

.wholesale-input-label {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 6px;
    border-radius: 4px;
    font: 500 10.5px/16px var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g-300);
    background: #120e0a;
}

.wholesale-row-subtotal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 140px;
}

.wholesale-subtotal-text {
    font: 500 13px var(--font-mono);
    color: var(--text-3);
    white-space: nowrap;
}

.wholesale-subtotal-text strong {
    color: var(--g-100);
    font-weight: 600;
}

.wholesale-row-warn {
    padding: 4px 8px;
    border-radius: 999px;
    font: 600 10px/1.2 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--idle);
    background: rgba(154, 145, 131, 0.12);
}

.wholesale-add-btn {
    width: 100%;
    min-height: 54px;
    margin: 4px 0 28px;
    color: var(--g-200);
    background: rgba(247, 169, 40, 0.03);
    box-shadow: none;
    border: 1px dashed rgba(247, 169, 40, 0.42);
}

.wholesale-add-btn:hover {
    color: var(--g-100);
    background: rgba(247, 169, 40, 0.08);
    box-shadow: 0 0 34px -10px rgba(247, 169, 40, 0.55);
    transform: none;
}

.wholesale-summary {
    position: relative;
    padding: clamp(22px, 3.4vw, 38px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(247, 169, 40, 0.13), transparent 55%),
        linear-gradient(180deg, #17120c, #0f0b08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.24), 0 44px 100px -56px rgba(247, 169, 40, 0.5);
}

.wholesale-summary-title {
    margin-bottom: 20px;
    font: 800 36px/1 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.wholesale-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.wholesale-tier {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(9, 7, 5, 0.5);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow 0.4s, background-color 0.4s;
}

.wholesale-tier-active {
    background: radial-gradient(120% 120% at 0% 0%, rgba(247, 169, 40, 0.22), rgba(247, 169, 40, 0.05));
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.62), 0 0 32px -8px rgba(247, 169, 40, 0.6);
}

.wholesale-tier-label {
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.wholesale-tier-active .wholesale-tier-label {
    color: var(--g-100);
}

.wholesale-tier-discount {
    font: 900 34px/1 var(--font-display);
    color: var(--g-300);
    font-variant-numeric: tabular-nums;
}

.wholesale-items-list {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line-2);
}

.wholesale-item-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-2);
}

.wholesale-item-name {
    flex: 1;
    min-width: 0;
}

.wholesale-item-detail {
    font: 13px var(--font-mono);
    white-space: nowrap;
}

.wholesale-item-detail strong {
    color: var(--text);
}

.wholesale-item-nodiscount {
    margin-left: 6px;
    font-size: 12px;
    color: var(--idle);
}

.wholesale-totals {
    margin-bottom: 22px;
}

.wholesale-total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 15px;
    color: var(--text-2);
}

.wholesale-total-line-sub {
    padding-left: 16px;
    font-size: 13px;
    color: var(--text-3);
}

.wholesale-discount-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--g-200);
}

.wholesale-savings-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--ok);
}

.wholesale-final-line {
    align-items: center;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line-2);
    font: 800 28px/1 var(--font-display);
    text-transform: uppercase;
    color: var(--text);
}

.wholesale-final-value {
    font: 900 56px/0.9 var(--font-display);
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 9s linear infinite;
    font-variant-numeric: tabular-nums;
}

.wholesale-pay-btn {
    width: 100%;
    min-height: 60px;
    font-size: 16.5px;
}

.wholesale-pay-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
    transform: none;
}

.wholesale-warning {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    color: var(--warn);
}

.wholesale-warning-info {
    color: var(--idle);
}

.wholesale-gap {
    padding: 12px 16px;
    border-radius: 12px;
    color: #ffd18a;
    background: rgba(255, 181, 71, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.36);
}

.wholesale-gap strong {
    color: var(--g-100);
    white-space: nowrap;
}

.wholesale-paynote {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #8ff0bb;
    background: rgba(62, 224, 138, 0.08);
    box-shadow: inset 0 0 0 1px rgba(62, 224, 138, 0.36);
}

.wholesale-composition {
    margin: 18px 0;
    padding: 18px;
    border-radius: 16px;
    background: rgba(9, 7, 5, 0.55);
    box-shadow: inset 0 0 0 1px var(--line);
}

.wholesale-composition-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wholesale-composition-title {
    font: 600 12px/1.3 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--g-200);
}

.wholesale-copy-btn {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    font: 600 13px var(--font-text);
    color: var(--g-100);
    background: rgba(247, 169, 40, 0.08);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.36);
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.wholesale-copy-btn:hover {
    color: var(--ink);
    background: var(--g-400);
}

.wholesale-copy-btn.is-copied {
    color: var(--ok);
    background: rgba(62, 224, 138, 0.1);
    box-shadow: inset 0 0 0 1px rgba(62, 224, 138, 0.45);
}

.wholesale-composition-text {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
    font: 13px/1.7 var(--font-mono);
    color: var(--text-2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #080605;
    box-shadow: inset 0 0 0 1px var(--line);
}

.wholesale-composition-hint {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-3);
}

.wholesale-empty {
    padding: 24px;
    text-align: center;
    font: 500 13px/1.6 var(--font-mono);
    color: var(--text-3);
}

.wholesale-error {
    padding: 24px;
    text-align: center;
    color: var(--bad);
}

/* Промо «Доступ к панели» */
.panel-promo {
    position: relative;
    margin: 56px 0;
    padding: 1px;
    border-radius: 26px;
    background: conic-gradient(from var(--angle), rgba(247, 169, 40, 0.16) 0deg, rgba(247, 169, 40, 0.16) 200deg, var(--ember) 260deg, var(--g-300) 300deg, #fff0c8 320deg, rgba(247, 169, 40, 0.16) 360deg);
    animation: angleSpin 6s linear infinite;
    box-shadow: 0 34px 100px -46px rgba(247, 169, 40, 0.7);
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.panel-promo-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(26px, 4vw, 46px);
    border-radius: 25px;
    overflow: hidden;
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(255, 106, 26, 0.17), transparent 55%),
        radial-gradient(80% 120% at 100% 100%, rgba(247, 169, 40, 0.15), transparent 60%),
        #0f0b08;
}

.panel-promo-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 236, 196, 0.12), transparent);
    transform: skewX(-20deg);
    animation: sheen 6s ease-in-out infinite;
    pointer-events: none;
}

.panel-promo-text {
    position: relative;
    z-index: 1;
    flex: 1 1 360px;
    min-width: 240px;
}

.panel-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    font: 700 10.5px/1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(90deg, var(--g-300), var(--ember));
    box-shadow: 0 0 24px rgba(255, 106, 26, 0.5);
}

.panel-promo-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
}

.panel-promo-title {
    margin: 0 0 12px;
    font: 900 clamp(38px, 4.6vw, 62px)/0.92 var(--font-display);
    letter-spacing: -0.003em;
    text-transform: uppercase;
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 9s linear infinite;
}

.panel-promo-desc {
    max-width: 620px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
}

.panel-promo-desc strong {
    color: var(--g-100);
}

.panel-promo-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 12px;
}

.panel-promo-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 30px;
    border-radius: 14px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s, background-color 0.3s, color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.panel-promo-btn--alt {
    color: var(--g-100);
    background: rgba(255, 230, 190, 0.04);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.45);
}

.panel-promo-btn--alt:hover {
    color: var(--ink);
    background: var(--gold-fill);
}

/* Блок «Как начать сотрудничество» */
.partnership-cta {
    position: relative;
    isolation: isolate;
    margin-top: 56px;
    padding: 1px;
    border-radius: 28px;
    overflow: hidden;
    background: conic-gradient(from var(--angle), rgba(247, 169, 40, 0.12) 0deg, rgba(247, 169, 40, 0.12) 250deg, var(--g-300) 320deg, #fff3d0 340deg, rgba(247, 169, 40, 0.12) 360deg);
    animation: angleSpin 8s linear infinite;
    transition: translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.partnership-cta-glow {
    position: absolute;
    inset: -30%;
    z-index: 0;
    background:
        radial-gradient(40% 40% at 30% 30%, rgba(247, 169, 40, 0.25), transparent 70%),
        radial-gradient(40% 40% at 70% 70%, rgba(255, 106, 26, 0.18), transparent 70%);
    animation: drift 16s ease-in-out infinite;
    pointer-events: none;
}

.partnership-cta-inner {
    position: relative;
    z-index: 1;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px);
    border-radius: 27px;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.94), rgba(10, 8, 6, 0.97));
}

.partnership-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--g-300);
}

.partnership-cta-eyebrow::before,
.partnership-cta-eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--g-400);
}

.partnership-cta-title {
    margin-bottom: 14px;
    font-size: clamp(42px, 5.6vw, 76px);
}

.partnership-cta-subtitle {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
}

.partnership-cta-subtitle strong {
    color: var(--g-100);
}

.partnership-cta-note {
    max-width: 640px;
    margin: 0 auto 24px;
}

.partnership-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.partnership-step {
    position: relative;
    isolation: isolate;
    padding: 24px 22px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 230, 190, 0.03);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform 0.45s var(--ease), box-shadow 0.4s, translate 0.9s var(--ease), opacity 0.9s var(--ease);
}

.partnership-step:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.42), 0 22px 46px -28px rgba(247, 169, 40, 0.65);
}

.partnership-step-number {
    position: absolute;
    top: 16px;
    right: 18px;
    font: 900 48px/1 var(--font-display);
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 169, 40, 0.42);
}

.partnership-step-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--g-300);
    background: radial-gradient(circle at 30% 20%, rgba(247, 169, 40, 0.24), rgba(247, 169, 40, 0.05));
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.32);
}

.partnership-step-icon svg {
    width: 24px;
    height: 24px;
}

.partnership-step-title {
    margin: 0 0 8px;
    font: 800 25px/1.02 var(--font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--text);
}

.partnership-step-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
}

.partnership-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.partnership-cta-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 16px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.35s var(--ease), translate 0.3s var(--ease), box-shadow 0.35s var(--ease), filter 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.partnership-cta .support-note {
    margin-top: 28px;
    text-align: left;
}

/* ==========================================================================
   404
   ========================================================================== */

.error-404-page {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 60px 0 100px;
    overflow: hidden;
}

.error-404-bg-decoration {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(45% 45% at 50% 40%, rgba(247, 169, 40, 0.13), transparent 70%),
        repeating-radial-gradient(circle at 50% 40%, transparent 0 79px, rgba(255, 205, 130, 0.06) 79px 80px);
    -webkit-mask: radial-gradient(60% 60% at 50% 40%, #000, transparent);
    mask: radial-gradient(60% 60% at 50% 40%, #000, transparent);
    pointer-events: none;
}

.error-404-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.error-404-content > * {
    animation: fadeUp 0.9s var(--ease) both;
}

.error-404-content > :nth-child(2) { animation-delay: 0.1s; }
.error-404-content > :nth-child(3) { animation-delay: 0.2s; }
.error-404-content > :nth-child(4) { animation-delay: 0.3s; }
.error-404-content > :nth-child(5) { animation-delay: 0.4s; }
.error-404-content > :nth-child(6) { animation-delay: 0.5s; }

.error-404-icon-wrapper {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 18px;
}

.error-404-icon {
    position: relative;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 50%;
    font-size: 0;
    background:
        conic-gradient(from 0deg, transparent 0 260deg, rgba(255, 199, 94, 0.35) 350deg, rgba(255, 240, 205, 0.9) 359deg, transparent 360deg),
        repeating-radial-gradient(circle closest-side, transparent 0 calc(33.3% - 1px), rgba(255, 205, 130, 0.28) calc(33.3% - 1px) 33.3%),
        radial-gradient(circle closest-side, rgba(247, 169, 40, 0.14), rgba(12, 9, 6, 0.9));
    box-shadow: 0 0 0 1px rgba(255, 205, 130, 0.32), 0 0 44px -6px rgba(247, 169, 40, 0.55);
    animation: spin 3.6s linear infinite;
}

.error-404-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--g-400);
    animation: ringPulse 2.4s var(--ease) infinite;
    pointer-events: none;
}

.error-404-number-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.02em;
    margin-bottom: 10px;
}

.error-404-number {
    font: 900 clamp(140px, 26vw, 300px)/0.8 var(--font-display);
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: metalFlow 7s linear infinite;
}

.error-404-number:nth-child(2) {
    animation: metalFlow 7s linear infinite, glitch 4.5s steps(1) infinite;
}

.error-404-title {
    margin-bottom: 16px;
    font: 900 clamp(36px, 5vw, 64px)/0.95 var(--font-display);
    text-transform: uppercase;
    color: var(--text);
}

.error-404-description {
    max-width: 560px;
    margin: 0 auto 36px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-2);
}

.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
}

.error-404-links {
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.error-404-links-title {
    margin-bottom: 18px;
    font: 500 12px/1 var(--font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--g-300);
}

.error-404-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.error-404-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--text-2);
    text-decoration: none;
    background: rgba(255, 230, 190, 0.03);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: color 0.25s, box-shadow 0.3s, background-color 0.3s;
}

.error-404-links-list a svg {
    color: var(--g-400);
}

.error-404-links-list a:hover {
    color: var(--g-100);
    background: rgba(247, 169, 40, 0.06);
    box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.45), 0 0 26px -8px rgba(247, 169, 40, 0.6);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1100px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: min(420px, 100%);
        height: 100vh;
        height: 100dvh;
        padding: calc(var(--header-h) + 14px) 28px 32px;
        overflow-y: auto;
        background:
            radial-gradient(120% 60% at 100% 0%, rgba(247, 169, 40, 0.15), transparent 60%),
            #0b0806;
        border-left: 1px solid var(--line-2);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        transform: none;
        visibility: visible;
        transition: transform 0.6s var(--ease), visibility 0s;
    }

    .nav-link {
        min-height: 60px;
        padding: 0 4px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font: 800 34px/1 var(--font-display);
        letter-spacing: 0.01em;
        text-transform: uppercase;
        color: var(--text);
        opacity: 0;
        translate: 28px 0;
        transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), color 0.25s;
    }

    .nav.active .nav-link {
        opacity: 1;
        translate: 0 0;
    }

    .nav.active .nav-link:nth-child(2) { transition-delay: 0.04s; }
    .nav.active .nav-link:nth-child(3) { transition-delay: 0.08s; }
    .nav.active .nav-link:nth-child(4) { transition-delay: 0.12s; }
    .nav.active .nav-link:nth-child(5) { transition-delay: 0.16s; }
    .nav.active .nav-link:nth-child(6) { transition-delay: 0.2s; }
    .nav.active .nav-link:nth-child(7) { transition-delay: 0.24s; }
    .nav.active .nav-link:nth-child(8) { transition-delay: 0.28s; }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.is-active {
        color: var(--g-300);
    }

    .lang-switcher {
        align-self: flex-start;
        margin: 28px 0 0;
    }

    .lang-link {
        min-width: 56px;
        min-height: 44px;
        font-size: 13px;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(5, 4, 3, 0.62);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s, visibility 0s linear 0.45s;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.45s;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 0;
        padding: calc(var(--header-h) + 36px) 0 120px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    /* Радар уходит в фон за текст */
    .hero-visual {
        position: absolute;
        z-index: -1;
        top: 40px;
        right: -140px;
        width: 460px;
        padding: 0;
        animation: none;
        opacity: 0.32;
        pointer-events: none;
    }

    .radar-hud,
    .radar-blip b {
        display: none;
    }

    .info-article {
        grid-template-columns: 1fr;
    }

    .article-head {
        position: static;
    }

    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-card--primary {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            'icon badge'
            'icon title'
            'text text'
            'link link';
        row-gap: 0;
    }

    .support-card--primary .support-card-text {
        margin: 16px 0 22px;
    }

    .support-card--primary .support-link {
        justify-self: start;
    }

    .product-header {
        grid-template-columns: 1fr;
        margin-bottom: 44px;
    }

    .system-requirements-block,
    .system-block {
        grid-template-columns: 1fr;
    }

    .wholesale-row-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wholesale-row-subtotal {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 68px;
    }

    .container {
        padding: 0 18px;
    }

    /* Видео остаётся и на телефонах; текст поверх — затемнение сильнее */
    .hero-overlay {
        background:
            radial-gradient(110% 70% at 50% 125%, rgba(255, 106, 26, 0.18), transparent 60%),
            linear-gradient(180deg, rgba(7, 5, 4, 0.55) 0%, rgba(7, 5, 4, 0.42) 40%, rgba(7, 5, 4, 0.6) 75%, var(--bg) 100%);
    }

    .video-control-btn {
        top: calc(var(--header-h) + 22px);
        right: 18px;
        bottom: auto;
        width: 40px;
        height: 40px;
    }

    .hero-stat {
        padding: 0 18px;
    }

    .hero-stat dd {
        font-size: 38px;
    }

    .ticker {
        margin-top: -38px;
    }

    .products-section,
    .info-section,
    .support-section {
        padding: 84px 0;
    }

    .products-section {
        padding-top: 100px;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .catalog-search {
        width: 100%;
    }

    .footer {
        padding-top: 68px;
    }

    .footer-content {
        gap: 34px;
    }

    .scroll-to-top {
        left: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }

    .system-requirement-item {
        grid-template-columns: 1fr;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        top: auto;
        bottom: 18px;
        translate: none;
    }

    .gallery-modal-prev { left: 18px; }
    .gallery-modal-next { right: 18px; }

    .gallery-modal-close {
        top: 14px;
        right: 14px;
    }

    .gallery-modal-content img {
        max-height: 72vh;
    }

    .error-item {
        padding: 66px 18px 20px;
    }

    .error-item::before {
        left: 18px;
        top: 20px;
    }

    .error-item:hover {
        transform: none;
    }

    .panel-promo-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-promo-actions {
        flex-direction: column;
    }

    .partnership-steps {
        grid-template-columns: 1fr;
    }

    /* Липкая панель «Купить» на странице товара */
    /* Справа оставляем место под круглую кнопку онлайн-чата JivoSite */
    .buy-bar {
        position: fixed;
        left: 12px;
        right: 86px;
        bottom: 12px;
        z-index: 95;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 10px 10px 18px;
        border-radius: 18px;
        background: rgba(14, 11, 8, 0.9);
        box-shadow: inset 0 0 0 1px rgba(247, 169, 40, 0.38), 0 20px 50px -14px rgba(0, 0, 0, 0.95), 0 0 40px -16px rgba(247, 169, 40, 0.6);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        translate: 0 120%;
        transition: translate 0.5s var(--ease), opacity 0.4s, visibility 0s linear 0.5s;
    }

    .buy-bar.is-shown {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        transition: translate 0.5s var(--ease), opacity 0.4s;
    }

    .buy-bar-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .buy-bar-info span {
        font: 500 10.5px/1 var(--font-mono);
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .buy-bar-info b {
        font: 900 30px/0.9 var(--font-display);
        color: var(--g-200);
    }

    .buy-bar .btn {
        min-height: 48px;
        padding: 0 22px;
    }

    body.has-buy-bar .scroll-to-top {
        bottom: 90px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero-title {
        font-size: clamp(50px, 15vw, 76px);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .hero-stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-info {
        gap: 10px;
        padding: 12px 12px 14px;
    }

    .product-title {
        font-size: 19px;
    }

    .product-price {
        padding: 6px 8px 5px;
        font-size: 11px;
    }

    .product-info::after {
        width: 30px;
        height: 30px;
        background-size: 14px;
    }

    .card-status {
        top: 8px;
        left: 8px;
        padding: 5px 8px 5px 7px;
        font-size: 9px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-card,
    .support-card--primary {
        padding: 24px 20px;
    }

    .support-card--primary .support-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .support-card--primary .support-icon svg {
        width: 32px;
        height: 32px;
    }

    .support-card--primary .support-link {
        justify-self: stretch;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .page-title {
        margin-bottom: 34px;
    }

    .price-item {
        flex-basis: 100%;
    }

    .wholesale-row-fields {
        grid-template-columns: 1fr;
    }

    .wholesale-item-line {
        flex-direction: column;
        gap: 4px;
    }

    .wholesale-final-line {
        font-size: 22px;
    }

    .wholesale-final-value {
        font-size: 44px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .error-404-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 22px;
    }
}

/* Сенсорные экраны: без hover-эффектов, которые «залипают» после тапа */
@media (hover: none) {
    .product-card:hover,
    .support-card:hover,
    .guarantee-card:hover,
    .price-item:hover,
    .status-card:hover,
    .partnership-step:hover,
    .menu-image-item:hover {
        transform: none;
    }

    .product-card:hover::before {
        opacity: 0;
    }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .reveal {
        opacity: 1;
    }

    .hero-rays,
    .fx-embers,
    .hero-embers,
    .cursor-glow {
        display: none;
    }
}
