.s-timeline-head {
  text-align: center;
  margin-bottom: var(--space-10);
}

.s-timeline-head h2 {
  font: 700 clamp(28px, 3.5vw, 40px) var(--font-sans);
  color: var(--fg-1);
  letter-spacing: -0.02em;
}

.s-timeline {
  position: relative;
  padding-left: var(--space-8);
  max-width: 680px;
  margin: 0 auto;
}

.s-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-1);
}

.s-timeline__step {
  position: relative;
  padding: 16px 0 16px 56px;
  opacity: 0.4;
  transition: opacity 300ms;
}

.s-timeline__step.is-active {
  opacity: 1;
}

.s-timeline__step::before {
  content: none;
}

.s-timeline__icon {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 0;
}

.s-timeline__step h3 {
  font: 600 17px var(--font-sans);
  margin: 0 0 4px;
}

.s-timeline__step p {
  color: var(--fg-2);
  margin: 0;
  font-size: 14px;
}

.s-timeline__cta {
  text-align: center;
  margin-top: var(--space-10);
}

@media (max-width: 720px) {
  .s-timeline {
    padding-left: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: none;
  }

  .s-timeline::before {
    display: none;
  }

  .s-timeline__step {
    min-width: 220px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
    scroll-snap-align: start;
    opacity: 1;
  }

  .s-timeline__step::before {
    position: static;
    margin-bottom: 8px;
  }
}
