/* ============================================================
   Базовые стили и сброс
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   Подключение шрифтов
   ============================================================ */

@font-face {
  font-family: "Jost-Regular";
  src: url(/fonts/Jost-Regular.eot);
  src: url(/fonts/Jost-Regular.eot?#iefix) format("embedded-opentype"),
    url(/fonts/Jost-Regular.otf) format("otf"),
    url(/fonts/Jost-Regular.svg#Jost-Regular) format("svg"),
    url(/fonts/Jost-Regular.woff2) format("woff2"),
    url(/fonts/Jost-Regular.ttf) format("truetype"),
    url(/fonts/Jost-Regular.woff) format("woff");
}

@font-face {
  font-family: "arial_black";
  src: url(/fonts/arial_black.eot);
  src: url(/fonts/arial_black.eot?#iefix) format("embedded-opentype"),
    url(/fonts/arial_black.otf) format("otf"),
    url(/fonts/arial_black.svg#arial_black) format("svg"),
    url(/fonts/arial_black.ttf) format("truetype"),
    url(/fonts/arial_black.woff) format("woff"),
    url(/fonts/arial_black.woff2) format("woff2");
}

@font-face {
  font-family: "Microsoft Sans Serif";
  src: url("/fonts/MicrosoftSansSerif.eot");
  src: url("/fonts/MicrosoftSansSerif.eot?#iefix") format("embedded-opentype"),
    url("/fonts/MicrosoftSansSerif.woff") format("woff"),
    url("/fonts/MicrosoftSansSerif.ttf") format("truetype"),
    url("/fonts/MicrosoftSansSerif.svg#MicrosoftSansSerif") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Involve-Regular";
  src: url(/fonts/Involve-Regular.eot);
  src: url(/fonts/Involve-Regular.eot?#iefix) format("embedded-opentype"),
    url(/fonts/Involve-Regular.otf) format("otf"),
    url(/fonts/Involve-Regular.svg#Involve-Regular) format("svg"),
    url(/fonts/Involve-Regular.ttf) format("truetype"),
    url(/fonts/Involve-Regular.woff) format("woff"),
    url(/fonts/Involve-Regular.woff2) format("woff2");
}

/* ============================================================
   Шапка сайта (header)
   ============================================================ */

header {
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 200px;
  transition: 0.5s ease;
}

header .brand {
  width: 80px;
  transition: 0.5s;
}

header .brand:hover {
  transform: scale(1.2);
}

header .navigation {
  position: relative;
}

header .navigation .navigation-items a {
  position: relative;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  margin-left: 30px;
  transition: 0.3s ease;
}

header .navigation .navigation-items a:before {
  content: "";
  position: absolute;
  background: #fff;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

header .navigation .navigation-items a:hover:before {
  width: 100%;
}

header .navigation .navigation-items .btnLogin {
  text-decoration: none;
  width: 130px;
  height: 50px;
  background: transparent;
  border: 2px solid #fff;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1em;
  color: #fff;
  font-weight: 700;
  margin-left: 40px;
  transition: 0.5s;
}

header .navigation .navigation-items .btnLogin:hover {
  background: #fff;
  color: #162938;
}

/* ============================================================
   Секции страниц
   ============================================================ */

section {
  padding: 100px 200px;
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: transparent;
}

/* ============================================================
   Заголовки H2
   ============================================================ */

.home .content h2 {
  font-size: 4em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 75px;
  margin-bottom: 40px;
  display: flex;
  font-family: "arial_black";
}

/* ============================================================
   Заголовки H3 (только на странице контактов)
   ============================================================ */

.home .content h3 {
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 30px;
  display: flex;
  font-family: "Microsoft Sans Serif";
}

/* ============================================================
   Основной текст (P) - параграфы
   ============================================================ */

.home .content p {
  font-size: 1.2em;
  margin-bottom: 45px;
  letter-spacing: 1px;
  font-family: "Jost-Regular";
}

/* ============================================================
   Ссылки внутри контента
   ============================================================ */

.home .content a {
  position: relative;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0px;
  transition: 0.3s ease;
}

.home .content a:before {
  content: "";
  position: absolute;
  background: #fff;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

.home .content a:hover::before {
  width: 100%;
}

/* ============================================================
   Кнопки (Discord, TeamSpeak, Присоединиться)
   ============================================================ */

.openbtn {
  text-decoration: none;
  width: 230px;
  height: 50px;
  background: #fff;
  border: 2px solid #fff;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1em;
  color: #162938;
  font-weight: 700;
  font-family: "Microsoft Sans Serif";
  margin-bottom: 4px;
}

.openbtn:hover {
  background: #f4f4f4;
  border: 2px solid #f4f4f4;
}

/* ============================================================
   Прелоадер (экран загрузки)
   ============================================================ */

.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(46, 61, 71);
  z-index: 1000;
  transition: all 0.6s ease-out;
}

.preloader--hide {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}

.preloader__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================
   Анимация спиннера прелоадера
   ============================================================ */

@keyframes ldio-yzaezf3dcml {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.ldio-yzaezf3dcml div {
  box-sizing: border-box !important;
}

.ldio-yzaezf3dcml > div {
  position: absolute;
  width: 144px;
  height: 144px;
  top: 28px;
  left: 28px;
  border-radius: 50%;
  border: 16px solid #000;
  border-color: #f4f4f4 transparent #f4f4f4 transparent;
  animation: ldio-yzaezf3dcml 1s linear infinite;
}

.ldio-yzaezf3dcml > div:nth-child(2) {
  border-color: transparent;
}

.ldio-yzaezf3dcml > div:nth-child(2) div {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}

.ldio-yzaezf3dcml > div:nth-child(2) div:before,
.ldio-yzaezf3dcml > div:nth-child(2) div:after {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: -16px;
  left: 48px;
  background: #f4f4f4;
  border-radius: 50%;
  box-shadow: 0 128px 0 0 #f4f4f4;
}

.ldio-yzaezf3dcml > div:nth-child(2) div:after {
  left: -16px;
  top: 48px;
  box-shadow: 128px 0 0 0 #f4f4f4;
}

.loadingio-spinner-dual-ring-2by998twmg9 {
  scale: 30%;
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: rgba(37, 37, 37, 0);
}

.ldio-yzaezf3dcml {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
}

/* ============================================================
   Контейнер контента для SPA
   ============================================================ */



.nav-link.active {
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}

/* ============================================================
   Мобильная версия (адаптив)
   ============================================================ */

@media (max-width: 1100px) {
  .home .content h2 {
    font-size: 2.1em;
  }
  .info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .separator {
    display: none;
  }
}

#app-content {
  transition: opacity 0.2s ease;
}

#app-content.page-exit {
  opacity: 0;
}

/* ============================================================
   Стили для меню (полное описание)
   ============================================================ */

header {
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 200px;
  transition: 0.5s ease;
}

header .brand {
  width: 80px;
  transition: 0.5s;
}

header .brand:hover {
  transform: scale(1.2);
}

header .navigation {
  position: relative;
}

header .navigation .navigation-items a {
  position: relative;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  margin-left: 30px;
  transition: 0.3s ease;
}

header .navigation .navigation-items a:before {
  content: "";
  position: absolute;
  background: #fff;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

header .navigation .navigation-items a:hover:before {
  width: 100%;
}

header .navigation .navigation-items .btnLogin {
  text-decoration: none;
  width: 130px;
  height: 50px;
  background: transparent;
  border: 2px solid #fff;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1em;
  color: #fff;
  font-weight: 700;
  margin-left: 40px;
  transition: 0.5s;
}

header .navigation .navigation-items .btnLogin:hover {
  background: #fff;
  color: #162938;
}

/* ============================================================
   Мобильное меню
   ============================================================ */

@media (max-width: 1100px) {
  header {
    padding: 12px 20px;
    z-index: 1000;
  }
  section {
    padding: 100px 20px;
  }
  .home .media-icons {
    right: 15px;
  }
  header .navigation {
    display: none;
  }
  header .navigation.active {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  header .navigation.active .navigation-items {
    background: #fff;
    width: 80%;
    max-width: 300px;
    margin: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0;
    box-shadow: 0 5px 25px rgb(1 1 1 / 20%);
    animation: newAppearFromCenter 0.3s forwards;
  }
  header .navigation .navigation-items a {
    color: #000;
    font-size: 1.2em;
    margin: 15px 0;
  }
  header .navigation .navigation-items a:before {
    background: #222;
    height: 2px;
  }
  header .navigation .navigation-items .btnLogin {
    color: #000;
    border-color: #000;
    margin-left: 0;
    margin-top: 15px;
  }
  header .navigation .navigation-items .btnLogin:hover {
    background: #000;
    color: #fff;
  }
  .menu-btn {
    background: url(/media/menu.png) no-repeat;
    background-size: 30px;
    background-position: center;
    scale: 120%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: 0.3s ease;
  }
  .menu-btn.active {
    z-index: 11;
    scale: 120%;
    background: url(/media/close.png) no-repeat;
    background-size: 25px;
    background-position: center;
    transition: 0.3s ease;
  }
  @keyframes newAppearFromCenter {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* ============================================================
   Шрифт для меню
   ============================================================ */

.my-fontx {
  font-size: 0.8em !important;
  letter-spacing: 1.5px;
  font-family: "Involve-Regular", sans-serif;
}

/* ============================================================
   Размеры заголовков для разных страниц
   ============================================================ */

#page-home .home .content h2 {
  font-size: 4em !important;
}

#page-invite .home .content h2,
#page-contacts .home .content h2 {
  font-size: 4em !important;
}

/* ============================================================
   Мобильная версия для контента (чтобы не выходил за экран)
   ============================================================ */

@media (max-width: 1100px) {
  #page-invite .home .content,
  #page-contacts .home .content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
  }
}

/* ============================================================
   Временные и служебные стили
   ============================================================ */

.home {
  background: transparent;
  position: relative;
  z-index: -2;
}


header {
  z-index: 100;
}


/* ============================================================
   Новая иерархия слоёв
   ============================================================ */

.home {
  position: relative;
  z-index: 1 !important;
}


.home .content {
  position: relative;
  z-index: 7 !important;
  color: #fff;
}

header {
  z-index: 9 !important;
}

/* ============================================================
   Отдельный блок бекграунда на всю поверхность
   ============================================================ */

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #26405b;
  z-index: -1;
}

/* ============================================================
   Иконки соцсетей
   ============================================================ */

.media-icons {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}

.media-icons a {
  display: block;
  transition: transform 0.3s;
}

.media-icons a:hover {
  transform: scale(1.2);
}

.media-icons img {
  width: 35px;
  height: auto;
}

@media (max-width: 1100px) {
  .media-icons {
    display: none !important;
  }
}

/* ============================================================
   MAIN CSS (стили для SPA)
   ============================================================ */

.page { display: none; }
.page.active { display: block; }

#bg-video {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: -1 !important;
}

.separator {
  color: #fff;
  margin: 0 5px;
}

@media (max-width: 1100px) {
  .separator {
    display: none;
  }
}

/* ============================================================
   Мобильная версия заголовков Вступление и Контакты
   ============================================================ */

@media (max-width: 1100px) {
  #page-invite .home .content h2,
  #page-contacts .home .content h2 {
    font-size: 2em !important;
  }
}

/* ============================================================
   Мобильная версия контента (отступы)
   ============================================================ */

@media (max-width: 1100px) {
  #page-home .home .content,
  #page-invite .home .content {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* ============================================================
   Плавное переключение страниц
   ============================================================ */

.page {
  transition: opacity 0.2s ease;
  opacity: 1;
}

.page.fade-out {
  opacity: 0;
}

/* ============================================================
   Цветокоррекция (отдельный фиксированный слой)
   ============================================================ */

.color-correction-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 76, 94, 0.47);
  z-index: 1;
  pointer-events: none;
}





/* ============================================================
   Ограничение ширины текста
   ============================================================ */

.home .content {
  max-width: 1300px;
  width: 100%;
}

/* ============================================================
   Смещение блока контента вниз
   ============================================================ */

.home .content {
  margin-top: 100px;
}