:root {
    color-scheme: light;
    --bg:        #FAF8F3;
    --surface:   #FFFFFF;
    --surface2:  #F3F0E8;
    --line:      #E4DFD4;
    --line2:     #CDC6B6;
    --rule:      #16140F;
    --ink:       #16140F;
    --ink-soft:  #45413A;
    --ink-dim:   #77736A;
    --on-ink:    #FFFFFF;
    --gold:      #9A6812;
    --gold-hi:   #B8821F;
    --gold-dim:  #D2B06A;
    --gold-glow: #F5EACB;
    --on-gold:   #FFFFFF;
    --good:      #2E6A3A;
    --warn:      #A8741A;
    --bad:       #A63F28;
    --red:       var(--bad);
    --green:     var(--good);
    --r0: #2E6A3A; --r1: #86A35A; --r2: #CF9C2F; --r3: #A63F28;
    --on-badge:  #FFFFFF;
    --offset:    #16140F;
    --mark-bg:   #16140F;
    --mark-fg:   #E2C88A;
    --shadow-sm: 0 1px 2px rgba(22,20,15,.06);
    --shadow-md: 0 14px 34px -14px rgba(22,20,15,.22);
    --shadow-gold: 0 0 0 1px var(--line);

    --serif:     'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sans:      'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --read:      'Source Serif 4', Georgia, 'Times New Roman', serif;
    --mono:      'JetBrains Mono', ui-monospace, Consolas, monospace;
    --radius:    10px;
    --ease:      cubic-bezier(.16,.8,.3,1);
}
/* Ciemny motyw: domyslnie decyduje ustawienie systemu czytelnika,
   przelacznik w naglowku nadpisuje je atrybutem data-theme. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:        #13120F;
    --surface:   #1B1A16;
    --surface2:  #23211C;
    --line:      #2E2B25;
    --line2:     #45413A;
    --rule:      #CFC8B8;
    --ink:       #F0ECE3;
    --ink-soft:  #C8C2B5;
    --ink-dim:   #958F82;
    --on-ink:    #16140F;
    --gold:      #E0B456;
    --gold-hi:   #F0CB73;
    --gold-dim:  #7A6330;
    --gold-glow: rgba(224,180,86,.12);
    --on-gold:   #16140F;
    --good:      #5BAE69;
    --warn:      #D9A93E;
    --bad:       #D4654A;
    --r0: #4F9B5D; --r1: #9DB96F; --r2: #D9A93E; --r3: #C9593D;
    --on-badge:  #16140F;
    --offset:    #5C4B23;
    --mark-bg:   #0B0A08;
    --mark-fg:   #E2C88A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 16px 40px -14px rgba(0,0,0,.6);
    --shadow-gold: 0 0 0 1px var(--line);
} }
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:        #13120F;
    --surface:   #1B1A16;
    --surface2:  #23211C;
    --line:      #2E2B25;
    --line2:     #45413A;
    --rule:      #CFC8B8;
    --ink:       #F0ECE3;
    --ink-soft:  #C8C2B5;
    --ink-dim:   #958F82;
    --on-ink:    #16140F;
    --gold:      #E0B456;
    --gold-hi:   #F0CB73;
    --gold-dim:  #7A6330;
    --gold-glow: rgba(224,180,86,.12);
    --on-gold:   #16140F;
    --good:      #5BAE69;
    --warn:      #D9A93E;
    --bad:       #D4654A;
    --r0: #4F9B5D; --r1: #9DB96F; --r2: #D9A93E; --r3: #C9593D;
    --on-badge:  #16140F;
    --offset:    #5C4B23;
    --mark-bg:   #0B0A08;
    --mark-fg:   #E2C88A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 16px 40px -14px rgba(0,0,0,.6);
    --shadow-gold: 0 0 0 1px var(--line);
}


        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth;
               /* Pasek nawigacji jest przyklejony i ma okolo 70 px. Bez tego
                  odnosnik do kotwicy (#cos) ladowal POD nim i czytelnik widzial
                  srodek akapitu zamiast jego naglowka. */
               scroll-padding-top: 88px; }

        body {
            background:
                radial-gradient(900px 480px at 82% -6%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%),
                radial-gradient(700px 420px at -10% 8%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 55%),
                var(--bg);
            background-attachment: fixed;
            color: var(--ink);
            font-family: var(--sans);
            font-size: 1rem;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

        /* -- Layout -- */
        .wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

        /* -- Scroll progress -- */
        .scroll-progress {
            position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
            background: linear-gradient(90deg, var(--gold-dim), var(--gold));
            z-index: 100;
            transition: width .1s linear;
        }

        /* -- Nav -- */
        nav {
            position: sticky; top: 0; z-index: 50;
            border-bottom: 1px solid var(--line);
            padding: 16px 0;
            background: color-mix(in srgb, var(--surface) 72%, transparent);
            backdrop-filter: blur(14px) saturate(140%);
            -webkit-backdrop-filter: blur(14px) saturate(140%);
        }
        /* Pasek nawigacji jest szerszy niz kolumna tekstu (980px): przy 980
           jedenascie pozycji nie miescilo sie w jednej linii i menu lamalo
           sie na dwa rzedy. Tresc stron zostaje waska, sam pasek nie. */
        .nav-inner {
            max-width: 1220px; margin: 0 auto; padding: 0 22px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        .logo {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: var(--serif);
            font-size: 1.25rem;
            color: var(--ink);
            letter-spacing: -0.01em;
        }
        /* Logo nigdy sie nie lamie: przy waskim oknie nav-inner sciskal
           element flex i "The Phone Path" spadalo do dwoch linijek, ze
           znakiem Omega wysrodkowanym obok. */
        .logo { flex: none; }
        .logo span { white-space: nowrap; }
        .logo em { color: var(--gold); font-style: normal; }
        /* Znak dziedziczy kolor zlota; currentColor trzyma go spojnym
           z tekstem przy kazdej zmianie palety. */
        .logo .logo-mark { color: var(--gold); flex: none; }
        @media (max-width: 380px) { .logo .logo-mark { width: 19px; height: 19px; } }
        .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
        .nav-links a {
            position: relative;
            color: var(--ink-soft);
            text-decoration: none;
            font-size: 0.8rem;
            padding: 6px 11px;
            border-radius: 20px;
            transition: color .15s, background .15s;
            white-space: nowrap;
        }
        .nav-links a:hover { color: var(--ink); background: var(--surface2); }
        .nav-links a.active { color: var(--gold); background: var(--gold-glow); }

        /* -- Nav dropdown -- */
        .nav-drop { position: relative; }
        .nav-drop-btn {
            font-family: inherit;
            font-size: 0.8rem;
            color: var(--ink-soft);
            background: none;
            border: none;
            padding: 6px 11px;
            border-radius: 20px;
            cursor: pointer;
            display: inline-flex; align-items: center; gap: 5px;
            transition: color .15s, background .15s;
        }
        .nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--ink); background: var(--surface2); }
        .nav-drop-btn.active { color: var(--gold); background: var(--gold-glow); }
        .nav-drop-btn .caret { font-size: 0.65rem; transition: transform .2s var(--ease); }
        .nav-drop.open .nav-drop-btn .caret { transform: rotate(180deg); }
        .nav-drop-menu {
            position: absolute; top: calc(100% + 8px); left: 0;
            min-width: 210px;
            background: color-mix(in srgb, var(--surface) 98%, transparent);
            backdrop-filter: blur(14px);
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 6px;
            display: flex; flex-direction: column;
            opacity: 0; visibility: hidden; transform: translateY(-6px);
            transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
            z-index: 60;
        }
        .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        /* Drugie menu ("Read") stoi przy prawej krawedzi paska, wiec rozwiniete
           w lewo wychodzilo poza ekran. Wyrownujemy je do prawej. */
        .nav-drop:last-of-type .nav-drop-menu { left: auto; right: 0; }
        /* Menu "Tools" ma trzydziesci kilka pozycji i bylo wyzsze niz okno —
           konczylo sie poza ekranem, bez sposobu, zeby do niego dojechac. */
        .nav-drop-menu { max-height: calc(100vh - 92px); overflow-y: auto; }
        .nav-drop-menu a {
            padding: 9px 12px;
            border-radius: 8px;
            font-size: 0.83rem;
            white-space: nowrap;
        }
        /* Pasek nigdy sie nie lamie: przy jednej linii to jedyne, co go trzyma. */
        .nav-links { flex-wrap: nowrap; }

        @media (max-width: 780px) {
            .nav-drop { width: 100%; }
            .nav-drop-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 0.92rem; border-radius: 9px; }
            .nav-drop-menu {
                position: static; opacity: 1; visibility: visible; transform: none;
                background: none; border: none; box-shadow: none; backdrop-filter: none;
                min-width: 0; padding: 0 0 0 12px;
                max-height: 0; overflow: hidden;
                transition: max-height .25s var(--ease);
            }
            .nav-drop.open .nav-drop-menu { max-height: 520px; }
            .nav-drop-menu a { padding: 11px 14px; font-size: 0.88rem; }
        }

        .nav-toggle {
            display: none;
            width: 38px; height: 38px;
            border-radius: 9px;
            border: 1px solid var(--line);
            background: var(--surface);
            color: var(--ink);
            align-items: center; justify-content: center;
            cursor: pointer;
        }
        .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
            content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink);
            position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
        }
        .nav-toggle span::before { position: absolute; top: -5px; }
        .nav-toggle span::after  { position: absolute; top: 5px; }
        .nav-toggle.open span { background: transparent; }
        .nav-toggle.open span::before { transform: translateY(5px) rotate(45deg); background: var(--ink); }
        .nav-toggle.open span::after  { transform: translateY(-5px) rotate(-45deg); background: var(--ink); }

        @media (max-width: 780px) {
            .nav-toggle { display: flex; }
            .nav-links {
                position: fixed; inset: 61px 0 auto 0;
                flex-direction: column; align-items: stretch; gap: 0;
                background: color-mix(in srgb, var(--surface) 98%, transparent);
                backdrop-filter: blur(14px);
                border-bottom: 1px solid var(--line);
                padding: 8px;
                max-height: 0; overflow: hidden;
                transition: max-height .28s var(--ease);
            }
            .nav-links.open { max-height: 70vh; overflow-y: auto; }
            .nav-links a { padding: 12px 14px; border-radius: 9px; font-size: 0.92rem; }
        }

        /* -- Hero -- */
        .hero {
            position: relative;
            padding: 96px 0 60px;
            border-bottom: 1px solid var(--line);
            overflow: hidden;
        }
        .hero::before {
            content: "";
            position: absolute;
            top: -220px; right: -160px;
            width: 560px; height: 560px;
            background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent), transparent 68%);
            filter: blur(10px);
            pointer-events: none;
        }
        .hero::after {
            content: "";
            position: absolute;
            bottom: -260px; left: -200px;
            width: 480px; height: 480px;
            background: radial-gradient(circle, color-mix(in srgb, var(--gold) 13%, transparent), transparent 70%);
            pointer-events: none;
        }
        /* -- Hero photo background: two layers crossfading, slow Ken Burns drift -- */
        .hero-bg {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
        }
        .hero-bg-layer {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transform: scale(1.06);
            transition: opacity 2.2s ease-in-out;
            will-change: opacity, transform;
        }
        .hero-bg-layer.is-active {
            /* Raise toward 0.5 for a bolder photo, drop toward 0.2 for a hint of texture. */
            opacity: 0.42;
        }
        /* Movement is a separate class from visibility. If the two are combined,
           an outgoing layer loses its zoom the instant it starts fading and
           visibly snaps back to its starting scale. */
        .hero-bg-layer.is-drifting {
            animation: heroDrift 11.4s linear forwards;
        }
        @keyframes heroDrift {
            from { transform: scale(1.04) translate3d(0, 0, 0); }
            to   { transform: scale(1.12) translate3d(-1%, -1.2%, 0); }
        }
        /* Zywy slad wiazki. Siedzi nad tlem ekranu, pod zaslona czytelnosci —
           rysuje go scopeBeam() w site.js. Bez JS zostaje samo tlo. */
        .hero-scope {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0.92;
            pointer-events: none;
        }
        @media (max-width: 900px) { .hero-scope { opacity: 0.72; } }

        /* Veil keeps text legible over any photo, and fades the image into the page */
        .hero-bg::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(100deg, color-mix(in srgb, var(--surface) 94%, transparent) 0%, color-mix(in srgb, var(--surface) 78%, transparent) 40%, color-mix(in srgb, var(--surface) 40%, transparent) 100%),
                linear-gradient(to bottom, color-mix(in srgb, var(--surface) 55%, transparent) 0%, transparent 25%, transparent 65%, var(--bg) 100%);
        }
        @media (max-width: 900px) {
            .hero-bg-layer.is-active { opacity: 0.30; }
            .hero-bg::after {
                background:
                    linear-gradient(to bottom, color-mix(in srgb, var(--surface) 88%, transparent) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 60%, var(--bg) 100%);
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-bg-layer.is-drifting { animation: none; transform: scale(1.04); }
            .hero-bg-layer { transition: none; }
        }

        .hero-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--mono);
            font-size: 0.72rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 20px;
            position: relative;
        }
        .hero-eyebrow::before {
            content: ""; width: 7px; height: 7px; border-radius: 50%;
            background: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow);
        }
        .hero h1 {
            position: relative;
            font-family: var(--serif);
            font-size: clamp(2.4rem, 5.4vw, 3.75rem);
            line-height: 1.06;
            letter-spacing: -0.02em;
            max-width: 17ch;
            margin-bottom: 22px;
        }
        .hero h1 em { color: var(--gold); font-style: italic; }
        .hero-sub {
            position: relative;
            color: var(--ink-soft);
            max-width: 52ch;
            font-size: 1.08rem;
        }
        .hero-chips {
            position: relative;
            display: flex; flex-wrap: wrap; gap: 8px;
            margin-top: 22px;
        }
        .hero-chip {
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.03em;
            color: var(--ink-soft);
            border: 1px solid var(--line);
            background: var(--surface);
            padding: 5px 11px;
            border-radius: 20px;
        }
        .hero-nav {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 34px;
        }
        .btn {
            display: inline-block;
            padding: 12px 24px;
            border-radius: 9px;
            font-size: 0.88rem;
            font-weight: 600;
            text-decoration: none;
            transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .15s;
        }
        .btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--gold) 55%, transparent); }
        .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--gold) 65%, transparent); }
        .btn-ghost { border: 1px solid var(--line); color: var(--ink-soft); }
        .btn-ghost:hover { transform: translateY(-2px); color: var(--ink); background: var(--surface2); }

        /* -- Hero layout -- */
        .hero-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            gap: 52px;
            align-items: center;
        }
        .hero-copy { min-width: 0; }
        @media (max-width: 900px) {
            .hero-grid { grid-template-columns: 1fr; gap: 36px; }
            .hero { padding-top: 60px; }
        }

        /* -- Hero instant-check card -- */
        .hero-check {
            background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 26px;
            box-shadow: var(--shadow-gold);
            backdrop-filter: blur(6px);
        }
        .hero-check-head { margin-bottom: 20px; }
        .hero-check-tag {
            display: inline-block;
            font-family: var(--mono);
            font-size: 0.65rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 8px;
        }
        .hero-check-title {
            font-family: var(--serif);
            font-size: 1.5rem;
            line-height: 1.15;
            letter-spacing: -0.01em;
            color: var(--ink);
        }
        .hero-check select {
            width: 100%;
            padding: 11px 13px;
            background: var(--bg);
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--ink);
            font-size: 0.92rem;
            font-family: var(--sans);
            outline: none;
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s;
        }
        .hero-check select:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-glow); }
        .hero-check select option { background: var(--surface2); }
        .hero-check select optgroup { color: var(--gold); font-size: 0.78rem; }

        .hero-check-out {
            margin-top: 20px;
            padding-top: 18px;
            border-top: 1px solid var(--line);
        }
        .hero-check-num {
            font-family: var(--mono);
            font-size: 2.3rem;
            font-weight: 600;
            color: var(--gold);
            letter-spacing: -0.02em;
            font-variant-numeric: tabular-nums;
            line-height: 1.1;
        }
        .hero-check-num small { font-size: 0.92rem; color: var(--gold-dim); font-weight: 400; }
        .hero-check-verdict {
            margin-top: 8px;
            font-size: 0.92rem;
            font-weight: 600;
            line-height: 1.45;
            color: var(--ink);
        }
        .hero-check-verdict.ok   { color: var(--good); }
        .hero-check-verdict.warn { color: var(--warn); }
        .hero-check-verdict.bad  { color: var(--bad); }
        .hero-check-rows { margin-top: 16px; }
        .hero-check-rows div {
            display: flex; justify-content: space-between; align-items: baseline;
            padding: 8px 0;
            border-top: 1px solid var(--line);
            font-size: 0.85rem;
        }
        .hero-check-rows span { color: var(--ink-soft); }
        .hero-check-rows b { font-family: var(--mono); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
        .hero-check-link {
            display: inline-block;
            margin-top: 18px;
            font-size: 0.82rem;
            color: var(--ink-soft);
            text-decoration: none;
            border-bottom: 1px solid var(--gold-dim);
            padding-bottom: 2px;
            transition: color .15s;
        }
        .hero-check-link:hover { color: var(--gold); }

        /* -- Hero stat strip -- */
        .hero-stats {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin-top: 52px;
            padding-top: 26px;
            border-top: 1px solid var(--line);
        }
        .hero-stats div { display: flex; flex-direction: column; gap: 3px; }
        .hero-stats b {
            font-family: var(--mono);
            font-size: 1.75rem;
            color: var(--gold);
            font-weight: 600;
            letter-spacing: -0.02em;
        }
        .hero-stats span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }
        @media (max-width: 560px) {
            .hero-stats { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
            .hero-stats div { flex-direction: row; align-items: baseline; gap: 10px; }
            .hero-stats b { font-size: 1.3rem; }
        }

        /* -- Section wrapper -- */
        .section {
            position: relative;
            padding: 68px 0;
            border-bottom: 1px solid var(--line);
            opacity: 0; transform: translateY(22px);
            transition: opacity .6s var(--ease), transform .6s var(--ease);
        }
        .section.in-view { opacity: 1; transform: translateY(0); }
        .section:last-child { border-bottom: none; }
        .section:nth-of-type(even)::before {
            content: "";
            position: absolute; inset: 0 -22px;
            background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ink) 1.2%, transparent) 12%, color-mix(in srgb, var(--ink) 1.2%, transparent) 88%, transparent);
            pointer-events: none; z-index: -1;
        }

        .section-label {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--gold);
            margin-bottom: 14px;
        }
        .section-label::before { content: ""; width: 16px; height: 1.5px; background: var(--gold-dim); }
        .section h2 {
            font-family: var(--serif);
            font-size: clamp(1.7rem, 3.2vw, 2.35rem);
            letter-spacing: -0.015em;
            line-height: 1.15;
            margin-bottom: 18px;
        }
        .section h3 {
            font-family: var(--serif);
            font-size: 1.25rem;
            letter-spacing: -0.01em;
            margin: 30px 0 10px;
            color: var(--ink);
        }
        .prose { color: var(--ink-soft); max-width: 68ch; }
        .prose p { margin-bottom: 16px; line-height: 1.75; }
        .prose p:last-child { margin-bottom: 0; }
        .prose strong { color: var(--ink); }
        .prose ul { margin: 0 0 16px 20px; }
        /* Liczba, ktorej producent przeczy sam sobie. Zostaje na stronie taka,
           jak ja wydrukowal, ale watpliwosc jest widoczna obok niej. */
        .dispute { max-width: 68ch; margin: 18px 0 0; padding: 14px 18px;
                   border-left: 2px solid var(--gold-dim); background: var(--gold-glow);
                   border-radius: 0 10px 10px 0; color: var(--ink-soft);
                   line-height: 1.7; font-size: 0.94rem; }
        .dispute strong { color: var(--ink); }
        .dispute .dispute-h { display: block; font-family: var(--mono);
                   font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
                   color: var(--gold); margin-bottom: 7px; }
        .dispute .dispute-src { display: block; margin-top: 9px; font-size: 0.82rem;
                   color: var(--ink-dim); }
        .dispute .dispute-src a { color: var(--ink-dim); }
        .prose li { margin-bottom: 6px; }

        /* Wzor w zdaniu. Do tej pory kazdy wzor mial styl wpisany w atrybut
           style=, wiec kazdy wygladal troche inaczej. Jedna klasa, jeden wyglad. */
        .mono { font-family: var(--mono); font-size: 0.9em; color: var(--gold);
                white-space: nowrap; }
        .prose ol { margin: 0 0 16px 22px; }
        .prose ol li { margin-bottom: 10px; line-height: 1.7; }

        /* -- Calculator -- */
        .calc-card {
            background: linear-gradient(180deg, var(--surface), var(--surface) 60%, var(--surface2));
            border: 1px solid var(--line);
            border-radius: var(--radius);
            overflow: hidden;
            margin-top: 32px;
            box-shadow: var(--shadow-gold);
            transition: box-shadow .3s var(--ease);
        }
        .calc-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        @media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }

        .calc-inputs { padding: 28px; }
        .calc-output {
            background: var(--surface2);
            border-left: 1px solid var(--line);
            padding: 28px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        @media (max-width: 640px) {
            .calc-output { border-left: none; border-top: 1px solid var(--line); }
        }

        .field { margin-bottom: 20px; }
        .field:last-child { margin-bottom: 0; }
        .field-label {
            display: block;
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--ink-soft);
            margin-bottom: 8px;
        }
        .field select {
            width: 100%;
            padding: 11px 13px;
            background: var(--bg);
            border: 1px solid var(--line);
            border-radius: 7px;
            color: var(--ink);
            font-size: 0.95rem;
            font-family: var(--sans);
            outline: none;
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s;
        }
        .field select:focus {
            border-color: var(--gold-dim);
            box-shadow: 0 0 0 3px var(--gold-glow);
        }
        .field select option { background: var(--surface2); }
        .field select optgroup { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.06em; }

        .field input {
            width: 100%;
            padding: 11px 13px;
            background: var(--bg);
            border: 1px solid var(--line);
            border-radius: 7px;
            color: var(--ink);
            font-size: 1rem;
            font-family: var(--sans);
            outline: none;
            transition: border-color .15s, box-shadow .15s;
        }
        .field input:focus {
            border-color: var(--gold-dim);
            box-shadow: 0 0 0 3px var(--gold-glow);
        }
        .field-hint { font-size: 0.78rem; color: var(--ink-dim); margin-top: 5px; }

        /* Result readout */
        .readout-label {
            font-family: var(--mono);
            font-size: 0.68rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ink-dim);
            margin-bottom: 4px;
        }
        .readout-value {
            font-family: var(--mono);
            font-size: 2.6rem;
            font-weight: 600;
            color: var(--gold);
            letter-spacing: -0.02em;
            font-variant-numeric: tabular-nums;
            line-height: 1.1;
            margin-bottom: 24px;
        }
        .readout-value small {
            font-size: 1rem;
            color: var(--gold-dim);
            font-weight: 400;
        }

        .verdict {
            padding: 14px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 16px;
            display: none;
        }
        .verdict.ok   { background: color-mix(in srgb, var(--good) 12%, transparent);  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);  color: var(--good); display: block; }
        .verdict.warn { background: color-mix(in srgb, var(--warn) 10%, transparent);  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); display: block; }
        .verdict.bad  { background: color-mix(in srgb, var(--bad) 12%, transparent);  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);  color: var(--bad); display: block; }

        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 10px 0;
            border-top: 1px solid var(--line);
        }
        .stat-row .k { color: var(--ink-soft); font-size: 0.85rem; }
        .stat-row .v { font-family: var(--mono); font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }

        /* -- Quote block -- */
        .pullquote {
            position: relative;
            border-left: 3px solid var(--gold);
            padding: 22px 26px;
            margin: 32px 0;
            background: linear-gradient(120deg, var(--gold-glow), transparent 70%);
            border-radius: 0 var(--radius) var(--radius) 0;
            box-shadow: var(--shadow-sm);
        }
        .pullquote p {
            font-family: var(--serif);
            font-size: 1.25rem;
            font-style: italic;
            color: var(--ink);
            line-height: 1.5;
            margin: 0;
        }

        /* -- Journey timeline -- */
        .timeline { position: relative; margin-top: 32px; padding-left: 2px; }
        .timeline::before {
            content: ""; position: absolute; left: 79px; top: 6px; bottom: 6px; width: 1px;
            background: linear-gradient(180deg, var(--gold-dim), var(--line) 90%);
        }
        .tl-item {
            position: relative;
            display: grid;
            grid-template-columns: 80px 1fr;
            gap: 0 20px;
            margin-bottom: 26px;
        }
        .tl-tag {
            font-family: var(--mono);
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--gold);
            padding-top: 3px;
            text-align: right;
        }
        .tl-body { position: relative; border-left: 1px solid var(--line); padding-left: 20px; }
        .tl-body::before {
            content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px;
            border-radius: 50%; background: var(--bg); border: 2px solid var(--gold);
        }
        .tl-body strong { color: var(--ink); display: block; margin-bottom: 4px; }
        .tl-photo {
            display: block;
            width: 100%;
            max-width: 380px;
            margin-top: 12px;
            border-radius: 10px;
            border: 1px solid var(--line);
            box-shadow: var(--shadow-sm);
        }
        .about-photo {
            display: block;
            width: 100%;
            margin: 22px 0;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            box-shadow: var(--shadow-md);
        }
        .photo-caption {
            font-size: 0.78rem;
            color: var(--ink-dim);
            margin-top: 6px;
            font-style: italic;
        }
        .tl-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
        @media (max-width: 520px) { .timeline::before { left: 59px; } }

        /* -- FAQ (accordion) -- */
        .faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
        .faq details {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 4px 18px;
            transition: border-color .18s, background .18s;
        }
        .faq details[open] { border-color: var(--gold-dim); background: var(--surface2); }
        .faq summary {
            list-style: none;
            cursor: pointer;
            font-weight: 600;
            color: var(--ink);
            padding: 16px 30px 16px 0;
            position: relative;
        }
        .faq summary::-webkit-details-marker { display: none; }
        .faq summary::after {
            content: "+";
            position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
            font-family: var(--mono); font-size: 1.1rem; color: var(--gold);
            transition: transform .25s var(--ease);
        }
        .faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
        .faq details p { color: var(--ink-soft); margin: 0 0 16px; max-width: 66ch; line-height: 1.7; }

        /* -- Footer -- */
        footer {
            border-top: 1px solid var(--line);
            padding: 34px 0 40px;
            color: var(--ink-dim);
            font-size: 0.82rem;
        }
        footer a { color: var(--ink-dim); text-decoration: none; }
        footer a:hover { color: var(--gold); }

        /* -- Back to top -- */
        .to-top {
            position: fixed; right: 20px; bottom: 20px; z-index: 40;
            width: 42px; height: 42px; border-radius: 50%;
            background: var(--surface2); border: 1px solid var(--line);
            color: var(--gold); display: flex; align-items: center; justify-content: center;
            text-decoration: none; box-shadow: var(--shadow-sm);
            opacity: 0; pointer-events: none; transform: translateY(8px);
            transition: opacity .2s var(--ease), transform .2s var(--ease), background .15s;
        }
        .to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
        .to-top:hover { background: var(--surface); }


        /* -- Amp matcher -- */
        .amp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
        .amp-card {
            background: var(--surface2); border: 1px solid var(--line); border-radius: 13px; padding: 18px;
            box-shadow: var(--shadow-sm);
            transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
        }
        .amp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-dim); }
        .amp-card.budget  { border-top: 3px solid var(--good); }
        .amp-card.midfi   { border-top: 3px solid var(--warn); }
        .amp-card.highend { border-top: 3px solid var(--gold); }
        .amp-card h4 { color: var(--ink); font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
        .amp-card .amp-tier { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
        .amp-card.budget  .amp-tier { color: var(--good); }
        .amp-card.midfi   .amp-tier { color: var(--warn); }
        .amp-card.highend .amp-tier { color: var(--gold); }
        .amp-card .amp-spec { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 4px; }
        .amp-card .amp-note { font-size: 0.8rem; color: var(--ink-dim); margin-top: 8px; line-height: 1.5; }
        .amp-card .amp-verdict { font-size: 0.78rem; font-weight: 600; margin-top: 10px; padding: 5px 9px; border-radius: 5px; display: inline-block; }
        .amp-card .amp-verdict.ok   { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
        .amp-card .amp-verdict.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
        .amp-card .amp-verdict.bad  { background: color-mix(in srgb, var(--bad) 12%, transparent);  color: var(--bad); }
        .amp-empty { color: var(--ink-soft); font-size: 0.95rem; margin-top: 16px; }

        /* -- Source type filter -- */
        .type-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
        .type-btn {
            font-family: var(--sans);
            font-size: 0.8rem;
            color: var(--ink-soft);
            background: var(--surface);
            border: 1px solid var(--line);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: color .15s, background .15s, border-color .15s;
        }
        .type-btn:hover { color: var(--ink); background: var(--surface2); }
        .type-btn.is-on {
            color: var(--on-gold);
            background: var(--gold);
            border-color: var(--gold);
            font-weight: 600;
        }
        .amp-card .amp-flag {
            display: block;
            font-size: 0.78rem;
            margin-top: 8px;
            padding: 6px 9px;
            border-radius: 5px;
            line-height: 1.4;
        }
        .amp-card .amp-flag.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); }
        .amp-card .amp-flag.bad  { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
        .amp-type-badge {
            display: inline-block;
            font-family: var(--mono);
            font-size: 0.6rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--ink-soft);
            border: 1px solid var(--line);
            border-radius: 4px;
            padding: 2px 6px;
            margin-left: 6px;
            vertical-align: middle;
        }

        /* -- Impedance check -- */
        /* -- Collection Matcher: lista wybranych sluchawek -- */
        .col-chips { display: flex; flex-wrap: wrap; gap: 8px; }
        .col-chips:empty { display: none; }
        .col-chip {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 7px 10px 7px 12px; border-radius: 999px;
            border: 1px solid var(--line); background: var(--surface2);
            font-size: .84rem; color: var(--ink);
        }
        .col-chip button {
            border: 0; background: none; cursor: pointer; padding: 0 2px;
            color: var(--ink-soft); font-size: 1rem; line-height: 1;
        }
        .col-chip button:hover { color: var(--bad); }
        .col-chip .col-z { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

        .imp-result { margin-top: 20px; padding: 16px; border-radius: 8px; display: none; }
        .imp-result.ok   { background: color-mix(in srgb, var(--good) 10%, transparent);  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);  color: var(--good); }
        .imp-result.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
        .imp-result.bad  { background: color-mix(in srgb, var(--bad) 10%, transparent);  border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);  color: var(--bad); }
        .imp-result strong { color: inherit; }

        /* -- Compare -- */
        .compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
        @media (max-width: 580px) { .compare-grid { grid-template-columns: 1fr; } }
        .compare-col { background: var(--surface2); border: 1px solid var(--line); border-radius: 13px; padding: 20px; box-shadow: var(--shadow-sm); }
        .compare-col h4 { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; margin-bottom: 14px; }
        .compare-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
        .compare-stat:last-child { border-bottom: none; }
        .compare-stat .ck { color: var(--ink-soft); }
        .compare-stat .cv { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
        .compare-winner { margin-top: 16px; padding: 10px 14px; border-radius: 7px; background: var(--gold-glow); border: 1px solid var(--gold-dim); font-size: 0.85rem; color: var(--ink-soft); }

        /* -- Stack recommender -- */
        .budget-slider-wrap { margin: 20px 0; }
        .budget-slider-wrap label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
        .budget-slider-wrap input[type=range] { width: 100%; accent-color: var(--gold); }
        .budget-val { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); font-weight: 600; margin-top: 6px; }
        .stack-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
        .stack-card {
            background: var(--surface2); border: 1px solid var(--line); border-radius: 13px; padding: 20px;
            box-shadow: var(--shadow-sm);
            transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
        }
        .stack-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-dim); }
        .stack-card h4 { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
        .stack-card .stack-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
        .stack-item { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 5px; }
        .stack-item strong { color: var(--ink); }
        .stack-total { margin-top: 12px; font-family: var(--mono); font-size: 0.9rem; color: var(--gold); font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
        .stack-price { font-family: var(--mono); font-size: 0.78rem; color: var(--gold-dim); white-space: nowrap; }
        .stack-left { color: var(--ink-dim); font-weight: 400; font-size: 0.8rem; }
        .stack-note { font-size: 0.78rem; color: var(--ink-dim); margin-top: 8px; line-height: 1.5; }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            * { transition: none !important; animation: none !important; }
            .section { opacity: 1 !important; transform: none !important; }
        }

/* ---------------------------------------------------------------
   Database browser
   --------------------------------------------------------------- */
.db-controls { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-top: 26px; }
@media (max-width: 780px) { .db-controls { grid-template-columns: 1fr 1fr; } .db-search { grid-column: 1 / -1; } }
.db-search, .db-select {
    padding: 11px 13px; background: var(--bg); border: 1px solid var(--line);
    border-radius: 8px; color: var(--ink); font-size: 0.9rem; font-family: var(--sans);
    outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.db-search:focus, .db-select:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px var(--gold-glow); }
.db-select { cursor: pointer; }
.db-select option { background: var(--surface2); }
.db-count { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-dim); margin: 14px 0 8px; letter-spacing: 0.06em; }
.db-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
/* Tabela wewnatrz .prose nie miesci sie w 68ch — kolumny lamia sie na dwie linie.
   Tabele licza sie z bazy i maja po 4-5 kolumn, wiec dostaja pelna szerokosc sekcji. */
