/*
 * Projekt edukacyjny – bloki ACF (pe-*).
 * Wszystko w obrębie klasy .pe, żeby nie mieszać się z resztą serwisu
 * (style.css ustawia globalnie p/h2/body, Bootstrap 4 – marginesy).
 */

.pe,
.pe-site-header,
.pe-site-footer {
	--pe-navy: #1a2b51;
	--pe-navy-deep: #111c36;
	--pe-navy-poster: #20335c;
	--pe-navy-line: #3a4c75;
	--pe-blue: #1f5788;
	--pe-orange: #ec6703;
	--pe-orange-text: #b84e00;
	--pe-orange-light: #f59a4c;
	--pe-mist: #f5f7fa;
	--pe-mist-strong: #eef2f8;
	--pe-line: #dce3ec;
	--pe-text: #3a4560;
	--pe-muted: #5b6680;
	--pe-on-dark: #dce3f0;
	--pe-display: "Figtree", "Helvetica Neue", Arial, sans-serif;
	--pe-body: "Poppins", "Segoe UI", Arial, sans-serif;
	--pe-gutter: clamp(20px, 4vw, 40px);
	--pe-rail: 44px;
	--pe-rail-gap: clamp(16px, 3vw, 40px);

	box-sizing: border-box;
	position: relative;
	font-family: var(--pe-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--pe-text);
	text-align: left;
	-webkit-hyphens: none;
	hyphens: none;
}

.pe *,
.pe *::before,
.pe *::after {
	box-sizing: border-box;
}

.pe p {
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: inherit;
	text-wrap: pretty;
}

.pe h1,
.pe h2,
.pe h3 {
	margin: 0;
	padding: 0;
	font-family: var(--pe-display);
	text-align: left;
	text-wrap: balance;
}

.pe a {
	text-decoration: none;
}

.pe img {
	max-width: 100%;
}

.pe figure {
	margin: 0;
}

.pe-icon {
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pe-icon .pe-icon-fill {
	fill: currentColor;
	stroke: none;
}

.pe-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--pe-gutter);
}

/* Typografia wspólna */

.pe .pe-label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--pe-orange-text);
}

.pe .pe-label--light {
	color: var(--pe-orange-light);
}

.pe .pe-h2 {
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--pe-navy);
}

.pe .pe-h2--xl {
	font-size: clamp(32px, 3.8vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.pe .pe-h3 {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
}

/* Przyciski i linki */

.pe-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	padding-top: 10px;
}

.pe-actions--center {
	justify-content: center;
	gap: 14px 32px;
	padding-top: 12px;
}

.pe .pe-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 0 26px 0 10px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	transition: background 0.15s, color 0.15s;
}

.pe .pe-btn--light {
	background: #fff;
	color: var(--pe-navy);
}

.pe .pe-btn--light:hover {
	background: var(--pe-mist-strong);
	color: var(--pe-navy);
}

.pe .pe-btn--dark {
	min-height: 60px;
	padding: 0 28px 0 12px;
	background: var(--pe-navy);
	color: #fff;
	font-size: 17px;
}

.pe .pe-btn--dark:hover {
	background: #23396a;
	color: #fff;
}

.pe-btn__play {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pe-orange);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pe .pe-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--pe-navy);
	font-weight: 600;
	font-size: 17px;
}

.pe .pe-link span {
	border-bottom: 1.5px solid #9fb6d0;
	line-height: 1.4;
}

.pe .pe-link .pe-icon {
	color: var(--pe-blue);
}

.pe .pe-link--light {
	color: #fff;
	font-size: 16px;
}

.pe .pe-link--light span {
	border-bottom-color: rgba(255, 255, 255, 0.55);
}

.pe .pe-link:hover span {
	border-bottom-color: currentColor;
}

.pe .pe-btn:focus-visible,
.pe .pe-link:focus-visible,
.pe .pe-pill-btn:focus-visible,
.pe .pe-nav__link:focus-visible,
.pe .pe-video__play:focus-visible,
.pe .pe-faq__question:focus-visible {
	outline: 3px solid var(--pe-orange);
	outline-offset: 3px;
}

/* Hero */

.pe-hero {
	min-height: clamp(560px, 46vw, 720px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--pe-navy);
}

.pe .pe-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 45%;
}

