/* ============================================================
   STRONA TRENERA (kreator z widgetami)
   Motyw ustawia --sp-bg / --sp-surface / --sp-ink / --sp-accent / --sp-on-accent
   na elemencie .sp; reszta kolorów wynika z nich.
   ============================================================ */
.sp {
    --sp-muted: color-mix(in srgb, var(--sp-ink) 62%, var(--sp-bg));
    --sp-line: color-mix(in srgb, var(--sp-ink) 12%, transparent);
    --sp-tint: color-mix(in srgb, var(--sp-accent) 7%, var(--sp-bg));
    --sp-accent-soft: color-mix(in srgb, var(--sp-accent) 14%, transparent);
    --sp-radius: 22px;
    --sp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --sp-display: var(--sp-font);
    --sp-h-weight: 800;
    --sp-h-transform: none;
    --sp-h-spacing: -0.02em;
    background: var(--sp-bg); color: var(--sp-ink); font-family: var(--sp-font);
    min-height: 100vh; overflow-x: clip; line-height: 1.55;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
/* Globalne style aplikacji (kolor nagłówków, linków, akapitów) nie mogą przebijać motywu strony. */
.sp :where(h1, h2, h3, h4, p, blockquote, figcaption, li) { color: inherit; }
.sp p { margin-top: 0; }
.sp-theme-premium { --sp-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sp-h-weight: 600; --sp-h-spacing: -0.01em; --sp-radius: 6px; }
.sp-theme-sport { --sp-h-transform: uppercase; --sp-h-spacing: 0.01em; --sp-h-weight: 900; --sp-radius: 10px; }
.sp-theme-natura { --sp-radius: 28px; }
.sp-theme-ocean { --sp-radius: 20px; }
.sp-theme-roz { --sp-radius: 30px; --sp-h-weight: 700; }
.sp-theme-minimal { --sp-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sp-h-weight: 500; --sp-h-spacing: -0.015em; --sp-radius: 2px; }
.sp-theme-ring { --sp-h-transform: uppercase; --sp-h-spacing: 0.02em; --sp-h-weight: 900; --sp-radius: 4px; }
.sp-theme-noc { --sp-radius: 18px; }
.sp-theme-trasa { --sp-radius: 16px; --sp-h-weight: 800; --sp-h-spacing: -0.02em; }
.sp-theme-stal { --sp-h-transform: uppercase; --sp-h-spacing: 0.015em; --sp-h-weight: 900; --sp-radius: 6px; }
.sp-theme-brzoskwinia { --sp-radius: 28px; --sp-h-weight: 700; }
.sp-theme-boisko { --sp-radius: 22px; --sp-h-weight: 800; }
.sp-theme-beton { --sp-h-transform: uppercase; --sp-h-spacing: 0.02em; --sp-h-weight: 900; --sp-radius: 0px; }
.sp-theme-oliwka { --sp-radius: 20px; --sp-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sp-h-weight: 600; }

.sp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sp-narrow { max-width: 820px; }
.sp-center { text-align: center; }
.sp-anchor { display: block; height: 0; scroll-margin-top: 70px; }

/* ---------- Przyciski ---------- */
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
    padding: .7rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.sp-theme-premium .sp-btn, .sp-theme-sport .sp-btn, .sp-theme-minimal .sp-btn, .sp-theme-ring .sp-btn,
.sp-theme-stal .sp-btn, .sp-theme-beton .sp-btn { border-radius: var(--sp-radius); }
.sp-btn:active { transform: scale(.97); }
.sp-btn:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.sp-btn-primary { background: var(--sp-accent); color: var(--sp-on-accent); box-shadow: 0 12px 30px -14px var(--sp-accent); }
.sp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px var(--sp-accent); color: var(--sp-on-accent); }
.sp-btn-ghost { background: transparent; color: var(--sp-ink); border-color: var(--sp-line); }
.sp-btn-ghost:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.sp-btn-invert { background: var(--sp-on-accent); color: var(--sp-accent); }
.sp-btn-invert:hover { transform: translateY(-2px); color: var(--sp-accent); }
.sp-btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.sp-btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.sp-btn-block { width: 100%; }
.sp-pulse { position: relative; }
.sp-anim .sp-pulse::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--sp-accent);
    animation: spPulse 2.4s ease-out infinite; pointer-events: none;
}
.sp-btn-invert.sp-pulse::after { border-color: var(--sp-on-accent); }
@keyframes spPulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18, 1.35); } }

