/*
Theme Name: Medycyna 2001
Description: Motyw blokowy przychodni Medycyna 2001.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: medycyna2001
License: GNU General Public License v2 or later
*/

/* Podstawy */
@view-transition { navigation: auto; }

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:where(.has-text-align-center) { margin-inline: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-dark);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Pasek informacyjny */
.m2001-dane--pasek {
	font-variant-numeric: tabular-nums;
	background: var(--wp--preset--color--daintree);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
}
.m2001-topbar {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--custom--space--text) var(--wp--preset--spacing--30);
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--micro) var(--wp--custom--space--head);
}
.m2001-topbar__item { margin: 0; max-width: none; }
.m2001-status::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: #9fb0b1;
	vertical-align: 1px;
}
.m2001-status--open::before { background: var(--wp--preset--color--accent); }
.m2001-dane--pasek a { color: var(--wp--preset--color--white); }
.m2001-dane--pasek a:hover { color: var(--wp--preset--color--accent); }

/* Nagłówek */
.m2001-header {
	background: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.m2001-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--wp--preset--color--daintree);
	text-decoration: none;
}
.m2001-header .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	background: url(assets/img/logo.svg) center / contain no-repeat;
}
.m2001-header .wp-block-site-tagline { margin-top: 0; padding-left: 52px; }
.m2001-header .wp-block-navigation a { text-decoration: none; }
.m2001-header .wp-block-navigation a:hover { text-decoration: underline; }

@supports (animation-timeline: scroll()) {
	.m2001-header {
		animation: m2001-header-shadow linear both;
		animation-timeline: scroll();
		animation-range: 0 120px;
	}
	@keyframes m2001-header-shadow {
		to { box-shadow: 0 6px 20px rgba(3, 45, 48, 0.08); }
	}
}

/* Menu mobilne */
:is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) svg { display: none; }
:is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close)::before {
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	background: currentColor;
	-webkit-mask: var(--m2001-nav-icon) center / contain no-repeat;
	mask: var(--m2001-nav-icon) center / contain no-repeat;
}
.wp-block-navigation__responsive-container-open { --m2001-nav-icon: url(assets/icons/menu.svg); }
.wp-block-navigation__responsive-container-close { --m2001-nav-icon: url(assets/icons/zamknij.svg); }

/* Przyciski */
.wp-block-button.is-style-primary .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 6px 6px 20px;
	background: var(--wp--preset--color--coral);
	border-color: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--daintree);
	font-weight: 800;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-button.is-style-primary .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: url(assets/icons/strzalka-koral.svg) center / 20px no-repeat var(--wp--preset--color--daintree);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover,
.wp-block-button.is-style-primary .wp-block-button__link:focus {
	background: var(--wp--preset--color--coral-dark);
	border-color: var(--wp--preset--color--coral-dark);
	color: var(--wp--preset--color--daintree);
	box-shadow: var(--wp--custom--shadow--cta);
}
.m2001-hero .wp-block-button.is-style-primary .wp-block-button__link {
	gap: 16px;
	padding: 8px 8px 8px 32px;
	font-size: var(--wp--preset--font-size--medium);
}
.m2001-hero .wp-block-button.is-style-primary .wp-block-button__link::after { width: 40px; height: 40px; background-size: 24px; }
.wp-block-button.is-style-arrow .wp-block-button__link {
	text-align: left;
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--wp--preset--color--daintree);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after,
.m2001-staff__hours::after {
	content: "";
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-left: 6px;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: url(assets/icons/strzalka.svg) center / contain no-repeat;
	mask: url(assets/icons/strzalka.svg) center / contain no-repeat;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--accent-dark);
}

/* Karty, kafle, panele */
.is-style-card,
.is-style-panel {
	position: relative;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}
