.tp-home-testimonials {
  position: relative;
  padding: 68px 0 72px;
  background: var(--tp-common-white);
  overflow: hidden;
}

.tp-home-testimonials::before {
  position: absolute;
  top: -130px;
  right: -130px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  content: "";
  background: rgba(253, 70, 33, 0.06);
  pointer-events: none;
}

.tp-home-testimonials-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
  margin-bottom: 30px;
}

.tp-home-testimonials-heading .tp-section-title {
  margin-bottom: 20px;
}

.tp-home-testimonials-heading .tp-section-title span {
  color: var(--tp-theme-1);
}

.tp-home-testimonials-trust {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.tp-home-testimonials-avatars {
  display: flex;
  align-items: center;
  padding-left: 3px;
}

.tp-home-testimonials-avatars img,
.tp-home-testimonials-avatars > span {
  position: relative;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid var(--tp-common-white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(7, 21, 22, 0.12);
}

.tp-home-testimonials-avatars img:first-child {
  margin-left: 0;
}

.tp-home-testimonials-avatars > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-common-white);
  background: var(--tp-theme-1);
  font-family: var(--tp-ff-body);
  font-size: 8px;
  font-weight: 700;
}

.tp-home-testimonials-rating-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-home-testimonials-stars,
.tp-home-testimonial-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--tp-common-yellow);
}

.tp-home-testimonials-stars {
  font-size: 11px;
}

.tp-home-testimonials-rating-summary strong {
  color: var(--tp-common-black);
  font-family: var(--tp-ff-body);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tp-home-testimonials-navigation {
  display: none;
  align-items: center;
  gap: 8px;
}

.tp-home-testimonials-navigation button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tp-border-1);
  border-radius: 50%;
  color: var(--tp-common-black);
  background: var(--tp-common-white);
  box-shadow: 0 7px 18px rgba(7, 21, 22, 0.07);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tp-home-testimonials-navigation button:hover {
  border-color: var(--tp-theme-1);
  color: var(--tp-common-white);
  background: var(--tp-theme-1);
  transform: translateY(-2px);
}

.tp-home-testimonials-navigation button:focus-visible {
  outline: 3px solid rgba(253, 70, 33, 0.25);
  outline-offset: 3px;
}

.tp-home-testimonials-navigation .swiper-button-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tp-home-testimonial-slider {
  overflow: visible;
}

.tp-home-testimonial-slider .swiper-wrapper {
  align-items: stretch;
}

.tp-home-testimonial-slider .swiper-slide {
  height: auto;
}

.tp-home-testimonial-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 292px;
  flex-direction: column;
  padding: 22px 19px 19px;
  border: 1px solid var(--tp-border-1);
  border-radius: 18px;
  background: var(--tp-grey-3);
  box-shadow: 0 10px 28px rgba(7, 21, 22, 0.06);
  overflow: hidden;
  transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.tp-home-testimonial-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  content: "";
  background: var(--tp-theme-1);
  transition: width 0.4s ease;
}

.tp-home-testimonial-quote {
  position: absolute;
  top: 19px;
  right: 20px;
  color: rgba(7, 21, 22, 0.07);
  font-size: 42px;
}

.tp-home-testimonial-stars {
  position: relative;
  z-index: 1;
  margin-bottom: 17px;
  font-size: 11px;
}

.tp-home-testimonial-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  padding-right: 28px;
  color: var(--tp-common-black);
  font-family: var(--tp-ff-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tp-home-testimonial-card > p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--tp-grey-1);
  font-family: var(--tp-ff-p);
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tp-home-testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--tp-border-1);
}

.tp-home-testimonial-author img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid var(--tp-common-white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(7, 21, 22, 0.12);
}

.tp-home-testimonial-author strong,
.tp-home-testimonial-author span {
  display: block;
  font-family: var(--tp-ff-body);
}

.tp-home-testimonial-author strong {
  margin-bottom: 3px;
  color: var(--tp-common-black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.tp-home-testimonial-author span {
  color: var(--tp-grey-1);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tp-home-testimonial-card:hover {
  border-color: rgba(253, 70, 33, 0.22);
  background: var(--tp-common-white);
  box-shadow: 0 20px 42px rgba(7, 21, 22, 0.12);
  transform: translateY(-6px);
}

.tp-home-testimonial-card:hover::before {
  width: 100%;
}

.tp-home-testimonial-pagination {
  position: relative;
  bottom: auto !important;
  margin-top: 18px;
}

.tp-home-testimonial-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 4px !important;
  background: var(--tp-common-black);
  opacity: 0.2;
  transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.tp-home-testimonial-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--tp-theme-1);
  opacity: 1;
}

@media (min-width: 768px) {
  .tp-home-testimonials-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 42px;
  }

  .tp-home-testimonials-heading {
    max-width: 760px;
  }

  .tp-home-testimonials-navigation {
    display: flex;
  }

  .tp-home-testimonials-avatars img,
  .tp-home-testimonials-avatars > span {
    width: 37px;
    height: 37px;
  }

  .tp-home-testimonials-rating-summary strong {
    font-size: 9px;
  }

  .tp-home-testimonials-navigation button {
    width: 48px;
    height: 48px;
  }

  .tp-home-testimonial-card {
    min-height: 365px;
    padding: 30px 28px 26px;
    border-radius: 22px;
  }

  .tp-home-testimonial-author img {
    width: 48px;
    height: 48px;
  }

  .tp-home-testimonial-card h3 {
    font-size: 27px;
  }

  .tp-home-testimonial-card > p {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .tp-home-testimonials {
    padding: 112px 0 116px;
  }

  .tp-home-testimonial-card {
    min-height: 390px;
    padding: 34px 31px 29px;
  }
}

@media (hover: none) {
  .tp-home-testimonial-card:active {
    border-color: rgba(253, 70, 33, 0.22);
    background: var(--tp-common-white);
    transform: scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-home-testimonial-card,
  .tp-home-testimonial-card::before,
  .tp-home-testimonials-navigation button,
  .tp-home-testimonials-kicker i,
  .tp-home-testimonial-pagination .swiper-pagination-bullet {
    transition: none;
  }
}
