@import "assets/css/reset.css";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body{
    font-family: 'inter', serif;
}

.all_shadow{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 100;
}

main.page{
    padding: 150px 0 0;
}

.container{
    width: 1520px;
    max-width: 90%;
    margin: 0 auto;
}

.container > h2{
    color: #F1414B;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
}

.open_popup{
    font-size: 20px;
    padding: 15px 42px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    transition: 0.4s ease;
}

/* Попап окно */

#popup{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    max-width: 90%;
    background: #fff;
    padding: 80px 40px 40px 40px;
    border-radius: 10px;
    z-index: 150;
}

#popup .exit{
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

#popup .exit:after, #popup .exit:before{
    position: absolute;
    height: 1px;
    top: 50%;
    left: 0;
    content: '';
    display: block;
    width: 100%;
    background: #000;
}

#popup .exit:before{
    transform: translate(0, -50%) rotate(45deg);
}

#popup .exit:after{
    transform: translate(0, -50%) rotate(-45deg);
}

#popup .feedback{
    margin-top: 0;
}

/* Шапка */

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    height: 111px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid #EFEFEF;
}

#header{
    width: 1520px;
    max-width: 90%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topmenu nav ul{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topmenu nav ul li{
    margin-right: 20px;
    font-size: 18px;
}

.topmenu nav ul li:last-child{
    margin-right: 0;
}

.topmenu nav ul li a{
    color: #000;
    padding: 8px 20px;
    position: relative;
}

.topmenu nav ul li a:before{
    width: 0;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 100%;
    opacity: 0;
    border-radius: 10px;
    border: 1px solid #000;
    content: '';
    display: block;
    transition: 0.4s ease;
}

.topmenu nav ul li a:hover::before{
    width: 100%;
    opacity: 1;
    right: 0;
}


.burger_menu{
    width: 45px;
    z-index: 130;
    height: 40px;
    position: relative;
    cursor: pointer;
    transition: 0.4s ease;
    display: none;
}

.burger_menu span{
    background: #38434E;
    width: 100%;
    height: 2px;
    display: block;
    position: absolute;
    top: 20px;
    left: 0;
    cursor: pointer;
    transition: 0.4s ease;
}

.burger_menu span:before{
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #38434E;
    content: '';
    display: block;
    position: absolute;
    transition: 0.4s ease;
}

.burger_menu span:after{
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #38434E;
    content: '';
    display: block;
    position: absolute;
    transition: 0.4s ease;
}

.burger_active span{
    background: rgba(0,0,0,0);
}

.burger_active span:before{
    transform: rotate(45deg);
    top: 0;
}

.burger_active span:after{
    transform: rotate(-45deg);
    top: 0;
}

/* Главный экран */

#home{
    height: 100vh;
    padding-top: 110px;
    background: url('assets/images/bg_home.jpg') no-repeat center center;
    background-size: cover;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    position: relative;
}

#home:after{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    background: rgba(0,0,0,0.3);
    display: block;
    z-index: 0;
}

#home .container{
    padding-left: 111px;
    position: relative;
    z-index: 1;
}

#home .container .text_home{
    width: 470px;
    max-width: 100%;
    color: #fff;
}

#home .container .text_home h1{
    font-weight: 600;
    font-size: calc(35px + 15 * ((100vw - 400px) / (1600 - 400)));
}

#home .container .text_home h3{
    font-weight: 400;
    margin-top: 25px;
    font-size: calc(20px + 5 * ((100vw - 400px) / (1600 - 400)));
}

#home .container .text_home .open_popup{
    color: #000;
    background: #fff;
    margin-top: 32px;
}

#home .container .text_home .open_popup:hover{
    box-shadow: 0 0 10px 2px #fff;
}

/* О нас */

#about_us{
    padding: 60px 0;
}

.container-about_us{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.left_container-about_us{
    width: 600px;
    max-width: 58%;
}

.left_container-about_us p{
    font-size: 18px;
}

.left_container-about_us .open_popup{
    margin-top: 30px;
    background: #3D3A7D;
    color: #fff;
}

.left_container-about_us .open_popup:hover{
    background: #1F1D52;
}

.right_container-about_us{
    width: 40%;
    min-width: 280px;
}

.right_container-about_us img{
    border-radius: 10px;
}

/* Цены */

#pricelist{
    padding: 60px 0;
}

