/* ===== STORE TESTIMONIALS ===== */
.testimonials-mount {
  margin: 0 auto 28px;
}

.testimonials-section {
  position: relative;
  padding: 0 24px;
}

.testimonials-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 0 4px;
}

.testimonials-copy {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 0 24px;
  text-align: center;
}

.testimonials-kicker {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--accent) 78%, var(--text-main));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.testimonials-copy h2 {
  margin: 0 0 12px;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
}

.testimonials-description {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.testimonials-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 10px;
  padding: 0 24px;
}

.testimonials-controls {
  display: flex;
  gap: 10px;
}

.testimonials-control {
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--text-main) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.testimonials-control:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--surface-1) 96%, transparent);
}

.testimonials-viewport {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 0 18px;
  border-radius: 42px;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  align-items: stretch;
  will-change: transform;
  touch-action: pan-y;
  transition: transform 0.45s ease;
}

.testimonial-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-height: 236px;
  padding: 26px 24px 22px;
  border: 1px solid color-mix(in srgb, var(--text-main) 10%, transparent);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 28%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface-1) 94%, transparent), color-mix(in srgb, var(--surface-3) 98%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-main) 4%, transparent);
  opacity: 0.78;
  transform: perspective(900px) scale(0.92);
  transform-origin: center center;
  filter: saturate(0.88);
  transition: transform 0.45s ease, opacity 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.testimonial-card.is-prev {
  transform: perspective(900px) rotateY(16deg) scale(0.9);
  transform-origin: right center;
  clip-path: inset(0 0 0 10px round 28px 18px 18px 28px);
}

.testimonial-card.is-next {
  transform: perspective(900px) rotateY(-16deg) scale(0.9);
  transform-origin: left center;
  clip-path: inset(0 10px 0 0 round 18px 28px 28px 18px);
}

.testimonial-card.is-center {
  opacity: 1;
  transform: perspective(900px) translateY(-8px) scale(1);
  filter: saturate(1);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--text-main) 5%, transparent);
}

.testimonial-stars {
  margin-bottom: 14px;
  color: #ffd35c;
  letter-spacing: 4px;
  font-size: 18px;
}

.testimonial-quote {
  margin: 0 0 20px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
  color: var(--text-main);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
}

.testimonial-author strong {
  color: var(--text-main);
  font-size: 15px;
}

@media (max-width: 980px) {
  .testimonials-viewport {
    max-width: 760px;
  }

  .testimonial-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 820px) {
  .testimonials-mount {
    margin-bottom: 22px;
  }

  .testimonials-section {
    padding: 0 16px;
  }

  .testimonials-shell {
    padding-top: 10px;
  }

  .testimonials-copy {
    margin-bottom: 16px;
    padding: 0 8px;
  }

  .testimonials-toolbar {
    justify-content: flex-end;
    margin-bottom: 10px;
    padding: 0 8px;
  }

  .testimonials-viewport {
    max-width: none;
    padding-bottom: 12px;
    border-radius: 30px;
  }

  .testimonial-card {
    flex-basis: 100%;
    min-height: 220px;
    padding: 22px 20px 20px;
    opacity: 0.92;
    transform: scale(0.96);
  }

  .testimonial-card.is-prev,
  .testimonial-card.is-next,
  .testimonial-card.is-center {
    clip-path: inset(0 round 28px);
    transform: scale(1);
  }
}
