/* ============================================================
   СТРАНИЦА /reviews
   ============================================================ */

.reviews-page {
    background: var(--surface-soft);
    padding: var(--space-section) var(--space-inline);
}

/* ---------- Заголовок ---------- */
.reviews-page__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 55px;
    max-width: 1120px;
    margin: 0 auto 34px;
}

.reviews-page__head .kicker {
    margin-bottom: 12px;
}

.reviews-page__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -.025em;
    color: var(--text-primary);
}

.reviews-page__title em {
    color: var(--accent);
    font-style: normal;
    font-weight: 400;
}

.reviews-page__lead {
    max-width: 430px;
    margin: 0;
    color: var(--muted, var(--text-muted));
    font-size: var(--fs-small);
    line-height: 1.7;
}

/* ---------- Сетка (2 колонки на десктопе) ---------- */
.reviews-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

/* ============================================================
   УНИВЕРСАЛЬНАЯ КАРТОЧКА ОТЗЫВА С ФОТО
   ============================================================ */

.review-card {
    display: flex;
    flex-direction: row;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(8, 40, 72, .07);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}

.review-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(8, 48, 88, .14);
}

/* Фото слева */
.review-card__image {
    position: relative;
    flex: none;
    width: 40%;
    max-width: 220px;
    background: var(--surface-photo);
    overflow: hidden;
}

.review-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Плашки «До» / «После» */
.review-card__label {
    position: absolute;
    left: 10px;
    z-index: 2;
    padding: 6px 10px;
    color: #fff;
    font-size: var(--fs-nano);
    font-weight: 800;
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
    background: var(--overlay-strong);
    border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.review-card__label--before {
    top: 10px;
}

.review-card__label--after {
    top: calc(50% + 10px);
    background: var(--accent);
}

/* Текстовая часть справа */
.review-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
    min-width: 0;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

.review-card__treatment {
    color: var(--accent-deep);
    font-size: var(--fs-nano);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.review-card__rating {
    flex: none;
    color: #efad35;
    font-size: var(--fs-small);
    letter-spacing: .1em;
    white-space: nowrap;
}

.review-card__text {
    margin: 0 0 24px;
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--fs-body);
    line-height: 1.65;
    flex-grow: 1;
}

.review-card__footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.review-card__footer strong {
    color: var(--text-primary);
    font-size: var(--fs-body);
    font-weight: 700;
}

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

@media (max-width: 900px) {
    .reviews-page__head {
        display: block;
    }

    .reviews-page__lead {
        margin-top: 18px;
    }

    .reviews-page__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .review-card {
        flex-direction: column;
    }

    /* На мобилке фото целиком — без кропа */
    .review-card__image {
        width: 100%;
        max-width: none;
        height: auto;
    }

    .review-card__image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .review-card__body {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card {
        transition: none !important;
    }
}