/* ============================================================================
   DRAkula — strona publiczna i logowanie.

   Jasna, produktowa odsłona panelu: biel i chłodna szarość, dużo powietrza,
   miękkie cienie. Zieleń jest marką i jedynym akcentem, czerń smokingu
   zostaje na wezwaniu do działania, czerwień peleryny — na postaci.
   ========================================================================= */

:root {
    color-scheme: light dark;

    --tux:      #121613;
    --tux-2:    #1b211d;
    --tux-3:    #273029;
    --tux-ink:  #c2cdc6;
    --tux-hot:  #ffffff;
    --tux-line: rgba(255, 255, 255, .1);

    --brand:      #11875a;
    --brand-2:    #0c6b47;
    --brand-3:    #3fbd8b;
    --brand-wash: #e7f5ee;
    --brand-line: #b7e0cd;

    --bg:        #f4f6f4;
    --surface:   #ffffff;
    --surface-2: #f9faf9;
    --surface-3: #eef1ef;
    --line:      #e1e6e2;
    --line-2:    #edf0ee;

    --fg:   #141815;
    --fg-2: #515a54;
    --fg-3: #7e8782;
    --fg-4: #a4aca7;

    --ok:   #11875a;  --ok-bg:   #e7f5ee;  --ok-line:  #b7e0cd;
    --warn: #a9770f;  --warn-bg: #fdf2db;  --warn-line:#eed6a4;
    --bad:  #c4202e;  --bad-bg:  #fdeced;  --bad-line: #f3c4c8;
    --info: #2f6fb3;  --info-bg: #eaf1fa;  --info-line:#c3d9f0;

    --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, monospace;

    --r-xs: 6px;
    --r-sm: 9px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --sh-1: 0 1px 2px rgba(18, 22, 19, .05);
    --sh-2: 0 1px 3px rgba(18, 22, 19, .06), 0 10px 26px -12px rgba(18, 22, 19, .18);
    --sh-3: 0 2px 6px rgba(18, 22, 19, .08), 0 30px 60px -26px rgba(18, 22, 19, .3);

    --wrap: 74rem;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:        #0f120f;
        --surface:   #161a17;
        --surface-2: #1c211d;
        --surface-3: #242a26;
        --line:      #2c332e;
        --line-2:    #212723;

        --fg:   #eef3ef;
        --fg-2: #a8b2ab;
        --fg-3: #828c86;
        --fg-4: #626b66;

        --brand:      #3fbd8b;
        --brand-2:    #5ed2a3;
        --brand-wash: #10281f;
        --brand-line: #1f4d3a;

        --ok:   #3fbd8b;  --ok-bg:   #10281f;  --ok-line:  #1f4d3a;
        --warn: #ddab4d;  --warn-bg: #2e2412;  --warn-line:#5a4520;
        --bad:  #ef6a62;  --bad-bg:  #2c1a18;  --bad-line: #5a2d28;
        --info: #62a5e8;  --info-bg: #122438;  --info-line:#23466d;

        --sh-1: 0 1px 2px #0007;
        --sh-2: 0 1px 3px #00000066, 0 10px 28px -10px #000000aa;
        --sh-3: 0 2px 8px #00000077, 0 30px 70px -24px #000000cc;
    }
}

[data-theme="dark"] {
    --bg:        #0f120f;
    --surface:   #161a17;
    --surface-2: #1c211d;
    --surface-3: #242a26;
    --line:      #2c332e;
    --line-2:    #212723;

    --fg:   #eef3ef;
    --fg-2: #a8b2ab;
    --fg-3: #828c86;
    --fg-4: #626b66;

    --brand:      #3fbd8b;
    --brand-2:    #5ed2a3;
    --brand-wash: #10281f;
    --brand-line: #1f4d3a;

    --ok:   #3fbd8b;  --ok-bg:   #10281f;  --ok-line:  #1f4d3a;
    --warn: #ddab4d;  --warn-bg: #2e2412;  --warn-line:#5a4520;
    --bad:  #ef6a62;  --bad-bg:  #2c1a18;  --bad-line: #5a2d28;
    --info: #62a5e8;  --info-bg: #122438;  --info-line:#23466d;

    --sh-1: 0 1px 2px #0007;
    --sh-2: 0 1px 3px #00000066, 0 10px 28px -10px #000000aa;
    --sh-3: 0 2px 8px #00000077, 0 30px 70px -24px #000000cc;
}