.pe-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(17, 28, 54, 0.86) 0%, rgba(17, 28, 54, 0.58) 45%, rgba(17, 28, 54, 0.1) 80%),
		linear-gradient(0deg, rgba(17, 28, 54, 0.7) 0%, rgba(17, 28, 54, 0) 55%);
}

.pe-hero__inner {
	position: relative;
	padding-bottom: clamp(40px, 6vw, 88px);
}

.pe-hero__content {
	max-width: 660px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pe .pe-hero__title {
	font-size: clamp(52px, 6.4vw, 96px);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: #fff;
}

.pe-hero__accent {
	color: var(--pe-orange);
	white-space: nowrap;
}

.pe .pe-hero__subtitle {
	max-width: 560px;
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.45;
	color: #e3e9f3;
}

/* Wstęp */

.pe-intro {
	background: #fff;
}

.pe-intro__inner {
	padding-top: clamp(56px, 7vw, 112px);
	padding-bottom: clamp(40px, 5vw, 72px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px clamp(24px, 6vw, 96px);
}

.pe-intro__lead {
	flex: 1.4 1 480px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pe .pe-intro__lead p {
	font-family: var(--pe-display);
	font-weight: 500;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--pe-navy);
}

.pe-intro__text {
	flex: 1 1 300px;
	min-width: 0;
	align-self: flex-end;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Menu sekcji */

.pe-nav {
	position: sticky;
	top: var(--pe-sticky-top, 0px);
	z-index: 50;
	background: #fff;
	border-top: 1px solid var(--pe-line);
	border-bottom: 1px solid var(--pe-line);
	box-shadow: 0 8px 20px rgba(26, 43, 81, 0.06);
}

.pe-nav__inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	padding: 0 clamp(12px, 4vw, 40px);
	scrollbar-width: none;
}

.pe-nav__inner::-webkit-scrollbar {
	display: none;
}

.pe .pe-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 19px 14px 16px;
	border-bottom: 3px solid transparent;
	color: var(--pe-muted);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	transition: color 0.15s, border-color 0.15s;
}

.pe .pe-nav__link:hover,
.pe .pe-nav__link.is-active {
	color: var(--pe-navy);
}

.pe .pe-nav__link.is-active {
	font-weight: 600;
	border-bottom-color: var(--pe-orange);
}

.pe-nav__num {
	font-family: var(--pe-display);
	font-weight: 700;
	font-size: 13px;
	color: #8a97ae;
}

.pe-nav__link.is-active .pe-nav__num {
	color: var(--pe-orange-text);
}

.pe-nav--empty {
	padding: 18px 0;
	font-size: 14px;
	color: var(--pe-muted);
	background: var(--pe-mist-strong);
}

/* Ścieżka pacjenta (oś z numerami) */

.pe-path {
	display: flex;
	gap: var(--pe-rail-gap);
}

.pe-path__rail {
	flex: 0 0 var(--pe-rail);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pe-path__line {
	display: block;
	width: 2px;
	height: clamp(48px, 6vw, 88px);
	background: var(--pe-line);
}

.pe-path__line--grow {
	flex: 1;
	height: auto;
}

.pe-path__line.is-empty {
	background: transparent;
}

.pe-path__node {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	border: 2px solid var(--pe-navy);
	background: #fff;
	color: var(--pe-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--pe-display);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}

.pe-path__node.is-first {
	background: var(--pe-navy);
	color: #fff;
}

.pe-path__node--accent {
	border: 0;
	background: var(--pe-orange);
	color: #fff;
}

.pe-path__rail--dark .pe-path__line {
	height: clamp(56px, 7vw, 104px);
	background: var(--pe-navy-line);
}

.pe-path__rail--dark .pe-path__line.is-empty {
	background: transparent;
}

.pe-path__body {
	flex: 1;
	min-width: 0;
	padding: clamp(48px, 6vw, 88px) 0;
}

/* Sekcja z filmem */

.pe-film__desc,
.pe-support__text,
.pe-contact__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pe-film--biale {
	background: #fff;
}

.pe-film--szare {
	background: var(--pe-mist);
}

.pe-film__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pe-film__media {
	position: relative;
	min-width: 0;
}

/* Szeroki: tytuł i opis w rzędzie, film na całą szerokość. */
.pe-film--szeroki .pe-film__body {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.5vw, 32px);
}

.pe-film--szeroki .pe-film__text {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px clamp(24px, 5vw, 72px);
	padding-top: 2px;
}

.pe-film--szeroki .pe-h2 {
	flex: 1 1 380px;
	min-width: 0;
}

.pe-film--szeroki .pe-film__desc {
	flex: 1 1 300px;
	min-width: 0;
	max-width: 440px;
}

.pe-film--szeroki .pe-video {
	border-radius: 22px;
}

/* Film po lewej / po prawej. */
.pe-film--odwrocony .pe-film__body,
.pe-film--klasyczny .pe-film__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
}

