* {
  box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, p{
  margin: 0;
}
ul{
  list-style-type: none;
  margin: 0;
  padding: 0;
}
body{
   background-color: #ffffff;
    font-family: "Roboto", sans-serif; 
    color: #434455;
    line-height: 1.5;
    
    
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container{
  margin: 0 auto;
  padding: 0 15px;
  width: 1158px;
  



}
section{
  padding-bottom: 120px;
  padding-top: 120px;
}
/* Header*/
.header{ 
  border-bottom: 1px solid #E7E9FC;
}
.header-container{
  display: flex;
  align-items: center;
}

.menu{
  display: flex;
  align-items: center;
}
.logo{
  margin-right: 76px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #4d5ae5 ;
  line-height: 1.17;
  letter-spacing: 0.03em;
  font-size: 18px;
  text-transform: uppercase;
  
}
.logo-accent{
  color: #2E2F42;
  font-family: "Roboto", sans-serif;
}


.nav-list{
  list-style-type: none;
  display: flex;
  gap: 40px;
  
}

.nav-link{
  display: block;
  padding: 24px 0;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #2E2F42;
  letter-spacing: 0.02em;


}
.nav-link:hover,
.nav-link:focus {
  color: #404BBF;
}
.nav-link.active{
 
}
.nav-link.active:hover,
.nav-link.active:focus,
.nav-link.active :active{
  color: #404BBF;
  text-decoration: underline;
}
  

address{
  font-style: normal;
  margin-left: auto;
  
}
.address-list{
  list-style-type: none;
  display: flex;
  gap: 40px;
 
  
}
.contact-link{
  
  color: #434455;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-style: normal;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-link:hover,
.contact-link:focus{
  color: #404BBF;
}
 
/* Hero-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;
}
  .hero{
    background-color: #2E2F42;
   padding-top: 188px; 
  padding-bottom: 188px
  
 
  } 


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


  }
  .hero-btn {
    font-family: "Roboto", sans-serif;
    background-color: #4D5AE5;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: 500;
   min-width: 169px;
   min-height: 56px;
   border-radius: 4px;
   border: 1px solid transparent;
   padding: 16px 32px;
   display: block;
   margin: 0 auto ;
   border: none;
   
    
    
  
  }
 .hero-btn:hover,
 .hero-btn:focus{
    background-color: #404BBF;
    

  }
  /* Fetures-section */
  .features-item{
    width: 264px;
    text-align: left;
  }
  .features-list{
    list-style: none;
    display: flex;
    gap: 24px;
    justify-content: center;
    
  }
 
.features-title{
  
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #2E2F42;
  line-height: 1.2;
  margin-bottom: 8px;
}
.features-text{

  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  font-size: 16px;
}
/* Team-section */
.team{
  background-color: #F4F4FD;
  
}
.card-text{
  padding: 32px 0;
  text-align: center;
  

}
.team-card{
  
  
}
.team-list{
  list-style: none;
  display: flex;
  gap: 24px;
 
  
}
.team-title{
  font-size: 36px;
  letter-spacing: 0.02em;
  color:#2E2F42;
  text-align: center;
  line-height: 1.11;
  text-transform: capitalize;
  margin: 0 auto 72px;
}
.team-item{
  background-color: #ffffff;
  width: 264px;
   border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  
}
.name-team{
  
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #2E2F42;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center
}
.team-text{
  color: #434455;
  
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  
}
/* Portfolio-section */

.portfolio-title{
color: #2E2F42;
font-size: 36px;
letter-spacing: 0.02em;
text-align: center;
line-height: 1.11;
text-transform: capitalize;
margin: 0 auto 72px;
}
.wrapper{
  padding: 32px 16px;
  border: 1px solid #E7E9FC;
   border-top: none;
}
.portfolio-card{
    display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
 .portfolio-list{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
  padding: 0;
  margin: 0;
 }
 

 
 .portfolio-item{
  background-color: #ffffff;
  width: calc((100% - 48px) / 3);
 }
 .portfolio-item h3{
  margin-bottom: 8px;
 }
 .portfolio-item p{
  margin: 0;
 }
 
 .gruppe-portfolio{
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #2E2F42;
  line-height: 1.2;
  margin-bottom: 8px;
  
 }

 .portfolio-text{
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  margin: 0;
 }
/* Footer */
.site-footer {
  background-color: #2E2F42;
  padding: 100px 0;
}

.footer-link {
  display: inline-block;   
  margin-bottom: 16px;     
  text-decoration: none;
  font-size: 18px;
  line-height: 1.17;
  text-transform: uppercase;
  font-family: "Raleway", sans-serif;
}

.logo-main {
  color: #4D5AE5;          
}

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

.footer-paragraph {
  max-width: 264px;
  color: #F4F4FD;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
 
}