/* -----global----- */

*,
*::before,
*::after {
    box-sizing: border-box
}
body {
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    color: #434455;
    background-color: #FFFFFF;
}

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

a {
    text-decoration: none;
}

button {
    padding: 0;
    cursor: pointer;
    border: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
    margin-bottom: 0;
}

img {
   display: block; 
}

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

.section {
    padding: 120px 0;
}

.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 PAIGE CSS---- */

/* HEADER */

/* .header .container {
    display: flex;
} */
/* 2 способ как применить display flex */

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

.flex-container {
    display: flex;
    justify-content: space-between;
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

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

.logo {
    color: #2E2F42;
}

.nav-list-item:not(:last-child) {
    margin-right: 40px;
}

.navigation-link {
    display: block;
    padding-top: 24px;
    padding-bottom: 24px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #2E2F42;
}

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

.address {
    font-style: normal;
}

.address-list {
    display: flex;
}

.address-list-item:not(:last-child) {
    margin-right: 40px;
}

.address-link {
    padding-top: 24px;
    padding-bottom: 24px;
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

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

/* ----HERO---- */

.hero-section {
    padding-top: 188px;
    padding-bottom: 188px;
    background-color: #2E2F42;
}

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

.hero-button {
    padding-top: 16px;
    padding-right: 32px;
    padding-bottom: 16px;
    padding-left: 32px; 
    border-radius: 4px; 
    display: block;
    margin: 0 auto;
    min-width: 169px;
    height: 56px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    background-color: #4D5AE5;
}

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

/* ----FEATURES---- */

.features-list {
    display: flex;
}

.features-list-items {
    width: 264px;
    margin-right: 24px;
}

.features-list-items:last-child {
    margin-right: 0;
}

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

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

/* ----OUR TEAM---- */

.team-section {
    background-color: #F4F4FD;
}

.our-team-header{
    margin-bottom: 72px;
    text-transform: capitalize;
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    color: #2E2F42;

}

.team-list {
    display: flex;
}

.employee-card:not(:last-child) {
    margin-right: 24px;
}

.employee-card {
    width: calc((100% - 24px * 3) / 4);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #FFFFFF;
}

.employee-thumb {
    /* padding: 32px 0; */
    padding-top: 32px;
    padding-right: 0px;
    padding-bottom: 32px;
    padding-left: 0px;
}

.employee-name,
.position {
    text-align: center;
}

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

.position {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ----PORTFOLIO---- */

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

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

.portfolio-card {
    /* flex-basis: calc(100% / 3 - 24px); */
    width: calc((100% - 48px) / 3);
}

.portfolio-card-thumb {
    /* padding:32px 16px; */
    border: 1px solid #E7E9FC;
    border-top: none;
    padding: 32px 16px;
}

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

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

/* ----FOOTER---- */

.footer {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #2E2F42;
}

.logo-link-footer{
    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;
}

.logo-fooret {
    color: #F4F4FD;
}

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