/* jeden ciemny blok na całą stronę: wezwanie do działania */
.on-tux {
    --surface:   #1a201c;
    --surface-2: #1f2621;
    --surface-3: #273029;
    --line:      rgba(255, 255, 255, .13);
    --line-2:    rgba(255, 255, 255, .07);

    --fg:   #ffffff;
    --fg-2: #c2cdc6;
    --fg-3: #93a099;
    --fg-4: #6e7a74;

    --brand:      #3fbd8b;
    --brand-2:    #5ed2a3;
    --brand-wash: rgba(63, 189, 139, .13);
    --brand-line: rgba(63, 189, 139, .32);

    color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.035em; font-weight: 660; }
img { max-width: 100%; display: block; }
svg { flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }

.wrap { width: min(var(--wrap), 100% - 2.4rem); margin-inline: auto; }
.row { display: flex; align-items: center; gap: .6rem; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--mono); font-size: .88em; font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ——— Znak marki ———————————————————————————————————————————————— */
.mark { display: inline-flex; align-items: center; gap: .6rem; }
.mark .logo {
    width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
    background: #f3f7f4; border: 2px solid var(--brand); display: grid; place-items: center;
    box-shadow: 0 0 0 3px rgba(17, 135, 90, .14);
}
.mark .name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.045em; }
.mark .name i { font-style: normal; color: var(--brand); }
.on-tux .mark .logo, .mark.on-dark .logo { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(63, 189, 139, .18); }
.on-tux .mark .name, .mark.on-dark .name { color: #fff; }
.on-tux .mark .name i, .mark.on-dark .name i { color: var(--brand-3); }

/* ——— Sterowanie ——————————————————————————————————————————————— */
.btn {
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
    font-size: .9rem; font-weight: 580; padding: .62rem 1.05rem; border-radius: var(--r-sm);
    background: var(--surface); color: var(--fg); border: 1px solid var(--line);
    box-shadow: var(--sh-1); white-space: nowrap;
    transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { border-color: var(--fg-4); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(1px); }
.btn.primary {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 1px 2px rgba(17, 135, 90, .25), 0 10px 22px -12px rgba(17, 135, 90, .8);
}
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.on-tux .btn.primary { background: var(--brand-3); border-color: var(--brand-3); color: #08130d; font-weight: 640; }
.on-tux .btn.primary:hover { background: #5ed2a3; border-color: #5ed2a3; }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--fg-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--fg); }
.on-tux .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .24); }
.on-tux .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.lg { font-size: .98rem; padding: .82rem 1.45rem; border-radius: var(--r); }
.btn.sm { font-size: .83rem; padding: .36rem .66rem; }
.btn.wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn {
    border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--fg-2);
    width: 2.3rem; height: 2.3rem; border-radius: var(--r-sm); display: grid; place-items: center;
    transition: background .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease);
}
.icon-btn:hover { background: var(--surface-3); color: var(--fg); border-color: var(--fg-4); }

.pill {
    display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
    font-size: .76rem; font-weight: 580; padding: .22rem .62rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface-3); color: var(--fg-2);
}
.pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill.bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.pill.info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.pill.flat::before { display: none; }

