/*
 * Reviewed Russian editorial type scale.
 *
 * This stylesheet is linked only from prerendered Russian pages. It follows
 * the approved multilingual hierarchy without changing the shared design,
 * layout, components or any other locale.
 */
html[lang="ru"] body[data-seo-locale="ru"][data-page] main h1 {
  font-size: clamp(3.25rem, 4.45vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main h2 {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Russian heroes mirror the approved Ukrainian composition: one concise
   primary phrase followed by a visibly smaller supporting H2. */
html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-primary-title {
  margin-bottom: 0;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-subtitle {
  margin: .8rem 0 28px;
  font-family: var(--serif);
  font-size: clamp(1.26rem, 1.8vw, 1.53rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-subtitle span {
  display: inline-block;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-subtitle em {
  display: inline;
  color: var(--burgundy);
  font-weight: 400;
}

/* The homepage keeps the exact Ukrainian primary-heading scale. */
html[lang="ru"] body[data-seo-locale="ru"][data-page="home"] .hero .ru-hero-primary-title {
  font-size: clamp(3.5rem, 5vw, 4.25rem);
  line-height: .94;
}

/* Brand-story sections are rendered after </main>; keep their H2 on the same
   restrained Russian scale as every in-page section heading. */
html[lang="ru"] body[data-seo-locale="ru"][data-page] .brand-story-copy h2 {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main h3 {
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main h4 {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.3;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] :is(
  .hero-description,
  .inner-hero-side > p,
  .country-page-title > div:last-child > p,
  .about-hero-intro,
  .academy-catalogue-copy > p:not(.section-index),
  .careers-hero-lead,
  .contact-copy > p:not(.section-index),
  .section-head > p:last-child,
  .topic-visual-copy > p,
  .brand-story-copy > p:not(.section-index),
  .page-cta > div > p:last-child
) {
  max-width: 64ch;
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main p {
  text-wrap: pretty;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page] main :is(
  p,
  h3,
  h4,
  li,
  a,
  b,
  small
) {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (min-width: 761px) and (max-width: 900px) {
  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h1,
  html[lang="ru"] body[data-seo-locale="ru"][data-page="home"] .hero .ru-hero-primary-title {
    font-size: 2.75rem;
    line-height: 1.04;
    letter-spacing: -.02em;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h2,
  html[lang="ru"] body[data-seo-locale="ru"][data-page] .brand-story-copy h2 {
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -.015em;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.16;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page="contact"] main .ru-hero-primary-title {
    font-size: 2.25rem;
  }

  /* At tablet widths the longest country name must remain inside the text
     column instead of running beneath the fixed hero visual. */
  html[lang="ru"] body[data-seo-locale="ru"][data-page="destinations"][data-country] main .country-page-title .ru-hero-primary-title {
    font-size: 2.25rem;
    line-height: 1.06;
  }
}

/* Keep the approved country-eyebrow appearance after separating it from H1. */
html[lang="ru"] body[data-seo-locale="ru"] .country-page-country-label {
  display: block;
  margin: 25px 0 22px;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[lang="ru"] body[data-seo-locale="ru"] .country-page-country-label + h1 {
  margin-top: 0;
}

html[lang="ru"] body[data-seo-locale="ru"] .university-country-head h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-weight: 400;
}

/* Semantic-only tag corrections retain the established component styling. */
html[lang="ru"] body[data-seo-locale="ru"] .programme-card-back .programme-card-heading {
  min-height: 0;
  margin: 44px 0 18px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

html[lang="ru"] body[data-seo-locale="ru"] .contact-card .contact-card-heading {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

html[lang="ru"] body[data-seo-locale="ru"] .academy-course-empty .academy-course-empty-title {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
}

html[lang="ru"] body[data-seo-locale="ru"] .country-dossier summary .country-dossier-title {
  margin: 0;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

html[lang="ru"] body[data-seo-locale="ru"][data-page="funding"] .budget-country-details article .ru-budget-country-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

@media (max-width: 760px) {
  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h1,
  html[lang="ru"] body[data-seo-locale="ru"][data-page="home"] .hero .ru-hero-primary-title {
    font-size: clamp(2.375rem, 10.5vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.02em;
  }

  /* The long Russian Academy course phrase must not establish a wider
     min-content grid track than the mobile viewport. */
  html[lang="ru"] body[data-seo-locale="ru"][data-page="academy"] .academy-catalogue-hero > * {
    min-width: 0;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page="academy"] :is(
    .academy-catalogue-copy,
    .academy-current-board
  ) {
    width: 100%;
    max-width: 100%;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page="academy"] .academy-catalogue-copy h1 {
    font-size: clamp(2.125rem, 9.2vw, 2.75rem);
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h2 {
    font-size: clamp(1.75rem, 8vw, 2.125rem);
    line-height: 1.12;
    letter-spacing: -.015em;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main .ru-hero-subtitle {
    font-size: clamp(1.1875rem, 5.25vw, 1.375rem);
    line-height: 1.16;
    letter-spacing: -.01em;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] .brand-story-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.125rem);
    line-height: 1.12;
    letter-spacing: -.015em;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h3 {
    font-size: clamp(1.25rem, 5.6vw, 1.4375rem);
    line-height: 1.25;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] main h4 {
    font-size: clamp(1.0625rem, 4.8vw, 1.1875rem);
    line-height: 1.3;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page] :is(
    .hero-description,
    .inner-hero-side > p,
    .country-page-title > div:last-child > p,
    .about-hero-intro,
    .academy-catalogue-copy > p:not(.section-index),
    .careers-hero-lead,
    .contact-copy > p:not(.section-index),
    .section-head > p:last-child,
    .topic-visual-copy > p,
    .brand-story-copy > p:not(.section-index),
    .page-cta > div > p:last-child
  ) {
    font-size: clamp(1.0625rem, 4.5vw, 1.125rem);
    line-height: 1.62;
  }

  html[lang="ru"] body[data-seo-locale="ru"] .programme-card-back .programme-card-heading {
    margin-top: 36px;
    font-size: clamp(1.25rem, 5.6vw, 1.4375rem);
    line-height: 1.25;
  }

  html[lang="ru"] body[data-seo-locale="ru"] .contact-card .contact-card-heading {
    font-size: 2rem;
    line-height: 1.12;
  }

  html[lang="ru"] body[data-seo-locale="ru"] .country-dossier summary .country-dossier-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  html[lang="ru"] body[data-seo-locale="ru"][data-page="funding"] .budget-country-details article .ru-budget-country-title {
    font-size: clamp(1.25rem, 5.6vw, 1.4375rem);
    line-height: 1.25;
  }
}
