* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Raleway";
  font-weight: 700;
}

/* .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        } */

/* Header */
header {
  position: relative;
  height: 100vh;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 20px; */
  z-index: 40;
  /*сделано для кружочков*/
}

.intro {
  position: relative;
  height: 100vh;
  overflow: hidden;
  z-index: 40;
}

.intro::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.header-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 40px 30px;
  z-index: 3;
}

.menu-toggle {
  /* width: 30px;
            height: 5px; */
  width: 40px;
  height: 8px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: 30px;
  margin-top: 20px;




}

.logo {
  max-width: 213px;
  /* Максимальная ширина */
  height: auto;
  /* Автоматическая высота для сохранения пропорций */
  /* margin-top: 40px;
            margin-right: 30px; */
}


.hero-content {
  text-align: center;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: white;
}

.hero-title {
  font-family: Raleway;
  font-weight: 700;
  font-style: Bold;
  font-size: 80px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;




  margin: 0;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-weight: 500;
  font-style: Medium;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;


  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -351px;
  width: 351px;
  height: 100vh;
  /* height: 55vh;*/
  background-color: #404040;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 30px 30px 20px;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}



.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  /* отступ от меню */
  width: 100%;
}




.close-btn {
  /* position: absolute; */
  /* top: 20px;
            left: 30px; left: 20px; */
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.image-menu {
  height: 50px;
  /* или как в макете */
  width: auto;
  display: block;
  transform: rotate(-139.37deg);
  margin-right: -24px;
  margin-top: -10px;

  /* Если нужно ограничить max-width — добавьте */
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 20px;
  /*15 px */
}

.mobile-menu a {
  font-family: "Raleway", sans-serif;
  /* font-optical-sizing: auto; */
  font-size: 20px;
  font-weight: 700;
  font-style: normal;


  color: #fff;
  text-decoration: none;


  display: flex;
  align-items: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  color: #3498db;
  padding-left: 15px;
}

.mobile-menu a::before {
  content: "►►";
  margin-right: 10px;
  font-size: 20px;
}






.fone {
  background-image: url('../img/pattern.png');
  background-repeat: repeat;
  /* узор будет повторяться по всей странице */
  background-size: auto;
  /* не масштабировать, если это бесшовный паттерн */
  background-position: top left;
  background-attachment: fixed;
  /* ← ЭТО КЛЮЧЕВОЕ СВОЙСТВО */
  margin: 0;
  padding: 0;
}


/* Общий стиль для любого раздела */
.team-section {
  position: relative;
  /* min-height: 100vh;  */
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 20px; */
  box-sizing: border-box;
  /* overflow: hidden; */
}

.content-wrapper {
  /* max-width: 1720px; */
  max-width: 92%;
  width: 100%;
  background-color: rgb(237, 242, 242);
  box-sizing: border-box;
  z-index: 1;
}




/* Сетка команды */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 0px;
  justify-items: center;

  padding: 150px 190px 200px;
}

/* Карточка */
.team-card {
  display: block;
  flex-direction: column;
  align-items: center;
  padding: 20px 0px;
  width: 100%;
  max-width: 300px;
}

.team-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h3 {
  font-family: Raleway;
  /* margin: 10px 0 5px; */
  color: #000;

  font-family: Exo 2;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0%;

}

.position {

  color: #666;
  /* margin: 5px 0; */


  font-family: Exo 2;
  font-weight: 300;
  font-style: Light;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0%;

}

.role {


  color: #000;
  /* margin: 5px 0; */
  font-family: Exo 2;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0%;

}

.vk-link {
  margin-top: 10px;
  display: inline-block;
}

.vk-icon {
  width: 40px;
  height: 40px;
  filter: grayscale(1) brightness(2);
  /* иконка VK белая */
}


/* Кружки сверху справа 
.content-wrapper::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -100px;
  transform: rotate(0deg);
  width: 451.5px;
  height: 292.5px;

  background-image: url('../img/team-page/rounds.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
*/


