/* ==================================================== 
   REVIEWS.CSS - стили только для отзывов 
   ==================================================== */ 
 
/* Общие стили секции отзывов */ 
.reviews-section { 
  margin: 4rem 0; 
  padding: 4rem 0; 
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
  border-radius: 24px; 
  position: relative; 
} 
 
.reviews-section::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background:  
    radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.08) 0%, transparent 40%), 
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 40%); 
  z-index: 0; 
  border-radius: 24px; 
} 
 
.reviews-section .container { 
  position: relative; 
  z-index: 1; 
} 
 
/* Заголовок секции */ 
.section__title { 
  font-size: 2.5rem; 
  font-weight: 800; 
  text-align: center; 
  margin-bottom: 1rem; 
  color: #1f2937; 
  position: relative; 
} 
 
.section__title::after { 
  content: ''; 
  position: absolute; 
  bottom: -10px; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 80px; 
  height: 4px; 
  background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%); 
  border-radius: 2px; 
} 
 
.section__subtitle { 
  text-align: center; 
  color: #6b7280; 
  font-size: 1.1rem; 
  margin-bottom: 3rem; 
  max-width: 600px; 
  margin-left: auto; 
  margin-right: auto; 
} 
 
/* Контейнер отзывов */ 
.reviews-container { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 3.5rem; 
  margin-top: 3rem; 
  align-items: start; 
} 
 
@media (max-width: 992px) { 
  .reviews-container { 
    grid-template-columns: 1fr; 
    gap: 3rem; 
  } 
} 
 
/* Список отзывов */ 
.reviews-list { 
  display: flex; 
  flex-direction: column; 
  gap: 1.75rem; 
  min-height: 400px; 
} 
 
/* Карточка отзыва */ 
.review-card { 
  background: rgba(255, 255, 255, 0.98); 
  backdrop-filter: blur(10px); 
  border: 1px solid rgba(229, 231, 235, 0.6); 
  border-radius: 18px; 
  padding: 1.5rem; 
  box-shadow:  
    0 8px 25px rgba(0, 0, 0, 0.04), 
    0 1px 2px rgba(0, 0, 0, 0.03); 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  position: relative; 
  overflow: hidden; 
  animation: fadeInUp 0.5s ease forwards; 
  opacity: 0; 
} 
 
.review-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 5px; 
  height: 100%; 
  background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 100%); 
  border-radius: 2.5px 0 0 2.5px; 
} 
 
.review-card:hover { 
  transform: translateY(-4px); 
  box-shadow:  
    0 15px 35px rgba(108, 92, 231, 0.12), 
    0 3px 10px rgba(0, 0, 0, 0.06); 
  border-color: rgba(108, 92, 231, 0.25); 
} 
 
/* Заголовок карточки */ 
.review-header { 
  display: flex; 
  align-items: flex-start; 
  gap: 1rem; 
  margin-bottom: 0.75rem; 
} 
 
.review-avatar { 
  width: 52px; 
  height: 52px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: white; 
  font-weight: 700; 
  font-size: 1.3rem; 
  flex-shrink: 0; 
  border: 3px solid white; 
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.15); 
} 
 
.review-info { 
  flex: 1; 
  min-width: 0; 
} 
 
.review-author { 
  font-weight: 700; 
  color: #1f2937; 
  font-size: 1.05rem; 
  display: block; 
  margin-bottom: 0.2rem; 
  line-height: 1.4; 
  word-break: break-word; 
} 
 
.review-date { 
  font-size: 0.8rem; 
  color: #6b7280; 
  display: block; 
  margin-bottom: 0.5rem; 
} 
 
/* Звезды рейтинга */ 
.review-rating { 
  display: flex; 
  gap: 1px; 
  margin-top: 0.25rem; 
} 
 
.review-rating .star { 
  color: #e5e7eb; 
  font-size: 1rem; 
  position: relative; 
  line-height: 1; 
} 
 
.review-rating .star.filled { 
  color: #fbbf24; 
} 
 
/* Текст отзыва */ 
.review-text { 
  color: #374151; 
  line-height: 1.6; 
  font-size: 0.95rem; 
  margin: 0.75rem 0 0 0; 
  padding: 0.75rem 0 0 0; 
  position: relative; 
  border-top: 1px solid #f3f4f6; 
  word-break: break-word; 
  overflow-wrap: break-word; 
} 
 
/* Форма отзыва */ 
.review-form { 
  background: white; 
  padding: 2rem; 
  border-radius: 20px; 
  box-shadow:  
    0 15px 30px rgba(0, 0, 0, 0.07), 
    0 1px 3px rgba(0, 0, 0, 0.04); 
  border: 1px solid rgba(229, 231, 235, 0.7); 
  position: sticky; 
  top: 2rem; 
} 
 
