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

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

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

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

img{
    display: block;
}

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

.header .container{
    display: flex;
}

.header{
    box-shadow: 0px 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);
    border-bottom: 1px solid #e7e9fc;
}

.header-menu:nth-child(1){
    position: relative;
    color: #404bbf;
}

.nav-container{
    display: flex;
    align-items: center;
    margin-right: auto;
}

.adress-container{
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu-item{
    padding: 24px 0;
}


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

.nav-container .page-logo{
    padding: 24px 0;
    margin-right: 76px;
}

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

.web-logo {
    color: #2E2F42;
}

.nav-link {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    /* padding: 24px 0; */
    color: #2E2F42;
    font-weight: 500;
    line-height: 1.5;
    transition-property: color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.current .nav-link{
    position: relative;
    color: #404bbf;
}

.nav-link::after{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: #404bbf;
    border-radius: 2px;
    display: block;
    content: "";
    transition-property: width, height, border-radius, background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after{
    width: 100%;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background-color: #404BBF;
}

.contacts{
    transition-property: color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.contacts:hover,
.nav-link:focus {
    color: #404bbf;
}


.contacts:focus {
    color: #404bbf;
}

.contacts-list {
    line-height: 1.5;
    font-style: normal;
}

.page-title {
    margin: 0 auto 48px;
    max-width: 496px;
    color: #ffffff;
    font-size: 56px;
    line-height: 1.07;
    text-align: center;
    letter-spacing: 0.02em;
}

.first-section {
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/people-office.jpg);
    padding: 188px 0;
    background-color: #2E2F42;
    max-width: 1440px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.button {
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    padding: 16px 32px;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    background: #4d5ae5;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
    background-color: #404bbf;
}

.button:focus {
    background-color: #404bbf;
}

.section-title {
    letter-spacing: 0.02em;
    color: #2E2F42;
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    text-transform: capitalize;
}

.section{
    padding: 120px 0;
}

.properties-container{
    display: flex;
    gap: 24px;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 8px;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    padding: 24px 100px;
}

.prop-item{
    flex-basis: calc((100% - 3 * 24px) / 4);
}

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

.feature-description {
    line-height: 1.5;
}

.portfolio {
    padding: 120px 0;
}

.team {
    padding: 120px 0;
    background-color: #F4F4FD;
}

.section-title{
    margin-bottom: 72px;
}

.card-container{
    display: flex;
    gap: 24px;
}

.person{
    padding: 32px 0;
}

.card {
    background-color: #FFFFFF;
    flex-basis: calc(100%-24*3/4);
    border-radius: 0 0 4px 4px;
    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);
}

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


.social-link{
    position: relative;
    background: #4D5AE5;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.social-link .media-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.type {
    line-height: 1.5;
    margin-bottom: 8px;
}

.person .name, .person .type{
    text-align: center;
}

.app-list{
    display: flex;
    flex-wrap: wrap;
    row-gap: 48px;
    column-gap: 24px;
}

.app-card{
    width: calc((100% - 24*2)/3);
    transition-property: box-shadow;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover{
    cursor: pointer;
    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);
}

.box{
    position: relative;
    overflow: hidden;
}

.overlay{
    padding: 40px 32px;
    color: #F4F4FD;
    letter-spacing: 0.02em;
    line-height: 24px;
    background-color: #4D5AE5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition-property: transform;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card:hover .overlay{
    transform: translate(0);
}

.text{
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

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

.footer-text {
    line-height: 1.5;
    max-width: 264px;
}

.page-footer .page-logo{
    display: inline-block;
    margin-bottom: 16px;
}

.web-logo-footer {
    color: #F4F4FD;
}

.page-footer .container{
    display: flex;
    align-items: baseline;
}


.page-logo-paragraph{
    margin-right: 120px;
}

.footer-social-media{
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 24px;
    color: #fff;
    margin-bottom: 16px;
}

.container-footer-media{
    display: flex;
    gap: 16px;
}

.footer-icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}

.social-item-footer{
    width: 40px;
    height: 40px;
}

.social-link-footer{
    position: relative;
    background-color: #4D5AE5;
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    transition-property: background-color;
    transition-duration: 250ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link-footer:hover, .social-link-footer:focus{
    background-color: #31D0AA;
}

.media-icon {
    fill: #F4F4FD;
}

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