/* ——— Belka ———————————————————————————————————————————————————— */
.bar {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.bar nav { display: flex; gap: .15rem; margin-left: 1.4rem; }
.bar nav a {
    padding: .44rem .72rem; border-radius: var(--r-sm); font-size: .9rem; font-weight: 520; color: var(--fg-2);
    transition: background .14s var(--ease), color .14s var(--ease);
}
.bar nav a:hover { background: var(--surface-3); color: var(--fg); }
.bar .side { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.burger { display: none; }

@media (max-width: 58rem) {
    .bar nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 2px; margin: 0; padding: .6rem .9rem 1rem;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    }
    .bar.open nav { display: flex; }
    .burger { display: grid; }
    .bar .btn:not(.primary) { display: none; }
}

/* ——— Hero ————————————————————————————————————————————————————— */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(52% 62% at 78% 14%, var(--brand-wash) 0%, transparent 64%),
        radial-gradient(44% 50% at 4% 96%, var(--surface-3) 0%, transparent 60%),
        var(--bg);
}
.hero > .wrap:first-of-type { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; padding: 3.6rem 0 1.6rem; }
.hero h1 {
    font-size: clamp(2.4rem, 5.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.05em;
    font-weight: 700; margin-top: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.sub { margin: 1.25rem 0 0; font-size: 1.1rem; line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero .note { margin-top: 1.1rem; font-size: .86rem; color: var(--fg-3); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .glow {
    position: absolute; inset: 4% 4% 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 135, 90, .14), transparent 66%);
    filter: blur(6px);
}
.hero-art img { position: relative; width: min(20rem, 100%); filter: drop-shadow(0 26px 34px rgba(18, 22, 19, .22)); }

/* dymek maskotki — ten sam język co w panelu */
.bubble {
    position: absolute; z-index: 2; max-width: 15rem; background: var(--tux); color: #fff;
    border-radius: 14px 14px 14px 4px; padding: .68rem .85rem; font-size: .85rem; line-height: 1.45;
    box-shadow: var(--sh-3);
}
.bubble b { color: var(--brand-3); font-weight: 650; }
.bubble::after {
    content: ""; position: absolute; left: 1.5rem; bottom: -6px; width: 12px; height: 12px;
    background: var(--tux); transform: rotate(45deg); border-radius: 0 0 3px 0;
}
/* dymek na lewo od postaci: ogonek po prawej, w połowie wysokości */
.bubble.side { border-radius: 14px 14px 14px 14px; }
.bubble.side::after {
    left: auto; right: -6px; bottom: auto; top: 50%;
    transform: translateY(-50%) rotate(45deg); border-radius: 0 3px 0 0;
}
.hero-art .bubble { top: 14%; left: -18%; }

/* pasek faktów — karta na jasnoszarym, nie pas przez całą stronę */
.facts {
    position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 1rem;
}
.facts div {
    padding: 1.15rem 1.3rem 1.25rem; border-right: 1px solid var(--line-2);
    display: flex; flex-direction: column; gap: .15rem;
}
.facts div:last-child { border-right: 0; }
.facts b { font-size: .98rem; font-weight: 650; letter-spacing: -.025em; }
.facts span { font-size: .81rem; color: var(--fg-3); }

/* ——— Sekcje ——————————————————————————————————————————————————— */
.sec { padding: 5rem 0; }
.sec.tight { padding: 3.5rem 0; }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
    font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--brand); border-radius: 2px; }
.sec h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; }
.sec .lead { margin: .9rem 0 0; color: var(--fg-2); font-size: 1.04rem; max-width: 56ch; }
.head { margin-bottom: 2.6rem; max-width: 46rem; }
.head.mid { text-align: center; margin-inline: auto; }
.head.mid .lead { margin-inline: auto; }
.head.mid .eyebrow::before { display: none; }

/* ——— Kafelki —————————————————————————————————————————————————— */
.grid { display: grid; gap: 1.2rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-1); padding: 1.5rem 1.6rem 1.6rem;
    transition: transform .16s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.sec.alt .card { background: var(--surface-2); }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.card .ico {
    width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
    background: var(--brand-wash); color: var(--brand); border: 1px solid var(--brand-line);
}
.card .n {
    display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--brand-wash); color: var(--brand); border: 1px solid var(--brand-line);
    font: 650 .8rem/1 var(--sans); margin-bottom: .9rem;
}
.card h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: .45rem; }
.card p { margin: 0; color: var(--fg-2); font-size: .95rem; }

/* ——— Kroki: pionowa oś ————————————————————————————————————————— */
.steps { counter-reset: krok; display: flex; flex-direction: column; }
.step { position: relative; padding: 0 0 1.8rem 3.6rem; }
.step::before {
    counter-increment: krok; content: counter(krok);
    position: absolute; top: 0; left: 0; z-index: 1;
    width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand); color: #fff; font: 660 .88rem/1 var(--sans);
    box-shadow: 0 0 0 4px var(--bg);
}
.sec.alt .step::before { box-shadow: 0 0 0 4px var(--surface); }
.step::after {
    content: ""; position: absolute; left: 1rem; top: 2.45rem; bottom: .1rem;
    width: 2px; border-radius: 2px; background: var(--line);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; margin: .15rem 0 .35rem; }
.step p { margin: 0; color: var(--fg-2); font-size: .96rem; max-width: 52ch; }
.step .tag { margin-top: .6rem; }

