/* Основное меню */
.main-nav {
    margin: 0 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    background: none;
}

/* Простая анимация подчеркивания */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #009846;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:hover {
    color: #009846;
}

/* Активный пункт меню */
.nav-list a.active {
    color: #009846;
    font-weight: 600;
}

.nav-list a.active::after {
    width: 100%;
}

/* Прозрачная шапка - стили меню */
#header:not(.scrolled) .nav-list a {
    color: rgba(255, 255, 255, 0.9);
}

#header:not(.scrolled) .nav-list a::after {
    background: #ffffff;
}

#header:not(.scrolled) .nav-list a:hover {
    color: #ffffff;
}

#header:not(.scrolled) .nav-list a.active {
    color: #ffffff;
}

/* Адаптивность меню */
@media (max-width: 1024px) {
    .main-nav {
        margin: 0 30px;
    }
    
    .nav-list {
        gap: 30px;
    }
    
    .nav-list a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        margin: 0 20px;
        order: 3;
        width: 100%;
        margin-top: 20px;
    }
    
    .nav-list {
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .nav-list a {
        font-size: 14px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 13px;
    }
}