.testimonial-shell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-viewport {
  overflow: hidden;
  flex: 1;
}

.testimonial-track {
  display: flex;
  transition: transform .5s ease;
}

.testimonial {
  min-width: 100%;
  padding: 42px 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.stars {
  color: var(--accent);
  letter-spacing: .14em;
}

.testimonial p {
  max-width: 760px;
  margin: 18px auto;
  color: #523443;
  font: italic 500 1.25rem/1.65 Georgia, serif;
}

.testimonial strong,
.testimonial span {
  display: block;
}

.testimonial span {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 3px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--secondary);
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--secondary);
  color: #fff;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9c5d1;
  cursor: pointer;
}

.dot.active {
  width: 24px;
  border-radius: 99px;
  background: var(--primary);
}

@media(max-width:580px) {
  .testimonial {
    padding: 32px 20px;
  }

  .testimonial p {
    font-size: 1.05rem;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
  }
}
