/* =========================================================
   ZTM Kielce — Header
   Odtworzone 1:1 na podstawie projektu UI (Figma → screenshot).
   Kolory i wymiary odczytane bezpośrednio z dostarczonych grafik.
   ========================================================= */

:root {
	--ztm-navy: #00399c;       /* logo, przycisk szukaj, tekst aktywny w tabs */
	--ztm-navy-dark: #002a73;  /* hover / odcień głębszy */
	--ztm-blue-light: #8fb4e2; /* jasny diagonalny akcent w hero */
	--ztm-text-link: #00399c;  /* linki w górnym menu */
	--ztm-text-muted: #5b6472; /* tekst nieaktywny w placeholderach / ogólny */
	--ztm-tabs-text: #3a3b5f; /* tekst tabs (aktywne i nieaktywne) — ciemny navy-fiolet z Figmy */
	--ztm-white: #ffffff;
	--ztm-border-grey: #e1e5ea;
	--ztm-red-flag: #dc143c;

	/* Footer — celowo dużo ciemniejszy niż --ztm-navy: zapewnia kontrast WCAG AA
	   (8:1+) dla całego jasnego tekstu, każda kombinacja zmierzona matematycznie. */
	--ztm-footer-bg: #0d1b33;
	--ztm-footer-text: #9fb3d6;
	--ztm-footer-icon: #5b86c9;

	--ztm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--ztm-header-topbar-height: 80px;
	--ztm-hero-height: 300px;
	--ztm-tabs-overlap: 16px; /* tabs zaczyna się tuż na granicy dołu zdjęć, prawie bez nachodzenia */
	--ztm-content-width: 1350px; /* szerokość paska tabs ORAZ kontenera treści (placeholdery) — muszą się zgadzać */

	/* Material Design elevation scale (dp) — używana konsekwentnie dla wszystkich
	   uniesionych powierzchni (karty, panele, dropdowny), zamiast doraźnych box-shadow.
	   Wartości zgodne ze specyfikacją MD: https://m3.material.io/styles/elevation */
	--ztm-elevation-1: 0 1px 2px rgba(15, 35, 75, 0.08), 0 1px 3px 1px rgba(15, 35, 75, 0.06);
	--ztm-elevation-2: 0 1px 2px rgba(15, 35, 75, 0.1), 0 2px 6px 2px rgba(15, 35, 75, 0.08);
	--ztm-elevation-3: 0 1px 3px rgba(15, 35, 75, 0.12), 0 4px 8px 3px rgba(15, 35, 75, 0.1);
	--ztm-elevation-4: 0 2px 3px rgba(15, 35, 75, 0.12), 0 6px 10px 4px rgba(15, 35, 75, 0.12);

	/* Spacing grid 8px (bazowa jednostka MD) — skala dla marginesów/odstępów,
	   stosowana tam, gdzie wymiar nie pochodzi z bezpośredniego pomiaru Figmy. */
	--ztm-space-1: 8px;
	--ztm-space-2: 16px;
	--ztm-space-3: 24px;
	--ztm-space-4: 32px;
	--ztm-space-5: 40px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--ztm-font);
	color: #1c2230;
	
}

a {
	text-decoration: none;
	color: inherit;
}

/* =========================================================
   SKIP LINK — WCAG 2.4.1 (Bypass Blocks). Niewidoczny domyślnie,
   pojawia się tylko gdy użytkownik nawiguje klawiaturą (Tab) i na nim
   wyląduje fokus — pozwala pominąć logo/menu/tabsy i przejść do treści.
   ========================================================= */

.ztm-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	background: var(--ztm-navy);
	color: var(--ztm-white);
	padding: 14px 24px;
	border-radius: 0 0 8px 8px;
	font-family: var(--ztm-font);
	font-size: calc(16px * var(--ztm-font-scale, 1));
	font-weight: 600;
	transition: top 0.15s ease;
}

.ztm-skip-link:focus-visible {
	top: 0;
	outline: 3px solid var(--ztm-blue-light);
	outline-offset: -3px;
}

