/* XSUS Menu EXON — nowe menu główne exonone.pl */
.xem {
	--xem-tekst: #10233A;
	--xem-akcent: #B4232F;
	--xem-tlo: #fff;
	--xem-linia: #E4E8EE;
	--xem-szary: #5B6878;
	--xem-jasne: #F5F7FA;
	--xem-szer: 1260px;
	--xem-prog: 1200px;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	color: var(--xem-tekst);
	font-family: inherit;
	text-align: left;
}
.xem *, .xem *::before, .xem *::after { box-sizing: border-box; }
.xem a { text-decoration: none; color: inherit; }
.xem ul { list-style: none; margin: 0; padding: 0; }
.xem button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.xem-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xem-i { display: block; flex: none; }
#menu.xem-na > .ct-section-inner-wrap { display: flex; align-items: center; gap: 16px; }

/* ---------- komputer ---------- */
.xem-burger, .xem-panel-gora, .xem-tlo, .xem-konto-napis { display: none; }
.xem-panel { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); }
.xem-nav { flex: 1 1 auto; min-width: 0; }
.xem-zakladki { display: flex; align-items: stretch; gap: clamp(4px, 1vw, 14px); }
.xem-z { position: static; }
.xem-z-wiersz { display: flex; align-items: center; height: 100%; position: relative; }
.xem-z-link, .xem-z-wiersz > span {
	display: block;
	padding: 14px 0;
	font-size: clamp(12.5px, 1vw, 14px);
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--xem-tekst);
	transition: color .15s;
}
.xem-z-rozwin { display: flex; align-items: center; justify-content: center; width: 22px; height: 32px; margin-left: 1px; color: var(--xem-tekst); border-radius: 4px; }
.xem-z-rozwin .xem-i { width: 15px; height: 15px; transition: transform .2s; }
.xem-z-wiersz::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
	background: var(--xem-akcent); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.xem-z:hover .xem-z-link, .xem-z.xem-otwarta .xem-z-link, .xem-z--biezaca .xem-z-link,
.xem-z:hover .xem-z-rozwin, .xem-z.xem-otwarta .xem-z-rozwin { color: var(--xem-akcent); }
.xem-z.xem-otwarta .xem-z-wiersz::after, .xem-z--biezaca .xem-z-wiersz::after { transform: scaleX(1); }
.xem-z.xem-otwarta .xem-z-rozwin .xem-i { transform: rotate(180deg); }
.xem a:focus-visible, .xem button:focus-visible { outline: 2px solid var(--xem-akcent); outline-offset: 2px; border-radius: 3px; }

