/* Стили блока отзывов NomadCar (копия embed.css сервиса reviews.smittmediagroup.ru, 28.08.2026).
   Файл: /css/reviews.css. Подключается из чанка rew (52) и шаблона Reviews (28):
   <link rel="stylesheet" href="https://nomadcar.kg/css/reviews.css?v=1">
   При обновлении дизайна в сервисе — обновить этот файл и поднять ?v=. */

/* Виджет отзывов. Шрифт и цвет текста наследуются от сайта, чтобы блок не
   выпадал из вёрстки; своё — только карточки, звёзды и акценты. */

.rw-reviews {
  font: inherit;
  color: inherit;
  --rw-star: #e9a923;
  --rw-line: #e8e3d9;
  --rw-muted: #7b807b;
  --rw-card: #fff;
  --rw-shadow:
    0 10px 30px rgba(20, 24, 26, 0.06), 0 1px 2px rgba(20, 24, 26, 0.05);
}
.rw-reviews__title {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

/* шапка: крупная оценка, звёзды, число отзывов, источники */
.rw-reviews__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 0.5em;
}
.rw-reviews__stars {
  color: var(--rw-star);
  font-size: 1.35em;
  letter-spacing: 3px;
  line-height: 1;
}
.rw-reviews__summary {
  margin: 0;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}
.rw-reviews__summary [itemprop="ratingValue"] {
  font-size: 2.1em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rw-reviews__summary [itemprop="reviewCount"] {
  font-weight: 700;
}
.rw-reviews__shown {
  color: var(--rw-muted);
  font-size: 0.85em;
}
.rw-reviews__sources {
  margin: 0 0 1.4em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rw-reviews__sources a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--rw-line);
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background: var(--rw-card);
}
.rw-reviews__sources a::before {
  content: "★";
  color: var(--rw-star);
  font-size: 0.95em;
}
.rw-reviews__sources a:hover {
  border-color: currentColor;
}
.rw-reviews__empty {
  color: var(--rw-muted);
}

/* сетка карточек */
.rw-reviews__list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rw-review {
  background: var(--rw-card);
  border: 1px solid var(--rw-line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: var(--rw-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.rw-review:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(20, 24, 26, 0.1),
    0 1px 2px rgba(20, 24, 26, 0.05);
}
@media (prefers-reduced-motion: reduce) {
  .rw-review,
  .rw-review:hover {
    transition: none;
    transform: none;
  }
}

.rw-review__head {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  margin-bottom: 12px;
}
.rw-review__avatar {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  color: #fff;
}
.rw-review__avatar[data-hue="0"] {
  background: #5f7f6f;
}
.rw-review__avatar[data-hue="1"] {
  background: #7a6a9a;
}
.rw-review__avatar[data-hue="2"] {
  background: #b0703a;
}
.rw-review__avatar[data-hue="3"] {
  background: #4f7a9a;
}
.rw-review__avatar[data-hue="4"] {
  background: #9a5f5f;
}
.rw-review__avatar[data-hue="5"] {
  background: #6f7f4f;
}
.rw-review__author {
  font-weight: 700;
  line-height: 1.2;
}
.rw-review__place {
  color: var(--rw-muted);
  font-size: 0.85em;
}
.rw-review__stars {
  grid-column: 2;
  color: var(--rw-star);
  letter-spacing: 2px;
  font-size: 0.95em;
  line-height: 1;
  margin-left: 0;
}

.rw-review__text {
  margin: 0 0 14px;
  line-height: 1.6;
  white-space: pre-line;
  position: relative;
}
.rw-review__text::before {
  content: "\201C";
  position: absolute;
  left: -6px;
  top: -14px;
  font-size: 3.2em;
  line-height: 1;
  color: var(--rw-line);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}
.rw-review__reply {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f6f4ef;
  border-radius: 10px;
  font-size: 0.95em;
}
.rw-review__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--rw-line);
  color: var(--rw-muted);
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rw-review__source {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--rw-line);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background: #faf8f3;
}
a.rw-review__source:hover {
  border-color: currentColor;
}

/* короткий блок (главная, ?limit=N): карточки одной высоты, текст до 7 строк */
.rw-reviews--short .rw-review__text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

/* обязательная обратная ссылка на движок (бесплатный тариф) */
.rw-reviews__powered {
  margin: 14px 0 0;
  font-size: 0.8em;
  color: var(--rw-muted);
}
.rw-reviews__powered a {
  color: var(--rw-muted);
  text-decoration: none;
}
.rw-reviews__powered a:hover {
  text-decoration: underline;
}
