/* Б-27 План запуска. Источник: новый макет (задача 6.3) */

.b-launch-plan {
  padding-block: var(--space-section);
  background: var(--color-bg);
}

.b-launch-plan__list {
  position: relative;
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  list-style: none;
  counter-reset: b-stage;
}

.b-launch-plan__stage {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-5) 4.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  counter-increment: b-stage;
}

.b-launch-plan__stage::before {
  content: counter(b-stage);
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--font-weight-bold);
}

.b-launch-plan__stage--open::before {
  background: var(--color-surface);
  color: var(--color-accent-strong);
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.b-launch-plan__title {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

.b-launch-plan__text {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

@media (min-width: 1024px) {
  .b-launch-plan__list {
    grid-template-columns: 1fr 1.4fr 2.2fr;
    gap: 0;
    padding-top: 3.25rem;
  }

  /* Шкала: длина сегмента — длительность этапа */
  .b-launch-plan__list::before {
    content: "";
    position: absolute;
    top: 1.125rem;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0 44%, var(--color-accent-soft) 44% 100%);
  }

  .b-launch-plan__stage {
    align-content: start;
    padding: var(--space-6) var(--space-5);
    border-radius: 0;
    background: none;
  }

  .b-launch-plan__stage + .b-launch-plan__stage {
    border-left: 1px solid var(--color-border);
  }

  .b-launch-plan__stage::before {
    top: -3.25rem;
    left: var(--space-5);
  }
}