/* ---------- Górny pasek ---------- */
.sp-top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    background: color-mix(in srgb, var(--sp-bg) 78%, transparent); border-bottom: 1px solid var(--sp-line); }
.sp-top-in { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.sp-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; color: var(--sp-ink); text-decoration: none; min-width: 0; }
.sp-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-brand img { height: 38px; width: auto; max-width: 140px; object-fit: contain; }
.sp-brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--sp-accent); color: var(--sp-on-accent); font-size: .9rem; letter-spacing: .02em; }
.sp-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.sp-nav a { color: var(--sp-muted); text-decoration: none; font-weight: 600; font-size: .93rem; position: relative; }
.sp-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sp-accent); transform: scaleX(0); transition: transform .25s ease; }
.sp-nav a:hover { color: var(--sp-ink); }
.sp-nav a:hover::after { transform: scaleX(1); }
.sp-top-cta { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; flex-shrink: 0; }
.sp-login { gap: .4rem; }
.sp-login-ico { flex-shrink: 0; display: none; }
.sp-cta-short { display: none; }

/* ---------- Sekcje i tła ---------- */
.sp-sec { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.sp-bg-tint { background: var(--sp-tint); }
.sp-bg-dark { background: #0b0f17; color: #eef2f7; --sp-ink: #eef2f7; --sp-bg: #0b0f17; --sp-surface: #141b28; }
.sp-bg-accent { background: var(--sp-accent); color: var(--sp-on-accent); --sp-ink: var(--sp-on-accent); --sp-surface: color-mix(in srgb, var(--sp-on-accent) 10%, var(--sp-accent)); }
.sp-bg-image { background: linear-gradient(rgba(8, 11, 18, .72), rgba(8, 11, 18, .72)), var(--sp-sec-img) center / cover; color: #fff; --sp-ink: #fff; --sp-surface: rgba(255,255,255,.08); }
.sp-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 5vw, 52px); }
.sp-head-left { text-align: left; margin-left: 0; }
.sp-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem;
    background: var(--sp-accent-soft); color: var(--sp-accent); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-dark .sp-eyebrow, .sp-on-dark .sp-eyebrow { color: var(--sp-accent); }
.sp-h1, .sp-h2, .sp h3, .sp-cta h2 { font-family: var(--sp-display); font-weight: var(--sp-h-weight); text-transform: var(--sp-h-transform); letter-spacing: var(--sp-h-spacing); text-wrap: balance; }
.sp-h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.02; margin: 0 0 1.2rem; }
.sp-h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 .8rem; }
.sp-lead { color: var(--sp-muted); font-size: clamp(1.02rem, 2vw, 1.18rem); margin: 0 auto; max-width: 62ch; }
.sp-text { font-size: 1.06rem; color: var(--sp-muted); }

