/* =========================================================
   RjevRust v3 — чёрный, красный, золотой
   Цвета взяты из логотипа сервера (золото #fdbb3b на чёрном).
   Шрифты: Oswald (заголовки, цены) + IBM Plex Sans (текст), оба с кириллицей.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Oswald:wght@500;700&display=swap');

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

:root {
    --rj-black: #070505;
    --rj-coal: #120b0c;
    --rj-red: #c5161d;
    --rj-red-hot: #ee2f33;
    --rj-blood: #6e0b10;
    --rj-gold: #fdbb3b;
    --rj-gold-deep: #c98a12;
    --rj-bone: #f1e9d8;
    --rj-mute: #a39a8b;
    --rj-line: rgba(253, 187, 59, .16);
    --rj-font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --rj-font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --rj-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- База ---------- */

html body {
    font-family: var(--rj-font-body);
    color: var(--rj-bone);
    background:
        radial-gradient(1100px 560px at 12% -8%, rgba(197, 22, 29, .26), transparent 62%),
        radial-gradient(900px 520px at 100% 0%, rgba(253, 187, 59, .08), transparent 58%),
        var(--rj-black) !important;
    background-attachment: fixed !important;
}

::selection { background: var(--rj-red); color: #fff; }

html { scroll-behavior: smooth; }

* { scrollbar-color: var(--rj-red) var(--rj-black); scrollbar-width: thin; }

:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--rj-gold);
    outline-offset: 3px;
}

/* Убираем серую подложку магазина: скрипт помечает всех предков магазина классом rust-clear */
.rust-clear,
.Shop-module__wrapper,
.Shop-module__wrapper .boxBody,
.Shop-module__wrapper .boxHeader {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
}

/* ---------- Атмосфера ---------- */

.rust-smog {
    position: fixed;
    inset: -10%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42vw 32vh at 18% 28%, rgba(197, 22, 29, .20), transparent 70%),
        radial-gradient(40vw 30vh at 84% 62%, rgba(253, 187, 59, .09), transparent 70%);
    filter: blur(24px);
    animation: rust-smog 26s ease-in-out infinite alternate;
}

.rust-lantern {
    position: fixed;
    left: 0;
    top: 0;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 80, 51, .15), transparent 62%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

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

.rust-scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 99999;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--rj-red), var(--rj-gold));
    box-shadow: 0 0 14px rgba(238, 47, 51, .8);
    pointer-events: none;
    will-change: transform;
}

/* ---------- Шапка ---------- */

.Header-module__wrapper {
    background: rgba(7, 5, 5, .78) !important;
    backdrop-filter: blur(12px);
    transition: box-shadow .35s var(--rj-ease);
}

body.rust-scrolled .Header-module__wrapper {
    box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .95), 0 1px 0 0 var(--rj-red);
}

/* ---------- Герой (на месте баннера) ---------- */

.rust-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    margin-top: 12px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.rust-hero__glow {
    position: absolute;
    inset: -10% -10% -20%;
    z-index: 0;
    background:
        radial-gradient(48% 62% at 24% 52%, rgba(197, 22, 29, .55), transparent 66%),
        radial-gradient(80% 58% at 50% 100%, rgba(253, 187, 59, .62), rgba(197, 22, 29, .5) 42%, transparent 76%);
    animation: rust-breathe 7s ease-in-out infinite alternate;
}

/* Гигантская контурная надпись на заднем плане */
.rust-hero__bigtext {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 clamp(80px, 15vw, 260px)/1 var(--rj-font-head);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(197, 22, 29, .55);
    pointer-events: none;
    user-select: none;
}

.rust-hero__bigtext span {
    display: block;
    white-space: nowrap;
}

.rust-hero__content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: clamp(26px, 5vw, 76px);
    width: 100%;
    padding: 54px clamp(18px, 4vw, 60px) 120px;
}

