/*--------------------------------MOBILE-------------------------*/

@media screen and (min-width: 428px) {
    .section{
    width: 428px;
    margin-left: auto;
    margin-right: auto;
}
/*-------------------MODAL------------------*/
.modal{
    width: 392px;
}
.modal-title{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}
.check-text{
    font-size: 12px;
}
.check-link{
    font-size: 12px;
}

/*-------------------HEADER------------------*/
.mob-menu-link{
    font-size: 36px;
    line-height: 1.11;
}
.mob-tel-link{
    font-size: 36px;
    line-height: 1.11;
}
.mob-sosial-list{
    gap: 56px;
}

/* ----------------HERO-----------------*/
.hero-title{
    width: 320px;
    font-size: 36px;
    line-height: 1.11;
}
.hero{
    background-image: 
    var(--bg-gradient),
    url(../images/tablet-bg.jpg);
   }
   @media (min-device-pixel-ratio: 2),
        (min-resolution: 192dpi),
        (min-resolution: 2dppx) {
        .hero {
            background-image: 
            var(--bg-gradient), 
            url(../images/tablet-bg@2x.jpg);
  }
    
}

/* -----------PORTFOLIO--------*/

.portfolio-item {
    width: 396px; 
}

/* -----------------BENEFITS----------------*/

.benefits-item {
    max-width: 396px;
}
    /* -----------------FOOTER----------------*/
.input-subscribe {
    width: 398px;
}
}
.foooter-descriptions{
    text-align: left;
}

/*-----------------------------TABLET---------------------------*/

@media screen and (min-width: 768px) {
    .section{
        width: 768px;
    }
/*-------------------MODAL------------------*/
    .modal{
        width: 408px;
    }
/*-------------------HEADER------------------*/
.mob-menu-btn{
    display: none;
}
.header{
    padding-top: 16px;
    padding-bottom: 16px;
}
.header-navigation{
    display: flex;
    align-items: baseline;
}
.header-menu{
    display: flex;
    gap: 40px;
    margin-left: 120px;
}
.header-flex{
    justify-content: space-between;
    
}
.header-menu-link{
    position: relative;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--main-title-color);
    transition: color var(--transform-function);
}
.header-menu-link:hover,
.header-menu-link:focus{
    color: var(--accent-color);
}
.active{
    
    color: var(--accent-color);
} 
.active::after{
    content: '';
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 43px; 
}
.contact{
    display: block;
    font-style: normal;
}
.contact-list-item:not(:last-child){
    margin-bottom: 12px;
}
.contact-link{
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.02em;
    color: var(--main-text-color);
    transition: color var(--transform-function);
}
.contact-link:hover, 
.contact-link:focus{
    color: var(--accent-color);
}


    /* ----------------HERO-----------------*/

.hero{
    background-image:
    var(--bg-gradient),
    url(../images/people-office.jpg);
}
    @media (min-device-pixel-ratio: 2),
        (min-resolution: 192dpi),
        (min-resolution: 2dppx) {
        .hero {
            background-image: 
            var(--bg-gradient), 
            url(../images/people-office@2x.jpg);
  }
}
.hero-title{
    width: 496px;
    font-size: 56px;
    line-height: 1.07;
    margin-bottom: 36px;
}

  /* ----------------BENEFITS-----------------*/

.benefits-list{
    display: flex;
    flex-wrap: wrap;
    gap: 72px 24px;
}
.benefits-item {
    max-width: calc((100% - 24px) / 2);
}
.benefits-item:not(:last-child){
    margin-bottom: 0;
}
.benefits-title{
    text-align: left;
}

     /* ----------------TEAM-----------------*/

.team > .section{
     max-width: 584px;
 }
 .team-item{
    margin: 0;
    min-width: calc((100% - 24px) / 2);
}
.team-list{
    display: flex;
    flex-wrap: wrap;
    gap: 72px 24px;
}
.team-item:not(:last-child){
    margin-bottom: 0;
}

/* -----------CUSTOMER--------*/

.customers > .section{
    max-width: 584px;
}
.customers-list{
    display: flex;
    flex-wrap: wrap;
    gap: 72px 24px; 
}
.customers-list-item{
    width: calc((100% - 48px) / 3 );
}

