*{
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

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

ul{
    margin: 0;
    padding-left: 0;
    list-style: none;
}

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

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

a {
    text-decoration: none;
}

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

.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-logo {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2E2F42;
    padding: 24px 0;
    margin-right: 76px;
}

.header-nav {
    display: flex;
    align-items: center;
    color: #404BBF;
    
}

.header-logo-accent {
    color: #4D5AE5;

}

.nav-link:hover,
.nav-link:focus {
    color: #404BBF;
}   

.nav-link {
    display: block;
    font-weight: 500;
        color: #2E2F42;
    padding: 24px 0;
    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;
    bottom: -1px;
    width: 100%;
    height: 4px;
    background-color: #404BBF;
}

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

.contact-section {
    display: flex;
    align-items: center;
    font-style: normal;
    margin-left: auto;
}
.contact-item {
    display:block;
    padding: 24px 0;
    font-style: normal;
        line-height: 1.5;
        color: #434455;
        letter-spacing: 0.02em;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1)

}

.contact-item:hover, .contact-item:focus {
    color: #404BBF;
}

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

.hero-section {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #2E2F42;
    background-repeat: no-repeat;
    background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/office.jpg);
    background-size: cover;
    background-position: center;
}

.hero-container {
    display: block;
    margin-right: auto;
    margin-left: auto;
    padding-top: 188px;
    padding-bottom: 188px;

}

.hero-title {
    font-weight: 700;
        font-size: 56px;
        line-height: 1.07;
        text-align: center;
        color: #FFFFFF;
        letter-spacing: 0.02em;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 48px;
        max-width: 496px;
}

.button-order-service {
    font-family: Roboto, sans-serif;
    background: #4D5AE5;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-weight: 500;
        color: #FFFFFF;
        cursor: pointer;
            font-size: 16px;
            line-height: 1.5;
    display: block;
    margin-right: auto;
    margin-left: auto;
    border-radius: 4px;
        padding: 16px 32px;
        text-align: center;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.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 {
    display: flex;
    align-items: center;
    gap: 24px;
    
}

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

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

.features-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;
        color: #434455;
}

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

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

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

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

.social-icon{
    fill: #F4F4FD;
}

.team-section {
    background-color: #F4F4FD;
}

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

.team-list-item {
    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: #FFFFFF;
    border-radius: 0 0 4px 4px;
    width: calc((100% - 72px)/4);
}

.worker {
    padding: 32px 16px;
    text-align: center;
    border-radius: 0 0 4px 4px;
    background-color: #FFFFFF;
}

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

.team-text {
        line-height: 1.5;
        text-align: center;
        letter-spacing: 0.02em;
        color: #434455;
        text-align: center;
        margin-bottom: 8px;
}

.portfolio-item-wrapper{
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item-wrapper:hover .hidden-text,
.portfolio-link-wrapper:focus .hidden-text{
    transform: translateY(0);
    
}

.portfolio-item-wrapper:hover,
.portfolio-link-wrapper: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);
}

.thumb{
    position: relative;
    overflow: hidden;
}
.hidden-text{
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #4D5AE5;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;
    padding: 40px 32px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        
}

.portfolio-img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.section-title-portfolio {
        font-size: 36px;
        line-height: 1.11;
        text-align: center;
        letter-spacing: 0.02em;
        color: #2E2F42;
        margin-bottom: 72px;
}

.portfolio-container {
    text-align: center;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
    text-align: center;
    
}

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

.portfolio-example {
    padding: 32px 16px;
    border-bottom: 1px solid #E7E9FC;
    border-left: 1px solid #E7E9FC;
    border-right: 1px solid #E7E9FC;
    
}

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

.portfolio-text {
    text-align: left;
        line-height: 1.5;
        color: #434455;
        letter-spacing: 0.02em;
        margin-right: auto;
}

.footer-section {
    background-color: #2E2F42;
}

.footer-container {
    display: flex;
    align-items: baseline;
padding-top: 100px;
padding-bottom: 100px;
}

.footer-logo-wrapper{
    display: flex;
    flex-direction: column;
    margin-right: 120px;
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-right: auto;
    padding: 0;
    justify-content: flex-start;
}

.footer-logo {
    display: inline-block;
    font-family: Raleway, sans-serif;   
    font-weight: 700;
        font-size: 18px;
        line-height: 1.17;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #F4F4FD;
    margin-bottom: 16px;
        
}

.footer-logo-accent {
    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;
        color: #F4F4FD;
        max-width: 264px;
        text-align: left;
}

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

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

.footer-social-list-links{
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.footer-social-text {
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
    max-width: 264px;
    text-align: left;
}