.lang-switcher {
    position: relative;
    width: fit-content;
    flex: 0 0 auto;
    z-index: 30;
}

.lang-switcher__menu[hidden] {
    display: none;
}

.lang-switcher.is-open .lang-switcher__menu {
    display: block;
}

.header-wrap.mob .lang-switcher {
    margin-left: auto;
    margin-right: 8px;
}

.header-wrap.desk .lang-switcher {
    margin-left: 12px;
    margin-right: 12px;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
}

.lang-switcher__flag {
    display: block;
    width: 20px;
    height: 14px;
    flex: 0 0 20px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-switcher__current-name,
.lang-switcher__item-name {
    white-space: nowrap;
}

.lang-switcher__current-name {
    font-size: 14px;
}

.lang-switcher__current {
    display: none;
}

.lang-switcher__caret {
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-top: 3px;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 164px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .lang-switcher__toggle {
        color: #1a1a1a;
        background: #fff;
        border: 1px solid #ddd;
    }

    .lang-switcher__menu {
        background: #fff;
        border: 1px solid #e5e5e5;
    }

    .lang-switcher__item {
        color: #1a1a1a;
    }

    .lang-switcher__item:hover,
    .lang-switcher__item.is-active {
        background: #ff6b00;
        color: #fff;
    }
}

@media (min-width: 769px) {
    .lang-switcher__toggle {
        color: #fff;
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .lang-switcher__menu {
        background: #1a1a1a;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .lang-switcher__item {
        color: #fff;
    }

    .lang-switcher__item:hover,
    .lang-switcher__item.is-active {
        background: #ff6b00;
        color: #fff;
    }
}

