/* PRIMEBOX CINEMATIC EXPERIENCE 2.0
 * Scopes every visual modification strictly to section#cum-functioneaza.
 * Designed around the homepage HTML saved October 27, 2026.
 * No dependencies or external requests.
 */
:root{--pbx-orange:#ff611a;--pbx-hot:#ff8a36;--pbx-ink:#0a0f18;--pbx-muted:#b0b9c8;--pbx-ease:cubic-bezier(.18,.78,.19,1)}
body #cum-functioneaza.pb-exp{
  position:relative;isolation:isolate;overflow:hidden;color:#f8fafc;
  background:linear-gradient(180deg,#080d15 0%,#111722 58%,#0b111b 100%);
  padding:100px 0 84px;min-height:890px;
  --pbx-mx:0px;--pbx-my:0px;
  font-family:var(--font-body,Inter,system-ui,sans-serif);
}
body #cum-functioneaza.pb-exp:before{
  content:"";position:absolute;pointer-events:none;inset:0;z-index:-1;
  background:radial-gradient(ellipse 54% 56% at 83% 48%,rgba(255,107,31,.13),transparent 90%),
  radial-gradient(ellipse 57% 45% at 50% 66%,rgba(255,90,20,.07),transparent 92%);
}
body #cum-functioneaza.pb-exp:after{
  content:"";pointer-events:none;position:absolute;inset:0;z-index:0;opacity:.36;
  background-image:linear-gradient(rgba(179,209,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(179,209,255,.05) 1px,transparent 1px);
  background-size:84px 84px;mask-image:linear-gradient(transparent 2%,black 32%,transparent 95%);
}
body #cum-functioneaza.pb-exp .pb-exp__scene{
  position:absolute;pointer-events:none;inset:-2.2%;z-index:-1;
  background-image:linear-gradient(180deg,rgba(6,10,16,.15),rgba(6,10,16,.22) 70%,rgba(5,9,15,.7)),
    url('../images/pbx-cinematic-scene.webp');
  background-size:cover,cover;background-position:center,center;
  transform:translate3d(var(--pbx-mx),var(--pbx-my),0) scale(1.04);
  transition:transform .85s ease-out;will-change:auto;
}
body #cum-functioneaza.pb-exp .pb-exp__aura{
  pointer-events:none;position:absolute;z-index:0;inset:-30%;opacity:.9;
  background:radial-gradient(circle at 77% 50%,rgba(249,94,19,.14),transparent 29%),
    radial-gradient(circle at 22% 60%,rgba(78,95,133,.11),transparent 29%);
  animation:pbx-breathe 13s ease-in-out infinite alternate;
}
@keyframes pbx-breathe{from{transform:translate3d(-1.2%,0,0) scale(1)}to{transform:translate3d(1.2%,-1.5%,0) scale(1.055)}}
body #cum-functioneaza.pb-exp>.container.pb-exp__shell{
  position:relative;z-index:2;width:calc(100% - 44px);max-width:1370px;margin:0 auto;padding:0;
}
body #cum-functioneaza.pb-exp .section__head.pb-exp__head{
  position:relative;z-index:7;margin:0 auto 4px;text-align:center;
}
body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow{
  color:#d3dce7;letter-spacing:.22em;font-size:12px;font-weight:800;
  text-transform:uppercase;margin:0 0 16px;
}
body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow:before,
body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow:after{
  content:"";display:inline-block;vertical-align:middle;width:35px;height:1px;background:linear-gradient(90deg,transparent,var(--pbx-orange));margin:0 16px 3px 0;
}
body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow:after{
  margin:0 0 3px 16px;transform:scaleX(-1);
}
body #cum-functioneaza.pb-exp .section__title{
  color:#fff;margin:0 auto;max-width:830px;font-weight:850;
  letter-spacing:-.045em;line-height:1.06;font-size:clamp(35px,4.15vw,62px);
  text-shadow:0 6px 30px rgba(0,0,0,.22);
}
body #cum-functioneaza.pb-exp .section__title .pb-exp__secondline{display:block}
body #cum-functioneaza.pb-exp .section__title em{font-style:normal;color:var(--pbx-orange)}
body #cum-functioneaza.pb-exp .pb-exp__lead{
  color:#c2ccda;font-size:clamp(14px,1.15vw,17px);line-height:1.62;
  max-width:670px;margin:19px auto 0;
}
/* Model area: a real 9-layer interactive 2.5D composite from the approved concept render. */
body #cum-functioneaza.pb-exp .pb-exp__stage-wrap{
  position:relative;margin:0 auto 4px;min-height:0;
}
body #cum-functioneaza.pb-exp .pb-exp__stage{
  position:relative;width:min(100%,1090px);aspect-ratio:1010/462;
  margin:-8px auto -10px;z-index:1;
}
body #cum-functioneaza.pb-exp .pb-exp__model-shadow{
  position:absolute;left:20%;right:19%;height:17%;bottom:4%;border-radius:50%;
  background:radial-gradient(ellipse,rgba(0,0,0,.68),transparent 70%);filter:blur(20px);pointer-events:none;
}
body #cum-functioneaza.pb-exp .pb-exp__stage-button{
  display:block;position:absolute;inset:0;border:0;margin:0;padding:0;background:none;color:inherit;
  width:100%;height:100%;cursor:pointer;overflow:visible;text-align:left;
  touch-action:pan-y;
}
body #cum-functioneaza.pb-exp .pb-exp__stage-button:focus-visible{
  outline:2px solid var(--pbx-hot);outline-offset:-13px;border-radius:14px;
}
body #cum-functioneaza.pb-exp .pb-exp__machine{
  position:absolute;inset:0;display:block;
  transform:perspective(1400px) rotateX(var(--pbx-rx,0deg)) rotateY(var(--pbx-ry,0deg));
  transition:transform .5s ease-out;transform-style:preserve-3d;
}
body #cum-functioneaza.pb-exp .pb-exp__layer{
  position:absolute;display:block;z-index:var(--pbx-z,3);
  background-position:center;background-repeat:no-repeat;background-size:100% 100%;
  transform:translate3d(var(--pbx-closed-x,0px),var(--pbx-closed-y,0px),0) rotate(var(--pbx-closed-r,0deg));
  transition:transform 1.12s var(--pbx-ease),filter .85s ease,opacity .55s ease;
  transition-delay:var(--pbx-delay,0ms);
  filter:drop-shadow(0 8px 8px rgba(0,0,0,.21));
  backface-visibility:hidden;
}
body #cum-functioneaza.pb-exp .pb-exp__stage[data-exploded="true"] .pb-exp__layer{
  transform:translate3d(0,0,0) rotate(0deg);
  filter:drop-shadow(0 15px 11px rgba(0,0,0,.33)) brightness(1.055);
}
/* stage coordinates reference a 1010x462 viewport cropped from the approved artwork [330,255..]. */
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="body"]{
  left:32.87%;top:33.12%;width:34.95%;height:46.32%;--pbx-z:4;
  background-image:url('../images/pieces/body.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="left-wall"]{
  left:11.68%;top:26.62%;width:16.24%;height:53.25%;--pbx-z:6;
  --pbx-closed-x:56px;--pbx-closed-y:-2px;--pbx-delay:75ms;
  background-image:url('../images/pieces/left-wall.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="mid-wall"]{
  left:25.45%;top:29.0%;width:13.47%;height:50.43%;--pbx-z:7;
  --pbx-closed-x:19px;--pbx-delay:130ms;
  background-image:url('../images/pieces/mid-wall.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="glass-wall"]{
  left:65.25%;top:33.98%;width:20.10%;height:44.59%;--pbx-z:7;
  --pbx-closed-x:-45px;--pbx-closed-y:-3px;--pbx-delay:105ms;
  background-image:url('../images/pieces/glass-wall.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="roof"]{
  left:19.50%;top:5.41%;width:57.62%;height:33.77%;--pbx-z:10;
  --pbx-closed-y:58px;--pbx-delay:30ms;
  background-image:url('../images/pieces/roof.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="floor"]{
  left:20.89%;top:72.73%;width:58.91%;height:15.37%;--pbx-z:5;
  --pbx-closed-y:-15px;--pbx-delay:90ms;
  background-image:url('../images/pieces/floor.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="chassis"]{
  left:20.89%;top:79.87%;width:59.21%;height:16.67%;--pbx-z:3;
  --pbx-closed-y:-37px;--pbx-delay:165ms;
  background-image:url('../images/pieces/chassis.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="outer-left"]{
  left:5.45%;top:36.58%;width:7.33%;height:37.66%;--pbx-z:8;
  --pbx-closed-x:93px;--pbx-delay:220ms;
  background-image:url('../images/pieces/outer-left.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__layer[data-part="outer-right"]{
  left:87.62%;top:44.37%;width:5.54%;height:31.17%;--pbx-z:9;
  --pbx-closed-x:-93px;--pbx-delay:220ms;
  background-image:url('../images/pieces/outer-right.webp');
}
body #cum-functioneaza.pb-exp .pb-exp__stage .pb-exp__guides{
  position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;
  opacity:.18;transition:opacity .65s ease;
}
body #cum-functioneaza.pb-exp .pb-exp__stage[data-exploded="true"] .pb-exp__guides{opacity:.82}
body #cum-functioneaza.pb-exp .pb-exp__guides path,
body #cum-functioneaza.pb-exp .pb-exp__guides line{
  stroke:#ff681d;fill:none;stroke-width:1;stroke-dasharray:3 8;
  vector-effect:non-scaling-stroke;
}
body #cum-functioneaza.pb-exp .pb-exp__guides circle{fill:#ff681d}
body #cum-functioneaza.pb-exp .pb-exp__model-tooltip{
  position:absolute;z-index:12;bottom:9%;left:50%;transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  padding:12px 18px;border:1px solid rgba(255,112,42,.58);border-radius:100px;
  color:#fff;background:rgba(10,15,23,.83);box-shadow:0 10px 36px rgba(0,0,0,.4);
  backdrop-filter:blur(14px);font-size:12px;font-weight:750;letter-spacing:.02em;
  transition:border-color .3s,background-color .3s;
}
body #cum-functioneaza.pb-exp .pb-exp__model-tooltip svg{width:17px;height:17px;color:#ff791f}
body #cum-functioneaza.pb-exp .pb-exp__stage[data-exploded="true"] .pb-exp__model-tooltip{
  background:rgba(37,15,7,.88);border-color:#ff661d;
}
body #cum-functioneaza.pb-exp .pb-exp__annot{
  position:absolute;top:31%;z-index:3;max-width:185px;pointer-events:none;
  color:#c3cad7;font-size:13px;line-height:1.55;
}
body #cum-functioneaza.pb-exp .pb-exp__annot strong{
  display:block;color:#f4f7fc;text-transform:uppercase;font-weight:800;letter-spacing:.13em;
  font-size:11px;line-height:1.4;margin-bottom:10px;
}
body #cum-functioneaza.pb-exp .pb-exp__annot--left{left:0}
body #cum-functioneaza.pb-exp .pb-exp__annot--right{right:0;top:38%}
body #cum-functioneaza.pb-exp .pb-exp__annot:before{
  content:"";display:block;background:var(--pbx-orange);width:46px;height:1px;margin-bottom:16px;
  box-shadow:0 0 15px rgba(255,102,25,.7);
}
body #cum-functioneaza.pb-exp .pb-exp__annot:after{
  content:"";position:absolute;top:-4px;left:46px;width:7px;height:7px;
  border-radius:50%;background:var(--pbx-orange);box-shadow:0 0 13px var(--pbx-orange);
}
/* Premium four step cards. Old theme .steps is intentionally overridden only here. */
body #cum-functioneaza.pb-exp .pb-exp__steps{
  --pb-step-progress:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;position:relative;z-index:5;margin:4px 0 0;padding:0;
  counter-reset:none;list-style:none;
}
body #cum-functioneaza.pb-exp .pb-exp__steps:before,
body #cum-functioneaza.pb-exp .pb-exp__steps:after{
  content:"";position:absolute;top:46px;left:7%;right:7%;height:2px;
  background:rgba(255,145,72,.18);pointer-events:none;z-index:3;
}
body #cum-functioneaza.pb-exp .pb-exp__steps:after{
  right:auto;width:calc(86% * var(--pb-step-progress,0));
  background:linear-gradient(90deg,#ff5b12,#ff9a45);box-shadow:0 0 12px #ff661c;
  transition:width .6s var(--pbx-ease);
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item{
  position:relative;padding:27px 26px 25px;min-height:190px;
  background:linear-gradient(145deg,rgba(16,22,34,.98),rgba(13,17,25,.96));
  border:1px solid rgba(188,205,228,.2);border-radius:20px;
  color:#f8fafc;box-shadow:0 16px 46px rgba(0,0,0,.17);
  transition:border-color .35s,box-shadow .35s,transform .35s,background-color .35s;
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item::after{content:none!important;display:none!important}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item.is-current{
  border-color:#ff691b;
  background:linear-gradient(135deg,rgba(56,21,10,.98) 0%,rgba(18,20,28,.98) 75%);
  box-shadow:0 0 0 1px rgba(255,97,23,.18),0 14px 35px rgba(252,75,0,.09),inset 0 -3px 23px rgba(255,77,10,.09);
  transform:translateY(-3px);
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item .steps__n{
  position:relative;z-index:4;display:inline-block;box-sizing:content-box;
  width:auto;height:auto;border-radius:0;margin:0 0 16px;padding:0;
  font-size:24px;color:#f6f7fb;line-height:1;font-weight:850;background:none!important;
  box-shadow:none!important;transform:none!important;
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item.is-current .steps__n{color:var(--pbx-orange)}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item .pb-exp__step-icon{
  width:25px;height:25px;position:absolute;top:25px;left:76px;
  color:#eaf0f8;transition:color .3s;
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item.is-current .pb-exp__step-icon{color:#ff782a}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item h3{
  font-size:clamp(15px,1.3vw,19px);line-height:1.17;font-weight:790;
  color:#fff;letter-spacing:-.016em;margin:0 0 10px;
}
body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item p{
  font-size:13.8px;line-height:1.56;color:#c8ced7;margin:0;
}
body #cum-functioneaza.pb-exp .pb-exp__step-hit{
  position:absolute;inset:0;z-index:10;cursor:pointer;border:0;border-radius:20px;
  padding:0;margin:0;background:transparent;color:transparent;
}
body #cum-functioneaza.pb-exp .pb-exp__step-hit:focus-visible{
  outline:2px solid #ff8a36;outline-offset:3px;
}
@media (hover:hover) and (pointer:fine){
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item:hover{border-color:rgba(255,112,40,.67);transform:translateY(-5px)}
}
body #cum-functioneaza.pb-exp .pb-exp__step-cta{
  display:flex;align-items:center;justify-content:center;gap:12px;margin:28px auto 0;
  color:#ffd2b4;text-align:center;font-size:13px;letter-spacing:.025em;
}
body #cum-functioneaza.pb-exp .pb-exp__step-cta a{color:#fff;text-decoration:underline;text-decoration-color:var(--pbx-orange);text-underline-offset:5px;font-weight:700}
body #cum-functioneaza.pb-exp .pb-exp__step-cta a:hover{color:#ff9a54}
/* ambient dust; CSS-only, very inexpensive */
body #cum-functioneaza.pb-exp .pb-exp__dust{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  opacity:.8;background-image:
    radial-gradient(2px 2px at 9% 45%,#ff7026 48%,transparent 62%),
    radial-gradient(3px 3px at 22% 66%,#e88b44 46%,transparent 68%),
    radial-gradient(2px 2px at 81% 34%,#ff6722 48%,transparent 62%),
    radial-gradient(2px 2px at 94% 56%,#ffc288 48%,transparent 62%),
    radial-gradient(2px 2px at 62% 68%,#ff7a25 48%,transparent 62%);
  animation:pbx-drift 13s ease-in-out infinite alternate;
}
@keyframes pbx-drift{from{transform:translate3d(0,4px,0);opacity:.4}to{transform:translate3d(0,-12px,0);opacity:.85}}
@media(max-width:1320px){
 body #cum-functioneaza.pb-exp .pb-exp__annot{display:none}
}
@media(max-width:1023px){
 body #cum-functioneaza.pb-exp{padding:75px 0 70px;min-height:0}
 body #cum-functioneaza.pb-exp .pb-exp__stage{margin:10px auto 4px;max-width:950px}
 body #cum-functioneaza.pb-exp .pb-exp__steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body #cum-functioneaza.pb-exp .pb-exp__steps:before,
 body #cum-functioneaza.pb-exp .pb-exp__steps:after{display:none}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item{min-height:160px;padding:23px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item .pb-exp__step-icon{top:20px;left:66px}
}
@media(max-width:640px){
 body #cum-functioneaza.pb-exp{padding:65px 0 64px;}
 body #cum-functioneaza.pb-exp>.container.pb-exp__shell{width:calc(100% - 28px)}
 body #cum-functioneaza.pb-exp .section__title{font-size:clamp(30px,8vw,43px);max-width:95%}
 body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow{font-size:10px}
 body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow:before,
 body #cum-functioneaza.pb-exp .pb-exp__head .eyebrow:after{width:20px;margin-left:8px;margin-right:8px}
 body #cum-functioneaza.pb-exp .pb-exp__lead{font-size:13px;line-height:1.57;margin-top:15px}
 body #cum-functioneaza.pb-exp .pb-exp__stage{width:calc(100% + 32px);left:-16px;margin:12px auto 8px;aspect-ratio:1010/540}
 body #cum-functioneaza.pb-exp .pb-exp__machine{transform:none!important}
 body #cum-functioneaza.pb-exp .pb-exp__layer{transition-duration:.85s}
 body #cum-functioneaza.pb-exp [data-part="roof"]{--pbx-closed-y:21px}
 body #cum-functioneaza.pb-exp [data-part="left-wall"]{--pbx-closed-x:17px}
 body #cum-functioneaza.pb-exp [data-part="mid-wall"]{--pbx-closed-x:6px}
 body #cum-functioneaza.pb-exp [data-part="glass-wall"]{--pbx-closed-x:-15px}
 body #cum-functioneaza.pb-exp [data-part="outer-left"]{--pbx-closed-x:28px}
 body #cum-functioneaza.pb-exp [data-part="outer-right"]{--pbx-closed-x:-28px}
 body #cum-functioneaza.pb-exp [data-part="floor"]{--pbx-closed-y:-5px}
 body #cum-functioneaza.pb-exp [data-part="chassis"]{--pbx-closed-y:-13px}
 body #cum-functioneaza.pb-exp .pb-exp__model-tooltip{bottom:-4px;font-size:10px;padding:8px 11px;gap:6px}
 body #cum-functioneaza.pb-exp .pb-exp__model-tooltip svg{width:13px;height:13px}
 body #cum-functioneaza.pb-exp .pb-exp__steps{gap:9px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item{padding:15px 14px;min-height:182px;border-radius:15px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item .steps__n{font-size:18px;margin-bottom:13px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item .pb-exp__step-icon{top:14px;left:48px;width:19px;height:19px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item h3{font-size:14px}
 body #cum-functioneaza.pb-exp .pb-exp__steps>.steps__item p{font-size:11.5px;line-height:1.47}
 body #cum-functioneaza.pb-exp .pb-exp__step-cta{flex-wrap:wrap;font-size:12px;gap:8px;margin-top:22px}
}
@media(prefers-reduced-motion:reduce){
 body #cum-functioneaza.pb-exp .pb-exp__aura,body #cum-functioneaza.pb-exp .pb-exp__dust{animation:none!important}
 body #cum-functioneaza.pb-exp .pb-exp__scene,body #cum-functioneaza.pb-exp .pb-exp__layer,body #cum-functioneaza.pb-exp .pb-exp__machine,
 body #cum-functioneaza.pb-exp .pb-exp__steps:after{animation:none!important;transition:none!important;transform:none!important}
}
@media print{
 body #cum-functioneaza.pb-exp{background:#101620!important;print-color-adjust:exact}
 body #cum-functioneaza.pb-exp .pb-exp__scene,body #cum-functioneaza.pb-exp .pb-exp__aura,body #cum-functioneaza.pb-exp .pb-exp__dust{display:none}
}

/* Job 22: main.css already reserves header-h + 16px for fragment navigation.
   Cancel only the extra 15px (keep the header border); include the WP toolbar.
   Applies before JS enhancement too, for incoming and repeated fragment links. */
body #cum-functioneaza {
  scroll-margin-top: calc(-15px + var(--wp-admin--admin-bar--height, 0px)) !important;
  padding-top: 20px;
}
body #cum-functioneaza.pb-exp { padding-top: 20px; }
