/* Homepage locale pilot (ClickUp 1dfrev92qxk): language switcher in the top strip and
   in the mobile menu. Loaded only where the switcher is rendered. */
.lang-switch ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switch--topbar {
  display: flex;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid rgb(216 203 230 / 35%);
}
.lang-switch--topbar ul {
  gap: 14px;
}
.lang-switch--topbar .lang-switch__item {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.lang-switch--topbar .is-current {
  color: #fff;
  font-weight: 700;
}
.lang-switch__short {
  display: none;
}
@media (max-width: 1279px) {
  .lang-switch--topbar ul {
    gap: 10px;
  }
  .lang-switch--topbar .lang-switch__full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lang-switch--topbar .lang-switch__short {
    display: inline;
  }
}
@media (max-width: 540px) {
  .lang-switch--topbar {
    padding-left: 12px;
  }
}
.mobile-menu nav.lang-switch--sheet {
  flex: 0 0 auto;
  overflow: visible;
  padding: 12px 20px;
  border-top: 1px solid var(--border, #e4d8f2);
}
.lang-switch--sheet ul {
  flex-wrap: wrap;
  gap: 8px;
}
.lang-switch--sheet .lang-switch__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border, #e4d8f2);
  border-radius: 6px;
  color: var(--primary, #704e86);
  font: 600 14px/20px var(--body-font, inherit);
  text-decoration: none;
}
.lang-switch--sheet .is-current {
  border-color: var(--primary, #704e86);
  background: var(--primary, #704e86);
  color: #fff;
}
.mobile-menu .lang-switch--sheet a.lang-switch__item:hover,
.mobile-menu .lang-switch--sheet a.lang-switch__item:focus-visible {
  background: #faf8fc;
}
/* Russian and Ukrainian navigation labels are 15-30% longer than the English ones:
   between 901 and 1099 px the desktop row would reach the logo, so a translated
   homepage keeps the existing mobile header (phone + menu button) up to 1099 px.
   English pages are not affected (html[lang] is "en" there). */
@media (min-width: 901px) and (max-width: 1099px) {
  html[lang='ru'] .desktop-nav,
  html[lang='uk'] .desktop-nav {
    display: none;
  }
  html[lang='ru'] .mobile-nav,
  html[lang='uk'] .mobile-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
  }
  html[lang='ru'] .menu-toggle,
  html[lang='uk'] .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff50;
    border-radius: 6px;
    background: transparent;
  }
  html[lang='ru'] .mobile-phone,
  html[lang='uk'] .mobile-phone {
    font-size: 14px;
    font-weight: 700;
  }
}
/* RU/UK pages (1dfrev92qxk, 03.12.2026): long Cyrillic words ("нетрудоспособности")
   are wider than a phone column at the heading sizes of the English design and were
   clipped at 320-390 px. On phones only, headings of a translated page may hyphenate
   long words (14+ letters, 6 on each side) by their language and never overflow.
   English pages and desktop stay as they are. */
@media (max-width: 540px) {
  html:is([lang="ru"], [lang="uk"]) :is(h1, h2, h3) {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 14 6 6;
    -webkit-hyphenate-limit-before: 6;
    -webkit-hyphenate-limit-after: 6;
    overflow-wrap: break-word;
  }
}
/* 320-340 px phones: "Подзвонити"/"Позвонить" is longer than "Call us" and touched
   the wordmark (0-10 px). A slightly tighter row (12 -> 8 px before the menu button,
   14 -> 13 px text) keeps a visible gap; wider phones
   and English pages are unchanged. */
@media (max-width: 340px) {
  html:is([lang="ru"], [lang="uk"]) .mobile-nav {
    gap: 8px;
  }
  html:is([lang="ru"], [lang="uk"]) .mobile-phone {
    font-size: 13px;
  }
}

/* Let the longer Russian homepage copy set the desktop hero height. */
@media (min-width: 1280px) {
  html[lang='ru'] .hero {
    height: auto;
    min-height: 586px;
  }
  html[lang='ru'] .hero-layout,
  html[lang='ru'] .hero-copy {
    height: auto;
  }
}
