/* Orange template — language switcher (orange header theme) */

.nav-desktop-block,
.nav-mobile-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-desktop-block {
    gap: 32px;
}

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

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.lang-switcher__caret {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: transform 0.2s;
    background: currentColor;
    clip-path: polygon(15% 35%, 50% 70%, 85% 35%, 75% 25%, 50% 50%, 25% 25%);
}

.lang-switcher.is-open .lang-switcher__toggle {
    border-color: #f79e1b;
    background: rgba(247, 158, 27, 0.1);
}

.lang-switcher.is-open .lang-switcher__caret {
    transform: rotate(180deg);
    opacity: 1;
}

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 65px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1e2840;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    text-align: center;
}

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

.lang-switcher.is-open .lang-switcher__menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    visibility: visible;
}

.lang-switcher__item {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

.lang-switcher__item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.lang-switcher__item.is-active {
    color: #f79e1b;
    background: rgba(247, 158, 27, 0.08);
}

@media (max-width: 1023px) {
    .nav-mobile-block .lang-switcher__menu {
        right: 0;
        left: auto;
    }

    .nav-mobile-block .lang-switcher__toggle {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .nav-mobile-block .lang-switcher {
        display: none;
    }
}

@media (max-width: 1023px) {
    .nav-desktop-block .lang-switcher {
        display: none;
    }
}
