body {
    font-family: 'Roboto', sans-serif;
    color: #434455;
    background-color: #fff;
}
/* reset */
ul,
ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}
address {
    font-style: normal;
}

button {
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
    height: auto;
}
a {
    text-decoration: none;
    color: #2e2f42;
}
/* common */
.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

/* header */


.header-container {
    display: flex;
    align-items: center;

}
.header-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.contacts-list {
    display: flex;
    align-items: center;
    
}

/* header */

.header {
    color: #2E2F42;
    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-nav {
background-color: #fff;

}


.nav-logo {
    padding: 24px 0;
    margin-right: 76px;
}
.nav-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;
}

.dark-logo {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
}
.light-logo {
font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f4f4fd;
}

.nav-list {
color: #2e2f42;
    }
.nav-subtitle {
    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-subtitle.current {
position: relative;
}
.nav-subtitle.current::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 4px;
border-radius: 2px;
background-color: #404bbf;
}

.sub:focus,
.sub:hover {
    color: #404bbf;
}
.contacts {
    font-style: normal;
    margin-left: auto;
}
.contacts-link {
    display: block;
    padding: 24px 0;
}
.nav-link,
.contacts-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:active ,
.nav-link:hover ,
.nav-link:focus,
.nav-subtitle.current {
color: #404bbf;
}


.contacts-link:active ,
.contacts-link:hover ,
.contacts-link:focus {
   color: #404bbf;
}
.contacts-list {
gap: 40px;
}

/* section 1 */

.heroimage {
max-width: 1440px;
padding: 188px 0 188px;
margin: 0 auto;
background-color: #2e2f42;
background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/people-office.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}

.heroimage-title {
    max-width: 496px;
    margin: 0 auto 48px;
    align-items: center;
   }
.heroimage-title {
    display: block;
   
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
}
.button {
    display: block;
    text-align: center;
    margin-top: 188px;
    height: 56px;
    flex-direction: row;
    border-radius: 4px;
    border: 0px;
    padding: 16px 32px;
    margin: 0 auto;
    min-width: 169px;
}
.button {  
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background-color: #4d5ae5;
    color: #fff;
}
.button-accent {
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.button-accent:hover,
.button-accent:focus {
    background-color: #404BBF;
}
/* section 2 */

.benefits {
    padding: 120px 0;

}

.visually-hidden:not(:focus):not(:active) {
    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-title {
    text-transform: capitalize;
    color: #2E2F42;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.11;
    letter-spacing: 0.02em;

}

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

}
.benefits-icon {
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #8e8f99;
border-radius: 4px;
width: 264px;
height: 112px;
background-color: #f4f4fd;
margin-bottom: 8px;

}

.benefits-item {

    background-color: #fff;

}

.benefits-item {
    width: calc((100% - 72px) / 4);
}


.benefits-subtitle {
    color: #2E2F42;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;

}

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


/* section 3 */

.team {
    padding: 120px 0;
    display: flex;
    align-items: center;
    background-color: #f4f4fd;

}


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

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background-color: #f4f4fd;
   
}

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

.team-item {
    border-radius: 0 0 4px 4px;
    background-color: #fff;
    flex-basis: calc((100% - 72px) / 4); 
    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);
}
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 12px;
    width: 40px;
    height: 40px;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links-footer.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 12px;
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links:hover,
.social-links:focus {
    background-color: #404bbf;
}
.icon-social {
fill: #f4f4fd;
}

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

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

}

.team-wrap {
    padding: 32px 0;
    align-items: center;
    width: 264px;
   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: #fff;
}



    /* section 4 */

.portfolio {
padding: 120px 0;
}
.portfolio-title {
   margin: 0 auto;
   flex-direction: row;
   text-align: center;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-transform: capitalize;
    margin-bottom: 72px;

}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;
    padding: 0;


}

.portfolio-wrapper {
overflow: hidden;
position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 32px;
    line-height: 1.5;
letter-spacing: 0.02em;
     color: #f4f4fd;
    background-color: #4d5ae5;
    transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
     transition-property: transform;
    transform: translateY(100%);
}
.portfolio-item {
        width: calc((100% - 48px) / 3);
        transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }
.portfolio-item .portfolio-wrapper:hover .overlay {

transition-property: transform;
transform: translateY(0%);
}
 .portfolio-item:hover {
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);
 } 

.portfolio-subtitle {
font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
    
}
.portfolio-profi {
    border-bottom: 1px solid #e7e9fc;
        border-left: 1px solid #e7e9fc;
        border-right: 1px solid #e7e9fc;
        padding: 32px 16px;
        width: 360px;
        height: 120px;
    border-top: none;
}
.portfolio-text {
font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
   
    letter-spacing: 0.02em;
    color: #434455;
}

