/* ==========================================================================
   i18n_reviews — frontend
   Стиль під utilvtorprom.com: Mulish, #578dac / #45A148, м'які тіні, r20
   ========================================================================== */

.reviews-section {
    font-family: "Mulish", sans-serif;
    padding: 60px 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #eef4f8 100%);
}

.reviews-section * {
    font-family: "Mulish", sans-serif;
    box-sizing: border-box;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Заголовок ---------- */

.reviews-title {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
    margin: 0 0 40px 0;
    text-transform: none;
}

/* ---------- Блок статистики ---------- */

.reviews-stats {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-stats-rating {
    display: inline-block;
    background: #ffffff;
    padding: 28px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(87, 141, 172, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews-stats-rating:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(87, 141, 172, 0.15);
}

.reviews-stats-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #578dac 0%, #45A148 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #45A148;
}

.reviews-stats-stars {
    margin-bottom: 10px;
    line-height: 1;
}

.reviews-stats-stars i {
    font-size: 20px;
    color: #d7e2e9;
    margin: 0 2px;
}

.reviews-stats-stars i.active,
.reviews-stats-stars .fa-solid.fa-star {
    color: #f5a623;
}

.reviews-stats-count {
    display: block;
    font-size: 15px;
    color: #6b7c8c;
}

/* ---------- Сітка ---------- */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    align-items: start;
}

/* ---------- Картка ---------- */

.reviews-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(87, 141, 172, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.reviews-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #578dac 0%, #45A148 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reviews-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(87, 141, 172, 0.15);
}

.reviews-card:hover::before {
    opacity: 1;
}

.reviews-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f6;
}

/* Аватар */
.reviews-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #578dac 0%, #45A148 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin-right: 16px;
    flex-shrink: 0;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(87, 141, 172, 0.25);
}

.reviews-card:nth-child(3n) .reviews-card-avatar {
    background: linear-gradient(135deg, #45A148 0%, #578dac 100%);
}

.reviews-card:nth-child(3n + 2) .reviews-card-avatar {
    background: linear-gradient(135deg, #6ba3c0 0%, #3f8f42 100%);
}

.reviews-card-info {
    flex: 1;
    min-width: 0;
}

.reviews-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
    text-transform: none;
}

.reviews-card-date {
    font-size: 13px;
    color: #8b9aa8;
}

/* Зірки в картці */
.reviews-card-stars {
    margin-bottom: 14px;
    line-height: 1;
}

.reviews-card-stars i {
    font-size: 15px;
    color: #d7e2e9;
    margin-right: 3px;
}

.reviews-card-stars i.active,
.reviews-card-stars .fa-solid.fa-star {
    color: #f5a623;
}

/* Текст */
.reviews-card-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

/* ---------- Планшети ---------- */

@media (max-width: 1024px) {
    .reviews-section {
        padding: 50px 0;
    }

    .reviews-grid {
        gap: 20px;
    }

    .reviews-card {
        padding: 25px;
    }
}

/* ---------- Мобільні ---------- */

@media (max-width: 768px) {
    .reviews-section {
        padding: 30px 0;
    }

    .reviews-title {
        margin-bottom: 25px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reviews-stats {
        margin-bottom: 25px;
    }

    .reviews-stats-rating {
        display: block;
        padding: 22px 20px;
        border-radius: 15px;
    }

    .reviews-stats-number {
        font-size: 40px;
    }

    .reviews-card {
        padding: 20px;
        border-radius: 15px;
    }

    .reviews-card:hover {
        transform: none;
    }

    .reviews-card-avatar {
        width: 44px;
        height: 44px;
        font-size: 17px;
        margin-right: 12px;
    }

    .reviews-card-name {
        font-size: 16px;
    }

    .reviews-card-text {
        font-size: 15px;
        line-height: 1.7;
    }
}