/*------------
    Why we
------------*/
.why_we
{
    .block_head
    {
        &.row
        {
            .col
            {
                width: 898px;
            }
        }
    }


    .grid_row
    {
        --items_per_line: 3;
        --gap_x: var(--inner_gap_s);
        --gap_y: var(--inner_gap_s);
    }


    .item
    {
        position: relative;

        display: flex;
        flex-direction: column;
        gap: var(--inner_gap_m);

        padding: var(--inner_gap);

        border: 1px solid var(--border_color);
        border-radius: var(--border_radius_s);
        background: var(--bg_grey);


        &.size_l
        {
            --width_multiplier: 1.5;
        }


        & > *
        {
            position: relative;
            z-index: 3;
        }


        &:after
        {
            position: absolute;
            z-index: 1;
            top: -1px;
            right: -1px;

            display: block;

            width: 60px;

            content: '';
            pointer-events: none;

            background: url(../../../images/bg_advantages_corner.png) 0 0/100% 100% no-repeat, var(--bg);

            aspect-ratio: 1 / 1;
        }


        .icon
        {
            position: absolute;
            top: -1px;
            right: -1px;

            display: flex;
            align-content: center;
            align-items: center;
            flex-wrap: wrap;
            justify-content: center;

            width: 46px;

            border-radius: 50%;
            background: linear-gradient(315deg, var(--secondary_color) 9.34%, #194c4d 94.77%);

            aspect-ratio: 1 / 1;


            img
            {
                display: block;

                max-width: 100%;
                max-height: 100%;
            }
        }


        .name
        {
            max-width: calc(100% - 48px);

            font-family: var(--font_family_tertiary);
            font-size: var(--font_size_l);
            font-weight: 600;
            line-height: 135%;

            color: var(--secondary_color);
        }


        .desc
        {
            display: flex;
            flex-direction: column;
            gap: var(--inner_gap_m);

            font-family: var(--font_family_tertiary);
            font-size: var(--font_size_l);
            line-height: 135%;

            color: #2f2f2f;
        }
    }
}



@media print,
(max-width: 1279px)
{
    .why_we
    {
        .block_head
        {
            &.row
            {
                .col
                {
                    width: 800px;
                }
            }
        }


        .item
        {
            .desc
            {
                font-size: var(--font_size);
            }
        }
    }
}



@media print,
(max-width: 1023px)
{
    .why_we
    {
        .block_head
        {
            &.row
            {
                .col
                {
                    width: 600px;
                }
            }
        }


        .grid_row
        {
            --items_per_line: 2;
        }


        .item
        {
            &.size_l
            {
                --width_multiplier: 1;
            }
        }
    }
}



@media (max-width: 767px)
{
    .why_we
    {
        .block_head
        {
            &.row
            {
                .col
                {
                    width: 100%;
                }
            }
        }


        .grid_row
        {
            --items_per_line: 1;
        }


        .item
        {
            .desc
            {
                font-size: 15px;
            }
        }
    }
}