.is-style-card { padding: var(--wp--custom--space--card); }
.is-style-panel { padding: var(--wp--custom--space--card); }
.is-style-card > *,
.is-style-tile > * { margin-block: 0; }
.is-style-card > * + *,
.is-style-tile > * + * { margin-top: var(--wp--custom--space--text); }
.is-style-card { transition: border-color 0.2s ease; }
.is-style-card:has(a):hover { border-color: var(--wp--preset--color--accent-dark); }
.is-style-tile { position: relative; padding-top: calc(48px + var(--wp--preset--spacing--20)); }
.is-style-tile :where(h2, h3) a:hover { text-decoration: underline; text-underline-offset: 4px; }
.is-layout-grid:has(> .is-style-tile) { gap: var(--wp--custom--space--head) var(--wp--custom--space--gap); }
.is-style-card :where(h2, h3) a,
.is-style-tile :where(h2, h3) a { text-decoration: none; }
.is-style-card :where(h2, h3) a::after,
.is-style-tile :where(h2, h3) a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.is-style-card:has(:where(h2, h3) a:focus-visible),
.is-style-tile:has(:where(h2, h3) a:focus-visible) {
	outline: 3px solid var(--wp--preset--color--accent-dark);
	outline-offset: 8px;
	border-radius: var(--wp--custom--radius--card);
}
.is-style-card :where(h2, h3) a:focus-visible,
.is-style-tile :where(h2, h3) a:focus-visible { outline: none; }
.is-style-tile p { font-size: 15px; color: var(--wp--preset--color--muted); }

/* Ikony kafli */
[class*="m2001-icon--"]::before,
[class*="m2001-icon--"]::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
}
[class*="m2001-icon--"]::before {
	border-radius: 14px;
	background: var(--wp--preset--color--mint-tint);
}
[class*="m2001-icon--"]::after {
	top: 12px;
	left: 12px;
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--accent-dark);
	-webkit-mask: var(--m2001-icon) center / contain no-repeat;
	mask: var(--m2001-icon) center / contain no-repeat;
}
.m2001-icon--kalendarz { --m2001-icon: url(assets/icons/kalendarz.svg); }
.m2001-icon--recepta { --m2001-icon: url(assets/icons/recepta.svg); }
.m2001-icon--dom { --m2001-icon: url(assets/icons/dom.svg); }
.m2001-icon--osoba { --m2001-icon: url(assets/icons/osoba.svg); }
.m2001-icon--wiadomosc { --m2001-icon: url(assets/icons/wiadomosc.svg); }
.m2001-icon--konto { --m2001-icon: url(assets/icons/konto.svg); }
.m2001-icon--telefon { --m2001-icon: url(assets/icons/telefon.svg); }
.m2001-icon--noc { --m2001-icon: url(assets/icons/noc.svg); }
.m2001-icon--ratunek { --m2001-icon: url(assets/icons/ratunek.svg); }
.m2001-icon--formularz { --m2001-icon: url(assets/icons/formularz.svg); }
.m2001-icon--lekarz { --m2001-icon: url(assets/icons/lekarz.svg); }
.m2001-icon--sms { --m2001-icon: url(assets/icons/sms.svg); }
.m2001-icon--adres { --m2001-icon: url(assets/icons/adres.svg); }
.m2001-icon--godziny { --m2001-icon: url(assets/icons/godziny.svg); }
.m2001-icon--email { --m2001-icon: url(assets/icons/email.svg); }

/* Listy */
.is-style-chips {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}
.is-style-chips li {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--daintree);
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill);
}
.is-style-checks { list-style: none; padding: 0; }
.is-style-checks li { position: relative; padding-left: 32px; margin-bottom: var(--wp--custom--space--text); }
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2em;
	height: 1.2em;
	background: var(--wp--preset--color--accent-dark);
	-webkit-mask: url(assets/icons/ptaszek.svg) center / contain no-repeat;
	mask: url(assets/icons/ptaszek.svg) center / contain no-repeat;
}

