:root {
    --bg: #101113;
    --bg-card: #161b22;
    --bg-hover: #1f2630;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #d83432;
    --accent-dark: #a04040;
    --accent-light: #e88989;
    --green: #3fb950;
    --red: #f85149;
    --yellow: #d29922;
    --blue: #58a6ff;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.btn-block {
    width: 100%;
}

.btn-large {
    padding: 12px;
    font-size: 16px;
}

/* === Стили для вкладок админ-панели (Tabs) === */
.nav-tabs .nav-link {
    color: #adb5bd;
    border-top: 2px solid transparent;
    margin-right: 5px;
    padding: 10px 20px;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}

    .nav-tabs .nav-link.active {
        color: #fff;
        background-color: #2c3e50;
        border-color: #34495e #34495e #2c3e50;
        font-weight: 600;
    }

    .nav-tabs .nav-link:hover {
        color: #fff;
        background-color: #34495e;
    }

    .nav-tabs .nav-link.text-success {
        color: #00d977;
        background-color: #1a252a;
        border-color: #00d977;
    }

        .nav-tabs .nav-link.text-success:hover {
            background-color: #25363b;
            color: #00ff9d;
        }

/* === Карточки статистики === */
.admin-stats {
    gap: 15px;
}

.stat-block-value {
    line-height: 1.2;
}

.stat-block-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Статус сервера === */
.status-dot.status-loading {
    background-color: #ffc107;
    animation: blink 1.5s infinite;
}

.status-dot.status-online {
    background-color: #28a745;
    box-shadow: 0 0 10px #28a745;
}

.status-dot.status-offline {
    background-color: #dc3545;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* === Консоль === */
.rcon-console .console-line {
    margin-bottom: 4px;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.rcon-console .console-command {
    border-left-color: #0d6efd;
    color: #0d6efd;
}

.rcon-console .console-response {
    border-left-color: #28a745;
    color: #28a745;
}

.rcon-console .console-error {
    border-left-color: #dc3545;
    color: #dc3545;
}

/* === Адаптив для мобильных === */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }

        .nav-tabs .nav-link {
            margin-right: 0;
            margin-bottom: 5px;
        }

            .nav-tabs .nav-link.ms-auto {
                margin-left: 0;
            }
}

/* === Базовые стили === */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.product-icon {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Шапка === */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .2s;
    font-weight: 500;
}

    .nav-link:hover {
        color: var(--text);
        background: var(--bg-hover);
    }

.nav-admin {
    color: var(--accent-light) !important;
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--accent-dark);
        transform: translateY(-1px);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

    .btn-outline:hover {
        border-color: var(--accent);
        color: var(--accent-light);
    }

.btn-danger {
    background: var(--red);
    color: #fff;
}

    .btn-danger:hover {
        background: #c93a3a;
    }

.btn-steam {
    background: #1b2838;
    color: #66c0f4;
    border: 1px solid #2a475e;
}

    .btn-steam:hover {
        background: #2a475e;
    }

.steam-icon {
    vertical-align: middle;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #101113 0%, #272b30 50%, #101113 100%);
}

    .hero-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at center top, rgba(216,52,50,0.15), transparent 60%);
    }

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(63,185,80,0.15);
    border: 1px solid rgba(63,185,80,0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--green);
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(216,52,50,0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.main {
    flex: 1;
}

/* === Features === */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all .3s;
}

    .feature-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Rules === */
.rules-short {
    padding: 80px 0;
    background: var(--bg-card);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto 32px;
    display: grid;
    gap: 20px;
}

.rule-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rule-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 40px;
}

.rule-item h4 {
    margin-bottom: 6px;
}

.rule-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Popular === */
.popular {
    padding: 80px 0;
    text-align: center;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.popular-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: left;
}

    .popular-card h3 {
        margin-bottom: 8px;
        color: var(--accent-light);
    }

    .popular-card p {
        color: var(--text-muted);
        margin-bottom: 16px;
    }

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

/* === Footer === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.footer-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.footer-col a, .footer-col p {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

    .footer-col a:hover {
        color: var(--accent-light);
    }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

    .footer-bottom p {
        color: var(--text-muted);
        font-size: 0.85rem;
    }

/* === Store === */
.store-page {
    padding: 40px 0 80px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.store-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    font-weight: 500;
}

    .filter-btn:hover {
        border-color: var(--accent);
        color: var(--text);
    }

    .filter-btn.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
    }

.product-header {
    margin-bottom: 12px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 16px;
    flex: 1;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
}

.product-card .btn {
    align-self: flex-start;
}

/* === Alerts === */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(63,185,80,0.15);
    border: 1px solid rgba(63,185,80,0.3);
    color: var(--green);
}

