/* Language controls and script-specific fallbacks; the original stylesheet is unchanged. */
header .nav{position:relative}
.language-switch{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-family:var(--display);font-size:14px;line-height:1.2;letter-spacing:.025em;color:#fff}
.language-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:24px;white-space:nowrap}
.language-switch span{color:var(--gold-light)}
.language-switch a:hover,.language-switch a[aria-current="page"]{color:var(--gold-pale);text-decoration:underline;text-underline-offset:4px}
.language-switch a:focus-visible{outline:2px solid var(--gold-pale);outline-offset:2px}
/* The existing Latin typefaces remain first in each family. Local system fonts supply missing glyphs. */
html[lang="ru"]{--sans:'Lato',Arial,sans-serif;--display:'Josefin Sans',Arial,sans-serif;--serif:'Libre Baskerville',Georgia,serif}
html[lang="zh-CN"]{--sans:'Lato','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;--display:'Josefin Sans','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;--serif:'Libre Baskerville','Songti SC','SimSun','Noto Serif CJK SC',serif}
html:not([lang="en"]) .hero-title{font-size:clamp(1.5rem,6cqi,2.75rem)}
html:not([lang="en"]) .hero-title>span{white-space:normal}
html:not([lang="en"]) .hero-actions{flex-wrap:wrap}
html:not([lang="en"]) h1,html:not([lang="en"]) h2,html:not([lang="en"]) h3{overflow-wrap:break-word}
html:not([lang="en"]) .section-heading>div{min-width:0}
html:not([lang="en"]) .section-heading>p{flex-shrink:0;width:38%;max-width:405px}
html:not([lang="en"]) .associate-note>a{white-space:normal}
html:not([lang="en"]) .footer-top{flex-wrap:wrap}
html[lang="ru"] .hero-bottom{flex-wrap:wrap}
html[lang="zh-CN"] h1,html[lang="zh-CN"] h2,html[lang="zh-CN"] h3{line-height:1.4}
@media(min-width:941px) and (max-width:1250px){
  html:not([lang="en"]) .menu-button{display:block;background:none;border:1px solid var(--gold-line);padding:8px 13px;color:var(--gold-pale);font-size:14px}
  html:not([lang="en"]) #navigation{display:none;position:absolute;top:100%;left:-32px;right:-32px;padding:24px 32px;background:#20344f;box-shadow:0 12px 15px #18284018;font-size:16px}
  html:not([lang="en"]) #navigation.is-open{display:flex;flex-direction:column;align-items:stretch;gap:20px}
}
@media(max-width:940px){
  header #navigation{top:100%}
  html:not([lang="en"]) #navigation>a{white-space:normal}
}
@media(max-width:650px){
  html:not([lang="en"]) .section-heading>p{width:auto;max-width:100%}
  html:not([lang="en"]) .button{max-width:100%;overflow-wrap:break-word;gap:16px}
  html:not([lang="en"]) .contact-grid,html:not([lang="en"]) .refusal-grid,html:not([lang="en"]) .faq-grid{grid-template-columns:minmax(0,1fr)}
  html:not([lang="en"]) .hero-bottom{font-size:10px;gap:6px 12px}
}

/* Email and language links share the upper contact strip. */
.topbar .topbar-actions{display:flex;align-items:center;gap:32px;flex:none}
.topbar .topbar-email{display:inline-flex;align-items:center;white-space:nowrap}
.topbar .language-switch{position:static;flex:none}
.topbar .language-switch a{display:inline-flex;letter-spacing:inherit}
.topbar .language-switch span{font-size:inherit;letter-spacing:inherit}
.error-page>.topbar{position:absolute;top:0;left:0;right:0}
@media(max-width:650px){
  .topbar .wrap{flex-direction:column;gap:4px;padding-top:5px;padding-bottom:5px}
  .topbar .topbar-actions{gap:20px;justify-content:center;max-width:100%}
  .topbar .topbar-email{display:inline-flex;font-size:13px}
  .topbar .topbar-email>span{display:none}
  .topbar .language-switch{font-size:13px;gap:6px}
}
