.topmenuline .line{
    display: block;
    margin-top: 0;
}

/*.titlepage{
    width: 212px;
    height: 103px;
    position: relative;
}*/

.contentbox{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /*flex-direction: row;
    align-items: baseline;
    align-content: space-between;*/
    /*margin-bottom: 76px;*/
    padding-bottom: 76px;
}
.middlebox{
    width: 560px;
    height: 180px;
}
.bigbox{
    width: 800px;
    height: 180px;
}
.smallbox{
    width: 440px;
    height: 180px;
}
.middlebox, .bigbox, .smallbox{
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}
.contentbox img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.boxfill{
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, #210F28 9.5%, rgba(58, 18, 75, 0.735) 54%, rgba(129, 27, 171, 0) 100%);
    position: absolute;
    inset: auto auto 0 0;
}
.boxtext h2{
    max-width: 80%; /*можно задать левый паддинг больше*/
    height: fit-content;
    position: absolute;
    z-index: 1;
    bottom: 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.3;
    color: #EEE7F2;
    text-transform: uppercase;
    margin-bottom: 0;
    right: 0;
    padding: 12px 30px;
    text-align: right;
}
.boxtext h2:hover{
    color: #F2FFC0;
}


@media only screen and (max-width: 1700px){
        .middlebox{
        width: 448px;
        height: 144px;
    }
    .bigbox{
        width: 640px;
        height: 144px;
    }
    .smallbox{
        width: 353px;
        height: 144px;
    }
    .boxtext h2{
        padding: 4px 30px;
    }
}


@media only screen and (max-width: 1140px){
    .titleh1{
        width: calc(100% - 48px);
        padding: 0 24px;
    }
    
    .contentbox{
        width: calc(100% - 48px);
        height: fit-content;
        padding: 0 24px;
        display: block;
        /*margin-bottom: 40px; почему схлопываются нижние маржины?*/
        padding-bottom: 24px;
    }
    .middlebox, .bigbox, .smallbox{
        width: 100%;
        height: 98px;
        margin-bottom: 16px;
    }
    .boxtext h2{
        font-size: 26px;
        padding: 4px 10px;
    }
}