/* Упаковка соцсетей, тёмная версия в стиле канала ПНЗ. Все цвета через токены. */
:root {
  color-scheme: dark;
  --bg: #050605;
  --s1: #0C0F08;
  --s2: #12170A;
  --lime: #A8E000;
  --neon: #B8F500;
  --ink: #0B1002;
  --fg: #F1F5E8;
  --muted: #9AA38B;
  --line: rgba(168,224,0,.2);
  --line-solid: #26320a;
  --glow: rgba(184,245,0,.45);
  --f-head: "Montserrat", Impact, "Arial Black", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --pad: clamp(16px, 4.5vw, 40px);
  --c: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------- Фон: трещины, искры, виньетка ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cracks { position: absolute; inset: 0; background: url(cracks.svg) center / cover no-repeat; opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0, transparent 95%); mask-image: radial-gradient(ellipse at 50% 35%, #000 0, transparent 95%);
  animation: crackPulse 9s ease-in-out infinite; }
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 28%, transparent 38%, rgba(0,0,0,.72) 100%); }
@keyframes crackPulse { 0%, 100% { opacity: .22; } 50% { opacity: .38; } }

.wrap { position: relative; z-index: 1; max-width: 1120px; margin-inline: auto; padding: 0 var(--pad) 40px; }

/* ---------- Прогресс и меню ---------- */
.progress { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 3px; }
.progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--lime), var(--neon)); box-shadow: 0 0 12px var(--glow); transform-origin: left; transform: scaleX(0); }
nav.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px var(--pad); background: rgba(5,6,5,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line), 0 0 14px rgba(168,224,0,.25); transition: transform .16s var(--ease); }
.brand img { width: 100%; height: 100%; mix-blend-mode: screen; }
.brand:active { transform: scale(.94); }
.links { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-left: auto; padding-right: 2px; }
.links::-webkit-scrollbar { display: none; }
@media (max-width: 700px) { .links { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent); padding-inline: 10px; } }
.links a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; font: italic 800 .78rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-decoration: none; background: var(--s2);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease); }
.links a:active { transform: scale(.96); }
.links a.on { background: var(--lime); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .links a:not(.on):hover { color: var(--neon); background: #1a2209; } }

/* ---------- Плашка-метка ---------- */
.plate { display: inline-block; margin-bottom: 10px; padding: 5px 16px 5px 12px; font: italic 800 .72rem/1.25 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--neon); background: rgba(168,224,0,.12); border-left: 3px solid var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.key .plate { color: var(--ink); background: rgba(11,16,2,.14); border-left-color: var(--ink); }

/* ---------- Герой ---------- */
.hero { position: relative; overflow-x: clip; display: grid; gap: 28px; padding: clamp(24px, 6vw, 64px) 0 clamp(36px, 6vw, 72px); }
.hero::before { content: ""; position: absolute; z-index: -1; top: -4%; right: 0; width: min(100%, 760px); aspect-ratio: 1; background: radial-gradient(circle, rgba(168,224,0,.2), transparent 62%); pointer-events: none; }
.hero-copy { min-width: 0; }
h1 { font: italic 900 clamp(2.1rem, 10.4vw, 4.5rem)/.98 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 18px;
  text-shadow: 3px 3px 0 #3d5200, 0 0 40px rgba(168,224,0,.22); overflow-wrap: anywhere; }
h1 em { font-style: italic; color: var(--neon); text-shadow: 3px 3px 0 #2a3a00, 0 0 28px var(--glow); }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; animation: glitchIn .8s var(--ease) calc(.5s + var(--i) * 26ms) backwards; }
.lead { max-width: 52ch; color: var(--muted); font-size: clamp(1.02rem, 2.6vw, 1.2rem); animation: rise .8s var(--ease) 1.3s backwards; }

.hero-logo { position: relative; order: -1; display: grid; place-items: center; padding: 6% 0; }
.logo-wrap { position: relative; width: min(62vw, 250px); aspect-ratio: 1; }
.logo-wrap > * { position: absolute; }
.logo { inset: 0; width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 90%, transparent 100%);
  animation: logoIn 1s var(--ease) .05s backwards, breathe 5.5s ease-in-out 1.2s infinite; }
.logo-glow { inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(184,245,0,.55), rgba(168,224,0,.15) 55%, transparent 72%); filter: blur(26px); animation: glowPulse 4.5s ease-in-out infinite; }
.ring { inset: -5%; border-radius: 50%; }
.ring-spin { background: conic-gradient(from 0deg, transparent 0 52%, var(--lime) 68%, #fff 79%, transparent 80% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 8px var(--neon)); animation: spin 6s linear infinite; }
.ring-dash { inset: -8%; border: 1px dashed rgba(168,224,0,.35); animation: spin 40s linear infinite reverse; }
.orb { inset: -5%; border-radius: 50%; animation: spin 9s linear infinite; }
.orb::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px var(--neon), 0 0 26px 8px rgba(168,224,0,.6); }
.orb-b { animation-duration: 14s; animation-direction: reverse; inset: -8%; }
.orb-b::after { width: 6px; height: 6px; top: -3px; left: calc(50% - 3px); background: var(--neon); }
.flash { inset: -25%; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--neon) 14%, rgba(168,224,0,.35) 34%, transparent 62%); opacity: 0; pointer-events: none; animation: flash 1.1s var(--ease) .15s backwards; }

.decor { position: absolute; display: block; pointer-events: none; }
.decor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(168,224,0,.55)); }
.d1 { top: 1%; right: 6%; width: clamp(40px, 6.6vw, 76px); aspect-ratio: 1; }
.d2 { top: 14%; left: 5%; width: clamp(34px, 5.6vw, 64px); aspect-ratio: 1; }
.d3 { bottom: 6%; right: 4%; width: clamp(30px, 5vw, 58px); aspect-ratio: 1; }
.d4 { bottom: 2%; left: 8%; width: clamp(38px, 6vw, 70px); aspect-ratio: 1; }
.fl { animation: float 7s ease-in-out infinite alternate; }
.fl2 { animation-duration: 9s; animation-delay: -3s; }
.sp { animation: spin 11s linear infinite; }
.sp2 { animation-duration: 16s; animation-direction: reverse; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; column-gap: clamp(24px, 4vw, 56px); }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-logo { grid-column: 2; grid-row: 1; order: 0; padding: 0 7%; }
  .flow { grid-column: 1 / -1; grid-row: 2; }
  .logo-wrap { width: clamp(300px, 32vw, 400px); }
  h1 { font-size: clamp(3rem, 5.2vw, 4.7rem); }
}

