/* ═══════════════════════════════════════════════════════════════════
   reviews.css — страница отзывов с 2ГИС.
   ═══════════════════════════════════════════════════════════════════ */

.reviews-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.reviews-page-header .page-title { margin-bottom: 6px; }
.reviews-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 640px;
}
.reviews-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}
.reviews-source-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
}
.reviews-source-link svg { flex-shrink: 0; width: 14px; height: 14px; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
    min-width: 0;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.review-card:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.03);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-color);
}
.review-card:active { transform: translateY(0); }
.review-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.review-card-arrow {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.review-card:hover .review-card-arrow {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    transform: rotate(0deg) scale(1.05);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 32px;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.review-meta { flex: 1; min-width: 0; }
.review-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.review-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.review-stars {
    font-size: 16px;
    letter-spacing: 1px;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
}
.star.full { color: var(--rating-gold); }
.star.half { color: var(--rating-gold); opacity: 0.6; }
.star.empty { color: var(--border); }

.review-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-main);
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
}

/* ═══════════════ ОТВЕТ МАСТЕРСКОЙ ═══════════════ */
.review-answer {
    background: var(--skeleton-base);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.review-answer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 4px;
    word-break: break-word;
}

.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 40px 16px;
    line-height: 1.7;
}
.reviews-empty a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.reviews-empty a:hover { text-decoration: underline; }

/* ═══════════════ SKELETON ═══════════════ */
.review-card.skeleton { pointer-events: none; opacity: 0.6; }
.skeleton-block,
.skeleton-line {
    background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-highlight), var(--skeleton-base));
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
    border-radius: 6px;
}
.skeleton-block { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.skeleton-line { height: 12px; width: 100%; }
.skeleton-line.short { width: 70%; }
.skeleton-line.tiny  { width: 40%; height: 10px; }
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}