/* ——— Rozbicie z obrazkiem ————————————————————————————————————— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split.flip .art { order: -1; }
.split.lead-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.split.stretch { align-items: stretch; }
.split .art { display: grid; place-items: center; position: relative; }
.split .art img { width: min(19rem, 100%); filter: drop-shadow(0 22px 30px rgba(18, 22, 19, .2)); }
.split .art .glow {
    position: absolute; inset: 8%; border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 135, 90, .14), transparent 68%);
}
.on-tux .split .art img { filter: drop-shadow(0 28px 38px rgba(0, 0, 0, .55)); }

.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .7rem; font-size: .97rem; color: var(--fg-2); }
.ticks li b { color: var(--fg); font-weight: 620; }
.ticks li .t { color: var(--brand); display: grid; place-items: center; padding-top: .2rem; }

/* ——— Tabela ról ——————————————————————————————————————————————— */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.sec.alt .tbl-wrap { background: var(--surface-2); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 34rem; }
table.tbl th, table.tbl td { padding: .85rem 1.2rem; border-bottom: 1px solid var(--line-2); font-size: .94rem; text-align: left; }
table.tbl thead th { font-size: .8rem; font-weight: 660; color: var(--fg-3); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.c, table.tbl th.c { text-align: center; width: 10rem; }
table.tbl .yes { color: var(--ok); }
table.tbl .no { color: var(--bad); }

/* ——— Kod ——————————————————————————————————————————————————————— */
.code {
    margin: 0; padding: 1.2rem 1.35rem; border-radius: var(--r-lg);
    background: var(--tux); border: 1px solid var(--tux-3); box-shadow: var(--sh-2);
    font: .84rem/1.8 var(--mono); color: var(--tux-ink); overflow-x: auto;
}
.code .c { color: #6f7d75; }
.code .v { color: var(--brand-3); }
.code .k { color: #e8efe9; }

/* ——— Pytania ——————————————————————————————————————————————————— */
.faq { display: flex; flex-direction: column; gap: .6rem; max-width: 52rem; }
.faq details {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-1); padding: 0 1.3rem;
}
.sec.alt .faq details { background: var(--surface-2); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.05rem 0; font-size: 1.02rem; font-weight: 600;
    display: flex; align-items: center; gap: .9rem; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .chev { margin-left: auto; color: var(--fg-3); display: grid; transition: transform .18s var(--ease); }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq .ans { padding: 0 0 1.2rem; color: var(--fg-2); font-size: .97rem; max-width: 68ch; }
.faq .ans p { margin: 0 0 .7rem; }
.faq .ans p:last-child { margin: 0; }

/* ——— Wezwanie: jedyny ciemny blok ————————————————————————————— */
.band {
    background: radial-gradient(70% 120% at 100% 0%, rgba(63, 189, 139, .22) 0%, transparent 58%), var(--tux);
    border-radius: var(--r-xl); padding: 2.8rem 2.8rem 2.6rem; box-shadow: var(--sh-3);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center;
}
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; }
.band p { margin: 1rem 0 0; color: var(--fg-2); max-width: 46ch; font-size: 1.02rem; }
.band .cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.9rem; }
.band .art { position: relative; display: grid; place-items: center; }
.band .art img { width: 13rem; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55)); }
.band .art .glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(63, 189, 139, .2), transparent 66%); }

/* ——— Stopka ——————————————————————————————————————————————————— */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 3.2rem 0 2rem; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.foot h4 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-4); margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.foot a { font-size: .92rem; color: var(--fg-2); }
.foot a:hover { color: var(--brand); }
.foot p { margin: 1rem 0 0; font-size: .9rem; color: var(--fg-3); max-width: 34ch; }
.foot .bottom {
    margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line-2);
    display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--fg-3);
}

