/* Сквозная навигация всего сайта: меню в шапке, хлебные крошки, подвал.
   Подключается на всех публичных страницах поверх их собственных стилей. Цвета берутся из
   переменных страницы (у питания, витрины и «Выдоха» палитры разные) с запасными значениями.
   Меняя файл, поднимите ?v= во всех страницах. */

nav a.logo { text-decoration: none; }

/* ── Меню в шапке ── */
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > a, .site-menu summary {
  color: var(--muted, #94a3b8); text-decoration: none; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.site-nav > a:hover, .site-menu summary:hover { color: var(--white, var(--warm-white, #fff)); }
.site-menu { position: relative; }
.site-menu summary { list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::after { content: ' ▾'; font-size: 11px; }
.site-menu-list {
  display: none; position: absolute; right: 0; top: calc(100% + 14px);
  flex-direction: column; min-width: 270px; padding: 8px;
  background: var(--card, var(--night-2, #172333));
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}
.site-menu[open] .site-menu-list { display: flex; }
.site-menu-list a {
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text, #e2e8f0); font-size: 14.5px; font-weight: 500;
}
.site-menu-list a:hover { background: rgba(255,255,255,.06); }
.site-menu-list a[aria-current="page"] { color: var(--white, var(--warm-white, #fff)); font-weight: 700; }
.site-menu-list hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 6px 4px; }
@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
  .site-menu-list { right: -8px; min-width: 250px; }
}

/* ── Хлебные крошки ── */
.crumbs { font-size: 13px; color: var(--muted, #94a3b8); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ── Подвал ── */
.sf-inner { max-width: 1060px; margin: 0 auto; }
.sf-disclaimer { font-size: 13px; line-height: 1.6; color: var(--muted-2, var(--muted, #7c8a9c)); margin-bottom: 28px; max-width: 820px; }
.sf-disclaimer strong { color: var(--muted, #94a3b8); }
.sf-cols { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-bottom: 28px; }
.sf-col { min-width: 170px; }
.sf-col h4 { font-size: 13px; color: var(--muted, #94a3b8); font-weight: 700; margin-bottom: 8px; }
.sf-col a, .sf-col span {
  display: block; font-size: 14px; line-height: 1.5; margin-bottom: 5px;
  color: var(--muted-2, var(--muted, #7c8a9c)); text-decoration: none;
}
.sf-col a:hover { color: var(--white, var(--warm-white, #fff)); }
.sf-copy { font-size: 13px; color: var(--muted-2, var(--muted, #7c8a9c)); }
@media (max-width: 640px) { .sf-cols { gap: 22px 28px; } .sf-col { min-width: 140px; } }

/* ── Витрина: список калькуляторов ── */
.hub-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.hub-tools a {
  display: block; padding: 16px 18px; border-radius: 12px; text-decoration: none;
  background: var(--card, #172333); border: 1px solid var(--line, rgba(255,255,255,.08));
  color: var(--white, #fff); font-weight: 700; font-size: 15.5px;
}
.hub-tools a span { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted, #94a3b8); margin-top: 4px; }
.hub-tools a:hover { border-color: rgba(139,92,246,.5); }