/* Obrazy */
.wp-block-image.is-style-capsule img {
	width: 100%;
	height: clamp(220px, 30vw, 380px);
	object-fit: cover;
	object-position: 40% 50%;
	border-radius: var(--wp--custom--radius--pill);
}
.wp-block-image.is-style-rounded img { border-radius: var(--wp--custom--radius--card); }

/* Hero */
.m2001-hero__eyebrow {
	display: inline-block;
	background: var(--wp--preset--color--mint-tint);
	color: var(--wp--preset--color--daintree);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill);
}
/* Pas nagłówka strony głównej */
.m2001-hero__media { position: relative; }
.m2001-hero__photo { margin: 0; }
.m2001-hero__photo img {
	display: block;
	width: 100%;
	height: clamp(320px, 38vw, 480px);
	object-fit: cover;
	object-position: 40% top;
	border-radius: var(--wp--custom--radius--large);
}
.m2001-status-card {
	position: absolute;
	left: calc(-1 * var(--wp--custom--space--head));
	bottom: var(--wp--custom--space--panel);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) calc(var(--wp--preset--spacing--30) + 22px);
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	box-shadow: var(--wp--custom--shadow--lift);
}
.m2001-status-card p { margin: 0; }
.m2001-status-card__state { font-weight: 800; color: var(--wp--preset--color--daintree); }
.m2001-status-card__state::before {
	content: "";
	position: absolute;
	left: var(--wp--preset--spacing--30);
	top: calc(var(--wp--preset--spacing--20) + 0.55em);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #9fb0b1;
}
.m2001-status-card--open .m2001-status-card__state::before { background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px var(--wp--preset--color--mint-tint); }
.m2001-status-card__info { font-size: 15px; color: var(--wp--preset--color--muted); }
@media (max-width: 781px) { .m2001-status-card { left: var(--wp--preset--spacing--20); bottom: var(--wp--preset--spacing--20); } }

/* Pasek komunikatu */
.m2001-notice {
	background: var(--wp--preset--color--white);
	border-block: 1px solid var(--wp--preset--color--line);
}
.m2001-notice:not(:has(.wp-block-post)) { display: none; }
.m2001-notice .wp-block-post-template { margin-block: 0; padding: var(--wp--preset--spacing--30) 0; list-style: none; }
.m2001-notice__row { gap: var(--wp--custom--space--text) var(--wp--custom--space--gap); }
.m2001-notice__row > * { margin: 0; }
.m2001-card-label { font-size: var(--wp--preset--font-size--small); font-weight: 800; color: var(--wp--preset--color--accent-dark); }
.m2001-notice__label { font-weight: 800; color: var(--wp--preset--color--daintree); }
.m2001-notice__date { font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-notice__title { flex: 1 1 240px; font-size: var(--wp--preset--font-size--regular); }
.m2001-notice__title a { text-decoration: none; }
.m2001-notice__title a:hover { text-decoration: underline; }
.m2001-hero-band {
	background-color: var(--wp--preset--color--surface);
	background-image:
		radial-gradient(60% 80% at 10% 0%, #d4f3ea 0%, rgba(212, 243, 234, 0) 70%),
		radial-gradient(50% 70% at 95% 10%, #e3eefb 0%, rgba(227, 238, 251, 0) 70%);
}

/* Warto wiedzieć */
.m2001-facts {
	border-radius: var(--wp--custom--radius--large);
	padding: var(--wp--custom--space--panel);
}
.m2001-facts > h2 { margin-top: 0; }
.m2001-facts > h2 + * { margin-block-start: var(--wp--custom--space--head); }
.m2001-fact > * { margin-block: 0; }
.m2001-fact > * + * { margin-top: var(--wp--custom--space--text); }
.m2001-fact__title { font-size: var(--wp--preset--font-size--medium); font-weight: 800; color: var(--wp--preset--color--daintree); }

/* Gdy przychodnia jest zamknięta */
.m2001-afterhours {
	background-image: radial-gradient(60% 90% at 100% 0%, rgba(95, 212, 184, 0.22) 0%, rgba(95, 212, 184, 0) 70%);
	border-radius: var(--wp--custom--radius--large);
	padding: var(--wp--custom--space--panel);
}
.m2001-afterhours :where(h2, h3, h3 a) { color: var(--wp--preset--color--white); }
.m2001-afterhours p { color: #dfe8e8; }
.m2001-afterhours [class*="m2001-icon--"]::before { background: rgba(255, 255, 255, 0.1); }
.m2001-afterhours [class*="m2001-icon--"]::after { background: var(--wp--preset--color--accent); }
.m2001-afterhours .is-style-tile:focus-within { outline-color: var(--wp--preset--color--accent); }

/* Zespół */
.m2001-team .wp-block-post-template { gap: var(--wp--custom--space--gap); }
.m2001-team .wp-block-post-featured-image img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--card);
}

/* Meta wpisów */
.m2001-meta {
	font-size: var(--wp--preset--font-size--small);
	color: #5a6b6c;
	margin: 0;
}
.m2001-meta a { color: inherit; }
.m2001-meta__new {
	display: inline-block;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--daintree);
	font-weight: 800;
	padding: 0 8px;
	border-radius: var(--wp--custom--radius--pill);
}
.m2001-meta--zastrzezenie {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--20);
}

