.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin-left: 18px;
    flex-shrink: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Внутри .nav ссылки языков не наследуют «таблетки» меню */
.nav .lang-switch__btn,
.nav a.lang-switch__btn,
.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static;
    isolation: auto;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--gray-400);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav .lang-switch__btn::before,
.nav a.lang-switch__btn::before,
.lang-switch__btn::before {
    display: none !important;
    content: none !important;
}

.nav .lang-switch__btn:hover,
.nav .lang-switch__btn.is-active,
.nav a.lang-switch__btn:hover,
.nav a.lang-switch__btn.is-active,
.lang-switch__btn:hover,
.lang-switch__btn.is-active {
    color: var(--white);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.lang-switch__flag-img {
    display: block;
    width: 30px;
    height: 21px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    box-shadow: none;
    border: none;
    outline: none;
}

.lang-switch__btn:not(.is-active) .lang-switch__flag-img {
    opacity: 0.75;
}

.lang-switch__btn:not(.is-active):hover .lang-switch__flag-img {
    opacity: 1;
}

.lang-switch__btn.is-active .lang-switch__flag-img {
    opacity: 1;
}

.lang-switch__label {
    line-height: 1;
}

.header-content .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 1100px) {
    .lang-switch__label {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content .nav--desktop {
        display: none;
    }
}
