body{
    font-family: 'Myriad Pro Regular';
    font-size: 22px;
}

header{
    background-image: url(./img/header-bg-img.png);
    /* height: 666px; */
    background-repeat: no-repeat;
    background-size: cover;
}

.container{
    width: 1228px;
    /* height: 666px; */
    margin-left: auto;
    margin-right: auto;
}

.navigation{
    display: flex;
    flex-direction: row;
    padding-top: 54px;
    align-items: baseline;
}

.mobile-menu-btn{
    display: none; /* кнопка меню для iphone xr - скрыта */
}

.logo{
    margin-right: auto;
    color: #3a494c;
    font-size: 32px;
}

.navigation ul{
    display: flex;
    flex-direction: row;

}

.navigation ul li a{
    font-family: 'Myriad Pro Bold';
    font-size: 23px;
    color: #3a494c;
    border-radius: 15px;
    padding: 17px 21px;
    display: block;
    transition: 0.8s;
}

.navigation ul li + li{
    margin-left: 35px;
}


.navigation ul li a:hover{
    background-color: #3a494c;
    color: #a7d4dc;
    
}


.hero{
    display: flex;
    justify-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 118px 94px 90px 94px;
    
}


.hero-img img{
    width: 100%; 
}

h1{
    font-size: 64px;
    color: white;
}


/* ADVANTAGE SECTION */

.advantages-section{
    background-color: white;
    /* height: 520px; */
    display: flex;
    align-items: center;
}

