/* Every page that carries the language switch (Russian pages with a twin, every English and Hebrew
   twin; linked and removed together with the switch by scripts/build_lang.mjs › SYNC). Pages without
   a twin never load it.

   LS1. Room for the desktop switch, only where js/lang-switch.js (LS3) finds the switch covered: it
   then sets html.ls-room and SITE123 lays the menu out again. The switch is a list absolutely
   positioned in the header's corner (right; left on Hebrew pages), outside #top-menu. SITE123's fit
   check (minimize_scripts.js › CheckMenuWidthSpace, getMenuWidth: the sum of #top-menu's children's
   offsetWidth against #mainNav .site_container) never saw it, so the e-mail icon overlapped the
   switch's first letter at some widths in all three languages. Padding counts in offsetWidth, so
   padding on .navActions on the switch's side makes SITE123 count the room and fold the menu earlier.
   Not at every width: SITE123 places the centred logo at half of .navPages + .navActions
   outerWidth(true), which counts the room too, so the logo moved one slot on wide screens where
   nothing overlapped (decided 2026-10-11: room only where needed). 66 px = the switch's width (76 px
   with two codes) - the container's 15 px padding it sits in + a few px of air; 48 px still
   overlapped. Sweep 768-1440 px step 8, ru/en/he: no overlap, min gap 7 px; layout identical to the
   SITE123 original wherever nothing overlapped (1440 included); the logo moves, with the same items,
   only at the former overlap widths (ru 976-1000, en 1112, he 952). On Hebrew pages the right side
   stays 0 (css/he-rtl.css › H1 zeroes .nav padding-right). Two ids outrank SITE123's .navActions /
   .nav rules whatever the load order. */
html.ls-room:not([dir="rtl"]) #mainNav #top-menu .navActions {
  padding-right: 66px;
}
html.ls-room[dir="rtl"] #mainNav #top-menu .navActions {
  padding-left: 66px;
}

/* LS2. When the menu is still too wide, SITE123 first adds a hamburger to .navActions
   (.replaceActionButtonsToIcon) and moves the action buttons into its dropdown; this site has none,
   so that hamburger opens an empty menu. The wider check of LS1 makes SITE123 reach that stage at
   more widths: hide the hamburger while its dropdown is empty. At the next stage
   (.replaceActionButtonsToIconRemoveExtra) SITE123 moves the e-mail and share icons into it, the
   dropdown is no longer empty and the hamburger shows as on the original. */
#top-menu .replaceActionButtonsToIcon:not(:has(.header-icons-items > *, .header-action-btns-items > *)) {
  display: none;
}

/* LS4. Phone menu, Russian and English pages: language names as written, in Arial. SITE123
   uppercases menu items in Karla, which has no Cyrillic, so Cyrillic items fall back to Arial: on
   Russian pages «ENGLISH» in Karla looked smaller and sparser than its neighbours, on English pages
   «РУССКИЙ» bulkier. The user picked «as written, Arial» from a render of both pages (2026-10-11),
   the same rule as Hebrew pages (css/he-rtl.css › H2), which keep Heebo (FN1). The open menu is
   SITE123's copy of #top-menu-mobile in #popupFloatDivMenu. */
html:not([dir="rtl"]) #top-menu-mobile li[data-i18n="switch"] a span,
html:not([dir="rtl"]) #popupFloatDivMenu li[data-i18n="switch"] a span {
  font-family: Arial, sans-serif;
  text-transform: none;
}