/* Воронка: шаги загораются по очереди, между ними бежит импульс */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; animation: rise .8s var(--ease) 1.6s backwards; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px; background: var(--line); }
.pulse { position: absolute; z-index: 1; left: calc(10% - 80px); top: 24px; width: 80px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--neon)); box-shadow: 0 0 14px var(--glow); opacity: 0; animation: impulseX 7s linear 2.2s infinite; }
.node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.node b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); color: var(--neon); font: italic 800 1rem/1 var(--f-head); animation: lit 7s ease-out infinite; animation-delay: calc(2.2s + var(--k) * .9s); }
.node:nth-of-type(1) { --k: 0; } .node:nth-of-type(2) { --k: 1; } .node:nth-of-type(3) { --k: 2; } .node:nth-of-type(4) { --k: 3; } .node:nth-of-type(5) { --k: 4; }
.node small { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .flow::before { left: 30px; right: auto; top: 27px; bottom: 27px; width: 2px; height: auto; }
  .pulse { left: 28px; top: calc(27px - 80px); width: 6px; height: 80px; background: linear-gradient(180deg, transparent, var(--neon)); animation-name: impulseY; }
  .node { flex-direction: row; gap: 16px; text-align: left; font-size: 1rem; }
  .node b { flex: none; }
}

/* ---------- Секции ---------- */
section { padding-top: clamp(40px, 8vw, 92px); }
.sec-head { margin-bottom: 22px; }
.sec-head > .plate { display: block; width: fit-content; }
.sec-head > p { max-width: 62ch; margin-top: 18px; color: var(--muted); }
.h2w { position: relative; display: inline-block; max-width: 100%; margin-top: 2px; }
.h2w::before { content: ""; position: absolute; z-index: 0; inset: 20% -5% -16% 4%; background: var(--neon); opacity: .24; transform: rotate(-1.8deg);
  clip-path: polygon(0 18%, 5% 2%, 20% 10%, 41% 0, 63% 9%, 86% 1%, 100% 16%, 97% 68%, 100% 96%, 72% 88%, 46% 100%, 21% 90%, 3% 100%); }
