/* ============================================================
   Platforma Korepetycje — Design System v4
   Marka: fiolet #8c52ff / mięta #7ac1a4 · Font: Manrope
   ============================================================ */

:root {
    /* --- Fiolet (primary) --- */
    --purple-50: #faf8ff;  --purple-100: #f3edff; --purple-200: #e7daff;
    --purple-300: #c9a8ff; --purple-400: #a97bff; --purple-500: #8c52ff;
    --purple-600: #7f3ff5; --purple-700: #6f2fe8;
    /* --- Mięta (secondary) --- */
    --mint-50: #f3faf7;  --mint-100: #e2f3eb; --mint-200: #c8e8da;
    --mint-300: #97d1b4; --mint-400: #a6e5d2; --mint-500: #7ac1a4;
    --mint-600: #5ea887; --mint-700: #4a9370;
    /* --- Neutralne (chłodne, lekko fioletowe) --- */
    --gray-50: #faf9fc;  --gray-100: #f3f2f7; --gray-200: #e7e5ee;
    --gray-300: #d2cfdd; --gray-400: #9c97ac; --gray-500: #6f6a82;
    --gray-600: #524d66; --gray-700: #3b3650; --gray-800: #262138;
    --gray-900: #16121f; --white: #ffffff;
    /* --- Semantyczne --- */
    --red-100: #fee2e2; --red-500: #ef4444; --red-700: #b91c1c;
    --yellow-100: #fef3c7; --yellow-500: #fbbf24; --yellow-700: #b45309;
    /* --- Promienie --- */
    --radius-sm: 0.5rem; --radius-md: 0.75rem; --radius-lg: 1rem;
    --radius-xl: 1.5rem; --radius-2xl: 2rem;
    /* --- Cienie (ciepłe, fioletowe podbarwienie) --- */
    --shadow-sm: 0 1px 2px rgba(22, 18, 31, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(22, 18, 31, 0.08), 0 2px 4px -2px rgba(22, 18, 31, 0.05);
    --shadow-lg: 0 12px 28px -6px rgba(22, 18, 31, 0.11), 0 4px 8px -4px rgba(22, 18, 31, 0.06);
    --shadow-xl: 0 24px 48px -10px rgba(22, 18, 31, 0.14), 0 8px 16px -8px rgba(22, 18, 31, 0.08);
    --shadow-mint: 0 12px 36px -12px rgba(94, 168, 135, 0.45);
    --shadow-purple: 0 12px 36px -12px rgba(140, 82, 255, 0.45);
    /* --- Ruch --- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --grad-brand: linear-gradient(135deg, var(--purple-600), var(--purple-400));
    --grad-text: linear-gradient(135deg, #7f3ff5, #a97bff);
}

/* ============================================================
   Baza
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background-color: var(--white);
    background-image:
        linear-gradient(rgba(22, 18, 31, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 18, 31, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Miękkie poświaty marki w tle całej strony */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(640px 420px at 88% -4%, rgba(140, 82, 255, 0.075), transparent 70%),
        radial-gradient(560px 400px at -6% 22%, rgba(122, 193, 164, 0.09), transparent 70%),
        radial-gradient(520px 420px at 96% 62%, rgba(122, 193, 164, 0.06), transparent 70%);
}

::selection { background: var(--purple-200); color: var(--purple-700); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--purple-300); border-radius: 6px; border: 2px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--purple-500); }

:focus-visible { outline: 3px solid rgba(140, 82, 255, 0.4); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; }
button { font-family: inherit; }

/* ============================================================
   System ruchu
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-fade-in-up { animation: fadeInUp 0.85s var(--ease-out) both; }
.delay-100 { animation-delay: 0.1s; } .delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; } .delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll-reveal (JS dodaje .in-view). Używa `translate`, nie `transform`,
   więc nie gryzie się z rotacją kart i efektami hover. */
.reveal {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 0.85s var(--ease-out), translate 0.85s var(--ease-out);
    will-change: opacity, translate;
}
.reveal.in-view { opacity: 1; translate: 0 0; }
.reveal.delay-100 { transition-delay: 0.1s; } .reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; } .reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }

/* ============================================================
   Nagłówek — szklana pigułka
   ============================================================ */
.header {
    position: fixed;
    top: 0.75rem; /* Zmniejszono odstęp od góry */
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 1150px);
    z-index: 1000;
    /* LIQUID GLASS */
    background: rgba(233, 237, 244, 0.6);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    box-shadow:
        0 6px 24px rgba(22, 18, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.35);
    overflow: hidden;
    --hx: 30%;
    transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
/* Refleks szkla - smuga swiatla podazajaca za kursorem (--hx ustawia JS) */
.header::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(240px 70px at var(--hx, 30%) 0%, rgba(255, 255, 255, 0.8), transparent 70%),
        linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.3) 48%, transparent 62%);
}
.header.scrolled {
    background: rgba(233, 237, 244, 0.82);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.header-inner {
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 1.25rem;
    height: 52px; /* Zmniejszono wysokość paska z 68px na 52px */
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { 
    height: 32px; /* Pomniejszono logo, aby pasowało do niższego paska */
    width: auto; 
    max-width: 220px; 
    display: block; 
    object-fit: contain; 
}

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
    text-decoration: none; color: var(--gray-600); font-weight: 600; font-size: 0.95rem;
    position: relative; transition: color 0.25s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 100%; height: 2px; border-radius: 2px;
    background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--purple-600); }
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* --- Przyciski --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: var(--radius-lg);
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
                background 0.25s, border-color 0.25s, color 0.25s;
    border: none; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.05rem; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-purple); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(140, 82, 255, 0.55); }

.btn-outline { background: transparent; color: var(--purple-600); border: 2px solid var(--purple-200); }
.btn-outline:hover { background: var(--purple-50); border-color: var(--purple-400); }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-glow {
    position: relative;
    background: var(--grad-brand); color: #fff;
    box-shadow: 0 4px 15px -5px rgba(140, 82, 255, 0.5);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(140, 82, 255, 0.55), 0 0 46px rgba(140, 82, 255, 0.3); }
/* Migający fioletowy poświata przycisku "Darmowa lekcja" — cały czas, także przy włączonym "ograniczonym ruchu".
   !important + selektor ID celowo wygrywają z globalną regułą prefers-reduced-motion (tylko dla tego przycisku). */
@keyframes purpleAura {
    0%, 100% {
        box-shadow:
            0 4px 15px -5px rgba(140, 82, 255, 0.55),
            0 0 14px 3px rgba(140, 82, 255, 0.5),
            0 0 30px 6px rgba(140, 82, 255, 0.28);
        filter: brightness(1);
    }
    50% {
        box-shadow:
            0 4px 15px -5px rgba(140, 82, 255, 0.55),
            0 0 26px 6px rgba(169, 123, 255, 0.85),
            0 0 52px 12px rgba(140, 82, 255, 0.5);
        filter: brightness(1.15);
    }
}
#headerFreeLessonBtn {
    animation: purpleAura 2.2s ease-in-out infinite !important;
    will-change: box-shadow, filter;
}
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 14px 34px -10px rgba(140, 82, 255, 0.55), 0 0 0 0 rgba(140, 82, 255, 0.4); }
    50% { box-shadow: 0 14px 34px -10px rgba(140, 82, 255, 0.55), 0 0 0 14px rgba(140, 82, 255, 0); }
}