/* =========================================================
   WRAPPER
   ========================================================= */

.ztm-header {
	position: relative;
	width: 100%;
}

.ztm-container {
	max-width: calc(var(--ztm-content-width) + 60px); /* +60px = padding 30px z każdej strony, żeby realna treść = --ztm-content-width, tak jak pasek tabs */
	margin: 0 auto;
	padding: 0 30px;
}

/* =========================================================
   TOP BAR — logo, menu, akcesybilność, język, szukaj
   ========================================================= */

.ztm-topbar {
	background: var(--ztm-white);
	border-bottom: 1px solid var(--ztm-border-grey);
}

.ztm-topbar-inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
}

/* Logo — blok granatowy z ukośnym lewym/prawym brzegiem po prawej stronie */
.ztm-logo-block {
	background: var(--ztm-navy);
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 13px 35px 13px 18px;
	position: relative;
	flex-shrink: 0;
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
	margin-right: -22px; /* kompensacja skosu, żeby menu zaczynało się równo */
	margin-left: 0;
	z-index: 2;
}

/* Logo: oba obrazki w DOM, ale tylko jeden widoczny naraz — przełączane przez
   media query (≤750px), patrz sekcja RESPONSYWNOŚĆ niżej w tym pliku. */
.ztm-logo-full {
	height: 42px;
	width: auto;
	display: block;
}

.ztm-logo-mark-only {
	height: 42px;
	width: auto;
	display: none; /* domyślnie (desktop) schowany — widoczny tylko na mobile */
}

/* Nawigacja główna */
.ztm-nav {
	display: flex;
	align-items: center;
	flex: 1;
	padding-left: 45px;
	margin-left: 16px;
}

