body{
font-family: "Roboto", sans-serif;
color: #434455;
background-color: #fff;
}

/* reset */

ul, ol{
list-style-type: none;
margin: 0;
padding: 0;
}

p, h1, h2, h3, h4, h5, h6{
    margin: 0;
}


a{
text-decoration: none;
}
/* common */

.container{
    width:1158px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* hedder */
.header.container{
display: flex;
align-items: center;
}

.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);
}

.hedder-container{
    display: flex;
    align-items: center;
}

.headder-nav {
    display: flex;
    align-items: center;
}

.nav-list{
    display: flex;
    align-items: center;
    gap: 40px;
}

.contacts-list{
    display: flex;
    align-items: center;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.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;
}
.hedder-logo .logo-part{
    color: #2e2f42
}

.hedder-logo{
    padding: 24px 0;
    margin-right: 76px;
    display: flex;
    align-items: center;
}

.nav-link{
display: block;
padding: 24px 0;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #2e2f42;
}

.nav-link.current{
position: relative;
}

.nav-link.current::after{
        content: "";

        position: absolute;
        left:0;
        bottom: -1px;
        border-radius: 2px;

        width: 100%;
        height: 4px;

        background-color: #404bbf;

}

.contacts{
margin-left: auto;
font-style: normal;
}

.contacts-list{
    display: flex;
    align-items: center;
    gap: 40px;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-link{
padding: 24px 0;
display: block;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}

.nav-link:hover,
.nav-link:focus,
.contacts-link:hover,
.contacts-link:focus,
.nav-link.current{
color: #404bbf;
}

/* main */

.main-title{
margin: 0 auto 48px;
font-weight: 700;
font-size: 56px;
line-height: 1.07;
letter-spacing: 0.02em;
text-align: center;
color: #fff;
max-width: 496px;
margin-bottom: 24px;
}

.main-title-but{
display: block;
align-items: center;
min-width: 169px;
height: 56px;    
font-weight: 500;
line-height: 1.5;
border: none;
border-radius: 4px;
letter-spacing: 0.04em;
cursor: pointer;
color: #ffffff;
background-color: #4d5ae5;
margin: 0 auto;
}



.main-section{
padding: 188px 0;
text-align: center;
background-color: #2e2f42;
background-image: linear-gradient(
rgba(46, 47, 66, 0.7),rgba(46, 47, 66, 0.7)
),
url("../images/people-office.jpg");
max-width: 1200px;
margin: 0 auto;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

.main-title-but:hover,
.main-title-but:focus{
background-color: #404bbf;
}

/* first-section */

.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;
}

.first-section{ 
padding: 120px 0;
}

.first-section-list{
display: flex;
align-items: center;   
gap: 24px;
row-gap: 48px;  
}

.section-title{   
margin-bottom: 8px;    
font-weight: 700;
font-size: 36px;
line-height: 1.11;
letter-spacing: 0.02em;
text-align: center;
text-transform: capitalize;
color: #2e2f42;
}
.paragraph-title{
margin-bottom: 8px;
font-weight: 500;
font-size: 20px;
line-height: 1.2;
letter-spacing: 0.02em;
color: #2e2f42; 
}

.paragraph-text{
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #434455;
}

.first-section-item{
width: calc((100% - 72px) / 4);
}

.icons{
border: 1px solid #8e8f99;
    border-radius: 4px;
    width: 264px;
    height: 112px;
    display: flex;
    align-items: center;
    background: #f4f4fd;
    justify-content: center;
    margin: 0 auto 32px;        
}


/* second-section */

.second-section{ 
padding: 120px 0;
background-color: #f4f4fd;
}

.second-section-container{ 
padding: 32px 0;
}

.second-title{
margin-bottom: 72px;
}

.second-section-list{
display: flex;
align-items: center; 
gap: 24px;
}

.second-paragraf{
margin-bottom: 8px;
text-align: center  
}

.second-paragraph-text{
text-align: center
}

.second-section-item{
width: calc((100% - 72px) / 4);
border-radius: 0px 0px 4px 4px;
background-color: #fff;      
}


/* third-section */
img{
    display: block;
}
.picture{
display: block;
}

.third-section-list{
flex-wrap: wrap;
display: flex;
align-items: center;  
gap: 24px;  
row-gap: 48px;
}

.second-section-item:last-child {
    margin-right: 0;
}

.third-section{
padding: 120px 0;
}

.third-section-item{
width: calc((100% - 48px) / 3);
border-radius: 0px 0px 4px 4px;    
background-color: #ffffff;
}

.conteiner-third{
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
   }

   .third-title{
    margin-bottom: 8px;
   }
 
/* footer */

.page-footer{
background-color: #2e2f42;
padding: 100px 0
}

.footer-text{
width: 264px;
font-weight: 400;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #f4f4fd;
}

.logo-part{
display: inline-block;
}

.footer-logo .logo-part {
    margin-bottom: 16px;
    color: #f4f4fd;
}

.footer-logo{
display: inline-block;
margin-bottom: 16px;
}