/* Лэндинг opgard.net: та же палитра и шрифты, что у панели (styles.css),
   без сборщика и без внешних запросов — CSP панели: всё только своё.
   Инлайновых стилей нет: style-src 'self' их не пустит. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin.woff2) format("woff2"); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format("woff2"); unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #ffffff;
  --subtle: #f6f6f6;
  --card: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --border: #ececec;
  --border-strong: #dedede;
  --primary: #171717;
  --primary-fg: #fafafa;
  --brand: #059467;
  --brand-soft: rgb(5 148 103 / 0.1);
  --brand-line: rgb(5 148 103 / 0.35);
  --bad: #dc2626;
  --trace: rgb(10 10 10 / 0.12);
  --chip: #121212;
  --chip-fg: #fafafa;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --subtle: #121212;
    --card: #101010;
    --fg: #fafafa;
    --muted: #a3a3a3;
    --faint: #6b6b6b;
    --border: #1e1e1e;
    --border-strong: #2a2a2a;
    --primary: #fafafa;
    --primary-fg: #171717;
    --brand: #36d399;
    --brand-soft: rgb(54 211 153 / 0.1);
    --brand-line: rgb(54 211 153 / 0.4);
    --bad: #f87171;
    --trace: rgb(250 250 250 / 0.12);
    --chip: #171717;
    --chip-fg: #fafafa;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -16px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--fg); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 8px; border-radius: 8px; }
.lang:hover { color: var(--fg); background: var(--subtle); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: opacity .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--subtle); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 16px; height: 16px; }

/* Первый экран */
.hero { position: relative; padding: 72px 0 32px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero > * { position: relative; }
.beta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line);
  font-size: 13px; font-weight: 600;
}
.beta i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-line); animation: beat 2s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 var(--brand-line); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin: 22px auto 0; max-width: 820px; font-size: clamp(32px, 6vw, 64px); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* Схема: посетители и атаки → Opgard → сайт */
.scheme { margin: 56px auto 0; max-width: 960px; }
.scheme svg { width: 100%; height: auto; overflow: visible; }
.scheme .tall { display: none; }
@media (max-width: 640px) {
  .scheme .wide { display: none; }
  .scheme .tall { display: block; max-width: 360px; margin: 0 auto; }
}
.s-trace { fill: none; stroke: var(--trace); stroke-width: 1.5; }
.s-pill { fill: var(--card); stroke: var(--border-strong); }
.s-label { fill: var(--fg); font: 600 15px "Onest", sans-serif; }
.s-sub { fill: var(--muted); font: 500 11px "JetBrains Mono", monospace; letter-spacing: .02em; }
.s-dot-good { fill: var(--brand); }
.s-dot-bad { fill: var(--bad); }
.s-chip { fill: var(--chip); }
.s-chip-edge { fill: none; stroke: rgb(255 255 255 / 0.1); }
.s-chip-label { fill: var(--chip-fg); font: 700 20px "Onest", sans-serif; letter-spacing: -0.02em; }
.s-chip-sub { fill: rgb(250 250 250 / 0.55); font: 500 10.5px "JetBrains Mono", monospace; letter-spacing: .04em; }
.s-pin { fill: #525252; }
.s-site { fill: var(--card); stroke: var(--brand-line); }
.s-pulse { fill: none; stroke-linecap: round; animation: pulse var(--dur, 3.6s) linear infinite; animation-delay: var(--delay, 0s); }
.s-good { stroke: var(--brand); }
.s-bad { stroke: var(--bad); }
.s-glow { stroke-width: 7; opacity: .25; }
.s-core { stroke-width: 2.2; }
.s-flash { fill: var(--bad); opacity: 0; animation: flash var(--dur, 3.6s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes pulse {
  from { stroke-dashoffset: var(--len, 14); }
  to { stroke-dashoffset: var(--to, -100); }
}
@keyframes flash {
  0%, 80% { opacity: 0; r: 3; }
  88% { opacity: .9; r: 7; }
  100% { opacity: 0; r: 10; }
}
/* Задержки и длины — классами: инлайновые стили CSP не пустит. */
.d1 { --delay: 0s; } .d2 { --delay: 1.2s; } .d3 { --delay: 2.4s; } .d4 { --delay: 0.6s; } .d5 { --delay: 1.8s; } .d6 { --delay: 3s; }
.dur-long { --dur: 4.2s; }
.l-glow { --len: 24; --to: -100; stroke-dasharray: 24 300; }
.l-core { --len: 14; --to: -110; stroke-dasharray: 14 300; }

/* Секции */
section { scroll-margin-top: 80px; }
.block { padding: 88px 0; }
.block + .block { border-top: 1px solid var(--border); }
.eyebrow { color: var(--brand); font: 600 13px "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.block h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); max-width: 720px; text-wrap: balance; }
.block .sub { margin-top: 14px; color: var(--muted); font-size: 17px; max-width: 640px; }

.grid { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 18px; font-size: 18px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Отличия: два столбца со списком */
.diff { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
@media (max-width: 760px) { .diff { grid-template-columns: 1fr; } }
.diff div { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--border); }
.diff svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diff b { display: block; font-size: 16px; }
.diff span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Шаги подключения */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 24px; border-radius: 16px; background: var(--subtle); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg); font-weight: 700; font-size: 15px;
}
.step h3 { margin-top: 16px; font-size: 18px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.dns { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; color: var(--muted); overflow-x: auto; white-space: nowrap; }
.dns b { color: var(--fg); font-weight: 600; }

/* Заявка */
.apply { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; gap: 32px; } }
.apply ul { margin: 24px 0 0; padding: 0; list-style: none; }
.apply li { display: flex; gap: 10px; padding: 8px 0; color: var(--muted); }
.apply li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
form.card { padding: 28px; }
.field { display: block; margin-top: 18px; }
.field:first-of-type { margin-top: 0; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field > span small { font-weight: 400; color: var(--faint); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form .btn { width: 100%; margin-top: 22px; }
.consent { margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; display: none; }
.status.ok { display: block; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.status.err { display: block; background: rgb(220 38 38 / 0.08); color: var(--bad); border: 1px solid rgb(220 38 38 / 0.3); }
form.sent .field, form.sent .btn, form.sent .consent { display: none; }

/* Вопросы */
.faq { margin-top: 36px; max-width: 760px; }
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
footer .logo { font-size: 15px; color: var(--fg); }
footer .logo svg { width: 22px; height: 22px; }
footer nav { margin-left: auto; display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .hero { padding-top: 48px; }
  .block { padding: 64px 0; }
  .top-end .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .s-pulse, .s-flash, .beta i { animation: none; opacity: 0; }
  .beta i { opacity: 1; }
}

/* Сцены в карточках возможностей: что делает функция — в движении.
   Всё на классах (CSP: без инлайновых стилей), цикл 8 с. */
.art {
  position: relative; height: 140px; overflow: hidden;
  border-radius: 12px; background: var(--subtle); border: 1px solid var(--border);
  padding: 12px 14px; font: 500 11.5px/1.5 "JetBrains Mono", ui-monospace, monospace; color: var(--muted);
}
.art-rows::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, var(--subtle));
}
.card .art + h3 { margin-top: 18px; }
.ok-c { color: var(--brand); }
.bad-c { color: var(--bad); }

/* 1. Фильтр атак: строки запросов, атаки вспыхивают и отклоняются */
.art-rows .r { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; margin-bottom: 3px; border-radius: 6px; white-space: nowrap; animation: rowIn 8s ease-out infinite both; }
.art-rows .r i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.art-rows .r span { overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.art-rows .r b { margin-left: auto; font-weight: 600; color: var(--brand); }
.art-rows .r.bad i { background: var(--bad); }
.art-rows .r.bad b { color: var(--bad); }
.art-rows .r.bad { animation-name: rowInBad; }
.art-rows .r:nth-child(2) { animation-delay: .5s; }
.art-rows .r:nth-child(3) { animation-delay: 1s; }
.art-rows .r:nth-child(4) { animation-delay: 1.5s; }
@keyframes rowIn { 0% { opacity: 0; transform: translateY(6px); } 6%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes rowInBad {
  0% { opacity: 0; transform: translateY(6px); background: transparent; }
  6% { opacity: 1; transform: none; background: transparent; }
  12% { background: rgb(220 38 38 / 0.16); }
  30%, 88% { opacity: 1; background: rgb(220 38 38 / 0.07); }
  96%, 100% { opacity: 0; }
}

/* 2. Проверка браузера: полоса заполняется, человек проходит, скрипт — нет */
.art-check .win { border: 1px solid var(--border-strong); background: var(--card); border-radius: 8px; padding: 8px 10px; }
.art-check .win p { color: var(--fg); }
.art-check .bar { margin-top: 7px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.art-check .bar span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; animation: fill 8s ease-in-out infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 22%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.art-check .v { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding-left: 2px; white-space: nowrap; opacity: 0; animation: appear 8s ease-out infinite; }
.art-check .v i { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; color: #fff; background: var(--brand); }
.art-check .v.bad i { background: var(--bad); }
.art-check .v:nth-of-type(1) { animation-delay: 1.9s; }
.art-check .v:nth-of-type(2) { animation-delay: 2.5s; }
@keyframes appear { 0% { opacity: 0; transform: translateX(-4px); } 5%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; } }

/* 3. Лимиты: столбики запросов, всё выше линии — 429 */
.art-bars { display: flex; align-items: flex-end; gap: 5px; padding-bottom: 14px; }
.art-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--brand); opacity: .75; transform-origin: bottom; animation: grow 8s ease-out infinite both; }
.art-bars i.over { background: var(--bad); opacity: .85; }
.art-bars .limit { position: absolute; left: 10px; right: 10px; top: 48px; border-top: 1.5px dashed var(--fg); opacity: .5; z-index: 1; }
.art-bars .limit span { position: absolute; left: 0; top: -19px; font-size: 10.5px; color: var(--fg); }
.h1 { height: 22%; } .h2 { height: 34%; } .h3 { height: 28%; } .h4 { height: 46%; } .h5 { height: 40%; } .h6 { height: 62%; }
.h7 { height: 80%; } .h8 { height: 92%; } .h9 { height: 74%; } .h10 { height: 48%; } .h11 { height: 36%; } .h12 { height: 30%; }
.art-bars i:nth-child(2) { animation-delay: .08s; } .art-bars i:nth-child(3) { animation-delay: .16s; } .art-bars i:nth-child(4) { animation-delay: .24s; }
.art-bars i:nth-child(5) { animation-delay: .32s; } .art-bars i:nth-child(6) { animation-delay: .4s; } .art-bars i:nth-child(7) { animation-delay: .48s; }
.art-bars i:nth-child(8) { animation-delay: .56s; } .art-bars i:nth-child(9) { animation-delay: .64s; } .art-bars i:nth-child(10) { animation-delay: .72s; }
.art-bars i:nth-child(11) { animation-delay: .8s; } .art-bars i:nth-child(12) { animation-delay: .88s; } .art-bars i:nth-child(13) { animation-delay: .96s; }
@keyframes grow { 0% { transform: scaleY(0); } 10%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

/* 4. Флуд: всплеск трафика — режим «под атакой» включается сам */
.art-spike svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 86px; }
.art-spike .area { fill: var(--brand-soft); }
.art-spike .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 8s ease-out infinite; }
.art-spike .cut { fill: none; stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
@keyframes draw { 0% { stroke-dashoffset: 100; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.art-spike .badge { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--bad); background: rgb(220 38 38 / 0.1); border: 1px solid rgb(220 38 38 / 0.3); opacity: 0; animation: badge 8s ease-out infinite; }
.art-spike .badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.art-spike .cap { position: absolute; top: 12px; left: 14px; z-index: 2; }
@keyframes badge { 0%, 24% { opacity: 0; transform: translateY(-3px); } 30%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* 5. Журнал: почему не пустили и как исправить в один клик */
.art-log .ln { display: flex; align-items: center; gap: 8px; color: var(--fg); white-space: nowrap; }
.art-log .tag { padding: 1px 7px; border-radius: 5px; font-weight: 600; font-size: 10.5px; color: var(--bad); background: rgb(220 38 38 / 0.1); border: 1px solid rgb(220 38 38 / 0.25); }
.art-log .why { margin-top: 7px; padding: 6px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-family: "Onest", sans-serif; font-size: 12px; line-height: 1.4; }
.art-log .why b { color: var(--fg); font-weight: 600; }
.art-log .why code { font-family: "JetBrains Mono", monospace; color: var(--fg); background: var(--subtle); padding: 0 4px; border-radius: 4px; }
.art-log .fix { display: inline-flex; margin-top: 7px; padding: 3px 9px; border-radius: 6px; font-family: "Onest", sans-serif; font-size: 12px; font-weight: 600; color: var(--brand); border: 1px solid var(--brand-line); background: var(--brand-soft); animation: nudge 8s ease-in-out infinite; }
@keyframes nudge { 0%, 40%, 60%, 100% { box-shadow: 0 0 0 0 transparent; } 48% { box-shadow: 0 0 0 4px var(--brand-soft); } }

/* 6. Примерка: кого правило задело бы за сутки */
.art-preview .hd { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; }
.art-preview .hd b { color: var(--fg); font-weight: 600; }
.art-preview .hist { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 50px; display: flex; align-items: flex-end; gap: 3px; }
.art-preview .hist i { flex: 1; border-radius: 2px; background: var(--border-strong); transform-origin: bottom; animation: grow 8s ease-out infinite both; }
.art-preview .hist i.hit { background: var(--warn, #d97706); }
.art-preview .hist i:nth-child(3n) { animation-delay: .1s; } .art-preview .hist i:nth-child(3n+1) { animation-delay: .2s; }
.art-preview .watch { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); white-space: nowrap; }
.art-preview .watch i { width: 6px; height: 6px; border-radius: 50%; background: #d97706; }
.p1 { height: 18%; } .p2 { height: 26%; } .p3 { height: 14%; } .p4 { height: 34%; } .p5 { height: 22%; } .p6 { height: 70%; } .p7 { height: 90%; } .p8 { height: 40%; }

@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* Шаги подключения связаны дорожкой: импульс бежит от шага к шагу */
.timeline { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.timeline div { position: relative; height: 32px; }
.timeline b {
  position: absolute; left: 24px; top: 0; z-index: 1; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-size: 15px;
}
.timeline div:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 56px; right: -40px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 45%, var(--brand) 55%, transparent) no-repeat, var(--border-strong);
  background-size: 30% 100%, 100% 100%;
  background-position: -40% 0, 0 0;
  animation: run 3s linear infinite;
}
.timeline div:nth-child(2)::after { animation-delay: 1.5s; }
@keyframes run { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
.timeline + .steps { margin-top: 16px; }
.timeline + .steps .step::before { display: none; }
.timeline + .steps .step h3 { margin-top: 0; }
@media (max-width: 800px) {
  .timeline { display: none; }
  .timeline + .steps .step::before { display: grid; }
  .timeline + .steps .step h3 { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .timeline div::after { animation: none; } }