.review-form__title { 
  font-size: 1.5rem; 
  margin-bottom: 1.5rem; 
  color: #1f2937; 
  font-weight: 700; 
  position: relative; 
  padding-bottom: 0.75rem; 
} 
 
.review-form__title::after { 
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 50px; 
  height: 3px; 
  background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%); 
  border-radius: 1.5px; 
} 
 
/* Элементы формы */ 
.form-group { 
  margin-bottom: 1.5rem; 
} 
 
.form-group label { 
  display: block; 
  margin-bottom: 0.5rem; 
  font-weight: 600; 
  color: #374151; 
  font-size: 0.9rem; 
} 
 
.form-group input, 
.form-group textarea { 
  width: 100%; 
  padding: 0.9rem 1.1rem; 
  border: 1.5px solid #d1d5db; 
  border-radius: 10px; 
  font-family: 'Manrope', sans-serif; 
  font-size: 0.95rem; 
  transition: all 0.2s ease; 
  background: #f9fafb; 
  box-sizing: border-box; 
} 
 
.form-group input:focus, 
.form-group textarea:focus { 
  outline: none; 
  border-color: #6c5ce7; 
  background: white; 
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1); 
} 
 
.form-group textarea { 
  min-height: 100px; 
  resize: vertical; 
  line-height: 1.5; 
} 
 
/* Звезды рейтинга в форме */ 
.rating-stars { 
  display: flex; 
  flex-direction: row-reverse; 
  gap: 0.4rem; 
  margin-top: 0.5rem; 
} 
 
.rating-stars input { 
  display: none; 
} 
 
.rating-stars label { 
  font-size: 1.75rem; 
  color: #e5e7eb; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  line-height: 1; 
} 
 
.rating-stars label:hover, 
.rating-stars label:hover ~ label { 
  color: #fbbf24; 
  transform: scale(1.05); 
} 
 
.rating-stars input:checked ~ label { 
  color: #f59e0b; 
} 
 
/* Кнопка отправки */ 
.form-actions { 
  margin-top: 2rem; 
} 
 
.form-actions .btn--primary { 
  width: 100%; 
  padding: 1rem 2rem; 
  font-size: 1rem; 
  font-weight: 600; 
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); 
  border: none; 
  border-radius: 10px; 
  color: white; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
  position: relative; 
  overflow: hidden; 
} 
 
.form-actions .btn--primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25); 
} 
 
.form-actions .btn--primary:active { 
  transform: translateY(0); 
} 
 
/* Сортировка отзывов */ 
.reviews-controls { 
  margin-bottom: 2rem; 
  padding: 1rem; 
  background: rgba(255, 255, 255, 0.9); 
  border-radius: 12px; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
} 
 
.reviews-sort { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
} 
 
.reviews-sort label { 
  font-weight: 600; 
  color: #1f2937; 
  white-space: nowrap; 
} 
 
.sort-select { 
  padding: 0.5rem 1rem; 
  border: 2px solid #e5e7eb; 
  border-radius: 8px; 
  font-family: 'Manrope', sans-serif; 
  font-size: 0.95rem; 
  color: #1f2937; 
  background: white; 
  cursor: pointer; 
  min-width: 200px; 
} 
 
.sort-select:focus { 
  outline: none; 
  border-color: #6c5ce7; 
} 
 
/* Пагинация */ 
.reviews-pagination { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 1rem; 
  margin-top: 3rem; 
  padding: 1.5rem; 
  background: rgba(255, 255, 255, 0.7); 
  border-radius: 16px; 
  backdrop-filter: blur(10px); 
  border: 1px solid rgba(229, 231, 235, 0.6); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
} 
 
.pagination-btn { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  background: white; 
  border: 2px solid #e5e7eb; 
  color: #6c5ce7; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  font-size: 1rem; 
} 
 
.pagination-btn:hover:not(:disabled) { 
  background: #6c5ce7; 
  color: white; 
  border-color: #6c5ce7; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25); 
} 
 
.pagination-btn:disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  transform: none !important; 
} 
 
.pagination-numbers { 
  display: flex; 
  gap: 0.5rem; 
} 
 
.page-number { 
  width: 44px; 
  height: 44px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 12px; 
  background: white; 
  border: 2px solid #e5e7eb; 
  color: #4b5563; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  font-size: 0.95rem; 
} 
 
.page-number:hover { 
  background: #f3f4f6; 
  border-color: #d1d5db; 
  transform: translateY(-1px); 
} 
 
.page-number.active { 
  background: #6c5ce7; 
  color: white; 
  border-color: #6c5ce7; 
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2); 
} 
 
