@import url("../fonts/fonts.css");

/* ------------------------------------------------------------------
   Tokeny
   ------------------------------------------------------------------ */
:root {
  --denim: #1f4e79;
  --denim-dark: #163a5c;
  --denim-soft: #e8eff7;
  --ink: #18202e;
  --muted: #5a6475;
  --line: #e2e7ee;
  --surface: #f5f7fa;
  --bg: #ffffff;

  --night: #0a1230;
  --night-2: #141c4a;
  --gold: #f3c26a;
  --hope: linear-gradient(90deg, #35d4ef 0%, #5b8cff 38%, #a26cf6 68%, #f06bc8 100%);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------------
   Podstawy
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--denim); text-underline-offset: .18em; }
a:hover { color: var(--denim-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #5b8cff; outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--denim); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------------
   Nagłówek
   ------------------------------------------------------------------ */
.topbar { background: var(--denim-dark); color: #cfdbea; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 4px 18px; flex-wrap: wrap; padding-block: 6px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .sym { margin-right: -6px; }
.brand span { font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }

.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; font: 600 .9375rem/1 var(--font-head); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface); color: var(--denim); }
.nav a[aria-current="page"] { background: var(--denim-soft); color: var(--denim); }
.nav a.nav-hope { font-style: italic; font-weight: 800; }
.nav a.nav-hope span { background: var(--hope); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .brand span { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1rem; }
}
@media (max-width: 420px) { .brand img { height: 32px; } }

/* ------------------------------------------------------------------
   Przyciski i drobne elementy
   ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 700 1rem/1.1 var(--font-head); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--denim); color: #fff; }
.btn-primary:hover { background: var(--denim-dark); color: #fff; }
.btn-hope { background: #fff; color: var(--night); box-shadow: 0 6px 30px rgba(91, 140, 255, .45); }
.btn-hope:hover { color: var(--night); box-shadow: 0 8px 36px rgba(162, 108, 246, .6); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--denim); color: var(--denim); }

.eyebrow { display: inline-block; font: 700 .75rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--denim); margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--denim-soft); color: var(--denim); font: 600 .75rem/1.4 var(--font-head); text-decoration: none; }

/* ------------------------------------------------------------------
   #JestNadzieja — hero
   ------------------------------------------------------------------ */
.hope-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #e9ecff;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(214, 92, 230, .55), transparent 60%),
    radial-gradient(900px 600px at 35% 70%, rgba(66, 112, 255, .55), transparent 65%),
    radial-gradient(700px 500px at 0% 0%, rgba(26, 64, 150, .9), transparent 70%),
    linear-gradient(160deg, #0b1a4a 0%, #1c2a7a 45%, #4b2a8f 100%);
}
.hope-hero::before { /* gwiazdy */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 78%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 54%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 92%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 40%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}
.hope-hero::after { /* łuk jak na grafikach kampanii */
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -62%; height: 80%;
  border-top: 1px solid rgba(240, 107, 200, .45); border-radius: 50%;
}
.hope-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hope-hero .eyebrow { color: var(--gold); }
.wordmark { font: italic 800 clamp(2.75rem, 8vw, 5.5rem)/1 var(--font-head); letter-spacing: -.02em; margin: 0 0 .3em; background: var(--hope); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hope-hero .lead { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.5; color: #fff; max-width: 34ch; margin-bottom: .4em; }
.hope-hero .sub { color: #b9c0e6; margin-bottom: 1.4em; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-url { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font: 600 .9375rem/1 var(--font-head); color: #cfd5f5; text-decoration: none; }
.hero-url:hover { color: #fff; }
.hero-url .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, .2); }

.feat { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font: 600 .875rem/1.2 var(--font-head); color: #fff; }
.feat svg { width: 18px; height: 18px; color: var(--gold); }

/* Aplikacja na żywo w ramce telefonu */
.app-live { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { position: relative; width: min(100%, 390px); height: min(780px, 82vh); padding: 12px; border-radius: 46px; background: #05091c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px rgba(4, 8, 30, .6), 0 0 120px rgba(162, 108, 246, .35); }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; }
.app-live-open { display: inline-flex; align-items: center; gap: 8px; font: 600 .875rem/1 var(--font-head); color: #cfd5f5; text-decoration: none; }
.app-live-open:hover { color: #fff; }
.app-live-open svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .phone { width: 100%; max-width: 440px; height: 640px; padding: 8px; border-radius: 30px; }
  .phone iframe { border-radius: 23px; }
}

@media (max-width: 900px) {
  .hope-hero .wrap { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Sekcje
   ------------------------------------------------------------------ */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* ------------------------------------------------------------------
   Filmy
   ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 600 .875rem/1.2 var(--font-head); cursor: pointer; }
.filter:hover { border-color: var(--denim); color: var(--denim); }
.filter[aria-pressed="true"] { background: var(--denim); border-color: var(--denim); color: #fff; }
.filter .n { opacity: .7; font-weight: 500; margin-left: 4px; }

.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.featured .meta .chip { margin-bottom: 12px; }
.featured h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.featured time { color: var(--muted); font-size: .9375rem; display: block; margin-bottom: 18px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(10, 18, 48, .72); display: grid; place-items: center; transition: transform .15s ease, background-color .15s ease; }
.play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.player button:hover .play { transform: scale(1.08); background: #e62117; }

.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px 20px; }
.video-card { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--night); margin-bottom: 10px; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card:hover .thumb img { transform: scale(1.04); }
.video-card .t { font: 700 1rem/1.35 var(--font-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card:hover .t { color: var(--denim); }
.video-card time { display: block; font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.video-card[aria-current="true"] .thumb { outline: 3px solid var(--denim); outline-offset: 2px; }
.yt-more { margin-top: 32px; }

/* ------------------------------------------------------------------
   Kafelki (Pomysł na Misję, nawigacja)
   ------------------------------------------------------------------ */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .img { aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.125rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--denim); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card[hidden] { display: none; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile h3 { font-size: 1.375rem; margin: 0; }
.tile p { color: var(--muted); margin: 0; }
.tile .go { margin-top: 10px; font: 700 .9375rem/1 var(--font-head); color: var(--denim); display: inline-flex; align-items: center; gap: 8px; }
.tile .go svg { width: 18px; height: 18px; transition: transform .15s ease; }
.tile:hover .go svg { transform: translateX(4px); }

/* ------------------------------------------------------------------
   Nagłówki podstron
   ------------------------------------------------------------------ */
.page-hero { background: linear-gradient(180deg, var(--denim-soft), #fff); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .3em; }
.page-hero p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--denim); }

/* ------------------------------------------------------------------
   Pojedynczy pomysł
   ------------------------------------------------------------------ */
.post-hero { padding-block: clamp(32px, 5vw, 56px) 0; }
.post-hero h1 { font-size: clamp(1.875rem, 4.6vw, 2.75rem); }
.post-hero .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.post-cover { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; }

.prose { max-width: 760px; margin-inline: auto; padding-block: clamp(28px, 4vw, 48px); }
.prose h2 { font-size: 1.25rem; color: var(--denim); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose a { word-break: break-word; }
.prose .media { margin: 1.6em 0; }
.prose .media img { border-radius: var(--radius-sm); }
.prose .cta-note { margin: 2.2em 0; padding: 22px 24px; border-radius: var(--radius); background: var(--denim-soft); color: var(--denim-dark); text-align: center; font-family: var(--font-head); font-weight: 600; }
.prose .cta-note a { font-weight: 800; }
.link-card { display: flex; align-items: center; gap: 14px; margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.link-card:hover { border-color: var(--denim); color: var(--denim); }
.link-card svg { width: 20px; height: 20px; color: var(--denim); flex-shrink: 0; }
.link-card b { font-family: var(--font-head); display: block; }
.link-card small { color: var(--muted); }

.prose .gallery, .gallery { list-style: none; margin: 1.6em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(6, 10, 24, .88); }
.lightbox img { max-width: min(96vw, 1400px); max-height: 86vh; width: auto; border-radius: var(--radius-sm); }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------
   Zasoby i Kontakt
   ------------------------------------------------------------------ */
.empty { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border: 2px dashed var(--line); border-radius: 22px; }
.empty svg { width: 48px; height: 48px; color: var(--denim); margin: 0 auto 16px; }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.person { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person .role { font: 700 .75rem/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--denim); margin-bottom: 10px; }
.person .name { font: 700 1.1875rem/1.3 var(--font-head); margin-bottom: 10px; }
.person a { overflow-wrap: anywhere; }
.contact-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--denim); color: #fff; }
.contact-main h2 { font-size: 1.5rem; margin: 0 0 4px; }
.contact-main p { margin: 0; color: #cfdbea; }
.contact-main .btn { background: #fff; color: var(--denim); }

/* ------------------------------------------------------------------
   Stopka
   ------------------------------------------------------------------ */
.site-footer { background: var(--night); color: #b7bfdb; font-size: .9375rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .bottom .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.site-footer .bottom img { width: 36px; height: 36px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------
   Zakładki (Zasoby)
   ------------------------------------------------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 36px); overflow-x: auto; }
.tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 18px; font: 700 1rem/1.2 var(--font-head); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--denim); }
.tab[aria-selected="true"] { color: var(--denim); border-bottom-color: var(--denim); }
.tab .n { font-weight: 500; opacity: .7; margin-left: 4px; }

/* ------------------------------------------------------------------
   Ulotki
   ------------------------------------------------------------------ */
.leaflets { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); }
.leaflet { display: grid; grid-template-columns: 1fr; gap: 20px; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.leaflet .pages { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.leaflet .info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 8px 32px; align-items: end; }
.leaflet .info .eyebrow { margin-bottom: 8px; }
.page-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.page-btn img { width: 100%; aspect-ratio: 1.4 / 1; object-fit: cover; transition: transform .3s ease; }
.page-btn:hover img { transform: scale(1.02); }
.page-btn .lbl { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 18, 48, .78); color: #fff; font: 600 .75rem/1.2 var(--font-head); }
.page-btn .lbl svg { width: 14px; height: 14px; }
.leaflet h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: .3em; }
.leaflet .q { color: var(--muted); font-size: 1.0625rem; margin-bottom: .6em; }
.leaflet .meta { margin: 0; font-size: .875rem; color: var(--muted); }
.leaflet .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.leaflet .actions small { flex-basis: 100%; text-align: right; color: var(--muted); font-size: .8125rem; }
@media (max-width: 860px) {
  .leaflet .info { grid-template-columns: 1fr; }
  .leaflet .actions { justify-content: flex-start; }
  .leaflet .actions small { text-align: left; }
  .leaflet .pages { grid-template-columns: 1fr; }
}

/* Przeglądarka stron ulotki */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1020; color: #fff; }
.viewer::backdrop { background: rgba(6, 10, 24, .9); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 10px clamp(10px, 2vw, 20px); background: #0b1020; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.viewer-bar .title { flex: 1; min-width: 0; font: 700 1rem/1.3 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .title small { font-weight: 500; color: #aab2dc; margin-left: 8px; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #fff; font: 600 .875rem/1 var(--font-head); text-decoration: none; cursor: pointer; }
.vbtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.vbtn svg { width: 18px; height: 18px; }
.vbtn[disabled] { opacity: .35; cursor: default; }
@media (max-width: 640px) { .vbtn .txt { display: none; } .vbtn { padding: 0; } }
.viewer-stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 12px; overscroll-behavior: contain; }
.viewer-stage img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; cursor: zoom-in; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.viewer.zoomed .viewer-stage { display: block; }
.viewer.zoomed .viewer-stage img { max-width: none; max-height: none; width: var(--zoom-w, 2600px); cursor: zoom-out; margin: 0 auto; }
.section-lead { color: var(--muted); margin: 0 0 24px; max-width: 70ch; }

/* ------------------------------------------------------------------
   Zamówienie ulotek
   ------------------------------------------------------------------ */
.order { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.order-head { max-width: 760px; margin-bottom: 28px; }
.order-head h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); }
.order-head p { color: var(--muted); margin: 0; }
.order-head b { color: var(--ink); }
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .order-form { grid-template-columns: 1fr; } }
.order fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 26px); margin: 0 0 20px; min-width: 0; }
.order legend { font: 700 1.0625rem/1.2 var(--font-head); padding: 0 8px; margin-left: -8px; }

.qty-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty-row:last-of-type { border-bottom: 0; }
.qty-row img { width: 96px; height: auto; border-radius: 6px; }
.qty-row label b { display: block; font-family: var(--font-head); }
.qty-row label small { color: var(--muted); font-size: .875rem; }
.qty-row .err { grid-column: 2 / -1; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 120px; text-align: right; font-size: 1.125rem; font-weight: 600; }
.qty span { color: var(--muted); }
@media (max-width: 560px) {
  .qty-row { grid-template-columns: 64px minmax(0, 1fr); }
  .qty-row img { width: 64px; }
  .qty { grid-column: 1 / -1; }
  .qty input { flex: 1; }
}

.order input[type="text"], .order input:not([type]), .order input[type="email"], .order input[type="tel"], .order input[type="number"], .order textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cbd3df; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.qty input[type="number"] { width: 120px; }
.order textarea { min-height: 88px; resize: vertical; }
.order input:focus, .order textarea:focus { outline: none; border-color: var(--denim); box-shadow: 0 0 0 3px rgba(31, 78, 121, .18); }
.order [aria-invalid="true"] { border-color: #c62828 !important; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 600 .875rem/1.3 var(--font-head); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 0 16px; }
.grid3[hidden] { display: none; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.err { margin: 6px 0 0; color: #c62828; font-size: .875rem; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choice { grid-template-columns: 1fr; } }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #cbd3df; border-radius: 12px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--denim); background: var(--denim-soft); box-shadow: 0 0 0 1px var(--denim); }
.choice input { margin-top: 4px; accent-color: var(--denim); width: 18px; height: 18px; }
.choice b { display: block; font-family: var(--font-head); }
.choice small { color: var(--muted); font-size: .875rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; cursor: pointer; margin-top: 6px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--denim); flex-shrink: 0; }

.order-sum { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.order-sum h3 { font-size: 1.125rem; margin-bottom: 14px; }
.order-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.order-sum dt { color: var(--muted); }
.order-sum dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-sum .total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font: 800 1.25rem/1.2 var(--font-head); }
.meter { height: 8px; border-radius: 999px; background: #dfe5ee; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--denim); border-radius: inherit; transition: width .2s ease; }
.meter.ok span { background: #2e9d5b; }
.min-note { font-size: .875rem; color: var(--muted); margin: 8px 0 16px; }
.order-sum .btn { width: 100%; }
.order-sum .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.order-sum > small { display: block; margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
@media (max-width: 960px) { .order-sum { position: static; } }

.order-done { padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--denim-soft); border: 1px solid #c9d8ea; }
.order-done h3 { font-size: 1.5rem; color: var(--denim-dark); }
.order-done .pay { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 20px 0; padding: 20px; border-radius: var(--radius); background: #fff; }
.order-done .pay dt { color: var(--muted); }
.order-done .pay dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 560px) { .order-done .pay { grid-template-columns: 1fr; gap: 2px; } .order-done .pay dd { margin-bottom: 10px; } }

/* Informator dla zborów (na górze strony z ulotkami) */
.notice { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); padding: clamp(18px, 2.5vw, 28px); border-radius: 22px; background: var(--denim-soft); border: 1px solid #c9d8ea; }
.notice .notice-thumb { box-shadow: 0 6px 20px rgba(16, 24, 40, .14); }
.notice .notice-thumb img { aspect-ratio: 210 / 297; object-fit: cover; }
.notice .notice-thumb .lbl { left: 6px; bottom: 6px; }
.notice h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-bottom: .3em; }
.notice p { color: var(--muted); margin-bottom: 16px; }
.notice .eyebrow { margin-bottom: 8px; }
.notice .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice .actions small { color: var(--muted); font-size: .8125rem; }
@media (max-width: 560px) { .notice { grid-template-columns: 1fr; } .notice .notice-thumb { display: none; } }
.notice .eyebrow { line-height: 1.5; }
