/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../img/bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #ecedee;
    line-height: 1.5;
    padding-bottom: 70px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: -1;
}

:root {
    --gold: #b8860b;
    --gold-light: #e0a800;
    --gold-dark: #8b6508;
    --dark-bg: #0a090f;
    --card-bg: #11101c;
    --border-color: #2a2638;
    --text-muted: #a5a5bb;
    --text-dark: #6f6f8a;
    --success: #2ecc71;
    --danger: #e74c3c;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: #1a1625;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(12px, 4vw, 32px);
}

/* ---------- TYPOGRAPHY ---------- */
.section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-sub {
    text-align: center;
    color: var(--gold);
    margin-bottom: clamp(24px, 5vh, 40px);
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(10px, 2.5vh, 14px) clamp(20px, 5vw, 34px);
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: #0a090f;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    background: #d9a41a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.4);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold-light);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(184, 134, 11, 0.2);
    transform: translateY(-2px);
}

/* ========== ДРОПДАУН ========== */
.social-dropdown-trigger {
    position: relative;
    cursor: pointer;
}

.social-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 16, 28, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 160px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
    z-index: 1001;
    animation: fadeInUp 0.2s ease;
}

.social-dropdown.open {
    display: block;
}

.social-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #a5a5bb;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: 0.2s;
    white-space: nowrap;
}

.social-dropdown a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.social-dropdown a:hover {
    background: rgba(184, 134, 11, 0.15);
    color: #e0a800;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 550px) {
    .social-dropdown {
        min-width: 140px;
        padding: 10px 12px;
        bottom: 110%;
    }
    .social-dropdown a {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .social-dropdown a i {
        font-size: 1rem;
        width: 20px;
    }
}

.hero {
    position: relative;
    min-height: clamp(500px, 90vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 clamp(20px, 5vw, 48px) clamp(20px, 5vw, 48px);
    margin-bottom: clamp(20px, 4vh, 40px);
}

/* Картинка фон */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Видео фон (поверх картинки) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Затемнение поверх всего */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 3, 10, 0.521) 0%, rgba(15, 12, 31, 0.425) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: clamp(20px, 8vh, 60px) clamp(16px, 5vw, 40px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: clamp(20px, 5vh, 40px);
}

.logo {
    max-width: min(280px, 70%);
    width: auto;
    height: auto;
    margin-bottom: clamp(16px, 3vh, 24px);
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.5));
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(184, 134, 11, 0.8));
}

/* ---------- ТАЙМЕР ---------- */
.countdown-wrapper {
    text-align: center;
    margin: 10px 0 30px;
}

.countdown-title {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #d49b0a;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.countdown-timer {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #e0a800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: monospace;
    letter-spacing: 2px;
    display: inline-block;
}

