/* Простой адаптивный хэддер */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999999999 !important;
    height: 90px;
    transition: height 0.2s ease;
    border-bottom: none;
}

.nav {
    height: 100%;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    z-index: 999999999 !important;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
    overflow: hidden;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 45px;
    width: auto;
    transition: height 0.15s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Навигация - Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    position: relative;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(108, 117, 125, 0.1) 20%, 
        rgba(173, 181, 189, 0.2) 50%, 
        rgba(108, 117, 125, 0.1) 80%, 
        transparent 100%);
    transform: translateY(-50%);
    z-index: 1;
}

.nav-menu li {
    position: relative;
    z-index: 2;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    backdrop-filter: blur(15px);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 25px;
    border-radius: 30px;
    transition: all 0.15s ease;
    display: block;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Быстрая анимация при наведении */
.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Мобильное меню - кнопка */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.15s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #495057;
    border-radius: 2px;
    transition: all 0.15s ease;
    transform-origin: center;
}

/* Адаптивность - Планшеты */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-link {
        padding: 4px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 80px;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    /* Скрываем десктопное меню */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        gap: 0;
        transition: right 0.2s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 20px 30px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: transparent;
        text-align: left;
        font-size: 1.1rem;
        font-weight: 600;
        color: #495057;
        transition: all 0.15s ease;
    }
    
    .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #495057;
        transform: none;
        box-shadow: none;
    }
    
    .nav-link.active {
        background: rgba(0, 0, 0, 0.1);
        color: #212529;
        transform: none;
    }
    
    /* Показываем кнопку мобильного меню */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Анимация гамбургера */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 600px) {
    .header {
        height: 75px;
    }
    
    .nav-container {
        padding: 0 1.25rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-link {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
}

/* Оверлей для мобильного меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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