.pe-film--odwrocony .pe-film__body {
	flex-direction: row-reverse;
}

.pe-film--odwrocony .pe-film__text,
.pe-film--klasyczny .pe-film__text {
	flex: 1 1 300px;
	min-width: 0;
}

.pe-film--odwrocony .pe-film__media,
.pe-film--klasyczny .pe-film__media {
	flex: 1.5 1 440px;
}

/* Przesunięty: tekst u góry, film niżej z blokiem w tle. */
.pe-film--przesuniety .pe-film__body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(28px, 4vw, 64px);
	padding-bottom: clamp(64px, 8vw, 120px);
}

.pe-film--przesuniety .pe-film__text {
	flex: 1 1 280px;
	min-width: 0;
}

.pe-film--przesuniety .pe-film__media {
	flex: 1.6 1 460px;
	margin-top: clamp(0px, 6vw, 96px);
}

.pe-film__frame {
	position: absolute;
	left: clamp(-28px, -2vw, -12px);
	top: clamp(-28px, -2vw, -12px);
	width: 62%;
	height: 78%;
	border-radius: 22px;
	background: var(--pe-mist-strong);
}

.pe-film--szare .pe-film__frame {
	background: #e6ebf3;
}

/* Odtwarzacz (fasada do kliknięcia) */

.pe-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	background: var(--pe-navy-poster);
	isolation: isolate;
}

.pe .pe-video__poster,
.pe-video__player,
.pe-video__embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
}

.pe .pe-video__poster {
	object-fit: cover;
	object-position: center 35%;
}

.pe-video__player {
	background: #000;
	object-fit: contain;
}

.pe-video__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(17, 28, 54, 0.7) 0%, rgba(17, 28, 54, 0.1) 42%, rgba(17, 28, 54, 0) 100%);
	pointer-events: none;
}

.pe .pe-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pe-orange);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 32px rgba(10, 18, 40, 0.38);
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}

.pe-film--szeroki .pe-video__play {
	width: clamp(64px, 6.5vw, 92px);
	height: clamp(64px, 6.5vw, 92px);
}

.pe .pe-video__play:hover {
	background: #d85e02;
	transform: translate(-50%, -50%) scale(1.06);
}

.pe-video__play .pe-icon {
	margin-left: 3px;
}

.pe-video__caption {
	position: absolute;
	left: clamp(16px, 2vw, 28px);
	right: clamp(16px, 2vw, 28px);
	bottom: clamp(14px, 1.8vw, 24px);
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	pointer-events: none;
}

.pe-chip {
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	font-size: 13px;
	font-weight: 600;
}

.pe-video__stage {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pe-video__lock {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 40px);
	padding: 12px 18px;
	border-radius: 999px;
	background: rgba(17, 28, 54, 0.82);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
}

.pe-video.is-playing .pe-video__poster,
.pe-video.is-playing .pe-video__shade,
.pe-video.is-playing .pe-video__play,
.pe-video.is-playing .pe-video__caption {
	display: none;
}

/* Pas ze zdjęciem */

.pe-support {
	display: flex;
	flex-wrap: wrap;
	background: var(--pe-navy);
	color: #fff;
}

.pe-support__main {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	gap: var(--pe-rail-gap);
	padding: 0 clamp(20px, 5vw, 72px) 0 max(var(--pe-gutter), calc((100vw - 1200px) / 2 + 40px));
}

