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

/*rezet*/
ul, ol{
list-style-type: none;
margin: 0px;
padding: 0px;

}
a{
    text-decoration: none;
}
h1 ,h2 ,h3 ,h4 ,h5 ,h6 ,p{
    margin: 0;
}
  /*common */
.container{
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

/*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);
}
.container-header{
    display: flex;
}
.header-nav{
    display: flex;
    align-items: center;
}

.logo{
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    font-family:"Raleway",sans-serif;
}
.header-logo{
    padding: 24px 0px;
    margin-right: 76px;
}
.header-logo .logo-link-header{
    color: #404bbf;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-list{
    display: flex;
    gap: 40px;
}
.nav-link{
    display: block;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2E2F42;
    padding: 24px 0px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link.current {
    position: relative;
    color: #404bbf;

}

.nav-link.current::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    border-radius: 2px;
    background-color: #404bbf;
    width: 100%;
    height: 4px;
}
.contacts{
    font-style: normal;
    margin-left: auto;
}
.contacts-list{
    display: flex;
    align-items: center;
    gap: 40px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-link{
    display: block;
    padding: 24px 0px;
    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:hover,
.nav-link:focus,
.contacts-link:hover,
.contacts-link:focus,
.logo-link-header.current{
    color: #404bbf;
}

.section{
    padding: 120px 0px;
}

/*hero*/
.hero{
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/people-office.jpg");
    max-width: 1440px;
    margin: 0px auto;
    padding: 188px 0px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.hero-title{
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    margin: 0px auto;
    color: #fff;
    max-width: 496px;
    text-align: center;
} 
.hero-button{
    display: block;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: #4d5ae5;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    margin: 0px auto;
    margin-top: 48px;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-button:hover,
.hero-button:focus{
    background-color: #404bbf;
    cursor: pointer;
}

/*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-list{
    display: flex;
    gap: 24px;
}
.benefits-item{
    width: calc((100% - 3*24px)/4);
}
.icon-benefits{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    height: 112px;
    padding-top: 24px;
    padding-bottom: 24px;
    background-color: rgba(244, 244, 253, 1);
    border-radius: 4px;
    border: 1px solid rgba(142, 143, 153, 1)
    }
    
.benefits-item-title{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
.team-nickname {
    text-align: center;
    padding: 32px 0px;
}
.team-images-title,
.portfolio-images-title{
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
.benefits-text{
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
     letter-spacing: 0.02em;
    color: #434455;
}

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

/*team*/
.team-container{
    display: block;
    align-items: center;
}
.team{
    background-color: #f4f4fd;
}
.team-list{
    display: flex;
    gap: 24px;
}
.team-title{
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 72px;
}
.team-item{
    background-color: #fff; 
    width: calc((100% - 3*24px)/4);
    border-radius: 0px 0px 4px 4px;
    box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}
img{
    display: block;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    
    margin: 0 auto;
}
.team-item-social {
    position: relative;
    width: 40px;
    height: 40px;
    
    
    
}
.team-icon-link:hover,
.team-icon-link:focus{
    background-color: #404bbf;;
}

.team-icon-link {
    display: flex;
    align-items: center;
    position: absolute;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    background-color:#4d5ae5;
    cursor: pointer;
    border-radius: 50%;
    
}
.icon{
    fill: #F4F4FD;
}


/*portfolio*/
.portfolio-container{
    display: block;
    align-items: center; 
}
.portfolio-title {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    color: #2e2f42;
    margin-bottom: 72px;
}
.portfolio-list {
    display: flex;
    align-items: center;
    gap: 48px 24px;
    flex-wrap: wrap;
}

.portfolio-item{
    position: relative;
    overflow: hidden;
    flex-basis: calc((100% - 2*24px)/3);
    background-color: #fff; 
    cursor: pointer;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover{
    box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
        0px 1px 1px 0px rgba(46, 47, 66, 0.16),
        0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}
.portfolio-item:hover .overlay-text {
    transform: translateY(0px);
    background-image: to top;
}
.overlay-text{
    position: absolute;
    top: 0;
    color: #F4F4FD;
    font-size: 16px;
    background-color:#4D5AE5;
    width: 100%;
    height: 100%;
    letter-spacing: 0.02em;
    line-height: 1.5;
    padding: 40px 32px;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-overlay{
    position: relative;
    overflow: hidden;
}
.portfolio-name {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
    background-size: cover;
}

/*footer*/
.footer-container{
    display: flex;
    align-items: baseline
}
.logo-block{
    margin-right: 120px;
}
.footer{
    background-color: #2e2f42;
    padding: 100px 0px;
}
.footer-logo{
    display: inline-block;
    margin-bottom: 16px;
}
.footer-logo .logo-link-footer{
    color: #f4f4fd;
} 
.footer-text{
    max-width: 264px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    text-align: justify;
}
.footer-social{
    width: 208px;
    height: 80px;
}
.footer-title-social{
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.footer-list-social{
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 40px;
}
.footer-item-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.footer-icon-link:hover,
.footer-icon-link:focus{
    background-color: #31d0aa;
}
.footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #4d5ae5;
    border-radius: 50%;
    position: absolute;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}