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

a {
    text-decoration: none;
}

/* ======= Reset some default styles ======= */
.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
    border: 2px solid red;
    box-sizing: border-box;
}

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

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

/* ======= header styles* ======= */
.header-logo {
    padding: 24px 0;
    margin-right: 76px;
}

.page-header {
    border-bottom: 1px solid #e7e9fc;
}

.header-container {
    display: flex;
    align-items: center;
}

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

}

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

.nav-link {
    padding: 24px 0;
    display: block;
}

.contacts {
    margin-left: auto;
}

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

}

.contact-links {
    display: block;
    padding: 24px 0;
}


.logo,
.footer-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;
}

.logo-part {
    color: #2e2f42;
}

.nav-item .nav-link {

    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.nav-item .nav-link:hover {
    color: #404bbf;
}

.nav-item .nav-link:focus {
    color: #404bbf;
}

.contact-item .contact-links {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

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

.contacts {
    font-style: normal;
}

/* =======hero-image* ======= */




.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.hero {
    background-color: #2e2f42;
    padding: 188px 0 188px;
}

.main-text {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    margin-bottom: 48px
}

.main-button {


    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #4d5ae5;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #fff;
}

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

/*  ======= 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 {
    display: flex;
    padding: 120px 0 120px;
    align-items: center;
    justify-content: space-between;

}

.benefits-list {
    display: flex;
    gap: 24px;
}

.benefits-list .benefit-item {
    width: calc((100% - 32px) / 4)
}

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

.feature-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ====== TEAM ======*/

.team {
    background: #f4f4fd;
    padding: 120px 0 120px;

}

.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.team-info {
    width: calc((100% - 72px) / 4);
    border-radius: 0px 0px 4px 4px;

}



.team-foto {}

.team-overlay {
    padding: 32px 0 32px;

}

.team-overlay .team-name {
    text-align: center;
    margin-bottom: 8px;
}

.team-overlay .team-text {
    text-align: center;
}

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

}

.team-info {
    background-color: #FFFFFF;
}

.team-name {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

.team-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ====== portfolio ====== */

.portfolio {
    background-color: #b6b6f4;
    padding: 120px 0 120px;

}

.second-title {
    display: flex;
    margin-bottom: 72px;
    text-align: center;

}

.portfolio-list {
    row-gap: 48px;
    margin-bottom: 48px;

}


.portfolio-item {
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2e2f42;
    text-transform: capitalize;
    height: 420px;
    width: calc((100% - 48px) / 3);
    background: #fff;

    margin-bottom: 48px;

}

.portfolio-item .last {
    margin-bottom: 0;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
}

.portfolio-overlay {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
    margin-bottom: 8px
}

.portfolio-name {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-right: 24px;
}

.potfolio-li3 {
    margin-right: 0;
}

.portfolio-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

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

.footer-logo .logo-part {
    color: #f4f4fd;
}

.footer-text {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;