/* CVE.Global — концепт редизайна
   Цвета и шрифты меняются в блоке :root ниже. */

/* ---------- Шрифты (локально, Geist и Geist Mono, лицензия OFL) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --bg: #0a0a0b;            /* фон страницы */
  --surface: #111214;       /* карточки */
  --inset: #0c0c0e;         /* «окна» с фрагментами интерфейса */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ededf0;
  --text-2: #9a9ca6;
  --text-3: #80828c;
  --accent: #00d4ff;        /* циан из логотипа CVE.Global */
  --accent-rgb: 0, 212, 255;
  --accent-ink: #00161c;    /* текст на акцентной кнопке */
  --threat: #ff6b5e;        /* только для данных: узлы-угрозы, приоритет */
  --threat-rgb: 255, 107, 94;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(var(--accent-rgb), 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.2; text-align: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #63e4ff; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14), 0 10px 36px rgba(var(--accent-rgb), 0.28); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.02); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.07); }
.btn--sm { min-height: 34px; padding: 6px 14px; border-radius: 8px; font-size: 0.8125rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--accent); }
.brand__text { font-family: var(--mono); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__dot { color: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: 44px; }
.nav a { color: var(--text-2); font-size: 0.875rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--line-strong); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 184px; padding: 6px;
  background: #141518; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.lang__item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 8px; font-size: 0.875rem; }
.lang__item:hover { background: rgba(255, 255, 255, 0.06); }
.lang__item[aria-current] { color: var(--accent); }
.lang__code { color: var(--text-3); font-family: var(--mono); font-size: 0.75rem; }

.menu { display: none; }
.menu summary { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 4px var(--gutter) 16px;
  background: #0e0f11; border-bottom: 1px solid var(--line);
}
.menu__panel a { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.menu__panel a:first-child { border-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.hero__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 60% at 72% 46%, rgba(var(--accent-rgb), 0.11), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: clamp(520px, 78vh, 760px); padding-block: clamp(3rem, 7vw, 5rem); pointer-events: none; }
.hero__copy { max-width: 38rem; pointer-events: auto; }
.hero__title {
  font-size: clamp(1.75rem, 0.85rem + 4.6vw, 4rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: balance; overflow-wrap: break-word;
}
.hero__sub { margin-top: 1.5rem; max-width: 34rem; color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); line-height: 1.6; }
.hero .cta { margin-top: 2.25rem; }

.hero__graph {
  position: absolute; top: 0; right: 0; bottom: 0; width: 66%;
  background: url("../favicon/favicon.svg") 62% 50% / 120px no-repeat; /* виден, пока не запустился скрипт */
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 30%), linear-gradient(180deg, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 2%, #000 30%), linear-gradient(180deg, #000 82%, transparent);
  mask-composite: intersect;
}
.js .hero__graph { background: none; }
.hero__graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.signal {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: rgba(17, 18, 20, 0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text); font-family: var(--mono); font-size: 0.75rem; line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.5s;
  will-change: transform, opacity;
}
.signal.is-on { opacity: 1; }
.signal::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--threat); box-shadow: 0 0 0 3px rgba(var(--threat-rgb), 0.2); }
.signal[data-kind="link"]::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value { font-family: var(--mono); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.stat__label { color: var(--text-2); font-size: 0.875rem; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__title { font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.875rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.section__sub { margin-top: 1.125rem; color: var(--text-2); font-size: 1.0625rem; max-width: 38rem; }
.section__head--split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; max-width: none; }
.section__lead { display: grid; gap: 0.875rem; font-size: 1.0625rem; }
.section__lead .muted { font-size: 0.9375rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  isolation: isolate;
}
.card--wide { grid-column: span 7; }
.card--narrow { grid-column: span 5; }
.card--half { grid-column: span 6; }
/* свечение границы и фона за курсором */
.card::before, .card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.card::before {
  padding: 1px; z-index: 1;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.7), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card::after { z-index: -1; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.07), transparent 65%); }
.card:hover::before, .card:hover::after { opacity: 1; }

.card__ui { container-type: inline-size; flex: 1; min-height: 252px; margin: 10px 10px 0; background: var(--inset); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card__copy { padding: 22px 24px 26px; }
.card__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.card__tagline { margin-top: 6px; font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }
.card__text { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; max-width: 62ch; }

/* ---------- Фрагменты интерфейса внутри карточек ---------- */
.ui { display: flex; flex-direction: column; height: 100%; padding: 14px; color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; }
.chip { flex: none; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.6875rem; }
.chip.is-on { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 0.6875rem; line-height: 1.35; }
.tag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.tag--threat::before { background: var(--threat); box-shadow: 0 0 0 3px rgba(var(--threat-rgb), 0.18); }
.tag--link::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }

