.hide {
  display: none;
}
/* #region general*/
body{
    font-family: "Roboto",
        sans-serif;
    line-height: 1.5;
    color: #434455;
    background-color: #FFFFFF;
}
ul, ol{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p{
    margin: 0;
}
button{
    cursor: pointer;
}
.container{
    max-width: 320px;
    padding: 0 16px;
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
  .container{
      max-width: 768px;
  }
}
@media only screen and (min-width: 1158px) {
  .container{
    max-width: 1158px;
    padding: 0 15px;
  }
}
.section {
    padding-top: 96px;
    padding-bottom: 96px;
}
@media only screen and (min-width: 1158px) {
  .section {
    padding-top: 120px;
    padding-bottom: 120px;
    }
}
/* #endregion */
/* #region header */
.page-header{
    border-bottom: 1px solid #e7e9fc;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);
}
.header-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* .header-container{
    display: flex;
    align-items: center;
} */
.nav-header{
    display: flex;
    align-items: center;
}

.logo{
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
}
.logo-header{
    padding: 16px 0;
}
@media only screen and (min-width: 768px) {
  .logo-header{
    padding: 24px 0;
    margin-right: 120px;
    }
}
@media only screen and (min-width: 1158px) {
  .logo-header{
    margin-right: 76px;
    }
}

.logo-header .logo-part{
    color: #4d5ae5;
}
.burger-btn{
    padding: 0;
    border: none;
    background-color: transparent;
}
.burger-icon{
    display: block;
}
@media only screen and (min-width: 768px) {
  .burger-btn {
    display: none;
  }
}

.nav-list, .address-menu{
    display: none;
}
@media only screen and (min-width: 768px) {
  .nav-list{
    display: flex;
    align-items: center;
    gap: 40px;
    }
    .nav-link.current{
    position: relative;
    }
    .nav-link.current::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
    }
    .nav-link{
    display: block;
    padding: 24px 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-link:hover, .nav-link:focus, .address-link:hover, .address-link:focus, 
    .nav-link.current{
    color: #404bbf;
    }
}

@media only screen and (min-width: 768px) {
  .address-menu {
    display: block;
    font-style: normal;
    }
    .address-menu{
    margin-left: auto;
    }
    .address-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
    }
    .address-link{
    display: flex;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
}
@media only screen and (min-width: 1158px) {
    .address-list{
    display: flex;
    flex-direction: row;
    gap: 40px;
    }
    .address-link{
    display: block;
    padding: 24px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    }
}
/* #endregion */
/* #region hero */
.hero-container{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.hero{
    background-color: #2e2f42;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    margin: 0 auto;
    padding-top: 72px;
    padding-bottom: 72px;
    /* min-width: 320px;
    max-width: 375px; */
    /* max-width: 320px; */
    background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-mob.jpg);
    
}
@media (min-resolution: 192dpi){
    .hero{
        background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-mob@2x.jpg);
    }
}
@media only screen and (min-width: 768px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 112px;
    /* max-width: 768px; */
    background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-tab.jpg);
  }
  @media (min-resolution: 192dpi){
      .hero{
          background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-tab@2x.jpg);
      }
  }
}
@media only screen and (min-width: 1158px) {
  .hero {
    max-width: 1440px;
    padding-top: 188px;
    padding-bottom: 188px;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-desk.jpg);
  }
  @media (min-resolution: 192dpi){
      .hero{
          background-image: linear-gradient(rgba(46, 47, 66, 0.7)), url(../images/hero-img-desk@2x.jpg);
      }
  }
}

.hero-title{
    width: 216px;
    margin-bottom: 72px;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
}

@media only screen and (min-width: 768px) {
  .hero-title {
    width: 496px;
    margin-bottom: 36px;
    font-size: 56px;
    line-height: 1.07;
  }
}
@media only screen and (min-width: 1158px) {
  .hero-title {
      margin-bottom: 48px;
  }
}

.btn{
    border: none;
    border-radius: 4px;
    padding: 16px 32px;
    background-color: #4d5ae5;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color:#fff;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn:focus{
    background-color: #404bbf;
}

