.testimonials {
  color: var(--color-ink);
  background: var(--color-white);
}

.testimonials__review-widget {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 46px);
  align-items: center;
}

.testimonials__score {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 260px;
  text-align: center;
}

.testimonials__score h2 {
  margin: 0 0 16px;
  color: #080808;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.testimonials__score p {
  margin: 8px 0 4px;
  color: #111;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.35;
}

.testimonials__score strong {
  font-weight: 900;
}

.testimonials__stars,
.testimonial-card__rating span {
  color: #f6b400;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.testimonials__google-wordmark {
  display: inline-flex;
  gap: 1px;
  margin-top: 2px;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.testimonials__google-wordmark span:nth-child(1),
.testimonials__google-wordmark span:nth-child(4) {
  color: #4285f4;
}

.testimonials__google-wordmark span:nth-child(2),
.testimonials__google-wordmark span:nth-child(6) {
  color: #ea4335;
}

.testimonials__google-wordmark span:nth-child(3) {
  color: #fbbc05;
}

.testimonials__google-wordmark span:nth-child(5) {
  color: #34a853;
}

.testimonials__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  padding: 20px;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 14px;
}

.testimonial-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: #9a766c;
  border-radius: 50%;
  font-size: 1.08rem;
  font-weight: 900;
}

.testimonial-card:nth-child(2) .testimonial-card__avatar {
  background: var(--color-navy);
}

.testimonial-card:nth-child(3) .testimonial-card__avatar {
  background: #e83879;
}

.testimonial-card__person {
  min-width: 0;
}

.testimonial-card__person strong,
.testimonial-card__person span {
  display: block;
}

.testimonial-card__person strong {
  overflow: hidden;
  color: #101010;
  font-size: 0.98rem;
  line-height: 1.18;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.testimonial-card__person span {
  margin-top: 2px;
  color: #777;
  font-size: 0.82rem;
  line-height: 1.2;
}

.testimonial-card__google {
  width: 20px;
  height: 20px;
}

.testimonial-card__rating {
  display: flex;
  gap: 6px;
  align-items: center;
}

.testimonial-card__rating span {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.testimonial-card__rating small {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: #4285f4;
  border-radius: 50%;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 900;
}

.testimonial-card p {
  margin: 0;
  overflow: hidden;
  color: #101010;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  font-size: clamp(0.98rem, 1.1vw, 1.06rem);
  line-height: 1.45;
  font-weight: 500;
}

.testimonials__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 38px);
}

.testimonials__google-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(19, 44, 84, 0.16);
}

.testimonials__google-button svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  background: var(--color-white);
  border-radius: 50%;
}

@media (max-width: 1180px) {
  .testimonials__review-widget {
    grid-template-columns: 1fr;
  }

  .testimonials__score {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .testimonials__cards {
    grid-template-columns: 1fr;
  }

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