.language-switcher {
    position: relative;
    flex: 0 0 auto;
    color: #102a43;
}

.language-switcher summary {
    min-width: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(16, 42, 67, .16);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: '▾'; font-size: .66rem; }
.language-switcher[open] summary::after { transform: rotate(180deg); }
.language-switcher summary:focus-visible { outline: 3px solid rgba(21, 112, 239, .3); outline-offset: 2px; }

.language-switcher-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 9px);
    right: 0;
    width: 170px;
    padding: 7px;
    border: 1px solid rgba(16, 42, 67, .12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 42, 67, .18);
}

.language-switcher-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 8px;
    color: #243b53;
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
}

.language-switcher-menu a:hover,
.language-switcher-menu a:focus-visible { background: #edf5ff; color: #0b62d6; }
.language-switcher-menu a.active { background: #e6f0ff; color: #0b62d6; }

@media (max-width: 1100px) {
    .language-switcher { margin-left: auto; }
}

@media (max-width: 520px) {
    .language-switcher summary { min-width: 40px; min-height: 38px; padding: 0 8px; }
    .language-switcher-menu { right: -48px; }
}
