/* Language Selector */
a {
    text-decoration: none;
}

.language-selector {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 12px 0px 16px;
    gap: 8px;
    height: 48px;
    background: #333B4C;
    border-radius: 8px;
    cursor: pointer;
    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 10;
}

.language-selector span {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.chevron-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease; /* Добавляем плавный поворот */
}

.language-selector.active .chevron-icon {
    transform: rotate(180deg); /* Поворачиваем шеврон на 180 градусов */
}

.language-dropdown {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #333B4C;
    border-radius: 8px;
    margin-top: 5px;
    list-style: none;
    padding: 0;
    display: none; /* По умолчанию скрыто */
}

.language-dropdown li {
    padding: 10px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
}

.language-dropdown li:hover {
    background-color: #2d3442;
    border-radius: 8px;
}

.language-selector.active .language-dropdown {
    display: block; /* Показываем список, когда панель активна */
}

@media (max-width: 767px) {
    .language-selector {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0px 10px 0px 10px;
        gap: 4px;
        width: 68px;
        height: 40px;
        background: #333B4C;
        border-radius: 8px;
        cursor: pointer;
        flex: none;
        order: 0;
        flex-grow: 0;
        z-index: 20;
    }
}