@import url('back2.css');


.wrapper{
    height: 1900px;
}

.head-news{
    position: absolute;
    top: 211px;
	left: 810px;
	font-family: Taviraj;
	font-size: 57px;
	font-weight: 300;
	line-height: 99px;
	letter-spacing: 0.02em;
	text-align: left;
	color: white;
}
html[lang='uk'] .head-news{
    font-family: Inter;
}
.news_container{
    margin: 0 auto;
    margin-top: 350px;
    margin-bottom: 550px;
    width: 1200px;
}
.news-block{
    display: grid;
    grid-template-columns: repeat(4, 290px); /* Ширина колонки */
    grid-auto-rows: 195px; /* Высота строки */
    grid-column-gap: 10px; /* Расстояние между колонками */
    grid-row-gap: 10px; /* Расстояние между строками */
    grid-auto-flow: dense;
}
.news-foto img{
    cursor: pointer;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.news-foto.vertical{
    grid-row: span 2;
}
.news-text{
    font-family: Questrial;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: white;
    grid-column-start: 3;
    grid-column-end: 6;
    grid-row-start: 1;
    grid-row-end: 3;
    margin-left: 12px;
}
.news-text p{
    margin-top: 0px;
    margin-bottom: 10px;
}
html[lang='uk'] .news-text{
    font-family: OpenSans;
}
.news-main-foto{
    grid-row-start: 3;
    grid-row-end: 5;
    grid-column-start: 3;
    grid-column-end: 6;
    margin-left: 12px;
}
.news-main-foto img{
    cursor: pointer;
    height: 99%;
    width: 48%;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 1600px){
    .head-news{
        left: 620px;
    }
    .news_container{
        left: 0.90%;
    }
}

@media screen and (max-width: 1250px){
    .head-news{
        left: 510px;
        top: 181px;
    }
    .news_container{
        width: 960px;
        margin-top: 303px;
        margin-bottom: 500px;
    }
    .news-block {
        grid-template-columns: repeat(4, 230px);
        grid-auto-rows: 155px;
    }
}

@media screen and (max-width: 1020px){
    .head-news{
        left: 329px;
        top: 127px;
        font-size: 30px;
    }
    .news_container{
        width: 600px;
        margin-top: 224px;
        margin-bottom: 420px;
    }
    .news-block {
        grid-template-columns: repeat(2, 289px);
        grid-auto-rows: 194px;
        grid-column-gap: 20px;
    }
    .news-text{
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 4;
        margin-left: 0;
    }
    .news-main-foto{
        grid-row-start: 1;
        grid-row-end: 3;
        grid-column-start: 1;
        grid-column-end: 2;
        margin-left: 0;
    }
    .news-main-foto img{
        width: 100%;
    }

}
@media screen and (max-width: 660px){
    body, .wrapper{
       height: 100%;
       min-height: 1000px;
    }

    .head-news{
        left: 0px;
        top: 64px;
        font-size: 30px;
    }
    .news_container{
        width: 100%;
        margin-top: 155px;
        margin-bottom: 380px;
    }
    .news-block {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 195px;
        grid-row-gap: 10px;
    }
    .news-text{
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 3;
        grid-row-end: 5;
        margin-bottom: 10px;
    }
    .news-main-foto{
        grid-row-start: 1;
        grid-row-end: 3.2;
        grid-column-start: 1;
        grid-column-end: 2;
        margin-bottom: 10px;
    }
    .news-main-foto img{
        width: 100%;
    }
}



