body{
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}
/*шапка*/
header {
    width: 100%;
    height: auto;
    background-color: rgb(19, 30, 58);
    padding: 30px;
    box-sizing: border-box;
    color: white;
}
nav{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    box-sizing: border-box;
}
h2{
    font-size: 36px;
}

nav > h2 {
    margin: 0; 
}

nav > ul {
    display: flex;
    gap: 50px; 
    margin: 0;
    padding: 0;
    color: white;
}

nav > ul > li{
    list-style-type: none;
}

nav > ul>li>a {
    color: white;
    text-decoration: none;
    font-size: 24px;
}

nav > ul>li>a:hover{
    color: rgba(255, 255, 255, 0.539);
}

/*баннер с кнопкоф*/
.info-banner {
    position: relative;
    display: inline-block; 
    width: 100%;
}

.info-banner > img {
    width: 100%;
    height: auto;
    display: block;
}


/*контент на стр*/
.container {
    margin-left: 29px;
    margin-right: 28px;
}

.section-title{
    margin-top: 44px;
    font-size: 40px;
}


nav > ul>li>a {
    color: white;
    text-decoration: none;
}
nav > ul>li>a:hover{
    color: rgba(0, 0, 0, 0.500);
}

/*главная новость*/ 
.featured{
    display: flex;
}
.featured-title{
    font-size: 48px;
    margin-left: 20px;
}

.featured-text{
    font-size: 24px;
    margin-left: 20px;
}

.lenta {
    font-size: 40px;
}
.section-title{
    font-size: 36px;
}

.lenta-choice>a {
    text-decoration: none;    
    color: black;             
    background-color: rgba(0, 0, 0, 0.485); 
    padding: 5px 10px;      
    border-radius: 4px;     
    display: inline-block;  
    margin-bottom: 35px;   
}

.lenta-choice>a:hover {
    color:rgba(255, 255, 255, 0.498);
}

/*лента новостей*/
.card-list{
    margin-top: 10px;
    margin-bottom: 63px;
}

.card{
    display: flex;
    margin-bottom: 15px;
}


.card-title{
    margin-top: auto;
    margin-left: 20px;
    font-size: 36px;
}

.card-text{
    margin-left: 20px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.485);
}
/*подвал*/
footer{
    width: 100%;
    height: auto;
    background-color: rgb(19, 30, 58);
    padding: 30px;
    box-sizing: border-box;
    color: white;

}

footer> nav > h2{
    text-align: center;
}

footer> nav {
    flex-direction: column; 
    justify-content: center; 
    align-items: center;    
    gap: 15px;           
}

footer>nav > ul {
    justify-content: center; 
    padding: 0;
}

/* статья */

.lenta-article{
    margin-left: 20px;
}

h3{
    font-size: 64px;
    margin-top: 40px;
    margin-left: 40px;
    margin-bottom: 20px; 
}

p{ 
    font-size: 36px;
    margin-left: 40px;
    margin-top: 5px;
    margin-bottom: 14px;
}


.date {
    color: rgba(0, 0, 0, 0.505);
    font-size: 24px;
    margin-top: 5px;
    margin-left: 40px;
}

.photo-article{
    display: flex;
    justify-content: center;
    padding: 0 40px;
}


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


.text {
    display: block; 
    margin-left: 58px;
    margin-right: 57px;
    margin-top: 47px;
    margin-bottom: 47px;
    
    font-size: 36px;
    line-height: 1.6;
    text-align: justify;
}

/* комменты */

.comment-container {
    display: block;
    margin-left: 58px;
    margin-right: 57px;
    width: auto;
    height: auto;
    border-radius: 20px;
}


.title-comment {
    font-size: 36px;
    font-weight: bold;
    text-align: left;
    margin-left: 0; 
    padding: 15px 0;
}

.author {
    font-size: 36px;
    font-weight: bold;
    text-align: left;
    margin-left: 0; 
    padding: 15px 0;
}


.name-comment{

    text-align: left;
    font-size: 36px;
    background-color: rgba(0, 0, 0, 0.43);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 74px;
    margin-left: 0;
    margin-right: 0;
}

.add-comment-label{
    text-align: left;
    font-size: 36px;
    margin-bottom: 20px;

    
}

.add-comment{

    margin-top: 111px;
    text-align: left;
    font-size: 36px;
    background-color: rgba(0, 0, 0, 0.43);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 41px;
    margin-left: 0;
    margin-right: 0;
    display: flex;   
    flex-direction: column;

}

.input-comment{
    width: 100%;
    height: 150px; 
    padding: 10px; 
    box-sizing: border-box; 
    resize: vertical; 
    font-size: 36px;
    color: rgba(0, 0, 0, 0.43);
    border-radius: 20px;

}

.send-button {
    color: white;
    background-color: rgb(19, 30, 58);
    font-size: 36px;
    margin-top: 28px;
    align-self: flex-end;
    border: none;
    border-radius: 15px;
    padding: 10px 30px;  
    cursor: pointer;
    
}

.send-button:hover {
    color:rgba(255, 255, 255, 0.498);
}

/* страница входа*/

.banner-btn2 {
    position: absolute; 
    top: 250px;
    left: 55px;
    color: white;
    background-color: red;
    padding: 15px 50px;
    font-size: 20px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.banner-btn2:hover {
    color:rgba(255, 255, 255, 0.498);
}


.content-news {
    position: relative;
    height: 1000px;  
}

.prem {
    position: absolute;
    left: 850px;
    top: 70px;
    width: 590px;
    height: 673px;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.375);
    border-radius: 20px;
}

