body{
    font-family: 'Roboto',sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
a{
    text-decoration: none;
}
.buton {
 cursor: pointer;
 font-size: 16px;   
 background-color: #4D5AE5;
 color: #FFFFFF;
 border: 1px solid #4D5AE5;
 border-radius: 4px;
 padding: 16px 32px;
 margin-top: 50px;
}

.buton:hover{
    background-color: #404BBF;
}

h1{
    font-size: 56px;
    font-weight: bold;
    letter-spacing: 2% ;
    line-height: 60px;
}

h2{
    font-weight: bold;
    font-size:36px;
   margin: 0;
   padding: 0;
}

h3 {
    font-weight:medium;
    font-size: 20px;
   
}

.menu li a{
    text-decoration: none;
    color: #2E2F42;
}

.menu li a:hover {
    color: #404BBF;
}

.menu .link-1:active {
    border-bottom: 2px solid #404BBF;
    border-radius: 2px;
    width: 48px;
    height: 4px;
    padding-bottom: 4px;
}

.menu .link-1::after{
    content: "";
    background-color:  #404bbf;
    color: #404BBF;
    width: 48px;
    height: 3px;
    display: block;
    margin-top: 10px;
    
}
.menu .link-1 a::after{
    color: #404BBF;
}
.comms a{
    text-decoration: none;
    color: #434455;
}

.comms a:hover{
    color: #404BBF;
}

team-card {
    width: 264;
}

.logo-web {
    color: #4D5AE5;
    font-family: 'Raleway',sans-serif;
    font-weight: 700;
}

.logo-studio {
    color: #2E2F42;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.logo-web-footer {
    color: #4D5AE5;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.logo-studio-footer {
    color: #F4F4FD;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

footer p{
    color: #F4F4FD;
}

.contact{
    display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7)),
            url("../images/contactbg.png");
    background-size: cover;
    background-repeat: no-repeat;
    height: 600px;
    color: #FFFFFF;
    padding: 120px 0px;
    max-width: 1158px;
    
}

header {
        padding: 24px 0;
        display: flex;
        justify-content: space-around;
        align-items: center; 
        border: 1px solid #E7E9FC;
    }

header .menu{
    display: flex;
    gap: 40px;
}

header .comms {
    display: flex;   
    gap: 40px;
}

.contact h1 {
    max-width: 500px;   
}
.headers{
    padding: 120px;
}
main{
    width:1158px ;
    padding: 0;
}
main .headers {
    display: flex;
    align-items:center ;
    justify-content: center;
}

main .headers ul{
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
}

main .headers ul li{
    gap: 10px;
    flex-basis: calc((100% - 40px) / 4);
}

.headers .item {
   gap: 8px;
    flex-basis: calc((100% - 24px) / 4);
}

.headers .item h3{
    margin: 10px 0px;
    padding: 0;
}

.teams-info{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 120px 0px;
}

.card-item{
    border: 1px solid red;
}

.contain{
    display: flex;
    justify-content: center;
    background-color: #F4F4FD;
    height: 732px;
    width: 1158px;
}

.contain h2 {

margin-bottom: 75px;
}

.contain section ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contain .teams-info ul li{
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    align-items: center;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    box-shadow: rgba(46, 47, 66, 0.08);
    background-color: #FFFFFF; 
}

.container{
    display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 1158px;
        
}

.container .port-info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 0px ;
}

.port-info h2{
    margin-bottom: 75px;
}

