@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');

*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body{
    font-family: 'Lora', Arial, serif;
}

a { 
text-decoration: none;
}

.center{
    width: 80%;
    margin: 0 auto;
}

.header-container .logo img{
    width: 120px;
    height: auto;
}

.header-container .header-text{
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 10px;
}

.header-container{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 500px;
}

nav{
    background-color: #DB0002;
    margin-top: 16px; 
}

.nav-menu{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.nav-menu li{
    cursor: pointer;
    padding: 8px 16px;
    list-style: none;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}

.nav-menu li:hover{
    background-color: #c50003;
}
.nav-active{
    background-color: #c50003;
}
.nav-menu a{
    text-decoration: none;
    color: #fff;
}
.burger-menu{
    display: none;
}

.links a{
    display: inline-block;
    text-decoration: none;
    color: #202020;
    font-size: 18px;
    margin: 8px 0 28px;
    
}

.links .links-main{
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    padding: 4px 26px 4px 0;
    color: rgba(0, 0, 0, 0.5);
}

.links .links-active{
    padding: 4px 0 4px 26px;
    color: rgba(197, 0, 3, 0.8);
}

main{   
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 30px;
    padding-top: 20px;
}

.left-container{
    grid-column: 1;
}

.right-container{
    grid-column: 2;
}

.news-card h1{
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom:8px;
}

.news-photo img{
    width: 100%;
    height: auto;
}

.news-text{
    border: 1px solid rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 3px;
    border-radius: 5px;
    padding: 10px;
}

.date{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap:10px;
}

.date span{
    color: #196fa0;
    font-size: 16px;
}

.date h3{
    text-transform: uppercase;
    font-weight: 700;
}

.news-text p{
    text-align: justify;
}

.more-info p{
    color: #196fa0;
    font-size: 16px;
}
.more-info{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn{
    cursor: pointer;
    color: #196fa0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn svg{
    width: 20px;
    height: auto;
    margin-top: 3px;
}

.news h2{
    color: #196fa0;
    font-weight:600;
    font-size: 18px;
    text-transform: uppercase;
    margin: 4px 0 18px 0;
}

.block-photo img{
    width: 200px;
    height: auto;
}

.news{
    margin-bottom: 20px;
}

.news-block{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.block-info p{
    text-align: justify;
    margin: 8px 0;
}

.widget{
    width: 100%;
    margin: 20px;
    display: flex;
    justify-content: center;
}

.photos h2{
    margin: 8px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.photos img{
    width: 100%;
    height: auto;
}

.photos p{
    text-transform: uppercase;
    margin: 5px 0;
}

.topic a{
    color: #000;
    font-size: 18px;
    text-decoration: none;
}
.topic img{
    width: 30px;
}

.topic div{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background-color: #c50003;
}
.topic{
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin: 8px;
}
.topics{
    margin: 3px;
}
.topics h2{
    margin: 8px 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
}

footer{
    background-color: #1e2427;
    padding: 10px 0;
}

.footers{
    background-color: #DB0002;
    padding: 5px 0;
    color: #fff;
    font-family: 'Times New Roman', Times, serif; /* Гарнитура текста */ 
    font-size: 110%; /* Размер шрифта в процентах */
}

.footer-container{
    color: #fff;
    display: flex;
    justify-content: space-between;

}

.media-block img{
    width: 50px;
    height: auto;
}

.contacts{
    width: 500px;
}

.contacts p{
    margin-bottom:4px;
}

.contacts a{
    text-decoration: none;
    color: #fff;
}

.media-block{
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin: 8px;

}
.social-media{
    display: flex;
    justify-content: space-between;
}
.social-media p{
    width:270px;
}

@media (max-width: 1000px){
    .nav-menu li{
        font-size: 14px;
    }
    .block-info p{
        font-size: 14px;
    }

    .block-photo img{
        width: 150px;
    }
    footer{
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    main{
        grid-template-columns: 1fr;
    }
    .left-container{
        grid-column: 1;
    }
    
    .right-container{
        grid-column: 1;
       
    }
    .block-photo img{
        width: 200px;
    }
    .footer-container{
        flex-direction: column;
        justify-content: flex-start;
    }
    .burger-menu{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    .burger-menu span{
        color: #fff;
        font-weight: 700;
        text-transform: uppercase;
    }
    .burger-menu .burger-img{
        cursor: pointer;
        width: 40px;
        height: 40px;
        background-image: url('/_assets/elements/menu.png');
        background-position: center;
        background-size: cover;
        transition: all 0.3s ease;
    }
    .nav-menu{
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(4, 1fr);
        transition: all 1s ease-in;
    }
    .nav-menu li{
        justify-self: center;
    }
    .nav-menu{
        display: none;
    }
    .right-container{
        display: flex;
        flex-direction: column;
    }
    .topics{
        order: 1;
        margin-bottom: 20px;
    }
    .widget{
        order: 2;
    }
    .photos{
        order: 3;
    }
}

@media (max-width: 560px) {

    .header-container{
        width:400px;
        font-size: 14px;
    }
    .header-container .logo img{
        width: 100px;
    }
    .contacts{
        width: 80%;
        font-size: 14px;
    }
    .social-media{
        justify-content: flex-start;
        flex-direction: column;
    }
    .media-block{
        margin: 8px 0;
    } 
    .center{
        width: 100%;
        padding: 8px;
    }
    body{
        display: grid;
        grid-template-columns: 100vw;
        margin: 0 auto;
    }
    .widget{
        margin: 20px 0;
    }
    
}

@media (max-width: 430px){
    .widget{
        width: 90%;
        margin: 0 auto;
    }
    .news-block {
        flex-direction: column;
    }
    .block-photo img {
        width: 100%;
    }
    .header-container{
        width:300px;
        font-size: 14px;
    }
    .header-container .logo img{
        width: 80px;
    }
}

@media (max-width: 340px){
    body{
        overflow-x: hidden;
    }
    .widget div{
        width: 80vw;
        margin: 0 auto;
    }
    
    .news-block{
        width: 90%;
    }
    .photos img{
        width: 90%;
        height: auto;
    }
    .center{
        padding: 0;
    }
    .news-photo img{
        width: 90%;
        height: auto;
    }
    .news-text{
        width: 90%;
        margin: 5px 0;
    }
    .widget{
        width: 90%;
    }

}