.review-card {
    width: 100%;
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: var(--radius-2xl);
}
.review-card .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.review-card .head .rate .star-rating {
    flex-direction: row-reverse;
    gap: normal;
}
.review-card .head .rate .star-rating__value {
    color: var(--color-text);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin-left: 6px;
}
.review-card .head .rate .star-rating__star--full,
.review-card .head .rate .star-rating__star--half::after {
    color: var(--color-bg-fourth);
}
.review-card .head .created_at {
    color: var(--color-text-link);
    font-size: 14px;
    line-height: 20px;
}
.review-card .name {
    margin-top: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.review-card .verify::after {
    margin-left: 5px;
}
/* Work-type tag: the localized WorkType name as a subtle accent chip, so a
   reader sees what kind of work the review is about. */
.review-card .work-type {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-third);
    color: var(--color-text-third);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}
.review-card .text {
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
/* A fixed column count (not flex-wrap) so the row a card can spend on photos
   is the same everywhere: the blade caps the visible thumbs at exactly one
   desktop row, and the same six fill two rows on a phone. */
.review-card .photos {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.review-card .photos a {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
}
/* Photos past the first row: still anchors GLightbox counts into the gallery,
   just never laid out (and their lazy thumbs never fetched). */
.review-card .photos a.extra {
    display: none;
}
.review-card .photos picture,
.review-card .photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* "+N" over the last visible thumb. The tile stays an ordinary lightbox
   anchor, so the badge is a hint about what opening it holds, not a separate
   control. Dark scrim over an arbitrary photo — fixed colors, not theme
   tokens. */
.review-card .photos .more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}
/* The company's answer, nested under the review it answers. Tinted and
   indented rather than styled as a second card: it is a reply inside this
   review, not another voice in the list. Same accent (--color-bg-third) the
   site uses everywhere for "this is site/company chrome, not user text". */
.review-card .company-reply {
    margin-top: 16px;
    padding: 16px 20px;
    border-left: 2px solid var(--color-border-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--color-bg-third);
}
.review-card .company-reply .reply-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.review-card .company-reply .reply-head .icon {
    display: flex;
    font-size: 18px;
    color: var(--color-text-third);
}
.review-card .company-reply .reply-author {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}
.review-card .company-reply .reply-date {
    color: var(--color-text-link);
    font-size: 13px;
    line-height: 18px;
}
.review-card .company-reply .reply-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 22px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.review-card .bottom_panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.review-card .bottom_panel .about_company {
    color: var(--color-text-link);
    font-size: 14px;
    line-height: 20px;
}
.review-card .bottom_panel .to_company {
    color: var(--color-text-third);
    flex-shrink: 0;
}


@media (max-width: 768px) {

    .review-card {
        padding: 20px;
    }
    .review-card .name {
        font-size: 14px;
        line-height: 20px;
        margin-top: 15px;
    }
    .review-card .text {
        font-size: 14px;
        line-height: 20px;
        margin-top: 6px;
    }
    .review-card .work-type {
        font-size: 12px;
        margin-top: 8px;
    }
    .review-card .photos {
        margin-top: 15px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .review-card .photos .more {
        font-size: 16px;
        line-height: 20px;
    }
    .review-card .bottom_panel .about_company {
        font-size: 11px;
        line-height: 15px;
    }
    .review-card .bottom_panel .to_company {
        font-size: 14px;
        line-height: 20px;
    }
}
