/* Общая типографика; уникальная композиция заголовка остаётся в CSS страницы. */
h1,
h2,
h3,
h4,
h5,
h6,
.brand,
.navigation,
.button,
.header__contact {
  font-family: var(--font-family-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

.ui-page-title {
  font-size: var(--font-size-heading-1);
}

.ui-section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-heading-2);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.ui-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--type-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

/* Подзаголовок строки использует размер общей роли .ui-card-title. */
.ui-subheading {
  line-height: 1.35;
}

.ui-lead {
  margin: 0;
  font-size: var(--type-body-lg);
}

.section-label {
  color: var(--section-label-color);
  font-family: var(--font-family-heading);
  font-size: var(--section-label-size);
  font-weight: var(--section-label-weight);
  line-height: var(--section-label-leading);
  letter-spacing: var(--section-label-tracking);
  text-transform: uppercase;
}

/*
  Подпись-ярлык внутри .section-kicker (сейчас единственный потребитель —
  «Процесс сотрудничества» на Services). Раньше держалась на
  --font-family-heading/--section-label-* (Manrope, 12px/700/.11em) —
  отдельная от canonical eyebrow-роли (.type-eyebrow: Onest, 9px/600/
  .2em), которая используется во всех остальных eyebrow/kicker сайта
  (hero, offering-карточки и т.д.). Переведено на те же токены, что
  .type-eyebrow, чтобы роль была одной, а не двумя разными системами.
*/
.section-kicker__label {
  color: inherit;
}

/* Точные типографические роли сняты с главной на desktop viewport. */
.type-body {
  font-family: var(--font-family-page-sans);
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 26.1px;
  letter-spacing: normal;
}

.type-body-small {
  font-family: var(--font-family-page-sans);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 23.25px;
  letter-spacing: normal;
}

.type-eyebrow {
  font-family: var(--font-family-page-sans);
  font-size: 9px;
  font-weight: 600;
  font-style: normal;
  line-height: 15.12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.type-section-metadata {
  color: var(--color-muted);
  font-family: var(--font-family-page-sans);
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  line-height: 16.8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* Единая редакционная нумерация секций; отступ и leading задаёт композиция блока. */
.section-index {
  color: var(--color-text-primary);
  font-family: var(--font-family-page-serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.68;
  letter-spacing: 0;
  white-space: nowrap;
}

.section-index--brand {
  color: var(--color-brand-navy);
}

/* Подпись секции About — отдельная роль, не равная eyebrow и metadata. */
.type-section-label {
  color: var(--color-muted);
  font-family: var(--font-family-page-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Общая основа крупных editorial-заголовков внутренних страниц. */
.type-page-title-editorial,
#content .type-page-title-editorial {
  font-family: var(--font-family-page-serif);
  font-size: var(--font-size-page-title-editorial);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.045em;
}

/* Самостоятельная italic-строка hero: размер берёт существующую heading-шкалу, а не CSS конкретной страницы. */
.type-hero-subtitle-editorial {
  color: var(--color-editorial-blue);
  font-family: var(--font-family-page-serif);
  font-size: var(--font-size-heading-2);
  font-weight: 400;
  font-style: italic;
  line-height: .9;
  letter-spacing: var(--letter-spacing-heading);
}

/*
  Заголовок service-detail — отдельная hero-роль: web и расширенный
  education/systems вариант разделяют гарнитуру и ритм, но сохраняют
  разные size tracks из-за длины названий и иллюстраций.
*/
.type-service-hero-title {
  font-family: var(--font-family-page-serif);
  font-size: clamp(54px, 4.55vw, 62px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.045em;
}

.type-service-hero-title--expanded {
  font-size: clamp(64px, 4.55vw, 86px);
}

.type-service-hero-title strong {
  font-weight: 500;
}

/* Общая typographic role hero lead; различается только осознанный leading композиции. */
.ui-hero-lead,
#content .ui-hero-lead {
  color: var(--color-text-hero);
  font-family: var(--font-family-page-sans);
  font-size: var(--font-size-body-lg);
  font-weight: 400;
  font-style: normal;
  line-height: var(--hero-lead-line-height, 1.45);
  letter-spacing: normal;
}

.ui-hero-lead--service {
  --hero-lead-line-height: 1.5;
}

@media (max-width: 1300px) {
  .type-service-hero-title {
    font-size: clamp(51px, 4.5vw, 65px);
  }

  .type-service-hero-title--expanded {
    font-size: clamp(58px, 5vw, 70px);
  }
}

@media (max-width: 1040px) {
  .type-service-hero-title {
    font-size: clamp(52px, 8vw, 68px);
  }

  .type-service-hero-title--expanded {
    font-size: clamp(54px, 6vw, 66px);
  }
}

@media (max-width: 800px) {
  .type-service-hero-title {
    font-size: clamp(40px, 11.8vw, 48px);
  }

  .type-service-hero-title--expanded {
    font-size: clamp(54px, 9vw, 70px);
  }
}

@media (max-width: 520px) {
  .type-service-hero-title--expanded {
    font-size: clamp(43px, 12.8vw, 56px);
  }
}

/* Размер и гарнитура совпадающих editorial-заголовков секций; ритм остаётся у композиции. */
.type-section-title-editorial {
  font-family: var(--font-family-page-serif);
  font-size: var(--font-size-heading-1);
}

@media (max-width: 720px) {
  .type-page-title-editorial--mobile,
  #content .type-page-title-editorial--mobile {
    font-size: var(--font-size-page-title-editorial-mobile);
  }
}
