.testimonials-section{
  padding: clamp(70px, 8vw, 120px) 0;
  background: #fff;
  color: #102f38;
}
.testimonials-section__heading{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}
.testimonials-section__heading h2{
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.testimonials-section__total{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  text-transform: uppercase;
}
.testimonials-section__total strong,
.testimonials-section__total b{
  font-size: 1.8rem;
}
.testimonials-section__total b{
  margin-left: 16px;
  padding-left: 25px;
  border-left: 1px solid #cdd4d6;
}
.testimonials-section__carousel{
  position: relative;
}
.testimonials-section__controls{
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -18px;
  right: -18px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.testimonials-section__controls button{
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #d6dfe1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #102f38;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.testimonials-section__controls button:hover,
.testimonials-section__controls button:focus-visible{
  border-color: var(--yf-navy);
  background: var(--yf-navy);
  color: #fff;
}
.testimonials-section__grid{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.testimonials-section__grid::-webkit-scrollbar{
  display: none;
}
.testimonials-section__grid article{
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  padding: 23px;
  border: 1px solid rgba(224, 231, 232, 0.72);
  border-radius: 9px;
  background: #f0f2f2;
  scroll-snap-align: start;
}
.testimonials-section__person{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 92px;
  margin-bottom: 10px;
  font-size: 15px;
}
.testimonials-section__person span,
.testimonials-section__person img{
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #062b34;
  color: #fff;
}
.testimonials-section__person img{
  object-fit: cover;
}
.testimonials-section__stars{
  position: absolute;
  top: 23px;
  right: 23px;
  margin: 0;
  color: #ffd500;
  font-size: 1.08rem;
  letter-spacing: 2px;
}
.testimonials-section__grid p{
  min-height: 78px;
  margin: 0 0 12px;
  color: #596b70;
  font-size: 16px;
  line-height: 1.45;
}
.testimonials-section__grid small{
  color: #8d999c;
  font-size: 12px;
  text-transform: none;
}
.testimonials-section__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.testimonials-section__meta a{
  color: #102f38;
  font-size: 13px;
  font-weight: 500;
}
.testimonials-section__action{
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
@media (max-width: 720px){
  .testimonials-section{
    padding-top: 48px;
  }
  .testimonials-section__carousel{
    display: flex;
    flex-direction: column;
  }
  .testimonials-section__grid{
    order: 1;
  }
  .testimonials-section__controls{
    position: static;
    order: 2;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    transform: none;
  }
  .testimonials-section__heading{
    justify-content: center;
    text-align: center;
  }
  .testimonials-section__total{
    display: none;
  }
  .testimonials-section__grid article{
    flex-basis: 100%;
  }
  .testimonials-section__action{
    justify-content: center;
  }
}