/* Логотип парит над площадкой */
.rust-hero__stage {
    position: relative;
    flex: 0 0 auto;
    width: clamp(170px, 24vw, 320px);
}

.rust-hero__aura {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(253, 187, 59, .30), rgba(197, 22, 29, .30) 46%, transparent 68%);
    animation: rust-breathe 5s ease-in-out infinite alternate;
}

.rust-hero__logo {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 26px rgba(253, 187, 59, .32)) drop-shadow(0 22px 18px rgba(0, 0, 0, .75));
    animation: rust-float 5s ease-in-out infinite;
    pointer-events: none;
}

.rust-hero__pad {
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: 72%;
    height: 22px;
    translate: -50% 0;
    border-radius: 50%;
    border: 1px solid rgba(253, 187, 59, .6);
    background: radial-gradient(ellipse at center, rgba(253, 187, 59, .75) 0%, rgba(197, 22, 29, .45) 46%, transparent 74%);
    box-shadow: 0 0 30px rgba(238, 47, 51, .65);
    animation: rust-pad 5s ease-in-out infinite;
}

.rust-hero__text { position: relative; min-width: 0; }

.rust-hero__title {
    position: relative;
    isolation: isolate;
    margin: 0;
    font: 700 clamp(46px, 9.4vw, 132px)/.92 var(--rj-font-head);
    text-transform: uppercase;
    letter-spacing: .01em;
    background: linear-gradient(180deg, #ffe6a8 0%, #fdbb3b 48%, #c98a12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(3px 3px 0 #6e0b10) drop-shadow(0 0 28px rgba(253, 187, 59, .26));
    animation: rust-wipe 1s var(--rj-ease) .1s backwards;
}

.rust-hero__tag {
    max-width: 42ch;
    margin: 18px 0 0;
    font: 400 clamp(15px, 1.6vw, 19px)/1.55 var(--rj-font-body);
    color: var(--rj-mute);
    animation: rust-fade-up .9s var(--rj-ease) .35s backwards;
}

.rust-hero__cta {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 24px;
    padding: 15px 32px;
    background: var(--rj-gold);
    color: #140c0c;
    font: 500 16px/1 var(--rj-font-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: filter .3s;
    animation: rust-fade-up .9s var(--rj-ease) .5s backwards;
}

.rust-hero__cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate .6s var(--rj-ease);
}

.rust-hero__cta:hover { filter: brightness(1.1); }
.rust-hero__cta:hover::after { translate: 120% 0; }

/* Сцена: дальний хребет, посёлок с ветряком, маяк, передний план */
.rust-skyline {
    position: absolute;
    inset: auto 0 0 0;
    height: 330px;
    z-index: 3;
    pointer-events: none;
}

.rust-sky-layer {
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 100%;
    width: auto;
    aspect-ratio: 1600 / 340;
    overflow: visible;
    transform: translateX(-50%);
    fill: currentColor;
}

.rust-sky-far  { color: #36121a; }
.rust-sky-mid  { color: #0e0508; }
.rust-sky-lh   { color: #080304; }
.rust-sky-near { color: #030202; }

.rust-sky-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

.rust-sky-fine { stroke-width: 1.6; }

.rust-sky-window {
    fill: var(--rj-gold);
    animation: rust-flicker 3.2s steps(1) infinite;
}

/* Ветряк: ротор крутится вокруг ступицы */
.rust-rotor {
    transform-origin: 0 0;
    animation: rust-spin 8s linear infinite;
}

/* Ветряк: части, которые читаются на тёмном небе */
.rust-wm-slat { fill: #26110f; }
.rust-wm-rail { fill: none; stroke: rgba(238, 47, 51, .6); stroke-width: 1.6; stroke-linecap: round; }
.rust-wm-panel { fill: #3d0d12; stroke: rgba(238, 47, 51, .75); stroke-width: .9; }
.rust-wm-rim { stroke: rgba(238, 47, 51, .5); stroke-width: 1; }
.rust-wm-gap { fill: none; stroke: #120508; stroke-width: .9; }
.rust-wm-core { fill: var(--rj-red-hot); stroke: none; }

/* Голова ветряка поворачивается вокруг вертикальной оси: ступица смещается вбок, диск лопастей сжимается по ширине */
.rust-yaw-shift  { transform-origin: 0 0; animation: rust-yaw-shift 16s linear infinite; }
.rust-yaw-back   { transform-origin: 0 0; animation: rust-yaw-back 16s linear infinite; }
.rust-yaw-squash { transform-origin: 0 0; animation: rust-yaw-squash 16s linear infinite; }

/* Маяк: красный купол и полосы, светящийся фонарь, вращающийся луч */
.rust-lh-dome { fill: #5a1118; }
.rust-lh-band { fill: #3d0d12; }

.rust-lamp {
    fill: var(--rj-gold);
    animation: rust-lamp 7s ease-in-out infinite;
}

.rust-beam {
    transform-origin: 0 0;
    animation: rust-beam 7s ease-in-out infinite;
}

.rust-lamp-glow {
    transform-origin: 0 0;
    animation: rust-flash 7s ease-in-out infinite;
}

/* ---------- Бегущая строка (никогда не останавливается) ---------- */

.rust-ticker {
    margin: 2px 0 24px;
    overflow: hidden;
    border-block: 1px solid rgba(253, 187, 59, .38);
    background: linear-gradient(90deg, #0a0606, #1a0a0c 50%, #0a0606);
}

.rust-ticker__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: rust-marquee 40s linear infinite;
}

.rust-ticker__item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 0 14px 28px;
    white-space: nowrap;
    font: 500 14px/1 var(--rj-font-head);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rj-gold);
}

.rust-ticker__item::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--rj-red);
    transform: rotate(45deg);
}

/* ---------- Категории: строгие вкладки без плашек ---------- */

.rust-cats {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin-bottom: 10px !important;
    padding: 0 0 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(253, 187, 59, .2) !important;
    box-shadow: none !important;
}

.rust-cat {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    width: auto !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--rj-mute) !important;
    font: 500 14px/1 var(--rj-font-head) !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .25s;
}

.rust-cat > * {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* Ромб слева и линия снизу: вспыхивают при наведении, у активной вкладки горят всегда */
.rust-cat::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    background: var(--rj-red);
    transform: rotate(45deg) scale(0);
    transition: transform .3s var(--rj-ease);
}

.rust-cat::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--rj-red), var(--rj-gold));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--rj-ease);
}

.rust-cat:hover { color: var(--rj-bone) !important; }
.rust-cat:hover::after { transform: scaleX(1); }

.rust-cat--active {
    color: var(--rj-gold) !important;
    text-shadow: 0 0 16px rgba(253, 187, 59, .35);
}

.rust-cat--active::before { transform: rotate(45deg) scale(1); }

.rust-cat--active::after {
    transform: scaleX(1);
    box-shadow: 0 0 12px rgba(238, 47, 51, .75);
}

/* ---------- Поиск: красная метка слева, золотая линия при фокусе ---------- */

.Search-module__wrapper {
    position: relative;
    margin-bottom: 18px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.Search-module__wrapper input {
    background: linear-gradient(180deg, rgba(28, 17, 17, .9), rgba(12, 8, 8, .92)) !important;
    border: 1px solid var(--rj-line) !important;
    border-left: 3px solid var(--rj-red) !important;
    border-radius: 0 !important;
    color: var(--rj-bone) !important;
    font: 500 15px/1.2 var(--rj-font-body) !important;
    transition: border-color .25s, box-shadow .25s;
}

.Search-module__wrapper input::placeholder { color: var(--rj-mute); opacity: 1; }

.Search-module__wrapper input:focus {
    outline: none;
    border-color: var(--rj-gold) !important;
    border-left-color: var(--rj-red-hot) !important;
    box-shadow: 0 0 0 3px rgba(197, 22, 29, .28), 0 16px 30px -20px rgba(238, 47, 51, .8) !important;
}

.Search-module__wrapper svg { color: var(--rj-gold); }

.boxHeader { font-family: var(--rj-font-head); letter-spacing: .02em; }

/* ---------- Карточки: рамка-уголки и площадка левитации ---------- */

.Product-module__wrapper.rust-product-card {
    --mx: 50%;
    --my: 30%;
    --glow: 0;
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: 0 26px 28px -26px rgba(0, 0, 0, .95);
    transition: box-shadow .4s, --glow .4s;
}

/* Пластина: тонкая рамка, золотые уголки и подсветка за курсором.
   z-index: -1 внутри изолированной карточки — содержимое карточки не трогаем. */
.rust-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border: 1px solid var(--rj-line);
    background:
        linear-gradient(var(--rj-gold), var(--rj-gold)) 0 0 / 16px 2px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 0 0 / 2px 16px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 100% 100% / 16px 2px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 100% 100% / 2px 16px no-repeat,
        radial-gradient(240px circle at var(--mx) var(--my), rgba(238, 47, 51, calc(var(--glow) * .30)), transparent 65%),
        linear-gradient(180deg, #191010 0%, #0b0707 100%);
    transition: border-color .3s;
}

/* Площадка левитации: тень и свечение под предметом */
.rust-product-card::after {
    content: '';
    position: absolute;
    left: var(--pad-x, 50%);
    top: var(--pad-y, 52%);
    width: var(--pad-w, 60%);
    height: 16px;
    z-index: -1;
    translate: -50% -50%;
    border-radius: 50%;
    border: 1px solid rgba(253, 187, 59, .55);
    background: radial-gradient(ellipse at center, rgba(253, 187, 59, .7) 0%, rgba(197, 22, 29, .4) 46%, transparent 74%);
    box-shadow: 0 0 24px rgba(238, 47, 51, .55);
    pointer-events: none;
    animation: rust-pad 4.4s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * -.55s);
}

.Product-module__wrapper.rust-product-card:hover,
.Product-module__wrapper.rust-product-card:focus-visible {
    --glow: 1;
    z-index: 30;
    box-shadow:
        0 34px 40px -26px rgba(0, 0, 0, 1),
        0 0 40px -10px rgba(238, 47, 51, .6);
}

.rust-product-card:hover::before,
.rust-product-card:focus-visible::before { border-color: rgba(238, 47, 51, .75); }

/* Левитация предмета. pointer-events: none — картинка не перехватывает клики
   у кнопок и звёздочки, которые лежат под ней. */
.rust-product-card img {
    filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .6));
    animation: rust-float 4.4s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * -.55s);
    transition: scale .45s var(--rj-ease), filter .4s;
    pointer-events: none;
    will-change: transform;
}