.cart-btn {
    position: relative; width: 40px; height: 40px; border-radius: var(--radius-lg);
    background: var(--gray-100); display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; color: var(--gray-700);
    transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.cart-btn:hover { background: var(--purple-100); color: var(--purple-700); transform: translateY(-1px); }
.cart-count {
    position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
    background: var(--grad-brand); color: #fff; border-radius: 50%;
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(140, 82, 255, 0.4);
}

.mobile-menu-btn {
    display: flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; border-radius: var(--radius-md); color: var(--gray-800);
}
.mobile-menu-btn:hover { background: var(--gray-100); }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999; padding: 7rem 2rem 2rem;
    display: none; flex-direction: column; gap: 1.25rem;
    animation: fadeIn 0.3s var(--ease-out);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    font-size: 1.25rem; font-weight: 700; color: var(--gray-800); text-decoration: none;
    padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s, translate 0.3s var(--ease-out);
}
.mobile-menu a:hover { color: var(--purple-600); translate: 6px 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: calc(100vh - 160px);
    display: flex; align-items: center; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
/* Tlo hero: czyste — kolorowe bloby usuniete */

.hero-inner {
    max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.5rem 2rem;
    display: grid; grid-template-columns: 1fr; gap: 3rem;
    align-items: stretch; position: relative; z-index: 1; width: 100%;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }

/* Pigułka zaufania nad hero */
.trust-bar {
    position: relative; z-index: 5; margin-top: 74px;
    display: flex; justify-content: center;
}
.trust-pill {
    display: flex; align-items: center; justify-content: center; gap: 0.55rem;
    width: min(720px, 86%);
    background: linear-gradient(90deg, #a97bff 0%, #8c52ff 60%, #7f3ff5 100%);
    color: #fff; font-weight: 600; font-size: 0.95rem;
    padding: 0.65rem 1.6rem; border-radius: 100px;
    box-shadow: 0 14px 32px -12px rgba(140, 82, 255, 0.45);
}
.trust-pill svg { flex-shrink: 0; }
.trust-pill strong { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Karta tekstowa hero */
.hero-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 60px -24px rgba(22, 18, 31, 0.16);
    padding: 2.4rem 2.5rem;
    display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
}
.hero-title-new {
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    font-weight: 500; line-height: 1.32; color: var(--gray-600);
    margin-bottom: 1.6rem; letter-spacing: -0.01em;
    animation: fadeInUp 0.75s var(--ease-out) 0.05s both;
}
.hero-title-new strong { font-weight: 800; color: var(--gray-900); }

/* --- Swiadomy uklad naglowka hero: kontrolowane linie --- */
.hero-title-new .ht-line { display: block; }
.hero-title-new .ht-kicker {
    font-size: 0.7em; font-weight: 600; color: var(--gray-500);
    letter-spacing: 0.01em; margin-bottom: 0.45em;
}
.hero-title-new .ht-big {
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
    font-weight: 800; color: var(--gray-900);
    line-height: 1.18; letter-spacing: -0.015em;
}
.hero-title-new .ht-big + .ht-big { margin-top: 0.1em; }
.hero-title-new .ht-tail {
    margin-top: 0.6em; font-size: 0.78em; font-weight: 500;
    color: var(--gray-500); text-wrap: balance;
}
.hn-purple {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub-new {
    font-size: 1.12rem; line-height: 1.55; color: var(--gray-600);
    margin-bottom: 1.6rem;
    animation: fadeInUp 0.75s var(--ease-out) 0.15s both;
}
.hero-sub-new strong { color: var(--gray-900); font-weight: 800; }
.hn-underline {
    color: var(--gray-900); font-weight: 800;
    background: linear-gradient(180deg, transparent 62%, rgba(151, 209, 180, 0.7) 62%);
    padding: 0 2px; border-radius: 2px;
}

/* Pigułka gwarancji */
.hero-guarantee {
    display: flex; align-items: center; gap: 0.9rem;
    background: linear-gradient(135deg, var(--mint-100), #ecf8f2);
    border: 1px solid var(--mint-200);
    border-radius: var(--radius-xl);
    padding: 1rem 1.4rem; max-width: 520px;
    box-shadow: var(--shadow-mint);
    animation: fadeInUp 0.75s var(--ease-out) 0.25s both;
}
.hero-guarantee-icon {
    width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6fbd99, #4a9370); color: #fff;
    box-shadow: 0 8px 18px -6px rgba(87, 169, 127, 0.7);
}
.hero-guarantee p { font-size: 0.98rem; line-height: 1.45; color: #234434; margin: 0; }
.hero-guarantee p strong { font-weight: 800; color: #12271b; }

/* Karta wideo */
.hero-right {
    display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 1.5rem;
    animation: fadeInUp 0.85s var(--ease-out) 0.2s both;
}
.hero-video-card2 {
    position: relative; width: 100%; max-width: 640px; margin: 0 auto;
    aspect-ratio: 16 / 9; border-radius: var(--radius-2xl); overflow: hidden; cursor: pointer;
    border: 1px solid var(--gray-100);
    box-shadow: 0 32px 72px -24px rgba(22, 18, 31, 0.3);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    background: #fff;
}
.hero-video-card2:hover { transform: translateY(-6px); box-shadow: 0 40px 90px -24px rgba(140, 82, 255, 0.38); }

/* Biały prostokąt pod video w hero (treść do uzupełnienia) */
.hero-info-card {
    flex: 1 1 auto;
    width: 100%; max-width: 640px; margin: 0 auto;
    min-height: 140px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 60px -24px rgba(22, 18, 31, 0.16);
    padding: 1.5rem 1.75rem;
    display: flex; align-items: center; justify-content: center;
    animation: fadeInUp 0.85s var(--ease-out) 0.3s both;
}
.hero-info-placeholder { color: var(--gray-400); font-size: 0.95rem; font-weight: 600; text-align: center; }
.hero-video-card2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hvc2-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(22, 18, 31, 0.1); transition: background 0.3s;
    pointer-events: none;
}
.hero-video-card2:hover .hvc2-play { background: rgba(22, 18, 31, 0.22); }
.hvc2-play-circle {
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.96); color: var(--purple-600);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.35s var(--ease-out);
}
.hero-video-card2:hover .hvc2-play-circle { transform: scale(1.1); }
.hvc2-play-circle::before {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: hvpPulse 2.2s ease-out infinite;
}
@keyframes hvpPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Wiersz CTA pod hero */
.hero-cta-wrap { width: 100%; position: relative; z-index: 1; padding: 0 1.5rem; text-align: center; }
.hero-cta-row {
    display: inline-flex; align-items: center; gap: 1.3rem;
    margin: 0.5rem auto 3rem;
    /* LIQUID GLASS - szarawy, przepuszcza tlo */
    background: rgba(233, 237, 244, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 100px; padding: 0.55rem 1.6rem 0.55rem 0.55rem;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    --hx: 20%;
}
/* Refleks szkla w srodku paska (za kursorem, --hx ustawia JS) */
.hero-cta-row .cta-sheen {
    position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(240px 70px at var(--hx, 20%) 0%, rgba(255, 255, 255, 0.8), transparent 70%),
        linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
}
.btn-cta-purple {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--grad-brand); color: #fff;
    font-weight: 800; font-size: 1.02rem;
    padding: 1rem 2.1rem; border: none; border-radius: 100px; cursor: pointer;
    box-shadow: 0 14px 34px -10px rgba(140, 82, 255, 0.55);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
    animation: fadeInUp 0.75s var(--ease-out) 0.25s both, ctaGlow 2.4s ease-out 1.2s infinite;
}
.btn-cta-purple:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px rgba(140, 82, 255, 0.65); }
.btn-cta-purple:active { transform: scale(0.97); }
.hero-cta-row .hero-cta-note {
    max-width: none; flex: none; margin: 0;
    font-size: 0.98rem; font-weight: 500; color: var(--gray-700); line-height: 1.4;
    text-align: left; white-space: nowrap;
}
.hero-cta-row .hero-cta-note strong { font-weight: 800; color: var(--gray-900); }

/* ============================================================
   Sekcje — wspólny rytm
   ============================================================ */
.section { padding: 6.5rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 4rem; }
.section-label {
    display: inline-block; padding: 0.375rem 1rem;
    background: var(--purple-100); color: var(--purple-700);
    border-radius: 100px; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.02em; margin-bottom: 1.1rem;
}
.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800;
    color: var(--gray-900); margin-bottom: 1rem; line-height: 1.18;
    letter-spacing: -0.015em;
}
.section-desc { font-size: 1.1rem; color: var(--gray-600); }
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   Opinie kursantów — karuzela
   ============================================================ */
.tsti-stats { display: flex; align-items: center; justify-content: center; gap: 2.5rem; margin: -1.5rem auto 3rem; flex-wrap: wrap; }
.tsti-stat { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.tsti-stat-num {
    font-size: 1.8rem; font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tsti-stat span { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.tsti-stat-sep { width: 1px; height: 2.2rem; background: var(--gray-200); }

.tsti-stage-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem; overflow: hidden; }
.tsti-stage { position: relative; flex: 1; max-width: 760px; height: 380px; margin: 0 auto; }

.tsti-card {
    position: absolute; left: 50%; top: 50%;
    width: min(560px, 88%);
    transition: transform 0.65s var(--ease-out), opacity 0.65s ease, filter 0.65s ease;
    will-change: transform, opacity;
}
.tsti-card.is-active { cursor: default; }
.tsti-card:not(.is-active) { cursor: pointer; }

.tsti-card-inner {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.25rem 2.25rem 1.75rem;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out);
}
.tsti-card.is-active .tsti-card-inner {
    box-shadow: 0 25px 60px -15px rgba(140, 82, 255, 0.3);
    animation: tstiFloat 5.5s ease-in-out infinite;
}
.tsti-card.is-active .tsti-card-inner:hover { transform: translateY(-4px); }
.tsti-card:not(.is-active) .tsti-card-inner { box-shadow: var(--shadow-md); }
.tsti-card-inner::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 161, 252, 0.22), transparent 70%);
    pointer-events: none;
}
.tsti-card-inner::after {
    content: ''; position: absolute; bottom: -70px; left: -70px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(151, 209, 180, 0.25), transparent 70%);
    pointer-events: none;
}
.tsti-stars { display: flex; gap: 0.2rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.tsti-stars svg { width: 18px; height: 18px; fill: var(--yellow-500); filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.4)); }
.tsti-text { position: relative; z-index: 1; font-size: 1.05rem; line-height: 1.7; color: var(--gray-700); margin-bottom: 1.5rem; }
.tsti-text .tsti-hl {
    background: linear-gradient(180deg, transparent 55%, rgba(151, 209, 180, 0.55) 55%);
    color: var(--gray-900); font-weight: 700; border-radius: 2px; padding: 0 2px;
}
.tsti-footer { display: flex; align-items: center; gap: 0.85rem; position: relative; z-index: 1; }
.tsti-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.tsti-avatar-mint { background: linear-gradient(135deg, var(--mint-500), var(--mint-700)); }
.tsti-avatar-purple { background: linear-gradient(135deg, var(--purple-400), var(--purple-600)); }
.tsti-meta { flex: 1; min-width: 0; }
.tsti-name { font-weight: 800; color: var(--gray-900); font-size: 0.98rem; }
.tsti-tag { font-size: 0.8rem; color: var(--gray-500); }
.tsti-badge {
    display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
    font-size: 0.72rem; font-weight: 700; color: var(--mint-700);
    background: var(--mint-50); border: 1px solid var(--mint-200);
    padding: 0.3rem 0.65rem; border-radius: 100px;
}
.tsti-badge svg { width: 12px; height: 12px; }
.tsti-result {
    position: absolute; top: 1.4rem; right: 1.4rem; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-end; gap: 0.05rem;
    background: var(--grad-brand); color: #fff;
    padding: 0.5rem 0.9rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-purple); transform: rotate(3deg);
}
.tsti-result-num { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.02em; }
.tsti-result-label { font-size: 0.65rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }

.tsti-arrow {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); color: var(--purple-600);
    border: 1px solid var(--purple-200);
    box-shadow: var(--shadow-md); cursor: pointer;
    transition: all 0.3s var(--ease-out); z-index: 30;
}
.tsti-arrow:hover {
    background: var(--grad-brand); color: #fff; border-color: transparent;
    transform: scale(1.08); box-shadow: var(--shadow-purple);
}
.tsti-arrow:active { transform: scale(0.94); }

.tsti-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2rem; }
.tsti-dot {
    width: 10px; height: 10px; border-radius: 100px; border: none; cursor: pointer;
    background: var(--gray-300); transition: all 0.4s var(--ease-out); padding: 0;
}
.tsti-dot:hover { background: var(--purple-300); }
.tsti-dot.is-active { width: 30px; background: var(--grad-text); }
.tsti-hint { text-align: center; font-size: 0.8rem; color: var(--gray-400); margin-top: 0.9rem; }

@keyframes tstiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@media (max-width: 860px) {
    .tsti-arrow { display: none; }
    .tsti-stage { height: 430px; }
    .tsti-card-inner { padding: 1.75rem 1.5rem 1.5rem; }
}
@media (max-width: 520px) {
    .tsti-stage { height: 470px; }
    .tsti-text { font-size: 0.95rem; }
    .tsti-result { top: 1rem; right: 1rem; padding: 0.4rem 0.7rem; }
    .tsti-badge { display: none; }
    .tsti-stats { gap: 1.4rem; }
}

/* ============================================================
   Dlaczego my?
   ============================================================ */
.why-hero { text-align: center; padding: 9.5rem 1.5rem 3rem; }
.why-inline .why-hero { padding: 5rem 1.5rem 2.5rem; }
.why-title {
    font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800;
    color: var(--gray-900); line-height: 1.18; margin-top: 0.5rem;
    letter-spacing: -0.015em;
}
.why-sub { color: var(--gray-600); margin-top: 1rem; font-size: 1.1rem; }
.why-section { padding-top: 2rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.why-left { display: flex; flex-direction: column; padding: 0.5rem 0; }
.why-float { animation: float 7s ease-in-out infinite; }
.wf-1 { animation-delay: 0s; } .wf-2 { animation-delay: 1.2s; }
.wf-3 { animation-delay: 2.4s; } .wf-4 { animation-delay: 3.6s; }

.why-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.why-card:hover { transform: rotate(0deg) translateY(-5px) !important; box-shadow: var(--shadow-xl); border-color: var(--mint-300); }
.why-card p { color: var(--gray-700); font-size: 1.05rem; line-height: 1.65; }
.hl { color: var(--purple-600); font-weight: 700; }
.wc-1 { transform: rotate(-1.6deg); } .wc-2 { transform: rotate(1.3deg); }
.wc-3 { transform: rotate(-1deg); } .wc-4 { transform: rotate(1.5deg); }
.why-num {
    font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Strzałki między kartami — na przemian prawa / lewa --- */
.why-arrow { width: 96px; height: 60px; flex-shrink: 0; overflow: visible; }
.why-arrow.ad-1 { align-self: flex-end;   margin: 0.25rem 5.5rem 0.25rem 0; }
.why-arrow.ad-2 { align-self: flex-start; margin: 0.25rem 0 0.25rem 5.5rem; }
.why-arrow.ad-3 { align-self: flex-end;   margin: 0.25rem 5.5rem 0.25rem 0; }

.why-arrow .why-line {
    fill: none;
    stroke: url(#whyArrowGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    filter: drop-shadow(0 3px 6px rgba(122, 193, 164, 0.45));
}
.why-arrow.draw .why-line { animation: drawArrow 1s var(--ease-out) forwards; }
.why-arrow.ad-1.draw .why-line { animation-delay: 0.4s; }
.why-arrow.ad-2.draw .why-line { animation-delay: 1s; }
.why-arrow.ad-3.draw .why-line { animation-delay: 1.6s; }
@keyframes drawArrow { to { stroke-dashoffset: 0; } }

/* Świecąca kropka przejeżdżająca po strzałce */
.why-arrow .why-dot {
    fill: #ffffff;
    stroke: var(--mint-500);
    stroke-width: 2;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(122, 193, 164, 0.95));
}
.why-arrow.draw .why-dot { animation: whyDotTravel 3.4s ease-in-out infinite; }
.why-arrow.ad-1.draw .why-dot { animation-delay: 1.6s; }
.why-arrow.ad-2.draw .why-dot { animation-delay: 2.3s; }
.why-arrow.ad-3.draw .why-dot { animation-delay: 3s; }
@keyframes whyDotTravel {
    0%   { offset-distance: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}
@media (max-width: 900px) {
    .why-arrow.ad-1, .why-arrow.ad-2, .why-arrow.ad-3 { align-self: center; margin-left: 0; margin-right: 0; }
}

.why-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: rotate(1.2deg);
    transition: transform 0.4s var(--ease-out);
    position: sticky; top: 110px;
}
.why-panel:hover { transform: rotate(0deg); }
.why-panel h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--gray-900); letter-spacing: -0.01em; }
.why-panel h3 span { color: var(--purple-600); }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.why-list li { display: flex; gap: 0.75rem; color: var(--gray-700); font-size: 1rem; line-height: 1.55; }
.why-list li strong { color: var(--gray-900); }
.why-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--mint-600); }
.why-cta { margin-top: 1.75rem; width: 100%; padding: 0.875rem; }
@media (max-width: 900px) { .why-panel { position: static; transform: none; } }

/* ============================================================
   Features
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--purple-200); }
.feature-icon {
    width: 56px; height: 56px; border-radius: var(--radius-lg);
    background: var(--purple-50);
    border: 1px solid var(--purple-100);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: var(--purple-600);
    transition: background 0.35s, color 0.35s, transform 0.35s var(--ease-out);
}
.feature-card:hover .feature-icon {
    background: var(--grad-brand); color: #fff; border-color: transparent;
    transform: rotate(-6deg) scale(1.05);
}
.feature-title { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.feature-desc { color: var(--gray-600); font-size: 0.95rem; }

/* ============================================================
   Porównanie cen
   ============================================================ */