.ztm-nav ul {
	display: flex;
	align-items: center;
	gap: 35px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ztm-nav a {
	font-size: calc(17.5px * var(--ztm-font-scale, 1));
	font-weight: 600;
	color: var(--ztm-text-link);
	white-space: nowrap;
	transition: color 0.15s ease;
}

.ztm-nav a:hover,
.ztm-nav a:focus-visible {
	color: var(--ztm-navy-dark);
	text-decoration: underline;
}

/* Prawa strona top bara: rozmiar czcionki, język, szukaj */
.ztm-topbar-right {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-left: 25px;
	padding-right: 25px;
	flex-shrink: 0;
}

/* Przełącznik rozmiaru czcionki A- A A+ */
.ztm-font-size {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ztm-font-size button {
	border: 1px solid var(--ztm-border-grey);
	background: var(--ztm-white);
	color: var(--ztm-text-link);
	font-weight: 700;
	font-size: calc(16px * var(--ztm-font-scale, 1));
	border-radius: 5px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ztm-font-size button:hover {
	background: var(--ztm-navy);
	color: var(--ztm-white);
}

.ztm-divider {
	width: 1px;
	height: 28px;
	background: var(--ztm-border-grey);
}

/* Przełącznik języka */
.ztm-lang-switch {
	display: flex;
	align-items: center;
	gap: 13px;
}

.ztm-lang-switch a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: calc(16px * var(--ztm-font-scale, 1));
	font-weight: 600;
	color: var(--ztm-text-link);
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.ztm-lang-switch a.is-active,
.ztm-lang-switch a:hover {
	opacity: 1;
}

.ztm-lang-switch img {
	width: 25px;
	height: 18px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   DROPDOWN USTAWIEŃ — czcionka + język razem (ekrany średnie)
   ========================================================= */

.ztm-settings {
	position: relative;
	display: none; /* widoczne tylko w odpowiednim zakresie szerokości, patrz media queries */
}

.ztm-settings-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px solid var(--ztm-border-grey);
	background: var(--ztm-white);
	color: var(--ztm-text-link);
	width: 45px;
	height: 45px;
	padding: 0;
	border-radius: 7px;
	cursor: pointer;
}

.ztm-settings-toggle svg {
	width: 22px;
	height: 22px;
	stroke: var(--ztm-text-link);
	flex-shrink: 0;
}

.ztm-settings-toggle .ztm-chevron {
	width: 12px;
	height: 12px;
	transition: transform 0.15s ease;
}

.ztm-settings.is-open .ztm-chevron {
	transform: rotate(180deg);
}

.ztm-settings-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: var(--ztm-white);
	border-radius: 10px;
	box-shadow: 0 6px 12px rgba(15, 35, 75, 0.1), 0 1px 3px rgba(15, 35, 75, 0.08);
	padding: 12px;
	width: 165px;
	z-index: 30;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.ztm-settings.is-open .ztm-settings-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ztm-settings-group-label {
	font-size: calc(9.5px * var(--ztm-font-scale, 1));
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #aab3c2;
	margin: 0 0 6px;
}

/* Separator pomiędzy sekcjami "Rozmiar czcionki" i "Język" — zamiast samego
   marginesu, cienka linia daje wyraźniejszy podział na dwie grupy ustawień. */
.ztm-settings-divider {
	border: none;
	border-top: 1px solid #eef0f4;
	margin: 10px 0;
}

/* "Koryto" segmented-control: szare tło, w którym aktywny przycisk wyskakuje
   jako biała pastylka z delikatnym cieniem — czytelniejsza hierarchia niż
   jednolite obramowanie na każdym przycisku z osobna. */
.ztm-settings-group {
	display: flex;
	gap: 2px;
	background: #f1f3f8;
	border-radius: 7px;
	padding: 2px;
}

.ztm-settings-group button,
.ztm-settings-group a {
	display: flex;
	align-items: center;
	gap: 3px;
	flex: 1;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--ztm-text-muted);
	font-family: var(--ztm-font);
	font-size: calc(11px * var(--ztm-font-scale, 1));
	font-weight: 700;
	height: 24px;
	padding: 0 4px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ztm-settings-group button.is-active,
.ztm-settings-group a.is-active {
	background: var(--ztm-white);
	color: var(--ztm-navy);
	box-shadow: 0 1px 2px rgba(15, 35, 75, 0.15);
}

.ztm-settings-group img {
	width: 13px;
	height: 9px;
	object-fit: cover;
	border-radius: 1.5px;
}

/* Szukaj */
.ztm-search {
	display: flex;
	align-items: stretch;
	height: 45px;
}

.ztm-search input[type="search"] {
	width: 200px;
	border: 1px solid var(--ztm-border-grey);
	border-right: none;
	border-radius: 7px 0 0 7px;
	padding: 0 18px;
	font-size: calc(16px * var(--ztm-font-scale, 1));
	font-family: var(--ztm-font);
	color: #1c2230;
	outline: none;
}

.ztm-search input[type="search"]::placeholder {
	color: var(--ztm-text-muted);
}

.ztm-search input[type="search"]:focus {
	border-color: var(--ztm-navy);
}

.ztm-search button {
	width: 55px;
	background: var(--ztm-navy);
	border: none;
	border-radius: 0 7px 7px 0;
	color: var(--ztm-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ztm-search button:hover {
	background: var(--ztm-navy-dark);
}

.ztm-search svg {
	width: 20px;
	height: 20px;
}

/* =========================================================
   HERO — granatowy blok tekstowy (prosty prostokąt) + baner zdjęciowy,
   skalujący się/przesuwający przez background-size + background-position
   ========================================================= */

.ztm-hero {
	position: relative;
	height: var(--ztm-hero-height);
	overflow: hidden;
	background: var(--ztm-navy);
	display: flex;
}

/* Baner: jedno zdjęcie, bez clip-path/skosów — background-size:cover sprawia,
   że się skaluje/przesuwa wraz z szerokością ekranu, zamiast być przycinane
   pod konkretnym kątem. Podmień background-position, jeśli chcesz pokazywać
   inny fragment zdjęcia na różnych szerokościach (np. przez media query). */
.ztm-hero-photos {
	position: relative;
	flex: 1;
	min-width: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.9;
}

/* Blok tekstowy po lewej — teraz prosty prostokąt w kolorze navy, bez fali SVG. */
.ztm-hero-text-block {
	position: relative;
	background: var(--ztm-navy);
	height: 100%;
	width: 30%;
	min-width: 320px;
	max-width: 500px;
	flex-shrink: 0;
	z-index: 4;
}

.ztm-hero-text-content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 40px;
}

.ztm-hero-title {
	color: var(--ztm-white);
	font-size: calc(31px * var(--ztm-font-scale, 1));
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 20px 0;
}

.ztm-hero-divider {
	width: 45px;
	height: 2px;
	background: var(--ztm-blue-light);
	margin-bottom: 20px;
}

.ztm-hero-subtitle {
	color: var(--ztm-white);
	font-size: calc(17.5px * var(--ztm-font-scale, 1));
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.9;
	margin: 0;
}

/* =========================================================
   TABS — pasek zakładek "wystający" nad dolną krawędź hero
   ========================================================= */

.ztm-tabs-wrap {
	position: relative;
	z-index: 5;
	margin-top: calc(var(--ztm-tabs-overlap) * -1);
	padding: 0 30px 8px;
}

.ztm-tabs-scroll {
	width: var(--ztm-content-width);
	max-width: 100%;
	margin: 0 auto;
}

.ztm-tabs {
	background: var(--ztm-white);
	border-radius: 12px 12px 0 0;
	box-shadow: 0 -1px 2px rgba(15, 35, 75, 0.08), 0 -2px 6px 2px rgba(15, 35, 75, 0.06);
	display: flex;
	align-items: stretch;
	justify-content: space-between;
}

.ztm-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 21px 22px;
	font-size: calc(16px * var(--ztm-font-scale, 1));
	line-height: 1.25;
	font-weight: 600;
	color: var(--ztm-tabs-text);
	white-space: nowrap;
	border-bottom: 4px solid transparent;
	overflow: hidden;
	transition: color 0.15s ease, border-color 0.15s ease;
}

/* Lekki divider między zakładkami — nie dotyka pierwszej i nie sięga na całą wysokość */
.ztm-tab:not(:first-child)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 24px;
	background: var(--ztm-border-grey);
}

.ztm-tab svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	stroke: currentColor;
	stroke-width: 1.8;
}

.ztm-tab:hover {
	color: var(--ztm-navy);
}

.ztm-tab.is-active {
	color: var(--ztm-navy);
	border-bottom-color: var(--ztm-navy);
}

/* Ripple — Material Design "state layer" na kliknięciu. Span wstrzykiwany przez JS
   (zob. skrypt w header.php), animowany czystym CSS. Kolor dziedziczy z currentColor,
   więc na ciemnym i jasnym tle ripple ma zawsze odpowiedni odcień. */
.ztm-ripple {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: currentColor;
	opacity: 0.2;
	pointer-events: none;
	animation: ztm-ripple-anim 0.5s ease-out;
}

@keyframes ztm-ripple-anim {
	to {
		transform: scale(2.8);
		opacity: 0;
	}
}

/* Kontener musi mieć position:relative (punkt odniesienia dla ripple) i
   overflow:hidden (żeby animacja nie "wylewała się" poza krawędzie przycisku). */
.ztm-hamburger,
.ztm-settings-toggle,
.ztm-drawer-close,
.ztm-drawer a,
.ztm-font-size button {
	position: relative;
	overflow: hidden;
}

/* =========================================================
   HAMBURGER — przycisk widoczny tylko na mniejszych ekranach
   ========================================================= */

.ztm-hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: none;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 5px;
}

