/**
 * v2 — Knowledge category-listing page: /knowledge/encyclopedia/{cat}/
 *
 * Использует общие переменные --xh-* из home.css. Namespace: xk-cat-*.
 * Адаптация макета buildings.html на единый слой портала.
 *
 * @since 2026-05-25
 */

/* ================= HERO ================= */
.xk-cat-hero {
  position: relative;
  z-index: 1;
  padding: 40px 0 0;
  overflow: hidden;
}
.xk-cat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.xk-cat-hero-bg picture,
.xk-cat-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.xk-cat-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,20,.6) 0%, rgba(6,10,20,.88) 55%, var(--xh-bg-deep) 100%);
}
/* Фото-шапка готового раздела: картинку видно сильнее, текст внизу остаётся читаемым. */
.xk-cat-hero-bg--photo img { opacity: .95; }
.xk-cat-hero-bg--photo::after {
  background: linear-gradient(180deg, rgba(6,10,20,.12) 0%, rgba(6,10,20,.5) 50%, rgba(6,10,20,.82) 78%, var(--xh-bg-deep) 100%);
}
.xk-cat-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--xh-max-w);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad);
}
.xk-cat-hero-inner .xh-breadcrumbs { margin-bottom: 14px; }
.xk-cat-hero-title {
  font-family: var(--xh-font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  text-transform: none;
  letter-spacing: .5px;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 10px;
}
.xk-cat-hero-desc {
  font-size: 15px;
  color: var(--xh-text-secondary);
  max-width: 620px;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Stat badges row */
.xk-cat-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.xk-cat-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--xh-radius);
  border: 1px solid var(--xh-border-light);
  background: rgba(12,19,34,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.xk-cat-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xk-cat-stat-icon svg { width: 18px; height: 18px; }
.xk-cat-stat-icon--blue   { background: rgba(42,125,225,.12); border: 1px solid rgba(42,125,225,.28); color: var(--xh-blue-light); }
.xk-cat-stat-icon--orange { background: rgba(232,132,30,.12); border: 1px solid rgba(232,132,30,.28); color: var(--xh-orange); }
.xk-cat-stat-icon--green  { background: rgba(32,168,104,.12); border: 1px solid rgba(32,168,104,.28); color: var(--xh-green); }
.xk-cat-stat-icon--teal   { background: rgba(32,176,184,.12); border: 1px solid rgba(32,176,184,.28); color: var(--xh-teal); }
.xk-cat-stat-icon--purple { background: rgba(106,64,184,.12); border: 1px solid rgba(106,64,184,.28); color: var(--xh-purple); }
.xk-cat-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--xh-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.xk-cat-hero-icon svg { width: 30px; height: 30px; }
.xk-cat-hero-icon--blue   { background: rgba(42,125,225,.14);  border: 1px solid rgba(42,125,225,.40); color: var(--xh-blue-light); box-shadow: 0 0 26px rgba(42,125,225,.30); }
.xk-cat-hero-icon--orange { background: rgba(232,132,30,.14);  border: 1px solid rgba(232,132,30,.40); color: var(--xh-orange);     box-shadow: 0 0 26px rgba(232,132,30,.30); }
.xk-cat-hero-icon--green  { background: rgba(32,168,104,.16);  border: 1px solid rgba(32,168,104,.45); color: var(--xh-green);      box-shadow: 0 0 28px rgba(32,168,104,.38); }
.xk-cat-hero-icon--teal   { background: rgba(32,176,184,.14);  border: 1px solid rgba(32,176,184,.40); color: var(--xh-teal);       box-shadow: 0 0 26px rgba(32,176,184,.30); }
.xk-cat-hero-icon--purple { background: rgba(106,64,184,.14);  border: 1px solid rgba(106,64,184,.40); color: var(--xh-purple);     box-shadow: 0 0 26px rgba(106,64,184,.30); }
.xk-cat-stat-val   { font-family: var(--xh-font-heading); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.xk-cat-stat-label { font-size: 12px; color: var(--xh-text-muted); line-height: 1.2; }

/* ================= LAYOUT ================= */
.xk-cat-layout {
  position: relative;
  z-index: 1;
  padding: 32px 0 56px;
}
.xk-cat-layout-inner {
  max-width: var(--xh-max-w);
  margin: 0 auto;
  padding: 0 var(--xh-container-pad);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
.xk-cat-main { min-width: 0; }

/* Intro text */
.xk-cat-intro {
  font-size: 14px;
  color: var(--xh-text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}
.xk-cat-intro p { margin: 0 0 10px; }
.xk-cat-intro p:last-child { margin-bottom: 0; }

/* Search bar */
.xk-cat-search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  background: var(--xh-bg-card);
  border: 1px solid var(--xh-border-light);
  border-radius: var(--xh-radius-lg);
  overflow: hidden;
  transition: border-color var(--xh-transition);
  margin-bottom: 16px;
}
.xk-cat-search:focus-within {
  border-color: var(--xh-blue);
  box-shadow: 0 0 0 3px rgba(42,125,225,.15);
}
.xk-cat-search-icon { padding: 0 16px; color: var(--xh-text-muted); display: flex; align-items: center; }
.xk-cat-search-icon svg { width: 18px; height: 18px; }
.xk-cat-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--xh-font-body);
  font-size: 15px;
  color: var(--xh-text);
  padding: 12px 0;
  min-width: 0;
}
.xk-cat-search input::placeholder { color: var(--xh-text-muted); }

/* Filter tabs */
.xk-cat-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.xk-cat-filter-tab {
  font-family: var(--xh-font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  letter-spacing: .3px;
  border: 1px solid var(--xh-border);
  color: var(--xh-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--xh-transition), color var(--xh-transition), background var(--xh-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.xk-cat-filter-tab:hover {
  border-color: var(--xh-border-light);
  color: var(--xh-text);
  background: rgba(255,255,255,.03);
}
.xk-cat-filter-tab.is-active {
  border-color: var(--xh-orange);
  color: #fff;
  background: rgba(232,132,30,.15);
}
.xk-cat-filter-tab .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.xk-cat-filter-tab .dot--planet { background: var(--xh-green); }
.xk-cat-filter-tab .dot--moon   { background: var(--xh-blue-light); }

/* Category pills */
.xk-cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.xk-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--xh-font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: .2px;
  border: 1px solid var(--xh-border);
  color: var(--xh-text-secondary);
  background: var(--xh-bg-card);
  cursor: pointer;
  transition: border-color var(--xh-transition), color var(--xh-transition);
  white-space: nowrap;
  text-decoration: none;
}
.xk-cat-pill:hover { border-color: var(--xh-border-light); color: var(--xh-text); }
.xk-cat-pill.is-active {
  border-color: var(--xh-orange);
  color: #fff;
  background: rgba(232,132,30,.10);
}
.xk-cat-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xk-cat-pill-icon svg { width: 12px; height: 12px; }
.xk-cat-pill-icon img { width: 16px; height: 16px; object-fit: contain; }
.xk-cat-pill-icon--res     { background: rgba(42,125,225,.15); border: 1px solid rgba(42,125,225,.3); color: var(--xh-blue-light); }
.xk-cat-pill-icon--energy  { background: rgba(232,132,30,.15); border: 1px solid rgba(232,132,30,.3); color: var(--xh-orange); }
.xk-cat-pill-icon--science { background: rgba(106,64,184,.15); border: 1px solid rgba(106,64,184,.3); color: var(--xh-purple); }
.xk-cat-pill-icon--speed   { background: rgba(32,176,184,.15); border: 1px solid rgba(32,176,184,.3); color: var(--xh-teal); }
.xk-cat-pill-icon--fields  { background: rgba(32,168,104,.15); border: 1px solid rgba(32,168,104,.3); color: var(--xh-green); }
.xk-cat-pill-icon--special { background: rgba(208,80,32,.15); border: 1px solid rgba(208,80,32,.3); color: var(--xh-woa-red); }
.xk-cat-pill-icon--premium { background: rgba(232,196,30,.15); border: 1px solid rgba(232,196,30,.3); color: var(--xh-yellow); }
/* Иконка-заглушка в карточке без своей картинки — показываем значок категории крупно */
.xk-cat-card-img-ph { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; }
.xk-cat-card-img-ph svg { width: 36px; height: 36px; }
.xk-cat-pill-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--xh-text-muted);
  background: rgba(255,255,255,.05);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Group section */
.xk-cat-group { margin-bottom: 24px; }
.xk-cat-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.xk-cat-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xk-cat-group-icon svg { width: 14px; height: 14px; }
.xk-cat-group-icon img { width: 20px; height: 20px; object-fit: contain; }
.xk-cat-group-title {
  font-family: var(--xh-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.xk-cat-group-count {
  font-family: var(--xh-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--xh-text-muted);
}
.xk-cat-group-desc {
  font-size: 13px;
  color: var(--xh-text-muted);
  margin-bottom: 16px;
  padding-left: 38px;
}

/* Entity cards grid */
.xk-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.xk-cat-card {
  background: var(--xh-bg-card);
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-lg);
  overflow: hidden;
  transition: border-color var(--xh-transition), transform var(--xh-transition), box-shadow var(--xh-transition);
  text-decoration: none;
  display: block;
}
.xk-cat-card:hover {
  border-color: var(--xh-border-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
/* Видимая фокус-обводка внутри карточки (overflow:hidden обрезал бы внешнюю). a11y 2026-05-28. */
.xk-cat-card:focus-visible {
  outline: 2px solid var(--xh-orange);
  outline-offset: -2px;
  border-color: var(--xh-orange);
}
/* Видимый фокус с клавиатуры для всех интерактивных элементов (a11y, WCAG 2.4.7, 2026-05-30) */
.xk-cat-pill:focus-visible,
.xk-cat-nav-link:focus-visible,
.xk-cat-filter-tab:focus-visible,
.bp-input:focus-visible,
#aw-level:focus-visible,
#bp-reset:focus-visible {
  outline: 2px solid var(--xh-orange);
  outline-offset: 2px;
}
.xk-cat-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--xh-bg-placeholder-grad);
  border-bottom: 1px solid var(--xh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.xk-cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
/* Плоские иконки (аномалии и т.п.): без тяжёлой плашки и линии — чистая интеграция. */
.xk-cat-card-img--flat {
  aspect-ratio: 16 / 9;
  background: #0a0e16;
  border-bottom: none;
}
.xk-cat-card-img--flat img { padding: 0; object-fit: cover; filter: none; }
.xk-cat-card-img--flat::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--xh-bg-card));
  pointer-events: none;
}
.xk-cat-card-img svg { width: 40px; height: 40px; color: var(--xh-text-muted); opacity: .25; }
.xk-cat-card-body { padding: 12px; }
.xk-cat-card-name {
  font-family: var(--xh-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--xh-text);
  margin: 0 0 6px;
  line-height: 1.25;
}
.xk-cat-card-desc {
  font-size: 12px;
  color: var(--xh-text-muted);
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xk-cat-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.xk-cat-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--xh-font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--xh-green);
  letter-spacing: .2px;
}
.xk-cat-card-location .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--xh-green); flex-shrink: 0; }
.xk-cat-card-location--moon .dot { background: var(--xh-blue-light); }
.xk-cat-card-location--moon { color: var(--xh-blue-light); }
.xk-cat-card-level {
  font-size: 11px;
  color: var(--xh-text-muted);
  font-family: var(--xh-font-heading);
  font-weight: 600;
}