.rust-product-card:hover img,
.rust-product-card:focus-visible img {
    scale: 1.1;
    filter: drop-shadow(0 22px 14px rgba(0, 0, 0, .65)) drop-shadow(0 0 22px rgba(253, 187, 59, .4));
}

/* Избранное: всегда над картинкой и с наглядным откликом */
.rust-product-card .rust-fav {
    z-index: 6;
    cursor: pointer;
    pointer-events: auto;
    transition: scale .2s var(--rj-ease), filter .2s;
}

.rust-product-card .rust-fav:hover {
    scale: 1.18;
    filter: drop-shadow(0 0 8px rgba(253, 187, 59, .8));
}

.rust-fav-hidden { display: none !important; }

.Product-module__name {
    font-family: var(--rj-font-body);
    font-weight: 600;
    color: var(--rj-bone);
}

.rust-product-card [class*="Product-module__price"] {
    font-family: var(--rj-font-head);
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--rj-gold);
}

.rust-product-card button {
    transition: filter .25s, box-shadow .3s, scale .2s;
}

.rust-product-card button:hover {
    filter: brightness(1.15);
    box-shadow: 0 12px 22px -10px rgba(238, 47, 51, .9);
}

.rust-product-card button:active { scale: .97; }

/* Название товара видно только при наведении (или фокусе/тапе) — и поверх соседних карточек, а не из-под них */
.rust-names-hover .Product-module__name {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity .25s var(--rj-ease), visibility 0s linear .25s;
}

