/* Шапка и панель связи новой главной — для остальных страниц сайта.
   Собрано scripts/build_home_template.py из prototype/assets/style.css,
   правки — в прототипе. Все правила внутри .nordic-head, чтобы не задеть тему. */
.nordic-head {
  --bg-card: #333; --text: #fff; --text-muted: #c9c9c9;
  --accent: #b5893b; --accent-hover: #c99d4f; --line: #3d3d3d;
  --tg: #0088cc; --wa: #25d366; --wrap: 1140px;
  --font-body: 'Mulish', Arial, sans-serif;
  font: 400 17px/1.65 var(--font-body); color: var(--text); text-align: left;
}
.nordic-head *, .nordic-head *::before, .nordic-head *::after { box-sizing: border-box; }
.nordic-head img { max-width: 100%; height: auto; display: block; }
.nordic-head p { margin: 0; }
.nordic-head ul, .nordic-head li { margin: 0; padding: 0; list-style: none; }
.nordic-head li::before { content: none; }
.nordic-head a { box-shadow: none; }
.nordic-head .burger { margin: 0; min-width: 0; line-height: 1; box-shadow: none; text-transform: none; }
.nordic-head .burger:hover, .nordic-head .burger:focus { background: transparent; }
.nordic-head .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
/* Кнопка «наверх» темы — над панелью связи на телефоне. Скрипт темы пишет bottom
   прямо в style (25px / -100px), поэтому только !important; на телефоне стрелка видна всегда. */
@media (max-width: 760px) { body.mbar-on .backtotop { bottom: calc(64px + 12px + env(safe-area-inset-bottom)) !important; } }

/* Шапка */
.nordic-head .header { position: relative; background: var(--bg-card); border-bottom: 1px solid var(--line); }
.nordic-head .header__inner { display: flex; align-items: center; gap: 12px 24px; padding: 10px 16px; }
.nordic-head .header__logo img { width: 130px; }
.nordic-head .header__tagline { flex: 1; margin: 0; font-size: 14px; color: var(--text-muted); }
.nordic-head .header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Кнопки связи в шапке */
.nordic-head .hbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 40px;
  color: #fff; font: 700 14px/1 var(--font-body); text-decoration: none; white-space: nowrap;
}
.nordic-head .hbtn:hover, .nordic-head .hbtn:focus-visible { color: #fff; filter: brightness(1.1); }
.nordic-head .hbtn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.nordic-head .hbtn--call { background: var(--accent); }
.nordic-head .hbtn--tg { background: var(--tg); }
.nordic-head .hbtn--wa { background: var(--wa); }

/* Бургер */
.nordic-head .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nordic-head .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.nordic-head .burger[aria-expanded="true"] { border-color: var(--accent); }
.nordic-head .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 40; background: var(--bg-card); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
.nordic-head .nav.is-open { display: block; }
.nordic-head .nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); }
.nordic-head .nav li { border-top: 1px solid var(--line); }
.nordic-head .nav a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 17px; }
.nordic-head .nav a:hover { color: var(--accent); }
.nordic-head .nav__hours { max-width: var(--wrap); margin: 4px auto 8px; font-size: 14px; color: var(--text-muted); }

/* Телефон: слоган прячем, у Telegram и WhatsApp — только значки */
@media (max-width: 760px) {
.nordic-head .header__tagline { display: none; }
.nordic-head .hbtn--tg, .nordic-head .hbtn--wa { width: 42px; padding: 0; justify-content: center; }
.nordic-head .hbtn--tg span, .nordic-head .hbtn--wa span { display: none; }
}
@media (max-width: 400px) {
.nordic-head .header__inner { gap: 8px; }
.nordic-head .header__logo img { width: 72px; }
.nordic-head .header__actions { gap: 4px; }
.nordic-head .hbtn, .nordic-head .burger { height: 38px; }
.nordic-head .hbtn--tg, .nordic-head .hbtn--wa, .nordic-head .burger { width: 38px; }
.nordic-head .hbtn--call { padding: 0 10px; gap: 6px; font-size: 13px; }
}


/* Панель связи внизу экрана — только на телефоне */
.nordic-head .mbar { display: none; }
@media (max-width: 760px) {
.nordic-head .mbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(34,34,34,.96); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .35s ease;
  }
.nordic-head .mbar.is-shown { transform: none; }
.nordic-head .mbar__item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--text); text-decoration: none; font-size: 12px; }
.nordic-head .mbar__item svg { width: 22px; height: 22px; fill: currentColor; }
.nordic-head .mbar__item--call { color: var(--accent); }
.nordic-head .mbar__item:active { background: rgba(255,255,255,.06); }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* Круглая кнопка «Настройки cookie» (плагин nordic-cookie-consent) — над панелью, пока панель видна. */
.ncc-float { transition: bottom .35s ease; }
body.mbar-on .ncc-float { bottom: calc(64px + 12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

