:root {
  --primary: #6c5ce7;
  --primary-hover: #5649c0;
  --accent: #6c5ce7;
  --accent-600: #5a4ee0;
  --danger: #ef4444;
  --success: #00b894;
  --warning: #fdcb6e;
  --text: #2d3436;
  --text-light: #636e72;
  --ink: #111827;
  --muted: #4b5563;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --border: #dfe6e9;
  --line: #e5e7eb;
  --panel: #fff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Базовые стили */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Шапка */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  color: var(--accent);
}

.logo__icon { color: var(--accent); }
.logo__text { color: var(--accent); }
.logo__text span { color: #111827; }

/* Навигация */
.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: #4b5563;
  font-weight: 700;
  position: relative;
  padding: .5rem 0;
  text-decoration: none;
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

/* Кнопки шапки */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-btn, .cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
}

.fav-btn {
  background: #fff;
  color: var(--danger);
  box-shadow: var(--shadow);
}

.cart-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(108, 92, 231, .3);
  transition: .2s;
}

.cart-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-600);
}

.fav-count, .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* Герой-баннер */
.hero {
  position: relative;
  height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--load-more {
  margin: 3rem auto 0;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  transition: all 0.4s ease;
}

.btn--load-more:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* Карточки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

/* Контейнер для изображения */
.product-media {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #f6f7fb;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

/* Бейджи */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .35rem .6rem;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 999px;
  color: #fff;
  z-index: 2;
}

.badge.badge-discount {
  background: #ef4444;
  right: 12px;
  left: auto;
}

/* Тело карточки */
.product-body {
  padding: 16px 16px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 8px;
  text-decoration: none;
  min-height: 2.8em;
  line-height: 1.3;
}

/* Мета-информация */
.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: .92rem;
  margin-bottom: 8px;
}

.meta-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: .95rem;
}

/* Цены - ИСПРАВЛЕННЫЙ СТИЛЬ */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.price-old {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 500;
}

.price-current {
  color: var(--ink);
  font-weight: 900;
  font-size: 1.3rem;
}

/* Стиль когда есть старая цена (скидка) */
.price-row.has-discount .price-current {
  color: var(--danger) !important;
}

