/* esteticlab — quizy w stylu strony (v0.9): jasny premium + ruch i 3D.
   Działa na wszystkich trzech quizach (/quiz/, /zgloszenie/, /depilacja/). Selektory z html.qfx mają pierwszeństwo przed stylami quizu. */
html.qfx, html.qfx body { background: #FCFBFA; }
html.qfx #elq {
  --ivory: #FCFBFA; --cream: #F4F0EC; --sand: #EBE3DC; --line: rgba(23,17,15,.12);
  --bronze: #17110F; --bronze-deep: #7A1E2C; --bronze-light: rgba(122,30,44,.35);
  --bronze-grad: linear-gradient(90deg, #7A1E2C, #C0566A);
  --brown: #17110F; --brown-soft: #4A4341; --muted: #8A817D; --success: #17110F; --success-soft: #F6E9E7;
  --rose: #B9706F; --rose-soft: #F6E9E7; --rose-line: #EBCFCC;
  --font: 'Jakarta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; --display: var(--font);
  --r-md: 16px; --r-lg: 22px; --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(23,17,15,.04), 0 6px 18px rgba(23,17,15,.05);
  --shadow-md: 0 2px 4px rgba(23,17,15,.04), 0 18px 44px rgba(23,17,15,.10);
  --qe: cubic-bezier(.22,.8,.2,1);
  background: transparent; text-transform: none; letter-spacing: -.005em; position: relative; isolation: isolate;
}
html.qfx #elq * { letter-spacing: normal !important; }
html.qfx #elq :is(.elq-step, .elq-badge, .elq-hero__tag, .elq-price__tag, .elq-video__chip, .elq-ba__chip, .elq-video__time) { text-transform: uppercase; letter-spacing: .08em !important; }

/* tło: miękkie plamy koloru, powoli płynące */
.qfx-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.qfx-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.qfx-bg i:nth-child(1) { width: 60vmax; height: 60vmax; right: -20vmax; top: -24vmax; background: radial-gradient(circle, #F2D6D6, rgba(242,214,214,0) 70%); animation: qfxBlob 18s ease-in-out infinite alternate; }
.qfx-bg i:nth-child(2) { width: 50vmax; height: 50vmax; left: -22vmax; top: 30vh; background: radial-gradient(circle, #EDE3DA, rgba(237,227,218,0) 70%); animation: qfxBlob 24s ease-in-out infinite alternate-reverse; }
.qfx-bg i:nth-child(3) { width: 34vmax; height: 34vmax; right: 10vw; bottom: -18vmax; background: radial-gradient(circle, rgba(192,86,106,.18), rgba(192,86,106,0) 70%); animation: qfxBlob 30s ease-in-out infinite alternate; }
@keyframes qfxBlob { to { transform: translate3d(-8vw, 6vh, 0) scale(1.15); } }

/* typografia */
html.qfx #elq :is(.elq-h1, .elq-h2) { font-weight: 650; letter-spacing: -.03em !important; line-height: 1.1; text-wrap: balance; text-transform: none; }
html.qfx #elq .elq-h1 { font-size: clamp(30px, 7.4vw, 50px); }
html.qfx #elq .elq-h2 { font-size: clamp(24px, 5.8vw, 38px); }
html.qfx #elq :is(.elq-h1, .elq-h2) em { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-style: italic; font-weight: 400; text-decoration: none; color: #7A1E2C; font-size: 1.07em; letter-spacing: -.01em !important; }
html.qfx #elq .elq-sub { text-transform: none; font-size: 16.5px; line-height: 1.55; color: #4A4341; }
html.qfx #elq :is(.elq-opt__t, .elq-prob__t) { font-weight: 650; text-transform: none; font-size: 15.5px; }
html.qfx #elq :is(.elq-opt__s, .elq-prob__s) { text-transform: none; font-size: 13.5px; color: #6B6360; }

/* pasek górny i postęp */
html.qfx #elq .elq-top { background: rgba(252,251,250,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(23,17,15,.06); }
html.qfx #elq .elq-progress { height: 5px; border-radius: 99px; background: rgba(23,17,15,.07); overflow: visible; }
html.qfx #elq .elq-progress i { position: relative; border-radius: 99px; background: linear-gradient(90deg, #7A1E2C, #C0566A); box-shadow: 0 0 14px rgba(192,86,106,.55); transition: width .8s var(--qe); }
html.qfx #elq .elq-progress i::after { content: ''; position: absolute; right: -4px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #C0566A, 0 0 16px rgba(192,86,106,.8); }
html.qfx #elq .elq-back { background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(23,17,15,.10), inset 0 0 0 1px rgba(23,17,15,.06); border: 0; }

/* opcje */
html.qfx #elq .elq-opt { border: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(23,17,15,.1), 0 1px 2px rgba(23,17,15,.04); background: rgba(255,255,255,.86); overflow: hidden; isolation: isolate; transition: box-shadow .3s, background .3s, transform .5s var(--qe); }
html.qfx #elq .elq-opt:hover { box-shadow: inset 0 0 0 1px rgba(23,17,15,.16), 0 18px 40px rgba(23,17,15,.09); }
html.qfx #elq .elq-opt.is-selected { background: #FBF3F2; box-shadow: inset 0 0 0 2px #7A1E2C, 0 14px 34px rgba(122,30,44,.16); }
html.qfx #elq .elq-opt__mark { border-radius: 50%; }
html.qfx #elq .elq-opt.is-selected .elq-opt__mark { background: #7A1E2C; border-color: #7A1E2C; }
html.qfx #elq .elq-prob { border: 0; border-radius: 24px; box-shadow: 0 1px 2px rgba(23,17,15,.05), 0 14px 34px rgba(23,17,15,.08); }
html.qfx #elq .elq-prob__img { border-radius: 18px; margin: 8px 8px 0; width: calc(100% - 16px); flex: none; }

/* przyciski */
html.qfx #elq :is(.elq-btn, .elq-cta, .elq-wabtn) { border-radius: 999px; text-transform: none; font-weight: 650; position: relative; overflow: hidden; isolation: isolate; }
html.qfx #elq :is(.elq-btn, .elq-cta):not(.elq-wabtn) { background: #17110F; color: #fff; box-shadow: 0 10px 28px rgba(23,17,15,.22); }
html.qfx #elq :is(.elq-btn, .elq-cta, .elq-wabtn)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: qfxSheen 3.6s var(--qe) infinite 1.5s; }
@keyframes qfxSheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
html.qfx #elq :is(.elq-cta__t, .elq-cta__s) { text-transform: none; }
html.qfx #elq input, html.qfx #elq .elq-phone { border-radius: 16px; }
html.qfx #elq input:focus { box-shadow: 0 0 0 4px rgba(122,30,44,.12); border-color: #7A1E2C; }

/* hero quizów modelki / depilacja */
html.qfx #elq .elq-hero__photo { border-radius: 30px; box-shadow: 0 30px 70px rgba(23,17,15,.18); transform-style: preserve-3d; }
html.qfx #elq .elq-ig__ring { background: conic-gradient(from 180deg, #7A1E2C, #E7A6B0, #F6E9E7, #7A1E2C); animation: qfxSpin 8s linear infinite; }
html.qfx #elq .elq-ig__ring > * { animation: qfxSpin 8s linear infinite reverse; }
@keyframes qfxSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { html.qfx #elq .elq-choice2 { background: rgba(252,251,250,.82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-top: 0; box-shadow: 0 -10px 30px rgba(23,17,15,.08); } }

/* ══════════ RUCH (wyłączony przy „ogranicz ruch”) ══════════ */
/* przejście między ekranami: nowy ekran nadlatuje z głębi */
/* bez „perspective” na #elq – psułaby przypięty przycisk na dole ekranu (position: fixed) */
html.qfx-ruch #elq .elq-screen.is-active { animation: qfxIn .8s var(--qe) both; transform-origin: 50% 0; }
/* ekran startowy ma przycisk przyklejony do dołu (position: fixed), więc tu tylko rozjaśnienie bez transformacji */
html.qfx-ruch #elq .elq-screen[data-screen="hero"].is-active { animation: qfxFade .7s ease both; }
html.qfx-ruch #elq .elq-screen[data-screen="hero"].qfx-out { animation: qfxFadeOut .3s ease forwards !important; }
@keyframes qfxFadeOut { to { opacity: 0; } }
@keyframes qfxFade { from { opacity: 0; } }
@keyframes qfxIn { from { opacity: 0; transform: perspective(1600px) translate3d(0, 46px, -160px) rotateX(9deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
html.qfx-ruch #elq .elq-screen.qfx-out { animation: qfxOut .34s cubic-bezier(.4,0,1,1) forwards !important; pointer-events: none; }
@keyframes qfxOut { to { opacity: 0; transform: perspective(1600px) translate3d(0, -26px, -140px) rotateX(-6deg); filter: blur(6px); } }
/* elementy ekranu wchodzą po kolei */
html.qfx-ruch #elq .elq-screen.is-active .qfx-st { animation: qfxUp .8s var(--qe) backwards; animation-delay: calc(.18s + var(--qi, 0) * 60ms); }
@keyframes qfxUp { from { opacity: 0; transform: translateY(26px) scale(.98); } }
/* nagłówki słowo po słowie */
html.qfx-ruch #elq .qfx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
html.qfx-ruch #elq .qfx-w > span { display: inline-block; }
html.qfx-ruch #elq .elq-screen.is-active .qfx-w > span { animation: qfxWord .95s var(--qe) backwards; animation-delay: calc(.1s + var(--wi, 0) * 50ms); }
@keyframes qfxWord { from { transform: translateY(110%) rotate(5deg); } }
/* opcje: pochylenie 3D za kursorem, odblask, fala po dotknięciu */
html.qfx-ruch #elq .elq-opt:not(.elq-prob) { transform: perspective(800px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)) translateZ(0); }
html.qfx-ruch #elq .elq-opt::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), transparent 60%); mix-blend-mode: soft-light; }
html.qfx-ruch #elq .elq-opt:hover::after { opacity: 1; }
.qfx-rip { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: rgba(122,30,44,.18); transform: scale(0); animation: qfxRip .7s var(--qe) forwards; }
@keyframes qfxRip { to { transform: scale(40); opacity: 0; } }
html.qfx-ruch #elq .elq-opt.is-selected { animation: qfxPick .5s var(--qe); }
@keyframes qfxPick { 40% { transform: perspective(800px) scale(.97); } 70% { transform: perspective(800px) scale(1.015); } }
html.qfx-ruch #elq .elq-opt.is-selected .elq-opt__mark svg { animation: qfxCheck .45s var(--qe); }
@keyframes qfxCheck { from { transform: scale(0) rotate(-30deg); } }
/* zdjęcie w hero: pochylenie i połysk */
html.qfx-ruch #elq .qfx-tilt { transform: perspective(1200px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .25s var(--qe); }
html.qfx-ruch #elq .elq-hero__photo::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); animation: qfxShine 5s var(--qe) infinite 1s; }
@keyframes qfxShine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* ══════════ KARUZELA 3D ZABIEGÓW (quiz /quiz/, pierwszy ekran) ══════════ */
.qfx-ring-box { position: relative; margin: 10px calc(50% - 50vw) 0; padding: 0 0 6px; }
.qfx-ring img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.qfx-ring { position: relative; height: var(--rh, 420px); perspective: 1100px; perspective-origin: 50% 35%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.qfx-ring.is-drag { cursor: grabbing; }
.qfx-ring::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: min(560px, 90vw); height: 40px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(23,17,15,.16), transparent); filter: blur(4px); pointer-events: none; }
html.qfx #elq .qfx-ring .elq-prob { position: absolute; left: 50%; top: 14px; width: var(--cw, 280px); margin-left: calc(var(--cw, 280px) / -2); will-change: transform, opacity, filter; transition: box-shadow .4s; }
html.qfx #elq .qfx-ring .elq-prob .elq-prob__b { padding: 14px 16px 18px; }
html.qfx #elq .qfx-ring .elq-prob .elq-prob__t { font-size: 17px; }
html.qfx #elq .qfx-ring .elq-prob .elq-prob__s { font-size: 13.5px; }
html.qfx #elq .qfx-ring .elq-prob { background: #fff; isolation: auto; }
html.qfx #elq .qfx-ring .elq-prob.qfx-front { animation: qfxGlow 3.2s ease-in-out infinite; }
@keyframes qfxGlow { 0%, 100% { box-shadow: 0 2px 4px rgba(23,17,15,.05), 0 34px 70px rgba(23,17,15,.20), 0 0 0 1.5px rgba(122,30,44,.22), 0 0 0 0 rgba(192,86,106,0); } 50% { box-shadow: 0 2px 4px rgba(23,17,15,.05), 0 34px 70px rgba(23,17,15,.24), 0 0 0 1.5px rgba(122,30,44,.4), 0 0 34px 6px rgba(192,86,106,.28); } }
.qfx-ring__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.qfx-ring__nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 22px rgba(23,17,15,.10), inset 0 0 0 1px rgba(23,17,15,.06); color: #17110F; transition: transform .25s var(--qe), box-shadow .25s; }
.qfx-ring__nav button:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(23,17,15,.14), inset 0 0 0 1px rgba(23,17,15,.1); }
.qfx-ring__nav button svg { width: 20px; height: 20px; }
.qfx-ring__dots { display: flex; gap: 6px; }
.qfx-ring__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(23,17,15,.16); transition: width .4s var(--qe), background .3s; cursor: pointer; }
.qfx-ring__dots i.is-on { width: 26px; background: #7A1E2C; }
.qfx-pick { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(440px, calc(100% - 36px)); margin: 18px auto 0; min-height: 58px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer; background: #17110F; color: #fff; font: 650 16px/1.2 'Jakarta', 'Plus Jakarta Sans', -apple-system, sans-serif; box-shadow: 0 14px 34px rgba(23,17,15,.25); position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--qe), background .25s; }
.qfx-pick:hover { background: #7A1E2C; transform: translateY(-1px); }
.qfx-pick:active { transform: scale(.98); }
.qfx-pick b { font-weight: 650; }
.qfx-pick span.t { display: inline-block; transition: opacity .2s, transform .3s var(--qe); }
.qfx-pick.is-swap span.t { opacity: 0; transform: translateY(8px); }
.qfx-pick::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-120%); animation: qfxSheen 3.6s var(--qe) infinite 1.2s; }
.qfx-ring__hint { text-align: center; font: 500 13px 'Jakarta', sans-serif; color: #8A817D; margin: 10px 0 0; }
@media (max-width: 760px) { .qfx-ring { perspective: 900px; } }

/* konfetti na ekranie końcowym */
.qfx-confetti { position: fixed; inset: 0; z-index: 5000; pointer-events: none; }

/* stabilność na telefonie (v0.13): bez przesuwania w bok i powiększania po dwukrotnym dotknięciu */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html { touch-action: manipulation; }
