/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 76px 0 48px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(74,45,122,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
}
.nav-logo-main {
  font-family: var(--body); font-weight: 700; color: var(--ink);
  line-height: 1; white-space: nowrap;
  font-size: 30px; letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.nav-logo-sub-block {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px; border-left: 2px solid var(--purple-border);
  padding-left: 12px;
}
.nav-logo-sub-line {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--purple-mid); letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.4;
}

.nav-center { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-center a { font-family: var(--body); font-size: 13px; color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
.nav-center a:hover { color: var(--purple); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav-blue {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-hover); text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(var(--blue-rgb),0.2);
}
.btn-nav-blue:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(var(--blue-rgb),0.3); }

.btn-nav-purple {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: #fff;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--purple-deep); text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(74,45,122,0.2);
}
.btn-nav-purple:hover { background: var(--purple-deep); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(74,45,122,0.3); }

/* HAMBURGER */
.hamburger {
  position: fixed; top: 15px; right: 20px; z-index: 300;
  width: 38px; height: 38px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--purple-soft); border-color: var(--purple-border); }
.hamburger span {
  display: block; width: 15px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s, width 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* DRAWER */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(26,21,40,0.45); backdrop-filter: blur(4px);
  z-index: 250; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 280px;
  background: var(--bg); border-left: 1px solid var(--border);
  z-index: 260; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; padding: 72px 0 0;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 0 24px 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.drawer-logo-name {
  font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1;
}
.drawer-logo-sub {
  font-family: var(--mono); font-size: 9px; color: var(--purple-mid);
  letter-spacing: 0.12em; margin-top: 3px;
}

.drawer-nav {
  flex: 1; overflow-y: auto;
  position: static; top: auto; z-index: auto;
  background: none; backdrop-filter: none;
  border-bottom: none; padding: 0;
  display: block; height: auto;
}
.drawer-nav ul { list-style: none; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav li a {
  display: block; padding: 13px 16px;
  text-decoration: none; color: var(--ink-light);
  font-family: var(--body); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.drawer-nav li a:hover { background: var(--purple-soft); color: var(--purple); }

.drawer-footer {
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.drawer-menu {
  list-style: none; display: flex; flex-direction: column; gap: 0;
  margin-bottom: 16px;
}
.drawer-menu li a {
  display: block; padding: 12px 4px;
  text-decoration: none; color: var(--ink-light);
  font-family: var(--body); font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.drawer-menu li:last-child a { border-bottom: none; }
.drawer-menu li a:hover { color: var(--purple); }
.drawer-footer .btn-nav-blue {
  display: flex; justify-content: center;
  width: 100%; text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 70px 0 20px; }
  .nav-center { display: none; }
  .nav-right { display: none; }
}
