/* Iskra CMS — motyw domyślny. Kolory marki zmienisz w :root. */
:root {
  --bg: #ffffff;
  --soft: #f3f5f9;
  --ink: #172033;
  --muted: #5a6477;
  --line: #e2e6ee;
  --accent: #2340d0;
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Onest", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 740px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.preview-bar { background: #fff3cd; color: #5c4400; text-align: center; font-size: 14px; padding: 6px; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 24px; }
.logo { white-space: nowrap; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo img { height: 40px; width: auto; }
.site-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { white-space: nowrap; display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; }
.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 70px 0 auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav .menu { flex-direction: column; }
  .site-nav a { padding: 12px 14px; font-size: 1.1rem; }
}

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px -8px var(--accent); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); box-shadow: none; }
.btn-invert { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.hero-title { font-size: clamp(2.4rem, 1.2rem + 5vw, 5rem); max-width: 14ch; font-weight: 800; letter-spacing: -0.035em; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-block: 64px; border-top: 1px solid var(--line); }
.feature { padding: 28px 28px 8px 0; }
.feature + .feature { padding-left: 28px; border-left: 1px solid var(--line); }
.feature h2 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .feature + .feature { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.home-body { margin-block: 32px 64px; }
.section-title { margin-bottom: 24px; }
.latest { margin-block: 64px; }
.cta { background: var(--ink); color: var(--bg); padding: clamp(48px, 8vw, 96px) 0; }
.cta-inner { display: grid; gap: 8px; justify-items: start; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 0 0 20px; font-size: 1.15rem; }

/* Treść */
.page-article, .post, .blog { padding-block: clamp(40px, 6vw, 72px); }
.page-head { margin-bottom: 32px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: inherit; }
.page-cover { border-radius: var(--radius); margin-bottom: 32px; width: 100%; }
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* Karty wpisów */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; }
.card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--radius); }
.card-body { padding-top: 14px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-data div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-data dt { color: var(--muted); } .contact-data dd { margin: 0; }
.contact-form { display: grid; gap: 16px; background: var(--soft); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
input:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.consent { display: flex; gap: 10px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 14px 16px; border-radius: 8px; }
.form-note--ok { background: #e7f6ee; color: #11573a; }
.form-note--err { background: #fdecec; color: #8a1c1c; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); margin-top: 48px; }

.search-form { display: flex; gap: 10px; margin-bottom: 24px; }
.results { list-style: none; padding: 0; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 650; font-size: 1.15rem; }
.results p { margin: 4px 0 0; color: var(--muted); }
.errorpage { padding-block: 96px; }
.errorpage .big { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1; margin: 0 0 8px; letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, var(--line))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.errorpage h1 { margin-top: 0; }
.errorpage .prose { color: var(--muted); }
.errorpage .search-form { margin: 24px 0; }
.errorpage-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding-top: 56px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.footer-text { margin: 0; max-width: 42ch; }
.footer-text p, .feature-text p { margin: 0 0 .6em; }
.footer-text > :last-child, .feature-text > :last-child { margin-bottom: 0; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--muted); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.cookie { position: fixed; left: 16px; bottom: 16px; width: min(460px, calc(100% - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 20px; border-radius: 16px; z-index: 40; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45); animation: cookie-in .35s ease-out; }
.cookie[hidden] { display: none; }
.cookie-title { font-weight: 750; margin: 0 0 6px; font-size: 16px; }
.cookie-text { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.cookie-prefs { display: grid; gap: 10px; margin: 14px 0 2px; max-height: 45vh; overflow-y: auto; }
.cookie-prefs[hidden] { display: none; }
.cookie-cat { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.cookie-cat input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.cookie-cat span { display: flex; flex-direction: column; gap: 2px; }
.cookie-cat small { color: var(--muted); line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; }
.cookie-actions [hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }
@media (max-width: 520px) { .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; } }

/* Konto użytkownika */
.account-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.account-link:hover { border-color: var(--ink); }
@media (max-width: 760px) { .account-link span { display: none; } .account-link { padding: 8px; } }
.account { padding-block: 48px 80px; }
.account--auth { display: grid; place-items: start center; }
.account-card { width: min(100%, 460px); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 20px 50px -30px rgba(15, 23, 42, .35); }
.account--auth .account-card:has(.field-row) { width: min(100%, 560px); }
.account-card h1 { font-size: 1.7rem; margin: 0 0 8px; }
.account-lead { color: var(--muted); margin: 0 0 18px; }
.account-form { display: grid; gap: 14px; margin-top: 14px; }
.account-form input:not([type=checkbox]) { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.account-form input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.account-form .btn { justify-content: center; }
.field-hint { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.account-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin: 18px 0 0; font-size: 15px; }
.account-inline { margin-top: 10px; font-size: 15px; }
.account-card .form-note { margin: 12px 0 0; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-hello { margin: 0; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.account-head h1 { margin: 2px 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.account-email { margin: 0; color: var(--muted); }
.account-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.account-nav a, .account-nav .linklike { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.account-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.account-nav form { margin: 0; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.account-box { background: var(--soft); border-radius: 14px; padding: 22px; }
.account-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.account-box p { margin: 0 0 14px; }
.account-box.account-form { margin: 0; }
.account-box .account-links a.danger, .account-links .danger { color: #b42318; }
.account-danger { max-width: 560px; border: 1px solid #f3c2bd; background: #fff6f5; }
.account-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
@media (max-width: 1100px) { .header-inner .nav-toggle { order: 5; } .header-inner .account-link { margin-left: auto; } }

/* Kolekcje: listy i wpisy (wydarzenia, ogłoszenia, katalog) */
.collection { padding-block: 48px 72px; }
.collection-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.collection-head h1 { margin: 0 0 6px; }
.collection-head .lead { margin: 0; color: var(--muted); max-width: 62ch; }
.muted-text { color: var(--muted); font-weight: 400; }
.collection-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; background: var(--soft); border-radius: 14px; margin-bottom: 20px; }
.collection-filters input[type=search], .collection-filters select, .collection-filters .price-range input { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.collection-filters input[type=search] { flex: 1 1 220px; }
.collection-filters .consent { font-size: 15px; color: var(--ink); align-items: center; }
.price-range { display: inline-flex; gap: 6px; }
.price-range input { width: 100px; }
.collection-reset { font-size: 15px; }
.collection-count { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.collection-empty { text-align: center; padding: 56px 20px; background: var(--soft); border-radius: 14px; color: var(--muted); }
.collection-archive { margin-top: 28px; }
.item-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.item-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); transition: box-shadow .2s, transform .2s; }
.item-card:hover { box-shadow: 0 16px 40px -24px rgba(15, 23, 42, .45); transform: translateY(-2px); }
.item-card--featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.item-card-img { display: block; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.item-card-img img { width: 100%; height: 100%; object-fit: cover; }
.item-card-img--empty { display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 45%, var(--line)); text-transform: uppercase; }
.item-card-body { padding: 14px 16px 16px; }
.item-card-body h2, .item-card-body h3 { font-size: 1.08rem; margin: 0 0 6px; line-height: 1.35; }
.item-card-body h2 a, .item-card-body h3 a { color: var(--ink); text-decoration: none; }
.item-card-body h2 a:hover, .item-card-body h3 a:hover { color: var(--accent); }
.item-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.item-meta--price { color: var(--ink); font-weight: 700; font-size: 15px; }
.item-meta--select { order: -1; }
.item-flag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.item-cards--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.item-page { padding-block: 32px 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .item-layout { grid-template-columns: 1fr; } .item-side { order: -1; } }
.item-head h1 { margin: 0 0 18px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.item-cover { width: 100%; border-radius: 14px; margin-bottom: 24px; max-height: 520px; object-fit: cover; }
.item-long { margin-top: 28px; }
.item-long h2 { font-size: 1.2rem; }
.item-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.item-side { position: sticky; top: 90px; }
.item-details { margin: 0; background: var(--soft); border-radius: 14px; padding: 6px 18px; }
.item-detail { padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-detail:last-child { border-bottom: 0; }
.item-detail dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.item-detail dd { margin: 3px 0 0; font-weight: 600; word-break: break-word; }
.item-detail--price dd { font-size: 1.5rem; font-weight: 800; }
.item-detail dd img { max-width: 160px; border-radius: 8px; }
.item-dates { font-size: 14px; color: var(--muted); margin-top: 14px; }
.item-related { margin-top: 56px; }
/* Moje wpisy i formularz dodawania */
.account-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.account-box-head h2 { margin: 0; }
.my-items { list-style: none; margin: 0; padding: 0; }
.my-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.my-items li > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.my-items small { color: var(--muted); font-size: 13px; }
.my-item-actions { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.my-item-actions form { margin: 0; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.badge--ok { background: #e7f6ee; color: #11573a; } .badge--wait { background: #fff4d6; color: #7a5200; } .badge--bad { background: #fdecec; color: #8a1c1c; }
.item-form { max-width: 760px; }
.item-form textarea, .item-form select { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.item-form input[type=file] { font-size: 15px; }
.upload-current { display: flex; gap: 12px; align-items: center; }
.upload-current img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.upload-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-thumb { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.upload-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }

/* Pakiet premium w kolekcjach */
.item-flag--premium { color: #a15c00; background: #fff3dc; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.item-card--premium { border-color: #f0c77a; box-shadow: 0 0 0 1px #f6d9a3, 0 14px 30px -22px rgba(161, 92, 0, .45); }

/* Przełącznik lista / kalendarz */
.view-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; margin: 0 0 18px; }
.view-switch a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.view-switch a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Kalendarz miesięczny */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 1.5rem; min-width: 11ch; text-align: center; }
.cal-nav { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.cal-nav:hover { border-color: var(--ink); }
.cal-today { margin-left: auto; font-weight: 600; }
.cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-row--head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); text-align: center; }
.cal-day { min-height: 112px; padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-grid > .cal-day:nth-child(7n + 1) { border-left: 0; }
.cal-day--empty { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.cal-day--weekend { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.cal-day--past .cal-num, .cal-day--past .cal-ev { opacity: .6; }
.cal-num { font-weight: 700; font-size: 14px; }
.cal-dow-mobile { display: none; }
.cal-day--today .cal-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; align-self: flex-start; }
.cal-ev { display: block; font-size: 13px; line-height: 1.35; padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--bg)); color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cal-ev:hover { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.cal-ev time { font-weight: 700; }
@media (max-width: 760px) {
  /* Na telefonie: lista dni z wydarzeniami zamiast siatki */
  .cal { border: 0; border-radius: 0; }
  .cal-row--head, .cal-day--empty, .cal-day:not(.cal-day--busy) { display: none; }
  .cal-grid { grid-template-columns: 1fr; gap: 10px; }
  .cal-day { min-height: 0; border: 1px solid var(--line) !important; border-radius: 12px; padding: 12px; }
  .cal-dow-mobile { display: inline; }
  .cal-ev { font-size: 15px; -webkit-line-clamp: unset; }
}

/* Dodaj do kalendarza, kontakt z autorem */
.item-cal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.item-cal p { width: 100%; margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.item-contact { margin-top: 20px; background: var(--soft); border-radius: 14px; padding: 18px; }
.item-contact h2 { font-size: 1.1rem; margin: 0 0 12px; }
.item-contact-form { display: grid; gap: 12px; }
.item-contact-form .btn { justify-content: center; }
.item-contact .form-note { margin: 0 0 12px; }
.item-side:has(.item-contact) { position: static; }
.badge--premium { background: #fff3dc; color: #a15c00; }
.opt--premium { color: #a15c00; font-size: 13px; }
.form-note--premium { background: #fff7e8; color: #6b4200; }
.premium-link { color: #a15c00; font-weight: 600; }
@media (max-width: 760px) { .cal-head h2 { min-width: 0; font-size: 1.25rem; flex: 1; } }

/* Płatności */
.payment-box { max-width: 560px; }
.payment-box h2 { margin-bottom: 4px; }
.payment-amount { font-size: 2rem; font-weight: 800; margin: 6px 0 14px; letter-spacing: -.02em; }
.transfer-data { margin: 14px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.transfer-data > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.transfer-data > div:first-child { border-top: 0; }
.transfer-data dt { color: var(--muted); }
.transfer-data dd { margin: 0; font-weight: 700; text-align: right; }
.transfer-data .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; user-select: all; }

/* Reklamy */
.ad-zone { display: flex; gap: 16px; justify-content: center; margin-block: 20px; }
.ad-zone[hidden], .ad[hidden] { display: none; }
.ad { position: relative; display: block; flex: 1 1 0; max-width: 100%; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--soft); }
.ad img { display: block; width: 100%; height: auto; }
.ad-label { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .9); color: #334; }
.ad--text { border: 1px solid var(--line); }
.ad-text { display: flex; flex-direction: column; gap: 4px; padding: 34px 18px 16px; }
.ad-text strong { font-size: 1.1rem; }
.ad-cta { color: var(--accent); font-weight: 700; font-size: 14px; }
.ad-zone--naglowek .ad, .ad-zone--stopka .ad { max-width: 1200px; }
.ad-zone--side { margin: 16px 0 0; }
.ad-zone--after, .ad-zone--inline { margin-block: 28px; }
.ad-zone--tile { margin: 0; display: block; padding: 0; border: 0; }
.ad-zone--tile .ad { height: 100%; border: 1px solid var(--line); }
.ad-zone--tile .ad img { height: 100%; object-fit: cover; }
/* Oferta reklamowa */
.ads-offer { padding-block: 48px 80px; }
.ads-offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-block: 24px 36px; }
.ads-offer-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ads-offer-card h2 { font-size: 1.2rem; margin: 0; }
.ads-offer-card p { margin: 0; color: var(--muted); }
.ads-offer-card dl { margin: 6px 0 8px; }
.ads-offer-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.ads-offer-card dt { color: var(--muted); }
.ads-offer-card dd { margin: 0; font-weight: 700; }
.ads-offer-price { font-size: 1.2rem; color: var(--accent); }
.ads-offer-card .btn { margin-top: auto; justify-content: center; }
.ads-offer-notes { max-width: 740px; }
/* Zamawianie i statystyki */
.ad-zone-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.ad-zone-pick legend { font-weight: 600; margin-bottom: 6px; }
.ad-zone-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.ad-zone-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ad-zone-option input { margin-top: 3px; accent-color: var(--accent); }
.ad-zone-option span { display: flex; flex-direction: column; }
.ad-zone-option small { color: var(--muted); }
.ad-view { max-width: 640px; }
.ad-view-img { display: block; max-width: 100%; border-radius: 10px; margin: 12px 0; border: 1px solid var(--line); }
.ad-stats-title { font-size: 1rem; margin: 18px 0 8px; }
.ad-stats { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-stats th, .ad-stats td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .ad-zone { flex-direction: column; } }

/* Ostrzeżenie przed oszustwami */
.safety { border: 2px solid #f2b620; background: #fff8e1; color: #3d2c00; border-radius: 16px; padding: 16px 18px; font-size: 14.5px; line-height: 1.5; }
.safety-title { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 16px; color: #6b4400; margin-bottom: 6px; }
.safety-text ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.safety-text p { margin: 0 0 6px; }
.safety-more { margin: 8px 0 0; font-weight: 600; }
.safety-more a { color: #6b4400; }
.safety--chat { margin-bottom: 14px; }
/* Logowanie przez Google / Facebook */
.oauth-box { display: grid; gap: 10px; margin: 16px 0 6px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #1f1f1f; font-weight: 600; text-decoration: none; }
.oauth-btn:hover { border-color: #9aa3b5; background: #fafbfc; color: #1f1f1f; }
.oauth-btn--facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.oauth-btn--facebook:hover { background: #0f65d6; color: #fff; }
.oauth-btn--facebook svg path { fill: #fff; }
.oauth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Rozmowy */
.chat { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.chat-head { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border-radius: 16px; padding: 16px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.chat-head h2 { margin: 0; font-size: 1.25rem; }
.chat-back { font-weight: 600; text-decoration: none; font-size: 14px; }
.chat-item-link { font-size: 14px; }
.chat-privacy { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.chat-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 78%; }
.chat-msg.is-own { align-self: flex-end; align-items: flex-end; }
.chat-msg--system { align-self: center; max-width: 100%; }
.chat-system { margin: 0; font-size: 13px; color: var(--muted); text-align: center; background: var(--soft); border-radius: 999px; padding: 6px 14px; }
.chat-who { font-size: 12.5px; color: var(--muted); }
.chat-bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.is-own .chat-bubble { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 18px 18px 6px 18px; }
.chat-msg--admin .chat-bubble { background: #fff8e1; border-color: #f2b620; }
.chat-help { background: none; border: 0; padding: 0; font: inherit; font-size: 11.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.chat-help:hover { color: var(--accent); }
.chat-help--on { text-decoration: none; cursor: default; }
.chat-help-empty { margin: 0; }
.chat-form { display: grid; gap: 8px; background: var(--bg); border-radius: 16px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.chat-form textarea { width: 100%; min-height: 84px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; background: var(--bg); color: var(--ink); }
.chat-warn { margin: 0; background: #fdecec; color: #8a1c1c; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.chat-form-foot { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.chat-list { list-style: none; margin: 0; padding: 0; }
.chat-list li { border-top: 1px solid var(--line); }
.chat-list li:first-child { border-top: 0; }
.chat-list a { display: flex; flex-direction: column; gap: 3px; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.chat-list li.is-unread strong { color: var(--accent); }
.chat-list-top { display: flex; justify-content: space-between; gap: 12px; }
.chat-list-top time, .chat-list-who, .chat-list-last { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .chat-msg { max-width: 92%; } }
.legal-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.legal-menu a { color: inherit; }
.reveal { font: inherit; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.reveal:hover { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.reveal:disabled { opacity: .6; cursor: wait; }

/* Pasek komunikatów */
.notice { background: #fff4d6; color: #5c4300; border-bottom: 1px solid #f2d27a; }
.notice--info { background: #e8f0fe; color: #1a3a7a; border-color: #bcd0f7; }
.notice--danger { background: #fde8e8; color: #7a1414; border-color: #f3b7b7; }
.notice[hidden] { display: none; }
.notice-in { display: flex; gap: 12px; align-items: center; padding: 10px 0; flex-wrap: wrap; }
.notice-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.08); }
.notice-text { flex: 1; min-width: 200px; font-weight: 600; }
.notice-link { font-weight: 700; color: inherit; }
.notice-close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
/* Newsletter */
.nl-form { display: grid; gap: 10px; max-width: 520px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; background: var(--bg); color: var(--ink); }
.nl-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.nl-consent input { margin-top: 3px; }
/* Zgłoszenia */
.report-link { margin: 12px 0 0; font-size: 14px; }
.report-link a { color: var(--muted); }
.report-reasons { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.report-reasons legend { font-weight: 700; margin-bottom: 6px; }
.chat-report { font-size: 11.5px; color: var(--muted); }
/* Powiadomienia o wpisach */
.alert-form { margin: 0 0 14px; }
.alert-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; margin: 0 0 14px; }
.alert-btn:hover { border-color: var(--accent); color: var(--accent); }
.alert-btn.is-on { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
/* Mapa */
.map { position: relative; height: 380px; border-radius: 16px; overflow: hidden; background: #e8eef3; touch-action: none; user-select: none; cursor: grab; }
.map--big { height: min(70vh, 620px); }
.map--small { height: 220px; margin-top: 14px; }
.map--picker { height: 300px; cursor: crosshair; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.map-pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; border: 0; padding: 0; background: none; cursor: pointer; }
.map-pin::before { content: ""; position: absolute; inset: 0; background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-pop { position: absolute; transform: translate(-50%, calc(-100% - 34px)); background: #fff; color: #111; border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 2px; min-width: 160px; max-width: 260px; z-index: 3; }
.map-pop[hidden] { display: none; }
.map-pop small { color: #667; font-size: 12px; }
.map-pop a { font-weight: 700; }
.map-ui { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-ui button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #fff; color: #111; font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.map-attrib { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.map-picker .field-hint { margin-top: 6px; }
/* Ankiety */
.poll { display: grid; gap: 12px; }
.poll-q { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.poll-form { display: grid; gap: 8px; }
.poll-opt { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.poll-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.poll-form .btn { justify-self: start; }
.poll-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.poll-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.poll-bar { display: block; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-top: 4px; }
.poll-bar-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s ease; }
.poll-meta { font-size: 13px; color: var(--muted); margin: 0; }
.polls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.poll-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 10px; }
.poll-card h2 { font-size: 1.15rem; margin: 0; }
.poll-opt input { width: auto !important; min-height: 0 !important; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.poll-opt span { flex: 1; }
.poll-form[hidden], .poll-results[hidden], .poll-meta[hidden] { display: none; }
.map-tiles img { color: transparent; }
