*{
    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;
}

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

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

}

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

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

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

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

.button-order-service:hover,
.button-order-service:focus {
    background: #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-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;
}

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

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

.team-list-item {
    background: #FFFFFF;
    border-radius: 0 0 4px 4px;
    width: calc((100% - 72px)/4);
}

.worker {
    padding: 32px 16px;
    text-align: center;
}

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

.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 {
padding-top: 100px;
padding-bottom: 100px;
}

.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;
    
}
.footer-logo:hover,
.footer-logo:focus {
    color: #404BBF;
}

.footer-text {
        line-height: 1.5;
        color: #F4F4FD;
        max-width: 264px;
}