/* === ОСНОВНЫЕ НАСТРОЙКИ === */
@font-face {
    font-family: 'Lineage 2 Font';
    src: url('../fonts/lineage-2-font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lineage 2 Font', 'Cinzel', serif;
    color: #fff;
    background: #000;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* === НАВИГАЦИЯ === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.521);
    padding: 10px 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

/* === МЕНЮ === */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

/* === КНОПКИ === */
.nav-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e9d7a1;
    font-weight: bold;
    text-align: center;
    width: 140px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(30, 25, 15, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-button:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff3c1;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 240, 180, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 2;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button span {
    position: relative;
    z-index: 3;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

/* === КНОПКА "СКАЧАТЬ" === */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px; 
    margin-top: 50px;
}

/* Контейнер для кнопки */
.download-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

/* Кнопка */
.nav-button-k {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e9d7a1;
    font-weight: bold;
    text-align: center;
    width: 140px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.781);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    font-family: 'Lineage 2 Font';
}

.nav-button-k:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff3c1;
}

.nav-button-k::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 240, 180, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 2;
}

.nav-button-k:hover::before {
    left: 100%;
}

.nav-button-k span {
    position: relative;
    z-index: 3;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.938);
}

/* Адаптивность */
@media (max-width: 768px) {
    .countdown-wrapper {
        gap: 25px;
        margin-top: 30px;
    }
    .nav-button-k {
        width: 120px;
        height: 44px;
    }
    .download-button-container {
        top: 0;
        margin-top: 10px;
    }
}

/* === БУРГЕР-МЕНЮ === */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 28px;
    cursor: pointer;
    position: absolute;
    right: 25px;
    z-index: 1002;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: rgba(25, 20, 15, 0.95);
        padding: 15px;
        z-index: 1001;
        backdrop-filter: blur(6px);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-button {
        width: 150%;
        margin: 6px auto;
    }
}

/* === HERO === */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    z-index: 1; 
    background: rgba(31, 30, 58, 0.5) url('../img/bg/bgt.png') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgb(0, 0, 0), transparent);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0) 75%),
        linear-gradient(45deg, rgba(0, 0, 0, 0) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0) 75%);
    background-size: 2px 2px;
    background-position: 0 0, 1.3px 1.3px;
    image-rendering: pixelated;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

/* Корректировка для Retina-дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-overlay {
        background-size: 4px 4px;
        background-position: 0 0, 2.6px 2.6px;
    }
}

/* === Адаптивность для hero-overlay === */
@media (max-width: 768px) {
    .hero-overlay {
        padding: 20px;
    }
}

/* === Основной контейнер === */
.main-container {
    max-width: 950px;
    width: 100%;
    color: #d1bbbb;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

/* === Рейты === */
.rates {
    text-align: left;
    width: 30%;
}

.rates-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 8px rgba(117, 100, 0, 0.7),
        0 0 16px rgba(226, 192, 1, 0.6),
        -1px -1px 1px rgba(0, 0, 0, 0.6),
        1px -1px 1px rgba(0, 0, 0, 0.6),
        -1px 1px 1px rgba(0, 0, 0, 0.6),
        1px 1px 1px rgba(0, 0, 0, 0.6),
        0 2px 2px rgba(20, 15, 5, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.rates-item {
    font-size: 18px;
    margin: 4px 0;
    color: #ffd700;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 6px rgba(117, 100, 0, 0.6),
        0 0 12px rgba(226, 192, 1, 0.5),
        -1px -1px 1px rgba(0, 0, 0, 0.55),
        1px -1px 1px rgba(0, 0, 0, 0.55),
        -1px 1px 1px rgba(0, 0, 0, 0.55),
        1px 1px 1px rgba(0, 0, 0, 0.55),
        0 2px 2px rgba(20, 15, 5, 0.6),
        0 2px 3px rgba(0, 0, 0, 0.4);
}

.rates-value {
    color: #ffd700;
    font-weight: bold;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 8px rgba(117, 100, 0, 0.7),
        0 0 14px rgba(226, 192, 1, 0.6),
        -1px -1px 1px rgba(0, 0, 0, 0.6),
        1px -1px 1px rgba(0, 0, 0, 0.6),
        -1px 1px 1px rgba(0, 0, 0, 0.6),
        1px 1px 1px rgba(0, 0, 0, 0.6),
        0 2px 2px rgba(20, 15, 5, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

/* === Логотип === */
.logo-container {
    width: 40%;
    text-align: center;
}

.server-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgb(218, 165, 32));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 217, 0, 0.993));
    }
    to {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

/* === ПРОГРЕСС-БАР ОНЛАЙН === */
.online-progress-container {
    margin-top: 15px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.circle-progress {
    --progress: 0deg; 

    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #00ff3c var(--progress),  /* зелёный прогресс */
        #333 0deg                /* фон */
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 25px rgba(0, 255, 60, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(0, 255, 60, 0.3);
    transition: background 0.5s ease;
}

/* Внешнее свечение */
.circle-progress::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0%,
        transparent var(--progress),
        rgba(0, 255, 60, 0.1) var(--progress),
        rgba(0, 255, 60, 0.1) 100%
    );
    animation: rotate 3s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-progress-inner {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 255, 60, 0.3);
    border: 2px solid rgba(0, 255, 60, 0.2);
}

.progress-text {
    font-size: 18px;
    font-weight: bold;
    color: #00ff3c;
    z-index: 3;
    text-shadow:
        0 0 10px rgba(0, 255, 60, 0.8),
        0 0 20px rgba(0, 255, 60, 0.6),
        0 0 30px rgba(0, 255, 60, 0.4);
    letter-spacing: 1px;
}


/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .circle-progress {
        width: 100px;
        height: 100px;
    }
    
    .circle-progress-inner {
        width: 70px;
        height: 70px;
    }
    
    .progress-text {
        font-size: 16px;
    }
}