.pe-support__content {
	flex: 1;
	min-width: 0;
	padding: clamp(56px, 7vw, 104px) 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pe-support .pe-label {
	padding-top: 8px;
}

.pe-support .pe-h2 {
	color: #fff;
}

.pe .pe-support__text {
	max-width: 520px;
	font-size: clamp(17px, 1.4vw, 19px);
	color: var(--pe-on-dark);
}

.pe-support__note {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	max-width: 520px;
	margin-top: 8px;
	padding-top: 22px;
	border-top: 1px solid var(--pe-navy-line);
}

.pe-support__note .pe-icon {
	margin-top: 2px;
	color: var(--pe-orange-light);
}

.pe .pe-support__note p {
	font-size: 15px;
	line-height: 1.65;
	color: #fff;
}

.pe-support__media {
	flex: 1 1 440px;
	min-width: 0;
	min-height: clamp(320px, 38vw, 600px);
	position: relative;
	overflow: hidden;
}

.pe .pe-support__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 30%;
}

/* Kontakt (wyśrodkowany) */

.pe-contact {
	background: #fff;
}

.pe .pe-contact__inner h2,
.pe .pe-contact__inner p {
	text-align: center;
}

.pe-contact__inner {
	max-width: 780px;
	margin: 0 auto;
	padding: clamp(72px, 9vw, 136px) var(--pe-gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.pe .pe-contact__text {
	max-width: 600px;
}

.pe .pe-contact__hours {
	font-size: 14px;
	color: var(--pe-muted);
}

/* Kontakt z lekarzem i pytania */

.pe-doctor {
	background: var(--pe-navy);
	color: #fff;
}

.pe-doctor__inner {
	padding-top: clamp(64px, 8vw, 120px);
	padding-bottom: clamp(64px, 8vw, 120px);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px clamp(32px, 7vw, 112px);
}

.pe-doctor__contacts,
.pe-doctor__faq {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pe-doctor__contacts {
	gap: 28px;
}

.pe-doctor__faq {
	gap: 8px;
}

.pe-doctor__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pe-doctor .pe-h2 {
	color: #fff;
}

.pe-doctor .pe-h3 {
	margin-bottom: 8px;
}

.pe .pe-doctor__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--pe-navy-line);
}

.pe-doctor__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 22px 0;
	border-top: 1px solid var(--pe-navy-line);
}

.pe-doctor__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pe-doctor__role {
	font-size: 14px;
	line-height: 1.4;
	color: #aebbd3;
}

.pe-doctor__value {
	font-family: var(--pe-display);
	font-weight: 600;
	font-size: clamp(20px, 1.8vw, 24px);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pe .pe-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	transition: background 0.15s, color 0.15s;
}

.pe .pe-pill-btn:hover {
	background: #fff;
	color: var(--pe-navy);
}

.pe .pe-pill-btn--accent {
	padding: 0 22px;
	border-color: var(--pe-orange);
	background: var(--pe-orange);
	color: var(--pe-navy-deep);
}

.pe .pe-pill-btn--accent:hover {
	background: #f37a1e;
	color: var(--pe-navy-deep);
}

.pe-faq {
	border-top: 1px solid var(--pe-navy-line);
}

.pe-faq:last-child {
	border-bottom: 1px solid var(--pe-navy-line);
}

.pe .pe-faq__question {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 16px 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.4;
	color: #fff;
}

.pe-faq__question::-webkit-details-marker {
	display: none;
}

.pe-faq__question .pe-icon {
	color: var(--pe-orange-light);
	transition: transform 0.2s;
}

.pe-faq[open] .pe-faq__question .pe-icon {
	transform: rotate(45deg);
}

.pe-faq__answer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 620px;
	padding-bottom: 20px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--pe-on-dark);
}

/*
 * Układ VC zeruje padding bezpośrednich dzieci .entry-content
 * (.vcv-content .entry-content > *), dlatego pionowe odstępy sekcji są
 * na elementach wewnętrznych. Poniżej: bez marginesów bocznych.
 */

.pe-page .vcv-content--header-footer .entry-content > .pe,
.pe-page .pe-main > .pe {
	margin-left: 0;
	margin-right: 0;
}

/* Ruch ograniczony. */

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

/* =========================================================================
 * Nagłówek i stopka serwisu (header-projekt.php, footer-projekt.php)
 * ========================================================================= */

.pe-site-header *,
.pe-site-footer * {
	box-sizing: border-box;
}

.pe-site-header ul,
.pe-site-footer ul,
.pe-site-header ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pe-site-header p,
.pe-site-footer p {
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: left;
}

