/* Kolory projektu oraz wspólne elementy interfejsu. */
:root {
	--gw-navy: #141654;
	--gw-muted: #687082;
	--gw-border: #dce1ea;
	--gw-surface: #edf1f7;
	--gw-hover: #dfe6f3;
}
.gw-header, .gw-footer {
	color: var(--gw-navy);
	font-family: 'Segoe UI', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.5;
}
.gw-header *, .gw-footer * { box-sizing: border-box; }
.gw-header a, .gw-footer a { text-decoration: none; }
.gw-header p, .gw-footer p, .gw-footer h2, .gw-footer h3, .gw-footer dl, .gw-footer dd { margin: 0; }
.gw-container { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.gw-icon { width: 23px; height: 23px; flex-shrink: 0; }
.gw-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 15px;
	min-height: 46px; padding: 12px 21px; border: 1px solid var(--gw-navy);
	border-radius: 5px; background: var(--gw-navy); color: #fff; font-size: 16px;
	font-weight: 600; line-height: 1.3; text-align: center;
}
.gw-button .gw-icon { width: 18px; height: 18px; }
.gw-button--outline { color: var(--gw-navy); border-color: #a6aec0; background: transparent; }
.gw-header { position: relative; z-index: 100; background: #fff; }
.gw-brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; padding-block: 15px; }
.gw-brand { min-width: 0; }
.gw-brand a { display: block; font-weight: 700; }
.gw-brand .custom-logo { display: block; width: 370px; max-width: 100%; max-height: none; height: auto; }
.gw-header-actions { display: flex; align-items: center; gap: 32px; }
.gw-header-note { color: var(--gw-muted); font-size: 15px; }
.gw-header-actions .gw-button { min-height: 48px; padding-inline: 26px; }
.gw-nav-bar { border-top: 1px solid #e7eaf0; border-bottom: 1px solid var(--gw-border); }
.gw-nav-inner { display: flex; align-items: center; gap: 24px; min-height: 54px; position: relative; }
.gw-navigation { flex: 1; min-width: 0; }
.gw-menu, .gw-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.gw-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gw-menu li { position: relative; }
.gw-menu a { display: block; padding: 16px 0; font-size: 15px; font-weight: 600; }
.gw-menu > li > a { white-space: nowrap; }
.gw-menu .current-menu-item > a, .gw-menu .current-menu-ancestor > a { font-weight: 700; }
.gw-menu .sub-menu { display: none; position: absolute; inset: 100% auto auto 0; min-width: 230px; padding: 8px 0; background: #fff; border: 1px solid var(--gw-border); box-shadow: 0 8px 24px #14165414; z-index: 2; }
.gw-menu .sub-menu a { padding: 10px 18px; }
.gw-menu .sub-menu .sub-menu { inset: 0 auto auto 100%; }
.gw-menu > li:last-child .sub-menu { right: 0; left: auto; }
.gw-header:not(.gw-enhanced) .gw-menu li:hover > .sub-menu,
.gw-header:not(.gw-enhanced) .gw-menu li:focus-within > .sub-menu,
.gw-menu li.gw-submenu-open > .sub-menu { display: block; }
.gw-menu li.menu-item-has-children > a { padding-right: 20px; }
.gw-submenu-toggle { position: absolute; right: 0; top: 11px; display: grid; place-items: center; width: 24px; height: 32px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.gw-submenu-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.gw-submenu-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
.gw-menu .sub-menu .gw-submenu-toggle { right: 4px; top: 5px; }
.gw-search { flex-shrink: 0; margin-left: auto; }
.gw-search summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; list-style: none; border-left: 1px solid #e3e7ef; }
.gw-search summary::-webkit-details-marker { display: none; }
.gw-search-panel { position: absolute; top: 100%; right: 0; width: min(450px, 100%); padding: 20px; background: #fff; border: 1px solid var(--gw-border); box-shadow: 0 8px 24px #14165414; z-index: 3; }
.gw-search .search-form { margin: 0; }
.gw-search .search-form__field { min-width: 0; }
.gw-menu-toggle { display: none; }
.gw-footer { margin-top: auto; }
.gw-help { background: #edf1f7; border-block: 1px solid #dce2ec; }
.gw-help-inner { display: flex; align-items: center; gap: 24px; padding-block: 32px; min-height: 144px; }
.gw-help-icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border: 1px solid #c9d2e2; border-radius: 50%; }
.gw-help-icon .gw-icon { width: 26px; height: 26px; }
.gw-help h2, .gw-hours h2 { font-size: 25px; line-height: 1.25; font-weight: 650; letter-spacing: -.4px; }
.gw-help-copy h2 { margin-bottom: 6px; }
.gw-help-copy p { color: var(--gw-muted); font-size: 16px; }
.gw-help-actions { display: flex; gap: 14px; margin-left: auto; flex-shrink: 0; }
.gw-hours { padding-block: 44px 40px; background: #f8f9fb; }
.gw-hours-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.gw-hours-heading p { color: var(--gw-muted); font-size: 15px; }
.gw-hours-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.gw-department { padding-right: 23px; border-right: 1px solid var(--gw-border); }
.gw-department:last-child { padding-right: 0; border: 0; }
.gw-department h3 { font-size: 18px; line-height: 1.35; margin-bottom: 20px; font-weight: 650; }
.gw-hour-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; margin-bottom: 10px; }
.gw-hour-row dt { color: #525d71; }
.gw-hour-row dd { text-align: right; font-weight: 600; max-width: 52%; overflow-wrap: anywhere; }
.gw-footer-navy { padding-block: 42px 26px; background: var(--gw-navy); color: #fff; }
.gw-footer-grid { display: grid; grid-template-columns: 1.2fr .82fr 1.2fr; gap: 72px; padding-bottom: 34px; }
.gw-footer-grid > * { min-width: 0; }
.gw-footer-logo { display: block; width: 310px; max-width: 100%; margin-bottom: 19px; }
.gw-footer-logo img { width: 100%; height: auto; }
.gw-footer-logo--fallback img { filter: brightness(0) invert(1); }
.gw-footer-navy p { font-size: 14px; line-height: 1.65; color: #d0d4e2; }
.gw-footer-navy h2 { font-size: 16px; line-height: 1.35; font-weight: 700; margin-bottom: 14px; }
.gw-footer-contact p + p { margin-top: 5px; }
.gw-text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 13px; }
.gw-text-link .gw-icon { width: 16px; height: 16px; }
.gw-footer-links { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: #e2e5ef; }
.gw-footer-bottom { border-top: 1px solid #3b3d70; padding-top: 21px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px 38px; }
.gw-footer-bottom p, .gw-legal-links { font-size: 13px; color: #c8cddd; }
.gw-legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.gw-footer-bottom .gw-credit { margin-left: auto; }

/* Linia wchodzi od lewej; po opuszczeniu linku chowa się w prawo.
 * Tło działa również na odnośnikach łamanych na kilka wierszy.
 * Logotypy, grafiki i przyciski nie otrzymują podkreślenia. */
.site a:where(:not(.gw-button, .wp-block-button__link, .wp-element-button, .button, .custom-logo-link, .gw-footer-logo, .screen-reader-text)):not(:has(img, picture)) {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0% 1px;
	background-position: right bottom;
	transition: background-size .25s ease;
}
.site a:where(:not(.gw-button, .wp-block-button__link, .wp-element-button, .button, .custom-logo-link, .gw-footer-logo, .screen-reader-text)):not(:has(img, picture)):is(:hover, :focus-visible) {
	text-decoration: none;
	background-size: 100% 1px;
	background-position: left bottom;
}
/* Pełny wiersz pozostaje klikalny, ale linia obejmuje tylko etykietę. */
.site .gw-header .gw-menu a, .site .gw-header .gw-menu a:is(:hover, :focus-visible) { background-image: none; background-size: 0% 1px; }
.gw-menu__label { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 1px; background-position: right bottom; transition: background-size .25s ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gw-menu a:is(:hover, :focus-visible) .gw-menu__label { background-size: 100% 1px; background-position: left bottom; }

/* Przyciski: wspólny efekt również dla natywnych przycisków Gutenberga. */
.site :is(.gw-button, .wp-block-button__link, .wp-element-button, .button, button[type="submit"]) {
	background-color: var(--gw-navy);
	color: #fff;
	border-color: var(--gw-navy);
	text-decoration: none;
	transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}
.site .gw-button--outline, .site .is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--gw-navy);
	border-color: #a6aec0;
}
.site :is(.gw-button, .wp-block-button__link, .wp-element-button, .button, button[type="submit"]):is(:hover, :focus-visible) {
	background-color: transparent;
	color: var(--gw-navy);
	border-color: var(--gw-navy);
	text-decoration: none;
}
.site .gw-button--outline:is(:hover, :focus-visible),
.site .is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background-color: transparent;
	color: var(--gw-navy);
	border-color: var(--gw-navy);
}

/* Wyszukiwarka w nagłówku, na wynikach wyszukiwania i stronie 404. */
.gw-search summary {
	color: var(--gw-navy);
	background: transparent;
}
.gw-search summary:is(:hover, :focus-visible), .gw-search[open] summary {
	background: transparent;
	color: var(--gw-navy);
}
.gw-search summary .gw-icon circle { fill: transparent; transition: fill .5s ease; }
.gw-search summary:is(:hover, :focus-visible) .gw-icon circle,
.gw-search[open] summary .gw-icon circle { fill: currentColor; }
.gw-search-panel {
	padding: 18px;
	border-top: 3px solid var(--gw-navy);
	border-radius: 0 0 6px 6px;
	background: #f8f9fb;
	box-shadow: 0 12px 30px #1416541a;
}
.site .search-form { gap: 10px; align-items: stretch; }
.site .search-form__label { min-width: 0; }
.site .search-form__field {
	min-width: 0;
	border: 1px solid #a6aec0;
	border-radius: 5px;
	background: #fff;
	color: var(--gw-navy);
	font: inherit;
	font-size: 16px;
	transition: border-color .5s ease;
}
.site .search-form__field::placeholder { color: #626b7d; opacity: 1; }
.site .search-form__field:focus-visible {
	border-color: var(--gw-navy);
	outline: none;
	box-shadow: none;
}
.site .search-form__submit {
	border: 1px solid var(--gw-navy);
	border-radius: 5px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
}
/* Pola formularzy: pojedynczy border zamiast dodatkowego pierścienia.
 * Przyciski, linki i przełączniki zachowują własne oznaczenie fokusu. */
.site :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"], [type="range"], [type="color"]), textarea, select):is(:focus, :focus-visible) {
	outline: none;
	box-shadow: none;
	border-color: var(--gw-navy);
}

/* Pressidium: istniejący mechanizm zmiennych parenta, bez zmiany zgód. */
#cc--main, .pressidium-cc-theme, pressidium-floating-button {
	--cc-font-family: 'Segoe UI', Arial, sans-serif;
	--cc-bg: #fff;
	--cc-text: var(--gw-navy);
	--cc-btn-primary-bg: var(--gw-navy);
	--cc-btn-primary-text: #fff;
	--cc-btn-primary-hover-bg: transparent;
	--cc-btn-primary-hover-text: var(--gw-navy);
	--cc-btn-secondary-bg: var(--gw-surface);
	--cc-btn-secondary-text: var(--gw-navy);
	--cc-btn-secondary-hover-bg: transparent;
	--cc-btn-secondary-hover-text: var(--gw-navy);
	--cc-toggle-bg-off: #687082;
	--cc-toggle-bg-on: var(--gw-navy);
	--cc-toggle-bg-readonly: #8892ab;
	--cc-toggle-knob-bg: #fff;
	--cc-toggle-knob-icon-color: #fff;
	--cc-block-text: #525d71;
	--cc-cookie-category-block-bg: var(--gw-surface);
	--cc-cookie-category-block-bg-hover: var(--gw-hover);
	--cc-section-border: var(--gw-border);
	--cc-cookie-table-border: var(--gw-border);
	--cc-overlay-bg: var(--gw-navy);
	--cc-overlay-opacity: .6;
	--cc-webkit-scrollbar-bg: #a6aec0;
	--cc-webkit-scrollbar-bg-hover: var(--gw-navy);
	--cc-btn-floating-bg: var(--gw-navy);
	--cc-btn-floating-icon: #fff;
	--cc-btn-floating-hover-bg: var(--gw-hover);
	--cc-btn-floating-hover-icon: var(--gw-navy);
	--cc-border-radius: 6px;
	--cc-btn-border-radius: 5px;
	--cc-consent-modal-box-shadow: 0 12px 36px #14165426;
}
#cc--main :is(a, .cc-link) {
	border-bottom: 0;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0% 1px;
	background-position: right bottom;
	transition: background-size .25s ease;
}
#cc--main :is(a, .cc-link):is(:hover, :focus-visible) {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: left bottom;
}
#cc--main :is(button, a):focus-visible { outline: 2px solid var(--gw-navy); outline-offset: 3px; }
#cc--main .c-tgl:focus-visible ~ .c-tg { outline: 2px solid var(--gw-navy); outline-offset: 3px; }
#cc--main .c-bn:not(.cc-link) {
	transition: background-color .5s ease, color .5s ease, box-shadow .5s ease !important;
}
#cc--main .c-bn:not(.cc-link):is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--gw-navy); }
/* Ikona zamknięcia wtyczki używa pseudo-elementów zamiast currentColor. */
#cc--main #s-c-bn:is(:hover, :focus-visible)::before,
#cc--main #s-c-bn:is(:hover, :focus-visible)::after { background: var(--gw-navy); }

@media (prefers-reduced-motion: reduce) {
	.site a, .site button[type="submit"], .gw-search summary .gw-icon circle,
	.site :is(input, textarea, select),
	#cc--main :is(a, button, .cc-link), #cc--main .c-bn:not(.cc-link) { transition: none !important; }
}
@media (max-width: 1199px) {
	.gw-header-note { display: none; }
	.gw-nav-inner { flex-wrap: wrap; gap: 0; }
	.gw-menu-toggle:not([hidden]) { display: flex; align-items: center; gap: 16px; min-height: 54px; border: 0; padding: 10px 0; background: transparent; color: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
	.gw-navigation { flex-basis: 100%; order: 3; padding-bottom: 14px; }
	/* Klasa gw-js powstaje w head, przed pierwszym renderowaniem strony.
	 * Zwinięcie menu nie może zależeć od późniejszego DOMContentLoaded. */
	.gw-js .gw-header .gw-navigation { display: none; }
	.gw-js .gw-header .gw-navigation.is-open { display: block; }
	.gw-menu { display: block; }
	.gw-menu a { padding: 12px 8px; }
	.gw-menu > li > a { white-space: normal; }
	.gw-menu .sub-menu, .gw-menu .sub-menu .sub-menu { position: static; box-shadow: none; border: 0; border-left: 1px solid var(--gw-border); margin-left: 16px; min-width: 0; }
	.gw-header:not(.gw-enhanced) .gw-menu .sub-menu { display: block; }
	.gw-menu li:hover > .sub-menu, .gw-menu li:focus-within > .sub-menu { display: none; }
	.gw-menu li.gw-submenu-open > .sub-menu { display: block; }
	.gw-submenu-toggle, .gw-menu .sub-menu .gw-submenu-toggle { width: 44px; height: 44px; top: 0; right: 0; }
	.gw-menu li.menu-item-has-children > a { padding-right: 48px; }
	.gw-help-inner { flex-wrap: wrap; }
	.gw-help-actions { margin-left: 76px; }
	.gw-footer-grid { gap: 36px; }
	.gw-hours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gw-department:nth-child(2n) { border: 0; padding-right: 0; }
}
@media (max-width: 599px) {
	.gw-container { width: calc(100% - 32px); }
	.gw-brandbar { flex-wrap: wrap; gap: 14px; padding-block: 20px; }
	.gw-brand { width: 100%; }
	.gw-brand .custom-logo { width: min(310px, 100%); }
	.gw-header-actions { width: 100%; }
	.gw-header-actions .gw-button { min-height: 44px; padding-inline: 18px; font-size: 14px; }
	.gw-help-inner { gap: 16px; padding-block: 28px; }
	.gw-help-copy { flex: 1; min-width: 0; }
	.gw-help h2, .gw-hours h2 { font-size: 22px; }
	.gw-help-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
	.gw-help-actions .gw-button { flex: 1 1 auto; font-size: 14px; }
	.gw-hours-heading { display: block; margin-bottom: 26px; }
	.gw-hours-heading p { margin-top: 10px; }
	.gw-hours-grid, .gw-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.gw-department { border: 0; border-bottom: 1px solid var(--gw-border); padding: 0 0 18px; }
	.gw-department:nth-child(2n) { border-bottom: 1px solid var(--gw-border); }
	.gw-department:last-child { border: 0; padding: 0; }
	.gw-hours { padding-block: 32px; }
	.gw-footer-navy { padding-top: 32px; }
	.gw-footer-bottom { flex-direction: column; gap: 14px; }
	.gw-footer-bottom .gw-credit { margin-left: 0; }
}

/* Sticky obejmuje wyłącznie pasek nawigacji; logo przewija się wraz ze stroną. */
.gw-header--sticky {
	position: sticky;
	top: calc(var(--gw-admin-offset, 0px) - var(--gw-brand-height, 0px));
	flex-shrink: 0;
}
html { scroll-padding-top: var(--gw-sticky-clearance, 16px); }
.gw-header--sticky .gw-nav-bar { background: #fff; box-shadow: 0 3px 10px #1416540d; }
@media (max-width: 1199px) {
	.gw-header--sticky.gw-enhanced .gw-navigation.is-open {
		max-height: calc(100dvh - var(--gw-admin-offset, 0px) - 70px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}
@media print {
	.gw-header--sticky { position: static; }
}
