
/* ==============================================================
   Global Reset & Box Sizing
   ============================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==============================================================
   Wrapper — ограничение макета до 1920px, центрирование
   ============================================================== */
.wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

#particles-canvas {
  position: fixed;    /* фиксируем на окне, уже не «абсолют» */
  top: 0;
  left: 0;
  width: 100vw;       /* во всю ширину */
  height: 100vh;      /* во всю высоту */
  z-index: -1;        /* под всем контентом */
  pointer-events: none;
}

/* ==============================================================
   Base Styles
   ============================================================== */
html {
  font-size: 16px; /* 1rem = 16px */
}

body {
  min-height: 100vh;
  margin: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: #151527 url('../img/Backgraund.png') no-repeat center center fixed;
  background-size: cover;
  /* позволяем вертикальную прокрутку на узких экранах */
  overflow-x: hidden;
  overflow-y: hidden;
}

@media (max-width: 1560px) {
  body {
    overflow-y: auto;
  }
}

/* ==============================================================
   Top Bar
   ============================================================== */
.top-bar {
  display: flex;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  /* padding: 1rem 2rem; */
  z-index: 10;
  /* flex-wrap: wrap; */
  /* высота стала авто, чтобы подстраиваться по содержимому */
}

 #fog-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
  }

  .logo-box {
    flex: 0 0 auto;
    width: 12.5rem;  /* 200px */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
  }

.logo {
  width: 7.5rem;  
  height: auto;
}

.logo-caption {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'UNCAGE', Arial, sans-serif;
    font-weight: bold;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.logo-caption.visible {
  opacity: 1;
}

/* Навигация */
.nav-menu {
  flex: 1 1 auto;
  display: flex;
  gap: 3.375rem; /* 54px */
  margin-left: 3.5rem; /* 56px */
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'KievitOT', monospace;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 0 0.625rem; /*10px*/
  white-space: nowrap;
  transition: color 0.22s, text-shadow 0.23s;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffe98a;
  text-shadow:
    0 0 8px #ffe98a99,
    0 0 16px #ffe98a33;
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5625rem; /* -9px */
  left: 0;
  width: 2rem;  /* 32px */
  height: 0.1875rem; /*3px*/
  background: #ffe98a;
  border-radius: 0.125rem; /*2px*/
  box-shadow: 0 0 8px #ffe98a80, 0 0 18px #ffe98a40;
  transition: background 0.22s, box-shadow 0.22s;
}

/* ==============================================================
   Decorative Dividers
   ============================================================== */
.vertical-divider1,
.vertical-divider2 {
  position: absolute;
  top: 0;
  right: 400px; /* ← КЛЮЧЕВОЕ: от правого края */
  width: 0.1875rem; /*3px*/
  height: 100vh;
  background: rgba(255,255,255,0.08);
  z-index: 5;
}

.vertical-divider1 {
  left: 198px; /*200px*/
}

.vertical-divider2 {
  right: 400px; /*400px*/
}

.horizontal-divider {
  position: absolute;
  top: 200px; /*200px*/
  left: 203px; /*203px*/
  width: 100vw;
  height: 0.1875rem; /*3px*/
  background: rgba(255,255,255,0.09);
  z-index: 6;
}

/* ==============================================================
   Side Icons
   ============================================================== */
.side-icons {
  position: absolute;
  top: 400px; /*365px*/
  right: 50px;  /*38px*/
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /*15px*/
  z-index: 50;
}

.side-icons a img {
  width: 3.375rem; /*54px*/
  height: 3.375rem;
  border-radius: 50%;
  background: #E9C560;
  box-shadow: 0 0.125rem 1rem #31230a60; /*0 2px 16px*/
  transition: box-shadow 0.18s, transform 0.17s;
}

.side-icons a:hover img {
  box-shadow: 0 0.25rem 1.75rem #e3c243a0; /*0 4px 28px*/
  transform: scale(1.07);
}

/* ==============================================================
   Main Content & Sections
   ============================================================== */
.main-content {
  /* margin-top: 12.5rem; 200px */
  margin-left: 200px; /*150px 9.375rem*/
  padding: 3.625rem 7.5rem 0 3.75rem;  /* 58px 120px 0 60px 
  min-height: calc(100vh - 10rem); /*100vh -160px*/
  position: relative; 
}

.section {
  display: none;
  animation: fadein 0.7s ease-out;
}

.section.active {
  display: block;
}
#main.section {
  /* сдвигаем блок на 3rem (≈48 px) ниже; подправь число под себя */
  padding-top: 200px;
}