/* Tabela grafiku */
.wp-block-table.is-style-schedule table { font-variant-numeric: tabular-nums; border-collapse: collapse; width: 100%; background: var(--wp--preset--color--white); }
.wp-block-table.is-style-schedule :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 12px 16px;
	text-align: left;
	white-space: nowrap;
}
.wp-block-table.is-style-schedule thead th {
	background: var(--wp--preset--color--daintree);
	color: var(--wp--preset--color--white);
	font-weight: 700;
}
.wp-block-table.is-style-schedule { overflow-x: auto; }
.wp-block-table.is-style-schedule tbody :is(td, th):first-child { font-weight: 700; color: var(--wp--preset--color--daintree); }
.wp-block-table.is-style-schedule figcaption { text-align: left; font-size: var(--wp--preset--font-size--small); }
.m2001-grafik table { table-layout: fixed; min-width: 760px; }
@media (max-width: 1023px) { .m2001-grafik table { table-layout: auto; min-width: 0; } }
.m2001-grafik thead th:first-child { width: 26%; }
.m2001-grafik thead th:nth-child(2) { width: 9%; }
.m2001-grafik > * { margin-block: 0; }
.m2001-grafik > * + * { margin-block-start: var(--wp--custom--space--gap); }
.m2001-grafik > * + h2 { margin-block-start: var(--wp--custom--space--subsection); }
.m2001-grafik > h2 + * { margin-block-start: var(--wp--custom--space--head); }
.m2001-grafik__okres { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--muted); }
.m2001-grafik__uwagi { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* Personel */
.m2001-staff__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--text);
}
.m2001-staff__nav-link {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	font-weight: 700;
	text-decoration: none;
}
.m2001-staff__nav-link:hover { background: var(--wp--preset--color--mist); }
.wp-block-post-content > .m2001-staff { margin-block-start: var(--wp--custom--space--head); }
.m2001-staff__group { margin-top: var(--wp--custom--space--subsection); }
.m2001-staff__title { margin: 0; }
.m2001-staff__list {
	list-style: none;
	margin: var(--wp--custom--space--head) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--wp--custom--space--gap);
}
.m2001-staff__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--mist);
}
.m2001-staff__photo--empty {
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--mint-tint);
	color: var(--wp--preset--color--accent-dark);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.m2001-lead {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--gap);
	align-items: center;
	padding: var(--wp--custom--space--gap);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}
