/* ============================================================
   ASHLEY — page.reviews.list/style.css
   Accent: #F68C2C  |  BG: #FBF5EE
   ============================================================ */

:root {
    --a-accent:        #F68C2C;
    --a-accent-dark:   #D9730F;
    --a-accent-light:  #FEF0E3;
    --a-accent-glow:   rgba(246, 140, 44, 0.22);
    --a-bg:            #FBF5EE;
    --a-card:          #FFFFFF;
    --a-text:          #2B2118;
    --a-muted:         #A0897A;
    --a-border:        #EDE0D4;
    --a-sh-dark:       rgba(180, 140, 100, 0.18);
    --a-sh-light:      rgba(255, 255, 255, 0.95);
    --a-r-card:        18px;
    --a-r-btn:         50px;
    --a-font:          'Georgia', 'Times New Roman', serif;
    --a-font-ui:       'Trebuchet MS', 'Segoe UI', sans-serif;
}

/* ============================================================
   ОБЁРТКА СТРАНИЦЫ
   ============================================================ */
.red-body {
    /*background-color: var(--a-bg);*/
    min-height: 100vh;
    padding: 48px 32px 72px;
    font-family: var(--a-font-ui);
    color: var(--a-text);
}

/* ============================================================
   ЗАГОЛОВОК «Отзывы и оценки»
   ============================================================ */
.red-comments-info {
    /*border-bottom: 1px solid var(--a-border);*/
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.red-comments-info h1 {
    font-family: var(--a-font);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--a-accent);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.red-comments-info h1 .red-gray {
    color: var(--a-muted);
    font-weight: 400;
    font-size: 0.6em;
    font-family: var(--a-font-ui);
}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ (рейтинг + кнопка «Оставить отзыв»)
   ============================================================ */
.red-reviews-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    /*border-bottom: 1px solid var(--a-border);*/
}

.red-reviews-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reviews-overall {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--a-card);
    border: 1.5px solid var(--a-border);
    border-radius: var(--a-r-card);
    padding: 12px 22px;
    box-shadow:
            6px 6px 16px var(--a-sh-dark),
            -4px -4px 12px var(--a-sh-light);
}

.reviews-overall nobr {
    font-family: var(--a-font-ui);
    font-size: 0.9rem;
    color: var(--a-muted);
}

.reviews-overall big {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--a-accent);
    line-height: 1;
    font-family: var(--a-font);
}

.reviews-overall .star {
    width: 26px;
    height: 26px;
    display: inline-block;
    background-color: var(--a-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.reviews-stat {
    font-size: 0.85rem;
    color: var(--a-muted);
    line-height: 1.5;
}

/* ============================================================
   КНОПКА «ОСТАВИТЬ ОТЗЫВ»
   ============================================================ */
.red-reviews-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--a-accent);
    color: #fff;
    border: none;
    border-radius: var(--a-r-btn);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--a-font-ui);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px var(--a-accent-glow);
    white-space: nowrap;
}

.red-reviews-button:hover {
    background: var(--a-accent-dark);
    box-shadow: 0 6px 24px var(--a-accent-glow);
    transform: translateY(-2px);
}

.red-reviews-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--a-accent-glow);
}

/* ============================================================
   СОРТИРОВКА
   ============================================================ */
