/* How it works — horizontal journey with step cards */

.steps-journey .section__head--center {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.25rem;
  text-align: center;
}

.steps-journey__rail {
  position: relative;
  padding-top: 0.5rem;
}

.steps-journey__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-journey__line {
  position: absolute;
  top: 4.25rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-soft) 12%,
    var(--accent) 50%,
    var(--accent-soft) 88%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.steps-journey__line::after {
  content: '';
  position: absolute;
  inset: -1px 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.35), transparent);
  filter: blur(6px);
}

.steps-journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.85rem !important;
  margin: 0;
  list-style: none;
}

.steps-journey__marker {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.75rem;
  height: 7.75rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 28%,
    rgba(212, 175, 106, 0.28) 0%,
    rgba(6, 10, 22, 0.88) 52%,
    rgba(4, 6, 14, 0.98) 100%
  );
  border: 1px solid rgba(212, 175, 106, 0.4);
  box-shadow:
    0 0 48px rgba(168, 192, 232, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.steps-journey__step:nth-child(2) .steps-journey__marker {
  border-color: rgba(168, 192, 232, 0.45);
  box-shadow:
    0 0 56px rgba(168, 192, 232, 0.24),
    0 18px 44px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.steps-journey__step:nth-child(3) .steps-journey__marker {
  border-color: rgba(212, 175, 106, 0.52);
}

.steps-journey__card {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 106, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.steps-journey__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.steps-journey__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: var(--leading-snug);
  color: var(--text-bright);
}

.steps-journey__text {
  margin: 0 0 0.65rem;
  max-width: 20rem;
  font-size: 0.9375rem;
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.steps-journey__text:last-of-type {
  margin-bottom: 0;
}

.steps-journey__text--accent {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
}

.steps-journey__tag {
  display: inline-block;
  margin: 1rem 0.2rem 0;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(168, 192, 232, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
}

@media (min-width: 960px) {
  .steps-journey__marker {
    width: 8.5rem;
    height: 8.5rem;
  }

  .steps-journey__line {
    top: 4.65rem;
  }

  .steps-journey__text {
    max-width: 21rem;
  }
}

@media (max-width: 900px) {
  .steps-journey__steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 22rem;
    margin: 0 auto;
  }

  .steps-journey__rail {
    max-width: 22rem;
    margin: 0 auto;
  }

  .steps-journey__line {
    display: none;
  }

  .steps-journey__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 1.65rem 1.35rem 1.5rem !important;
  }

  .steps-journey__marker {
    width: 6.75rem;
    height: 6.75rem;
    margin: 0 auto 1.25rem;
  }

  .steps-journey__body {
    flex: none;
    width: 100%;
    min-width: 0;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .steps-journey__title {
    width: 100%;
  }

  .steps-journey__text,
  .steps-journey__text--accent {
    max-width: 19rem;
    margin-left: auto;
    margin-right: auto;
  }

  .steps-journey__tag {
    margin-top: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-journey__marker {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
