/* ==========================================================================
   Отзывы: список /otzyvy и отдельный отзыв /otzyv
   ========================================================================== */

.rv-page {
    --rv-bg: #fcf0ea;
    --rv-card: #f8ece5;
    --rv-card-2: #f1ddd1;
    --rv-line: #e2cbbc;
    --rv-accent: #b28663;
    --rv-accent-dark: #96694a;
    --rv-ink: #1d1d1d;
    --rv-ink-soft: rgba(29, 29, 29, 0.82);
    --rv-ink-mute: rgba(29, 29, 29, 0.6);
    --rv-shadow: 0 26px 60px rgba(122, 78, 45, 0.13);
    --rv-shadow-soft: 0 16px 38px rgba(122, 78, 45, 0.10);

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 2%, rgba(255, 255, 255, 0.9), transparent 32%),
        radial-gradient(circle at 94% 18%, rgba(178, 134, 99, 0.12), transparent 30%),
        radial-gradient(circle at 2% 86%, rgba(178, 134, 99, 0.10), transparent 28%),
        var(--rv-bg);
}

.rv-page *,
.rv-page *::before,
.rv-page *::after {
    box-sizing: border-box;
}

.rv-container {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.rv-section {
    position: relative;
    padding: clamp(46px, 5.5vw, 88px) 0;
}

.rv-section--head {
    padding-bottom: clamp(26px, 3vw, 42px);
}

.rv-section--flush {
    padding-top: 0;
}

.rv-stars {
    position: absolute;
    top: 3%;
    right: -40px;
    width: clamp(180px, 22vw, 340px);
    opacity: 0.18;
    transform: rotate(24deg);
    pointer-events: none;
    user-select: none;
}

/* --- шапка --------------------------------------------------------------- */

.rv-head {
    text-align: center;
}

.rv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: "Spectral", serif;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rv-accent);
}

.rv-eyebrow::before,
.rv-head .rv-eyebrow::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--rv-accent);
    opacity: 0.6;
}

.rv-title {
    margin: 0;
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem) !important;
    line-height: 1.1;
    color: var(--rv-ink);
}

.rv-head .rv-title::after {
    content: "";
    display: block;
    width: 96px;
    height: 1px;
    margin: 26px auto 0;
    background: var(--rv-accent);
    opacity: 0.55;
}

/* --- кнопки -------------------------------------------------------------- */

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 16px 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--rv-accent);
    color: #fff9f5;
    font-family: "Forum", serif;
    font-size: 1.1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(150, 105, 74, 0.22);
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}

.rv-btn:hover,
.rv-btn:focus-visible {
    background: var(--rv-accent-dark);
    color: #fff9f5;
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(150, 105, 74, 0.28);
}

.rv-btn__arrow {
    transition: transform .3s ease;
}

.rv-btn:hover .rv-btn__arrow {
    transform: translateX(5px);
}

.rv-btn--ghost {
    background: transparent;
    color: var(--rv-ink);
    border-color: var(--rv-line);
    box-shadow: none;
}

.rv-btn--ghost:hover,
.rv-btn--ghost:focus-visible {
    background: rgba(178, 134, 99, 0.08);
    border-color: var(--rv-accent);
    color: var(--rv-ink);
    box-shadow: none;
}

/* ==========================================================================
   СЕТКА ОТЗЫВОВ
   ========================================================================== */

.rv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.rv-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: var(--rv-card);
    border: 1px solid rgba(226, 203, 188, 0.75);
    box-shadow: var(--rv-shadow-soft);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease, border-color .4s ease;
}

.rv-card:hover {
    transform: translateY(-8px);
    border-color: var(--rv-accent);
    box-shadow: var(--rv-shadow);
}

/* окно скриншота: размытая подложка + сам скрин целиком, без обрезки */
.rv-shot {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--rv-card-2);
}

.rv-shot__blur {
    position: absolute;
    inset: -12%;
    background-position: center;
    background-size: cover;
    filter: blur(26px) saturate(0.9);
    opacity: 0.55;
    transform: scale(1.08);
}

.rv-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(252, 240, 234, 0.35) 0%, rgba(252, 240, 234, 0) 40%);
    pointer-events: none;
}

.rv-shot__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.rv-card:hover .rv-shot__img {
    transform: scale(1.04);
}

/* --- тело карточки ------------------------------------------------------- */

.rv-card__body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 26px 28px 28px;
}