/* #endregion */
/* #region benefits */
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}
.benefits-icon{
    display: none;
}
@media only screen and (min-width: 1158px) {
  .benefits-icon{
    display: flex;
  }
}
.benefits-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}
@media only screen and (min-width: 768px) {
  .benefits-list{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
    }
}
/* @media only screen and (min-width: 1158px) {
  .benefits-list{
    gap: 24px;
    }
} */
@media only screen and (min-width: 768px) {
 .benefits-item{
    width: calc((100% - 24px) / 2);
    }
}
 @media only screen and (min-width: 1158px) {
   .benefits-item{
    width: calc((100% - 3 * 24px) / 4);
    }
 }
.benefits-box-icon{
    display: none;
}
@media only screen and (min-width: 1158px) {
  .benefits-box-icon{
    display: flex;
    align-items: center;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    width: 264px;
    height: 112px;
    padding-right: 100px;
    padding-left: 100px;
    }
}
.benefits-subtitle{
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}
@media only screen and (min-width: 768px) {
    .benefits-subtitle{
    text-align: left;
    }
}
@media only screen and (min-width: 1158px) {
    .benefits-subtitle{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    padding-top: 8px;
    }
}
.benefits-text{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

@media only screen and (min-width: 1158px) {
  .benefits-text{
    font-weight: 400;
  } 
}
/* #endregion */
/* #region team */
/* @media only screen and (min-width: 768px) and (max-width: 1157.98px) {
  .team-container{
    padding: 96px 108px;
    }
} */

.team{
    background-color: #f4f4fd;
}
.team-title{
    margin-bottom: 72px;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}
.team-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}
@media only screen and (min-width: 768px) {
  .team-list{
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 64px 24px;
    /* padding-right: 108px;
    padding-left: 108px; */
    /* gap: 64px 24px; */
  }
  .team-item { 
    max-width: 264px;
    
    /* width: calc((100% - 24px) / 2); */
    }
}
@media only screen and (min-width: 1158px) {
  .team-list{
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    }
}
.team-item{
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}

