.steps {
  background: var(--secondary);
  color: var(--white);
  padding: var(--sp) 0;
  margin-top: -0.1rem;
  --item-padding: 5.6rem;
}

.steps__title {
  text-align: center;
  margin-bottom: 8rem;
}

.steps__grid-wrap {
  position: relative;
}

.steps__grid-scale {
  background: #43504A;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.4rem;
  height: 100%;
  z-index: 2;
}

.steps__grid-scale div {
  background: var(--primary);
  width: 100%;
  transition: 0.3s linear 0s;
}

.steps__grid {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

.steps .item {
  display: flex;
  flex-direction: column;
  width: 50%;
  counter-increment: steps;
  padding: 2rem 0;
}

.steps .item__number {
  color: #43504A;
  position: relative;
  width: 10rem;
  height: 6rem;
  border-radius: 10rem;
  border: 0.1rem solid #43504A;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  transition: border var(--tr), color var(--tr), background-color var(--tr);
}

.steps .item__number:before {
  background: #43504A;
  content: "";
  display: block;
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 0.4rem;
  width: var(--item-padding);
  transition: background-color var(--tr);
}

.steps .item__number:after {
  font: 400 var(--h4)/1.1 var(--heading-font-family);
  content: counter(steps, decimal-leading-zero);
  letter-spacing: -0.03em;
}

.steps .item__text {
  font: 400 var(--h3)/1 var(--heading-font-family);
  opacity: 0.3;
  transition: opacity var(--tr);
  letter-spacing: -0.03em;
}

.steps .item._active {
  opacity: 1;
}

.steps .item._active .item__number {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

.steps .item._active .item__number:before {
  background: var(--primary);
}

.steps .item._active .item__text {
  opacity: 1;
}

.steps .item:nth-child(odd) {
  justify-self: end;
  align-items: flex-start;
  padding-left: var(--item-padding);
}

.steps .item:nth-child(even) {
  justify-self: start;
  align-items: flex-end;
  padding-right: var(--item-padding);
}

.steps .item:nth-child(even) .item__number:before {
  right: auto;
  left: 100%;
}

.steps .item:nth-child(even) .item__text {
  text-align: right;
}

@media (max-width: 1260px) {
  .steps {
    --item-padding: 30px;
  }

  .steps .item {
    padding: 10px 0;
  }

  .steps .item__number {
    width: 80px;
    height: 48px;
  }

  .steps .item__number:after {
    font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: var(--h5);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .steps .item__text {
    font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: var(--h4);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}

@media (max-width: 760px) {
  .steps {
    --item-padding: 20px;
  }

  .steps__grid-scale {
    width: 2px;
  }

  .steps .item {
    margin-top: -50px;
  }

  .steps .item:first-child {
    margin-top: -27px;
  }

  .steps .item__number {
    width: 60px;
    height: 36px;
  }

  .steps .item__number:before {
    height: 2px;
  }

  .steps .item__number:after {
    font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: var(--h6);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .steps .item__text {
    font-family: var(--heading-font-family);
    font-weight: 400;
    font-size: var(--h5);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}