.rating-1 { color: #d62f28 !important; }
.rating-2 { color: #ef5a35 !important; }
.rating-3 { color: #d59100 !important; }
.rating-4 { color: #65a52f !important; }
.rating-5 { color: #16844b !important; }
.rating-none { color: #8e878c !important; }

.review-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 8%, white);
}
.review-rating b { font-size: 19px; line-height: 1; }
.review-rating small { color: currentColor; font-size: 10px; font-weight: 900; }
.rating-origin { color: #8f888d; font-size: 9px; }
.inline-rating { font-size: 1.15em; }

.full-review-head .author-avatar,
.review-detail-meta .author-avatar {
    display: grid;
    place-items: center;
    color: #fff;
    line-height: 1;
}

.directory-intro { max-width: 700px; margin: -12px 0 24px; color: #6f686d; }
.result-review-button { margin-top: 9px; padding: 8px 10px; border-radius: 9px; color: #fff; background: var(--coral); font-size: 9px; font-weight: 900; white-space: nowrap; }
.recent-reviews-list { display: grid; gap: 14px; max-width: 920px; }
.company-created-note { margin: 18px 0; padding: 14px; border-left: 3px solid var(--lime); border-radius: 0 12px 12px 0; background: #f0f6df; }
.company-created-note strong,.company-created-note span { display: block; }
.company-created-note strong { font-size: 12px; }
.company-created-note span { margin-top: 4px; color: #68705e; font-size: 10px; line-height: 1.5; }
.company-field { display: grid; gap: 7px; margin-top: 16px; }
.company-field .text-field { margin-top: 0; }

/* Пользовательский текст не должен расширять карточки и ломать сетку. */
.review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-card,
.review-card blockquote,
.full-review,
.full-review h3,
.full-review > p,
.review-detail,
.review-detail h1,
.review-body > p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 760px) {
    .result-review-button { display: inline-block; }
    .review-rating { padding: 6px 8px; }
}
