/* ========== Dark theme tokens ========== */
:root {
    --bg: #0f172a;
    --surface: #111827;
    --glass: rgba(255, 255, 255, .06);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand: #2563eb;
    --brand2: #22d3ee;
    --danger: #ef4444;
    --ok: #22c55e;
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
    --radius: 16px;
}

/* reset */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, "Segoe UI", Roboto, Arial;
    background: var(--bg);
    color: var(--text);
}

/* tła */
.bg-stars {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none
}

.bg-radial,
.bg-radial-2 {
    position: fixed;
    inset: -20vw -30vw auto auto;
    width: 60vw;
    height: 60vw;
    z-index: -2;
    background: radial-gradient(50% 50% at 50% 50%, rgba(34, 211, 238, .14) 0%, rgba(37, 99, 235, .08) 35%, transparent 70%);
    filter: blur(30px)
}

.bg-radial-2 {
    inset: auto auto -25vw -25vw;
    background: radial-gradient(50% 50%, rgba(37, 99, 235, .12), rgba(34, 211, 238, .06), transparent 70%)
}

/* kontener */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

/* ===== NAV ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: saturate(120%) blur(10px)
}

.nav.glass {
    background: linear-gradient(180deg, rgba(17, 24, 39, .82), rgba(17, 24, 39, .55))
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto
}

.brand {
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .3px
}

.menu {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-left: auto;
    margin-right: 12px
}

.menu ul {
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none
}

.menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color .15s, transform .15s
}

.menu a:hover {
    color: #fff;
    transform: translateY(-1px)
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, opacity .15s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    box-shadow: var(--shadow)
}

.btn-ghost {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .1)
}

.btn-sm {
    padding: 8px 12px
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    gap: 4px;
    flex-direction: column;
    justify-content: center
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, .7)
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    z-index: 65;
    transition: opacity .25s
}

.nav-backdrop.on {
    opacity: 1;
    pointer-events: auto
}

/* ===== MOBILE NAV (stabilne) ===== */
:root {
    --navH: 58px;
}

.nav-inner {
    min-height: var(--navH);
}

/* hamburger */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, .8);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

html[data-theme="light"] .menu-toggle span {
    background: rgba(0, 0, 0, .75);
}

/* backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    z-index: 65;
    transition: opacity .22s ease;
}

.nav-backdrop.on {
    opacity: 1;
    pointer-events: auto;
}

/* blokada scrolla ciała gdy menu otwarte */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* panel menu (szuflada z prawej) */
.menu {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    margin-right: 12px;
}

@media (max-width:900px) {
    .btn-primary[data-join] {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    /* układ: desktop -> mobile drawer */
    .menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        /* lepiej kontrolować szerokość drawer'a */
        width: min(420px, 86vw);
        left: auto;
        flex-direction: column;
        gap: 10px;
        padding: calc(var(--navH) + 10px) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
        border-left: 1px solid rgba(255, 255, 255, .08);
        background: #0b1220;
        z-index: 66;
        box-shadow: -24px 0 50px rgba(0, 0, 0, .45);
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.22, .61, .36, 1);
        height: 100dvh;
        /* stabilne na mobilach */
        overscroll-behavior: contain;
        /* bez „przebijania” scrolla */
    }

    html[data-theme="light"] .menu {
        background: #fff;
        border-color: rgba(0, 0, 0, .08);
    }

    .menu.open {
        transform: none;
    }

    .menu ul {
        display: grid;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu a {
        display: block;
        padding: 14px 12px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 800;
        text-decoration: none;
        color: var(--text);
        background: transparent;
        border: 1px solid transparent;
        min-height: 44px;
        /* target dotykowy */
        transition: background .15s, border-color .15s, transform .15s;
    }

    .menu a:hover {
        background: rgba(255, 255, 255, .06);
        transform: none;
    }

    html[data-theme="light"] .menu a:hover {
        background: rgba(0, 0, 0, .05);
    }

    /* delikatne separatory „sekcji” (opcjonalne) */
    .menu li+li a {
        border-top: 1px dashed rgba(255, 255, 255, .05);
    }

    html[data-theme="light"] .menu li+li a {
        border-top-color: rgba(0, 0, 0, .06);
    }
}

