/**
 * ═══════════════════════════════════════════════════════════════
 * 👥 SOCIAL PROOF STYLES (ТЗ v8.5)
 * ═══════════════════════════════════════════════════════════════
 */

.social-proof-wrapper {
    margin-top: var(--spacing-4, 1rem);
    text-align: center;
}

.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3, 0.75rem);
}

.social-proof-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.social-proof-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.social-proof-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-left: -12px;
}

.social-proof-text {
    font-size: 0.9375rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.5;
}

.social-proof-text strong {
    color: var(--text-primary, #1f2937);
    font-weight: 700;
}

@media (max-width: 768px) {
    .social-proof-avatar {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }
    
    .social-proof-more {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        border-width: 2px;
    }
    
    .social-proof-text {
        font-size: 0.875rem;
    }
}

/* Testimonials (SEO-first static) */
.testimonials-section-modern {
  padding: 4rem 2rem;
}

.testimonials-container-modern {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header-modern {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-title-modern {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.testimonials-subtitle-modern {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.testimonials-stats-modern {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card-modern {
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-number-modern {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
}

.stat-label-modern {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.testimonials-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.testimonial-card-modern {
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.testimonial-rating-modern {
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.star-modern {
  display: inline-block;
  transform: translateY(-1px);
}

.testimonial-text-modern {
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
}

.testimonial-author-modern {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.author-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.author-info-modern {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.author-name-modern {
  font-weight: 700;
}

.author-details-modern {
  font-size: 0.95rem;
  opacity: 0.85;
}

.author-verified-modern {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .testimonials-stats-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimonials-grid-modern {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SEO fallback (без JS)
   ═══════════════════════════════════════════════════════════════ */
.testimonials-fallback {
  position: relative;
  z-index: 2;
}
.testimonials-seo-fallback h2,
.testimonials-seo h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.testimonials-seo-fallback > p:first-of-type,
.testimonials-seo > p:first-of-type {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0 0 1.5rem;
}
.testimonials-seo-list {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.testimonials-seo-list article p {
  margin: 0;
  line-height: 1.6;
}
.testimonials-disclaimer {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 1rem 0 0;
}

/* Скрыть SEO-фолбэк и показать PROD UI только после успешной инициализации JS */
.testimonials-prod-root {
  display: none;
}
html.has-testimonials-enhanced .testimonials-seo-fallback {
  display: none;
}
html.has-testimonials-enhanced .testimonials-prod-root {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   PROD-дизайн отзывов (JS enhancement: карточки, статистика, видео)
   ═══════════════════════════════════════════════════════════════ */
.testimonials-section-modern {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}
.testimonials-section-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.testimonials-section-modern .testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.testimonials-section-modern .testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-section-modern .testimonials-main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.testimonials-section-modern .testimonials-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem;
}
.testimonials-section-modern .testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.testimonials-section-modern .testimonial-stat {
  text-align: center;
}
.testimonials-section-modern .testimonial-stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
}
.testimonials-section-modern .testimonial-stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.testimonials-section-modern .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.testimonials-section-modern .testimonial-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.testimonials-section-modern .testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.testimonials-section-modern .testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 20px 60px rgba(251, 191, 36, 0.2);
}
.testimonials-section-modern .testimonial-card:hover::before {
  transform: scaleX(1);
}
.testimonials-section-modern .testimonial-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.testimonials-section-modern .testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.testimonials-section-modern .testimonial-user-info {
  flex: 1;
}
.testimonials-section-modern .testimonial-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.testimonials-section-modern .testimonial-verified {
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonials-section-modern .testimonial-verified svg {
  width: 12px;
  height: 12px;
  color: white;
}
.testimonials-section-modern .testimonial-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.testimonials-section-modern .testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}
.testimonials-section-modern .testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 3rem;
  color: rgba(251, 191, 36, 0.3);
  font-family: serif;
}
.testimonials-section-modern .testimonial-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.testimonials-section-modern .testimonial-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.testimonials-section-modern .testimonial-score-value {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.testimonials-section-modern .testimonial-score-value--after {
  background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.testimonials-section-modern .testimonial-score-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.25rem 0 0;
}
.testimonials-section-modern .testimonial-arrow {
  font-size: 1.5rem;
  color: rgba(251, 191, 36, 0.8);
  margin: 0 0.5rem;
}
.testimonials-section-modern .testimonial-improvement {
  background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.testimonials-section-modern .testimonial-stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.25rem;
}
.testimonials-section-modern .testimonial-video-link {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}
.testimonials-section-modern .testimonial-video-link:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}
.testimonials-section-modern .testimonial-video-link svg {
  width: 18px;
  height: 18px;
}
.testimonials-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.testimonials-video-modal video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}
.testimonials-video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .testimonials-section-modern {
    padding: 3rem 1rem;
  }
  .testimonials-section-modern .testimonials-stats {
    gap: 2rem;
  }
  .testimonials-section-modern .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testimonials-section-modern .testimonial-card {
    padding: 1.5rem;
  }
}

