.language-switcher {
    position: fixed;
    right: clamp(16px, 2.5vw, 36px);
    bottom: clamp(16px, 2.5vw, 32px);
    z-index: 1000;
    font-family: inherit;
}

.language-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 48px;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: #063956;
    color: #fff;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 14px 36px rgba(3, 40, 63, 0.25);
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.language-switcher__button:hover {
    transform: translateY(-2px);
    background: #0876a8;
    box-shadow: 0 18px 42px rgba(3, 40, 63, 0.3);
}

.language-switcher__button:focus-visible,
.language-switcher__options a:focus-visible {
    outline: 3px solid #f6a23a;
    outline-offset: 3px;
}

.language-switcher__button svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.language-switcher__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(310px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #d8e5eb;
    border-radius: 18px;
    background: #fff;
    color: #102c41;
    box-shadow: 0 22px 55px rgba(3, 40, 63, 0.22);
}

.language-switcher__panel[hidden] {
    display: none;
}

.language-switcher__heading {
    display: grid;
    gap: 3px;
    padding: 17px 18px 14px;
    border-bottom: 1px solid #e3edf1;
    background: #f4fafc;
}

.language-switcher__heading strong {
    font-size: 0.98rem;
    color: #063956;
}

.language-switcher__heading span {
    font-size: 0.78rem;
    color: #5d7180;
}

.language-switcher__options {
    display: grid;
    gap: 2px;
    padding: 8px;
}

.language-switcher__options a {
    display: grid;
    grid-template-columns: 43px 1fr 20px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 11px;
    color: #17394e;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.language-switcher__options a:hover {
    background: #edf7fb;
}

.language-switcher__options a.is-current {
    background: #e5f4f9;
    color: #006c99;
}

.language-switcher__options a svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.language-switcher__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    border: 1px solid #cbdde5;
    border-radius: 8px;
    background: #fff;
    color: #426477;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: clamp(16px, 2.5vw, 36px);
}

html[dir="rtl"] .language-switcher__panel {
    right: auto;
    left: 0;
}

html[dir="rtl"] .language-switcher__options a {
    grid-template-columns: 43px 1fr 20px;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero__content,
html[dir="rtl"] .about__copy,
html[dir="rtl"] .process__content,
html[dir="rtl"] .product-card__body,
html[dir="rtl"] .product-detail__content,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .contact-band__inner {
    text-align: right;
}

html[dir="rtl"] .text-link span[aria-hidden="true"],
html[dir="rtl"] .product-card__link span[aria-hidden="true"] {
    display: inline-block;
    transform: scaleX(-1);
}

@media (max-width: 560px) {
    .language-switcher {
        right: 14px;
        bottom: 14px;
    }

    html[dir="rtl"] .language-switcher {
        right: auto;
        left: 14px;
    }

    .language-switcher__button {
        min-width: 62px;
        min-height: 44px;
        padding: 9px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .language-switcher__button,
    .language-switcher__options a {
        transition: none;
    }
}
