.yg-home-testimonials {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 0;
    background: #f5f8fc;
    border-top: 1px solid #e5edf7;
}

.yg-home-testimonials::before {
    content: "";
    position: absolute;
    top: -190px;
    right: -150px;
    width: 460px;
    height: 460px;
    border: 90px solid rgba(30, 112, 224, .045);
    border-radius: 50%;
    pointer-events: none;
}

.yg-home-testimonials .container {
    position: relative;
    z-index: 1;
}

.yg-home-testimonials-head {
    max-width: 670px;
    margin: 0 auto clamp(34px, 4vw, 50px);
    text-align: center;
}

.yg-home-testimonials-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 13px;
    padding: 0 14px;
    color: #fff;
    background: #1e70e0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.yg-home-testimonials-head h2 {
    margin: 0;
    color: #062760;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.yg-home-testimonials-head p {
    max-width: 590px;
    margin: 16px auto 0;
    color: #677a92;
    font-size: 15px;
    line-height: 1.75;
}

.yg-home-testimonial-slider {
    padding: 2px 1px 38px;
}

.yg-home-testimonial-slider .splide__track {
    overflow: visible;
}

.yg-home-testimonial-slider .splide__list {
    align-items: stretch;
}

.yg-home-testimonial-slider .splide__slide {
    height: auto;
}

.yg-review-card {
    display: flex;
    height: 100%;
    min-height: 310px;
    padding: 27px;
    flex-direction: column;
    color: #18324f;
    background: #fff;
    border: 1px solid #dce7f3;
    border-radius: 20px;
    transition: border-color .22s ease, transform .22s ease;
}

.yg-review-card:hover {
    border-color: rgba(30, 112, 224, .42);
    transform: translateY(-3px);
}

.yg-review-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.yg-review-avatar {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.yg-review-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #062760;
    font-size: 19px;
    font-weight: 800;
}

.yg-review-person {
    min-width: 0;
    flex: 1;
}

.yg-review-person h3 {
    overflow: hidden;
    margin: 0;
    color: #102b4d;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yg-review-person time {
    display: block;
    margin-top: 3px;
    color: #8a99aa;
    font-size: 11px;
    font-weight: 600;
}

.yg-review-quote {
    align-self: flex-start;
    color: #dceaff;
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: .8;
}

.yg-review-stars {
    display: flex;
    gap: 3px;
    margin: 22px 0 13px;
    color: #f5a623;
    font-size: 17px;
}

.yg-review-stars .is-empty {
    color: #dbe2eb;
}

.yg-review-card > p {
    margin: 0;
    color: #405671;
    font-size: 14px;
    line-height: 1.75;
}

.yg-home-testimonial-slider .splide__pagination {
    bottom: 0;
    gap: 5px;
}

.yg-home-testimonial-slider .splide__pagination__page {
    width: 7px;
    height: 7px;
    margin: 0;
    background: #b8c8db;
    opacity: 1;
    transition: width .2s ease, background .2s ease;
}

.yg-home-testimonial-slider .splide__pagination__page.is-active {
    width: 25px;
    background: #1e70e0;
    border-radius: 99px;
    transform: none;
}

@media (max-width: 767px) {
    .yg-home-testimonials {
        padding: 62px 0;
    }

    .yg-home-testimonials-head {
        margin-bottom: 28px;
    }

    .yg-home-testimonials-head p {
        font-size: 14px;
    }

    .yg-review-card {
        min-height: 290px;
        padding: 23px;
    }
}
