/* ==========================================================
   Dmitriy Volkov — общая верхняя навигация
   Используется на главной, /advisor/ и /transformation/,
   чтобы шапка не расходилась между страницами.
   ========================================================== */

/* ============ TOP NAV ============ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  font-size: 14px;
}
.topnav-name { font-family: var(--serif); font-weight: 600; letter-spacing: 0.03em; }
.topnav-links { display: flex; gap: 28px; font-size: 13px; color: var(--ink-2); }
.topnav-links a { position: relative; transition: color .2s; }
.topnav-links a:hover { color: var(--ink); }
.topnav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .25s ease;
}
.topnav-links a:hover::after { width: 100%; }
.topnav-links a.active { color: var(--ink); }
.topnav-links a.active::after { width: 100%; }
.topnav-cta {
  font-size: 13px; padding: 8px 14px;
  border: 1px solid var(--ink); border-radius: 999px; transition: all .2s;
}
.topnav-cta:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .topnav { padding: 12px 22px; }
  .topnav-links { display: none; }
}

/* ============ SUBNAV (локальные якоря подстраницы) ============ */
.subnav {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 10px 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; transition: color .2s; }
.subnav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .subnav { padding: 8px 22px; gap: 16px; }
}
