/* © 2026 Шайдуров Павел Анатольевич. Все права защищены.
   r256 (решения владельца 9.11, docs/сайт/README.md): общая шапка и подвал сайта в новом тёмном стиле + значки.
   Подключается ПОСЛЕ стилей страницы — классы с приставкой kh-/kf- и header.kh / footer.kf перекрывают прежние
   «header {…}», «footer {…}», «.mnav {…}» страниц. Содержимое страниц (документы) этим файлом не меняется. */

:root {
  --k-bg: #071422; --k-bg2: #081725; --k-bg3: #08131f; --k-card: #0e2437; --k-line: #23435a;
  --k-blue: #52c7f7; --k-cyan: #65e0d0; --k-text: #f4f9fc; --k-soft: #b9d0db; --k-mute: #8fb0c0;
}

/* ---------- шапка ---------- */
header.kh { background: var(--k-bg2); border-bottom: 1px solid rgba(158, 211, 232, .17); color: var(--k-text); position: relative; z-index: 20; }
.kh-bar { max-width: 1180px; margin: 0 auto; padding: 0 24px; min-height: 76px; display: flex; align-items: center; gap: 24px; }
.kh-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--k-text) !important; text-decoration: none; white-space: nowrap; min-height: 44px; }
.kh-brand img { display: block; width: 44px; height: 44px; }
.kh-brand b { display: block; font: 800 22px/1.05 "Golos Text", system-ui, sans-serif; letter-spacing: -.01em; }
.kh-brand small { display: block; font: 500 14px/1.2 "Golos Text", system-ui, sans-serif; color: #a7c0ce; }   /* текст на сайте — от 14 px */
.kh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.kh-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #c9dce5 !important; text-decoration: none; font: 500 15px/1 "Golos Text", system-ui, sans-serif; border-radius: 8px; white-space: nowrap; }
.kh-nav a:hover, .kh-nav a[aria-current] { color: #fff !important; background: rgba(82, 199, 247, .08); }
.kh-act { display: flex; align-items: center; gap: 10px; }
.kh-in { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #c9dce5 !important; text-decoration: none; font: 500 15px/1 "Golos Text", system-ui, sans-serif; white-space: nowrap; }
.kh-in:hover { color: #fff !important; }
.kh-open { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: 0 16px; border: 1px solid #3f94b0; border-radius: 9px; color: var(--k-text) !important; text-decoration: none; font: 600 15px/1 "Golos Text", system-ui, sans-serif; white-space: nowrap; }
.kh-open:hover { background: #17344a; border-color: var(--k-blue); }
header.kh :focus-visible, footer.kf :focus-visible { outline: 3px solid var(--k-cyan); outline-offset: 2px; border-radius: 6px; }
/* меню на телефоне и ноутбуке поуже: <details> без скрипта (как раньше, №71) */
header.kh .mnav { display: none; position: relative; }
header.kh .mnav summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  color: #fff; border: 1px solid #3f6f86; border-radius: 9px; font: 600 15px/1 "Golos Text", system-ui, sans-serif; background: transparent; }
header.kh .mnav summary::-webkit-details-marker { display: none; }
header.kh .mnav[open] summary { background: #13304b; }
header.kh .mnav-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 240px; padding: 6px;
  background: #0e2437; border: 1px solid #2a5370; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
header.kh .mnav-list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #e6f3f8 !important; text-decoration: none; font: 500 16px/1.2 "Golos Text", system-ui, sans-serif; }
header.kh .mnav-list a:hover, header.kh .mnav-list a[aria-current] { background: #17344a; color: #fff !important; }
@media (max-width: 1040px) {
  .kh-nav, .kh-in { display: none; }
  header.kh .mnav { display: block; }
  .kh-act { margin-left: auto; }
}
@media (max-width: 560px) {
  .kh-bar { padding: 0 14px; min-height: 64px; gap: 10px; }
  .kh-brand img { width: 38px; height: 38px; }
  .kh-brand b { font-size: 19px; }
  .kh-brand small { display: none; }
  .kh-open { padding: 0 12px; font-size: 14px; }
  .kh-open .kh-long { display: none; }
  .kh-open.kh-wide { display: none; }   /* «Ковчег в браузере» — в меню (на главной — короткое «Открыть →») */
  header.kh .mnav summary { padding: 0 12px; }
}
@media (max-width: 359px) { .kh-open { display: none; } }

/* ---------- подвал ---------- */
footer.kf { display: block; text-align: left; margin: 0; padding: 0; border: 0; background: #050f19; border-top: 1px solid rgba(158, 211, 232, .12);
  color: var(--k-mute); font: 400 14px/1.6 "Golos Text", system-ui, sans-serif; }
.kf-in { max-width: 1180px; margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.kf-who { display: grid; gap: 6px; flex: 1 1 320px; min-width: 0; }
.kf-who b { color: #d8eef6; font-weight: 700; }
.kf-who #sellerLine { overflow-wrap: anywhere; color: var(--k-mute); }
.kf-who small { font-size: 14px; color: #8fb0c0; }
.kf-links { display: flex; flex-wrap: wrap; gap: 0 18px; align-content: flex-start; flex: 1 1 420px; min-width: 0; }
.kf-links a { display: inline-flex; align-items: center; min-height: 44px; color: #9fd8ee !important; text-decoration: none; }
.kf-links a:hover { color: #fff !important; text-decoration: underline; }
@media (max-width: 560px) { .kf-in { padding: 32px 16px 40px; } .kf-links { gap: 0 14px; } }
