* {
  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;
}

.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;
  line-height: 1.3;

  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;
}


/* Общий стиль для любого раздела */
.organizers-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;
}

.section-title {
  font-family: Raleway;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
  padding-top: 60px;
}

/* Сетка организаторов */
.organizers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 0px;
  width: 100%;
  justify-items: center;
  width: 100%;
  padding: 10px 150px 100px;
}

/* Карточка организатора */
.organizer-card {
  
  display: block;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;

  text-decoration: none;
}


.organizer-card:hover h3,
.organizer-card:hover p {
  color: #283687; 
}

.organizer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
}



.organizer-card h3 {
  font-family: Exo 2;
  font-weight: 500;
  font-style: Medium;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 10px;

  color: rgba(0, 0, 0, 1);

}


.organizer-card p {
  font-family: Exo 2;
  font-weight: 300;
  font-style: Light;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: rgba(0, 0, 0, 1);
  margin: 0;
}


.partners-title {
  font-family: Raleway;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px;
  color: #000;
}

.partner-link {
  text-decoration: none;
}

.partner-link:hover {
  color: #283687;
}

/* Заставляем заголовки и параграфы наследовать цвет от родительской ссылки при наведении */
.partner-link:hover h3,
.partner-link:hover p {
  color: inherit; /* или напрямую color: #283687; */
}

/* 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: 1280px) and (min-width: 1025px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .organizers-grid{
    gap: 50px 0px;
    padding: 0;
    padding: 10px 100px 80px;
  }

}


@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 20px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }


  .organizers-grid {
    grid-template-columns: 1fr; /* одна колонка */
    gap: 30px;
  }

  .organizer-logo {
    max-width: 170px;
  }


    .organizer-card h3 {
    font-size: 1.7rem;
  }

  .organizer-card p {
    font-size: 1.2rem;
  }
}



/* Адаптивность — мобильные устройства */
@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 {
    font-size: 1.8rem;
    line-height: 1.3;
    /* немного увеличьте для читаемости */
  }



  .mobile-menu {
    width: 100%;
    left: -100%;
  }

  /* .header-top {
                padding: 10px 0;
            } */

  /* .logo {
                height: 40px;
            } */

  .section-title,
  .partners-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;
  }


  .background-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
    max-width: 95%;
  }




  .organizers-grid{
    padding: 0;
    padding-bottom: 40px;
  }

  .section-title,
  .partners-title {
    font-size: 24px;
    padding-top: 30px;
    margin-bottom: 30px;
  }

  .organizers-grid {
    grid-template-columns: 1fr; /* одна колонка */
    gap: 30px;
  }

  .organizer-card {
    padding: 15px;
  }

  .organizer-logo {
    max-width: 150px;
  }

  .organizer-card h3 {
    font-size: 1.5rem;
  }

  .organizer-card p {
    font-size: 1rem;
  }

}

/* маленькие экраны */
@media (max-width: 480px) {
  .hero-content {
    width: 100%;
    max-width: none;
    /* сбрасываем возможные ограничения */
    padding: 10px;
    /* если нужно — оставляем отступы */
    box-sizing: border-box;
    /* чтобы padding не увеличивал ширину */
  }

  .hero-title {
    position: relative;
    font-size: 2.8rem;

  }

  .hero-subtitle {
    font-size: 1.2rem;
    /* ≈ 21px */
    line-height: 1.4;
  }

  .section-title,
  .partners-title {
    font-size: 1.5rem;
  }

  .section-content p {
    font-size: 1rem;
  }


  .fone {
    background-image: none;
    background-color: rgb(237, 242, 242);
  }


  .site-footer {
    padding: 50px 0px;
  }

  .footer-logo {
    max-width: 180px;
  }

  .footer-copyright {
    font-size: 16px;
  }

}