.reviews-section {
    margin-top: 64px;
    margin-bottom: 48px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 32px;
}

.reviews-summary__score {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.reviews-summary__stars .star,
.review-card__stars .star {
    color: #d9dce3;
    font-size: 18px;
}

.reviews-summary__stars .star--filled,
.review-card__stars .star--filled {
    color: #fbbf24;
}

.reviews-summary__count {
    color: #6b7280;
    font-size: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.review-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-card__badge {
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 999px;
}

.review-card__text {
    color: #374151;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
}

.review-card__date {
    color: #9ca3af;
    font-size: 12px;
}

.reviews-empty,
.reviews-note {
    color: #6b7280;
    font-size: 14px;
}

.reviews-note a {
    color: #2563eb;
    text-decoration: none;
}

.review-form-card {
    padding: 24px;
    max-width: 480px;
}

.review-form-card h3 {
    margin: 0 0 16px;
    color: #1a1a2e;
    font-size: 18px;
}

.star-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 16px;
}

.star-picker input {
    display: none;
}

.star-picker label {
    font-size: 32px;
    line-height: 1;
    color: #d9dce3;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
}

.star-picker label:hover,
.star-picker label:hover ~ label {
    color: #fbbf24;
    transform: scale(1.08);
}

.star-picker input:checked ~ label {
    color: #fbbf24;
}

.review-form__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
}

.review-form__textarea:focus {
    outline: none;
    border-color: #2563eb;
}
/* ===== ДОПОЛНЕНИЯ: карточки и форма самодостаточны ===== */
.review-card,
.review-form-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.review-card { transition: transform .2s ease, box-shadow .2s ease; }
.review-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15,23,42,.10); }

/* плавная волна зажигания звёзд слева→направо */
.star-picker label {
    transition: color .25s ease, transform .15s ease;
    transition-delay: var(--d,0s), 0s;
}
.star-picker label[for="star1"] { --d: 0s; }
.star-picker label[for="star2"] { --d: .05s; }
.star-picker label[for="star3"] { --d: .1s; }
.star-picker label[for="star4"] { --d: .15s; }
.star-picker label[for="star5"] { --d: .2s; }
.star-picker input:checked ~ label { text-shadow: 0 2px 10px rgba(251,191,36,.4); }

/* звёзды в режиме просмотра (витрина) */
.stars-view { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 3px; color: #d9dce3; }
.stars-fill { position: absolute; left: 0; top: 0; white-space: nowrap; overflow: hidden; color: #fbbf24; text-shadow: 0 2px 8px rgba(251,191,36,.35); }

/* кнопки действий */
.reviews-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rv-btn { display: inline-block; background: #2563eb; border: none; color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 12px; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s; }
.rv-btn:hover { background: #1e56d6; }
.rv-btn:active { transform: scale(.98); }
.rv-btn--ghost { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.rv-btn--ghost:hover { background: #eef4ff; }
.rv-btn--full { width: 100%; }

/* пустое состояние и подсказка под звёздами */
.reviews-empty { text-align: center; border: 1px dashed #dde3ea; border-radius: 16px; padding: 28px 16px; }
.review-form-card .reviews-note { margin-bottom: 12px; }

/* сообщения прямо в форме отзыва */
.rv-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin: 0 0 14px; }
.rv-msg--success { background: #d1fae5; color: #065f46; }
.rv-msg--error { background: #fee2e2; color: #991b1b; }
/* шкалы распределения оценок */
.rv-dist { max-width: 420px; margin: 0 auto 24px; display: flex; flex-direction: column; gap: 8px; }
.rv-dist-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #64748b; text-decoration: none; }
.rv-dist-row:hover .rv-dist-label { color: #2563eb; }
.rv-dist-label { width: 36px; flex: none; color: #374151; font-weight: 600; }
.rv-dist-bar { display: block; flex: 1; height: 8px; background: #e5e9f0; border-radius: 99px; overflow: hidden; }
.rv-dist-fill { display: block; height: 100%; background: #fbbf24; border-radius: 99px; }
.rv-dist-count { width: 20px; text-align: right; flex: none; }

/* фильтры-чипы */
.rv-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 28px; }
.rv-chip { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #dbe3ec; background: #fff; color: #475569; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.rv-chip:hover { border-color: #2563eb; color: #2563eb; }
.rv-chip--active { background: #2563eb; border-color: #2563eb; color: #fff; }
.rv-chip--active:hover { color: #fff; }
/* кнопка удаления отзыва */
.rv-btn--danger { background: #fff; color: #dc2626; border: 1px solid #fca5a5; }
.rv-btn--danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }