/* LANGUAGE SWITCHER — FLOATING BUTTON */
.lang-switcher {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.lang-switcher-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-dark);
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    outline: none;
    position: relative;
    z-index: 2;
}

.lang-switcher-btn:hover {
    background: var(--green-mid);
    transform: scale(1.08);
}

.lang-switcher-btn:focus-visible {
    outline: 3px solid var(--green-mid);
    outline-offset: 3px;
}

.lang-switcher-btn .lang-globe {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.lang-current-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--white);
    background: var(--blue-mid);
    padding: 2px 6px;
    border-radius: 20px;
    position: absolute;
    bottom: -7px;
    right: -2px;
    border: 1.5px solid var(--white);
    pointer-events: none;
    text-transform: uppercase;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.lang-switcher.open .lang-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    background: var(--white);
    border: 1.5px solid #E8EAED;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--charcoal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.18s ease;
    white-space: nowrap;
    outline: none;
}

.lang-option:hover {
    background: var(--green-light);
    border-color: var(--green-mid);
    color: var(--green-dark);
    transform: translateX(-4px);
}

.lang-option.active {
    background: var(--green-light);
    border-color: var(--green-mid);
    color: var(--green-dark);
}

.lang-option .lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-check {
    width: 14px;
    height: 14px;
    color: var(--green-mid);
    opacity: 0;
    transition: opacity 0.15s;
}

.lang-option.active .lang-check {
    opacity: 1;
}

.lang-switcher-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--charcoal);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: var(--font-main);
}

.lang-switcher-btn:hover .lang-switcher-tooltip {
    opacity: 1;
}

@media (max-width: 640px) {
    .lang-switcher {
        bottom: 20px;
        right: 16px;
    }

    .lang-switcher-btn {
        width: 46px;
        height: 46px;
    }
}