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

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    border-bottom: 1px solid #E7E9FC;
}

.nav-block {
    display: flex;
    gap: 40px;
    align-items: center;
}
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #434455;
    background-color: #FFFFFF;
}
.page-header {
    background-color: #FFFFFF;
    padding: 0;
    border-bottom: 1px solid #E7E9FC;
    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);
}
.page-header .container {
    width: 1440px;
    height: 72px;
    display: flex;
}
a {
    text-decoration: none;
    color: #2E2F42;
}
.logo {
        font-family: Raleway, sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.17;
        color: #4D5AE5;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-right: 76px;
        display: inline-block;
        padding-bottom: 24px;
        padding-top: 24px;
        padding-right: 0;
        padding-left: 0;
   
}
.logo-black{
    display: inline-block;
    padding-bottom: 24px;
    padding-top: 24px;
    padding-right: 0;
    padding-left: 0;
    color: #2E2F42;
}



.page-nav {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    margin: 0;
}
.nav-block .link {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        padding-bottom: 24px;
        text-decoration: none;
        display: block;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 24px 0;
        position: relative;
        color: #2E2F42;
}

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

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

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

.contacts-list {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contacts {
    font-style: normal;
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    flex-direction: row;
    justify-content: flex-end;
    align-content: center;
   
}
.contact-link {
    list-style: none;
    background-color: #FFFFFF;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-section {
    margin: 0 auto;
    background-color: #2E2F42;
    padding: 188px 0;
    text-align: center;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/hero.jpg);
    background-size: cover;
    background-position: center;
    max-width: 1440px;
    background-repeat: no-repeat;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.hero-title {
        font-weight: 700;
        font-size: 56px;
        line-height: 1.07;
        letter-spacing: 0.02em;
        color: #FFFFFF;
        text-align: center;
        text-transform: capitalize;
        max-width: 496px;

}
.hero-button {
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    width: 169px;
    height: 56px;
    opacity: 1;
    top: 428px;
    left: 636px;
    gap: 10px;
    border: none;
    box-sizing: border-box;
    display: block;
    min-width: 169px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 48px;
    border-radius: 4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
 
}
.hero-button:hover, .hero-button:focus {
    background-color: #404bbf;
}

.services {
    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;
}
.container-flex {
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

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

.services-list {
    width: calc((100% - 72px) / 4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



.services-list .icon-wrapper {
    width: 264px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4fd;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 1;
}

svg .icon {
    width: 64px;
    height: 64px;
    fill: #2e2f42;
    color: #4a4aef;
    align-items: center;
    display: block;
    margin-left: auto;
    margin-right: auto;     
}

.services-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}
.team {
    background-color: #f4f4fd;
    padding: 120px 0;

}
.team-title {
    color: #2E2F42;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 72px;
}
.team-list-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    
}
.team-member {
    font-family: Roboto;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 8px;

}
.team-member-role {
    font-family: Roboto;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
    text-align: center;
    margin-bottom: 8px;
}
.team-member,
.team-member-role {
    text-align: center;
    width: 100%;
}

.team-member-container {
    padding: 32px 0;
}
.team-list {
    background-color: #FFFFFF;
    color: #2E2F42;
    width: 264px;
    flex-direction: column;
    align-items: center;
    border-radius: 0px 0px 4px 4px;
    border-radius: 0px 0px 4px 4px;
    box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 1px 1px rgba(46, 47, 66, 0.16), 0 1px 6px rgba(46, 47, 66, 0.08);
}

.team-list img {
    width: 264px;
    height: 260px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    display: block;
}

.icons-social-links-team {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;

}
.icons-social-links li {
    display: flex;
    align-items: center;

}

.links-social-media-icon {
    width: 40px;
    height: 40px;
    background-color: #4d5ae5;
    border-radius: 50%;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}   

.links-social-media-icon:hover, .links-social-media-icon:focus {
    background-color: #404bbf;
}


svg .icon-social-links {
    width: 16px;
    height: 16px;
    fill: #f4f4fd;
    color: #FFFFFF;   
}

.icon-social-links {
        fill: #f4f4fd;
    }

.media-icon-list {
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    }

.portfolio {
    padding-top:120px;
    padding-bottom: 120px;
}
.portfolio-title {
    font-family: Roboto;
    color: #2E2F42;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 72px;
}
.portfolio-list-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    row-gap: 48px;
}
.portfolio-item-container {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}
.portfolio-item {
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
}

.portfolio-item:hover {
    transform: translateY(0%);
    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-item:hover .app-text {
    transform: translateY(0%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item img {
    width: 360px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.container-app {
position: relative;
overflow: hidden;
transform: translateY(0%);


}

.app-text {
      position: absolute;
      top: 0;
      font-size: 16px;
      line-height: 1.5;
      letter-spacing: 0.02em;
      color: #f4f4fd;
      padding: 40px 32px;
      background-color: #4d5ae5;
      height: 100%;
      width: 100%;
      transform: translateY(100%);
      transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

    }


.portfolio-item-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2E2F42;
    margin-bottom: 8px;
}
.portfolio-item-description {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

.portfolio-item-title,
.portfolio-item-description {
    text-align: left;
    width: calc(100% - 32px);
}


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

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

}

.logo-footer {  
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    color: #4D5AE5;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}
.logo-footer-white {
    color: #f4f4fd;

}
.footer-description {
    color: #f4f4fd;
    letter-spacing: 0.02em;
    line-height: 1.5;
    width: 264px;
}
.footer-media-title {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin-bottom: 16px;
    width: 96px;
    height: 24px;
    opacity: 1;
    top: 3256px;
    left: 540px;
    text-align: center;
}

.footer-media {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.icons-social-links-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
        align-items: center;
        padding: 0;
            margin: 0;
            padding: 0;
            margin: 0;

}
    

.footer-media-icons {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.logo-footer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 120px;
}

.icon-social-links  {
    list-style: none;
 }

 .icon-social-links a {
     display: flex;
     padding: 10px;
     background-color: #4d5ae5;
     border-radius: 50%;
     transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
     
 }
 
 .links-social-media-footer {
        width: 40px;
        height: 40px;
        background-color: #4d5ae5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);

   } 

   .links-social-media-footer:hover, .links-social-media-footer:focus {
        background-color: #31d0aa;

    }

 .links-social-media-footer:hover,.links-social-media-footer:focus {
            background-color: #31d0aa;    
        
 }
 
 .icon-footer {
        fill: #f4f4fd;
        width: 24px;
        height: 24px;

 }
            