/* Стили главного меню */
.main-menu {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #e8f4f8;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    border-left-color: #2c5aa0;
    color: #2c5aa0;
    padding-left: 25px;
}

/* Индикатор активного пункта меню */
.menu-item.active .menu-link {
    background-color: rgba(255,255,255,0.2);
    color: #e8f4f8;
}

.menu-item.active .menu-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #03a9f4);
}

/* Мобильное меню */
@media (max-width: 768px) {
    .main-menu {
        position: relative;
    }
    
    .menu-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .menu-item {
        width: 100%;
    }
    
    .menu-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
        display: none;
        margin: 0;
        padding: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: rgba(255,255,255,0.8);
        padding: 10px 40px;
        font-size: 13px;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255,255,255,0.1);
        color: white;
        padding-left: 45px;
    }
}

@media (max-width: 480px) {
    .menu-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .dropdown-menu a {
        padding: 8px 30px;
        font-size: 12px;
    }
    
    .dropdown-menu a:hover {
        padding-left: 35px;
    }
}

/* Анимация появления подменю */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    animation: slideDown 0.3s ease;
}

/* Стрелка для подменю на мобильных */
@media (max-width: 768px) {
    .dropdown-arrow {
        float: right;
    }
    
    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Улучшенная видимость на темном фоне */
.menu-link {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Эффект подсветки при наведении */
.menu-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-link:hover:before {
    opacity: 1;
}