/* Revers i18n: language switcher, Cyrillic/Arabic font subsets, LTR mirroring (2026-11-25) */
@font-face {
  font-family: Rubik; src: url("Rubik-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0400-052F, U+2116;
}
@font-face {
  font-family: Rubik; src: url("Rubik-arabic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0 !important; line-height: 1.35; }
html[lang="ru"] h1 { hyphens: auto; -webkit-hyphens: auto; }

/* language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line, #e4e2db); border-radius: 999px; padding: 2px; background: #fff; flex: 0 0 auto; }
.lang-switch a { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .82rem; line-height: 1.3; font-weight: 500; color: var(--ink, #1f2737); text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { background: var(--brand-soft, #eef0ff); }
.lang-switch a[aria-current="page"] { background: var(--ink, #1f2737); color: #fff; }
.lang-switch a:focus-visible { outline: 3px solid var(--focus, #3d46c7); outline-offset: 1px; }
main > .lang-switch { margin: 0 0 16px; }
.lang-prevail { font-size: .92rem; }
@media (max-width: 900px) {
  .lang-switch a { padding: 3px 7px; font-size: .76rem; }
}
@media (max-width: 420px) {
  .nav-cta .phone { display: none; }
}

/* LTR (Russian) mirroring of RTL-first styles */
[dir="ltr"] .skip { right: auto; left: 12px; }
[dir="ltr"] .notice { border-right: 1px solid var(--line); border-left: 4px solid var(--brand); }
[dir="ltr"] .notice.warn { border-left-color: var(--warn); }
[dir="ltr"] .article-wrap blockquote { border-right: 0; border-left: 4px solid var(--brand); border-radius: 12px 0 0 12px; }
[dir="ltr"] .report img { object-position: top left; }
[dir="ltr"] .a11y-widget { left: auto; right: calc(16px + env(safe-area-inset-right, 0px)); }
[dir="ltr"] .a11y-panel { left: auto; right: 0; }
[dir="ltr"] input[type="date"] { direction: ltr; text-align: left; }
[dir="ltr"] input[type="date"]::-webkit-date-and-time-value { text-align: left; }
[dir="ltr"] .legal-wrap ul, [dir="ltr"] .legal-wrap ol, [dir="ltr"] .article-wrap ul, [dir="ltr"] .article-wrap ol { padding-inline-start: 1.2em; margin-inline: 0; }

/* header fixes (switcher is a <nav>, so neutralise the mobile dropdown rules) */
header .lang-switch { position: static !important; display: inline-flex !important; width: auto; padding: 2px; border: 1px solid var(--line, #e4e2db); background: #fff; top: auto; left: auto; right: auto; }
header .lang-switch a, .nav-cta .lang-switch a { min-height: 32px; min-width: 0; display: inline-flex; align-items: center; }
.nav-cta { flex-shrink: 0; }
@media (min-width: 901px) { .menu-btn { display: none !important; } }
html[lang="ru"] header nav ul, html[lang="ar"] header nav ul { gap: 6px 14px; }
html[lang="ru"] header nav a { font-size: .88rem; }
@media (min-width: 901px) and (max-width: 1280px) { html[lang="ru"] .nav-cta .phone, html[lang="ar"] .nav-cta .phone { display: none; } }
@media (max-width: 900px) { header nav#site-nav { top: 100%; } }
@media (max-width: 600px) {
  header .nav { flex-wrap: wrap; row-gap: 0; }
  header .nav-cta { order: 3; width: 100%; justify-content: center; padding: 0 0 8px; }
  header .lang-switch a { min-height: 30px; }
}
.hero .lead + .lead { margin-top: 10px; }