.price-compare { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 960px) { .price-compare { grid-template-columns: 1fr auto 320px; gap: 2rem; } }
.price-compare-list {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
}
.pc-item {
    display: flex; justify-content: space-between; align-items: center;
    gap: 0.9rem; padding: 0.875rem 0.5rem;
    border-bottom: 1px dashed var(--gray-200);
    border-radius: var(--radius-md);
    transition: background 0.25s;
}
.pc-item:hover { background: var(--mint-50); }
.pc-item:last-child { border-bottom: none; }
.pc-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    background: var(--mint-100); color: var(--mint-700);
    display: flex; align-items: center; justify-content: center;
}
.pc-icon-total { background: var(--red-100); color: var(--red-500); }
.pc-info { flex: 1; min-width: 0; }
.pc-info strong { display: block; color: var(--gray-900); font-size: 0.95rem; }
.pc-info span { font-size: 0.8rem; color: var(--gray-500); }
.pc-price { font-weight: 800; color: var(--gray-800); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-divider { height: 1px; background: var(--gray-200); margin: 0.25rem 0; }
.pc-total .pc-price { font-size: 1.5rem; color: var(--red-500); text-decoration: line-through; text-decoration-thickness: 3px; }
.pc-price-big { font-size: 1.6rem !important; }

.price-compare-vs {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--purple-200);
    color: var(--purple-600); font-weight: 900; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; box-shadow: var(--shadow-md);
}
.price-compare-card {
    background: var(--grad-brand); color: #fff;
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem; text-align: center;
    box-shadow: var(--shadow-purple);
    position: relative; overflow: hidden;
}
.price-compare-card::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 18px 18px; opacity: 0.4; pointer-events: none;
}
.pcc-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; position: relative; }
.pcc-price { font-size: 4rem; font-weight: 800; line-height: 1; margin: 0.75rem 0; position: relative; letter-spacing: -0.02em; }
.pcc-price span { font-size: 1.5rem; font-weight: 700; }
.pcc-desc { opacity: 0.92; margin-bottom: 1.5rem; font-size: 0.95rem; position: relative; }
.price-compare-card .btn-primary { background: #fff; color: var(--purple-700); box-shadow: none; position: relative; }
.price-compare-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35); }
.pcc-save {
    display: table;
    margin: 1.4rem auto 0;
    max-width: 100%;
    padding: 0.6rem 1.3rem; border-radius: 100px;
    background: var(--mint-100); color: var(--gray-900);
    font-size: 1.08rem; font-weight: 800; position: relative;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: pccSavePulse 2.4s ease-in-out infinite;
}
.pcc-save strong {
    font-weight: 900; font-size: 1.32em; letter-spacing: -0.01em;
    white-space: nowrap; /* kwota zawsze w jednym kawalku */
    background: linear-gradient(100deg, #6d28d9 25%, #c084fc 50%, #6d28d9 75%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: pccShimmer 2.8s linear infinite;
}

/* ============================================================
   Cennik — karty + biegnący punkt światła
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.pricing-grid-2 { max-width: 860px; }
.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    display: flex; flex-direction: column; height: 100%;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.pricing-card.featured {
    border-color: var(--purple-400);
    background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 34%);
    box-shadow: var(--shadow-purple);
}
.pricing-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    z-index: 8;
    background: var(--grad-brand); color: #fff;
    padding: 0.4rem 1.5rem; border-radius: 100px;
    font-size: 0.82rem; font-weight: 800; white-space: nowrap;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(140, 82, 255, 0.35);
}
.pricing-name { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; color: var(--gray-900); }
.pricing-desc { text-align: center; color: var(--gray-500); font-size: 0.95rem; margin-bottom: 1.5rem; }
.pricing-price { text-align: center; margin-bottom: 2rem; }
.pricing-price .amount { font-size: 3.5rem; font-weight: 800; color: var(--gray-900); line-height: 1; letter-spacing: -0.02em; }
.pricing-price .currency { font-size: 1.5rem; font-weight: 600; color: var(--gray-600); }
.pricing-price .period { font-size: 1rem; color: var(--gray-500); }
.pricing-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.pricing-features li {
    padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.95rem; color: var(--gray-700);
}
.pricing-features li strong { color: var(--gray-900); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 20px; height: 20px; color: var(--mint-600); flex-shrink: 0; }
.pricing-btn {
    width: 100%; padding: 1rem; border-radius: var(--radius-lg);
    font-weight: 800; font-size: 1rem; cursor: pointer; border: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
    margin-top: auto;
}
.pricing-btn:active { transform: scale(0.97); }
.pricing-btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-purple); }
.pricing-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(140, 82, 255, 0.55); }
.pricing-btn-outline { background: #fff; color: var(--purple-600); border: 2px solid var(--purple-200); }
.pricing-btn-outline:hover { background: var(--purple-50); border-color: var(--purple-400); }

/* Światełko biegnące po obramówce kart cennika */
.pricing-card { overflow: visible; }
.pricing-card::before, .pricing-card::after {
    content: ''; position: absolute; inset: -2px;
    border-radius: inherit; padding: 2px;
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.3) 0.05turn,
        rgba(169, 123, 255, 0.9) 0.1turn,
        transparent 0.18turn
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: gbSpin 7s linear infinite;
    pointer-events: none; z-index: 6;
}
.pricing-card::after { animation-delay: -3.5s; opacity: 0.65; }
.pricing-card.featured::before {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.45) 0.05turn,
        rgba(201, 168, 255, 1) 0.1turn,
        transparent 0.18turn
    );
}

/* ============================================================
   Darmowa lekcja — CTA
   ============================================================ */
.free-lesson {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
    border-radius: var(--radius-2xl);
    padding: 4rem 2rem; text-align: center; color: #fff;
    position: relative; overflow: hidden;
    margin: 4rem auto; max-width: 1000px;
    box-shadow: var(--shadow-purple);
}
.free-lesson::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.3;
}
.free-lesson-content { position: relative; z-index: 1; }
.free-lesson h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.015em; }
.free-lesson p { font-size: 1.1rem; opacity: 0.92; margin: 0 auto 2rem; max-width: 500px; }
.phone-form { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; max-width: 520px; margin: 0 auto; }
.phone-form input {
    flex: 1; min-width: 250px; padding: 1rem 1.25rem;
    border-radius: 100px; border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14); color: #fff;
    font-size: 1rem; font-family: inherit; outline: none;
    transition: background 0.3s, border-color 0.3s;
}
.phone-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.phone-form input:focus { background: rgba(255, 255, 255, 0.24); border-color: #fff; }
.phone-form button {
    padding: 1rem 2rem; border-radius: 100px;
    background: #fff; color: var(--purple-700);
    font-weight: 800; font-size: 1rem; font-family: inherit;
    border: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.phone-form button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.phone-form button:active { transform: scale(0.97); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: var(--purple-200); }
.faq-item.active { border-color: var(--purple-300); box-shadow: var(--shadow-md); }
.faq-question {
    width: 100%; padding: 1.25rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: none; border: none;
    font-size: 1.05rem; font-weight: 700; color: var(--gray-900);
    cursor: pointer; text-align: left;
}
.faq-question svg { width: 22px; height: 22px; color: var(--purple-500); transition: transform 0.35s var(--ease-out); flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out); }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.25rem; }
.faq-answer p { color: var(--gray-600); line-height: 1.7; }

/* ============================================================
   Koszyk
   ============================================================ */
.cart-page { max-width: 1000px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-item {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1.5rem;
    display: flex; gap: 1.5rem; margin-bottom: 1rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.cart-item:hover { box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.cart-item-image {
    width: 100px; height: 100px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--purple-100), var(--mint-100));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 2rem;
}
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--gray-900); }
.cart-item-price { font-size: 1.25rem; font-weight: 800; color: var(--purple-600); }
.cart-summary {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 2rem;
    position: sticky; top: 110px; height: fit-content;
    box-shadow: var(--shadow-md);
}
.cart-summary h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-100); color: var(--gray-900); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--gray-600); }
.summary-row.total { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); padding-top: 0.75rem; border-top: 2px solid var(--gray-100); margin-top: 0.75rem; }
.empty-cart { text-align: center; padding: 4rem 2rem; }
.empty-cart svg { width: 80px; height: 80px; color: var(--gray-300); margin-bottom: 1.5rem; }

/* ============================================================
   Logowanie / rejestracja
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 7rem 1.5rem 2rem; }
.auth-box {
    background: var(--white); border-radius: var(--radius-2xl);
    padding: 2.5rem; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200);
}
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; background: var(--gray-100); padding: 0.375rem; border-radius: var(--radius-lg); }
.auth-tab {
    flex: 1; padding: 0.75rem; border: none; background: none;
    border-radius: var(--radius-md); font-weight: 700; cursor: pointer;
    color: var(--gray-600); transition: all 0.25s var(--ease-out);
}
.auth-tab.active { background: #fff; color: var(--purple-700); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.form-input {
    width: 100%; padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    font-size: 1rem; font-family: inherit; outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px var(--purple-100); }
.form-input::placeholder { color: var(--gray-400); }

/* ============================================================
   Dashboard + Admin
   ============================================================ */