.rust-names-hover .rust-product-card:is(:hover, :focus, :focus-within) .Product-module__name {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity .25s var(--rj-ease), visibility 0s;
}

.Product-module__wrapper.rust-product-card:focus-within { z-index: 30; }

/* Появление при скролле (классы ставит скрипт) */
.rust-product-card.rust-pending { opacity: 0; }

.rust-product-card.rust-in {
    animation: rust-rise .8s var(--rj-ease) calc(var(--card-index, 0) * 55ms) backwards;
}

/* ---------- Бонусы при пополнении (без подложки) ---------- */

.rust-bonus { margin-top: 10px; padding: 0 20px 20px; }

.rust-bonus__title {
    margin: 0 0 14px;
    padding: 0 0 12px;
    font: 500 17px/1.1 var(--rj-font-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rj-bone);
    background: linear-gradient(90deg, var(--rj-red), var(--rj-gold)) 0 100% / 64px 3px no-repeat;
    border-bottom: 1px solid rgba(253, 187, 59, .2);
}

.rust-bonus__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rust-bonus__item {
    padding: 16px 10px;
    text-align: center;
    background: linear-gradient(180deg, #191010, #0b0707);
    border: 1px solid var(--rj-line);
    border-top: 3px solid var(--rj-red);
    transition: border-color .3s, filter .3s;
}

.rust-bonus__item:hover { border-color: var(--rj-gold); filter: brightness(1.2); }

.rust-bonus__percent {
    font: 700 26px/1.1 var(--rj-font-head);
    color: var(--rj-gold);
    animation: rust-float 3.8s ease-in-out infinite;
}

.rust-bonus__item:nth-child(2) .rust-bonus__percent { animation-delay: -1.2s; }
.rust-bonus__item:nth-child(3) .rust-bonus__percent { animation-delay: -2.4s; }

.rust-bonus__amount { margin-top: 6px; font-size: 13px; color: var(--rj-mute); }

/* ---------- Пополнение баланса: тёмная пластина вместо пустого прямоугольника ---------- */

.rust-overlay {
    background: rgba(7, 5, 5, .86) !important;
    backdrop-filter: blur(8px);
}

.rust-skin { color: var(--rj-bone); }

.rust-panel {
    position: relative;
    color: var(--rj-bone);
    background:
        linear-gradient(var(--rj-gold), var(--rj-gold)) 0 0 / 18px 2px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 0 0 / 2px 18px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 100% 100% / 18px 2px no-repeat,
        linear-gradient(var(--rj-gold), var(--rj-gold)) 100% 100% / 2px 18px no-repeat,
        linear-gradient(180deg, #171010, #0a0606) !important;
    border: 1px solid var(--rj-line) !important;
    border-top: 3px solid var(--rj-red) !important;
    border-radius: 0 !important;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 60px -22px rgba(197, 22, 29, .55) !important;
}

/* Мелкие блоки с собственным фоном (суммы, способы оплаты) — тёмные плитки */
.rust-tile {
    background: linear-gradient(180deg, #191010, #0b0707) !important;
    border: 1px solid var(--rj-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--rj-bone);
}

:is(.rust-panel, .rust-skin) :is(h1, h2, h3, h4, .boxHeader) {
    font-family: var(--rj-font-head);
    letter-spacing: .02em;
    color: var(--rj-bone);
}

:is(.rust-panel, .rust-skin) :is(input, select, textarea) {
    background: rgba(0, 0, 0, .5) !important;
    border: 1px solid var(--rj-line) !important;
    border-bottom: 2px solid rgba(253, 187, 59, .4) !important;
    border-radius: 0 !important;
    color: var(--rj-bone) !important;
    font-family: var(--rj-font-body) !important;
    transition: border-color .25s, box-shadow .25s;
}

:is(.rust-panel, .rust-skin) :is(input, select, textarea):focus {
    outline: none;
    border-bottom-color: var(--rj-gold) !important;
    box-shadow: 0 0 0 3px rgba(197, 22, 29, .3) !important;
}

:is(.rust-panel, .rust-skin) button {
    background: transparent !important;
    border: 1px solid rgba(253, 187, 59, .5) !important;
    border-radius: 0 !important;
    color: var(--rj-gold) !important;
    font: 500 14px/1 var(--rj-font-head);
    letter-spacing: .08em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background-color .25s, color .25s;
}

:is(.rust-panel, .rust-skin) button:hover {
    background: var(--rj-gold) !important;
    color: #140c0c !important;
}

/* ---------- Профиль и общие элементы страниц ---------- */

.rust-skin .boxHeader,
.rust-heading {
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    background: linear-gradient(90deg, var(--rj-red), var(--rj-gold)) 0 100% / 64px 3px no-repeat !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(253, 187, 59, .2) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font: 500 20px/1.1 var(--rj-font-head) !important;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rj-bone) !important;
}

.rust-skin a:not([class*="Button"]):not(button) { color: var(--rj-gold); }

.rust-skin table { width: 100%; border-collapse: collapse; }

.rust-skin th {
    padding: 10px 12px;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(253, 187, 59, .35) !important;
    font: 500 13px/1 var(--rj-font-head);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rj-gold) !important;
    text-align: left;
}

.rust-skin td {
    padding: 12px;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rj-line) !important;
    color: var(--rj-bone);
}

