/* Этот файл общий для трёх страниц услуг: веб-разработка, методическая
   работа и системные решения. У каждой свои блоки, просто лежат в одном
   файле. */

/*
  01. Первый экран трёх активных услуг — общая структура (.service-hero__*)
  + page-модификаторы (--web/--education/--systems). Родословная
  web-service-hero → education-service-hero → systems-service-hero
  (наследование через накопление классов) заменена на общий блок с
  явными модификаторами.

  Модификаторы --education и --systems сейчас переиспользуют одни и те
  же значения там, где computed-результат был идентичен (breadcrumbs,
  title/lead, actions, note, высота visual) — это подтверждено картой,
  а не предположение. Круглая декоративная композиция (orbit/dot/photo)
  вынесена в общий модификатор --circular: он общий для Education и
  Systems, но не привязан по имени ни к одной из двух страниц.
*/

.service-hero {
  width: 100%;
  min-height: 660px;
  color: var(--color-brand-navy);
}

.service-hero__layout {
  display: grid;
  align-items: center;
  gap: var(--page-rail-gap);
  min-height: 660px;
  padding-block: var(--page-hero-padding-top) var(--page-hero-padding-bottom);
}

/*
  Сетка и рамка визуала ниже — только для Web (ноутбук, не круг).
  Education/Systems используют общий .hero-orbit-layout, а у этого
  правила та же specificity и файл грузится позже — без привязки к
  --web оно перебило бы общую сетку.
*/
.service-hero--web .service-hero__layout {
  grid-template-columns: var(--page-rail-width) minmax(520px, .94fr) minmax(520px, 1.1fr) 62px;
  padding-right: var(--page-gutter);
}

/*
  Phase 5.4: .service-hero__layout наследует align-items: center (нужен
  visual/rail), а .service-hero__copy раньше тоже центрировался в
  высокой строке — отсюда -133px/-112px на breadcrumbs ниже (компенсация
  centering, не осознанное позиционирование, подтверждено измерением:
  без хака и с align-self: start breadcrumbs у Web и Education/Systems
  встают в ТОЧНО одну и ту же позицию, хотя высота copy у них разная).
  align-self: start возвращает copy в нормальный flow — offset больше
  не нужен.
*/
.service-hero__copy {
  position: relative;
  z-index: 3;
  align-self: start;
  min-width: 0;
}

.service-hero__breadcrumbs {
  margin: 16px 6px 9px;
}

.service-hero__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.service-hero__breadcrumbs a:hover { color: var(--accent-blue); }

.service-hero__breadcrumbs a:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 4px;
}

/* Вес/интерлиньяж/трекинг H1 — эталон главной (.home-hero__title): 500 / .84 / -.045em.
   Было 600 / .94 / -.035em — независимый набор, заголовок читался жирнее и рыхлее
   ролевого H1 остальных страниц. Font-size остаётся форматом clamp: под названия
   услуг разной длины, эффективное значение на 1440px близко к эталонным ~58–60px. */
.service-hero__title {
  max-width: 720px;
  margin: 0;
}

.service-hero__title strong,
.service-hero__title em,
.service-hero__title > span { display: block; }


.service-hero__title em {
  color: var(--accent-blue);
  font-weight: 500;
}

.service-hero__title > span { font-weight: 500; }

.service-hero__lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #33415a;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  margin-top: 28px;
}

.service-hero__visual {
  position: relative;
}

.service-hero--web .service-hero__visual {
  justify-self: center;
  width: min(100%, 730px);
  min-height: 550px;
}