.alert-error {
    background: rgba(248,81,73,0.15);
    border: 1px solid rgba(248,81,73,0.3);
    color: var(--red);
}

/* === Rules page === */
.rules-page {
    padding: 40px 0 80px;
    max-width: 800px;
}

.rules-section {
    margin-bottom: 40px;
}

.rules-heading {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent-light);
}

.rules-detailed {
    padding-left: 20px;
}

    .rules-detailed li {
        margin-bottom: 12px;
        line-height: 1.7;
    }

.rules-warning {
    background: rgba(210,153,34,0.1);
    border: 1px solid rgba(210,153,34,0.3);
    border-radius: var(--radius);
    padding: 20px;
}

    .rules-warning h2 {
        color: var(--yellow);
    }

/* === Profile === */
.profile-page {
    padding: 40px 0 80px;
    max-width: 700px;
}

.profile-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
}

.profile-avatar img, .avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.profile-steamid {
    color: var(--text-muted);
    margin-bottom: 12px;
}

    .profile-steamid code {
        color: var(--accent-light);
    }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
}

.badge-admin {
    background: rgba(216,52,50,0.2);
    color: var(--accent-light);
}

.badge-player {
    background: rgba(88,166,255,0.2);
    color: var(--blue);
}

.profile-section {
    margin-bottom: 32px;
}

    .profile-section h3 {
        margin-bottom: 16px;
    }

.profile-empty {
    color: var(--text-muted);
}

.profile-section .btn {
    margin-right: 12px;
}

/* === Админ-панель === */
.admin-page {
    padding: 40px 0 80px;
}

/* Убран display:grid — теперь раскладкой управляет Bootstrap (d-flex flex-wrap) */
.admin-stats {
    gap: 15px;
    margin-bottom: 0;
}

.stat-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color .3s;
}

    .stat-block:hover {
        border-color: var(--accent);
    }

.stat-block-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-block-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Убран display:flex — теперь карточка блочная */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.status-loading {
    background: var(--yellow);
}

.status-online {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.status-offline {
    background: var(--red);
}

.admin-section {
    margin-bottom: 40px;
}

    .admin-section h2 {
        margin-bottom: 16px;
        font-size: 1.3rem;
    }

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-btn {
    min-width: 140px;
    justify-content: center;
}

.say-input {
    display: flex;
    gap: 12px;
}

    .say-input .text-input {
        flex: 1;
    }

/* Убраны height:360px и overflow:hidden — высоту задаёт инлайн-стиль в HTML */
.rcon-console {
    background: #0a0e14;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.console-output {
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.88rem;
}

.console-line {
    padding: 2px 0;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.console-normal {
    color: var(--text-muted);
}

.console-command {
    color: var(--blue);
    border-left-color: #0d6efd;
}

.console-response {
    color: var(--green);
    border-left-color: #28a745;
}

.console-error {
    color: var(--red);
    border-left-color: #dc3545;
}

.console-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.console-prompt {
    color: var(--green);
    font-family: monospace;
    font-weight: 700;
}

.text-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

    .text-input:focus {
        outline: none;
        border-color: var(--accent);
    }

/* === Error page === */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
}

.error-text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* === Адаптив === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .quick-actions .btn {
        flex: 1;
        min-width: auto;
    }

    .console-output {
        font-size: 0.8rem;
    }
}

.product-card img {
    pointer-events: none;
    cursor: default;
}
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

.modal-overlay > .modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}
.modal-overlay {
    z-index: 9999 !important; /* должно быть выше всех остальных элементов */
}
.modal-overlay {
    min-height: 100vh; /* минимальная высота */
    min-width: 100vw; /* минимальная ширина */
}
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
}
.modal-overlay {
    min-height: 100vh !important;
    min-width: 100vw !important;
}

.modal-overlay > .modal {
    height: 100% !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: auto !important;
}