.dashboard { padding: 8rem 1.5rem 4rem; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
@media (max-width: 1024px) { .dashboard { grid-template-columns: 1fr; } }
.sidebar {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 1.5rem;
    height: fit-content; position: sticky; top: 110px;
    box-shadow: var(--shadow-sm);
}
.sidebar-user { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); margin-bottom: 1.5rem; }
.sidebar-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--mint-500));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0 auto 0.75rem;
}
.sidebar-name { font-weight: 800; color: var(--gray-900); }
.sidebar-email { font-size: 0.85rem; color: var(--gray-500); word-break: break-all; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-radius: var(--radius-lg);
    color: var(--gray-600); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; background: none; width: 100%;
    transition: background 0.2s, color 0.2s, translate 0.25s var(--ease-out);
}
.sidebar-link:hover { background: var(--purple-50); color: var(--purple-700); translate: 3px 0; }
.sidebar-link.active { background: var(--purple-100); color: var(--purple-700); }
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.dashboard-content {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 2rem; min-height: 500px;
    box-shadow: var(--shadow-sm);
}
.dashboard-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--gray-900); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
    background: linear-gradient(135deg, var(--purple-50), var(--mint-50));
    border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 1.5rem;
}
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.admin-table-wrapper { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
.admin-table th { background: var(--gray-50); padding: 1rem; text-align: left; font-weight: 700; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.admin-table td { padding: 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.admin-table tr:hover td { background: var(--gray-50); }

.status-badge, .homework-status {
    display: inline-block; padding: 0.28rem 0.8rem; border-radius: 100px;
    font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.status-completed, .status-reviewed { background: var(--mint-100); color: var(--mint-700); }
.status-pending { background: var(--yellow-100); color: var(--yellow-700); }

.homework-upload {
    border: 2px dashed var(--gray-300); border-radius: var(--radius-xl);
    padding: 3rem 2rem; text-align: center; cursor: pointer;
    background: var(--gray-50);
    transition: border-color 0.3s, background 0.3s;
}
.homework-upload:hover { border-color: var(--purple-400); background: var(--purple-50); }
.homework-upload svg { width: 48px; height: 48px; color: var(--purple-400); margin-bottom: 1rem; }
.homework-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.homework-item {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 1rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}

/* Elementy kursu osadzone w dashboardzie (legacy) */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--gray-200); padding-bottom: 0.5rem; flex-wrap: wrap; }
.tab-btn { padding: 0.75rem 1.25rem; border-radius: var(--radius-md); border: none; background: none; font-weight: 700; color: var(--gray-500); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.tab-btn:hover { color: var(--purple-600); background: var(--purple-50); }
.tab-btn.active { color: var(--purple-700); background: var(--purple-100); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s var(--ease-out); }
.notes-textarea {
    width: 100%; min-height: 150px; padding: 1rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
    font-family: inherit; font-size: 1rem; resize: vertical; outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.notes-textarea:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px var(--purple-100); }
.lesson-player {
    background: var(--gray-900); border-radius: var(--radius-xl);
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem; margin-bottom: 2rem;
    position: relative; overflow: hidden;
}
.play-btn {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--mint-500));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; cursor: pointer; border: none; color: #fff;
    transition: transform 0.3s var(--ease-out);
}
.play-btn:hover { transform: scale(1.1); }

/* ============================================================
   Stopka
   ============================================================ */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 4.5rem 1.5rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-logo { display: inline-flex; margin-bottom: 1.25rem; }
.footer-logo-img {
    height: 64px; width: auto; display: block; object-fit: contain;
    background: #fff; padding: 6px 18px; border-radius: 100px;
    box-shadow: var(--shadow-md);
}
.footer-desc { font-size: 0.95rem; line-height: 1.7; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--gray-400); text-decoration: none; font-size: 0.95rem; transition: color 0.2s, translate 0.25s var(--ease-out); display: inline-block; }
.footer-links a:hover { color: var(--mint-300); translate: 3px 0; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--gray-800); text-align: center; font-size: 0.875rem; }

/* ============================================================
   Toast
   ============================================================ */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 1rem 1.5rem; box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--mint-500);
    display: flex; align-items: center; gap: 0.75rem;
    animation: slideInRight 0.35s var(--ease-out);
    min-width: 300px; font-weight: 600; color: var(--gray-800);
}
.toast.error { border-left-color: var(--red-500); }

/* ============================================================
   Modal: darmowa lekcja
   ============================================================ */
.lead-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lead-modal.is-open { display: flex; }
.lead-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(22, 18, 31, 0.4);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    animation: leadFade 0.3s ease both;
}
.lead-modal-card {
    position: relative; z-index: 1;
    background: var(--white); border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: 0 40px 100px -20px rgba(22, 18, 31, 0.4);
    max-width: 780px; width: 100%;
    padding: 2.6rem 2.6rem 2rem;
    animation: leadPop 0.5s var(--ease-out) both;
    max-height: calc(100vh - 3rem); overflow-y: auto;
}
.lead-modal-close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.lead-modal-close:hover { background: var(--gray-50); color: var(--gray-900); transform: rotate(90deg); }
.lead-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 1.8rem; }
.lead-form { display: flex; flex-direction: column; gap: 1.1rem; }
.lead-field { display: flex; flex-direction: column; gap: 0.35rem; }
.lead-field span { font-size: 0.92rem; font-weight: 700; color: var(--gray-900); }
.lead-field input {
    padding: 0.9rem 1.2rem; border: 2px solid var(--gray-200);
    border-radius: 100px; font-size: 1rem; font-family: inherit;
    background: var(--gray-50); outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lead-field input:focus { border-color: var(--purple-400); background: #fff; box-shadow: 0 0 0 4px var(--purple-100); }
.lead-info { display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.lead-info-main { font-size: 1.25rem; line-height: 1.5; color: var(--gray-800); }
.lead-info-main strong { font-weight: 800; color: var(--gray-900); }
.lead-info-sub { font-size: 1.02rem; line-height: 1.55; color: var(--gray-600); }
.lead-purple { color: var(--purple-600); font-weight: 800; }
.lead-submit {
    display: block; margin: 0 auto; padding: 1rem 3.2rem;
    background: var(--grad-brand); color: #fff;
    font-weight: 800; font-size: 1.1rem; font-family: inherit;
    border: none; border-radius: 100px; cursor: pointer;
    box-shadow: 0 14px 34px -10px rgba(140, 82, 255, 0.55);
    animation: ctaGlow 2.4s ease-out infinite;
    transition: transform 0.25s var(--ease-out);
}
.lead-submit:hover { transform: translateY(-2px) scale(1.02); }
.lead-submit:active { transform: scale(0.97); }
@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leadPop { from { opacity: 0; transform: translateY(28px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
    .lead-modal-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .lead-modal-card { padding: 2rem 1.4rem 1.6rem; }
    .lead-info { text-align: center; }
}

/* ============================================================
   Symbole matematyczne w tle
   ============================================================ */
#bgSymbolsLayer { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; }
.bg-symbol { position: absolute; display: block; animation: bgSymFloat 9s ease-in-out infinite; will-change: transform; }
@keyframes bgSymFloat {
    0%, 100% { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
    30% { transform: translate(5px, -14px) rotate(calc(var(--rot, 0deg) + 4deg)); }
    65% { transform: translate(-4px, -7px) rotate(calc(var(--rot, 0deg) - 3deg)); }
}
@media (max-width: 900px) { #bgSymbolsLayer { display: none; } }

/* ============================================================
   Narzędzia
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.view { animation: fadeIn 0.4s var(--ease-out); }

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width: 1023px) {
    .hero-card { padding: 1.8rem 1.5rem; }
    .hero-guarantee { max-width: 100%; }
}
@media (max-width: 640px) {
    .section { padding: 4rem 1rem; }
    .section-header { margin-bottom: 2.5rem; }
    .logo-img { height: 38px; max-width: 200px; }
    .trust-bar { margin-top: 70px; }
    .trust-pill { font-size: 0.82rem; padding: 0.55rem 1.2rem; }
    .hero-title-new { font-size: 1.42rem; }
    .hero-cta-row { flex-direction: column; align-items: stretch; gap: 0.9rem; padding: 0.8rem; border-radius: var(--radius-xl); }
    .hero-cta-row .hero-cta-note { text-align: center; font-size: 0.9rem; white-space: normal; }
    .btn-cta-purple { justify-content: center; }
    .hvc2-play-circle { width: 64px; height: 64px; }
    .grid-2 { grid-template-columns: 1fr; }
    .free-lesson { padding: 3rem 1.25rem; margin: 3rem 1rem; }
    .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
    .toast { min-width: 0; }
}

/* ============================================================
   Dostępność — ograniczony ruch
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; translate: 0 0; }
    .pricing-card::before, .pricing-card::after,
    .why-arrow .why-dot { display: none; }
}

/* ============================================================
   Światełko biegnące po obramówce (glow-rim)
   Klasa .glow-rim — białe światło (na fioletowym tle)
   Klasa .rim-purple — fioletowe światło (na jasnym tle)
   ============================================================ */
@property --gb-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes gbSpin { to { --gb-angle: 360deg; } }

.glow-rim { position: relative; }
.glow-rim::before {
    content: ''; position: absolute; inset: -2px;
    border-radius: inherit; padding: 2px;
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(255, 255, 255, 0.4) 0.05turn,
        rgba(255, 255, 255, 0.95) 0.1turn,
        transparent 0.18turn
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: gbSpin 5s linear infinite;
    pointer-events: none; z-index: 2;
}
.rim-purple::before {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.3) 0.05turn,
        rgba(169, 123, 255, 0.9) 0.1turn,
        transparent 0.18turn
    );
    animation-duration: 7s;
}

@media (prefers-reduced-motion: reduce) {
    .glow-rim::before,
    .pricing-card::before,
    .pricing-card::after { animation: none; opacity: 0; }
}

/* ============================================================
   Fioletowe światło biegnące po obramówce CTA w hero
   (działa także przy prefers-reduced-motion — tylko ten element)
   ============================================================ */
.hero-cta-row.glow-rim::before {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.25) 0.05turn,
        rgba(169, 123, 255, 0.95) 0.1turn,
        rgba(255, 255, 255, 1) 0.13turn,
        rgba(169, 123, 255, 0.95) 0.16turn,
        transparent 0.24turn
    );
    animation: gbSpin 4.5s linear infinite !important;
    opacity: 1 !important;
    display: block !important;
    inset: -2.5px;
    padding: 2.5px;
}

/* Jasnofioletowe swiatlo z poswiata po obwodce fioletowej pigulki zaufania (dziala tez przy prefers-reduced-motion) */
.trust-pill.glow-rim::before {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(169, 123, 255, 0.35) 0.04turn,
        rgba(201, 168, 255, 0.9) 0.09turn,
        #e9ddff 0.13turn,
        rgba(201, 168, 255, 0.9) 0.17turn,
        rgba(169, 123, 255, 0.35) 0.22turn,
        transparent 0.3turn
    );
    animation: gbSpin 4.5s linear infinite !important;
    animation-delay: -1.8s;
    opacity: 1 !important;
    display: block !important;
    inset: -3px;
    padding: 3px;
    filter: drop-shadow(0 0 6px rgba(169, 123, 255, 0.9)) drop-shadow(0 0 14px rgba(140, 82, 255, 0.55));
}

/* Drugie swiatlo w przeciwnej fazie — jedno startuje z gory, drugie z dolu */
.trust-pill.glow-rim::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(169, 123, 255, 0.35) 0.04turn,
        rgba(201, 168, 255, 0.9) 0.09turn,
        #e9ddff 0.13turn,
        rgba(201, 168, 255, 0.9) 0.17turn,
        rgba(169, 123, 255, 0.35) 0.22turn,
        transparent 0.3turn
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: gbSpin 4.5s linear infinite !important;
    animation-delay: -4.05s; /* pol okresu wzgledem ::before — zawsze po przeciwnej stronie, nigdy sie nie spotkaja */
    opacity: 1 !important;
    display: block !important;
    filter: drop-shadow(0 0 6px rgba(169, 123, 255, 0.9)) drop-shadow(0 0 14px rgba(140, 82, 255, 0.55));
    pointer-events: none;
    z-index: 2;
}

/* ============================================================
   Dwie fioletowe poswiaty na obwodce karty Pakiet VIP
   (ten sam kierunek, pol okresu roznicy — nigdy sie nie spotkaja;
   dziala tez przy prefers-reduced-motion)
   ============================================================ */
.pricing-card.featured::before,
.pricing-card.featured::after {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.25) 0.04turn,
        rgba(169, 123, 255, 0.9) 0.09turn,
        #e9ddff 0.13turn,
        rgba(169, 123, 255, 0.9) 0.17turn,
        rgba(140, 82, 255, 0.25) 0.22turn,
        transparent 0.3turn
    );
    animation: gbSpin 5s linear infinite !important;
    animation-delay: 0s;
    opacity: 1 !important;
    display: block !important;
    inset: -2.5px;
    padding: 2.5px;
    filter: drop-shadow(0 0 6px rgba(169, 123, 255, 0.9)) drop-shadow(0 0 14px rgba(140, 82, 255, 0.55));
}
.pricing-card.featured::after {
    animation-delay: -2.5s; /* pol okresu wzgledem ::before — zawsze po przeciwnej stronie */
}