/* ============================================================================
   LOGOWANIE — bez haseł: adres, potem kod z maila.
   ========================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.auth-aside {
    position: relative; overflow: hidden;
    background:
        radial-gradient(60% 55% at 80% 10%, var(--brand-wash) 0%, transparent 62%),
        radial-gradient(60% 55% at 6% 100%, var(--surface-3) 0%, transparent 60%),
        var(--bg);
    border-right: 1px solid var(--line);
    padding: 2.2rem 3rem 2.4rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.auth-aside .says { margin-top: auto; }
.auth-aside h2 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.14; max-width: 16ch; letter-spacing: -.045em; }
.auth-aside p { margin: 1rem 0 0; color: var(--fg-2); font-size: 1rem; max-width: 38ch; }
.auth-aside .art { margin-top: 1.8rem; display: flex; align-items: center; gap: .9rem; }
.auth-aside .art img { width: 13rem; filter: drop-shadow(0 22px 30px rgba(18, 22, 19, .22)); }
.auth-aside .bubble { position: relative; margin-bottom: 7rem; }

.auth-aside .foot-note { font-size: .8rem; color: var(--fg-4); }

.auth-main { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--surface); }
.auth-box { width: min(27rem, 100%); }
.auth-box .top { display: flex; align-items: center; gap: .6rem; margin-bottom: 2.4rem; }
.auth-box h1 { font-size: clamp(1.7rem, 3vw, 2.05rem); letter-spacing: -.045em; }
.auth-box .intro { margin: .7rem 0 1.8rem; color: var(--fg-2); font-size: .98rem; }
.auth-box .intro b { color: var(--fg); font-weight: 620; }

.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .88rem; font-weight: 580; }
.field .hint { font-size: .82rem; color: var(--fg-3); }
.input {
    width: 100%; padding: .82rem .9rem; border-radius: var(--r-sm); font: inherit;
    background: var(--bg); color: var(--fg); border: 1px solid var(--line);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.input::placeholder { color: var(--fg-4); }
.input:focus { outline: 0; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 135, 90, .14); }

/* sześć okienek na kod z maila */
.code-row { display: flex; gap: .5rem; }
.code-row input {
    width: 100%; aspect-ratio: 3 / 3.6; text-align: center; font: 660 1.55rem/1 var(--mono);
    border-radius: var(--r-sm); background: var(--bg); color: var(--fg);
    border: 1px solid var(--line); padding: 0;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.code-row input:focus { outline: 0; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 135, 90, .14); }
.code-row.bad input { border-color: var(--bad-line); }

.banner {
    border-radius: var(--r-sm); padding: .82rem .95rem; font-size: .9rem; line-height: 1.5;
    border: 1px solid; display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.3rem;
}
.banner b { display: block; margin-bottom: .1rem; }
.banner .txt { min-width: 0; }
.banner.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.banner.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.banner.bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.banner.info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }

.sep { display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0; color: var(--fg-4); font-size: .8rem; }
.sep::before, .sep::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }

.auth-foot { margin-top: 1.7rem; font-size: .88rem; color: var(--fg-3); display: flex; gap: .5rem; align-items: flex-start; }
.auth-foot a { color: var(--brand); font-weight: 570; }
.legal { margin-top: 2.4rem; font-size: .8rem; color: var(--fg-4); line-height: 1.65; }
.legal a { color: var(--fg-3); text-decoration: underline; text-underline-offset: 2px; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 640; }

/* ——— Podgląd wiadomości ——————————————————————————————————————— */
.mail-stage { padding: 3.5rem 0 4.5rem; }
.mail {
    width: min(38rem, 100%); margin-inline: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden;
}
.mail .hdr { padding: 1rem 1.4rem; border-bottom: 1px solid var(--line-2); background: var(--surface-2); font-size: .87rem; color: var(--fg-3); }
.mail .hdr b { color: var(--fg); font-weight: 620; }
.mail .body { padding: 2.2rem 2rem 2.4rem; text-align: center; }
.mail .body h2 { font-size: 1.4rem; }
.mail .body p { color: var(--fg-2); font-size: .95rem; max-width: 42ch; margin: .9rem auto 0; }
.mail .kod {
    margin: 1.8rem auto 0; display: inline-flex; gap: .55rem; padding: .9rem 1.3rem;
    border-radius: var(--r); background: var(--surface-3); border: 1px dashed var(--line);
    font: 700 1.7rem/1 var(--mono); letter-spacing: .24em; color: var(--fg);
}
.mail .sig { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--fg-4); }

/* ——— Toast ———————————————————————————————————————————————————— */
.toast {
    position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; transform: translate(-50%, 1.5rem);
    background: var(--tux); color: #fff; border-radius: 999px; padding: .62rem 1.15rem;
    font-size: .88rem; font-weight: 550; box-shadow: var(--sh-3);
    opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
    display: flex; align-items: center; gap: .5rem;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--brand-3); }

