/* Стили навигационной панели */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 36, 26, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

/* Логотип */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    border: 2px solid var(--accent-light);
}

/* Навигационное меню */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 5px 15px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--accent-dark);
    background-color: var(--bg-1);
    border-bottom-color: var(--accent-light);
}

.nav-link.active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

/* Выпадающие меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(26, 36, 26, 0.15);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border-top: 3px solid var(--accent-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--bg-1);
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-1);
    color: var(--accent-dark);
    padding-left: 25px;
}

/* Мобильное меню */
.navbar-toggler {
    display: none;
    background: none;
    border: 2px solid var(--accent-light);
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.navbar-toggler i {
    color: var(--accent-dark);
    font-size: 1.5rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--accent-dark);
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(26, 36, 26, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-nav.active {
        max-height: 500px;
        overflow-y: auto;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--bg-1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: var(--bg-2);
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
}