.li-all span {
    font-size: 16px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: left;
}

.li-all span::after {
    content: "";
    background-image: url(/include/img/arrow.svg);
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-left: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}



.items-1,
.items-2,
.items-3,
.items-4,
.items-5 {
    position: relative;
    overflow: hidden;
    background-color: #F8F8F8;
    border-radius: 12px;
    height: 400px;
    /* Высота сохранена */
}

.section_in_glav .image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: auto;
    max-width: 260px;
    /* Максимальная ширина изображения */
    max-height: 100%;
}

.parent-title-box {
    position: absolute;
    top: 30px;
    left: 30px;
}

.parent-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0%;
    text-align: left;
    text-transform: uppercase;
    color: #000;
}


.section_in_glav .parent {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 9px;
}

.items-1 {
    grid-column: span 2 / span 2;
    grid-row: span 5 / span 5;
}
 
.items-2 {
    grid-column: span 2 / span 2;
    grid-row: span 5 / span 5;
    grid-column-start: 3;
}

.items-3 {
    grid-column: span 2 / span 2;
    grid-row: span 5 / span 5;
    grid-column-start: 5;
    background-image: url('/include/img/fone-item3.png');
    background-size: 54%;
    background-position: right;
    background-repeat: no-repeat;
}


.items-4 {
    grid-column: span 3 / span 3;
    grid-row: span 5 / span 5;
    grid-row-start: 6;
    background-color: var(--main_color) !important;
}

.items-5 {
    grid-column: span 3 / span 3;
    grid-row: span 5 / span 5;
    grid-column-start: 4;
    grid-row-start: 6;
    background-image: url('/include/img/fone-item5.png');
    background-size: 39%;
    background-position: right 40px center;
    background-repeat: no-repeat;
}


@media (max-width: 768px) {
    .section_in_glav .parent {
        display: block;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 0;
    }

    .items-1,
    .items-2,
    .items-3,
    .items-4,
    .items-5 {
        width: 100%;
   
        margin-bottom: 10px;
        background-size: cover;
    }

    .items-1 {
        background-color: #F8F8F8;
    }

    .items-3 {
        background-image: none; /* Remove the background image on mobile */
    }

    .items-4 {
        background-color: var(--main_color) !important;
    }

    .items-5 {
        background-image: none; /* Remove the background image on mobile */
    }

    .section_in_glav .image {
        width: 300px;
        height: auto;
        max-width: none;
    }

    .parent-title-box {
        position: relative;
        top: 20px;
        left: 20px;
        margin-bottom: 15px;
    }

    .parent-title {
        font-size: 18px;
        font-weight: 500;
        line-height: 22px;
        text-transform: uppercase;
    }
}
  