/* Кнопки карточки */
.card-cta {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-cta .to-cart {
  flex: 1;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border: 0;
  height: 48px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(108, 92, 231, .25);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-size: 0.95rem;
}

.card-cta .to-cart:hover {
  transform: translateY(-1px);
  background: var(--accent-600);
  box-shadow: 0 12px 22px rgba(108, 92, 231, .3);
}

.card-cta .to-cart.success {
  background: #10b981 !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, .35);
}

.card-cta .to-cart.success::after {
  content: "✓";
  font-weight: 900;
  margin-left: .35rem;
}

.card-cta .fav-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.card-cta .fav-icon:hover {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.card-cta .fav-icon.favorited svg {
  fill: red;
}

/* Анимации карточек */
@keyframes bump {
  0% { transform: scale(1); }
  10% { transform: scale(1.06); }
  30% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes heart-pop {
  0% { transform: scale(0.6); opacity: .2; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.to-cart.success, .to-cart.bump {
  animation: bump .35s ease;
}

.fav-icon.pop svg {
  animation: heart-pop .28s ease;
}

/* Секции */
.section {
  padding: 4rem 0;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--ink);
}

/* Секция отзывов */
.reviews-section {
  margin: 4rem 0;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.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;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Статистика отзывов */
.reviews-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.stat-item:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.1);
  border-color: rgba(108, 92, 231, 0.2);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6c5ce7;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-label {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Сортировка */
#review-sort-container {
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.reviews-sort {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-sort label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
}

.sort-select {
  padding: 0.6rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #374151;
  background: white;
  cursor: pointer;
  min-width: 220px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.sort-select:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.sort-select:hover {
  border-color: #5a4ee0;
}

/* Контейнер списка отзывов */
.reviews-list-container {
  margin-bottom: 2.5rem;
  position: relative;
}

/* Десктоп версия - вертикальный список */
.reviews-desktop-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 400px;
  padding-right: 0.5rem;
}

/* Карточка отзыва */
.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);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  margin-bottom: 0.5rem;
  min-height: 140px;
  animation: slideUp 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);
}

/* Заголовок карточки */
.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;
  white-space: normal;
  overflow-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.review-text::-webkit-scrollbar {
  width: 4px;
}

.review-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.review-text::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* Форма отзыва */
.review-form-container {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(229, 231, 235, 0.7);
  margin-top: 3rem;
}

.review-form__header {
  margin-bottom: 2rem;
}

.review-form__title {
  font-size: 1.5rem;
  margin-bottom: 0.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;
}

.review-form__subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

/* Форма */
.review-form {
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.required {
  color: #ef4444;
}

.form-input, .form-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-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #6c5ce7;
  background: white;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.char-counter {
  text-align: right;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Рейтинг звезды */
.rating-container {
  margin-top: 0.5rem;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.4rem;
}

.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;
}

.rating-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Footer формы */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.form-agreement {
  flex: 1;
  min-width: 250px;
}

.agreement-label {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.agreement-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.form-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #6c5ce7;
}

.form-note p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-note i {
  color: #6c5ce7;
  margin-top: 0.1rem;
}

/* Пустое состояние */
.empty-reviews {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.empty-reviews i {
  font-size: 4rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-reviews h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
  font-weight: 700;
}

.empty-reviews p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Пагинация */
.reviews-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.page-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;
}

.page-btn:hover:not(:disabled) {
  background: #6c5ce7;
  color: white;
  border-color: #6c5ce7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-number {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.page-number:hover {
  background: #f9fafb;
  border-color: #6c5ce7;
  color: #6c5ce7;
}

.page-number.active {
  background: #6c5ce7;
  color: white;
  border-color: #6c5ce7;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.page-info {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  margin-left: 1rem;
  white-space: nowrap;
}

/* SEO блоки */
.seo-block {
  max-width: 1550px;
  margin: 40px auto;
  padding: 30px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Manrope', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.seo-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
}

.seo-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #2a7ae2;
}

.seo-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.seo-list {
  margin-left: 20px;
  list-style-type: disc;
  margin-bottom: 20px;
}

.seo-list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Подвал */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 32px 0 16px;
  color: var(--text-light);
}

.footer .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: flex-start;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.footer__logo .logo__icon { color: var(--primary); }
.footer__logo .logo__text { color: var(--primary); }
.footer__logo .logo__text span { color: var(--text); }

.footer__about { margin: 10px 0 14px; color: var(--text-light); }

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.footer__social a:hover {
  transform: translateY(-2px);
  background: #e5e7eb;
}

.footer__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.footer__contacts p {
  margin: .25rem 0;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.footer__contacts a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed #d1d5db;
}

.footer__contacts a:hover {
  border-bottom-color: transparent;
  color: var(--primary);
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #6b7280;
  font-size: .95rem;
}

.footer__bottom p {
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #6b7280;
  text-decoration: none;
}

.legal-links a:hover {
  color: #111827;
}

/* Декоративные элементы */
.decorative-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.05);
  filter: blur(40px);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation: float 15s infinite ease-in-out;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
  animation: float 12s infinite ease-in-out reverse;
}

