body {
  font-family: "Roboto", sans-serif;

  margin: 0 auto;
  color: #2E2F42;
}

h1, h2, h3, h4 {
  padding: 0;
  margin: 0;
}
h2 {
  font-size: 36px;
  font-weight: 700;
}
 a {
  color: #2E2F42;
  text-decoration: none;
 }

 a:hover {
  text-decoration: none;
  color: #404BBF;
 }

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

  /* ====================
   header
   ==================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 156px; /* сверху/снизу 24px, слева/справа 156px */
  gap: 75px;
  margin: 0 auto;
  max-width: 1400px; 
}

.header_nav {
  flex: 1; 
  display: flex;
  /* justify-content: center; центрируем меню */
}

.header_list {
 display: flex;
 gap: 0 40px;
}

.header_list a {
  font-weight: 500;
  position: relative; 
  text-decoration: none;
}

.header_list a.active::after {
  content: "";
  border-radius: 2px;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  position: absolute;
  left: 0;
  bottom: -29px;
}
 .active {
  color: #404BBF;
 }

.header_contacts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  color: #434455;
}



.main {

}

  /* ====================
    welcome-section
   ==================== */
.welcome-section {
  background-image: linear-gradient(#2E2F42B2), 
                    url('../img/people-office1.png');
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
  max-width: 1400px; 
  margin: 0 auto;

}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 188px 0 ;
}

.welcome_title {
  text-align: center;
  color: #FFFFFF;
  font-size: 56px;
  margin: 48px;
}
.button-order{
  width: 169px;
  height: 56px;
  background-color: #4D5AE5;
  color: #FFFFFF;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.button-order:hover{
  background-color: #404BBF;
}
/* ====================
   strategy-section
   ==================== */
.strategy-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 120px 120px;
  max-width: 1400px; 
  margin: 0 auto;
}
.frame_icon {
  display: flex;
  justify-content: center; /* по горизонтали */
  align-items: center;     /* по вертикали */
  background-color: #F4F4FD;
  width: 264px;
  height: 112px;
  border-radius: 4px;
  border: 1px solid #8E8F99;
}
.column_icon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 264px;
}
.strategy_text {
  color: #2E2F42;
  max-width: 264px;
}

/* ====================
   team-section
   ==================== */

.team-section {
  background: #f4f4fd;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px; 
  margin: 0 auto;
  
}
.container-team {
  padding: 120px 20px  ;
}
.team-title {
  text-align: center;
  margin: 0 0 72px;

}
.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
}
.team-item {
  background: #FFFFFF;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.team-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}
.team-subtitle {
  padding: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.team-subtitle-text {
  padding: 8px;
  margin: 0;
  font-size: 16px;
  color: #434455;
}
.social-list {
   display: flex;
  flex-direction: row;
  gap: 24px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4d5ae5;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-link:hover {
  background: #40479a;

}
/* ====================
   ourportfolio-section
   ==================== */

.ourportfolio-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto; 

}
.container-ourportfolio {
  margin: 120px 30px;
}
.ourportfolio-title {
  text-align: center;
  margin: 0;
}
.container-portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px 24px;
  margin: 72px 0 0 0;
}
.portfolio-item-wrapper { 
  border-style: solid;
  border-color:#E7E9FC ;
  border-width: 0 1px 1px 1px; /* top right bottom left */
}
.portfolio-subtitle {
  margin: 0;
  padding: 32px 0 0 16px;
  font-weight: 500;
}
.portfolio-subtitle-text {
  margin: 0;
  padding: 8px 0 32px 16px;
  color: #434455;
}
/* .portfolio-list_button:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
} */

.portfolio-item {
  width: 360px;
  overflow: hidden;
  transition: opacity 0.3s ease;

}

.portfolio-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px; /* фиксируем высоту под картинку */
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.portfolio-button1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;


  background-color: #4D5AE5;
  color: #F4F4FD;
  border: none;
  opacity: 0;
  transition: opacity 0.3s ease;

}

.portfolio-image-wrapper:hover .portfolio-img {
  opacity: 0;
}

.portfolio-image-wrapper:hover .portfolio-button1 {
  opacity: 1;
  
}
.portfolio-item:hover {
  
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.button_text {
  text-align: left;
  margin: 40px 32px;
  line-height: 24px;
  font-weight: 400;
}

/* ====================
   footer
   ==================== */
.footer {

}

.footer_container {
  display: flex;
  justify-content: center; /* по горизонтали */
  align-items: center;     /* по вертикали */
  align-items: flex-start;
  flex-wrap: wrap;
  background-color: #2E2F42;
  padding: 91px;
  color: #F4F4FD;
  gap: 20px;
}
.footer_text_logo {
  max-width: 264px;
}
.footer_subtitle_text {
  margin: 16px 0 0 0;
  letter-spacing: 0.5px;
  font-weight: 400;
 
  
}
.footer_social {
  max-width: 208px;
  margin: 0 80px 0 110px;
}
.footer_subtitle {
  margin: 0 0 16px 0;

}
.footer_social_item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

}
.container_button {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.email-input {
  width:264px ;
  height:40px ;
  border: 1px solid #FFFFFF;
  background-color: #2E2F42;
  border-radius: 4px;
  padding: 0 16px ;
}


.footer_button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4D5AE5;
  width: 165px;
  height: 40px ;
  border: none; 
  background-color: #4D5AE5;
  color: #FFFFFF;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;

 
}
.footer_button:hover {

  background-color: #404BBF;
}
.social-link_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4d5ae5;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.social-link_footer:hover {
  background: #31D0AA;
}