/** {
  outline: 1px solid red;
}*/

/* === Плавная прокрутка === */
html {
  scroll-behavior: smooth;
}

/* === Защита от фокуса и копирования скрытых полей === */
input[style*="opacity:0"],
textarea[style*="opacity:0"],
input[type="text"][style*="width:1px"],
input[type="text"][style*="height:1px"],
textarea[style*="height:1px"],
textarea[style*="width:1px"] {
  pointer-events: none;
  user-select: none;
  caret-color: transparent;
  outline: none;
}

/* === Блок глобального выделения (без помех формам) === */
body {
  user-select: none;
}
/*-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

/* === Обёртка хедера и меню === */
.uc-hamburger-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding: 10px 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0); /* Прозрачный фон */
  box-shadow: 0 2px 5px rgba(77, 77, 77, 0.2);
  z-index: 10000;
}

/* === Логотип === */
.uc-logo {
  font-family: 'NimbusSanL-Regu', sans-serif !important;
  font-size: 25px;
  font-weight: normal;
  color: #1b1b1b;
  text-decoration: none;
  z-index: 10002;
  user-select: none;
  animation: colorShift 5s ease-in-out infinite;
}
.uc-logo:hover {
  color: #a6a6a6;
}


/* === Бургер-кнопка === */
#menu-toggle {
  display: none;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 19px;
  cursor: pointer;
  z-index: 10002;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon span {
  height: 3px;
  border-radius: 2px;
  background: #1b1b1b;
  animation: burgerColorPulse 5s ease-in-out infinite;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.menu-icon:hover span {
  background: #e4e2db;
}
@keyframes colorShift {
  0% {
    color: #1B1B1B;
  }
  50% {
    color: #e4e2db;
  }
  100% {
    color: #1B1B1B;
  }
}
@keyframes burgerColorPulse {
  0% {
    background-color: #1B1B1B;
  }
  50% {
    background-color: #e4e2db;
  }
  100% {
    background-color: #1B1B1B;
  }
}
/* === Анимация бургер-крестик === */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Меню-overlay === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #e4e2db;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
  user-select: none;
}

/* Показать меню при активном toggle */
#menu-toggle:checked ~ .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.menu-open {
  overflow: hidden;
}

/* === Пункты меню === */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 3vw, 24px);
  font-size: clamp(24px, 9vw, 72px);
  text-align: left;
}
.menu-items a {
  text-decoration: none;
  color: #1b1b1b;
  transition: color 0.2s ease;
}
.menu-items a:hover {
  color: #cccccc;
}
/* === Шрифты === */
body, .menu-items {
  font-family: 'NimbusSanL-Regu', sans-serif !important;
}

/* === Мобильная адаптация === */
@media (max-width: 768px) {
    .uc-hamburger-wrapper {
    padding: 10px 20px;
    background: rgba(27, 27, 27, 1.0);
  }
      .uc-logo {
    font-size: 20px;
    color: #e4e2db;
  }
    .menu-icon span {
    background: #e4e2db;
  }
    .menu-icon:hover span {
    background: #e4e2db;
  }
    .menu-overlay {
    top: 40px;
    align-items: flex-start; /* прижимаем к верху */
}
    .menu-items {
    gap: clamp(5px, 3vw, 20px);
    font-size: clamp(20px, 12vw, 80px);
  }

}