.service-hero__note {
  position: relative;
  margin-top: 367px;
  margin-left: -53px;
  z-index: 4;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 216px;
  padding: 95px 0 0 20px;
  border-left: 1px solid rgba(21, 39, 72, .4);
  color: var(--color-muted);
  font-family: var(--font-family-page-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-hero__note::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -29px 0 0 -24px;
  border-radius: 50%;
  background: var(--color-brand-lime);
}

.service-hero__handwriting {
  position: absolute;
  font-family: var(--font-family-page-handwritten);
}

/* -- Web: собственная decorative-ветка (ноутбук, а не круглое фото) -- */

.service-hero__orbit--web {
  position: absolute;
  top: -3%;
  left: 3%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(21, 39, 72, .35);
  border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
  transform: rotate(-18deg);
}

.service-hero__orbit--web::after {
  content: "";
  position: absolute;
  inset: 7% -8% -2% 4%;
  border: 1px solid rgba(21, 39, 72, .14);
  border-radius: 50%;
  transform: rotate(21deg);
}

.service-hero__dot--web {
  position: absolute;
  margin: 35px 0 0 -6px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-brand-navy);
}

.service-hero__dot--web.service-hero__dot--top { top: -4px; right: 24%; }
.service-hero__dot--web.service-hero__dot--start { bottom: 20%; left: 47px; }

.service-hero__laptop {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 94%;
  margin: 0;
  filter: drop-shadow(0 24px 18px rgba(21, 39, 72, .18));
  transform: perspective(1400px) rotateX(3deg) rotateY(-4deg) rotateZ(2deg);
  transform-origin: 50% 100%;
}

.service-hero__laptop--image {
  right: -15%;
  bottom: 7%;
  width: 110%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 48% 48% 10% 10% / 8% 8% 5% 5%;
  filter: drop-shadow(0 22px 22px rgba(21, 39, 72, .12));
  transform: none;
}

.service-hero__laptop--image > img {
  display: block;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.service-hero__handwriting--web {
  top: 3%;
  right: 2%;
  z-index: 3;
  color: var(--color-brand-navy);
  font-size: clamp(22px, 1.8vw, 31px);
  line-height: .95;
  text-align: center;
  transform: rotate(-11deg);
}

/*
  Брейкпоинт расширен с 1300 до 1400px: базовая сетка требует
  44+520+520+62px + 3 gap ≈ 1310-1350px по факту — на ширинах чуть выше
  1300 (частый диапазон реальных ноутбуков, особенно с масштабированием
  125%) места впритык не хватало, .service-hero__note оказывался в
  нескольких px от края viewport. overflow-x:clip на html/body скрывал
  это молча — overflow не показывал переполнения, но блок реально
  обрезался. Компактная сетка (430+430+108px) безопасна на всём
  диапазоне 1300-1400px.
*/
@media (max-width: 1400px) {
  .service-hero--web .service-hero__layout {
    grid-template-columns: var(--page-rail-width) minmax(380px, .9fr) minmax(380px, 1fr) 108px;
    gap: 22px;
  }
  .service-hero--web .service-hero__visual { min-height: 470px; }
  .service-hero__note { padding-left: 12px; font-size: 8px; }
}

@media (max-width: 1040px) {
  .service-hero { min-height: 0; }
  .service-hero__layout { min-height: 570px; }
  .service-hero--web .service-hero__layout {
    grid-template-columns: var(--page-rail-width) minmax(0, 1fr) minmax(390px, .9fr);
  }
  .service-hero__note { display: none; }
  .service-hero--web .service-hero__visual { min-height: 420px; }
  .service-hero__handwriting--web { right: 0; }
}

@media (max-width: 800px) {
  .service-hero--web .service-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-hero__layout { gap: 28px; }
  .service-hero__rail { display: none; }
  .service-hero__title { max-width: 680px; }
  .service-hero--web .service-hero__visual {
    width: min(100%, 650px);
    min-height: 470px;
    margin: 0 auto;
  }
  .service-hero__laptop--image {
    right: -4%;
    bottom: 5%;
    width: 108%;
  }
}

@media (max-width: 520px) {
  .service-hero__title > span br { display: none; }
  .service-hero__lead { margin-top: 20px; }
  .service-hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .service-hero__all { align-self: flex-start; }
  .service-hero--web .service-hero__visual { width: calc(100% + 24px); min-height: 300px; margin-left: -12px; }
  .service-hero__laptop { width: 100%; }
  .service-hero__laptop--image { right: -1%; bottom: 4%; width: 102%; }
  .service-hero__orbit--web { top: 0; left: 2%; width: 72%; }
  .service-hero__handwriting--web { top: -1%; right: -1%; font-size: 19px; }
}

/* Блок 02: направления веб-разработки. */
.web-service-directions__intro {
  min-width: 0;
  padding: 0 12px 10px 0;
}

.web-service-directions__meta {
  --section-head-gap: 26px;
  --section-head-min-height: 34px;
  color: var(--color-muted);
}

/* Колонка под rail = var(--content-rail-inset): заголовок стартовал на x=92 при hero/page-heading на x=119.2 (было 42px+gap 12px=54px вместо 87.2px). */
.web-service-directions__intro-body {
  min-height: 240px;
  margin-top: 6px;
}

/*
  margin:0 auto центрировал линию ВНУТРИ rail-колонки шириной
  --content-rail-inset (87.2px) — после того как колонка была расширена
  под content guide, центр сместился на x≈75 (было запланировано для
  content, не для линии). Заменено на margin-left = --page-rail-width/2
  (22px) — та же ось, что у hero rail (--page-rail-axis-x = 54
  абсолютно), не завязанная на ширину колонки.
*/
.web-service-directions__rail {
  --section-rail-dot-size: 9px;
  --section-rail-dot-color: var(--color-brand-navy);
  height: 100%;
}

/*
  Размер заголовка — общий канонический токен --font-size-heading-1
  (та же роль, что и .section-heading h2 на второстепенных страницах).
  Токен уже содержит адаптив на 720px (core/tokens.css), поэтому
  отдельные переопределения font-size по брейкпоинтам не нужны —
  раньше три варианта секции (web/education/formats) задавали свои
  clamp() с разным диапазоном, из-за чего заголовки визуально не
  совпадали между вариантами услуг.
*/
.web-service-directions__intro h2 {
  margin: 12px 0 28px;
  color: var(--color-brand-navy);
  font-weight: 600;
  line-height: .86;
}

.web-service-directions__intro p {
  max-width: 245px;
  margin: 0;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: 14px;
  line-height: 1.45;
}

.web-service-direction-card__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(21, 39, 72, .05);
  border-radius: 50%;
  background: rgba(236, 240, 245, .72);
}

