/* ====== RESET STYLES ====== */
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 0;
}
img {
    display: block;
}
ul, ol {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
}
a {
    text-decoration: none;
    color: inherit;
}
button {cursor: pointer;}
body {
    font-family: "Roboto", sans-serif;
    letter-spacing: 0.02em;
    color: #434455;
    background-color: #ffffff;
}

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

/* ====== TITLE STYLES */
.section-title {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 72px;
    text-transform: capitalize;
    color: #2e2f42;
}
.sub-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}
/* ====== HEADER STYLES ====== */

.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;
    margin-right: 76px;
}
.logo-accent {
    color: #2e2f42;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;   
}
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #e7e9fc;
}
.header-nav {
    display: flex;
    align-items: center;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
   
}
.nav-item {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2e2f42;
}
.nav-link {
    padding-top: 24px;
    padding-bottom: 24px;
}
.nav-link:hover, 
.nav-link:focus {
    color: #404bbf;
}
.address {
    font-style: normal;
}
.address-list {
    display: flex;
    gap: 40px;
    align-items: center;
}
.address-link {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.address-link:hover,
.address-link:focus {
    color: #404bbf;
}

/* ====== HERO SECTION STYLES ====== */

.hero-section {
    padding-top: 188px;
    padding-bottom: 188px;
    background-color: #2e2f42;
}
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-title {
    max-width: 496px;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
}
.hero-button {
    background: #4d5ae5;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    padding: 16px 32px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border: none;
    min-width: 169px;
}
.hero-button:focus,
.hero-button:hover {
    background-color: #404bbf;
}
/* ====== BENEFITS SECTION STYLES ====== */
.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-section {
    padding-top: 120px;
    padding-bottom: 120px;
}
.benefits-list {
    display: flex;
    gap: 24px;
    
}
.benefits-item {
    width: calc((100% - 72px) / 4);
}
.text {
    line-height: 1.5;
}
/* ======= OUR TEAM SECTION STYLES ====== */

.team-section {
    background-color: #F4F4FD;
    padding-top: 120px;
    padding-bottom: 120px;
}
.team-list {
    display: flex;
    gap: 24px;
}
.team-item {
    background-color: #FFFFFF;
    border-radius: 0px 0px 4px 4px;
}
.team-card {
    padding: 32px 0;
}
.team-sub-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
    text-align: center;
}
.team-text{
    text-align: center;
}
/* ====== OUR PORTFOLIO SETION STYLES ====== */
.portfolio-section {
    padding-top: 120px;
    padding-bottom: 120px;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
}
.portfolio-card {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
/* ====== FOOTER SECTION ====== */

.footer-section {
    background-color: #2e2f42;
    padding-top: 100px;
    padding-bottom: 100px;
}
.logo-footer{
    display: inline-block;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    margin-bottom: 16px;
}
.logo-span-footer {
    color: #f4f4fd;
}
.footer-text {
    color: #f4f4fd;
    line-height: 1.5;
    display: block;
    width: 264px;
}
