/* Отзывы клиентов: /otzyvy и блок на главной. Токены — из refined.css. */
.rv-stars { display: inline-flex; gap: 2px; color: #d3d9d5; font-size: 17px; line-height: 1; white-space: nowrap; }
.rv-stars .on { color: #e8a317; }
.rv-stars--lg { font-size: 22px; margin-right: 10px; vertical-align: -2px; }

.rv-summary { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); }
.rv-summary b { font-size: 20px; color: var(--ink); }
.rv-summary--home { margin-top: 10px; font-size: 15px; }
.rv-summary--home .rv-stars { margin-right: 8px; vertical-align: -1px; }
.rv-banner-btn { margin-top: 20px; }

/* карточка */
.rv-list { display: grid; gap: 16px; }
.rv-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-card); padding: 22px 24px; scroll-margin-top: 110px; }
.rv-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-card__head { display: flex; align-items: center; gap: 14px; }
.rv-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.rv-card__who { min-width: 0; flex: 1; }
.rv-card__name { font-weight: 700; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.rv-card__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rv-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.rv-tag--ok { background: var(--accent-soft); color: var(--accent-deep); }
.rv-card__text { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.rv-card__more { display: none; }
.rv-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rv-photo { display: block; width: 160px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.rv-photo:hover img { transform: scale(1.04); }
.rv-reply { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 8px 8px 0; }
.rv-reply__who { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.rv-reply__text { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }

.rv-empty { border: 1px dashed #c9d3cd; border-radius: var(--r-lg); padding: 26px 28px; background: var(--bg-soft); }
.rv-empty__title { font-size: 19px; font-weight: 700; color: var(--ink); }
.rv-empty p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* форма */
.rv-form-wrap { margin-top: 40px; scroll-margin-top: 100px; }
.rv-form-title { font-size: 28px; line-height: 1.2; margin: 0 0 18px; }
.rv-form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; background: var(--bg-card); display: grid; gap: 18px; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.rv-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.rv-label { font-size: 14px; font-weight: 650; color: var(--ink); padding: 0; }
.rv-req { color: #b3261e; }
.rv-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.rv-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #b9c5bd; border-radius: 6px; padding: 12px 14px; min-height: 48px; }
.rv-input::placeholder { color: #7a857f; }
.rv-input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.rv-textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
select.rv-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23424944' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.rv-rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.rv-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.rv-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate__stars label { cursor: pointer; font-size: 38px; line-height: 1; color: #cfd6d2; padding: 2px; transition: color .12s, transform .12s; }
.rv-rate__stars label:hover, .rv-rate__stars label:hover ~ label,
.rv-rate__stars input:checked ~ label { color: #e8a317; }
.rv-rate__stars input:focus-visible + label { outline: 3px solid #1689b0; outline-offset: 2px; border-radius: 4px; }
.rv-rate__stars label:active { transform: scale(.92); }
.rv-rate__hint { display: inline-block; margin-left: 12px; font-size: 14px; font-weight: 650; color: var(--accent-deep); vertical-align: 10px; }
.rv-rate .visually-hidden, .rv-page .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rv-drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 1.5px dashed #9fb0a6; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; cursor: pointer; background: var(--bg-soft); }
.rv-drop:hover { border-color: var(--accent); color: var(--accent-deep); }
.rv-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rv-file:focus-visible + .rv-previews, .rv-field:focus-within .rv-drop { outline: 3px solid #1689b0; outline-offset: 2px; }
.rv-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-prev { position: relative; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.rv-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-prev__del { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20, 24, 22, .72); color: #fff; font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; }

.rv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.rv-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.rv-check a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rv-submit { justify-self: start; min-width: 240px; height: 52px; font-size: 16px; }
.rv-error { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fde8e8; color: #8a1f1f; font-size: 14px; line-height: 1.45; }
.rv-done { border: 1px solid var(--accent); border-radius: var(--r-lg); padding: 26px 28px; background: var(--accent-soft); outline: none; }
.rv-done__title { font-size: 21px; font-weight: 700; color: var(--accent-deep); }
.rv-done p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

.rv-rules { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rv-aside-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.rv-aside-note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* главная */
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rv-card--compact { display: flex; flex-direction: column; }
.rv-card--compact .rv-card__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.rv-card--compact .rv-card__more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--accent); }
.rv-card--compact .rv-photos { margin-top: auto; padding-top: 14px; }
.rv-card--compact .rv-photo { width: 96px; }
.rv-home__cta { margin-top: 24px; }

@media (max-width: 1100px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .rv-grid, .rv-row { grid-template-columns: minmax(0, 1fr); }
  .rv-card, .rv-form, .rv-empty, .rv-done { padding: 18px 16px; }
  .rv-form-title { font-size: 23px; }
  .rv-photo { width: calc(50% - 5px); }
  .rv-submit { width: 100%; justify-self: stretch; }
  .rv-rate__stars label { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) { .rv-photo img, .rv-rate__stars label { transition: none; } }
