/* =========================================================
   TRUST SECTION
========================================================= */

.trust-section {
    padding:
        var(--section-spacing)
        0;

    background:
        #f3f7f9;

    border-top:
        1px solid
        #e7ecef;

    border-bottom:
        1px solid
        #e7ecef;
}


/* =========================================================
   TITLE
========================================================= */

.trust-section__title {
    width: 100%;

    margin:
        0
        auto
        42px;

    color:
        var(--color-text);

    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;

    text-align: center;
}


/* =========================================================
   GRID
========================================================= */

.trust-section__grid {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );

    width: 100%;

    gap:
        44px
        34px;

    margin-inline: auto;
}


/* =========================================================
   ITEMS
========================================================= */

.trust-section__item {
    grid-column:
        span 2;

    min-width: 0;

    text-align: center;
}


/* =========================================================
   SECOND ROW
   3 + 2 SYMMETRY
========================================================= */

.trust-section__item:nth-child(4) {
    grid-column:
        2 / span 2;
}


.trust-section__item:nth-child(5) {
    grid-column:
        4 / span 2;
}


/* =========================================================
   VISUAL
========================================================= */

.trust-section__visual {
    width: 150px;
    height: 150px;

    margin:
        0
        auto
        18px;

    overflow: hidden;

    background:
        #ffffff;

    border:
        4px solid
        #ffffff;

    border-radius:
        50%;

    box-shadow:
        0
        5px
        18px
        rgba(30, 55, 70, 0.10);
}


/* =========================================================
   IMAGE
========================================================= */

.trust-section__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   ITEM TITLE
========================================================= */

.trust-section__item-title {
    width: 100%;

    margin:
        0
        auto
        9px;

    color:
        var(--color-text);

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.trust-section__description {
    width: 100%;

    margin:
        0
        auto;

    color:
        var(--color-text-secondary);

    font-size: 14px;
    line-height: 1.55;

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .trust-section__title {
        margin-bottom: 36px;

        font-size: 25px;
    }


    .trust-section__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            38px
            28px;
    }


    .trust-section__item,
    .trust-section__item:nth-child(4),
    .trust-section__item:nth-child(5) {
        grid-column:
            auto;
    }

    .trust-section__item:last-child:nth-child(odd) {
        grid-column:
            1 / -1;

        width:
            calc(
                50% -
                14px
            );

        justify-self:
            center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .trust-section__title {
        margin-bottom: 28px;

        font-size: 24px;
        line-height: 1.25;
    }


    .trust-section__grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .trust-section__item,
    .trust-section__item:nth-child(4),
    .trust-section__item:nth-child(5),
    .trust-section__item:last-child:nth-child(odd) {
        display: grid;

        grid-template-columns:
            110px
            minmax(0, 1fr);

        grid-template-rows:
            auto
            auto;

        column-gap: 18px;

        width: 100%;

        align-items: start;

        padding:
            18px
            0;

        border-bottom:
            1px solid
            #dfe7eb;

        text-align: left;
    }


    .trust-section__item:first-child {
        padding-top: 0;
    }


    .trust-section__item:last-child {
        padding-bottom: 0;

        border-bottom: 0;
    }


    /* =====================================================
       IMAGE
    ===================================================== */

    .trust-section__visual {
        grid-column: 1;
        grid-row: 1 / span 2;

        width: 110px;
        height: 110px;

        margin: 0;

        align-self: start;
    }


    /* =====================================================
       ITEM TITLE
    ===================================================== */

    .trust-section__item-title {
        grid-column: 2;
        grid-row: 1;

        width: 100%;

        margin:
            0
            0
            6px;

        font-size: 16px;
        line-height: 1.3;

        text-align: left;
    }


    /* =====================================================
       DESCRIPTION
    ===================================================== */

    .trust-section__description {
        grid-column: 2;
        grid-row: 2;

        width: 100%;

        margin: 0;

        font-size: 15px;
        line-height: 1.5;

        text-align: left;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .trust-section__item,
    .trust-section__item:nth-child(4),
    .trust-section__item:nth-child(5),
    .trust-section__item:last-child:nth-child(odd) {
        grid-template-columns:
            96px
            minmax(0, 1fr);

        column-gap: 14px;

        padding:
            16px
            0;
    }


    .trust-section__visual {
        width: 96px;
        height: 96px;
    }

}