/* dd/postup-3d – izometrické rezy (tools/generuj-postup-svg.py); pohyb raz pri vstupe, inak koncový stav */
.p3{--n:3;list-style:none;margin:0;padding:0;display:grid;gap:var(--space-5);position:relative}
.p3-k{position:relative;display:flex;flex-direction:column}
.p3-n{position:absolute;z-index:1;top:10px;right:10px;width:40px;height:40px;border-radius:var(--radius-sm);background:var(--yellow);color:var(--on-yellow);font:700 20px/40px var(--font-display);text-align:center;font-variant-numeric:tabular-nums}
.p3-c{flex:1;display:flex;flex-direction:column;background:var(--surface-0);border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden}
.dd-bg-100 .p3-c{border:0;box-shadow:var(--shadow-card)}
.p3-fig{background:linear-gradient(#ffffff0d 1px,transparent 1px) 0 0/32px 32px,linear-gradient(90deg,#ffffff0d 1px,transparent 1px) 0 0/32px 32px,var(--navy);padding:8px;border-bottom:4px solid var(--yellow)}
.p3-svg{display:block;width:100%;height:auto;max-height:340px;overflow:visible}
.p3-b{padding:20px 24px 24px}
.p3-b h3{margin:0 0 var(--space-2)}
.p3-t{margin:var(--space-3) 0 0;padding-top:var(--space-3);border-top:1px solid var(--line);font:500 13px/20px var(--font-mono);color:var(--ink)}
.p3-alebo>li:first-child::after{content:"alebo";position:absolute;z-index:2;left:50%;bottom:calc(var(--space-5) / -2);transform:translate(-50%,50%);padding:0 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-0);font:600 13px/26px var(--font-mono);color:var(--ink-muted)}
@media (min-width:640px) and (max-width:1023px){
  .p3-c{flex-direction:row}
  .p3-fig{flex:0 0 54%;display:flex;align-items:center;border-bottom:0;border-right:4px solid var(--yellow)}
  .p3-b{align-self:center}
  .p3-n{right:auto;left:calc(54% - 54px)}
}
@media (min-width:1024px){
  .p3{grid-template-columns:repeat(var(--n),1fr)}
  .p3-k{gap:var(--space-3)}
  .p3-n{position:relative;top:0;right:0;align-self:flex-start;width:48px;height:48px;border-radius:var(--radius-md);background:var(--navy);color:var(--yellow);font-size:22px;line-height:48px;box-shadow:0 0 0 6px var(--surface-0)}
  .dd-bg-100 .p3-n{box-shadow:0 0 0 6px var(--surface-100)}
  .p3-kroky::before,.p3-kroky::after{content:"";position:absolute;top:23px;left:24px;right:calc((100% - (var(--n) - 1) * var(--space-5)) / var(--n) - 24px);height:2px;background:var(--line)}
  .p3-kroky::after{top:22px;height:4px;background:var(--yellow);transform-origin:0 50%}
  .p3-alebo>li:first-child::after{left:auto;bottom:auto;right:calc(var(--space-5) / -2);top:180px;transform:translate(50%,-50%)}
}
/* SVG: tokeny, priehľadnosti bielej, #8fbaff = --blue tmavej témy */
.p3-svg *{stroke-linecap:round;stroke-linejoin:round}
:where(.p3-svg) path,.p3-vl{fill:none}
.p3-hc{stroke:#fff1}
.p3-hid,.p3-kt,.p3-ld{stroke:#fff4;stroke-dasharray:3 4}
.p3-kt{stroke:#fff9}
.p3-fc{stroke:#fff6;stroke-width:1.2}
.p3-f2{fill:#fff1}
.p3-dp{fill:#fff1}
.p3-st{stroke:#fff3;stroke-dasharray:6 5}
.p3-gr{fill:#ffffff17;stroke:#fff9;stroke-width:1.2}
.p3-rd{fill:var(--navy-700)}
.p3-ln,.p3-an,.p3-fb{stroke:#fff;stroke-width:2}
.p3-cb{stroke:#fffb;stroke-width:1.5}
.p3-ut,.p3-ru{fill:#8fbaff33;stroke:#8fbaff;stroke-width:1.2}
.p3-ue,.p3-ru.c{fill:#8fbaff73;stroke:#8fbaff}
.p3-tk{fill:var(--logo-ink);stroke:#fff6}
.p3-rg,.p3-ht,.p3-rm,.p3-pin,.p3-hd,.p3-ok circle{fill:var(--yellow);stroke:var(--navy)}
.p3-rg:not(.t),.p3-ht:not(.t),.p3-bl{fill:var(--yellow-600);stroke:var(--navy)}
.p3-cab,.p3-lk,.p3-nd,.p3-pr{fill:#fff;stroke:var(--navy)}
.p3-lk:not(.t),.p3-nd:not(.t),.p3-cab:not(.t){fill:var(--on-navy-muted)}
.p3-ms{stroke:var(--yellow);stroke-width:6}
.p3-arm{stroke-width:4}
.p3-pl{stroke:var(--yellow);stroke-width:2;stroke-dasharray:6 6;opacity:.55}
.p3-vr{stroke:var(--yellow);stroke-width:4}
.p3-vl,.p3-cw,.p3-hw,.p3-tr{stroke:var(--yellow);stroke-width:1.5}
.p3-ar,.p3-rod{stroke:var(--yellow);stroke-width:2}
.p3-ar.h,.p3-sp{fill:var(--yellow)}
.p3-air{stroke:#fff;stroke-width:1.5}
.p3-air.h{fill:#fff}
.p3-pi{stroke:#fff8;stroke-width:1.5}
.p3-bd{stroke:#ffffff26;stroke-width:13}
.p3-tz{stroke:var(--navy);stroke-width:1.5}
.p3-md,.p3-el{fill:#8fbaff}
.p3-pool{fill:#8fbaff59;stroke:#8fbaff}
.p3-pp{stroke:var(--yellow);stroke-width:9}
.p3-pi2,.p3-di{stroke:var(--navy);stroke-width:3.5}
.p3-du{stroke:#8fbaff;stroke-width:8}
.p3-du2{stroke:#8fbaff;stroke-width:4}
.p3-pe,.p3-de,.p3-ih{fill:var(--navy);stroke:var(--yellow);stroke-width:2}
.p3-de,.p3-ih,.p3-scr{stroke:#8fbaff}
.p3-ok circle{stroke-width:2}
.p3-ok path{stroke:var(--navy);stroke-width:2.5}
.p3-sl{stroke:#fffb;stroke-width:1.5;stroke-dasharray:2 4}
.p3-rl{fill:#8fbaff26;stroke:#8fbaff;stroke-width:2}
.p3-cbl{stroke:var(--yellow);stroke-width:2.5}
.p3-hs{stroke:#8fbaff;stroke-width:2;stroke-dasharray:3 3}
.p3-zm circle{fill:var(--navy-700);stroke:#fff;stroke-width:1.5}
.p3-scr{fill:var(--navy)}
.p3-prl{stroke:var(--navy-600);stroke-width:1.5}
.p3-sp2{fill:#fff3;stroke:#fff9}
.p3-cl{fill:#ffffff1a;stroke:#fffb}
.p3-cl.c{fill:#ffffff2e}
.p3-tv{fill:#fff4;stroke:#fff;stroke-width:1.2}
.p3-tv.c{fill:#fff6}
.p3-a{stroke-dasharray:1}
@media (prefers-reduced-motion:no-preference){
  .dd-pre .p3-a{stroke-dashoffset:1}
  .dd-pre .p3-o{opacity:0}
  .dd-pre .p3-l{transform:translate(-16px,-9px)}
  .dd-pre .p3-r{transform:translate(16px,9px)}
  .dd-pre .p3-kroky::after{transform:scaleX(0)}
  .dd-pre.dd-in .p3-a{stroke-dashoffset:0;transition:stroke-dashoffset 1.4s var(--ease-io) calc(var(--i,1) * .3s + .3s)}
  .dd-pre.dd-in .p3-o{opacity:1;transition:opacity .4s var(--ease-out) calc(var(--i,1) * .3s + 1.5s)}
  .dd-pre.dd-in .p3-l,.dd-pre.dd-in .p3-r{transform:none;transition:transform 1.2s var(--ease-io) calc(var(--i,1) * .3s + .4s)}
  .dd-pre.dd-in .p3-v{animation:p3-v .9s var(--ease-out) calc(var(--i,1) * .3s + 1.6s) backwards}
  .dd-pre.dd-in .p3-kroky::after{transform:none;transition:transform 1.2s var(--ease-io) .2s}
}
@keyframes p3-v{from{opacity:0}}
/* Mobil (do 639 px): kroky v páse na posúvanie prstom ako karty služieb, „alebo“ medzi spôsobmi zvárania ostáva viditeľné */
@media (max-width:639px){
  .p3{display:flex;gap:var(--space-3);margin-inline:-16px;padding:4px 16px var(--space-3);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none}
  .p3::-webkit-scrollbar{display:none}
  .p3>li{flex:0 0 84%;scroll-snap-align:start}
  .p3-alebo>li:first-child::after{left:auto;right:calc(var(--space-3) / -2);bottom:auto;top:40%;transform:translate(50%,-50%)}
}
