/* ================================
   GLOBAL
================================ */
body {
  overflow-x: hidden; /* запрещаем горизонтальный скролл */
  font-family: 'Inter', sans-serif;
}

/* ================================
   HEADER — SMOOTH DAY / NIGHT
================================ */
.sunrise-header {
  width: 100%;
  height: 180px;
  position: relative;
  background: url('https://uadays.com.ua/wp-content/uploads/2024/02/logo_full.jpg') center/cover no-repeat;
  background-size: cover;  /* Чтобы избежать растяжения */
  overflow: hidden;
  image-rendering: crisp-edges;  /* для четкости изображения */
  background-position: center;
}

/* Градиентный цикл */
.sunrise-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    #0a0f2d,
    #1a1f4a,
    #ff5f6d,
    #ffc371,
    #a1c4fd,
    #c2e9fb,
    #f2994a,
    #f64f59,
    #0a0f2d
  );
  background-size: 600% 600%;
  opacity: 0.45;
  animation: daynightCycle 60s linear infinite;
  pointer-events: none;
}

@keyframes daynightCycle {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Затемнение */
.header-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  animation: nightFade 60s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nightFade {
  0%   { background: rgba(0,0,0,0.35); }
  25%  { background: rgba(0,0,0,0.18); }
  50%  { background: rgba(0,0,0,0.05); }
  75%  { background: rgba(0,0,0,0.20); }
  100% { background: rgba(0,0,0,0.35); }
}

/* ================================
   HEADER CONTENT — CENTRED
================================ */
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 15px 22px;
  display: flex;
  flex-direction: column; /* логотип сверху, меню снизу */
  align-items: center;    /* центрируем по горизонтали */
  justify-content: center;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  height: auto;
}

/* LOGO */
.logo-container {
  text-align: center;
  margin-bottom: 15px; /* отступ между лого и меню */
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
  transform: scale(1.05);
  text-decoration: none;
}

.logo {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);  /* Увеличение контраста */
}

.logo-subtitle {
  font-size: 15px;
  color: #fff;
  opacity: 0.9;
  margin-top: 5px;
}


/* NAVIGATION (DESKTOP & MOBILE) */
.nav-menu {
  display: flex;
  justify-content: center; /* центрируем меню */
  align-items: center;
  background: rgba(0,0,0,0.25);
  padding: 6px 16px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  pointer-events: auto;
  flex-wrap: wrap; /* перенос строк, если меню большое */
}

.nav-menu a {
 color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 700;
  font-size: 18px;
  position: relative;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  transition: color 0.25s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #ffd700;
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 4px;
}

/* ================================
   MOBILE (<900px)
================================ */
@media (max-width: 900px) {

  .logo {
    font-size: clamp(32px, 7vw, 48px);
  }
  .logo-subtitle {
    font-size: 14px;
  }

  .nav-menu {
    margin-top: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 12px;
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
    background: rgba(0,0,0,0.15);
  }

  .nav-menu a {
    flex-shrink: 0;
    font-size: 16px;
    margin: 0;
    padding: 6px 10px;
    white-space: nowrap;
  }

  /* Скроллбар для мобильных */
  .nav-menu::-webkit-scrollbar {
    height: 5px;
  }
  .nav-menu::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 3px;
  }
  .nav-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
  }
}
