*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --white-color: #FFFFFF;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* main container */
.container {
   /* ширина макету (може бути 1200px чи інша в Figma) */
  margin: 0 auto; /* автоматичні відступи зліва і справа */
 
      padding-left: 15px;
      padding-right: 15px;
      max-width: 1158px;
     
    }


body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  background-color: #ffffff;
  font-weight: 400; /* за замовчуванням звичайний */
  margin: 0; /* прибираємо відступи браузера */
 
}
.img {
  display: block; /* робимо блоковим */
  max-width: 100%; /* не виходить за межі контейнера */
  height: auto; /* зберігає пропорції */
  
}

.text-color {
  color: #2e2f42;
  text-decoration: none;
  padding-top: 24px;
  padding-bottom: 24px;
}
.text-color:hover {
  color: #404bbf;
}
.text-color:focus {
  color: #404bbf;
}
/* хедер */
.header {
  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);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  width: 1158px;
  margin: 0 auto;
}

/* ---------- logo ---------- */
.logo {
  margin-right: 76px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  text-decoration: none;
}
.logo-web {
  color: #2e2f42;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding-top: 24px;
  padding-bottom: 24px;
  color: #2e2f42;
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* активне посилання */
.active-link {
  position: relative;
  color: #404bbf;
}

.active-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  background-color: #404bbf;
  border-radius: 2px;
}

/* ---------- contacts ---------- */
.contacts {
  font-style: normal;
}
.contacts-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contacts-item {
  color: #434455;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-item:hover,
.contacts-item:focus {
  color: #404bbf;
}



/* hero-block */
.hero {
  display: flex;
  flex-direction: column; /* елементи підряд (заголовок і кнопка) */
  justify-content: center; /* по вертикалі */
  align-items: center; /* по горизонталі */
  text-align: center; /* щоб текст був по центру */
  min-height: 600px; /* або 100vh, якщо треба на весь екран */
  background-color: #2e2f42;
  color: #ffffff;
  padding: 188px 0; 


 background-image: 
  linear-gradient(to bottom, rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)),
  url("../images/people-office-1.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
 max-width: 1440px; 
 margin: 0 auto;

}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* вирівнює кнопки і текст по центру */

}

.hero-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 496px;
  margin-bottom: 48px; 
  
}

.hero-btn {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ffffff;
  min-width: 169px;
  height: 56px;
  border: none;
  background-color: #4d5ae5;
  border-radius: 4px;
  cursor: pointer;
  display: block;
 margin: 0;
 transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn:hover {
  background-color: #404bbf;
}
.hero-btn:focus {
  background-color: #404bbf;
}

/* Features-block */

.features {
  padding-top: 120px;
  padding-bottom: 120px;
  font-family: "Roboto", sans-serif;
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.features-item {
  flex: 1;
}

/* 🔹 Основний контейнер для іконки */
.features-item-icon {
  display: flex; /* ✅ для позиціювання елемента */
  align-items: center; /* ✅ вирівнювання по вертикалі */
  justify-content: center; /* ✅ вирівнювання по горизонталі */
  height: 112px; /* ✅ висота блоку */
  background-color: #f4f4fd; /* ✅ фон */
  border-radius: 4px; /* ✅ закруглення */
  border: 1px solid #8e8f99; /* ✅ рамка */
  margin-bottom: 8px; /* ✅ відступ під іконкою */
}

/* 🔹 Стилі для svg */
.features-item-icon svg{
  width: 64px; /* ✅ ширина */
  height: 64px; /* ✅ висота */
}

/* 🔹 Текст */
.features-item-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  font-weight: 500;
  margin-bottom: 8px;
}

.features-item-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  overflow: hidden;
  white-space: nowrap;
}



/* Team-block */
.team {
  padding: 120px 0;
  background-color: #f4f4fd;
  text-align: center;
}

.team-title {
  margin-bottom: 72px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

.team-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-item {
  background-color: #ffffff;
  border-radius: 0 0 4px 4px;
  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);
  width: 264px;
  overflow: hidden;
}

.team-img {
  display: block;
  width: 100%;
  height: auto;
}

.team-content {
  padding: 32px 0;
}

.team-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.team-role {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  margin-bottom: 8px;
}
.social-link-team:hover,
.social-link-team:focus {
    background-color: #404BBF; 
}

.social-link-team {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color, #4d5ae5);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* соцмережі */
.team .social-list{
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  
  
}

.team .social-item {
  width: 40px;
  height: 40px;
}

.social-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color, #4d5ae5);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}




.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--light-color, #f4f4fd);
  
}

/* Секція Portfolio */
.projects {
  padding-top: 120px; 
  padding-bottom: 120px; 
}

.projects-title {
  font-family: "Roboto",sans-serif;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #2e2f42;
  margin-bottom: 72px;
  font-weight: 700;
  
  
}

.projects-list {
  flex-wrap: wrap;
  display: flex;
  list-style: none;
  margin: 0 auto;
column-gap: 24px; 
  justify-content: center;
  row-gap: 48px; 
  padding-left: 0;

}

.projects-item {
  background-color: #ffffff;
width: calc((100% - 48px) / 3); 
transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  
  
  
  
}

.projects-subtitle {
   font-family: "Roboto",sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
 margin-bottom: 8px;
 

  
}

.projects-text {
    font-family: "Roboto",  sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
 

}
.projects-card {
  padding: 32px 16px;
  border: 1px solid #e7e9fc;
  border-top: none;
}



.projects-thumb {
  position: relative;
  overflow: hidden;
}


.projects-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #4d5ae5;
  color: #f4f4fd;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 32px;
  text-align: left;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-text {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 32px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd; /* або змінна */
  background-color: #4d5ae5;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;

}

.projects-item:hover .projects-overlay {
  opacity: 1;
  transform: translateY(0%);
 
}
.projects-item:hover {
  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);
}
.projects-item:hover .overlay-text {
  transform: translateY(0%);
}

/* футер */
:root {
  --white-color: #FFFFFF;
}
.footer {
  background: #2e2f42;
  font-family: "Roboto", "Raleway", sans-serif;
  padding: 100px 0;
}

.footer-container {
  display: flex;
  align-items: baseline;
  max-width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-content {
  display: flex;               /* 🔹 додаємо */
  flex-direction: column;      /* 🔹 розташовуємо елементи вертикально */
  max-width: 500px;
  margin-right: 120px;
}

.logo-footer {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4d5ae5;
  text-decoration: none;
  margin-bottom: 16px;         /* 🔹 тепер працює */
}

.logo-webs {
  color: #f4f4fd;
}

.text-footer {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
 
 
  color: var(--white-color);

  max-width: 264px;
  margin-bottom: 16px;
}

/* блок соцмереж */
.social-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-social {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #FFFFFF ;
  margin-bottom: 16px;
}

/* список іконок */
.social-list {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-item  {
  width: 40px;
  height: 40px;
}
.social-icon-item {
  width: 24px;
  height: 24px;
  fill: var(--light-color, #f4f4fd);
  
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color, #4d5ae5);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}




.social-link:hover,
.social-link:focus {
    background-color: #31d0aa;
}





