.testimonials-page,
.testimonials-page * {
  box-sizing: border-box;
}

.testimonials-page {
  overflow-x: clip;
  color: #111628;
  background: #f7f8fc;
}

.testimonials-page em {
  font-style: normal;
}

.testimonials-container {
  width: min(1120px, calc(100% - 72px));
  margin-inline: auto;
}

.testimonials-hero {
  padding: 38px 0 22px;
  background: #f7f8fc;
}

.testimonials-hero-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 270px;
  align-items: center;
}

.testimonials-hero-copy {
  padding-right: 34px;
}

.testimonials-hero .breadcrumb {
  margin-bottom: 27px;
  color: #263047;
  font-size: 13px;
}

.testimonials-hero .breadcrumb span {
  padding: 0 9px;
  color: #ed1022;
}

.testimonials-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 4vw, 57px);
  line-height: 1.08;
}

.testimonials-hero h1 em {
  color: #ed1022;
}

.testimonials-hero h2 {
  margin: 0 0 15px;
  font-size: 19px;
  line-height: 1.35;
}

.testimonials-hero-copy > p {
  max-width: 500px;
  margin: 0;
  padding-bottom: 19px;
  color: #465068;
  font-size: 14px;
  line-height: 1.75;
}

.testimonials-hero-copy > p::after {
  content: "";
  width: 36px;
  height: 3px;
  display: block;
  margin-top: 20px;
  background: #ed1022;
}

.testimonials-hero figure {
  min-width: 0;
  margin: 0;
}

.testimonials-hero figure img {
  width: 100%;
  max-height: 245px;
  display: block;
  object-fit: contain;
}

.testimonial-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1px;
  padding: 19px 20px;
  border: 1px solid #e7eaf1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 22, 41, .07);
}

.testimonial-stats article {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 0 25px;
  border-right: 1px solid #dfe3ec;
}

.testimonial-stats article:last-child {
  border-right: 0;
}

.testimonial-stats article > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f2;
}

.testimonial-stats img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: invert(18%) sepia(99%) saturate(5504%) hue-rotate(347deg) brightness(99%);
}

.testimonial-stats strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.testimonial-stats small {
  display: block;
  margin-top: 6px;
  color: #3f485b;
  font-size: 11px;
}

.testimonials-content {
  padding: 30px 0 17px;
}

.testimonial-heading {
  margin-bottom: 24px;
  text-align: center;
}

.testimonial-heading > p {
  margin: 0 0 9px;
  color: #ed1022;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.testimonial-heading h2 {
  margin: 0;
  font-size: 30px;
}

.testimonial-heading > span {
  width: 35px;
  height: 3px;
  display: block;
  margin: 13px auto 14px;
  background: #ed1022;
}

.testimonial-heading > div {
  color: #596276;
  font-size: 13px;
  line-height: 1.65;
}

.featured-testimonial {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #e6e9f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(16, 22, 41, .07);
}

.featured-quote,
.featured-impact {
  min-width: 0;
  padding: 35px 38px;
}

.featured-quote {
  position: relative;
  padding-left: 130px;
  border-right: 1px solid #dfe3eb;
}

.featured-quote > b,
.testimonial-card > b {
  color: #ed1022;
  font-family: Georgia, serif;
  line-height: .75;
}

.featured-quote > b {
  position: absolute;
  left: 48px;
  top: 44px;
  font-size: 62px;
}

.featured-quote blockquote {
  margin: 0;
  color: #30394d;
  font-size: 15px;
  line-height: 1.72;
}

.testimonial-person {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
}

.testimonial-person img,
.testimonial-card footer img {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-initial {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #6d38d8);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.testimonial-person .avatar-initial {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.testimonial-card footer .avatar-initial {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.testimonial-person img {
  width: 48px;
  height: 48px;
}

.testimonial-person strong,
.testimonial-card footer strong {
  display: block;
  font-size: 12px;
}

.testimonial-person small,
.testimonial-card footer small {
  display: block;
  color: #596276;
  font-size: 10px;
}

.testimonial-person em {
  color: #18a963;
  font-size: 21px;
  font-weight: 800;
}

.featured-impact h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.featured-impact > p {
  margin: 0;
  color: #596276;
  font-size: 13px;
  line-height: 1.7;
}

.featured-impact > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 23px;
}

.featured-impact span {
  min-width: 0;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 12px 11px;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
}

.featured-impact span img {
  grid-row: span 2;
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: invert(18%) sepia(99%) saturate(5504%) hue-rotate(347deg) brightness(99%);
}

