/* =========================================
   СЕКЦИЯ ОТЗЫВОВ
   ========================================= */

.testimonials {
  padding: 80px 20px;
  background: #faf8f5;
}

.testimonials .section-title {
  margin-bottom: 50px;
}

/* === Карусель === */
.testimonials-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px; /* Место под стрелки */
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* === Карточка отзыва === */
.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 карточки на десктопе */
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.06);
  border: 1px solid #f0e6dc;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.12);
}

/* Шапка карточки */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a574 0%, #8b6f47 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-size: 17px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 4px;
}

.testimonial-stars {
  color: #f5b942;
  font-size: 16px;
  letter-spacing: 2px;
}

/* Текст отзыва */
.testimonial-text {
  color: #5a4a3a;
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  flex-grow: 1;
  position: relative;
  padding-left: 20px;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 36px;
  color: #d4a574;
  font-family: Georgia, serif;
  line-height: 1;
}

/* === Кнопки карусели === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e8dcd0;
  color: #2c1810;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(44, 24, 16, 0.08);
}

.carousel-btn:hover {
  background: #d4a574;
  color: #ffffff;
  border-color: #d4a574;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background: #ffffff;
  color: #2c1810;
  border-color: #e8dcd0;
  transform: translateY(-50%) scale(1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

/* === Точки-индикаторы === */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8dcd0;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot:hover {
  background: #d4a574;
}

.carousel-dot.active {
  background: #8b6f47;
  width: 28px;
  border-radius: 5px;
}

/* === Адаптивность === */
@media (max-width: 900px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 карточки */
  }

  .testimonials-carousel {
    padding: 0 50px;
  }
}

@media (max-width: 600px) {
  .testimonial-card {
    flex: 0 0 100%; /* 1 карточка */
  }

  .testimonials {
    padding: 50px 15px;
  }

  .testimonials-carousel {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .testimonial-card {
    padding: 24px;
  }
}
