/* ===== Strona usługi premium (kurs indywidualny) ===== */

/* --- Hero: tło z ruchomą poświatą --- */
.service-page--premium .service-hero { isolation:isolate; }
/* Tło hero: stałe (bez animowanej poświaty). */

/* Nagłówek: słowa wjeżdżają po kolei (JS dzieli tekst na .pr-w) */
.pr-w { display:inline-block; opacity:0; transform:translateY(.55em) rotate(2deg); filter:blur(6px);
  animation:pr-word .8s cubic-bezier(.2,.75,.2,1) forwards; animation-delay:calc(var(--i) * 55ms + 120ms); }
@keyframes pr-word { to { opacity:1; transform:none; filter:none; } }
.service-page--premium .service-hero h1 { text-wrap:balance; }
.service-page--premium .service-hero h1 .pr-accent { background:linear-gradient(90deg,#8fc4ee,#6fd3a0 60%,#8fc4ee); -webkit-background-clip:text; background-clip:text; color:transparent; background-size:200% 100%; animation:pr-word .8s cubic-bezier(.2,.75,.2,1) forwards, pr-shine 6s linear 1.4s infinite; }
@keyframes pr-shine { to { background-position:-200% 0; } }

/* Fakty jako „chipy” */
.pr-facts { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; }
.pr-fact { padding:10px 14px; border-radius:16px; background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.pr-fact dt { color:rgba(245,241,232,.55); font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.pr-fact dd { margin:2px 0 0; color:#fff; font-weight:800; font-size:.98rem; }

/* --- Mapa z trasą --- */
.pr-scene-wrap { position:relative; }
.pr-scene { position:relative; aspect-ratio:1; border-radius:32px; overflow:hidden;
  background:linear-gradient(155deg,rgba(255,255,255,.09),rgba(255,255,255,.02));
  box-shadow:inset 0 0 0 1px rgba(143,196,238,.22),0 40px 90px -40px rgba(0,0,0,.9);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  animation:pr-float 7s ease-in-out infinite; }
@keyframes pr-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
.pr-scene__svg { display:block; width:100%; height:100%; }
.pr-scene__road { fill:none; stroke:#1a2742; stroke-width:34; stroke-linecap:round; }
.pr-scene__lane { fill:none; stroke:rgba(245,241,232,.45); stroke-width:1.6; stroke-dasharray:7 10; stroke-linecap:round; animation:pr-lane 1.6s linear infinite; }
@keyframes pr-lane { to { stroke-dashoffset:-34; } }
.pr-scene__trail { fill:none; stroke:url(#prGlow); stroke-width:4; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; filter:drop-shadow(0 0 6px rgba(111,211,160,.6)); animation:pr-draw 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes pr-draw { 0% { stroke-dashoffset:1; opacity:1; } 48% { stroke-dashoffset:0; opacity:1; } 62% { stroke-dashoffset:0; opacity:0; } 100% { stroke-dashoffset:1; opacity:0; } }
.pr-scene__pulse { fill:none; stroke:#6fd3a0; stroke-width:2; transform-box:fill-box; transform-origin:center; animation:pr-pulse 2.6s ease-out infinite; }
.pr-scene__pulse--late { animation-delay:1.3s; }
@keyframes pr-pulse { from { transform:scale(1); opacity:.9; } to { transform:scale(3.4); opacity:0; } }
.pr-scene__car { filter:drop-shadow(0 4px 6px rgba(0,0,0,.55)); }

/* --- Karty z ikonami i świecącą ramką --- */
.pr-card { position:relative; isolation:isolate; transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.pr-card::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; padding:1.5px;
  background:conic-gradient(from var(--pr-a,0deg), transparent 0 60%, #5aa9e6 75%, #6fd3a0 85%, transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .4s ease; }
.pr-card:hover::before { opacity:1; animation:pr-spin 3s linear infinite; }
@property --pr-a { syntax:'<angle>'; inherits:false; initial-value:0deg; }
@keyframes pr-spin { to { --pr-a:360deg; } }
.pr-card-icon { display:grid; place-items:center; width:56px; height:56px; border-radius:18px; color:#fff;
  background:linear-gradient(145deg,#3980be,#1f4f7a); box-shadow:0 14px 28px -14px rgba(57,128,190,.9); transition:transform .45s cubic-bezier(.34,1.56,.64,1); }
.pr-card-icon svg { width:28px; height:28px; }
.pr-card:hover .pr-card-icon { transform:rotate(-8deg) scale(1.08); }

/* --- Kroki jako trasa --- */
.pr-route { position:relative; margin-top:44px; padding-left:76px; --pr-p:0; }
.pr-route__road { position:absolute; left:20px; top:8px; bottom:8px; width:28px; border-radius:14px; background:#1a2742; box-shadow:inset 0 0 0 1px rgba(143,196,238,.12); }
.pr-route__road::before { content:""; position:absolute; left:50%; top:10px; bottom:10px; width:2px; margin-left:-1px;
  background:repeating-linear-gradient(to bottom, rgba(245,241,232,.4) 0 8px, transparent 8px 18px); }
.pr-route__fill { position:absolute; left:50%; top:10px; width:4px; margin-left:-2px; height:calc((100% - 20px) * var(--pr-p)); border-radius:2px;
  background:linear-gradient(#6fd3a0,#5aa9e6); box-shadow:0 0 12px rgba(111,211,160,.7); }
.pr-route__car { position:absolute; left:50%; top:0; width:18px; height:30px; margin-left:-9px;
  transform:translateY(calc((var(--pr-h,0px) - 30px) * var(--pr-p))); filter:drop-shadow(0 6px 8px rgba(0,0,0,.6)); will-change:transform; }
.pr-route__car svg { display:block; width:100%; height:100%; }
.pr-route__steps { display:grid; gap:18px; margin:0; padding:0; list-style:none; }
.pr-step { position:relative; padding:24px 26px; border-radius:24px; background:rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
  opacity:.45; transform:translateX(14px); transition:opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), background-color .5s ease, box-shadow .5s ease; }
.pr-step.is-on { opacity:1; transform:none; background:rgba(90,169,230,.09); box-shadow:inset 0 0 0 1px rgba(143,196,238,.3), 0 24px 50px -34px rgba(90,169,230,.7); }
.pr-step__node { position:absolute; left:-72px; top:22px; display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
  background:#0a0f1f; color:rgba(245,241,232,.6); font:800 1rem/1 "Space Grotesk",system-ui,sans-serif; box-shadow:0 0 0 2px rgba(143,196,238,.25); transition:all .5s cubic-bezier(.34,1.56,.64,1); z-index:2; }
.pr-step.is-on .pr-step__node { background:#6fd3a0; color:#0a0f1f; box-shadow:0 0 0 6px rgba(111,211,160,.18), 0 0 24px rgba(111,211,160,.6); transform:scale(1.08); }
@media (max-width:640px) {
  .pr-route { padding-left:58px; }
  .pr-route__road { left:12px; width:24px; }
  .pr-step { padding:20px 18px; transform:none; }
  .pr-step__node { left:-58px; width:36px; height:36px; }
}

/* --- Ograniczony ruch: bez animacji, wszystko widoczne --- */
@media (prefers-reduced-motion:reduce) {
  .pr-scene, .pr-scene__lane, .pr-scene__pulse, .pr-scene__labels g, .pr-card:hover::before { animation:none; }
  .pr-scene__trail { animation:none; stroke-dashoffset:0; }
  .pr-w, .service-page--premium .service-hero h1 .pr-accent { animation:none; opacity:1; transform:none; filter:none; }
  .pr-step { opacity:1; transform:none; transition:none; }
  .pr-card, .pr-card-icon { transition:none; }
}

/* --- Jasny motyw: hero zostaje ciemny (jak w szablonie), reszta OK --- */
html[data-theme="light"] .pr-step__node, :root:not([data-theme]) .pr-step__node { background:#0a0f1f; }

/* Odstęp przycisków od leadu w hero */
.service-page--premium .service-hero h1 + p + div { margin-top:2.25rem; }