.db-wrap.prose-wide { margin: 18px 0 20px; }
.db-table th .nocase { text-transform: none; }
.db-wrap.prose-wide .db-table { font-size: 0.855rem; }
.db-wrap.prose-wide .db-table th,
.db-wrap.prose-wide .db-table td { white-space: nowrap; }
@media (max-width: 560px) {
  .db-wrap.prose-wide .db-table { font-size: 0.8rem; }
  .db-wrap.prose-wide .db-table th,
  .db-wrap.prose-wide .db-table td { padding: 9px 11px; }
}
.db-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.db-table th {
    text-align: left; padding: 12px 14px; background: var(--surface2);
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.db-table th.sortable { cursor: pointer; user-select: none; }
.db-table th.sortable:hover { color: var(--ink); }
.db-table th.asc::after  { content: " \2191"; color: var(--gold); }
.db-table th.desc::after { content: " \2193"; color: var(--gold); }
.db-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.db-table tr:last-child td { border-bottom: none; }
.db-table tbody tr:hover { background: var(--surface2); }
.db-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-name { color: var(--ink); font-weight: 500; }
.db-brand { color: var(--ink-dim); font-size: 0.8rem; }
.db-pill {
    display: inline-block; padding: 3px 9px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.db-pill.r0 { background: color-mix(in srgb, var(--good) 15%, transparent);  color: var(--good); }
.db-pill.r1 { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
.db-pill.r2 { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.db-pill.r3 { background: color-mix(in srgb, var(--bad) 15%, transparent);  color: var(--bad); }
.db-pill.r4 { background: color-mix(in srgb, var(--ink-dim) 16%, transparent); color: var(--ink-dim); }
.db-empty { color: var(--ink-soft); margin-top: 18px; }

nav a.logo, nav a.logo:hover, nav a.logo:visited { text-decoration: none; border-bottom: none; }

/* ---------------------------------------------------------------
   Link colour reset — a link without an explicit colour falls back
   to the browser default blue, which has no place in this palette.
   --------------------------------------------------------------- */
a { color: inherit; }
a:link, a:visited { color: inherit; }
::selection { background: color-mix(in srgb, var(--gold) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
input, select, textarea, button { accent-color: var(--gold); caret-color: var(--gold); }

/* ---------------------------------------------------------------
   Hub cards (landing + related-tools blocks)
   --------------------------------------------------------------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 26px;
}
.hub-card {
    display: flex;
    flex-direction: column;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 20px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-dim); }
.hub-card h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.hub-card p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.hub-card .hub-go {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gold);
}
.hub-card.read { border-left: 3px solid var(--gold-dim); }
.section.related { border-bottom: none; padding-bottom: 20px; }

/* ---------------------------------------------------------------
   Footer columns
   --------------------------------------------------------------- */
.footer-inner { display: block; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 28px; }
.footer-cols h5 {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); margin: 0 0 12px; font-weight: 400;
}
.footer-cols a { display: block; color: var(--ink-soft); font-size: 0.84rem; padding: 4px 0; text-decoration: none; }
.footer-cols a:hover { color: var(--gold); }
.footer-blurb { color: var(--ink-dim); font-size: 0.84rem; line-height: 1.6; max-width: 38ch; }
.footer-base {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid var(--line); padding-top: 18px;
}
@media (max-width: 700px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-cols div:last-child { grid-column: 1 / -1; }
}

nav a.logo, nav a.logo:hover, nav a.logo:visited { text-decoration: none; border-bottom: none; }


/* ===============================================================
   LANDING v2 — hero art, marquee, counters, feature card, quote
   =============================================================== */
.v2-hero{position:relative;min-height:70vh;display:flex;align-items:center;overflow:hidden;
  border-bottom:1px solid var(--line)}
.v2-bg{position:absolute;inset:0;z-index:0}
.v2-layer{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;filter:saturate(.85);
  transition:opacity 2.2s ease-in-out;transform:scale(1.05)}
.v2-layer.on{opacity:.42}
.v2-layer.anim{animation:v2drift 11.4s linear forwards}
@keyframes v2drift{from{transform:scale(1.05) translate3d(0,0,0)}to{transform:scale(1.13) translate3d(-1.1%,-1.4%,0)}}
.v2-bg::after{content:"";position:absolute;inset:0;background:
  linear-gradient(95deg,color-mix(in srgb, var(--surface) 93%, transparent) 0%,color-mix(in srgb, var(--surface) 76%, transparent) 36%,color-mix(in srgb, var(--surface) 34%, transparent) 70%,color-mix(in srgb, var(--surface) 62%, transparent) 100%),
  linear-gradient(to bottom,color-mix(in srgb, var(--surface) 70%, transparent) 0%,transparent 22%,transparent 70%,var(--bg) 100%)}
.v2-bg.has-scope .v2-layer{animation:none!important;transform:scale(1.02)}
.v2-hero .wrap{position:relative;z-index:1;width:100%}
.v2-kicker{display:inline-flex;align-items:center;gap:9px;font-family:var(--mono);font-size:.7rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:22px}
.v2-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 0 4px var(--gold-glow);animation:v2pulse 2.6s ease-in-out infinite}
@keyframes v2pulse{0%,100%{box-shadow:0 0 0 4px var(--gold-glow)}50%{box-shadow:0 0 0 9px color-mix(in srgb, var(--gold) 5%, transparent)}}
.v2-hero h1{font-family:var(--serif);font-size:clamp(2.6rem,6.4vw,4.9rem);line-height:1.02;
  letter-spacing:-.028em;max-width:15ch;margin-bottom:26px}
.v2-hero h1 em{color:var(--gold);font-style:italic}
.v2-sub{color:var(--ink-soft);max-width:56ch;font-size:1.16rem;line-height:1.68}
.v2-cta{display:flex;flex-wrap:wrap;gap:13px;margin-top:36px}
.v2-scroll{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);z-index:1;
  font-family:var(--mono);font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-dim);display:flex;flex-direction:column;align-items:center;gap:7px}
.v2-scroll span{display:block;width:1px;height:26px;background:linear-gradient(var(--gold),transparent);
  animation:v2down 2s ease-in-out infinite}
@keyframes v2down{0%,100%{opacity:.25;transform:translateY(-4px)}50%{opacity:1;transform:translateY(4px)}}

/* hero — jedna kolumna, bez grafiki */
.v2-hero-grid{display:block;width:100%}
.v2-hero-txt{min-width:0;max-width:none}
.v2-note{margin-top:28px;font-size:.86rem;color:var(--ink-dim);line-height:1.6;max-width:54ch}
@media(max-width:900px){
  .v2-hero-txt{max-width:none}
  .v2-hero{min-height:auto;padding:70px 0 60px}
  /* on a phone the page obviously scrolls, and the hint would land on the note */
  .v2-scroll{display:none}
}

/* liczniki */
.v2-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;padding:56px 0;
  border-bottom:1px solid var(--line)}
.v2-stat b{display:block;font-family:var(--mono);font-size:2.5rem;color:var(--gold);font-weight:600;
  letter-spacing:-.03em;line-height:1}
.v2-stat span{display:block;font-size:.81rem;color:var(--ink-soft);margin-top:8px;line-height:1.4}
@media(max-width:700px){.v2-stats{grid-template-columns:1fr 1fr;gap:26px}}

/* kroki */
.v2-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:34px}
.v2-step{position:relative;padding-top:26px;border-top:2px solid var(--line);transition:border-color .3s}
.v2-step:hover{border-top-color:var(--gold)}
.v2-step b{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;color:var(--gold);
  display:block;margin-bottom:12px}