.web-service-direction-card__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Вид — общая .button-round (components/buttons.css); здесь только положение в карточке. */
.web-service-direction-card__action {
  margin-top: auto;
}

.web-service-direction-card__action svg {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


@media (max-width: 1300px) {
  .web-service-directions__meta { gap: 16px; font-size: 9px; }
  .web-service-directions__intro-body { grid-template-columns: 30px minmax(0, 1fr); }
  .web-service-direction-card__icon { width: 56px; height: 56px; }
  .web-service-direction-card__icon svg { width: 31px; height: 31px; }
}

@media (max-width: 1040px) {
  .web-service-directions__intro { padding-right: 0; }
  .web-service-directions__intro-body { min-height: 0; grid-template-columns: 34px minmax(0, 1fr); }
  .web-service-directions__rail { min-height: 150px; }
  .web-service-directions__intro h2 { margin-bottom: 16px; }
}

@media (max-width: 520px) {
  .web-service-directions__meta { gap: 18px; }
  .web-service-directions__intro-body { grid-template-columns: 24px minmax(0, 1fr); }
  .web-service-directions__rail { min-height: 136px; }
}



/* Блоки 03–04: этапы веб-разработки и результат. */
.web-service-details {
  padding-block: var(--section-padding-y-compact);
  background: rgba(249, 248, 244, .94);
}

.web-service-details__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.service-detail-panel h2 {
  margin: 5px 0 18px;
  color: var(--color-brand-navy);
  font-family: var(--font-family-page-serif);
  font-size: clamp(38px, 2.6vw, 50px);
  font-weight: 600;
  line-height: .93;
}

.service-detail-panel__copy p {
  max-width: 290px;
  margin: 0;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: 12.5px;
  line-height: 1.38;
}

.service-detail-panel__list {
  display: grid;
  align-content: start;
  gap: 11px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: 12.5px;
  line-height: 1.25;
}

.service-detail-panel__list li {
  position: relative;
  padding-left: 25px;
}

.service-detail-panel__list li::before {
  content: "";
  position: absolute;
  top: .42em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-brand-navy);
}

