/* =========================================================
   Блок: "Этапы работы" (steps)
   Одинаковый на главной, individuals.html и business.html.
   Секция размещается поверх фонового изображения (как hero):
   фон — плейсхолдер img/bg/steps-bg.jpg + тёмное затемнение, текст светлый,
   карточки-этапы поверх фона.
   ========================================================= */

/* Секция с фоновым изображением (класс .steps-block на <section>) */
.steps-block {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

.steps-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--prizma-steps-bg, url(../img/bg/steps-bg.jpg)) center / cover no-repeat;
}

.steps-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(37, 45, 67, 0.72) 0%,
    rgba(26, 32, 50, 0.82) 100%
  );
}

.steps-block > .container {
  position: relative;
  z-index: 1;
}

/* Заголовок и надзаголовок на тёмном фоне — светлые */
.steps-block .section-head h2 {
  color: var(--color-text-on-dark);
}

.steps-block .eyebrow {
  color: var(--color-accent);
}

.steps__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-3);
}

.steps__item {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Текст внутри карточек — тёмный (на белом фоне карточки), читаемый */
.steps__item p {
  color: var(--color-text);
}

.steps__badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.steps__item p {
  font-weight: 600;
  font-size: var(--fs-small);
}

.steps__arrow {
  flex: none;
  align-self: center;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .steps__flow {
    flex-direction: column;
    align-items: center;
  }

  .steps__item {
    /* Сбрасываем flex: 1 1 220px из базового правила. В колонке flex-basis
       задаёт главную ось, то есть ВЫСОТУ: карточка растягивалась до 220px,
       а бейдж с подписью прижимались к верхнему краю — отсюда ощущение,
       что контент «не по центру». Теперь высота по содержимому. */
    flex: 0 0 auto;
    max-width: 320px;
    width: 100%;
  }

  .steps__arrow {
    transform: rotate(90deg);
  }
}
