.customer-reviews-section {
  --cr-section-bg: 219, 228, 204;
  --cr-heading: 42, 42, 42;
  --cr-accent: 53, 81, 61;
  --cr-star: 228, 161, 44;
  --cr-text: 92, 92, 92;
  --cr-name: 53, 81, 61;

  background: rgb(var(--cr-section-bg)) !important;
  background-color: rgb(var(--cr-section-bg)) !important;
}

.customer-reviews-section.page-section::before {
  background: rgb(var(--cr-section-bg)) !important;
  background-color: rgb(var(--cr-section-bg)) !important;
}

.customer-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.customer-reviews__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 40rem;
  text-align: center;
}

.customer-reviews__heading {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgb(var(--cr-heading));
  text-wrap: balance;
}

.customer-reviews__heading-accent {
  color: rgb(var(--cr-accent));
}

.customer-reviews__link {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  color: rgb(var(--cr-accent));
}

.customer-reviews__link:hover {
  opacity: 0.8;
}

.customer-reviews__scroller {
  width: 100%;
  min-width: 0;
}

.customer-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
}

.customer-reviews__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  min-width: 0;
}

.customer-reviews__stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgb(var(--cr-star));
}

.customer-reviews__star {
  display: inline-flex;
  width: 16px;
  height: 15px;
}

.customer-reviews__star svg {
  width: 100%;
  height: 100%;
}

.customer-reviews__star--empty {
  opacity: 0.25;
}

.customer-reviews__quote {
  margin: 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(var(--cr-text));
}

.customer-reviews__quote::before {
  content: "\201C";
}

.customer-reviews__quote::after {
  content: "\201D";
}

.customer-reviews__author {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(var(--cr-name));
}

.customer-reviews__dots {
  display: none;
}

.customer-reviews__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgb(var(--color-text) / 0.22);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.customer-reviews__dot.is-active {
  width: 18px;
  background: rgb(var(--cr-accent));
}

@media (max-width: 959px) {
  .customer-reviews {
    gap: 28px;
  }

  .customer-reviews__header {
    gap: 10px;
    max-width: none;
  }

  .customer-reviews__heading {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .customer-reviews__heading-accent::after {
    content: "";
    display: block;
  }

  .customer-reviews__link {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .customer-reviews__scroller {
    overflow: hidden;
  }

  .customer-reviews__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .customer-reviews__grid::-webkit-scrollbar {
    display: none;
  }

  .customer-reviews__card {
    gap: 16px;
    padding-inline: 8px;
    scroll-snap-align: start;
  }

  .customer-reviews__stars {
    gap: 6px;
  }

  .customer-reviews__star {
    width: 18px;
    height: 17px;
  }

  .customer-reviews__quote {
    max-width: 20rem;
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .customer-reviews__author {
    font-size: 0.9375rem;
  }

  .customer-reviews__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 8px;
  }

  .customer-reviews__dots[hidden] {
    display: none;
  }
}