/* ============================================================
   Konkurs — Ucz się i zarabiaj
   ============================================================ */
.contest-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; max-width: 1080px; margin: 0 auto; }
@media (max-width: 900px) { .contest-grid { grid-template-columns: 1fr; } }

.contest-info { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); padding: 2.25rem; box-shadow: var(--shadow-md); }
.contest-info-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1.5rem; }
.contest-info-title svg { width: 24px; height: 24px; color: var(--purple-600); }

.contest-steps { list-style: none; display: flex; flex-direction: column; }
.contest-step { display: flex; gap: 1rem; padding-bottom: 1.4rem; position: relative; }
.contest-step:not(:last-child)::before {
    content: ''; position: absolute; left: 17px; top: 40px; bottom: 2px;
    width: 2px; background: linear-gradient(var(--purple-200), var(--mint-200)); border-radius: 2px;
}
.cs-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-purple);
}
.contest-step:nth-child(even) .cs-num { background: linear-gradient(135deg, var(--mint-500), var(--mint-700)); box-shadow: var(--shadow-mint); }
.cs-body strong { display: block; color: var(--gray-900); font-size: 1.02rem; margin-bottom: 0.15rem; }
.cs-body span { color: var(--gray-600); font-size: 0.92rem; line-height: 1.5; }

.contest-rules { margin-top: 0.25rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--gray-50); }
.contest-rules summary {
    cursor: pointer; padding: 0.9rem 1.2rem; font-weight: 800; color: var(--gray-800);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.contest-rules summary::-webkit-details-marker { display: none; }
.contest-rules summary svg { width: 18px; height: 18px; color: var(--purple-500); transition: transform 0.3s var(--ease-out); }
.contest-rules[open] summary svg { transform: rotate(180deg); }
.contest-rules ul { padding: 0 1.2rem 1rem 2.1rem; display: flex; flex-direction: column; gap: 0.45rem; color: var(--gray-600); font-size: 0.9rem; }
.contest-rules li::marker { color: var(--purple-500); }

.contest-jackpot {
    margin-top: 1rem; display: flex; gap: 0.75rem; align-items: flex-start;
    background: linear-gradient(135deg, var(--purple-50), var(--mint-50));
    border: 1px solid var(--purple-200); border-radius: var(--radius-lg); padding: 1rem 1.2rem;
}
.contest-jackpot svg { width: 26px; height: 26px; color: var(--purple-600); flex-shrink: 0; margin-top: 2px; }
.contest-jackpot p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.5; margin: 0; }

.contest-signup {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl); padding: 2.25rem; box-shadow: var(--shadow-xl);
    text-align: center; position: relative;
}
.cs-prize-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.cs-prize {
    font-size: 4rem; font-weight: 800; line-height: 1; margin: 0.25rem 0 0.5rem;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cs-prize span { font-size: 1.6rem; }
.cs-contest-name { font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.cs-status { display: inline-block; padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 800; margin-bottom: 0.6rem; }
.cs-status.is-waiting { background: var(--gray-100); color: var(--gray-600); }
.cs-status.is-open { background: var(--mint-100); color: var(--mint-700); }
.cs-status.is-live { background: var(--red-100); color: var(--red-700); }
.cs-timer { font-size: 2rem; font-weight: 800; color: var(--gray-900); font-variant-numeric: tabular-nums; margin-bottom: 1.5rem; }
.cs-form { display: flex; flex-direction: column; gap: 0.8rem; }
.cs-form.is-disabled input, .cs-form.is-disabled button { opacity: 0.45; pointer-events: none; }
.cs-form input[type="text"], .cs-form input[type="email"], .cs-form input[type="tel"] {
    width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg); font-size: 1rem; font-family: inherit; outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.cs-form input:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px var(--purple-100); }
.cs-consent { display: flex; gap: 0.5rem; align-items: center; font-size: 0.82rem; color: var(--gray-500); text-align: left; }
.cs-consent a { color: var(--purple-600); font-weight: 700; }
.cs-participants { margin-top: 1.25rem; font-size: 0.95rem; color: var(--gray-600); }
.cs-participants strong { color: var(--purple-700); font-size: 1.1rem; }
.cs-note { margin-top: 0.6rem; font-size: 0.78rem; color: var(--gray-400); }

/* Swiatlo po obwodce karty zapisu (dziala tez przy prefers-reduced-motion) */
.contest-signup.glow-rim::before {
    background: conic-gradient(
        from var(--gb-angle, 0deg),
        transparent 0turn,
        rgba(140, 82, 255, 0.25) 0.05turn,
        rgba(169, 123, 255, 0.95) 0.1turn,
        rgba(255, 255, 255, 1) 0.13turn,
        rgba(169, 123, 255, 0.95) 0.16turn,
        transparent 0.24turn
    );
    animation: gbSpin 5.5s linear infinite !important;
    animation-delay: -2.7s;
    opacity: 1 !important;
    display: block !important;
}

@media (max-width: 640px) {
    .contest-info, .contest-signup { padding: 1.5rem; }
    .cs-prize { font-size: 3rem; }
}

/* ============================================================
   Konkurs — podstrona (regulamin + zapis + PDF)
   ============================================================ */
.contest-reg-list { list-style: none; counter-reset: reg; display: flex; flex-direction: column; gap: 0.95rem; }
.contest-reg-list li { counter-increment: reg; display: flex; gap: 0.9rem; }
.contest-reg-list li::before {
    content: counter(reg); width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--grad-brand);
    box-shadow: var(--shadow-purple); margin-top: 1px;
}
.contest-reg-list li:nth-child(even)::before { background: linear-gradient(135deg, var(--mint-500), var(--mint-700)); box-shadow: var(--shadow-mint); }
.contest-reg-list .reg-body { flex: 1; min-width: 0; }
.contest-reg-list strong { display: block; color: var(--gray-900); font-size: 1rem; line-height: 1.35; margin-bottom: 0.2rem; }
.contest-reg-list p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.contest-reg-list li { gap: 0.85rem; }
.contest-reg-list li::before { margin-top: 1px; }
.contest-reg-list a { color: var(--purple-600); font-weight: 700; }

.contest-dl-wrap { margin-top: 1rem; display: none; }
.contest-dl-wrap.is-visible { display: block; animation: fadeInUp 0.5s var(--ease-out) both; }
.contest-dl {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 1.5rem; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--mint-500), var(--mint-700)); color: #fff;
    font-weight: 800; font-size: 1.02rem; text-decoration: none;
    box-shadow: var(--shadow-mint);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.contest-dl:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(94, 168, 135, 0.6); }
