.reviews-section {
    padding: 30px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.reviews-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.reviews-title {
    font-size: 2.5em;
    margin: 0;
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.yandex-logo {
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
    vertical-align: middle;
}

.yandex-logo svg {
    width: 52px;
    height: 52px;
}

.reviews-rating {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-number {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.rating-stars {
    color: #ffd700;
    font-size: 20px;
    margin-right: 10px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.reviews-slider-container {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.reviews-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.review-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #666;
}

.review-rating {
    color: #ffd700;
    margin-bottom: 10px;
}

.review-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.slider-buttons {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
}

.slider-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background-color 0.2s;
}

.slider-button:hover {
    background-color: rgba(240, 240, 240, 0.5);
}

.slider-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-button svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-button {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

/* .pagination-button:hover {
    background: rgba(240, 240, 240, 0.5);
} */

.pagination-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

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

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .yandex-logo {
        display: inline-flex;
        align-items: center;
        margin: 0 0px;
        vertical-align: middle;
    }
    .reviews-title {
        margin-right: 0;
        margin-bottom: 20px;

    }

    .review-card {
        flex: 0 0 calc(100% - 40px);
    }
}
