.testimonials-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.testimonials-swiper {
  height: auto;
}

.testimonials-section .swiper-wrapper {
  height: auto !important; /* Для перевизначення можливих стилів Swiper */
}

.testimonials-section .swiper-slide {
  height: auto !important; /* Для рівної висоти слайдів */
}


.testimonials-section .caption-text {
  margin-bottom: 16px;
}

.testimonials-heading-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.testimonials-title {
  font-family: Satoshi, sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: 72px; /* 112.5% */
  color: #F5F7FC;
}

.testimonials-swiper-button-wrapper {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.testimonials-swiper-button-prev,
.testimonials-swiper-button-next {
  position: relative !important;
  top: initial !important;
  right: initial !important;
  bottom: initial !important;
  left: initial !important;
  display: flex !important;
  place-items: center !important;
  width: 64px !important;
  height: 64px !important;
  padding: 16px !important;
  background-color: rgb(14 16 21 / 80%);
  border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-swiper-button-prev:hover,
  .testimonials-swiper-button-next:hover {
    background-color: rgb(240 243 250 / 8%);
  }
}

.testimonials-swiper-button-next {
  position: relative;
}

.testimonials-swiper-button-prev::after,
.testimonials-swiper-button-next::after {
  content: none !important;
}

.testimonial-item-wrapper {
  display: flex;
  flex-direction: row-reverse;
  gap: 64px;
  height: 100%;
  padding: 32px 32px 48px;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.testimonial-item-title {
  position: relative;
  padding-left: 43px;
  font-family: Satoshi, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px; /* 120% */
  color: #F5F7FC;
}

.testimonial-item-title::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='40' viewBox='0 0 27 40' fill='none'%3E%3Cg clip-path='url(%23clip0_5635_25392)'%3E%3Cpath d='M10 25L16.9282 25L-3.0718 55.641L-10 55.641L10 25Z' fill='%23F5F7FC'/%3E%3Cpath d='M20.9297 25L27.8579 25L7.85789 55.641L0.929688 55.641L20.9297 25Z' fill='%23F5F7FC'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5635_25392'%3E%3Crect width='27' height='40' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.testimonial-item-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-item-text p {
  padding: 0;
  margin: 0;
  font-family: Satoshi, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  color: rgb(240 243 250 / 80%);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-author-name {
  font-family: Satoshi, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px; /* 133.333% */
  color: #F5F7FC;
}

.testimonial-author-role {
  font-family: Satoshi, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  color: rgb(240 243 250 / 64%);
}

.testimonial-photo {
  flex: 0 0 348px;
  width: 348px;
  height: 469px;
  overflow: hidden;
  border-radius: 12px;
}

.testimonial-photo-wrap {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.testimonial-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonials-link-wrapper {
  display: grid;
  place-items: center;
}

.testimonials-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 16px 16px 16px 24px;
  font-family: Satoshi, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  color: #2B4DFD;
  text-decoration: none;
  background: rgb(14 16 21 / 80%);
  border: none;
  border-radius: 40px;
  outline: none;
}

.testimonials-link:visited {
  color: #2B4DFD;
}

.testimonials-link path {
  stroke: currentcolor;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-link:hover {
    color: #F5F7FC;
    background: linear-gradient(107deg, #FFF -155.85%, #2B4DFD 71.21%);
  }
}

.testimonials-link:active {
  color: #F5F7FC;
  background: linear-gradient(107deg, #FFF -74.41%, #2B4DFD 100.82%);
}

@media screen and (min-width: 1900px) {
  .testimonials-wrapper {
    margin-right: -80px;
  }

  .testimonials-heading-wrapper {
    padding-right: 80px;
  }
}

@media screen and (min-width: 1560px) {
  .testimonials-section {
    padding-top: 140px;
    padding-bottom: 120px;
  }

}

@media screen and (max-width: 1440px) {
  .testimonials-section {
    padding-top: clamp(40px, 0px + 8.3333vw, 120px);
    padding-bottom: clamp(40px, 0px + 8.3333vw, 120px);
  }

  .testimonials-title {
    font-size: clamp(40px, 28px + 2.5vw, 64px);
    line-height: 1.125;
  }

  .testimonial-item-title {
    font-size: clamp(32px, 28px + 0.8333vw, 40px);
    line-height: 1.2;
  }
}

@media screen and (max-width: 1320px) {
  .testimonial-item-wrapper {
    gap: 32px;
    padding: 32px 0 48px;
  }

  /* .testimonial-photo-wrap { */

  /*  height: auto; */

  /* } */
}

@media screen and (max-width: 998px) {
  .testimonial-photo {
    position: absolute;
    display: none;
    visibility: hidden;
  }

  .testimonials-link-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .testimonials-swiper-button-prev {
    order: 1 !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

  .testimonials-link {
    order: 2;
  }

  .testimonials-swiper-button-next {
    order: 3 !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
  }

}

@media screen and (max-width: 480px) {
  .testimonials-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .testimonials-title {
    font-size: 40px;
    line-height: 48px;
  }

  .testimonial-item-title {
    font-size: 32px;
    line-height: 40px;
  }
}