.pe-site-header img,
.pe-site-footer img {
	display: block;
	max-width: 100%;
	height: auto;
}

.pe-site-header .screen-reader-text,
.pe-site-footer .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pe-skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100000;
	padding: 10px 16px;
	border-radius: 0 0 10px 10px;
	background: #1a2b51;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
}

.pe-skip-link:focus {
	top: 0;
}

/* Menu mobilne serwisu (Morph) otwiera przycisk w nagłówku. */
.pe-page .morph-main-menu-button-wrapper {
	display: none !important;
}

.pe-site-header__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--pe-gutter);
}

.pe-site-header {
	position: relative;
	z-index: 60;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	color: var(--pe-navy);
}

.pe-site-header a {
	color: inherit;
}

.pe-site-header__inner--top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 14px;
}

.pe-site-header__tabs {
	display: flex;
	gap: 4px;
}

.pe-site-header .pe-site-header__tab {
	padding: 7px 16px;
	border-radius: 6px;
	background: #e4e8ee;
	color: #4a5468;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	transition: background 0.15s, color 0.15s;
}

.pe-site-header .pe-site-header__tab:hover {
	background: #d3d9e2;
	color: var(--pe-navy);
}

.pe-site-header .pe-site-header__tab.is-active {
	background: var(--pe-navy);
	color: #fff;
}

.pe-site-header__logo {
	display: block;
	justify-self: center;
}

.pe-site-header__logo img {
	width: auto;
	height: 58px;
}