/* animacja hamburger -> „X” (opcjonalnie, wygląda lepiej) */
.menu.open~.menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu.open~.menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu.open~.menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* alternatywa: target po ID jeśli HTML odwraca kolejność elementów */
.menu.open+.menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu.open+.menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu.open+.menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 110px 0 60px
}

.hero-inner {
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto
}

.eyebrow {
    color: var(--brand2);
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 8px
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5.6vw, 56px);
    line-height: 1.1
}

.grad {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.lead {
    color: var(--muted);
    max-width: 760px
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap
}

.hero-blur {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent)
}

#rotateCursor {
    display: inline-block;
    width: .6ch;
    text-align: center;
    opacity: .85
}

@media (max-width:640px) {
    .hero h1 {
        font-size: clamp(26px, 6.2vw, 40px)
    }
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px) scale(.98);
    filter: blur(6px);
    transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
        transform .55s cubic-bezier(.22, .61, .36, 1),
        filter .55s;
}

.reveal-in,
.reveal.on {
    opacity: 1;
    transform: none;
    filter: none
}

.reveal[data-reveal="left"] {
    transform: translateX(-22px) scale(.98)
}

.reveal[data-reveal="right"] {
    transform: translateX(22px) scale(.98)
}

.reveal[data-reveal="tilt"] {
    transform: translateY(22px) rotateX(6deg) scale(.98)
}

.reveal-in[data-reveal="tilt"] {
    transform: none
}

/* ===== SEKCJE ===== */
.section {
    padding: 60px 20px
}

.section h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 32px);
    text-align: center
}

.muted {
    color: var(--muted)
}

.center {
    text-align: center
}

/* 2 kolumny */
.two-col {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto
}

.two-col>* {
    min-width: 0
}

@media (max-width:900px) {
    .two-col {
        grid-template-columns: 1fr
    }
}

/* listy/gain */
.ticks {
    padding-left: 18px;
    margin: 12px 0 0;
    color: var(--muted)
}

.ticks li {
    margin: 6px 0
}

.gain-list {
    margin: 10px 0 0;
    padding-left: 20px
}

.gain-list li {
    margin: 8px 0 10px;
    color: #d5e2ff
}

.gain-list b {
    color: #fff
}

/* ===== karty ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px auto 0;
    max-width: 1100px
}

@media (max-width:900px) {
    .cards {
        grid-template-columns: 1fr
    }
}

.card {
    background: linear-gradient(180deg, #111827, #0f172a);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 170, 255, .25)
}

.card-head {
    display: flex;
    align-items: center;
    gap: 10px
}

.card h3 {
    margin: 0
}

.card p,
.card li {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px
}

.price {
    font-weight: 800
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .12)
}

.pill-red {
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    border-color: rgba(239, 68, 68, .25)
}

.pill-blue {
    background: rgba(59, 130, 246, .12);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, .25)
}

.card-glow {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 25px 70px rgba(0, 0, 0, .45)
}

/* skeleton */
@keyframes sweep {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 200% 0
    }
}

.skel {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #243042 0%, #2a3850 50%, #243042 100%);
    background-size: 200% 100%;
    animation: sweep 1.2s linear infinite
}

/* ===== legit rail ===== */
.rail-wrap {
    position: relative;
    max-width: 1100px;
    margin: 16px auto 0;
    overflow: visible
}

.legit-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 220px;
}

.legit-rail::-webkit-scrollbar {
    height: 0;
    display: none
}

.legit-rail>* {
    scroll-snap-align: start;
    min-width: 320px;
    max-width: 420px;
    flex: 0 0 auto
}

.rail-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 14px;
    width: 44px;
    height: 54px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(2px);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    transition: transform .15s, opacity .15s;
}

.rail-btn:hover {
    transform: translateY(-50%) scale(1.05)
}

