/*-------------------QUICK SETTINGS------------------------*/
body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    background-color: #ffffff;
    color: #434455;
}

img {
    display: block;
}

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

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

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

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

.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;
}

/*-------------------LOGO------------------------*/
.logo {
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
}

.studio {
    color: #2e2f42;
}

.finale .studio {
    color: #F4F4FD;
}

/*-------------------HEADER--------------------*/
.navigation {
    box-shadow: 2px 1px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 1px 6px rgba(46, 47, 66, 0.08);
}

.navigation .logo {
    padding: 24px 0;
    margin-right: 76px;
}

.navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.links {
    display: flex;
    gap: 40px;
}

.page {
    display: block;
    color: #434455;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.link-studio {
    color: #404BBF;
}
.link-studio::after {
    color: #404BBF;
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    border-radius: 2px;
    width: 100%;
    background-color: #404bbf;
}

.page:hover,
.page:focus {
    color: #404BBF;
}

.contacts {
    font-style: normal;
    display: flex;
    gap: 40px;
}

.contact {
    color: #434455;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 24px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact:hover,
.contact:focus {
    color: #404bbf;
}

/*-------------------FIRST SECTION------------------------*/
.banner {
    color: #ffffff;
    background-image: linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url("../images/people-office-1.jpg");
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.banner .container {
    align-items: center;
    justify-content: center;
    padding: 188px 0;
}

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

.service {
    display: block;
    background-color: #4D5AE5;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0px auto;
    cursor: pointer;
    border: 0;
    min-width: 169px;
    height: 56px;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/*-------------------SECOND SECTION------------------------*/
.subheader {
    font-weight: bold;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2E2F42;
}

.benefits {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.benefits-list {
    width: calc((100% - 24px)/4);
}

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

.desc {
    letter-spacing: 0.02em;
    color: #434455;
}
.benefits .block {
    background-color: #F4F4FD;
    border-radius: 4px;
    border: 1px solid #8E8F99;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 8px;
}

/*-------------------THIRD SECTION------------------------*/
.team {
    background-color: #F4F4FD;
}

.team .subheader,
.portfolio .subheader {
    line-height: 1.11;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 72px;
}

.team .social-media {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.team .block {
    background-color: #4D5AE5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    fill: #F4F4FD;
    display: flex;
    justify-content: center;
    align-items: center;
}
.team .social-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4d5ae5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.list {
    display: flex;
    gap: 24px;
}

.team .example {
    background-color: #ffffff;
    letter-spacing: 0.02em;
    width: calc((100% - 72px)/4);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08),
        0 1px 1px rgba(46, 47, 66, 0.16),
        0 2px 1px rgba(46, 47, 66, 0.08);
}

.team .social-link:hover, .team .social-link:focus {
    background-color: #404BBF;
}

.team .list-heading {
    margin-bottom: 8px;
    text-align: center;
}

.team .list-about {
    text-align: center;
    margin-bottom: 8px;
}

.team .text {
    padding: 32px 0;
}

/*-------------------FORTH SECTION------------------------*/
.apps {
    display: flex;
    gap: 48px 24px;
    flex-wrap: wrap;
}

.apps .text {
    padding: 32px 16px 32px 16px;
    border: 1px solid #E7E9FC;
    border-top: none;
    position: relative;
    z-index: 998;
    background-color: #fff;
}

.overlay {
    position: absolute;
    padding: 40px 32px;
    color: #F4F4FD;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .example:hover .overlay {
    transform: translateY(0%);
}
.portfolio .over {
    position: relative;
    overflow: hidden;
}
.portfolio .example {
    width: calc((100% - 48px)/3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .example:hover {
    box-shadow: 0 1px 6px rgba(46, 47, 66, 0.08),
        0 1px 1px rgba(46, 47, 66, 0.16),
        0 2px 1px rgba(46, 47, 66, 0.08);
}

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

.finale .container {
    align-items: baseline;
    display: flex;
}
.finale .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo {
    margin-right: 120px;
}

.footer-desc {
    letter-spacing: 0.02em;
    max-width: 264px;
}

.footer-header {
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 16px;
}

.finale .social-media {
    display: flex;
    gap: 16px;
}

.finale .block {
    width: 40px;
    height: 40px;
    fill: #F4F4FD;
}
.finale .social-link {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4d5ae5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.finale .social-link:hover, .finale .social-link:focus {
    background-color: #31D0AA; 
}