/* Public /reviews page */

.reviews-page {
    --rp-ink: #151A22;
    --rp-mute: #6B7280;
    --rp-brand: #1185D8;
    --rp-line: #E7EDF4;
    --rp-soft: #F7F9FC;
    --rp-star: #F5A623;
    padding: 28px 0 72px;
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(17, 133, 216, 0.07), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--rp-soft) 100%);
    font-family: Play, sans-serif;
    color: var(--rp-ink);
}

.reviews-page__shell {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
}

.reviews-page__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--rp-mute);
}

.reviews-page__crumbs a {
    color: var(--rp-mute);
    text-decoration: none;
}

.reviews-page__crumbs a:hover { color: var(--rp-brand); }

.reviews-page__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rp-brand);
}

.reviews-page__title {
    margin: 0;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.reviews-page__lead {
    margin: 12px 0 0;
    max-width: 56ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rp-mute);
}

.reviews-page__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 22px;
}

.reviews-page__avg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reviews-page__avg-num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.reviews-page__count {
    margin: 0;
    font-size: 14px;
    color: var(--rp-mute);
}

.reviews-page__stars {
    display: inline-flex;
    gap: 3px;
    color: #D1D5DB;
    font-size: 14px;
}

.reviews-page__stars .is-on {
    color: var(--rp-star);
}

.reviews-page__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.reviews-page__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.reviews-page__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reviews-page__date {
    font-size: 12px;
    color: var(--rp-mute);
    white-space: nowrap;
}

.reviews-page__author {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.reviews-page__company {
    margin: 0;
    font-size: 13px;
    color: var(--rp-mute);
}

.reviews-page__text {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
    white-space: pre-wrap;
}

.reviews-page__product {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rp-line);
    text-decoration: none;
    color: inherit;
}

.reviews-page__product span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rp-mute);
}

.reviews-page__product strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--rp-brand);
    line-height: 1.35;
}

.reviews-page__product:hover strong {
    text-decoration: underline;
}

.reviews-page__empty {
    margin-top: 36px;
    padding: 36px 28px;
    border: 1px dashed var(--rp-line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.reviews-page__empty h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.reviews-page__empty p {
    margin: 0 0 18px;
    color: var(--rp-mute);
}

.reviews-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--rp-brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.reviews-page__btn:hover {
    filter: brightness(1.05);
}

.reviews-page__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--rp-mute);
}

.reviews-page__pager a {
    color: var(--rp-brand);
    font-weight: 700;
    text-decoration: none;
}

.reviews-page__pager a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .reviews-page__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reviews-page__shell {
        width: calc(100% - 28px);
    }
}
