/* ═══════════════════════════════════════════════════════════════
   reviews.css — Страница отзывов (StarPulse интеграция)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────── */
.revHero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, rgba(69,102,142,.85) 100%),
              url('../images/services/page-banner-img.jpg') center/cover no-repeat;
  min-height: 260px;
}
.revHero__sub {
  color: rgba(255,255,255,.88);
  font-size: 16px;
  margin-top: 8px;
  max-width: 560px;
}

/* ── Stats block ─────────────────────────────────────────────── */
.revStats {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  margin: -36px auto 0;
  position: relative;
  z-index: 10;
  max-width: 1100px;
}

.revStats__score { text-align: center; }
.revStats__avg {
  font-size: 72px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -2px;
}
.revStats__stars {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}
.revStats__total { color: var(--text-light); font-size: 14px; margin-left: 6px; }

/* Star ── shared */
.revStar { font-style: normal; font-size: 20px; color: #e0e0e0; }
.revStar--filled { color: #f59e0b; }
.revStar--empty  { color: #e5e7eb; }

/* Bars */
.revStats__bars { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.revStats__barRow { display: flex; align-items: center; gap: 8px; }
.revStats__barLabel { font-size: 13px; color: var(--text-mid); width: 22px; text-align: right; }
.revStats__barTrack {
  flex: 1; height: 8px;
  background: var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
}
.revStats__barFill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #2dd1b1);
  border-radius: 4px;
  width: 0;
  transition: width .9s ease;
}
.revStats__barCount { font-size: 13px; color: var(--text-light); width: 26px; }

/* Platform links */
.revStats__platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.revPlatform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid color-mix(in srgb, var(--platform-color) 30%, transparent);
  background: color-mix(in srgb, var(--platform-color) 5%, transparent);
  color: inherit;
  text-decoration: none;
  transition: all .2s;
}
.revPlatform:hover { transform: translateX(3px); }
.revPlatform__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--platform-color);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.revPlatform__info { display: flex; flex-direction: column; line-height: 1.3; }
.revPlatform__name { font-size: 13px; font-weight: 600; color: var(--text); }
.revPlatform__rating { font-size: 12px; color: var(--text-light); }
.revPlatform__rating em { font-style: normal; }
.revPlatform__arrow { margin-left: auto; color: var(--text-light); flex-shrink: 0; }

/* ── Filter bar (sort only) ─────────────────────────────────── */
.revFilters {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}
.revSort {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

/* ── Reviews grid ────────────────────────────────────────────── */
.revGrid { margin-top: 28px; }
.revCards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.revCard {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  overflow: hidden;
}
.revCard:hover {
  box-shadow: 0 8px 32px rgba(28,186,159,.12);
  transform: translateY(-3px);
  border-color: rgba(28,186,159,.3);
}
.revCard--featured {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 60%);
}
.revCard--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  border-radius: 4px 0 0 4px;
}

.revCard__featBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(28,186,159,.12);
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: -4px;
}

/* Header */
.revCard__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.revCard__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.revCard__meta { flex: 1; min-width: 0; }
.revCard__author {
  display: flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.revCard__verified { color: var(--teal); flex-shrink: 0; }
.revCard__date { font-size: 12px; color: var(--text-light); display: block; margin-top: 1px; }

/* Source badge — removed */


/* Stars */
.revCard__stars { display: flex; gap: 2px; }
.revCard__stars .revStar { font-size: 18px; }

/* Text */
.revCard__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.revCard__text p { margin: 0 0 6px; }
.revCard__text p:last-child { margin: 0; }

/* Photos */
.revCard__photos {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.revCard__photo {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .2s;
}
.revCard__photo:hover { transform: scale(1.07); }

/* Reply */
.revCard__reply {
  background: var(--gray-bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
}
.revCard__replyHeader {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--teal-dark);
  margin-bottom: 5px;
}
.revCard__replyText { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin: 0; }

/* ── Card footer removed (no vote button) ─── */


/* Empty */
.revEmpty {
  text-align: center; padding: 64px 24px;
  color: var(--text-light); font-size: 16px;
}
.revEmpty svg { width: 64px; height: 64px; margin: 0 auto 16px; display: block; }

/* ── Pagination ───────────────────────────────────────────────── */
.revPagination {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  margin-top: 40px;
}
.revLoadMore {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.revLoadMore:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(28,186,159,.25); }
.revLoadMore:disabled { opacity: .5; pointer-events: none; }
.revPagination__info { font-size: 13px; color: var(--text-light); }

/* ── Review Form section ─────────────────────────────────────── */
.revFormSection {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 64px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.revFormSection::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(28,186,159,.15), transparent 70%);
  pointer-events: none;
}
.revFormSection__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  position: relative;
}
.revFormSection__text h2 {
  font-size: 32px; font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}
.revFormSection__text p { color: rgba(255,255,255,.75); line-height: 1.6; margin: 0 0 24px; }
.revFormSection__bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.revFormSection__bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.8);
}
.revFormSection__bullets li span {
  color: var(--teal); font-weight: 700; flex-shrink: 0;
}

/* Form */
.revForm {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.revForm__label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.revForm__label .req { color: #e74c3c; }
.revForm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.revForm__field { display: flex; flex-direction: column; }
.revForm input,
.revForm textarea,
.revForm select {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; transition: border-color .2s;
  background: var(--white);
}
.revForm input:focus,
.revForm textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,186,159,.12); }
.revForm textarea { resize: vertical; min-height: 120px; }

/* Star picker */
.revForm__ratingPicker { display: flex; flex-direction: column; gap: 8px; }
.revForm__stars { display: flex; gap: 6px; }
.revForm__star {
  font-size: 32px; color: #e5e7eb;
  background: none; border: none;
  cursor: pointer; transition: all .15s;
  line-height: 1;
  padding: 2px;
}
.revForm__star:hover,
.revForm__star--active { color: #f59e0b; transform: scale(1.2); }

/* Messages */
.revForm__msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  display: none;
}
.revForm__msg--success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.revForm__msg--error   { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Submit button */
.revForm__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border: none; border-radius: 50px;
  padding: 14px 32px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .25s;
}
.revForm__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,186,159,.35); }
.revForm__btn:disabled { opacity: .6; pointer-events: none; }

/* ── Animations — управляются глобально через animations.css ─── */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .revStats { grid-template-columns: auto 1fr; }
  .revStats__platforms { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .revCards { grid-template-columns: repeat(2, 1fr); }
  .revFormSection__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .revStats { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .revStats__bars { min-width: unset; }
  .revCards { grid-template-columns: 1fr; }
  .revForm { padding: 24px 20px; }
  .revForm__row { grid-template-columns: 1fr; }
  .revFilters { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .revCard, .revLoadMore, .revForm__star,
  .revStats__barFill { transition: none !important; }
}
