* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
}

.scroll-trigger {
  height: 800vh;

}

.canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.static-content .content-section .video-bg-content p {
  font-size: 2.5rem;
  /* базовый — для ПК */
  line-height: 1.4;
  max-width: 100%;
  margin: 0.5rem auto;
  color: #000000;

  background-color: rgba(145, 156, 212, 0.555);
  /* белая, 60% прозрачности */
  padding: 10px 20px;
  border-radius: 20px;
  display: inline-block;

}


.new-contact-container {
  max-width: 860px;
  margin: 10px 10px;
  /* маленький внешний отступ */
  padding: 14px 18px;
  /* минимальные внутренние отступы */
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}


.new-contact-element:first-child {
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
}


.block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: clamp(24px, 4vw, 48px);
  font-weight: bold;
  line-height: 1.2;

  word-break: break-word;
  padding: 0 3vw;

  transition: opacity 0.3s linear;
  will-change: transform, opacity;
}


.block-base {
  background: #000;
  z-index: 1;
  transform: translateY(0);
}

.block-1 {
  background: #ffffff;
  color: #000;
  z-index: 2;
  transform: translateY(100vh);
  padding: 0;
}

.block-2 {
  background: #000000;
  z-index: 3;
  transform: translateY(100vh);
}

.block-3 {
  background: #ffffff;
  z-index: 4;
  transform: translateY(100vh);
  padding: 0;
}

/*TEXT*/

.text-black {
  color: #000000;
}

@media (max-width: 780px) {
  .text-black {
    color: #ffffff;
  }
}


.block-content {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 120px;
}

.big-title {
  font-size: clamp(80px, 25vw, 300px);
  font-weight: 900;
  margin: 0 auto 20px auto;
  max-width: 100vw;
  letter-spacing: clamp(4px, 2vw, 15px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  line-height: 0.8;
  text-align: center;
}


.description {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0.8;
}


.learn-more-btn {
  display: inline-block;

  background: #ffffff;
  color: #333;
  border-radius: 25px;
  cursor: pointer;
  padding: 12px 30px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;

}

.learn-more-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 240, 240, 0.3);
}

.learn-more-btn a {
  text-decoration: none;
  color: inherit;
  display: inline-block;

}

.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* центр по горизонтали */
  gap: 20px;
  /* отступ между текстом и кнопкой */
}

.learn-more-btn1 {
  display: inline-block;
  background: #e47106;
  /* синий фон */
  color: #fff;
  /* белый текст */
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 12px 30px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  text-decoration: none;
}

.learn-more-btn1:hover {
  background: #fcbd10;
  /* темнее при наведении */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.learn-more-btn2 {
  display: inline-block;
  background: #7a81e7;
  /* синий фон */
  color: #fff;
  /* белый текст */
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(77, 47, 4, 0.3);
  cursor: pointer;
  padding: 12px 30px;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  text-decoration: none;
}

.learn-more-btn2:hover {
  background: #6298e9;
  /* темнее при наведении */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/*stat*/
.static-content {
  position: relative;
  z-index: 10;
  background: #1a1a1a;
  margin-top: -50vh;
}


.content-section {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #444;
}



/*3BLOCK*/

/* === Фон-видео только внутри .block-3 === */
.block.block-3 .video-bg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Контейнер для видео */
.block.block-3 .video-bg-holder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Видео замощает фон */
.block.block-3 .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  border: none;
  margin: 0;
  padding: 0;
}

/* Контент поверх видео */
.block.block-3 .video-bg-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 3vw;
  max-width: 1600px;
  color: #000;
  margin-top: 800px;
}

/* Ссылки в тексте */
.block.block-3 .video-bg-content a {
  color: #610dce;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.block.block-3 .video-bg-content .learn-more-btn1 {
  color: #fff;
  /* белый текст */
  text-decoration: none;
  /* без подчёркивания */
}


@media (min-width: 780px) and (max-width: 1600px) {
  .big-title {
    font-size: clamp(60px, 18vw, 180px);
    letter-spacing: clamp(2px, 1.5vw, 8px);
    margin-bottom: 15px;
  }

  .block.block-3 .video-bg {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* растягивает видео на весь блок */
    left: 0;
    top: 0;
    transform: none;
  }

  .block.block-3 .video-bg-content {
    margin-top: 390px;
    font-size: clamp(24px, 1.2vw, 28px);
    max-width: 900px;
  }

  .description {
    font-size: clamp(12px, 1.2vw, 15px);
    max-width: 1000px;
  }

  .block-content {
    margin-top: 100px;
  }



  .static-content .content-section .video-bg-content p {
    font-size: clamp(1.5rem, 0.7vw, 1.8rem);
    line-height: 1.4;
    max-width: 85%;
  }

  .block-content {
    margin-top: 100px;
    /* оставь, если нужно */
  }
}




@media (max-width: 780px) {
  .block-content {
    margin-top: 70px;

  }

  .big-title {
    font-size: clamp(100px, 30vw, 200px);
    letter-spacing: 2px;
    margin-bottom: 20px;

  }

  .description {
    padding: 0 20px;
    font-size: 15px;
    margin-bottom: 20px;

  }

  .learn-more-btn {
    padding: 10px 25px;
    margin-top: -30;

  }
}

/* === Фон-видео только внутри .block-1 === */
.block.block-1 .video-bg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.block.block-1 .video-bg-holder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.block.block-1 .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  border: none;
  margin: 0;
  padding: 0;
}

.block.block-1 .video-bg-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 3vw;
  max-width: 1600px;
  color: #000;
  margin-top: 500px;
}

.block.block-1 .video-bg-content a {
  color: #1957a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.block.block-1 .video-bg-content .learn-more-btn1 {
  color: #fff;
  text-decoration: none;
}

