.rating-section {
    padding: 4rem 0;
    background: var(--secondary-bg);
}

.rating-summary {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 2px solid var(--border-color);
}

.rating-score {
    text-align: center;
}

.score-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.stars {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.rating-score p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.rating-bar-item span:first-child {
    color: var(--text-color);
    font-weight: 600;
}

.rating-bar-item span:last-child {
    color: #666;
    text-align: right;
}

.rating-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #f4d03f);
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.reviews-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.yandex-widget {
    text-align: center;
    margin-bottom: 4rem;
}

.widget-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.yandex-reviews-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
    max-width: 100%;
    overflow: hidden;
}

#yandexReviews {
    width: 100%;
    max-width: 100%;
}

#yandexReviews * {
    max-width: 100%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.reviewer-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.review-stars {
    color: var(--primary-color);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-text {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.review-source {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.leave-review-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-bg) 100%);
    border-top: 1px solid var(--border-color);
}

.leave-review-content {
    text-align: center;
    color: var(--white);
}

.leave-review-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.leave-review-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.review-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .rating-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .score-number {
        font-size: 4rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Yandex Widget Mobile Styles */
    .yandex-reviews-container {
        padding: 1rem;
        margin-bottom: 2rem;
        overflow-x: hidden;
    }
    
    #yandexReviews {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #yandexReviews iframe {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 400px;
    }
    
    .widget-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .yandex-widget h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .leave-review-content h2 {
        font-size: 2rem;
    }

    .leave-review-content p {
        font-size: 1.1rem;
    }

    .review-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .review-buttons .btn {
        width: 100%;
    }
    
    .rating-bar-item {
        grid-template-columns: 70px 1fr 35px;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
