:root {
    --shell-bg: rgba(24, 19, 17, 0.94);
    --shell-panel: rgba(38, 31, 27, 0.9);
    --shell-panel-strong: rgba(28, 24, 21, 0.96);
    --shell-border: rgba(255, 136, 66, 0.16);
    --shell-border-strong: rgba(255, 136, 66, 0.28);
    --shell-text: #f3ece4;
    --shell-muted: rgba(231, 221, 210, 0.72);
    --shell-accent: #ff7a3d;
    --shell-accent-soft: #ffb479;
    --shell-avatar-start: #ff9f62;
    --shell-avatar-end: #ff7135;
    --shell-button-dark: linear-gradient(180deg, rgba(43, 36, 31, 0.96) 0%, rgba(31, 25, 22, 0.96) 100%);
    --shell-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(22, 20, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.site-header .container {
    max-width: 1660px;
    padding-left: 28px;
    padding-right: 28px;
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 82px;
    padding-right: 290px;
}

.logo.logo--brandmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    justify-self: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo.logo--brandmark:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 8px 14px rgba(255, 122, 61, 0.16));
}

.logo-mark {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 0;
    margin: 0;
}

.main-nav--left {
    justify-self: end;
    margin-right: 4px;
}

.main-nav--right {
    justify-self: start;
    margin-left: 4px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.36);
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.36);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--shell-accent);
}

.main-nav a:hover i,
.main-nav a.active i {
    color: var(--shell-accent);
}

