.section-steps {
  background: var(--grey-color);
  text-align: center;
  padding: 40px 0;
  margin-bottom: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.steps__content {
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 20px;
  text-align: left;
  width: 100%;
}

.steps__caption-wrapper {
  margin-bottom: 32px;
}

.steps__title {
  font-size: 28px;
  font-weight: 600;
  padding: 0;
  position: relative;
  z-index: 2;
  background: var(--grey-color);
  margin: 0;
}

.steps__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.steps__item {
  background-color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  /* min-height: max-content; */
  min-height: 123px;
  border-radius: 4px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.steps__item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.steps__item-text {
  font-size: 16px;
  margin: 0;
  margin-bottom: 5px;
}

.steps__footer {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 15px;
  align-items: flex-end;
  flex-direction: column;
}

.steps__footer-image {
  max-width: 100%;
  max-height: 334px;
  height: auto;
  width: 100%;
  object-fit: cover;
}

.steps__footer-text {
  text-align: left;
  padding: 0;
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}

@media(min-width: 575px) {
  .steps__list {
    display: grid;
    grid-template-columns: 48% 48%;
    justify-content: space-between;
  }
}

/* Адаптивные стили */
@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    justify-content: space-around;
    gap: 30px;
  }

  .steps__content {
    padding: 0;
    align-items: flex-start;
    width: 50%;
    padding: 0;
  }

  .steps__title {
    font-size: 28px;
  }

  .steps__list {
    display: grid;
    grid-template-columns: 48% 48%;
    justify-content: space-between;
  }

  .steps__footer-text {
    text-align: right;
  }

  .steps__item {
    margin-bottom: unset;
    padding: 12px;
    min-height: max-content;
  }

  .steps__item-title {
    font-size: 20px;
  }

  .steps__item-text {
    font-size: 16px;
  }

  .steps__footer {
    gap: 16px;
    width: 50%;
    padding: 0;
    justify-content: end;
    flex-direction: column-reverse;
  }

  .steps__footer-text {
    padding: 0;
    font-size: 14px;
    order: 1;
    max-width: 80%;
    text-align: right;
  }

  .steps__footer-image {
    order: 2;
    width: 100%;
  }

  .testimonials__title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .steps__footer-text {
    font-size: 16px;
  }

  .testimonials__title {
    font-size: 40px;
  }

  .steps__title {
    font-size: 40px;
  }

  .steps__item-title {
    font-size: 20px;
  }

  .steps__item-text {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .steps__caption-wrapper {
    margin-bottom: 45px;
  }

  .steps__item {
    padding: 20px;
    min-height: max-content;
  }
}

@media (min-width: 1440px) {
  .steps__item {
    margin-bottom: unset;
    padding: 20px;
  }

  .steps {
    flex-direction: row;
  }

  .steps__footer {
    /* max-width: 440px; */
    width: 50%;
    flex-direction: column-reverse;
  }

  .steps__title {
    font-size: 40px;
  }

  .steps__item-text {
    font-size: 16px;
  }

  .steps__list {
    display: grid;
    grid-template-columns: 48% 48%;
    justify-content: space-between;
  }

  .testimonials__title {
    font-size: 40px;
  }

  .form__title {
    /* font-size: 54px; */
  }
}

@media (min-width: 1600px) {
  .steps__content {
    justify-content: space-between;
    width: 50%;
  }

  .steps__item {
    padding: 20px 20px;
    min-height: 186px;
  }

  .steps__caption-wrapper {
    margin-bottom: 60px;
  }

  .steps__item-text {
    font-size: 16px;
  }

  .testimonials__title {
    font-size: 40px;
  }
}