/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/* ===== ГЛОБАЛЬНЫЙ ФОН ===== */
body {
    background: url("images/rust-bg.jpg") center/cover no-repeat fixed;
    color: #fff;
    overflow-x: hidden;
}

/* ===== ГЛОБАЛЬНОЕ ЗАТЕМНЕНИЕ НА ВСЮ СТРАНИЦУ ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
    pointer-events: none;
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* ЛОГО */
.logo {
    font-size: 32px;
    font-weight: 700;
    color: #ff00ff;
    text-shadow: 0 0 15px #ff00ff, 0 0 35px #b400ff, 0 0 55px #ff00ff;
}

/* ===== NAV ===== */
#navMenu a {
    margin-left: 25px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

#navMenu a:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* Кнопка Играть */
.play-btn {
    padding: 10px 22px;
    background: linear-gradient(45deg, #ff00ff, #b400ff);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 20px;
    transition: 0.3s;
    box-shadow: 0 0 25px #ff00ff;
    cursor: pointer;
}

.play-btn:hover {
    background: linear-gradient(45deg, #ff33ff, #cc00ff);
    box-shadow: 0 0 40px #ff00ff;
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: relative;
    margin-left: 15px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(70, 0, 110, 0.25);
    border: 1px solid rgba(255, 0, 255, 0.35);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(180, 0, 255, 0.25);
    transition: 0.3s;
}

.lang-current:hover {
    background: linear-gradient(45deg, #ff00ff, #b400ff);
    box-shadow: 0 0 20px #ff00ff;
}

.lang-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    display: none;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.25);
    backdrop-filter: blur(8px);
    z-index: 1200;
}

.lang-dropdown.open .lang-menu {
    display: flex;
}

.lang-option {
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.lang-option:hover {
    background: rgba(255, 0, 255, 0.18);
    color: #ffccff;
}

/* ===== БУРГЕР ===== */
.burger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    margin-left: 15px;
}

/* ===== HERO ===== */
.hero {
    height: 250px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    z-index: 2;
    font-size: 60px;
    color: #ffccff;
    text-shadow:
        0 0 25px #ff00ff,
        0 0 45px #b400ff,
        0 0 70px #ff00ff;
}

.sub {
    z-index: 2;
    margin-top: 10px;
    font-size: 22px;
    color: #ffb7ff;
    text-shadow: 0 0 15px #ff00ff;
}

/* Кнопка */
.btn {
    z-index: 2;
    margin-top: 25px;
    padding: 12px 30px;
    background: rgba(255, 0, 255, 0.15);
    border: 2px solid #ff00ff;
    color: #ff00ff;
    font-size: 20px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 0 15px #8a00ff inset;
}

.btn:hover {
    background: #ff00ff;
    color: #000;
    box-shadow:
        0 0 20px #ff00ff,
        0 0 35px #b400ff,
        0 0 60px #ff00ff;
}

/* ===== INFO ===== */
.info {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 80px 20px;
}

.info-card {
    width: 260px;
    padding: 20px;
    background: rgba(70, 0, 110, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.35);
    text-align: center;
    box-shadow: 0 0 25px #b400ff;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff00ff;
}

.info-card p {
    font-size: 20px;
}

/* ===== SERVER INFO PANEL ===== */
.server-info {
    margin-top: 120px;
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px 30px;
    background: rgba(70, 0, 110, 0.25);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 15px;
    box-shadow: 0 0 25px #b400ff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.info-line {
    display: flex;
    gap: 10px;
    font-size: 20px;
    align-items: center;
}

.info-title {
    font-weight: 700;
    color: #ff99ff;
    text-shadow: 0 0 10px #ff00ff;
}

.info-value {
    color: #ffffff;
}

/* ===== NEWS ===== */
.news-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto 0;
    text-align: center;
}

.news-section h2 {
    font-size: 42px;
    margin-bottom: 35px;
    color: #ffccff;
    text-shadow:
        0 0 25px #ff00ff,
        0 0 45px #b400ff,
        0 0 70px #ff00ff;
}

.news-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.news-card {
    width: 320px;
    padding: 25px;
    background: rgba(70, 0, 110, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.35);
    box-shadow: 0 0 25px #b400ff;
    text-align: left;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px #ff00ff;
}

.news-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 12px #ff00ff;
}

.news-card p {
    font-size: 18px;
    line-height: 1.6;
}

/* ===== ТОП ИГРОКОВ ===== */
.top-stats {
    padding: 90px 20px 80px;
    text-align: center;
}

.top-stats h2 {
    font-size: 42px;
    margin-bottom: 40px;
    color: #ffccff;
    text-shadow: 
        0 0 25px #ff00ff,
        0 0 45px #b400ff,
        0 0 70px #ff00ff;
}

.tops-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-card {
    width: 320px;
    padding: 25px;
    background: rgba(70, 0, 110, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.35);
    box-shadow: 0 0 25px #b400ff;
    text-align: left;
}

.top-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 12px #ff00ff;
}

.top-card ul {
    list-style: none;
    font-size: 18px;
    line-height: 1.7;
}

.top-card li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.top-card li:last-child {
    border-bottom: none;
}

/* ===== DONATE GOAL ===== */
.donate-goal {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto 0;
    text-align: center;
}

.donate-goal h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #ffccff;
    text-shadow:
        0 0 25px #ff00ff,
        0 0 45px #b400ff,
        0 0 70px #ff00ff;
}

.donate-card {
    padding: 30px;
    background: rgba(70, 0, 110, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.35);
    box-shadow: 0 0 25px #b400ff;
    transition: 0.3s;
}

