/* =============================================================================
   HEADER STYLES - Профессиональное горизонтальное меню
   ============================================================================= */

/* Общие стили заголовка */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 30px;
}

/* Брендинг сайта */
.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a202c;
    transition: opacity 0.2s ease;
}

.site-title-link:hover {
    opacity: 0.8;
}

.site-icon {
    font-size: 32px;
    line-height: 1;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
}

.site-tagline {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
    max-width: 200px;
}

/* Главная навигация */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 12px 18px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: #1a202c;
    background: rgba(26, 32, 44, 0.05);
    transform: translateY(-1px);
}

.nav-link:focus {
    outline: none;
    color: #1a202c;
    background: rgba(26, 32, 44, 0.08);
    box-shadow: none;
}



/* Мобильное меню кнопка */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
    height: 16px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Мобильное меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
    color: #1a202c;
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background: #f9fafb;
    color: #1a202c;
}

/* Активные состояния мобильного меню */
.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .header-content {
        gap: 20px;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 60px;
        gap: 16px;
    }
    
    .site-name {
        font-size: 20px;
    }
    
    .site-tagline {
        font-size: 11px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }
    
    .header-content {
        height: 56px;
        gap: 12px;
    }
    
    .site-icon {
        font-size: 28px;
    }
    
    .site-name {
        font-size: 18px;
    }
    
    .site-tagline {
        display: none;
    }
    
    .mobile-menu {
        width: 280px;
    }
} 