/* #region Global */
body {
    color: #434455;
    background-color: #FFFFFF;
    font-family: "Roboto", sans-serif;
}
/* #endregion */

/* #region reset */
ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

img {
    display: block;
}

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

a {
    color: currentColor;
    text-decoration: none;
   }
/* #endregion reset */

/* #region common */
.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

address {
    font-style: normal;
     margin-left: auto;
}
/* #endregion common */

/* #region header  */

.page-header {
border-bottom: 1px solid #E7E9FC;
box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08), 0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
       max-width: 1158px;
        padding: 0 15px;
        margin: 0 auto;
        justify-content: space-between;
    }

.header-nav {
    display: flex;
    align-items: center;
}
.logo {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4D5AE5;
    display: inline-block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover,
.logo:focus {
    color: #404BBF;
}

.header-logo {
    /* padding: 24px 0; */
    margin-right: 76px;
}
.header-logo-studio {
    font-family: "Raleway";
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-studio:hover,
.header-logo-studio:focus {
    color: #404BBF;
}

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

.nav-item {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
    }

.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 {
    color: #404bbf;
}

.nav-link:focus {
    color: #404bbf;
}
.nav-link.current::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background-color: #404BBF;
    border-radius: 2px;
    position: absolute;
    bottom: -1px;
}

.nav-link.current {
    color: #404BBF;
    position: relative;
}

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

.contacts-link {
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts:hover {
    color: #404BBF;
}

.contacts:focus {
    color: #404BBF;
}
/* #endregion header */

/* #region cta */

.cta-section {
    display: flex;
    align-items: center;
   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;
    justify-content: center;
    padding: 188px 0;
    max-width: 1440px;
    height: 600px;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);      
}
.cta-container {
    max-width: 1158px;
    align-items: center;
    padding: 0;
    margin: 0;
    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;
        justify-content: center;
}
.cta-section-title {
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07;
        letter-spacing: 0.02em;
        text-align: center;
        color: #ffffff;
        max-width: 496px;
        /* margin: 0 auto; */
        }

.button {
    all: unset;
    display: block;
    box-sizing: border-box;
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 16px 32px;
    min-width: 169px;
    height: 56px;
    border: none;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    background-color: #4D5AE5;
    text-align: center;
    margin: 48px auto 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover,
.button:focus {
    background-color: #404BBF;
}
/* #endregion cta */

/* #region features */

.feature-container {
    margin: 0 auto 0 auto;
    max-width: 1158px; 
}
.feature-section {
padding: 120px 0;
}

.feature-section ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 24px;



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

/* .features-list {
  
} */

.feature-item {
width: calc((100% - 3 * 24px) / 4);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    fill: #2E2F42;
}

.feature-title {
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42;
margin-bottom: 8px;
}
.features-text {
line-height: 1.5;
letter-spacing: 0.02em;
}
/* #endregion features */


/* #region team */
.team {
    width: 100%;
    background-color: #F4F4FD;
    padding: 120px 0;
}

.team-container {
   box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    /* height: 492px; */
    
}

.team-container ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
/* background-color: #F4F4FD; */

}

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

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    height: auto;
     }

.member-card {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #FFFFFF;
    min-height: 380px;
    max-width: 264px;
    overflow: hidden;
    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);
    flex-basis: calc((100% - 3 * 24px) / 4);
}

.team-image {
        background-color: #FFFFFF;
        width: 264px;
        height: 260px;
       
}

.team-card-text {
padding-top: 32px;
padding-bottom: 32px;
}

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

/* .team-social {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    } */
.team-social-list {
display: flex;
flex-direction: row;
justify-content: center;
    gap: 24px;
    padding: 0;
    margin: 8px auto 0px auto;
    list-style: none;
    }

.team-social-list-item {
display: flex;
justify-content: center;

}

  .team-social-link {
/* властивості іконок */
display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    fill: #F4F4FD;
    background-color: #4D5AE5;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .team-social-link:hover,
  .team-social-link:focus {
      background-color: #404BBF;
  }

 /* #endregion team */

/* #region portfolio*/

.portfolio {
padding: 120px 0;
}

.portfolio-container {
    max-width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
        }

.portfolio-title {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
    padding: 0 0;
    margin-bottom: 72px;
    /* margin-top: 120px; */
}

.card-grid {
        display: flex;
        flex-wrap: wrap;
        column-gap: 24px;
            row-gap: 48px;
            list-style: none;
       }


.portfolio-card {
display: flex;
flex-direction: column;
/* align-items: center; */
box-sizing: border-box;
width: calc((100% - 48px) / 3);
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
text-align: center;
cursor: pointer;
    }

.portfolio-card:hover {
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-card: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-card:hover .overlay {
transform: translateY(0);
}
.portfolio-card-wrapper {
    position: relative;
    overflow: hidden;
}

.portfolio-image {
width: 100%;
height: 300px;
object-fit: cover;
display: block;
max-width: 360px;
min-height: 300px;
margin: 0;

}

.overlay {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #F4F4FD;
padding: 40px 32px;
   display: flex;
   align-items: center;
   text-align: left;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.text-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    /* border: 1px solid #e7e9fc;
    border-top: none; */
    padding: 32px 16px;
    border-bottom: 1px solid #E7E9FC;
    border-left: 1px solid #E7E9FC;
    border-right: 1px solid #E7E9FC;
}

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

.app-name {
font-weight: 400;
font-size: 16px;
line-height: 150%;
letter-spacing: 0.02em;
}
/* #endregion portfolio */

/* #region footer*/

.footer-section {
    background-color: #2E2F42;
    width: 100%;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.footer-list {
display: flex;
align-items: baseline;
max-width: 1158px;
width: 100%;
justify-content: flex-start;
margin: 0 auto;

}

.footer-container {
    flex-direction: column;
    align-items: baseline;
    margin-right: 120px;
    margin-left: 0;
}



.logo-part {
    margin-bottom: 16px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #F4F4FD;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-part:hover,
.logo-part:focus {
    color: #404BBF;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4D5AE5;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover,
.footer-logo:focus {
    color: #404BBF;
}

.footer-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;
    max-width: 264px;
    text-align: left;
}


.socials-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 208px;
    min-height: 80px;
    
}
/* .socials {
    display: flex;
        flex-direction: column;
        gap: 16px; 
} */

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

.footer-social-list {
    display: flex;
    gap: 16px;
   
}

.footer-social-item {
display: flex;
justify-content: center;
width: 40px;
height: 40px;
}

.footer-social-link {
    width: 100%;
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* width: 40px;
    height: 40px; */
    fill: #F4F4FD;
    background-color: #4D5AE5;
    border-radius: 50%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.social-icon {
    fill: #f4f4fd;
}

/* #endregion footer */