.pe-site-header__aside {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

.pe-site-header__phone {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pe-site-header__phone-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pe-mist-strong);
	color: var(--pe-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pe-site-header__phone-text,
.pe-site-header__account {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.pe-site-header small {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pe-orange-text);
}

.pe-site-header__phone-text strong {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.pe-site-header .pe-site-header__account {
	padding: 7px 14px;
	border: 1px solid var(--pe-line);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(26, 43, 81, 0.06);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pe-site-header .pe-site-header__account:hover {
	border-color: var(--pe-navy);
	box-shadow: 0 4px 14px rgba(26, 43, 81, 0.12);
}

.pe-site-header__account span {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.pe-site-header__mobile {
	display: none;
}

.pe-site-header__bar {
	border-top: 1px solid #eef1f5;
}

.pe-site-header__inner--bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.pe-site-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 22px;
}

.pe-site-header__menu a {
	display: block;
	padding: 14px 0 12px;
	border-bottom: 2px solid transparent;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--pe-navy);
	white-space: nowrap;
	transition: color 0.15s, border-color 0.15s;
}

.pe-site-header__menu a b {
	font-weight: 700;
}

.pe-site-header__menu a:hover,
.pe-site-header__menu .current-menu-item > a {
	color: var(--pe-orange-text);
	border-bottom-color: var(--pe-orange);
}

.pe-site-header__tools {
	display: flex;
	align-items: center;
	gap: 18px;
}

.pe-social {
	display: flex;
	gap: 8px;
}

.pe-social a {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.pe-social svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.pe-site-header__search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.pe-site-header .pe-site-header__search input {
	width: 210px;
	height: 34px;
	padding: 0 38px 0 14px;
	border: 1px solid #c9d3e0;
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	color: var(--pe-navy);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pe-site-header .pe-site-header__search input:focus {
	border-color: var(--pe-orange);
	box-shadow: 0 0 0 3px rgba(236, 103, 3, 0.15);
}

.pe-site-header .pe-site-header__search button {
	position: absolute;
	right: 3px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pe-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.pe-site-header__crumbs {
	background: #74839c;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
}

.pe-site-header__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px 6px;
	min-height: 34px;
	padding: 7px 0;
}

.pe-site-header__crumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pe-site-header__crumbs li + li::before {
	content: "/";
	opacity: 0.7;
}

.pe-site-header__crumbs a {
	display: flex;
	align-items: center;
	color: #fff;
	opacity: 0.9;
}

.pe-site-header__crumbs a:hover {
	opacity: 1;
	text-decoration: underline !important;
}

.pe-site-header a:focus-visible,
.pe-site-header button:focus-visible,
.pe-site-footer a:focus-visible {
	outline: 3px solid var(--pe-orange);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (max-width: 1179px) {
	.pe-site-header__menu {
		gap: 0 16px;
	}

	.pe-site-header .pe-site-header__search input {
		width: 170px;
	}
}

@media (max-width: 899px) {
	.pe-site-header__inner--top {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.pe-site-header__tabs,
	.pe-site-header__aside {
		display: none;
	}

	.pe-site-header__logo img {
		height: 30px;
	}

	.pe-site-header__mobile {
		display: flex;
		gap: 4px;
	}

	.pe-site-header .pe-site-header__icon-btn {
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: transparent;
		color: var(--pe-navy);
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}

	.pe-site-header .pe-site-header__burger {
		background: var(--pe-mist-strong);
	}

	/* Bez Morpha: lista menu po kliknięciu przycisku. */
	.pe-site-header__bar {
		display: none;
	}

	.pe-site-header__bar.is-open {
		display: block;
	}

	.pe-site-header__inner--bar,
	.pe-site-header__menu {
		flex-direction: column;
		align-items: stretch;
	}

	.pe-site-header__menu a {
		padding: 12px 0;
		border-bottom: 1px solid #eef1f5;
	}

	.pe-site-header__tools {
		padding: 12px 0 16px;
	}

	.pe-site-header .pe-site-header__search,
	.pe-site-header .pe-site-header__search input {
		width: 100%;
	}

	.pe-site-header__crumbs ol {
		justify-content: flex-start;
	}
}

/* Stopka */

.pe-site-footer {
	background: #142b4d;
	color: #c6d0e2;
	font-size: 14px;
	line-height: 1.6;
}

.pe-site-footer a {
	color: #fff;
	transition: color 0.15s;
}

.pe-site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) var(--pe-gutter) 28px;
}

.pe-site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
}

.pe-site-footer__brand {
	flex: 1.5 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pe-site-footer__col {
	flex: 1 1 210px;
	min-width: 0;
}

.pe-site-footer__logo img {
	width: auto;
	height: 36px;
}

.pe-site-footer .pe-site-footer__about {
	max-width: 380px;
}

.pe-site-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pe-site-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.pe-site-footer__contact .pe-icon {
	margin-top: 2px;
	color: var(--pe-orange-light);
}

.pe-site-footer__social {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 4px;
	font-size: 13px;
	color: #9faecb;
}

.pe-site-footer .pe-social a {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
}

.pe-site-footer .pe-social a:hover {
	border-color: var(--pe-orange);
	background: var(--pe-orange);
}

.pe-site-footer .pe-site-footer__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--pe-display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: #fff;
	text-align: left;
}

.pe-site-footer__register li + li,
.pe-site-footer__phones li + li {
	border-top: 1px solid #2a4268;
}

.pe-site-footer__register a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-weight: 600;
	line-height: 1.35;
}

.pe-site-footer__register a > span:last-child {
	display: flex;
	flex-direction: column;
}

.pe-site-footer__register small {
	font-size: 12px;
	font-weight: 400;
	color: #9faecb;
}

.pe-site-footer__register-icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--pe-orange-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.pe-site-footer__register-icon--accent {
	background: var(--pe-orange);
	color: var(--pe-navy-deep);
}

.pe-site-footer__register a:hover small {
	color: #c6d0e2;
}

.pe-site-footer__phones li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 12px;
	padding: 8px 0;
}

.pe-site-footer__phones span {
	font-size: 13px;
	color: #9faecb;
}

.pe-site-footer__phones a {
	font-weight: 600;
	white-space: nowrap;
}

.pe-site-footer__links li {
	padding: 5px 0;
}

.pe-site-footer__links a {
	color: #dce3f0;
	line-height: 1.45;
}

.pe-site-footer__links a:hover,
.pe-site-footer__contact a:hover,
.pe-site-footer__phones a:hover {
	color: var(--pe-orange-light);
}

.pe-site-footer__nfz {
	display: inline-block;
	margin-top: 22px;
}

.pe-site-footer__nfz img {
	width: 132px;
	opacity: 0.92;
}

.pe-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	margin-top: clamp(40px, 5vw, 56px);
	padding-top: 20px;
	border-top: 1px solid #2a4268;
	font-size: 12px;
	color: #9faecb;
}

.pe-site-footer .pe-site-footer__bottom p:first-child {
	flex: 1 1 520px;
}

/* =========================================================================
 * Stopka Visual Composera w stylu projektu (footer-projekt.php)
 *
 * Treść edytuje się w VC (Headers & Footers → „Stopka”) – tu tylko wygląd.
 * Selektory po klasach elementów VC, nie po ID (el-…), żeby zwykłe zmiany
 * treści w VC ich nie psuły. !important nadpisuje style wpisane przez VC
 * w atrybutach style; ID #pe-stopka przebija reguły VC po ID elementów
 * (#el-…, też z !important). Działa tylko na stronach projektu.
 * ========================================================================= */

.pe-page #pe-stopka {
	background: var(--pe-navy-deep, #142b4d);
	background: #142b4d;
	color: #c6d0e2;
	font-family: "Poppins", "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
	-webkit-hyphens: none;
	hyphens: none;
}

.pe-page #pe-stopka .vce-row,
.pe-page #pe-stopka .vce-content-background-container {
	background-color: transparent !important;
	background-image: none !important;
}

