.language-switcher {
    position: fixed;
    z-index: 1000;
    top: 8px;
    right: 12px;
    display: flex;
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
    background: #252936;
    box-shadow: 0 2px 12px #0008;
}
.language-switcher button {
    font: 600 13px/1.2 system-ui, sans-serif;
    color: #f9fafa;
    background: #393e4c;
    border: 1px solid #7c8495;
    border-radius: 5px;
    padding: 7px 9px;
    cursor: pointer;
}
.language-switcher button[aria-pressed="true"] {
    color: #fff;
    background: #5342af;
    border-color: #aea1ff;
}
.language-switcher button:focus-visible {
    outline: 3px solid #b6acff;
    outline-offset: 2px;
}
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] nav {
    direction: rtl;
}
html[dir="rtl"] .language-switcher {
    right: auto;
    left: 12px;
}
body:not(:has(.content-wrapper)) {
    padding-top: 65px !important;
}
@media (min-width: 1000px) {
    header .container { padding-right: 220px; }
    html[dir="rtl"] header .container { padding-right: 0; padding-left: 220px; }
}
@media (max-width: 999px) {
    header { padding-top: 55px; }
    nav { flex-wrap: wrap; justify-content: center; }
}