/*-- headerStyle.css --*/
/* Сбрасываем возможные внешние влияния */
.site-header {
    width: 100%;
    background: #f8f9fa; /* или нужный фон */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* под твою сетку */
    margin: 0 auto;
}

/* ============ ИСПРАВЛЕНИЕ ШАПКИ ДЛЯ МОБИЛЬНЫХ ============ */

/* Контейнер шапки */
.header-container, .site-header .container, header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Блок авторизации (кнопки входа/выхода) */
.auth-buttons-header, .user-menu, .header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .header-container, .site-header .container, header .container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    
    /* Логотип по центру */
    .logo-block, .logo, .logo-text {
        text-align: center;
        justify-content: center;
    }
    
    /* Навигация */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 10px 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 8px;
    }
    
    /* Блок авторизации — под навигацией */
    .auth-buttons-header, .user-menu, .header-auth {
        justify-content: center;
        margin: 10px 0 0;
        order: 3;
    }
    
    /* Кнопки входа/выхода */
    .auth-buttons-header .btn,
    .user-menu .btn,
    .header-auth .btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    /* Национальный бейдж */
    .national-badge {
        align-self: center;
        margin-top: 5px;
    }
}

/* Для очень узких экранов */
@media (max-width: 480px) {
    .logo-title {
        font-size: 14px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 6px;
    }
    
    .auth-buttons-header .btn,
    .user-menu .btn,
    .header-auth .btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}

.logo-block {
    display: flex;
    align-items: center;      /* центрируем логотип и текст по вертикали */
    gap: 10px;                /* отступ между картинкой и текстом */
}

.logo-img {
    display: block;           /* убираем лишнее пространство снизу */
    width: 100px;             /* нужная ширина */
    height: auto;             /* высота подстраивается пропорционально */
    max-width: 100%;          /* на случай узких экранов */
    object-fit: contain;      /* сохраняем пропорции, если вдруг контейнер сжимает */
    flex-shrink: 0;           /* картинка не сжимается */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    margin: 0 0 5px 0;        /* небольшой отступ снизу */
    font-size: 24px;          /* настроить под дизайн */
    font-weight: bold;
    line-height: 1.2;
}

.logo-title a {
    text-decoration: none;
    color: #0c5460;              /* или нужный цвет */
}

.logo-subtitle {
    font-size: 28px;
    line-height: 1.2;
    color: #007bff;              /* или нужный цвет */
    margin: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .logo-img {
        width: 100px;          /* уменьшаем на мобильных */
    }
    .logo-title {
        font-size: 18px;
    }
    .logo-subtitle {
        font-size: 14px;
    }
}

/* Дополнительные стили для страницы */
        .stats-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        .stats-title h1 {
            margin: 0;
            font-size: 24px;
            color: #413e66;
        }
        .compact-stats {
            background: #f8f9fa;
            padding: 10px 20px;
            border-radius: 30px;
            border: 1px solid #e1e5e9;
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
        }
        .compact-stats span {
            color: #1bb1dc;
            font-weight: 700;
            font-size: 18px;
        }
        .action-buttons {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }
        .btn-icon {
            padding: 6px 10px;
            font-size: 12px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .btn-icon:hover {
            transform: scale(1.05);
        }
        .btn-edit { background: #007bff; color: white; }
        .btn-toggle-active { background: #28a745; color: white; }
        .btn-toggle-inactive { background: #ffc107; color: #212529; }
        .btn-delete { background: #dc3545; color: white; }
        
        /* Блок пользователя */
        #userHeaderBlock {
            position: fixed;
            top: 15px;
            right: 20px;
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(255, 255, 255, 0.95);
            padding: 8px 20px;
            border-radius: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border: 1px solid #1bb1dc;
        }
        #userAvatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
        }
        .logout-btn {
            background: none;
            border: 1px solid #dc3545;
            color: #dc3545;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .logout-btn:hover {
            background: #dc3545;
            color: white;
        }
		
		/* Уменьшенная шапка на мобильных */
@media (max-width: 768px) {
    #header {
        height: 60px !important;
        padding: 5px 0 !important;
    }
    
    #header .logo img {
        max-height: 35px !important;
    }
    
    .section-spacing {
        margin-top: 70px !important;
    }
    
    /* Уменьшаем гамбургер-меню */
    .hamburger-menu {
        top: 15px !important;
        left: 15px !important;
    }
    
    .hamburger-menu div {
        width: 25px !important;
        height: 3px !important;
        margin: 4px 0 !important;
    }
}

/* Уменьшение шапки на мобильных */
@media (max-width: 768px) {
    #header {
        height: 60px !important;
        min-height: 60px !important;
        padding: 5px 0 !important;
    }
    
    #header .logo img {
        max-height: 40px !important;
    }
    
    .section-spacing {
        margin-top: 70px !important;
    }
    
   /* ============ ПЛАВАЮЩИЙ ИНДИКАТОР ПРОКРУТКИ ============ */