.rv-card__quote {
    position: absolute;
    top: 4px;
    right: 24px;
    font-family: "Forum", serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--rv-accent);
    opacity: 0.16;
    pointer-events: none;
}

/* текст одинаковой высоты во всех карточках — ровно пять строк */
.rv-card__text {
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 22px;
    min-height: calc(5 * 1.62em);
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.62;
    color: var(--rv-ink-soft);
}

/* фиксированная высота — карточки одинаковые и с именем автора, и без него */
.rv-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--rv-line);
}

.rv-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rv-author__avatar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(178, 134, 99, 0.16);
    color: var(--rv-accent-dark);
    font-family: "Forum", serif;
    font-size: 1.2rem;
    line-height: 1;
}

.rv-author__name {
    display: block;
    font-family: "Forum", serif;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--rv-ink);
}

.rv-author__account {
    display: block;
    margin-top: 3px;
    font-family: "Spectral", serif;
    font-size: 0.86rem;
    line-height: 1.2;
    color: var(--rv-ink-mute);
}

.rv-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-family: "Forum", serif;
    font-size: 1rem;
    color: var(--rv-accent-dark);
    text-decoration: none;
    transition: color .3s ease;
}

.rv-more span {
    transition: transform .3s ease;
}

.rv-more:hover {
    color: var(--rv-accent);
}

.rv-more:hover span {
    transform: translateX(4px);
}

/* ==========================================================================
   ОТДЕЛЬНЫЙ ОТЗЫВ
   ========================================================================== */

.rv-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    font-family: "Spectral", serif;
    font-size: 0.92rem;
    color: var(--rv-ink-mute);
}

.rv-crumbs a {
    color: var(--rv-ink-mute);
    text-decoration: none;
    transition: color .3s ease;
}

.rv-crumbs a:hover {
    color: var(--rv-accent);
}

.rv-crumbs span[aria-hidden] {
    opacity: 0.5;
}

.rv-single {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.rv-single__shot {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: var(--rv-card-2);
    box-shadow: var(--rv-shadow);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease;
}

.rv-single__shot img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.rv-single__shot:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 66px rgba(122, 78, 45, 0.2);
}

.rv-single__shot:hover img {
    transform: scale(1.03);
}

.rv-single__card {
    position: relative;
    padding: clamp(30px, 3.4vw, 54px);
    border-radius: 36px;
    background: var(--rv-card);
    border: 1px solid rgba(226, 203, 188, 0.8);
    box-shadow: var(--rv-shadow-soft);
}

.rv-single__quote {
    position: absolute;
    top: 10px;
    right: 32px;
    font-family: "Forum", serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--rv-accent);
    opacity: 0.14;
    pointer-events: none;
}

.rv-single__text {
    position: relative;
    font-family: "Spectral", serif;
    font-style: italic;
    font-size: clamp(1.02rem, 1.15vw, 1.2rem);
    line-height: 1.75;
    color: var(--rv-ink-soft);
}

.rv-single__text p {
    margin: 0 0 18px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.rv-single__text p:last-child {
    margin-bottom: 0;
}

.rv-single__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--rv-line);
}

.rv-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* --- другие отзывы ------------------------------------------------------- */

.rv-more__title {
    margin: 0 0 clamp(24px, 3vw, 38px);
    font-family: "Forum", serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem) !important;
    line-height: 1.2;
    text-align: center;
    color: var(--rv-ink);
}

/* ==========================================================================
   ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ (класс rv-anim ставит скрипт)
   ========================================================================== */

.rv-page.rv-anim .rv-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.rv-page.rv-anim .rv-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .rv-page.rv-anim .rv-reveal,
    .rv-card,
    .rv-single__shot {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

@media (max-width: 1199.98px) {
    .rv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .rv-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .rv-single__shot {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .rv-stars {
        display: none;
    }

    .rv-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .rv-card__body {
        padding: 24px 22px 26px;
    }

    /* на телефоне текст не обрезаем */
    .rv-card__text {
        -webkit-line-clamp: unset;
        min-height: 0;
        display: block;
        overflow: visible;
    }

    .rv-single__actions .rv-btn {
        width: 100%;
    }

    .rv-btn {
        min-height: 58px;
        padding: 14px 20px;
        font-size: 1.02rem;
        gap: 8px;
    }

    .rv-single__quote {
        font-size: 5.4rem;
        right: 18px;
    }
}