.advantages-section-container{
    width: 1228px;
    /* height: 520px; */
    /* margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto; */
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.card{
   /*  width: 330px;  */
    width: 100%;
    /* height: 300px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px 0 50px 0;
}

.card-img{
    height: 130px;
    width: auto;
    margin-bottom: 45px;
}

h2{
    font-size: 23px;
    font-weight: 700;
    color: #323232;
    margin-bottom: 30px;
}

.card p{
    color: #5e5e5e;
    font-size: 19px;
    text-align: center;
}



/*  WORKS SECTION */

.works-section{
    /* height: 1326px; */
    background-image: url(./img/works-bg-img.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
}

.works-section-container{
    width: 1228px; 
    /* height: 1326px; */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.works-header-text{
    text-align: center;
}
.works-header-text p{
    color: #c7e5cd;
    font-size: 19px;
    margin-bottom: 100px;
    line-height: 27px;
}

h3{
    color: white;
    font-size: 60px;
    font-family: 'Arvo Bold';
    margin-bottom: 30px;
    margin-top: 50px;
}

.works-nav-bar ul{
    display: flex;
    flex-direction: row;
}

.works-nav-bar ul li a{
    font-family: 'Myriad Pro Semibold';
    font-size: 24px;
    color: white;
    padding: 17px 20px;
    border-radius: 15px;
    display: block;
    border: 3px solid transparent;
    transition: 0.8s;
}

.works-nav-bar ul li + li{
    margin-left: 40px;
}


.works-nav-bar ul li a:hover{
    border: 3px solid white;
    
}

.works-nav-bar ul li a:active{
    background-color: white;
    color: #a2a3a3;
}

.work-images{
    margin-top: 70px;
    margin-bottom: 118px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 88px;
    
}

.work-img{
    width: calc(33.33% - 88px * 2 / 3); /* (33.33% = 100% / 3картинки) // (2/3 = 2 - промежутки, 3 - картинки)  */
    /* height: 262px; */
    background-repeat: no-repeat;
    background-size: cover;
}

.work-img img{
    width: 100%;
}

.show-more-btn{
    padding: 32px 32px;
    background-color: white;
    border-radius: 15px;
    border: none;
    color: #a2a3a3;
    font-family: 'Myriad Pro Bold';
    font-size: 22px;
    transition: 0.8s;
}

.works-section-container a{
    color: #a2a3a3;
}

.show-more-btn:hover{
    cursor: pointer;
    
}


.white-btn{
    margin-bottom: 50px;
    
}

.white-btn:hover{
    background-color: #a2a3a3;
    color: white;
    

}



/* TEMPLATE SECTION */

.template-section{
    /* height: 954px; */
    display: flex;
    align-items: center;
}

.template-container{
    /* height: 954px; */
    width: 1228px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}
.template-text{
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.template-container a{
    color: white;
    display: block;
    width: 190px;
    
}

.template-top,
.template-bottom{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 80px;
    margin: 75px 0 75px 0;
} 

.template-top .template-text h4,
.template-top .template-text p{
   margin-bottom: 0;
}    
.template-bottom .template-text h4,
.template-bottom .template-text p{
   margin-bottom: 0;
} 


.template-top div img,
.template-bottom div img{
    width: 100%;
}

.line{
    height: 1px;
    width: 100%;
    border: none;
    background-color: #cacaca;
    
}
.template-bottom{
    flex-direction: row-reverse;
}

.template-text h4{
    font-family: 'Myriad Pro Bold';
    font-size: 32px;
    
    color: #3f3f3f;
}

.template-text p{
    font-family: 'Myriad Pro Regular';
    font-size: 24px; 
    
    line-height: 27px;
    color: #515151;
}

.green-btn{
    background-color: #9ad4a6;
    color: white;
    transition: 0.8s;
}

.green-btn:hover{
    box-shadow: 0 0 0 2px #9ad4a6;
    background-color: transparent;
    color: #9ad4a6;
    
}

.blue-btn{
    background-color: #a5d3db;
    color: white;
    transition: 0.8s;
}

.blue-btn:hover{
    box-shadow: 0 0 0 2px #a5d3db;
    background-color: transparent;
    color: #a5d3db;
    
}



/* CONTACT US SECTION */

.contact-us-section{
    /* height: 1162px; */
    background-color: #3c3c3d;
    display: flex;
    align-items: center;
}



.contact-us-container{
    width: 1228px;
    /* height: 1162px; */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.contact-us-container a{
    color: #3c3c3d;
}


form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 52px;
}


.contact-us-text h3, .contact-us-text p{
    color: #d3d0d0;
}

.name,
.email,
.message{
    border-radius: 10px;
    width: 760px;
    height: 80px;
    border: none;
    padding: 28px 38px;
    font-size: 24px;
    font-family: 'Myriad Pro Semibold';
    color: black;
    resize: none; /* фиксированный размер окна textarea */
}

.name::placeholder,
.email::placeholder,
.message::placeholder{
    color: #a3a3a3;
    font-size: 24px;
    font-family: 'Myriad Pro Semibold';
}

#message{
    height: 210px;
}

.send-btn{
    padding: 32px 70px;
    color: #3c3c3d;
    transition: 0.8s;
}

.send-btn:hover{
    color: white;
    background-color: transparent;
    box-shadow: 0 0 0 2px white;
    

}

.line-footer{
    background-color: black;
    margin-top: 96px;
    margin-bottom: 0;
}

/* FOOTER */

.footer-icons{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

    gap: 16px;
    margin-right: auto;
    margin-top: 50px;
    margin: 50px auto 50px 0;
    
}

.circle-icon{
    width: 56px;
    height: 56px;
    border: none;
    background-color: #525252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.8s;
}

.ri-twitter-fill,
.ri-facebook-fill{
    color: #3c3c3d;
    font-size: 40px;
}

.circle-icon:hover{
    background-color:#ffffff;  
    
}



/* SCROLL ARROW-UP BUTTON */
html{
    scroll-behavior: smooth;
}

.arrow-up{
    position: fixed;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    
    background-color: #525252;
    bottom: 50px;
    right: 100px;
    text-decoration: none;
    color: white;
    font-size: 60px;
    
    transition: 0.8s;
    opacity: 0.5;
    
}

.ri-arrow-up-s-fill{
    color: white ;
    transition: 0.8s;
}

.ri-arrow-up-s-fill:hover{
    color: #525252;
}

.arrow-up:hover{
    background-color:#ffffff;
    border-radius: 2px;
    box-shadow: 0px 0px 21px 11px rgba(0,0,0,0.42);
}





/* RESPONSIVE DESIGN */

@media (max-width:1399px){ /* checking on 1200px */
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 1140px;
        transition: 0.8s;
    }

    .template-text p{font-size: 19px;}
}

@media (max-width:1199px){ /* checking on 992px */
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 960px;
        transition: 0.8s;
    }

    .template-container{padding: 0 25px 0 25px;}
    .navigation{padding: 25px 25px 0 25px;}
    .logo{font-size: 29px;}
    .navigation ul li a{font-size: 20px;}
    h1{font-size: 56px;}


    h2{font-size: 20px;}
    .card p{font-size: 16px;}
    .works-header-text p{margin-bottom: 50px;}
    .work-images{
        gap:50px;
        margin-bottom: 70px;
    }

    .template-text h4{font-size: 26px;}
    .template-text p{font-size: 14px;}

    .footer-icons{margin-left: 25px;} 
    
    .arrow-up{
        bottom: 50px;
        right: 20px;   
    }
}

@media (max-width:991px){ /* checking on 768px */
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 720px;
        transition: 0.8s;
    }


    .template-container{padding: 0 25px 0 25px;}
    .navigation{padding: 25px 25px 0 25px;}
    .logo{font-size: 22px;}

    .navigation ul li a{
        font-size: 12px;
        padding: 10px 14px;
    }

    h1{font-size: 36px;}
    .hero{padding: 60px 30px 30px 30px;}
    .hero-img img{height: 250px;}


    h2{font-size: 16px; margin-bottom: 15px;}
    .card p{font-size: 13px;}


    h3{font-size: 40px;}
    .works-header-text p{font-size: 16px; margin-bottom: 25px;}

    .works-nav-bar ul li a{
        font-size: 13px;
        padding: 17px 20px;
    }

    .work-images{margin: 30px 0 30px 0;}

    .show-more-btn{
        padding: 20px 20px;
        font-size: 14px;
    }

    .show-more-btn.blue-btn,
    .show-more-btn.green-btn{
        width: 121px;
    }


    .template-top,
    .template-bottom{margin: 50px 0 50px 0;}

    .template-text h4{font-size: 17px; margin-bottom: 15px;}
    .template-text p{font-size: 12px; margin-bottom: 15px; line-height: 15px; }

    .template-top div img,
    .template-bottom div img{height: 150px;}


    .name,
    .email,
    .message{
        width: 500px;
        font-size: 18px;
    }

    .name::placeholder,
    .email::placeholder,
    .message::placeholder{font-size: 18px;}

    .line-footer{margin-top: 50px;}


    .send-btn{padding: 20px 43px;}

    .footer-icons{margin: 30px auto 30px 30px;}  

    .circle-icon{
        width: 46px;
        height: 46px;
    }

    .ri-twitter-fill,
    .ri-facebook-fill{ font-size: 30px;}

    .arrow-up{
        bottom: 20px;
        right: 50px;
        
    }

}  


@media (max-width:767px){ /* checking on 576px */
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 540px;
        transition: 0.8s;
    }

    .navigation{padding: 20px 20px 0 20px;}
    .logo{font-size: 14px;}

    .navigation ul li a{
        font-size: 10px;
        padding: 8px 12px;
    }

    .navigation ul li + li{
        margin-left: 20px;
    }

    h1{font-size: 28px;}
    .hero-img img{height: 200px;}


    h2{font-size: 14px; margin-bottom: 15px;}
    .card p{font-size: 10px;}
    .card{margin: 25px 0 25px 0;}
    .card-img{margin-bottom: 25px;}
    .card-img img{height: 100px;}


    h3{font-size: 30px;}
    .works-header-text p{font-size: 14px; margin-bottom: 20px;}

    .works-nav-bar ul li a{
        font-size: 12px;
        padding: 12px 15px;
    }
    .works-nav-bar ul li + li{
        margin-left: 15px;
    }

    .work-images{margin: 30px 0 30px 0;}

    .show-more-btn{
        padding: 12px 12px;
        font-size: 12px;
    }

    .show-more-btn.blue-btn,
    .show-more-btn.green-btn{
        width: 93px;
    }

    .template-top,
    .template-bottom{margin: 50px 0 50px 0;}

    .template-text h4{font-size: 11px; margin-bottom: 10px;}
    .template-text p{font-size: 8px; margin-bottom: 10px; line-height: 15px; }

    /* .template-top div img,
    .template-bottom div img{height: 100px;} */

    .template-top img,
    .template-bottom img{
        height: 100px;
        width: 120px;
    }

    .name,
    .email,
    .message{
        height: 55px;
        width: 500px;
        font-size: 16px;
    }

    .name::placeholder,
    .email::placeholder,
    .message::placeholder{font-size: 16px;}

    .line-footer{margin-top: 50px;}


    .send-btn{padding: 12px 31px;}

    .footer-icons{margin: 25px auto 25px 25px;}  

    .circle-icon{
        width: 40px;
        height: 40px;
    }

    .ri-twitter-fill,
    .ri-facebook-fill{ font-size: 25px;}

}