.circle-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 10%;
  animation: float 10s infinite ease-in-out;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .header__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav__list {
    gap: 1rem;
  }

  .hero {
    height: 400px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .product-media {
    height: 160px;
  }

  .product-title {
    font-size: .9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .price-current {
    font-size: 1.1rem;
  }
  
  .price-old {
    font-size: 0.85rem;
  }

  .card-cta .to-cart {
    height: 40px;
    font-size: .85rem;
  }

  .card-cta .fav-icon {
    width: 40px;
    height: 40px;
  }

  .reviews-section {
    margin: 2.5rem 0;
    padding: 2.5rem 0;
    border-radius: 20px;
  }

  .review-form-container {
    padding: 1.5rem;
  }

  .review-card {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .review-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .review-author {
    font-size: 1rem;
  }

  .review-text {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  
  #review-sort-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .reviews-sort {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sort-select {
    min-width: 100%;
  }
  
  .reviews-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1.25rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    height: 300px;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .product-media {
    height: 140px;
  }

  .reviews-section {
    padding: 2rem 0;
  }

  .review-form-container {
    padding: 1.25rem;
  }

  .rating-stars label {
    font-size: 1.5rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.75rem 1rem;
  }
  
  .reviews-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .review-author {
    font-size: 0.9rem;
  }
  
  .review-text {
    font-size: 0.85rem;
    line-height: 1.45;
  }
}
/* =========================================== */
/* МОБИЛЬНАЯ ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА ОТЗЫВОВ */
/* =========================================== */

/* МОБИЛЬНАЯ ВЕРСИЯ - горизонтальная прокрутка */
.reviews-mobile-scroll-container {
  display: none; /* Скрыто по умолчанию */
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.25rem;
  padding: 1rem 0 1.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #6c5ce7 #f1f1f1;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  position: relative;
  cursor: grab;
}

.reviews-mobile-scroll-container:active {
  cursor: grabbing;
}

/* Стили для скроллбара */
.reviews-mobile-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.reviews-mobile-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
  margin: 0 1rem;
}

.reviews-mobile-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  border-radius: 3px;
}

.reviews-mobile-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #5a4ee0, #8e84fc);
}

/* Карточки отзывов в мобильной версии */
.reviews-mobile-scroll-container .review-card {
  flex: 0 0 85vw;
  max-width: 320px;
  min-height: 220px;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
}

/* Индикатор прокрутки для мобильных */
.mobile-scroll-indicator {
  display: none;
  text-align: center;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.scroll-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 500;
}

.scroll-info i {
  font-size: 0.8rem;
  color: #6c5ce7;
  animation: bounceHorizontal 2s infinite;
}

.scroll-info i:first-child {
  animation-delay: 0.2s;
}

.scroll-info i:last-child {
  animation-delay: 0.4s;
}

@keyframes bounceHorizontal {
  0%, 100% { 
    transform: translateX(0); 
  }
  25% { 
    transform: translateX(-3px); 
  }
  75% { 
    transform: translateX(3px); 
  }
}

/* Анимация для карточек */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
  .reviews-section {
    margin: 2.5rem 0;
    padding: 2rem 0.75rem;
    border-radius: 20px;
  }
  
  .reviews-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Мобильная версия - показываем горизонтальный скролл */
  .reviews-mobile-scroll-container {
    display: flex;
  }
  
  /* Скрываем обычный список на мобильных */
  .reviews-desktop-container {
    display: none !important;
  }
  
  /* Улучшаем карточки для мобильных */
  .reviews-mobile-scroll-container .review-card {
    flex: 0 0 85vw;
    max-width: 300px;
    min-height: 240px;
    padding: 1.25rem;
  }
  
  .review-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .review-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  .review-author {
    font-size: 0.95rem;
  }
  
  .review-date {
    font-size: 0.75rem;
  }
  
  .review-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
  }
  
  /* Пагинация - скрываем на мобильных */
  .reviews-pagination {
    display: none !important;
  }
  
  /* Показываем индикатор прокрутки */
  .mobile-scroll-indicator {
    display: block !important;
  }
  
  /* Форма сортировки */
  #review-sort-container {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .sort-select {
    min-width: 100%;
  }
}

@media (min-width: 769px) {
  /* На десктопе показываем обычный список */
  .reviews-mobile-scroll-container {
    display: none !important;
  }
  
  .reviews-desktop-container {
    display: flex !important;
  }
  
  .mobile-scroll-indicator {
    display: none !important;
  }
  
  .reviews-pagination {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .reviews-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.75rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .reviews-mobile-scroll-container .review-card {
    flex: 0 0 90vw;
    max-width: 280px;
    min-height: 220px;
    padding: 1rem;
  }
  
  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .review-author {
    font-size: 0.9rem;
  }
  
  .review-text {
    font-size: 0.85rem;
    line-height: 1.45;
  }
  
  .scroll-info {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .review-card {
    padding-left: 0;
    padding-bottom: 16px;
  }

  .review-card::before {
    top: auto;
    bottom: 0;
    left: 12px;
    right: 12px;
    width: auto;
    height: 4px;
  }
}