.floating-scroll-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0c5460;
    color: white;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 13px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    animation: fadeInOut 4s ease-in-out forwards;
    font-weight: 500;
}

.floating-scroll-hint i {
    font-size: 14px;
    animation: slideHorizontal 0.8s ease-in-out infinite;
}

@keyframes slideHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

@media (min-width: 769px) {
    .floating-scroll-hint {
        display: none !important;
    }
}

/* ============ УЛУЧШЕННАЯ ШАПКА ============ */
@media (max-width: 768px) {
    /* Уменьшаем шапку */
    #header {
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
    }
    
    .logo img {
        max-height: 35px !important;
        margin-left: 35px !important; /* Сдвигаем логотип от гамбургера */
    }
    
    /* Отступ для контента */
    .section-spacing {
        margin-top: 60px !important;
    }
    
    /* Компактная статистика - фиксированная, не прокручивается */
    .stats-header {
        position: sticky;
        top: 50px;
        background: #ced4da;
        z-index: 100;
        padding: 8px 0;
        margin: 0;
        border-bottom: 1px solid #adb5bd;
    }
    
    .compact-stats {
        font-size: 12px !important;
        padding: 4px 12px !important;
        white-space: normal !important;
        text-align: center;
        background: #e9ecef;
        border-radius: 20px;
        display: inline-block;
    }
      
    }
/* ============ ДОПОЛНИТЕЛЬНЫЕ ПРАВИЛА ДЛЯ МОБИЛЬНЫХ ============ */

/* Уменьшение шапки на мобильных */
@media (max-width: 768px) {
    #header {
        height: 55px !important;
        min-height: 55px !important;
        padding: 5px 0 !important;
    }
    
    #header .logo img {
        max-height: 35px !important;
        margin-left: 35px !important;
    }
    
    .hamburger-menu {
        top: 18px !important;
        left: 12px !important;
    }
    
    .hamburger-menu div {
        width: 22px !important;
        height: 2px !important;
        margin: 4px 0 !important;
    }
    
    /* Отступ для контента */
    .section-spacing {
        margin-top: 70px !important;
    }
}

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ШАПКИ (ДЛЯ ВСЕХ СТРАНИЦ) ============ */
@media (max-width: 768px) {
    /* Шапка */
    #header {
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    /* Контейнер шапки */
    .header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        padding: 0 5px !important;
        min-height: 60px !important;
    }
    
    /* Блок логотипа */
    .logo-block {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: 35px !important;
    }
    
    /* Логотип картинка */
    .logo-img {
        max-width: 80px !important;
        max-height: 80px !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Текстовая часть логотипа */
    .logo-text {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.2 !important;
    }
    
    .logo-title {
        font-size: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .logo-title a {
        font-size: 12px !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }
    
    .logo-subtitle {
        font-size: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Гамбургер */
    .hamburger-menu {
        top: 20px !important;
        left: 12px !important;
    }
    
    .hamburger-menu div {
        width: 22px !important;
        height: 2px !important;
        margin: 4px 0 !important;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .logo-title a {
        font-size: 10px !important;
        white-space: normal !important;
    }
    
    .logo-subtitle {
        font-size: 20px !important;
    }
    
    .logo-img {
        max-width: 65px !important;
        max-height: 65px !important;
    }
    
    .logo-block {
        gap: 5px !important;
    }
}

/* Кнопка выхода в шапке */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.logout-btn i {
    font-size: 16px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .logout-text {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 12px;
    }
    
    .logout-btn i {
        font-size: 18px;
        margin: 0;
    }
}
		
		