/* Russian type roles. Unbounded's actual variable axis is 200–900.
   Light reading text, regular headings/labels, medium actions and emphasis. */
html[lang="ru"] article[lang="en"],
html[lang="en"] article[lang="ru"] { display: none; }

html[lang="ru"] {
  --ru-font: 'Unbounded', sans-serif;
  --ru-reading: 300;
  --ru-regular: 400;
  --ru-emphasis: 500;
  font-synthesis: none;
}

/* Also covers exported inline SVG font attributes and form font shorthands. */
html[lang="ru"] body,
html[lang="ru"] body * {
  font-family: var(--ru-font) !important;
}
html[lang="ru"] body {
  font-weight: var(--ru-reading);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}
html[lang="ru"] :is(strong, b) { font-weight: var(--ru-emphasis); }

/* Display and section titles establish hierarchy through scale. */
html[lang="ru"] :is(.d, h1, h2, h3, .ap-title, .ap-sheet h2) {
  font-weight: var(--ru-regular);
  letter-spacing: -0.025em;
  line-height: 1.25 !important;
}
html[lang="ru"] .hero-h {
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.12 !important;
}
html[lang="ru"] .hero-side > .lede {
  font-weight: var(--ru-reading);
  font-size: 20px !important;
  line-height: 1.5 !important;
  letter-spacing: -0.015em;
}
html[lang="ru"] .gcard .d { line-height: 1.2 !important; }
html[lang="ru"] .sc h3 { font-size: clamp(20px, 1.8vw, 24px) !important; }

/* Prose stays quiet, including status descriptions and consent text. */
html[lang="ru"] :is(.g16 > p, .cmp-old, .cmp-new, .ft li, .dep-row dd, .faq p) {
  font-weight: var(--ru-reading);
  line-height: 1.65 !important;
  letter-spacing: 0;
}
html[lang="ru"] .g16 > p { font-size: 17px !important; }
html[lang="ru"] .sc > p:not(.m) { line-height: 1.65 !important; }
html[lang="ru"] .faq summary {
  font-weight: var(--ru-regular);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
html[lang="ru"] :is(.ap-lede, .ap-sheet p) {
  font-weight: var(--ru-reading);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}
html[lang="ru"] .ap-status {
  font-weight: var(--ru-reading);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}
html[lang="ru"] .ap-facts dd { font-weight: var(--ru-reading); line-height: 1.6; }
html[lang="ru"] .pf-cons-b { font-weight: var(--ru-reading); font-size: 12px; line-height: 1.7; letter-spacing: 0; }

/* Small information is regular weight so it remains legible at its size. */
html[lang="ru"] :is(.m, .pf-row label, .pf-cons-t, .ap-field label, .ap-label,
  .ap-facts dt, .ap-note, .ap-kicker, .ap-err, .ft-note, .dep-row dt, .soon,
  .region-footer, .ap-verification-title) {
  font-weight: var(--ru-regular);
  line-height: 1.6;
  letter-spacing: 0;
}
html[lang="ru"] :is(.ap-kicker, .soon) { letter-spacing: 0.02em; }
html[lang="ru"] .region-footer { text-transform: none; }
html[lang="ru"] :is(.nl, .ap-head nav, .ap-link, .email-reveal > button) {
  font-weight: var(--ru-regular);
  letter-spacing: -0.01em;
}

/* Controls: a clear action weight, with normal input values. */
html[lang="ru"] :is(input, select, textarea) {
  font-weight: var(--ru-regular);
  letter-spacing: 0;
}
html[lang="ru"] :is(input, textarea)::placeholder { font-weight: var(--ru-reading); }
html[lang="ru"] :is(.btn, .ap-verification-retry) {
  font-weight: var(--ru-emphasis);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
html[lang="ru"] .ap-verification p:not(.ap-verification-title) { font-weight: var(--ru-reading); line-height: 1.6; }

/* Demo: compact hierarchy and tabular values, no poster-style tracking. */
html[lang="ru"] #ud-demo .pv { font-size: 14px; line-height: 1.55; letter-spacing: 0; }
html[lang="ru"] #ud-demo :is(.pv-micro, .pv-sub, .pv-t, .pv-date, .pv-pill) {
  font-weight: var(--ru-regular);
  letter-spacing: 0;
}
html[lang="ru"] #ud-demo :is(.pv-micro, .pv-cap, .pv-lane) { text-transform: none; }
html[lang="ru"] #ud-demo .pv-micro { font-size: 11px; line-height: 1.5; }
html[lang="ru"] #ud-demo .pv-date { font-size: 12px; white-space: nowrap; }
html[lang="ru"] #ud-demo .pv-big {
  font-weight: var(--ru-regular);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
html[lang="ru"] #ud-demo .pv-big small { font-size: 12px; font-weight: var(--ru-regular); letter-spacing: 0; }
html[lang="ru"] #ud-demo :is(.pv-panel h3, .pv-alert h4) {
  font-weight: var(--ru-regular);
  font-size: 14px;
  line-height: 1.5 !important;
  letter-spacing: -0.01em;
}
html[lang="ru"] #ud-demo :is(.pv-alert p, .pv-summary, .pv-note, .pv-maint, .pv-empty) {
  font-weight: var(--ru-reading);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0;
}
html[lang="ru"] :is(svg text, svg tspan) { font-weight: var(--ru-regular); letter-spacing: 0; }

@media (max-width: 671px) {
  html[lang="ru"] .ap-title { font-size: 28px; line-height: 1.25 !important; }
  html[lang="ru"] .ap-tile h2 { font-size: 21px; }
  html[lang="ru"] .ap-lede { font-size: 15px; }
  html[lang="ru"] #ud-demo .pv-play { min-width: 0; font-size: 12px; padding: 10px 12px; }
  html[lang="ru"] #ud-demo .pv-bar { gap: 10px; }
  html[lang="ru"] #ud-demo .pv-date { min-width: 68px; }
}

/* A five-column status strip cannot fit Russian labels on a phone. */
@media (max-width: 671px) {
  html[lang="ru"] .ap-track { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html[lang="ru"] .ap-track li { flex-direction: row; align-items: center; gap: 10px; }
  html[lang="ru"] .ap-track .bar { flex: 0 0 20px; height: 4px; }
  html[lang="ru"] .ap-track .name { font-size: 12px; line-height: 1.5; overflow-wrap: normal; }
}

/* The short Russian headline needs a compact first screen. */
html[lang="ru"] .hero { min-height:clamp(480px, 60svh, 620px); }
html[lang="ru"] .hero-in { padding-top:clamp(32px, 5vh, 64px); }
html[lang="ru"] .hero-side { align-self:start; }
html[lang="ru"] .hero-rib { height:46%; }
@media(max-width:1055px) and (min-width:672px) {
  html[lang="ru"] .hero { min-height:600px; }
  html[lang="ru"] .hero-rib { height:40%; }
}
@media(max-width:671px) {
  html[lang="ru"] .hero { min-height:0; }
  html[lang="ru"] .hero-rib { height:180px; }
  html[lang="ru"] .hero-in { padding-top:24px; padding-bottom:24px; }
}
html[lang="ru"] .herobtns { gap:8px !important; flex-wrap:nowrap !important; }
html[lang="ru"] .herobtns .btn { flex:1 1 0; min-width:0; padding:10px 12px; font-size:13px; gap:8px; }
