.slider1 {
  position: relative;
  /* text-align: center; */
  /* overflow: hidden; */
}

.slider1-group {
  display: flex;

  width: 100%;
  padding: 0;
}

.slider1-group::-webkit-scrollbar {
  display: none;
}

.slider1__caption-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.steps__caption-wrapper,
.testimonials__caption-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 0px;
}

.slider1__caption {
  font-weight: 600;
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 28px;
  text-align: center;
  padding: 0;
  letter-spacing: 0.03em;
  background: #fff !important;
  width: max-content;
}

.slider1__item-image {
  margin-bottom: 20px;
}

.slider1__item-caption {
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 120%;
  font-size: 20px;
}

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

.slider1-group .swiper-slide {
  box-sizing: border-box;
  text-align: left;
  padding: 20px 20px 60px 20px;
  width: 100%;
  background: #F1F1F1;
  margin-bottom: 60px;
  height: 300px;
}

/* Стили для стрелок slider1 */

.prev__slider1,
.next__slider1 {
  width: auto;
  color: #e11229;
  font-weight: bold;
  font-size: 15px;
  transition: 0.6s ease;
  border-radius: 0;
  z-index: 10;
  width: 50%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E4E4E4;
  cursor: pointer;
}

.prev__slider1:hover,
.next__slider1:hover {
  opacity: 1;
}

.slider1-group .swiper-slide {
  /* flex: 1 1 auto; */
  box-sizing: border-box;
  padding: 20px;
  /* Отступы внутри слайда */
  width: 248px;
}

@media (min-width: 320px) {
  /* .slider1-group .swiper-slide {
    flex: 1 1 100%;
  } */
}

/* Адаптивные стили для уменьшения слайдов на определенных разрешениях */
@media (min-width: 1024px) {
  .slider1-group .swiper-slide {
    height: 300px;
    /* flex: 1 1 50%; */
  }
}

/* Стили для второго слайдера (testimonials-slider) без отступов */
.testimonials__caption-wrapper {
  margin-bottom: 0px;
}

.testimonials__title {
  font-size: 28px;
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 0 0;
  max-width: 860px;
  text-align: left;
  margin: 0 0 40px;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.testimonials-slider .swiper-wrapper {
  width: 100%;
  display: flex;
  transition: transform 0.3s ease-in-out;

}

.testimonials-slider {
  height: auto;
}

.slideshow-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #1F293766;
  padding: 10px 10px;
  width: 120px;
}

.testimonials-slider .swiper-slide {
  flex-direction: column;
  flex: 0 0 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  gap: 15px;
  position: relative;
  min-height: unset;
  height: min-content;
  max-width: calc(100% - 10px);
  width: calc(100% - 10px);
  margin: 0 5px;
}

.show .prev,
.show .next {
  color: var(--main-color);
}

.testimonials-slider .card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: 480px;
  text-align: left;
  padding: 0 15px;
  padding-top: 0;
  justify-content: center;
}

.card__caption {
  display: flex;
  flex-direction: column;
  font-size: 20px;
}

.card__caption-min {
  font-size: 16px;
  margin-top: 8px;
}

.card__text {
  font-size: 14px;
  line-height: 160%;
  font-weight: 400;
  margin: 0;
  margin-bottom: 20px;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  background: var(--grey-color);
  padding: 12px;
  border-radius: 4px;
}

.card {
  order: 1;
}

.show {
  display: flex;
  align-items: center;
  order: 2;
  position: relative;
  height: 260px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;

}

/* Стили для стрелок */
.arrows {
  display: none;
  justify-content: center;
  gap: 20px;

  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
}

.arrows-slider1 {
  display: flex;
}

.arrows-mobile {
  display: flex;
  justify-content: center;
  gap: 20px;

}

.arrows img {
  width: 12px;
  height: 16px;
  transition: transform 0.2s ease;
}

.arrows img:hover {
  transform: scale(1.1);
}

/* .show {
  display: none;
} */

h3.card__caption {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 0;
}

@media (min-width: 425px) {
  .testimonials-slider .card {
    padding: 0 30px;
    padding-top: 0px;
  }

  /* .show {
    padding: 0 30px;
  } */
}

@media (min-width: 575px) {
  .slideshow-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* .testimonials .slideshow-container img {
    max-height: 400px;
  } */
  .show {
    padding: 0 30px;
  }
}

@media (min-width: 768px) {
  .slideshow-dots {
    position: absolute;
  }

  .arrows {
    gap: 50px;
  }

  .prev__slider1,
  .next__slider1 {
    background: transparent;
  }

  .testimonials__title {
    margin-bottom: 60px;
  }

  /* .slider1__caption-wrapper::after,
.testimonials__caption-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 100%;
  height: 1px;
  background: #CCCCCC;
  z-index: 1;
} */
  /* .steps__caption-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 100%;
  height: 1px;
  background: #CCCCCC;
  z-index: 1;
} */
  .arrows {
    display: flex;
  }

  .arrows-mobile {
    display: none;
  }

  .show {
    order: 1;

  }

  .show {
    padding: 0 0px;
  }

  .card {
    order: 2;
  }


  .testimonials-slider .swiper-wrapper {
    margin-bottom: unset;
  }

  .testimonials-slider .swiper-slide {
    flex-direction: row;
    padding-bottom: 45px;
    min-height: 500px;


  }

  .slider1__caption-wrapper {
    margin-bottom: 58px;
  }

  .slider1__caption {
    font-size: 40px;

  }

  .show,
  .card {
    flex: 1;
  }

  .show {
    display: flex;
  }

  .arrows {
    justify-content: space-around;
  }

  .testimonials-slider .card {
    padding: 0 0px;
    padding-top: 0px;
  }

  .testimonials-slider .swiper-slide {
    gap: 20px;
  }

  .testimonials-slider .swiper-slide {
    max-width: 100%;

    max-width: calc(100% - 10px);
    width: calc(100% - 10px);
    margin: 0 5px;
  }

  .testimonials {
    max-width: 740px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonials-slider .card {
    height: 100%;
    padding-top: 0px;
  }

  .arrows {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-around;
  }

  .show {
    width: calc(62% - 15px);

  }

  .card {
    width: calc(50% - 15px);
  }
}

@media (min-width: 1024px) {
  .testimonials {
    max-width: 994px;
  }

  .show {
    margin-bottom: 20px;
    height: 512px;
  }

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

  .slider1__caption {
    font-size: 40px;
  }

  .card__text {
    margin-bottom: 15px;
  }

  /* .card * {
    max-width: 70%;
  } */

  .card__caption {
    font-size: 20px;
  }

  .card .card__text {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .card__caption {
    font-size: 20px;
  }
}

@media (min-width: 1600px) {
  .slider1__caption {
    font-size: 40px;
  }
}