.hidden{
    display: none;
}
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #fff;
}

ul,
ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
button {
    cursor: pointer;
}

/*container*/

.container {
    max-width: 320px;
    padding: 0 16px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    .container {
    max-width: 768px;
    }
}

@media screen and (min-width: 1158px){
    .container {
    max-width: 1158px;
    padding: 0 15px;
    }
}

/*mobile-menu*/
.mobaile-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);
}

.mobaile-menu.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobaile-menu-container{
    position: relative;
    padding-top: 72px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.menu-button{
    display: flex;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    fill: #2e2f42;      
    stroke-width: 1px;
    stroke: #2e2f42;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    
}

.mobaile-menu-nav{
    margin-bottom: auto;
}

.mobaile-menu-item{
    margin-bottom: 40px;
}
.mobaile-menu-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.studio-styles{
    color: #404bbf;
}

.mobaile-address-item{
    margin-bottom: 24px;
}
 .mobaile-address-list{
    margin-bottom: 48px;
 }
.mobaile-address-link{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #434455;
}
.styles-email{
    color: #4d5ae5;
}
.mobaile-list{
    display: flex;
    gap: 40px;
}

.mobaile-item{
    width: 40px;
    height: 40px;
}

.mobaile-link{
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: #f4f4fd;
}

@media screen and (min-width: 768px){
   .mobaile-menu{
    display: none;
   }
   
}
/*heder*/

.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);
}

.heder-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list, .address{
    display: none;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}

.header-logo {
    padding: 16px 0;
    display: block;
}

.header-logo .logo-part {
    color: #2e2f42;
}

.burger-btn{
    padding: 0;
    border: none;
    background-color: transparent;
}

.burger-icon{
    display: block;
    fill: #2f2f37;
}

@media screen and (min-width: 768px) {
    .burger-btn{
        display: none;
    }
    .nav-list {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .address {
        font-style: normal;
        display: block;
    }
    .header-nav {
        display: flex;
        align-items: center;
    }
    .header-logo {
        padding: 24px 0;
        margin-right: 120px;
    }
    .nav-link {
        display: block;
        padding: 24px 0;
        font-family: "Roboto", sans-serif;
        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.current {
        position: relative;
    }

    .nav-link.current::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        border-radius: 2px;

        width: 100%;
        height: 4px;
        background-color: #404bbf;
    }
    .address-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .address-link {
        display: block;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: #434455;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-link:hover,
    .nav-link:focus,
    .nav-link.current {
        color: #404bbf;
    }
}
@media screen and (min-width: 1158px) {
    .header-logo {
        margin-right: 76px;
    }
    .address-list {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .address-link {
        padding: 24px 0;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
    }
}

/*hero*/

.section {
    background-color: #2e2f42;
    padding: 72px 0;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
        url(../images/hero/Dark-bg-desk-min.jpg);
    max-width: 320px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
}
 @media (min-resolution: 192dpi) {
.section {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero/Dark-bg-desk@2x-min.jpg);
    }
 }

.section-title {
    max-width: 216px;
    margin: 0 auto;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    margin-bottom: 72px;
}
.transition {
    display: block;
    border-radius: 4px;
    padding: 16px 32px;
    padding-bottom: 72px 0;
    font-weight: 500;
    background-color: #4d5ae5;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    min-width: 169px;
    height: 56px;
    border: none;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    ;
}

.transition:hover,
.transition:focus {
    background-color: #404bbf;
}
@media screen and (min-width: 768px){
.section {
    padding: 112px 0;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero/Dark-bg-desk-min.jpg);
    max-width: 768px;
}
  @media (min-resolution: 192dpi){
.section{
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/hero/Dark-bg-desk@2x-min.jpg);
}
  }

.section-title {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.08;
    margin-bottom: 36px;
}
.transition {
    padding-bottom: 112px 0;
}
}

@media screen and (min-width: 1158px){
.section{
    padding: 188px 0;
    max-width: 1440px;
    }
.section-title{
        margin-bottom: 48px;
    }
.transition{
padding-bottom: 188px 0;
}
}

/*benefits*/

.img-antenna, .section-two-title{
    display: none;
}

.section-two {
    padding: 96px 0;
}

.section-two-list {
    display: flex;
    flex-direction: column;
    max-width: 736;
    min-height: 312px;
    row-gap: 72px;
    margin: 0 auto;
}