/* ---------- Pojawianie się przy przewijaniu (klasy z welcome.js) ---------- */
.sp-anim .wp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.sp-anim .wp-reveal.wp-revealed { opacity: 1; transform: none; }
.sp-anim .wp-reveal .sp-stagger { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.sp-anim .wp-reveal.wp-revealed .sp-stagger { opacity: 1; transform: none; }
.sp-anim .sp-rise { opacity: 0; transform: translateY(24px); animation: spRise .9s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes spRise { to { opacity: 1; transform: none; } }

/* ---------- HERO ---------- */
.sp-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 110px); isolation: isolate; }
.sp-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.sp-hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--sp-muted); margin: 0 0 2rem; max-width: 56ch; }
.sp-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.sp-hero-proof { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; color: var(--sp-muted); font-size: .95rem; }
.sp-stars-mini { color: #f5b301; letter-spacing: .1em; }
.sp-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sp-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.sp-blobs span:nth-child(1) { width: 520px; height: 520px; background: var(--sp-accent); top: -180px; right: -120px; opacity: .28; }
.sp-blobs span:nth-child(2) { width: 380px; height: 380px; background: color-mix(in srgb, var(--sp-accent) 55%, #8b5cf6); bottom: -160px; left: -120px; opacity: .2; }
.sp-blobs span:nth-child(3) { width: 260px; height: 260px; background: color-mix(in srgb, var(--sp-accent) 40%, #22d3ee); top: 30%; left: 45%; opacity: .14; }
.sp-anim .sp-blobs span { animation: spBlob 18s ease-in-out infinite alternate; }
.sp-anim .sp-blobs span:nth-child(2) { animation-duration: 22s; animation-direction: alternate-reverse; }
.sp-anim .sp-blobs span:nth-child(3) { animation-duration: 26s; }
@keyframes spBlob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } 100% { transform: translate(30px, -20px) scale(.95); } }

.sp-hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.sp-hero-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 560px; border-radius: calc(var(--sp-radius) * 1.6); background: center / cover no-repeat;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.sp-anim .sp-hero-photo { animation: spRise 1s .25s cubic-bezier(.22, 1, .36, 1) both; }
.sp-float {
    position: absolute; display: flex; align-items: center; gap: .65rem; padding: .7rem .95rem; border-radius: 16px;
    background: color-mix(in srgb, var(--sp-surface) 92%, transparent); color: var(--sp-ink); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); border: 1px solid var(--sp-line); font-size: .9rem;
}
.sp-float i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--sp-accent); color: var(--sp-on-accent); flex-shrink: 0; }
.sp-float b { display: block; line-height: 1.1; }
.sp-float small { color: var(--sp-muted); }
.sp-float-0 { left: -28px; bottom: 6%; }
.sp-float-1 { right: -20px; top: 4%; }
.sp-hero-split .sp-h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.sp-anim .sp-float-0 { animation: spBob 5s ease-in-out infinite; }
.sp-anim .sp-float-1 { animation: spBob 6s ease-in-out -2s infinite; }
@keyframes spBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.sp-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.sp-float-inline { position: static; }
.sp-hero-full .sp-hero-badges { justify-content: flex-start; }

/* Makieta aplikacji zamiast zdjęcia */
.sp-mock { width: min(340px, 100%); padding: 1.2rem; border-radius: 28px; background: var(--sp-surface); border: 1px solid var(--sp-line);
    box-shadow: 0 50px 90px -45px rgba(0, 0, 0, .6); display: grid; gap: 1rem; transform: rotate(-2deg); }
.sp-anim .sp-mock { animation: spMockIn 1.1s .2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes spMockIn { from { opacity: 0; transform: translateY(40px) rotate(-6deg); } to { opacity: 1; transform: rotate(-2deg); } }
.sp-mock-head { display: flex; align-items: center; gap: .7rem; }
.sp-mock-head b { display: block; font-size: .95rem; }
.sp-mock-head small { color: var(--sp-muted); }
.sp-mock-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--sp-accent); color: var(--sp-on-accent); font-weight: 800; }
.sp-mock-ring { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.sp-mock-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sp-mock-ring path { fill: none; stroke: var(--sp-line); stroke-width: 3.4; }
.sp-mock-ring path.fg { stroke: var(--sp-accent); stroke-linecap: round; stroke-dasharray: 70 100; }
.sp-anim .sp-mock-ring path.fg { animation: spRing 1.6s .6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes spRing { from { stroke-dasharray: 0 100; } }
.sp-mock-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 1.4rem; }
.sp-mock-ring small { display: block; font-size: .7rem; color: var(--sp-muted); font-weight: 600; }
.sp-mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.sp-mock-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--sp-accent), color-mix(in srgb, var(--sp-accent) 45%, transparent)); transform-origin: bottom; }
.sp-anim .sp-mock-chart i { animation: spBar 1s cubic-bezier(.22, 1, .36, 1) both; }
.sp-mock-chart i:nth-child(2) { animation-delay: .8s; } .sp-mock-chart i:nth-child(3) { animation-delay: .9s; } .sp-mock-chart i:nth-child(4) { animation-delay: 1s; }
.sp-mock-chart i:nth-child(5) { animation-delay: 1.1s; } .sp-mock-chart i:nth-child(6) { animation-delay: 1.2s; } .sp-mock-chart i:nth-child(7) { animation-delay: 1.3s; }
@keyframes spBar { from { transform: scaleY(0); } }
.sp-mock-btn { text-align: center; padding: .75rem; border-radius: 14px; background: var(--sp-accent); color: var(--sp-on-accent); font-weight: 800; }

/* Hero: pełne zdjęcie */
.sp-hero-full { min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center; color: #fff;
    background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--sp-accent) 45%, transparent), transparent 60%), #0b0f17; }
