/* --- МЕНЮ head.php БАЗОВЫЕ СТИЛИ (ДЛЯ ПК / ДЕСКТОПА) --- */




.menu-toggle {
  display: none; /* СКРЫТА на ПК */
}

.top-bar {
  width: 100%;
  background: linear-gradient(135deg, #007bff, #6c757d);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;          /* Важно: контейнер на всю доступную ширину */
  box-sizing: border-box;
}

.nav-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between; /* Равномерно распределяет 3 пункта */
  width: 100%;                    /* На всю ширину контейнера */
  position: static;
  background: transparent;
  max-height: none;
  opacity: 1;
  border: none;
}

.nav-item {
  flex: 1;                        /* Каждый пункт занимает равную долю */
  border-bottom: none;
  padding: 0;                     /* Убираем отступы у обёртки, делаем внутри ссылки */
  margin: 0 5px;                  /* Небольшие отступы между блоками, если нужно */
  overflow: hidden;                /* Чтобы фон не вылезал за границы */
}

.nav-link {
  display: block;                 /* Ссылка становится блоком */
  width: 100%;                    /* Растягиваем ссылку на всю ширину .nav-item */
  text-align: center;
  padding: 18px 0;                 /* Отступы внутри ссылки */
  font-size: 14px;
  text-decoration: none;          /* Убираем подчёркивание */
  color: white;                    /* Цвет текста для градиентной шапки */
  box-sizing: border-box;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (ШИРИНА < 768px) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    line-height: 56px;
    z-index: 1001;
font-size: 32px;
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #007bff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
  }

  .nav-list.open {
    max-height: 300px;
    opacity: 1;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
  }

  .nav-link {
    padding: 15px 0;
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: center;
  }
}

/*шапка стиль*/
.top-bar {
  width: 100%;
  background: linear-gradient(135deg, #007bff, #6c757d);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px; /* Ваша заданная ширина */
  margin: 0 auto; /* Центрирование контейнера */
  padding: 0 20px;
}





/* Эффекты при наведении и активной ссылке (без изменений) */
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #ffd166;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ffd166;
  border-radius: 50%;
}



/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link {
    padding: 15px 0;
    font-size: 16px;
  }
}