/* #BezEkranowi CMS – wygląd w stylu Systemu #BEGO (tokeny v3). */
@font-face { font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f4f1ff; --bg2: #e5ddfc; --surface: #ffffff; --surface2: #ebe5ff;
  --ink: #1c1233; --ink2: #4f4566; --line: #e5ddfa; --outline: #24123d;
  --p: #5b2be0; --p2: #1f5fe0; --accent: #ffcf3f; --pink: #b8159a;
  --side1: #2a1170; --side2: #14307e; --sideink2: #d6cff0;
  --t1: #ffe08a; --t2: #c9f2e4; --t3: #ffd3e6; --t4: #d6e4ff; --chip: #f2eefd;
  --ok-bg: #d5f5df; --ok-ink: #0d4a2b; --warn-bg: #fff0bf; --warn-ink: #5c3f00;
  --err-bg: #ffe0e3; --err-ink: #8a1426; --info-bg: #dce9ff; --info-ink: #133a78;
  --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --max: 1200px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* aliasy dla starszych widoków */
  --ink-soft: var(--ink2); --border: var(--line); --radius: var(--r); --radius-lg: var(--r-lg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -8%, #d2c5f8 0%, transparent 60%),
    radial-gradient(800px 480px at 95% 2%, #ced7f9 0%, transparent 55%),
    var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--p2); }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--s3); letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s4); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--ink); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 800; border: 2px solid var(--outline); }
.skip-link:focus { top: 12px; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border: 2px solid var(--outline); border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--outline);
  padding: 8px 8px 8px 18px; min-height: 68px; position: relative;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-logo { height: 40px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: var(--r-pill);
  border: 2px solid var(--outline); background: var(--accent); color: var(--ink);
  font: 800 15px var(--font-display); cursor: pointer; box-shadow: 0 4px 0 var(--outline);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-menu { display: none; }
.nav-menu.is-open {
  display: block; position: absolute; left: 0; right: 0; top: calc(100% + 14px);
  background: var(--surface); border: 2px solid var(--outline); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--outline); padding: 12px;
}
.nav-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-links a {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav-links a:hover { background: var(--chip); color: var(--p); }
.nav-links a[aria-current="page"] { background: var(--p); color: #fff; box-shadow: 0 4px 0 var(--outline); }
.nav-cta { margin-top: 8px; }
.nav-cta .btn { width: 100%; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-menu, .nav-menu.is-open { display: flex; align-items: center; gap: 8px; position: static; border: 0; box-shadow: none; padding: 0; background: none; }
  .nav-links { display: flex; gap: 2px; }
  .nav-links a { padding: 0 12px; font-size: 14.5px; }
  .nav-links .icon { display: none; }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; }
}
@media (max-width: 420px) { .brand-logo { height: 32px; } .nav-toggle-label { display: none; } }

/* ---------- PRZYCISKI ---------- */
.btn {
  --b1: var(--p); --b2: var(--p2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  border: 2px solid var(--outline); cursor: pointer; text-decoration: none;
  font: 800 16px/1.1 var(--font-display); letter-spacing: .01em;
  background: linear-gradient(135deg, var(--b1), var(--b2)); color: #fff;
  box-shadow: 0 6px 0 var(--outline); transition: transform .25s var(--spring), box-shadow .2s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 var(--outline); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--outline); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); }
.btn-secondary, .btn-ghost { background: var(--surface); color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { color: var(--p); }
.btn-danger { --b1: #be123c; --b2: #9f1239; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; box-shadow: 0 4px 0 var(--outline); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- SEKCJE / KARTY ---------- */
main { flex: 1 0 auto; padding-bottom: var(--s7); }
.section { padding: var(--s6) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head .link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; min-height: 44px; text-decoration: none; }
.section-head .link-more:hover { text-decoration: underline; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font: 800 13px var(--font-display);
  letter-spacing: .08em; text-transform: uppercase; color: var(--p);
  background: var(--chip); border: 2px solid var(--line); padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: var(--s3);
}
.eyebrow .icon { width: 16px; height: 16px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink2); }
.muted { color: var(--ink2); }
.card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--line); padding: var(--s5);
}
.card > :last-child { margin-bottom: 0; }
.card--outline { border-color: var(--outline); box-shadow: 0 6px 0 var(--outline); }
.card--tint { background: var(--surface2); }
.card--link { display: flex; flex-direction: column; gap: var(--s2); text-decoration: none; color: var(--ink); transition: transform .4s var(--spring), box-shadow .2s; }
.card--link:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--outline); box-shadow: 0 8px 0 var(--outline); color: var(--ink); }
.card-title { margin: 0; font-size: 1.3rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title a:focus-visible { outline: none; }
.card-click { position: relative; }
.card-click:focus-within { outline: 3px solid var(--p); outline-offset: 3px; }
.card-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.card-head h2, .card-head h3 { margin: 0; }
.ico-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--t4); color: var(--ink); border: 2px solid var(--outline); flex: 0 0 auto;
}
.ico-badge.t1 { background: var(--t1); } .ico-badge.t2 { background: var(--t2); } .ico-badge.t3 { background: var(--t3); }
.ico-badge.t4 { background: var(--t4); } .ico-badge.tp { background: var(--p); color: #fff; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.chip, .pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 12px;
  border-radius: var(--r-pill); background: var(--chip); color: var(--p); font-weight: 800; font-size: 13px; border: 2px solid var(--line);
}
.chip .icon, .pill .icon { width: 16px; height: 16px; }
.chip--accent { background: var(--accent); color: var(--ink); border-color: var(--outline); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink2); font-size: 14px; font-weight: 600; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 16px; height: 16px; color: var(--p); }

