.map-section,.stack-section{scroll-margin-top:20px;padding:85px 0 64px}
.map-section{margin:12px;border-radius:22px;background-color:#e5f9fb;background-image:radial-gradient(#b7dce1 1px,transparent 1px);background-size:19px 19px;color:#12323b;overflow:hidden}
.diagram-heading{text-align:center}.diagram-heading h2{margin:20px 0 17px}.diagram-heading h2 em{font-style:normal;color:#327e87}
.diagram-heading p{max-width:640px;margin:auto;font-size:17px;color:#42636b}
.diagram-tag{display:inline-block;border:1px solid #bcdfe3;border-radius:30px;background:#ffffff70;color:#325c65;padding:8px 16px;letter-spacing:.12em;font-size:10px;font-weight:750}
.map-canvas{position:relative;width:min(1050px,94%);aspect-ratio:1000 / 510;margin:30px auto 12px}
.map-canvas svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.map-lines,.map-motion{stroke:#ec8867;stroke-width:1.6;stroke-linecap:round}
.map-lines path{opacity:.78;transition:opacity .2s,stroke-width .2s}
.map-lines path:nth-child(3n){stroke-dasharray:6 7}
.map-lines path.lit{stroke:#ce5731;stroke-width:2.7;opacity:1}
.map-motion path{stroke:#e45d39;stroke-width:3;stroke-dasharray:18 1100;animation:map-pulse 6s linear infinite}
.map-lines path.dim,.map-motion path.dim{opacity:.12}
@keyframes map-pulse{from{stroke-dashoffset:30}to{stroke-dashoffset:-1100}}
.map-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:grid;place-items:center;gap:4px;background:#fff;color:#23424d;border:1px solid #cbe2e8;border-radius:13px;min-width:70px;padding:8px 9px;font:650 11px system-ui;cursor:pointer;box-shadow:0 7px 18px #265d6110;transition:border-color .2s,box-shadow .2s}
.map-node b{display:grid;place-items:center;border-radius:8px;width:33px;height:33px;background:var(--badge);font-size:19px;color:#244454}
.map-node:hover,.map-node[aria-pressed=true]{border-color:#d05f40;box-shadow:0 0 0 4px #ed8c6930}
.map-detail{width:min(650px,86%);margin:0 auto;min-height:58px;display:grid;place-items:center;text-align:center;border:1px solid #c1dfe5;background:#f7ffff;border-radius:12px;padding:12px 20px;color:#365965;font-size:14px}
.stack-section{background:#101f38;color:#f2f6ff;background-image:radial-gradient(#3b547c 1px,transparent 1px);background-size:24px 24px;padding-bottom:78px}
.stack-section .diagram-tag{color:#c4e7f4;background:#192f4b;border-color:#405c80}
.stack-section .diagram-heading h2 em{color:#82e0dc}.stack-section .diagram-heading p{color:#bacbe1}
.stack-layout{display:grid;grid-template-columns:minmax(185px,1fr) minmax(280px,1.65fr) minmax(210px,1.1fr);align-items:center;gap:24px;margin-top:35px}
.stack-options{display:grid;border:1px solid #3f5679;border-radius:10px;overflow:hidden}
.stack-options button{padding:15px;display:flex;align-items:center;gap:11px;text-align:left;background:#182c47;color:#e3ecfb;border:0;border-bottom:1px solid #3f5679;font:650 14px system-ui;cursor:pointer}
.stack-options button:last-child{border-bottom:0}.stack-options button small{color:#9fb4d7;font:11px monospace}
.stack-options button:hover{background:#243d5f}.stack-options button[aria-pressed=true]{background:#275066;color:#abfff0;box-shadow:inset 3px 0 #92f6e6}.stack-options button:focus-visible{outline-offset:-4px;outline-color:#92f6e6}
.stack-visual svg{display:block;width:100%;max-height:520px;overflow:visible}
.stack-connect{fill:none;stroke:#72c8d6;stroke-dasharray:3 7;opacity:.7;animation:stack-signal 5s linear infinite}
@keyframes stack-signal{to{stroke-dashoffset:-50}}
.plate{cursor:pointer}.plate-top{fill:#142540;stroke:#7395cc;stroke-width:1.7;transition:fill .2s,stroke .2s}.plate-edge{fill:url(#edge);opacity:.75}
.plate text{font:650 13px system-ui;letter-spacing:1.3px;fill:#ebf2ff;pointer-events:none}
.plate:hover .plate-top,.plate.active .plate-top{fill:#213d55;stroke:#a2f9e8}.plate.active .plate-edge{fill:url(#edge-active);opacity:1}
.stack-detail{padding:23px;background:#172c47;border:1px solid #49658a;border-radius:10px;min-height:230px}
.stack-detail small{color:#91ebe4;font:11px monospace;letter-spacing:.1em}.stack-detail h3{margin:9px 0;font-size:23px;line-height:1.15}.stack-detail p{color:#c0cde1;font-size:14px}
#layer-example{margin-top:17px;border-top:1px solid #49658a;padding-top:12px;font-size:12px;color:#a9f5e9}
@media(max-width:820px){.stack-layout{grid-template-columns:1fr 1.35fr;gap:18px}.stack-detail{grid-column:1/-1;min-height:0}.stack-visual svg{max-height:420px}.map-section,.stack-section{padding-top:59px}}
@media(max-width:540px){.map-section{margin:7px}.diagram-heading p{font-size:14px}.map-canvas{aspect-ratio:1.05}.map-node{min-width:43px;padding:5px 3px;font-size:8px;border-radius:8px}.map-node b{width:23px;height:23px;font-size:13px;border-radius:6px}.map-detail{font-size:12px;padding:10px}.stack-layout{grid-template-columns:1fr;gap:16px}.stack-visual{grid-row:1}.stack-visual svg{max-height:350px}.stack-options{grid-template-columns:1fr 1fr}.stack-options button{padding:12px;font-size:12px}.stack-options button small{font-size:9px}.stack-options button:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.map-motion path,.stack-connect{animation:none}.map-motion{display:none}.map-node,.plate-top,.map-lines path{transition:none}}

.map-lines,.map-motion{fill:none}

.map-controls,.map-legend{width:min(1050px,90%);margin:24px auto 0}.map-controls{text-align:center}.map-pause{padding:7px 13px;border:1px solid #b8d9de;border-radius:30px;background:#f5ffff;color:#315b65;font:600 12px system-ui;cursor:pointer}.map-legend{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;color:#406771;font:700 10px system-ui;letter-spacing:.12em}.map-canvas{margin-top:13px}.map-lines path{stroke-width:1.6;vector-effect:non-scaling-stroke}.map-lines path:nth-child(3n){stroke-dasharray:1.2 1.2}.map-motion path{stroke:#e25730;stroke-width:3;stroke-dasharray:5 95;animation:route-pulse 4.2s linear infinite;vector-effect:non-scaling-stroke}.map-motion path.dim{opacity:0}.map-canvas.paused .map-motion path{animation-play-state:paused}.map-node.connected{border-color:#df927c}.map-node b{background:#e5edf9}.map-node.core{background:#153c4b;border-color:#447888;color:#fff}.map-node.core b{background:#d0f5f1}.map-node.core[aria-pressed=true]{border-color:#e77755}.map-node[data-map=payment] b,.map-node[data-map=account] b{background:#fff0cb}.map-node[data-map=docs] b,.map-node[data-map=bi] b{background:#fee8dc}.map-node[data-map=telegram] b{background:#d4f3ff}
@keyframes route-pulse{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@media(max-width:540px){.map-legend{font-size:7px;letter-spacing:.04em}.map-canvas{aspect-ratio:.86}.map-node{min-width:37px;padding-inline:2px;font-size:7px}.map-node b{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.map-motion path{animation:none}.map-pause{display:none}}

.map-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
.map-state{flex-basis:100%;color:#315b65;font-size:13px;font-weight:650;margin:0 0 4px}
.map-replay{background:#153c4b;color:#fff;border-color:#153c4b}
.map-node b img,.map-node b svg{display:block;width:22px;height:22px;position:static}
.map-node b img{object-fit:contain}
.map-node[data-map="account"] b{color:#ae201b;font-weight:850;letter-spacing:-.09em}
.map-canvas.untangling .map-motion{visibility:hidden}
.map-canvas.untangling .map-lines path{stroke:#e47051;stroke-width:2}
@media(max-width:540px){.map-node b img,.map-node b svg{width:15px;height:15px}}

.map-canvas{--order:1;isolation:isolate}
.map-canvas>svg{z-index:1}
.map-group{position:absolute;z-index:0;left:5%;width:21%;height:16%;transform:translateY(-50%);border:1px solid var(--group-border);border-radius:12px;background:var(--group-fill);opacity:var(--order);pointer-events:none}
.map-group span{position:absolute;left:0;bottom:calc(100% + 5px);padding:4px 8px;border:1px solid var(--group-border);border-radius:6px;background:var(--group-fill);color:#294553;font:700 9px system-ui;letter-spacing:.09em;white-space:nowrap}
.group-channels{top:20.78%;--group-fill:#d4eefb;--group-border:#90c7e2}
.group-work{top:49.8%;--group-fill:#eae0fa;--group-border:#c1a6e7}
.group-pay{top:78.82%;--group-fill:#d6efe0;--group-border:#9dcdb0}
.map-hub{position:absolute;z-index:2;left:50%;top:49.8%;transform:translate(-50%,-50%) scale(calc(.82 + .18 * var(--order)));display:grid;place-content:center;text-align:center;width:17%;height:24%;background:#153c4b;color:white;border-radius:15px;box-shadow:0 12px 26px #214e5236;opacity:var(--order);pointer-events:none}
.map-hub strong{font-size:clamp(23px,4.2vw,55px);line-height:1;letter-spacing:-.07em}
.map-hub strong span{color:#80e9dc}.map-hub small{font-size:clamp(5px,.85vw,10px);letter-spacing:.12em;margin-top:8px;color:#b5f3ea}
.map-node{z-index:3}.map-node.core{min-width:0;width:8.7%;font-size:clamp(6px,.82vw,10px);padding:5px 2px}
.map-node.core b{width:24px;height:24px}.map-node.core b svg{width:17px;height:17px}
.map-lines,.map-motion path{stroke:#3f979e}
.map-lines path.lit,.map-motion path.lit{stroke:#2b858b}.map-motion path{stroke-width:3.3}
.map-canvas.untangling .map-lines path{stroke:#e47051}
@media(max-width:540px){.map-group{width:24%;left:3%;border-radius:8px}.map-group span{font-size:6px;padding:3px 4px;letter-spacing:0}.map-hub{width:23%;height:18%;border-radius:9px}.map-hub small{margin-top:3px}.map-node.core{width:9.3%;font-size:5.5px;overflow-wrap:anywhere}.map-node.core b{width:17px;height:17px}.map-node.core b svg{width:12px;height:12px}}
.map-canvas.offscreen .map-motion path{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){
  .map-controls .map-replay,.map-controls:has(+ .map-legend + .motion-opt-in) .map-pause{display:inline-block}
}
.map-node{min-width:76px;padding:5px 8px;gap:3px;border-radius:10px}
.map-node b{width:28px;height:28px;border-radius:8px;background:#eef5fb;color:#2d657e}
.map-node b.brand-symbol{background:#fff}
.map-node b img,.map-node b svg{width:21px;height:21px}
.map-node[data-map="account"] b{background:#fff;color:#c6221f;font-size:18px;font-style:italic}
.map-node[data-map="payment"] b,.map-node[data-map="telegram"] b{background:#fff}
.map-node[data-map="bank"] b{background:#e8f6ed;color:#286d57}
.map-node[data-map="alerts"] b{background:#f0e9ff;color:#7150ab}
.map-node[data-map="stock"] b{background:#e8f3ff;color:#2a6b9b}
.map-node[data-map="docs"] b,.map-node[data-map="bi"] b{background:#fff0e9;color:#9b553e}
@media(max-width:540px){.map-node{min-width:38px;padding:4px 3px}.map-node b{width:20px;height:20px}.map-node b img,.map-node b svg{width:15px;height:15px}.map-node[data-map="account"] b{font-size:12px}}

@media(max-width:540px){.map-node{min-width:0;width:9.5%;overflow-wrap:anywhere;line-height:1.12}}
