/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 24, .68);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
:root[data-theme="light"] .header {
  background: rgba(245, 247, 251, .78);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand__mark {
  width: 60px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(135deg, rgba(47,123,255,.85), rgba(70,180,255,.55));
  color: white;
  box-shadow: 0 10px 20px rgba(47,123,255,.18);
}
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 15px; }
.brand__sub { font-size: 12px; color: var(--text2); }

/*.header__actions { display: flex; align-items: center; gap: 8px; }*/

.nav { }
.nav__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text2);
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.nav__link:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.nav__link.is-active {
  background: linear-gradient(135deg, rgba(47,123,255,.22), rgba(70,180,255,.10));
  border-color: rgba(47,123,255,.30);
  color: var(--text);
}
.nav__icon { opacity: .9; }

.header__burger { display: none; }

@media (max-width: 980px) {
  .brand__sub { display: none; }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    padding: 14px 0;
    background: rgba(10, 14, 24, .80);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
  }
  :root[data-theme="light"] .nav { background: rgba(245, 247, 251, .88); }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 6px;
  }
  .nav__link { justify-content: space-between; }
  .header__burger { display: inline-flex; }
}

@media (max-width: 520px) {
  .brand__name { font-size: 14px; }
}
