.main-menu ul li a svg {
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
}

.main-menu ul li.has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
}
/* Uppercase для всех ссылок в бургерном меню */
@media (max-width: 1210px) {
    .offcanvas__area .mobile-menu ul li a,
    .mobile-menu ul li a,
    .mean-container .mean-nav ul li a,
    .offcanvas__content .mobile-menu a {
        text-transform: uppercase !important;
    }
    
    /* Исключение для emoji в языковом меню */
    .language-dropdown li a::before {
        text-transform: none !important;
    }
}

/* Language dropdown container */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 15px;
    z-index: 999;
    padding: 0 !important; 
}



.main-menu ul li.has-dropdown:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointer */
.language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.language-dropdown li {
    list-style: none;
    margin: 0 !important; 
    padding: 0 !important; 
}

.language-dropdown li:first-child a {
    border-radius: 8px 8px 0 0;
}

.language-dropdown li:last-child a {
    border-radius: 0 0 8px 8px;
}

.language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 12px 20px !important; 
    color: #010915 !important; 
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-dropdown li:last-child a {
    border-bottom: none;
}

.language-dropdown li a:hover {
    background: linear-gradient(135deg, #6698d2 0%, #8dcaf0 100%);
    color: white !important;
    padding-left: 25px !important;
}

/* Flag icons (optional) */
.language-dropdown li a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: cover;
    border-radius: 50%;
}

.language-dropdown li a[onclick*="'ru'"]::before {
    content: '🇷🇺';
    font-size: 16px;
}

.language-dropdown li a[onclick*="'en'"]::before {
    content: '🇬🇧';
    font-size: 16px;
}

.language-dropdown li a[onclick*="'es'"]::before {
    content: '🇪🇸';
    font-size: 16px;
}
.language-dropdown li a[onclick*="'tg'"]::before {
    content: '🇹🇯';
    font-size: 16px;
}
.language-dropdown li a[onclick*="'uz'"]::before {
    content: '🇺🇿';
    font-size: 16px;
}

/* Globe icon animation */
.main-menu ul li.has-dropdown:hover > a svg {
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}

/* Active language indicator */
.language-dropdown li a.active {
    background: #f8f9fa;
    color: #6698d2 !important;
    font-weight: 600;
}

.language-dropdown li a.active::after {
    content: '✓';
    margin-left: auto;
    color: #6698d2;
    font-weight: bold;
}



/* Mobile responsive */
@media (max-width: 991px) {
    .language-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background: transparent;
    }
    
    .language-dropdown::before {
        display: none;
    }
    
    .language-dropdown li a {
        padding-left: 40px !important;
    }
}

/* Стили для языкового меню в бургерном меню */
@media (max-width: 991px) {
    .offcanvas__area .offcanvas__content .mobile-menu .main-menu ul li.has-dropdown .language-dropdown li a,
    .offcanvas__area .mobile-menu .language-dropdown li a,
    .mobile-menu .language-dropdown li a {
        color: #ffffff !important;
        background: transparent !important;
    }
    
    .offcanvas__area .offcanvas__content .mobile-menu .main-menu ul li.has-dropdown .language-dropdown li a:hover,
    .offcanvas__area .mobile-menu .language-dropdown li a:hover,
    .mobile-menu .language-dropdown li a:hover {
        color: #ffffff !important;
        background: linear-gradient(135deg, #6698d2 0%, #8dcaf0 100%) !important;
    }
}

/* Мобильное меню - начинается с 1210px */
@media (max-width: 1210px) {
    .mean__menu-wrapper {
        display: none !important;
    }
    
    .header__hamburger {
        display: block !important;
    }
    
    .header__area {
        min-height: auto;
    }
    
    /* .header__main {
        padding-top: 15px;
        padding-bottom: 15px;
    } */
}