.content-wrapper::before {
  content: "";
  position: absolute;
  top: 500px;
  left: 30px;
  transform: rotate(0deg);
  width: 252px;
  height: 226.5px;

  background-image: url('../img/team-page/round.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.content-wrapper::after {
 content: "";
  position: absolute;
  bottom: -50px;
  right: 150px;
  transform: rotate(0deg);
  width: 432px;
  height: 252px;

  background-image: url('../img/team-page/crystal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.text-block {
  max-width: 70%;
  margin: auto;
  margin-bottom: 60px;
}

.text-block .standard-text {
  text-align: left;
  color: #000000;
  margin-top: 20px;

  font-family: Exo 2;
  font-weight: 500;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0%;
}

.bold-text {
  margin-top: 60px;

  text-align: left;
  color: #000000;

  font-family: Raleway;
  font-weight: 700;
  font-style: Bold;
  font-size: 22px;
  line-height: 20px;
  letter-spacing: 0%;
}

.text-block .italic-text {
  text-align: left;
  color: #000000;
  margin-top: 40px;

  font-family: Exo 2;
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  line-height: 20px;
  letter-spacing: 0%;

}








/* FOOTER */

.site-footer {
  position: relative;
  background-color: #404040;
  /* тёмно-серый фон */
  padding: 100px 0px;
  text-align: center;
  color: white;
  font-family: Raleway, sans-serif;
  z-index: 40;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  max-width: 213px;
  width: 100%;
  height: auto;
  /* если логотип не белый — можно сделать ярче */
}

.footer-copyright {
  font-family: Raleway;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;

  margin: 0;
}


@media(max-width: 1440px){
    .content-wrapper::before, .content-wrapper::after {
    display: none;
    /* скрываем декорации на мобильных */
  }

  .team-grid {
    /* можно уменьшить отступы */
    padding: 60px 20px 120px;
  }
}


@media (max-width: 1280px) and (min-width: 1025px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .team-grid {
    /* можно уменьшить отступы */
    padding: 60px 0px;
  }

  .content-wrapper::before {
    display: none;
    /* скрываем декорации на мобильных */
  }



}




@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }


  .team-card {
    text-align: left;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    /* одна колонка */
    gap: 30px;
    /* можно уменьшить отступы */
    padding: 60px 0px;
  }

  .team-photo {
    max-width: auto;
    /* уменьшаем размер на мобильных */
  }

  /* .fone {
    background-image: none;
    background-color: rgb(237, 242, 242);
  } */

  .content-wrapper::before, .content-wrapper::after {
    display: none;
    /* скрываем декорации на мобильных */
  }

  .text-block {
    max-width: 80%;
  }
}











/* Адаптивность — мобильные устройства */
@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }


  /* header */
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle .force-break {
    display: block;
  }


  .hero-subtitle {
    font-size: 1.8rem;
    line-height: 1.3;
    /* немного увеличьте для читаемости */
  }

  .mobile-menu {
    width: 100%;
    left: -100%;
  }

  /* .header-top {
                padding: 10px 0;
            } */

  /* .logo {
                height: 40px;
            } */

  .section-title {
    font-size: 2rem;
  }

  .menu-toggle {
    margin-left: 30px;
    margin-top: 20px;
  }

  .logo {
    max-width: 170px;
    /* min-width: 140px;
    min-height: 50px; */
    margin-top: 15px;
  }

  .fone {
    background-image: none;
    background-color: rgb(237, 242, 242);
  }

  .team-card {
    text-align: left;
  }



  .team-grid {
    grid-template-columns: 1fr;
    /* одна колонка */
    gap: 30px;
    /* можно уменьшить отступы */
    padding: 60px 0px;
  }

  .team-photo {
    max-width: auto;
    /* уменьшаем размер на мобильных */
  }

  .text-block .standard-text,
  .text-block .italic-text {
    font-size: 16px;
    line-height: 22px;
    margin-top: 24px;
  }

  .bold-text {
    margin-top: 32px;
    font-size: 18px;
    line-height: 22px;
  }
}


/* маленькие экраны */
@media (max-width: 480px) {


  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .hero-title {
    position: relative;
    font-size: 2.8rem;

  }

  .hero-subtitle .force-break {
    display: block;
  }


  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.3;
    /* немного увеличьте для читаемости */
  }


  .team-card {
    text-align: left;
  }



  .team-grid {
    grid-template-columns: 1fr;
    /* одна колонка */
    gap: 30px;
    /* можно уменьшить отступы */
    padding: 0px;
  }

  .team-photo {
    max-width: auto;
    /* уменьшаем размер на мобильных */
  }


  .content-wrapper::before, .content-wrapper::after {
    display: none;
    /* скрываем декорации на мобильных */
  }

  .text-block {
    max-width: 100%;
  }

  .text-block .standard-text {
    margin-top: 10px;
  }
}