/* Młodzi Emmanuela - kolory i font z brandbooka "młodzi Wrzeciono" */
:root {
  /* paleta wspólna */
  --yellow: #ffb62f;      /* wspólny, najważniejszy */
  --navy: #002642;        /* granat Młodych Emmanuela */
  --red: #850014;         /* czerwień Jonasza */
  --orange: #cf5d24;      /* pomarańcz Latarni: tylko duże elementy i dekoracja */
  --blue: #475aad;        /* niebieski z palety Latarni */
  --teal: #0b3c49;        /* ciemny morski z palety Jonasza */
  --cream: #fff1d6;
  --cream-2: #ffe7ba;
  --pink: #d87d8b;
  --greyblue: #85a2b7;
  --peach: #f6d9cb;
  --lavender: #dbdff0;
  --white: #ffffff;

  --surface: var(--white);
  --ink: var(--navy);
  --ink-muted: #3a5469;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d6e0;
  --line: #d6dee5;
  --focus: var(--blue);

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px; --space-7: 104px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 32px; --radius-pill: 999px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 28px; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100svh;
}
main { flex: 1 0 auto; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2.5px; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--navy) var(--cream); }
.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: var(--space-3); top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--space-3); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ext { width: .8em; height: .8em; margin-left: .25em; opacity: .8; }
.wave-edge { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 24px; width: 100%; pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 700;
  font-size: 17px; line-height: 20px; padding: 14px 26px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease-out), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--cream-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--teal); }
.btn-line { border: 2px solid currentColor; color: inherit; padding: 12px 24px; }

/* ---------- Nagłówek: bez menu, powrót do strony Wspólnoty ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 76px; }
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-link img { height: 46px; width: auto; }
.brand-link span { font-weight: 700; font-size: 17px; line-height: 20px; white-space: nowrap; letter-spacing: -.01em; }
.brand-link span small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.back-link {
  display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--navy);
  font-weight: 700; font-size: 15px; line-height: 18px; padding: 10px 16px; border-radius: var(--radius-pill);
  border: 2px solid var(--navy); transition: background .2s, color .2s;
}
.back-link:hover { background: var(--navy); color: var(--white); }
.home-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 12px; }
.home-link:hover { text-decoration: underline; }
.home-link .short { display: none; }

/* ---------- Baner główny: zdjęcie (później film) na całą szerokość ---------- */
.hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img, .hero-media video { object-position: 50% 40%; }
.hero-media video { opacity: 0; transition: opacity .8s var(--ease-out); }
.hero-media video.ready { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,38,66,.94) 0%, rgba(0,38,66,.8) 42%, rgba(0,38,66,.5) 72%, rgba(0,38,66,.26) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: var(--space-7) var(--space-6); }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.03em; max-width: 13ch; }
.wave { width: min(360px, 70%); height: auto; margin: var(--space-4) 0; overflow: visible; }
.wave path { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; }
.hero p { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 46ch; color: var(--on-dark); }
.hero .btn { margin-top: var(--space-5); }
.hero .btn .icon { transition: transform .25s var(--ease-out); }
.hero .btn:hover .icon { transform: translateY(3px); }

/* Przycisk pauzy filmu (WCAG 2.2.2) */
.video-toggle[hidden] { display: none; }
.video-toggle { position: absolute; z-index: 2; right: var(--gutter); bottom: var(--space-5); width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,38,66,.55); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.video-toggle:hover { background: var(--navy); }
.video-toggle .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.video-toggle .i-play, .video-toggle.paused .i-pause { display: none; }
.video-toggle.paused .i-play { display: block; }