.header-actions {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn,
.steam-btn,
.mobile-menu__steam,
.mobile-menu__close {
    border: 1px solid var(--shell-border);
    background: var(--shell-button-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    color: var(--shell-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.icon-btn:hover,
.steam-btn:hover,
.mobile-menu__steam:hover,
.mobile-menu__close:hover {
    border-color: var(--shell-border-strong);
    transform: translateY(-1px);
}

.icon-btn i {
    font-size: 18px;
}

.flag-btn {
    width: auto;
    min-width: 72px;
    padding: 0 14px;
    gap: 9px;
    color: var(--shell-text);
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flag-btn::after {
    content: none;
}

.flag {
    width: 18px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    background: linear-gradient(90deg, #0038a8 0 33.33%, #ffffff 33.33% 66.66%, #d52b1e 66.66% 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    min-width: 184px;
    padding: 0 18px;
    border-radius: 10px;
    color: #56c4ff;
    background: linear-gradient(180deg, rgba(17, 43, 61, 0.96) 0%, rgba(8, 25, 38, 0.98) 100%);
    border: 1px solid rgba(86, 177, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 22px rgba(0, 0, 0, 0.18);
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 14px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.steam-btn i {
    font-size: 14px;
    color: #38a7f7;
}

.steam-btn span {
    display: inline-block;
}

.site-header .header-actions .steam-btn--profile {
    min-width: 226px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 16px;
    background: linear-gradient(180deg, rgba(32, 34, 40, 0.96) 0%, rgba(20, 22, 27, 0.98) 100%);
    border: 1px solid rgba(255, 179, 125, 0.12);
    color: #f4ede7;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 22px rgba(0, 0, 0, 0.18);
}

.site-header .header-actions .steam-btn--profile .steam-profile__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    text-align: center;
    flex: 0 1 auto;
}

.site-header .header-actions .steam-btn--profile .steam-profile__meta strong {
    color: rgba(255, 241, 231, 0.8);
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.05;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header .header-actions .steam-btn--profile .steam-profile__meta small {
    color: #38ff8a;
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-header .header-actions .steam-profile__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex: 0 0 32px;
    background: linear-gradient(180deg, var(--shell-avatar-start) 0%, var(--shell-avatar-end) 100%);
    color: #ffffff;
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 16px rgba(255, 113, 53, 0.18);
}

.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-switcher > .flag-btn.lang-toggle {
    min-width: 74px;
    padding: 0 14px;
    gap: 8px;
}

.lang-switcher > .flag-btn .lang-badge {
    font-family: var(--display-font, "Burford Rustic Book"), "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shell-text);
}

.lang-switcher > .flag-btn i {
    font-size: 12px;
    color: rgba(243, 236, 228, 0.72);
}

.burger-btn {
    display: none;
    width: 52px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--shell-border);
    border-radius: 12px;
    background: var(--shell-button-dark);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.burger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--shell-text);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

body.is-mobile-menu-open .burger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.is-mobile-menu-open .burger-btn span:nth-child(2) {
    opacity: 0;
}

body.is-mobile-menu-open .burger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 180;
}

.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 7, 8, 0.62);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(380px, 100vw);
    height: 100%;
    padding: 26px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 125, 60, 0.18) 0%, rgba(255, 125, 60, 0) 34%),
        linear-gradient(180deg, rgba(28, 22, 20, 0.98) 0%, rgba(19, 16, 15, 0.98) 100%);
    border-left: 1px solid var(--shell-border);
    box-shadow: var(--shell-shadow);
    transform: translateX(100%);
    transition: transform 0.28s ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mobile-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--shell-text);
    font-family: "Burford Rustic Book", "Montserrat", sans-serif;
    font-size: 18px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-menu__mark {
    width: 38px;
    height: 38px;
}

.mobile-menu__close {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--shell-text);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu__nav a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(243, 236, 228, 0.76);
    font-family: "Burford Rustic Book", "Montserrat", sans-serif;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a.active {
    color: var(--shell-text);
    border-color: var(--shell-border);
    background: rgba(255, 125, 60, 0.08);
}

.mobile-menu__nav a i {
    width: 18px;
    text-align: center;
    color: var(--shell-accent);
}

.mobile-menu__footer {
    margin-top: auto;
}

.mobile-menu__steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    color: #30e685;
    font-family: "Burford Rustic Book", "Montserrat", sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.mobile-menu__steam i {
    color: #38a7f7;
    font-size: 18px;
}

.site-footer {
    position: relative;
    background:
        radial-gradient(circle at center, rgba(255, 123, 59, 0.09) 0%, rgba(255, 123, 59, 0) 32%),
        linear-gradient(180deg, rgba(21, 17, 16, 0.96) 0%, rgba(18, 15, 14, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 125, 60, 0) 0%, rgba(255, 125, 60, 0.05) 50%, rgba(255, 125, 60, 0) 100%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 44px 0 40px;
    text-align: center;
}

.footer-logo--brandmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-logo__mark {
    width: 40px;
    height: 40px;
}

.footer-logo__wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: "Burford Rustic Book", "Montserrat", sans-serif;
    font-size: 20px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shell-text);
}

.footer-logo__wordmark span:last-child {
    color: var(--shell-accent);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
}

.footer-nav a,
.footer-company,
.footer-note,
.footer-copy,
.footer-mail {
    font-family: "Burford Rustic Book", "Montserrat", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-nav a {
    color: rgba(243, 236, 228, 0.78);
    font-size: 11px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 820px;
}

.footer-company,
.footer-note,
.footer-copy {
    color: rgba(243, 236, 228, 0.56);
    font-size: 10px;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--shell-border);
    background: var(--shell-button-dark);
    color: rgba(243, 236, 228, 0.86);
}

.footer-mail {
    color: var(--shell-text);
    font-size: 12px;
}

@media (max-width: 1280px) {
    .header-inner {
        gap: 20px;
        padding-right: 266px;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 18px;
    }
}

@media (max-width: 1100px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        min-height: 76px;
        padding-right: 0;
    }

    .main-nav--left,
    .main-nav--right,
    .header-actions .steam-btn,
    .header-actions .flag-btn {
        display: none;
    }

    .logo.logo--brandmark {
        justify-self: start;
    }

    .header-actions {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        justify-self: end;
    }

    .burger-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        padding-inline: 18px;
    }

    .header-inner {
        min-height: 72px;
        gap: 16px;
    }

    .logo.logo--brandmark {
        width: 50px;
        height: 50px;
    }

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

    .icon-btn,
    .burger-btn {
        width: 48px;
        height: 44px;
        border-radius: 11px;
    }

    .mobile-menu__panel {
        width: 100vw;
        padding-inline: 18px;
    }

    .footer-inner {
        gap: 20px;
        padding: 38px 0 34px;
    }

    .footer-logo__wordmark {
        font-size: 16px;
        letter-spacing: 0.14em;
    }

    .footer-nav {
        gap: 12px 18px;
    }
}
