.process {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(11, 108, 255, 0.05) 0%, transparent 60%),
    var(--color-bg-light);
  padding: 4.5rem 0 5rem;
  border-top: 1px solid rgba(10, 25, 47, 0.06);
}

.process__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.process__title {
  margin: 0 0 2.5rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--color-text-heading);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

/* Соединительная пунктирная линия между шагами — идёт от края одного круга до края следующего, не пересекая иконку */
@media (min-width: 901px) {
  .process__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    /* Левый край сегмента — сразу за кругом (радиус 2.25rem + воздух) */
    left: calc(50% + 2.6rem);
    /* Правый край — у следующего круга */
    right: calc(-50% + 2.6rem);
    height: 0;
    border-top: 2px dashed rgba(11, 108, 255, 0.32);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
  }

  /* Маленькая стрелочка-наконечник в конце сегмента */
  .process__step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    right: calc(-50% + 2.3rem);
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid rgba(11, 108, 255, 0.6);
    border-right: 2px solid rgba(11, 108, 255, 0.6);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    z-index: 1;
  }
}

.process__icon-wrap {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(11, 108, 255, 0.38);
  background:
    radial-gradient(circle at 30% 25%, rgba(11, 108, 255, 0.22) 0%, rgba(11, 108, 255, 0.06) 100%),
    var(--color-bg-light);
  color: var(--color-accent-blue);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.95),
    0 12px 30px rgba(11, 108, 255, 0.15);
  transition:
    transform var(--transition-med, 0.35s ease),
    box-shadow var(--transition-med, 0.35s ease),
    border-color var(--transition-fast, 0.2s ease);
}

@media (prefers-reduced-motion: no-preference) {
  .process__step:hover .process__icon-wrap {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 36px rgba(11, 108, 255, 0.22);
    border-color: rgba(11, 108, 255, 0.55);
  }
}

.process__icon-wrap svg {
  width: 1.65rem;
  height: 1.65rem;
}

.process__index {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-heading);
  line-height: 1;
  color: var(--color-text-on-dark);
  background-color: var(--color-accent-blue);
  border-radius: 999px;
  border: 2px solid var(--color-bg-light);
}

.process__label {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  font-weight: var(--font-weight-body-semibold);
  line-height: 1.35;
  color: var(--color-text-heading);
}

@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .process {
    padding: 3rem 0 3.5rem;
  }

  .process__inner {
    padding: 0 1rem;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .process__step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid rgba(10, 25, 47, 0.07);
    border-radius: 14px;
    box-shadow: 0 6px 18px -10px rgba(10, 25, 47, 0.18);
  }

  .process__icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.95),
      0 8px 20px rgba(11, 108, 255, 0.18);
  }

  .process__icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .process__index {
    top: -0.3rem;
    right: -0.3rem;
    min-width: 1.2rem;
    height: 1.2rem;
    font-size: 0.625rem;
  }

  .process__label {
    font-size: 0.95rem;
  }
}
