.dx-testimonials {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 9vw, 136px);
  background: #eee6dc;
  color: #171513;
}

.dx-testimonials::before {
  content: "VOZES";
  position: absolute;
  top: 38px;
  right: -0.04em;
  font-family: var(--font-display);
  font-size: clamp(110px, 18vw, 260px);
  line-height: 0.8;
  color: rgba(92, 46, 46, 0.035);
  pointer-events: none;
}

.dx-testimonials__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), 1280px);
  margin-inline: auto;
}

.dx-testimonials__head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  align-items: end;
  gap: 64px;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.dx-testimonials__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b292c;
}

.dx-testimonials__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.dx-testimonials__title {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #5c2e2e;
  text-wrap: balance;
}

.dx-testimonials__intro {
  max-width: 350px;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid rgba(92, 46, 46, 0.28);
  font-size: 16px;
  line-height: 1.65;
  color: #625a54;
}

.dx-testimonials__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.dx-testimonials__track {
  --testimonial-index: 0;
  --testimonial-gap: 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--testimonial-gap) * 2)) / 3);
  gap: var(--testimonial-gap);
  transform: translateX(
    calc(
      var(--testimonial-index) *
      (100% + var(--testimonial-gap)) / -3
    )
  );
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dx-testimonial {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 30px 28px;
  border-top: 1px solid rgba(92, 46, 46, 0.4);
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background: rgba(255, 255, 255, 0.28);
}

.dx-testimonial::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 74px;
  line-height: 0.65;
  color: rgba(107, 41, 44, 0.3);
}

.dx-testimonial blockquote {
  margin: 26px 0 34px;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.65vw, 26px);
  line-height: 1.35;
  color: #282321;
}

.dx-testimonial footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 21, 19, 0.1);
}

.dx-testimonial strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b292c;
}

.dx-testimonial__number {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(23, 21, 19, 0.42);
}

.dx-testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
}

.dx-testimonials__arrows {
  display: flex;
  gap: 10px;
}

.dx-testimonials__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(92, 46, 46, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #5c2e2e;
  font-size: 18px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.dx-testimonials__arrow:hover {
  color: #fff;
  background: #5c2e2e;
  transform: translateY(-2px);
}

.dx-testimonials__status {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  max-width: 420px;
}

.dx-testimonials__count {
  min-width: 44px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #6b292c;
}

.dx-testimonials__progress {
  position: relative;
  height: 1px;
  flex: 1;
  overflow: hidden;
  background: rgba(92, 46, 46, 0.18);
}

.dx-testimonials__progress span {
  display: block;
  width: calc(100% / var(--testimonial-steps, 6));
  height: 100%;
  background: #6b292c;
  transform: translateX(calc(var(--testimonial-index, 0) * 100%));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 980px) {
  .dx-testimonials__head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .dx-testimonials__track {
    grid-auto-columns: calc((100% - var(--testimonial-gap)) / 2);
    transform: translateX(
      calc(
        var(--testimonial-index) *
        (100% + var(--testimonial-gap)) / -2
      )
    );
  }
}

@media (max-width: 767px) {
  .dx-testimonials {
    padding-block: 88px;
  }

  .dx-testimonials__inner {
    width: calc(100% - 48px);
  }

  .dx-testimonials__head {
    gap: 24px;
    margin-bottom: 40px;
  }

  .dx-testimonials__title {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 1;
  }

  .dx-testimonials__intro {
    padding-left: 18px;
    font-size: 16px;
  }

  .dx-testimonials__track {
    --testimonial-gap: 16px;
    grid-auto-columns: 100%;
    transform: translateX(
      calc(
        var(--testimonial-index) *
        (100% + var(--testimonial-gap)) * -1
      )
    );
  }

  .dx-testimonial {
    min-height: 310px;
    padding: 28px 24px 24px;
  }

  .dx-testimonial blockquote {
    font-size: 21px;
  }

  .dx-testimonials__controls {
    margin-top: 24px;
  }

  .dx-testimonials__status {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dx-testimonials__track,
  .dx-testimonials__progress span {
    transition: none;
  }
}
