/* Lecznica 24h – strona główna [l24_strona_glowna].
   Dzień: białe tło. Noc (html.l24-night): granat. Kolory z tokenów w l24-front.css. */

html { background: #ffffff; }
html.l24-night { background: #0a1e3a; }
body.l24-canvas-body { margin: 0; background: transparent; }
html.l24-night body.l24-canvas-body { color: #f2f6fa; }

.l24-home {
	background: var(--l24-bg);
	color: var(--l24-text);
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s ease, color .25s ease;
}
.l24-home a { color: inherit; }
.l24 strong, .l24 b { font-weight: 700; }
.l24-home h1, .l24-home h2, .l24-home h3 { font-family: inherit; color: var(--l24-text); letter-spacing: -0.01em; }
.l24-home h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 14px; }
.l24-home h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }
.l24-home p { margin: 0 0 10px; }
.l24-h-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- nagłówek --- */
.l24-h-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--l24-bg) 92%, transparent); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--l24-line); }
.admin-bar .l24-h-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .l24-h-header { top: 46px; } }
.l24-h-header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.l24-h-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--l24-text) !important; flex: 0 1 auto; min-width: 0; }
.l24-h-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--l24-card-2); display: grid; place-items: center; color: var(--l24-accent-ink); flex: 0 0 auto; }
.l24-h-mark .l24-ico { width: 24px; height: 24px; }
.l24-h-name { font-weight: 700; font-size: 1rem; line-height: 1.15; max-width: 19ch; }
.l24-h-logo { height: 44px; width: auto; display: block; }
.l24-h-nav { margin-left: auto; }
.l24-h-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.l24-h-nav a { text-decoration: none !important; font-size: .95rem; color: var(--l24-muted) !important; font-weight: 500; }
.l24-h-nav a:hover { color: var(--l24-text) !important; }
.l24-h-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.l24-h-tel { display: none; align-items: center; gap: 6px; text-decoration: none !important; font-weight: 700; color: var(--l24-call) !important; }
.l24-h-tel .l24-ico { width: 20px; height: 20px; }
.l24-h-mode { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--l24-line); background: var(--l24-card); color: var(--l24-text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.l24-h-mode .l24-ico { width: 18px; height: 18px; color: var(--l24-accent-ink); }
@media (max-width: 960px) {
	.l24-h-nav { display: none; }
	.l24-h-tools { margin-left: auto; }
	.l24-h-tel { display: inline-flex; }
}
@media (max-width: 560px) { .l24-h-tel span { display: none; } .l24-h-tel { width: 40px; height: 40px; border-radius: 50%; justify-content: center; background: var(--l24-call); color: #fff !important; } }
@media (max-width: 560px) {
	.l24-h-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.l24-h-mode { padding: 9px; }
	.l24-h-name { font-size: .92rem; }
}

/* --- hero: zdjęcie na całą szerokość w obu trybach --- */
.l24-only-night { display: none !important; }
.l24-night .l24-only-night { display: revert !important; }
.l24-night .l24-only-day { display: none !important; }
.l24-night br.l24-only-night { display: inline !important; }

.l24-h-hero {
	/* dzień: rozjaśnienie do bieli pod ciemny tekst */
	--l24-shade: 255, 255, 255;
	--l24-hero-img: var(--l24-hero-day);
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: min(600px, 80vh);
	background: #eef3f9 var(--l24-hero-img) 70% 35% / cover no-repeat;
}
.l24-h-hero:not(.has-day-img) { background: radial-gradient(120% 100% at 85% 10%, #dbe9f7 0%, #eef3f9 55%, #ffffff 100%); }
.l24-night .l24-h-hero {
	--l24-shade: 8, 22, 44;
	--l24-hero-img: var(--l24-hero-night);
	background-color: #0a1e3a;
}
.l24-night .l24-h-hero:not(.has-night-img) { background: radial-gradient(120% 90% at 85% 15%, #1d4a7a 0%, #0f2747 45%, #0a1e3a 100%); }
.l24-h-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(var(--l24-shade), .97) 0%, rgba(var(--l24-shade), .85) 30%, rgba(var(--l24-shade), .3) 58%, rgba(var(--l24-shade), 0) 75%),
		linear-gradient(0deg, rgba(var(--l24-shade), .92) 0%, rgba(var(--l24-shade), .35) 30%, rgba(var(--l24-shade), 0) 50%);
}
.l24-night .l24-h-hero::before {
	background:
		linear-gradient(90deg, rgba(var(--l24-shade), .96) 0%, rgba(var(--l24-shade), .82) 30%, rgba(var(--l24-shade), .25) 58%, rgba(var(--l24-shade), 0) 75%),
		linear-gradient(0deg, rgba(var(--l24-shade), .92) 0%, rgba(var(--l24-shade), .35) 30%, rgba(var(--l24-shade), 0) 50%),
		linear-gradient(180deg, rgba(var(--l24-shade), .55) 0%, rgba(var(--l24-shade), 0) 18%);
}

.l24-h-hero-in { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 8px; flex: 1 0 auto; }
.l24-h-hero-text { max-width: 560px; }
.l24-h-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 800; margin: 0 0 16px; color: var(--l24-text); }
.l24-h-hero h1 span { color: var(--l24-accent-ink); }
.l24-h-lead { font-size: 1.32rem; color: var(--l24-text); max-width: 24ch; }
.l24-h-only { font-size: .95rem; color: var(--l24-muted); }
.l24-night .l24-h-hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.l24-night .l24-h-hero h1 span { color: #6fd0ff; }
.l24-night .l24-h-lead { color: #eef4fb; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.l24-night .l24-h-only { display: none; }

.l24-h-script {
	position: absolute; z-index: 2; top: 44px; right: 24px; margin: 0;
	font-family: "L24 Caveat", "Segoe Script", cursive; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95;
	color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); transform: rotate(-12deg); text-align: center;
}
.l24-h-script .l24-ico { width: .7em; height: .7em; vertical-align: -0.05em; fill: none; stroke: #fff; stroke-width: 2.2; }
.l24-h-hero:not(.has-day-img) .l24-h-script { color: var(--l24-accent-ink); text-shadow: none; }
.l24-h-hero:not(.has-day-img) .l24-h-script .l24-ico { stroke: var(--l24-accent-ink); }
.l24-night .l24-h-hero .l24-h-script { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.l24-night .l24-h-hero .l24-h-script .l24-ico { stroke: #fff; }

/* trzy główne przyciski na dole zdjęcia */
.l24-h-actions { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 32px; }
.l24-h-act {
	position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px;
	min-height: 112px; padding: 20px 52px 20px 24px; border-radius: 18px; text-decoration: none !important;
	color: #fff !important; box-shadow: 0 10px 30px rgba(13, 31, 53, .18); transition: transform .12s ease, filter .12s ease;
}
.l24-night .l24-h-act { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.l24-h-act:hover { transform: translateY(-1px); filter: brightness(1.05); }
.l24-h-act:focus-visible { outline: 3px solid var(--l24-focus); outline-offset: 3px; }
.l24-h-act > .l24-ico:first-child { width: 40px; height: 40px; }
.l24-h-act > .l24-ico:last-child { position: absolute; right: 20px; bottom: 18px; width: 20px; height: 20px; opacity: .9; }
.l24-h-act strong { display: block; font-size: 1.32rem; line-height: 1.15; font-weight: 700; }
.l24-h-act small { display: block; font-size: .95rem; opacity: .95; margin-top: 6px; }
.l24-h-act-call { background: linear-gradient(135deg, #f0494b 0%, #dc2f32 100%); }
.l24-h-act-go { background: linear-gradient(135deg, #2f8bf8 0%, #1668e3 100%); }
.l24-h-act-triage {
	color: var(--l24-text) !important;
	background: rgba(255, 255, 255, .72); border: 1px solid rgba(13, 31, 53, .12);
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.l24-h-act-triage > .l24-ico { color: var(--l24-accent-ink); }
.l24-night .l24-h-act-triage { background: rgba(120, 140, 170, .22); border-color: rgba(255, 255, 255, .18); color: #fff !important; }
.l24-night .l24-h-act-triage > .l24-ico { color: #fff; }

.l24-h-hero-band { display: none; }

/* telefon: zdjęcie jako pełnoszeroki pas u góry, tytuł nachodzi na jego rozjaśniony dół */
@media (max-width: 860px) {
	.l24-h-hero, .l24-night .l24-h-hero { --l24-band: min(64vw, 340px); min-height: 0; background: var(--l24-bg) !important; }
	.l24-h-hero-band {
		display: block; position: absolute; left: 0; right: 0; top: 0; height: var(--l24-band); z-index: 0;
		background: #dfe8f2 var(--l24-hero-img) 70% 35% / cover no-repeat;
	}
	.l24-night .l24-h-hero-band { background-color: #0f2747; }
	.l24-h-hero:not(.has-day-img) .l24-h-hero-band { background: radial-gradient(120% 100% at 85% 10%, #dbe9f7 0%, #eef3f9 60%, #ffffff 100%); }
	.l24-night .l24-h-hero:not(.has-night-img) .l24-h-hero-band { background: radial-gradient(120% 90% at 85% 15%, #1d4a7a 0%, #0f2747 55%, #0a1e3a 100%); }
	.l24-h-hero::before, .l24-night .l24-h-hero::before {
		z-index: 1; bottom: auto; height: var(--l24-band);
		background:
			linear-gradient(180deg, rgba(var(--l24-shade), 0) 0%, rgba(var(--l24-shade), 0) 38%, rgba(var(--l24-shade), .82) 72%, rgb(var(--l24-shade)) 100%),
			linear-gradient(90deg, rgba(var(--l24-shade), .55) 0%, rgba(var(--l24-shade), 0) 55%);
	}
	.l24-night .l24-h-hero::before {
		background:
			linear-gradient(180deg, rgba(10, 30, 58, .25) 0%, rgba(10, 30, 58, 0) 30%, rgba(10, 30, 58, .85) 72%, #0a1e3a 100%),
			linear-gradient(90deg, rgba(10, 30, 58, .55) 0%, rgba(10, 30, 58, 0) 55%);
	}
	.l24-h-hero-in { position: relative; z-index: 2; padding-top: calc(var(--l24-band) - 92px); padding-bottom: 0; }
	.l24-h-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: 8px; }
	.l24-h-lead { font-size: 1.05rem; max-width: none; margin-bottom: 0; }
	.l24-h-only { display: none; }
	.l24-h-script { top: 18px; right: 18px; font-size: clamp(1.4rem, 6.4vw, 1.9rem); transform: rotate(-10deg); }
	.l24-h-actions { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; padding-bottom: 20px; }
	.l24-h-act { min-height: 80px; padding: 16px 48px 16px 18px; gap: 14px; }
	.l24-h-act strong { font-size: 1.18rem; }
	.l24-h-act > .l24-ico:first-child { width: 32px; height: 32px; }
	.l24-h-act > .l24-ico:last-child { top: 50%; bottom: auto; transform: translateY(-50%); }
	.l24-h-act-triage { background: var(--l24-card); backdrop-filter: none; -webkit-backdrop-filter: none; border: 2px solid var(--l24-accent-line); }
	.l24-night .l24-h-act-triage { background: rgba(120, 140, 170, .18); border: 1px solid rgba(255, 255, 255, .2); }
}

/* przycisk trybu: niezależny od stylów przycisków motywu */
.l24-home button.l24-h-mode,
.l24-home button.l24-h-mode:hover,
.l24-home button.l24-h-mode:focus {
	background: var(--l24-card) !important; color: var(--l24-text) !important; border: 1px solid var(--l24-line) !important;
	box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important; font-weight: 500 !important;
	border-radius: 999px !important; min-height: 0 !important; line-height: 1.2 !important;
}
.l24-home button.l24-h-mode:focus-visible { outline: 3px solid var(--l24-focus) !important; outline-offset: 2px; }
@media (max-width: 560px) { .l24-home button.l24-h-mode { width: 42px; height: 42px; padding: 0 !important; justify-content: center; } }

/* podpowiedź dla administratora */
.l24-h-admin { background: #fff4d6; color: #5c3b00; border-bottom: 1px solid #f0d58a; padding: 10px 20px; font-size: .92rem; text-align: center; }
.l24-h-admin a { color: #5c3b00 !important; font-weight: 700; }

/* --- karty --- */
.l24-h-card { background: var(--l24-card); border: 1px solid var(--l24-line); border-radius: 18px; padding: 22px; box-shadow: var(--l24-shadow); }
.l24-h-duty { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; padding-top: 16px; }
.l24-h-doc { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main photo" "side side"; gap: 16px 18px; align-items: center; }
.l24-h-doc-main { grid-area: main; }
.l24-h-doc-main h2 { margin-bottom: 8px; }
.l24-h-doc-name { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 4px; }
.l24-h-live { width: 10px; height: 10px; border-radius: 50%; background: var(--l24-accent-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--l24-accent-line) 25%, transparent); flex: 0 0 auto; }
.l24-h-doc-photo { grid-area: photo; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--l24-bg); box-shadow: var(--l24-shadow); }
.l24-h-doc-photo.is-empty { display: grid; place-items: center; background: var(--l24-card-2); color: var(--l24-accent-ink); }
.l24-h-doc-photo.is-empty .l24-ico { width: 40px; height: 40px; }
.l24-h-doc-side { grid-area: side; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-top: 14px; border-top: 1px solid var(--l24-line); }
.l24-h-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--l24-card-2); color: var(--l24-accent-ink); font-weight: 700; font-size: .95rem; }
.l24-h-chip .l24-ico { width: 18px; height: 18px; }
.l24-h-addr { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 1rem; }
.l24-h-addr .l24-ico { width: 22px; height: 22px; color: var(--l24-accent-ink); margin-top: 1px; }
.l24-h-addr a { color: var(--l24-accent-ink) !important; font-weight: 600; text-decoration: none !important; }
.l24-h-addr-big { font-size: 1.12rem; margin-bottom: 16px; }

.l24-h-status h2 { margin-bottom: 12px; }
.l24-h-status-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.l24-h-status-row > .l24-ico { width: 26px; height: 26px; color: var(--l24-accent-ink); flex: 0 0 auto; margin-top: 2px; }
.l24-h-status-row strong { display: block; font-size: 1.05rem; color: var(--l24-accent-ink); }
.l24-h-status-row .l24-muted { font-size: .88rem; }
.l24-h-rule { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--l24-line); font-size: 1rem; font-weight: 600; }
.l24-h-rule .l24-ico { width: 20px; height: 20px; color: var(--l24-accent-ink); }
@media (max-width: 860px) {
	.l24-h-duty { grid-template-columns: 1fr; }
	.l24-h-doc-photo { width: 64px; height: 64px; }
}

/* --- trzy kafle --- */
.l24-h-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; }
.l24-h-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid var(--l24-line); background: var(--l24-card); text-decoration: none !important; color: var(--l24-text) !important; box-shadow: var(--l24-shadow); transition: transform .12s ease; }
a.l24-h-tile:hover { transform: translateY(-1px); }
.l24-h-tile-media { display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--l24-card-2); color: var(--l24-accent-ink); overflow: hidden; }
.l24-h-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l24-h-tile-media .l24-ico { width: 52px; height: 52px; }
.l24-h-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 56px 20px 20px; }
.l24-h-tile-body strong { font-size: 1.12rem; font-weight: 700; }
.l24-h-list { display: flex; flex-direction: column; gap: 6px; color: var(--l24-muted); font-size: .95rem; }
.l24-h-list span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--l24-accent-line); margin-right: 10px; vertical-align: middle; }
.l24-h-tile-go { position: absolute; right: 16px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--l24-card-2); color: var(--l24-text); }
.l24-h-tile-go .l24-ico { width: 18px; height: 18px; }
.l24-h-tile.is-soon { opacity: .9; }
@media (max-width: 960px) { .l24-h-tiles { grid-template-columns: 1fr; } .l24-h-tile { flex-direction: row; } .l24-h-tile-media { aspect-ratio: auto; width: 34%; min-height: 120px; flex: 0 0 auto; } }
@media (max-width: 480px) { .l24-h-tile-media { width: 30%; } .l24-h-tile-body { padding: 14px 48px 14px 14px; } .l24-h-tile-media .l24-ico { width: 38px; height: 38px; } }

/* --- sekcje --- */
.l24-h-section { padding-top: 48px; scroll-margin-top: 84px; }
.l24-h-section > h2 { font-size: 1.6rem; margin-bottom: 18px; }
.l24-h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.l24-h-split .l24-btn { max-width: 340px; }
.l24-h-photo { margin: 0; border-radius: 18px; overflow: hidden; position: relative; min-height: 220px; background: var(--l24-card-2); }
.l24-h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.l24-h-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(10,30,58,.75); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.l24-h-bullets { margin: 0; padding-left: 1.1em; }
.l24-h-bullets li { margin-bottom: 8px; }
.l24-h-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.l24-h-person { display: flex; gap: 14px; align-items: center; padding: 16px; }
.l24-h-person img, .l24-h-person .l24-h-doc-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 0; box-shadow: none; }
.l24-h-person strong { display: block; font-weight: 700; }
@media (max-width: 860px) { .l24-h-split { grid-template-columns: 1fr; } .l24-h-section { padding-top: 36px; } }

/* --- stopka --- */
.l24-h-footer { margin-top: 56px; padding: 28px 0 32px; border-top: 1px solid var(--l24-line); background: var(--l24-card); }
.l24-h-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.l24-h-footer p { margin: 4px 0 0; }
.l24-h-foot-tel { font-size: 1.3rem; font-weight: 800; color: var(--l24-call) !important; text-decoration: none !important; }
@media (max-width: 782px) { .l24-h-footer { padding-bottom: 96px; } }

/* --- dolny pasek na telefonie wewnątrz strony głównej --- */
.l24-home .l24-bar { font-size: 1rem; }

/* --- kilku lekarzy na zmianie --- */
.l24-h-team-now { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.l24-h-team-now li { display: flex; gap: 12px; align-items: center; }
.l24-h-team-now img, .l24-h-mini { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.l24-h-mini.is-empty { display: grid; place-items: center; background: var(--l24-card-2); color: var(--l24-accent-ink); }
.l24-h-mini .l24-ico { width: 22px; height: 22px; }
.l24-h-team-now strong { display: block; font-size: 1.02rem; }
.l24-h-team-now .l24-muted { font-size: .88rem; }
.l24-h-count { display: grid; place-items: center; background: var(--l24-card-2); color: var(--l24-accent-ink); font-size: 2rem; font-weight: 800; }
.l24-h-doc.is-team { align-items: start; }
@media (max-width: 860px) { .l24-h-count { display: none; } .l24-h-doc.is-team { grid-template-columns: 1fr; } }

/* --- podstrony (szablon „pełna strona”): triaż, Jadę do was, panel --- */
.l24-site { min-height: 100vh; display: flex; flex-direction: column; }
.l24-site > .l24-page, .l24-site > .l24-home { flex: 1 0 auto; }
.l24-page-head {
	padding: 40px 0 28px;
	background: linear-gradient(180deg, var(--l24-card) 0%, var(--l24-bg) 100%);
	border-bottom: 1px solid var(--l24-line);
}
.l24-night .l24-page-head { background: radial-gradient(120% 140% at 85% 0%, #17406b 0%, #0f2747 45%, #0a1e3a 100%); }
.l24-page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 800; margin: 6px 0 10px; color: var(--l24-text); }
.l24-page-lead { font-size: 1.12rem; color: var(--l24-muted); max-width: 60ch; margin: 0; }
.l24-page-back { display: inline-block; font-size: .95rem; font-weight: 600; color: var(--l24-accent-ink) !important; text-decoration: none !important; }
.l24-page-body { padding-top: 28px; padding-bottom: 8px; }
.l24-page-body.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.l24-page-content { min-width: 0; }
.l24-page-content > .l24 { max-width: 760px; }
.l24-page-content .l24-screen { padding: 22px; border-radius: 18px; background: var(--l24-bg); box-shadow: var(--l24-shadow); }
.l24-page-aside { display: grid; gap: 16px; position: sticky; top: 92px; }
.admin-bar .l24-page-aside { top: 124px; }
.l24-aside-card { background: var(--l24-card); border: 1px solid var(--l24-line); border-radius: 18px; padding: 20px; box-shadow: var(--l24-shadow); display: grid; gap: 10px; }
.l24-aside-card h2 { font-size: 1.15rem; margin: 0; }
.l24-aside-card p { margin: 0 0 4px; color: var(--l24-muted); font-size: .97rem; }
.l24-aside-urgent { background: color-mix(in srgb, var(--l24-call) 9%, var(--l24-card)); border-color: color-mix(in srgb, var(--l24-call) 30%, var(--l24-line)); }
.l24-night .l24-aside-urgent { background: color-mix(in srgb, var(--l24-call) 16%, var(--l24-card)); border-color: color-mix(in srgb, var(--l24-call) 40%, var(--l24-line)); }
.l24-page-aside .l24-btn { justify-content: flex-start; }
.l24-page-aside .l24-card { border-radius: 18px; padding: 20px; box-shadow: var(--l24-shadow); }
.l24-aside-note { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--l24-muted); margin: 0; }
.l24-aside-note .l24-ico { width: 1.2em; height: 1.2em; flex: 0 0 auto; color: var(--l24-accent-ink); }
.l24-is-sub .l24-h-footer { margin-top: 48px; }
@media (max-width: 960px) {
	.l24-page-body.has-aside { grid-template-columns: 1fr; }
	.l24-page-aside { position: static; }
	.l24-page-content > .l24 { max-width: none; }
}
@media (max-width: 860px) {
	.l24-page-head { padding: 22px 0 18px; }
	.l24-page-lead { font-size: 1rem; }
	.l24-page-body { padding-top: 16px; }
	.l24-page-content .l24-screen { padding: 16px; box-shadow: none; border: 1px solid var(--l24-line); }
	/* na telefonie w triażu i formularzu: telefon i nawigacja są już w treści i w dolnym pasku */
	.l24-kind-triaz .l24-aside-urgent, .l24-kind-jade .l24-aside-urgent, .l24-kind-pomoc .l24-aside-urgent, .l24-kind-wizyta .l24-aside-urgent { display: none; }
}

/* Na komputerze telefon jest w bocznej kolumnie – przycisk pod triażem nie musi się przyklejać. */
@media (min-width: 961px) {
	.l24-page-body.has-aside .l24-sticky { position: static; background: none; padding-top: 4px; }
}

/* --- menu na telefonie: przycisk z trzema kreskami + panel na całą wysokość --- */
.l24-home button.l24-h-burger { display: none; }
.l24-h-drawer { display: none; }
@media (max-width: 960px) {
	.l24-home button.l24-h-burger,
	.l24-home button.l24-h-burger:hover,
	.l24-home button.l24-h-burger:focus {
		display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
		width: 42px; height: 42px; padding: 0 !important; margin: 0; border-radius: 12px !important;
		background: var(--l24-card) !important; border: 1px solid var(--l24-line) !important; color: var(--l24-text) !important;
		box-shadow: none !important; cursor: pointer; min-height: 0 !important;
	}
	.l24-home button.l24-h-burger:focus-visible { outline: 3px solid var(--l24-focus) !important; outline-offset: 2px; }
	.l24-h-burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }

	.l24-h-drawer { display: block; position: fixed; inset: 0; z-index: 100000; visibility: hidden; transition: visibility 0s linear .3s; }
	.l24-h-drawer.is-open { visibility: visible; transition: none; }
	.l24-h-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 26, .55); opacity: 0; transition: opacity .3s; }
	.l24-h-drawer.is-open .l24-h-backdrop { opacity: var(--l24-drawer-fade, 1); }
	.l24-h-panel {
		position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 440px); height: 100%; height: 100dvh;
		display: flex; flex-direction: column; background: var(--l24-bg); color: var(--l24-text);
		box-shadow: -18px 0 40px rgba(4, 12, 26, .25); transform: translateX(100%);
		transition: transform .3s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; will-change: transform;
	}
	.l24-h-drawer.is-open .l24-h-panel { transform: translateX(0); }
	.admin-bar .l24-h-panel { top: 46px; height: auto; }

	.l24-h-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--l24-line); flex: 0 0 auto; }
	.l24-h-panel-title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
	.l24-home button.l24-h-close,
	.l24-home button.l24-h-close:hover,
	.l24-home button.l24-h-close:focus {
		position: relative; display: inline-block !important; width: 42px; height: 42px; padding: 0 !important; margin: 0; flex: 0 0 auto;
		border-radius: 12px !important; background: var(--l24-card) !important; border: 1px solid var(--l24-line) !important;
		color: var(--l24-text) !important; box-shadow: none !important; cursor: pointer; min-height: 0 !important;
	}
	.l24-home button.l24-h-close:focus-visible { outline: 3px solid var(--l24-focus) !important; outline-offset: 2px; }
	.l24-h-close i { position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
	.l24-h-close i + i { transform: rotate(-45deg); }

	.l24-h-panel-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
	.l24-h-panel-nav ul { list-style: none; margin: 0; padding: 0; }
	.l24-h-panel-nav li { border-bottom: 1px solid var(--l24-line); }
	.l24-h-panel-nav a {
		display: flex; align-items: center; justify-content: space-between; padding: 17px 2px;
		font-size: 1.12rem; font-weight: 600; color: var(--l24-text) !important; text-decoration: none !important;
	}
	.l24-h-panel-nav a::after { content: "›"; color: var(--l24-accent-ink); font-size: 1.5rem; line-height: 1; }
	.l24-h-panel-nav .current-menu-item > a { color: var(--l24-accent-ink) !important; }

	.l24-h-panel-alarm { display: grid; gap: 10px; margin: 22px 0 6px; }
	.l24-h-panel-label { margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l24-call); }
	.l24-h-panel-alarm .l24-btn { justify-content: flex-start; min-height: 64px; padding: 12px 16px; }
	.l24-h-panel-alarm .l24-ico { width: 24px; height: 24px; flex: 0 0 auto; }
	.l24 .l24-h-panel-navi, .l24 .l24-h-panel-navi:hover, .l24 .l24-h-panel-navi:focus { color: var(--l24-text) !important; border-color: var(--l24-line); background: var(--l24-card); }
	.l24-h-panel-navi .l24-ico { color: var(--l24-accent-ink); }

	.l24-home button.l24-h-panel-mode,
	.l24-home button.l24-h-panel-mode:hover,
	.l24-home button.l24-h-panel-mode:focus {
		display: inline-flex !important; align-items: center; gap: 8px; align-self: flex-start; margin-top: 16px; padding: 10px 16px !important;
		border-radius: 999px !important; background: var(--l24-card) !important; border: 1px solid var(--l24-line) !important;
		color: var(--l24-text) !important; font: inherit; font-size: .95rem !important; font-weight: 500 !important; box-shadow: none !important; cursor: pointer;
	}
	.l24-h-panel-mode .l24-ico { width: 18px; height: 18px; color: var(--l24-accent-ink); }
	.l24-h-swipe-hint { margin: auto 0 0; padding-top: 18px; text-align: center; font-size: .82rem; color: var(--l24-muted); }
	html.l24-menu-open, html.l24-menu-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.l24-h-panel, .l24-h-backdrop { transition: none !important; }
}

/* --- rezerwacja: przycisk w nagłówku, baner na stronie głównej, przycisk w panelu menu --- */
.l24-h-visit-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
	background: var(--l24-accent-line); color: #fff !important; text-decoration: none !important; white-space: nowrap; }
.l24-night .l24-h-visit-btn { color: #062033 !important; }
.l24-h-visit-btn .l24-ico { width: 17px; height: 17px; }
.l24-h-visit-btn:hover { filter: brightness(1.06); }
@media (max-width: 960px) { .l24-h-visit-btn { display: none; } }
.l24-h-visit { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 18px 22px; border-radius: 18px; text-decoration: none !important;
	color: var(--l24-text) !important; background: color-mix(in srgb, var(--l24-accent-line) 12%, var(--l24-card));
	border: 1px solid color-mix(in srgb, var(--l24-accent-line) 35%, var(--l24-line)); transition: transform .12s ease; }
.l24-h-visit:hover { transform: translateY(-2px); }
.l24-h-visit-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; background: var(--l24-accent-line); color: #fff; }
.l24-night .l24-h-visit-ico { color: #062033; }
.l24-h-visit-ico .l24-ico { width: 26px; height: 26px; }
.l24-h-visit-txt { display: grid; gap: 2px; flex: 1 1 auto; }
.l24-h-visit-txt strong { font-size: 1.1rem; }
.l24-h-visit-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--l24-accent-ink); white-space: nowrap; }
.l24-h-visit-cta svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .l24-h-visit { flex-wrap: wrap; padding: 16px; } .l24-h-visit-cta { width: 100%; } }
.l24-h-panel-visit { margin-top: 18px; }
.l24-h-panel-visit { justify-content: flex-start; min-height: 60px; padding: 12px 16px; }
.l24-h-panel-visit .l24-ico { width: 24px; height: 24px; flex: 0 0 auto; }
.l24-h-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1480px) {
	.l24-h-nav ul { gap: 16px; }
	.l24-h-nav a { font-size: .9rem; }
	.l24-home button.l24-h-mode { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
	.l24-h-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.l24-h-name { font-size: .92rem; }
}
@media (min-width: 961px) and (max-width: 1140px) { .l24-h-nav ul { gap: 12px; } .l24-h-nav a { font-size: .85rem; } .l24-h-visit-btn span { display: none; } .l24-h-visit-btn { padding: 10px; } }

/* --- nagłówek: więcej oddechu --- */
.l24-h-header .l24-h-wrap { max-width: 1320px; }
.l24-h-name { max-width: 22ch; font-size: .95rem; }
.l24-h-header-in { gap: 28px; }
.l24-h-tools { gap: 12px; }
/* przełącznik trybu na komputerze zawsze jako ikona (podpowiedź po najechaniu) */
@media (min-width: 961px) {
	.l24-home button.l24-h-mode, .l24-home button.l24-h-mode:hover, .l24-home button.l24-h-mode:focus { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
	.l24-h-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.l24-h-nav ul { gap: 26px; }
	.l24-h-nav a { font-size: .95rem; }
}
@media (min-width: 961px) and (max-width: 1360px) { .l24-h-nav ul { gap: 18px; } .l24-h-nav a { font-size: .9rem; } .l24-h-header-in { gap: 20px; } }
@media (min-width: 961px) and (max-width: 1140px) { .l24-h-nav ul { gap: 12px; } .l24-h-nav a { font-size: .85rem; } }

/* --- pasek „Pierwsza pomoc” (karty polecane, sezonowe) --- */
.l24-aidstrip { position: relative; margin-top: 16px; }
.l24-aidstrip-slide { position: relative; display: flex; align-items: center; gap: 22px; min-height: 132px; padding: 18px 24px; overflow: hidden;
	border-radius: 18px; border: 1px solid var(--l24-line); background-color: var(--l24-card); box-shadow: var(--l24-shadow);
	color: var(--l24-text) !important; text-decoration: none !important; --l24-strip-img: var(--l24-strip-day, none); }
.l24-night .l24-aidstrip-slide { --l24-strip-img: var(--l24-strip-night, none); }
.l24-aidstrip-slide[hidden] { display: none; }
.l24-aidstrip-slide.has-img::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 58%; background: var(--l24-strip-img) right center / cover no-repeat; }
.l24-aidstrip-slide.has-img::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 58%;
	background: linear-gradient(90deg, var(--l24-card) 0%, color-mix(in srgb, var(--l24-card) 70%, transparent) 30%, transparent 70%); }
.l24-aidstrip-slide > * { position: relative; z-index: 1; }
.l24-aidstrip-ico { width: 64px; height: 64px; flex: 0 0 auto; background: var(--l24-orange);
	-webkit-mask: var(--l24-icon) center / contain no-repeat; mask: var(--l24-icon) center / contain no-repeat; }
.l24-aidstrip-body { flex: 1 1 auto; min-width: 0; max-width: 620px; }
.l24-aidstrip-body strong { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.l24-aidstrip-body strong em { font-style: normal; font-weight: 500; font-size: .8rem; color: var(--l24-muted); }
.l24-aidstrip-body ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 5px; }
.l24-aidstrip-body li { counter-increment: s; position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.35; }
.l24-aidstrip-body li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
	background: var(--l24-card-2); color: var(--l24-text); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.l24-aidstrip-more { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
	background: color-mix(in srgb, var(--l24-card) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border: 1px solid var(--l24-line); font-weight: 700; font-size: .9rem; color: var(--l24-accent-ink); white-space: nowrap; }
.l24-aidstrip-more svg { width: 18px; height: 18px; }
.l24-aidstrip-slide:hover .l24-aidstrip-more { border-color: var(--l24-accent-line); }
.l24-aidstrip-nav { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 6px;
	padding: 4px 8px; border-radius: 999px; background: var(--l24-bg); border: 1px solid var(--l24-line); box-shadow: var(--l24-shadow); }
.l24-home button.l24-aidstrip-btn, .l24-home button.l24-aidstrip-btn:hover, .l24-home button.l24-aidstrip-btn:focus {
	width: 26px; height: 26px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: transparent !important;
	color: var(--l24-text) !important; font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: none !important; }
.l24-home button.l24-aidstrip-btn:hover { background: var(--l24-card-2) !important; }
.l24-aidstrip-dots { display: flex; gap: 6px; }
.l24-home button.l24-aidstrip-dot, .l24-home button.l24-aidstrip-dot:hover, .l24-home button.l24-aidstrip-dot:focus {
	width: 8px; height: 8px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
	background: var(--l24-line) !important; cursor: pointer; box-shadow: none !important; }
.l24-home button.l24-aidstrip-dot.is-on { background: var(--l24-accent-line) !important; width: 20px; border-radius: 999px !important; }
.l24-aidstrip + .l24-h-tiles { padding-top: 30px; }
@media (max-width: 700px) {
	.l24-aidstrip-slide { flex-wrap: wrap; gap: 12px 14px; padding: 16px 16px 22px; align-items: flex-start; }
	.l24-aidstrip-ico { width: 44px; height: 44px; }
	.l24-aidstrip-body { flex: 1 1 calc(100% - 60px); }
	.l24-aidstrip-slide.has-img::before, .l24-aidstrip-slide.has-img::after { width: 100%; opacity: .22; }
	.l24-aidstrip-slide.has-img::after { opacity: 1; background: linear-gradient(90deg, var(--l24-card) 30%, color-mix(in srgb, var(--l24-card) 60%, transparent)); }
	.l24-aidstrip-more { margin-left: 58px; }
}
/* wszystkie slajdy w jednej komórce siatki – stała wysokość, płynne przejście */
.l24-aidstrip { display: grid; }
.l24-aidstrip-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.l24-aidstrip-slide.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.l24-aidstrip-nav { grid-area: 1 / 1; align-self: end; justify-self: center; position: relative; left: auto; bottom: -14px; transform: none; }
.l24-aidstrip-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l24-warnc); margin-bottom: 2px; }
.l24-aidstrip-body strong { margin-bottom: 8px; }
@media (max-width: 700px) { .l24-aidstrip-body li:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .l24-aidstrip-slide { transition: none; } }
