/* fx-more-v1: Эффекты прокрутки 4-7 (фокус на главном, график роста, чертёж, маяк). Подключается ПОСЛЕ остальных стилей. */

/* ================= Эффект 4: фокус на главном ================= */
.fxf-low{--fxf-o:.72;--fxf-b:1.2px}.fxf-mid{--fxf-o:.5;--fxf-b:2.5px}.fxf-high{--fxf-o:.28;--fxf-b:4px}
.fxf main>section>.wrap{transition:opacity .55s ease,filter .55s ease}
.fxf main>section:not(.fxf-act)>.wrap{opacity:var(--fxf-o)}
.fxf-blur main>section:not(.fxf-act)>.wrap{opacity:1;filter:blur(var(--fxf-b))}
.fxf-both main>section:not(.fxf-act)>.wrap{filter:blur(calc(var(--fxf-b) * .6))}
.fxf main>section.fxf-act>.wrap{opacity:1;filter:none}
@media(hover:hover){.fxf main>section:not(.fxf-act):hover>.wrap{opacity:.92;filter:none}}
@media(max-width:700px){   /* на телефонах размытие дорого: только затемнение */
  .fxf-blur main>section:not(.fxf-act)>.wrap{opacity:.68;filter:none}
  .fxf-both main>section:not(.fxf-act)>.wrap{filter:none}
}

/* ================= Эффект 5: график роста ================= */
.fxc{--fc:var(--c1);--fcr:var(--c1r);--w:124px;position:fixed;z-index:17;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));width:var(--w);
  padding:6px 8px 4px;border-radius:12px;background:rgba(var(--bkr),.58);border:1px solid rgba(var(--fcr),.4);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none;box-sizing:border-box}
.fxc-bl{left:14px;right:auto}
.fxc-c2{--fc:var(--c2);--fcr:var(--c2r)}
.fxc-s{--w:88px}.fxc-m{--w:124px}.fxc-l{--w:168px}
body:has(#fxCompass) .fxc-bl{bottom:calc(88px + env(safe-area-inset-bottom))}   /* не закрываем компас */
body:has(.cms-fab) .fxc-br{bottom:calc(78px + env(safe-area-inset-bottom))}      /* и кнопку редактора */
@media(max-width:600px){.fxc-s{--w:70px}.fxc-m{--w:94px}.fxc-l{--w:124px}.fxc{right:10px}.fxc-bl{left:10px}}
.fxc svg{display:block;width:100%;height:auto;overflow:visible}
.fxc .ax{stroke:rgba(var(--fcr),.3);stroke-width:.8}
.fxc .ln{fill:none;stroke:var(--fc);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fxc .ar{fill:rgba(var(--fcr),.16);stroke:none}
.fxc .pt{fill:var(--bk);stroke:var(--fc);stroke-width:1.4;opacity:0;transition:opacity .35s ease}
.fxc .pt.on{opacity:1}
.fxc .hd{fill:var(--fc);filter:drop-shadow(0 0 3px var(--fc))}
.fxc .rg{fill:none;stroke:var(--fc);stroke-width:1.2;opacity:0}
.fxc-done .rg{animation:fxcRing 1.8s ease-out infinite}
.fxc .bar{fill:rgba(var(--fcr),.5)}.fxc .bar.peak{fill:var(--fc);filter:drop-shadow(0 0 3px var(--fc))}
.fxc-lab{position:absolute;left:10px;top:5px;font:700 11px/1 system-ui,Segoe UI,Arial,sans-serif;color:var(--fc);font-variant-numeric:tabular-nums}
@keyframes fxcRing{0%{opacity:.9;r:3}100%{opacity:0;r:10}}

/* ================= Эффект 6: чертёж ================= */
.b.fxbp-pre>:not(.fxbp){opacity:0!important}
.b.fxbp-pre>:not(.fxbp):not(.reveal),.b.fxbp-host>:not(.fxbp):not(.reveal),.b.fxbp-build>:not(.fxbp):not(.reveal){transition:opacity .7s ease}
.fxbp-host{position:relative}
.fxbp{position:absolute;left:-14px;top:-14px;overflow:visible;pointer-events:none;z-index:3;color:var(--c1)}
.fxbp .o{fill:rgba(var(--c1r),.04);stroke:currentColor;stroke-width:1.5;stroke-dasharray:var(--p);stroke-dashoffset:var(--p);transition:stroke-dashoffset var(--bpd,1050ms) cubic-bezier(.65,.05,.25,1)}
.fxbp-draw .fxbp .o{stroke-dashoffset:0}
.fxbp .g{opacity:0;transition:opacity .5s ease}
.fxbp-draw .fxbp .g{opacity:1}
.fxbp-done .fxbp .g{opacity:0;transition:opacity .9s ease}
.fxbp .k,.fxbp path.dm{fill:none;stroke:currentColor;stroke-width:1.5;opacity:0;transition:opacity .4s ease calc(var(--bpd,1050ms) * .5)}
.fxbp text.dm{fill:currentColor;stroke:none;opacity:0;font:600 10px ui-monospace,Menlo,Consolas,monospace;transition:opacity .4s ease calc(var(--bpd,1050ms) * .5)}
.fxbp-draw .fxbp .k,.fxbp-draw .fxbp .dm{opacity:1}
.fxbp-done .fxbp{opacity:0;transition:opacity .8s ease}
.fxbp-keep{outline:1px solid rgba(var(--c1r),.28);outline-offset:8px}

/* ================= Эффект 7: маяк ================= */
.fxb{position:fixed;inset:0;z-index:6;pointer-events:none;mix-blend-mode:screen;opacity:0;transition:opacity .25s linear;
  background:
    conic-gradient(from calc(var(--ang,180deg) - .8deg) at var(--ox,0px) var(--oy,0px),transparent 0deg,rgba(var(--bc,39,245,214),1) .8deg,transparent 1.6deg,transparent 360deg),
    conic-gradient(from calc(var(--ang,180deg) - var(--bw,11deg) / 2) at var(--ox,0px) var(--oy,0px),transparent 0deg,rgba(var(--bc,39,245,214),.9) calc(var(--bw,11deg) / 2),transparent var(--bw,11deg),transparent 360deg);
  -webkit-mask-image:radial-gradient(circle at var(--ox,0px) var(--oy,0px),#000 0,#000 calc(var(--len,1200px) * .5),transparent var(--len,1200px));
  mask-image:radial-gradient(circle at var(--ox,0px) var(--oy,0px),#000 0,#000 calc(var(--len,1200px) * .5),transparent var(--len,1200px))}
.fxb-spot{position:fixed;inset:0;z-index:6;pointer-events:none;mix-blend-mode:screen;opacity:0;transition:opacity .5s ease;
  background:radial-gradient(circle at var(--tx,50%) var(--ty,50%),rgba(var(--bc,39,245,214),.38) 0,rgba(var(--bc,39,245,214),.12) 70px,transparent 170px)}
.fxb-hit{animation:fxbPulse 2s ease-out infinite}
@keyframes fxbPulse{0%{box-shadow:0 0 0 0 rgba(var(--fxb-c,39,245,214),.55)}70%,100%{box-shadow:0 0 0 16px rgba(var(--fxb-c,39,245,214),0)}}

@media(prefers-reduced-motion:reduce){.fxc-done .rg,.fxb-hit{animation:none}.fxf main>section>.wrap{transition:none}}