/* ==============================================================
   Typography
   ============================================================== */
h1 {
  font-family: 'UNCAGE', sans-serif;
  font-weight: 800;
  font-size: 6.45rem;
  letter-spacing: 2px;
  margin-bottom: 0;
}
.avestas, .concept {
  display: inline;
}

h2 {
  font-family: 'KievitOT', monospace;
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin: 0 0 1.5625rem; /*0 0 25px*/
}

/* Utility classes */
.consultation {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: #ffe98a;
  margin: 6.25rem 0 1.75rem; /*100px 0 28px*/
  letter-spacing: 1px;
}

.dot {
  display: inline-block;
  width: 1.25rem; height: 1.25rem; /*20px*/
  background: #ffe98a;
  border-radius: 50%;
  margin-right: 0.75rem; /*12px*/
}

.desc {
  font-size: 1.21rem;
  margin-bottom: 1.5rem; /*24px*/
}

footer,
.main-footer {
  font-size: 1rem;
  color: #ffe98a;
  opacity: 0.65;
  margin-top: 2.75rem; /*44px*/
}

.main-footer {
  position: fixed;
  right: 1.875rem; /*30px*/
  bottom: 1.125rem; /*18px*/
  pointer-events: none;
  user-select: none;
  z-index: 1000;
  text-align: right;
}

.main-footer strong {
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==============================================================
   Preloader
   ============================================================== */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.preloader-text {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0;
  animation: dropInOut 3s forwards;
}
/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes dropInOut {
  0% {
    opacity: 0;
    transform: translateY(-3.125rem);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(3.125rem);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.5625rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 4K and above — layout centered, no changes */
@media (min-width: 2560px) {
  .wrapper {
    padding: 0;
  }
}

/* 1920px — standard desktop (HD) */
@media (max-width: 1919px) {
  html {
    font-size: 93.75%; /* 1rem = 15px */
  }
}

/* 1440px — QHD */
@media (max-width: 1439px) {
  html {
    font-size: 87.5%; /* 1rem = 14px */
  }
}

/* 1080px — Full HD */
@media (max-width: 1079px) {
  html {
    font-size: 81.25%; /* 1rem = 13px */
  }
}

/* 720px — HD */
@media (max-width: 719px) {
  html {
    font-size: 75%; /* 1rem = 12px */
  }

  h1 {
    font-size: 2.3rem;     /* Можно уменьшить по вкусу */
    line-height: 1.1;
    text-align: center;     /* Центрируем */
    margin: 0 0 1.2rem 0;
  }

  .logo-caption {
    position: static;      /* Обычный поток */
    transform: none;       /* Без поворота */
    font-size: 1.1rem;     /* Меньше размер */
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
    z-index: auto;            /* Убедись, что не скрыто */
  }

  .avestas,
  .concept {
    display: block;
    width: 100%;
    text-align: center;
  }


  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo-box {
    margin-top: 2rem;
    width: 8rem;
  }

  .side-icons {
    top: 6.875rem;  /* 110px */
    right: 0.5rem;  /* 8px */
  }

  .vertical-divider1,
  .vertical-divider2,
  .horizontal-divider {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1.25rem 4vw 0 4vw;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Hide all mobile-specific elements on desktop (>719px)
   ========================================================================== */
@media (min-width: 720px) {
  .menu-toggle,
  .mobile-menu,
  .mobile-backdrop {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .burger,
  .panel {
    display: none !important;
  }
}