/* Summary table */
.xk-cat-table-section {
  margin-top: 36px;
  margin-bottom: 36px;
}
.xk-cat-table-title {
  font-family: var(--xh-font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  margin: 0 0 16px;
}
.xk-cat-table-wrap {
  background: var(--xh-bg-card);
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-lg);
  overflow: hidden;
}
.xk-cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.xk-cat-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--xh-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--xh-text-muted);
  border-bottom: 1px solid var(--xh-border-light);
  background: rgba(255,255,255,.02);
}
.xk-cat-table td {
  padding: 11px 16px;
  color: var(--xh-text-secondary);
  border-bottom: 1px solid var(--xh-border);
}
.xk-cat-table tr:last-child td { border-bottom: none; }
.xk-cat-table tr:hover td { background: rgba(255,255,255,.02); }
.xk-cat-table td:first-child { color: var(--xh-text); font-weight: 600; }
.xk-cat-table a { color: var(--xh-orange); text-decoration: none; }
.xk-cat-table a:hover { text-decoration: underline; }

/* Bottom dual sections */
.xk-cat-faq-section { margin-top: 36px; }
.xk-cat-bottom-title {
  font-family: var(--xh-font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  margin: 0 0 16px;
}
/* Частые вопросы — две независимые колонки (как на странице достижений), но без «дыр»:
   каждая колонка пакует вопросы вплотную, открытие одного не сдвигает соседнюю колонку. */
/* Один столбец на всех экранах (owner 2026-05-30: два столбца нечитабельны) */
.xk-cat-faq-grid { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.xk-cat-faq-grid .xh-faq-item {
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-lg);
  background: var(--xh-bg-card);
  overflow: hidden;
  transition: border-color var(--xh-transition), background var(--xh-transition);
}
.xk-cat-faq-grid .xh-faq-item:hover { border-color: var(--xh-border-light); }
.xk-cat-faq-grid .xh-faq-item[open] { border-color: rgba(232,132,30,.40); background: rgba(232,132,30,.05); }
.xk-cat-faq-grid .xh-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px;
  font-family: var(--xh-font-heading); font-size: 15px; font-weight: 600; color: #fff;
  line-height: 1.4; cursor: pointer; list-style: none;
}
.xk-cat-faq-grid .xh-faq-q::-webkit-details-marker { display: none; }
.xk-cat-faq-grid .xh-faq-q::after { content: none !important; }
.xk-cat-faq-grid .xh-faq-q svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--xh-text-muted); transition: transform var(--xh-transition); }
.xk-cat-faq-grid .xh-faq-item[open] .xh-faq-q svg { transform: rotate(180deg); color: var(--xh-orange); }
/* Ответ — отделён линией-разделителем от вопроса (заголовок чётко отходит от текста) */
.xk-cat-faq-grid .xh-faq-a {
  margin: 0 18px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--xh-border);
  font-size: 14px; line-height: 1.65; color: var(--xh-text-secondary);
}
@media (max-width: 720px) { .xk-cat-faq-grid { grid-template-columns: 1fr; } }

