/* Global resets */
* {
    box-sizing: border-box;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Utility class */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Logo */
.logo {
    text-decoration: none;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.54px;
    text-transform: uppercase;
}

.footer-logo {
    display: block;
    text-decoration: none;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.54px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.blue {
    color: #4D5AE5;
}

.black {
    color: #2E2F42;
}

.white {
    color: #F4F4FD;
}

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

.header-container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 15px;
    max-width: 1158px;
    margin: 0 auto;
}

.logo {
    margin-right: 76px;
}

.navigation {
    margin-right: auto;
}

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

.nav-link {
    color: #2E2F42;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    padding: 24px 0;
    display: inline-block;
}

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

.contacts-link {
    color: #434455;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    padding: 24px 0;
    display: inline-block;
}

/* Title/Hero Section */
.title {
    background-color: #2E2F42;
    color: #ffffff;
    padding: 188px 0;
    text-align: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
}

.title-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: 1.12px;
    color: #ffffff;
    margin-bottom: 48px;
    max-width: 496px;
}

.button-wrapper {
    display: flex;
    justify-content: center;
}

.button {
    background-color: #4D5AE5;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.64px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 16px 32px;
}

.button:hover,
.button:focus {
    background-color: #404BBF;
}

/* Features Section */
.features {
    background-color: #ffffff;
    padding: 120px 0;
}

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

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

.features-item {
    flex: 1;
}

.features-heading {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: #2E2F42;
    margin-bottom: 8px;
}

.features-text {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    color: #434455;
}

/* Team Section */
.team {
    background-color: #F4F4FD;
    padding: 120px 0;
}

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

.team-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    letter-spacing: 0.72px;
    text-align: center;
    color: #2E2F42;
    margin-bottom: 72px;
    width: 100%;
}

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

.team-item {
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    flex: 0 1 calc(25% - 18px);
    text-align: center;
}

.team-item img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.team-content {
    padding: 32px 16px;
}

.team-name {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: #2E2F42;
    margin-bottom: 8px;
}

.team-position {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    color: #434455;
}

/* Portfolio Section */
.portfolio {
    background-color: #E7E9FC;
    padding: 120px 0;
}

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

.portfolio-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    letter-spacing: 0.72px;
    text-align: center;
    color: #2E2F42;
    margin-bottom: 72px;
    width: 100%;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.portfolio-item {
    background-color: #ffffff;
    flex: 0 1 calc(33.333% - 16px);
}

.portfolio-item img {
    display: block;
    width: 100%;
    height: auto;
}

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

.portfolio-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: #2E2F42;
    margin-bottom: 8px;
}

.portfolio-category {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    color: #434455;
}

/* Footer */
.footer {
    background-color: #2E2F42;
    color: #F4F4FD;
    padding: 100px 0;
}

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

.footer-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.32px;
    color: #F4F4FD;
    max-width: 264px;
}