/* ——— Wąsko ——————————————————————————————————————————————————— */
@media (max-width: 64rem) {
    .hero > .wrap:first-of-type { grid-template-columns: minmax(0, 1fr); padding: 2.4rem 0 1.4rem; }
    .hero-art { order: -1; }
    .hero-art img { width: min(14rem, 54%); }
    .hero-art .bubble { left: 0; top: -4%; }
    .split, .split.lead-left { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .split.flip .art { order: 0; }
    .band { grid-template-columns: minmax(0, 1fr); padding: 2.2rem 1.8rem; }
    .band .art { display: none; }
    .foot .cols { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
}
@media (max-width: 34rem) {
    .sec { padding: 3.4rem 0; }
    .facts div { border-right: 0; border-bottom: 1px solid var(--line-2); }
    .code-row { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ——— Bento: możliwości z podglądem, nie sześć jednakowych kafelków —— */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.bento .card { display: flex; flex-direction: column; }
.bento .card.w2 { grid-column: span 2; }
.bento .card.w2 .mini { margin-top: auto; }
.bento .card h3 { font-size: 1.06rem; }
.bento .card p { font-size: .93rem; }

/* miniatura panelu w kafelku — te same kształty co w makiecie panelu */
.mini {
    margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--bg); padding: .5rem; display: flex; flex-direction: column; gap: .35rem;
}
.sec.alt .mini { background: var(--surface); }
.mini-row {
    display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    font-size: .84rem; font-weight: 550;
}
.sec.alt .mini-row { background: var(--surface-2); }
.mini-row .pill { margin-left: auto; }
.mini-row .kwota { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--fg-3); }
.mini-ev { display: grid; grid-template-columns: 2.6rem .55rem minmax(0, 1fr); gap: .5rem; align-items: center; padding: .3rem .4rem; font-size: .82rem; }
.mini-ev time { color: var(--fg-4); font-variant-numeric: tabular-nums; font-size: .76rem; }
.mini-ev i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--fg-4); display: block; }
.mini-ev.ok i { background: var(--ok); }
.mini-ev.bad i { background: var(--bad); }
.mini-ev.warn i { background: var(--warn); }
.mini-ev span { color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ——— Bezpieczeństwo: wiersze z plakietką zamiast listy ptaszków ——— */
.rows { display: flex; flex-direction: column; }
.rows li { list-style: none; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .95rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .ico {
    width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center;
    background: var(--brand-wash); color: var(--brand); border: 1px solid var(--brand-line);
}
.rows b { display: block; font-weight: 620; font-size: .98rem; letter-spacing: -.02em; }
.rows span { color: var(--fg-2); font-size: .93rem; }

/* karta z maskotką — zamiast postaci wiszącej w pustce */
.guard {
    position: relative; border-radius: var(--r-xl); padding: 2rem 1.6rem 0;
    background: radial-gradient(80% 70% at 50% 0%, var(--brand-wash) 0%, transparent 70%), var(--surface);
    border: 1px solid var(--line); box-shadow: var(--sh-1);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
}
.sec.alt .guard { background: radial-gradient(80% 70% at 50% 0%, var(--brand-wash) 0%, transparent 70%), var(--surface-2); }
.guard .tags { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.guard { justify-content: flex-start; gap: 1.4rem; }
.guard img { width: min(16rem, 100%); margin-top: auto; filter: drop-shadow(0 22px 28px rgba(18, 22, 19, .22)); margin-top: -.4rem; }

@media (max-width: 64rem) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento .card.w2 { grid-column: span 2; }
}
@media (max-width: 40rem) {
    .bento, .bento .card.w2 { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
}

/* ——— Pasek „co niesie dokument” — maskotka wkomponowana, nie zawieszona —— */
.warn-band {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    background: radial-gradient(70% 140% at 88% 0%, rgba(63, 189, 139, .2) 0%, transparent 60%), var(--tux);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem;
    padding: 1.9rem 2.1rem 0; margin-bottom: 1.6rem; box-shadow: var(--sh-2);
}
.warn-band .txt { padding-bottom: 1.9rem; }
.warn-band h3 { color: #fff; font-size: 1.25rem; letter-spacing: -.03em; }
.warn-band p { margin: .6rem 0 1rem; color: var(--tux-ink); font-size: .95rem; max-width: 52ch; }
.warn-band .tags { display: flex; gap: .45rem; flex-wrap: wrap; }
.warn-band .tags .pill {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff;
}
.warn-band img { width: 12.5rem; align-self: end; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .5)); }

@media (max-width: 52rem) {
    .warn-band { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
    .warn-band img { display: none; }
    .warn-band .txt { padding-bottom: 1.6rem; }
}
