.testimonials {
  position: relative;
  background: #e8e7ec;
  padding: 60px 70px 0;
}

.testimonials__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.testimonials__intro .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.testimonials__intro .headline {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  background: #d9d8e0;
}

.rating-card {
  padding: 50px 40px;
  border-right: 1px solid #c7c6d1;
  text-align: center;
}

.rating-card__score {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.rating-card__stars {
  color: #f5a623;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.rating-card__label {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}

.rating-card__sub {
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.testimonial-card {
  padding: 50px 40px;
  border-right: 1px solid #c7c6d1;
}

.testimonial-card:last-child {
  border-right: none;
}

.testimonial-card__quote {
  font-size: 34px;
  font-weight: 900;
  color: #2f27ce;
  line-height: 1;
  margin-bottom: 10px;
}

.testimonial-card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 26px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__author span {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.testimonials .scroll-top {
  position: absolute;
  right: 40px;
  bottom: -19px;
  background: #2f27ce;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.testimonials .scroll-top:hover {
  background: #241db8;
}

@media (max-width: 900px) {
  .testimonials {
    padding: 40px 30px 0;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .rating-card,
  .testimonial-card {
    border-right: none;
    border-bottom: 1px solid #c7c6d1;
  }

  .testimonials__intro .headline {
    font-size: 24px;
  }
}
