

/* Start:/local/templates/redesign/components/bitrix/news.list/reviews/style.css?178818917011746*/
/* Стили для страницы отзывов */
.reviews-page-wrapper {
    max-width: 1140px;
    margin: 0 auto 50px auto;
    font-family: inherit;
    color: #333;
}

/* Сводная карточка со статистикой */
.reviews-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin-bottom: 30px;
}

.reviews-summary-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.reviews-rating-number {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #222;
}

.reviews-stars-visual {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.star-icon {
    fill: #e2e8f0;
    transition: fill 0.2s;
}

.star-icon.filled {
    fill: #f59e0b;
}

.reviews-total-text {
    font-size: 14px;
    color: #64748b;
}

/* Полосы распределения оценок */
.reviews-summary-bars {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.bar-label {
    width: 65px;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.bar-count {
    width: 30px;
    text-align: right;
    font-weight: 600;
    color: #64748b;
}

/* Кнопка "Оставить отзыв" в карточке */
.reviews-summary-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.btn-open-review-modal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2ea664;
    color: #ffffff !important;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 166, 100, 0.3);
    transition: all 0.25s ease;
}

.btn-open-review-modal:hover {
    background: #268e54;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 166, 100, 0.4);
}

.reviews-action-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

/* Фильтр по оценкам */
.reviews-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-right: 5px;
}

.reviews-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reviews-filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.reviews-filter-btn.active {
    background: #2ea664;
    color: #ffffff;
    border-color: #2ea664;
}

/* Карточка одного отзыва */
.reviews-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s, transform 0.2s;
}

.review-item-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.review-author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author-meta {
    flex: 1;
}

.review-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-author-city {
    font-weight: 400;
    font-size: 14px;
    color: #64748b;
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.review-date {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 3px;
}

.review-card-rating {
    display: flex;
    gap: 2px;
}

.review-card-body {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    word-break: break-word;
}

/* Фотографии в отзыве */
.review-photos-grid {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.review-photo-link {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: opacity 0.2s, transform 0.2s;
}

.review-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo-link:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Ответ администрации */
.review-admin-answer {
    margin-top: 18px;
    background: #f8fafc;
    border-left: 4px solid #2ea664;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
}

.admin-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-badge-icon {
    color: #2ea664;
    display: flex;
    align-items: center;
}

.admin-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.admin-answer-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.admin-answer-text {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

/* Пустой список */
.reviews-empty-block {
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 20px;
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.reviews-empty-block h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1e293b;
}

.reviews-empty-block p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Пагинация */
.reviews-pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Модальное окно */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.review-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 18px;
    padding: 36px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.review-modal-close:hover {
    color: #334155;
}

.review-modal-header {
    margin-bottom: 24px;
}

.review-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.review-modal-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Форма в модалке */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group label .req {
    color: #ef4444;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2ea664;
    box-shadow: 0 0 0 3px rgba(46, 166, 100, 0.15);
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Выбор рейтинга в модалке */
.star-rating-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-pick-item {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.star-pick-item svg {
    fill: #e2e8f0;
    transition: transform 0.15s, fill 0.15s;
}

.star-pick-item:hover svg {
    transform: scale(1.15);
}

.star-pick-item.active svg {
    fill: #f59e0b;
}

.rating-label-text {
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    margin-left: 10px;
}

/* Выбор файлов */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-file-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-file-select:hover {
    background: #e2e8f0;
}

.file-names-preview {
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

/* Чекбокс согласия */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.custom-checkbox a {
    color: #2ea664;
    text-decoration: underline;
}

.form-error-block {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.btn-submit-review {
    width: 100%;
    background: #2ea664;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-review:hover {
    background: #268e54;
}

.btn-submit-review.loading {
    opacity: 0.75;
    pointer-events: none;
}

/* Успешный экран */
.review-modal-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    color: #15803d;
    font-size: 30px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.review-modal-success h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 8px;
}

.review-modal-success p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-close-success {
    background: #2ea664;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reviews-summary-card {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .reviews-summary-left {
        justify-content: center;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .review-modal-container {
        padding: 24px 18px;
    }
}

/* End */
/* /local/templates/redesign/components/bitrix/news.list/reviews/style.css?178818917011746 */