/* footer */

.footer {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #2e2f42;
      }
.footer .container {
    display: flex;
    align-items: baseline;
      }
.footer-logo {
    padding: 0 0;
    display: inline-block;
    font-family: "Raleway", sans-serif;
    line-height: 1.17;
    margin-bottom: 16px;
   
}
.social-footer-text {
     margin-bottom: 16px;
     font-weight: 500;
    font-size: 16px;
     line-height: 1.5;
     color: #fff;
    letter-spacing: 0.02em;
    padding: 0 0;
    display: inline-block;
}
.social-list.footer {
    padding: 0;
   gap: 16px; 
}
.footer-wrapper {
margin-right: 120px;
}
.footer-text {
    
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    width: 264px;
}
.social-links-footer.social-links {
    padding: 8px;
}
.social-links-footer:hover,
.social-links-footer:focus {
    background-color: #31d0aa;
}
.subscrabe-block {
margin-left: 80px;
}
.form-subscrabe {
display: flex;
gap: 24px;
align-items: baseline;
}

.subscrabe-lable {
display: flex;
padding: 0;
}
.footer-caption {
    display: flex;
        margin-bottom: 16px;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #ffffff;
}
.subscrabe-input {
width: 264px;
    height: 40px;
color: #fff;
    padding-left: 16px;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
}
.subscribe-input::placeholder {
    color: #fff;
}
.footer-btm {
    display: flex;
justify-content: center;
    align-items: center;
    height: 40px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    min-width: 165px;
    background-color: #4d5ae5;
    color: #fff;
    cursor: pointer;
}
.icon-tg {
    margin-left: 16px;
    fill: #fff;
}


.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: 400px;
    min-height: 584px;
    width: 408px;
    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 24px 24px 24px;
   transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-btn {
position: absolute;
top: 24px;
right: 24px;
display: flex;
justify-content: center;
align-items: center;
padding: 0;
width: 24px;
height: 24px;
border-radius: 50%;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);

 transition-property: border, background-color;
background-color: #e7e9fc;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.modal-btn:hover,
.modal-btn:focus {
    border-color: #404BBF;
    background-color: #404BBF;
    border: none;
}
.modal-btn:hover .modal-btn-close,
.modal-btn:focus .modal-btn-close {
    fill: #fff;
}
.modal-btn-close {
    fill: #2E2F42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
.modal-caption {
margin-bottom: 16px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
}

.modal-form-field {
margin-bottom: 8px;
}
.modal-form-field-lable {
    margin-bottom: 16px;
}
.modal-form-label {
    display: block;
margin-bottom: 4px;
font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
}
.model-form-wrapper {
position: relative;
}
.modal-form-input {
width: 100%;
border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    height: 40px;
    padding: 8px 38px;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
}
.modal-form-input:focus {
    border-color: #4D5AE5;
}
.modal-form-icon {
position: absolute;
top: 50%;
left: 16px;
transform: translateY(-50%);
pointer-events: none;
stroke: #2E2F42;
transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-form-input:focus + .modal-form-icon {
    fill: #4D5AE5;
}
 .modal-form-message {
    width: 100%;
    height: 120px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    resize: none;
    padding: 8px 16px;
    outline: transparent;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: rgba(46, 47, 66, 0.4);
    background-color: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition-property: border-color;
 }
 .modal-form-message:focus {
    border-color: #4D5AE5;
 }
 .modal-form-message::placeholder {
 
 }
 /* custom checkbox */

 .modal-form-agreement {
margin-bottom: 24px;
 }
 .modal-form-agreement-text {

    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
 }
 .modal-form-checkbox {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    margin-right: 8px;
    cursor: pointer;
    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);
    fill: transparent;
   }
 .modal-form-checkbox-icon {

 }
 input[type="checkbox"]:checked + 
 .modal-form-agreement-text > 
 .modal-form-checkbox {
     background-color: #404bbf;
     border: none;
     fill: #F4F4FD;
 }
 .modal-form-agreement-link  {
    line-height: 1.33;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #4d5ae5;
 }
 .modal-btn {

 }
 .btn button-accent {
    justify-content: center;
        align-items: center;
        padding: 16px 32px;
 }
 .btn {
    display: block;
text-align: center;
    padding: 16px 32px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 4px;
        min-width: 169px;
        height: 56px;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.04em;
        color: #fff;
        background-color: #4d5ae5;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
 }
 .visually-hidden {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     border: 0;
 }
