.reviews-page {
    width: 100%;
}

.reviews-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.reviews-page__item {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 24px;
    border: 1px solid #e5e1da;
    border-radius: 6px;
    background: #fff;
}

.reviews-page__header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
}

.reviews-page__avatar {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    background: #2b2b2b;
}

.reviews-page__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-page__author {
    color: #141414;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.reviews-page__rank {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
    line-height: 1.3;
}

.reviews-page__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 18px;
}

.reviews-page__stars {
    display: inline-flex;
    gap: 2px;
    color: #cfc8be;
    font-size: 18px;
    line-height: 1;
}

.reviews-page__stars .is-active {
    color: #e48c2a;
}

.reviews-page__date {
    color: #777;
    font-size: 13px;
    line-height: 1.3;
}

.reviews-page__text {
    margin-top: 18px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.reviews-page__images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.reviews-page__images a {
    display: block;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 4px;
}

.reviews-page__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviews-page__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 22px;
}

.reviews-page__product,
.reviews-page__source {
    color: #141414;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reviews-page__source {
    color: #6f6252;
}

.reviews-page__empty {
    padding: 32px;
    border: 1px solid #e5e1da;
    border-radius: 6px;
    color: #555;
    font-size: 16px;
    background: #fff;
}

.reviews-page__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.reviews-page__pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dedede;
    border-radius: 4px;
    color: #141414;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
}

.reviews-page__pagination-item.is-current {
    color: #fff;
    border-color: #141414;
    background: #141414;
}

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

@media (max-width: 640px) {
    .reviews-page__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .reviews-page__item {
        min-height: 0;
        padding: 18px;
    }
}