/* Server administration */
.admin-page { padding-top: 32px; padding-bottom: 40px; }
.admin-eyebrow { letter-spacing: .16em; color: #9aa7b7; font-size: .75rem; margin-bottom: 8px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.admin-heading h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 8px; }
.admin-panel { background: #191f29; border: 1px solid #354050; border-radius: 16px; padding: 24px; margin-bottom: 20px; min-width: 0; }
.admin-panel h2 { font-size: 1.2rem; margin: 0 0 12px; color: #f3f5f8; }
.admin-heading h2 { margin-bottom: 0; }
.admin-muted { color: #abb7c7; font-size: .9rem; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.admin-metrics > div { padding: 18px; background: #10151d; border-radius: 12px; }
.admin-metrics strong { display: block; font-size: 2rem; color: #fff; }
.admin-metrics span { color: #abb7c7; font-size: .85rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-page .btn { min-height: 44px; white-space: normal; }
.admin-page .form-control { background: #10151d; border: 1px solid #526174; color: #fff; }
.admin-page .form-control::placeholder { color: #94a2b5; }
.admin-page :focus-visible, .mobile-menu-toggle:focus-visible { outline: 3px solid #79b8ff; outline-offset: 3px; }
.admin-danger { margin-top: 24px; border-top: 1px solid #48505e; padding-top: 18px; }
.admin-danger summary { cursor: pointer; color: #ffacac; padding: 8px 0; }
.admin-danger p { color: #abb7c7; margin-top: 12px; }
.admin-console { background: #0c1118; border: 1px solid #354050; border-radius: 10px; padding: 16px; min-height: 160px; max-height: 360px; overflow: auto; font: .85rem/1.7 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-command { display: flex; gap: 12px; margin-top: 16px; }
.admin-command input { min-width: 0; }
.admin-feedback { padding: 16px; margin: 0 0 20px; background: #142a3e; border: 1px solid #45627f; border-radius: 12px; overflow-wrap: anywhere; }
.admin-online { color: #78e2aa; }
.admin-log-error { color: #ffaaaa; }
.mobile-menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid #66758b; border-radius: 8px; padding: 10px 14px; }
.product-management .table { --bs-table-bg: #191f29; --bs-table-color: #e9edf3; --bs-table-striped-bg: #222a36; --bs-table-striped-color: #e9edf3; --bs-table-hover-color: #fff; --bs-table-hover-bg: #2c3543; --bs-table-border-color: #414c5d; }
.product-management .text-muted { color: #abb7c7 !important; }
.product-management .modal-content { background: #191f29; color: #e9edf3; }
.product-management code { overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .header-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    .mobile-menu-toggle { display: inline-block; }
    .header .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
    .header .nav.is-open { display: flex; }
    .header .nav-link { padding: 12px; }
    .header .nav .btn { min-height: 44px; justify-content: center; }
    .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .admin-page { padding-top: 20px; }
    .admin-panel { padding: 18px; border-radius: 12px; }
    .admin-command { flex-direction: column; }
    .admin-metrics { gap: 8px; }
    .admin-metrics > div { padding: 10px; }
    .admin-metrics strong { font-size: 1.6rem; }
    .admin-metrics span { font-size: .75rem; }
    .product-management > .d-flex { align-items: stretch !important; flex-direction: column; gap: 16px; }
    .product-management .btn { min-height: 44px; }
    .product-management table { min-width: 850px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    input, select, textarea { font-size: 16px !important; }
    .container { padding-left: 16px; padding-right: 16px; }
    .store-grid, .features-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
    .admin-actions, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .product-management .table-responsive { overflow: visible; }
    .product-management table { min-width: 0; width: 100%; }
    .product-management thead { display: none; }
    .product-management tbody { display: grid; gap: 16px; }
    .product-management tbody tr:not([hidden]) { display: block; border: 1px solid #414c5d; border-radius: 12px; overflow: hidden; }
    .product-management tbody td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px; overflow-wrap: anywhere; }
    .product-management tbody td::before { content: attr(data-label); color: #abb7c7; font-size: .85rem; }
    .product-management tbody td:last-child { display: flex; flex-wrap: wrap; }
    .product-management tbody td:last-child::before { flex-basis: 100%; }
    .product-management tbody td:last-child form { margin: 0; }
}
.admin-page .btn-outline-light, .product-management .btn-outline-light { border: 1px solid #66758b; background: #222d3b; color: #f3f5f8; }
.admin-page .btn-outline-light:hover, .product-management .btn-outline-light:hover { background: #344459; border-color: #9daec4; }
.admin-page .btn-outline-danger { border: 1px solid #d77c7c; background: #342127; color: #ffb5b5; }
.admin-page .btn-primary { background: #285c9e; border: 1px solid #5894df; color: #fff; }
.admin-page .btn:disabled { opacity: .55; cursor: wait; }

/* Личный кабинет */
.profile-metrics { margin: 24px 0; }
.profile-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.profile-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow-wrap: anywhere; }
.profile-order { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); overflow-wrap: anywhere; }
.profile-order p { margin: 8px 0 0; color: #b9b9c2; }
.profile-order > div:last-child { text-align: right; }
.profile-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
@media (max-width: 575px) { .profile-order { flex-direction: column; } .profile-order > div:last-child { text-align: left; } .profile-card { flex-wrap: wrap; } .profile-steamid { overflow-wrap: anywhere; } }

/* Покупка непосредственно в карточке */
.purchase-card { padding: 0; overflow: hidden; height: 100%; }
.purchase-card[hidden] { display: none !important; }
.purchase-card:hover { transform: none; }
.purchase-image { aspect-ratio: 4 / 3; background: rgba(255,255,255,.025); display: flex; align-items: center; justify-content: center; padding: 20px; }
.purchase-card .purchase-image img { width: 100%; height: 100%; max-height: 230px; object-fit: contain; margin: 0; }
.purchase-content { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 14px; min-width: 0; }
.purchase-content .product-name { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.purchase-description { color: var(--text-muted); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.purchase-price { font-size: 1.8rem; font-weight: 800; margin-top: auto; }
.purchase-price span { color: var(--text-muted); font-size: 1.2rem; }
.purchase-form { display: flex; flex-direction: column; gap: 12px; }
.purchase-form > label { font-size: .9rem; }
.purchase-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.purchase-consent input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.purchase-form .purchase-button, .purchase-content > .purchase-button { width: 100%; align-self: stretch; white-space: normal; }
.purchase-note { color: var(--text-muted); text-align: center; line-height: 1.5; }
.purchase-detail { max-width: 580px; padding-top: 32px; padding-bottom: 48px; }
.purchase-back { display: inline-block; margin-bottom: 20px; }
@media (max-width: 575px) { .purchase-content { padding: 20px; } .purchase-image { aspect-ratio: 16 / 10; } .purchase-button { min-height: 48px; } }

/* Каталог и страница покупки */
.catalog-card { color: inherit; text-decoration: none; }
.catalog-card[hidden] { display: none !important; }
.purchase-detail-wide { max-width: 1080px; }
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.purchase-description-panel, .purchase-summary { border: 1px solid var(--border); background: var(--bg-card); border-radius: 16px; padding: 28px; min-width: 0; }
.purchase-description-panel h1 { font-size: 2rem; margin: 12px 0 24px; overflow-wrap: anywhere; }
.purchase-description-panel h2, .purchase-summary h2 { font-size: 1.2rem; }
.purchase-description-panel .purchase-image { margin-bottom: 24px; border-radius: 12px; aspect-ratio: auto; height: 240px; }
.purchase-description-panel .purchase-image img { max-width: 100%; max-height: 200px; object-fit: contain; }
.purchase-summary { position: sticky; top: 105px; display: flex; flex-direction: column; gap: 18px; }
.purchase-summary p { margin: 0; }
.purchase-recipient { display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.registration-page { max-width: 640px; padding-top: 40px; padding-bottom: 40px; }
.registration-form { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.nav-profile { display: inline-flex !important; align-items: center; gap: 8px; max-width: 210px; }
.nav-profile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-profile .nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.header .logo { flex-shrink: 0; }
.header .nav { flex-wrap: nowrap; min-width: 0; }
.header .nav-link, .header .nav .btn { white-space: nowrap; }
@media (max-width: 1199px) {
    .header-inner { height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; flex-direction: row; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
    .mobile-menu-toggle { display: inline-block; }
    .header .nav { display: none; flex: 0 0 100%; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
    .header .nav.is-open { display: flex; }
    .header .nav-link { padding: 12px; }
    .header .nav-profile { max-width: 100%; }
    .header .nav .btn { min-height: 44px; justify-content: center; }
}
.profile-avatar .avatar-img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; }
@media (max-width: 767px) { .purchase-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } .purchase-summary { position: static; } .purchase-description-panel, .purchase-summary { padding: 20px; } }
/* Actual delivery contents in the product description. */
.purchase-contents { margin:20px 0; }
.purchase-contents h3 { font-size:1rem; margin:0 0 12px; }
.purchase-items { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.purchase-item { display:flex; align-items:center; gap:12px; padding:10px 12px; background:#111820; border:1px solid #303843; border-radius:10px; }
.purchase-item-image,.purchase-coin-icon { flex:0 0 48px; width:48px; height:48px; object-fit:contain; background:#1c232c; border-radius:8px; }
.purchase-item-label { min-width:0; flex:1; overflow-wrap:anywhere; }
.purchase-item-label strong { font-size:.95rem; font-weight:500; }
.purchase-item-label small { display:block; color:#aab4c0; font-size:.75rem; }
.purchase-item-count { flex-shrink:0; font-weight:600; color:#e7ecf2; font-variant-numeric:tabular-nums; }
.purchase-coin-icon { display:flex; align-items:center; justify-content:center; color:#d68b50; font-weight:700; font-size:1.5rem; }
@media(max-width:480px){.purchase-item{gap:8px;padding:8px}.purchase-item-count{font-size:.85rem}.purchase-item-label strong{font-size:.85rem}}
.commerce-page { max-width:1000px; padding-top:32px; padding-bottom:48px; }
.commerce-page h2{margin-top:28px;font-size:1.3rem}
.commerce-line { display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #303843;border-radius:12px;padding:16px;margin:12px 0;background:#161b22; }
.commerce-line>div{flex:1;min-width:0;overflow-wrap:anywhere}.commerce-line img{object-fit:contain;border-radius:8px}.commerce-line p{margin:6px 0;color:#aab4c0}
.commerce-line form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.commerce-line input[type=number]{width:80px;background:#111820;color:#eef1f5;border:1px solid #536273;border-radius:6px;padding:6px}.commerce-total{font-size:1.4rem;font-weight:700}
.header-inner{flex-wrap:wrap}.header-tools{display:flex;align-items:center;gap:12px;margin-left:auto}.header-wallet,.header-cart{color:#eef1f5;text-decoration:none;border:1px solid #465466;border-radius:8px;padding:7px 10px;white-space:nowrap;font-size:.85rem}.header-wallet{background:#202c30}.header-cart span{display:inline-block;min-width:18px;text-align:center;color:#f2958b}.language-switch{display:flex;align-items:center;gap:4px}.language-switch select{background:#161b22;color:#eef1f5;border:1px solid #536273;border-radius:6px;padding:5px}.language-apply{background:none;color:#eef1f5;border:1px solid #536273;border-radius:5px;padding:4px 7px}.product-new-badge{display:inline-block;font-size:.7rem;font-weight:800;letter-spacing:.06em;color:#10171a;background:#84d6ac;border-radius:5px;padding:3px 7px;margin:8px 0}
.hero-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:16px}.hero-badge{max-width:100%;overflow-wrap:anywhere}.server-offline .status-dot{background:#9aa5b5}.live-stat[hidden],#liveServerBadge[hidden]{display:none!important}
@media(max-width:800px){.header-tools{order:3;flex:1 1 100%;justify-content:flex-end;margin-top:8px}.header-inner>.nav{order:4}.commerce-line{flex-wrap:wrap}.commerce-line form{width:100%}.hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.product-details-link{display:block;color:inherit;text-decoration:none}.catalog-card form{margin-top:12px}.catalog-card form .btn{width:100%}
/* Compact navigation with account tools always visible. */
.header .header-inner{position:relative;min-height:76px;height:auto;flex-direction:row;flex-wrap:wrap;gap:14px;padding-top:14px;padding-bottom:14px}
.header .header-tools{order:0;flex:0 1 auto;margin:0 0 0 auto;gap:8px}
.header-wallet,.header-cart{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 13px;border-radius:12px;background:#1c232c;border-color:#36414f}
.header-wallet{background:linear-gradient(120deg,#233431,#1b2829);border-color:#3d5951;font-variant-numeric:tabular-nums}
.header-wallet:hover,.header-cart:hover{color:#fff;border-color:#d83432}
.header-cart span{background:#34262b;border-radius:6px;padding:1px 5px}
.header .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-color:#465466;border-radius:12px;padding:9px 14px;white-space:nowrap}
.header .mobile-menu-toggle[aria-expanded=true]{background:#29323e;border-color:#d83432}
.header-menu{position:absolute;right:0;top:calc(100% + 8px);width:310px;max-width:100%;display:flex;flex-direction:column;gap:5px;padding:16px;background:#171e27;border:1px solid #394451;border-radius:16px;box-shadow:0 18px 48px #0007;max-height:calc(100dvh - 160px);overflow-y:auto}
.header-menu[hidden]{display:none!important}
.header-menu .nav-link{display:flex;align-items:center;min-height:42px}
.header-menu .btn{justify-content:center;margin-top:8px}
.header-menu .language-switch{display:flex;gap:8px;margin-top:10px;padding-top:15px;border-top:1px solid #394451}
.header-menu .language-switch select{flex:1;min-width:0;padding:9px}
.header-menu .language-apply{padding:8px 12px;border-radius:7px}
.hero .hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:1000px;margin:0 auto;text-align:left}
.hero-info-card{text-align:left;display:flex;flex-direction:column;gap:7px;padding:22px 20px;background:#171d27cc;border:1px solid #ffffff16;border-radius:15px;box-shadow:inset 0 1px #ffffff04}
.hero-info-card .stat-value{font-size:1.8rem;line-height:1.3;letter-spacing:-.03em}
.hero-info-card .stat-command{font-size:1.35rem;padding-top:7px;padding-bottom:2px;overflow-wrap:anywhere}
.hero-info-card .stat-label{font-weight:600;color:#e3e7ed;font-size:.9rem}
.stat-detail{color:#9aa3b2;font-size:.78rem;line-height:1.6}
@media(max-width:1000px){.hero .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}}
@media(max-width:540px){.header .header-inner{gap:10px}.header .logo-text{font-size:1.1rem}.header .logo-img{width:26px;height:26px}.header .header-tools{order:2;flex:1 1 100%;justify-content:stretch}.header-tools .header-wallet{flex:1;justify-content:center}.header .mobile-menu-toggle{margin-left:auto}.header-menu{right:12px;max-width:calc(100% - 24px)}.hero-info-card{padding:17px 14px}.hero-info-card .stat-value{font-size:1.6rem}.hero-info-card .stat-command{font-size:1.05rem;padding-top:8px}.hero .hero-stats{gap:10px}}
.current-map-section{padding:54px 0 10px}
.current-map-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:36px;padding:30px;background:#171e27;border:1px solid #343e4b;border-radius:20px;align-items:center}
.current-map-description h2{font-size:2rem;margin-bottom:16px}.current-map-description>p{color:#aeb7c4;line-height:1.8}
.current-map-description dl{display:grid;gap:10px;margin:24px 0}.current-map-description dl>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #ffffff12;padding-bottom:9px}.current-map-description dt{color:#9aa5b5;font-weight:400}.current-map-description dd{margin:0;text-align:right;overflow-wrap:anywhere}.current-map-description [hidden],.current-map-preview [hidden]{display:none!important}
#currentMapStatus{font-size:.8rem}.current-map-preview{position:relative;background:#101923;border:1px solid #40505b;border-radius:13px;overflow:hidden;aspect-ratio:1;display:grid;place-items:center}
.current-map-preview img{width:100%;height:auto;display:block}.map-north{position:absolute;top:12px;right:14px;z-index:1;background:#101923cc;border:1px solid #ffffff20;border-radius:6px;padding:4px 8px;color:#fff;font-size:.8rem}.map-placeholder{color:#8b9aaa;text-align:center;padding:30px;max-width:260px}
.current-map-dialog{background:#171e27;color:#eef1f5;border:1px solid #465466;border-radius:16px;padding:16px;width:min(92vw,900px);max-height:94dvh}.current-map-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.map-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.map-dialog-toolbar h2{font-size:1.1rem;margin:0}.current-map-dialog>img{display:block;width:100%;height:auto}.current-map-dialog button:focus-visible,#openCurrentMap:focus-visible{outline:3px solid #79b8ff;outline-offset:3px}
@media(max-width:760px){.current-map-card{grid-template-columns:minmax(0,1fr);padding:20px;gap:20px}.current-map-section{padding-top:30px}.current-map-description h2{font-size:1.6rem}}
.legal-details-page .admin-panel{overflow-wrap:anywhere}.legal-details-page .admin-panel h2{margin-bottom:18px}.legal-details-page .admin-panel p{line-height:1.7}.legal-details-page .admin-grid{align-items:stretch}
.legal-offer-page{max-width:1040px}.legal-offer-page h1{margin-top:18px}.legal-edition{color:#aeb7c4;margin-bottom:24px}.legal-offer-page article>.admin-panel{margin-bottom:20px;padding:28px}.legal-offer-page article h2{font-size:1.3rem;line-height:1.5;margin-bottom:18px}.legal-offer-page article p{line-height:1.85;color:#c6cdd7;margin-bottom:16px}.legal-offer-page article p:last-child{margin-bottom:0}.legal-offer-page section[id]{scroll-margin-top:145px}.legal-offer-toc{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 24px}.legal-offer-toc a{padding:8px 12px;border:1px solid #394451;border-radius:9px;font-size:.85rem;text-decoration:none;color:#dce3ed}.legal-offer-toc a:hover{background:#29323e}.legal-offer-page a:focus-visible{outline:3px solid #79b8ff;outline-offset:3px}.legal-offer-page .legal-offer-intro{border-left:3px solid #d83432}
@media(max-width:540px){.legal-offer-page article>.admin-panel{padding:19px}.legal-offer-page h1{font-size:1.8rem}.legal-offer-page article h2{font-size:1.1rem}}

/* Shared CMS navigation and forms */
.cms-navigation{display:flex;gap:.75rem;flex-wrap:wrap;padding:1rem;margin-top:1rem;border:1px solid #343f4d;border-radius:12px;background:#161b22}.cms-navigation a{padding:.35rem .6rem;color:#c8d2dc;text-decoration:none}.cms-navigation a:hover{color:#fff;background:#28323e;border-radius:6px}.cms-form{display:grid;gap:1rem}.cms-form label{display:block;width:100%}.cms-form .form-control,.cms-form .form-select{width:100%;margin-top:.4rem}.cms-form button{justify-self:start}.admin-page code{overflow-wrap:anywhere}

.cms-form .form-select{background-color:#0f151d;color:#dce3ec;border-color:#3b4755}.cms-form input[type=date],.cms-form input[type=datetime-local]{color-scheme:dark}

/* Valahal editorial news: alternating covers and restrained promo geometry */
.news-masthead{position:relative;overflow:hidden;background:radial-gradient(ellipse at 75% 15%,#95533855,transparent 55%),linear-gradient(120deg,#1c1f23,#101113);border-bottom:1px solid #45494d;padding:56px 0 48px}.news-masthead:after{content:"";position:absolute;right:8%;top:-50%;width:260px;height:400px;border:1px solid #d8343244;transform:rotate(24deg);pointer-events:none}.news-masthead p{font-size:11px;letter-spacing:.25em;color:#b8a3a8}.news-masthead h1{font-size:clamp(2rem,4.3vw,4rem);font-weight:900;line-height:1.05;letter-spacing:-.035em;max-width:900px;margin:22px 0}.news-masthead h1 span{color:#d83432;margin-left:18px}.news-masthead .container>div{color:#aab2c0;font-size:16px}.news-layout,.publication-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;padding-top:38px;padding-bottom:60px}.news-feed{min-width:0}.news-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.news-feed-heading h2,.news-sidebar h2{font-size:17px;text-transform:uppercase;letter-spacing:.09em;margin:0}.news-feed-heading>a{font-size:12px;color:#d83432}.news-card{display:grid;grid-template-columns:45% 55%;min-height:280px;background:#1c1f23;border:1px solid #303643;position:relative;margin:0 24px 24px 0;overflow:hidden}.news-card-reverse{grid-template-columns:55% 45%;margin:0 0 24px 24px}.news-card-reverse .news-card-image{order:2}.news-card-reverse .news-card-copy{order:1}.news-card-image{position:relative;display:block;min-height:270px;overflow:hidden;background:#242a33;clip-path:polygon(0 0,100% 0,94% 100%,0 100%)}.news-card-reverse .news-card-image{clip-path:polygon(6% 0,100% 0,100% 100%,0 100%)}.news-card-image img{position:absolute;width:100%;height:100%;object-fit:cover;filter:saturate(.78);transition:transform .3s}.news-card:hover .news-card-image img{transform:scale(1.035)}.news-image-number{position:absolute;left:18px;bottom:16px;font-weight:800;font-size:36px;color:#ffffffbb;line-height:1}.news-card-copy{display:flex;flex-direction:column;padding:25px 24px 20px;min-width:0}.news-card-top{display:flex;flex-wrap:wrap;gap:10px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#c0a0a6}.news-card-top strong{color:#0f141a;background:#d83432;padding:2px 6px;letter-spacing:.08em}.news-card-copy h2{font-size:clamp(19px,1.7vw,24px);line-height:1.2;margin:16px 0 12px;text-transform:uppercase;font-weight:800;overflow-wrap:anywhere}.news-card-copy h2 a{color:#f0e9eb;text-decoration:none}.news-card-copy h2 a:hover{color:#df7b7b}.news-card-copy>p{font-size:14px;line-height:1.65;color:#a7afba;overflow-wrap:anywhere;margin-bottom:25px}.news-card-bottom{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;align-items:center;font-size:11px}.news-card-bottom time{color:#858d99;margin-right:auto}.news-card-bottom a{color:#d67a7a;text-decoration:none}.news-sidebar{align-self:start;position:sticky;top:100px;background:#1c1f23;border-top:3px solid #d83432;padding:24px 22px;min-width:0}.news-sidebar form{display:grid;gap:9px;margin:22px 0}.news-sidebar input{width:100%;min-width:0;border:1px solid #39414e;color:#e6eaf0;background:#0e141c;padding:10px;font-size:13px}.news-sidebar button{background:#d83432;border:0;color:#fff;padding:10px;font-size:12px;text-align:left}.news-sidebar nav{display:grid;gap:0}.news-sidebar nav a{padding:11px 0;color:#aab1bc;text-decoration:none;font-size:13px;border-bottom:1px solid #2b303c}.news-sidebar nav a.active{color:#ed9494;font-weight:700}.news-sidebar nav a.active:before{content:"› ";color:#d83432}.news-sidebar-note{border-top:1px solid #3d3540;margin-top:24px;padding-top:24px}.news-sidebar-note span{letter-spacing:.2em;font-size:12px;font-weight:800;color:#d83432}.news-sidebar-note p{font-size:14px;line-height:1.6;margin-top:14px;color:#aeb5c0}.news-sidebar-note a{color:#d77c7c;font-size:12px}.news-pagination{display:flex;justify-content:center;gap:30px;margin-top:30px;color:#8e97a7;font-size:13px}.news-pagination a{color:#d57a7a}.publication{min-width:0;background:#1c1f23;border:1px solid #303643}.publication-back{display:block;padding:18px 28px;font-size:12px;color:#c58c94}.publication-cover{aspect-ratio:16/8;overflow:hidden;background:#0e141c}.publication-cover img{width:100%;height:100%;object-fit:cover}.publication-heading{padding:30px 34px 0}.publication-heading h1{font-size:clamp(25px,3vw,42px);line-height:1.12;font-weight:800;letter-spacing:-.02em;text-transform:uppercase;margin:24px 0}.publication-meta{display:flex;flex-wrap:wrap;gap:15px;font-size:11px;color:#8f99a8;text-transform:uppercase;letter-spacing:.04em}.publication-meta a{color:#cd7272}.publication-lead{font-size:18px;color:#bec6d1;line-height:1.65;border-left:3px solid #d83432;padding-left:20px}.publication-body{padding:22px 34px 34px;color:#bdc4cf;font-size:16px;line-height:1.9;overflow-wrap:anywhere}.publication-body p{margin:0 0 24px}.publication-body h2{font-size:26px;color:#eef0f4;margin:36px 0 20px;line-height:1.25}.publication-body h3{font-size:21px;color:#eef0f4;margin:28px 0 18px}.publication-body blockquote{border-left:3px solid #d83432;padding:20px;background:#232432;color:#e0d3d6}.publication-body img{max-width:100%;height:auto;display:block}.publication-body figure{margin:30px 0}.publication-body a{color:#e17c7c}.publication-body hr{margin:34px 0;border-color:#5b404b}.publication-footer{padding:22px 34px;background:#121720;border-top:1px solid #323643}.publication-footer a{font-size:13px;color:#d27e7e}.related-item{display:grid;gap:12px;padding:22px 0;border-bottom:1px solid #303643;text-decoration:none;color:#c9cdd5;font-size:13px;text-transform:uppercase;line-height:1.5}.related-item img{width:100%;aspect-ratio:16/9;object-fit:cover}.related-item small{color:#828c9d;font-size:10px}.cms-news-fields{padding:20px;border:1px solid #3d4654;display:grid;gap:18px}.cms-news-fields legend{float:none;width:auto;font-size:18px}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#1c1f23;border:1px solid #34404f}.editor-toolbar button,.editor-toolbar label{width:auto!important;background:#263140;border:1px solid #445164;color:#d9e0e8;padding:7px 11px;font-size:12px;cursor:pointer}.editor-toolbar input{display:block;max-width:220px;font-size:11px;margin-top:8px}
@media(max-width:1000px){.news-layout,.publication-layout{grid-template-columns:minmax(0,1fr) 210px;gap:20px}.news-card,.news-card-reverse{margin-left:0;margin-right:0}.news-card-copy{padding:20px 18px}.news-card-copy h2{font-size:19px}.news-sidebar{padding:20px 16px}}
@media(max-width:760px){.news-masthead{padding:34px 0}.news-masthead h1 span{display:block;margin:12px 0 0;font-size:26px}.news-layout,.publication-layout{display:flex;flex-direction:column;padding-top:24px;gap:26px}.news-sidebar{position:static;order:-1}.news-sidebar nav{display:flex;flex-wrap:wrap;gap:8px}.news-sidebar nav a{border:1px solid #45494d;padding:7px 10px}.news-sidebar form{grid-template-columns:1fr auto;margin:16px 0}.news-sidebar-note{display:none}.news-card,.news-card-reverse{grid-template-columns:1fr;margin:0 0 24px}.news-card-image,.news-card-reverse .news-card-image{order:0;min-height:0;aspect-ratio:16/9;clip-path:none}.news-card-copy,.news-card-reverse .news-card-copy{order:1;padding:24px}.news-card-copy h2{font-size:23px}.news-feed-heading{align-items:flex-start}.publication-related{order:1}.publication-heading{padding:24px 22px 0}.publication-body{padding:20px 22px}.publication-footer{padding:20px 22px}.publication-cover{aspect-ratio:16/10}}
@media(prefers-reduced-motion:reduce){.news-card-image img{transition:none}.news-card:hover .news-card-image img{transform:none}}

.home-news{padding-top:50px;padding-bottom:50px}.home-news .news-card{min-height:290px}.home-news .news-card-copy h2{font-size:28px}