/* Cienka linia nad stopką (wiersz z samym separatorem) – zbędna na granacie. */
.pe-page #pe-stopka .vce-row-container:has(.vce-separator):not(:has(.vce-text-block, .vce-raw-html, img)) {
	display: none;
}

/* Główny wiersz: szerokość jak w projekcie. */
.pe-page #pe-stopka .vce-row[data-vce-full-width="true"]:not([data-vce-stretch-content="true"]) > .vce-row-content {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 40px) 28px !important;
}

.pe-page #pe-stopka .vce-row--col-gap-75 > .vce-row-content {
	column-gap: 56px;
}

/* Teksty: krój, kolor, wyrównanie. */
.pe-page #pe-stopka p,
.pe-page #pe-stopka span,
.pe-page #pe-stopka li,
.pe-page #pe-stopka a {
	font-family: "Poppins", "Segoe UI", Arial, sans-serif !important;
	color: #c6d0e2 !important;
	text-align: left !important;
	letter-spacing: 0 !important;
}

.pe-page #pe-stopka p {
	margin: 0 0 12px;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

.pe-page #pe-stopka .vce-text-block span {
	font-size: 14px !important;
	line-height: 1.6 !important;
}

.pe-page #pe-stopka a {
	text-decoration: none !important;
	transition: color 0.15s;
}

.pe-page #pe-stopka a:hover,
.pe-page #pe-stopka a:hover span {
	color: #f59a4c !important;
}

/* Tytuły kolumn: blok tekstu z linią hr. */
.pe-page #pe-stopka .vce-text-block:has(hr) p,
.pe-page #pe-stopka .vce-text-block:has(hr) p span {
	margin: 0 !important;
	font-family: "Figtree", "Helvetica Neue", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.06em !important;
	color: #fff !important;
}

.pe-page #pe-stopka hr {
	height: 1px;
	margin: 12px 0 14px !important;
	border: 0 !important;
	background: #2a4268 !important;
	opacity: 1;
}

.pe-page #pe-stopka .vce-text-block:has(hr) {
	margin-top: 8px;
}

/* Kontakty i numery (bloki raw HTML: ikona + numer + podpis). */
.pe-page #pe-stopka .vce-raw-html a,
.pe-page #pe-stopka .vce-raw-html > .vce-raw-html-wrapper > div {
	display: block;
}

.pe-page #pe-stopka .vce-raw-html div:has(> img) {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 8px 0 !important;
}

#pe-stopka .vce-raw-html-wrapper {
	padding: 0 !important;
}

#pe-stopka .stopka-text br {
	display: none;
}

.pe-page #pe-stopka .vce-raw-html img {
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.7;
}

.pe-page #pe-stopka .stopka-text {
	display: flex !important;
	flex-direction: column;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #fff !important;
	white-space: normal;
}

.pe-page #pe-stopka .stopka-text > span {
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.03em !important;
	color: #9faecb !important;
}

.pe-page #pe-stopka .vce-col:has(.vce-text-block hr) .vce-raw-html + .vce-raw-html div:has(> img) {
	border-top: 1px solid #2a4268;
}

/* Lista „Ważne informacje”. */
.pe-page #pe-stopka ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.pe-page #pe-stopka li {
	margin: 0 !important;
	padding: 5px 0 !important;
	list-style: none !important;
}