/* panel rozwijany */
.xem-p {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 999;
	background: var(--xem-tlo);
	border-top: 1px solid var(--xem-linia);
	box-shadow: 0 18px 40px -12px rgba(16, 35, 58, .22);
	visibility: hidden; opacity: 0; transform: translateY(-6px);
	transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.xem-z.xem-otwarta .xem-p { visibility: visible; opacity: 1; transform: none; transition: opacity .16s, transform .16s; }
.xem-p-in {
	max-width: var(--xem-szer); margin: 0 auto; padding: 28px 20px 30px;
	display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start;
}
.xem-p-kolumny { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.xem-kol { min-width: 170px; }
.xem-kol-t {
	/* Czytelność dla starszych klientów (12.10.2026): zwykłe litery zamiast małych wersalików */
	display: block; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--xem-linia);
	font-size: 15px; font-weight: 700; color: var(--xem-tekst);
}
.xem-kol li + li { margin-top: 2px; }
.xem-l {
	display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 6px;
	font-size: 18px; line-height: 1.35; color: var(--xem-tekst);
}
/* Najechanie: tło + podkreślenie, nie sam kolor (słabo widoczny przy gorszym wzroku) */
.xem-l:hover, .xem-l:focus-visible, .xem-l[aria-current] {
	background: var(--xem-jasne); color: var(--xem-akcent);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.xem-l[aria-current] { font-weight: 700; }
.xem-wszystkie {
	grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
	padding-top: 16px; border-top: 1px solid var(--xem-linia); width: 100%;
	font-size: 17px; font-weight: 700; color: var(--xem-akcent) !important;
}
.xem-wszystkie .xem-i { width: 16px; height: 16px; transition: transform .15s; }
.xem-wszystkie:hover .xem-i { transform: translateX(3px); }

/* kafelek */
.xem-kafel {
	grid-column: 2; grid-row: 1; width: 300px; display: flex; flex-direction: column;
	border-radius: 10px; overflow: hidden; background: var(--xem-jasne); border: 1px solid var(--xem-linia);
	transition: box-shadow .15s, transform .15s;
}
.xem-kafel:hover { box-shadow: 0 10px 24px -10px rgba(16, 35, 58, .35); transform: translateY(-2px); }
.xem-kafel-obraz { display: block; aspect-ratio: 16 / 9; background: #e9edf2; }
.xem-kafel-obraz img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xem-kafel-tresc { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.xem-kafel-t { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--xem-tekst); }
.xem-kafel-opis { font-size: 16px; line-height: 1.5; color: #3B4757; }
.xem-kafel-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--xem-akcent); }
.xem-kafel-cta .xem-i { width: 15px; height: 15px; }

/* prosta lista (jedna kolumna) — panel pod zakładką, nie na całą szerokość */
.xem-z--lista { position: relative; }
.xem-z--lista .xem-p { left: -18px; right: auto; min-width: 250px; border: 1px solid var(--xem-linia); border-radius: 0 0 10px 10px; }
.xem-z--lista .xem-p-in { display: block; padding: 14px 18px 16px; }
.xem-z--lista .xem-p-kolumny { display: block; }
.xem-z--lista .xem-kol { min-width: 0; }
.xem-z--lista .xem-wszystkie { margin-top: 10px; padding-top: 10px; }

/* telefon eksperta — na komputerze numer jest już w nagłówku Oxygena */
.xem-ekspert { display: none; align-items: center; gap: 10px; }
.xem-ekspert .xem-i { color: #fff; background: var(--xem-akcent); border-radius: 50%; padding: 8px; width: 36px; height: 36px; }
.xem-ekspert-tekst { display: flex; flex-direction: column; line-height: 1.15; }
.xem-ekspert-et { font-size: 12px; color: var(--xem-szary); }
.xem-ekspert-nr { font-size: 16px; font-weight: 700; white-space: nowrap; }

.xem-konto { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--xem-tekst); transition: background .15s, color .15s; }
.xem-konto:hover { background: var(--xem-jasne); color: var(--xem-akcent); }
.xem-konto .xem-i { width: 22px; height: 22px; }

/* link „Zobacz wszystkie” dokładany automatycznie — na komputerze do strony prowadzi sama nazwa zakładki */
.xem-tylko-telefon { display: none !important; }

/* ---------- telefon / wąski ekran ---------- */
@media (max-width: 1199.98px) {
	.xem { flex: 0 0 auto; }
	.xem-burger { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 0; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
	.xem-burger-ikona { display: grid; gap: 5px; width: 26px; }
	.xem-burger-ikona span { display: block; height: 3px; border-radius: 2px; background: currentColor; }

	.xem-panel {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 100000;
		width: min(88vw, 400px); flex-direction: column; align-items: stretch; gap: 0;
		background: var(--xem-tlo); overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(-102%); transition: transform .25s ease, visibility 0s .25s; visibility: hidden;
		box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	}
	.xem.xem-panel-otwarty .xem-panel { transform: none; visibility: visible; transition: transform .25s ease; }
	.xem-tlo { display: block; position: fixed; inset: 0; z-index: 99999; background: rgba(16, 35, 58, .45); }
	.xem-tlo[hidden] { display: none; }

	.xem-panel-gora { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--xem-linia); position: sticky; top: 0; background: var(--xem-tlo); z-index: 1; }
	.xem-panel-tytul { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
	.xem-zamknij { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; }
	.xem-zamknij .xem-i { width: 24px; height: 24px; }

	.xem-nav { flex: 0 0 auto; }
	.xem-zakladki { display: block; }
	.xem-z { border-bottom: 1px solid var(--xem-linia); }
	.xem-z-wiersz { height: auto; }
	.xem-z-wiersz::after { display: none; }
	.xem-z-link, .xem-z-wiersz > span { flex: 1; padding: 15px 20px; font-size: 16.5px; white-space: normal; }
	.xem-z-rozwin { width: 52px; height: 52px; border-left: 1px solid var(--xem-linia); border-radius: 0; margin: 0; }
	.xem-z-rozwin .xem-i { width: 18px; height: 18px; }

	.xem-p, .xem-z--lista .xem-p {
		position: static; display: none; visibility: visible; opacity: 1; transform: none; transition: none;
		box-shadow: none; border: 0; border-radius: 0; min-width: 0; background: var(--xem-jasne);
	}
	.xem-z.xem-otwarta .xem-p { display: block; }
	.xem-p-in, .xem-z--lista .xem-p-in { display: block; padding: 6px 20px 16px; }
	.xem-p-kolumny { display: block; }
	.xem-kol { min-width: 0; padding-top: 10px; }
	.xem-kol-t { margin: 14px 0 2px; padding-bottom: 4px; border-bottom: 0; font-size: 14.5px; color: var(--xem-szary); }
	/* Wiersze ok. 53 px z liniami — łatwiej trafić palcem */
	.xem-l { padding: 14px 4px; margin: 0; border-radius: 0; border-bottom: 1px solid var(--xem-linia); font-size: 18px; }
	.xem-kafel { width: auto; margin-top: 14px; flex-direction: row; }
	.xem-kafel-obraz { width: 112px; flex: none; aspect-ratio: auto; }
	.xem-kafel-opis { display: none; }
	.xem-kafel-tresc { padding: 12px 14px; }
	.xem-kafel-t { font-size: 17px; }
	.xem-wszystkie { margin-top: 14px; padding-top: 12px; }
	.xem-wszystkie.xem-tylko-telefon { display: inline-flex !important; }

	.xem-ekspert, .xem-konto { display: flex; margin: 0 16px; padding: 12px 16px; border-radius: 10px; width: auto; height: auto; }
	.xem-ekspert { margin-top: 20px; background: var(--xem-jasne); }
	.xem-konto { margin-top: 10px; margin-bottom: 24px; gap: 10px; justify-content: flex-start; border: 1px solid var(--xem-linia); border-radius: 10px; }
	.xem-konto-napis { display: inline; font-weight: 700; }
	html.xem-blokada, html.xem-blokada body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.xem *, .xem-panel, .xem-p { transition: none !important; }
}