.m2001-lead p { margin: 0; }
.m2001-lead > div { flex: 1 1 200px; }
.m2001-lead__photo {
	flex: none;
	width: 112px;
	height: 112px;
	object-fit: cover;
	border-radius: 16px;
}
.m2001-lead__photo--empty { display: grid; place-items: center; background: var(--wp--preset--color--mint-tint); color: var(--wp--preset--color--accent-dark); font-size: 32px; font-weight: 800; }
.m2001-lead__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--mint-tint);
	color: var(--wp--preset--color--daintree);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}
.m2001-lead p.m2001-lead__name { margin-top: var(--wp--custom--space--text); font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--wp--preset--color--daintree); }
.m2001-lead p.m2001-lead__role { margin-top: var(--wp--custom--space--micro); font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-staff__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--wp--custom--space--text) var(--wp--custom--space--gap); }
.m2001-staff__hours { font-weight: 800; text-underline-offset: 4px; }
.m2001-staff__name { margin: var(--wp--preset--spacing--20) 0 0; line-height: 1.3; font-weight: 800; color: var(--wp--preset--color--daintree); }
.m2001-staff__role,
.m2001-staff__profile { margin: var(--wp--custom--space--micro) 0 0; font-size: 15px; color: var(--wp--preset--color--muted); }

/* Kontakt */
.m2001-contact { margin: 0; display: grid; gap: var(--wp--custom--space--gap); }
.m2001-contact__row { position: relative; min-height: 48px; padding-left: calc(48px + var(--wp--preset--spacing--20)); }
.m2001-contact__row dt { font-weight: 800; color: var(--wp--preset--color--daintree); }
.m2001-contact__row dd { margin: var(--wp--custom--space--micro) 0 0; color: var(--wp--preset--color--muted); }
.m2001-contact__row dd a { font-weight: 800; }
.m2001-contact .m2001-status { font-size: 15px; }
.m2001-contact .m2001-status--open::before { background: var(--wp--preset--color--accent-dark); }

/* Stopka */
.m2001-dane--stopka { color: #dfe8e8; font-size: 15px; }
.m2001-dane--stopka a { color: var(--wp--preset--color--white); }
.m2001-dane--stopka a:hover { color: var(--wp--preset--color--accent); }
.m2001-dane--stopka .m2001-footer__title { color: var(--wp--preset--color--accent); }
.m2001-footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--wp--custom--space--head);
}
.m2001-footer__col p { margin: 0 0 var(--wp--custom--space--text); }
.m2001-footer__title { font-weight: 800; }
.m2001-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--wp--custom--space--micro); }
.m2001-footer__copy { margin: var(--wp--custom--space--head) 0 0; font-size: var(--wp--preset--font-size--small); }