.page-dots { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 44px; 
  height: 44px; 
  color: #9ca3af; 
  font-weight: 600; 
  user-select: none; 
} 
 
.pagination-info { 
  font-size: 0.9rem; 
  color: #6b7280; 
  font-weight: 500; 
  margin-left: 1rem; 
  padding: 0.5rem 1rem; 
  background: #f9fafb; 
  border-radius: 10px; 
  border: 1px solid #e5e7eb; 
} 
 
/* Статистика отзывов */ 
.reviews-stats { 
  background: white; 
  padding: 1.5rem; 
  border-radius: 18px; 
  margin-top: 3rem; 
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04); 
  border: 1px solid #f3f4f6; 
} 
 
.reviews-stats__title { 
  font-size: 1.3rem; 
  margin-bottom: 1.25rem; 
  color: #1f2937; 
  font-weight: 700; 
  text-align: center; 
} 
 
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 1.25rem; 
  max-width: 800px; 
  margin: 0 auto; 
} 
 
.stat-item { 
  text-align: center; 
  padding: 1.25rem; 
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
  border-radius: 14px; 
  transition: transform 0.3s ease; 
  border: 1px solid #e5e7eb; 
} 
 
.stat-item:hover { 
  transform: translateY(-3px); 
  background: white; 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
} 
 
.stat-value { 
  font-size: 2rem; 
  font-weight: 800; 
  color: #6c5ce7; 
  line-height: 1; 
  margin-bottom: 0.5rem; 
  font-family: 'Manrope', sans-serif; 
} 
 
.stat-label { 
  font-size: 0.9rem; 
  color: #6b7280; 
  font-weight: 600; 
} 
 
/* Пустое состояние */ 
.empty-reviews { 
  text-align: center; 
  padding: 2.5rem 1.5rem; 
  background: rgba(255, 255, 255, 0.9); 
  border-radius: 18px; 
  border: 2px dashed #d1d5db; 
  margin: 1rem 0; 
} 
 
.empty-reviews i { 
  font-size: 2.5rem; 
  color: #a29bfe; 
  margin-bottom: 1rem; 
  opacity: 0.7; 
} 
 
.empty-reviews h3 { 
  font-size: 1.3rem; 
  color: #1f2937; 
  margin-bottom: 0.5rem; 
  font-weight: 700; 
} 
 
.empty-reviews p { 
  color: #6b7280; 
  max-width: 400px; 
  margin: 0 auto; 
  font-size: 0.95rem; 
} 
 
/* Уведомления и загрузка */ 
.review-notification { 
  position: fixed; 
  top: 20px; 
  right: 20px; 
  z-index: 9999; 
  background: white; 
  padding: 1.25rem 1.5rem; 
  border-radius: 12px; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
  border-left: 4px solid #6c5ce7; 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  transform: translateX(120%); 
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  max-width: 400px; 
  animation: slideInRight 0.5s forwards; 
} 
 
.review-notification.show { 
  transform: translateX(0); 
} 
 
.review-notification.success { 
  border-left-color: #10b981; 
} 
 
.review-notification.error { 
  border-left-color: #ef4444; 
} 
 
.review-notification i { 
  font-size: 1.5rem; 
} 
 
.review-notification.success i { 
  color: #10b981; 
} 
 
.review-notification.error i { 
  color: #ef4444; 
} 
 
.review-notification.info i { 
  color: #6c5ce7; 
} 
 
.notification-content { 
  flex: 1; 
} 
 
.notification-content h4 { 
  margin: 0 0 0.25rem 0; 
  font-size: 1rem; 
  font-weight: 700; 
  color: #1f2937; 
} 
 
.notification-content p { 
  margin: 0; 
  font-size: 0.9rem; 
  color: #6b7280; 
} 
 
.review-notification .close-btn { 
  background: none; 
  border: none; 
  color: #9ca3af; 
  cursor: pointer; 
  font-size: 1.2rem; 
  padding: 0.25rem; 
  transition: color 0.2s; 
} 
 
.review-notification .close-btn:hover { 
  color: #ef4444; 
} 
 
/* Индикатор загрузки */ 
.review-loading { 
  display: none; 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(255, 255, 255, 0.9); 
  border-radius: 10px; 
  z-index: 10; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  gap: 1rem; 
} 
 
.review-loading.active { 
  display: flex; 
} 
 
.loading-spinner { 
  width: 40px; 
  height: 40px; 
  border: 3px solid #f3f4f6; 
  border-top-color: #6c5ce7; 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
} 
 
.loading-text { 
  color: #6b7280; 
  font-size: 0.9rem; 
  font-weight: 600; 
} 
 