.ztm-hamburger svg {
	width: 30px;
	height: 30px;
	stroke: var(--ztm-navy);
}

/* =========================================================
   DRAWER — panel boczny mobilny (menu + tabs)
   ========================================================= */

.ztm-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 40, 0.45);
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}

.ztm-drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.ztm-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 375px;
	max-width: 84vw;
	background: var(--ztm-white);
	z-index: 41;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	box-shadow: -2px 0 3px rgba(15, 35, 75, 0.12), -6px 0 10px 4px rgba(15, 35, 75, 0.12);
}

.ztm-drawer.is-open {
	transform: translateX(0);
}

.ztm-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	border-bottom: 1px solid var(--ztm-border-grey);
}

.ztm-drawer-header span {
	font-weight: 700;
	color: var(--ztm-navy);
	font-size: calc(17.5px * var(--ztm-font-scale, 1));
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.ztm-drawer-close {
	border: none;
	background: transparent;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ztm-drawer-close svg {
	width: 25px;
	height: 25px;
	stroke: var(--ztm-text-muted);
}

.ztm-drawer nav {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}

.ztm-drawer-section-label {
	padding: 18px 25px 8px;
	font-size: calc(14px * var(--ztm-font-scale, 1));
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--ztm-text-muted);
}

.ztm-drawer a {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 25px;
	font-size: calc(17.5px * var(--ztm-font-scale, 1));
	font-weight: 600;
	color: #1c2230;
	border-bottom: 1px solid var(--ztm-border-grey);
}

.ztm-drawer a svg {
	width: 22px;
	height: 22px;
	stroke: var(--ztm-navy);
	flex-shrink: 0;
}

.ztm-drawer a.is-active {
	color: var(--ztm-navy);
	background: #f0f4fb;
}

.ztm-drawer-lang {
	display: flex;
	gap: 13px;
	padding: 13px 25px 20px;
}

.ztm-drawer-lang a,
.ztm-drawer-lang button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--ztm-border-grey);
	border-radius: 7px;
	background: var(--ztm-white);
	font-size: calc(16px * var(--ztm-font-scale, 1));
	font-weight: 600;
	font-family: var(--ztm-font);
	color: var(--ztm-text-link);
	cursor: pointer;
}

