:root {
    --bg: #030303;
    --card: #101010;
    --red: #e00019;
    --red2: #ff2a3d;
    --red3: #7a000b;
    --text: #f5f5f5;
    --muted: #9b9b9b;
    --border: rgba(255, 255, 255, 0.08);
    --border-red: rgba(255, 42, 61, 0.35);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(224, 0, 25, 0.15), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(122, 0, 11, 0.22), transparent 34%),
        linear-gradient(180deg, #050505 0%, #020202 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
    z-index: -1;
}

.container {
    max-width: 1180px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 3, 3, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo,
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 1000;
    letter-spacing: -0.7px;
    font-size: 22px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #260004, #111 45%, #b40014);
    border: 1px solid var(--border-red);
    box-shadow: 0 0 32px rgba(224, 0, 25, 0.28);
    overflow: hidden;
    flex: 0 0 44px;
}

.logo-mark::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 42, 61, 0.55);
    border-radius: 8px;
}

.logo-mark span {
    position: relative;
    color: var(--red2);
    text-shadow: 0 0 16px rgba(255, 42, 61, 0.7);
    font-weight: 1000;
}

.logo-mark img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: 0.2s;
}

.nav-links a:hover {
    color: white;
}

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #151515;
    cursor: pointer;
}

.menu-button img,
.close_bModal img {
    filter: brightness(0) invert(1);
}

.hero {
    padding: 72px 0 28px;
}

.inner_banner {
    padding: 42px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(224, 0, 25, 0.12), rgba(255, 255, 255, 0.035)),
        #090909;
    border: 1px solid var(--border-red);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.inner_banner::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
    border-radius: 50%;
    background: rgba(224, 0, 25, 0.16);
    filter: blur(60px);
}

.inner_banner > * {
    position: relative;
    z-index: 1;
}

.hero_tag,
.section_intro__eyebrow,
.modal-eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(224, 0, 25, 0.1);
    border: 1px solid rgba(255, 42, 61, 0.24);
    color: #ffc6cb;
    font-weight: 900;
    font-size: 13px;
}

.inner_banner h1,
.promo_summary__card h2,
.rules_aside__card h2,
.contacts_intro_panel h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(224, 0, 25, 0.2);
}

.hero_text,
.inner_banner p,
.promo_summary__card p,
.rules_aside__card p,
.contacts_intro_panel p {
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

section {
    padding: 44px 0;
}

.content_margin {
    margin-top: 0;
}

.promo_layout,
.rules_layout,
.contacts_layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 22px;
    align-items: start;
}

.promo_summary__card,
.rules_aside__card,
.contacts_intro_panel,
.promo_panel,
.codex_panel,
.contact_panel {
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.promo_summary__card,
.rules_aside__card,
.contacts_intro_panel,
.promo_panel,
.contact_panel {
    padding: 22px;
}

.promo_summary__points,
.rules_aside__stats {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.promo_summary__points div,
.rules_aside__stats div,
.contacts_intro_panel__chips span {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.promo_summary__points span,
.rules_aside__stats span {
    display: block;
    color: var(--red2);
    font-weight: 1000;
    margin-bottom: 4px;
}

.promotions_grid > div {
    margin-bottom: 18px;
}

.promo_panel {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.promo_panel::before,
.codex_panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.promo_panel__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.sale_box .name,
.rule_box .title {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 1000;
}

.sale_box .name span,
.sale_box .price span,
.item_action .price span {
    color: var(--red2);
}

.sale_box .info,
.sale_box .status,
.sale_box .price,
.rule_content,
.contact_panel {
    color: var(--muted);
    line-height: 1.65;
}

.promo_badge {
    padding: 8px 10px;
    border-radius: 999px;
    color: #ffd0d4;
    background: rgba(224, 0, 25, 0.11);
    border: 1px solid rgba(255, 42, 61, 0.22);
    font-size: 12px;
    font-weight: 1000;
}

.sale_box .actions,
.item_action,
.buy_item .action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

button,
#buy_button,
.promotion_button,
#modal_submit {
    border: 0;
    cursor: pointer;
    padding: 13px 18px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--red), var(--red3));
    border: 1px solid rgba(255, 42, 61, 0.25);
    box-shadow: 0 18px 45px rgba(224, 0, 25, 0.2);
    font-weight: 900;
    transition: 0.2s;
}

button:hover,
#buy_button:hover,
.promotion_button:hover,
#modal_submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red2), #9c0010);
}

.codex_panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.rule_box .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    cursor: pointer;
}

.rule_box .box_status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.rule_box .box_status img {
    width: 14px;
    filter: brightness(0) invert(1);
}

.rule_content {
    padding: 0 22px 22px;
}

.rule_content h1,
.rule_content h2,
.rule_content h3,
.contact_panel h1,
.contact_panel h2,
.contact_panel h3 {
    color: var(--text);
}

.rule_content a,
.contact_panel a {
    color: var(--red2);
}

.contacts_intro_panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.contacts_intro_panel__chips span {
    color: #ffd0d4;
    font-weight: 900;
}

.item_modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.modal-card {
    width: min(480px, 100%);
    margin: 5vh auto 0;
    border-radius: 26px;
    padding: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
        #0b0b0b;
    border: 1px solid var(--border-red);
    box-shadow: var(--shadow);
}

.modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.buy_item .name {
    margin: 8px 0 16px;
    font-size: 30px;
    color: var(--text);
}

.buy_item .input {
    width: 100%;
    margin-bottom: 14px;
    padding: 15px;
    border-radius: 12px;
    background: #070707;
    border: 1px solid var(--border);
    outline: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.buy_item .input:focus {
    border-color: var(--red2);
    box-shadow: 0 0 0 4px rgba(224, 0, 25, 0.12);
}

.close_bModal {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #151515;
    border: 1px solid var(--border);
    cursor: pointer;
}

.check_info {
    padding: 12px 14px;
    border-radius: 12px;
    background: #0c0c0c;
    border: 1px solid var(--border);
    color: var(--muted);
}

.check_info.success {
    color: #d7ffe9;
    border-color: rgba(93, 255, 168, 0.3);
}

.check_info.error {
    color: #ffd0d4;
    border-color: var(--border-red);
}

.mobile_menu {
    position: fixed;
    inset: 0;
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-drawer {
    padding: 22px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border-red);
}

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

.nav-links--drawer {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.site-footer {
    margin-top: 40px;
    padding: 34px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.copyright,
.developer {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.overflow_hide {
    overflow: hidden;
}

@media (max-width: 940px) {
    .promo_layout,
    .rules_layout,
    .contacts_layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .nav {
        height: 68px;
    }

    .main_menu {
        display: none;
    }

    .menu-button {
        display: grid;
    }

    .hero {
        padding: 54px 0 24px;
    }

    .inner_banner,
    .promo_summary__card,
    .rules_aside__card,
    .contacts_intro_panel,
    .promo_panel,
    .contact_panel,
    .modal-card {
        padding: 20px;
        border-radius: 24px;
    }

    .inner_banner h1,
    .promo_summary__card h2,
    .rules_aside__card h2,
    .contacts_intro_panel h2 {
        font-size: 34px;
    }

    .sale_box .actions,
    .item_action,
    .buy_item .action,
    .site-footer .container {
        flex-direction: column;
        align-items: stretch;
    }
}
