/* Основное меню */
.main-nav {
    margin: 0 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a:hover {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #28a745;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after {
    width: 80%;
}

/* Прозрачная шапка - стили меню */
#header:not(.scrolled) .nav-list a {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#header:not(.scrolled) .nav-list a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

#header:not(.scrolled) .nav-list a::after {
    background: white;
}

/* Адаптивность меню */
@media (max-width: 1024px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 15px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        margin: 0 15px;
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-list {
        justify-content: center;
        gap: 15px;
    }
    
    .nav-list a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .header-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-list a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .main-nav {
        margin: 10px 0 0 0;
    }
}