.title-two{
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}

.section-two-text{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

@media screen and (min-width: 768px){
.section-two-list {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
    }
.section-two-item {
    flex-basis: calc((100% - 24px) / 2);
    }
.title-two{
    text-align: left;
    }
}

@media screen and (min-width: 1158px){
    .img-antenna{
        display: flex;
    }
.section-two {
    padding: 120px 0;
    }
.benefits-style {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 264px;
    height: 112px;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    margin-bottom: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.section-two-list {
    gap: 24px;
}
.section-two-item {
    flex-basis: calc((100% - 72px) / 4);
}
.title-two {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
}
.section-two-text {
    font-weight: 400;
}
}

/*team*/
.section-three {
    background-color: #f4f4fd;
    padding: 96px 0;
    max-width: 1224px;
    min-height: 768px;
    margin: 0 auto;
    
}
.section-three-title {
    margin-bottom: 72px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    line-height: 1.11;
    text-transform: capitalize;
}

.section-three-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 64px;
    
    
}

.section-three-item {
    background-color: #fff;
    border-radius: 0px 0px 4px 4px;
    max-width: 264px;
    height: 428px;
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);
}
.title-text {
    padding: 32px 0;
}

.team-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 8px;
}

.profession-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
    margin-bottom: 8px;
}

.networks-list {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.networks-item {
    width: 40px;
    height: 40px;
}
.networks-link {
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}


.networks-link:hover,
.networks-link:focus {
    background-color: #404bbf;
}
.networks-img {
    fill: #f4f4fd;
}
@media screen and (min-width: 768px){
.section-three-list{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 24px;
    row-gap: 64px;
    
}
.section-three-item{
    flex-basis: calc((100% - 24px) / 2);
}
}
@media screen and (min-width: 1158px){
.section-three {
    background-color: #f4f4fd;
    max-width: 1440px;
    padding: 120px 0;
}
.section-three-list {
    gap: 24px;
}
.section-three-item{
    flex-basis: calc((100% - 72px) / 4);
}

}

/*portfolio*/

.section-four {
    padding: 96px 0;
}
.section-four-title {
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    line-height: 1.11;
    text-transform: capitalize;
    font-weight: 700;
    margin-bottom: 72px;
}

.section-four-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 48px;
}
.section-four-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);
    background-color: #fff;
}
.four-title-text {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
.functions-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
.functions-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

.four-img {
    position: relative;
    overflow: hidden;
}

.section-four-item:hover .four-text {
    transform: translateY(0%);
}
.four-text {
    position: absolute;
    top: 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px;
    background-color: #4d5ae5;
    height: 100%;
    width: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media screen and (min-width: 768px){
    .section-four-list{
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 24px;
        row-gap: 72px;
    }
    .section-four-item{
    flex-basis: calc((100% - 24px) / 2);
    }
}
@media screen and (min-width: 1158px){
    .section-four {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .section-four-list {
        column-gap: 24px;
        row-gap: 48px;
        }
    .section-four-item {
        flex-basis: calc((100% - 48px) / 3);
        transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .section-four-item:hover,
    .section-four-item:focus {
        box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
            0px 1px 1px rgba(46, 47, 66, 0.16),
            0px 2px 1px rgba(46, 47, 66, 0.08);
    }
}

/*footer*/

.page-footer {
    background-color: #2e2f42;
    padding: 96px 0;
}
.footer-logo {
    display: block;
    margin-bottom: 16px;
    text-align: center;
}

.logo-part-two {
    color: #f4f4fd;
}
.advice-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    max-width: 288px;
}
.media-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-container{
    flex-wrap: wrap;
}
.container-logo {
    display: block;
    margin-bottom: 72px;
}
.networks-list-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.networks-item-footer {
    width: 40px;
    height: 40px;
    transition: background-color cubic-bezier(0.4, 0, 0.2, 1);
}
.networks-link-footer {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.networks-link-footer:hover,
.networks-link-footer:focus {
    background-color: #31d0aa
}
 .footer-networks {
     margin-bottom: 72px;
 }
 .subscribe-text {
     font-weight: 500;
     font-size: 16px;
     line-height: 1.5;
     letter-spacing: 0.02em;
     color: #fff;
    display: flex;
    justify-content: center;
     margin-bottom: 16px;
 }
 .subscride-email {
     display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
 }
 .footer-email {
     display: block;
     border: 1px solid #fff;
     width: 288px;
     height: 40px;
     border-radius: 4px;
     background-color: transparent;
     font-size: 12px;
     line-height: 2;
     letter-spacing: 0.04em;
     padding-left: 16px;
     color: #fff;
     box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    opacity: 0.3;
 }
 .footer-email::placeholder {
     color: #ffffff;
 }
 .footer-button {
     display: flex;
     border-radius: 4px;
     padding: 8px 24px;
     width: 162px;
     height: 40px;
     justify-content: center;
     align-items: center;
     font-family: "Roboto", sans-serif;
     font-size: 16px;
     font-weight: 500;
     line-height: 1.5;
     letter-spacing: 0.04em;
     background-color: #4D5AE5;
     color: #ffffff;
     cursor: pointer;
     border: none;
     margin: 0 auto;
     transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
 }
 .footer-button:hover,
 .footer-button:focus {
     background-color: #31d0aa;
 }

 .frame-img {
     margin-left: 16px;
     fill: #f4f4fd;
 }
 @media screen and (min-width: 768px){
    .footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.advice-text {
    max-width: 264px;
}
.media-text{
    justify-content: left;
}
.footer-container {
    display: flex;
    margin-left: 108px;
}
.container-logo {
    margin-right: 24px;
}
 
  .subscribe-text{
    justify-content: left;
  }
  

 }

 @media screen and (min-width: 1158px){
.page-footer {
    padding: 100px 0;
}
.footer-logo {
    display: inline-block;
}
.footer-container {
    display: flex;
    align-items: baseline;
    margin-left: 156px;
}
.container-logo {
    margin-right: 120px;
}
.subscride-email{
    gap: 24px;
}
.footer-email{
    width: 264px;
}
.footer-button{
    min-width: 165px;
}
.footer-networks{
    margin-right: 80px;
}
 }


 /*backdrop*/

.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;
}
.mobal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 288px;
    min-height: 623px;
    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;
    padding: 72px 16px 24px 16px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop-button {
    display: flex;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e7e9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.backdrop-button:hover,
.backdrop-button:focus {
    background-color: #404bbf;
    border: none;
    fill: #ffffff;
}

.backdrop-img {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop-text {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 16px;
    max-width: 256px;
}
.backdrop-conteiner {
    margin-bottom: 8px;
    fill: #2e2f42;
}
.backdrop-conteiner:focus-within {
    fill: #4D5AE5;
}
.form-label {
    display: block;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-bottom: 4px;
}
.box-input {
    position: relative;
}
.input-text {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    padding-left: 38px;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.input-text:focus {
    border-color: #4D5AE5;
}
.svg-box {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.textarea-conteiner {
    margin-bottom: 8px;
}
.comment-text {
    width: 100%;
    height: 120px;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    padding: 8px 16px;
    outline: transparent;
    resize: none;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
 .comment-text:focus {
     border-color: #4D5AE5;
 }
  .checkbox-conteiner {
      margin-bottom: 24px;
  }
  .comment-label {
        display: flex;
      font-size: 12px;
      line-height: 1.17;
      letter-spacing: 0.04em;
      color: #8e8f99;
  }
  .check-span {
      width: 16px;
      height: 16px;
      border: 1px solid rgba(46, 47, 66, 0.4);
      border-radius: 2px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      fill: transparent;
      margin-right: 8px;
      transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  

  .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;
  }

  #user-privacy:checked + .comment-label > .check-span {
      background-color: #404bbf;
      border: none;
      fill: #F4F4FD;
  }

  .check-link {
      color: #4d5ae5;
      
  }
  .botton-check {
      display: block;
      margin: 0 auto;
      font-family: "Roboto", sans-serif;
      font-weight: 500;
      min-width: 169px;
      height: 56px;
      border-radius: 4px;
      padding: 16px 32px;
      font-size: 16px;
      line-height: 1.5;
      letter-spacing: 0.04em;
      color: #ffffff;
      background-color: #4D5AE5;
      cursor: pointer;
      border: none;
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
      transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
   @media screen and (min-width: 768px){
    .mobal{
        width: 408px;
        padding: 72px 24px 24px 24px;
    }
    .backdrop-text{
        max-width: 360px;
    }
    .textarea-conteiner {
        margin-bottom: 16px;
    }
   }