/* HangaKaipai 0.4.2 — независимая шапка, меню и лёгкое скругление фотографии. */
.hk-site {
  --hk-header-height: 60px;
  --hk-top-height: 26px;
}
.hk-site .hk-top {
  min-height: var(--hk-top-height);
  background: #303030;
  color: #f8f8f8;
}
.hk-site .hk-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--hk-top-height);
  padding-block: 1px;
}
.hk-site .hk-top__social,
.hk-site .hk-top__modules {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hk-site .hk-top__modules { margin-left: auto; }
.hk-site .hk-social-link {
  display: inline-grid;
  place-items: center;
  height: 22px;
  min-width: 22px;
  font: 600 12px/1 system-ui,sans-serif;
  text-decoration: none;
  color: #ededed;
  opacity: .86;
  transition: opacity .18s ease, transform .18s ease;
}
.hk-site .hk-social-link:hover,
.hk-site .hk-social-link:focus-visible {
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}
.hk-site .hk-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(0,0,0,.055);
  box-shadow: 0 4px 18px rgba(0,0,0,.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hk-site .hk-header__inner {
  display: grid;
  grid-template-columns: minmax(150px,1fr) minmax(0,auto) minmax(150px,1fr);
  align-items: center;
  column-gap: 18px;
  min-height: 60px;
}
.hk-site .hk-brand {
  min-width: 0;
  justify-self: start;
}
.hk-site .hk-brand img {
  display: block;
  max-height: 42px;
  max-width: min(190px,22vw);
  height: auto;
  width: auto;
}
.hk-site .hk-navigation { min-width: 0; justify-self: center; }
.hk-site .hk-navigation ul.mod-menu {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.hk-site .hk-navigation ul.mod-menu > li > a,
.hk-site .hk-navigation ul.mod-menu > li > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #252525;
  background: transparent;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.hk-site .hk-navigation ul.mod-menu > li.active > a,
.hk-site .hk-navigation ul.mod-menu > li.current > a {
  color: var(--hk-accent);
  border-color: color-mix(in srgb, var(--hk-accent) 22%, transparent);
  background: color-mix(in srgb, var(--hk-accent) 8%, white);
}
.hk-site .hk-navigation ul.mod-menu > li > a:hover,
.hk-site .hk-navigation ul.mod-menu > li > a:focus-visible {
  color: #fff;
  background: var(--hk-accent);
  outline-offset: 2px;
}
.hk-site .hk-navigation ul.mod-menu > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 205px;
  max-width: 300px;
  padding: 10px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}
.hk-site .hk-navigation ul.mod-menu > li:hover > ul,
.hk-site .hk-navigation ul.mod-menu > li:focus-within > ul { display: block; }
.hk-site .hk-navigation ul.mod-menu ul li a { color: #222; padding: 9px 12px; border-radius: 9px; }
.hk-site .hk-navigation ul.mod-menu ul li a:hover,
.hk-site .hk-navigation ul.mod-menu ul li a:focus-visible { color: var(--hk-accent); background: #f7f7f7; }
.hk-site .hk-search {
  justify-self: end;
  width: 155px;
  min-width: 0;
  margin: 0;
  position: relative;
}
.hk-site .hk-search .mod-finder,
.hk-site .hk-search form,
.hk-site .hk-search input { width: 100%; max-width: 100%; min-width: 0; }
.hk-site .hk-search input {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
}
.hk-site .hk-search input:focus-visible { outline: 2px solid var(--hk-accent); outline-offset: 2px; }
.hk-site .hk-article-hero { border-radius: 12px; overflow: hidden; }
.hk-site .article-details .hk-article-hero figure,
.hk-site .article-details .hk-article-hero img { border-radius: 0 !important; }
.hk-site .hk-article-hero figcaption { border-radius: 0; }
@media(min-width:992px) and (max-width:1199.98px) {
  .hk-site .hk-header__inner { grid-template-columns: minmax(110px,1fr) minmax(0,auto) minmax(125px,1fr); column-gap: 8px; }
  .hk-site .hk-navigation ul.mod-menu > li > a { font-size: 12px; padding: 7px 8px; }
  .hk-site .hk-search { width: 125px; }
}
@media(max-width:991.98px) {
  .hk-site .hk-header__inner { display: flex; gap: 12px; min-height: 60px; }
  .hk-site .hk-brand { flex: 1 1 auto; }
  .hk-site .hk-navigation,
  .hk-site .hk-search { display:none; }
  .hk-site .hk-menu-toggle { display:block; margin-left:auto; }
  .hk-site .hk-mobile-nav { max-height: 75vh; overflow: auto; }
  .hk-site .hk-article-hero { border-radius: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .hk-site .hk-social-link,
  .hk-site .hk-navigation ul.mod-menu > li > a { transition: none; }
}

/* v0.4.1: разделяем навигационные ссылки и социальную полосу. */
.hk-site .hk-top .hk-top__social:empty { min-height: 22px; }
.hk-site .hk-top .hk-social-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* 0.4.2: по центру размещены векторные социальные иконки без внешних шрифтов. */
.hk-site {
  --hk-top-height: 40px;
}
.hk-site .hk-top {
  background: #292c31;
}
.hk-site .hk-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: var(--hk-top-height);
  padding-block: 3px;
}
.hk-site .hk-top__social {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.hk-site .hk-top__modules {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
  min-width: 0;
}
.hk-site .hk-top .hk-social-link {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: #f6f6f6;
  background: rgba(255,255,255,.065);
  text-decoration: none;
  opacity: 1;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.hk-site .hk-top .hk-social-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.hk-site .hk-top .hk-social-link:hover {
  color: #fff;
  border-color: var(--hk-accent);
  background: var(--hk-accent);
  transform: translateY(-2px);
}
.hk-site .hk-top .hk-social-link:focus-visible {
  color: #fff;
  background: var(--hk-accent);
  border-color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: none;
}
@media (max-width: 600px) {
  .hk-site .hk-top__inner:has(.hk-top__modules) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hk-site .hk-top__modules {
    justify-content: center;
    margin: 0;
  }
  .hk-site .hk-top__social { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hk-site .hk-top .hk-social-link { transition: none; }
}