.featured-impact span b {
  font-size: 19px;
  line-height: 1;
}

.featured-impact span small {
  font-size: 8px;
  line-height: 1.25;
}

.testimonial-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.testimonial-card {
  min-width: 0;
  min-height: 213px;
  display: flex;
  flex-direction: column;
  padding: 25px 25px 18px;
  border: 1px solid #e4e7ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 22, 41, .06);
}

.testimonial-card > b {
  height: 27px;
  font-size: 43px;
}

.testimonial-card > p {
  margin: 5px 0 18px;
  color: #30394d;
  font-size: 12px;
  line-height: 1.65;
}

.testimonial-card footer {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}

.testimonial-card footer img {
  width: 38px;
  height: 38px;
}

.testimonial-card footer em {
  color: #225ed7;
  font-size: 15px;
  font-weight: 800;
}

.testimonial-card:nth-child(3) footer em,
.testimonial-card:nth-child(6) footer em {
  color: #069ba2;
}

.trusted-brands {
  margin-top: 23px;
}

.trusted-brands h2 {
  margin: 0 0 13px;
  text-align: center;
  color: #1f2650;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.trusted-brands > div {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.trusted-brands span {
  min-width: 0;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 9px;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  background: #fff;
}

.trusted-brands img {
  width: 100%;
  max-width: 112px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: saturate(.92);
}

.testimonial-cta {
  position: relative;
  min-height: 121px;
  display: grid;
  grid-template-columns: 1fr auto 280px;
  align-items: center;
  gap: 27px;
  margin-top: 19px;
  overflow: hidden;
  padding: 25px 27px 25px 68px;
  border-radius: 9px;
  color: #fff;
  background: #071736;
}

.testimonial-cta h2 {
  margin: 0 0 7px;
  font-size: 22px;
}

.testimonial-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  line-height: 1.6;
}

.testimonial-cta > a {
  position: relative;
  z-index: 2;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 21px;
  border-radius: 7px;
  color: #101629;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.testimonial-cta > a span {
  color: #ed1022;
}

.testimonial-cta > img {
  width: 280px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 1050px) {
  .testimonials-container {
    width: min(920px, calc(100% - 48px));
  }

  .featured-quote {
    padding-left: 95px;
  }

  .featured-quote > b {
    left: 34px;
  }

  .featured-quote,
  .featured-impact {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .testimonial-cta {
    grid-template-columns: 1fr auto 210px;
    padding-left: 35px;
  }
}

@media (max-width: 800px) {
  .testimonials-hero-grid,
  .featured-testimonial {
    grid-template-columns: 1fr;
  }

  .testimonials-hero-copy {
    padding-right: 0;
  }

  .testimonials-hero figure img {
    margin: 10px auto 0;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .testimonial-stats article:nth-child(2) {
    border-right: 0;
  }

  .featured-quote {
    border-right: 0;
    border-bottom: 1px solid #dfe3eb;
  }

  .testimonial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trusted-brands > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonial-cta {
    grid-template-columns: 1fr auto;
    padding-right: 30px;
  }

  .testimonial-cta > img {
    display: none;
  }
}

@media (max-width: 560px) {
  .testimonials-container {
    width: calc(100% - 30px);
  }

  .testimonials-hero {
    padding-top: 27px;
  }

  .testimonials-hero h1 {
    font-size: 39px;
  }

  .testimonials-hero h2 {
    font-size: 17px;
  }

  .testimonial-stats,
  .testimonial-card-grid,
  .featured-impact > div,
  .trusted-brands > div {
    grid-template-columns: 1fr;
  }

  .testimonial-stats article,
  .testimonial-stats article:nth-child(2) {
    padding: 10px 4px;
    border-right: 0;
    border-bottom: 1px solid #dfe3ec;
  }

  .testimonial-stats article:last-child {
    border-bottom: 0;
  }

  .testimonial-heading h2 {
    font-size: 27px;
  }

  .testimonial-heading > div br,
  .testimonial-cta p br {
    display: none;
  }

  .featured-quote,
  .featured-impact {
    padding: 27px 20px;
  }

  .featured-quote {
    padding-left: 68px;
  }

  .featured-quote > b {
    left: 22px;
    top: 35px;
  }

  .testimonial-person {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .testimonial-person em {
    grid-column: 2;
    font-size: 17px;
  }

  .testimonial-card {
    min-height: 0;
  }

  .testimonial-cta {
    grid-template-columns: 1fr;
    padding: 27px 22px;
  }

  .testimonial-cta > a {
    width: 100%;
  }
}