.contest-dl svg { width: 20px; height: 20px; }
.contest-dl-hint { margin-top: 0.6rem; font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }
.contest-dl-hint strong { color: var(--gray-800); }

/* ==========================================================
   POPRAWKI MOBILNE DLA /course oraz /contest
   ========================================================== */
@media screen and (max-width: 768px) {
    /* Ogólne zabezpieczenie przed wychodzeniem treści poza ekran */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    /* Dopasowanie nagłówków sekcji na telefonie */
    .why-hero, .section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .why-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    /* Siatki (gridy) przełączamy w jedną kolumnę */
    .contest-grid, .why-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Karty i panele konkursowe/kursowe */
    .contest-signup, .contest-info, .pricing-card {
        padding: 1.25rem !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Skalowanie wielkich cen i nagłówków na mobile */
    .cs-prize {
        font-size: 2.5rem !important;
    }

    /* Tabele w panelach (jeśli są na kursie/konkursie) */
    .admin-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   KOMPLEKSOWE POPRAWKI RWD DLA STRONY GŁÓWNEJ (MOBILE & TABLET)
   ============================================================ */

@media screen and (max-width: 1024px) {
    /* Bezpieczniejsze marginesy sekcji na tabletach i mniejszych laptopach */
    .section {
        padding: 5rem 1.25rem;
    }
    
    .hero-inner {
        gap: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* 1. Globalne zabezpieczenie przed poziomym paskiem przewijania */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* 2. Nagłówek i Pigułka zaufania na górze */
    .header {
        top: 0.5rem;
        width: 96%;
    }
    
    .trust-bar {
        margin-top: 70px;
        padding: 0 1rem;
    }
    
    .trust-pill {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
        text-align: center;
    }

    /* 3. Sekcja Hero - pełna responsywność tekstu i kart */
    .hero {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .hero-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-xl);
    }

    .hero-title-new {
        font-size: 1.35rem !important;
        line-height: 1.35;
        margin-bottom: 1.2rem;
    }

    .hero-sub-new {
        font-size: 1rem !important;
        margin-bottom: 1.2rem;
    }

    .hero-guarantee {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    /* Przycisk CTA "Darmowa lekcja" pod hero */
    .hero-cta-wrap {
        padding: 0 1rem;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0.75rem;
        border-radius: var(--radius-xl);
        width: 100%;
    }

    .hero-cta-row .hero-cta-note {
        text-align: center;
        font-size: 0.88rem;
        white-space: normal;
    }

    .btn-cta-purple {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    /* 4. Siatki (Grids) przełączone w jedną kolumnę na mobile */
    .why-grid, 
    .features-grid, 
    .pricing-grid, 
    .price-compare, 
    .cart-grid, 
    .dashboard, 
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 5. Sekcja "Dlaczego my?" – panele i karty */
    .why-hero {
        padding: 7rem 1rem 2rem !important;
    }

    .why-title {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }

    .why-panel {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }

    .why-panel h3 {
        font-size: 1.5rem;
    }

    /* 6. Karty cennika i porównania cen */
    .pricing-card {
        padding: 1.75rem 1.25rem;
    }

    .pricing-price .amount {
        font-size: 2.8rem;
    }

    .price-compare-card {
        padding: 2rem 1.25rem;
    }

    .pcc-price {
        font-size: 3rem;
    }

    /* 7. Darmowa lekcja (fioletowy blok na dole) */
    .free-lesson {
        padding: 2.5rem 1rem;
        margin: 2.5rem 1rem;
        border-radius: var(--radius-xl);
    }

    .phone-form {
        flex-direction: column;
        align-items: stretch;
    }

    .phone-form input {
        min-width: 0;
        width: 100%;
    }

    .phone-form button {
        width: 100%;
    }

    /* 8. Toast powiadomień na dole ekranu */
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: 0;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    /* Bardzo małe ekrany (np. iPhone SE) */
    .hero-title-new {
        font-size: 1.25rem !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
}

/* ==========================================================
   ODCHUDZENIE I ZMNIEJSZENIE PASKA NAWIGACJI NA TELEFONACH
   ========================================================== */
@media screen and (max-width: 768px) {
    .header {
        top: 0.4rem !important;
        width: 92% !important; /* Zwęża pasek, żeby ładniej "pływał" z marginesami */
        border-radius: 50px !important;
        box-shadow: 0 4px 16px rgba(22, 18, 31, 0.08) !important;

    }
    

    .header-inner {
        height: 46px !important; /* Obniża wysokość paska do minimum */
        padding: 0 0.75rem !important; /* Zmniejsza boczne marginesy */
    }

    .logo-img {
        height: 26px !important; /* Zmniejsza logo, by pasowało do wąskiego paska */
        max-width: 150px !important;
    }

    .header-actions {
        gap: 0.35rem !important; /* Zmniejsza odstępy między ikonami/przyciskami */
    }

    /* Dopasowanie przycisków w pątku na mobile, żeby nie wystawały */
    .header-actions .btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.78rem !important;
        border-radius: var(--radius-md) !important;
    }

    .cart-btn, .mobile-menu-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: var(--radius-md) !important;
    }
    
    .cart-btn svg, .mobile-menu-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}
/* Opinie: opis w jednej linii (zwija sie ponownie na mobile) */
.desc-nowrap { white-space: nowrap; }
@media (max-width: 768px) { .desc-nowrap { white-space: normal; } }

/* Opinie: szerszy naglowek, aby opis w 1 linii byl prawdziwie wycentrowany */
.tsti-section .section-header { max-width: 900px; }
/* ============ DLA CZEGO MY - rdzen, kropka, wezly, reveal ============ */
.why-path { position: relative; max-width: 1020px; margin: 0 auto; padding: 2rem 0 2.5rem; }

.wp-spine { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px; background: var(--gray-200); border-radius: 3px; z-index: 1; }
.wp-spine-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, #a06bff 0%, var(--purple-500) 100%); border-radius: 3px; box-shadow: 0 0 16px rgba(140, 82, 255, 0.55); transition: height 0.65s cubic-bezier(0.22, 1, 0.36, 1); }

.wp-dot { position: absolute; left: 50%; top: 0; z-index: 4; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 5px solid var(--purple-500); box-shadow: 0 0 0 7px rgba(140, 82, 255, 0.15), 0 0 26px rgba(140, 82, 255, 0.55); transition: top 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.wp-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(140, 82, 255, 0.55); animation: wpPulse 2.4s ease-out infinite; }
@keyframes wpPulse { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2.8); opacity: 0; } }

.wp-node { position: absolute; left: 50%; z-index: 3; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: var(--gray-400); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease, color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease; }
.wp-node.active { border-color: var(--purple-500); color: var(--purple-600); background: var(--purple-100); transform: scale(1.14); box-shadow: 0 8px 20px rgba(140, 82, 255, 0.35); }
.wp-node.active::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(140, 82, 255, 0.6); animation: wpNodeRipple 0.8s ease-out forwards; }
@keyframes wpNodeRipple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }

.wp-link { position: absolute; z-index: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(140, 82, 255, 0.15), rgba(140, 82, 255, 0.85)); transform: scaleX(0); transition: transform 0.55s var(--ease-out); opacity: 0.8; }
.wp-link.active { transform: scaleX(1); }

.why-tile { position: relative; z-index: 2; width: min(44%, 430px); display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl); box-shadow: 0 16px 40px -18px rgba(22, 18, 31, 0.16); padding: 1.3rem 1.5rem; margin-bottom: 2.6rem; opacity: 0; transform: translateY(46px) scale(0.97); filter: blur(10px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), filter 0.85s var(--ease-out), box-shadow 0.3s ease; will-change: opacity, transform, filter; }
.why-tile.wt-left { margin-right: auto; }
.why-tile.wt-right { margin-left: auto; }
.why-tile.in-view { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.why-tile.in-view:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -22px rgba(140, 82, 255, 0.30); }
.why-tile.in-view:hover .wt-icon { background: var(--purple-500); color: #fff; }
.wt-icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; background: var(--purple-100); color: var(--purple-600); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, color 0.3s ease; }
.wt-body { min-width: 0; }
.wt-title { font-weight: 800; color: var(--purple-600); font-size: 1.05rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.wt-desc { color: var(--gray-500); font-size: 0.93rem; line-height: 1.5; }
.why-path-cta { text-align: center; margin-top: 1.5rem; position: relative; z-index: 2; }

@media (max-width: 768px) {
    .why-tile { width: 70%; padding: 1.1rem 1.2rem; gap: 0.9rem; margin-bottom: 1.9rem; }
    .wt-icon { width: 46px; height: 46px; border-radius: 13px; }
    .wt-title { font-size: 0.98rem; }
    .wt-desc { font-size: 0.88rem; }
    .wp-node { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 0.72rem; }
    .wp-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-width: 4px; }
    .wp-spine { width: 2px; margin-left: -1px; }
}
@media (prefers-reduced-motion: reduce) {
    .why-tile { opacity: 1; transform: none; filter: none; transition: none; }
    .wp-dot::after, .wp-node.active::after { animation: none; }
    .wp-link { transition: none; }
}

