.home-testimonials {
  padding: clamp(3rem, 5vw, 5rem) 1.5rem;
  background: #fff;
  color: #fff;
  font-family: "Fira Sans", "Segoe UI", sans-serif;
}
.testimonials-inner { width: min(100%, 1280px); margin: 0 auto; }
.home-testimonials h2 {
  margin: 0 0 2.5rem;
  color: #304ffe;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
.testimonials-carousel { position: relative; padding-top: 3.5rem; }
.testimonials-track {
  position: relative;
  display: grid;
  grid-template-columns: 27% 46% 27%;
  align-items: center;
  min-height: 310px;
}
.testimonials-track::before {
  content: "";
  position: absolute;
  inset: 15% 0;
  border-radius: 28px;
  background: #516df3;
}
.testimonial-slide { display: none; position: relative; text-align: center; }
.testimonial-slide.is-previous, .testimonial-slide.is-next { display: flex; flex-direction: column; align-items: center; padding: 1.25rem; }
.testimonial-slide.is-previous { grid-column: 1; grid-row: 1; }
.testimonial-slide.is-next { grid-column: 3; grid-row: 1; }
.testimonial-slide.is-active {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 4.5rem 2.5rem 1.75rem;
  border-radius: 28px;
  background: #192478;
}
.testimonial-photo { display: block; width: 110px; height: 110px; flex: 0 0 auto; border: 7px solid #d9f5f9; border-radius: 50%; object-fit: cover; background: #d9f5f9; }
.testimonial-slide.is-active .testimonial-photo { position: absolute; top: -55px; left: 50%; transform: translateX(-50%); }
.testimonial-quote { margin: 0 0 1rem; font-size: clamp(1.1rem, 1.7vw, 1.65rem); line-height: 1.18; }
.testimonial-quote::before, .testimonial-quote::after { color: #fff; font-size: 1.8em; font-weight: 800; line-height: 0; vertical-align: -.3em; }
.testimonial-quote::before { content: '“'; margin-right: .15em; }
.testimonial-quote::after { content: '”'; margin-left: .15em; }
.testimonial-slide:not(.is-active) .testimonial-quote { display: none; }
.testimonial-name { margin: .9rem 0 .1rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.testimonial-role { margin: 0; line-height: 1.2; }
.testimonial-slide.is-active .testimonial-name, .testimonial-slide.is-active .testimonial-role { color: #13e6e8; }
.testimonials-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% + 1.75rem);
  width: 62px;
  height: 62px;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #304ffe;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.testimonials-arrow--previous { left: 27%; }
.testimonials-arrow--next { left: 73%; }
.testimonials-arrow:hover, .testimonials-arrow:focus-visible { background: #101b71; outline: 2px solid #304ffe; outline-offset: 2px; }
@media (max-width: 700px) {
  .home-testimonials { padding-inline: 1rem; }
  .testimonials-track { grid-template-columns: 1fr; padding: 0 1.3rem; }
  .testimonials-track::before { inset: 15% 0; }
  .testimonial-slide.is-active { grid-column: 1; min-height: 280px; padding: 4rem 2rem 1.5rem; }
  .testimonial-slide.is-previous, .testimonial-slide.is-next { display: none; }
  .testimonials-arrow { width: 48px; height: 48px; border-width: 4px; font-size: 1.1rem; }
  .testimonials-arrow--previous { left: 1.3rem; }
  .testimonials-arrow--next { left: calc(100% - 1.3rem); }
}
