

/* Start:/local/templates/generator/components/bitrix/news.list/reviews_2.0/style.css?177582459411527*/
/* ======================================== */
/* КОНТЕЙНЕР */
/* ======================================== */
.reviews-2-0 {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    --primary-color: #42ae45;
    --primary-color-hover: #359838;
    --primary-color-light: rgba(66, 174, 69, 0.1);
}

/* ======================================== */
/* КНОПКИ-ТАБЫ (ЗАГОЛОВКИ) */
/* ======================================== */
.reviews-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Горизонтальный скролл на мобильных */
@media (max-width: 768px) {
    .reviews-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }
    
    .reviews-tabs::-webkit-scrollbar {
        display: none;
    }
}

.reviews-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

.reviews-tab:hover {
    background: #e8f5e9;
    color: var(--primary-color);
}

.reviews-tab.active {
    background: var(--primary-color);
    color: white;
}

.reviews-tab__icon {
    height: 26px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.reviews-tab.active .reviews-tab__icon {
    filter: brightness(0) invert(1);
}

.reviews-tab__name {
    font-weight: 500;
}

.reviews-tab__count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.reviews-tab.active .reviews-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

/* ======================================== */
/* ОБЕРТКА КАРУСЕЛИ */
/* ======================================== */
.reviews-carousel-wrapper {
    position: relative;
}

.reviews-carousel-container {
    display: none;
}

.reviews-carousel-container.active {
    display: block;
}

.reviews-carousel-container-inner {
    position: relative;
    padding-bottom: 40px;
}

/* ======================================== */
/* КАРУСЕЛЬ */
/* ======================================== */
.reviews-carousel {
    overflow: hidden;
    padding: 10px 0;
}

.reviews-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.reviews-carousel__slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

@media (max-width: 1024px) {
    .reviews-carousel__slide {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .reviews-carousel__slide {
        flex: 0 0 100%;
    }
}

/* ======================================== */
/* КАРТОЧКА ОТЗЫВА */
/* ======================================== */
.review-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(66, 174, 69, 0.12);
    transform: translateY(-2px);
}

/* Плашка "Отзыв клиента ФЦБ из ..." */
.review-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    font-weight: 500;
    color: #7f8ea4;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 0 12px 0 12px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
    z-index: 1;
}

/* ======================================== */
/* ШАПКА: ФИО, ДАТА */
/* ======================================== */
.review-card__header {
    margin-bottom: 12px;
}

.review-author-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.review-author__name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.review-author__date {
    font-size: 14px;
    color: #999;
}

/* ======================================== */
/* МЕТА: РЕЙТИНГ И ИСТОЧНИК */
/* ======================================== */
.review-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-rating__stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    height: 26px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.review-rating__value {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.review-source-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-source-icon img {
    height: 26px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.review-source {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-weight: 500;
}

/* ======================================== */
/* ЦВЕТА ИСТОЧНИКОВ */
/* ======================================== */
.review-source--yandex {
    background: #fc3f1d;
    color: white;
}

.review-source--dgis {
    background: var(--primary-color);
    color: white;
}

.review-source--google {
    background: #4285f4;
    color: white;
}

.review-source--yell {
    background: #ed484a;
    color: white;
}

.review-source--zoon {
    background: #1c7ec9;
    color: white;
}

.review-source--flamp {
    background: #2e6be6;
    color: white;
}

.review-source--site {
    background: #9c27b0;
    color: white;
}

/* ======================================== */
/* ТЕКСТ ОТЗЫВА */
/* ======================================== */
.review-card__content {
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.review-text {
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

.review-text p {
    margin: 0 0 10px 0;
}

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

/* ======================================== */
/* ПОДВАЛ С ОФИСОМ (БЕЗ РАЗДЕЛИТЕЛЯ) */
/* ======================================== */
.review-card__footer {
    padding-top: 10px;
    margin-top: auto;
}

.review-office {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.review-office__label {
    color: #999;
    font-weight: 500;
}

.review-office__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.review-office__link:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
}

.review-office__text {
    color: #666;
}

/* ======================================== */
/* КНОПКИ УПРАВЛЕНИЯ КАРУСЕЛЬЮ */
/* ======================================== */
.reviews-carousel__controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.reviews-carousel__button {
    position: absolute;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.reviews-carousel__button:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(66, 174, 69, 0.3);
}

.reviews-carousel__button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-carousel__button.disabled:hover {
    background: white;
    color: #333;
    border-color: #ddd;
}

.reviews-carousel__button--prev {
    left: -24px;
}

.reviews-carousel__button--next {
    right: -24px;
}

.reviews-carousel__button svg {
    width: 24px;
    height: 24px;
}

/* ======================================== */
/* ИНДИКАТОРЫ (ТОЧКИ) */
/* ======================================== */
.reviews-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.reviews-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.reviews-carousel__dot:hover {
    background: var(--primary-color);
}

.reviews-carousel__dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* ======================================== */
/* ПУСТОЙ СПИСОК */
/* ======================================== */
.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
    background: #f9f9f9;
    border-radius: 12px;
}

.reviews-empty p {
    margin: 0;
}

/* ======================================== */
/* АДАПТИВНОСТЬ */
/* ======================================== */
@media (max-width: 768px) {
    .reviews-2-0 {
        padding: 0 15px;
    }
    
    .reviews-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }
    
    .reviews-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .reviews-tab__icon {
        height: 22px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-author__name {
        font-size: 16px;
    }
    
    .review-text {
        -webkit-line-clamp: 6;
    }
    
    .reviews-carousel-container-inner {
        padding-bottom: 16px;
    }
    
    .reviews-carousel__dots {
        margin-top: 20px;
    }
    
    .star-icon {
        height: 22px;
    }
    
    .review-source-icon img {
        height: 22px;
    }
    
    .reviews-carousel__button {
        width: 40px;
        height: 40px;
    }
    
    .reviews-carousel__button--prev {
        left: -10px;
    }
    
    .reviews-carousel__button--next {
        right: -10px;
    }
    
    .reviews-carousel__button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-tab {
        padding: 8px 16px;
    }
    
    .reviews-tab__icon {
        height: 20px;
    }
    
    .review-author-row {
        gap: 5px 10px;
    }
    
    .review-card__meta {
        gap: 10px;
    }
    
    .review-office {
        flex-direction: column;
        gap: 4px;
    }
    
    .star-icon {
        height: 20px;
    }
    
    .review-source-icon img {
        height: 20px;
    }
    
    .reviews-carousel-container-inner {
        padding-bottom: 8px;
    }
    
    .reviews-carousel__dots {
        margin-top: 12px;
    }
}

/* ======================================== */
/* АНИМАЦИИ */
/* ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-carousel-container.active .review-card {
    animation: fadeIn 0.4s ease-out;
}
/* End */
/* /local/templates/generator/components/bitrix/news.list/reviews_2.0/style.css?177582459411527 */
