.steps-slider {
  padding: var(--sp) 0;
  overflow: hidden;
}

.steps-slider .section-head {
  position: relative;
}

.steps-slider .section-head:not(:has(.section-head__subtitle)) {
  justify-content: flex-start;
  text-align: left;
}

.steps-slider .section-head:before {
  background: var(--secondary);
  content: "";
  display: block;
  aspect-ratio: 1/1;
  width: 680px;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(120px);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.steps-slider__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.steps-slider__title {
  font: 500 var(--h4)/115% var(--heading-font-family);
  text-transform: uppercase;
}

.steps-slider__subtitle {
  font-weight: 300;
  font-size: 18px;
  line-height: 135%;
  opacity: 0.7;
}

.steps-slider__items {
  margin-bottom: 48px;
}

.steps-slider__items-progress {
  height: 6px;
  background: var(--white-10);
  margin-bottom: 24px;
}

.steps-slider__items-progress span {
  background: var(--primary);
  display: block;
  height: 100%;
  width: 0%;
}

.steps-slider__items-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: steps;
}

.steps-slider .step {
  background: var(--yellow-gray-10);
  counter-increment: steps;
  padding: 24px;
  transform: translate3d(0, 0, 0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gray-600);
  transition: var(--tr);
}

.steps-slider .step:before {
  content: counter(steps, decimal-leading-zero);
  font-weight: 300;
  font-size: 180px;
  line-height: 80%;
  text-align: center;
  display: block;
  margin-bottom: 20px;
}

.steps-slider .step__title {
  font: 500 var(--h5)/115% var(--heading-font-family);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.steps-slider .step__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 135%;
}

.steps-slider .step__btn {
  width: 100%;
  border-color: var(--gray-600);
  color: inherit;
  margin-top: 16px;
  padding: 16px 10px;
}

.steps-slider .step__btn:hover {
  background: var(--bg);
  color: var(--white);
}

.steps-slider .step._active {
  background: var(--yellow-gray-100);
  color: var(--bg);
}

.steps-slider .step._active .step__btn {
  border-color: var(--bg);
}

.steps-slider__buttons-wrap {
  display: flex;
  justify-content: center;
}

@media (max-width: 1600px) {
  .steps-slider .section-head:before {
    width: 586.67px;
  }

  .steps-slider .step:before {
    font-size: 150px;
  }
}

@media (max-width: 1260px) {
  .steps-slider .section-head:before {
    width: 493.34px;
    filter: blur(120px);
  }

  .steps-slider__items {
    display: flex;
    gap: 36px;
  }

  .steps-slider__items-progress {
    flex: 0 0 auto;
    height: auto;
    width: 4px;
    margin-bottom: 0;
  }

  .steps-slider__items-progress span {
    height: 0%;
    width: 100%;
  }

  .steps-slider__items-inner {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .steps-slider .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 24px;
    grid-template-areas: "number title" "number text" "number btn";
  }

  .steps-slider .step:before {
    font-size: 120px;
  }

  .steps-slider .step:before {
    grid-area: number;
    margin-bottom: 0;
  }

  .steps-slider .step__title {
    grid-area: title;
  }

  .steps-slider .step__text {
    grid-area: text;
  }

  .steps-slider .step__btn {
    grid-area: btn;
  }
}

@media (max-width: 760px) {
  .steps-slider .section-head:before {
    width: 400px;
    filter: blur(70px);
  }

  .steps-slider .section-head:before {
    left: 100%;
  }

  .steps-slider__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .steps-slider__title {
    margin-bottom: 8px;
  }

  .steps-slider__items {
    margin-bottom: 32px;
  }

  .steps-slider__items-inner {
    gap: 8px;
  }

  .steps-slider .step {
    gap: 0 12px;
    padding: 16px;
  }

  .steps-slider .step:before {
    font-size: 90px;
  }

  .steps-slider .step__text {
    font-weight: 300;
    font-size: 14px;
    line-height: 130%;
  }
}