.donate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px #ff00ff;
}

.donate-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px #ff00ff;
}

#donate-current,
#donate-goal {
    color: #ffccff;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 26px;
    background: rgba(20, 0, 35, 0.9);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 255, 0.35);
    box-shadow: inset 0 0 15px rgba(180, 0, 255, 0.35);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff00ff, #b400ff);
    box-shadow:
        0 0 15px #ff00ff,
        0 0 30px #b400ff;
    transition: width 0.8s ease;
}

.progress-percent {
    margin-top: 15px;
    font-size: 22px;
    color: #ffb7ff;
    text-shadow: 0 0 10px #ff00ff;
}

/* ===== ADAPTIVE ===== */
@media (max-width: 850px) {
    #navMenu {
        display: none;
        position: absolute;
        top: 70px;
        right: 40px;
        background: rgba(0,0,0,0.85);
        padding: 15px;
        border-radius: 10px;
        flex-direction: column;
        gap: 10px;
        width: 180px;
    }

    .burger {
        display: block;
    }

    .info {
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .btn {
        font-size: 18px;
    }

    .top-stats h2 {
        font-size: 32px;
    }

    .top-card {
        width: 90%;
    }

    .news-section h2 {
        font-size: 32px;
    }

    .news-card {
        width: 90%;
    }

    .donate-goal h2 {
        font-size: 32px;
    }

    .donate-text {
        font-size: 20px;
    }

    .progress-percent {
        font-size: 18px;
    }

    .lang-dropdown {
        margin-left: 10px;
    }

    .lang-current {
        padding: 8px 12px;
    }

    .lang-menu {
        right: auto;
        left: 0;
    }
}
/* правый блок в header */
.header {
    display: flex;
    align-items: center;
}

/* меню по центру */
#navMenu {
    margin-left: 40px;
}

/* кнопка играть */
.play-btn {
    order: 2;
    margin-left: 12px;
}

/* язык перед кнопкой */
.lang-dropdown {
    order: 1;
    margin-left: auto;
}

/* бургер справа */
.burger {
    order: 3;
    margin-left: 12px;
}
/* центрируем меню */
#navMenu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
}

/* чтобы header корректно работал */
.header {
    position: relative;
    display: flex;
    align-items: center;
}

/* правый блок (язык + играть + бургер) */
.lang-dropdown {
    margin-left: auto;
    order: 1;
}

.play-btn {
    order: 2;
    margin-left: 12px;
}

.burger {
    order: 3;
    margin-left: 12px;
}
/* ===== ДОБАВЛЕНО: как на главной ===== */

#navMenu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== LANGUAGE ===== */

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(70, 0, 110, 0.25);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
}

.lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(10,10,15,0.95);
    border-radius: 8px;
    overflow: hidden;
}

.lang-dropdown.open .lang-menu {
    display: flex;
}

.lang-option {
    padding: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.lang-option:hover {
    background: rgba(255,0,255,0.2);
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .server-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
/* ===== TOP SIDEBAR ===== */
.top-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    background: rgba(20, 0, 35, 0.92);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 30px rgba(180, 0, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 16px 14px 12px;
    overflow: hidden;
}

.top-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.top-sidebar-icon {
    font-size: 20px;
}

.top-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffccff;
    text-shadow: 0 0 10px #ff00ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-sidebar-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.top-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 0, 255, 0.3);
    border: 1px solid rgba(255, 0, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.top-dot.active {
    background: #ff00ff;
    box-shadow: 0 0 8px #ff00ff;
}

.top-sidebar-list {
    list-style: none;
    font-size: 13px;
    line-height: 1.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.top-sidebar-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
    color: #f0d0ff;
}

.top-sidebar-list li:last-child {
    border-bottom: none;
}

.top-num {
    min-width: 18px;
    font-weight: 700;
    color: #ff00ff;
    text-shadow: 0 0 6px #ff00ff;
    font-size: 12px;
}

.top-sidebar-bar {
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #ff00ff, #b400ff);
    border-radius: 2px;
    margin-top: 10px;
    box-shadow: 0 0 6px #ff00ff;
}

@media (max-width: 850px) {
    .top-sidebar {
        display: none;
    }
}

/* ===== TOP SIDEBAR TOGGLE ===== */
.top-sidebar-toggle {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 44px;
    background: rgba(20, 0, 35, 0.92);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #ff00ff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 15px rgba(180, 0, 255, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
    line-height: 1;
}

.top-sidebar-toggle:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: -4px 0 20px rgba(255, 0, 255, 0.4);
}

.top-sidebar-inner {
    transition: opacity 0.3s ease;
}

.top-sidebar.collapsed {
    width: 0;
    padding: 0;
    border-color: transparent;
    box-shadow: none;
}

.top-sidebar.collapsed .top-sidebar-inner {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    width: 0;
}

.top-sidebar {
    transition: width 0.35s ease, padding 0.35s ease;
    overflow: visible;
}

/* ===== SIDEBAR TOGGLE BUTTON ===== */
.top-sidebar-toggle {
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 52px;
    background: rgba(20, 0, 35, 0.92);
    border: 1px solid rgba(255, 0, 255, 0.35);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #ff00ff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 15px rgba(180, 0, 255, 0.25);
    transition: background 0.3s, box-shadow 0.3s;
    line-height: 1;
    padding: 0;
}

.top-sidebar-toggle:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: -4px 0 20px rgba(255, 0, 255, 0.4);
}

.top-sidebar.hidden {
    transform: translateY(-50%) translateX(100%);
}

.top-sidebar.hidden .top-sidebar-toggle {
    left: -28px;
}

.top-sidebar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
