.testimonials-section {
  background: #f1f2f4;
  padding: 60px 0 78px;
  border-top: 1px solid #dfe3ea;
}

.testi-wrap {
  width: min(1220px, calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}

.testi-title {
  margin: 0;
  text-align: center;
  color: #171c2c;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.testi-subtitle {
  margin: 14px auto 30px;
  max-width: 740px;
  text-align: center;
  color: #666f80;
  font-size: 18px;
  line-height: 1.45;
}

.testi-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testi-track::-webkit-scrollbar {
  display: none;
}

.testi-card {
  flex: 0 0 356px;
  width: 356px;
  height: 280px;
  background: #f2f3f6;
  border: 1px solid #d2d7e1;
  border-radius: 16px;
  padding: 16px 18px;
  opacity: 1;
  overflow: hidden;
}

.testi-quote {
  margin: 0 0 10px;
  color: #2f419d;
  font-size: 54px;
  line-height: 1;
  font-weight: 700;
}

.testi-card h3 {
  margin: 0 0 10px;
  color: #1c2233;
  font-size: 24px;
  line-height: 1.2;
}

.testi-card p {
  margin: 0;
  color: #666f80;
  font-size: 14px;
  line-height: 1.45;
}

.testi-person {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #d4d8e1;
  flex: 0 0 42px;
}

.testi-meta strong {
  display: block;
  color: #1d2434;
  font-size: 18px;
  line-height: 1.2;
}

.testi-meta span {
  display: block;
  color: #70798a;
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 1080px) {
  .testi-title {
    font-size: 40px;
  }

  .testi-subtitle {
    font-size: 16px;
  }

  .testi-card {
    flex-basis: 320px;
    min-height: 280px;
  }

  .testi-card h3 {
    font-size: 28px;
  }

  .testi-card p {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .testimonials-section {
    padding: 36px 0 44px;
  }

  .testi-title {
    font-size: 30px;
  }

  .testi-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .testi-track {
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px;
  }

  .testi-card {
    flex-basis: min(84vw, 300px);
    width: min(84vw, 300px);
    min-height: 240px;
    padding: 12px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  .testi-card h3 {
    font-size: 20px;
  }

  .testi-card p {
    font-size: 12px;
  }

  .testi-meta strong {
    font-size: 14px;
  }
}
