/* ─────────────────────────────────────────────────────────────────────
   ПОТОК — страница /review/.
   Скоупируется под `.rv-page`. Источник дизайна: project/reviews.html
   (см. reference_design_bundle.md). Структура: hero+breadcrumb → сводка
   (рейтинг + распределение) → карточки внешних источников → фильтр-
   чипы → masonry-сетка карточек → форма «оставить отзыв» → cta-band.
   ───────────────────────────────────────────────────────────────────── */

.rv-page {
  --gold: #bba88c;
  --gold-dark: #8f7a5e;
  --graphite-nav: #2d323c;
  --graphite-text: #30323D;

  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --bg-cool: #f8f9fa;
  --border: #e6e3dd;

  --text: #30323D;
  --text-muted: #6b6f78;
  --text-dim: #8a8e96;

  --shadow-card: 0 8px 24px rgba(45, 50, 60, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(143, 122, 94, 0.18);

  --r-card: 16px;
  --r-pill: 999px;

  --rv-container: 1200px;
  --rv-gutter: 24px;

  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.rv-page *, .rv-page *::before, .rv-page *::after { box-sizing: border-box; }
.rv-page img, .rv-page svg { display: block; max-width: 100%; }
.rv-page a { color: inherit; text-decoration: none; }

.rv-page h1, .rv-page h2, .rv-page h3, .rv-page h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.rv-page h1 { font-size: 44px; letter-spacing: -0.5px; }
.rv-page h2 { font-size: 28px; letter-spacing: -0.3px; }
.rv-page h3 { font-size: 20px; font-weight: 600; }

.rv-page p { margin: 0 0 1em; }
.rv-page p:last-child { margin-bottom: 0; }

.rv-page .accent {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1em;
  font-style: italic;
  display: inline-block;
  padding: 0 0.12em;
}

.rv-container {
  max-width: var(--rv-container);
  margin: 0 auto;
  padding: 0 var(--rv-gutter);
}

/* ── Кнопки ──────────────────────────────────────────────────────── */
.rv-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  transition: all .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  text-align: center;
}
.rv-page .btn:focus { box-shadow: none; }
.rv-page .btn-gold { background: var(--gold); color: #fff; }
.rv-page .btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 18px rgba(143, 122, 94, 0.3);
  color: #fff;
}
.rv-page .btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-dark);
}
.rv-page .btn-outline:hover { background: var(--gold); color: #fff; }
.rv-page .btn-lg { padding: 15px 28px; font-size: 15px; }

/* ── HERO ────────────────────────────────────────────────────────── */
.rv-hero {
  background: var(--bg);
  padding: 40px 0 24px;
}
.rv-hero h1 { margin: 8px 0 16px; max-width: 800px; }
.rv-hero .lede {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin: 0;
}

.rv-breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rv-breadcrumb a {
  color: var(--gold-dark);
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.rv-breadcrumb a:hover { border-bottom-color: currentColor; }
.rv-breadcrumb .sep { color: var(--border); }

/* ── СВОДНАЯ КАРТОЧКА ────────────────────────────────────────────── */
.rv-section { padding: 24px 0 56px; }

.rv-summary {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: linear-gradient(180deg, #fdfaf3 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 36px;
  align-items: center;
}
.rv-summary .score-side {
  text-align: center;
  padding-right: 28px;
  border-right: 1px solid var(--border);
}
.rv-summary .score-big {
  font-family: 'Roboto Mono', monospace;
  font-size: 64px;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: -1.5px;
  line-height: 1;
}
.rv-summary .score-stars {
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 4px;
  margin: 8px 0 6px;
}
.rv-summary .score-stars .empty { color: rgba(143, 122, 94, 0.25); }
.rv-summary .score-count { font-size: 13px; color: var(--text-muted); }

.rv-bars { display: flex; flex-direction: column; gap: 8px; }
.rv-bar {
  display: grid;
  grid-template-columns: 30px 1fr 50px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.rv-bar .b-lbl {
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
}
.rv-bar .b-track {
  background: var(--bg-soft);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.rv-bar .b-fill {
  background: var(--gold);
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
}
.rv-bar .b-num {
  font-family: 'Roboto Mono', monospace;
  color: var(--text-muted);
  text-align: right;
}

/* ── ИСТОЧНИКИ ───────────────────────────────────────────────────── */
.rv-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.rv-source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  flex: 1;
  min-width: 200px;
  transition: all .15s;
}
a.rv-source:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.rv-source .rs-logo {
  width: 36px;
  height: 36px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  color: var(--gold-dark);
  flex: none;
}
.rv-source .rs-info { display: flex; flex-direction: column; min-width: 0; }
.rv-source .rs-name {
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rv-source .rs-name .ext {
  color: var(--text-dim);
  font-size: 12px;
}
.rv-source .rs-rate {
  font-family: 'Roboto Mono', monospace;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ── ФИЛЬТРЫ ─────────────────────────────────────────────────────── */
.rv-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rv-chip {
  appearance: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
}
.rv-chip:hover { color: var(--text); border-color: var(--gold); }
.rv-chip.is-active {
  background: var(--graphite-nav);
  color: #fff;
  border-color: var(--graphite-nav);
}
.rv-chip .n {
  font-family: 'Roboto Mono', monospace;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-left: 6px;
}
.rv-chip.is-active .n { color: rgba(255, 255, 255, 0.7); }

/* ── MASONRY-СЕТКА КАРТОЧЕК ──────────────────────────────────────── */
.rv-grid {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 991px) { .rv-grid { column-count: 2; } }
@media (max-width: 576px) { .rv-grid { column-count: 1; } }

.rv-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all .15s;
  position: relative;
}
.rv-card:hover {
  box-shadow: 0 8px 18px rgba(143, 122, 94, 0.10);
  border-color: rgba(187, 168, 140, 0.5);
}
.rv-card[hidden] { display: none; }

.rv-card .rc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rv-card .rc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 14px;
  flex: none;
  overflow: hidden;
}
.rv-card .rc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-card .rc-author { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rv-card .rc-name { font-weight: 500; font-size: 14.5px; }
.rv-card .rc-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'Roboto Mono', monospace;
  margin-top: 2px;
}
.rv-card .rc-meta a {
  color: inherit;
  border-bottom: 1px dashed transparent;
}
.rv-card .rc-meta a:hover { color: var(--gold-dark); border-bottom-color: currentColor; }
.rv-card .rc-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}
.rv-card .rc-stars .empty { color: rgba(143, 122, 94, 0.25); }

.rv-card .rc-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  white-space: pre-line;
}
.rv-card .rc-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.rv-card .rc-spec strong { color: var(--text); font-weight: 500; }
.rv-card .rc-spec a {
  color: var(--gold-dark);
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.rv-card .rc-spec a:hover { border-bottom-color: currentColor; }
.rv-card .rc-spec svg { flex: none; color: var(--text-dim); }

/* Выделенный отзыв — «фичерный» */
.rv-card.is-feat {
  background: linear-gradient(135deg, #fdfaf3, #f7f1e3);
  border-color: rgba(187, 168, 140, 0.4);
}
.rv-card.is-feat::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: 'Dancing Script', cursive;
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
}
.rv-card.is-feat .rc-text {
  font-style: italic;
  font-size: 15.5px;
}

.rv-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.rv-load-more {
  text-align: center;
  margin-top: 36px;
}
.rv-load-more .btn { min-width: 240px; }
.rv-load-more[hidden] { display: none; }

/* ── ФОРМА ───────────────────────────────────────────────────────── */
.rv-form-section {
  background: var(--bg-soft);
  padding: 56px 0;
}
.rv-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.rv-form h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.rv-form .rf-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.rv-form label.field-label {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.rf-star-row { display: flex; gap: 6px; margin: 0 0 18px; }
.rf-star {
  appearance: none;
  background: none;
  border: 0;
  font-size: 32px;
  color: #d8d3c5;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.rf-star.is-on { color: var(--gold); }
.rf-star-row.is-hovering .rf-star.is-on { color: #d8d3c5; }
.rf-star-row.is-hovering .rf-star.is-hover { color: var(--gold); }

.rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rv-form .field { margin-bottom: 14px; }
.rv-form input[type="text"],
.rv-form input[type="email"],
.rv-form input[type="tel"],
.rv-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.rv-form input:focus,
.rv-form textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(187, 168, 140, 0.18);
}
.rv-form textarea { resize: vertical; min-height: 120px; }

.rv-form .form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.rv-form .form-foot .note {
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 360px;
  margin: 0;
}

/* ── CTA-band ────────────────────────────────────────────────────── */
.rv-cta-band {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
}
.rv-cta-band::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
}
.rv-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.rv-cta-text { flex: 1 1 320px; }
.rv-cta-text h3 { font-size: 24px; font-weight: 700; margin: 4px 0 8px; }
.rv-cta-text p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0;
}
.rv-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── АДАПТИВ ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .rv-page h1 { font-size: 34px; }
  .rv-page h2 { font-size: 24px; }
  .rv-hero { padding: 32px 0 20px; }
  .rv-hero .lede { font-size: 15.5px; }

  .rv-summary {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  .rv-summary .score-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 22px;
  }
}

@media (max-width: 576px) {
  .rv-page h1 { font-size: 26px; }
  .rv-hero { padding: 24px 0 16px; }

  .rv-summary { padding: 22px; }
  .rv-summary .score-big { font-size: 52px; }
  .rv-source { min-width: 0; flex-basis: 100%; padding: 12px 16px; }

  .rv-form { padding: 22px; }
  .rf-row { grid-template-columns: 1fr; }
  .rv-form .form-foot { flex-direction: column; align-items: stretch; }
  .rv-form .form-foot .btn { width: 100%; }

  .rv-cta-band { padding: 40px 0; }
  .rv-cta-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .rv-cta-actions { width: 100%; flex-direction: column; }
  .rv-cta-actions .btn { width: 100%; }
}
