500;600;700;800&display=swap');

.reviews-section {
  --rv-bg-1: #f8f9ff;
  --rv-bg-2: #ffffff;
  --rv-bg-3: #f3f9ff;
  --rv-surface: #ffffff;
  --rv-text: #2d2d2d;
  --rv-muted: #6f7683;
  --rv-line: #e9edf3;
  --rv-accent: #ff6b00;
  --rv-accent-2: #ff8c00;
  --rv-star: #ffc107;
  --rv-shadow: 0 10px 28px rgba(18, 28, 45, 0.08);
  --rv-shadow-hover: 0 16px 36px rgba(255, 107, 0, 0.14);

  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(12px, 2vw, 20px);
  background: linear-gradient(135deg, var(--rv-bg-1) 0%, var(--rv-bg-2) 50%, var(--rv-bg-3) 100%);
  border-radius: 22px;
  color: var(--rv-text);
  box-sizing: border-box;
}

.reviews-section * {
  box-sizing: border-box;
}

.reviews-header {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.reviews-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(45deg, #243447, var(--rv-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-highlight {
  color: var(--rv-accent);
  -webkit-text-fill-color: var(--rv-accent);
}

.reviews-subtitle {
  margin: 0 0 18px;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--rv-muted);
}

.rating-overview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--rv-line);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  max-width: 100%;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.stars {
  color: var(--rv-star);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 1px;
}

.rating-text {
  font-weight: 700;
  color: #344054;
  font-size: 0.95rem;
}

/* GRID */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.review-card {
  background: var(--rv-surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--rv-shadow);
  border: 1px solid var(--rv-line);
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.review-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rv-accent), var(--rv-accent-2));
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rv-shadow-hover);
  border-color: #ffd7b8;
}

.review-card.highlight-card {
  border: 1px solid #ffd6b8;
  background: linear-gradient(135deg, #fff 0%, #fff9f3 100%);
}

.review-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--rv-accent), var(--rv-accent-2));
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255,107,0,.2);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 70px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reviewer-avatar {
  font-size: 1.65rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border-radius: 50%;
  border: 1px solid #e8edf4;
  flex: 0 0 auto;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.reviewer-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-rating {
  color: var(--rv-star);
  font-size: 0.95rem;
  line-height: 1;
}

.review-date {
  color: #98a2b3;
  font-size: 0.82rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.review-content {
  margin-bottom: 12px;
  color: #4b5563;
  line-height: 1.55;
  font-size: 0.93rem;
}

.review-content p {
  margin: 0;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #596579;
  border: 1px solid #e6ebf2;
  line-height: 1.2;
}

/* скрытые карточки для "Показать еще" */
.review-card.is-hidden-review {
  display: none;
}

/* кнопка */
.reviews-actions {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--rv-accent), var(--rv-accent-2));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 10px 22px rgba(255,107,0,.22);
}

.show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255,107,0,.28);
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-btn__text {
  line-height: 1;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  transition: transform .25s ease;
  font-weight: 700;
}

.show-more-btn[aria-expanded="true"] .btn-arrow {
  transform: rotate(180deg);
}

/* stats */
.reviews-stats {
  margin-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-item {
  text-align: center;
  padding: 16px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  border: 1px solid var(--rv-line);
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.stat-number {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(45deg, var(--rv-accent), var(--rv-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  color: #667085;
  font-weight: 600;
  font-size: 0.86rem;
}

/* reveal animation (вместо AOS) */
.reviews-section [data-rv-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}
.reviews-section [data-rv-reveal].is-rv-hidden {
  opacity: 0;
  transform: translateY(18px);
}

/* Мобильная адаптация */
@media (max-width: 991px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 575px) {
  .reviews-section {
    padding: 16px 10px;
    border-radius: 16px;
  }

  .review-card {
    padding: 14px;
    border-radius: 14px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0;
  }

  .review-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 8px;
  }

  .rating-overview {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
  }

  .overall-rating {
    flex-direction: column;
    gap: 6px;
  }

  .stars {
    font-size: 1.05rem;
  }

  .show-more-btn {
    width: 100%;
    max-width: 320px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-section * {
    animation: none !important;
    transition: none !important;
  }
}

/* R21 wide-screen adaptation */
.reviews-section { max-width: 1760px; margin-inline: auto; font-family: inherit; }
@media (min-width: 1400px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .review-card { padding: 20px; }
}
@media (min-width: 2200px) {
  .reviews-section { max-width: 2100px; }
  .reviews-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}


/* R22: page-wide final override */
#information-information.zm-info-page-5 .reviews-section {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
@media (min-width: 1700px) and (max-width: 2199px) {
  .reviews-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media (min-width: 2200px) {
  .reviews-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
}
