.pme-structure-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* The connector runs from the edge of a step circle to the next one, at the circles' center line */
.pme-steps {
  --pme-gap: clamp(2rem, 7vw, 5rem);
  --pme-circle: 6.3rem;
  --pme-connector-inset: 0.9rem;
  --pme-connector-color: #7c3aed;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pme-gap);
}

.pme-step {
  position: relative;
  min-width: 0;
}

.pme-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--pme-circle) / 2 - 1px);
  left: calc(var(--pme-circle) + var(--pme-connector-inset));
  right: calc(var(--pme-connector-inset) - var(--pme-gap));
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), var(--pme-connector-color));
}

.pme-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: calc(var(--pme-circle) / 2 - 0.3rem);
  right: calc(var(--pme-connector-inset) - var(--pme-gap));
  width: 0.6rem;
  height: 0.6rem;
  border-top: 2px solid var(--pme-connector-color);
  border-right: 2px solid var(--pme-connector-color);
  border-radius: 0 2px 0 0;
  transform: rotate(45deg);
}

.pme-step__visual {
  position: relative;
  width: var(--pme-circle);
  height: var(--pme-circle);
  margin-bottom: 1.25rem;
}

.pme-step__number {
  position: absolute;
  top: -0.3rem;
  right: -0.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d5dfc, #8b5cf6);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.pme-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--pme-circle);
  height: var(--pme-circle);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.96), rgba(221, 214, 254, 0.76));
  color: #6d5dfc;
  font-size: 2rem;
}

.pme-step h3 {
  margin: 0;
  color: var(--sector-text);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  font-weight: 850;
  line-height: 1.2;
}

.pme-step p {
  margin: 0.9rem 0 0;
  color: var(--sector-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sector-page.sector-theme-dark .pme-steps {
  --pme-connector-color: #a78bfa;
}

.sector-page.sector-theme-dark .pme-step__icon {
  background: rgba(255, 255, 255, 0.08);
  color: #a78bfa;
}

.sector-page.sector-theme-dark .pme-step h3 {
  color: #ffffff;
}

.sector-page.sector-theme-dark .pme-step p {
  color: #c7c2d9;
}

@media (max-width: 860px) {
  .pme-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pme-step::before,
  .pme-step::after {
    display: none;
  }
}
