/* ============================================================
   STEPS — 4 шага от идеи до старта стройки
   ============================================================ */

.steps {
  background: var(--bg-light);
  color: var(--text-primary-light);
  font-family: var(--font-primary);
  padding: var(--section-py) var(--container-padding);
}

.steps__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ────────── ЗАГОЛОВОК ────────── */
.steps__title {
  font-weight: var(--fw-light);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-align: left;
  margin: 0 0 56px;
  color: var(--text-primary-light);
}

/* ────────── СПИСОК ────────── */
.steps__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Линия через центры кругов */
.steps__list::before {
  content: '';
  position: absolute;
  top: 110px;
  left: calc(12.5% + 22px);
  right: calc(12.5% + 22px);
  height: 1px;
  background: var(--text-primary-light);
  z-index: 0;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ────────── ИКОНКА ────────── */
.steps__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition-base);
}

.steps__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--text-primary-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps__item:hover .steps__icon {
  transform: translateY(-3px);
}

/* ────────── КРУГ С ЦИФРОЙ ────────── */
.steps__number {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  border: 1.5px solid #C5F056;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  font-size: 17px;
  color: var(--text-primary-light);
  margin-bottom: 28px;
  transition: all var(--transition-fast);
}

.steps__item:hover .steps__number {
  background: #C5F056;
  transform: scale(1.06);
}

/* ────────── КАРТОЧКА ────────── */
.steps__card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px 20px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.steps__item:hover .steps__card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.steps__name {
  font-weight: var(--fw-semibold);
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-primary-light);
  margin: 0;
}

.steps__desc {
  font-weight: var(--fw-regular);
  font-size: 13px;
  line-height: var(--lh-normal);
  color: var(--text-muted-light);
  margin: 0;
}

/* ────────── АНИМАЦИЯ ПОЯВЛЕНИЯ ────────── */
.steps__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.steps__item.is-visible { opacity: 1; transform: translateY(0); }
.steps__item:nth-child(1).is-visible { transition-delay: 0.05s; }
.steps__item:nth-child(2).is-visible { transition-delay: 0.15s; }
.steps__item:nth-child(3).is-visible { transition-delay: 0.25s; }
.steps__item:nth-child(4).is-visible { transition-delay: 0.35s; }

/* ────────── АДАПТИВ — ПЛАНШЕТ ────────── */
@media (max-width: 1024px) {
  .steps__title { margin-bottom: 40px; }
  .steps__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }
  .steps__list::before { display: none; }
}

/* ────────── АДАПТИВ — МОБИЛЬНЫЙ ────────── */
@media (max-width: 640px) {
  .steps__title { margin-bottom: 32px; }
  .steps__list {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 64px;
  }
  .steps__list::before {
    display: block;
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 1px;
    height: auto;
    background: var(--text-primary-light);
    opacity: 0.3;
  }
  .steps__item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
  }
  .steps__icon { display: none; }
  .steps__number {
    position: absolute;
    left: -64px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .steps__card { padding: 18px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .steps__item, .steps__card, .steps__icon, .steps__number {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}