body {
    font-family: "Roboto", sans-serif;
    color: #434455;   
    background-color: #ffffff;
}
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0;
}
p {
    margin: 0;
}
ul, ol {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}   
a {
    text-decoration: none;
}

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

.nav-logo, 
.footer-logo{
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #4D5AE5;
    font-size: 18px;
    text-transform: uppercase;
    line-height: 1.17;
    letter-spacing: 0.03em;
    margin-right: 76px;
}
.nav-logo .text-logo {
    color: #2e2f42;
}

.header {
    border-bottom: 1px solid #e7e9fc;
}
.header-nav {
    display: flex;
    align-items: center;
    
}
.nav-list, .address-list{
    display: flex;
    gap: 40px;
    margin-right: 0;
}

.header-container {
    padding: 0 15px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
} 

.nav-links {
    font-style: normal;
    font-size: 16px;
    font-weight: 500;
    color: #2e2f42;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
    display: block;
    
}
.nav-links:hover, 
.nav-links:focus, 
.address-link:hover, 
.address-link:focus{
    color: #404bbf;
}

.address {
    font-style: normal;
}
.address-link {
    line-height: 1.5;
    font-size: 16px;
    color: #434455;
    letter-spacing: 0.02em;
}



/* --- Sections 1 --- */

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

}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    line-height: 1.07;
    letter-spacing: 0.02em;
    max-width: 496px;
    margin: 0 auto 48px auto;
}

.hero-button {
    background-color: #4D5AE5;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    padding: 16px 32px;
    border-radius: 4px;
    min-width: 169px;
    height: 56px;
    margin-bottom: 188px;
    display: block;
    margin: 0 auto ;
}
.hero-button:hover,
.hero-button:focus {
    background-color:#404BBF;
}

/* --- Sections 2 --- */

.advant {
    padding: 120px 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    clip-path: inset(100%);
}

.advent-list {
    display: flex;
    gap: 24px;
    
}
.advent-item {
    width: calc((100% - 72px) / 4);
    
}

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

}
.advent-description {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* --- Sections 3 --- */

.team {
    background-color: #F4F4FD;
    padding: 120px 0;
}
.team-title {
    text-transform: capitalize;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 72px;
    
}
.team-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    
}
.team-item {
    width: calc((100% - 72px) / 4);
    border-radius: 0px 0px 4px 4px;
    background-color: #FFFFFF;
}
.team-item-box {
    padding: 32px 0;
    text-align: center;
}

.team-item-name {
    text-transform: capitalize;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
.team-item-description {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* --- Sections 4 portfolio --- */

.portfolio {
    padding-top: 120px;
    padding-bottom: 120px; 
}

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

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

.portfolio-item {
    width: calc((100% - 48px) / 3);
}
.portfolio-item-text {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
.portfolio-item-title {
    text-transform: capitalize;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}

.portfolio-description {
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.footer {
    background-color: #2e2f42;
    padding: 100px 0;
}  
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
} 
.footer-text-logo {
    color: #f4f4fd;

    }
.footer-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #F4F4FD;
    max-width: 264px;
}