@media (max-width:575px){ /* checking on 1200px */
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 100%;
        transition: 0.8s;
    }

    .navigation{padding: 20px 20px 0 20px;}
    .logo{font-size: 14px;}

    .navigation ul li a{
        font-size: 10px;
        padding: 8px 12px;
    }

    .navigation ul li + li{
        margin-left: 20px;
    }

    h1{font-size: 28px;}
    .hero-img img{height: 200px;}


    h2{font-size: 14px; margin-bottom: 15px;}
    .card p{font-size: 10px;}
    .card{margin: 25px 0 25px 0;}
    .card-img{margin-bottom: 25px;}
    .card-img img{height: 100px;}


    h3{font-size: 30px;}
    .works-header-text p{font-size: 14px; margin-bottom: 20px;}

    .works-nav-bar ul li a{
        font-size: 12px;
        padding: 12px 15px;
    }
    .works-nav-bar ul li + li{
        margin-left: 15px;
    }

    .work-images{margin: 30px 0 30px 0;}

    .show-more-btn{
        padding: 12px 12px;
        font-size: 12px;
    }

    .template-top,
    .template-bottom{margin: 50px 0 50px 0;}

    .template-text h4{font-size: 11px; margin-bottom: 10px;}
    .template-text p{font-size: 8px; margin-bottom: 10px; line-height: 15px; }

    .template-top div img,
    .template-bottom div img{height: 100px;}

    .name,
    .email,
    .message{
        height: 55px;
        width: 500px;
        font-size: 16px;
    }

    .name::placeholder,
    .email::placeholder,
    .message::placeholder{font-size: 16px;}

    .line-footer{margin-top: 50px;}


    .send-btn{padding: 12px 31px;}

    .footer-icons{margin: 25px auto 25px 25px;}  

    .circle-icon{
        width: 40px;
        height: 40px;
    }

    .ri-twitter-fill,
    .ri-facebook-fill{ font-size: 25px;}

}