.service-detail-panel__list--lime {
  gap: 9px;
  margin-top: 0;
}

.service-detail-panel__list--lime li::before {
  background: var(--color-brand-lime);
}

.service-detail-panel__result-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-detail-panel__result-content h2 {
  margin-bottom: 14px;
}

.service-detail-panel__note {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  margin-top: auto;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(21, 39, 72, .055);
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: 12px;
  line-height: 1.35;
}

.service-detail-panel__note-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}

.service-detail-panel__note-icon svg {
  width: 27px;
  height: 27px;
  stroke: var(--color-brand-navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-detail-panel__handwriting {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  color: var(--accent-blue);
  font-family: var(--font-family-page-handwritten);
  font-size: 26px;
  line-height: .92;
  text-align: center;
  transform: rotate(-8deg);
}

.service-detail-panel__handwriting svg {
  width: 90px;
  height: 68px;
  margin-top: 3px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1300px) {
  .service-detail-panel h2 { font-size: 39px; }
  .service-detail-panel__copy p,
  .service-detail-panel__list { font-size: 11.5px; }
  .service-detail-panel__handwriting { font-size: 23px; }
}

@media (max-width: 1040px) {
  .web-service-details__layout { grid-template-columns: minmax(0, 1fr); }
  .service-detail-panel h2 { font-size: 46px; }
  .service-detail-panel__copy p,
  .service-detail-panel__list { font-size: 12.5px; }
}

@media (max-width: 768px) {
  .web-service-details { padding-block: 10px 16px; }
  .service-detail-panel__copy,
  .service-detail-panel__result-content { padding-bottom: 8px; }
  .service-detail-panel__list--navy { margin-top: 20px; grid-column: 2; }
  .service-detail-panel__handwriting { display: none; }
}

@media (max-width: 520px) {
  .web-service-details { padding-block: 8px 14px; }
  .service-detail-panel h2 { font-size: 40px; }
  .service-detail-panel__copy p,
  .service-detail-panel__list { font-size: 13px; }
  .service-detail-panel__note { align-items: flex-start; padding: 12px; }
  .service-detail-panel__note br { display: none; }
}
/* Блок 02: направления образовательных решений. */
.education-service-directions {
  padding-block: var(--section-padding-y-compact);
  border-top: 1px solid rgba(21, 39, 72, .08);
  background: rgba(249, 248, 244, .94);
  color: var(--color-brand-navy);
}

.education-service-directions__layout {
  display: grid;
  grid-template-columns: minmax(420px, .78fr) minmax(650px, 1.22fr);
  gap: clamp(28px, 3vw, 56px);
  width: 100%;
}

.education-service-directions__intro {
  min-width: 0;
  padding: 0 clamp(28px, 3vw, 58px) 6px 0;
  border-right: 1px solid rgba(21, 39, 72, .28);
}

.education-service-directions__intro .web-service-directions__meta {
  gap: 28px;
}

.education-service-directions__intro .web-service-directions__intro-body {
  min-height: 390px;
  margin-top: 8px;
}

.education-service-directions__intro h2 {
  max-width: 570px;
  margin: 14px 0 28px;
  line-height: .84;
}

.education-service-directions__intro h2 em {
  color: var(--accent-blue);
  font-weight: 500;
}

.education-service-directions__intro p {
  max-width: 500px;
  font-size: clamp(14px, .92vw, 17px);
  line-height: 1.48;
}

.education-service-directions__list {
  align-self: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-service-direction {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(21, 39, 72, .16);
}

.education-service-direction:first-child {
  border-top: 1px solid rgba(21, 39, 72, .08);
}

.education-service-direction .web-service-direction-card__icon {
  width: 50px;
  height: 50px;
}

.education-service-direction .web-service-direction-card__icon svg {
  width: 29px;
  height: 29px;
}

.education-service-direction h3 {
  margin: 0 0 3px;
  color: var(--color-brand-navy);
  font-family: var(--font-family-page-serif);
  font-size: clamp(23px, 1.55vw, 30px);
  font-weight: 600;
  line-height: .96;
}

.education-service-direction p {
  max-width: 720px;
  margin: 0;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: clamp(11.5px, .76vw, 14px);
  line-height: 1.35;
}

.education-service-direction .web-service-direction-card__action {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .education-service-directions__layout {
    grid-template-columns: minmax(400px, .86fr) minmax(0, 1.14fr);
    gap: 28px;
  }

  .education-service-directions__intro {
    padding-right: 24px;
  }

  .education-service-directions__intro .web-service-directions__intro-body {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
  }

  .education-service-direction {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .education-service-directions {
    padding: 32px 28px 42px;
  }

  .education-service-directions__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .education-service-directions__intro {
    padding-right: 0;
    border-right: 0;
  }

  .education-service-directions__intro .web-service-directions__intro-body {
    min-height: 230px;
  }

  .education-service-directions__intro h2 {
    max-width: 650px;
  }

  .education-service-directions__intro p {
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .education-service-directions {
    padding: 28px 24px 36px;
  }

  .education-service-directions__intro .web-service-directions__meta {
    gap: 18px;
  }

  .education-service-directions__intro .web-service-directions__intro-body {
    min-height: 210px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
  }

  .education-service-directions__intro h2 {
    margin-top: 10px;
  }

  .education-service-directions__intro p {
    font-size: 14px;
  }

  .education-service-direction {
    grid-template-columns: 44px minmax(0, 1fr) 42px;
    gap: 11px;
    min-height: 92px;
    padding: 10px 0;
  }

  .education-service-direction .web-service-direction-card__icon {
    width: 42px;
    height: 42px;
  }

  .education-service-direction .web-service-direction-card__icon svg {
    width: 25px;
    height: 25px;
  }

  .education-service-direction h3 {
    font-size: 23px;
  }

  .education-service-direction p {
    font-size: 11px;
  }
}

/* Блок 03: форматы образовательных решений. */
.education-service-formats {
  padding-block: var(--section-padding-y-compact);
  border-top: 1px solid rgba(21, 39, 72, .08);
  background: rgba(249, 248, 244, .94);
  color: var(--color-brand-navy);
}

.education-service-formats__layout {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(0, 2.14fr);
  gap: clamp(24px, 3vw, 52px);
  width: 100%;
}

.education-service-formats__intro {
  position: relative;
  min-width: 0;
}

/* Колонка под rail = var(--content-rail-inset): заголовок стартовал на x=94 вместо x=119.2 (было 40px+gap 22px=62px). */
.education-service-formats__intro-body {
  min-height: 218px;
  margin-top: 7px;
}

/* margin-left = --page-rail-width/2, та же ось, что hero rail — было margin:0 auto, центрировавший линию внутри расширенной rail-колонки. */
.education-service-formats__rail {
  height: 100%;
}

.education-service-formats__intro h2 {
  max-width: 430px;
  margin: 13px 0 22px;
  font-weight: 600;
  line-height: .86;
}

.education-service-formats__intro h2 em {
  color: var(--accent-blue);
  font-weight: 500;
}

.education-service-formats__intro p {
  max-width: 380px;
  margin: 0;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: clamp(13px, .82vw, 15px);
  line-height: 1.45;
}

.education-service-formats__handwriting {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 20px 0 0 18px;
  color: var(--accent-blue);
  font-family: var(--font-family-page-handwritten);
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: .92;
  transform: rotate(-4deg);
}

.education-service-formats__handwriting svg {
  width: 96px;
  height: 42px;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-service-formats__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.25vw, 22px);
}

.education-service-format-card {
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  padding: 24px 24px 18px;
  border: 1px solid rgba(21, 39, 72, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 28px rgba(21, 39, 72, .035);
}

.education-service-format-card__icon {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--accent-blue);
}

.education-service-format-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.education-service-format-card h3 {
  margin: 17px 0 12px;
  color: var(--color-brand-navy);
  font-family: var(--font-family-page-serif);
  font-size: clamp(27px, 1.75vw, 34px);
  font-weight: 600;
  line-height: .94;
}

.education-service-format-card > p {
  margin: 0 0 22px;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: clamp(12.5px, .79vw, 14.5px);
  line-height: 1.45;
}

.education-service-format-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.education-service-format-card__tags li {
  padding: 5px 10px 4px;
  border: 1px solid rgba(21, 39, 72, .16);
  border-radius: 999px;
  color: #43506a;
  font-family: var(--font-family-page-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .education-service-formats__layout {
    grid-template-columns: minmax(280px, .8fr) minmax(0, 2.2fr);
    gap: 24px;
  }

  .education-service-formats__intro-body {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
  }

  .education-service-format-card {
    min-height: 315px;
    padding: 20px 18px 16px;
  }

  .education-service-format-card__icon {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 1040px) {
  .education-service-formats__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .education-service-formats__intro-body {
    min-height: 185px;
  }

  .education-service-formats__intro h2 {
    max-width: 620px;
  }

  .education-service-formats__intro p {
    max-width: 600px;
  }

  .education-service-formats__handwriting {
    position: absolute;
    right: 4%;
    bottom: 10px;
  }

  .education-service-format-card {
    min-height: 290px;
  }
}

@media (max-width: 768px) {
  .education-service-formats {
    padding-block: 32px 42px;
  }

  .education-service-formats__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .education-service-format-card {
    min-height: 260px;
  }

  .education-service-formats__handwriting {
    position: static;
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  .education-service-formats {
    padding-block: 28px 36px;
  }

  .education-service-formats__intro-body {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    min-height: 190px;
  }

  .education-service-formats__intro p {
    font-size: 14px;
  }

  .education-service-formats__handwriting {
    font-size: 20px;
  }

  .education-service-format-card {
    min-height: 250px;
    padding: 22px 20px 18px;
  }

  .education-service-format-card h3 {
    font-size: 30px;
  }

  .education-service-format-card > p {
    font-size: 13px;
  }
}

/* Страница системных решений. Собственный поворот орбиты (.service-hero__orbit--systems)
   объявлен ниже, сразу после .service-hero__orbit--circular — см. комментарий там. */
.service-hero__photo--systems img {
  object-position: center;
}

.service-hero__handwriting--systems {
  top: 8%;
  right: -26%;
  z-index: 4;
  color: var(--accent-blue);
  font-size: clamp(22px, 1.75vw, 31px);
  line-height: .95;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.systems-service-directions,
.systems-service-details {
  scroll-margin-top: 110px;
}

.systems-service-directions .education-service-directions__intro h2 {
  max-width: 610px;
}

.systems-service-directions .education-service-directions__intro p {
  max-width: 520px;
}

/* ≤1100 общая сетка убирает колонку слов и круг встаёт к краю — подпись возвращается на круг. */
@media (max-width: 1100px) {
  .service-hero__handwriting--systems {
    right: 0;
  }
}

@media (max-width: 800px) {
  .service-hero__handwriting--systems {
    top: 5%;
    right: 2%;
  }
}

@media (max-width: 520px) {
  .service-hero__handwriting--systems {
    top: 2%;
    right: 0;
    font-size: 20px;
  }
}

/*
  Первый экран образовательных решений и системных решений — общий
  page-модификатор --education/--systems (computed-значения были
  идентичны для обеих страниц по всем этим свойствам, кроме orbit)
  + общая круглая
  decorative-композиция --circular (фото/орбита/точки), которая не
  привязана по имени ни к Education, ни к Systems.
*/
.service-hero--education .service-hero__title,
.service-hero--systems .service-hero__title {
  max-width: 620px;
}

.service-hero--education .service-hero__title em,
.service-hero--systems .service-hero__title em {
  margin-top: 4px;
  color: var(--accent-blue);
  font-weight: 500;
}

.service-hero--education .service-hero__lead,
.service-hero--systems .service-hero__lead {
  max-width: 470px;
  margin-top: 30px;
  --hero-lead-line-height: 1.45;
}

.service-hero--education .service-hero__actions,
.service-hero--systems .service-hero__actions {
  margin-top: 34px;
}

/*
  Сетка hero и размер круга — общий .hero-orbit-layout /
  .hero-visual-frame--circle (эталон «Обо мне»). Фото заполняет рамку
  целиком, орбита и подпись ниже заданы в процентах от круга.
*/
.service-hero__photo {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  background: #f7f5ef;
  box-shadow: 0 18px 45px rgba(21, 39, 72, .12);
}

.service-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero__orbit--circular {
  position: absolute;
  top: -5%;
  left: -6%;
  z-index: 1;
  width: 111%;
  aspect-ratio: 1;
  border: 1px solid rgba(21, 39, 72, .42);
  border-radius: 48% 52% 49% 51% / 52% 47% 53% 48%;
  transform: rotate(-13deg);
}

.service-hero__orbit--circular::before,
.service-hero__orbit--circular::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(21, 39, 72, .17);
  border-radius: 50%;
}

.service-hero__orbit--circular::before {
  inset: 4% -5% -3% 5%;
  transform: rotate(18deg);
}

.service-hero__orbit--circular::after {
  inset: -3% 7% 7% -3%;
  transform: rotate(-20deg);
}

/*
  Systems: собственный поворот орбиты. ВАЖНО — это правило должно идти
  в файле после .service-hero__orbit--circular: у обоих одна и та же
  specificity (класс), и при равной specificity побеждает более позднее
  объявление. Раньше (до Phase 4.4) правило с --7deg стояло раньше
  circular-варианта и было мёртвым.
*/
.service-hero__orbit--systems {
  transform: rotate(-7deg);
}

.service-hero__dot--circular {
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-brand-navy);
}

.service-hero__dot--circular.service-hero__dot--top {
  top: 0;
  right: 23%;
}

.service-hero__dot--circular.service-hero__dot--start {
  left: 1%;
  top: 34%;
}

.service-hero__dot--circular.service-hero__dot--end {
  right: -5%;
  top: 55%;
}

.service-hero__handwriting--education {
  top: 37%;
  right: -26%;
  z-index: 4;
  color: var(--color-brand-navy);
  font-size: clamp(23px, 1.8vw, 32px);
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-11deg);
}

/* Должно идти после базового правила подписи — иначе базовый right:-26% перебивает (равная specificity). */
@media (max-width: 1100px) {
  .service-hero__handwriting--education { right: 0; }
}

@media (max-width: 800px) {
  .service-hero__handwriting--education { top: 35%; right: 1%; }
}

@media (max-width: 520px) {
  .service-hero__handwriting--education { top: 5%; right: 0; }
}

/* Колонка слов 60px из общей сетки: вынос и кегль как у About, иначе «Автоматизировать» обрезается краем экрана. */
.service-hero--education .service-hero__note,
.service-hero--systems .service-hero__note {
  margin-top: 318px;
  margin-left: -64px;
  padding-left: 12px;
  font-size: 9px;
}

@media (max-width: 800px) {
  .service-hero--education .service-hero__breadcrumbs,
  .service-hero--systems .service-hero__breadcrumbs {
    margin: 16px 0;
  }

  .service-hero--education .service-hero__title,
  .service-hero--systems .service-hero__title {
    max-width: 620px;
  }

  .service-hero--education .service-hero__lead,
  .service-hero--systems .service-hero__lead {
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .service-hero__photo {
    border-width: 5px;
  }

  .service-hero__handwriting--education {
    font-size: 21px;
  }

  .service-hero__dot--circular {
    width: 9px;
    height: 9px;
  }
}