.sp-hero-full[style*="--sp-hero-img"] { background: linear-gradient(90deg, rgba(6, 9, 15, .88) 0%, rgba(6, 9, 15, .55) 55%, rgba(6, 9, 15, .25) 100%), var(--sp-hero-img) center / cover; }
.sp-hero-full .sp-hero-in, .sp-hero-center .sp-hero-in { grid-template-columns: 1fr; }
.sp-hero-full .sp-hero-text { max-width: 760px; }
.sp-hero-full .sp-hero-sub, .sp-hero-full .sp-hero-proof { color: rgba(255, 255, 255, .82); }
.sp-hero-full .sp-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.sp-hero-full .sp-float { color: var(--sp-ink); }
/* Hero: wyśrodkowany */
.sp-hero-center { text-align: center; }
.sp-hero-center .sp-hero-text { max-width: 860px; margin: 0 auto; }
.sp-hero-center .sp-hero-sub { margin-left: auto; margin-right: auto; }
.sp-hero-center .sp-hero-cta, .sp-hero-center .sp-hero-proof { justify-content: center; }
.sp-hero-center .sp-blobs span:nth-child(1) { right: 20%; }

/* ---------- Pasek przewijany ---------- */
.sp-marquee { overflow: hidden; padding: 1.1rem 0; border-block: 1px solid var(--sp-line); }
.sp-marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; font-family: var(--sp-display); font-weight: var(--sp-h-weight);
    text-transform: var(--sp-h-transform); font-size: clamp(1.2rem, 3vw, 1.9rem); letter-spacing: var(--sp-h-spacing); }
.sp-marquee-track i { font-size: .8em; opacity: .6; }
.sp-anim .sp-marquee-track { animation: spMarquee 38s linear infinite; }
.sp-marquee:hover .sp-marquee-track { animation-play-state: paused; }
@keyframes spMarquee { to { transform: translateX(-50%); } }

/* ---------- Liczby ---------- */
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.sp-stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); }
.sp-stat-v { font-family: var(--sp-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1; color: var(--sp-accent); font-variant-numeric: tabular-nums; }
.sp-stat-l { margin-top: .5rem; color: var(--sp-muted); font-weight: 600; }

/* ---------- Korzyści ---------- */
.sp-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sp-benefit { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; border-radius: var(--sp-radius); background: var(--sp-surface);
    border: 1px solid var(--sp-line); transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease; }
.sp-benefit:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--sp-accent) 45%, transparent); box-shadow: 0 30px 50px -34px var(--sp-accent); }
.sp-benefit-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; background: var(--sp-accent-soft); color: var(--sp-accent); transition: transform .3s ease; }
.sp-benefit:hover .sp-benefit-ic { transform: rotate(-8deg) scale(1.08); background: var(--sp-accent); color: var(--sp-on-accent); }
.sp-benefit h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.sp-benefit p { margin: 0; color: var(--sp-muted); }
.sp-benefit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem 2.4rem; max-width: 980px; margin: 0 auto; }
.sp-benefit-list .sp-benefit { flex-direction: row; align-items: flex-start; background: none; border: 0; padding: .4rem 0; }
.sp-benefit-list .sp-benefit:hover { transform: none; box-shadow: none; }

