/* ===== Katalog stron – motyw inspirowany stronami „What's new” (duże sekcje, pigułki, ciemny baner) ===== */

:root {
    --bg: #ffffff;
    --bg-soft: #f3f6fc;
    --card: #ffffff;
    --text: #0e1330;
    --muted: #566086;
    --line: #e2e7f3;
    --input-bg: #f7f9fd;

    --primary: #0a6cff;
    --primary-dark: #0050c8;
    --violet: #6a3df5;
    --teal: #00b894;
    --pink: #ff4f8b;
    --amber: #ffb703;
    --orange: #ff7a3d;
    --grad: linear-gradient(135deg, #0a6cff 0%, #6a3df5 100%);
    --grad-warm: linear-gradient(135deg, #ff7a3d 0%, #ff4f8b 100%);
    --hero-bg:
        radial-gradient(900px 500px at 85% -10%, rgba(106, 61, 245, .55), transparent 60%),
        radial-gradient(700px 480px at 0% 110%, rgba(10, 108, 255, .45), transparent 60%),
        linear-gradient(160deg, #080c2e 0%, #101a63 55%, #16268a 100%);

    --ac0: #0a6cff; --ac1: #ff4f8b; --ac2: #ffb703; --ac3: #00b894; --ac4: #6a3df5;

    --tag-bg: #e8f0ff;
    --tag-text: #0b4fc4;
    --danger: #e5484d;
    --ok-bg: #e0f8ef;
    --ok-text: #0b6b43;
    --err-bg: #fdeceb;
    --err-text: #a4262c;

    --shadow: 0 8px 28px rgba(14, 19, 48, .08);
    --shadow-hover: 0 16px 40px rgba(14, 19, 48, .16);
    --radius: 24px;
}
:root[data-theme="dark"] {
    --bg: #0a0d24;
    --bg-soft: #0f1332;
    --card: #141a42;
    --text: #eef0ff;
    --muted: #a3abd6;
    --line: #262d66;
    --input-bg: #0e1236;
    --primary: #6ea2ff;
    --primary-dark: #b9ccff;
    --tag-bg: #1f2a66;
    --tag-text: #b9ccff;
    --ok-bg: #12382b;
    --ok-text: #8ff0c0;
    --err-bg: #3d1b1e;
    --err-text: #ffb4b4;
    --shadow: 0 8px 28px rgba(0, 0, 0, .4);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, .55);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0a0d24; --bg-soft: #0f1332; --card: #141a42; --text: #eef0ff; --muted: #a3abd6; --line: #262d66; --input-bg: #0e1236;
        --primary: #6ea2ff; --primary-dark: #b9ccff; --tag-bg: #1f2a66; --tag-text: #b9ccff;
        --ok-bg: #12382b; --ok-text: #8ff0c0; --err-bg: #3d1b1e; --err-text: #ffb4b4;
        --shadow: 0 8px 28px rgba(0, 0, 0, .4); --shadow-hover: 0 16px 40px rgba(0, 0, 0, .55);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
html[data-fs="2"] { font-size: 112.5%; }
html[data-fs="3"] { font-size: 125%; }
body {
    margin: 0;
    min-height: 100vh;
    font: 1rem/1.65 "Inter", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: background-color .3s, color .3s;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.page { padding-top: 30px; padding-bottom: 50px; }
.page.narrow { max-width: 860px; }
h1 { margin: 0 0 14px; font-size: 2.3rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 0 22px; }
.muted { color: var(--muted); }

/* ----- Nagłówek ----- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 66px; }
.logo { display: flex; align-items: center; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-svg { height: 44px; width: auto; display: block; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.top nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.top nav a { padding: 8px 12px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s; }
.top nav a:hover { background: var(--bg-soft); text-decoration: none; }
.top nav a.active { background: var(--tag-bg); color: var(--tag-text); }
.top nav a.cta { background: var(--grad); color: #fff; margin-left: 6px; box-shadow: 0 6px 16px rgba(10, 108, 255, .35); }
.top nav a.cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: var(--bg-soft); color: var(--text); font-size: 1.3rem; box-shadow: none; }
.theme-toggle { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; line-height: 1; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.theme-toggle:hover { transform: none; background: var(--bg-soft); }
.theme-toggle svg { display: block; }
.fs-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 40px; }
.fs-switch button { all: unset; box-sizing: border-box; cursor: pointer; width: 34px; display: grid; place-items: center; color: var(--text); font-weight: 700; line-height: 1; transition: background .15s; }
.fs-switch button + button { border-left: 1px solid var(--line); }
.fs-switch button:hover { background: var(--bg-soft); }
.fs-switch button[aria-pressed="true"] { background: var(--tag-bg); color: var(--tag-text); }
.fs-switch button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.fs-switch .f1 { font-size: 12px; } .fs-switch .f2 { font-size: 15px; } .fs-switch .f3 { font-size: 19px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

@media (max-width: 1220px) {
    .menu-btn { display: block; }
    .bar { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .bar-right { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
    .top.open .bar-right { display: flex; }
    .top nav { flex-direction: column; align-items: stretch; }
    .top nav a { padding: 12px 14px; }
    .top nav a.cta { margin-left: 0; text-align: center; }
    .theme-toggle { align-self: flex-start; }
}

/* ----- Pigułki (przyciski z strzałką) ----- */
.btn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border: 2px solid transparent; border-radius: 999px;
    background: #fff; color: #0b3fb0; font: inherit; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-pill span { transition: transform .15s; }
.btn-pill:hover { transform: translateY(-2px); text-decoration: none; }
.btn-pill:hover span { transform: translateX(4px); }
.btn-pill.solid { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(10, 108, 255, .35); }
.btn-pill.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.btn-pill.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-pill.ghost-dark { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-pill.ghost-dark:hover { background: var(--bg-soft); }
.btn-pill.submit { margin-top: 6px; }
.btn-small { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); font-weight: 700; font-size: .88rem; }
.btn-small:hover { text-decoration: none; filter: brightness(.96); }

/* ----- Okruszki ----- */
.crumbs { margin-bottom: 14px; font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ----- Sekcje (pasma) ----- */
.band { padding: 76px 0; }
.band.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 2.1rem; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow.dark { background: var(--tag-bg); color: var(--tag-text); }
.more-row { margin: 34px 0 0; }
.more-row.center { text-align: center; }

/* ----- Baner (hero) ----- */
.hero-band { background: var(--hero-bg); color: #fff; padding: 70px 0 64px; overflow: hidden; }
.hero-band.small { padding: 54px 0 46px; }
.hero-band h1 { color: #fff; font-size: 3.1rem; max-width: 760px; }
.hero-band.small h1 { font-size: 2.6rem; }
.hero-band .lead { color: rgba(255, 255, 255, .86); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; }
.hero-visual { min-width: 0; }
.hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .35)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art, .fab { animation: none !important; } html { scroll-behavior: auto; } }

.hero-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 680px; padding: 8px; margin-bottom: 22px; border-radius: 22px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.hero-search input[type=search] { flex: 1; min-width: 200px; border: 0; background: transparent; color: #0e1330; }
.hero-search select { width: auto; border: 0; background: #eef2fb; color: #0e1330; }
.hero-search input:focus, .hero-search select:focus { outline: 2px solid rgba(10, 108, 255, .35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin: 0; padding: 0; color: rgba(255, 255, 255, .8); }
.hero-stats strong { color: #fff; font-size: 1.5rem; margin-right: 4px; }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-band h1, .hero-band.small h1 { font-size: 2.1rem; }
}

/* ----- Siatki kart ----- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-list { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 8px 0; overflow-wrap: anywhere; }

/* Karta wpisu */
.c0 { --ac: var(--ac0); } .c1 { --ac: var(--ac1); } .c2 { --ac: var(--ac2); } .c3 { --ac: var(--ac3); } .c4 { --ac: var(--ac4); }
.entry-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-list .entry-card { flex-direction: row; }
.entry-card .media { flex: none; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--ac, var(--primary)); color: #fff; overflow: hidden; }
.card-list .entry-card .media { width: 240px; aspect-ratio: auto; min-height: 100%; }
.entry-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.media-icon { font-size: 3rem; }
.media-initial { font-size: 3.4rem; font-weight: 800; }
.is-article .media { background: linear-gradient(135deg, var(--ac, var(--violet)), var(--violet)); }
.entry-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.entry-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.entry-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 4px; }
.entry-card h3 a { color: var(--text); }
.entry-card h3 a:hover { color: var(--primary); text-decoration: none; }
.entry-card p { margin: 6px 0 12px; color: var(--muted); font-size: .96rem; overflow-wrap: anywhere; }
.host { color: var(--teal); font-weight: 700; font-size: .88rem; word-break: break-all; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; color: var(--muted); font-size: .88rem; }
.entry-more { margin-left: auto; font-weight: 800; }
.rating-mini { color: var(--amber); font-weight: 800; font-size: .9rem; }
.rating-mini small { color: var(--muted); font-weight: 500; }
@media (max-width: 700px) {
    .card-list .entry-card { flex-direction: column; }
    .card-list .entry-card .media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
}

.badge { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge-site { background: var(--tag-bg); color: var(--tag-text); }
.badge-article { background: #ffe9d6; color: #b34700; }
:root[data-theme="dark"] .badge-article { background: #4a2a10; color: #ffc999; }
.tag { background: var(--tag-bg); color: var(--tag-text); padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.tag.alt { background: #e8fbf6; color: #00775f; }
:root[data-theme="dark"] .tag.alt { background: #0f3d34; color: #7ff0d4; }
.tag:hover, .meta-city:hover { text-decoration: none; filter: brightness(.95); }
.meta-city { color: var(--muted); font-weight: 600; }

/* Kategorie (kafelki) */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, background .15s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; background: var(--card); }
.cat-ico { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.cat-tile small { color: var(--muted); }

/* Cechy */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 6px 0 0; }
.f-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--tag-bg); font-size: 1.7rem; margin-bottom: 14px; }

/* Wybór typu wpisu */
.choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .choose-grid { grid-template-columns: 1fr; } }
.choose-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.choose-card p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 22px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Pasek zachęty */
.cta-band { background: linear-gradient(120deg, #0a6cff 0%, #6a3df5 60%, #b03df5 100%); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 8px 0 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pływający przycisk */
.fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 35;
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px;
    background: var(--grad-warm); color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(255, 79, 139, .45);
    animation: pulse 2.8s ease-in-out infinite;
}
.fab:hover { text-decoration: none; filter: brightness(1.06); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ----- Stopka ----- */
.site-foot { background: #080c2e; color: #c7cdf0; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h2 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c7cdf0; }
.site-foot a:hover { color: #fff; }
.foot-logo { color: #fff; margin-bottom: 12px; }
.foot-logo .logo-svg { height: 44px; }
.foot-brand p { max-width: 380px; color: #9ca4d8; }
.foot-bottom { margin-top: 36px; padding: 18px 22px 26px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8f98d3; font-size: .9rem; }

/* ----- Wyszukiwarka i listy ----- */
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 26px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.search-bar input[type=search] { flex: 1; min-width: 200px; border: 0; background: transparent; }
.search-bar select { width: auto; }
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
aside { background: var(--bg-soft); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.aside-title { font-size: 1rem; margin-bottom: 10px; }
.cats, .cats .subs { list-style: none; margin: 0; padding: 0; }
.cats a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-weight: 600; }
.cats a:hover { background: var(--card); text-decoration: none; }
.cats a.active { background: var(--grad); color: #fff; }
.cats .n { opacity: .65; font-size: .85rem; font-weight: 500; }
.cats .subs { margin: 2px 0 8px 14px; padding-left: 10px; border-left: 2px solid var(--line); }
.cats .subs a { font-size: .92rem; padding: 5px 10px; font-weight: 500; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-row a { padding: 7px 16px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: .92rem; }
.tabs-row a:hover { text-decoration: none; background: var(--tag-bg); }
.tabs-row a.active { background: var(--grad); color: #fff; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form select { width: auto; padding: 7px 12px; }
.result-count { margin: 4px 0 16px; }
.empty { text-align: center; padding: 34px 18px; }
.empty-art { display: block; width: 200px; max-width: 70%; height: auto; margin: 0 auto 8px; }
.section-sub { margin: 36px 0 14px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; }
.pager a, .pager .current { padding: 8px 15px; border-radius: 999px; font-weight: 700; background: var(--bg-soft); color: var(--text); }
.pager a:hover { text-decoration: none; background: var(--tag-bg); }
.pager .current { background: var(--grad); color: #fff; }
.pager .gap { color: var(--muted); }

/* ----- Mapa miast ----- */
.map { height: 360px; border: 1px solid var(--line); border-radius: var(--radius); margin: 4px 0 8px; isolation: isolate; }
.map.big { height: 520px; margin-bottom: 24px; }
@media (max-width: 700px) { .map.big { height: 380px; } }
.city-bubble { background: none; border: 0; }
.city-bubble span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(10, 40, 120, .45); }
.city-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0; }
@media (max-width: 860px) { .city-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .city-list { grid-template-columns: 1fr; } }
.city-list a { position: relative; display: flex; flex-direction: column; padding: 16px 64px 16px 18px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
.city-list a:hover { text-decoration: none; background: var(--card); box-shadow: var(--shadow); }
.city-list span { color: var(--muted); font-size: .88rem; }
.city-list em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-weight: 800; }

/* ----- Wizytówka wpisu ----- */
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 6px solid var(--ac, var(--primary)); }
.entry-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.entry-title { flex: 1; min-width: 240px; }
.entry-title h1 { margin: 8px 0 4px; font-size: 2rem; }
.thumb { flex: none; display: block; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); background: var(--tag-bg); }
.thumb.big { width: 320px; height: 200px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar { flex: none; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 26px; background: var(--ac, var(--primary)); color: #fff; font-size: 2.6rem; font-weight: 800; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.avatar.big { width: 160px; height: 160px; font-size: 4rem; border-radius: 36px; }
.avatar.art { background: linear-gradient(135deg, var(--ac, var(--violet)), var(--violet)); }
@media (max-width: 640px) { .thumb.big { width: 100%; height: 190px; } }
.entry-desc { font-size: 1.08rem; margin: 18px 0; }
.article-body { font-size: 1.1rem; line-height: 1.8; margin: 20px 0; max-width: 720px; }
.article-body p { margin: 0 0 1.1em; }
.article-body a { text-decoration: underline; font-weight: 600; }
.entry-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.share { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.share label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; }
.owner-box { margin-top: 34px; }
.owner-box .muted { margin-bottom: 14px; }
.owner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .owner-grid { grid-template-columns: 1fr; } }

.rate { display: flex; align-items: center; gap: 2px; margin: 10px 0; }
.rate .star { padding: 0 2px; background: none; box-shadow: none; color: var(--line); font-size: 1.6rem; line-height: 1; }
.rate .star.on { color: var(--amber); }
.rate .star.mine { color: var(--orange); }
.rate:hover .star { color: var(--line); }
.rate .star:hover, .rate .star:has(~ .star:hover) { color: var(--amber); }
.rate .star:hover { transform: scale(1.25); }
.rate .avg { margin-left: 8px; color: var(--muted); font-size: .88rem; }

.prose h2 { margin-top: 26px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ----- Formularze ----- */
input[type=text], input[type=search], input[type=password], input[type=number], input[type=email], input[type=date], input[type=file], select, textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px;
    background: var(--input-bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(10, 108, 255, .25); border-color: var(--primary); }
button {
    padding: 11px 22px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-weight: 800; cursor: pointer;
    box-shadow: 0 6px 16px rgba(10, 108, 255, .28); transition: transform .15s, opacity .15s;
}
button:hover { transform: translateY(-2px); }
button.danger { background: var(--danger); box-shadow: none; }
button.secondary { background: var(--tag-bg); color: var(--tag-text); box-shadow: none; }
button.small { padding: 5px 14px; font-size: .85rem; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.form label { display: block; margin-bottom: 14px; font-weight: 700; }
.form label input, .form label select, .form label textarea { margin-top: 5px; font-weight: 400; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .94rem; }
.form label.check input { width: auto; margin: 4px 0 0; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.hint { color: var(--muted); font-size: .86rem; margin: -6px 0 14px; }
.code-box { background: var(--tag-bg); border-radius: 18px; padding: 16px 18px 4px; margin-bottom: 20px; border: 2px dashed var(--primary); }
.code-box input { letter-spacing: .15em; font-family: ui-monospace, Menlo, Consolas, monospace; }

.alert { padding: 13px 18px; border-radius: 16px; margin-bottom: 18px; }
.alert.ok { background: var(--ok-bg); color: var(--ok-text); }
.alert.err { background: var(--err-bg); color: var(--err-text); }
.alert ul { margin: 0; padding-left: 18px; }

.form .invalid { border-color: var(--danger); background: var(--err-bg); box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }
.form .invalid:focus { outline: 3px solid rgba(229, 72, 77, .35); border-color: var(--danger); }
.form label:has(.invalid) { color: var(--err-text); }
.form label.invalid-box { background: var(--err-bg); border-radius: 14px; padding: 8px 10px; outline: 2px solid var(--danger); color: var(--err-text); }
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: var(--danger); background: var(--err-bg); }

.form label.switch { padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; background: var(--input-bg); gap: 14px; font-weight: 400; }
.form label.switch input {
    appearance: none; -webkit-appearance: none; position: relative; flex: none;
    width: 46px; height: 26px; margin: 2px 0 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: background .2s;
}
.form label.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.form label.switch input:checked { background: var(--grad); }
.form label.switch input:checked::after { transform: translateX(20px); }
.form label.switch input:focus-visible { outline: 3px solid rgba(10, 108, 255, .35); outline-offset: 2px; }

/* ----- Panel admina ----- */
.admin h2 { font-size: 1.25rem; }
.bar2 { display: flex; justify-content: space-between; align-items: baseline; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 7px 15px; border-radius: 999px; background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: .92rem; }
.tabs a:hover { text-decoration: none; background: var(--tag-bg); }
.tabs a.active { background: var(--grad); color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.admin-entry { margin-bottom: 14px; padding: 18px 20px; }
.ae-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ae-head h2 { margin: 0; font-size: 1.1rem; }
.entry-url { margin-top: 10px; font-size: .86rem; color: var(--muted); word-break: break-all; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; max-width: 820px; }
.inline-form input[type=text] { flex: 1; min-width: 150px; width: auto; }
.inline-form select { flex: 1; min-width: 180px; width: auto; }
.inline { display: inline; }
.plain-list { list-style: none; padding: 0; margin: 10px 0; }
.plain-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.plain-list.errors li { display: list-item; list-style: disc; margin-left: 18px; color: var(--err-text); }
.message { padding: 18px 20px; margin-bottom: 14px; }
.message.unread { border-left: 6px solid var(--primary); }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.msg-body { white-space: normal; }
.pill { margin-left: 8px; padding: 1px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font-size: .75rem; font-weight: 700; }
.pill.err { background: var(--err-bg); color: var(--err-text); }
code { background: var(--tag-bg); color: var(--tag-text); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tag-bg); color: var(--tag-text); }
table.compact th, table.compact td { padding: 7px 12px; font-size: .92rem; }
td.right { text-align: right; }
.sub-row { padding-left: 32px; color: var(--muted); }
.top-row td { background: var(--input-bg); }

/* ----- Polityka prywatności ----- */
.policy { background: var(--card); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.policy h2 { margin-top: 28px; font-size: 1.25rem; color: var(--primary-dark); }
.policy ul { padding-left: 20px; }
.policy table { margin: 12px 0; font-size: .92rem; }

/* ---- wybór ikony kategorii (panel) ---- */
.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(3.2rem,1fr));gap:.35rem;margin:.6rem 0;max-height:16rem;overflow:auto;padding:.3rem}
.icon-opt{position:relative;display:block;cursor:pointer;margin:0}
.icon-opt input{position:absolute;opacity:0;pointer-events:none}
.icon-opt span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:2.8rem;font-size:1.5rem;line-height:1.1;border:2px solid var(--border,#d8dde6);border-radius:.7rem;background:var(--card,#fff);transition:transform .1s}
.icon-opt.auto span{font-size:.75rem;grid-column:span 1}
.icon-opt:hover span{transform:scale(1.08)}
.icon-opt input:checked+span{border-color:var(--accent,#0a84ff);background:rgba(10,132,255,.12);box-shadow:0 0 0 2px rgba(10,132,255,.25)}
.icon-opt input:focus-visible+span{outline:2px solid var(--accent,#0a84ff)}
.cat-ico{display:inline-block;width:1.6em;text-align:center}
.dup-box{border-left:4px solid #f5a623}

.hero-more{margin:.6rem 0 0;font-size:.95rem}.hero-more a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* ---- tagi, odznaki, wyróżnienia, podobne wpisy, zgłoszenia, panel autora ---- */
.tag-list{list-style:none;margin:.5rem 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.tag-chip{display:inline-block;padding:.15rem .6rem;border-radius:999px;background:rgba(47,107,255,.1);color:var(--accent,#2f6bff);font-size:.85rem;text-decoration:none;border:1px solid rgba(47,107,255,.25)}
.tag-chip:hover{background:rgba(47,107,255,.2)}
.tag-chip small{opacity:.7;margin-left:.2rem}
.tag-cloud{justify-content:center}.tag-cloud .tag-chip{font-size:1rem;padding:.3rem .9rem}
.badge-featured{background:#ffb02e;color:#3a2600}
.badge-verified{background:#1f9d55;color:#fff}
.entry-card.is-featured{box-shadow:0 0 0 2px #ffb02e,0 8px 24px rgba(255,176,46,.25)}
.featured-band{background:linear-gradient(180deg,rgba(255,176,46,.12),transparent)}
.similar{margin:2rem 0}
.report-box{margin:1.5rem 0;font-size:.95rem}.report-box summary{cursor:pointer;color:var(--muted,#667)}
.manage-box{border-left:4px solid #1f9d55;margin-bottom:1rem}
.code-snippet{background:rgba(0,0,0,.06);padding:.6rem .8rem;border-radius:.5rem;overflow:auto;white-space:pre-wrap;word-break:break-all}
.danger-zone{border-left:4px solid #d93025}
.city-about{margin-bottom:1rem}
[data-theme="dark"] .code-snippet{background:rgba(255,255,255,.08)}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.7rem;margin-bottom:1rem}
.stat{text-align:center;padding:.8rem}.stat strong{display:block;font-size:1.8rem;line-height:1.1}.stat span{font-size:.85rem;color:var(--muted,#667)}
.bar-row{display:flex;align-items:center;gap:.6rem;margin:.25rem 0}.bar-row span:first-child{min-width:7.5rem;font-size:.85rem;color:var(--muted,#667)}
.stat-bar{display:inline-block;height:.9rem;border-radius:.4rem;background:linear-gradient(90deg,#2f6bff,#12b5a2)}
.card-inner{border:1px solid rgba(128,128,128,.3);border-radius:.6rem;padding:.6rem .9rem;margin:.6rem 0}
.partners-box{margin:1.5rem 0;padding:1rem 1.2rem;border:1px dashed rgba(47,107,255,.45);border-radius:.8rem;background:rgba(47,107,255,.05)}
.partners-box h2{margin-top:0}

/* wpis firmowy */
.company-fields { border: 1px solid var(--line, #d9deea); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.company-fields legend { font-weight: 700; padding: 0 6px; }
.company-box { margin: 18px 0; }
.company-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.company-box dt { font-weight: 600; opacity: .75; }
.company-box dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .company-box dl { grid-template-columns: 1fr; } .company-box dt { margin-top: 6px; } }

/* lista opcji autora */
.owner-menu { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.owner-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-decoration: none; color: inherit; padding: 14px 16px; }
.owner-opt strong { grid-column: 1; }
.owner-opt span { grid-column: 1; opacity: .75; font-size: .93em; }
.owner-opt em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 1.4em; }
.owner-opt:hover, .owner-opt:focus-visible { border-color: var(--accent, #2f6bff); }
.similar-link { margin: 18px 0; }
.badge-company { background: #dff5e8; color: #17653a; }
:root[data-theme="dark"] .badge-company { background: #153a27; color: #9be3b9; }
.pill.err { white-space: normal; }
