@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap');
/*Обнуление*/
*{
	padding: 0;
	margin: 0;
	border: 0;
}
*,*:before,*:after{
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}

nav,footer,header,aside{display: block;}

html,body{
	height: 100%;
	width: 100%;
	font-size: 100%;
	line-height: 1;
	font-size: 14px;
	-ms-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
input,button,textarea{font-family:inherit;}

input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner {padding:0;border:0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}

h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}
/*--------------------*/

/* Main style */

html{
    height: 100%;
}
body{
    display: flex;
    flex-direction: column;
    height: 100%;
    
}

header{
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
 }
 .main-content{
    /* 1 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 1 0 auto;
 }
 footer{
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
 }


html, body{
    font-family: "Golos Text";
    background: #F0F5FB;
}

.container{
  max-width: 1300px;
  margin: 0 auto;

}

h2{
  color: #373C59;
  font-size: 36px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
}

/*--------------------*/

/* Main style */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
}

.main-content {
    /* 1 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 1 0 auto;
}

footer {
    /* 0 flex-grow, 0 flex-shrink, auto flex-basis */
    flex: 0 0 auto;
}


html, body {
    font-family: "Golos Text";
    background: #F0F5FB;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

h2 {
    color: #373C59;
    font-size: 36px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    text-transform: uppercase;
}


/* Header */



/*--------------------*/

/* Navigation */

.navigation{
  margin-top: 180px;
}

    
/*--------------------*/


/*Main*/

.main-content {
    margin-bottom: 90px;
}

    .main-content h2 {
        text-align: center;
        margin-bottom: 90px;
    }


.news {
    display: flex;
    flex-direction: column;
}

.news-main h2 {
    margin-bottom: 70px;
}

.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}


.news-style {
    display: flex;
    position: relative;
    height: auto;
    width: 100%; /* Занимает всю ширину контейнера */
    max-width: 412px; /* Максимальная ширина новости */
    margin-bottom: 20px; /* Отступ снизу между новостями */
    color: #373C59;
    flex-direction: column;
    border-radius: 7.5px;
    background: #F0F5FB;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 15px 15px 38px 0px rgba(154, 157, 161, 0.90), -15px -15px 30px 0px rgba(255, 255, 255, 0.90), 15px -15px 30px 0px rgba(154, 157, 161, 0.20), -15px 15px 30px 0px rgba(154, 157, 161, 0.20), -1px -1px 2px 0px rgba(154, 157, 161, 0.50) inset, 1px 1px 2px 0px rgba(255, 255, 255, 0.30) inset;
}

    .news-style:hover {
        transform: translateY(-15px);
        box-shadow: 35px 35px 88px 0px rgba(96, 98, 100, 0.90), -35px -35px 70px 0px rgba(255, 255, 255, 0.90), 35px -35px 70px 0px rgba(96, 98, 100, 0.20), -35px 35px 70px 0px rgba(96, 98, 100, 0.20), -1px -1px 2px 0px rgba(96, 98, 100, 0.50) inset, 1px 1px 2px 0px rgba(255, 255, 255, 0.30) inset;
    }



.news-style-content {
    display: flex;
    flex-direction: column;
}




.news-text {
    padding-left: 45px;
    font-family: "Golos Text";
    padding-bottom: 50px;
}

.news-style span {
    padding-left: 45px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 400;
    color: #969AB4;
}

.news-style h5 {
    padding-left: 45px;
    padding-top: 20px;
    color: var(--black, #373C59);
    font-size: 24px;
    font-weight: 700;
}

.news-style p {
    text-align: justify;
    padding: 15px 44px 95px 45px;
    color: #373C59;
    font-size: 21px;
    font-weight: 400;
}

.text-content p {
    color: #373C59;
}



.news-style img {
    width: 412px;
    border-radius: 7.5px 7.5px 0px 0px;
}



.button-news {
    display: flex;
    margin-top: 60px;
    justify-content: center;
}

    .button-news button {
        color: #373C59;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 130%; /* 23.4px */
        background: #F0F5FB;
        box-shadow: 6px 6px 15px 0px rgba(144, 147, 151, 0.90), -6px -6px 12px 0px rgba(255, 255, 255, 0.90), 6px -6px 12px 0px rgba(144, 147, 151, 0.20), -6px 6px 12px 0px rgba(144, 147, 151, 0.20), -1px -1px 2px 0px rgba(144, 147, 151, 0.50) inset, 1px 1px 2px 0px rgba(255, 255, 255, 0.30) inset;
        padding: 14px 36px;
        border-radius: 10px;
        transition: transform 0.3s, box-shadow 0.3s;
    }

        .button-news button:hover {
            transform: scale(1.05);
            box-shadow: 20px 20px 50px 0px rgba(168, 171, 173, 0.90), -20px -20px 40px 0px rgba(255, 255, 255, 0.90), 20px -20px 40px 0px rgba(168, 171, 173, 0.20), -20px 20px 40px 0px rgba(168, 171, 173, 0.20), -1px -1px 2px 0px rgba(168, 171, 173, 0.50) inset, 1px 1px 2px 0px rgba(255, 255, 255, 0.30) inset;
        }


/*--------------------*/

@media screen and (max-width: 1024px) {
    .container{
        max-width: 1024px;
        margin: 0px 15px 0px 15px;
        

    }
    .news-row{
        align-items: center;
        flex-direction: column;
    }


}


@media screen and (max-width: 769px) {
    .navigation {
        margin-top: 120px;
    }
    .container{
        max-width: 768px;
        margin: 0px 35px 0px 35px;
        
    }
    .news-row{
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 425px) {

    .container{
        max-width: 600px;
        margin: 0px 15px 0px 15px;
        

    }

    .navigation {
        margin-top: 120px;
    }

    .news-row{
        align-items: center;
        flex-direction: column;
    }

    .news-style {
        width: 284px;
        flex-direction: column;

    }
    
    
    
    .news-style-content {
        flex-direction: column;
    }

    
    
    .news-style span {
        padding-left: 15px;
        padding-top: 15px;
        font-size: 15px;
    }
    
    .news-style h5 {
        text-align: center;
        padding: 15px 10px 15px;
        font-size: 19px;
    }
    
    .news-style p {
        text-align: left;
        padding: 0px 15px 81px 15px;
        font-size: 17px;
    }
    
    .text-content p {
        color: #373C59;
    }

    .news-style img{
        width: 284px;
    }
    
    
    
    


}