.v2-step h3{font-family:var(--serif);font-size:1.32rem;margin-bottom:10px;color:var(--ink)}
.v2-step p{color:var(--ink-soft);font-size:.9rem;line-height:1.65}
@media(max-width:760px){.v2-steps{grid-template-columns:1fr;gap:30px}}

/* wyróżniona karta narzędzia */
.v2-feature{display:grid;grid-template-columns:1.1fr .9fr;gap:0;margin-top:34px;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-gold)}
.v2-feature-txt{padding:38px}
.v2-feature-vis{background:linear-gradient(150deg,var(--surface2),var(--surface));
  border-left:1px solid var(--line);padding:38px;display:flex;flex-direction:column;justify-content:center}
.v2-feature h3{font-family:var(--serif);font-size:1.75rem;margin-bottom:14px;letter-spacing:-.01em}
.v2-feature p{color:var(--ink-soft);font-size:.93rem;line-height:1.7;margin-bottom:12px}
.v2-bar{margin-bottom:16px}
.v2-bar-top{display:flex;justify-content:space-between;font-size:.78rem;color:var(--ink-soft);margin-bottom:6px}
.v2-bar-top b{font-family:var(--mono);color:var(--ink)}
.v2-bar-rail{height:7px;border-radius:20px;background:var(--bg);overflow:hidden;border:1px solid var(--line)}
.v2-bar-fill{height:100%;border-radius:20px;width:0;transition:width 1.4s cubic-bezier(.16,.8,.3,1)}
.v2-bar-fill.g{background:linear-gradient(90deg,var(--good),var(--good))}
.v2-bar-fill.o{background:linear-gradient(90deg,var(--gold),var(--warn))}
.v2-bar-fill.r{background:linear-gradient(90deg,var(--bad),var(--bad))}
@media(max-width:860px){.v2-feature{grid-template-columns:1fr}.v2-feature-vis{border-left:none;border-top:1px solid var(--line)}}