/* ---------- O mnie ---------- */
.sp-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.sp-about-right .sp-about-media { order: 2; }
.sp-about-media { position: relative; }
.sp-about-photo { aspect-ratio: 4 / 5; border-radius: calc(var(--sp-radius) * 1.4); background: center / cover no-repeat; position: relative; z-index: 1; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.sp-about-mono { display: grid; place-items: center; background: linear-gradient(145deg, var(--sp-accent), color-mix(in srgb, var(--sp-accent) 45%, #111827)); color: var(--sp-on-accent); }
.sp-about-mono span { font-family: var(--sp-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; opacity: .9; }
.sp-about-ring { position: absolute; inset: -18px auto auto -18px; width: 60%; height: 60%; border: 2px solid var(--sp-accent); border-radius: calc(var(--sp-radius) * 1.4); opacity: .5; }
.sp-about-right .sp-about-ring { inset: -18px -18px auto auto; }
.sp-about-body p { color: var(--sp-muted); font-size: 1.06rem; }
.sp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.sp-chips span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: var(--sp-surface); border: 1px solid var(--sp-line); font-weight: 600; font-size: .9rem; }
.sp-chips i { color: var(--sp-accent); }

/* ---------- Metamorfozy (suwak przed/po) ---------- */
.sp-ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.sp-ba { margin: 0; }
.sp-ba-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--sp-radius); overflow: hidden; background: var(--sp-surface); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55); }
.sp-ba-img { position: absolute; inset: 0; background: center / cover no-repeat; }
.sp-ba-after { clip-path: inset(0 0 0 var(--pos)); }
.sp-ba-img span { position: absolute; top: .8rem; padding: .25rem .65rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sp-ba-before span { left: .8rem; }
.sp-ba-after span { right: .8rem; background: var(--sp-accent); color: var(--sp-on-accent); }
.sp-ba-ph.sp-ba-before { background: linear-gradient(160deg, color-mix(in srgb, var(--sp-ink) 18%, var(--sp-surface)), var(--sp-surface)); }
.sp-ba-ph.sp-ba-after { background: linear-gradient(160deg, var(--sp-accent), color-mix(in srgb, var(--sp-accent) 40%, #0b0f17)); }
.sp-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sp-ba-handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.sp-anim .wp-revealed .sp-ba-handle i { animation: spNudge 2.4s 1s ease-in-out 2; }
@keyframes spNudge { 0%, 100% { margin-left: 0; } 30% { margin-left: -14px; } 60% { margin-left: 14px; } }
.sp-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.sp-ba figcaption { display: flex; flex-direction: column; margin-top: .75rem; }
.sp-ba figcaption span { color: var(--sp-accent); font-weight: 700; }

/* ---------- Jak zacząć ---------- */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; position: relative; }
.sp-steps li { position: relative; padding-top: .5rem; }
.sp-step-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem;
    background: var(--sp-accent); color: var(--sp-on-accent); margin-bottom: 1rem; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--sp-bg); }
.sp-bg-tint .sp-step-n { box-shadow: 0 0 0 8px var(--sp-tint); }
.sp-steps li:not(:last-child)::before { content: ""; position: absolute; top: calc(.5rem + 26px); left: 52px; right: -1.4rem; height: 2px;
    background: linear-gradient(90deg, var(--sp-accent), var(--sp-line)); transform-origin: left; }
.sp-anim .sp-steps li:not(:last-child)::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i) * 180ms + 400ms); }
.sp-anim .wp-revealed.sp-steps li::before { transform: scaleX(1); }
.sp-steps h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.sp-steps p { margin: 0; color: var(--sp-muted); }

/* ---------- Cennik ---------- */
.sp-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: stretch; }
.sp-price { position: relative; display: flex; flex-direction: column; padding: 1.9rem 1.6rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); transition: transform .3s ease, box-shadow .3s ease; }
.sp-price:hover { transform: translateY(-5px); }
.sp-price-hot { border: 2px solid var(--sp-accent); box-shadow: 0 34px 60px -36px var(--sp-accent); }
@media (min-width: 900px) { .sp-price-hot { transform: scale(1.03); } .sp-price-hot:hover { transform: scale(1.03) translateY(-5px); } }
.sp-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: .3rem .9rem; border-radius: 999px; background: var(--sp-accent); color: var(--sp-on-accent); font-size: .75rem; font-weight: 800; }
.sp-price h3 { font-size: 1.15rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sp-pair { font-size: .7rem; font-family: var(--sp-font); text-transform: none; letter-spacing: 0; padding: .15rem .5rem; border-radius: 999px; background: var(--sp-accent-soft); color: var(--sp-accent); }
.sp-price-v { font-family: var(--sp-display); font-size: 2.3rem; font-weight: 900; line-height: 1.05; }
.sp-price-per { color: var(--sp-muted); font-weight: 600; margin-top: .2rem; }
.sp-price ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: .55rem; flex: 1; }
.sp-price li { display: flex; gap: .5rem; align-items: flex-start; }
.sp-price li i { color: var(--sp-accent); font-size: 1.1rem; line-height: 1.3; }