/* поиск */
.ui-search__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.ui-search__q { margin-right: auto; padding-left: 2px; color: var(--text); font-size: 0.8125rem; white-space: nowrap; }
.caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.ui-search__head, .ui-search__row { display: grid; grid-template-columns: 1.6fr 1fr 1.25fr 0.6fr 0.4fr; gap: 10px; padding: 6px 4px; }
.ui-search__head { color: var(--text-3); font-size: 0.6875rem; }
.ui-search__row { border-top: 1px solid var(--line); white-space: nowrap; }
.ui-search__row span:first-child { color: var(--text); }
.ui-search__row.is-flag span:nth-child(3) { color: var(--text); }
.ui-search__row.is-flag span:nth-child(3)::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--threat); vertical-align: 0.12em; }
.ui-search__foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 10px; }

/* граф */
.ui-graph { padding: 8px 14px 14px; }
.ui-graph__svg { flex: 1; width: 100%; min-height: 0; }
.ui-graph__svg .e line { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.ui-graph__svg .e--link line { stroke: var(--accent); stroke-opacity: 0.8; stroke-dasharray: 3 4; animation: dash 1.4s linear infinite; }
.ui-graph__svg .e--threat line { stroke: var(--threat); stroke-opacity: 0.7; }
.ui-graph__svg .n--hub { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.7)); }
.ui-graph__svg .n--domain { fill: var(--text); }
.ui-graph__svg .n--svc { fill: var(--text-3); }
.ui-graph__svg .n--ip { fill: var(--inset); stroke: var(--text); stroke-width: 1.5; }
.ui-graph__svg .n--cert { fill: var(--inset); stroke: var(--accent); stroke-width: 1.5; }
.ui-graph__svg .n--asn { fill: var(--inset); stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 2.5 2.5; }
.ui-graph__svg .n--tech { fill: var(--inset); stroke: var(--text-2); stroke-width: 1.5; }
.ui-graph__svg .n--threat { fill: var(--threat); }
.ui-graph__svg .n--halo { fill: rgba(var(--threat-rgb), 0.2); transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-in-out infinite; }
.ui-graph__svg text { fill: var(--text-2); font-family: var(--mono); font-size: 9.5px; }
.ui-graph__svg text.is-threat { fill: var(--threat); }
.ui-graph__legend { display: flex; flex-wrap: wrap; gap: 6px; }

/* Oracle */
.ui-oracle { gap: 10px; justify-content: center; }
.ui-oracle__q { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: 12px 12px 3px 12px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-family: var(--font); font-size: 0.8125rem; line-height: 1.4; }
.ui-oracle__trace { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.6875rem; }
.ui-oracle__trace span { padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; }
.ui-oracle__trace i { width: 12px; height: 1px; background: var(--line-strong); }
.ui-oracle__a { display: grid; gap: 6px; }
.ui-oracle__a li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; padding: 7px 10px 7px 24px; position: relative; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.ui-oracle__a li::before { content: ""; position: absolute; left: 10px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--threat); }
.ui-oracle__a li.is-new::before { background: var(--accent); }
.ui-oracle__a b { color: var(--text); font-weight: 500; }
.ui-oracle__a span { font-family: var(--font); font-size: 0.75rem; }

/* окружение */
.ui-env { gap: 12px; justify-content: center; }
.ui-env__head { display: flex; justify-content: space-between; }
.ui-env__head span:first-child { color: var(--text); }
.ui-env__grid { width: 100%; height: auto; }
.ui-env__grid .c0 { fill: rgba(255, 255, 255, 0.05); }
.ui-env__grid .c1 { fill: rgba(255, 255, 255, 0.24); }
.ui-env__grid .c2 { fill: var(--accent); fill-opacity: 0.85; }
.ui-env__grid .c3 { fill: var(--threat); }
.ui-env__rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.ui-env__rows span:first-child { color: var(--text); }
.ui-env__rows .tag { margin-left: auto; }

/* приоритеты */
.ui-risk { justify-content: center; }
.ui-risk__head, .ui-risk__row { display: grid; grid-template-columns: 14px 1.1fr 1.25fr 1fr; gap: 12px; align-items: center; padding: 9px 4px; }
.ui-risk__head { color: var(--text-3); font-size: 0.6875rem; padding-block: 4px 6px; }
.ui-risk__row { border-top: 1px solid var(--line); white-space: nowrap; }
.ui-risk__row span:nth-child(2) { color: var(--text); }
.ui-risk__row .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ui-risk__row .bar i { display: block; height: 100%; border-radius: 3px; background: rgba(237, 237, 240, 0.5); }
.ui-risk__row.is-top span:first-child { color: var(--threat); }
.ui-risk__row.is-top .bar i { background: var(--threat); }

