/* ==========================================================================
   Компонент «Отзывы» (Vitro)
   Файл: /local/components/vitro/reviews/templates/.default/style.css
   ========================================================================== */
.reviews-block {
    --reviews-accent: #2fc4b6;
    --reviews-accent-dark: #1fa99c;
    --reviews-arrow: #c9cdd0;
    --reviews-ink: #1a1a1a;
    --reviews-text: #666;
    padding: 48px 0 64px;
    background: #fff;
}
.reviews-block__title {
    margin: 0 0 28px;
    color: var(--reviews-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}
.reviews-block__slider {
    min-width: 0;
}
.reviews-block__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.reviews-block__track::-webkit-scrollbar {
    display: none;
}
.reviews-block__slide {
    flex: 0 0 33.3333%;
    min-width: 0;
    padding: 0 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
}
.review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}
.review-card__source {
    margin: 0 0 12px;
    color: var(--reviews-accent);
    font-size: 13px;
    line-height: 1.4;
}
.review-card__text {
    color: var(--reviews-text);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card__text p {
    margin: 0 0 8px;
}
.review-card__text p:last-child {
    margin-bottom: 0;
}
.review-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 16px;
    padding: 0;
    color: var(--reviews-accent);
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}
.review-card__more:hover {
    color: var(--reviews-accent-dark);
}
.review-card__more:hover .review-card__more-text {
    text-decoration: underline;
}
.review-card__more svg {
    flex: none;
    width: 11px;
    height: 8px;
    margin-top: 2px;
}
.reviews-block__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}
.reviews-block__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--reviews-arrow);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.reviews-block__arrow:hover:not(:disabled) {
    color: var(--reviews-accent);
}
.reviews-block__arrow:disabled {
    opacity: 0.45;
    cursor: default;
}
.reviews-block__arrow svg {
    width: 22px;
    height: 22px;
}
/* Диагностика для администратора, когда нет ни одного отзыва */
.reviews-block__debug {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-left: 4px solid #e0a800;
    background: #fff8e1;
    color: #4a3b00;
    font-size: 13px;
    line-height: 1.5;
}
.reviews-block__debug p {
    margin: 6px 0;
}
.reviews-block__debug ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.reviews-block__debug li {
    margin-bottom: 3px;
}
.reviews-block__debug code {
    padding: 1px 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}
/* --------------------------------------------------------------------------
   Модальное окно полного отзыва
   -------------------------------------------------------------------------- */
.review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(760px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: 86vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--reviews-ink);
    overflow: visible;
    animation: review-modal-in 0.2s ease;
}
.review-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.review-modal__inner {
    position: relative;
    max-height: 86vh;
    overflow-y: auto;
    padding: 40px 44px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.review-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #999;
    background: none;
    border: 0;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.review-modal__close:hover {
    color: var(--reviews-ink);
}
.review-modal__author {
    margin: 0 0 6px;
    padding-right: 30px;
    color: var(--reviews-ink);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}
.review-modal__source {
    margin: 0 0 20px;
    color: var(--reviews-accent);
    font-size: 13px;
    line-height: 1.4;
}
.review-modal__text {
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
}
.review-modal__text p {
    margin: 0 0 12px;
}
.review-modal__text p:last-child {
    margin-bottom: 0;
}
body.review-modal-open {
    overflow: hidden;
}
@keyframes review-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .review-modal {
        animation: none;
    }
}
/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .reviews-block__slide {
        flex-basis: 50%;
        padding: 0 16px;
    }
}
@media (max-width: 767px) {
    .reviews-block {
        padding: 32px 0 40px;
    }
    .reviews-block__title {
        margin-bottom: 20px;
        font-size: 26px;
    }
    .reviews-block__slide {
        flex-basis: 100%;
        padding: 0;
    }
    .reviews-block__controls {
        margin-top: 18px;
    }
    .review-card__text {
        -webkit-line-clamp: 7;
    }
    .review-modal__inner {
        padding: 30px 20px;
    }
    .review-modal__author {
        font-size: 20px;
    }
    .review-modal__text {
        font-size: 14px;
    }
}
@media (max-width: 575px) {
    .reviews-block {
        padding: 28px 0 36px;
    }
    .reviews-block__title {
        font-size: 24px;
    }
    .review-card__source,
    .review-modal__source {
        font-size: 12.5px;
    }
    .review-card__more {
        font-size: 12.5px;
    }
    .reviews-block__arrow {
        width: 28px;
        height: 28px;
    }
    .reviews-block__arrow svg {
        width: 20px;
        height: 20px;
    }
}