.header-galaxy {
  background: radial-gradient(circle at center, #0d1b2a, #1b263b);
  padding: 35px 0;
  position: relative;
  overflow: hidden;
  animation: rotateStars 60s linear infinite;
}
.header-galaxy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.5;
}
.header-galaxy .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.header-galaxy .logo img {
  max-height: 75px;
  filter: drop-shadow(0 0 10px #e0e0ff);
  animation: pulse 3s ease-in-out infinite;
}
.header-galaxy .nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-galaxy .nav ul li a {
  font-size: 19px;
  font-weight: 600;
  color: #e0e0ff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  transition: all 0.4s ease;
  position: relative;
}
.header-galaxy .nav ul li a:hover {
  color: #ffffff;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.header-galaxy .nav ul li a i {
  transition: transform 0.4s ease;
}
.header-galaxy .nav ul li a:hover i {
  transform: rotateY(180deg);
}
@keyframes rotateStars {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.modal {
    display: none;               /* по умолчанию скрыто */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .modal.show {
    display: flex;               /* когда добавлен класс show */
  }

  /* Содержимое модалки */
  .modal-content {
    position: relative;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
  }

  /* Анимация появления */
  @keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }

  /* Кнопка закрытия */
  .modal-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: none; border: none;
    font-size: 1.5rem; line-height: 1;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
  }
  .modal-close:hover {
    color: #000;
  }

  /* Адаптив */
  @media (max-width: 480px) {
    .modal-content { padding: 1rem; }
    .modal-close  { font-size: 1.25rem; }
  }