h2 { position: relative; z-index: 1; display: inline-block; padding: .14em .75em .14em .42em; font: italic 900 clamp(1.5rem, 6.4vw, 2.9rem)/1.05 var(--f-head); text-transform: uppercase; color: var(--ink); background: var(--lime);
  clip-path: polygon(0 0, 100% 0, calc(100% - .38em) 100%, 0 100%); overflow-wrap: anywhere; }
h3 { font: italic 800 clamp(1.1rem, 4.4vw, 1.45rem)/1.15 var(--f-head); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 8px; }

/* Карточки со срезанными углами и неоновым свечением */
.cols { display: grid; gap: 16px; }
.cols > *, .stack > * { min-width: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.gap-top { margin-top: 16px; }
.gap-top-lg { margin-top: 28px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); } .cols.two { grid-template-columns: repeat(2, 1fr); } }

.card, .cut { --cc: calc(var(--c) - 1px); position: relative; isolation: isolate; color: var(--fg); }
.card::before, .cut::before, .card::after, .cut::after { content: ""; position: absolute; pointer-events: none; }
.card::before, .cut::before { z-index: -2; inset: 0; background: var(--line-solid); clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); transition: background-color .25s ease; }
.card::after, .cut::after { z-index: -1; inset: 1px; background: var(--s1); clip-path: polygon(0 0, calc(100% - var(--cc)) 0, 100% var(--cc), 100% 100%, var(--cc) 100%, 0 calc(100% - var(--cc))); }
.card { padding: clamp(18px, 4vw, 26px); transition: filter .25s ease; }
.card > p { color: var(--muted); }
.card .note { margin: 0; }
.card.key { color: var(--ink); }
.card.key::before { background: var(--lime); }
.card.key::after { background: var(--lime); }
.card.key > p, .card.key h3 { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .card:not(.key):hover::before, .cut:hover::before { background: var(--lime); }
  .card:hover, .cut:hover { filter: drop-shadow(0 0 16px rgba(168,224,0,.38)); }
  .card.key:hover { filter: drop-shadow(0 0 22px rgba(184,245,0,.6)); }
}

