@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+128+Text&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto";
}

a {text-decoration: none;}

.container{
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
}


/* header */

.header {
    border-bottom: 2px solid #dadada;
    padding: 30px;
}

.header_container{
    display: flex;
    flex-wrap: wrap;
}

.header_logo{margin-right: auto;}

.header_logo_img {width: 150px;}

.header_nav-ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav_item{
    font-size: 20px;
    margin-right: 60px;
    transition: 0.5s;
}

.nav_item a {color: rgba(76, 88, 102, 1); transition: 0.4s;}

.nav_item a:hover{color: #7875fe;}

.nav_item a::after{
    content: "";
    display: block;
    width: 0px;
    opacity: 0;
    height: 2px;
    border-radius: 10px;
    background-color: #7875fe;
    margin-top: 5px;
    transition: 0.4s;
}

.nav_item a:hover::after{width: 100%; opacity: 1;}

.additional_nav_icons a {margin-left: 30px;}

.header_btns{
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.search_btn{cursor: pointer;}

.search_input{
    display: none;
    width: 0px;
    outline: none;
    border: none;
    font-size: 18px;
    border-bottom: 1px solid rgb(76, 88, 102);
    transition: 0.6s;
}

.search_input.search_open{
    display: block;
    width: 100%;
}

.search_input:focus{
    border-bottom: 1px solid rgb(82, 169, 111);
}

.header_burger{
    display: none;
    position: relative;
    width: 34px;
    height: 34px;
    border: none;
    background: unset;
    cursor: pointer;
}

.header_burger span{
    position: absolute;
    left: 2px;
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background-color: rgba(76, 88, 102, 1);
    transition: .5s;
}

.header_burger span:nth-child(1){transform: translateY(-10px);}

.header_burger span:nth-child(3){transform: translateY(10px);}

.header.open .header_burger span:nth-child(1){
    transform: translateY(0) rotate(45deg);
}

.header.open .header_burger span:nth-child(2){
    opacity: 0;
}

.header.open .header_burger span:nth-child(3){
    transform: translateY(0) rotate(-45deg);
}


/* welcome section */

.welcome {margin-top: 60px; padding: 0px 30px;}

.welcome_container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome_text{max-width: 445px;}

.welcome_image{font-size: 0;}

.welcome_title{
    margin: 0 0 30px 0;
    color: rgba(76, 88, 102, 1);
    font-size: 60px;
    font-weight: 400;
}

.welcome_subtitle{
    margin: 0 0 30px 0;
    color: rgba(133, 133, 155, 1);
    font-weight: 400;
}

.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 255px;
    height: 70px;
    font-weight: 400;
    font-size: 20px;
    border: solid  1px #7875fe;
    color: #7875fe;
    transition: 0.4s;
}

.btn:hover{
    color: #fff;
    background-color: #7875fe;
}


/* rezult section */

.rezult{
    background-color: rgb(235, 235, 235);
    padding: 90px 0 90px 0;
}

.rezults_wrapper{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 90px;
}

.rezult_block{
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.rezult_block::before{
    content: "";
    position: absolute;
    top: -20px;
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(192, 192, 192, 1);
}

.brief_info{max-width: 160px;}

.version{
    margin: 10px 0;
    color: rgba(102, 102, 102, 1);
    font-size: 18px;
}

.version_describe{
    margin: 5px 0;
    color: rgba(133, 133, 155, 1);
    font-size: 18px;
}

.advice_block{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foled_box{max-width: 100%;}

.advice_wrapper{max-width: 350px;}

.advice_title{
    font-size: 40px;
    font-weight: 400;
    color: rgba(102, 102, 102, 1);
    margin: 20px 0;
}

.advice_info{
    color: rgba(133, 133, 155, 1);
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
}


/* products section */

.products {padding: 90px 0;}

.product_container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.product_item {max-width: 255px;}

.product_image_wrapper {
    height: 180px;
    text-align: center;
    background-color: rgba(235, 235, 235, 1);
    font-size: 0;
}

.product_image_wrapper img{
    object-fit: cover;
    max-width: 100%;
    height: 100%;
    transition: 0.4s;
}

.product_image_wrapper img:hover{object-position: 0px 30px;}

.product_title {
    margin: 20px 0 8px 0;
    font-weight: 400;
    font-size: 30px;
    color: rgba(102, 102, 102, 1);
}

.product_circulations {
    margin: 0 0 8px 0;
    font-weight: 400;
    font-size: 14px;
    color: rgba(181, 181, 189, 1);
}

.product_describe {
    margin: 0 0 20px 0;
    line-height: 30px;
    font-weight: 400;
    font-size: 18px;
    color: rgba(133, 133, 155, 1);
}

.product_link {
    font-size: 20px;
    font-weight: 400;
    color: rgba(120, 117, 254, 1);
}


/* partners section */

.partners {
    padding: 90px 0;
    background-color: rgb(235, 235, 235);
}

.partners_container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.partner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 255px;
    height: 135px;
    border: solid rgba(196, 196, 196, 1) 1px;
}


/* sketchbook section */

.sketchbook {padding: 90px 0 0 0}

.sketchbook_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sketchbook_text {max-width: 400px;}

.sketchbook_title {
    margin: 0 0 8px 0;
    color: rgba(102, 102, 102, 1);
    font-size: 40px;
    font-weight: 400;
}

.sketchbook_describe{
    padding: 0 0 30px 0;
    color: rgba(133, 133, 155, 1);
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
}

.sketchbook picture{font-size: 0;}

.sketchbook picture img{max-width: 100%;}


/* footer */

.footer {background-color: rgba(76, 88, 102, 1);}

.footer_top{padding: 30px 0;}

.footer_container {
    display: flex;
    justify-content: space-between;
}

.footer_icon {margin-left: 30px;}

.footer_bottom{
    padding: 3px 0;
    text-align: center;
    background-color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(76, 88, 102, 1);
    font-weight: 400;
}

.footer_bottom span{opacity: 0.5;}


/* media requests */

@media screen and (max-width: 1210px) {
    .container{max-width: 1030px;}

    .header_btns{max-width: 200px;}

    .foled_box{max-width: 60%;}

    .rezult_block{margin-bottom: 40px;}

    /* product section */
    .product_container{justify-content: space-evenly;}

    .product_item {max-width: 355px; margin-bottom: 50px;}

    /* partners section */
    .partners_container{justify-content: space-evenly;}
}

@media screen and (max-width: 1030px) {
    .header_btns{max-width: none;}

    .header_nav-ul{width: 100%;}

    .nav_item{margin-right: 0;}
    
    .header_nav{
        margin-top: 20px;
        width: 100%;
        order: 1;
    }

    .header_nav::before{
        content: "";
        display: block;
        height: 2px;
        margin-bottom: 30px;
        background-color: #dadada;
    }

    .container{max-width: 750px;}

    .welcome{margin-top: 40px;}

    .advice_block{align-items: start;}

    .product_item {max-width: 355px;}

    /* sketchbook section */

    .sketchbook {padding: 90px 0 90px 0}
}

@media screen and (max-width: 770px){
    .welcome_title{font-size: 40px;}

    .welcome_subtitle{font-size: 15px;}

    .welcome_text{max-width: 290px;}

    .container{max-width: 520px;}

    .advice_block{flex-direction: column;}

    .advice_wrapper{max-width: 100%;}

    .advice_title{font-size: 34px;}

    .advice_info{font-size: 16px;}

    /* sketchbook section */

    .sketchbook_container{
        flex-direction: column-reverse;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 520px){
    
    .search_input{font-size: 15px;}

    .welcome_image{display: none; }

    .welcome_text{max-width: 100%;}

    .container{max-width: 400px;}

    .welcome{margin: 40px 0 80px 0;}

    .btn{width: 230px;}

    /* burger menu */
    .header_burger{display: block;}

    .header_nav{
        box-sizing: border-box;
        position: absolute;
        left: -550px;
        top: 50px;
        width: 100%;
        height: 100vh;
        padding: 70px 0 0 10px;
        background-color: rgb(235, 235, 235);
        transition: 0.5s;
    }

    .header_nav::before{display: none;}

    .header_nav-ul{display: block;}

    .nav_item a::after{display: none;}

    .nav_item a{
        display: block;
        padding: 20px;
        font-size: 22px;
    }

    .additional_nav_icons{
        margin-top: 30px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header_logo{margin: 0 auto;}

    .header.open .header_nav{left: 0;}


    .rezults_wrapper{justify-content: center;}

    .foled_box{max-width: 100%;}

    .advice_wrapper{padding: 35px;}

    .version_describe{font-size: 16px;}

    .rezult_block{padding: 20px;}
    .rezult_block::before{width: 70%;}

    /* product section */
    .product_item{max-width: 300px;}

    /* partners section */
    .partner{height: 70px;}

    .partners_container{gap: 0px;}

    /* sketchbook section */

    .sketchbook_container{padding: 0 20px;}

    /* footer */

    .footer_container{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer_logo img{width: 150px;}

    .footer_icons::before{
        content: "";
        display: block;
        margin-bottom: 20px;
        width: 100%;
        height: 1px;
        opacity: 0.3;
        border-radius: 20px;
        background-color: rgba(221, 221, 221, 1);
    }

    .footer_icon{margin: 10px;}

    .footer_icon img{
        width: 25px;
        height: 25px;
    }
    
}