.rail-btn.left {
    left: -68px
}

.rail-btn.right {
    right: -68px
}

@media (max-width:900px) {
    .rail-btn.left {
        left: -12px
    }

    .rail-btn.right {
        right: -12px
    }
}

.legit {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform .18s, border-color .12s;
}

.legit:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 170, 255, .22)
}

.legit .date {
    position: absolute;
    right: 12px;
    top: 12px;
    color: var(--muted);
    font-size: 12px
}

.legit .chip {
    display: inline-flex;
    gap: 6px;
    background: rgba(34, 197, 94, .12);
    color: #a7f3d0;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px
}

.legit .author {
    font-weight: 800
}

.legit-ava {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .15)
}

/* ===== TEAM ===== */
.team-cloud {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #0f172a, #0b1325);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    min-height: 120px;
}

.member {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 14px;
    padding: 14px;
    transition: transform .15s, border-color .12s
}

.member:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 170, 255, .22)
}

.member .row {
    display: flex;
    gap: 14px;
    align-items: center
}

.member img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover
}

.member .name {
    font-weight: 900;
    font-size: 16px
}

.member .badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12)
}

.member .desc {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px
}

.member .id {
    margin-top: 6px;
    font-size: 12px;
    color: #8aa0c6
}

/* ===== CTA / FOOT ===== */
.cta-panel {
    text-align: center
}

.cta-panel p {
    color: var(--muted);
    max-width: 760px;
    margin: 8px auto 16px
}

.cta-panel .cta-row {
    justify-content: center
}

.cta-panel .btn {
    padding: 12px 18px;
    font-size: 15px
}

@media (max-width:640px) {
    .cta-panel .cta-row {
        flex-direction: column
    }

    .cta-panel .btn {
        width: 100%
    }
}

.foot {
    padding: 28px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    text-align: center;
    color: var(--muted)
}

/* ===================== */
/* RESTOCK – lista + modal */
/* ===================== */
.restock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 16px auto 0;
    min-height: 200px;
}

.restock-card {
    cursor: pointer
}

.restock-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block
}

.tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 12px 0 24px
}

.tab {
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(180deg, #0f1523, #0c1220);
    color: #eaf2ff;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    transition: transform .15s, border-color .15s, background .15s;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 170, 255, .35)
}

.tab.active {
    background: linear-gradient(135deg, #2f6feb33, #1f6feb22);
    border-color: rgba(99, 165, 255, .55);
    box-shadow: 0 16px 30px rgba(3, 12, 40, .45), inset 0 0 0 1px rgba(140, 200, 255, .08);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    opacity: 1;
    transform: none
}

.modal {
    width: min(980px, 100%);
    background: rgba(20, 26, 36, .92);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: .85
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    padding: 20px
}

@media (max-width:920px) {
    .modal-body {
        grid-template-columns: 1fr
    }
}

.modal-media {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px
}

.car-img {
    width: 100%;
    height: auto;
    display: block
}

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, .35);
    width: 36px;
    height: 44px;
    border-radius: 10px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(2px)
}

.car-btn.prev {
    left: 8px
}

.car-btn.next {
    right: 8px
}

/* ===== NAV counter badge ===== */
.visit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #eaf2ff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    margin-right: 6px;
    user-select: none;
    transform: translateZ(0);
}

.visit-badge .star {
    font-size: 12px;
    line-height: 1;
    opacity: .9;
    animation: twinkle 1.2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px rgba(99, 165, 255, .4));
}

.visit-badge .num {
    display: inline-block;
    min-width: 2ch;
    letter-spacing: .5px;
    animation: wave 1.6s ease-in-out infinite;
}

.visit-badge.flash {
    animation: flashGlow .9s ease-out both
}

@keyframes twinkle {
    from {
        opacity: .6;
        transform: scale(.9) rotate(0)
    }

    to {
        opacity: 1;
        transform: scale(1.2) rotate(8deg)
    }
}