.v2-reveal{opacity:0;transform:translateY(26px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.v2-reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .v2-reveal{opacity:1;transform:none}.v2-layer.on{opacity:.42}
  .v2-layer.anim{animation:none;transform:scale(1.05)}
  .v2-scroll span,.v2-kicker::before{animation:none}
}

/* ---- side project badge + acoustics grid ---- */
.side-badge{display:inline-block;padding:6px 13px;border-radius:20px;margin-bottom:16px;
  background:color-mix(in srgb, var(--ink-dim) 10%, transparent);border:1px solid var(--line);color:var(--ink-dim);
  font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase}
.ac-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:14px}
nav .nav-drop-menu a.side{border-top:1px solid var(--line);margin-top:6px;padding-top:10px;color:var(--ink-dim)}

/* ---- shareable result bar ---- */
.share-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin:22px 0 14px;padding:12px 16px;border:1px dashed var(--line);border-radius:10px;
  background:color-mix(in srgb, var(--gold) 3%, transparent)}
.share-txt{font-size:.86rem;color:var(--ink-dim)}
.share-btn{padding:7px 15px;font-size:.82rem}

/* ===============================================================
   SPEC SHEET AUDIT — wykres udzialu jednostek wg marki
   =============================================================== */
.aud-fig { margin: 26px 0 0; }
.aud-legend {
    display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px;
    font-size: .82rem; color: var(--ink-soft);
}
.aud-key { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.aud-key i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.aud-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aud-scroll svg { min-width: 480px; display: block; }
.aud-fig text.ax  { font-size: 11px; fill: var(--ink-soft); font-family: var(--sans); }
.aud-fig text.axn { font-size: 11px; fill: var(--ink-dim); font-family: var(--mono); }
.aud-fig rect { transition: opacity .12s; }
.aud-fig rect:hover { opacity: .72; }
.aud-fig figcaption {
    margin-top: 16px; font-size: .82rem; line-height: 1.6; color: var(--ink-dim);
    max-width: 62ch;
}
@media (max-width: 560px) {
    .aud-fig text.ax { font-size: 10px; }
}


/* ===== strona glowna: ekran powitalny liczony z bazy ===== */
.hstage{position:relative;overflow:hidden;padding:54px 0 56px;min-height:0}
.hstage::before{content:"";position:absolute;inset:-30% -10% auto -10%;height:120%;
  background:
    radial-gradient(52% 46% at 22% 16%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 62%),
    radial-gradient(46% 42% at 82% 4%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%),
    radial-gradient(40% 40% at 60% 86%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 65%);
  filter:blur(6px);animation:hdrift 22s var(--ease) infinite alternate;pointer-events:none}
@keyframes hdrift{0%{transform:translate3d(0,0,0) scale(1)}
  100%{transform:translate3d(-3%,2%,0) scale(1.07)}}
@media (prefers-reduced-motion: reduce){.hstage::before{animation:none}}
.hgrid{position:relative;z-index:2;max-width:1180px;display:grid;
  grid-template-columns:1.02fr 1.28fr;gap:54px;align-items:center}
.heye::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);
  box-shadow:0 0 0 4px var(--gold-glow);display:inline-block;margin-right:9px;
  vertical-align:middle}
