.trusted {
    text-align: center;
    padding-top: 28px;
    padding-bottom: 28px;
    background-color: var(--bg-gray-25);
}

.trusted .content img:first-child {
    display: block;
    margin: 0 auto 19px auto;
}

.trusted h3 {
    font-size: 32px;
    line-height: 32px;
    padding: 0 0 14px 0;
    max-width: 400px;
    margin: auto;
}

.trusted h3 span {
    display: block;
    font-size: 16px;
    line-height: 16px;
    font-weight: bold;
    padding-top: 4px;
}

.trusted .col-12:has(> .reviews) {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 516px;
}

.reviews {
    position: relative;
    left: 0;
    top: 0;
    scrollbar-width: none;
    overflow: scroll;
    scroll-snap-type: x mandatory;
    --gallery-side-padding: 1px;
    padding-top: 4px;
    padding-bottom: 2px;
}

.reviews .user-profile {
    display: flex;
    align-items: center;
    padding: 20px 0 0 0;
}

.reviews .user-profile > div:first-child {
    padding-right: 12px;
}

.reviews .user-profile > div:last-child {
    font-size: 12px;
}

.reviews .user-profile div:last-child b {
    font-size: 18px;
    display: block;
}

.reviews .user-profile img,
.reviews .user-profile div div {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    object-fit: cover;
    text-align: center;
    line-height: 64px;
    background-color: #B7BCC7;
    color: #123156;
    font-size: 40px;
    font-weight: 800;
    padding: 0;
}

@media (min-width: 576px) {

    .trusted .reviews {
        --gallery-side-padding: round(down, calc((100vw - 516px) / 2), 1px);
        /* scroll-padding: var(--gallery-side-padding); */
        position: absolute;
        left: 50%;
        top: 0;
        width: 100vw;
        margin-left: -50vw;
    }

    .reviews ul li:first-child .card {
        margin-left: var(--gallery-side-padding);
    }

    .reviews ul li:last-child .card {
        margin-right: var(--gallery-side-padding);
    }
}

@media (min-width: 768px) {

    .trusted {
        padding-top: 53px;
    }

    .trusted .reviews {
        --gallery-side-padding: round(down, calc((100vw - 696px) / 2), 1px);
    }

    .trusted h3 span {
        padding-top: 8px;
    }
}

.reviews ul {
    padding: 0;
    margin: 0;
    display: flex;
    position: relative;
    list-style: none;
}

.reviews ul li {
    padding: 5px 0 5px 20px;
    scroll-snap-align: start;
}

.reviews ul li:first-child {
    padding-left: 0;
}

.reviews ul li .item {
    width: 294px;
    border: none;
    background: #FFF 0 0 no-repeat padding-box;
    box-shadow: 0 .9px 2px #00000054;
    border-radius: 8px;
    padding: 25px 24px;
    text-align: left;
    scroll-snap-align: start;
}

.item h4 {
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
}

.trusted .item > p {
    max-width: none;
    margin: 0;
    padding: 0 0 0 27px;
    display: block;
    background: url("/resources/images/index/quote-lt.svg") no-repeat left 5px;
    background-size: 16px;
}

.item > p img {
    position: relative;
    top: -3px;
}

@media (min-width: 992px) {

    .trusted {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .trusted h3 {
        font-size: 40px;
        line-height: 40px;
        max-width: 500px;
    }

    .trusted h3 span {
        font-size: 20px;
        line-height: 20px;
        padding-top: 16px;
    }

    .trusted p {
        display: block;
        margin: auto;
        max-width: 544px;
    }

    .trusted .col-12:has(> .reviews) {
        height: auto;
        padding-bottom: 20px;
    }

    .trusted .reviews {
        width: 100%;
        position: relative;
        left: 0;
        top: 0;
        margin: 0;
    }

    .trusted .reviews ul {
        position: relative;
        max-width: 100%;
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-areas:
            "A A A A   A A A A   B B B B"
            "C C C C   E E E E   B B B B";
        grid-gap: 32px;
    }

    .reviews ul li:nth-child(1) {
        grid-area: A;
    }

    .reviews ul li:nth-child(2)  {
        grid-area: B;
    }

    .reviews ul li:nth-child(3)  {
        grid-area: C;
    }

    .reviews ul li:nth-child(4)  {
        grid-area: E;
    }

    .reviews ul li {
        padding: 0;
        margin: 0;
    }

    .reviews ul li:first-child .item,
    .reviews ul li:last-child .item {
        margin: 0;
    }

    .reviews ul li .item {
        height: 100%;
        width: auto;
        scroll-snap-align: unset;
        padding: 32px;
    }
}

.customers ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.customers ul li {
    padding: 0 16px 0 16px;
}

@media (min-width: 992px) {
    .customers ul li {
        flex-grow: 1;
    }
}