.content-section .video-bg-content p.text-black1 {
  color: #ffffff;

}

/* Адаптивность для мобильных */
@media (max-width: 780px) {
  .block.block-1 .video-bg {
    transform: scale(1);
  }


  .block.block-1 .video-bg-content {
    font-size: clamp(18px, 2.5vw, 22px);
    padding: 0 4vw;
    margin-top: 300px;
  }
}




/* Адаптивность для мобильных */
@media (max-width: 780px) {
  .block.block-3 .video-bg {
    transform: scale(1);
  }

  .block.block-3 .video-bg-content {
    font-size: clamp(18px, 2.5vw, 22px);
    padding: 0 4vw;
    margin-top: 50px;
  }
}

/* iframe вместо видео внутри block-1 */
.block.block-1 .video-bg-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
}

/* скрыть лишний текст, если остался */
.block.block-1 .video-bg-content {
  display: none;
}

.static-content .video-bg-holder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.static-content .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  z-index: 0;
}

.static-content .video-bg-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #fff;
  padding: 0 3vw;
}


/* стиль для видео внутри static-content */
.static-content .video-bg-wrap {
  position: relative;
  width: 100%;
  height: 70vh;
  /* можно 100vh, если хочешь на весь экран */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.static-content .video-bg-holder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.static-content .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  z-index: 0;
}

.static-content .video-bg-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #fff;
  padding: 0 3vw;
}



/* мобильные до 780px */
@media (max-width: 780px) {
  .static-content .content-section .video-bg-content p {
    font-size: 1.5rem;
    /* меньше для мобильных */
    line-height: 1.3;
    max-width: 90%;
  }

  .content-section {
    height: 100vh;
  }

  .static-content .video-bg-wrap {
    height: 100vh;
  }
}

/* Простой контактный блок без подложки */
.contact-section {
  height: auto;
  min-height: 5vh;
  /* невысокий */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Контейнер для текста */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

/* Элементы */
.contact-item {
  flex: 1 1 auto;
  font-size: clamp(14px, 1.5vw, 18px);
  color: #fff;
}

@media (max-width: 768px) {
  .contact-section {
    min-height: 8vh;
    /* чуть выше, если нужно больше места для столбца */
    padding: 5px 0;
  }

  .contact-block {
    flex-direction: column;
    /* элементы в столбик */
    gap: 15px;
  }
}

/* Простой контактный блок для спика литературы */
.simple-contact-area {
  height: auto;
  min-height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Контейнер для текста */
.simple-contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

/* Элементы */
.simple-contact-unit {
  flex: 1 1 auto;
  font-size: clamp(14px, 1.5vw, 18px);
  color: #fff;
}

.new-contact-area {
  --contact-link-color: rgba(248, 209, 37, 1);
  /* меняй здесь */
}

.new-contact-area a {
  color: var(--contact-link-color);
  text-decoration: none;
}

.new-contact-area a:hover {
  text-decoration: underline;
}



@media (max-width: 768px) {
  .simple-contact-area {
    min-height: 8vh;
    padding: 5px 0;
  }

  .simple-contact-wrapper {
    flex-direction: column;
    /* элементы в столбик */
    gap: 15px;
  }
}




/* Для секции с neuro-image - увеличиваем высоту */
.content-section.neuro-section {
  height: auto;
  /* или больше, если нужно */
  min-height: 500px;
  border: 2px solid #fff;
  margin-top: 1px;
}

.neuro-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

/* Адаптив для мобильных */
@media (max-width: 780px) {
  .content-section.neuro-section {
    height: 100vh;
    min-height: 400px;
    margin-top: 1px;
  }
}

/* Английская секция */
.content-section.neuro-section-en {
  height: 290vh;
  min-height: 600px;
  border: 2px solid #fff;
  margin-top: 1px;
}

.neuro-image-en {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

/* Мобильная версия */
@media (max-width: 780px) {
  .content-section.neuro-section-en {
    height: 100vh;
    min-height: 500px;
    margin-top: 1px;
  }
}

.snow-xyz {
  position: absolute;
  top: -15px;
  /* Старт чуть выше */
  left: 0;
  background: white;
  border-radius: 50%;
  pointer-events: none;

  /* Мы будем задавать параметры анимации (скорость) через JS для каждой снежинки отдельно,
     здесь оставляем только названия анимаций по умолчанию */
  will-change: top, transform;
  /* Подсказка браузеру для оптимизации */
}

.snow-xyz {
  position: absolute;
  top: -15px;
  left: 0;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  will-change: top, transform;
}

/* Падение вниз */
@keyframes fall-xyz {
  0% {
    top: -15px;
  }

  100% {
    top: 110%;
  }
}

/* Покачивание (ветер) */
@keyframes sway-xyz {
  from {
    transform: translateX(-30px);
  }

  to {
    transform: translateX(30px);
  }
}


.language-toggle {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
}

.lang-icon {
  font-size: 18px;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s;
  user-select: none;
}

.lang-icon:hover {
  transform: scale(1.15);
}

.lang-menu {
  position: absolute;
  top: 25px;
  right: 0;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px;
  min-width: 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transition-delay: 0s, 0s, 0s;
}

/* ПК - при наведении */
@media (min-width: 781px) {

  .language-toggle:hover .lang-menu,
  .lang-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
  }

  /* Задержка перед закрытием */
  .lang-menu {
    transition-delay: 0s, 0.3s, 0s;
  }

  .language-toggle:hover .lang-menu {
    transition-delay: 0s, 0s, 0s;
  }
}

/* Мобильный */
@media (max-width: 780px) {
  .language-toggle {
    top: 20px;
    right: 20px;
  }

  .lang-icon {
    font-size: 13px;
  }

  .lang-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }
}

.lang-menu a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
}