/* ══════════════════════════════════════════
   NAVIGATION  —  бул. Александра Грина 1/1
   ══════════════════════════════════════════ */

/* ── Sticky wrapper ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1A1A1A;
  border-bottom: 3px solid #D72B2B;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  animation: navSlideDown .4s ease both;
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* ── Inner layout ── */
.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}

/* ── Logo / home brand ── */
.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
  flex-shrink: 0;
}

.nav-brand:hover { color: #FFE566; }

.nav-brand-dot {
  width: 8px; height: 8px;
  background: #D72B2B;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── Links list ── */
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.72);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}

/* Active page highlight */
.nav-links a.active {
  color: #FFE566;
  border-color: rgba(255,230,102,.35);
  background: rgba(255,230,102,.08);
}

/* Telegram pill */
.nav-links a.nav-tg {
  background: #229ED9;
  color: #fff;
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a.nav-tg:hover {
  background: #1a8bbf;
  border-color: transparent;
}

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Mobile dropdown ── */
@media (max-width: 600px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 59px; left: 0; right: 0;
    background: #1A1A1A;
    border-bottom: 2px solid #D72B2B;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 24px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
  }

  .nav-links a.nav-tg {
    margin: 8px 16px;
    border-radius: 6px;
    justify-content: center;
  }

  /* Hamburger → X animation */
  .site-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
