.language-switcher{position:relative;flex:none;color:#29435f;font-family:inherit;z-index:90}.language-switcher summary{display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:6px 9px;border:1px solid #cdddea;border-radius:13px;background:#f2f7fc;cursor:pointer;font-size:12px;font-weight:650;list-style:none}.language-switcher summary::-webkit-details-marker{display:none}.language-switcher summary:focus-visible,.language-options a:focus-visible{outline:2px solid #6385d5;outline-offset:2px}.language-options{position:absolute;top:calc(100% + 10px);left:0;width:232px;max-width:calc(100vw - 24px);max-height:65vh;max-height:65dvh;overflow:auto;padding:8px;background:#f5f8fe;border:1px solid #cfdeed;border-radius:16px;box-shadow:0 12px 32px #1e36502b;overscroll-behavior:contain}.language-options>a,.language-options>span{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;font-size:14px;line-height:1.3;border-radius:8px;white-space:normal}.language-options>a:hover,.language-options>a[aria-current]{background:#e4ecfa}.language-options>span[aria-disabled]{color:#6b7e92;opacity:.72}.language-note{font-size:11px!important;line-height:1.4!important;margin:8px 10px!important;color:#526880}.language-offer{position:fixed;bottom:90px;left:16px;right:16px;max-width:410px;margin:auto;z-index:110;padding:16px;border:1px solid #cdddeb;background:#f5f8fe;box-shadow:0 10px 36px #19315024;border-radius:18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.language-offer p{flex-basis:100%;margin:0;font-size:14px}.language-offer a,.language-offer button{padding:8px 12px;border-radius:10px;border:1px solid #c5d6e8;font-size:13px}.language-offer a{background:#294e76;color:#fff}a[data-language-fallback]:after{content:' · RU';font-size:.7em;opacity:.7;white-space:nowrap}html:not([lang=ru]) .header-inner{gap:12px}html:not([lang=ru]) .desktop-nav{gap:14px}html:not([lang=ru]) .desktop-nav a{white-space:normal}html:not([lang=ru]) .brand-tagline{max-width:140px}html:not([lang=ru]) body{font-family:inherit}html[lang=th] body{line-height:1.65}.translation-stats{display:flex;flex-wrap:wrap;gap:12px}.translation-stats span{background:#edf3fa;padding:8px;border-radius:8px}.translation-table{width:100%;border-collapse:collapse}.translation-table td,.translation-table th{text-align:left;padding:8px;border-bottom:1px solid #dce5f0;vertical-align:top}.translation-table button{padding:5px 9px}.translation-table small{display:block}.translation-edit{display:grid;gap:12px}.translation-edit textarea{min-height:80px;width:100%}
@media(max-width:1250px){.site-header .header-inner{gap:10px}.site-header .desktop-nav{gap:12px}}
@media(max-width:760px){.language-switcher summary{padding:6px;gap:3px;font-size:10px;min-height:34px}.language-switcher summary svg{width:14px;height:14px}.site-header .header-inner{gap:6px!important}.site-header .brand{min-width:0}.site-header .brand-logo{width:42px!important;height:42px!important}.site-header .brand-tagline{font-size:10px!important;line-height:1.3!important}.site-header .header-actions{gap:4px!important}.site-header .header-actions>.contact-icon,.site-header .header-actions>.icon-button{width:32px;height:32px}.language-options{position:fixed;left:12px;top:80px;width:240px;max-height:calc(100dvh - 110px)}.translation-table{font-size:12px}}
@media(max-width:370px){.site-header .brand-tagline{display:none!important}.site-header .brand-logo{width:36px!important;height:36px!important}}
@media(min-width:371px) and (max-width:420px){.site-header .brand-tagline{display:none!important}}

/* Same square controls as the messenger buttons, immediately after the brand. */
.language-switcher summary{box-sizing:border-box;width:40px;height:40px;min-height:40px;padding:0;gap:0;border-radius:14px;background:linear-gradient(145deg,#f9fcff,#e8f0f8);box-shadow:inset 1px 1px 2px #fff,0 2px 8px #42608012}
.language-switcher summary svg{width:21px;height:21px}
@media(max-width:760px){.language-switcher summary{width:32px;height:32px;min-height:32px;padding:0;border-radius:12px}.language-switcher summary svg{width:19px;height:19px}}

.brand-language{display:flex;align-items:center;gap:12px;flex:none}.language-switcher summary{width:38px;height:38px;min-height:38px}@media(max-width:760px){.brand-language{gap:6px}.language-switcher summary{width:32px;height:34px;min-height:34px}}

/* Keep translated navigation intact; fall back to the shared compact menu when it cannot fit. */
html:not([lang=ru]) body.glass-site .desktop-nav{flex-shrink:0;gap:0}
html:not([lang=ru]) body.glass-site .desktop-nav a{white-space:nowrap}
html:not([lang=ru]) body.glass-site .header-actions{flex-shrink:0}
html:not([lang=ru]) body.glass-site .translated-header-compact .desktop-nav{display:none}
html:not([lang=ru]) body.glass-site .translated-header-compact .menu-toggle{display:flex}
html:not([lang=ru]) body.glass-site .translated-header-compact .header-contact{display:none}