/* ---------- Pasy grup: od brzegu w głąb ---------- */
.groups-intro { padding-block: var(--space-7) var(--space-6); }
.groups-intro h2, .section-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; max-width: 18ch; }
.stratum { --bg: var(--white); --fg: var(--ink); --muted: var(--ink-muted); --accent: var(--fg); --pad: 56px; position: relative; display: block; background: var(--bg); color: var(--fg); text-decoration: none; }
.stratum .wave-edge { fill: var(--bg); }
.stratum .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4) var(--space-6); align-items: center; padding-block: var(--pad); }
.stratum .age { font-size: clamp(60px, 9vw, 132px); line-height: .82; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; color: var(--accent); font-variant-numeric: lining-nums; transition: transform .45s var(--ease-out); }
.stratum .age small { display: block; font-size: 18px; line-height: 22px; letter-spacing: 0; margin-top: var(--space-3); color: var(--muted); }
.stratum h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; }
.stratum p { margin-top: var(--space-2); color: var(--muted); max-width: 46ch; }
.stratum .when { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stratum .when span { font-weight: 700; font-size: 16px; line-height: 18px; padding: 7px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.18); }
.stratum { cursor: pointer; }
.stratum .go { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-weight: 700; font-size: 17px; line-height: 20px; padding: 12px 22px; border-radius: var(--radius-pill); border: 2px solid currentColor; transition: background .2s, color .2s; }
.stratum .go::after { content: ""; position: absolute; inset: 0; }
.stratum:hover .age { transform: translateX(10px); }
.stratum:hover .go { background: var(--fg); color: var(--bg); }
.stratum .go:focus-visible { outline: none; }
.stratum .go:focus-visible::after { outline: 3px solid var(--fg); outline-offset: -8px; }
.stratum.przyplyn { --bg: var(--greyblue); --fg: var(--navy); --muted: #1f3546; --pad: 48px; }
.stratum.przyplyn .when span, .stratum.latarnia .when span { background: rgba(0,38,66,.1); }
.stratum.wyplyn .when span { background: rgba(0,38,66,.28); }
.stratum.wyplyn   { --bg: var(--blue); --fg: var(--white); --muted: var(--lavender); --pad: 56px; }
.stratum.latarnia { --bg: var(--yellow); --fg: var(--navy); --muted: #4a3410; --pad: 64px; }
.stratum.jonasz   { --bg: var(--red); --fg: var(--white); --muted: var(--peach); --accent: var(--yellow); --pad: 72px; }
.stratum.mlodzi   { --bg: var(--navy); --fg: var(--white); --muted: var(--on-dark-muted); --accent: var(--yellow); --pad: 80px; }

/* ---------- Dla pełnoletnich: Szkoły ewangelizacji + Domostwo ---------- */
.deep { background: var(--teal); color: var(--on-dark); position: relative; }
.deep .wave-edge { fill: var(--teal); }
.adults .wrap { padding-block: var(--space-7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.adults article { display: flex; flex-direction: column; align-items: flex-start; }
.adults h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; color: var(--yellow); }
.adults p { margin-top: var(--space-3); color: var(--cream-2); max-width: 46ch; }
.adults .btn { margin-top: var(--space-5); }
.call { margin-top: var(--space-5); display: grid; gap: var(--space-1); }
.call span { color: var(--on-dark-muted); font-size: 16px; }
.call a { color: var(--white); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.call a .icon { color: var(--yellow); }
.call a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- Najbliższe wydarzenia ---------- */
.events-teaser { background: var(--cream); padding-block: var(--space-7); }
.events-teaser .head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }

/* ---------- Stopka ---------- */

/* ---------- Podstrony grup ---------- */
.group-page { --accent: var(--yellow); --accent-fg: var(--navy); --accent-muted: #4a3410; --mark: var(--orange); }
.group-page.przyplyn { --accent: var(--greyblue); --accent-fg: var(--navy); --accent-muted: #1f3546; --mark: var(--navy); }
.group-page.wyplyn { --accent: var(--blue); --accent-fg: var(--white); --accent-muted: var(--lavender); --mark: var(--blue); }
.group-page.jonasz { --accent: var(--red); --accent-fg: var(--white); --accent-muted: var(--peach); --mark: var(--red); }
.group-page.mlodzi { --accent: var(--navy); --accent-fg: var(--white); --accent-muted: var(--on-dark-muted); --mark: var(--navy); }
.banner { background: var(--navy); }
.banner picture, .banner img { width: 100%; }
.banner img { height: auto; object-fit: cover; object-position: 50% 45%; }
.group-page:not(.jonasz) .banner img { aspect-ratio: 21 / 9; }
.group-page.jonasz .banner img { object-fit: contain; }
.group-page.wyplyn .banner img { aspect-ratio: 16 / 9; max-height: 78svh; object-position: 50% 62%; }
.group-page.latarnia .banner img { aspect-ratio: 16 / 9; max-height: 78svh; object-position: 50% 85%; }
.title-band { background: var(--accent); color: var(--accent-fg); position: relative; }
.title-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: end; padding-block: var(--space-6); }
.group-page.no-banner .title-band .wrap { padding-block: var(--space-7) var(--space-6); }
.title-band h1 { overflow-wrap: anywhere; font-size: clamp(48px, 10vw, 128px); line-height: .88; letter-spacing: -.04em; font-weight: 800; }
.group-page.jonasz .title-band h1, .group-page.mlodzi .title-band h1 { color: var(--yellow); }
.title-band .meta { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 19px; font-weight: 700; color: var(--accent-muted); }
.title-band .meta strong { color: var(--accent-fg); }
.title-band .btn { margin-top: var(--space-5); }
.logo-plate { background: var(--white); border-radius: var(--radius-lg); padding: 18px; width: clamp(120px, 16vw, 188px); }
.logo-plate img { width: 100%; height: auto; }

.intro { padding-block: var(--space-7) var(--space-6); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5) var(--space-6); }
.intro .lead { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 700; }
.intro .lead::after { content: ""; display: block; width: 88px; height: 12px; margin-top: var(--space-4); background: no-repeat center / 88px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 12'%3E%3Cpath d='M2 7c7-6 14-6 21 0s14 6 21 0 14-6 21 0 14 6 21 0' fill='none' stroke='%23ffb62f' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.intro .body + .body { margin-top: var(--space-3); }
.intro .body { font-size: 20px; line-height: 32px; max-width: 60ch; }

.notice { padding-bottom: var(--space-6); }
.notice .box { background: var(--cream); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3) var(--space-6); }
.notice h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.notice p { max-width: 60ch; }

.highlights { background: var(--cream); padding-block: var(--space-7); position: relative; }
.highlights .wave-edge { fill: var(--cream); }
.highlights h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-bottom: var(--space-5); }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.highlights li { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3); align-items: start; font-size: 21px; line-height: 30px; font-weight: 600; }
.highlights li svg { width: 34px; height: 12px; margin-top: 9px; }
.highlights li svg path { fill: none; stroke: var(--mark); stroke-width: 3.5; stroke-linecap: round; }

.meetings { padding-block: var(--space-7); }
.meetings h2, .details h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; margin-bottom: var(--space-5); }
.meeting { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3) var(--space-6); padding-block: var(--space-5); border-top: 2px solid var(--navy); align-items: baseline; }
.meeting:last-of-type { border-bottom: 2px solid var(--navy); }
.meeting .when { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.meeting .day { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; }
.meeting .time { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; background: var(--accent); color: var(--accent-fg); padding: 4px 14px; border-radius: var(--radius-sm); }
.group-page.latarnia .meeting .time { background: var(--yellow); }
.meeting p { max-width: 58ch; }
.extra { margin-top: var(--space-5); color: var(--ink-muted); max-width: 64ch; }

.details { background: var(--cream); padding-block: var(--space-7); }
.details .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.details .wrap.single { grid-template-columns: minmax(0, 560px); }
.details address { font-style: normal; font-size: 20px; line-height: 32px; max-width: 40ch; font-weight: 600; }
.details .travel { margin-top: var(--space-3); color: var(--ink-muted); max-width: 46ch; }
.details .map { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-weight: 700; color: var(--navy); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-radius: var(--radius-pill); background: var(--white); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 18px; border: 2px solid transparent; transition: border-color .2s, transform .25s var(--ease-out); overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--navy); transform: translateX(4px); }
.contact-list a.primary { background: var(--yellow); }
.contact-list .icon { width: 22px; height: 22px; }

