/* Стили для страницы отзывов */

/* Убираем отступ сверху для страницы отзывов */
body.reviews-page {
  margin: 0 !important;
  padding: 0 !important;
}

body.reviews-page main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hero секция */
.reviews-hero {
  background: linear-gradient(135deg, #1b2028 0%, #2c3e50 100%);
  padding: 100px 0 80px 0;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.reviews-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/banner.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.reviews-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.reviews-hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.reviews-hero__subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Статистика отзывов */
.reviews-stats {
  display: flex !important;
  justify-content: center !important;
  gap: 30px !important;
  margin: 50px 0 0 0 !important;
  flex-wrap: wrap !important;
}

.review-stat {
  text-align: center !important;
  padding: 25px 20px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  min-width: 140px !important;
  transition: transform 0.3s ease !important;
}

.review-stat:hover {
  transform: translateY(-5px) !important;
}

.review-stat .stat-number {
  font-size: 36px !important;
  font-weight: 700 !important;
  color: #42a95f !important;
  margin-bottom: 8px !important;
}

.review-stat .stat-stars {
  font-size: 24px !important;
  margin-bottom: 10px !important;
  margin-top: 5px !important;
}

.review-stat .stat-label {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
  margin-top: 8px !important;
}

/* Фильтры отзывов */
.reviews-filters {
  padding: 40px 0;
  background: #f8f9fa;
}

.filters-container {
  text-align: center;
}

.filters-container h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  color: #6c757d;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover {
  border-color: #42a95f;
  color: #42a95f;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #42a95f;
  border-color: #42a95f;
  color: white;
}

/* Основные отзывы */
.reviews-main {
  padding: 80px 0;
  background: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.review-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #42a95f, #003087);
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.review-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.review-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #42a95f, #003087);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  border-radius: 50%;
}

.review-card__info {
  flex: 1;
}

.review-card__name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.review-card__rating {
  font-size: 16px;
  margin-bottom: 5px;
}

.review-card__date {
  font-size: 12px;
  color: #6c757d;
}

.review-card__content {
  margin-bottom: 20px;
}

.review-card__content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.review-card__category {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.review-card__verified {
  color: #4caf50;
  font-size: 12px;
  font-weight: 500;
}

/* CTA секция */
.reviews-cta {
  background: linear-gradient(135deg, #42a95f 0%, #003087 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: white;
  color: #42a95f;
  border: 2px solid white;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: white;
  color: #42a95f;
  transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .reviews-hero {
    padding: 100px 0 60px 0;
  }
  
  .reviews-hero__title {
    font-size: 36px;
  }
  
  .reviews-hero__subtitle {
    font-size: 18px;
  }
  
  .reviews-stats {
    gap: 20px !important;
  }
  
  .review-stat {
    min-width: 120px !important;
    padding: 20px 15px !important;
  }
  
  .review-stat .stat-number {
    font-size: 28px !important;
  }
  
  .review-stat .stat-stars {
    font-size: 20px !important;
  }
  
  .filter-buttons {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .review-card {
    padding: 20px;
  }
  
  .review-card__avatar {
    width: 50px;
    height: 50px;
  }
  
  .review-card__name {
    font-size: 16px;
  }
  
  .review-card__content p {
    font-size: 14px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .cta-content p {
    font-size: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .reviews-hero__title {
    font-size: 28px;
  }
  
  .reviews-hero__subtitle {
    font-size: 16px;
  }
  
  .reviews-stats {
    gap: 15px !important;
  }
  
  .review-stat {
    min-width: 100px !important;
    padding: 15px 10px !important;
  }
  
  .review-stat .stat-number {
    font-size: 24px !important;
  }
  
  .review-stat .stat-stars {
    font-size: 18px !important;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
.review-card:nth-child(7) { animation-delay: 0.7s; }
.review-card:nth-child(8) { animation-delay: 0.8s; }

/* Скрытие отзывов при фильтрации */
.review-card.hidden {
  display: none;
}

/* Эффект загрузки */
.reviews-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

.reviews-grid.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #42a95f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