/* Мобильная адаптация */
@media (max-width: 550px) {
    .countdown-timer {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .countdown-title {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 360px) {
    .countdown-timer {
        font-size: 1rem;
    }
}

/* ---------- ONLINE STATS ---------- */
.online-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: transparent;
    margin: 0 auto;
    width: fit-content;
}

.online-icon {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.online-text {
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.online-number {
    color: var(--gold-light);
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-weight: 800;
    margin-left: 4px;
}

/* ---------- СТАТУС СЕРВЕРА ---------- */
.server-status-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.server-status-compact {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    transition: 0.2s;
}

.server-status-compact:hover {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
}

.server-status-compact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.server-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ecedee;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.server-name i {
    color: var(--gold);
    font-size: 0.75rem;
}

.server-chronicle {
    font-size: 0.65rem;
    color: var(--gold-light);
    background: rgba(184, 134, 11, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
}

.status-online-compact,
.status-offline-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 40px;
}

.status-online-compact {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.status-offline-compact {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.status-online-compact i,
.status-offline-compact i {
    font-size: 0.45rem;
}

.status-online-compact i {
    animation: pulse-green 1.5s infinite;
}

.server-status-compact-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.compact-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.7rem;
}

.compact-stat i {
    color: var(--gold);
    font-size: 0.6rem;
}

.compact-stat span {
    font-weight: 600;
    color: #ecedee;
}

.compact-stat .stat-max {
    font-weight: 400;
    color: var(--text-dark);
}

.server-progress-bar {
    width: 100%;
    height: 4px;
    background: #1e1c2c;
    border-radius: 10px;
    overflow: hidden;
}

.server-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ---------- BOTTOM NAVIGATION ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 9, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: clamp(6px, 2vh, 10px) clamp(12px, 4vw, 24px) clamp(12px, 3vh, 20px);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #8a8aa3;
    text-decoration: none;
    font-size: clamp(0.6rem, 2vw, 0.75rem);
    transition: 0.2s;
    padding: 6px clamp(8px, 2vw, 16px);
    border-radius: 40px;
}

.nav-item i {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
}

.nav-item.active {
    color: var(--gold-light);
    background: rgba(184, 134, 11, 0.15);
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--card-bg);
    border-radius: clamp(20px, 4vw, 32px);
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 134, 11, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 700;
    margin-bottom: clamp(16px, 3vh, 24px);
    border-left: 3px solid var(--gold);
    padding-left: 14px;
}

.card-header i {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--gold);
}

/* ---------- SECTIONS ---------- */
.section {
    padding: clamp(30px, 8vh, 60px) 0;
}

/* ---------- PROMO ---------- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.promo-card {
    background: linear-gradient(135deg, var(--card-bg), #0d0c16);
    border-radius: clamp(20px, 4vw, 28px);
    padding: clamp(20px, 4vh, 28px);
    border: 1px solid rgba(184, 134, 11, 0.3);
    transition: 0.3s;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.2);
}

.promo-icon {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 16px;
}

.promo-card-title {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--gold-light);
}

.promo-card-desc {
    color: #b9b9ce;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.4;
}

.promo-date {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(184, 134, 11, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ---------- TOPS ---------- */
.top-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    padding: 8px 0 20px 0;
}

.top-card {
    background: linear-gradient(135deg, #11101c, #0d0c16);
    border-radius: clamp(20px, 4vw, 28px);
    padding: clamp(20px, 4vh, 28px);
    border: 1px solid rgba(184, 134, 11, 0.3);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
}

.top-card:hover {
    transform: translateY(-5px);
    border-color: #b8860b;
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.2);
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.top-header i {
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: #b8860b;
}

.top-header h3 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-weight: 800;
    color: #e0a800;
    margin: 0;
}

.top-list {
    list-style: none;
    flex: 1;
}

.top-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-list li:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 800;
    color: #b8860b;
    width: 35px;
    font-size: 0.9rem;
}

.name {
    flex: 1;
    text-align: left;
    margin-left: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ecedee;
}

