.testimonial-page {
  --reviews-navy: #101840;
  --reviews-navy-soft: #182354;
  --reviews-accent: #fa2d39;
  --reviews-accent-dark: #cf1f2a;
  --reviews-gold: #f5a623;
  --reviews-ink: #151a2e;
  --reviews-text: #596174;
  --reviews-surface: #ffffff;
  --reviews-muted: #f6f7fb;
  --reviews-border: #e7e9f1;
}

.testimonial-page main {
  overflow: hidden;
  background: var(--reviews-surface);
}

.reviews-hero {
  position: relative;
  isolation: isolate;
  padding: 144px 0 96px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(250, 45, 57, 0.1), transparent 36%),
    linear-gradient(145deg, #0c1231 0%, var(--reviews-navy) 58%, #151f4f 100%);
}

.reviews-hero::before,
.reviews-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.reviews-hero::before {
  top: -330px;
  right: -150px;
  width: 720px;
  height: 720px;
}

.reviews-hero::after {
  right: 165px;
  bottom: -290px;
  width: 520px;
  height: 520px;
}

.reviews-hero__glow {
  position: absolute;
  z-index: -1;
  top: -140px;
  right: 8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(250, 45, 57, 0.18);
  filter: blur(80px);
}

.reviews-breadcrumb {
  display: flex;
  position: absolute;
  width: 1px;
  height: 1px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 600;
}

.reviews-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.reviews-breadcrumb a:hover {
  color: #fff;
}

.reviews-breadcrumb i {
  font-size: 11px;
}

.reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.reviews-eyebrow i {
  color: #ff6972;
}

.reviews-hero h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.reviews-hero h1 span {
  color: #ff5964;
}

.reviews-hero__lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}

.reviews-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.reviews-hero__actions .th-btn {
  min-height: 52px;
  padding: 17px 24px;
}

.reviews-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.reviews-link:hover {
  color: #ff7b84;
}

.rating-summary {
  position: relative;
  max-width: 460px;
  margin-left: auto;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.rating-summary::after {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(250, 45, 57, 0.16);
  content: "";
}

.rating-summary__top {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.rating-summary__top img {
  padding: 7px 9px;
  border-radius: 7px;
  background: #fff;
  box-sizing: content-box;
}

.rating-summary__score-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
}

.rating-summary__score-row strong {
  color: #fff;
  font-family: var(--title-font);
  font-size: clamp(62px, 8vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.rating-summary__score-row > div > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.rating-summary__stars,
.review-card__stars {
  display: flex;
  gap: 5px;
  color: var(--reviews-gold);
}

.rating-summary__stars {
  font-size: 17px;
}

.rating-summary__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rating-summary__details span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.rating-summary__details i {
  color: #ff6972;
}

.reviews-section {
  position: relative;
  padding: 112px 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(250, 45, 57, 0.055), transparent 26%),
    linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}

.reviews-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 52px;
}

.reviews-section__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--reviews-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reviews-section__heading h2 {
  margin: 0;
  color: var(--reviews-navy);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.reviews-section__heading > p {
  max-width: 520px;
  margin: 0 0 6px auto;
  color: var(--reviews-text);
  font-size: 17px;
  line-height: 1.7;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--reviews-border);
  border-radius: 20px;
  background: var(--reviews-surface);
  box-shadow: 0 14px 38px rgba(16, 24, 64, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 45, 57, 0.25);
  box-shadow: 0 22px 48px rgba(16, 24, 64, 0.11);
}

.review-card--featured {
  background: linear-gradient(145deg, #fff 0%, #fff8f8 100%);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.review-card__stars {
  gap: 4px;
  font-size: 14px;
}

.review-card__source {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #747b8f;
  font-size: 12px;
  font-weight: 700;
}

.review-card__source img {
  width: 44px;
  height: auto;
}

.review-card blockquote {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--reviews-ink);
  font-size: clamp(16px, 1.25vw, 18px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.68;
}

.review-card blockquote::before,
.review-card blockquote::after {
  display: none;
  content: none;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--reviews-border);
}

.review-card footer > img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #edf0f6;
  box-shadow: 0 0 0 1px var(--reviews-border);
  object-fit: cover;
}

