/* Ukrainian pages (<html lang="uk">). Ukrainian runs about a quarter longer than English: long words may
   break inside narrow cards instead of widening them. */
:lang(uk) :is(h1, h2, h3, h4, .display, .title, p, li, dt, dd, th, td, summary, label, a, span, b, small) { overflow-wrap: break-word; }
:lang(uk) :is(h1, h2, h3, .display, .title) { text-wrap: balance; hyphens: manual; }
/* the big headings step down a little on phones, so a Ukrainian headline does not fill the whole screen */
@media (max-width: 480px) {
  :lang(uk) .display { font-size: 34px; }
  :lang(uk) .page-hero .display, :lang(uk) .cta-band .display { font-size: 32px; }
  :lang(uk) .case-hero .display { font-size: 30px; }
  :lang(uk) .title { font-size: clamp(26px, 7.6vw, 32px); }
}
/* the Ukrainian introduction video is a file on the site, so the home dialog holds a <video> (the English one an <iframe>) */
:lang(uk) .video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
/* the Ukrainian menu is longer: keep each item on one line and tighten the bar on small desktops */
:lang(uk) .site-header__nav a, :lang(uk) .nav-trigger { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 980px) {
  :lang(uk) .site-header__bar { gap: 12px; }
  :lang(uk) .nav-trigger { padding-inline: 8px 6px; font-size: 14px; }
  :lang(uk) .site-header__nav .nav-link { padding-inline: 8px; font-size: 14px; }
  :lang(uk) .site-header .btn--small { font-size: 13px; padding-left: 14px; }
}