/* Кнопка с индикатором загрузки */ 
.btn--loading { 
  position: relative; 
  pointer-events: none; 
  opacity: 0.8; 
} 
 
.btn--loading::after { 
  content: ''; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 20px; 
  height: 20px; 
  border: 2px solid rgba(255, 255, 255, 0.3); 
  border-top-color: white; 
  border-radius: 50%; 
  animation: spin 0.8s linear infinite; 
} 

/* ИНДИКАТОР ГОРИЗОНТАЛЬНОЙ ПРОКРУТКИ ДЛЯ МОБИЛЬНЫХ */
.mobile-scroll-indicator {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0 0 1rem 0;
  text-align: center;
  border: 1px solid rgba(108, 92, 231, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: #4b5563;
  display: none; /* По умолчанию скрыт */
}

.scroll-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.scroll-info i {
  color: #6c5ce7;
  font-size: 0.9rem;
}

/* МОБИЛЬНАЯ ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА С МЕНЬШИМ ЗАЗОРОМ */
@media (max-width: 768px) {
  .reviews-list {
    /* Горизонтальная прокрутка */
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem; /* Уменьшаем зазор между карточками */
    padding: 1rem 0.5rem; /* Уменьшаем отступы */
    margin: 0 -0.5rem 1rem; /* Отрицательные margin для уменьшения зазора */
    min-height: auto;
    scrollbar-width: thin;
    scrollbar-color: #6c5ce7 #f1f1f1;
  }
  
  /* Стилизация скроллбара */
  .reviews-list::-webkit-scrollbar {
    height: 4px;
  }
  
  .reviews-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
    margin: 0 0.5rem;
  }
  
  .reviews-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
    border-radius: 2px;
  }
  
  .reviews-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #5649c0 0%, #8a7dfe 100%);
  }
  
  /* Карточки отзывов - занимают 90% ширины с минимальным зазором */
  .review-card {
    flex: 0 0 calc(90% - 0.5rem); /* Уменьшаем ширину карточки и зазор */
    max-width: calc(90% - 0.5rem);
    margin: 0;
    scroll-snap-align: start;
    animation: none;
    opacity: 1;
  }
  
  /* Первая карточка с небольшим отступом слева */
  .reviews-list:first-child .review-card:first-child {
    margin-left: 0.5rem;
  }
  
  /* Последняя карточка с небольшим отступом справа */
  .reviews-list:last-child .review-card:last-child {
    margin-right: 0.5rem;
  }
  
  /* Показываем индикатор на мобильных */
  .mobile-scroll-indicator {
    display: block !important;
  }
  
  /* Улучшаем читаемость текста */
  .review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
  }
  
  .review-author {
    font-size: 1rem;
  }
  
  /* Форма */
  .review-form {
    position: static;
    margin-top: 1.5rem;
  }
  
  /* Скрываем пагинацию на мобильных */
  .reviews-pagination {
    display: none !important;
  }
  
  /* Уменьшаем отступы секции */
  .reviews-section {
    margin: 2.5rem 0;
    padding: 2.5rem 0;
  }
  
  .section__title {
    font-size: 2rem;
  }
  
  .review-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* Для очень маленьких экранов еще уменьшаем зазор */
@media (max-width: 480px) {
  .reviews-list {
    gap: 0.5rem; /* Еще меньше зазор */
  }
  
  .review-card {
    flex: 0 0 calc(88% - 0.5rem);
    max-width: calc(88% - 0.5rem);
  }
  
  .review-card {
    padding: 1.25rem;
  }
  
  .section__title {
    font-size: 1.75rem;
  }
  
  .review-form {
    padding: 1.5rem;
  }
}

/* Для больших экранов скрываем индикатор */
@media (min-width: 769px) {
  .mobile-scroll-indicator {
    display: none !important;
  }
  
  .reviews-list {
    flex-direction: column;
    overflow: visible;
    gap: 1.75rem;
    padding: 0;
    margin: 0;
  }
  
  .review-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Анимации */ 
@keyframes fadeInUp { 
  from { 
    opacity: 0; 
    transform: translateY(15px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
} 
 
@keyframes spin { 
  to { transform: rotate(360deg); } 
} 
 
@keyframes slideInRight { 
  from { 
    transform: translateX(120%); 
  } 
  to { 
    transform: translateX(0); 
  } 
}
@media (max-width: 768px) {
  .reviews-stats {
    padding: 1rem 1.25rem;
  }

  .stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .stat-item {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .stat-value {
    font-size: 1.35rem; /* было ~1.1 */
    font-weight: 800;
    margin-bottom: 0.15rem;
  }

  .stat-label {
    font-size: 0.8rem; /* было ~0.7 */
    font-weight: 600;
    line-height: 1.2;
  }
}