/* FAQ list */
.xk-cat-faq-list { display: flex; flex-direction: column; gap: 2px; }

/* ================= SIDEBAR ================= */
.xk-cat-sidebar {
  position: sticky;
  top: calc(var(--xh-header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xk-cat-sidebar-card {
  background: var(--xh-bg-card);
  border: 1px solid var(--xh-border);
  border-radius: var(--xh-radius-lg);
  padding: 20px;
}
.xk-cat-sidebar-title {
  font-family: var(--xh-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  margin: 0 0 14px;
}

/* Sidebar nav (scroll-spy) */
.xk-cat-nav-list { display: flex; flex-direction: column; gap: 1px; }
.xk-cat-nav-link {
  display: block;
  padding: 7px 12px;
  border-radius: var(--xh-radius);
  font-family: var(--xh-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--xh-text-secondary);
  letter-spacing: .2px;
  transition: color var(--xh-transition), background var(--xh-transition), border-color var(--xh-transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.xk-cat-nav-link:hover { color: var(--xh-text); background: rgba(255,255,255,.03); }
.xk-cat-nav-link.is-active {
  color: var(--xh-orange);
  border-left-color: var(--xh-orange);
  background: rgba(232,132,30,.06);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .xk-cat-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .xk-cat-layout-inner { grid-template-columns: 1fr 260px; gap: 24px; }
}
@media (max-width: 768px) {
  .xk-cat-hero { padding: 32px 0 0; }
  .xk-cat-hero-inner { padding: 0 20px; }
  .xk-cat-stats { gap: 8px; }
  .xk-cat-stat { padding: 10px 14px; }
  .xk-cat-stat-val { font-size: 18px; }
  .xk-cat-layout { padding: 24px 0 48px; }
  .xk-cat-layout-inner { padding: 0 20px; grid-template-columns: 1fr; }
  .xk-cat-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .xk-cat-sidebar-card:first-child { grid-column: 1 / -1; }
  .xk-cat-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .xk-cat-bottom { grid-template-columns: 1fr; }
  .xk-cat-table-wrap { overflow-x: auto; }
}
@media (max-width: 480px) {
  .xk-cat-hero-inner { padding: 0 16px; }
  .xk-cat-layout-inner { padding: 0 16px; }
  .xk-cat-cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xk-cat-stat { padding: 8px 12px; }
  .xk-cat-stat-val { font-size: 16px; }
  .xk-cat-stat-icon { width: 30px; height: 30px; }
  .xk-cat-stat-icon svg { width: 14px; height: 14px; }
  .xk-cat-sidebar { grid-template-columns: 1fr; }
  .xk-cat-related-grid { grid-template-columns: 1fr; }
  .xk-cat-pills { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .xk-cat-card, .xk-cat-filter-tab, .xk-cat-pill, .xk-cat-related-card, .xk-cat-nav-link { transition: none; }
}

/* Связанные разделы — плитки с иконками (унификация с обзорными статьями, owner 2026-05-28) */
.xk-cat-related-card { display: flex; align-items: center; gap: 14px; }
.xk-cat-related-art { width: 48px; height: 48px; border-radius: var(--xh-radius); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 38%, rgba(232,132,30,.20), transparent 70%), #0a1322; border: 1px solid rgba(232,132,30,.32); }
.xk-cat-related-art svg { width: 24px; height: 24px; color: var(--xh-orange); }
.xk-cat-related-text h4 { margin: 0 0 3px; }
.xk-cat-related-text p { margin: 0; }

/* ========== Карточка исследования (owner 2026-05-29) ========== */
/* Режим «fill»: квадратная картинка заполняет блок без видимой подложки */
.xk-cat-card-img--fill { background: #0a0e16; border-bottom: none; }
.xk-cat-card-img--fill img { padding: 0; object-fit: cover; }
/* Уровень закреплён в правом верхнем углу картинки — не двигается */
.xk-cat-card-lvl-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  font-family: var(--xh-font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2px;
  color: rgba(255,255,255,.72);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(6,10,18,.45);
  border: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* Название исследования ведёт по иерархии — крупнее и белее, чем эффект */
.xk-cat-card--research .xk-cat-card-name { font-size: 15px; color: #fff; }
/* Эффект исследования — выделенная плашка со стрелкой (owner: так лучше, чем боковая полоса) */
.xk-cat-card-bonus {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--xh-text-secondary);
  background: rgba(42,125,225,.08);
  border: 1px solid rgba(42,125,225,.20);
  border-radius: var(--xh-radius);
  padding: 8px 10px;
  margin: 0 0 10px;
}
.xk-cat-card-bonus-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--xh-blue-light);
}
/* Тело карточки исследования — колонка, чтобы низ прибивался к нижнему краю */
.xk-cat-card--research { display: flex; flex-direction: column; }
.xk-cat-card--research .xk-cat-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Низ карточки (наука + статус оверлока) всегда прижат к нижнему краю — не скачет */
/* Наука и статус оверлока — в столбик, чтобы не конфликтовали и не съезжали при узких колонках */
.xk-cat-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
/* Строка «сколько науки на макс.» с реальной игровой иконкой */
.xk-cat-card-science {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--xh-font-heading);
}
.xk-cat-card-science-ico { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.xk-cat-card-science-val { font-size: 13px; font-weight: 700; color: var(--xh-text); }
.xk-cat-card-science-lbl { font-size: 11px; font-weight: 600; color: var(--xh-text-muted); }
/* Статус оверлока: «доступен» заметен (жёлтая звезда-чип), «нет» — тихая подпись, чтобы не шуметь по сетке */
.xk-cat-card-overlock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: var(--xh-font-heading);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--xh-text-muted);
  opacity: .65;
}
.xk-cat-card-overlock svg { width: 11px; height: 11px; flex-shrink: 0; }
.xk-cat-card-overlock.is-on {
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 1;
  color: var(--xh-orange);
  background: rgba(232,132,30,.12);
  border: 1px solid rgba(232,132,30,.32);
}
