html[lang="ru"] .button, html[lang="ru"] .header-cta, html[lang="ru"] .mobile-header-cta { white-space: normal; text-align: center; }
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3 { overflow-wrap: anywhere; }

/* Russian copy needs slightly tighter display sizing than its English counterpart. */
html[lang="ru"] .hero-copy h1 { font-size: clamp(50px, 4.8vw, 66px); }
html[lang="ru"] .showcase-micro h3 { font-size: clamp(48px, 5.5vw, 72px); white-space: nowrap; overflow-wrap: normal; }
html[lang="ru"] .showcase-micro .button-dark { min-width: 200px; padding-inline: 18px; font-size: 15px; white-space: nowrap; }
html[lang="ru"] .pillars .automation-title { line-height: 1; overflow-wrap: normal; }
html[lang="ru"] .shift h2 { font-size: clamp(48px, 4.2vw, 60px); }
html[lang="ru"] .shift-nowrap { white-space: nowrap; }
html[lang="ru"] .shift-card { min-height: 680px; }
html[lang="ru"] .shift-lead { line-height: 1.07; }
html[lang="ru"] .shift-lead > span { display: block; }

@media (max-width: 600px) {
  html[lang="ru"] .hero-copy h1 { font-size: clamp(2.25rem, 10.6vw, 3.25rem); }
  html[lang="ru"] .shift h2 { font-size: clamp(38px, 11vw, 50px); }
  html[lang="ru"] .shift-nowrap { white-space: normal; }
}

/* Keep the longer Russian navigation and calls to action compact and predictable. */
html[lang="ru"] .consultation-cta,
html[lang="ru"] button[data-consultation-open],
html[lang="ru"] .consult-form button[type="submit"] { white-space: nowrap; }
html[lang="ru"] #shift-title > span { display: block; }
html[lang="ru"] .pillars .development-title { white-space: nowrap; overflow-wrap: normal; }

/* Keep the sales hero compact on desktop without reducing its mobile presence. */
html[lang="ru"] .sales-page .hero h1 {
  margin-bottom: 28px;
  font-size: clamp(50px, 5.5vw, 78px);
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 981px) {
  html[lang="ru"] .sales-page .hero { padding-top: 160px; }
}

@media (max-width: 640px) {
  html[lang="ru"] .sales-page .hero h1 { font-size: clamp(46px, 15vw, 66px); }
}

@media (min-width: 1300px) {
  html[lang="ru"] .shift-card { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 40px; }
}

@media (min-width: 821px) and (max-width: 1299px) {
  html[lang="ru"] .site-header .main-nav { gap: 18px; }
  html[lang="ru"] .shift-card { min-height: 760px; grid-template-columns: 1fr; }
  html[lang="ru"] .shift-text { max-width: 580px; }
}

@media (min-width: 821px) {
  html[lang="ru"] #shift-title > span { white-space: nowrap; }
}

@media (max-width: 600px) {
  html[lang="ru"] .shift-period { display: none; }
  html[lang="ru"] .pillars .development-title { font-size: 18px; }
  html[lang="ru"] .shift-card { min-height: 760px; }
  html[lang="ru"] #contact-title > span,
  html[lang="ru"] #contact-title > em { display: block; }
  html[lang="ru"] #contact-title br { display: none; }
}