/* ============ PISEMNA GWARANCJA (złoto) ============ */
.guarantee-section { padding-top: 0.5rem; }
.guarantee-card {
    position: relative; max-width: 920px; margin: 0 auto; text-align: center;
    background: linear-gradient(#fffdf6, #fffdf6) padding-box,
                linear-gradient(135deg, #e9c767 0%, #b8860b 32%, #f7e7a0 58%, #c9a227 100%) border-box;
    border: 2px solid transparent; border-radius: var(--radius-2xl);
    box-shadow: 0 30px 70px -30px rgba(184, 134, 11, 0.38);
    padding: 3rem 2.5rem 2.6rem; overflow: hidden;
}
.guarantee-card::before {
    content: ''; position: absolute; left: -20%; right: -20%; top: -45%; height: 75%;
    background: radial-gradient(ellipse at center, rgba(247, 231, 160, 0.55), transparent 68%);
    pointer-events: none;
}
.guarantee-seal {
    position: relative; z-index: 1;
    width: 74px; height: 74px; margin: 0 auto 1.4rem; border-radius: 50%;
    background: linear-gradient(135deg, #f7e7a0 0%, #d4af37 55%, #b8860b 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(184, 134, 11, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.55);
}
.guarantee-title {
    position: relative; z-index: 1;
    font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 800; color: var(--gray-900);
    letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 0.55rem;
}
.guarantee-title .g-old {
    background: linear-gradient(100deg, #a67c00 0%, #d4af37 48%, #b8860b 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.guarantee-lead {
    position: relative; z-index: 1;
    font-size: 1.15rem; font-weight: 700; color: var(--gray-600); margin: 0 0 1.8rem;
}
.guarantee-steps-label {
    position: relative; z-index: 1;
    display: inline-block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: #a67c00; background: rgba(233, 199, 103, 0.16); border: 1px solid rgba(201, 162, 39, 0.4);
    padding: 0.38rem 0.95rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.guarantee-steps { position: relative; z-index: 1; display: flex; align-items: stretch; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.guarantee-step {
    flex: 1 1 220px; max-width: 285px; text-align: left;
    background: #fff; border: 1px solid #eee3b8; border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem; box-shadow: 0 10px 26px -14px rgba(184, 134, 11, 0.3);
}
.guarantee-step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #e9c767, #b8860b); color: #fff;
    font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.65rem;
}
.guarantee-step p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--gray-700); line-height: 1.45; }
.guarantee-step strong { color: #8a6d1f; }
.guarantee-arrow { align-self: center; color: #c9a227; flex-shrink: 0; }
.guarantee-cta { position: relative; z-index: 1; margin-top: 2.1rem; }
.btn-gold {
    background: linear-gradient(135deg, #e9c767, #b8860b); color: #fff;
    box-shadow: 0 12px 28px -10px rgba(184, 134, 11, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(184, 134, 11, 0.65); }

@media (max-width: 768px) {
    .guarantee-card { padding: 2.25rem 1.35rem; margin: 0 1rem; }
    .guarantee-step { max-width: 100%; }
    .guarantee-arrow { transform: rotate(90deg); margin: -0.4rem 0; }
}

/* ---------- animacje sekcji porownania cen ---------- */
.price-compare-card { animation: pccCardGlow 3.6s ease-in-out infinite; }
.price-compare-card::after {
    content: ''; position: absolute; top: -130px; right: -130px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 45%, transparent 66%);
    animation: pccOrb 9s ease-in-out infinite, pccFlicker 3.7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pccOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-160px, 150px) scale(1.35); }
    100% { transform: translate(-50px, 300px) scale(1.1); }
}
@keyframes pccFlicker {
    0%, 100% { opacity: 0.55; }
    40% { opacity: 1; }
    58% { opacity: 0.3; }
    74% { opacity: 0.9; }
}
@keyframes pccCardGlow {
    0%, 100% { box-shadow: var(--shadow-purple), 0 0 0 0 rgba(216, 180, 254, 0); }
    50% { box-shadow: var(--shadow-purple), 0 0 56px 5px rgba(216, 180, 254, 0.5); }
}
@keyframes pccOrb {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-70px, 90px) scale(1.25); }
}
@keyframes pccSavePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(52, 169, 123, 0.45); }
    50% { transform: scale(1.045); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.28), 0 0 32px 6px rgba(52, 169, 123, 0.55); }
}
@keyframes pccShimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}
/* Animacje sekcji porownania celowo NIE sa wylaczane przy prefers-reduced-motion -
   sa dekoracyjne i uzytkownik oczekuje ich na stronie (decyzja biznesowa). */

@media (max-width: 480px) {
    .pcc-save { font-size: 1rem; padding: 0.55rem 1.15rem; }
}

/* Animacje sekcji porownania cen - ZAWSZE aktywne (jak migajaca poswiata przycisku
   "Darmowa lekcja"). ID + !important celowo wygrywaja z globalna regula
   prefers-reduced-motion, ktora w innym wypadku je wycinala. */
@media (prefers-reduced-motion: reduce) {
    #comparison .price-compare-card {
        animation-name: pccCardGlow !important;
        animation-duration: 3.6s !important;
        animation-timing-function: ease-in-out !important;
        animation-iteration-count: infinite !important;
    }
    #comparison .price-compare-card::after {
        animation-name: pccOrb, pccFlicker !important;
        animation-duration: 9s, 3.7s !important;
        animation-timing-function: ease-in-out, ease-in-out !important;
        animation-iteration-count: infinite, infinite !important;
    }
    #comparison .pcc-save {
        animation-name: pccSavePulse !important;
        animation-duration: 2.4s !important;
        animation-timing-function: ease-in-out !important;
        animation-iteration-count: infinite !important;
    }
    #comparison .pcc-save strong {
        animation-name: pccShimmer !important;
        animation-duration: 2.8s !important;
        animation-timing-function: linear !important;
        animation-iteration-count: infinite !important;
    }
}

/* ============ CENNIK: SUWAK RAT + ODRACZANA PLATNOSC ============ */
.pricing-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pt-label { font-weight: 700; font-size: 0.98rem; color: var(--gray-400); transition: color 0.25s ease; }
.pt-label.is-active { color: var(--gray-900); }
.pricing-toggle {
    width: 62px; height: 33px; border-radius: 999px; border: none; padding: 0;
    background: var(--gray-200); position: relative; cursor: pointer;
    transition: background 0.3s ease; flex-shrink: 0;
}
.pricing-toggle.is-installments { background: linear-gradient(135deg, var(--purple-500), var(--purple-600)); }
.pt-knob {
    position: absolute; top: 3.5px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s var(--ease-out);
}
.pricing-toggle.is-installments .pt-knob { transform: translateX(28px); }
.pricing-toggle:focus-visible { outline: 3px solid rgba(140, 82, 255, 0.4); outline-offset: 2px; }

.pricing-defer {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 0 auto 2.5rem; width: fit-content;
    padding: 0.55rem 1.3rem; border-radius: 999px;
    background: var(--purple-50); border: 1px solid var(--purple-100);
    color: var(--purple-700); font-weight: 800; font-size: 1.02rem;
}
.pricing-price .amount { display: inline-block; }
.pricing-price .amount.pop { animation: pricePop 0.35s var(--ease-out); }
@keyframes pricePop {
    0% { transform: translateY(9px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pricing-price .amount.pop { animation: none; }
}

/* ============ CENNIK: pozycje VIP wyszarzone w BASIC ============ */
.pricing-features li.pf-off { color: var(--gray-300); }
.pricing-features li.pf-off svg { color: var(--gray-200); }

/* ============ DARMOWA LEKCJA - sam przycisk ============ */
.free-lesson-btn {
    margin-top: 1.75rem;
    padding: 1.05rem 2.4rem; border-radius: 100px;
    background: #fff; color: var(--purple-700);
    font-weight: 800; font-size: 1.05rem; font-family: inherit;
    border: none; cursor: pointer; white-space: nowrap;
    box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.free-lesson-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.45); }
.free-lesson-btn:active { transform: scale(0.97); }

/* ============ OCHRONA PRZED POZIOMYM SCROLLEM (mobile/tablet) ============ */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

/* ============ MOBILE FIX: sciezka Dlaczego my - os na lewo ============ */
@media (max-width: 768px) {
    .wp-spine { left: 26px; margin-left: -1px; right: auto; }
    .wp-node { left: 26px; margin-left: -16px; }
    .wp-dot { left: 26px; margin-left: -9px; }
    .why-tile.wt-left, .why-tile.wt-right {
        width: auto; max-width: none;
        margin-left: 64px; margin-right: 10px;
    }
}

/* ============ MOBILE FIX: naglowek - przycisk CTA ikonowy ============ */
@media (max-width: 640px) {
    .hfl-label { display: none; }
    #headerFreeLessonBtn { padding: 0.55rem 0.7rem; flex-shrink: 0; white-space: nowrap; }
    .header-actions { gap: 0.3rem; }
    .header-inner { padding: 0.4rem 0.55rem 0.4rem 0.75rem; gap: 0.4rem; }
    .btn-sm { padding: 0.45rem 0.85rem; }
}