/* navigation.css - обновленная версия */
nav {
    background-color: #2c3e50;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle-icon {
    width: 22px;
    height: 2px;
    background: white;
    position: relative;
    border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.nav-toggle-icon::before {
    top: -6px;
}

.nav-toggle-icon::after {
    top: 6px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 20px 30px;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 100%);
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav ul li a:hover {
    background-color: rgba(192, 57, 43, 0.2);
}

nav ul li a:hover::after {
    width: 80%;
}

/* Выпадающее меню */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 15px;
    overflow: hidden;
    top: 100%;
    left: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #333;
    padding: 20px 25px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 15px;
}

.dropdown-content a small {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.dropdown-content a:hover {
    background-color: #ecf0f1;
    border-left: 4px solid #c0392b;
    padding-left: 30px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        display: none;
        width: 100%;
        padding-top: 10px;
    }

    nav.nav-open ul {
        display: flex;
    }
    
    nav ul li a {
        padding: 14px 18px;
        font-size: 15px;
        text-align: left;
    }
    
    .dropdown-content {
        position: static;
        min-width: 100%;
        display: none;
        box-shadow: none;
        background-color: #34495e;
        border-radius: 0;
    }

    .dropdown.open > a {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        color: #ecf0f1;
        padding: 12px 24px;
        border-left: 0;
    }

    .dropdown-content a small {
        color: rgba(236, 240, 241, 0.7);
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.08);
        padding-left: 24px;
    }
}
