/* SiteLift mintaoldal-effektek (ELŐNÉZET): közös stílusok. Az osztályokat a sl-fx.js adja hozzá; mozgás csak html.slfx-on alatt.
   Színek: --slfx-accent (kiemelő), --slfx-shine (fényvillanás színe) a minta palettájából. */
:root { --slfx-accent: #fff; --slfx-shine: rgba(255, 255, 255, .35); }

/* beúszás */
.slfx-on .slfx-r { opacity: 0; transform: translate3d(var(--slfx-x, 0), var(--slfx-y, 22px), 0); transition: opacity var(--slfx-t, 700ms) cubic-bezier(.16, 1, .3, 1) var(--slfx-d, 0ms), transform var(--slfx-t, 700ms) cubic-bezier(.16, 1, .3, 1) var(--slfx-d, 0ms); will-change: opacity, transform; }
.slfx-on .slfx-r.slfx-in { opacity: 1; transform: none; will-change: auto; }

/* kártyadöntés */
.slfx-on .slfx-tilt { transform: perspective(900px) rotateX(var(--slfx-rx, 0deg)) rotateY(var(--slfx-ry, 0deg)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.slfx-on .slfx-tilt.slfx-tilting { transition: transform .08s linear; }
.slfx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--slfx-mx, 50%) var(--slfx-my, 50%), var(--slfx-shine), transparent 62%); mix-blend-mode: soft-light; z-index: 2; }
.slfx-tilting > .slfx-glare { opacity: 1; }

/* egérkövető fény */
.slfx-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 0; background: radial-gradient(var(--slfx-glow-size, 520px) circle at var(--slfx-gx, 50%) var(--slfx-gy, 50%), var(--slfx-glow, rgba(255, 255, 255, .10)), transparent 60%); }

/* mágneses gomb */
.slfx-on .slfx-magnet { transform: translate3d(var(--slfx-tx, 0), var(--slfx-ty, 0), 0); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }

/* fényvillanás: egy átlós csík fut át az elemen */
.slfx-shiny { overflow: hidden; }
.slfx-shine { position: absolute; inset: -20% auto -20% -60%; width: 45%; pointer-events: none; transform: skewX(-18deg) translateX(0); background: linear-gradient(90deg, transparent, var(--slfx-shine), transparent); opacity: 0; z-index: 3; }
.slfx-on .slfx-shining > .slfx-shine { animation: slfx-sweep 1.15s cubic-bezier(.4, 0, .2, 1) 1 both; }
@keyframes slfx-sweep { 0% { transform: skewX(-18deg) translateX(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: skewX(-18deg) translateX(520%); opacity: 0; } }

/* görgetés-idővonal: parallax és haladássáv (csak ahol támogatott; máshol egyszerűen nem mozdul) */
@supports (animation-timeline: view()) {
  .slfx-on .slfx-par { animation: slfx-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes slfx-par { from { transform: translate3d(0, var(--slfx-par, 36px), 0); } to { transform: translate3d(0, calc(var(--slfx-par, 36px) * -1), 0); } }
}
.slfx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--slfx-accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 9998; pointer-events: none; opacity: .9; }
@supports (animation-timeline: scroll()) {
  .slfx-on .slfx-progress { animation: slfx-prog linear both; animation-timeline: scroll(root); }
  @keyframes slfx-prog { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .slfx-progress { display: none; } }

/* foglalási lépés átúszása */
.slfx-on .slfx-step-in { animation: slfx-step .55s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes slfx-step { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* csökkentett mozgás: semmi nem mozdul, minden azonnal látszik */
@media (prefers-reduced-motion: reduce) {
  .slfx-r, .slfx-tilt, .slfx-magnet, .slfx-par, .slfx-shine, .slfx-progress, .slfx-step-in { animation: none !important; transition: none !important; opacity: 1; transform: none !important; }
  .slfx-shine, .slfx-glare, .slfx-glow, .slfx-progress { display: none !important; }
}
