/* =====================================================================
                    СЕКЦИЯ ОТЗЫВОВ
   ===================================================================== */

.reviews-section {
  padding: 3rem var(--padding-x);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  margin: 2rem 0;
}

.reviews-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.reviews-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
}

.reviews-section__subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.reviews-section__carousel {
  position: relative;
  margin-bottom: 1.5rem;
}

.reviews-section__track {
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1rem 0;
  position: relative;
  isolation: isolate;
}

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.6;
  transform: scale(0.95);
  position: relative;
  z-index: 1;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.review-card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.review-card__avatar-initial {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.review-card__info {
  flex: 1;
}

.review-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem;
}

.review-card__location {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.review-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 1rem;
}

.review-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
}

.review-card__property {
  font-weight: 600;
  color: #dc2626;
}

.reviews-section__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviews-section__nav:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.reviews-section__nav:active {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #374151;
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviews-section__nav:active:hover {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #374151;
}

.reviews-section__nav--prev {
  left: -24px;
}

.reviews-section__nav--next {
  right: -24px;
}

.reviews-section__indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.reviews-section__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.reviews-section__indicator:hover {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.2);
}

.reviews-section__indicator.is-active {
  background: #dc2626;
  border-color: #dc2626;
  width: 32px;
  border-radius: 6px;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .reviews-section__nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .reviews-section__nav--prev {
    left: 8px;
  }

  .reviews-section__nav--next {
    right: 8px;
  }

  .reviews-section__track {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .review-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 2rem var(--padding-x);
  }

  .reviews-section__title {
    font-size: 1.5rem;
  }

  .reviews-section__nav {
    display: flex;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #e5e7eb;
  }

  .reviews-section__nav--prev {
    left: 4px;
  }

  .reviews-section__nav--next {
    right: 4px;
  }

  .reviews-section__track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reviews-section__nav:active {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #374151;
  }

  .reviews-section__nav:active:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #374151;
  }

  .review-card {
    padding: 1.25rem;
  }

  .review-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .review-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