.motto { background: var(--navy); color: var(--on-dark); position: relative; }
.motto .wave-edge { fill: var(--navy); }
.motto .wrap { padding-block: var(--space-7) var(--space-6); }
.motto p { font-size: clamp(42px, 7vw, 104px); line-height: .95; font-weight: 800; letter-spacing: -.04em; color: var(--yellow); text-wrap: balance; max-width: 16ch; }
.others { margin-top: var(--space-6); }
.others h2 { font-size: 20px; line-height: 24px; color: var(--on-dark-muted); font-weight: 600; margin-bottom: var(--space-3); }
.others ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.others a { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 700; font-size: 17px; padding: 11px 18px; border-radius: var(--radius-pill); transition: transform .25s var(--ease-out); }
.others a:hover { transform: translateY(-2px); }
.others .przyplyn { background: var(--greyblue); color: var(--navy); }
.others .wyplyn { background: var(--blue); color: var(--white); }
.others .latarnia { background: var(--yellow); color: var(--navy); }
.others .jonasz { background: var(--red); color: var(--white); }
.others .mlodzi { background: var(--white); color: var(--navy); }
.others .wydarzenia { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }

/* ---------- Wydarzenia ---------- */
.group-events { padding-block: var(--space-7); }
.group-events.tone-cream { background: var(--cream); }
.details.tone-white { background: var(--white); }
.details.tone-white .contact-list a { background: var(--cream); }
.details.tone-white .contact-list a.primary { background: var(--yellow); }
.group-events .head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.group-events h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.tags { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 14px; line-height: 16px; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-pill); }
.tags .przyplyn { background: var(--greyblue); color: var(--navy); }
.tags .wyplyn { background: var(--blue); color: var(--white); }
.tags .latarnia { background: var(--yellow); color: var(--navy); }
.tags .jonasz { background: var(--red); color: var(--white); }
.tags .mlodzi { background: var(--navy); color: var(--white); }
.page-head { background: var(--navy); color: var(--on-dark); }
.page-head .wrap { padding-block: var(--space-7) var(--space-6); }
.page-head h1 { overflow-wrap: anywhere; font-size: clamp(48px, 10vw, 128px); line-height: .88; letter-spacing: -.04em; font-weight: 800; }
.page-head p { margin-top: var(--space-4); font-size: 20px; line-height: 30px; color: var(--on-dark-muted); max-width: 52ch; }
.events { padding-block: var(--space-6) var(--space-7); }
.event { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3) var(--space-6); padding-block: var(--space-5); border-top: 2px solid var(--navy); }
.event:last-child { border-bottom: 2px solid var(--navy); }
.event .date { font-size: 20px; font-weight: 700; color: var(--blue); }
.event .date.soon { color: var(--ink-muted); }
.event h2, .event h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.event p { margin-top: var(--space-2); max-width: 60ch; }
.event .place { color: var(--ink-muted); font-size: 17px; margin-top: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.event-details { margin-top: var(--space-3); max-width: 62ch; }
.event-details summary {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 4px 4px 4px 0;
  font-weight: 700; font-size: 17px; line-height: 24px; color: var(--navy); cursor: pointer; list-style: none;
}
.event-details summary::-webkit-details-marker { display: none; }
.event-details summary:hover span:first-child { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.event-details .chev { width: 1.3em; height: 1.3em; stroke-width: 2.25; transition: transform .25s var(--ease-out); }
.event-details[open] .chev { transform: rotate(180deg); }
.event-text { margin-top: var(--space-2); padding-left: var(--space-3); border-left: 4px solid var(--yellow); }
.event-text p + p { margin-top: var(--space-3); }
.event-text p { margin-top: 0; font-size: 18px; line-height: 28px; }
.event .signup {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none;
  transition: transform .25s var(--ease-out), background .2s;
}
.event .signup:hover { background: var(--teal); transform: translateY(-2px); }
.empty { padding-block: var(--space-5); font-size: 20px; color: var(--ink-muted); }

.notfound .wrap { padding-block: var(--space-7); }
.notfound h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; }
.notfound p { margin-top: var(--space-4); font-size: 20px; line-height: 30px; }

/* ---------- Tablet i telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; line-height: 27px; }
  .hero { min-height: 86svh; }
  .brand-link img { height: 38px; }
  .brand-link span { display: none; }
  .back-link { font-size: 14px; padding: 9px 14px; }
  .home-link { padding-inline: 6px; }
  .stratum .wrap, .intro .wrap, .meeting, .event, .adults .wrap, .details .wrap, .notice .box, .highlights ul { grid-template-columns: 1fr; }
  .stratum { --pad: 44px !important; }
  .stratum .wrap { gap: var(--space-3); }
  .title-band .wrap { grid-template-columns: 1fr; }
  .logo-plate { width: 112px; padding: 12px; border-radius: var(--radius-md); order: -1; }
  .notice .box { padding: var(--space-5) var(--space-4); }
  .group-page:not(.jonasz) .banner img { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .home-link .long { display: none; }
  .home-link .short { display: inline; }
  .back-link { font-size: 13px; padding-inline: 12px; }
}

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

/* Dekoracja fal w pasie tytułu podstron bez zdjęcia */
.title-band .waves { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(44vw, 560px); height: auto; pointer-events: none; }
.title-band .waves path { fill: none; stroke-linecap: round; stroke-width: 7; }
.title-band .waves .w1 { stroke: var(--navy); opacity: .9; }
.title-band .waves .w2 { stroke: var(--white); opacity: .55; }
.title-band .waves .w3 { stroke: var(--yellow); }
.title-band .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .title-band .waves { display: none; } }


