:root { --main-color: #F4F4FD;}
h1,
h2,
h3,
h4,
h5,
h6,
p{
    margin: 0%;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}
.container {
    max-width: 1158px;
    padding: 0 15px;
    margin: 0 auto;
}
a {
    text-decoration: none;
}

ul,ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color: #FFFFFF;
}
.page-header {
    border-bottom: 1px solid #e7e9fc;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 2px 1px 0 rgba(46, 47, 66, 0.08);

}
.header-container {
    display: flex;
    align-items: center;
}
.page-nav {
    display: flex;
    align-items: center;   
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.contacts-links {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-logo {
    padding: 24px 0;
    margin-right: 76px;
}

.link-logo {
    font-family: "Raleway", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}
.page-nav .text-logo {
    color: #2E2F42;
}

.nav-list .nav-link {
    display: block;
    padding: 24px 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #2E2F42;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link.current {
    position: relative;
}
.nav-link.current::after {
    content: '';
    width: 100%;
    height: 4px;
    position: absolute;
    left: 0;
    bottom: -1px;
    background-color: #404bbf;
    border-radius: 2px;
}

.nav-list .nav-link:hover,
.nav-list .nav-link:focus,
.nav-link.current 
 {
  color: #404BBF;
}
.contacts-adress {
    font-style: normal;
    margin-left: auto;
}
.contacts-links .link {
    display: block;
    padding: 24px 0;
    color: #434455;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-links .link:hover,
.contacts-links .link:focus {
    color: #404BBF;
}
.main-page {
    background-color: #2e2f42;
    padding-top: 188px;
    padding-bottom: 188px;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), 
    url(../images/people-office.jpg);
    max-width: 1440px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

}
.main-title {
    margin: 0 auto;
   color: #ffffff;
   font-size: 56px;
   line-height: 1.07;
   text-align: center;
   letter-spacing: 0.02em;
   margin-bottom: 48px;
   max-width: 496px;
}
.main-button {
    display: block;
    min-width: 169px;
    height: 56px;
    align-items: center;
    margin: 0 auto;
    border-radius: 4px;
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    border: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.main-button:hover,
.main-button:focus {
   background-color: #404BBF;
}
.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{
    padding-top: 120px;
    padding-bottom: 120px;
}
.benefits-icons {
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
     width: 264px;
    height: 112px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.benefits-items-list{
    display: flex;
    gap: 24px;
}
.benefits-items {
    flex-basis: calc((100% - 72px) / 4)
}
.benefits-title {
    color: #2E2F42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.benefits .about-benefits {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.team {
    background-color: #F4F4FD;
    padding-top: 120px;
    padding-bottom: 120px;
}
.team-cards-list {
    background-color: #FFFFFF;
    display: flex;
    width: calc((100% - 72px) / 4);
    width: 264px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);
}
.team-cards {
    padding-top: 32px;
    padding-bottom: 32px;
}
.team-cards-item {
    justify-content: center;
        gap: 24px;
        display: flex;
        box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}
.our-team-title {
    color: #2E2F42;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    margin-bottom: 72px;
}.team-cards-title {
    color: #2E2F42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.team-cards-text {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.icon {
    fill: #f4f4fd;
}
.social-link {
    background-color: #4D5AE5;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link:hover,
.social-link:focus {
    background-color: #404bbf;
}

.social-links {
  width: 40px;
  height: 40px;
 }
.social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 232px;
    height: 40px;
}

.portfolio-main-title {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
   color: #2E2F42;
   letter-spacing: 0.02em;
   text-transform: capitalize;
   margin-bottom: 72px;
}
.portfolio-title {
    color: #2E2F42;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    row-gap: 48px;
    column-gap: 24px;

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

}
.portfolio-items {
    width: calc((100% - 48px) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-items:hover {
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);
}
.portfolio-image {
    position: relative;
    overflow: hidden;
}
.portfolio-image:hover .overley {
    transform: translateY(0);
}
.overley {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    font-size: 16px;
    padding: 40px 32px;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-items-text {
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    padding: 32px 16px;
}
.footer {
    background-color: #2e2f42;
    padding-top: 100px;
        padding-bottom: 100px;
}
.logo-container {
    display: block;
    flex-shrink: 0;

}
.studio-logo {
    font-family: "Raleway";
    font-size: 18px;
    line-height: 1.16;
    text-transform: uppercase;
    color: #F4F4FD;
}
.text-footer {
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--main-color);
    width: 264px;
}
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    margin-right: 120px;
}

.container-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 1158px;
    margin: 0 auto;
}
.title-footer {
    margin-bottom: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}
.social-list_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.social-link_footer {
    background-color: #4D5AE5;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link_footer:hover,
.social-link_footer:focus {
 background-color: #31d0aa;}