.ztm-drawer-lang a.is-active {
	border-color: var(--ztm-navy);
	background: #f0f4fb;
}

.ztm-drawer-lang img {
	width: 22px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body.ztm-drawer-locked {
	overflow: hidden;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

/* PRÓG 1 (≤1850px): rozmiar czcionki + język chowają się do jednego
   dropdownu "Ustawienia". Menu główne i search zostają na swoim miejscu.
   (Próg zmierzony na realnej szerokości pełnego topbara: logo + 6 linków menu
   + A-/A/A+ + separator + PL/EN + szukaj ≈ 1800px — próg ma margines nad tym.) */
@media (max-width: 1850px) {
	.ztm-font-size,
	.ztm-divider,
	.ztm-lang-switch {
		display: none;
	}

	.ztm-settings {
		display: block;
	}

	.ztm-nav {
		padding-left: 25px;
	}

	.ztm-nav ul {
		gap: 20px;
	}

	.ztm-search input[type="search"] {
		width: 165px;
	}
}

/* PRÓG 1B (≤1450px): menu główne ścieśnia się dalej (mniejszy gap, mniejszy
   padding), żeby dać więcej oddechu zanim w ogóle trzeba sięgnąć po hamburger. */
@media (max-width: 1560px) {
	.ztm-nav {
		padding-left: 15px;
	}

	.ztm-nav ul {
		gap: 14px;
	}

	.ztm-nav a {
		font-size: calc(15.5px * var(--ztm-font-scale, 1));
	}

	.ztm-search input[type="search"] {
		width: 140px;
	}
}

/* PRÓG 2 (≤1320px): menu główne i pasek tabs chowają się do panelu bocznego.
   Dropdown ustawień i szukaj zostają widoczne — tylko hamburger przybywa.
   (Próg zmierzony: ścieśnione menu + dropdown + szukaj ≈ 1207px — margines nad tym.) */
@media (max-width: 1438px) {
	.ztm-nav,
	.ztm-tabs-wrap {
		display: none;
	}

	.ztm-hamburger {
		display: flex;
	}

	.ztm-topbar-right {
		padding-left: 0;
		padding-right: 20px;
		margin-left: auto;
		gap: 13px;
	}

	.ztm-hero-text-block {
		width: 50%;
		min-width: 0;
		max-width: 500px;
	}

	.ztm-hero-text-content {
		padding: 0 50px 0 22px;
	}

	.ztm-hero-title {
		font-size: calc(22px * var(--ztm-font-scale, 1));
	}

	.ztm-hero-subtitle {
		font-size: calc(15px * var(--ztm-font-scale, 1));
	}

	.ztm-hero {
		height: 250px;
	}
}

@media (max-width: 950px) {
	.ztm-search input[type="search"] {
		width: 140px;
	}
}

@media (max-width: 750px) {
	.ztm-logo-full {
		display: none;
	}

	.ztm-logo-mark-only {
		display: block;
	}

	.ztm-logo-block {
		padding-right: 22px;
	}

	.ztm-hero {
		height: auto;
		display: flex;
		flex-direction: column;
	}

	.ztm-hero-photos {
		position: relative;
		height: 165px;
	}

	.ztm-hero-text-block {
		width: 100%;
		max-width: none;
		height: auto;
		padding: 25px 30px 30px;
	}

	.ztm-hero-text-content {
		padding: 0;
	}
}

/* =========================================================
   DOSTĘPNOŚĆ (WCAG 2.1 AA)
   ========================================================= */

/* 2.4.7 Focus Visible — jednolity, wysoko kontrastowy wskaźnik fokusu
   na każdym elemencie interaktywnym w headerze. outline (nie border/box-shadow)
   żeby nigdy nie przesuwał layoutu i zawsze rysował się NAD sąsiednimi elementami. */
.ztm-header a:focus-visible,
.ztm-header button:focus-visible,
.ztm-header input:focus-visible {
	outline: 3px solid var(--ztm-navy);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Na granatowym tle (logo, hero) navy outline zlewałby się z tłem —
   tam fokus musi być w jasnym, jasnoniebieskim akcencie dla zachowania kontrastu. */
.ztm-logo-block a:focus-visible,
.ztm-hero-text-block a:focus-visible {
	outline-color: var(--ztm-blue-light);
}

/* 2.3.3 / preferencje użytkownika — wyłącza animacje i przejścia dla osób
   wrażliwych na ruch, zostawiając tylko zmiany stanu (kolor, widoczność). */
@media (prefers-reduced-motion: reduce) {
	.ztm-header *,
	.ztm-drawer,
	.ztm-drawer-overlay,
	.ztm-settings-panel,
	.ztm-chevron {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* 1.4.13 — treść po hover/focus (tooltip natywny z aria-label) nie znika
   przy najechaniu na nią kursorem; dotyczy elementów z aria-label jako tytułem. */
.ztm-font-size button,
.ztm-settings-toggle,
.ztm-hamburger,
.ztm-drawer-close,
.ztm-search button {
	-webkit-tap-highlight-color: transparent;
}



@media (max-width: 636px) {
	.ztm-settings-toggle{display: none;}
}
/* ── Searchbar w drawerze (≤476px) ──────────────────────── */
.ztm-drawer-search-label,
.ztm-drawer-search { display: none; }

@media (max-width: 476px) {
	.ztm-drawer-search-label,
	.ztm-drawer-search { display: block; }
	.ztm-drawer-search { padding: 0 25px 20px; }
	.ztm-drawer-search form { display: flex; height: 44px; }
	.ztm-drawer-search input[type="search"] {
		flex: 1;
		border: 1px solid var(--ztm-border-grey);
		border-right: none;
		border-radius: 7px 0 0 7px;
		padding: 0 14px;
		font-size: calc(15px * var(--ztm-font-scale, 1));
		font-family: var(--ztm-font);
		color: #1c2230;
		outline: none;
	}
	.ztm-drawer-search input[type="search"]:focus { border-color: var(--ztm-navy); }
	.ztm-drawer-search button {
		width: 50px;
		background: var(--ztm-navy);
		border: none;
		border-radius: 0 7px 7px 0;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
	.ztm-drawer-search svg { width: 18px; height: 18px; }
}