:root {
  --site-bg: rgba(13, 20, 37, 0.96);
  --site-line: #20304f;
  --site-text: #e8eefc;
  --site-muted: #9bb0d1;
  --site-accent: #7c8cff;
  --site-accent2: #60a5fa;
}

.site-header {
  background: linear-gradient(180deg, rgba(10, 16, 29, 0.98), rgba(13, 20, 37, 0.94));
  border: 1px solid var(--site-line);
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  padding: 0;
  margin-bottom: 18px;
  overflow: visible;
}

.site-header__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.site-header__topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
}

.site-nav {
  order: 1;
}

.site-header__logo {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 420px;
  text-decoration: none;
}

.site-header__logo-image {
  width: 100%;
  height: auto;
  display: block;
}


.site-header__meta {
  color: var(--site-muted);
  font-size: 0.92rem;
  align-self: flex-start;
  white-space: nowrap;
}

.site-nav {
  position: relative;
  flex: none;
}

.site-nav > summary {
  list-style: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(124, 140, 255, 0.12);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.site-nav > summary::-webkit-details-marker {
  display: none;
}

.site-nav > summary:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 140, 255, 0.48);
  background: rgba(124, 140, 255, 0.18);
}

.site-nav__icon {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--site-text);
  position: relative;
  display: block;
  box-shadow: 0 -6px 0 var(--site-text), 0 6px 0 var(--site-text);
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 300px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(12, 18, 33, 0.98);
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

.site-nav:not([open]) .site-nav__menu {
  display: none;
}

.site-nav__link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--site-text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.18), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  border-color: rgba(124, 140, 255, 0.5);
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.28), rgba(96, 165, 250, 0.18));
}

.site-nav__label {
  font-weight: 700;
}

.site-nav__hint {
  color: var(--site-muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .site-header__bar {
    padding: 16px;
  }

  .site-header__topline {
    gap: 10px;
  }

  .site-header__logo {
    max-width: calc(100% - 60px);
  }


  .site-header__meta {
    white-space: normal;
  }

  .site-nav__menu {
    min-width: min(86vw, 320px);
  }
}
