.stepper {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 800px;
  margin-left: 20px;
  counter-reset: step; /* счетчик для шагов, если надо */
}

.stepper::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--colors-extreme-light-blue--1);
  z-index: 0;
}

/* каждый шаг */
.stepper .step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  flex: 1; /* чтобы все шаги были равномерно растянуты */
  z-index: 2;
}

/* рисуем синюю линию от каждого кружка */
.stepper .step::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 0%;
  width: 100%;
  height: 4px;
  /* background: var(--colors-blue); */
  z-index: -1;
  transform: translateX(0%);
}

/* последний шаг не рисует линию вправо */
.stepper .step:last-child::after {
  display: none;
}

.stepper .step--active::after {
  width: 50%;
  background: var(--colors-blue);
}
.stepper .step--completed::after {
  background: var(--colors-blue);
}

/* стиль кружков и подписей */
.label {
  font-size: 18px;
  color: var(--colors-60);
  margin-bottom: 8px;
  text-align: left;
}

.circle {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 4px solid var(--colors-extreme-light-blue--1);
  border-radius: 50%;
  background-color: white;
}

.stepper .step--active .label {
  color: var(--colors-blue);
}

.step--active .circle {
  border-color: var(--colors-blue);
}
.step--active::after {
}
.step--completed .circle {
  background-color: var(--colors-blue);
  border-color: var(--colors-blue);
}

.step:first-child {
  align-items: flex-start;
}
.stepper .step--active:first-child::after {
  background-color: transparent;
}

.step:last-child {
  align-items: flex-end;
}

.stepper__btn-prev {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  gap: 6px;
  color: var(--colors-blue);
  background: none;
}
/* !FIX не лучшее решение, в идеале через js, но тут php я ничего не понимаю, извините */
.stepper .step--completed:nth-last-child(2)::after {
  width: 195%;
}
/* .stepper > .step--active:last-of-type::after {
  width: 100%;  
} */

@media (max-width: 768px) {
  body .stepper-top {
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 700px) {
  body .stepper-top {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
  }
  .stepper {
    max-width: 100%;
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .stepper {
    margin-left: 0;
  }
}