.hfig{display:block;font-family:var(--serif);font-size:clamp(4.2rem,10vw,7.6rem);
  line-height:.92;color:var(--gold);letter-spacing:-.03em;margin:8px 0 4px;
  text-shadow:0 0 62px color-mix(in srgb, var(--gold) 42%, transparent), 0 0 140px color-mix(in srgb, var(--gold) 16%, transparent)}
.hfig small{font-size:.24em;letter-spacing:.02em;color:var(--ink-soft);
  text-shadow:none;margin-left:.2em;font-family:var(--sans)}
.hclaim{font-family:var(--serif);color:var(--ink);
  font-size:clamp(1.5rem,2.5vw,2.15rem);line-height:1.22;margin-bottom:22px}
.hclaim em{color:var(--gold);font-style:italic}
.hchips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
.hchips button{background:color-mix(in srgb, var(--surface) 80%, transparent);border:1px solid var(--line);color:var(--ink-soft);
  border-radius:20px;padding:7px 14px;font-family:var(--sans);font-size:.81rem;cursor:pointer;
  transition:color .2s,border-color .2s,background .2s}
.hchips button:hover{color:var(--ink);border-color:var(--gold-dim)}
.hchips button.on{color:var(--surface);background:linear-gradient(135deg,var(--gold),var(--gold-hi));
  border-color:transparent;font-weight:600}
.hseg{display:inline-flex;position:relative;background:var(--surface);
  border:1px solid var(--line);border-radius:999px;padding:4px;margin-bottom:12px}
.hseg button{position:relative;z-index:2;background:none;border:none;cursor:pointer;
  font-family:var(--mono);font-size:.82rem;letter-spacing:.04em;color:var(--ink-soft);
  padding:10px 20px;border-radius:999px;transition:color .25s}
.hseg button.on{color:var(--surface)}
.hseg i{position:absolute;z-index:1;top:4px;bottom:4px;border-radius:999px;
  background:linear-gradient(135deg,var(--gold),var(--gold-hi));
  box-shadow:0 6px 18px -6px color-mix(in srgb, var(--gold) 60%, transparent);
  transition:left .42s var(--ease), width .42s var(--ease)}
.hconv{font-family:var(--mono);font-size:.79rem;color:var(--ink-dim);margin-bottom:22px;
  min-height:1.5em}
.hconv b{color:var(--gold);font-weight:600}
.hcard{background:linear-gradient(160deg,color-mix(in srgb, var(--surface) 72%, transparent),color-mix(in srgb, var(--surface) 82%, transparent));
  border:1px solid var(--line);border-radius:20px;padding:26px 26px 20px;
  box-shadow:var(--shadow-md)}
.hcard-top{font-size:.92rem;color:var(--ink-soft);margin-bottom:16px;padding-bottom:14px;
  border-bottom:1px solid var(--line);line-height:1.6}
.hcard-top b{color:var(--ink);font-weight:500}
.hcard-top u{text-decoration:none;color:var(--gold);font-family:var(--mono);font-size:1.05em}
.hcard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;
  margin-bottom:18px;flex-wrap:wrap}
.hcount{font-family:var(--serif);font-size:clamp(2.4rem,4.6vw,3.6rem);line-height:1;
  color:var(--ink)}
.hcount em{font-style:normal;color:var(--gold)}
.hcount span{font-family:var(--sans);font-size:.3em;color:var(--ink-soft);margin-left:.3em}
.hcard-lab{font-family:var(--mono);font-size:.71rem;letter-spacing:.11em;text-transform:uppercase;
  color:var(--ink-dim);text-align:right;max-width:15em;line-height:1.55}
.hdots{display:grid;grid-template-columns:repeat(28,1fr);gap:5px;margin-bottom:16px}
.hdots i{display:block;aspect-ratio:1;border-radius:3px;background:var(--surface2);
  border:1px solid color-mix(in srgb, var(--ink) 4%, transparent);
  transition:background .5s var(--ease),box-shadow .5s var(--ease),transform .5s var(--ease)}
.hdots i.on{background:linear-gradient(135deg,var(--gold),var(--gold-hi));border-color:transparent;
  box-shadow:0 0 10px color-mix(in srgb, var(--gold) 45%, transparent);transform:scale(1.06)}
.hcard-foot{border-top:1px solid var(--line);padding-top:14px;font-size:.83rem;
  color:var(--ink-dim);line-height:1.6}
.hcard-foot b{color:var(--ink-soft);font-weight:500}

.hplot-sec{border-top:1px solid var(--line);padding:52px 0 58px}
.hplot-sec .wrap{max-width:1180px}
.hplot-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;
  flex-wrap:wrap;margin-bottom:24px}
.hplot-head h2{margin-bottom:8px}
.hplot-head p{color:var(--ink-soft);font-size:.95rem;max-width:36em}
.hlegend{display:flex;gap:18px;font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-dim);flex-wrap:wrap}
.hlegend span{display:flex;align-items:center;gap:7px}
.hlegend b{width:9px;height:9px;border-radius:2px;display:block;border:1px solid var(--ink-dim)}
.hlegend b.on{background:linear-gradient(135deg,var(--gold),var(--gold-hi));border-color:transparent}
.hplotbox{position:relative;background:color-mix(in srgb, var(--surface) 55%, transparent);border:1px solid var(--line);
  border-radius:18px;padding:18px 18px 8px}
#hPlot{width:100%;height:auto;display:block;overflow:visible}
.htip{position:absolute;pointer-events:none;background:color-mix(in srgb, var(--surface) 97%, transparent);
  border:1px solid var(--gold-dim);border-radius:10px;padding:9px 12px;font-size:.8rem;
  line-height:1.5;box-shadow:var(--shadow-md);opacity:0;transition:opacity .15s;z-index:9}
.htip b{color:var(--gold);display:block;font-size:.85rem;margin-bottom:2px}
.htip em{font-style:normal;font-family:var(--mono);font-size:.74rem;color:var(--ink-soft)}

