/* === ГЛОБАЛЬНЫЕ СТИЛИ (Сброс и База) === */
:root {
  --color-primary: #9333ea;
  --color-primary-hover: #7e22ce;
  --color-dark: #111827;
  --color-yellow: #facc15;
  --color-text-gray: #6b7280;
  --color-text-dark: #1f2937;
}


a { text-decoration: none; }

/* Кнопки */
.btn-primary-seo {
  background: var(--color-primary);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(147, 51, 234, 0.39);
  display: inline-block;
}
.btn-primary-seo:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.bb-header-h2 {
  font-weight: 800;
  color: #111827;
  font-size: 32px;
  margin-bottom: 10px;
}

/* === БЛОК 1: HERO SECTION === */
.hero-reviews-section {
  background-color: var(--color-dark);
  color: #ffffff;
  padding: 80px 0 100px 0;
  position: relative;
  overflow: hidden;
}

/* Декор фона */
.hero-reviews-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(17, 24, 39, 0) 70%);
  pointer-events: none;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Карточки рейтингов (Твой запрос) */
.trust-badges-grid {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.trust-card {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 200px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 51, 234, 0.5);
}

.trust-logo-wrap {
  width: 42px; height: 42px;
  background: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.trust-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.trust-info { display: flex; flex-direction: column; }
.trust-source-name { font-size: 12px; color: #9ca3af; line-height: 1; margin-bottom: 6px; }
.trust-rating-row { display: flex; align-items: center; gap: 8px; }
.trust-score { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.trust-stars { display: flex; gap: 1px; }
.trust-stars svg { width: 14px; height: 14px; fill: var(--color-yellow); }

/* === БЛОК 2: ВИДЕО ОТЗЫВЫ === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  border: 1px solid #e5e7eb;
}
.video-card:hover { transform: translateY(-5px); }

.video-thumb {
  position: relative;
  height: 300px;
  background-color: #000;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s;
}
.video-thumb:hover img { opacity: 0.8; }

.play-btn {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 4px;
}
.video-thumb:hover .play-btn { transform: scale(1.1); background: #fff; }

.video-content { padding: 25px; }
.video-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; color: var(--color-dark); }
.video-result { color: #059669; font-weight: 600; font-size: 14px; margin-bottom: 15px; display: block; }
.case-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
}
.case-link:hover { border-bottom-color: var(--color-primary); }

/* === БЛОК 3: ТЕКСТОВЫЕ ОТЗЫВЫ + ФИЛЬТР === */
.reviews-filter {
  display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.filter-btn:hover { background: #f3f4f6; }
.text-reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px;
}
/* Анимация фильтрации */
.review-text-card {
  background: #fff; padding: 30px; border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f3f4f6;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.review-avatar {
  width: 50px; height: 50px; border-radius: 50%; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--color-primary); font-size: 20px;
}
.review-source-link {
  font-size: 13px; color: #9ca3af; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.review-source-link:hover { color: var(--color-primary); }

/* === БЛОК 4: БЛАГОДАРНОСТИ === */
.letters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 30px;
}
.letter-item { text-align: center; }
.letter-img {
  width: 100%;
  border: 1px solid #e5e7eb;
  padding: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  cursor: zoom-in;
}
.letter-img:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* === МОДАЛЬНОЕ ОКНО === */
.custom-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); z-index: 9999;
  display: none; justify-content: center; align-items: center;
  backdrop-filter: blur(5px);
}
.custom-modal-box {
  background: #fff; padding: 40px; border-radius: 16px;
  width: 100%; max-width: 450px; position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rating-badge .rating-badge-first-span {
  color: #facc15;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating-badge .rating-badge-second-span {
  font-weight: 700;
  font-size: 18px;
  margin: 0 10px;
  color: #fff;
}

.rating-badge .rating-badge-third-span {
  color: #9ca3af;
  font-size: 14px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 10px;
}

.bb-header-h1 .h1-color-span {
  color: var(--color-primary);
}

.cta-buttons-header-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-buttons-header-wrapper .button-new-review {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.rating-bynet-seo-plate {
  font-size: 11px;
  color: #d1d5db;
  background: rgba(147, 51, 234, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

#video-reviews {
  padding: 80px 0;
  background: #fff;
}

.secondary-title-block-text {
  color: #6b7280;
  margin-bottom: 40px;
  font-size: 18px;
}

.video-content p {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 15px;
}

#text-review, #photo-review {
  padding: 80px 0;
}

#text-review {
  background: #f9fafb;
}

#photo-review {
  background: #fff;
}

#text-review .bb-header-h2, #photo-review .bb-header-h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.text-review-more-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-review-more-service {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
}

.review-author div {
  color: #facc15;
  font-size: 14px;
}

.letter-item p {
  font-size: 13px;
  margin-top: 10px;
  color: #4b5563;
}

#modal-strategy span {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #9ca3af;
}

#modal-strategy h3 {
  color:#111827;
  margin-bottom:15px;
  font-weight: 700;
}

#modal-strategy p {
  color:#6b7280;
  font-size:14px;
  margin-bottom:20px;
}

#modal-strategy input {
  padding:12px;
  border:1px solid #d1d5db;
  border-radius:8px;
}

#modal-strategy form {
  display:flex;
  flex-direction:column;
  gap:15px;
}

#modal-strategy button {
  width: 100%;
}

.no-video-background {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-text-dark);
}

.no-video-text-info {
  color: white;
}

.more-button {
  color: #fff;
  cursor: pointer;
  background-color: #5c3998;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 500;
  display: block;
  margin: 20px auto 0 auto;
}

.hidden {
  display: none;
}

button.filter-btn-reviews {
  width: auto;
  border-radius: 20px;
  padding: 10px 20px;
}

button.filter-btn-reviews.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Адаптив */
@media (max-width: 768px) {
  .hero-reviews-section h1 { font-size: 32px !important; }
  .trust-badges-grid { flex-direction: column; width: 100%; }
  .trust-card { width: 100%; }

  button.filter-btn-reviews {
    width: 100%;
  }

  button.filter-btn-reviews.active {
    background-color: #6366f1;
    border-color: #6366f1;
  }
}