body {
    background-color: #fff;
    font-family: "Roboto", sans-serif;
    color: #434455;
}
/* reset */
ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
a {
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
 /* common */
 .container {
     max-width: 1158px;
     padding: 0 15px;
     margin: 0 auto;
 }

/* 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;
}
.header-nav {
    display: flex;
    align-items: center;
}
.contacts-list {
    display: flex;
        align-items: center;
}
.logo {
    font-family: "Raleway", sans-serif;
        font-weight: 700;
        font-size: 18px;
    
        /* line-height: 21px; */
        line-height: 1.17;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4d5ae5;
}
.header-logo .logo-part {
    color: #2e2f42;
}
.header-logo {
    padding: 24px 0;
    margin-right: 76px;
}
.nav-link {
    position: relative;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #2e2f42;
        padding: 24px 0;
        display: block;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;;
    width: 100%;
    height: 4px;
background-color: #404bbf;
border-radius: 2px;
opacity: 0;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link:focus:after,
.nav-link.current::after {
    opacity: 1;
}

.nav-list {
    display: flex;
        align-items: center;
        gap: 40px;
}
.contacts {
    font-style: normal;
    margin-left: auto;
    
    
}
.contacts-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contacts-link {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
        padding: 24px 0;
            display: block;
            gap: 40px;
            transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-link:hover,
.contacts-link:focus,
.nav-link:hover,
.nav-link.current,
.nav-link:focus {
    color: #404bbf;
}
/* hero */
.hero-section {
    background-color: #2e2f42;
    padding: 188px 0;
    text-align: center;
    /* background-color: rgba(46, 47, 66, 0.7),
    rgba(46, 47, 66, 0.7);; */
    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 center;
    background-size: cover;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;

}

.hero-title {
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #fff;
    max-width: 496px;
   
    margin: 0 auto 48px;
    
}

.hero-button {
    display: block;
    
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: var(--iris, #4d5ae5);
    
    border-radius: 4px;
    border: none;
    min-width: 169px;
    height: 56px;
    margin: 0 auto;  
    padding: 16px 32px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);;
}

.hero-button:hover,
.hero-button:focus {
    background-color: #404bbf;
}
/* Feature */
.feature-calc {
    width: calc((100% - 72px) / 4);
}
.features-section {
    padding: 120px 0;
}
.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;
}

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

.feature-list {
    display: flex;
    gap: 24px;
    list-style: none;
        padding: 0;
        margin: 0;
}
 .feature-title {
 font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #2e2f42;
        margin-bottom: 8px;
 }
 .feature-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
 } 
 /* team */
 .name-item {
    padding: 32px 0 ;
 }
 /* .team-container {
    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-list {
    /* 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); */
    display: flex;
    gap: 24px;
 }
 .team-link:hover,
 .team-link:focus {
     background-color: #404bbf;
 }
.team-section {
 background-color: #f4f4fd;
 padding: 120px 0 ;
}
.team-list {
        font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
      
}
.team-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);
}
 .team-photo {
    background-color: #FFFFFF;
    width: calc((100% - 72px) / 4);
        border-radius: 0px 0px 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-name {
    font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
        margin-bottom: 8px;
}
 .team-work {
    font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        text-align: center;
        color: #434455;
 }
 .team-svg-li {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
 }
 .team-svg {
  fill: var(--cloud, #f4f4fd);
}
 .team-item {
    display: flex;
        justify-content: center;
        gap: 24px;
        margin-top: 8px;

 }
 /* portfolio */
 .portfolio-container {
 } 
  .portfolio-section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 48px;
    justify-content: center;
    
  }
.portfolio-info {
    border-bottom: 1px solid #e7e9fc;
        border-left: 1px solid #e7e9fc;
        border-right: 1px solid #e7e9fc;
}
 .portfolio, 
 .team {
    font-family: "Roboto", sans-serif;
        font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: capitalize;
        color: #2e2f42;
        
        margin-bottom: 72px;
 }

.portfolio-item:hover .portfolio-overlay {
    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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    color: #f4f4fd;
    padding: 40px 32px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;

    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-item {
    background-color: #FFFFFF;
    flex-basis: calc((100% - 48px) / 3);
   transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-name {
    font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        color: #2e2f42;
        margin-bottom: 8px;
        
}
.portfolio-info {
    padding: 32px 16px;
}
 .portfolio-work {
    font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
      
        }
 /* footer */
 .footer {
    background-color: #2e2f42;
    padding: 100px 0;
    
        
    }
 
 .footer-text {
    font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #f4f4fd;
        max-width: 264px;
        margin-bottom: 16px;
      

 }
 .footer-logo .logo-part {
    color: #f4f4fd;
 }
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}
.social-text {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #fff;
        margin-bottom: 16px;
       
}
.footer-container {
    display: flex;
    align-items: baseline;
}

.footer-ul {
    display: flex;
    gap: 16px;
}
.footer-item {
    width: 40px;
    height: 40px;
}
.footer-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);
}
.footer-link:hover,
.footer-link:focus {
    background-color: #31d0aa;
}
.footer-svg {
    fill: #f4f4fd;
}
.footer-left {
    margin-right: 120px;
}

/* Footer Subscribe */

.ftr-sub {
    width: 453px;
    margin-left: auto;
}

.ftr-sub-text {
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #fff;
        margin-bottom: 16px;
}

.ftr-email {
    width: 264px;
    padding-left: 16px;
    background-color: transparent;
    border: 1px solid #fff;
        border-radius: 4px;
        width: 264px;
        height: 40px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
        transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


.ftr-email:focus, 
.ftr-email:hover {
    outline: none;
    border-color: #31d0aa;
}


.ftr-email::placeholder {
    font-weight: 400;
        font-size: 12px;
        line-height: 2;
        letter-spacing: 0.04em;
        color: #fff;
        
}

.ftr-btn {
    border-radius: 4px;
        padding-block: 8px;
        padding-inline: 24px;
        width: 165px;
        height: 40px;
        font-weight: 500;
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: 0.04em;
            text-align: center;
            color: #fff;
        background-color: #4d5ae5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        outline: none;
        border: none;

}

.ftr-btn:focus, 
.ftr-btn:hover {
    background-color: #31d0aa;
}

.sub-svg {
    fill: white;
}

.ftr-form {
    display: flex;
    gap: 24px;
}


/* 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: 408px;
    min-height: 584px;
    border-radius: 4px;
    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;
        transform: translate(-50%, -50%);

        transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop:not(.is-open) .modal {
    transform: translate(-50%, -50%) scale(1.5);
}