/* BODY */
body {
    font-family: "Roboto", sans-serif;
    font-weight: regular;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 2%;
    background-color: #ffffff;
    color: #434455;
}

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

a {
    text-decoration: none;
}

img {
    display: block;
}

ul {
    list-style: none;
}

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

/* HEADER */
.header {
    border-bottom: 1px solid #E7E9FC;
}

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

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

.logo {
    padding: 24px 0;
    margin-right: 76px;
}

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

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

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

.header-menu-link {
    display: block;
    padding: 24px 0;

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
}

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

.header-menu-link:active {
    color: #404BBF; 
    text-decoration: underline;
}

.header-contacts {
    font-style: normal;
    margin-left: auto;
}

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

.header-contacts-item {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.header-contacts-link {
    display: block;
    padding: 24px 0;

    color: #434455;
}

.header-contacts-link:hover,
.header-contacts-link:focus {
    color: #404bbf;
}

/* MAIN CONTENTS */

.main {
}


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

.main-hero-title {
    max-width: 496px;
    margin: auto;

    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    text-align: center;
    color: #ffffff;
}

.main-hero-btn {
    display: block;
    margin: auto;
    min-width: 169px;
    height: 56px;


    font-family: "Roboto", sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;

    background: #4d5ae5;
    color: #ffffff;
}

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

/* SECTION 1 - FEATURES */

.main-features {
  padding: 120px 0;
}

.main-features-title {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 36px;
    overflow: hidden;
}

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

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

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

.main-features-caption {
    margin-bottom: 8px;

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2E2F42;
}

.main-features-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

/* SECTION 2 - OUR TEAM */

.main-team {
    padding: 120px 0;

    background-color: #F4F4FD;
}

.main-team-title {
    margin-bottom: 72px;

    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 36px;

    /* line-height: 40px; */
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    color: #2E2F42;
}

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

.main-team-item {
    width: calc((100% - 72px) / 4);

    background: #ffffff;
    border-radius: 0 0 4px 4px;
}

.main-team-item-texts {
    padding: 32px 0;
}

.main-team-img {
}

.main-team-caption {
    margin-bottom: 8px;
    text-align: center;

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;

    /* line-height: 24px; */
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    color: #2E2F42;
}

.main-team-text {
    text-align: center;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;

    /* line-height: 24px; */
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    color: #434455;
}

/* SECTION 4 - PORTFOLIO */

.main-portfolio {
    padding: 120px 0;
}

.main-portfolio-title {
    margin-bottom: 72px;

    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 36px;

    /* line-height: 40px; */
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    color: #2E2F42;
}

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

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

    background: #ffffff;
    
}

.main-portfolio-img {
}

.main-portfolio-item-texts {
    padding: 32px 16px;
    border: 1px solid #E7E9FC;
    border-top: none;
}

.main-portfolio-caption {
    margin-bottom: 8px;

    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 20px;

    /* line-height: 24px; */
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2E2F42;
}

.main-portfolio-text {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;

    /* line-height: 24px; */
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

/* FOOTER */

.footer {
    padding: 100px 0;

    background: #2E2F42;
    color: #ffffff
}

.footer-link {
    display: inline-block;
    margin-bottom: 16px;

    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}

.footer-logo {
    color: #F4F4FD;
}

.footer-text {
    max-width: 264px;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #F4F4FD;
}