/* Отзывы: страница /otzyvy/ и раздел «Отзывы» в личном кабинете. */

.ta-rv-wrap *, .ta-rv-wrap *::before, .ta-rv-wrap *::after { box-sizing: border-box; }
.ta-rv-wrap { max-width: 1560px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.ta-rv-gap { height: clamp(48px, 6vw, 80px); }

.ta-rv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0 18px; font-size: 13px; color: #5E6478; }
.ta-rv-crumbs a:hover { color: #BD123C; }
.ta-rv-crumbs i { font-style: normal; color: #B8BCC8; }
.ta-rv-crumbs span { color: #14182B; }

.ta-rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 26px; }
.ta-rv-head h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: #0F1E50; }
.ta-rv-head span { font-size: 15px; color: #5E6478; }

/* Звёзды (просмотр) */
.ta-rv-stars-ro { display: inline-flex; gap: 2px; line-height: 1; }
.ta-rv-stars-ro i { font-style: normal; font-size: 18px; color: #D5D8E2; }
.ta-rv-stars-ro i.on { color: #F2A900; }

/* Раскладка: отзывы + боковая колонка */
.ta-rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.ta-rv-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.ta-rv-list { display: grid; gap: 16px; min-width: 0; }

/* Карточка отзыва */
.ta-rv-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid #E5E7EE; border-radius: 22px; background: #fff; }
.ta-rv-card__ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #FBEFF2; color: #BD123C; display: flex; align-items: center; justify-content: center; flex: none; }
.ta-rv-card__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-rv-card__main { min-width: 0; }
.ta-rv-card__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.ta-rv-card__who { display: grid; gap: 2px; min-width: 0; }
.ta-rv-card__who b { font-size: 18px; line-height: 1.3; font-weight: 600; color: #0F1E50; overflow-wrap: anywhere; }
.ta-rv-card__who span { font-size: 14px; color: #5E6478; overflow-wrap: anywhere; }
.ta-rv-card__meta { display: grid; justify-items: end; gap: 4px; }
.ta-rv-card__meta time { font-size: 13px; color: #5E6478; }
.ta-rv-card__text { margin: 0; font-size: 16px; line-height: 1.65; color: #1F2438; overflow-wrap: anywhere; }
.ta-rv-card__imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ta-rv-card__imgs a { display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid #E5E7EE; background: #F4F5F8; }
.ta-rv-card__imgs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.ta-rv-card__imgs a:hover img { transform: scale(1.06); }

/* Ответ администратора под отзывом */
.ta-rv-reply { margin-top: 18px; padding: 16px 18px; border-left: 3px solid #BD123C; border-radius: 0 14px 14px 0; background: #F4F5F8; }
.ta-rv-reply__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.ta-rv-reply__head b { font-size: 14px; font-weight: 600; color: #BD123C; }
.ta-rv-reply__head span { font-size: 13px; color: #5E6478; }
.ta-rv-reply p { margin: 0; font-size: 15px; line-height: 1.6; color: #1F2438; overflow-wrap: anywhere; }
.ta-rv-mine__item .ta-rv-reply { margin: 10px 0; }

/* Сводка */
.ta-rv-sum { padding: 26px; border: 1px solid #E5E7EE; border-radius: 22px; background: #fff; }
.ta-rv-sum__top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ta-rv-sum__avg { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #0F1E50; }
.ta-rv-sum__top .ta-rv-stars-ro i { font-size: 22px; }
.ta-rv-sum__cnt { margin-top: 6px; font-size: 14px; color: #5E6478; }
.ta-rv-bars { display: grid; gap: 8px; }
.ta-rv-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; align-items: center; gap: 10px; font-size: 13px; color: #5E6478; }
.ta-rv-bar__t { display: block; height: 8px; border-radius: 6px; background: #EEF0F5; overflow: hidden; }
.ta-rv-bar__t span { display: block; height: 100%; border-radius: 6px; background: #F2A900; }
.ta-rv-bar__c { text-align: right; }

/* Призыв оставить отзыв */
.ta-rv-cta { padding: 26px; border-radius: 22px; background: linear-gradient(150deg, #0F1E50, #1B2F70); color: #fff; }
.ta-rv-cta__t { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 10px; }
.ta-rv-cta p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #C9D0E6; }

.ta-rv-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 12px; background: #BD123C; color: #fff; font-size: 15px; font-weight: 600; transition: background-color .15s ease, transform .15s ease; }
.ta-rv-btn:hover { background: #A30F34; color: #fff; transform: translateY(-1px); }
.ta-rv-btn--light { background: #fff; color: #BD123C; width: 100%; }
.ta-rv-btn--light:hover { background: #fff; color: #A30F34; }

/* Пагинация */
.ta-rv-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.ta-rv-pager a, .ta-rv-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #E5E7EE; border-radius: 10px; font-size: 15px; color: #14182B; background: #fff; }
.ta-rv-pager a:hover { border-color: #BD123C; color: #BD123C; }
.ta-rv-pager .is-active { background: #0F1E50; border-color: #0F1E50; color: #fff; }

/* Пусто */
.ta-rv-empty { padding: clamp(32px, 5vw, 56px); border: 1px dashed #C9CDD9; border-radius: 24px; background: #F4F5F8; text-align: center; }
.ta-rv-empty__t { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: #0F1E50; margin-bottom: 10px; }
.ta-rv-empty p { margin: 0 auto 22px; max-width: 460px; font-size: 16px; line-height: 1.6; color: #3A3F52; }

/* Просмотр фото */
.ta-rv-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10, 16, 40, .86); cursor: zoom-out; }
.ta-rv-lb img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.ta-rv-lb__x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ——— Личный кабинет: форма отзыва ——— */
.ta-rv-acc { display: grid; gap: 18px; }
.ta-rv-form { display: grid; gap: 14px; }

.ta-rv-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ta-rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ta-rv-rate label { font-size: 40px; line-height: 1; color: #D5D8E2; cursor: pointer; transition: color .12s ease, transform .12s ease; padding: 2px; }
.ta-rv-rate label:hover, .ta-rv-rate label:hover ~ label, .ta-rv-rate input:checked ~ label { color: #F2A900; }
.ta-rv-rate label:hover { transform: scale(1.08); }
.ta-rv-rate input:focus-visible + label { outline: 2px solid #0F1E50; outline-offset: 2px; border-radius: 6px; }

.ta-rv-count { margin-top: -6px; font-size: 12px; color: #8A8F9C; text-align: right; }

.ta-rv-files { display: grid; gap: 8px; }
.ta-rv-files input[type=file] { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px dashed #C9CDD9; border-radius: 12px; background: #F9FAFC; font: inherit; font-size: 14px; }
.ta-rv-files__err { padding: 10px 14px; border-radius: 10px; background: #FBEFF2; color: #9E0F33; font-size: 14px; }
.ta-rv-files__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ta-rv-files__list li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid #E5E7EE; border-radius: 12px; background: #fff; font-size: 13px; color: #3A3F52; max-width: 100%; }
.ta-rv-files__list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.ta-rv-files__list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ta-rv-show { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 6px; }
.ta-rv-show.is-off { opacity: .45; pointer-events: none; }
.ta-rv-opt { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid #E5E7EE; border-radius: 14px; background: #fff; cursor: pointer; }
.ta-rv-opt input { margin-top: 3px; accent-color: #BD123C; flex: none; width: 17px; height: 17px; }
.ta-rv-opt span { display: grid; gap: 2px; min-width: 0; }
.ta-rv-opt b { font-size: 14px; color: #14182B; }
.ta-rv-opt em { font-style: normal; font-size: 13px; color: #5E6478; overflow-wrap: anywhere; }
.ta-rv-opt:has(input:checked) { border-color: #BD123C; background: #FBEFF2; }
.ta-rv-opt.is-off { opacity: .5; cursor: not-allowed; }

/* Мои отзывы */
.ta-rv-mine__h { margin: 8px 0 0; font-size: 20px; font-weight: 600; color: #14182B; }
.ta-rv-mine { display: grid; gap: 12px; }
.ta-rv-mine__item { padding: 18px 20px; border: 1px solid #E5E7EE; border-radius: 16px; background: #fff; }
.ta-rv-mine__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.ta-rv-mine__date { margin-left: auto; font-size: 13px; color: #8A8F9C; }
.ta-rv-mine__item p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #1F2438; overflow-wrap: anywhere; }
.ta-rv-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF1F8; color: #0F1E50; }
.ta-rv-chip--publish { background: #E8F5EC; color: #1A7F3C; }
.ta-rv-chip--pending { background: #FFF3DC; color: #A86400; }
.ta-rv-chip--draft { background: #F1F2F5; color: #5E6478; }

@media (max-width: 1000px) {
	.ta-rv-layout { grid-template-columns: minmax(0, 1fr); }
	.ta-rv-aside { position: static; order: -1; }
}

@media (max-width: 560px) {
	.ta-rv-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ta-rv-card__ava { width: 48px; height: 48px; }
	.ta-rv-card__ava svg { width: 22px; height: 22px; }
	.ta-rv-card__meta { justify-items: start; }
	.ta-rv-sum__avg { font-size: 46px; }
	.ta-rv-rate label { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.ta-rv-btn, .ta-rv-rate label, .ta-rv-card__imgs img { transition: none; }
}