.review-card cite {
  display: block;
  margin-bottom: 2px;
  color: var(--reviews-navy);
  font-family: var(--title-font);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.review-card footer span {
  display: block;
  color: #7a8193;
  font-size: 13px;
}

.review-card--rating-only {
  min-height: 280px;
  background: var(--reviews-muted);
}

.review-card__empty {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--reviews-text);
  font-size: 16px;
  font-weight: 600;
}

.review-card__empty i {
  color: var(--reviews-accent);
  font-size: 22px;
}

.reviews-cta {
  padding: 0 0 112px;
  background: #fbfbfd;
}

.reviews-cta__panel {
  display: grid;
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 5vw, 56px);
  overflow: hidden;
  border-radius: 26px;
  background: var(--reviews-navy);
  box-shadow: 0 25px 60px rgba(16, 24, 64, 0.2);
}

.reviews-cta__panel::after {
  position: absolute;
  top: -110px;
  right: 12%;
  width: 280px;
  height: 280px;
  border: 60px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.reviews-cta__icon {
  display: grid;
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 18px;
  background: var(--reviews-accent);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(250, 45, 57, 0.3);
}

.reviews-cta__content {
  position: relative;
  z-index: 1;
}

.reviews-cta__content > span {
  display: block;
  margin-bottom: 8px;
  color: #ff8a91;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-cta h2 {
  max-width: 680px;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.reviews-cta p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.reviews-cta__actions {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 210px;
}

.reviews-cta__actions .th-btn {
  min-height: 50px;
  padding: 16px 20px;
  text-align: center;
}

.reviews-cta__actions > a:last-child {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
}

.testimonial-page a:focus-visible,
.testimonial-page button:focus-visible {
  outline: 3px solid #ffb2b7;
  outline-offset: 4px;
}

@media (max-width: 1199px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-cta__panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reviews-cta__actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-self: start;
  }
}

@media (max-width: 991px) {
  .reviews-hero {
    padding: 112px 0 76px;
  }

  .rating-summary {
    max-width: none;
    margin: 12px 0 0;
  }

  .reviews-section {
    padding: 88px 0;
  }

  .reviews-section__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reviews-section__heading > p {
    max-width: 650px;
    margin-left: 0;
  }

  .reviews-cta {
    padding-bottom: 88px;
  }
}

@media (max-width: 767px) {
  .reviews-hero {
    padding-bottom: 64px;
  }

  .reviews-hero h1 {
    font-size: clamp(36px, 10.6vw, 44px);
  }

  .reviews-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reviews-hero__actions .th-btn,
  .reviews-link {
    justify-content: center;
    width: 100%;
  }

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

  .review-card,
  .review-card--rating-only {
    min-height: 0;
  }

  .reviews-cta__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .reviews-cta__icon {
    margin: 0 auto;
  }

  .reviews-cta__actions {
    grid-column: auto;
    flex-direction: column;
    justify-self: stretch;
  }
}

@media (max-width: 575px) {
  .reviews-hero {
    padding-top: 92px;
  }

  .reviews-eyebrow {
    font-size: 12px;
  }

  .rating-summary__score-row {
    align-items: flex-end;
  }

  .rating-summary__score-row strong {
    font-size: 64px;
  }

  .rating-summary__details {
    grid-template-columns: 1fr;
  }

  .reviews-section {
    padding: 72px 0;
  }

  .reviews-section__heading {
    margin-bottom: 36px;
  }

  .review-card {
    padding: 24px;
  }

  .review-card__top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .reviews-cta {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-card {
    transition: none;
  }

  .review-card:hover {
    transform: none;
  }
}
