.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.24);
    flex: 0 0 112px;
    width: 112px;
    max-width: 112px;
}

.lang-switcher-button {
    border: none;
    background: transparent;
    color: #e2e8f0;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.lang-switcher-button:hover,
.lang-switcher-button.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(56, 189, 248, 0.18));
    color: #ffffff;
    transform: translateY(-1px);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 84px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: 0 16px 36px rgba(2, 8, 23, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.24s ease;
    z-index: 1400;
}

.lang-switcher-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(14, 165, 233, 0.16);
    color: #ffffff;
}

.lang-switcher-icon {
    transition: transform 0.24s ease;
}

.lang-switcher.open .lang-switcher-icon {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .lang-switcher {
        padding: 3px;
        width: 104px;
        max-width: 104px;
        flex: 0 0 104px;
    }

    .lang-switcher-button {
        padding: 6px 10px;
        font-size: 11px;
    }

    .lang-option {
        padding: 6px 8px;
        font-size: 10px;
    }
}