/* ---------- HERO (strona główna) ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: var(--s4);
  display: grid; gap: var(--s6); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--side1), var(--side2)); color: #fff;
  border: 2px solid var(--outline); box-shadow: 0 6px 0 var(--outline);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(91,43,224,.75), transparent 70%); }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(31,95,224,.7), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: var(--s4); }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: var(--sideink2); max-width: 36ch; }
.hero .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-card {
  background: var(--surface); color: var(--ink); border: 2px solid var(--outline);
  border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--outline); padding: var(--s5);
  transform: rotate(1.2deg);
}
.hero-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr .75fr; } }
@media (prefers-reduced-motion: reduce) { .hero-card { transform: none; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.stat { border-radius: var(--r); padding: var(--s4); border: 2px solid var(--outline); background: var(--t1); font-weight: 700; font-size: 14px; line-height: 1.3; }
.stat:nth-child(2) { background: var(--t2); }
.stat strong { display: block; font: 900 clamp(1.6rem, 7vw, 2.6rem)/1 var(--font-display); color: var(--ink); margin-bottom: 6px; white-space: nowrap; }

/* ---------- FILARY ---------- */
.pillars { margin-top: var(--s6); }
.pillar { display: flex; flex-direction: column; gap: var(--s2); }
.pillar h3 { margin: var(--s2) 0 0; }
.pillar p { margin: 0; color: var(--ink2); }

/* ---------- PAGE HERO (podstrony) ---------- */
.page-hero {
  margin-top: var(--s4); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--side1), var(--side2)); color: #fff;
  border: 2px solid var(--outline); box-shadow: 0 6px 0 var(--outline);
  position: relative; overflow: hidden; display: flex; gap: var(--s5); align-items: center; justify-content: space-between;
}
.page-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -100px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(91,43,224,.8), transparent 70%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0 0 var(--s3); font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-hero .lead { color: var(--sideink2); margin: 0; max-width: 60ch; }
.page-hero .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.page-hero-icon { display: none; place-items: center; width: 112px; height: 112px; border-radius: var(--r-lg); background: var(--accent); color: var(--ink); border: 2px solid var(--outline); box-shadow: 0 6px 0 rgba(0,0,0,.35); transform: rotate(-4deg); flex: 0 0 auto; }
.page-hero-icon .icon { width: 52px; height: 52px; }
@media (min-width: 768px) { .page-hero-icon { display: grid; } }

