/* ============================================================
   Page: /solutions/online-school — редизайн 2026 по макету Figma.
   Секции на компонентах UI-кита (hero-2026 с media, features-2026,
   promo-quote-2026, download, cta-form). Здесь — page-scoped:
   2 тёплых градиент-блоба hero (общие с «Путём ученика»), кастом-блок
   «Путь ученика» (.os-journey) и «Преимущества» в раскладке pricing
   (.os-benefits с gradient-KPI).
   ============================================================ */

/* --- Hero: circle-grid подложка + 2 тёплых градиент-блоба --- */
.page-online-school .hero-2026 {
  --hero-bg-image: url("/images/online-school/hero-grid.svg");
  --hero-bg-image-sm: url("/images/online-school/hero-grid.svg");
  --hero-bg-image-lg: url("/images/online-school/hero-grid.svg");
}

/* Базовый слот второго блоба «Пути ученика» (у hero position даёт компонент). */
.os-journey-gradient {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* Правый тёплый блоб (orange→peach) — общий для hero и .os-journey. */
.page-online-school .hero-2026-gradient,
.os-journey-gradient {
  left: 47%;
  top: 2%;
  width: 60%;
  height: 100%;
  background: radial-gradient(closest-side, #ffb259 0%, rgba(255, 178, 89, 0) 100%);
  opacity: 0.5;
  filter: blur(110px);
}
/* Левый блоб (yellow-green). */
.page-online-school .hero-2026-gradient--2,
.os-journey-gradient--2 {
  left: -18%;
  top: -8%;
  width: 58%;
  height: 112%;
  background: radial-gradient(closest-side, #c7e85a 0%, rgba(199, 232, 90, 0) 100%);
  opacity: 0.42;
}

/* ============================================================
   3. «Путь ученика» — светлая полоса (#f6f6f6) с circle-grid и теми же
   2 блобами; 4 карточки (кружок с цифрой + заголовок + текст).
   ============================================================ */
.os-journey {
  position: relative;
  overflow: hidden;
  background-color: #f6f6f6;
  margin: 64px 0;
  padding: 64px 0;

  @media (min-width: 768px) {
    margin: 80px 0;
    padding: 80px 0;
  }
  @media (min-width: 1280px) {
    margin: 120px 0;
    padding: 96px 0;
  }
}
.os-journey-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/images/online-school/hero-grid.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.os-journey .page-container {
  position: relative;
  z-index: 1;
}
.os-journey-title {
  text-align: center;
  margin: 0 0 16px;

  @media (min-width: 1280px) {
    margin-bottom: 20px;
  }
}
.os-journey-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;

  @media (min-width: 1024px) {
    margin-bottom: 56px;
  }
}
.os-journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;

  @media (min-width: 576px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
  @media (min-width: 1024px) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  @media (min-width: 1280px) {
    gap: 60px;
  }
}
.os-journey-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Белый круг с крупной градиентной цифрой шага (red→orange, как в макете). */
.os-journey-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 24px;
  font-family: "Onest", sans-serif;
  font-weight: 900;
  font-size: 78px;
  line-height: 1;
  letter-spacing: -0.8px;

  @media (min-width: 768px) {
    width: 154px;
    height: 154px;
    font-size: 100px;
  }
  @media (min-width: 1280px) {
    margin-bottom: 40px;
  }
}
.os-journey-card-num span {
  background: linear-gradient(-50deg, #f04a4a 18.48%, #ffb061 83.54%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.os-journey-card-title {
  margin: 0 0 12px;

  @media (min-width: 1280px) {
    font-size: 24px;
    letter-spacing: -0.48px;
  }
}
.os-journey-card-text {
  margin: 0;
  color: var(--text-muted);
}

/* ============================================================
   4. «Преимущества» — раскладка как pricing-2026: стопка карточек с
   hairline-разделителями; слева крупный gradient-KPI, справа
   tag + заголовок + текст.
   ============================================================ */
.os-benefits {
  margin: 64px 0;

  @media (min-width: 768px) {
    margin: 80px 0;
  }
  @media (min-width: 1280px) {
    margin: 120px 0;
  }
}
.os-benefits-title {
  text-align: center;
  margin: 0 0 16px;

  @media (min-width: 1280px) {
    margin-bottom: 20px;
  }
}
.os-benefits-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;

  @media (min-width: 1024px) {
    margin-bottom: 56px;
  }
}
.os-benefits-list {
  display: flex;
  flex-direction: column;
}
.os-benefit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;

  @media (min-width: 768px) {
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 38px;
  }
  @media (min-width: 1280px) {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
/* hairline divider между карточками (как в pricing-2026). */
.os-benefit + .os-benefit {
  margin-top: 32px;
  position: relative;
}
.os-benefit + .os-benefit::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 1px;
  background: rgba(17, 17, 17, 0.1);
}
@media (min-width: 1280px) {
  .os-benefit + .os-benefit {
    margin-top: 48px;
  }
  .os-benefit + .os-benefit::before {
    top: -24px;
  }
}
.os-benefit-kpi {
  text-align: center;
  align-self: center;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1.12px;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  @media (min-width: 1024px) {
    font-size: 72px;
  }
  @media (min-width: 1280px) {
    font-size: 80px;
    letter-spacing: -1.6px;
  }
}
.os-benefit-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.os-benefit-tag {
  display: inline-block;
  padding: 5px 10px;
  background: var(--surface-footer);
  border-radius: 4px;
  font-family: "Onest", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}
.os-benefit-heading {
  margin: 0;
}
.os-benefit-text {
  margin: 0;
}

/* --- Промо «Культура»: единый шаг отступа 120 на 1280 (как на /business). --- */
@media (min-width: 1280px) {
  .page-online-school .promo-quote-2026 {
    margin: 120px 0;
  }
}
