* {
    box-sizing: border-box;
}

.public-reviews-page {
    min-height: calc(100vh - 55px);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 61, 0.16), transparent 34%),
        linear-gradient(180deg, #fff7f2 0%, #ffffff 48%);
    padding: 24px 16px 60px;
}

.public-reviews-page__container {
    max-width: 920px;
    margin: 0 auto;
}

.public-reviews-header {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
    padding: 18px;
}

.public-reviews-header__back {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f3f4f8;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.public-reviews-header__main {
    margin-top: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.public-reviews-header__avatar {
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 122, 61, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a00;
    font-size: 30px;
    font-weight: 900;
    flex: 0 0 auto;
}

.public-reviews-header__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-reviews-header__info {
    min-width: 0;
}

.public-reviews-header__info h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    color: #1f1f1f;
}

.public-reviews-header__name {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
    color: rgba(31, 31, 31, 0.72);
}

.public-reviews-header__rating {
    margin-top: 8px;
    transform: scale(0.86);
    transform-origin: left top;
}

.public-reviews-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-review-card {
    background: #ffffff;
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    padding: 18px;
}

.public-review-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.public-review-card__author {
    min-width: 0;
    font-size: 16px;
    font-weight: 900;
    color: #1f1f1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-review-card__date {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: rgba(31, 31, 31, 0.46);
}

.public-review-card__rating {
    margin-top: 8px;
    transform: scale(0.72);
    transform-origin: left top;
}

.public-review-card__topic {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 900;
    color: #ff7a00;
}

.public-review-card__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #1f1f1f;
    white-space: pre-wrap;
    word-break: break-word;
}

.public-review-card__photos {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-review-card__photo {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f8;
    display: block;
}

.public-review-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-reviews-empty {
    margin-top: 18px;
    min-height: 220px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 17px;
    font-weight: 800;
    color: rgba(31, 31, 31, 0.46);
}

@media (max-width: 680px) {
    .public-reviews-page {
        padding: 12px 10px 40px;
    }

    .public-reviews-header {
        border-radius: 22px;
        padding: 14px;
    }

    .public-reviews-header__main {
        gap: 12px;
    }

    .public-reviews-header__avatar {
        width: 70px;
        border-radius: 16px;
    }

    .public-reviews-header__info h1 {
        font-size: 28px;
    }

    .public-review-card {
        border-radius: 20px;
        padding: 14px;
    }

    .public-review-card__top {
        flex-direction: column;
        gap: 4px;
    }

    .public-review-card__date {
        font-size: 12px;
    }

    .public-review-card__photo {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }
}


.public-reviews-pagination {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.public-reviews-pagination__btn,
.public-reviews-pagination__current {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.public-reviews-pagination__btn {
    background: linear-gradient(90deg, #ff7a3d 0%, #ff5e2f 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 122, 61, 0.22);
}

.public-reviews-pagination__btn--disabled {
    background: #f0f1f5;
    color: rgba(31, 31, 31, 0.34);
    box-shadow: none;
}

.public-reviews-pagination__current {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid rgba(31, 31, 31, 0.08);
}