@keyframes wave {
    0% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-1px) scale(1.06)
    }

    100% {
        transform: translateY(0) scale(1)
    }
}

@keyframes flashGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(120, 170, 255, 0), 0 8px 20px rgba(0, 0, 0, .25)
    }

    40% {
        box-shadow: 0 0 0 2px rgba(120, 170, 255, .35), 0 12px 28px rgba(0, 0, 0, .35)
    }

    100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, .25)
    }
}

/* thumbs */
.thumbs {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 2px
}

.thumbs img {
    height: 56px;
    width: auto;
    border-radius: 8px;
    opacity: .78;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .12)
}

.thumbs img.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(120, 170, 255, .6)
}

img[loading="lazy"] {
    contain: paint
}

/* ===================================================== */
/* Light theme */
html[data-theme="light"] {
    --bg: #f7fafc;
    --surface: #ffffff;
    --glass: rgba(0, 0, 0, .06);
    --text: #0b1220;
    --muted: #42506a;
    --shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

html[data-theme="light"] .nav.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .65))
}

html[data-theme="light"] .menu a:hover {
    color: #000
}

html[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, .04);
    color: #0b1220;
    border-color: rgba(0, 0, 0, .08)
}

html[data-theme="light"] .menu-toggle span {
    background: rgba(0, 0, 0, .6)
}

/* Pasek postępu scrolla */
.scrollbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 3px;
    background: transparent
}

.scrollbar-fill {
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}

/* Przełącznik motywu */
.theme-toggle {
    margin-left: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
}

html[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, .12)
}

/* ===== FAQ (akordeon) ===== */
.faq-wrap {
    max-width: 900px;
    margin: 16px auto 0;
    display: grid;
    gap: 12px;
}

.faq-wrap details {
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, var(--surface), #0f172a);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: clip;
}

.faq-wrap summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    position: relative;
    transition: transform .06s ease, background .2s ease, border-color .2s ease;
}

.faq-wrap summary::-webkit-details-marker {
    display: none;
}

.faq-wrap summary:active {
    transform: scale(.995);
}

.faq-wrap summary::after {
    content: "+";
    margin-left: auto;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    opacity: .9;
    transform: rotate(0deg) scale(1);
    transition: transform .25s ease, opacity .2s ease;
}

.faq-wrap details[open] summary::after {
    content: "×";
    transform: rotate(90deg) scale(1);
    opacity: 1;
}

.faq-wrap .body {
    padding: 0 16px 14px;
    color: var(--muted);
    line-height: 1.6;
    will-change: height, opacity, transform;
}

.faq-wrap .body p {
    margin: 0;
}

.faq-wrap details:hover {
    border-color: rgba(120, 170, 255, .22)
}

html[data-theme="light"] .faq-wrap details {
    background: linear-gradient(180deg, #fff, #f7fafc);
    border-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .faq-wrap details:hover {
    border-color: rgba(0, 0, 0, .16)
}

/* ===== FAQ: realistic left->right reveal ===== */
.faq-wrap .reveal-txt {
    /* ukryj zawartość przez maskowanie, nie skalujemy fontu */
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateY(2px);
    transition:
        clip-path 620ms cubic-bezier(.22, .61, .36, 1),
        opacity 360ms ease,
        transform 360ms ease;
    will-change: clip-path, opacity, transform;
}

/* gdy otwarte + JS doda klasę .on – wysunięcie od lewej */
.faq-wrap details[open] .reveal-txt.on {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: none;
}

/* mniej ruchu = brak „wysuwania” (tylko instant) */
@media (prefers-reduced-motion: reduce) {
    .faq-wrap .reveal-txt {
        transition: none !important;
        clip-path: inset(0 0 0 0) !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Pływający CTA */
.float-cta {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

@media (min-width:901px) {
    .float-cta {
        display: none !important
    }
}

/* Back to top */
.back-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    backdrop-filter: blur(2px);
    z-index: 91;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .25s;
}

html[data-theme="light"] .back-top {
    background: rgba(0, 0, 0, .15);
    color: #000
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}