.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-switcher__current {
    display: flex;
    align-items: center;
    margin-left: 10px;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out;
}

.language-switcher__arrow {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    stroke: #00898d;
}

.language-switcher__current:hover {
    color: #00898d;
}

.language-switcher__select {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(76, 86, 86, 0.15);
}

.language-switcher__select_active {
    display: flex;
}

.language-switcher__select::before {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    top: -5px;
    right: 24px;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-bottom: 5px solid #ffffff;
    box-shadow: 0 10px 25px rgba(76, 86, 86, 0.15);
}

.language-switcher__option {
    padding: 6px 24px;
    color: currentColor;
    text-decoration: none;
    transition: background-color, color 0.15s ease-in-out;
}

.language-switcher__option:hover {
    background-color: rgba(76, 86, 86, 0.05);
}

.language-switcher__option_current {
    font-weight: 700;
}

.language-switcher__option:first-child {
    padding-top: 12px;
}

.language-switcher__option:last-child {
    padding-bottom: 12px;
}

.language-switcher_authorized .language-switcher__current {
    padding: 0.575rem 0.7rem;
    color: #ffffff;
    border-radius: 0.875rem;
    background-color: transparent;
    transition: background-color 0.15s ease-in-out;
}

.language-switcher_authorized .language-switcher__arrow {
    stroke: #ffffff;
}

.language-switcher_authorized .language-switcher__current:hover {
    background-color: #1b6b6d;
}

.language-switcher_authorized .language-switcher__select {
    top: calc(100% + 5px);
}

@media (prefers-reduced-motion: reduce) {
    .language-switcher__current,
    .language-switcher__option,
    .language-switcher_authorized .language-switcher__current {
        transition: none;
    }
}
