/* common */

body {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #434455;
    background-color: #FFFFFF;
    letter-spacing: 0.02em;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;

}

ul {
    list-style-type: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

ul, ol {
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* header */


.header {
    max-width: 100%;
    border-bottom: 1px solid #e7e9fc;
}

.header-container {
    display: flex;
}

.nav-link {
    display: flex;
    margin-right: 332px;
    align-items: center;
}

.logo {
    font-family: Raleway, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
    color: #4D5AE5;
    margin-right: 76px;
}

.span-logo {
    color: #2E2F42;    
}

.nav-list {
    display: flex;
    gap: 40px;
}

.link {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2E2F42;
    display: block;
    padding-top: 24px;
    padding-bottom: 24px;
}

.contasts {
    font-style: normal;
}

.header-list {
    display: flex;
    gap: 40px;
}

.contasts .link {
    font-weight: inherit;
    color: #434455;
}

.link:hover,
.link:focus {
    color: #404BBF;
    text-decoration: underline;
}


/* hero */


.hero {
    color: #ffffff;
    background-color: #2E2F42;
    text-align: center;
    max-width: 100%;
    padding: 188px 0;
}

.title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: 0.02em;
    margin: 0 auto;
    margin-bottom: 48px;
    max-width: 496px;
    
}

.hero-button {
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: currentColor;
    background-color: #4D5AE5;
    display: block;
    min-width: 169px;
    height: 56px;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    margin: 0 auto;
}

.hero-button:hover,
.hero-button:focus {
    background-color: #404BBF;
}


/* benefits */


.benefits {
    padding: 120px 0;
    max-width: 100%;
}

.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-list {
    display: flex;
    gap: 24px;
}

.benefits-list-item {
    width: calc((100% - 72px) / 4)
}


.benefits-list-title {
    letter-spacing: 0.02em;
    color: #2E2F42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
}


/* team */


.team {
    background-color: #F4F4FD;
    padding: 120px 0;
    max-width: 100%;
}

.team-container {
    padding-bottom: 32px;
    padding-top: 32px;
    text-align: center;
}

.team-title {
    color: #2e2f42;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin-bottom: 72px;
}

.team-list {
    display: flex;
    gap: 24px;
}


.team-card {
    background-color: #ffffff;
    width: calc((100% - 72px) / 4);
    border-radius: 0 0 4px 4px;
    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);
}

.team-card-title {
    letter-spacing: 0.02em;
    color: #2E2F42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.team-card-text {
    font-size: 16px;
}


/* portfolio */



.portfolio {
    padding: 120px 0;
    max-width: 100%;
}

.portfolio-container {
    border: 1px solid #e7e9fc;
    border-top: none;
    padding: 32px 16px;
}

.portfolio-title {
    color: #2e2f42;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin: 72px;
}

.portfolio-list {
    display: flex;
    row-gap: 48px;
    flex-wrap: wrap;
    column-gap: 24px;
}

.portfolio-card {
    background-color: #ffffff;
    width: calc((100% - 48px) / 3);
}

.portfolio-card-title {
    color: #2e2f42;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 8px;
}


/* footer */


.footer {
    background-color: #2E2F42;
    padding: 100px 0;
}

.footer-link {
    display: inline-block;
    margin-bottom: 16px;
    margin-right: 0;
}

.footer-span-logo {
    color: #F4F4FD;
}

.footer-text {
    color: #F4F4FD;
    max-width: 264px;
}