@media(max-width:1000px){
  .hgrid{grid-template-columns:1fr;gap:26px}
  /* Na telefonie siatka kropek musi byc nad zgieciem — to ona jest cala
     rzecza, a akapit moze poczekac. */
  .hcol{display:contents}
  .hblk-a{order:1}
  .hblk-seg{order:2}
  .hgrid .hcard{order:3}
  .hblk-sub{order:4}
  .hblk-cta{order:5}
  .hblk-a .hclaim{margin-bottom:14px}
  .hfig{font-size:clamp(3.6rem,17vw,5.4rem)}
  .hclaim{font-size:clamp(1.25rem,5.4vw,1.7rem)}
  .hgrid .hcard-lab{text-align:left;max-width:none;order:-1}
  .hgrid .hcard-head{align-items:flex-start;flex-direction:column;gap:6px}
}
@media(max-width:620px){.hdots{grid-template-columns:repeat(20,1fr);gap:4px}}

/* ===============================================================
   "MY GEAR" — notka o podstawionym z pamieci przegladarki modelu.
   grid-column trzyma ja na calej szerokosci siatki pol (.ac-grid
   i podobne), a w zwyklym przeplywie jest ignorowane.
   =============================================================== */
.gear-note{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap;margin:4px 0 2px;padding:10px 14px;
  border:1px dashed var(--line);border-radius:10px;background:color-mix(in srgb, var(--gold) 3%, transparent)}
.gear-txt{font-size:.84rem;color:var(--ink-dim)}
.gear-txt b{color:var(--ink-soft)}
.gear-forget{padding:6px 13px;font-size:.8rem;flex:none}

/* ===============================================================
   TEST TONOWY na /hearing-age/ — przyciski w rzedzie i pasek postepu.
   =============================================================== */
.ht-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ht-bar{margin-top:18px;height:4px;border-radius:2px;background:var(--line);overflow:hidden}
.ht-bar i{display:block;height:100%;width:0;border-radius:2px;background:var(--gold);
  transition:width .25s ease}
#htPlaying{font-variant-numeric:tabular-nums}

/* .verdict bez modyfikatora ma display:none, wiec neutralny werdykt testu
   tonowego ("ponizej mediany", "wpisz wiek") nie pokazywalby sie wcale.
   Ten wariant jest widoczny, ale nie udaje ani zgody, ani ostrzezenia. */
.verdict.plain{background:color-mix(in srgb, var(--gold) 5%, transparent);border:1px solid var(--line);
  color:var(--ink-soft);display:block;font-weight:500}

/* .calc-card nie ma wlasnego paddingu -- w zwyklej karcie daja go .calc-inputs
   i .calc-output. Karta testu tonowego nie ma tej siatki, wiec tresc stawala
   przy samej krawedzi, a przy overflow:hidden na karcie prawa kolumna wierszy
   wyniku byla PRZYCIETA na telefonie. */
.ht-card{padding:28px;margin-top:26px}
@media (max-width:640px){ .ht-card{padding:20px} }

/* ===============================================================
   TABELA LICZONA Z BAZY WEWNATRZ KOLUMNY TEKSTU

   .prose ma max-width 68ch, bo tyle znakow w wierszu sie czyta. Tabele
   z generatorow maja 5-6 kolumn i gdy generator wklei je MIEDZY akapity,
   czyli wewnatrz .prose, dziedzicza te szerokosc: na pulpicie tabela ma
   987 px, kontener 603 px, i czytelnik przewija w bok cos, na co w sekcji
   jest miejsce. Dotyczylo to wszystkich dwunastu blokow doklejanych przez
   make_* miedzy znaczniki.

   Poprawka nie rusza typografii: .prose przestaje ograniczac szerokosc
   tylko wtedy, gdy ma w srodku taka tabele, a akapity, listy i naglowki
   w takim .prose dostaja swoje 68ch z powrotem.

   :has() nie ma w starszych przegladarkach -- tam zostaje dzisiejsze
   zachowanie, czyli tabela przewijana w .db-wrap. Nic sie nie psuje.
   =============================================================== */
.prose:has(> .db-wrap.prose-wide) { max-width: none; }
.prose:has(> .db-wrap.prose-wide) > p,
.prose:has(> .db-wrap.prose-wide) > ul,
.prose:has(> .db-wrap.prose-wide) > ol,
.prose:has(> .db-wrap.prose-wide) > h3,
.prose:has(> .db-wrap.prose-wide) > h4,
.prose:has(> .db-wrap.prose-wide) > .dispute { max-width: 68ch; }


/* ===================================================================
   WYGLAD 2026-10 ("makieta D")
   Charakter i strona glowna: iFixit (wyszukiwarka na srodku, rysunki
   sprzetu zamiast zdjec). Podstrony: Our World in Data (tekst szeryfowy,
   wyrazne naglowki sekcji z kreska, ramki "co trzeba wiedziec").
   Tabele: TechPowerUp (gesto, liczby w mono, mocna kreska pod naglowkiem).
   Pasek: Stripe Docs. Kolory wylacznie z tokenow na :root -- jasny
   domyslnie, ciemny wg ustawienia systemu albo przelacznika.
   Ta warstwa NADPISUJE starsze reguly powyzej; kolejnosc ma znaczenie.
   =================================================================== */

body { background: var(--bg); background-attachment: scroll; line-height: 1.6;
       font-family: var(--sans); font-size: 1rem; }
.scroll-progress { height: 3px; background: var(--gold); }
::selection { background: var(--gold-glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* --- pasek gorny --- */
nav { background: var(--surface); border-bottom: 2px solid var(--rule);
      backdrop-filter: none; -webkit-backdrop-filter: none; padding: 10px 0; }
.nav-inner { max-width: 1320px; padding: 0 24px; gap: 18px; }
.logo { font-family: var(--sans); font-weight: 800; font-stretch: 112%; font-size: 1.18rem;
        letter-spacing: -0.01em; gap: 10px; }
.logo em { color: var(--gold); font-style: normal; font-weight: 800; }
.logo .logo-mark { width: 30px; height: 30px; padding: 5px; border-radius: 7px;
                   background: var(--mark-bg); color: var(--mark-fg); box-shadow: inset 0 0 0 1px var(--line2); }
.nav-search { position: relative; flex: 1; max-width: 460px; min-width: 0; }
.nav-search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
                    color: var(--ink-dim); pointer-events: none; }
.nav-search input { width: 100%; font: 500 0.93rem var(--sans); color: var(--ink);
                    padding: 9px 12px 9px 36px; border: 1.5px solid var(--line2); border-radius: 8px;
                    background: var(--bg); outline: none; -webkit-appearance: none; appearance: none; }
.nav-search input::placeholder { color: var(--ink-dim); }
.nav-search input:focus { border-color: var(--ink); background: var(--surface); }
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search-btn { display: none; }
.nav-links { gap: 2px; margin-left: auto; }
.nav-links a, .nav-drop-btn { font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
    color: var(--ink); border-radius: 6px; padding: 8px 12px; }
.nav-links a:hover, .nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { background: var(--surface2); color: var(--ink); }
.nav-links a.active, .nav-drop-btn.active { background: var(--ink); color: var(--on-ink); }
.nav-drop-menu { background: var(--surface); backdrop-filter: none; border: 1.5px solid var(--rule);
                 border-radius: 10px; box-shadow: 6px 6px 0 var(--offset); padding: 6px; }
.nav-drop-menu a { font-weight: 500; font-size: 0.9rem; color: var(--ink-soft); border-radius: 6px; }
.nav-drop-menu a:hover { background: var(--surface2); color: var(--ink); }
.nav-drop-menu a.active { background: var(--ink); color: var(--on-ink); }
.theme-btn, .nav-search-btn { display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border: 1.5px solid var(--line2); border-radius: 8px; background: var(--surface); color: var(--ink);
    cursor: pointer; padding: 0; }
.nav-search-btn { display: none; }
.theme-btn:hover, .nav-search-btn:hover { border-color: var(--ink); }
.theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.nav-toggle { border: 1.5px solid var(--line2); border-radius: 8px; }

/* lista podpowiedzi (pasek i czolowka) */
.ss-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
           background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px;
           box-shadow: 6px 6px 0 var(--offset); padding: 5px; max-height: min(70vh, 460px); overflow-y: auto;
           text-align: left; }
.ss-list[hidden] { display: none; }
.ss-opt { display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
          padding: 9px 11px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.ss-opt .ss-n { font-weight: 600; font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-opt .ss-g { font: 500 0.75rem var(--mono); color: var(--ink-dim); white-space: nowrap; flex: none; }
.ss-opt.on, .ss-opt:hover { background: var(--surface2); }
.ss-opt.on { box-shadow: inset 3px 0 0 var(--gold); }
.ss-none { padding: 10px 12px; font-size: 0.9rem; color: var(--ink-dim); }

@media (max-width: 1060px) { .nav-search { max-width: 300px; } }
@media (max-width: 920px) {
  .nav-search { display: none; }
  .nav-search-btn { display: grid; margin-left: auto; }
  .nav-links { margin-left: 0; }
  nav.search-open .nav-search { display: block; position: absolute; left: 16px; right: 16px;
      top: calc(100% + 2px); max-width: none; }
  nav.search-open .nav-search input { padding: 12px 12px 12px 38px; font-size: 1rem;
      background: var(--surface); border: 2px solid var(--rule); box-shadow: 4px 4px 0 var(--offset); }
}
@media (max-width: 780px) {
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-search-btn { margin-left: auto; }
  .nav-links { position: fixed; inset: 60px 0 auto 0; background: var(--surface); backdrop-filter: none;
               border-bottom: 2px solid var(--rule); }
  .nav-links a, .nav-drop-btn { font-size: 1rem; padding: 12px 14px; }
  .nav-drop-menu { box-shadow: none; border: none; }
  .logo { font-size: 1.05rem; }
  .logo .logo-mark { width: 28px; height: 28px; }
}
@media (max-width: 380px) { .logo span { font-size: .95rem; } .nav-inner { gap: 6px; } }

/* --- sekcje i typografia (Our World in Data) --- */
.section { opacity: 1; transform: none; padding: 52px 0; border-bottom: none; }
.section:nth-of-type(even)::before { content: none; }
.section > .section-label, .section > .wrap > .section-label {
    display: block; font: 700 0.72rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-dim); border-top: 2px solid var(--rule); padding-top: 12px; margin-bottom: 8px; }
.section-label { font-family: var(--sans); font-weight: 700; color: var(--ink-dim); letter-spacing: 0.1em; }
.section-label::before { content: none; }
.section h1, .section h2, .v2-hero h1, h1 { font-family: var(--sans); font-weight: 800; font-stretch: 104%;
    letter-spacing: -0.02em; color: var(--ink); }
.section h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.05; margin-bottom: 18px; font-weight: 850; font-stretch: 108%; }
.section h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); line-height: 1.15; margin-bottom: 14px; }
.section h3 { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.prose { font-family: var(--read); font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); max-width: 68ch; }
.prose p { line-height: 1.65; margin-bottom: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .faq details p a, .dispute a { color: var(--gold); text-decoration: underline;
    text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 2px; }
.prose li { margin-bottom: 6px; }
.prose .db-wrap, .prose table { font-family: var(--sans); font-size: 0.95rem; }
.mono { color: var(--ink); font-family: var(--mono); }
.dispute { font-family: var(--read); font-size: 1rem; border: 1px solid var(--gold-dim);
           border-left: 4px solid var(--gold); background: var(--gold-glow); border-radius: 0 8px 8px 0; }
.dispute .dispute-h { font-family: var(--sans); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em;
                      color: var(--ink); text-transform: none; }

/* --- karty kalkulatorow --- */
.calc-card { background: var(--surface); border: 1.5px solid var(--line2); border-radius: 10px; box-shadow: none; }
.calc-output { background: var(--surface2); }
.field-label, .readout-label { font-family: var(--sans); font-weight: 700; font-size: 0.72rem;
    letter-spacing: 0.08em; color: var(--ink-dim); }
.field select, .field input, .db-search, .db-select {
    background: var(--surface); border: 1.5px solid var(--line2); border-radius: 8px; font-family: var(--sans); }
.field select:focus, .field input:focus, .db-search:focus, .db-select:focus {
    border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold-glow); }
