/* RU/AR/ES locale overrides — loaded only by non-EN pages */
html[lang="ru"] .nav-links{gap:16px;font-size:.88rem}
html[lang="ru"] .nav-links a{font-size:.85rem;white-space:nowrap}
html[lang="ru"] .logo span{font-size:.98rem}
html[lang="ru"] .btn-nav{white-space:nowrap}
/* Russian labels are longer than the English originals, so the last nav item
   ended up flush against the "Консультация" button (measured gap: 0px).
   Give the link group a hard right margin so the two never touch. */
html[lang="ru"] .nav-links{margin-right:18px}
@media(max-width:1260px){html[lang="ru"] .nav-links{gap:12px;margin-right:14px}html[lang="ru"] .nav-links a{font-size:.82rem}}
@media(max-width:1140px){html[lang="ru"] .nav-links{gap:8px;margin-right:10px}html[lang="ru"] .nav-links a{font-size:.78rem}}

/* R120 — fee-table overflow guard.
   Why: the fee tables were laid out with `table-layout:auto`, so a column's
   minimum width became the width of its longest unbreakable word. Russian
   words are markedly longer than the English originals, so on eight treatment
   pages plus /pricing.html the table demanded more width than the container
   had and pushed the whole page sideways (measured up to +163px at 721px).
   A second, worse case came from `table.fee td.fee-amt{white-space:nowrap}`
   in style.css: a full Russian sentence inside an amount cell was forced onto
   one 671px line and painted over the neighbouring column.
   Fix: fixed layout + break-word so no single word can set a column's floor,
   Russian hyphenation so the resulting breaks land on syllable boundaries
   instead of mid-word, and the nowrap lifted on amount cells only.
   Scope: every rule is prefixed with html[lang="ru"] *and* this file is only
   linked by the ru/*.html pages — the English pages load their own copy of
   style.css — so nothing here can reach the English layout. */
html[lang="ru"] table.fee td.fee-amt{white-space:normal}
html[lang="ru"] table.fee th,
html[lang="ru"] table.fee td{overflow-wrap:break-word;hyphens:auto}
@media(max-width:900px){
  html[lang="ru"] table.fee.fee-3,
  html[lang="ru"] table.fee.fixed-ranges{table-layout:fixed}
}
@media(max-width:460px){
  html[lang="ru"] table.fee{table-layout:fixed}
}

/* R120b — everything else that still pushed a Russian page sideways.
   All four cases below are the same shape of bug: a flex or grid track floors
   itself at the width of its longest unbreakable content, and a Russian word
   (or a native picker) is wider than the column, so the column wins and the
   page scrolls. Measured at 320-375px on the affected pages.

   1) section.final — the left-hand <div> is a flex item, so it floors at
      min-width:auto. Its h2 holds "патоморфологическое", which at the 1.9rem
      headline size is 351px on its own against 272px of available width
      (+79px). A word wider than its container cannot be rescued by hyphenation
      alone, so it also needs overflow-wrap.
   2) .contact-grid / .f-row — the country <select> carries 88 region names and
      reports a 349px intrinsic width. .f-field sized itself from that select
      while the select sized itself at width:100% of .f-field, so the two held
      each other at 349px and the grid column could not narrow (+135px).
      minmax(0,1fr) drops the `auto` floor; min-width:0 breaks the loop.
   3) .steps.cols-3.s-6 — a page-scoped rule forces two columns between 340px
      and 860px using `1fr`, which leaves a 146px floor per column while the
      content box is only 100px. Its Russian body copy then spills out of every
      card (+20px per card on heart-bypass / icl-lens).
   4) .f-submit — the button label is 323px of nowrap Russian inside a 269px
      button, so the whole form grew to fit it (+54px).
   Scope: html[lang="ru"] on every selector, and this file is linked only by the
   ru/*.html pages, so the English layout cannot be reached. */
html[lang="ru"] .final .wrap>div,
html[lang="ru"] .contact-grid>*,
html[lang="ru"] .contact-grid .f-card,
html[lang="ru"] .contact-grid .f-field,
html[lang="ru"] .steps>*,
html[lang="ru"] .steps .step{min-width:0}
html[lang="ru"] .f-row{grid-template-columns:minmax(0,1fr)}
@media(max-width:1020px){
  html[lang="ru"] .contact-grid{grid-template-columns:minmax(0,1fr)}
}
html[lang="ru"] .f-field input,
html[lang="ru"] .f-field select,
html[lang="ru"] .f-field textarea{width:100%;min-width:0;max-width:100%}
html[lang="ru"] .f-submit,
html[lang="ru"] .f-card .btn-primary{white-space:normal;max-width:100%;min-width:0}
html[lang="ru"] .final .sub,
html[lang="ru"] .step b,
html[lang="ru"] .step p{overflow-wrap:anywhere;hyphens:auto}
/* At 400px and below, 17 headlines carry a single word that is physically
   wider than the column: "кардиохирургическое" 342px, "эндопротезировании"
   327px, "Эндопротезирование" 285px, against a 272px content box at 320px.
   No wrapping rule can save a word that big — overflow-wrap would shred it
   into "патоморфологич / еское". One step down in type size lets every one of
   them set whole on its own line, which is the tidier answer at this width. */
@media(max-width:400px){
  html[lang="ru"] h1,
  html[lang="ru"] h2{font-size:1.45rem}
  html[lang="ru"] .hero h1{font-size:1.5rem}
  html[lang="ru"] .page-hero h1{font-size:1.45rem}
  html[lang="ru"] .final h2{font-size:1.45rem}
}
@media(min-width:340px) and (max-width:860px){
  html[lang="ru"] .steps.cols-3.s-6{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* The header language switch holds the "English" entry as an <a>, while the
   mobile menu and footer variants sit inside rules that already strip the
   underline. Measured at 1440px: the header copy computed to
   text-decoration:underline, the other two to none — so only the header copy
   needs it lifted to match the muted, non-decorated look of the sibling
   "Русский" label. Hover/focus restore a line so the control still reads as a
   link and stays keyboard-visible.
   The colour is lifted from #6d8299 to #9db2c6 so a real link reads as
   available rather than disabled, matching the English site's treatment. */
html[lang="ru"] header .lang-switch a.off{text-decoration:none;color:#9db2c6}
html[lang="ru"] .mm-lang a.off{text-decoration:none;color:#9db2c6}
html[lang="ru"] footer .lang-switch a.off{text-decoration:none;color:#9db2c6}
html[lang="ru"] header .lang-switch a.off:hover,
html[lang="ru"] header .lang-switch a.off:focus-visible{text-decoration:underline;color:#fff}
