header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 36px;
  background: transparent;
  border-bottom: 2px solid transparent;
  z-index: 100;
  white-space: nowrap;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.25s ease;
}
header.scrolled {
  background: rgba(12,4,32,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0,255,234,0.12);
  padding: 12px 36px;
}
.logo-wrap { display: flex; align-items: center; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 28px; letter-spacing: 3px; color: #fff;
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink),
    0 0 18px rgba(255,180,30,0.35);
  transition: text-shadow 0.3s;
}
.logo-main:hover {
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink),
    -3px 0 16px rgba(255,40,180,0.6), 3px 0 16px rgba(0,255,234,0.6);
}
nav#main-nav {
  display: flex; gap: 8px; margin-left: auto;
}
nav#main-nav a {
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: 10px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
nav#main-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
nav#main-nav a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
nav#main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switcher {
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  text-transform: uppercase;
  transition: transform 0.15s, border-color 0.2s;
}
.lang-switcher:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.3); }
.btn-tg {
  background: linear-gradient(180deg, #59c8ff 0%, #1fa3ff 100%);
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 4px 0 var(--shadow-ink);
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 12px; color: #fff; border-radius: 12px;
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 900; font-style: italic; letter-spacing: 1px;
  text-transform: uppercase; white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--shadow-ink), 0 10px 18px rgba(41,182,246,0.45);
}
.btn-tg-icon { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.footer {
  padding: 80px 40px 60px;
  text-align: center;
  border-top: 3px solid var(--shadow-ink);
  background: rgba(12,4,32,0.5);
  position: relative; z-index: 1;
}
.footer-cta {
  max-width: 760px;
  margin: 0 auto 60px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05; text-transform: uppercase; color: #fff;
  text-shadow:
    -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
    -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
    0 5px 0 var(--shadow-ink);
}
.footer-cta p { color: var(--fg-dim); }
.social-icons {
  display: flex; gap: 14px; justify-content: center;
  margin: 20px 0 36px; flex-wrap: wrap;
}
.social-icons a {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.06);
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 3px 0 var(--shadow-ink);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.social-icons a:hover { transform: translateY(-3px); background: var(--accent); }
.social-icons a:hover img { filter: brightness(0); }
.social-icons img { width: 20px; height: 20px; filter: brightness(0) invert(1); transition: filter 0.2s; }
.footer-note {
  font-size: 12px; color: var(--fg-dim);
  letter-spacing: 1px; text-transform: uppercase;
}
.hamburger {
  display: none;
  width: 42px; height: 42px;
  background: linear-gradient(180deg, var(--accent-hot), #d63dff);
  border: 3px solid var(--shadow-ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  nav#main-nav { display: none; }
  .hamburger { display: flex; }
  /* nav is hidden, so push the action buttons to the right edge */
  .header-actions { margin-left: auto; }
  .section { padding: 80px 28px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .chars-display { flex-direction: column; gap: 30px; min-height: auto; }
  .chars-info { text-align: center; max-width: 480px; align-items: center; }
  .chars-portrait { width: 280px; height: 340px; }
  nav#main-nav.open {
    display: flex;
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; z-index: 99;
    background: rgba(8,2,26,0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 20px; padding: 80px 30px 40px; margin: 0;
  }
  nav#main-nav.open a {
    font-family: var(--font-display);
    font-weight: 900; font-style: italic;
    font-size: 28px; text-transform: uppercase;
    color: #fff; padding: 8px 0; border-radius: 0;
    background: none;
  }
  nav#main-nav.open a::after { display: none; }
}
@media (max-width: 768px) {
  header { padding: 14px 20px; gap: 10px; }
  .logo-main { font-size: 24px; letter-spacing: 2px; }
  .section { padding: 70px 20px; }
  .section h2 { font-size: clamp(30px, 8vw, 44px); }
  .section-subtitle { font-size: 15px; margin-bottom: 36px; }
  .hero { padding: 100px 20px 50px; min-height: 100svh; }
  .hero-title { font-size: clamp(48px, 12vw, 80px); }
  .hero-tagline { font-size: 15px; }
  .hero-video-wrap { max-width: 100%; }
  .hero-subscribe { flex-direction: column; border-radius: 14px; }
  .hero-subscribe input { border-bottom: 2px solid var(--shadow-ink); }
  .hero-subscribe button { padding: 14px; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .chars-selector { gap: 8px; }
  .chars-thumb { width: 60px; height: 60px; border-radius: 12px; }
}
@media (max-width: 425px) {
  header { padding: 12px 16px; gap: 8px; }
  .logo-main { font-size: 20px; }
  .btn-tg span { display: none; }
  .btn-tg { padding: 8px 10px; }
  .lang-switcher { padding: 5px 10px; font-size: 11px; }
  .section { padding: 60px 16px; }
  .section h2 { font-size: clamp(26px, 8vw, 36px); }
  .hero { padding: 90px 16px 40px; }
  .hero-title { font-size: clamp(40px, 13vw, 64px); letter-spacing: 2px; }
  .hero-badge { font-size: 9px; }
  .chars-display { gap: 20px; }
  .chars-portrait { width: 220px; height: 280px; }
  .chars-name { font-size: 28px; }
  .chars-desc { font-size: 13px; }
  .chars-thumb { width: 52px; height: 52px; border-radius: 10px; }
  .faq-question { padding: 18px 16px; font-size: 14px; gap: 12px; }
  .faq-icon { width: 28px; height: 28px; font-size: 16px; }
  .faq-answer p { padding: 0 16px 18px; font-size: 13px; }
  .footer { padding: 50px 16px 36px; }
  .footer-cta { gap: 14px; }
  .footer-cta h2 { font-size: clamp(24px, 7vw, 34px); }
  .social-icons { gap: 8px; margin: 14px 0 24px; }
  .social-icons a { width: 40px; height: 40px; }
  .hero-socials a { width: 36px; height: 36px; }
  .hero-socials img { width: 16px; height: 16px; }
}
@media (max-width: 320px) {
  .logo-main { font-size: 18px; letter-spacing: 1px; }
  .hero-title { font-size: 36px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .preloader-bar { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
