/* ==========================================================================
   Страница «Отзывы покупателей» - faq.html (dz_reviews.tpl.html,
   dz_reviews_list.tpl.html, dz_review_tile.tpl.html). Подключается из
   самого шаблона страницы. Классы rvp-*. JS - js/reviews.js.
   ========================================================================== */

.rvp { --rvp-navy: #0f3a64; --rvp-blue: #1f6fbf; --rvp-line: #dfe9f2; --rvp-soft: #eaf3fb; --rvp-text: #203a54; --rvp-muted: #6f8599;
	color: var(--rvp-text); font-size: 15px; line-height: 1.45; }
.rvp *, .rvp *::before, .rvp *::after { box-sizing: border-box; }
.rvp [hidden], .rvp .rvp-hide { display: none !important; }
.rvp a { text-decoration: none; }

/* шапка: заголовок, подзаголовок, оценка и «Оставить отзыв» */
.rvp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rvp h1.rvp-h1 { margin: 0 0 4px; color: var(--rvp-navy); }
.rvp-sub { margin: 0; color: var(--rvp-muted); font-size: 15px; }
.rvp-sub a { color: var(--rvp-blue); }
.rvp-sum { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rvp-sum__avg { font-size: 20px; color: var(--rvp-navy); }
.rvp-sum__cnt { color: var(--rvp-muted); font-size: 14px; }
.rvp-write { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 8px;
	background: var(--rvp-blue); color: #fff !important; font-weight: 600; font-size: 15px; box-shadow: 0 4px 12px rgba(31, 111, 191, .25); transition: background .2s; }
.rvp-write:hover { background: #185a9d; }

.rvp-text { margin: 0 0 16px; color: #34465c; line-height: 1.55; }
.rvp-text p { text-indent: 0; }

/* фильтры и сортировка */
.rvp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.rvp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rvp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 22px; border-radius: 20px; background: var(--rvp-soft);
	color: var(--rvp-navy) !important; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.rvp-chip:hover { background: #d7e8f7; }
.rvp-chip.is-on { background: var(--rvp-navy); color: #fff !important; }
.rvp-chip__ic { flex: 0 0 auto; }
.rvp-sort select { min-width: 190px; height: 40px; padding: 0 36px 0 14px; border: 1px solid #cfdbe6; border-radius: 6px; background: #fff;
	color: var(--rvp-navy); font-size: 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230f3a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; }

/* список */
.rvp-list { transition: opacity .2s; }
.rvp-list.is-loading { opacity: .45; pointer-events: none; }
.rvp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rvp-empty { padding: 30px 20px; border: 1px solid var(--rvp-line); border-radius: 12px; background: #f5fafd; text-align: center; color: #34465c; }

/* карточка */
.rvp-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 18px 14px; border: 1px solid var(--rvp-line);
	border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15, 58, 100, .04); }
.rvp-card--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 16px 12px 10px; }
.rvp-card__media { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rvp-photo { position: relative; display: block; flex: 1 1 auto; min-height: 200px; max-height: 340px; border-radius: 8px; overflow: hidden; background: #f0f4f8; }
.rvp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rvp-photo:hover img { transform: scale(1.03); }
.rvp-photo__n { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 12px; background: rgba(40, 40, 40, .72); color: #fff; font-size: 13px; }

/* скриншот - в светлой рамке, как экран телефона */
.rvp-card--shot .rvp-card__media { display: flex; flex-direction: column; border: 1px solid var(--rvp-line); border-radius: 8px; background: #f3f6f8; overflow: hidden; }
.rvp-shot { position: relative; display: block; flex: 1 1 auto; min-height: 200px; max-height: 300px; overflow: hidden; background: #e9eef1; }
.rvp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.rvp-shot .rvp-photo__n { left: auto; right: 8px; }
.rvp-shot__open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-top: 1px solid var(--rvp-line);
	background: #fff; color: var(--rvp-navy); font: inherit; font-size: 14px; cursor: pointer; }
.rvp-shot__open:hover { color: var(--rvp-blue); background: #f5f9fd; }

.rvp-card__body { display: flex; flex-direction: column; min-width: 0; }
.rvp-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.rvp-card--media .rvp-card__rate { grid-column: 2; }
.rvp-card:not(.rvp-card--media) .rvp-card__head { grid-template-columns: auto auto 1fr; }
.rvp-card:not(.rvp-card--media) .rvp-card__rate { padding-left: 18px; }
.rvp-ava { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
	background: #e5f0fa; color: var(--rvp-navy); font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.rvp-card--media .rvp-ava { grid-row: span 2; }
.rvp-ava--1 { background: #e8f3ec; color: #245b3c; }
.rvp-ava--2 { background: #f6efe4; color: #7a4d14; }
.rvp-ava--3 { background: #efeaf8; color: #4b3a7a; }
.rvp-ava--4 { background: #fcebea; color: #8a2f2a; }
.rvp-ava--5 { background: #e6f4f6; color: #1f5f6b; }
.rvp-card__who { display: flex; flex-direction: column; min-width: 0; }
.rvp-card__name { color: var(--rvp-navy); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.rvp-card__city { color: var(--rvp-muted); font-size: 13.5px; }
.rvp-card__rate { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.rvp-norate { color: var(--rvp-muted); font-size: 13.5px; }

.rvp-stars { position: relative; display: inline-block; font-size: 26px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.rvp-stars::before { content: "\2605\2605\2605\2605\2605"; color: #e3e9ef; }
.rvp-stars__fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.rvp-stars__fill::before { content: "\2605\2605\2605\2605\2605"; color: #f0a81c; }
.rvp-stars--none::before { content: "\2606\2606\2606\2606\2606"; color: #9fb0c0; }
.rvp-sum .rvp-stars { font-size: 20px; }

.rvp-card__product { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--rvp-blue) !important; font-size: 13.5px; }
.rvp-card__product img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rvp-line); }
.rvp-card__product:hover span { text-decoration: underline; }
.rvp-card__variant { margin-top: 4px; color: var(--rvp-muted); font-size: 13px; }
.rvp-card__text { margin: 12px 0 0; color: var(--rvp-text); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rvp-card__more { align-self: flex-start; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--rvp-blue); font: inherit; font-size: 14px; cursor: pointer; }
.rvp-card__more:hover { text-decoration: underline; }
.rvp-card__answer { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--rvp-blue); border-radius: 0 6px 6px 0; background: #f4f8fc; font-size: 14px; color: #34465c; }
.rvp-card__answer b { display: block; margin-bottom: 2px; color: var(--rvp-navy); font-size: 13px; }

.rvp-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 14px; }
.rvp-src { display: inline-flex; align-items: center; gap: 9px; color: var(--rvp-navy); font-size: 14px; }
.rvp-src__ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: var(--rvp-blue); color: #fff; font-style: normal; }
.rvp-src--vk .rvp-src__ic { background: #0077ff; }
.rvp-src--site .rvp-src__ic { background: #0f3a64; }
.rvp-card__date { color: var(--rvp-muted); font-size: 13px; }
.rvp-orig { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 7px 16px; border: 1px solid #cfe0ef; border-radius: 6px;
	background: #f1f7fc; color: var(--rvp-navy) !important; font-size: 13.5px; white-space: nowrap; transition: border-color .2s, background .2s; }
.rvp-orig:hover { border-color: var(--rvp-blue); background: #e7f1fb; }

/* низ списка */
.rvp-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 6px; }
.rvp-foot:empty { display: none; }
.rvp-more { display: inline-flex; align-items: center; gap: 8px; padding: 11px 28px; border: 1px solid #cfe0ef; border-radius: 22px; background: #fff;
	color: var(--rvp-navy) !important; font-weight: 600; font-size: 14.5px; transition: background .2s; }
.rvp-more:hover { background: var(--rvp-soft); }
.rvp-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rvp-nav a, .rvp-nav span { min-width: 36px; padding: 6px 10px; border-radius: 18px; text-align: center; color: var(--rvp-navy) !important; }
.rvp-nav a:hover { background: var(--rvp-soft); }
.rvp-nav span { background: var(--rvp-blue); color: #fff !important; font-weight: 600; }

/* отзывы прошлых лет (текст прежней страницы) */
.rvp-old { margin: 26px 0 0; }
.rvp h2.rvp-h2 { margin: 0 0 12px; color: var(--rvp-navy); font-size: 22px; }
.rvp-old__body { overflow-wrap: anywhere; }
.rvp-old__body p { text-indent: 0; }
.rvp-old__body img { max-width: 100%; height: auto; }

/* форма «Оставить свой отзыв» */
.rvp-form { margin: 24px 0 10px; padding: 18px 20px 20px; border-radius: 10px; background: var(--rvp-soft); scroll-margin-top: 90px; }
.rvp-form.is-flash { animation: rvpFlash 1.2s ease; }
@keyframes rvpFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 111, 191, 0); } 30% { box-shadow: 0 0 0 4px rgba(31, 111, 191, .35); } }
.rvp h2.rvp-form__title { margin: 0 0 12px; color: var(--rvp-navy); font-size: 19px; font-weight: 700; }
.rvp-form__grid { display: grid; grid-template-columns: 230px 240px minmax(0, 1fr); gap: 16px 22px; align-items: start; }
.rvp-lbl { display: block; margin-bottom: 6px; color: var(--rvp-navy); font-size: 14px; }
.rvp-lbl small { color: var(--rvp-muted); font-size: 12px; }
.rvp-note { display: block; margin-top: 6px; color: var(--rvp-muted); font-size: 12.5px; line-height: 1.35; }
.rvp-fld { display: block; margin: 0 0 10px; }
.rvp-fld input, .rvp-fld textarea { display: block; width: 100%; padding: 9px 12px; border: 1px solid #cfdbe6; border-radius: 6px; background: #fff;
	color: var(--rvp-text); font: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.rvp-fld textarea { min-height: 106px; resize: vertical; }
.rvp-fld input:focus, .rvp-fld textarea:focus { border-color: var(--rvp-blue); box-shadow: 0 0 0 3px rgba(31, 111, 191, .12); }
.rvp-fld.is-err input, .rvp-fld.is-err textarea { border-color: #d9534f; }

.rvp-rate { display: flex; gap: 4px; }
.rvp-rate button { padding: 0; border: 0; background: none; color: var(--rvp-navy); cursor: pointer; line-height: 0; }
.rvp-rate svg path { fill: transparent; transition: fill .15s; }
.rvp-rate button.is-on { color: #f0a81c; }
.rvp-rate button.is-on svg path { fill: #f0a81c; }
.rvp-rate button.is-hover svg path { fill: #f7cf7a; }
.rvp-rate button.is-pop { animation: rvpPop .35s ease; }
@keyframes rvpPop { 50% { transform: scale(1.25); } }
.rvp-rate.is-err button { color: #d9534f; }

.rvp-file { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; border: 1px solid #cfdbe6;
	border-radius: 6px; background: #fff; color: var(--rvp-navy); font-size: 14px; cursor: pointer; overflow: hidden; }
.rvp-file:hover { border-color: var(--rvp-blue); }
.rvp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rvp-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rvp-files img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rvp-line); }

.rvp-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rvp-agree { display: flex; align-items: center; gap: 8px; color: var(--rvp-muted); font-size: 12.5px; cursor: pointer; }
.rvp-agree input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.rvp-agree a { color: inherit; text-decoration: underline; }
.rvp-agree.is-err { color: #d9534f; }
.rvp-send { min-width: 214px; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--rvp-navy); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; }
.rvp-send:hover { background: #0a2c4d; }
.rvp-send:disabled { opacity: .6; cursor: default; }
.rvp-msg { margin-top: 10px; padding: 10px 14px; border-radius: 6px; background: #fdecec; color: #a33a36; font-size: 14px; }
.rvp-msg.is-ok { background: #e6f4e8; color: #22603a; }
.rvp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media only screen and (max-width: 1200px) {
	.rvp-form__grid { grid-template-columns: 220px minmax(0, 1fr); }
	.rvp-form__text { grid-column: 1 / -1; }
}
@media only screen and (max-width: 1100px) {
	.rvp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media only screen and (max-width: 640px) {
	.rvp-top { flex-direction: column; }
	.rvp-write { width: 100%; justify-content: center; }
	.rvp-bar { flex-direction: column; align-items: stretch; }
	.rvp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; scrollbar-width: none; }
	.rvp-chips::-webkit-scrollbar { display: none; }
	.rvp-chip { padding: 8px 16px; }
	.rvp-sort select { width: 100%; }
	.rvp-card, .rvp-card--media { grid-template-columns: minmax(0, 1fr); padding: 12px; }
	.rvp-photo { flex: 0 0 auto; height: 240px; }
	.rvp-card:not(.rvp-card--media) .rvp-card__head { grid-template-columns: auto minmax(0, 1fr); }
	.rvp-card:not(.rvp-card--media) .rvp-card__rate { grid-column: 2; padding-left: 0; }
	.rvp-card:not(.rvp-card--media) .rvp-ava { grid-row: span 2; }
	.rvp-ava { width: 44px; height: 44px; font-size: 15px; }
	.rvp-stars { font-size: 22px; }
	.rvp-orig { margin-left: 0; }
	.rvp-form { padding: 16px 14px; }
	.rvp-form__grid { grid-template-columns: minmax(0, 1fr); }
	.rvp-send { width: 100%; }
}