/* -----------PORTFOLIO-FILTER--------*/

.portfolio{
    padding-top: 64px;
    padding-bottom: 96px;
}
.portfolio-filter {
    margin-bottom: 64px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.filter-btn{
    padding: 12px 24px;
}

/* -----------PORTFOLIO--------*/

.portfolio-list{
    display: flex;
    flex-wrap: wrap;
    gap: 72px 24px;
}
.portfolio-item {
    width: 356px; 
}

/* -----------FOOTER--------*/

.footer > .section{
    max-width: 584px;
}
.flex{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    gap: 72px 24px;
}
.footer-logo{
    width: 264px;
    text-align: left;
}
.footer-media{
    text-align: left;

}
.footer-subscribe-text{
    text-align: left;
}
.footer-form{
    display: flex;
    flex-direction: row;
    gap: 24px;
}
.input-subscribe{
    width: 264px; 
} 
  
}



/*---------------------------DESKTOP---------------------------*/

@media screen and (min-width: 1158px) {
    .section{
        width: 1158px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /*-------------------HEADER------------------*/
    .header{
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .contact-list{
        display: flex;
        gap: 40px;
        margin-top: 0;
    }
    .contact-link{
        font-size: 16px;
        line-height: 1.5;
    } 
    .contact-list-item:not(:last-child){
        margin-bottom: 0;
    }   
    

    /* ----------------HERO-----------------------*/
    .hero{
        max-width: 1440px;
        padding-bottom: 188px;
        padding-top: 188px;
    }
    .header-menu{
        margin-left: 76px;
    }

     /* ----------------BENEFITS-----------------*/
     .benefits {
        padding-top: 120px;
        padding-bottom: 120px;
    }
     .benefits-list{
        display: flex;
        justify-content: center;
        gap: 24px;
    }
    .benefits-title{
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
    }
    .benefits-description{
        font-weight: 400;
    }
    .benefits-item{
        max-width: calc((100% - 72px) / 4);
    }
    .benefits-icon{
        background-color: var(--light-grey);
        border-radius: 4px;
        height: 112px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 8px;
    }

    /* -----------WORK--------*/
.work{

    padding-bottom: 120px;
}
.work-list{
   display: flex;
   gap: 24px;
}
.work-item{
   min-width: calc((100% - 48px) / 3);
}
.work-title{
   font-size: 36px;
   line-height: 1.11;
   text-align: center;
   letter-spacing: 0.02em;
   text-transform: capitalize;
   color: var(--main-title-color);
   margin-bottom: 72px;
}

    /* ----------------TEAM-----------------*/
    .team > .section{
        max-width: 1158px;
     }
       .team{
            padding-top: 120px;
            padding-bottom: 120px;
       }
       .team-item{
            min-width: calc((100% - 72px) / 4);
       }
       .team-list{
            display: flex;
            gap: 24px;
       }

/* -----------CUSTOMER--------*/
       .customers > .section{
        max-width: 1158px;
    }
       .customers {
            padding: 120px 0;
       }
        .customers-list {
            display: flex;
            justify-content: center;
            gap: 24px;
       }
       .customers-list-item{
        width: calc((100% - 120px) / 6);
       }

    /* -----------PORTFOLIO-FILTER--------*/   
       .portfolio{
            padding-top: 100px;
            padding-bottom: 120px;
       }
       .portfolio-filter {
            margin-bottom: 72px;
            justify-content: center;
        }

        /* -----------PORTFOLIO--------*/

        .portfolio-list{
            gap: 48px 24px;
            
        }
        .portfolio-item {
            width: 360px; 
        }

    /* -----------FOOTER--------*/
    .footer > .section{
        max-width: 1158px;
    }
    .footer{
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .flex{
        flex-direction: row;
        align-items: start;
        gap: 0;
    }
    .footer-logo{
        margin-right: 120px;
    }
    .footer-sosial{
        margin-right: auto;
    }  
    
}


@media screen and (max-width: 1158px){
    .work{
        display: none;
    }
}