/* ===== СТИЛИ ДЛЯ ШАПКИ И МОБИЛЬНОГО МЕНЮ ===== */

/* Если переменные цветов ещё не определены глобально, раскомментируйте и настройте:
:root {
    --bg-header: #0f1420;
    --gray-800: #1e2433;
    --gray-700: #2a3142;
    --gray-600: #3a4255;
    --gray-500: #5b647b;
    --gray-400: #7e879c;
    --gray-300: #b0b8cc;
    --text-primary: #f0f4ff;
    --text-secondary: #b0b8cc;
    --border-color: #2a3142;
}
*/
/* ===== ЛЕВАЯ БОКОВАЯ ПАНЕЛЬ ===== */
.side-stats {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-stat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a3142, #1e2433);
    border: 1px solid #2a3142;
    color: #b0b8cc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    text-decoration: none;
}

.side-stat-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #3a4255, #2a3142);
    color: white;
    border-color: #5b647b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.side-stat-btn i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.side-stat-btn .stat-number {
    font-size: 0.7rem;
    font-weight: 700;
    background: #03a9f4;
    color: #000;
    padding: 0 4px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    text-align: center;
    border: 1px solid #2a3142;
}

.side-stat-btn .stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Всплывающая подсказка */
.side-stat-btn[data-tooltip] {
    position: relative;
}

.side-stat-btn[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: #1e2433;
    color: #f0f4ff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: 1px solid #2a3142;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 1001;
}

.side-stat-btn[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    left: 75px;
}

/* Скрываем на мобильных */
@media (max-width: 768px) {
    .side-stats {
        display: none;
    }
}
/* Бургер-кнопка (справа, прямоугольная) */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    left: auto;
    z-index: 1100;
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #2196F3, #03A9F4);
    border: 1px solid #2196F3;
    border-radius: 12px;
    /* color: var(--gray-300); */
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(145deg, var(--gray-600), var(--gray-700));
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.7);
}

/* Выезжающее меню (слева) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-header), var(--gray-800));
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0,0,0,0.8);
    z-index: 1200;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-sidebar-logo i {
    font-size: 2rem;
    color: var(--gray-300);
    animation: spin 10s linear infinite;
}

.mobile-sidebar-logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-sidebar-close:hover {
    color: #ef4444;
}

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

.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.mobile-sidebar-link i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.mobile-sidebar-link:hover {
    background: rgba(156,163,175,0.1);
    color: white;
    transform: translateX(5px);
}

/* Нижнее мобильное меню */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    z-index: 1000;
    justify-content: space-around;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    gap: 4px;
    padding: 5px 0;
    flex: 1;
    transition: color 0.2s;
}

.mobile-bottom-item i {
    font-size: 1.4rem;
}

.mobile-bottom-item:hover {
    color: white;
}

.mobile-bottom-item.active {
    color: var(--gray-300);
}

/* Адаптивность: показываем мобильные элементы на узких экранах */
@media (max-width: 768px) {
    .header .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
    .header {
        padding-right: 60px;
        padding-left: 20px;
    }
}

/* Анимация вращения для иконки логотипа (если не определена глобально) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}/* ===== ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ (ТЁМНАЯ ТЕМА) ===== */
:root {
    --bg-header: #0f1420;
    --gray-800: #1e2433;
    --gray-700: #2a3142;
    --gray-600: #3a4255;
    --gray-500: #5b647b;
    --gray-900: #ffeb3b;
     --gray-400: #7e879c;
    --gray-300: #b0b8cc;
    --text-primary: #f0f4ff;
    --text-secondary: #b0b8cc;
    --border-color: #2a3142;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #0b0f17;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 0 !important;
}

/* ===== ШАПКА ===== */
.header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Логотип */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.logo-link {
    text-decoration: none;
    display: inline-block;
}
.logo-main {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 2.5rem;
    color: var(--gray-300);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    animation: spin 10s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.logo-letters {
    display: flex;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 2px 5px rgba(0,0,0,0.7), 0 0 10px rgba(255,255,255,0.1);
}
.logo-letters span {
    display: inline-block;
}
.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-weight: 400;
}

/* Меню */
.nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 20px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
    width: 70px;
}
.nav-item i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--gray-700);
    border: 1px solid var(--border-color);
    color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
    margin-bottom: 6px;
}
.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-item:hover i {
    background-color: var(--gray-600);
    color: white;
    transform: translateY(-3px);
    border-color: var(--gray-400);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.7);
}
.nav-item:hover span {
    color: var(--text-primary);
}


/* Адаптивность */
@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 16px 20px;
    }
    .nav-menu {
        margin: 10px 0;
        flex-wrap: wrap;
        justify-content: center;
        flex: none;
        width: 100%;
    }
    .advert-banner {
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .advert-banner {
        width: 100%;
        max-width: 350px;
        height: auto;
       
    }
    .nav-item {
        width: 60px;
    }
    .nav-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .nav-item span {
        font-size: 0.6rem;
    }
    .logo-icon {
        font-size: 2rem;
    }
    .logo-letters {
        font-size: 1.8rem;
    }
}




  