/* ---------- WYDARZENIA ---------- */
.event-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
.date-block {
  width: 72px; text-align: center; border-radius: var(--r); border: 2px solid var(--outline);
  background: var(--accent); color: var(--ink); padding: 8px 4px; box-shadow: 0 4px 0 var(--outline);
}
.date-block .d { display: block; font: 900 30px/1 var(--font-display); }
.date-block .m { display: block; font: 800 13px var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.event-card .card-title { margin-bottom: 6px; }
.event-card p { margin: 8px 0 0; color: var(--ink2); }
.capacity { margin-top: 12px; }
.capacity-bar { height: 10px; border-radius: var(--r-pill); background: var(--chip); border: 2px solid var(--line); overflow: hidden; }
.capacity-bar meter, meter.capacity-meter { width: 100%; height: 12px; }
.capacity-label { font-size: 13px; font-weight: 700; color: var(--ink2); margin-top: 4px; display: block; }
.event-detail { display: grid; gap: var(--s5); margin-top: var(--s5); }
@media (min-width: 900px) { .event-detail { grid-template-columns: 1.4fr 1fr; align-items: start; } .sticky-card { position: sticky; top: 110px; } }

/* ---------- ARTYKUŁY ---------- */
.article-card .chip { align-self: flex-start; }
.article-card p { margin: 0; color: var(--ink2); }
.article-card .read-more { margin-top: auto; padding-top: var(--s2); font-weight: 800; color: var(--p); display: inline-flex; gap: 6px; align-items: center; }
.article { max-width: 760px; margin: var(--s5) auto 0; }
.article-body { font-size: 1.075rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; min-height: 44px; text-decoration: none; }

/* ---------- PROSE ---------- */
.prose :is(p, ul, ol) { margin: 0 0 var(--s4); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--p); }
.prose h2 { font-size: 1.5rem; margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); }
.prose blockquote { margin: var(--s4) 0; padding: var(--s4) var(--s5); border-left: 6px solid var(--accent); background: var(--chip); border-radius: 0 var(--r) var(--r) 0; font-weight: 600; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band {
  margin-top: var(--s6); display: grid; gap: var(--s4); align-items: center;
  background: var(--accent); color: var(--ink); border: 2px solid var(--outline); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--outline); padding: clamp(24px, 4vw, 44px);
}
.cta-band h2 { margin: 0 0 var(--s2); }
.cta-band p { margin: 0; font-weight: 600; }
.cta-band .btn-secondary { background: var(--surface); }
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); box-shadow: 0 4px 0 var(--line); }
.faq details[open] { border-color: var(--outline); box-shadow: 0 4px 0 var(--outline); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; padding: 12px 18px; font: 800 17px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--p); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink2); }

/* ---------- FORMULARZE ---------- */
.form { display: grid; gap: var(--s4); }
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; color: var(--ink); }
input, select, textarea {
  width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; font: 500 16px var(--font-body); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c9bcf2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(91,43,224,.2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
textarea { min-height: 140px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--p); flex: 0 0 auto; }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--p); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; font-size: 14px; line-height: 1.45; padding: 12px 14px; border-radius: var(--r-sm); background: var(--chip); min-height: 48px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--ink2); margin: 0; }