/* === Онлайн === */
.players {
    text-align: right;
    width: 30%;
}

.players-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 8px rgba(117, 100, 0, 0.7),
        0 0 16px rgba(226, 192, 1, 0.6),
        -1px -1px 1px rgba(0, 0, 0, 0.6),
        1px -1px 1px rgba(0, 0, 0, 0.6),
        -1px 1px 1px rgba(0, 0, 0, 0.6),
        1px 1px 1px rgba(0, 0, 0, 0.6),
        0 2px 2px rgba(20, 15, 5, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.players-count {
    font-size: 28px;
    color: #ffd700;
    font-weight: bold;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 12px rgba(117, 100, 0, 0.8),
        0 0 24px rgba(226, 192, 1, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.65),
        1px -1px 2px rgba(0, 0, 0, 0.65),
        -1px 1px 2px rgba(0, 0, 0, 0.65),
        1px 1px 2px rgba(0, 0, 0, 0.65),
        0 3px 3px rgba(20, 15, 5, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

/* === Таймер === */
.countdown-section {
    border-top: 1px solid #ffd700;
    border-bottom: 1px solid #ffd700;
    text-align: center;
    padding: 25px 0;
    position: relative; 
}

.countdown-section::before,
.countdown-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent;
    pointer-events: none;
}

.countdown-section::before {
    top: 0;
    box-shadow: 
        0 0 6px rgba(226, 192, 1, 0.6),
        0 0 12px rgba(117, 100, 0, 0.7),
        0 1px 0 rgba(20, 15, 5, 0.4);
}

.countdown-section::after {
    bottom: 0;
    box-shadow: 
        0 0 6px rgba(226, 192, 1, 0.6),
        0 0 12px rgba(117, 100, 0, 0.7),
        0 -1px 0 rgba(20, 15, 5, 0.4);
}

.countdown {
    color: #ffd700;
    font-size: 20px;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 8px rgba(117, 100, 0, 0.7),
        0 0 16px rgba(226, 192, 1, 0.6),
        -1px -1px 1px rgba(0, 0, 0, 0.6),
        1px -1px 1px rgba(0, 0, 0, 0.6),
        -1px 1px 1px rgba(0, 0, 0, 0.6),
        1px 1px 1px rgba(0, 0, 0, 0.6),
        0 2px 2px rgba(20, 15, 5, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.countdown-timer {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 12px rgba(117, 100, 0, 0.8),
        0 0 24px rgba(226, 192, 1, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.65),
        1px -1px 2px rgba(0, 0, 0, 0.65),
        -1px 1px 2px rgba(0, 0, 0, 0.65),
        1px 1px 2px rgba(0, 0, 0, 0.65),
        0 3px 3px rgba(20, 15, 5, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.6);
}

/* === Адаптивность для main-container === */
@media (max-width: 768px) {
    .top-section {
        flex-direction: column;
        text-align: center;
    }

    .rates, .players {
        width: 100%;
        margin-bottom: 20px;
    }

    .logo-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .online-progress-container {
        margin-top: 12px;
    }
    
    .circle-progress {
        width: 80px;
        height: 80px;
    }
    
    .circle-progress-inner {
        width: 60px;
        height: 60px;
    }
    
    .progress-text {
        font-size: 14px;
    }

    .hero-overlay {
        padding: 20px;
    }
}

.section-divider {
    position: relative;
    width: 100%;
    height: 150px;
    background: url('../img/bg/ctbg.png') center center no-repeat;
    background-size: contain;
    background-color: transparent;
    margin-top: -75px;
    z-index: 20;
}

/* Для мобильных */
@media (max-width: 768px) {
    .section-divider {
        height: 100px;
        margin-top: -50px;
    }
}

/* === Нижняя секция === */
.lower-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1; 
    margin-top: 0; 
    padding-top: 0px; 
}

.lower-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    z-index: -1;
}

.lower-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.lower-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgb(0, 0, 0), transparent);
    z-index: -1;
}