.rust-skin tr { background: transparent !important; transition: background-color .2s; }
.rust-skin tbody tr:hover { background: rgba(238, 47, 51, .08) !important; }

/* Внутри окна заголовок получает поля, чтобы не прилипать к рамке */
.rust-panel.rust-skin .boxHeader,
.rust-panel.rust-skin .rust-heading {
    margin: 0 0 6px !important;
    padding: 18px 20px 14px !important;
}

/* ---------- Анимации ---------- */

@keyframes rust-float {
    0%, 100% { transform: translateY(0) rotate(-1.6deg); }
    50%      { transform: translateY(-13px) rotate(1.6deg); }
}

/* Предмет поднялся — тень сжимается и тускнеет */
@keyframes rust-pad {
    0%, 100% { scale: 1; opacity: .95; }
    50%      { scale: .74; opacity: .5; }
}

@keyframes rust-rise {
    from { opacity: 0; translate: 0 44px; scale: .94; rotate: 1.6deg; }
    to   { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
}

@keyframes rust-fade-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}

@keyframes rust-wipe {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
    to   { clip-path: inset(-10px -14px -10px 0); opacity: 1; }
}

@keyframes rust-marquee { to { transform: translateX(-50%); } }

@keyframes rust-breathe {
    from { opacity: .75; }
    to   { opacity: 1; }
}

