.kb-section {
  --kb-ink: #e6f2e9;
  --kb-muted: #a7bdb0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--kb-ink);
  background: #0b1713;
  font-family: Arial, "Noto Sans", sans-serif;
}
.kb-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 63%, #165b4047, transparent 55%), radial-gradient(ellipse at 84% 20%, #1a3b3d40, transparent 42%);
}
.kb-wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; padding: 76px 0 28px; }
.kb-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.kb-section .kb-eyebrow { margin: 0 0 18px; color: #94b5a2; font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.kb-section h2 { margin: 0; max-width: 760px; color: var(--kb-ink); font: 400 clamp(30px, 3.5vw, 48px)/1.12 Arial, "Noto Sans", sans-serif; letter-spacing: -.045em; }
.kb-section .kb-description { margin: 18px 0 0; color: var(--kb-muted); font-size: 15px; line-height: 1.6; }
.kb-open { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 19px; border: 1px solid #6d9d826e; border-radius: 8px; color: var(--kb-ink); background: #9ed5b90a; text-decoration: none; font-size: 13px; line-height: 1.4; transition: background .2s, border-color .2s; }
.kb-open:hover { background: #a0d3b61a; border-color: #a0d3b6; }
.kb-map { position: relative; height: 550px; margin-top: 30px; }
.kb-map::before, .kb-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, #b5ddc650 .7px, transparent 1px), radial-gradient(circle, #bddbcb32 .6px, transparent 1px); background-size: 83px 71px, 113px 127px; background-position: 9px 25px, 46px 64px; mask-image: radial-gradient(ellipse, #000, transparent 76%); }
.kb-map::after { transform: rotate(8deg) scale(.9); opacity: .4; }
.kb-constellation { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.kb-map-ready .kb-constellation { opacity: 1; }
.kb-in-view .kb-constellation { animation: kb-drift 18s ease-in-out infinite alternate; }
.kb-edges, .kb-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.kb-edges { overflow: visible; pointer-events: none; }
.kb-edges line { stroke: #7daf902a; stroke-width: .8px; vector-effect: non-scaling-stroke; transition: stroke .25s, stroke-width .25s; }
.kb-edges line.kb-edge-active { stroke: #bbf5ce9c; stroke-width: 1.4px; }
.kb-node { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 180px; min-height: 52px; padding: 6px; transform: translate(-50%, -50%); border-radius: 10px; text-align: center; text-decoration: none; color: #c5d8cb; font-size: 12px; line-height: 1.35; }
.kb-node-label { max-width: 100%; padding: 2px 5px; border-radius: 5px; background: #0b1713c9; text-wrap: balance; }
.kb-node-dot { width: 5px; height: 5px; border-radius: 50%; background: #bbdfc9; box-shadow: 0 0 0 4px #a0d3b60a, 0 0 17px 3px #94d7af42; transition: box-shadow .25s; }
.kb-node-hub { color: #f0f8f1; font-size: 14px; font-weight: 700; }
.kb-node-hub .kb-node-dot { width: 8px; height: 8px; background: #d6ffe3; box-shadow: 0 0 0 6px #a0d3b60c, 0 0 28px 6px #94d7af5c; }
.kb-node:hover, .kb-node:focus-visible { color: white; z-index: 2; }
.kb-node:hover .kb-node-dot, .kb-node:focus-visible .kb-node-dot { box-shadow: 0 0 0 7px #a0d3b61f, 0 0 30px 10px #a0d3b654; }
.kb-node:focus-visible, .kb-open:focus-visible { outline: 2px solid #baf2cb; outline-offset: 4px; }
.kb-map-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid #a0d3b621; color: #99b0a2; font-size: 11px; line-height: 1.5; letter-spacing: .02em; }
.kb-map-key { display: flex; align-items: center; gap: 10px; }
.kb-map-key i { width: 4px; height: 4px; border-radius: 50%; background: #bbdfc9; box-shadow: 0 0 7px 2px #94d7af42; }
.kb-map-status { position: absolute; inset: 44% 16px auto; margin: 0; text-align: center; color: var(--kb-muted); font-size: 14px; line-height: 1.6; }
.kb-map-unavailable { height: 180px; }
@keyframes kb-drift { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@media (min-width: 601px) and (max-width: 960px) {
  .kb-wrap { width: calc(100% - 56px); }
  .kb-intro { align-items: flex-start; flex-direction: column; gap: 22px; }
  .kb-node { width: 130px; font-size: 11px; }
}
@media (max-width: 600px) {
  .kb-wrap { width: calc(100% - 40px); padding-top: 44px; }
  .kb-intro { align-items: flex-start; flex-direction: column; gap: 24px; }
  .kb-section .kb-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .kb-section h2 { max-width: 320px; font-size: 34px; }
  .kb-section .kb-description { max-width: 280px; font-size: 13px; }
  .kb-open { width: 100%; box-sizing: border-box; }
  .kb-map { height: 740px; margin-top: 26px; }
  .kb-node { width: 138px; max-width: 45%; min-height: 60px; gap: 8px; font-size: 11px; }
  .kb-node-hub { font-size: 12px; }
  .kb-edges line { stroke-opacity: .65; }
  .kb-map-footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 10px; }
  .kb-map-unavailable { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-section *, .kb-section *::before, .kb-section *::after { animation: none !important; transition: none !important; }
}

/* перетаскивание */
@media (min-width: 601px) { .kb-node { cursor: grab; touch-action: none; } .kb-node-drag { cursor: grabbing; z-index: 5; } .kb-node-drag .kb-node-dot { transform: scale(1.35); } }
