/* 26.11.2026: Вики — настоящая шапка сайта (lk-header, 1:1 с лендингом) */
html body .lcwiki-hdr {
  position: fixed !important;
  left: 0;
  right: 0;
  top: 0;
  z-index: 90 !important;
  background: #000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .05) !important;
  display: block !important;
  height: auto !important;
  min-height: 64px !important;
  padding: 0 !important;
  animation: lcwikiIn .16s ease both;
}
@keyframes lcwikiIn { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { html body .lcwiki-hdr { animation: none } }
html body .lcwiki-hdr .lk-burger { display: none !important; }

/* родная шапка вики не должна мелькать/дублироваться при перерисовках React */
html.lcwiki-page #root div.sticky.top-0:not(.lcwiki-hdr) { display: none !important; }

/* активный пункт — как на лендинге: просто белый, без подчёркивания */
html body .lcwiki-hdr .lk-navlink[href="/wiki"],
html body .lcwiki-hdr .lk-navlink[href="/wiki"]:hover { color: #fff !important; }
html body .lcwiki-hdr .lk-navlink[href="/wiki"]::after { content: none !important; display: none !important; }

/* правый блок — строго слева направо (поиск, затем чип) */
html body .lcwiki-hdr .lk-hdr-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
}

/* поиск внутри шапки — компактный, не растягивает флекс */
html body .lcwiki-hdr .lcwiki-search { display: flex; align-items: center; flex: 0 0 auto; order: 0 !important; margin-right: 8px; }
html body .lcwiki-hdr .lk-chip { order: 2 !important; }
html body .lcwiki-hdr .lcwiki-search > div {
  flex: 0 0 auto !important;
  width: 180px !important;
  max-width: 180px !important;
  margin: 0 !important;
}
html body .lcwiki-hdr .lcwiki-search input {
  height: 32px !important;
  width: 180px !important;
  padding: 0 10px 0 30px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #fff !important;
  font-size: 13px !important;
  transition: border-color .16s ease, background-color .16s ease !important;
}
html body .lcwiki-hdr .lcwiki-search input::placeholder { color: rgba(255, 255, 255, .32) !important; }
html body .lcwiki-hdr .lcwiki-search input:focus {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .06) !important;
  outline: none !important;
}
html body .lcwiki-hdr .lcwiki-search svg { color: rgba(255, 255, 255, .35) !important; }

/* кнопки шапки */
html body .lcwiki-hdr .lk-icobtn {
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 0; color: rgba(255, 255, 255, .38);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color .16s ease, color .16s ease;
}
html body .lcwiki-hdr .lk-icobtn:hover { background: rgba(255, 255, 255, .05); color: #fff; }
html body .lcwiki-hdr .lk-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .16s ease;
}
html body .lcwiki-hdr .lk-chip:hover { background: rgba(255, 255, 255, .12); }

/* контент под фиксированной шапкой (класс ставится сразу, до отрисовки) */
html.lcwiki-page #root div.min-h-screen { padding-top: 64px !important; }

@media (max-width: 1100px) {
  html body .lcwiki-hdr .lcwiki-search { display: none; }
}
@media (max-width: 900px) {
  html body .lcwiki-hdr .lk-nav { display: none !important; }
}
@media (max-width: 520px) {
  html body .lcwiki-hdr .lk-logo span { display: none; }
  html body .lcwiki-hdr .lk-chip span { display: none; }
  html body .lcwiki-hdr .lk-chip { width: 36px; padding: 0; justify-content: center; }
}