.name img {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.value {
    background: rgba(184, 134, 11, 0.15);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e0a800;
    min-width: 50px;
    text-align: center;
}

/* ---------- STREAMS ---------- */
.content__streams {
    background: var(--card-bg);
    border-radius: clamp(20px, 4vw, 32px);
    padding: clamp(20px, 4vh, 28px);
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.streams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.streams__slnav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slnav__arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.slnav__arrow:hover {
    background: var(--gold);
    color: #0a090f;
    border-color: var(--gold);
    transform: scale(1.05);
}

.slnav__pagination {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.streams__list {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.stream-slider {
    display: flex;
    transition: transform 0.4s ease-out;
    cursor: grab;
    will-change: transform;
}

.stream-slider:active {
    cursor: grabbing;
}

.stream-slide {
    flex: 0 0 100%;
    width: 100%;
}

.stream-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px;
    background: #000;
}

.stream-add-card {
    background: linear-gradient(135deg, #0d0c16, #0a090f);
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(184, 134, 11, 0.4);
    transition: 0.2s;
}

.stream-add-card:hover {
    border-color: var(--gold);
    background: rgba(184, 134, 11, 0.05);
}

.stream-add-content {
    text-align: center;
    padding: 20px;
}

.stream-add-content i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.stream-add-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.stream-add-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.stream-add-link:hover {
    gap: 12px;
    color: #fff;
}

.streams__grp {
    text-align: center;
    margin-top: 24px;
}

.streams__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: #0a090f;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.streams__add-btn:hover {
    background: #d9a41a;
    transform: translateY(-2px);
    gap: 14px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 12px);
    margin-top: clamp(16px, 3vh, 24px);
}

.dot {
    width: clamp(6px, 2vw, 8px);
    height: clamp(6px, 2vw, 8px);
    border-radius: 50%;
    background: #3a3645;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: var(--gold);
    width: clamp(20px, 5vw, 28px);
    border-radius: 10px;
}

/* ---------- NEWS & FORUM ---------- */
.news-forum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(20px, 4vw, 32px);
}

.news__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.news__item {
    display: flex;
    gap: 16px;
    background: #0b0a12;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.news__item:hover {
    border-color: var(--gold);
    transform: translateX(6px);
    background: #13111e;
}

.news__image {
    width: 100px;
    min-width: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news__content {
    flex: 1;
    padding: 14px 16px 14px 0;
}

.news__date {
    font-size: 0.7rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news__title {
    font-size: 1rem;
    font-weight: 700;
    color: #ecedee;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: 0.2s;
}

.news__item:hover .news__title {
    color: var(--gold-light);
}

.news__excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}

.news__read-more {
    font-size: 0.75rem;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.news__item:hover .news__read-more {
    gap: 10px;
    color: var(--gold-light);
}

.forum-topic__list {
    padding: 14px 0;
    border-bottom: 1px solid #1e1c2c;
    transition: 0.2s;
}

.forum-topic__list:hover {
    background: rgba(184, 134, 11, 0.08);
    padding-left: 12px;
    margin-left: -12px;
    padding-right: 12px;
    border-radius: 16px;
}

.forum-topic__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-topic__name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-topic__link {
    color: #f0f0ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s;
}

.forum-topic__link:hover {
    color: var(--gold-light);
}

.forum-topic__author {
    font-size: 0.7rem;
    color: #8a8aa3;
}

.forum-topic__author i {
    margin-right: 4px;
    color: var(--gold);
}

.forum-topic__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-topic__message {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.forum-topic__message i {
    margin-right: 6px;
    color: var(--gold);
    font-size: 0.7rem;
}

.forum-topic__date {
    font-size: 0.7rem;
    color: var(--text-dark);
}

.forum-topic__date i {
    margin-right: 4px;
    color: var(--gold);
}

.more-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: 0.2s;
}

.more-link:hover {
    gap: 12px;
    color: var(--gold-light);
}

/* ---------- SOCIAL NETWORKS ---------- */
.scl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.scl__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0b0a12;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    font-size: 1.2rem;
}

.scl__item:hover {
    background: var(--gold);
    color: #0a090f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

/* ---------- FOOTER ---------- */
.footer-section {
    background: #0a090f;
    border-top: 1px solid #1e1c2c;
    padding: clamp(40px, 8vh, 60px) 0 clamp(20px, 4vh, 30px);
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr;
    gap: clamp(30px, 4vw, 50px);
    margin-bottom: clamp(40px, 6vh, 60px);
}

.footer__site {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.3));
}

.footer__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- РЕКЛАМНЫЕ БАННЕРЫ ---------- */
.footer__ads {
    min-width: 200px;
}

.footer__ads-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 1px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.ad-slot {
    width: 88px;
    height: 31px;
    background: #0b0a12;
    border-radius: 4px;
    transition: 0.2s;
    border: 1px solid #2a2638;
    overflow: hidden;
}

.ad-slot:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.ad-slot a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ads-more {
    text-align: center;
    margin-top: 8px;
}

.ads-add-link {
    font-size: 0.65rem;
    color: var(--gold);
    text-decoration: none;
    transition: 0.2s;
}

.ads-add-link:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ---------- КОПИРАЙТ ---------- */
.footer__copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e1c2c;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 32px);
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    transition: 0.2s;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-copyright {
    font-size: clamp(0.65rem, 2vw, 0.7rem);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: clamp(0.6rem, 2vw, 0.65rem);
    color: #5a5a75;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* ---------- POPUPS ---------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #11101c, #0a090f);
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px 25px;
    border: 1px solid #b8860b;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #8a8aa3;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.2s;
}

