html {
    scroll-behavior: smooth;
}

body{
    font-family: "Roboto", sans-serif;
    color: #434455;
    background-color:#fff;
}


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

a {
    text-decoration: none;
}

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

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

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

                                           /* heder */

.header-page{
    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;
}

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

.header-navigation-list{
    display: flex;
    align-items: center;
    gap: 40px;
    
}

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

.logo{
    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 .header-logo-std{
 color: #2e2f42;
        }

 .logo .footer-logo-std{
    color: #f4f4fd;
 }

 

.header-links{
    display: block;
    padding: 24px 0;
    font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #2e2f42;
        transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
        }

.header-links.current{
    color: #404bbf;
    position: relative;
}

.header-links.current::after{
content: '';
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 4px;
background-color: #404bbf;
border-radius: 2px;
}

.contacts{
    font-style: normal;
    margin-left: auto;
}

.contacts-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contacts-link{
display: block;
padding: 24px 0;
 font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-links:hover,
.header-links:focus,
.contacts-link:hover,
.contacts-link:focus,
.header-links.header-link-studio
{
    color: #404bbf;
}
                                         /* hero-main */



.hero{ 
    background-color: #2e2f42;
    padding-top: 188px;
    padding-bottom: 188px;
    margin: auto;
    max-width: 1440px;
    background-image:
    linear-gradient(rgba(46, 47, 66, 0.7),
            rgba(46, 47, 66, 0.7)), url(../images/hero-fon.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    }

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

.btn{
   display: block;
   margin: 0 auto;
   border: none;
    border-radius: 4px;
        padding: 16px 32px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
        background-color: #4d5ae5;
        cursor: pointer;
        color: #fff;
        font-weight: 500;
            font-size: 16px;
            line-height: 1.5;
            letter-spacing: 0.04em;
        transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover,
.btn:focus{
    background-color: #404bbf;
}

                           /*features*/

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

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

.features-info{
text-align: center;
}

.features-list{
 display: flex;
 gap: 24px;
 
}

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

.features-item{
    width: calc((100% - 24px * 3) / 4);
}

.features-icon{
    fill: #2e2f42;
}

.features-icon-svg{
display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #8e8f99;
        border-radius: 4px;
        height: 112px;
        background-color: #f4f4fd;
}

.hero-text{
    font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
}
                       
                         /* section-team */


.section-team{
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #f4f4fd;
}

.team-inf{
    padding-bottom: 72px;
    font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
}
.team-inf-list{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    
}

.team-inf-intem{
    width: calc((100% - 24px * 3) /4);
background-color: #ffffff;
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);
}

.card{
    display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        padding: 32px 16px;
}

.team-name{
     font-weight: 500;
        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
}

.team-prof{
    font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        text-align: center;
        color: #434455;
}

.icon-social-team{
display: flex;
align-items: center;
    justify-content: center;
    flex-direction: row;
    
}

.icon-social{
display: flex;

fill: #f4f4fd;
}

.icon-social-list{
    display: flex;
    gap: 24px;
}

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

.icon-social-item{
    display: flex;
}

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



                          /* section-prtf" */

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


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

.prtf-intem{
    width: calc((100% - 24px * 2) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.prtf-img-container{
    position: relative;
    overflow: hidden;
}

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

.prtf-intem:hover .prtf-text-container{
    transform: translateY(0);
    }

.prtf-intem:hover,
.prtf-intem:focus{
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);
}

.prtf-info{
    padding-bottom: 72px;
    font-weight: 700;
        font-size: 36px;
        line-height: 1.11;
        letter-spacing: 0.02em;
        text-align: center;
        color: #2e2f42;
}

.card-portfolio-text{
display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    border: 1px solid #e7e9fc;
        border-top: none;
    padding: 32px 16px;
}

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

.prtf-text{
    font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #434455;
}

                         /* footer */
   
 .footer-logo{
    padding: 0;
    margin: 0;
 }                        
.footer-page{
    padding-top: 100px;
    padding-bottom: 100px;
background-color: #2e2f42;
}

.footer-text{
    margin-top: 16px;
    max-width: 264px;
    font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.02em;
        color: #f4f4fd;
}

.footer-social-text{
    display: flex;
font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #fff
}

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

.footer-social{
    display: flex;
    flex-direction: column;
    margin-left: 120px;
}

.footer-icon-list{
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
}

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

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