/* =========================
   BASE
========================= */

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

a {
    text-decoration: none;
}

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

h1,
h2,
h3,
p {
    margin: 0;
}

img {
    display: block;
}

button {
    cursor: pointer;
}

/* =========================
   TYPOGRAPHY
========================= */

h2 {
    text-align: center;
}

.logo {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2e2f42;
    text-transform: uppercase;
    margin-right: 76px;
}

.logo-web {
    color: #4d5ae5;
}

.footer-logo {
    color: #ffffff;
}

.header-link {
    font-weight: 500;
    color: #2e2f42;
}

.header-address {
    font-style: normal;
}

.header-address-link {
    color: #434455;
}

.portfolio-title {
    text-align: center;
}

.portfolio-subtitle {
    font-weight: 500;
    color: #2e2f42;
}

.portfolio-text {
    color: #434455;
}

.footer-text {
    color: #f4f4fd;
}

/* =========================
   LAYOUT
========================= */

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

.section {
    padding: 120px 0;
}

/* =========================
   VISUALLY 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;
}

/* =========================
   HEADER
========================= */

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

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

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

.header-list {
    display: flex;
    gap: 40px;
}

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

.header-address {
    margin-left: auto;
}

.header-address-list {
    display: flex;
    gap: 40px;
}

/* =========================
   HERO
========================= */

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

.hero-title {
    font-size: 56px;
    color: #ffffff;
    max-width: 496px;
    margin: 0 auto 48px;
}

.hero-button {
    background-color: #4d5ae5;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
}

/* =========================
   FEATURES
========================= */

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

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

.features-title {
    font-weight: 500;
    margin-bottom: 8px;
}

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

.team {
    background-color: #f4f4fd;
}

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

.team-item {
    background-color: #ffffff;
    text-align: center;
}

.team-name {
    font-weight: 500;
    margin-top: 32px;
}

.team-text {
    margin-bottom: 32px;
}

/* =========================
   PORTFOLIO
========================= */

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

.portfolio-item {
    width: calc((100% - 48px) / 3);
    border-bottom: 1px solid #e7e9fc;
}

.portfolio-subtitle {
    margin-top: 32px;
    margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background-color: #2e2f42;
    padding: 100px 0;
}

.footer-text {
    max-width: 264px;
    margin-top: 16px;
}