/* ---------- Najbliższe spotkanie ---------- */
.stratum .next { margin-top: var(--space-3); font-size: 17px; line-height: 24px; font-weight: 700; color: var(--fg); }
.stratum .next[hidden] { display: block; visibility: hidden; }
.stratum .next .next-label { font-weight: 400; color: var(--muted); }
.next-meeting {
  display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px 8px; align-items: baseline;
  margin-top: var(--space-4); padding: 10px 18px 9px; border-radius: var(--radius-pill);
  background: var(--accent-fg); color: var(--accent); font-size: 17px; line-height: 24px; font-weight: 700;
}
.next-meeting[hidden] { display: flex; visibility: hidden; }
.next-meeting .next-label { font-weight: 400; }

/* ---------- Kalendarz przy wydarzeniach ---------- */
.event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--space-3); }
.cal-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 11px 18px; border-radius: var(--radius-pill);
  background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none;
  transition: transform .25s var(--ease-out), background .2s;
}
.cal-btn:hover { background: var(--cream-2); transform: translateY(-2px); }
.events-teaser .cal-btn:hover { background: var(--white); }

/* ---------- Widoczny fokus na ciemnych tłach ---------- */
.hero :focus-visible, .deep :focus-visible, .motto :focus-visible, .site-footer :focus-visible, .page-head :focus-visible { outline-color: var(--white); }
.title-band :focus-visible { outline-color: var(--accent-fg); }
.video-toggle:focus-visible { outline-color: var(--white); }