@keyframes smokeAnimation {
    0% {
        background-position: center 0;
        filter: blur(2px) brightness(1);
    }
    50% {
        background-position: center -20px;
        filter: blur(3px) brightness(0.9);
    }
    100% {
        background-position: center 0;
        filter: blur(2px) brightness(1);
    }
}

/* === О сервере === */
.about-server {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 20px;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 4;
    font-family: 'Roboto', sans-serif;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-server h2 {
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    margin-bottom: 20px;
}

.about-server p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0d6b9;
    margin-bottom: 15px;
}

.about-button-wrapper {
    margin-top: 20px;
}

.about-server .nav-button {
    width: 200px;
    height: 50px;
    font-size: 16px;
    font-family: 'Lineage 2 Font', 'Cinzel', serif;
}

/* === Адаптивность для секции "О сервере" === */
@media (max-width: 768px) {
    .about-server {
        padding: 20px 15px;
        margin: 10px auto;
    }

    .about-server h2 {
        font-size: 24px;
    }

    .about-server p {
        font-size: 14px;
    }

    .about-server .nav-button {
        width: 180px;
        height: 45px;
        font-size: 14px;
    }
}

/* === Рейтинги и форум === */
#ratings-forum {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
}

#ratings, #forum {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 15px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

#ratings h2, #forum h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    color: #ffd700;
}

#forum .news {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#forum .news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s, background 0.3s;
}

#forum .news-item:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-3px);
}

#forum .news-item a {
    text-decoration: none;
    color: #fff;
    display: block;
}

#forum .news-item h3 {
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#forum .theme__info {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #999;
    margin-top: 4px;
}

/* === Таблицы рейтинга === */
.ratings-tabs {
    text-align: center;
    margin-bottom: 15px;
}
.ratings-tabs button {
    padding: 8px 15px;
    margin: 0 4px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.ratings-tabs button.active {
    background: #ffd700;
    color: #000;
}
.ratings-tabs button:hover {
    background: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    display: none;
    margin-bottom: 20px;
}
table.active { display: table; }
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #555;
}
th { background: #444; }

/* === Реклама === */
.ads {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 4;
}

@media (max-width: 1200px) {
    .ads {
        max-width: 900px;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .ads {
        max-width: 800px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ads {
        max-width: 600px;
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .ads {
        max-width: 100%;
        margin: 15px 10px;
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .ads {
        margin: 10px 5px;
        padding: 8px;
        border-radius: 6px;
    }
}

.ad-slot {
    text-align: center;
    background: #333;
    padding: 8px;
    border: 1px solid #444;
}

@media (max-width: 768px) {
    .ad-slot {
        padding: 6px;
    }
}

@media (max-width: 576px) {
    .ad-slot {
        padding: 8px 6px;
    }
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.popup.active {
    display: flex;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlide {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-content {
    background: #1c1c1c;
    padding: 30px 25px;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    animation: popupSlide 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    transition: 0.25s;
}

.popup-close:hover { 
    color: #ff4d4d; 
    transform: rotate(90deg); 
}

.popup-content h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.popup-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 15px;
}

.popup-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e9a1a1;
    font-weight: bold;
    text-align: center;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(30, 25, 15, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.1);
}

.popup-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    color: #fff3c1;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 240, 180, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 2;
}

.popup-btn:hover::before {
    left: 100%;
}

.popup-btn span {
    position: relative;
    z-index: 3;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

.popup-register-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffd4d4;
    font-weight: bold;
    text-align: center;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    background: rgba(40, 20, 20, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0 20px;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.1);
}

.popup-register-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.6);
    color: #ffe6e6;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
}

.popup-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 180, 180, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    z-index: 2;
}

.popup-register-btn:hover::before {
    left: 100%;
}

.popup-register-btn span {
    position: relative;
    z-index: 3;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
}

/* === Footer === */
footer {
    text-align: center;
    padding: 15px;
    background: #111;
    position: relative;
    z-index: 4;
    font-family: 'Roboto', sans-serif;
    margin-top: auto;
}

/* Онлайн в цифрах */
.logo-online {
    font-size: 28px;
    color: #ffd700;
    font-weight: bold;
    -webkit-text-stroke: 1px #b8860b;
    text-shadow: 
        0 0 12px rgba(117, 100, 0, 0.8),
        0 0 24px rgba(226, 192, 1, 0.7),
        -1px -1px 2px rgba(0, 0, 0, 0.65),
        1px -1px 2px rgba(0, 0, 0, 0.65),
        -1px 1px 2px rgba(0, 0, 0, 0.65),
        1px 1px 2px rgba(0, 0, 0, 0.65),
        0 3px 3px rgba(20, 15, 5, 0.7),
        0 4px 8px rgba(0, 0, 0, 0.6);
    margin-top: 8px;
    text-align: center;
    position: relative;
}