.red-reviews-sortbar {
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--a-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.red-link-dotted {
    color: var(--a-accent);
    /*border-bottom: 1px dashed var(--a-accent);*/
    cursor: pointer;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.red-link-dotted:hover {
    color: var(--a-accent-dark);
    border-color: var(--a-accent-dark);
}

/* ============================================================
   СПИСОК ОТЗЫВОВ
   ============================================================ */
.red-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================================
   КАРТОЧКА ОТЗЫВА
   ============================================================ */
.red-review {
    background: var(--a-card);
    border: 1px solid var(--a-border);
    border-radius: var(--a-r-card);
    padding: 28px 32px;
    box-shadow:
            6px 6px 18px var(--a-sh-dark),
            -4px -4px 12px var(--a-sh-light);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
}

.red-review:hover {
    box-shadow:
            8px 8px 24px var(--a-sh-dark),
            -4px -4px 14px var(--a-sh-light);
    transform: translateY(-2px);
}

/* --- Шапка карточки --- */
.red-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.red-review-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- Звёзды --- */
.red-review-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.red-review-stars .star {
    width: 20px;
    height: 20px;
    display: inline-block;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.red-review-stars .star-active  { background-color: var(--a-accent); }
.red-review-stars .star-inactive { background-color: var(--a-border); }

/* --- Имя и дата --- */
.red-review-name {
    font-size: 0.85rem;
    color: var(--a-muted);
    font-family: var(--a-font-ui);
}

/* --- Иконка «рекомендую» --- */
.red-review-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: initial !important;
    justify-content: initial !important;
    width: initial !important;
}

.red-review-recommend {
width: 30px !important;
height: 30px !important;
border-radius: 50% !important;
background: var(--a-accent-light) !important;
border: 1.5px solid var(--a-accent);
display: flex;
align-items: center;
justify-content: center;
font-size: 0;
position: relative;
flex-shrink: 0;
}

.red-review-recommend::after {
content: '✓';
font-size: 0.85rem;
color: var(--a-accent);
font-weight: 700;
line-height: 1;
}

/* Скрываем лишние дефолтные иконки */
.red-review-header-right img,
.red-review-header-right a:not([class]) {
    display: none !important;
}

/* --- Тело отзыва --- */
.red-review-body {
    margin-bottom: 20px;
}

.red-review-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--a-text);
}

/* --- Футер карточки (лайки) --- */
.red-review-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--a-border);
}

.red-review-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--a-border);
    border-radius: var(--a-r-btn);
    padding: 7px 18px;
    font-size: 0.82rem;
    font-family: var(--a-font-ui);
    color: var(--a-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.red-review-like-tap:hover {
    border-color: var(--a-accent);
    color: var(--a-accent);
    background: var(--a-accent-light);
}

.red-review-unlike-tap:hover {
    border-color: #C0392B;
    color: #C0392B;
    background: #FDECEA;
}

.js-review-likes-count,
.js-review-dislikes-count {
    font-weight: 700;
    margin-left: 2px;
}

/* --- Ответ представителя --- */
.red-review-answer {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--a-accent-light);
    border-left: 4px solid var(--a-accent);
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
}

.red-review-answer strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--a-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.red-review-answer p.text {
    margin: 0;
    color: var(--a-text);
    line-height: 1.65;
}

/* ============================================================
   КНОПКА «ПОКАЗАТЬ ЕЩЁ»
   ============================================================ */
.red-show-more-button-wrap {
    display: flex;
    justify-content: center;
    margin: 36px 0 20px;
}

.red-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 15px 44px;
    background: var(--a-card);
    color: var(--a-accent);
    border: 1.5px solid var(--a-border);
    border-radius: var(--a-r-btn);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--a-font-ui);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow:
            5px 5px 14px var(--a-sh-dark),
            -4px -4px 10px var(--a-sh-light);
}

.red-show-more-button:hover {
    background: var(--a-accent);
    color: #fff;
    border-color: var(--a-accent);
    box-shadow: 0 6px 20px var(--a-accent-glow);
    transform: translateY(-2px);
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */
.red-bottom {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.red-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.red-pagination li {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--a-font-ui);
    transition: all 0.2s;
}

.red-page-number {
    background: var(--a-card);
    border: 1px solid var(--a-border);
    box-shadow:
            4px 4px 10px var(--a-sh-dark),
            -3px -3px 8px var(--a-sh-light);
}

.red-page-number a {
    color: var(--a-muted);
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s;
}

.red-page-number a:hover {
    color: var(--a-accent);
}

.red-pagination-active {
    background: var(--a-accent);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 12px var(--a-accent-glow);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
    .red-body {
        padding: 28px 16px 56px;
    }

    .red-review {
        padding: 20px 18px;
    }

    .red-reviews-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        width: 100%;
        margin-top: 24px;
        justify-content: center;
    }

    .red-show-more-button {
        width: 100%;
        min-width: unset;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}