@media (max-width: 760px) {
}

/* Młodzi Emmanuela: granatowy pas tytułowy, fale w odcieniach z palety */
.group-page.mlodzi .title-band .waves .w1 { stroke: var(--greyblue); }
.group-page.mlodzi .title-band .waves .w2 { stroke: var(--white); }

/* Młodzi Emmanuela: długi tytuł nie nachodzi na fale, trzy filary w jednym rzędzie, odstęp przed wydarzeniami bez sekcji spotkań */
.group-page.mlodzi .title-band h1 { font-size: clamp(44px, 8vw, 104px); max-width: 6.3em; }
.group-page.mlodzi .title-band .waves { width: min(30vw, 380px); }
.highlights ul.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .highlights ul.three { grid-template-columns: 1fr; } }

/* ---------- Okienko wyboru kalendarza ---------- */
.event-actions { position: relative; }
.cal-menu { position: static; }
.cal-menu summary { list-style: none; cursor: pointer; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu .cal-chev { width: 1.1em; height: 1.1em; stroke-width: 2.25; transition: transform .25s var(--ease-out); }
.cal-menu[open] .cal-chev { transform: rotate(180deg); }
.cal-menu[open] summary.cal-btn { background: var(--cream-2); }
.cal-pop {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(320px, 100%);
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-md); padding: var(--space-3);
  box-shadow: 0 14px 34px rgba(0, 38, 66, .2);
}
.cal-pop-title { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-muted); margin: 0 0 var(--space-2) var(--space-2); }
.cal-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cal-pop a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--navy); font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none;
}
.cal-pop a:hover { background: var(--cream); }
.cal-pop a .icon { width: 22px; height: 22px; flex: none; }
.cal-pop a small { display: block; font-weight: 400; font-size: 14px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Stopka: wiersz linków, cienka linia, pasek z logo i e-mailem ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: 16px; line-height: 24px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-4); padding-block: var(--space-6) var(--space-5);
}
.site-footer .foot-links {
  flex: 0 0 100%; list-style: none; margin: 0 0 var(--space-2); padding: 0 0 var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
}
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .plate { background: var(--white); border-radius: 12px; padding: 8px 14px; display: inline-flex; }
.site-footer .plate img { height: 34px; width: auto; }
.site-footer.compact .wrap { padding-top: 0; }
.site-footer.compact .wrap::before { content: ""; flex: 0 0 100%; border-top: 1px solid rgba(255, 255, 255, .14); margin-bottom: var(--space-2); }

/* Sekcja z przyciskami "Inne grupy" na podstronach grup: mniejsze odstępy, zwłaszcza gdy grupa nie ma hasła */
.motto .wrap { padding-bottom: var(--space-5); }
.motto.no-text .wrap { padding-top: var(--space-6); }
.motto.no-text .others { margin-top: 0; }

/* Animacja banera: żółta fala rysuje się raz, tekst i przycisk delikatnie wjeżdżają (bez bibliotek, wyłączone przy ograniczonym ruchu) */
@media (prefers-reduced-motion: no-preference) {
  .hero .wave path { stroke-dasharray: 1; animation: wave-draw 1.8s cubic-bezier(.16, 1, .3, 1) .25s both; }
  .hero-content p { animation: rise-in .9s cubic-bezier(.16, 1, .3, 1) .5s both; }
  .hero-content .btn { animation: rise-in .9s cubic-bezier(.16, 1, .3, 1) .62s both; }
}
@keyframes wave-draw { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
