/* ==========================================================================
   Страница отзывов /about/responses/
   ========================================================================== */

.responses-section {
    padding: 40px 0 80px;
}

.responses-grid {
    column-count: 1;
    column-gap: 24px;
}

.response-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    break-inside: avoid;
    page-break-inside: avoid;
}

.response-card__name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.response-card__source-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.response-card__source-badge:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #0f172a;
}

.response-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.response-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.response-card__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3a5d 0%, #1e7bbd 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.response-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.response-card__meta {
    flex-grow: 1;
    min-width: 0;
}

.response-card__author {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
}

.response-card__location {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 8px;
}

.response-card__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 0.85rem;
    color: #64748b;
}

.response-card__date {
    font-weight: 600;
}

.response-card__source {
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 20px;
}

.response-card__rating {
    display: inline-flex;
    gap: 2px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1;
}

.response-card__star.is-filled {
    color: #f59e0b;
}

.response-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0f172a;
}

.response-card__body {
    display: block;
}

.response-card__text {
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 18px;
}

.response-card__expand {
    display: inline;
    margin-left: 4px;
    font-weight: 600;
    color: #1e7bbd;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    white-space: nowrap;
}

.response-card__expand:hover {
    color: #0f3a5d;
    border-bottom-style: solid;
}

.response-card__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.response-card__photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.response-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.response-card__photo:hover img {
    transform: scale(1.05);
}

.response-card__more-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
}

.response-card__helpful {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 12px;
}

.response-card__original {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e7bbd;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.response-card__original:hover {
    border-bottom-color: currentColor;
}

/* Модальное окно с полным текстом отзыва */
.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.review-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.review-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    z-index: 1;
}

.review-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.review-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.review-modal__content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.review-modal__content p:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .responses-grid {
        column-count: 2;
    }
}

@media (min-width: 1000px) {
    .responses-grid {
        column-count: 3;
    }
}
