.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 34, 51, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10, 33, 53, 0.08);
    backdrop-filter: blur(14px);
}

.lang-switcher-toggle:hover {
    transform: translateY(-1px);
}

.lang-switcher-label {
    white-space: nowrap;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    min-width: 260px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(16, 34, 51, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 64px rgba(10, 33, 53, 0.18);
    backdrop-filter: blur(18px);
}

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

.lang-switcher-option,
.lang-switcher-system {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: inherit;
    text-align: left;
    font-weight: 700;
}

.lang-switcher-option:hover:not(:disabled),
.lang-switcher-system:hover {
    background: rgba(37, 99, 235, 0.08);
}

.lang-switcher-option.is-active {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.lang-switcher-option:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.lang-switcher-option small,
.lang-switcher-system small,
.lang-switcher-note {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(16, 34, 51, 0.62);
}

.lang-switcher-divider {
    height: 1px;
    margin: 8px 0;
    background: rgba(16, 34, 51, 0.08);
}

.lang-switcher-note {
    padding: 4px 14px 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .lang-switcher-toggle {
        padding: 10px 12px;
    }

    .lang-switcher-menu {
        min-width: 230px;
    }
}

@media (max-width: 560px) {
    .lang-switcher-label {
        display: none;
    }
}
