/**
 * Блок «Отзывы» — белый фон, горизонтальная карусель аватаров и текста
 */

/* Секция отзывов: только белый фон, без изображения */
.testimonials-light {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Заголовок — тёмный, жирный */
.testimonials-light .testimonials-heading {
  color: #151515;
  font-weight: 700;
  margin-bottom: 0;
}

/* Декоративная волнистая линия под заголовком */
.testimonials-light .testimonials-heading::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  margin: 20px auto 0;
  background: url("../images/line-text.png") no-repeat center;
  background-size: contain;
}
@media (min-width: 768px) {
  .testimonials-light .testimonials-heading::after {
    margin-top: 30px;
  }
}

/* Контейнер карусели аватаров — горизонтальный ряд */
.testimonials-light .carousel-child {
  max-width: 570px;
  margin: 0 auto 30px;
  padding: 0 50px;
}

/* Элемент аватара — круг, фиксированный размер */
.testimonials-light .carousel-child .item {
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  padding: 0 8px;
  box-sizing: border-box;
}

.testimonials-light .carousel-child .item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* Центральный (активный) слайд — крупнее */
.testimonials-light .carousel-child .slick-center .item {
  transform: scale(1);
}
.testimonials-light .carousel-child .slick-slide .item {
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

/* Стрелки карусели аватаров — тёмные на белом фоне */
.testimonials-light .carousel-child .slick-prev,
.testimonials-light .carousel-child .slick-next {
  width: 40px;
  height: 40px;
  z-index: 2;
}
.testimonials-light .carousel-child .slick-prev { left: 0; }
.testimonials-light .carousel-child .slick-next { right: 0; }
.testimonials-light .carousel-child .slick-prev:before,
.testimonials-light .carousel-child .slick-next:before {
  color: #151515;
  font-size: 24px;
  opacity: 0.8;
}
.testimonials-light .carousel-child .slick-prev:hover:before,
.testimonials-light .carousel-child .slick-next:hover:before {
  color: #333;
  opacity: 1;
}

/* Блок цитаты под каруселью */
.testimonials-light .carousel-parent {
  max-width: 780px;
  margin: 0 auto;
}

/* Текст отзыва — тёмный на белом */
.testimonials-light .quote-light .quote-light-cite {
  color: #151515;
  font-size: 20px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .testimonials-light .quote-light .quote-light-cite {
    font-size: 24px;
  }
}

.testimonials-light .quote-light .quote-light-caption {
  color: #6c757d;
  margin-top: 4px;
}

.testimonials-light .quote-light .quote-light-text,
.testimonials-light .quote-light .quote-light-text p {
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .testimonials-light .quote-light .quote-light-text,
  .testimonials-light .quote-light .quote-light-text p {
    font-size: 18px;
  }
}

/* Иконка кавычек — светло-серая */
.testimonials-light .quote-light-mark {
  fill: #b0b4be;
}

/* Синхронизация: скрыть неактивные слайды текста, показать активный */
.testimonials-light .carousel-parent .item > * {
  transition: opacity 0.3s ease;
}
.testimonials-light .carousel-parent .slick-slide:not(.slick-active) > * {
  opacity: 0;
  pointer-events: none;
}
.testimonials-light .carousel-parent .slick-slide.slick-active > * {
  opacity: 1;
}

/* Fallback: до инициализации Slick — аватары в одну строку */
.testimonials-light .carousel-child:not(.slick-initialized) {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.testimonials-light .carousel-child:not(.slick-initialized) .item {
  flex: 0 0 auto;
}

/* Нижний блок страницы отзывов: фон + ссылки */
.testimonials-page-links {
  background-size: cover;
  background-position: center;
}
.testimonials-page-links .breadcrumbs-custom-title {
  font-size: 1.75rem;
}
@media (min-width: 768px) {
  .testimonials-page-links {
    min-height: 280px;
  }
}

/* Grid testimonials section (from generated layout) — scoped under .testimonials-page */
.testimonials-page.testimonials-section {
  padding: 4rem 2rem;
  min-height: auto;
  display: block;
  background-color: #f5f5f7;
}

.testimonials-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.testimonials-page .section-header.fade-in {
  opacity: 1;
}

.testimonials-page .section-title {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 1rem;
}

.testimonials-page .section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-page .testimonial-grid {
  display: grid;
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonials-page .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .testimonials-page .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .testimonials-page .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonials-page .testimonial-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s ease, opacity 0.4s ease;
  opacity: 0;
}

.testimonials-page .testimonial-card.fade-in {
  opacity: 1;
}

.testimonials-page .testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonials-page .testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonials-page .testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1.2rem;
}

.testimonials-page .testimonial-info {
  flex-grow: 1;
}

.testimonials-page .testimonial-name {
  font-size: 1.25rem;
  color: #222;
  margin-bottom: 0.3rem;
}

.testimonials-page .testimonial-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.testimonials-page .tag {
  background-color: #e9ecef;
  color: #495057;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.testimonials-page .testimonial-rating {
  margin-bottom: 1rem;
}

.testimonials-page .rating-stars {
  color: #ffc107;
  font-size: 1rem;
}

.testimonials-page .rating-text {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.testimonials-page .testimonial-content {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #495057;
}

.testimonials-page .read-more-btn {
  display: inline-block;
  color: var(--color-primary, #009966);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.testimonials-page .read-more-btn:hover {
  color: var(--color-primary-hover, #007a52);
}

.testimonials-page .quote-highlight {
  background-color: rgba(230, 230, 250, 0.3);
  border-left: 4px solid #6c757d;
  padding: 2rem;
  margin: 3rem auto 0;
  max-width: 1200px;
  text-align: center;
  font-style: italic;
}

.testimonials-page .quote-text {
  color: #495057;
  font-size: 1.25rem;
  line-height: 1.8;
  margin: 0;
}

.testimonials-page .cta-section {
  margin-top: 4rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.testimonials-page .cta-section.fade-in {
  opacity: 1;
}

.testimonials-page .cta-button {
  display: inline-block;
  background-color: var(--color-primary, #009966);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.testimonials-page .cta-button:hover {
  background-color: var(--color-primary-hover, #007a52);
  color: #fff;
}
