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

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

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

.container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    border-bottom: 1px solid #E7E9FC;
}

.nav-block {
    display: flex;
    gap: 40px;
    align-items: center;
}
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #434455;
    background-color: #FFFFFF;
}
.page-header {
    background-color: #E7E9FC;
    padding: 0;
    border-bottom: 1px solid #E7E9FC;
}
.page-header .container {
    width: 1440px;
    height: 72px;
    display: flex;
}
a {
    text-decoration: none;
    color: #2E2F42;
}
.logo {
        font-family: Raleway, sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.17;
        color: #4D5AE5;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-right: 76px;
   
}
.logo-text, .logo-black{
    display: inline-block;
    padding-bottom: 24px;
    padding-top: 24px;
    padding-right: 0;
    padding-left: 0;
}
.logo-black {
        color: #2E2F42;
}


.page-nav {
    list-style: none;
    display: flex;
    gap: 40px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    margin: 0;
    margin-left: 76px; 
}
.page-nav .link {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        padding-bottom: 24px;
        text-decoration: none;
        display: block;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 24px 0;
}
 
.contacts-list {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contacts {
    font-style: normal;
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    flex-direction: row;
    justify-content: flex-end;
    align-content: center;
   
}
.contact-link {
    list-style: none;
    background-color: #E7E9FC;
}
.hero-section {
    background-color: #2E2F42;
    padding: 188px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07;
        letter-spacing: 0.02em;
        color: #FFFFFF;
        text-align: center;
        text-transform: capitalize;
        max-width: 496px;

}
.hero-button {
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    width: 169px;
    height: 56px;
    opacity: 1;
    top: 428px;
    left: 636px;
    gap: 10px;
    border: none;
    box-sizing: border-box;
    display: block;
    min-width: 169px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 48px;
    border-radius: 4px;
 
}
.hero-button:hover, .hero-button:focus {
    background-color: #404bbf;
}

.services {
    padding: 120px 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;
}
.container-flex {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-top: 120px;
    margin-bottom: 120px;
}

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

.services-list {
    width: calc((100% - 72px) / 4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.services-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}
.team {
    background-color: #f4f4fd;
    padding: 120px 0;

}
.team-title {
    color: #2E2F42;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    padding-top: 120px;
    margin-bottom: 72px;
}
.team-list-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 72px;
    padding-bottom: 120px;
    margin: 0;
    
}
.team-member {
    font-family: Roboto;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;

}
.team-member-role {
    font-family: Roboto;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    text-align: center;
}
.team-member,
.team-member-role {
    text-align: center;
    width: 100%;
    margin-top: 16px;
}

.team-member-container {
    padding: 32px 0;
}
.team-list {
    background-color: #FFFFFF;
    color: #2E2F42;
    width: 264px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0px 0px 4px 4px;
    padding-bottom: 32px;
    border-radius: 0px 0px 4px 4px;
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16), 0 1px 6px rgba(46, 47, 66, 0.08);
}

.team-list img {
    width: 264px;
    height: 260px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    display: block;
}

.portfolio {
    padding-top:120px;
    padding-bottom: 120px;
}
.portfolio-title {
    font-family: Roboto;
    color: #2E2F42;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    padding-top: 120px;
    margin-bottom: 72px;
}
.portfolio-list-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    row-gap: 48px;
    padding-top: 72px;
    padding-bottom: 120px;
}
.portfolio-item-container {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
.portfolio-item {
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16), 0 1px 6px rgba(46, 47, 66, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: flex-start;
}

.portfolio-item img {
    width: 360px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-item-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2E2F42;
    margin-bottom: 8px;
}
.portfolio-item-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

.portfolio-item-title,
.portfolio-item-description {
    text-align: left;
    width: calc(100% - 32px);
}

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

.page-footer {
    background-color: #2E2F42;
    padding: 100px 0;
    
}

.container footer {
    padding-top: 100px;
    padding-bottom: 188px;
    padding-right: 1169px;
    padding-left: 156px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

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

}
.footer-description {
    color: #f4f4fd;
    letter-spacing: 0.02em;
    line-height: 1.5;
    width: 264px;
}