/* =================== page-reviews.css =================== */
/* /reviews «Стена доверия». Hero = score card + rating histogram; grid reuses
   .hc-rev__card (145-hc-rev.css). Histogram fill width is set by JS from data-pct
   (same pattern as the cart free-ship bar) — no inline styles. */

.hc-reviews-hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 8px 0 40px;
  padding: 28px;
  border: 0.5px solid var(--hc-line-2, rgba(180, 151, 115, 0.18));
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(248, 244, 237, 0.7));
}

.hc-reviews-hero__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: var(--hc-paper, #fff);
  border: 0.5px solid var(--hc-line-2, rgba(180, 151, 115, 0.18));
  text-align: center;
}

.hc-reviews-hero__num {
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-size: 56px;
  line-height: 1;
  color: var(--hc-ink, #1a1714);
}
.hc-reviews-hero__num small {
  font-size: 20px;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.45));
}

.hc-reviews-hero__stars {
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--hc-gold, #d4b896);
}

.hc-reviews-hero__count {
  margin: 0;
  font-size: 13px;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.6));
}

.hc-reviews-hero__body {
  min-width: 0;
}

.hc-reviews-hero__title {
  margin: 8px 0 20px;
  font-family: var(--hc-serif, "Playfair Display", Georgia, serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: var(--hc-ink, #1a1714);
}

.hc-reviews-hist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hc-reviews-hist__row {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.hc-reviews-hist__star {
  font-size: 12px;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.6));
  white-space: nowrap;
}
.hc-reviews-hist__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(26, 23, 20, 0.06);
  overflow: hidden;
}
.hc-reviews-hist__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hc-gold, #d4b896), var(--hc-accent, #8b7355));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hc-reviews-hist__n {
  font-size: 12px;
  text-align: right;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.6));
  font-variant-numeric: tabular-nums;
}

.hc-reviews-hero__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.45));
}

/* Full review grid: denser auto-fill so all imported reviews read as a wall. */
.hc-reviews-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.hc-reviews-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.hc-reviews-grid-head .hc-reviews-grid-title {
  margin: 0;
}
.hc-reviews-grid-range {
  color: var(--hc-ink-soft, rgba(26, 23, 20, 0.58));
  font-size: 13px;
  white-space: nowrap;
}
.hc-reviews-grid .hc-rev__text {
  display: block;
}
.page-reviews .hc-pag {
  margin-top: 32px;
}

@media (max-width: 720px) {
  .hc-reviews-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .hc-reviews-hero__num {
    font-size: 44px;
  }
  .hc-reviews-grid-head {
    display: block;
  }
  .hc-reviews-grid-range {
    display: block;
    margin-top: 8px;
  }
}