@keyframes rust-yaw-shift {
    0% { transform: translateX(0.00px); }
    5% { transform: translateX(7.99px); }
    10% { transform: translateX(14.72px); }
    15% { transform: translateX(19.46px); }
    20% { transform: translateX(22.14px); }
    25% { transform: translateX(22.98px); }
    30% { transform: translateX(22.14px); }
    35% { transform: translateX(19.46px); }
    40% { transform: translateX(14.72px); }
    45% { transform: translateX(7.99px); }
    50% { transform: translateX(0.00px); }
    55% { transform: translateX(-7.99px); }
    60% { transform: translateX(-14.72px); }
    65% { transform: translateX(-19.46px); }
    70% { transform: translateX(-22.14px); }
    75% { transform: translateX(-22.98px); }
    80% { transform: translateX(-22.14px); }
    85% { transform: translateX(-19.46px); }
    90% { transform: translateX(-14.72px); }
    95% { transform: translateX(-7.99px); }
    100% { transform: translateX(-0.00px); }
}

@keyframes rust-yaw-back {
    0% { transform: translateX(-0.00px); }
    5% { transform: translateX(-3.73px); }
    10% { transform: translateX(-6.87px); }
    15% { transform: translateX(-9.08px); }
    20% { transform: translateX(-10.33px); }
    25% { transform: translateX(-10.72px); }
    30% { transform: translateX(-10.33px); }
    35% { transform: translateX(-9.08px); }
    40% { transform: translateX(-6.87px); }
    45% { transform: translateX(-3.73px); }
    50% { transform: translateX(-0.00px); }
    55% { transform: translateX(3.73px); }
    60% { transform: translateX(6.87px); }
    65% { transform: translateX(9.08px); }
    70% { transform: translateX(10.33px); }
    75% { transform: translateX(10.72px); }
    80% { transform: translateX(10.33px); }
    85% { transform: translateX(9.08px); }
    90% { transform: translateX(6.87px); }
    95% { transform: translateX(3.73px); }
    100% { transform: translateX(0.00px); }
}

