/* =========================================================
   Header - transparent over hero → frosted dark on scroll
   ========================================================= */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 999;
}

/* ── WP admin bar offset (logged-in users) ── */
.admin-bar .site-header { inset-block-start: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { inset-block-start: 46px; }
}

/* ── Topbar - always dark, very slim ── */
.topbar {
  background: rgba(5, 14, 26, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
  transition: background 0.4s ease;
}

.site-header.scrolled .topbar {
  background: rgba(5, 14, 26, 0.98);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,.5);
  letter-spacing: 0.03em;
  transition: color var(--ease);
}

.topbar__item:hover { color: rgba(255,255,255,.9); }
.topbar__item svg { flex-shrink: 0; }

.topbar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: color var(--ease);
}

.topbar__social:hover { color: var(--white); }

.topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.1);
}

.topbar__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__lang a {
  color: rgba(255,255,255,.35);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  transition: all var(--ease);
}

.topbar__lang a:hover,
.topbar__lang a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.topbar__lang span { color: rgba(255,255,255,.15); }

/* ── Navbar - transparent → dark on scroll ── */
.navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled .navbar {
  background: rgba(10, 20, 38, 0.94);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

/* ── Logo - white PNG, no filter needed on dark header ── */
@keyframes logo-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: .82; transform: scale(1.03); }
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 55px;
  width: auto;
  animation: logo-pulse 3.5s ease-in-out infinite;
}

.site-logo:hover img {
  animation-play-state: paused;
  opacity: 1;
  transform: scale(1.05);
}

/* ── Desktop navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav li { position: relative; }

.site-nav li a {
  display: block;
  padding: 8px 15px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s ease;
  position: relative;
}

/* Animated underline on hover/active */
.site-nav li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--blue-mid);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.site-nav li a:hover { color: var(--white); }
.site-nav li a:hover::after { transform: scaleX(1); }

.site-nav li.current-menu-item > a {
  color: var(--white);
}

.site-nav li.current-menu-item > a::after {
  transform: scaleX(1);
  background: var(--blue-mid);
}

/* CTA button in nav */
.site-nav li.nav-cta > a {
  background: var(--blue);
  color: var(--white) !important;
  border-radius: var(--r);
  padding: 9px 22px;
  font-weight: var(--fw-semi);
  margin-left: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 0 rgba(24,99,220,0);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.site-nav li.nav-cta > a:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(24,99,220,.5);
}

.site-nav li.nav-cta > a::after { display: none; }

/* ── Hamburger - white lines ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ── Mobile nav overlay ── */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1100;
  width: min(340px, 88vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-nav__logo img {
  height: 36px;
  width: auto;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(195deg) brightness(0.5);
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  color: var(--dark);
  transition: background var(--ease);
}

.mobile-nav__close:hover { background: var(--off-white); }

.mobile-nav__body {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.mobile-nav__menu li a {
  display: block;
  padding: 12px 14px;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--dark);
  border-radius: var(--r);
  transition: color var(--ease), background var(--ease);
  border-left: 3px solid transparent;
}

.mobile-nav__menu li a:hover,
.mobile-nav__menu li.current-menu-item > a {
  color: var(--blue);
  background: var(--blue-tint);
  border-left-color: var(--blue);
}

.mobile-nav__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: .06em;
}
.mobile-nav__lang a { color: var(--muted); transition: color var(--ease); }
.mobile-nav__lang a.active { color: var(--blue); }
.mobile-nav__lang a:hover { color: var(--blue); }
.mobile-nav__lang span { color: var(--border); }

.mobile-nav__contacts {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav__contacts a,
.mobile-nav__contacts span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--body);
  transition: color var(--ease);
}

.mobile-nav__contacts a:hover { color: var(--blue); }
.mobile-nav__contacts svg { flex-shrink: 0; color: var(--blue); }

/* ── Mobile backdrop ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(13,27,42,.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