.list_price{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.item_price{
    padding: 30px 10px 116px;
    border-radius: 10px;
    border: 2px solid #000;
    width: 24%;
    text-align: center;
    position: relative;
}

.item_price h4{
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.item_price p{
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
}

.item_price p.total_price{
    font-size: 30px;
    color: #3D3A7F;
}

.item_price .open_popup{
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 30px;
    background: #3D3A7D;
    color: #fff;
}

.item_price .open_popup:hover{
    background: #1F1D52;
}

.list_price .slick-prev,
.list_price .slick-next{
    text-align: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #959595;
}

.list_price .slick-prev{
    left: -45px;
}

.list_price .slick-next{
    right: -45px;
}

/* Преимущества */

#advantages{
    padding: 60px 0;
}

.container-advantages{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left_container-advantages{
    min-width: 280px;
    width: 45%;
}

.left_container-advantages img{
    border-radius: 10px;
}

.right_container-advantages{
    width: 45%;
}

.item_advantage{
    padding-left: 60px;
    margin-top: 50px;
    position: relative;
}

.item_advantage .number_adv{
    font-size: 70px;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -60%);
}

.title_adv{
    font-size: 25px;
    font-weight: 600;
}

.text_adv{
    margin-top: 15px;
    font-size: 18px;
}

/* Контакты */

#contacts{
    padding: 60px 0;
}

.feedback{
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.offer_feedback{
    width: 560px;
    max-width: 53%;
}

.offer_feedback .title_offer{
    font-size: 30px;
    font-weight: 800;
}

.offer_feedback .text_offer{
    font-size: 18px;
    margin-top: 20px;
}

.feedback form{
    width: 45%;
}

.feedback form p{
    margin-top: 15px;
}

.feedback form p:first-child{
    margin-top: 0;
}

.feedback form p input{
    border-radius: 10px;
    border: 1px solid #000;
    padding: 10px 17px;
    color: #000;
    font-size: 18px;
    width: 100%;
}

.feedback form p input[type='submit']{
    background: #3D3A7D;
    color: #fff;
    border: none;
    padding: 15px 17px;
    transition: 0.4s ease;
}

.feedback form p input[type='submit']:hover{
    background: #1F1D52;
}

.loading{
    text-align: center;
    display: none;
}

.loading img{
    width: 60px;
    animation: circle 2s infinite linear;
}

@keyframes circle {
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}

.success{
    display: none;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: #b9ffb9;
    color: #028f02;
}

/* Карта */

#map{
    margin-top: 50px;
}

.map_contacts{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 18px;
}

.map_contacts p{
    margin-top: 20px;
}

.map_contacts p a{
    color: #000;
    margin-left: 20px;
}

.map_contacts p a:first-child{
    margin-left: 0;
}

/* Статьи и публикации */

#news_publication{
    padding: 60px 0;
}

.all_news{
    text-align: center;
    margin-top: 50px;
}

.all_news a{
    font-size: 20px;
    padding: 15px 20px;
    border: 1px solid #000;
    border-radius: 10px;
    color: #000;
    transition: 0.3s ease;
    display: inline-block;
}

.all_news a:hover{
    background: #000;
    color: #fff;
}

.list-news_publications{
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.list-news_publications article{
    width: 31%;
    margin-top: 30px;
}

.list-news_publications article .img_article{
    min-height: 220px;
    max-height: 220px;
    width: 100%;
}

.list-news_publications article > h4{
    font-size: 25px;
    font-weight: 500;
    margin-top: 15px;
}

.list-news_publications article > p{
    margin-top: 10px;
    font-size: 18px;
}

.list-news_publications article > a{
    margin-top: 10px;
    font-size: 18px;
    color: #000;
    text-decoration: underline;
    display: inline-block;
}

/* Подвал */

#footer{
    width: 1520px;
    max-width: 95%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_menu{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer_menu .socials{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer_menu .socials a{
    margin-right: 10px;
}

.footer_menu nav ul{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer_menu nav ul li{
    margin-right: 20px;
    font-size: 18px;
}

.footer_menu nav ul li:last-child{
    margin-right: 0;
}

.footer_menu nav ul li a{
    color: #000;
    padding: 8px 20px;
    position: relative;
}

.footer_menu nav ul li a:before{
    width: 0;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 100%;
    opacity: 0;
    border-radius: 10px;
    border: 1px solid #000;
    content: '';
    display: block;
    transition: 0.4s ease;
}

.footer_menu nav ul li a:hover::before{
    width: 100%;
    opacity: 1;
    right: 0;
}

/* Страница рубрики и поста */

main.page #news_publication{
    padding: 0 0 80px;
    border-bottom: 1px solid #333;
}

.menu_category{
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.menu_category li{
    margin-right: 10px;
}

.menu_category li:last-child{
    margin-right: 0;
}

.menu_category li a{
    padding: 12px 20px;
    color: #000;
    font-size: 18px;
    border-radius: 10px;
    border: 1px solid #000;
    transition: 0.4s ease;
}

.menu_category li a:hover{
    color: #fff;
    background: #000;
}

main.page h1{
    font-weight: 800;
    font-size: calc(35px + 15 * ((100vw - 400px) / (1600 - 400)));
}

#post .date_post{
    color: #333;
    margin-bottom: 20px;
}

#post img {
    width: 500px;
    max-width: 100%;
    display: block;
    margin: 30px 0;
}

#post .content{
    line-height: 160%;
}