.landing-testimonials.testimonials-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-light);
}

.landing-testimonials.testimonials-section::before,
.landing-testimonials.testimonials-section::after {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: var(--radius-full);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.landing-testimonials.testimonials-section::before {
  width: 500px;
  height: 500px;
  border: 11px solid rgba(220, 228, 234, 0.6);
}

.landing-testimonials.testimonials-section::after {
  width: 480px;
  height: 480px;
  border: 11px solid var(--color-brand-tertiary);
}

.landing-testimonials {
  height: fit-content;
}

.landing-testimonials .testimonials-section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1290px, 100%);
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 144px var(--section-padding-x);

}

.landing-testimonials .testimonials-section__title {
  width: min(740px, 100%);
  margin: 0;
  color: var(--color-brand-primary);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-normal);
  text-align: center;
  text-wrap: balance;
}

.landing-testimonials .testimonials-section__grid {
  display: flex;
  width: 100%;
  max-width: 1290px;
  gap: 30px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.landing-testimonials .testimonials-section__grid::-webkit-scrollbar {
  display: none;
}

.landing-testimonials .testimonials-section__item {
  flex: 0 0 300px;
  min-height: 274px;
  margin: 0;
  padding: 32px;
  color: var(--color-bg-light);
  background: var(--color-bg-dark);
  border: 7px solid var(--color-bg-light);
  border-radius: 24px;
  outline: 3px solid rgba(220, 228, 234, 0.85);
  outline-offset: 7px;
  scroll-snap-align: start;
}

@media (min-width: 769px) {
  .landing-testimonials .testimonials-section__grid {
    width: min(1290px, 100%);
    --reviews-card-width: calc((100% - 60px) / 3);
  }

  .landing-testimonials .testimonials-section__item {
    flex: 0 0 var(--reviews-card-width);
  }
}

.landing-testimonials .testimonials-section__name {
  margin: 0 0 8px;
  color: var(--color-bg-light);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.landing-testimonials .testimonials-section__stars {
  margin: 0 0 12px;
  color: #ffc400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
}

.landing-testimonials .testimonials-section__quote {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 1.65;
}

.landing-testimonials .testimonials-section__divider {
  display: none;
}

@media (max-width: 768px) {
  .landing-testimonials .testimonials-section__inner {
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .landing-testimonials.testimonials-section::before {
    width: 520px;
    height: 520px;
  }

  .landing-testimonials.testimonials-section::after {
    width: 498px;
    height: 498px;
  }

  .landing-testimonials .testimonials-section__grid {
    width: 100vw;
    max-width: none;
    margin-inline: calc(var(--section-padding-x) * -1);
    padding-inline: var(--section-padding-x);
  }

  .landing-testimonials .testimonials-section__item {
    flex-basis: min(300px, calc(100vw - (var(--section-padding-x) * 2)));
  }
}