/* responsive iphone xr */

@media (max-width:415px){ 
    .container,
    .advantages-section-container,
    .works-section-container,
    .template-container,
    .contact-us-container{
        width: 100%;
        transition: 0.8s;
        padding: 0 15px 0 15px;
    }


    .navigation{
        padding: 15px 15px 0 15px;
    }
    .logo{font-size:14px;}



    /* DROPDOWN MENU START */

    .mobile-menu-btn{
        display: block;
    }

    .navigation ul li a{
        font-size: 97px;
        padding: 5px 8px;
        margin-bottom: 10px;
    }

    .navigation ul{
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        top: 0;
        flex-direction: column;
        background-color: white;
        justify-content: center;
        align-items: center;
        z-index: 99;
        display: none; /* спрятали список */
    }

    .navigation ul li + li{
        margin-left: 0;
    }


    .navigation ul.shown{
        display: flex;
    }

    /* DROPDOWN MENU END */



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

    .hero-img img{
        width: 100%;
        position: inherit;
        
    }
    
    h1{
        font-size: 35px;
        color: white;
        position: absolute;   
    }

    .advantages-section-container{
        width: 1228px;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
    }

    .card{
         width: 100%;
         display: flex;
         flex-direction: column;
         justify-content: center;
         align-items: center;
         margin: 15px 0 15px 0;
     }

     .card-img{
        /* height: 130px; */
        width: auto;
        margin-bottom: 15px;
    }

    h2{
        font-size: 23px;
        font-weight: 700;
        color: #323232;
        margin-bottom: 30px;
    }
    
    .card p{
        color: #5e5e5e;
        font-size: 15px;
        text-align: center;
    }

    h3{
        color: white;
        font-size: 30px;
        font-family: 'Arvo Bold';
        margin-bottom: 10px;
        margin-top: 20px;
    }

    .works-header-text p{
        color: #c7e5cd;
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 15px;
    }

    .works-nav-bar ul{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .works-nav-bar ul li + li{
        margin-left: 10px;
    }

    .work-img img{
        width: 100%;
    }


    .work-images{
        gap: 30px;    
    }

    .work-img{
        width: calc(50% - 30px * 1 / 2); /* (50% = 100% / 2 картинки) // (1/2 = 1 - промежутки, 2 - картинки)  */
        /* height: 262px; */
        background-repeat: no-repeat;
        background-size: cover;
    }

    .template-top,
    .template-bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin: 75px 0 75px 0;
    }

    .template-top img,
    .template-bottom img{
        height: 100px;
        width: 120px;
    }

    .template-bottom img{
        margin-left: auto;
    }

    .template-bottom p,
    .template-bottom h4{
        text-align: end;
    }

    .blue-btn{
        margin-left: 250px;
    }



    .template-text h4{
        font-family: 'Myriad Pro Bold';
        font-size: 15px;
        margin-bottom: 30px;
        color: #3f3f3f;
    }
    
    .template-text p{
        font-family: 'Myriad Pro Regular';
        font-size: 10px; 
        margin-bottom: 35px;
        line-height: 15px;
        color: #515151;
    }

    .contact-us-text p{
        font-size: 11px;
        padding-bottom: 20px;
    }
    
    .name,
    .email,
    .message{
        border-radius: 10px;
        width: 300px;
        height: 20px;
        border: none;
        padding: 15px 15px;
        font-size: 15px;
        font-family: 'Myriad Pro Semibold';
        color: black;
        resize: none; /* фиксированный размер окна textarea */
    }

    .name::placeholder,
    .email::placeholder,
    .message::placeholder{
        color: #a3a3a3;
        font-size: 15px;
        font-family: 'Myriad Pro Semibold';
    }


    .footer-icons{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    
        gap: 16px;
        margin-right: auto;
        margin-left: auto;
        
    }

}