/* ---------- Wolne terminy ---------- */
.sp-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.sp-slot-day { padding: 1.1rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); }
.sp-slot-date { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.sp-slot-date b { text-transform: capitalize; font-size: 1.05rem; }
.sp-slot-date span { color: var(--sp-muted); font-size: .9rem; }
.sp-slot-times { display: flex; flex-wrap: wrap; gap: .45rem; }
.sp-slot-times a { padding: .45rem .75rem; border-radius: 10px; border: 1.5px solid var(--sp-line); color: var(--sp-ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; transition: all .2s ease; }
.sp-slot-times a:hover { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-on-accent); transform: translateY(-2px); }
.sp-slot-more { color: var(--sp-muted) !important; }
.sp-slots-note { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.4rem 0 0; color: var(--sp-muted); font-size: .92rem; }
.sp-slots-empty { text-align: center; max-width: 520px; margin: 0 auto; color: var(--sp-muted); }
.sp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); flex-shrink: 0; }
.sp-anim .sp-live-dot { animation: spLive 1.8s ease-out infinite; }
@keyframes spLive { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

/* ---------- Opinie ---------- */
.sp-rating { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; margin: -1rem 0 2rem; color: var(--sp-muted); }
.sp-stars { position: relative; color: var(--sp-line); letter-spacing: .12em; font-size: 1.2rem; }
.sp-stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r); overflow: hidden; color: #f5b301; }
.sp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.sp-quotes-scroll { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sp-quotes-track { display: flex; gap: 1rem; width: max-content; padding: .5rem 0 1.5rem; }
.sp-anim .sp-quotes-track { animation: spMarquee 60s linear infinite; }
.sp-quotes-scroll:hover .sp-quotes-track { animation-play-state: paused; }
.sp-quotes-track .sp-quote { width: min(360px, 82vw); flex-shrink: 0; }
.sp-quote { margin: 0; padding: 1.5rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); display: flex; flex-direction: column; gap: .8rem; }
.sp-quote-stars { color: #f5b301; letter-spacing: .1em; }
.sp-quote blockquote { margin: 0; font-size: 1.02rem; flex: 1; }
.sp-quote figcaption { display: flex; align-items: center; gap: .6rem; }
.sp-quote figcaption small { color: var(--sp-muted); margin-left: auto; font-size: .8rem; }
.sp-quote-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sp-accent-soft); color: var(--sp-accent); font-weight: 800; font-size: .85rem; }

/* ---------- Galeria ---------- */
.sp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: .8rem; grid-auto-flow: dense; }
.sp-g { margin: 0; border-radius: var(--sp-radius); background: center / cover no-repeat; position: relative; overflow: hidden; transition: transform .5s ease; }
.sp-g:nth-child(6n + 1) { grid-row: span 2; grid-column: span 2; }
.sp-g:hover { transform: scale(1.02); }
.sp-g-ph { display: grid; place-items: center; background: linear-gradient(145deg, var(--sp-accent-soft), color-mix(in srgb, var(--sp-accent) 30%, var(--sp-surface))); color: var(--sp-accent); font-size: 2.6rem; }
.sp-g figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .82rem; }

/* ---------- Film ---------- */
.sp-video { aspect-ratio: 16 / 9; border-radius: var(--sp-radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); background: #000; }
.sp-video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pytania ---------- */
.sp-faq { display: grid; gap: .7rem; }
.sp-faq details { border-radius: calc(var(--sp-radius) * .7); background: var(--sp-surface); border: 1px solid var(--sp-line); padding: 0 1.2rem; transition: border-color .2s ease; }
.sp-faq details[open] { border-color: var(--sp-accent); }
.sp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.04rem; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary i { transition: transform .3s ease; color: var(--sp-accent); flex-shrink: 0; }
.sp-faq details[open] summary i { transform: rotate(45deg); }
.sp-faq p { margin: 0 0 1.1rem; color: var(--sp-muted); }

/* ---------- Wezwanie do działania ---------- */
.sp-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 60px); border-radius: calc(var(--sp-radius) * 1.4);
    background: var(--sp-accent); color: var(--sp-on-accent); }
.sp-cta.sp-bg-dark { background: #0b0f17; color: #fff; --sp-on-accent: #fff; }
.sp-cta.sp-bg-dark .sp-btn-invert { background: var(--sp-accent); color: #0b0f17; }
.sp-cta h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; margin: .6rem auto .8rem; max-width: 18ch; position: relative; }
.sp-cta p { font-size: 1.1rem; max-width: 56ch; margin: 0 auto 1.8rem; opacity: .9; position: relative; }
.sp-cta .sp-btn { position: relative; }
.sp-urgency { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .18); font-weight: 700; font-size: .88rem; }
.sp-cta-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); transform: translateX(-100%); }
.sp-anim .wp-revealed .sp-cta-shine, .sp-anim .sp-cta.wp-revealed .sp-cta-shine { animation: spShine 4.5s 1s ease-in-out infinite; }
@keyframes spShine { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }

/* ---------- Kontakt ---------- */
.sp-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin-top: 2rem; }
.sp-contact { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--sp-radius); background: var(--sp-surface); border: 1px solid var(--sp-line); color: var(--sp-ink); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
a.sp-contact:hover { transform: translateY(-4px); border-color: var(--sp-accent); }
.sp-contact-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sp-accent-soft); color: var(--sp-accent); font-size: 1.25rem; flex-shrink: 0; }
.sp-contact small { display: block; color: var(--sp-muted); font-size: .8rem; }
.sp-contact b { word-break: break-word; }

/* ---------- Stopka i przycisk na telefonie ---------- */
.sp-foot { border-top: 1px solid var(--sp-line); padding: 1.6rem 0 5.5rem; color: var(--sp-muted); font-size: .9rem; }
.sp-foot-in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sp-foot-links { display: flex; gap: 1.2rem; }
.sp-foot a { color: var(--sp-muted); text-decoration: none; }
.sp-foot a:hover { color: var(--sp-accent); }
.sp-foot .sp-made {
    flex-basis: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .4rem;
    font-size: .8rem; opacity: .85; transition: opacity .2s;
}
.sp-foot .sp-made:hover { opacity: 1; }
.sp-foot .sp-made b { font-weight: 700; color: var(--sp-ink); }
.sp-made-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-accent); }
.sp-sticky { display: none; }
.sp a.sp-sticky, .sp a.sp-btn { text-decoration: none; }

/* ---------- Telefon ---------- */
/* Bardzo wąski ekran: logowanie jako okrągła ikonka, żeby obok zmieścił się „Umów” i nazwa studia. */
@media (max-width: 440px) {
    .sp:not(.sp-has-sticky) .sp-login { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 999px; }
    .sp:not(.sp-has-sticky) .sp-login .sp-login-txt { display: none; }
}
@media (max-width: 900px) {
    .sp-nav { display: none; }
    .sp-top-cta { margin-left: auto; }
    .sp-hero-in, .sp-about { grid-template-columns: 1fr; }
    .sp-hero-visual { min-height: 0; margin-top: 1rem; }
    .sp-hero-photo { aspect-ratio: 4 / 4.2; }
    .sp-about-right .sp-about-media { order: 0; }
    .sp-about-photo { aspect-ratio: 16 / 13; }
    .sp-steps li::before { display: none; }
    .sp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 600px) {
    .sp-hide-sm { display: none; }
    /* Na telefonie oba przyciski: „Zaloguj się” i „Umów” (gdy na dole jest przyklejony przycisk — tylko logowanie). */
    .sp-top-in { height: 60px; gap: .75rem; }
    .sp-top-cta { gap: .4rem; margin-left: auto; }
    .sp-top-cta .sp-btn-sm { padding: .45rem .8rem; font-size: .84rem; white-space: nowrap; }
    .sp-login-ico { display: block; }
    /* W pasku krótko — pełny napis jest w przycisku na stronie i przyklejonym na dole. */
    .sp-top-cta .sp-cta-full { display: none; }
    .sp-top-cta .sp-cta-short { display: inline; }
    .sp-has-sticky .sp-top-cta .sp-btn-primary { display: none; }
    .sp-brand { font-size: .98rem; }
    .sp-brand img { height: 32px; }
    .sp-hero-cta .sp-btn { width: 100%; }
    .sp-float-0 { left: 4px; bottom: -14px; }
    .sp-float-1 { right: 4px; top: -10px; }
    .sp-mock { transform: none; }
    .sp-benefit-list { grid-template-columns: 1fr; }
    .sp-stats { grid-template-columns: repeat(2, 1fr); }
    .sp-stat { padding: 1.2rem .6rem; }
    .sp-sticky {
        display: flex; align-items: center; justify-content: center; gap: .5rem; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 60; padding: .95rem 1rem; border-radius: 16px; background: var(--sp-accent); color: var(--sp-on-accent); font-weight: 800; text-decoration: none;
        box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
    }
    .sp-anim .sp-sticky { animation: spRise .6s 1.2s cubic-bezier(.22, 1, .36, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
    .sp *, .sp *::before, .sp *::after { animation: none !important; transition: none !important; }
    .sp .wp-reveal, .sp .sp-stagger, .sp .sp-rise { opacity: 1 !important; transform: none !important; }
}
