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

.steps__inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 48px;
  border-radius: var(--border-radius);
  overflow: hidden;
  color: var(--secondary-1);
}

.steps__content,
.steps__items {
  position: relative;
  z-index: 3;
}

.steps__content {
  width: 100%;
  max-width: 460px;
}

.steps__title {
  font-size: var(--xxl);
  font-weight: 700;
  line-height: 120%;
}

.steps__title + .steps__btn {
  margin-top: 32px;
}

.steps__btn.btn {
  max-width: 270px;
}

.steps__items {
  width: 100%;
  max-width: 230px;
  margin-left: 50px;
  text-align: center;
}

.steps__items .item:not(:last-child) {
  margin-bottom: 30px;
}

.steps__items .item:nth-child(1) .item__number::before {
  display: none;
}

.steps__items .item__number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto 30px;
  border: 1px solid var(--secondary-1);
  font-size: 28px;
  font-weight: 700;
  line-height: 120%;
}

.steps__items .item__number::before,
.steps__items .item__number::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg width='1' height='24' viewBox='0 0 1 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0.5' y1='-2.18557e-08' x2='0.500001' y2='24' stroke='white' stroke-dasharray='5 5'/%3E%3C/svg%3E%0A") center/contain repeat-y;
}

.steps__items .item__number::before {
  top: 0;
  transform: translate(-50%, -100%);
}

.steps__items .item__number::after {
  bottom: 0;
  transform: translate(-50%, 100%);
}

.steps__items .item__text {
  font-size: var(--s);
  line-height: 120%;
  font-style: italic;
}

.steps__image {
  position: absolute;
  bottom: 0;
  right: 48px;
  width: 383px;
  aspect-ratio: 383/468;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center bottom;
  object-position: center bottom;
  z-index: 2;
}

.steps__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  z-index: 1;
}

@media (max-width: 1260px) {
  .steps__content {
    max-width: 360px;
  }

  .steps__items {
    margin-left: auto;
  }

  .steps__image {
    display: none;
  }
}

@media (max-width: 760px) {
  .steps__inner {
    padding: 48px 16px 137px;
  }

  .steps__content,
  .steps__items {
    position: static;
  }

  .steps__btn.btn {
    position: absolute;
    bottom: 48px;
    left: 16px;
    right: 16px;
    max-width: none;
    width: calc(100% - 32px);
  }

  .steps__items {
    margin: 32px auto 0;
  }
}