/* Pars Control Core: concept animations, order workflow, forms, floating selector switch. */

/* ---- Concept animations (drawn for a dark panel) ---- */
.anim{width:100%;height:auto;display:block;fill:none;stroke-linecap:round;stroke-linejoin:round}
.anim .a-ln,.anim .a-tick{stroke:#6f7479;stroke-width:1.5}
.anim .a-grid{stroke:#3a3f44;stroke-width:1.5;stroke-dasharray:2 5}
.anim .a-box,.anim .a-box rect{stroke:#9aa0a5;stroke-width:1.6;fill:#2e3236}
.anim .a-box--hot{stroke:#e63438}
.anim .a-bub circle{stroke:#d5d8da;stroke-width:1.6;fill:#1b1d1f}
.anim .a-txt{fill:#d5d8da;stroke:none;font:700 11px ui-monospace,Menlo,Consolas,monospace;text-anchor:middle}
.anim .a-txt--s{font-size:8.5px;fill:#9aa0a5;font-weight:600}
.anim .a-rail{stroke:#d5d8da;stroke-width:3}
.anim .a-bus{stroke:#e63438;stroke-width:5}
.anim .a-hub,.anim .a-hub circle{fill:#d5d8da;stroke:none}
.anim .a-sig path,.anim path.a-sig{stroke:#e63438;stroke-width:2.2;stroke-dasharray:5 9;animation:pcc-dash 1.1s linear infinite}
@keyframes pcc-dash{to{stroke-dashoffset:-28}}
.anim .a-led circle,.anim circle.a-led{fill:#2fb67c;stroke:none;animation:pcc-blink 1.6s infinite}
.anim .a-led--red circle{fill:#e63438}
@keyframes pcc-blink{0%,45%{opacity:1}55%,100%{opacity:.18}}
.anim .a-bar rect{fill:#e63438;stroke:none;transform-box:fill-box;transform-origin:bottom;animation:pcc-bar 2.4s ease-in-out infinite}
@keyframes pcc-bar{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.anim .a-run{stroke:#e63438;stroke-width:2.6;stroke-dasharray:260;stroke-dashoffset:260;animation:pcc-run 3s linear infinite}
@keyframes pcc-run{0%{stroke-dashoffset:260;opacity:1}30%,70%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.anim .a-coil{fill:#2fb67c;stroke:none;opacity:0;animation:pcc-coil 3s linear infinite}
@keyframes pcc-coil{0%,28%{opacity:0}34%,70%{opacity:1}100%{opacity:0}}
.anim .a-sp{stroke:#f2a93b;stroke-width:1.4;stroke-dasharray:6 5}
.anim .a-draw{stroke:#e63438;stroke-width:2.4;stroke-dasharray:100;stroke-dashoffset:100;animation:pcc-draw 5s ease-in-out infinite}
.anim .a-draw--2{stroke:#9aa0a5;animation-delay:.5s}
@keyframes pcc-draw{0%{stroke-dashoffset:100;opacity:1}55%,85%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.anim .a-draft path{stroke:#e63438;stroke-width:1.8;stroke-dasharray:100;stroke-dashoffset:100;animation:pcc-draft 5s ease-out infinite}
@keyframes pcc-draft{0%{stroke-dashoffset:100;opacity:1}22%,80%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
.anim .a-spin{stroke:#e63438;stroke-width:2;animation:pcc-spin 3s linear infinite}
@keyframes pcc-spin{to{transform:rotate(360deg)}}
.anim .a-fill rect{fill:#e63438;stroke:none;opacity:.85;transform-box:fill-box;transform-origin:bottom;animation:pcc-fill 4s ease-in-out infinite}
@keyframes pcc-fill{0%{transform:scaleY(.12)}60%,90%{transform:scaleY(1)}100%{transform:scaleY(.12)}}
.anim .a-zone{stroke:#e63438;stroke-width:5}
.anim .a-needle{stroke:#fff;stroke-width:3;animation:pcc-needle 4.5s ease-in-out infinite}
@keyframes pcc-needle{0%,100%{transform:rotate(-105deg)}45%{transform:rotate(38deg)}60%{transform:rotate(22deg)}75%{transform:rotate(55deg)}}
.anim .a-therm{fill:#e63438;stroke:none;transform-box:fill-box;transform-origin:bottom;animation:pcc-fill 5s ease-in-out infinite}
.anim .a-level{fill:#4b8fb8;stroke:none;opacity:.8;transform-box:fill-box;transform-origin:bottom;animation:pcc-level 6s ease-in-out infinite}
@keyframes pcc-level{0%,100%{transform:scaleY(.25)}50%{transform:scaleY(.82)}}
.anim .a-ring circle{stroke:#e63438;stroke-width:1.6;transform-box:fill-box;transform-origin:center;opacity:0;animation:pcc-ring 2.1s ease-out infinite}
@keyframes pcc-ring{0%{transform:scale(.4);opacity:.9}100%{transform:scale(2.4);opacity:0}}
.anim .a-wave path{stroke:#f2a93b;stroke-width:2;animation:pcc-blink 1s infinite}
.anim .a-brk{stroke:#fff;stroke-width:2.4;animation:pcc-brk 4s ease-in-out infinite}
@keyframes pcc-brk{0%,12%{transform:rotate(-32deg)}22%,88%{transform:rotate(0)}100%{transform:rotate(-32deg)}}
.anim .a-type rect{fill:#9aa0a5;stroke:none;transform-box:fill-box;transform-origin:left;transform:scaleX(0);animation:pcc-type 5s steps(14) infinite}
.anim .a-type rect:nth-child(2n){fill:#e63438}
@keyframes pcc-type{0%{transform:scaleX(0);opacity:1}12%,82%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}
.anim .a-cur{fill:#fff;stroke:none;animation:pcc-blink .9s steps(1) infinite}
.pcc-fig{margin:1.4em 0;background:#24272a;border-radius:16px;padding:16px}

/* ---- Workflow ---- */
.pcc-flow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:0;position:relative}
.pcc-flow__step{position:relative;padding:58px 12px 0;margin:0}
.pcc-flow__step::before{content:"";position:absolute;top:21px;inset-inline:0;height:2px;background:repeating-linear-gradient(90deg,currentColor 0 6px,transparent 6px 12px);opacity:.3}
.pcc-flow__step:first-child::before{inset-inline-start:50%}
.pcc-flow__step:last-child::before{inset-inline-end:50%}
.pcc-flow__n{position:absolute;top:0;left:50%;margin-left:-22px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:700 .8rem ui-monospace,Menlo,monospace;background:#e63438;color:#fff;box-shadow:0 0 0 6px rgba(230,52,56,.16)}
.pcc-flow__step h3{font-size:.98rem;margin:0 0 4px;text-align:center}
.pcc-flow__step p{font-size:.82rem;line-height:1.8;margin:0;opacity:.72;text-align:center}
.prose .pcc-flow li::before,.prose .pcc-flow__step::before{width:auto;border-radius:0}
.pcc-flow--track .pcc-flow__n{background:#c9cbcc;color:#1b1d1f;box-shadow:none}
.pcc-flow--track .is-done .pcc-flow__n{background:#2fb67c;color:#fff}
.pcc-flow--track .is-now .pcc-flow__n{background:#e63438;color:#fff;box-shadow:0 0 0 6px rgba(230,52,56,.2);animation:pcc-pulse 1.8s infinite}
.pcc-flow--track .pcc-flow__step:not(.is-done):not(.is-now) h3,.pcc-flow--track .pcc-flow__step:not(.is-done):not(.is-now) p{opacity:.5}
@keyframes pcc-pulse{50%{box-shadow:0 0 0 12px rgba(230,52,56,0)}}
@media (max-width:900px){
  .pcc-flow{grid-template-columns:1fr;gap:18px}
  .pcc-flow__step{padding:0;padding-inline-start:64px;min-height:48px}
  .pcc-flow__step::before,.pcc-flow__step:first-child::before{top:0;bottom:-18px;height:auto;width:2px;inset-inline:auto;inset-inline-start:21px;background:repeating-linear-gradient(180deg,currentColor 0 6px,transparent 6px 12px)}
  .pcc-flow__step:last-child::before{display:none}
  .pcc-flow__n{left:auto;margin-left:0;inset-inline-start:0}
  .pcc-flow__step h3,.pcc-flow__step p{text-align:start}
}

/* ---- Forms ---- */
.pcc-form{display:grid;gap:12px}
.pcc-form p{margin:0}
.pcc-form__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pcc-form label{display:block;font-size:.84rem;font-weight:600;margin-bottom:5px}
.pcc-form label b{color:#e63438}
.pcc-form input[type=text],.pcc-form input[type=tel],.pcc-form input[type=email],.pcc-form textarea,.pcc-form input[type=file]{width:100%;padding:11px 14px;border:1.5px solid #d5d8da;border-radius:10px;font:inherit;background:#fff;color:#1b1d1f;transition:border-color .15s}
.pcc-form input:focus,.pcc-form textarea:focus{border-color:#1b1d1f;outline:0;box-shadow:0 0 0 3px rgba(230,52,56,.18)}
.pcc-form .is-bad{border-color:#e63438}
.pcc-form__err{color:#e63438;font-size:.78rem;margin-top:4px;display:block}
.pcc-form__btn{justify-self:start}
.pcc-form__btn[disabled]{opacity:.6;cursor:progress}
.pcc-form__out:empty{display:none}
.pcc-form__out{font-size:.9rem;padding:10px 14px;border-radius:10px;background:#fdecec;color:#a11d21}
.pcc-hp{position:absolute!important;inset-inline-start:-9999px;height:0;overflow:hidden}
.pcc-done{text-align:center;padding:18px 8px;display:grid;gap:8px;justify-items:center}
.pcc-done p{margin:0}
.pcc-done__ok{width:54px;height:54px;border-radius:50%;background:#2fb67c;display:grid;place-items:center;color:#fff;font-size:1.6rem}
.pcc-done__code{font:800 1.5rem ui-monospace,Menlo,monospace;letter-spacing:.12em;padding:8px 18px;border:2px dashed currentColor;border-radius:12px;direction:ltr}
.aside-box--cta .pcc-form label{color:#e6e7e8}
.aside-box--cta .pcc-form__row{grid-template-columns:1fr}
.aside-box--cta .pcc-form__btn{justify-self:stretch;white-space:normal}
.aside-box--cta .pcc-form__err{color:#ff9c9e}
.pcc-alert{padding:14px 18px;border-radius:12px;background:#fdecec;color:#a11d21;margin-top:18px}
.pcc-track__res{margin-top:28px;border:1px solid #e2e3e3;border-radius:18px;padding:24px}
.pcc-track__head{font-size:1.05rem;margin-bottom:22px}
.pcc-track__note{margin:22px 0 0;padding:14px 18px;background:#f4f4f2;border-radius:12px}
.pcc-cats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.pcc-cat{display:grid;gap:8px;padding:22px;border:1px solid #e2e3e3;border-radius:18px;background:#fff;transition:.2s;justify-items:start}
.pcc-cat:hover{border-color:#1b1d1f;transform:translateY(-3px)}
.pcc-cat__ico{width:54px;height:64px;border-radius:8px 18px 8px 8px;background:#1b1d1f;color:#fff;display:grid;place-items:center;font:700 .72rem ui-monospace,Menlo,monospace}
@media (max-width:760px){.pcc-form__row{grid-template-columns:1fr}.pcc-cats{grid-template-columns:1fr}}

/* ---- Modal ---- */
.pcc-modal{position:fixed;inset:0;z-index:300;background:rgba(27,29,31,.66);display:grid;place-items:center;padding:16px;overflow:auto;animation:pcc-fade .2s}
@keyframes pcc-fade{from{opacity:0}}
.pcc-modal__box{position:relative;background:#fff;color:#1b1d1f;border-radius:20px;padding:clamp(20px,3vw,34px);width:min(100%,600px);border-top:6px solid #e63438;animation:pcc-rise .25s}
@keyframes pcc-rise{from{transform:translateY(24px);opacity:0}}
.pcc-modal__x{position:absolute;top:12px;inset-inline-end:14px;width:38px;height:38px;border-radius:50%;border:1px solid #e2e3e3;background:#fff;font-size:1.4rem;line-height:1;color:#1b1d1f;cursor:pointer}
.pcc-modal__tag{font:700 .7rem ui-monospace,Menlo,monospace;letter-spacing:.2em;color:#e63438}
.pcc-modal h2{font-size:1.3rem;margin:4px 0 4px}
.pcc-modal__lead{color:#5d6164;font-size:.9rem;margin:0 0 16px}
.pcc-zoom{position:fixed;inset:0;z-index:310;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:20px;cursor:zoom-out}
.pcc-zoom img{max-width:100%;max-height:92vh;border-radius:10px;background:#fff}

/* ---- Floating selector switch ---- */
.pcc-fab{position:fixed;inset-block-end:18px;inset-inline-start:18px;z-index:120;display:grid;justify-items:start;gap:12px}
.pcc-fab__knob{position:relative;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;filter:drop-shadow(0 8px 18px rgba(0,0,0,.32))}
.pcc-fab__knob svg{width:64px;height:64px;display:block}
.pcc-fab__knob::before{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid #e63438;opacity:0;animation:pcc-halo 2.8s ease-out infinite}
@keyframes pcc-halo{0%{transform:scale(.9);opacity:.7}70%,100%{transform:scale(1.35);opacity:0}}
.pcc-fab .k-plate{fill:#1b1d1f;stroke:#3a3f44;stroke-width:2}
.pcc-fab .k-ticks{stroke:#9aa0a5;stroke-width:2;stroke-linecap:round;fill:none}
.pcc-fab .k-lamp{fill:#e63438;animation:pcc-blink 1.8s infinite}
.pcc-fab .k-knob{transform-origin:36px 36px;transform:rotate(-45deg);transition:transform .45s cubic-bezier(.5,1.6,.4,1)}
.pcc-fab .k-knob circle{fill:#e63438;stroke:#fff;stroke-width:2}
.pcc-fab .k-knob path{stroke:#fff;stroke-width:3.6;stroke-linecap:round;fill:none}
.pcc-fab__knob:hover .k-knob{transform:rotate(-20deg)}
.pcc-fab.is-open .k-knob{transform:rotate(45deg)}
.pcc-fab.is-open .k-lamp{fill:#2fb67c;animation:none}
.pcc-fab.is-open .pcc-fab__knob::before{animation:none}
.pcc-fab__menu{list-style:none;margin:0;padding:0;display:grid;gap:8px;justify-items:start}
.pcc-fab__menu li{opacity:0;transform:translateY(14px) scale(.96);animation:pcc-pop .28s forwards}
.pcc-fab__menu li:nth-last-child(2){animation-delay:.05s}.pcc-fab__menu li:nth-last-child(3){animation-delay:.1s}.pcc-fab__menu li:nth-last-child(4){animation-delay:.15s}.pcc-fab__menu li:nth-last-child(5){animation-delay:.2s}
@keyframes pcc-pop{to{opacity:1;transform:none}}
.pcc-fab__menu a{display:inline-flex;align-items:center;gap:10px;background:#1b1d1f;color:#fff;padding:10px 16px;border-radius:999px;font-size:.88rem;font-weight:600;box-shadow:0 8px 20px rgba(0,0,0,.25);border:1px solid #3a3f44;white-space:nowrap}
.pcc-fab__menu a:hover{background:#000;border-color:#e63438}
.pcc-fab__lamp{width:10px;height:10px;border-radius:50%;background:#9aa0a5;flex:none}
.pcc-fab__lamp--red{background:#e63438;box-shadow:0 0 8px #e63438}.pcc-fab__lamp--green{background:#2fb67c;box-shadow:0 0 8px #2fb67c}.pcc-fab__lamp--amber{background:#f2a93b;box-shadow:0 0 8px #f2a93b}
@media (max-width:760px){.pcc-fab{inset-block-end:8px;inset-inline-start:10px}.pcc-fab__knob,.pcc-fab__knob svg{width:56px;height:56px}}
@media (prefers-reduced-motion:reduce){.anim *,.pcc-fab *,.pcc-fab__knob::before{animation:none!important}.anim .a-run,.anim .a-draw,.anim .a-draft path{stroke-dashoffset:0}.anim .a-coil{opacity:1}.anim .a-type rect{transform:none}.anim .a-ring circle{opacity:.6}.pcc-fab__menu li{opacity:1;transform:none}}
.anim{direction:ltr}