.field select option, .db-select option { background: var(--surface); color: var(--ink); }
.field select optgroup { color: var(--ink-dim); }
.readout-value { color: var(--ink); font-weight: 600; }
.readout-value small { color: var(--ink-dim); }
.stat-row .k { font-family: var(--sans); }
.verdict { border-radius: 8px; font-weight: 700; font-family: var(--sans); }

/* --- przyciski --- */
.btn { font-family: var(--sans); font-weight: 700; border-radius: 8px; }
.btn-gold { background: var(--ink); color: var(--on-ink); box-shadow: none; border: 1.5px solid var(--ink); }
.btn-gold:hover { transform: none; box-shadow: 4px 4px 0 var(--gold); }
.btn-ghost { border: 1.5px solid var(--line2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { transform: none; border-color: var(--ink); background: var(--surface); }
a.btn-gold:link, a.btn-gold:visited { color: var(--on-ink); }

/* --- tabele (TechPowerUp) --- */
.db-wrap { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.db-table { font-size: 0.92rem; font-family: var(--sans); }
.db-table th { font: 700 0.7rem var(--sans); letter-spacing: 0.07em; color: var(--ink-dim);
               background: var(--bg); border-bottom: 2px solid var(--rule); padding: 10px 14px; }
.db-table td { color: var(--ink-soft); padding: 9px 14px; }
.db-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface2) 45%, transparent); }
.db-table tbody tr:hover td { background: var(--gold-glow); }
.db-table .num { font-family: var(--mono); font-size: 0.88rem; color: var(--ink); }
.db-name { color: var(--ink); font-weight: 600; }
a.db-name { text-decoration: none; }
a.db-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.db-count { font-family: var(--mono); }
.db-pill { border-radius: 4px; font-family: var(--sans); font-weight: 700; padding: 3px 8px; }
.db-pill.r0 { background: var(--r0); color: var(--on-badge); }
.db-pill.r1 { background: var(--r1); color: var(--on-badge); }
.db-pill.r2 { background: var(--r2); color: var(--on-badge); }
.db-pill.r3 { background: var(--r3); color: var(--on-badge); }

/* --- karty i kafle --- */
.hub-grid { gap: 14px; }
.hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none;
            padding: 18px 18px 16px; }
.hub-card:hover { transform: translateY(-2px); box-shadow: none; border-color: var(--ink); }
.hub-card h3 { font-family: var(--sans); font-weight: 800; font-size: 1.08rem; }
.hub-card p { font-family: var(--read); font-size: 0.98rem; line-height: 1.5; }
.hub-card .hub-go { font: 700 0.82rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--gold); }
.hub-card.read { border-left: 4px solid var(--gold); }
.amp-card, .stack-card, .compare-col { background: var(--surface); border: 1px solid var(--line);
    box-shadow: none; border-radius: 10px; }
.amp-card h4, .stack-card h4, .compare-col h4 { font-family: var(--sans); font-weight: 800; color: var(--ink); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { font-family: var(--sans); font-weight: 700; color: var(--ink); }
.faq details p { font-family: var(--read); font-size: 1.04rem; line-height: 1.6; }
.pullquote { border-left: 4px solid var(--gold); background: var(--surface); }
.pullquote p { font-family: var(--read); }
.type-btn { font-family: var(--sans); font-weight: 600; border-radius: 6px; }
.type-btn.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.side-badge { font-family: var(--sans); font-weight: 700; border-radius: 5px; }

/* --- stopka --- */
footer { background: var(--surface); border-top: 2px solid var(--rule); }
.footer-cols h5 { font: 700 0.72rem var(--sans); letter-spacing: 0.1em; color: var(--ink-dim); }
.footer-cols a { color: var(--ink-soft); font-size: 0.9rem; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-blurb { font-family: var(--read); font-size: 0.95rem; color: var(--ink-soft); }
.to-top { background: var(--surface); border: 1.5px solid var(--rule); color: var(--ink); border-radius: 8px; }

/* --- strona modelu: specyfikacja jako kafle, werdykt jako pasek --- */
.calc-card.spec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 !important;
    border: 2px solid var(--rule); border-radius: 10px; overflow: hidden; }
.spec-tiles .stat-row { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 6px; padding: 14px 18px 15px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec-tiles .stat-row:nth-child(-n+3) { border-top: 0; }
.spec-tiles .stat-row:nth-child(3n+1) { border-left: 0; }
.spec-tiles .stat-row .k { font: 700 0.7rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-dim); }
.spec-tiles .stat-row .k small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500;
    font-size: 0.78rem; margin-top: 2px; }
.spec-tiles .stat-row .v { font: 600 1.45rem/1.15 var(--mono); letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 640px) {
  .calc-card.spec-tiles { grid-template-columns: 1fr 1fr; }
  .spec-tiles .stat-row:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .spec-tiles .stat-row:nth-child(-n+2) { border-top: 0; }
  .spec-tiles .stat-row:nth-child(3n+1) { border-left: 1px solid var(--line); }
  .spec-tiles .stat-row:nth-child(2n+1) { border-left: 0; }
  .spec-tiles .stat-row .v { font-size: 1.2rem; }
}
.vsum { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
        padding: 18px 20px; }
.vsum-h { font: 700 0.72rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.vbar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; margin: 12px 0 10px; background: var(--line); }
.vbar i { display: block; height: 100%; transition: flex-basis .45s var(--ease); }
.vbar .v0, .vleg .v0 { background: var(--r0); } .vbar .v1, .vleg .v1 { background: var(--r1); }
.vbar .v2, .vleg .v2 { background: var(--r2); } .vbar .v3, .vleg .v3 { background: var(--r3); }
.vleg { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.92rem; color: var(--ink-soft); }
.vleg span { display: inline-flex; align-items: center; gap: 7px; }
.vleg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.vleg b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.vpicks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vpick { border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; background: var(--bg); }
.vpick .k { font: 700 0.68rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.vpick .v { font-weight: 700; font-size: 1rem; margin-top: 3px; color: var(--ink); }
.vpick .v a { text-decoration: none; }
.vpick .v a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vpick .m { font: 400 0.84rem var(--mono); color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 640px) { .vpicks { grid-template-columns: 1fr; } }

/* --- strona glowna: czolowka z wyszukiwarka (iFixit) --- */
.hero2 { position: relative; overflow: hidden; background: var(--surface); border-bottom: 2px solid var(--rule); }
.deco { position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: 1400px;
        transform: translateX(-50%); pointer-events: none; }
.deco svg { position: absolute; overflow: visible; }
.d-hp { left: 28px; top: 52px; width: clamp(190px, 18.3vw, 264px); }
.d-dg { left: 44px; bottom: 84px; width: clamp(180px, 17vw, 244px); }
.d-amp { right: 20px; top: 64px; width: clamp(200px, 19.5vw, 284px); }
.d-iem { right: 64px; bottom: 70px; width: clamp(160px, 15.5vw, 224px); }
.draw { fill: none; stroke: var(--ink-dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.draw .thin { stroke-width: 1; opacity: .8; }
.call { stroke: var(--gold); stroke-width: 1.1; fill: none; opacity: .9; }
.call-dot { fill: var(--gold); }
.call-t { font: 600 12.5px var(--mono); fill: var(--gold); letter-spacing: .02em; }
@media (max-width: 1179px) { .deco { display: none; } }
.hero2-in { position: relative; max-width: 760px; margin: 0 auto; padding: 66px 24px 60px; text-align: center; }
.kicker { font: 700 0.75rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.hero2 h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 14px; font-weight: 850; font-stretch: 108%; }
.hero2 .dek { font: 400 1.25rem/1.5 var(--read); color: var(--ink-soft); margin: 0 auto 26px; max-width: 46ch; }
.bigsearch { position: relative; max-width: 640px; margin: 0 auto; }
.bigsearch > svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink); pointer-events: none; z-index: 1; }
.bigsearch input { width: 100%; font: 600 1.3rem var(--sans); padding: 18px 20px 18px 58px; border: 2px solid var(--rule);
    border-radius: 12px; background: var(--surface); color: var(--ink); outline: none;
    box-shadow: 5px 5px 0 var(--offset); -webkit-appearance: none; appearance: none; }
.bigsearch input:focus { box-shadow: 5px 5px 0 var(--gold); }
.bigsearch input::-webkit-search-cancel-button { display: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chips button { font: 600 0.85rem var(--sans); border: 1px solid var(--line2); background: var(--surface); color: var(--ink-soft);
    border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.chips span { font: 500 0.82rem var(--sans); color: var(--ink-dim); padding: 6px 2px; }
.hres { max-width: 640px; margin: 22px auto 0; text-align: left; border: 1px solid var(--line); border-radius: 12px;
        background: var(--surface); padding: 18px 20px; }
.hres-name { font: 800 1rem var(--sans); color: var(--ink); margin-bottom: 10px; }
.res-big { display: flex; gap: 30px; flex-wrap: wrap; }
.res-big .v { font: 600 2.4rem/1 var(--mono); letter-spacing: -.03em; color: var(--ink); }
.res-big .v small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.res-big .k { font-size: 0.82rem; color: var(--ink-dim); margin-top: 6px; }
.hres .vbar { margin: 14px 0 9px; }
.res-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.res-note b { color: var(--ink); }
.res-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--gold); text-decoration: none; }
a.res-link:link, a.res-link:visited { color: var(--gold); }
.res-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hres.elec .res-big, .hres.elec .vbar, .hres.elec .vleg { display: none; }
.trust2 { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font: 500 0.84rem var(--mono);
          color: var(--ink-soft); margin-top: 20px; }
.trust2 b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .hero2-in { padding: 38px 16px 44px; }
  .hero2 .dek { font-size: 1.08rem; }
  .bigsearch input { font-size: 1.1rem; padding: 15px 16px 15px 50px; }
  .bigsearch > svg { left: 17px; }
  .res-big .v { font-size: 1.9rem; }
}