.list { margin-top: 14px; }
.list li { position: relative; padding-left: 24px; margin-top: 10px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; background: var(--lime); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.key .list li::before { background: var(--ink); }
.sub { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px 2px; margin: 10px 0 2px; }
.tag { display: inline-block; padding: 7px 18px; font: 600 .85rem/1.2 var(--f-body); color: var(--neon); background: rgba(168,224,0,.12); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.mb { margin-bottom: 16px; }

.quote { margin: 4px 0 20px; padding: 18px 28px 18px 20px; font-size: clamp(1.05rem, 3.4vw, 1.3rem); background: var(--s2); border-left: 4px solid var(--lime); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.quote .plate { display: block; width: fit-content; }

/* Аккордеон */
.acc { margin-top: 12px; }
.acc-h { margin: 34px 0 14px; }
details.cut { margin-top: 12px; }
summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 56px 14px 20px; list-style: none; cursor: pointer; font: italic 800 1rem/1.2 var(--f-head); text-transform: uppercase; -webkit-tap-highlight-color: transparent; transition: color .2s ease; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: calc(50% - 6px); width: 10px; height: 10px; border: solid var(--neon); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); transition: transform .28s var(--ease); }
details[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
summary:focus-visible { outline-offset: -4px; }
.det-body { overflow: hidden; }
.det-in { padding: 2px 20px 20px; }
.det-in > p { color: var(--muted); }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.mini { padding: 14px 16px 16px; background: var(--s2); border-left: 3px solid var(--line-solid); min-width: 0; }
.mini p { color: var(--muted); font-size: .96rem; }
.rule { margin-top: 14px; padding: 12px 16px; background: rgba(168,224,0,.08); border-left: 3px solid var(--lime); }
.rule b { color: var(--neon); }

/* Паутина контента */
.webbox { padding: 6px; background: var(--s2); border: 1px solid var(--line); }
.webbox svg { display: block; width: 100%; height: auto; overflow: visible; }
.ln path { fill: none; stroke: var(--lime); stroke-opacity: .6; stroke-width: 1.6; stroke-dasharray: 1; }
.pls path { fill: none; stroke: var(--neon); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .07 .93; stroke-dashoffset: 1; opacity: .9; animation: travel 3.4s linear infinite; }
.pls path:nth-child(2n) { animation-delay: -1.1s; } .pls path:nth-child(3n) { animation-delay: -2.2s; animation-duration: 4.2s; }
.pls { filter: drop-shadow(0 0 4px var(--neon)); }
.nd { fill: var(--s1); stroke: var(--lime); stroke-width: 2; }
.hub { fill: var(--lime); stroke: var(--neon); stroke-width: 2; }
.halo { fill: none; stroke: var(--neon); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: haloP 3.6s ease-out infinite; }
.nodes .halo:nth-of-type(2) { animation-delay: -.7s; } .nodes .halo:nth-of-type(3) { animation-delay: -1.4s; } .nodes .halo:nth-of-type(4) { animation-delay: -2.1s; } .nodes .halo:nth-of-type(5) { animation-delay: -2.8s; }
.hub-h { animation-delay: -.3s; }
.nodes text { fill: var(--fg); font: 600 18px var(--f-body); text-anchor: middle; }
.nodes .hubt { fill: var(--ink); font: 700 15px var(--f-body); }
.webbox.pre .ln path { stroke-dashoffset: 1; }
.webbox.pre .nd, .webbox.pre .hub, .webbox.pre .nodes text { opacity: 0; }
.webbox.go .ln path { animation: draw 1.3s var(--ease-io) backwards; }
.webbox.go .ln path:nth-child(n+6) { animation-delay: .5s; }
.webbox.go .nd, .webbox.go .hub, .webbox.go .nodes text { animation: popIn .6s var(--ease) .7s backwards; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(48px, 9vw, 100px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.sign { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 600; }
.sign img { width: 36px; height: 36px; border-radius: 50%; mix-blend-mode: screen; box-shadow: 0 0 0 1.5px var(--line); }

/* ---------- Появление при скролле ---------- */
.js .rv.wait:not(.in) { opacity: 0; transform: translateY(22px); }
.rv.in { animation: rise .7s var(--ease) var(--d, 0s) backwards; }

/* ---------- Кадры ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { from { transform: translateY(-9px) rotate(-8deg); } to { transform: translateY(9px) rotate(8deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.028); } }
@keyframes glowPulse { 0%, 100% { opacity: .5; transform: scale(.96); } 50% { opacity: .95; transform: scale(1.06); } }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); filter: brightness(2.4); } 55% { opacity: 1; transform: scale(1.06) rotate(0); filter: brightness(1.5); } 100% { transform: scale(1); filter: none; } }
@keyframes flash { 0% { opacity: 0; transform: scale(.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes glitchIn {
  0% { opacity: 0; transform: translate(var(--gx, 8px), -16px) skewX(-24deg); text-shadow: -4px 0 var(--neon), 4px 0 #fff; }
  35% { opacity: 1; transform: translate(-5px, 2px) skewX(8deg); text-shadow: 4px 0 var(--neon), -4px 0 #fff; }
  55% { transform: translate(4px, -1px); text-shadow: -3px 0 var(--neon), 3px 0 #fff; }
  100% { transform: none; }
}
@keyframes lit { 0%, 16%, 100% { background: var(--bg); color: var(--neon); box-shadow: 0 0 0 0 transparent; border-color: var(--line); } 3%, 12% { background: var(--lime); color: var(--ink); border-color: var(--neon); box-shadow: 0 0 22px 3px var(--glow); } }
@keyframes impulseX { 0% { opacity: 0; transform: translateX(0); } 2% { opacity: 1; } 51% { opacity: 1; transform: translateX(var(--len, 640px)); } 54%, 100% { opacity: 0; transform: translateX(var(--len, 640px)); } }
@keyframes impulseY { 0% { opacity: 0; transform: translateY(0); } 2% { opacity: 1; } 51% { opacity: 1; transform: translateY(var(--len, 400px)); } 54%, 100% { opacity: 0; transform: translateY(var(--len, 400px)); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes travel { to { stroke-dashoffset: -1; } }
@keyframes haloP { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes popIn { from { opacity: 0; } }

/* ---------- Пониженное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pulse, .flash, .orb, .halo { display: none; }
  .js .rv.wait:not(.in) { opacity: 1; transform: none; }
  .webbox.pre .ln path { stroke-dashoffset: 0; }
  .webbox.pre .nd, .webbox.pre .hub, .webbox.pre .nodes text { opacity: 1; }
  .pls { display: none; }
}
