

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

/* Сводная карточка со статистикой */
.reviews-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    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: 50px;
    font-weight: 700;
    line-height: 1;
    color: #222;
}

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

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

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

.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: #ff7675;
    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;
}

/* Сетка отзывов: 4 колонки */
.reviews-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.review-item-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.review-card-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 14px;
}

.review-card-photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.review-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.review-item-card:hover .review-card-img {
    transform: scale(1.04);
}

.review-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-card-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 6px;
}

.review-card-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
}

.review-card-body {
    font-size: 13px;
    line-height: 1.55;
    color: #666666;
    word-break: break-word;
}

.review-admin-answer {
    margin-top: 12px;
    background: #f9fafb;
    border-left: 3px solid #2ea664;
    padding: 8px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: #555;
}

.review-admin-answer .admin-title {
    font-weight: 700;
    color: #2ea664;
    margin-bottom: 2px;
}

.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;
}

@media (max-width: 1024px) {
    .reviews-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-summary-card {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .reviews-summary-left {
        justify-content: center;
    }
    .reviews-grid-list {
        grid-template-columns: 1fr;
    }
}

/* Модальное окно */
.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: #ff7675;
}

.rating-label-text {
    font-size: 13px;
    font-weight: 600;
    color: #ff7675;
    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;
}

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