/* pasy strony glownej */
.band { max-width: 1180px; margin: 0 auto; padding: 52px 24px 0; }
.band-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
          border-top: 2px solid var(--rule); padding-top: 12px; margin-bottom: 18px; }
.band-h h2 { margin: 0; font: 800 clamp(1.4rem, 2.6vw, 1.8rem)/1.15 var(--sans); letter-spacing: -0.015em; font-stretch: 104%; }
.band-h a { font-weight: 700; font-size: 0.92rem; color: var(--gold); text-decoration: none; white-space: nowrap; }
.band-h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band .hub-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.band .source-note { font-size: 0.84rem; color: var(--ink-dim); margin-top: 8px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips a { text-decoration: none; font-weight: 600; font-size: 0.92rem; border: 1px solid var(--line2);
    background: var(--surface); border-radius: 999px; padding: 7px 14px; color: var(--ink); }
.brand-chips a:hover { border-color: var(--ink); }
.brand-chips a .c { font: 400 0.8rem var(--mono); color: var(--ink-dim); margin-left: 6px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how h3 { font: 800 1.06rem var(--sans); margin: 0 0 6px; color: var(--ink); }
.how p { font: 400 1rem/1.6 var(--read); color: var(--ink-soft); margin: 0; }
.how .n { font: 600 0.82rem var(--mono); color: var(--gold); margin-bottom: 6px; }
@media (max-width: 860px) { .band { padding: 40px 16px 0; } .how { grid-template-columns: 1fr; gap: 20px; } }

/* stary ekran tezy ("one number, two meanings") jako zwykly pas */
.v2-hero.hstage { min-height: 0; padding: 40px 0 44px; border-bottom: none; display: block; }
.hstage::before { content: none; }
.hstage .wrap.hgrid { max-width: 1180px; padding: 0 24px; }
.hfig { font-family: var(--sans); font-weight: 850; font-stretch: 110%; color: var(--gold); text-shadow: none; }
.hfig small { font-family: var(--sans); font-weight: 600; }
.hclaim { font-family: var(--sans); font-weight: 800; letter-spacing: -0.015em; }
.hclaim em { font-style: normal; color: var(--gold); }
.v2-kicker { font: 700 0.75rem var(--sans); letter-spacing: 0.1em; color: var(--gold); }
.v2-kicker::before, .heye::before { content: none; }
.v2-sub { font-family: var(--read); font-size: 1.12rem; }
.hchips button { font-weight: 600; border-color: var(--line2); background: var(--surface); }
.hchips button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.hseg { border: 1.5px solid var(--line2); }
.hseg button { font-family: var(--sans); font-weight: 600; }
.hseg button.on { color: var(--on-ink); }
.hseg i { background: var(--ink); box-shadow: none; }
.hconv b { color: var(--ink); }
.hcard { background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; box-shadow: 6px 6px 0 var(--offset); }
.hcount { font-family: var(--sans); font-weight: 850; }
.hcard-lab { font-family: var(--sans); font-weight: 700; }
.hdots i.on { background: var(--gold); box-shadow: none; transform: none; }
.hplot-sec { border-top: none; padding: 0; }
.hplotbox { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.hlegend { font-family: var(--sans); font-weight: 600; }
.hlegend b.on { background: var(--gold); }
.htip { background: var(--surface); border: 1.5px solid var(--rule); border-radius: 8px; box-shadow: 4px 4px 0 var(--offset); }
.htip b { color: var(--ink); }
/* wykres rozrzutu: kolory z tokenow, zeby dzialal w obu motywach */
#hPlot .g-line { stroke: var(--line); }
#hPlot .g-txt { fill: var(--ink-dim); font-family: var(--mono); }
#hPlot .hpt.u { fill: var(--gold); fill-opacity: .72; }
#hPlot .hpt.n { fill: none; stroke: var(--ink-dim); stroke-width: 1.2; }

/* Wykresy rysowane w site.js maja kolory wpisane jako atrybuty SVG (fill=,
   stroke=). Regula CSS wygrywa z atrybutem prezentacji, wiec tu -- w jednym
   miejscu -- kazdy z tych literalow dostaje token i wykres zmienia sie razem
   z motywem. Nowy wykres z nowym kolorem: dopisac go tutaj. */
svg [stroke="#242428"], svg [stroke="#2a2a2e"], svg [stroke="#212125"] { stroke: var(--line); }
svg [stroke="#3a3a40"] { stroke: var(--line2); }
svg [fill="#6f6b64"], svg [fill="#a8a49c"], svg [fill="#4a4850"] { fill: var(--ink-dim); }
svg [stroke="#55525c"] { stroke: var(--ink-dim); }
svg [fill="#c9a84c"] { fill: var(--gold); }
svg [stroke="#c9a84c"] { stroke: var(--gold); }
svg [fill="#e74c3c"], svg [fill="#e08a5a"] { fill: var(--bad); }
svg [stroke="#e74c3c"], svg [stroke="#e08a5a"] { stroke: var(--bad); }
svg [fill="#6f8a3c"] { fill: var(--good); }
svg [stroke="#6f8a3c"] { stroke: var(--good); }
svg [fill="rgba(192,57,43,.07)"] { fill: color-mix(in srgb, var(--bad) 8%, transparent); }
svg text[font-family="ui-monospace,monospace"] { font-family: var(--mono); }
.calc-card.spec-tiles.c2 { grid-template-columns: 1fr 1fr; }
.spec-tiles.c2 .stat-row:nth-child(-n+3) { border-top: 1px solid var(--line); }
.spec-tiles.c2 .stat-row:nth-child(-n+2) { border-top: 0; }
.spec-tiles.c2 .stat-row:nth-child(3n+1) { border-left: 1px solid var(--line); }
.spec-tiles.c2 .stat-row:nth-child(2n+1) { border-left: 0; }
.hub-card.tile .ex { font: 500 0.8rem var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
    border-radius: 6px; padding: 8px 10px; }
.hub-card.tile .ex em { font-style: normal; color: var(--ink-dim); }
.hub-card.tile p { margin-bottom: 14px; }

/* poprawki po pierwszym przegladzie zrzutow */
.section { padding: 40px 0; }
.vsum + .prose, .verdict + .prose { margin-top: 18px; }
.db-table th.num { font-family: var(--sans); }
.band .hub-grid.tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .band .hub-grid.tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .band .hub-grid.tiles { grid-template-columns: 1fr; } }
.hstage .hblk-sub { margin-bottom: 18px; }
.v2-hero.hstage { padding-top: 16px; }
.hplot-sec .wrap { padding: 0 24px; }
.hplot-head p { font-family: var(--read); font-size: 1.04rem; }
@media (max-width: 780px) {
  .nav-links:not(.open) { border-bottom: 0; padding-top: 0; padding-bottom: 0; }
  .prose { font-size: 1.04rem; }
  .section { padding: 32px 0; }
}
.footer-inner { max-width: 1180px; padding: 0 24px; }
.footer-cols { grid-template-columns: 2fr 1fr 1.3fr; }
.footer-cols > div:first-child { columns: 2; column-gap: 24px; }
.footer-cols > div:first-child h5 { column-span: all; }
.footer-cols > div:first-child a { break-inside: avoid; }
@media (max-width: 700px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
.db-table th.num { font-size: 0.7rem; color: var(--ink-dim); }
.calc-card.spec-tiles.c4 { grid-template-columns: repeat(4, 1fr); }
.spec-tiles.c4 .stat-row:nth-child(-n+4) { border-top: 0; }
.spec-tiles.c4 .stat-row:nth-child(n+5) { border-top: 1px solid var(--line); }
.spec-tiles.c4 .stat-row:nth-child(3n+1) { border-left: 1px solid var(--line); }
.spec-tiles.c4 .stat-row:nth-child(4n+1) { border-left: 0; }
@media (max-width: 760px) {
  .calc-card.spec-tiles.c4 { grid-template-columns: 1fr 1fr; }
  .spec-tiles.c4 .stat-row:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec-tiles.c4 .stat-row:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .spec-tiles.c4 .stat-row:nth-child(2n+1) { border-left: 0; }
}
.spec-tiles .stat-row .v small, .spec-tiles .stat-row .v .db-pill { font-size: 0.75rem; }
.prose + .db-wrap, p + .db-wrap { margin-top: 14px; }

/* --- czolowka strony glownej: wlasne zdjecia autora w tle (2026-10-05) ---
   Pliki sa juz rozmyte i przygaszone (build/make_herophotos.py); tu tylko
   mgla w kolorze motywu, zeby tekst i wyszukiwarka zostaly czytelne. */
.hero2 .deco { display: none; }
.hbg { position: absolute; inset: 0; background-size: cover; background-position: center;
       opacity: 0; transition: opacity 2.4s ease; }
.hbg.on { opacity: 1; }
.hveil { position: absolute; inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 74%, transparent) 0%,
    color-mix(in srgb, var(--surface) 82%, transparent) 60%,
    var(--surface) 100%); }
.hero2-in { z-index: 1; }
.hero2 .hres, .hero2 .bigsearch input { background: var(--surface); }
.hcap { position: absolute; right: 16px; bottom: 12px; z-index: 2; margin: 0;
  font: 600 0.75rem var(--sans); color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; transition: opacity .6s; }
.hcap b { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .hero2-in { padding-bottom: 66px; } .hcap { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .hbg, .hcap { transition: none; } }

/* zdjecie sprzetu autora w tekscie (strona "Chord Dave, Owned") */
.owned-photo { margin: 22px 0 26px; max-width: 760px; }
.owned-photo img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.owned-photo figcaption { font-size: 0.85rem; color: var(--ink-dim); margin-top: 8px; }
/* strony zrodel: osiem kafli w czterech kolumnach -- napisy typu "not published"
   i "Audio interface" mieszcza sie w jednej linii */
.calc-card.spec-tiles.c4 .stat-row .v { font-size: 1.2rem; }
@media (max-width: 760px) { .calc-card.spec-tiles.c4 .stat-row .v { font-size: 1.05rem; } }