/* Formularze */
.m2001-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--custom--space--gap); }
.m2001-form > * { grid-column: 1 / -1; }
.m2001-form > .m2001-form__field--half { grid-column: auto; }
@media (max-width: 600px) { .m2001-form > .m2001-form__field--half { grid-column: 1 / -1; } }
.m2001-form__req { color: #a63d1f; }
.m2001-form-card { padding: var(--wp--custom--space--panel); }
.m2001-form__note,
.m2001-form__hint,
.m2001-form__privacy { margin: 0; font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-form__field { display: grid; gap: var(--wp--custom--space--text); }
.m2001-form__label { font-weight: 800; color: var(--wp--preset--color--daintree); }
.m2001-form__input {
	font: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	border: 2px solid #6b7f80;
	border-radius: 12px;
	padding: 12px 16px;
	min-height: 48px;
	width: 100%;
	box-sizing: border-box;
}
.m2001-form__input:not(textarea) { height: 56px; }
.m2001-form__input[type="date"] { -webkit-appearance: none; appearance: none; min-width: 0; }
.m2001-form__input::-webkit-date-and-time-value { text-align: left; }
.m2001-form__field--error .m2001-form__input { border-color: #b3261e; }
.m2001-form__error { margin: 0; color: #b3261e; font-weight: 700; }
.m2001-form__field--check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; column-gap: 12px; font-size: 15px; }
.m2001-form__field--check .m2001-form__error { grid-column: 2; }
.m2001-form__check { width: 24px; height: 24px; margin: 0; accent-color: var(--wp--preset--color--accent-dark); }
.m2001-form__summary {
	border: 2px solid #b3261e;
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--custom--space--gap);
	background: var(--wp--preset--color--white);
}
.m2001-form__summary-title { margin: 0 0 var(--wp--custom--space--text); font-weight: 800; color: #b3261e; }
.m2001-form__summary ul { margin: 0; padding-left: 24px; }
.m2001-form__success {
	border: 2px solid var(--wp--preset--color--daintree);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--custom--space--gap);
	background: var(--wp--preset--color--mist);
	font-weight: 700;
}
.m2001-form__success p { margin: 0; }
.m2001-form__submit {
	justify-self: start;
	font: inherit;
	font-weight: 800;
	color: var(--wp--preset--color--daintree);
	background: var(--wp--preset--color--coral);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 8px 8px 8px 32px;
	font-size: var(--wp--preset--font-size--medium);
	min-height: 48px;
	cursor: pointer;
}
.m2001-form__submit::after {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: url(assets/icons/strzalka-koral.svg) center / 24px no-repeat var(--wp--preset--color--daintree);
}
.m2001-form__submit:hover { background: var(--wp--preset--color--coral-dark); box-shadow: var(--wp--custom--shadow--cta); }
.m2001-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Ruch */
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Podstrony z formularzem */
.wp-block-post-content > .m2001-subsection { margin-block-start: var(--wp--custom--space--subsection); }
.wp-block-post-content > .m2001-steps { margin-block-start: var(--wp--custom--space--subsection); }
.m2001-steps .is-style-tile h2 { margin: 0; }
.m2001-form-card > h2 + * { margin-block-start: var(--wp--custom--space--text); }
.wp-block-column > h2:first-child { margin-block-start: 0; }
.wp-block-column > h2 + * { margin-block-start: var(--wp--preset--spacing--20); }
.wp-block-column > h2:not(:first-child),
.wp-block-column > .m2001-aside-next { margin-block-start: var(--wp--custom--space--panel); }
.wp-block-column > .is-style-card > h2:first-child { margin-block-start: 0; }
.wp-block-column > .is-style-card > h2 + * { margin-block-start: var(--wp--preset--spacing--20); }
.is-style-tile > .wp-block-buttons { margin-top: var(--wp--custom--space--gap); }
.m2001-prices :is(th, td):last-child { width: 7em; text-align: right; }
.m2001-ways { list-style: none; padding: 0; display: grid; gap: var(--wp--preset--spacing--20); }
.m2001-ways a { display: block; font-weight: 800; }
.m2001-ways li { font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-ways li a { font-size: var(--wp--preset--font-size--regular); }

/* Standardy ochrony małoletnich: wersja dla dzieci */
.wp-block-post-content > :is(.m2001-som-full, .m2001-kids) { margin-block-start: var(--wp--custom--space--subsection); }
.m2001-kids__grid { margin-block-start: var(--wp--custom--space--head); gap: var(--wp--custom--space--gap); }
.m2001-kids__card {
	position: relative;
	padding: calc(var(--wp--custom--space--card) + 64px + var(--wp--preset--spacing--20)) var(--wp--custom--space--card) var(--wp--custom--space--card);
	border-radius: var(--wp--custom--radius--large);
	color: var(--wp--preset--color--daintree);
	--m2001-kids-ink: var(--wp--preset--color--accent-dark);
	background: var(--wp--preset--color--mint-tint);
}
.m2001-kids__card > * { margin-block: 0; }
.m2001-kids__card > * + * { margin-block-start: var(--wp--preset--spacing--20); }
.m2001-kids__card ul { padding-left: 1.2em; }
.m2001-kids__card li + li { margin-top: var(--wp--custom--space--text); }
.m2001-kids__card--koral { background: #fde4d9; --m2001-kids-ink: #a63d1f; }
.m2001-kids__card--lawenda { background: #ece6fb; --m2001-kids-ink: #5b46a8; }
.m2001-kids__card--slonce { background: #fff1c7; --m2001-kids-ink: #8a5a00; }
.m2001-kids__card[class*="m2001-icon--"]::before {
	top: var(--wp--custom--space--card);
	left: var(--wp--custom--space--card);
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--wp--preset--color--white);
}
.m2001-kids__card[class*="m2001-icon--"]::after {
	top: calc(var(--wp--custom--space--card) + 14px);
	left: calc(var(--wp--custom--space--card) + 14px);
	width: 36px;
	height: 36px;
	background: var(--m2001-kids-ink);
}
.m2001-kids__card h3 { color: var(--m2001-kids-ink); }
.m2001-som-full > * { max-width: 720px; }
.m2001-som-full > h3 { margin-block-start: var(--wp--custom--space--head); }
.m2001-som-full > :is(h2, h3) + * { margin-block-start: var(--wp--custom--space--text); }
.m2001-icon--autobus { --m2001-icon: url(assets/icons/autobus.svg); }
.m2001-icon--dostepnosc { --m2001-icon: url(assets/icons/dostepnosc.svg); }
.m2001-icon--serce { --m2001-icon: url(assets/icons/serce.svg); }
.m2001-icon--stop { --m2001-icon: url(assets/icons/stop.svg); }
.m2001-icon--mow { --m2001-icon: url(assets/icons/mow.svg); }

/* Rytm sekcji */
.m2001-section { padding-top: var(--wp--custom--space--section); }
.m2001-hero__accent { color: var(--wp--preset--color--accent-dark); }
.m2001-hero { padding-block: var(--wp--custom--space--section) var(--wp--custom--space--subsection); }
.m2001-section__head > * { margin-block: 0; }
.m2001-section__head.is-layout-flow > * + * { margin-block-start: var(--wp--custom--space--text); }
:is(.wp-block-group, .wp-block-column) > .m2001-section__head + * { margin-block-start: var(--wp--custom--space--head); }

/* Druk */
@media print {
	* { animation: none !important; }
	.m2001-dane--pasek,
	.m2001-header,
	footer.wp-block-template-part,
	.wp-block-buttons,
	.m2001-staff__nav { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	main.wp-block-group { padding: 0 !important; }
	.wp-block-table.is-style-schedule thead th { background: none; color: #000; border-bottom: 2px solid #000; }
	.wp-block-table.is-style-schedule :where(th, td) { border-color: #999; padding: 4px 8px; }
	.m2001-grafik table { min-width: 0; }
	.m2001-grafik > h2 { break-after: avoid; }
	.wp-block-table { break-inside: avoid; }
	a { text-decoration: none; color: inherit; }
}

/* Rytm tekstu */
.wp-block-post-content > h2 { margin-block-start: var(--wp--custom--space--subsection); }
.wp-block-post-content > h3 { margin-block-start: var(--wp--custom--space--head); }
.wp-block-post-content > h3 + * { margin-block-start: var(--wp--custom--space--text); }
.wp-block-post-content > h2 + * { margin-block-start: var(--wp--preset--spacing--20); }
.wp-block-post-content > :is(h2, h3):first-child { margin-block-start: 0; }

/* Szklany nagłówek */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.m2001-header {
		background: rgba(255, 255, 255, 0.78);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
	}
	.m2001-header:has(.is-menu-open) {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/* Sekcje wyłaniające się przy przewijaniu */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.wp-block-post-content > .m2001-section,
		.m2001-staff__group,
		.m2001-kids__card {
			animation: m2001-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
		@keyframes m2001-reveal {
			from { opacity: 0; transform: translateY(24px); }
			to { opacity: 1; transform: none; }
		}
	}
}

/* Spójność stron */
.wp-block-post-content > .alignwide > p.has-medium-font-size { max-width: 720px; }
.m2001-steps.m2001-steps.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.m2001-kids__grid.m2001-kids__grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.m2001-text > .wp-block-post-terms a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--mint-tint);
	color: var(--wp--preset--color--daintree);
	font-weight: 800;
	text-decoration: none;
}
.m2001-text > .wp-block-post-title + .m2001-meta { margin-block-start: var(--wp--custom--space--text); }
.m2001-text > .m2001-meta--zastrzezenie { margin-block-start: var(--wp--custom--space--head); }
.m2001-cats .wp-block-categories .current-cat a {
	background: var(--wp--preset--color--daintree);
	border-color: var(--wp--preset--color--daintree);
	color: var(--wp--preset--color--white);
}
.m2001-list .wp-block-post > * { margin-block: 0; }
.m2001-list .wp-block-post > * + * { margin-block-start: var(--wp--custom--space--text); }
.m2001-list .wp-block-post-excerpt__excerpt { margin: 0; }

/* Szkielet strony */
.wp-site-blocks > * { margin-block: 0; }
.m2001-header { position: sticky; top: 0; z-index: 20; }
.admin-bar .m2001-header { top: var(--wp-admin--admin-bar--height, 32px); }
.m2001-cats .wp-block-categories {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--custom--space--text);
}
.m2001-cats .wp-block-categories a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	font-weight: 700;
	text-decoration: none;
}
.m2001-list .wp-block-post {
	padding-block: var(--wp--custom--space--gap);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.m2001-list .wp-block-post-title a { text-decoration: none; }

.m2001-dane--pasek a:focus-visible,
.m2001-dane--stopka a:focus-visible { outline-color: var(--wp--preset--color--accent); }

/* Panel boczny */
.m2001-uklad {
	display: grid;
	grid-template-columns: minmax(0, 720px) 320px;
	justify-content: space-between;
	align-items: start;
	gap: var(--wp--custom--space--subsection);
}
.m2001-uklad > * { margin-block: 0; }
.m2001-bok {
	position: sticky;
	top: 104px;
	display: grid;
	gap: var(--wp--custom--space--gap);
}
.admin-bar .m2001-bok { top: calc(104px + var(--wp-admin--admin-bar--height, 32px)); }
.m2001-bok p { margin: 0; }
.m2001-bok__title { font-weight: 800; color: var(--wp--preset--color--accent-dark); }
.m2001-bok__spis { padding-left: var(--wp--custom--space--gap); border-left: 2px solid var(--wp--preset--color--line); }
.m2001-bok__spis ul { list-style: none; margin: var(--wp--custom--space--text) 0 0; padding: 0; display: grid; gap: var(--wp--custom--space--text); font-size: 15px; }
.m2001-bok__spis a { color: var(--wp--preset--color--muted); text-decoration: none; }
.m2001-bok__spis a:hover { color: var(--wp--preset--color--daintree); text-decoration: underline; text-underline-offset: 4px; }
.m2001-bok__karta {
	display: grid;
	gap: var(--wp--custom--space--text);
	justify-items: start;
	padding: var(--wp--custom--space--card);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}
.m2001-bok .m2001-status { font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-bok .m2001-status--open::before { background: var(--wp--preset--color--accent-dark); }
.m2001-bok__tel {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 48px;
	padding-left: calc(48px + var(--wp--custom--space--text) * 2);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 800;
	color: var(--wp--preset--color--daintree);
	text-decoration: none;
}
.m2001-bok__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.m2001-bok__godz { font-size: 15px; color: var(--wp--preset--color--muted); }
.m2001-bok .wp-block-button { margin-top: var(--wp--custom--space--text); }
html { scroll-padding-top: 136px; }
@media (max-width: 1023px) {
	.m2001-uklad { grid-template-columns: minmax(0, 1fr); gap: var(--wp--custom--space--panel); }
	.m2001-bok { position: static; }
	.m2001-bok__spis { display: none; }
}

a[href^="tel:"] { white-space: nowrap; }