.popup-close:hover {
    color: #e0a800;
}

.popup-icon {
    font-size: 48px;
    color: #b8860b;
    text-align: center;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.popup-subtitle {
    text-align: center;
    color: #a5a5bb;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.popup-content {
    color: #b9b9ce;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.popup-content h3 {
    color: #e0a800;
    margin: 16px 0 8px;
    font-size: 1rem;
}

.popup-content p {
    margin-bottom: 12px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0a12;
    padding: 16px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid var(--border-color);
}

.download-link:hover {
    border-color: var(--gold);
    transform: translateX(6px);
    background: #13111e;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-info i {
    font-size: 28px;
    color: var(--gold);
}

.download-text {
    display: flex;
    flex-direction: column;
}

.download-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.download-size {
    font-size: 0.7rem;
    color: var(--text-dark);
}

.download-arrow {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ---------- ANIMATIONS ---------- */
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ---------- DESKTOP STYLES (1025px+) ---------- */
@media (min-width: 1025px) {
    .top-scroll {
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
}

/* ---------- TABLET STYLES (768px - 1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .top-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ---------- MOBILE STYLES (up to 767px) ---------- */
@media (max-width: 767px) {
    .top-scroll {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 8px 4px 20px 4px;
    }
    
    .top-scroll::-webkit-scrollbar {
        height: 4px;
    }
    
    .top-card {
        flex: 0 0 min(280px, 85vw);
        scroll-snap-align: start;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__site {
        align-items: center;
        text-align: center;
    }
    
    .ads-grid {
        grid-template-columns: repeat(5, 88px);
        gap: 10px;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .scl {
        justify-content: center;
    }
}

/* ---------- SMALL MOBILE (up to 550px) ---------- */
@media (max-width: 550px) {
    .countdown-timer {
        padding: 12px 20px;
        gap: 6px;
    }
    
    .timer-block {
        min-width: 50px;
    }
    
    .timer-number {
        font-size: 1.2rem;
    }
    
    .timer-label {
        font-size: 0.55rem;
    }
    
    .timer-separator {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .countdown-title {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }
    
    .countdown-subtitle {
        font-size: 0.7rem;
    }
    
    .online-stats {
        width: 90%;
        padding: 12px 16px;
    }
    
    .server-status-compact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-status-compact-stats {
        gap: 16px;
    }
    
    .server-name {
        font-size: 0.75rem;
    }
    
    .compact-stat {
        font-size: 0.65rem;
    }
    
    .news__item {
        flex-direction: column;
    }
    
    .news__image {
        width: 100%;
        height: 140px;
        min-width: auto;
    }
    
    .news__content {
        padding: 14px;
    }
    
    .news__title {
        font-size: 0.95rem;
    }
    
    .news__excerpt {
        font-size: 0.75rem;
    }
    
    .forum-topic__name {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forum-topic__info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scl__item {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .ads-grid {
        grid-template-columns: repeat(3, 88px);
        gap: 8px;
    }
}

/* ---------- EXTRA SMALL (up to 360px) ---------- */
@media (max-width: 360px) {
    .countdown-timer {
        padding: 10px 15px;
        gap: 4px;
    }
    
    .timer-block {
        min-width: 40px;
    }
    
    .timer-number {
        font-size: 1rem;
    }
    
    .timer-label {
        font-size: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        font-size: 1.4rem;
    }
    
    .name {
        white-space: normal;
        word-break: break-word;
    }
    
    .top-header h3 {
        font-size: 1.2rem;
    }
    
    .ads-grid {
        grid-template-columns: repeat(2, 88px);
    }
}