/* ============================================================
   reviews.css — /reviews.html и /reviews/{id} (Stage 6, Task 2,
   task-2-brief.md). Отзывы — UGC + официальный ответ магазина: тот же жанр
   контента, что «Вопрос эксперту» (см. qa.css/.qa-card), но со своими
   классами (.rv-*), т.к. здесь нет формы/«полезно»/«поделиться», зато есть
   ссылка на товар. Крошки/шапка/пустое состояние/пагинация ленты — общие
   классы journal.css (jr-crumbs/jr-topbar/jr-title/jr-count/jr-empty,
   партиал pages/_pagination → jr-pagination) — reviews.css их не дублирует.
   Форма отзыва со звёздами — пост-релизный бэклог (см. task-2-brief.md),
   в разметке её нет вовсе.
   ============================================================ */

.rv-page { padding-top: 20px; }

/* ---- лента (/reviews.html) ---- */
.rv-list { display: flex; flex-direction: column; gap: 14px; }

.rv-card { padding: 22px 26px; }
.rv-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }

.rv-avatar {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px;
}
.rv-avatar--0 { background: var(--pastel-cream); color: #a5734c; }
.rv-avatar--1 { background: var(--pastel-blue); color: #5b7f91; }
.rv-avatar--2 { background: var(--green-bg); color: var(--green-ink); }
.rv-avatar--3 { background: var(--pastel-lilac); color: #6d5c91; }

.rv-card__meta { flex: 1; min-width: 0; }
.rv-card__author { font-weight: 800; font-size: 13.5px; }
.rv-card__date { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rv-card__link { flex: none; font-size: 12.5px; font-weight: 800; color: var(--terra); }
.rv-card__link:hover { text-decoration: underline; }

.rv-card__goods {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  background: var(--terra-bg); color: var(--terra); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: 12px; font-weight: 800;
}
.rv-card__goods:hover { text-decoration: underline; }

.rv-card__text { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.rv-card__text--clamp {
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}

.rv-card__answer { margin-top: 14px; background: var(--green-bg-soft); border-radius: 16px; padding: 16px 18px; }
/* Видимый h1 страницы отзыва (спека 2026-08-10-headings). */
.rv-h1 { margin-bottom: 20px; }

.rv-card__answer-head { font-size: 12.5px; font-weight: 800; color: var(--green-ink); margin-bottom: 6px; }
.rv-card__answer-text { font-size: 13.5px; line-height: 1.55; color: #4a5a44; }
.rv-card__answer-text--clamp {
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---- отдельный отзыв (/reviews/{id}) ---- */
.rv-card--single { margin-bottom: 20px; }
.rv-card--single .rv-avatar { width: 48px; height: 48px; font-size: 17px; }

/* Мини-карточка товара — переиспользует .art-mini-goods (article.css),
   здесь просто во всю ширину страницы, а не в узком сайдбаре. */
.rv-goods-card { max-width: 420px; margin-bottom: 24px; }

.rv-goods-fallback {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  background: var(--terra-bg); color: var(--terra); border-radius: var(--r-pill);
  padding: 10px 18px; font-size: 13px; font-weight: 800;
}

.rv-back-links { display: flex; gap: 20px; font-size: 13px; font-weight: 800; color: var(--terra); flex-wrap: wrap; }
.rv-back-links a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .rv-card { padding: 18px; }
  .rv-goods-card { max-width: none; }
}