.prem > h2{
    font-size: 36px;
    display: flex;
    justify-content: center;

}
ul>li{
    font-size: 28px;
    line-height: 2;
}
.btn-3{
    background-color:rgb(19, 30, 58);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    font-size: 30px;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-left: 45px;
    margin-right: 45px;
    border: none;
}
.btn-3:hover {
    color:rgba(255, 255, 255, 0.498);
}

/*блок войти*/
.content-news{
    display: flex;

}

.login-block {
    position: absolute;
    left: 84px;
    top: 60px;
}

.input-field{
    margin-top: 36px;
    margin-bottom: 37px;
    border-radius: 20px;
    font-size: 36px;
    padding: 15px 35px;
    width: 595px;
    height: auto;

}
.btn-login{
    width: 670px;
    height: auto;
    background-color: rgb(19, 30, 58);
    color: white;
    font-size: 36px;
    border-radius: 20px;
    padding: 15px 35px;
    cursor: pointer;
}
.btn-login:hover {
    color:rgba(255, 255, 255, 0.498);
}

.login-title{
    font-size: 48px;
    display: flex;
    justify-content: center;
}

.vxod{
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    padding: 10px 20px;
    transition: 0.3s;  
}

.vxod:hover {
    color:rgba(0, 0, 0, 0.492);
}
.reg{
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    padding: 10px 20px;
    transition: 0.3s;  
}

.reg:hover {
    color:rgba(0, 0, 0, 0.492);
}

.login{
    display: flex;
    gap: 20px;
    border-bottom: 2px solid black;
}

@media (max-width: 720px){
    /*первая стр*/
    header {
        padding: 15px;
    }
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
    nav>h2 {
        font-size: 28px;
        margin: 0;
    }
    nav>ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    nav>ul>li>a{
        font-size: 18px;
    }

    .container {
        margin-left: 16px;
        margin-right: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-top: 30px;
    }

    .featured{
        flex-direction: column;
    }

    .featured-img>img {
        width: 100%;
        height: auto;
        display: block;
    }

    .featured-title {
        font-size: 24px;
        margin-left: 0;
        margin-top: 15px;
    }

    .featured-text {
        font-size: 16px;
        margin-left: 0;
    }

    .lenta {
        font-size: 28px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .lenta-choice > a {
        font-size: 14px;
        padding: 5px 12px;
        margin-bottom: 20px;
        display: inline-block;
        margin-right: 5px;
    }

    .card-list {
        margin-bottom: 40px;
    }

    .card {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .card-img >img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-title {
        font-size: 22px;
        margin-left: 0;
        margin-top: 12px;
    }

    .card-text {
        font-size: 16px;
        margin-left: 0;
        color: rgba(0, 0, 0, 0.6);
    }

    /*стр статья*/
    .logo-article h3 {
        font-size: 28px;
        margin: 20px 16px 10px 16px;
        word-break: break-word;
    }

    .logo-article p {
        font-size: 20px;
        margin: 5px 16px;
    }

    .logo-article .date {
        font-size: 14px;
        margin: 0 16px 20px 16px;
    }

    .photo-article {
        padding: 0 16px;
        margin: 0;
    }

    .photo-article img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .text {
        margin: 20px 16px;
        padding: 0;
        font-size: 18px;
        line-height: 1.5;
        width: auto;
        text-align: left;
    }

    .comment-container {
        margin: 0 16px 30px 16px;
        width: auto;
        box-sizing: border-box;
    }

    .title-comment {
        font-size: 24px;
        margin: 0 0 15px 0;
        padding: 0;
    }

    .comment {
        margin-bottom: 20px;
    }

    .author {
        font-size: 18px;
        margin: 0 0 5px 0;
        font-weight: bold;
    }

    .name-comment {
        font-size: 16px;
        padding: 12px;
        margin: 0;
        border-radius: 20px;
        word-break: break-word;
    }

        .add-comment {
        margin: 30px 0 20px 0;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .add-comment-label {
        font-size: 20px;
        margin-bottom: 10px;
        display: block;
    }

    .input-comment {
        font-size: 16px;
        padding: 12px;
        height: 100px;
        width: 100%;
        box-sizing: border-box;
    }

    .send-button {
        font-size: 18px;
        padding: 8px 20px;
        margin-top: 15px;
    }

    /*страница вход*/
    .content-news {
        flex-direction: column;
        height: auto;
        gap: 30px;
    }

    .login-block{
        position: static;
        width: 100%;
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .prem {
        position: static;
        width: 90%;
        margin: 10px 15px;
        box-sizing: border-box;
        font-size: 14px;
        justify-content: center;
        
    }

    .login-title {
        font-size: 32px;
        text-align: center;
        margin: 20px 0 10px;
    }

    .login {
        justify-content: center;
        gap: 20px;
    }

    .vxod{
        font-size: 24px;
        padding: 8px 20px;
    }

    .reg{
        font-size: 24px;
        padding: 8px 20px;
    }

    .input-field{
        width: 100%;
        box-sizing: border-box;
    }
    .btn-3 {
        width: 85%;
        box-sizing: border-box;
        font-size: 15px;
        padding: 25px;
        margin-top: 10px;
        text-align: center;
        margin-right: 150px;
        
    }
    .btn-login{
        width: 100%;
        box-sizing: border-box;
        font-size: 24px;
        padding: 12px;
        margin-top: 10px;
        
    }

    .input-field {
        font-size: 18px;
        padding: 12px 16px;
        margin: 10px 0;
    }

    .prem>h2 {
        font-size: 22px;
        text-align: center;
    }


    .info-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .banner-container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-banner>img {
        width: 100%;
        height: auto;
    }
    ul>li{
        font-size: 18px;
        text-align: left;
    }

    .banner-btn2{
        top: 50px;
        left: 12px;
        font-size: 9px;
        padding: 5px 15px;


    }
    


}