/* ---------- FLASH ---------- */
.flash { display: flex; align-items: center; gap: 10px; border-radius: var(--r); padding: 14px 18px; margin: var(--s4) 0 0; font-weight: 700; border: 2px solid var(--outline); box-shadow: 0 4px 0 var(--outline); }
.flash-success { background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { background: var(--err-bg); color: var(--err-ink); }
.flash-info { background: var(--info-bg); color: var(--info-ink); }
.flash-warning { background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- KONTAKT ---------- */
.contact-grid { display: grid; gap: var(--s5); margin-top: var(--s5); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-aside { display: grid; gap: var(--s5); }

/* ---------- ERROR ---------- */
.error-page { text-align: center; max-width: 620px; margin: var(--s7) auto 0; padding: var(--s6) var(--s5); }
.error-code { font: 900 clamp(5rem, 16vw, 8rem)/1 var(--font-display); color: var(--p); text-shadow: 6px 6px 0 var(--accent); margin-bottom: var(--s4); }
.error-page .hero-actions { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer {
  flex-shrink: 0; margin-top: var(--s7); padding: var(--s7) 0 var(--s5);
  background: linear-gradient(135deg, var(--side1), var(--side2)); color: var(--sideink2);
  border-top: 2px solid var(--outline); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: var(--s4); }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .icon { width: 18px; height: 18px; color: var(--accent); }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: 14px; }

/* ---------- UTIL ---------- */
.stack-sm { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s4); } .mt-3 { margin-top: var(--s5); } .mt-4 { margin-top: var(--s6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s4); }
.empty { padding: var(--s6); text-align: center; color: var(--ink2); border: 2px dashed var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.6); grid-column: 1 / -1; }

/* ---------- ADMIN (ujednolicone z #BEGO) ---------- */
.admin-body { background: var(--bg); display: block; }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 260px 1fr; } }
.admin-nav { background: linear-gradient(180deg, var(--side1), var(--side2)); color: #fff; padding: var(--s5) var(--s4); }
.admin-nav a { color: var(--sideink2); text-decoration: none; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); min-height: 44px; font-weight: 700; }
.admin-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav a.active { background: #fff; color: var(--side1); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.admin-brand { font: 900 1.2rem var(--font-display); margin-bottom: var(--s4); color: #fff !important; }
.admin-main { padding: var(--s5); min-width: 0; }
.admin-main .card { margin-bottom: var(--s4); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.table-wrap { overflow: auto; background: var(--surface); border-radius: var(--r); border: 2px solid var(--line); box-shadow: 0 6px 0 var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--chip); font: 800 12px var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; background: var(--chip); color: var(--p); }
.badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-err { background: var(--err-bg); color: var(--err-ink); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--s4); background: linear-gradient(135deg, var(--side1), var(--side2)); }
.login-card { width: min(100%, 440px); border-color: var(--outline); box-shadow: 0 6px 0 var(--outline); }
.login-logo { height: 48px; width: auto; margin-bottom: var(--s4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card--link:hover, .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* ---------- PROJEKTY / PODMARKI ---------- */
.project-card p { margin: 0; color: var(--ink2); }
.project-card .read-more { margin-top: auto; padding-top: var(--s2); font-weight: 800; color: var(--p); display: inline-flex; gap: 6px; align-items: center; }
.project-logo { height: 150px; display: grid; place-items: center; padding: 14px 18px; border-radius: var(--r); background: #fff; border: 2px solid var(--line); margin-bottom: var(--s2); position: relative; overflow: hidden; }
.project-logo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--t4); }
.project-logo.t1::before { background: var(--accent); } .project-logo.t2::before { background: #3fbf5a; } .project-logo.t4::before { background: linear-gradient(90deg, var(--p), var(--p2)); }
.project-logo img { max-height: 112px; width: auto; max-width: 100%; object-fit: contain; }
.footer-projects { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.footer-projects a { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--r-sm); padding: 6px 12px; height: 54px; border: 2px solid transparent; }
.footer-projects a:hover { border-color: var(--accent); }
.footer-projects img { height: 40px; width: auto; max-width: none; }
.footer-projects img.is-wordmark { height: 24px; }
.prose .card-head h2, .prose .card-head h3 { margin: 0; }
.page-hero-date { display: none; transform: rotate(-4deg); width: 96px; }
.page-hero-date .d { font-size: 40px; }
@media (min-width: 768px) { .page-hero-date { display: block; } }

/* —— v4: galerie, media modal, news editor —— */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem}
.gallery-item{padding:0;border:0;border-radius:14px;overflow:hidden;cursor:zoom-in;background:#0b0618;box-shadow:4px 4px 0 #1a0a3a}
.gallery-item img{display:block;width:100%;height:160px;object-fit:cover;transition:transform .25s}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:scale(1.04)}
.lightbox{position:fixed;inset:0;z-index:1000;background:rgba(10,6,24,.88);display:flex;align-items:center;justify-content:center;padding:1.5rem}
.lightbox[hidden]{display:none!important}
.lightbox__inner{max-width:min(960px,100%);text-align:center}
.lightbox__inner img{max-width:100%;max-height:80vh;border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.45)}
.lightbox__cap{color:#fff;margin-top:.75rem}
.lightbox__close{position:absolute;top:1rem;right:1rem}
.article-card__media{display:block;margin:-1.1rem -1.1rem 1rem;overflow:hidden;border-radius:16px 16px 0 0}
.article-card__media img{width:100%;height:180px;object-fit:cover;display:block}
.article-cover{margin:0 0 1.25rem;border-radius:18px;overflow:hidden;box-shadow:6px 6px 0 #1a0a3a}
.article-cover img{display:block;width:100%;max-height:420px;object-fit:cover}
.feature-list{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.feature-list li{display:flex;gap:.75rem;align-items:flex-start}
.feature-list .icon{width:1.25rem;height:1.25rem;flex:0 0 auto}
.chip--soft{background:rgba(120,80,255,.12)}
.badge-success{background:#d8f5e5;color:#0a6b3c}
.badge-warn{background:#fff3cd;color:#7a5b00}
.badge-muted{background:#eee;color:#555}
.media-modal{position:fixed;inset:0;z-index:1200}
.media-modal__backdrop{position:absolute;inset:0;background:rgba(10,6,24,.55)}
.media-modal__dialog{position:relative;z-index:1;width:min(920px,94vw);max-height:88vh;margin:4vh auto;overflow:auto;padding:1rem 1.25rem}
.media-modal__head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem}
.media-modal__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.6rem}
.media-pick{border:2px solid transparent;border-radius:12px;padding:.35rem;background:#f7f5ff;cursor:pointer;text-align:left}
.media-pick.is-selected{border-color:#6c3cff;box-shadow:0 0 0 2px rgba(108,60,255,.25)}
.media-pick img{width:100%;height:90px;object-fit:cover;border-radius:8px;display:block}
.media-pick span{display:block;font-size:.72rem;margin-top:.25rem;color:#555;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-cover-preview{min-height:140px;border-radius:12px;background:#f3f0ff;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:.5rem}
.media-cover-preview img{width:100%;height:160px;object-fit:cover}
.media-insert-opts{display:grid;gap:.5rem;margin:.75rem 0}
.check-list{display:grid;gap:.35rem;margin-bottom:.75rem}
.admin-body .tox-tinymce{border-radius:12px!important;border:2px solid #d9d2f5!important}
@media (max-width:720px){
  .gallery-item img{height:120px}
  .article-card__media img{height:140px}
}