.container .port-info ul{
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.container .port-info ul li{
    justify-content: center;
    align-items:flex-start;
    flex-direction:column;
    border: 1px solid #E7E9FC;
    flex-basis: calc((100% - 30px) / 4);
    width: 100%;
    max-width: min-content;
}

.container .port-info ul li p,h3{
    padding-left: 20px ;
}
.container .port-info ul li h3{
    padding-top: 20px;
}
footer {
    background-color: #2e2f42;
    color: #F4F4FD;
    height: 312px;
    display: flex;  
    flex-direction: column;
    justify-content: center;
    padding-left: 156px;
}

.containers{
    width: 1158px;
    background-color: #FFFFFF;
}

.icon-box{
    width: 264px;
    height: 112px;
    background-color: #F4F4FD;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8E8F99;
    border-radius: 4px;
    gap: 24px;
}
.icon-clock,
.icon-diagram,
.icon-astronaut,
.icon-antenna
{
    width: 64px;
    height: 64px;
}
.social-icon{
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.social-icon .icon-item{
    width: 40px;
    height: 40px;
    background-color: #4D5AE5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icon .icon-item svg{
    width: 16px;
    height: 16px;
}

.icon-facebook{
    fill: #fff;
}

.container-foot{
    width: 1440px;
    height: 312px;
    display: flex;
}

.foot-1{
    width: 264px;
    height: 112px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.foot{
    display:flex;
    flex-direction: row;
    align-items: center;
    gap: 120px;
}

.image-box img{
    display: block;
    width: 360px;
    height: 300px;
}

.image-box {
    position: relative;
    overflow: hidden;
}

.hover-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 360px;
    background-color: #4D5AE5;
    color: #F4F4FD;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.image-box:hover .hover-box {
    transform: translateY(0);
}

.icon-item:hover{
    background-color: #31D0AA;
}

.container-form {
    display: flex;
    flex-direction: column;
    width: 450px;
    height: 600px;
    background-color: #fcfcfc;
    padding: 24px;
    margin-top: 40px;
    z-index: 2;
}

.form-input {
    width: 360px;
    min-height: 40px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    padding: 8px 12px 8px 38px;
}

.form-input::placeholder {
    color: rgba(46, 47, 66, 0.4);
}

.form-input:focus {
    border-color: rgba(77, 90, 229, 1);
}

.form-label {
    display: flex;
    flex-direction: column;
}

fieldset {
    padding: 0;
    margin: 0;
    border: none;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;

}

.form-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.comment {
    width: 402px;
    height: 120px;
}

.form-button {
    cursor: pointer;
    width: 169px;
    height: 56px;
    background-color: #4D5AE5;
    border: 1px solid #4D5AE5;
    border-radius: 4px;
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.15);
    margin-left: 119px;
}

.form-button:hover {
    background-color: #404BBF;
}

textarea {
    resize: none;
}

legend p{
    font-size: large;
    font-size: 16px;
    line-height: 24px;
    margin-left: 24px;
}

.footer-form{
    width: 453px;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items:end;
    justify-content: center;
    gap: 16px;
    margin-right: 50px;
    
}

.footer-form input{
    width: 264px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 4px;
    background-color: inherit;
}

.footer-input::placeholder{
    color: #fff;
    padding: 16px;
}

.footer-input{
    color: white;
}

.footer-btn{
    width: 165px;
    height: 40px;
    background-color: #4D5AE5;
    color: #fff;
    border: 1px solid #4D5AE5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 4px;
}

.footer-btn:hover{
    background-color: #404BBF;
}

.footer-label{
    display: flex;
    max-width: max-content;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.is-open{
    display: flex;
}

.modal-content{
    background-color: #fff;
    border-radius: 4px;
    width: 450px;
    height: 600px;
}

.form-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-icon .icon {
    position: absolute;
    left: 10px;
    width: 18px;
    height: 18px;
    margin-bottom: 10px;
}

.form-close{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -35px;
}

.form-close .icon-close{
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.footer-icon{
    width: 24px;
    height: 24px;
}

 .icon-heroicons-menu{
    display: none;
 }

 .modal-menu{
    display: none;
 }

@media(max-width:1157px) and (min-width:767px){
    

     .containers {
            width: 768px;
            background-color: #FFFFFF;
            justify-content: center;
            align-items: center;
        }

    .comms{
        display: block;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
    }
    .contact {
             width: 768px;
             height: 436px;
             background-size: cover;
             display: flex;
             justify-content: center;
             align-items: center;
         }

        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 768px;
    
        }
         main {
             width: 768px;
             padding: 0;
         }
         .headers{
            display: flex;
                flex-wrap: wrap;
                gap: 24px;
                width: 768px;
                justify-content: center;
         }
         .headers ul{
            display: flex;
                flex-wrap: wrap;
                padding: 0;
                margin: 0;
                width: 100%;
                justify-content: center;
         }
         .headers .item{
                    flex-basis: calc(50% - 24px);
                    box-sizing: border-box;
                    flex-direction: column;                             
         } 
         .icon-box{
            display: none;
         }

         .contain{
            width: 768px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            height: max-content;
         }
         
         .contain ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
         }
         .teams-info{
            width: 768px;
         }

         .port-info{
            width: 768px;
         }

        .container .port-info ul {
             justify-content: center;
             align-items: center;
            flex-direction: row;
            gap: 24px;
            flex-wrap: wrap;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            }
         .container-foot{
            width: 768px;
            display: flex;
            justify-content: center;
            align-items: center;
         }
        .foot{
            width: 768px;
            display: grid;
            flex-wrap: wrap;
            grid-template-columns: repeat(2, 1fr);
            gap: 5px;
        }

        .foot-2{
          margin-left: -230px;
        }

}
@media(max-width:767px) and (min-width:321px){
    .containers {
            width: 320px;
            background-color: #FFFFFF;
            justify-content: center;
            align-items: center;
        }

    .containers header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px;
    }    
    .containers nav,address{
        display: none;
    }

        .comms {
            display: block;
            flex-direction: column;
            justify-content: center;
            align-items: center;
    
        }
    
        .contact {
            width: 320px;
            height: 432px;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .contact h1{
            text-align: center;
        }

        .container {
            display: block;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 320px;
    
        }
    
        main {
            width: 320px;
            padding: 0;
        }
    
        .headers {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            width: 320px;
            justify-content: center;
        }
    
        .headers ul {
            display: flex;
            flex-wrap: wrap;
            padding: 0;
            margin: 0;
            width: 100%;
            justify-content: center;
        }
    
        .headers .item {
            flex-basis: calc(25% - 24px);
            box-sizing: border-box;
            flex-direction: column;
        }
    
        .icon-box {
            display: none;
        }
    
        .contain {
            width: 320px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 24px;
            height: max-content;
        }
    
        .contain ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
    
        .teams-info {
            width: 320px;
        }
    
        .port-info {
            width: 320px;
        }
    
        .container .port-info ul {
            justify-content: center;
            align-items: center;
            flex-direction: row;
            gap: 24px;
            flex-wrap: wrap;
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 24px;
        }
    
        .container-foot {
            width: 320px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            height: 620px;
        }
    
        .foot {
            display: flex;
            width: 320px;
            gap: 72px;
            height: 620px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0;
        }
       .footer-form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
       }
      
        .footer-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
           }

        .footer-label p{
            margin-left: 30px;
        }   

        .footer-input{
            margin-left: 50px;
        }    

        .icon-send{
            width: 24px;
            height: 24px;
        }

        .foot-1{
            justify-content: center;
        }
        .foot-2{
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .foot-2 p{
            display: flex;
            flex-direction: row;
            gap: 10px;
            justify-content: center;
        }

        .headers ul{
            
                    display: flex;
                    flex-wrap: wrap;
                    gap: 20px;
                    padding: 0;
                    margin: 0;
                    width: 288px;
                }       

        .headers ul .item p {
                width: 288px;                                       
                max-width: 100%;                 
                margin: 0 auto;
                justify-content: center;
             }

        .headers ul .item h3 {
                    text-align: center;
                    margin: 12px 0;

                }
        
         .icon-heroicons-menu{
            display: block;
            width: 24px;
            height: 24px;
            cursor: pointer;
         }

         .modal-menu{
            width: 320px;
            height: 640px;
            background-color: #fff;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-direction: column;
            gap: 48px;
         }

         .menu{
            margin-bottom: 168px;
         }

         .modal-menu .link-1::after{
            content: none;
         }

          .modal-menu {
            position: relative;
            padding-top: 60px;
            display: none;
                }
        
           .menu-close {
                position: absolute;
                top: 20px;
                right: 20px;
                cursor: pointer;
                }
        
             .menu-close .icon-close {
                  width: 8px;
                  height: 8px;
                }

                .is-open{
                    display: block;
                }


                .modal {
                    position: fixed;
                     top: 0;
                     left: 0;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0, 0, 0, 0.5);
                    display: none;
                    justify-content: center;
                    align-items: center;
                 }

                .modal-content {
                         background-color: #fff;
                         border-radius: 4px;
                         width: 288px;
                        height: 600px;
                 }

                 .container-form{
                    display: flex;
                    flex-direction: column;
                    width: 288px;
                    height: 600px;
                    background-color: #fcfcfc;
                    padding: 24px;
                    margin-top: 40px;
                    z-index: 2;
                 }

                 .container-form .form-label{
                    width: 256px;
                 }

                 .container-form .form-input{
                    width: 256px;
                 }

                 .form-group {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                 }

                 .form-button{
                    margin-left: 30px;
                 }

                legend {
                    text-align: center;
                    margin-top: 8px;
                }
                
                legend p {
                     margin: 0;
                     text-align: center;
                }

                 .is-open{
                    display: flex;
                 }

}

@media(min-resolution:2x){
    .contact{
        background-image: linear-gradient(rgba(46, 47, 66, 0.7)),
                url("../images/contactbg-2x.png");
    }
}