body{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    background-color: #FFFFFF;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #2E2F42;
}

h1{
    font-weight: bold;
    font-size: 56px;
    letter-spacing: 0.02em;
    line-height: 1.111;
    color: #FFFFFF;
}

h2{
    font-weight: bold;
    font-size: 36px;
    letter-spacing: 0.02em;
}

h3{
    font-weight: medium;
    font-size: 20px;
    letter-spacing: 0.02em;
}

ul{
    list-style: none;
    color: #2e2f42;
    letter-spacing: 0.02em;
    margin: 0;
    padding-left: 0;
}

button{
    background-color: #4D5AE5;
    color: #FFFFFF;
}

button:focus, button:hover{
    background-color: #4D5AE5;
    cursor: pointer;
}

.team{
    background-color: #F4F4FD;
    padding: 120px 0;
}

.title-team{
    line-height: 1.11;
    text-align: center;
    text-transform: capitalize;
    font-weight: 500;
    margin-bottom: 72px;
}

.team-list{
    display: flex;
    gap: 24px;
    max-width: 100%;
}

.team-list-item{
    background-color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    align-items: center;
    border-radius: 0 0 4px 4px;
    width: 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);
}

.div-team{
    padding: 32px 0;
}

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

.team-social-icon{
    width: 40px;
    height: 40px;
}

.team-social-url{
    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-social-url:hover,
.team-social-url:focus{
    background-color: #404bbf;
}

.team-social-url > .icon{
    fill: #f4f4fd;
}

.team-list-heading{
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 8px;

}

.team-list-paragraph{
    color: #434455;
    line-height: 1.5;
    font-size: 16px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 8px; 
}

.icon-team-container{
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon-team-container .icon{
    width: 40px;
    height: 40px;
}

.hero{
    background: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
    url(../images/people-office.jpg);
    background-size: cover;
    background-position: center;
    margin-top: 0 auto;
    padding: 188px 0;
    align-items: center;
    max-width: 1440px;
    background-repeat: no-repeat;
}

.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;
    margin-right: 76px;
    display: inline-block;

}

.footer-logo{
    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: #4d5ae5;
    margin-right: 76px;
    display: inline-block;

}

.studio{
    color: #2E2F42;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
}

.studio-footer{
    color: #f4f4fd;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: 0.03em;
}

.studio > .footer{
    color: #f4f4fd;
}

.nav{
    display: flex;
    align-items: center;
}

.nav-list{
    display: flex;
    margin: 0 auto;
}

.a-list{
    display: flex;
    gap: 40px;
    margin: 0 auto;
    padding: 24px 0;
}
.a-list-item:first-child{
    margin-left: 286px;
}

.nav-list-item{
    margin-right: 40px;
    padding: 24px 0;
}

.nav-list-item:last-child,
.a-list-item:last-child{
    margin-right: 0;
}

.nav-list-item-url{
    position: relative;
    color: #404bbf;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}


.current::after{
    position: absolute;
    content: "";
    width: 100%;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
}

.nav-list-item-url:hover,
.nav-list-item-url:active,
.nav-list-item-url:focus{
    color: #404bbf;
}

.address{
    font-style: normal;
}

.a-list-item-url{
    font-style: normal;
    color: #434455;   
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.a-list-item-url:hover,
.a-list-item-url:active,
.a-list-item-url:focus{
    color: #404bbf;
}

a{
    text-decoration: none;
}

.hero-title{
    line-height: 1.07;
    text-align: center;
    margin: 0 auto;
    max-width: 496px;
    margin-bottom: 48px;
}

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

}

.hero-button:hover,
.hero-button:focus{
    background-color: #404BBF;
}

.title{
    font-weight: 500;
    line-height: 1.2;

}

.approach {
    padding: 120px 0;
}

.approach-list {
    display: flex;
    gap: 24px;
    align-items: center;
    max-width: 100%;
}

.approach-list-item{
    width: calc((100% - 48px) / 3);
}

.approach-heading{
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 8px;
    margin-top: 0;

}

.approach-paragraph{
    color: #434455
}

.footer{
    background-color: #2e2f42;
    padding: 100px 0;

}

.footer-info{
    margin-right: 120px;
}

.footer-container{
    display: flex;
    align-items: baseline;
}

.footer-paragraph{
    color: #F4F4FD;
    max-width: 264px;
    margin: 0;
}
.social-paragraph{
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin: 0;
    margin-bottom: 16px;
}

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

.social-list-item{
    width: 40px;
    height: 40px;
}

.social-url{
    display: flex;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    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);
}

.social-url:hover,
.social-url:focus{
    background-color: #31d0aa;
    cursor: pointer;
}

.footer > .studio{
    color: #F4F4FD;
}

.social-url > .icon{
    fill: #f4f4fd;
}

.portfolio{
    padding: 120px 0;
}

.portfolio-list-item-container{
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;

}

.portfolio-list{
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;
    max-width: 100%;
}

.portfolio-image{
    position: relative;
    overflow: hidden;
    width: 360px;
    height: 300px;
}

.portfolio-image-paragraph{
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;

    padding: 32px;
    color: #f4f4fd;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 400;
    padding: 40px 32px;

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

.portfolio-image:hover .portfolio-image-paragraph{
    transform: translateY(0%);
    cursor: pointer;
}

.portfolio-list-item{
    width: calc((100% - 48px) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}



.portfolio-list-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);
        transform: translateY(0%);
}

.portfolio-list-item-container{
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
    margin: 0 auto;

}

.title-portfolio{
    line-height: 1.11;
    font-weight: 500;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 72px;
}

.portfolio-heading{
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-paragraph{
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    transform: translateY(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;
}

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

.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-div{
    display: flex;
    width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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