/* Language typography only: retain the existing compositions and desktop breakpoints. */
.vg-language select { width: 88px; }
html:is([lang=es],[lang=ru],[lang=ar]) :is(h1,h2,h3,h4,p,li,td,th,button,label,a) { overflow-wrap: break-word; }
html:is([lang=es],[lang=ru],[lang=ar]) :is(.vg-mega-title,.vg-desktop-nav a,.vg-contact,.pd-section-nav a) { white-space: normal; }
html[lang=ar] body { font-family: Tahoma, Arial, sans-serif; text-align: left; }
/* Arabic shaping and punctuation have their natural bidi order. Layout, alignment,
   column order, navigation, process diagrams and arrows are deliberately LTR. */
html[lang=ar] :is(h1,h2,h3,h4,p,li,td,th,label,button,a,span,small,figcaption,text) { letter-spacing: 0; }
html[lang=ar] :is(p,h1,h2,h3,h4,figcaption,textarea) { unicode-bidi: plaintext; }
html[lang=ar] :is(input[type=email],input[type=tel],a[href^="mailto:"],a[href^="tel:"],.footer-word,.vg-footer-logo) { direction: ltr; unicode-bidi: isolate; }
@media (min-width:800px) {
  html:is([lang=es],[lang=ru],[lang=ar]) .vg-header-inner { gap: clamp(12px,1.5vw,24px); }
  html:is([lang=es],[lang=ru],[lang=ar]) .vg-desktop-nav { padding-inline: 6px; gap: 0; }
  html:is([lang=es],[lang=ru],[lang=ar]) .vg-desktop-nav > a { padding-inline: clamp(7px,.65vw,12px); text-align: center; line-height: 1.4; }
  html:is([lang=es],[lang=ru],[lang=ar]) .vg-header-actions { gap: 12px; flex-shrink: 0; }
  html:is([lang=es],[lang=ru],[lang=ar]) .vg-contact { gap: 12px; }
  html:is([lang=es],[lang=ru],[lang=ar]) :is(.pc-entry,.vg-mega-card,.fd-advantage,.bio-advantage,.sp-service-card,.ref-first-copy,.sp-hero-copy) { min-width: 0; }
  html:is([lang=es],[lang=ru],[lang=ar]) :is(.pc-hero h1,.sol-hero h1) { font-size: clamp(42px,4.2vw,72px); line-height: 1.12; }
  html:is([lang=es],[lang=ru],[lang=ar]) .sp-hero h1 { font-size: clamp(36px,3.4vw,60px); line-height: 1.16; }
  html:is([lang=es],[lang=ru],[lang=ar]) :is(.pd-section-nav,.bio-section-nav) { gap: clamp(20px,3vw,64px); }
  html:is([lang=es],[lang=ru],[lang=ar]) .pd-section-nav a { line-height: 1.35 !important; padding-block: 17px; text-align: center; }
  html:is([lang=es],[lang=ru],[lang=ar]) :is(.fd-advantage,.bio-advantage) { height: auto; max-height: none; }
  html:is([lang=es],[lang=ru],[lang=ar]) .bio-process-panel { height: auto !important; min-height: calc(100svh - 160px); max-height: none !important; }
  html:is([lang=es],[lang=ru],[lang=ar]) :is(.bio-process-steps li,.fd-process-steps li) { min-width: 0; }
  html:is([lang=es],[lang=ru],[lang=ar]) .ref-title { font-size: clamp(38px,4.3vw,72px); line-height: 1.1; }
  html:is([lang=es],[lang=ru],[lang=ar]) .ref-first-copy .ref-title { font-size: clamp(38px,4.6vw,72px); }
  html:is([lang=es],[lang=ru],[lang=ar]) .sp-first-screen { height: auto; min-height: calc(100svh - var(--vg-header-height,96px)); }
  html:is([lang=es],[lang=ru],[lang=ar]) .sp-highlights h3 { line-height: 1.35; }
  html[lang=ar] :is(.hero-title,.section-title,h1,h2) { line-height: 1.3; }
}
@media (min-width:800px) {
  html:is([lang=es],[lang=ru],[lang=ar]) .fd-compare-category-label { overflow-wrap: anywhere; }
  html:is([lang=es],[lang=ru],[lang=ar]) .fd-compare-category { height: auto; min-height: 64px; }
  html:is([lang=es],[lang=ru],[lang=ar]) .sol-tab-title { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
html[lang=ar] .pc-stat-value { font-family: Arial, sans-serif; line-height: 1.15; unicode-bidi: normal; }
/* Resolve Arabic punctuation per text block without changing the parent's alignment. */
html[lang=ar] :is(p,h1,h2,h3,h4,figcaption,textarea) { text-align: match-parent; }
html[lang=ar] :is(.title-line > span,h1 > span) { unicode-bidi: plaintext; text-align: left; }
html:is([lang=es],[lang=ru]) .pc-stat-value { line-height: 1.15; }
