/* Точная копия стилей web-widgets.ru + слайдер */
.yandex-reviews-widget {
    font-family: sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    margin: 20px 0 10px 0;
    padding: 20px 20px 13px;
    background: #eeeef0;
    border-radius: 20px;
    line-height: 19px;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.reviews-header {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.header-left {
    width: 70%;
}

.header-right {
    width: 30%;
    text-align: right;
}

.yandex-logo {
    text-align: left;
    font-weight: 600;
    font-size: 24px;
    color: #000;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'YS Text', 'Helvetica Neue', Arial, sans-serif;
}

.yandex-logo-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text-normal {
    font-size: 24px;
}

.logo-text-yandex {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    vertical-align: top;
}

.logo-text-yandex::first-letter {
    color: #ff0000;
}

.yandex-logo img {
    height: 36px;
    vertical-align: middle;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.rating-stars {
    display: inline-flex;
}

.rating-stars .star {
    height: 18px;
    filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.08));
    color: #ffcc00;
}

.rating-text {
    font-size: 16px;
    color: #333;
}

.rating-text strong {
    font-size: 18px;
}

/* ИСПРАВЛЕНИЕ ДЛЯ ЖЕЛТЫХ ЗВЕЗД В ОТЗЫВАХ */
.yandex-reviews-widget .review-stars,
.yandex-reviews-widget .review-stars .star {
    color: #ffcc00 !important;
}

.yandex-reviews-widget .rating-stars,
.yandex-reviews-widget .rating-stars .star {
    color: #ffcc00 !important;
}

/* СЛАЙДЕР - ОСНОВНЫЕ ИСПРАВЛЕНИЯ */
.reviews-slider-container {
    position: relative;
    width: 100%;
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

/* ОТЗЫВЫ - ШИРИНА ДЛЯ 3 ШТУК В РЯД */
.review-slide {
    background: #fff;
    padding: 16px 20px 16px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    flex: 0 0 auto;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

/* ДЛЯ ДЕСКТОПА - 3 ОТЗЫВА */
@media (min-width: 801px) {
    .review-slide {
        width: calc(33.333% - 10px);
        min-width: calc(33.333% - 10px);
    }
}

/* ДЛЯ МОБИЛЬНЫХ - 1 ОТЗЫВ */
@media (max-width: 800px) {
    .review-slide {
        width: 100%;
        min-width: 100%;
    }
}

.review-slide:hover {
    transform: translateY(-2px);
}

.review-author {
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    max-width: 130px;
    text-overflow: ellipsis;
}

.review-stars {
    display: inline-flex;
}

.review-stars .star {
    height: 14px;
    color: #ffcc00;
    filter: drop-shadow(0px 0px 2px rgba(255,204,0,0.3));
}

.review-text {
    text-align: justify;
    margin-bottom: 8px;
    transition: 0.5s;
    max-height: 304px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 16;
    -webkit-box-orient: vertical;
}

.review-slide:hover .review-text {
    max-height: 900px;
    transition: 0.5s;
    -webkit-line-clamp: none;
}

.review-date {
    text-align: right;
    color: #8a8a8a;
    margin-bottom: -6px;
    font-size: 13px;
}

.reviews-footer {
    margin-top: 10px;
    text-align: right;
}

/* КНОПКА - СИНИЙ ГРАДИЕНТ КАК У СТРЕЛОК */
.yandex-button {
    white-space: nowrap;
    background: linear-gradient(135deg, #258ffb, #1a7de0);
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(37, 143, 251, 0.3);
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.yandex-button:hover {
    background: linear-gradient(135deg, #1a7de0, #258ffb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 143, 251, 0.4);
    color: #fff !important;
    text-decoration: none;
}

/* КНОПКИ СЛАЙДЕРА - СИНИЙ ГРАДИЕНТ */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #258ffb, #1a7de0);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 143, 251, 0.3);
    cursor: pointer;
    font-size: 28px;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1a7de0, #258ffb);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 143, 251, 0.4);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.reviews-loading {
    text-align: center;
    color: #666;
    padding: 40px;
    width: 100%;
}

/* Адаптивность */
@media (max-width: 800px) {
    .yandex-reviews-widget {
        padding: 15px;
    }
    
    .reviews-header {
        display: block;
        text-align: center;
    }
    
    .header-left, .header-right {
        width: 100%;
        text-align: center;
    }
    
    .yandex-logo {
        justify-content: center;
        font-size: 20px;
    }
    
    .logo-text-normal {
        font-size: 20px;
    }
    
    .logo-text-yandex {
        font-size: 28px;
    }
    
    .rating-info {
        justify-content: center;
        margin-top: 10px;
    }
    
    .yandex-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
}