/* Блокируем скролл страницы, когда меню открыто */
body.menu-locked {
  overflow: hidden;
  touch-action: none;
}

/* NAVBAR */
#mainHeader {
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 1.5rem;
  background: #050505;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 900; /* было 10001 — теперь ниже модалок Bootstrap (~1050) */
}

#leftLogo {
  color: #eee;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  opacity: .9;
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  color: rgba(255,255,255,0.75);
  margin-left: 18px;
  text-decoration: none;
  font-size: 15px;
}

.desktop-nav a:hover {
  color: #fff;
}

/* BURGER (2 полоски → крест) */
#burger {
  width: 26px;
  height: 18px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 901; /* чуть выше самого navbar, но всё равно ниже модалок */
}

#burger span {
  height: 2px;
  background: #ddd;
  transition: .3s ease;
}

#burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger.open span:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

/* FULLSCREEN MENU */
#fullscreenMenu {
  position: fixed;
  inset: 0;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  z-index: 800; /* ниже navbar/бургера, но выше обычного контента */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .3s ease;
  overflow-y: auto;
}

#fullscreenMenu.show {
  opacity: 1;
  pointer-events: auto;
}

.fm-inner {
  width: 100%;
  max-width: 420px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 32px;
  box-sizing: border-box;
}

.fm-center {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.fm-center a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease;
}

.fm-center a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.fm-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #aaa;
  margin-top: 20px;
}

.fm-social {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.fm-social a {
  text-decoration: none;
  font-size: 16px;
  opacity: 0.9;
}

.fm-social a:hover {
  opacity: 1;
}

.fm-copy {
  color: #666;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 991px) {
  .desktop-nav { display: none !important; }
  #burger      { display: flex !important; }
  .fm-inner    { max-width: 100%; }
}

@media (min-width: 992px) {
  #burger      { display: none !important; }
  .desktop-nav { display: block !important; }
}

@media (max-width: 576px) {
  .fm-center {
    gap: 32px;
  }

  .fm-center a {
    font-size: 17px;
    letter-spacing: 0.1em;
  }
}
