.lang-switcher { position: relative; flex-shrink: 0; }

.lang-switcher__toggle { display: none; }

.lang-switcher__list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    opacity: .6;
}

@media (max-width: 768px) {
    .lang-switcher__list {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 0;
        min-width: 120px;
        padding: 4px;
        background: #434343;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,.25);
        z-index: 1000;
    }
    .lang-switcher.is-open .lang-switcher__list { display: flex; }
    .lang-switcher__item { padding: 10px 12px; opacity: 1; justify-content: center; }
    .lang-switcher__item.is-active { background: rgba(255,255,255,.1); }
}

.lang-switcher__item img { display: block; border-radius: 2px; }
.lang-switcher__item.is-active,
.lang-switcher__item:hover { opacity: 1; background: rgba(255,255,255,.15); }

@media (max-width: 768px) {
    .lang-switcher__toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        border: 0;
        border-radius: 4px;
        background: rgba(255,255,255,.15);
        color: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .lang-switcher__toggle svg { transition: transform .2s; }
    .lang-switcher.is-open .lang-switcher__toggle svg { transform: rotate(180deg); }

    .lang-switcher__list {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        flex-direction: column;
        gap: 0;
        min-width: 120px;
        padding: 4px;
        background: #434343;
        border-radius: 6px;
        box-shadow: 0 4px 16px rgba(0,0,0,.25);
        z-index: 1000;
    }
    .lang-switcher.is-open .lang-switcher__list { display: flex; }
    .lang-switcher__item { padding: 10px 12px; opacity: 1; }
    .lang-switcher__item.is-active { background: rgba(255,255,255,.1); }
}