/* Радар */
.ui-radar { gap: 12px; justify-content: center; }
.ui-radar__head { display: flex; align-items: center; gap: 9px; }
.ui-radar__head b { color: var(--text); font-family: var(--font); font-size: 0.8125rem; font-weight: 600; }
.ui-radar__target { margin-left: auto; color: var(--text-3); }
.sweep { position: relative; width: 16px; height: 16px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 50%; overflow: hidden; }
.sweep::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(var(--accent-rgb), 0.85), transparent 32%); animation: spin 3.6s linear infinite; }
.ui-radar__log { margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--line-strong); }
.ui-radar__log li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; padding: 7px 0; }
.ui-radar__log li::before { content: ""; position: absolute; left: -20.5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--inset); border: 1.5px solid var(--text-3); }
.ui-radar__log li.is-new::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
.ui-radar__log li.is-threat::before { background: var(--threat); border-color: var(--threat); box-shadow: 0 0 0 3px rgba(var(--threat-rgb), 0.18); }
.ui-radar__log time { color: var(--text-3); }
.ui-radar__log b { color: var(--text); font-weight: 500; }
.ui-radar__log li > span { font-family: var(--font); }
.ui-radar__log .nil { color: var(--text-3); }

/* фрагменты подстраиваются под ширину своей карточки, а не окна */
@container (max-width: 440px) {
  .col-asn, .col-cve { display: none; }
  .ui-search__head, .ui-search__row { grid-template-columns: 1.75fr 1.4fr 0.62fr 0.36fr; gap: 8px; }
  .ui-risk__head, .ui-risk__row { grid-template-columns: 14px 1.2fr 1fr; }
  .ui-search__bar .chip:not(.is-on) { display: none; }
  .ui-radar__target { display: none; }
}
@container (max-width: 290px) {
  .col-geo { display: none; }
  .ui-search__head, .ui-search__row { grid-template-columns: 1.6fr 1.4fr 0.6fr; }
}

/* ---------- Каталог модулей ---------- */
.section--catalog { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent); }
.catalog { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.catalog .section__head { margin-bottom: 0; }
.catalog .btn { margin-top: 1.75rem; }
.catalog__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 16px; color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; }
.catalog__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.catalog__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.35; }
.mod__dots { display: inline-flex; flex: none; gap: 5px; }
.dot { width: 7px; height: 7px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%; }
.dot.is-on { background: var(--accent); border-color: var(--accent); }

/* ---------- Как начать ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 30px 32px 0 0; border-top: 1px solid var(--line-strong); }
.step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.step__num { display: block; color: var(--accent); font-family: var(--mono); font-size: 0.8125rem; }
.step__title { margin-top: 14px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.step__text { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; max-width: 34ch; }

/* ---------- Финальный CTA ---------- */
.section--final { padding-top: 0; }
.final {
  position: relative; overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(60% 130% at 88% 50%, rgba(var(--accent-rgb), 0.12), transparent 70%), #0e0f11;
}
.final__mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0.11; pointer-events: none; }
.final__title { position: relative; max-width: 20ch; font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.875rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.final__text { position: relative; margin-top: 1.25rem; max-width: 36rem; color: var(--text-2); font-size: 1.0625rem; }
.final .cta { position: relative; margin-top: 2.25rem; }

/* ---------- Футер ---------- */
.footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.875rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--mono); font-size: 0.8125rem; }
.footer__brand svg { color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__links a { padding: 4px 0; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__note { margin-top: 18px; color: var(--text-3); font-size: 0.8125rem; }

/* ---------- Появление при скролле (только при включённом JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -14; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0%, 100% { transform: scale(0.8); opacity: 0.9; } 50% { transform: scale(1.35); opacity: 0.35; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .card--wide, .card--narrow, .card--half { grid-column: span 6; }
  .catalog { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .topbar__login { display: none; }
  .menu { display: block; }
  .hero__inner { min-height: 0; padding-block: clamp(2.5rem, 9vw, 4rem) 0.5rem; }
  .hero__graph {
    position: relative; order: 2; width: 100%; height: clamp(340px, 86vw, 460px);
    background-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  }
  .hero__stage::before { background: radial-gradient(70% 40% at 50% 72%, rgba(var(--accent-rgb), 0.12), transparent 70%); }
  .section__head--split { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps { grid-template-columns: 1fr; margin-left: 4px; }
  .step { padding: 0 0 34px 28px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -5px; top: 4px; }
  .step__text { max-width: 48ch; }
}
@media (max-width: 760px) {
  .card--wide, .card--narrow, .card--half { grid-column: span 12; }
  .card__ui { min-height: 0; }
  .ui { min-height: 232px; }
  .stats { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat__value { flex: none; min-width: 5.2rem; font-size: 1.25rem; }
  .final__mark { right: -170px; opacity: 0.09; }
}
@media (max-width: 560px) {
  .catalog__list { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .card__copy { padding: 20px 18px 22px; }
}

@media (max-width: 340px) {
  .hero__title { font-size: 1.625rem; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