.team-img{
  display: block;
  max-width: 100%;
}
.team-text-wrap{
    padding: 32px 16px;
}
.team-name{
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}
.team-text{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;
}
.soc-list{
    display: flex;
    gap: 24px;
}
.soc-item {
    width: 40px;
    height: 40px;
}
.soc-link{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.soc-link:hover, .soc-link:focus{
    background-color: #404bbf;
}
.soc-icon{
    justify-content: center;
    fill: #f4f4fd;
}
/* #endregion */
/* #region portfolio */
.portfolio-title{
    padding-bottom: 72px;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}
.portfolio-list{
    display: flex;
    flex-direction: column;
    gap: 48px;
    
}
@media only screen and (min-width: 768px) {
  .portfolio-list {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 72px 24px;
  }
}
@media only screen and (min-width: 1158px) {
  .portfolio-list {
    gap: 48px 24px;
  }
}
.portfolio-item{
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}
@media only screen and (min-width: 768px) {
  .portfolio-item {
    width: calc((100% - 24px) /2 )
  }
}
@media only screen and (min-width: 1158px) {
  .portfolio-item {
    width: calc((100% - 2 * 24px) /3 );
    box-shadow: none;
 transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

.portfolio-img{
    display: block;
    max-width: 100%;
}
.overlay-thumb{
    position: relative;
    overflow: hidden;
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 32px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    background-color: #4d5ae5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover .overlay{
    transform: translateY(0)
}
.portfolio-text-wrap{
    padding: 32px 16px;
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
}
@media only screen and (min-width: 1158px) {
  .portfolio-item:hover, .portfolio-item:focus{
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    }
}
.portfolio-subtitle{
margin-bottom: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
}
.portfolio-text{
    letter-spacing: 0.02em
}
/* #endregion */
/* #region footer */
.footer-container{
    display: flex;
    flex-direction: column;
    gap: 72px;
    text-align: center;
    /* display: flex; */
    
}
@media only screen and (min-width: 768px) {
  .footer-container{
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 72px 24px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1157.98px) {
  .footer-container {
    padding: 0 108px;
  }
}
@media only screen and (min-width: 1158px) {
  .footer-container {
    gap: 0;
  }
}
@media only screen and (min-width: 1158px) {
  .logo-footer-container{
    margin-right: 120px;
    }
}
.footer{
    padding: 96px 0;
    background-color: #2e2f42;
}
@media only screen and (min-width: 1158px) {
  .footer {
    padding: 100px 0;
  }
}
.logo-footer{
    display: inline-block;
    margin-bottom: 16px;
    /* width: 115px; */
    font-family: "Raleway",sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f4f4fd;
}
.logo-footer .logo-part{
    color: #4d5ae5;
}
.footer-text{
    text-align: start;
    width: 288px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
}
@media only screen and (min-width: 768px) {
  .footer-text{
    width: 264px;
    }
}
.footer-title{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    padding-bottom: 16px;
}
.footer-list{
    justify-content: center;
    gap: 16px;
}
@media only screen and (min-width: 768px) {
  .footer-list {
    justify-content: flex-start;
  }
}

.footer-link:hover, .footer-link:focus{
    background-color: #31d0aa;
}


@media only screen and (min-width: 1158px) {
  .form-footer-container{
    display: block;
    margin-left: auto;
    }
}

 .form-footer{
    display: flex;
    flex-direction: column;
    align-items: center;
 }
 @media only screen and (min-width: 768px) {
   .form-footer {
     flex-direction: row;
     align-items: flex-start;
   }
 }

.footer-email{
    background: none;
    margin-bottom: 16px;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #fff;
    padding-left: 16px;
    width: 288px;
    height: 40px;
    outline: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media only screen and (min-width: 768px) {
  .footer-email {
    margin-bottom: 0;
    margin-right: 24px;
    width: 264px;
  }
}
.footer-email:focus{
    border-color: #31d0aa;
}
.footer-email::placeholder{
    color: #fff;;
}
.footer-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 24px;
}
.footer-btn:hover, .footer-btn:focus{
    background-color: #31d0aa;
}
.subscribe-icon{
    padding: auto;
}
/* #endregion */
/* #region modal*/
.backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 288px;
    min-height: 623px;
    padding: 72px 16px 24px;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 2px 1px 0 rgba(0, 0, 0, 0.2);
    background-color: #fcfcfc;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media only screen and (min-width: 768px) {
  .modal {
    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px;
  }
}
.backdrop:not(.is-open) .modal{
    transform: translate(-50%, -50%);
}
.close-button{
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.close-icon{
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.close-button:hover,
.close-button:focus{
    background-color: #404bbf;
    border: none;
}
.close-button:hover .close-icon,
.close-button:focus .close-icon{
    fill: #fff;
}
.modal-text{
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 16px;
}
/* .label-wrap{
    display: block;
} */
.modal-label{
    display: block;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
}
.input-wrap{
    position: relative;
}
.modal-input{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 11px 38px;
    margin-bottom: 8px;
    outline: none;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-input:focus, .textarea:focus{
    border-color: #4d5ae5;
}
.modal-icon{
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    fill: #2e2f42;
    pointer-events: none;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);;
}
.modal-input:focus + .modal-icon {
    fill: #4d5ae5;
}
/* .textarea-wrap{
    display: block;
} */
.textarea{
    display: block;
    width: 100%;
    height: 120px;
    padding: 8px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #2e2f42;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    resize: none;
}
textarea::placeholder{
    font-size: 12px;
    line-height: 1.16667;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
}
.modal-btn{
    display: block;
    margin: 0 auto;
    min-width: 169px;
    height: 56px;
}

.modal-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
    /* display: block; */
    margin-bottom: 24px;
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: 0.04em;
    color: #8e8f99;
}

.agreement-span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    /* margin-right: 8px; */
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.checkbox:checked + .agreement-span{
    background-color: #404bbf;
    border-color: #404bbf;
}
.agreement-icon {
    opacity: 0;
    fill: #f4f4fd;
     transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.checkbox:checked + .agreement-span > .agreement-icon{
    opacity: 1;
}
.link-agreement{
    line-height: 1.33;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
}
/* #endregion */
/* #region mobile menu */
.mobile-menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open{
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
}
.mobile-menu-container{
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    padding-bottom: 40px;
    height: 100%;
}
.mob-close-button{
    position: absolute;
    top: 24px;
    right: 24px;
}
.mon-nav{
    margin-bottom: auto;
}

@media only screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
.mob-nav-item:not(:last-child){
    margin-bottom: 40px;
}

.mob-nav-link{
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
}
.mob-nav-link:hover, .mob-nav-link:focus, .mob-address-link:hover, .mob-address-link:focus, 
.mob-nav-link.current {
    color: #404bbf;
}
.mob-address-link.current{
    color: #4d5ae5;
}
.mob-address-menu{
    margin-bottom: 48px;
}
.mob-address-item:not(:last-child){
    margin-bottom: 24px;
}
.mob-address-link{
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
}
.mob-soc-list{
    gap: 40px;
}

/* #endregion */