@keyframes rust-yaw-squash {
    0% { transform: scaleX(1.000); }
    5% { transform: scaleX(0.964); }
    10% { transform: scaleX(0.871); }
    15% { transform: scaleX(0.761); }
    20% { transform: scaleX(0.675); }
    25% { transform: scaleX(0.643); }
    30% { transform: scaleX(0.675); }
    35% { transform: scaleX(0.761); }
    40% { transform: scaleX(0.871); }
    45% { transform: scaleX(0.964); }
    50% { transform: scaleX(1.000); }
    55% { transform: scaleX(0.964); }
    60% { transform: scaleX(0.871); }
    65% { transform: scaleX(0.761); }
    70% { transform: scaleX(0.675); }
    75% { transform: scaleX(0.643); }
    80% { transform: scaleX(0.675); }
    85% { transform: scaleX(0.761); }
    90% { transform: scaleX(0.871); }
    95% { transform: scaleX(0.964); }
    100% { transform: scaleX(1.000); }
}

@keyframes rust-spin { to { transform: rotate(360deg); } }

/* Луч «вращается»: сужается, когда смотрит на зрителя, и снова раскрывается */
@keyframes rust-beam {
    0%, 100% { transform: scaleX(1); }
    50%      { transform: scaleX(.04); }
}

@keyframes rust-flash {
    0%, 100% { opacity: .45; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.7); }
}

@keyframes rust-lamp {
    0%, 100% { opacity: .75; }
    50%      { opacity: 1; }
}

@keyframes rust-smog {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to   { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

@keyframes rust-flicker {
    0%, 100% { opacity: 1; }
    35%      { opacity: .25; }
    52%      { opacity: .9; }
    70%      { opacity: .4; }
}

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

@media (max-width: 760px) {
    .rust-hero { min-height: 540px; }
    .rust-hero__content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 18px 110px;
    }
    .rust-hero__stage { width: clamp(150px, 46vw, 220px); }
    .rust-hero__bigtext { display: none; }
    .rust-hero__tag { margin-inline: auto; }
    .rust-skyline { height: 210px; }
    .rust-bonus__grid { grid-template-columns: 1fr; }
}

/* ---------- prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .rust-product-card,
    .rust-product-card *,
    .rust-product-card::after,
    .rust-hero *,
    .rust-ticker__track,
    .rust-smog,
    .rust-bonus__item,
    .rust-bonus__item * {
        animation: none !important;
        transition: none !important;
    }

    .rust-product-card.rust-pending { opacity: 1; }
    .rust-embers,
    .rust-lantern { display: none; }
}