.pe-page #pe-stopka li::before,
.pe-page #pe-stopka li::marker {
	content: none;
}

.pe-page #pe-stopka li a,
.pe-page #pe-stopka li a span {
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: #dce3f0 !important;
}

/* Przycisk „Rejestracja na wizytę w poradni”. */
.pe-page #pe-stopka .vce-button--style-basic-container {
	text-align: left !important;
	margin: 8px 0 !important;
}

.pe-page #pe-stopka a.vce-button--style-basic {
	display: inline-flex !important;
	align-items: center;
	min-height: 46px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ec6703 !important;
	color: #111c36 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.pe-page #pe-stopka a.vce-button--style-basic:hover {
	background: #f37a1e !important;
	color: #111c36 !important;
}

/* Separatory w kolumnach. */
.pe-page #pe-stopka .vce-separator {
	border-color: #2a4268 !important;
	color: #2a4268 !important;
}

.pe-page #pe-stopka .vce-separator::before,
.pe-page #pe-stopka .vce-separator::after {
	border-color: #2a4268 !important;
}

/* Logo, NFZ, ikony społecznościowe. */
.pe-page #pe-stopka .vce-single-image-container {
	text-align: left !important;
}

.pe-page #pe-stopka .vce-single-image-wrapper,
.pe-page #pe-stopka .vce-single-image-container > .vce {
	margin-left: 0 !important;
}

.pe-page #pe-stopka img[src*="logo"] {
	width: auto !important;
	max-height: 36px;
}

.pe-page #pe-stopka img[src*="NFZ"] {
	width: 132px !important;
	height: auto !important;
	opacity: 0.92;
}

.pe-page #pe-stopka .vce-social-profile-icons {
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow: visible !important;
	text-align: left !important;
}

.pe-page #pe-stopka .vce-social-profile-icons-inner {
	margin: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: flex-start !important;
	gap: 10px;
}

.pe-page #pe-stopka .vce-social-profile-icon {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	line-height: 0;
	transition: transform 0.15s;
}

.pe-page #pe-stopka .vce-social-profile-icon:hover {
	transform: translateY(-2px);
}

.pe-page #pe-stopka .vce-social-profile-icon svg {
	width: 34px !important;
	height: 34px !important;
}

.pe-page #pe-stopka .vce-social-profile-icon svg * {
	fill: #fff !important;
}

/*
 * Na hover VC podmienia ikonę na wersję z kółkiem i znakiem jako osobnymi
 * kształtami – w jednym kolorze znak znikał. Zostaje wersja z wyciętym
 * znakiem, zmienia się tylko jej kolor.
 */
.pe-page #pe-stopka .vce-social-icon-svg .vce-social-icon-svg--default {
	opacity: 1 !important;
}

.pe-page #pe-stopka .vce-social-icon-svg .vce-social-icon-svg--active {
	opacity: 0 !important;
}

.pe-page #pe-stopka .vce-social-profile-icon:hover svg *,
.pe-page #pe-stopka .vce-social-profile-icon:focus-visible svg * {
	fill: #f59a4c !important;
}

.pe-page #pe-stopka .vce-social-profile-icon:focus-visible {
	outline: 3px solid #f59a4c;
	outline-offset: 3px;
	border-radius: 50%;
}

/* Ostatnia kolumna głównego wiersza: copyright pod kreską. */
.pe-page #pe-stopka .vce-row-container:has(.vce-text-block hr) .vce-row-content > .vce-col:last-child {
	margin-top: clamp(32px, 4vw, 48px);
}

.pe-page #pe-stopka .vce-row-container:has(.vce-text-block hr) .vce-row-content > .vce-col:last-child .vce-col-inner {
	padding-top: 20px !important;
	border-top-color: #2a4268 !important;
}

.pe-page #pe-stopka .vce-row-container:has(.vce-text-block hr) .vce-row-content > .vce-col:last-child p,
.pe-page #pe-stopka .vce-row-container:has(.vce-text-block hr) .vce-row-content > .vce-col:last-child span,
.pe-page #pe-stopka .vce-row-container:has(.vce-text-block hr) .vce-row-content > .vce-col:last-child a {
	font-size: 12px !important;
	color: #9faecb !important;
}
