/* ==========================================================================
   mobile.css – poprawki wersji mobilnej (ładowany po bootstrap-responsive.css)
   ========================================================================== */

/* Przycisk menu – ukryty na dużych ekranach */
.menu-toggle { display: none; }

/* Zdjęcia, filmy i mapy nigdy szersze niż ekran */
img, iframe, video { max-width: 100%; }
img { height: auto; }

/* Stopka wychodziła 11 px poza ekran (szerokość kontenera + padding stopki) */
#footer .container { width: auto; }

/* Nawigacja klawiaturą – widoczny fokus */
a:focus-visible, button:focus-visible {
	outline: 2px solid #0081cf;
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Tablety i telefony (do 979 px – tu Bootstrap chowa menu)
   -------------------------------------------------------------------------- */
@media (max-width: 979px) {

	/* Nagłówek: logo po lewej, przycisk menu po prawej */
	.header { padding-bottom: 0; }
	.header .wrap > .container,
	.header > .wrap > .container { position: relative; }
	.logo {
		width: auto !important;
		max-width: calc(100% - 80px);
		margin: 0 !important;
		padding: 10px 0 10px 12px;
		text-align: left !important;
	}
	.logo img { margin-top: 0; max-height: 48px; width: auto; }

	.navbar.fright {
		float: none;
		margin: 0;
		min-width: 0;
	}
	.menu-toggle {
		display: block;
		position: absolute;
		top: 11px;
		right: 10px;
		width: 48px;
		height: 48px;
		padding: 12px;
		border: 0;
		border-radius: 6px;
		background: transparent;
		cursor: pointer;
	}
	.menu-toggle span {
		display: block;
		height: 3px;
		margin: 4px 0;
		border-radius: 2px;
		background: #05425b;
		transition: transform .2s, opacity .2s;
	}
	.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
	.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	/* Lista menu – rozwijana pod nagłówkiem */
	nav#main_menu { margin: 0; }
	nav#main_menu ul,
	nav#main_menu .menu_wrap .nav { display: none; float: none; margin: 0; padding: 0 0 8px; }
	.menu-open nav#main_menu ul,
	.menu-open nav#main_menu .menu_wrap .nav { display: block; }
	nav#main_menu .menu_wrap .nav li {
		display: block;
		float: none;
		margin: 0;
		border-top: 1px solid #f0f0f0;
	}
	nav#main_menu .menu_wrap .nav li a {
		display: block;
		padding: 0 20px;
		line-height: 48px;
		font-size: 16px;
		border-radius: 0;
	}
	nav#main_menu select { display: none !important; }

	/* Treść */
	section { margin: 0; padding: 10px 15px; }
	.page_container > .container,
	.page_container .container { width: auto; }

	/* Nagłówek strony głównej (dwa pływające bloki o sztywnej szerokości) */
	.page-header > div[style*="float"] {
		float: none !important;
		width: auto !important;
		text-align: left;
	}

	/* Film i mapy */
	.yt-embed { width: 100%; }
	.yt-embed iframe, iframe[src*="youtube"] {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.maps-wrap { margin-top: 20px; }
	.maps-wrap iframe { width: 100%; max-width: 100%; height: 300px; margin: 0 0 20px; }

	/* Wysuwany widżet Facebooka zasłaniał treść – na telefonie link w stopce */
	#facebook_slider_widget { display: none; }
}

/* --------------------------------------------------------------------------
   Telefony (do 767 px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

	/* Tekst wyjustowany na wąskim ekranie robi „dziury” między słowami */
	body, p, li, section p { text-align: left !important; }
	section p { font-size: 16px; line-height: 1.55; }

	h1.title { font-size: 22px; line-height: 28px; }
	h1.e, h2.e, h3.e { font-size: 21px; line-height: 27px; }

	/* Zdjęcia opływane tekstem – na telefonie pod sobą, bez bocznych marginesów */
	section img[style*="float"] {
		float: none !important;
		display: block;
		padding: 0 !important;
		margin: 0 auto 15px;
	}

	/* Tabele (cennik, zakres usług): mniejsze odstępy, bez poziomego przewijania strony */
	section table { width: 100% !important; font-size: 14px; }
	section table th, section table td { padding: 6px 5px !important; }
	.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

	/* Linki w stopce i tagi – większe pola do kliknięcia */
	.footer-menu a { padding: 12px 10px; }
	.tags a { display: inline-block; padding: 6px 0; }
}

/* Link do Facebooka w stopce – tylko tam, gdzie nie ma wysuwanego widżetu */
.footer-menu .footer-fb { display: none; }
@media (max-width: 979px) {
	.footer-menu .footer-fb { display: inline-block; }
}

/* --------------------------------------------------------------------------
   Baner zgody na cookies (pokazywany tylko, gdy jest skonfigurowany GA4)
   -------------------------------------------------------------------------- */
.cookie-zgoda {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 100000;
	padding: 14px 16px;
	background: #fff;
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -2px 12px rgba(0,0,0,.08);
	font-size: 14px;
	line-height: 1.45;
	color: #333;
}
.cookie-zgoda__in { max-width: 940px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cookie-zgoda__txt { flex: 1 1 320px; margin: 0; text-align: left !important; font-size: 14px !important; }
.cookie-zgoda__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-zgoda button {
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 5px;
	border: 1px solid #005198;
	font-size: 14px;
	cursor: pointer;
}
.cookie-zgoda .cz-ok { background: #005198; color: #fff; }
.cookie-zgoda .cz-nie { background: #fff; color: #005198; }
.cookie-ustawienia { cursor: pointer; }

/* --------------------------------------------------------------------------
   Strona „Porady” – spis porad
   -------------------------------------------------------------------------- */
h2.porady-grupa { margin: 28px 0 8px; }
.porady-lista { list-style: none; margin: 0; padding: 0; }
.porady-lista li { padding: 10px 0; border-bottom: 1px solid #eee; }
.porady-lista a { font-size: 17px; font-weight: bold; }
.porady-lista span { display: block; margin-top: 3px; color: #555; font-size: 15px; line-height: 1.45; }

/* Numer telefonu nie łamie się w połowie */
a[href^="tel:"] { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Film YouTube i mapy Google – zaślepki wczytywane po kliknięciu
   -------------------------------------------------------------------------- */
.embed-facade {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	border-radius: 6px;
	text-align: center;
	box-sizing: border-box;
}
.embed-yt {
	aspect-ratio: 16 / 9;
	padding: 20px;
	background: linear-gradient(135deg, #05425b, #1d2a33);
	color: #fff;
}
.embed-yt span { font-size: 14px; max-width: 420px; }
.embed-play { border: 0; background: transparent; padding: 0; cursor: pointer; transition: transform .15s; }
.embed-play:hover, .embed-play:focus-visible { transform: scale(1.08); }
.embed-map {
	height: 300px;
	padding: 20px;
	margin-bottom: 20px;
	background: #eef3f6;
	border: 1px solid #dde6ec;
	color: #05425b;
}
.embed-btn {
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 5px;
	background: #005198;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}
.embed-btn:hover { background: #0081cf; }
.embed-map a { font-size: 14px; }
.embed-map small { color: #5b6b75; font-size: 12px; }
.embed-frame { display: block; width: 100%; border: 0; border-radius: 6px; }
.embed-frame-yt { aspect-ratio: 16 / 9; height: auto; }
.embed-frame-map { height: 300px; margin-bottom: 20px; }

/* Slider przed uruchomieniem skryptu: tylko pierwszy slajd (bez skoku układu) */
ul.bxslider { margin: 0 0 60px; padding: 0; list-style: none; }
ul.bxslider img { display: block; width: 100%; height: auto; }
.bx-viewport ul.bxslider { margin: 0; }
ul.bxslider > li + li { display: none; }
.bx-viewport ul.bxslider > li + li { display: block; }

/* --------------------------------------------------------------------------
   Dostępność: kontrast linków i nagłówków, wyróżnienie linków w tekście,
   większe kropki slidera do kliknięcia palcem
   -------------------------------------------------------------------------- */
a { color: #00639e; }
a:hover, a:focus { color: #004a77; }
h2.title, h3.title { color: #00639e; }
.copyright a, section p a { text-decoration: underline; }
.bx-wrapper .bx-pager.bx-default-pager a {
	width: 12px;
	height: 12px;
	margin: 0 6px;
	border: 6px solid transparent;
	background-clip: padding-box;
	box-sizing: content-box;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Lista porad / realizacji nad artykułem
   – komputer: jak dotąd; telefon: zwinięta pod przyciskiem, linki jako kafelki
   -------------------------------------------------------------------------- */
.tags-label { margin: 0 0 10px; color: #00639e; font-size: 15px; }
.tags a[aria-current="page"] { font-weight: bold; }
.tags-toggle { display: none; }

@media (max-width: 767px) {
	.tags-nav {
		margin: 6px 0 20px;
		border: 1px solid #dde6ec;
		border-radius: 8px;
		background: #fff;
	}
	.tags-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 48px;
		padding: 10px 16px;
		border: 0;
		background: transparent;
		color: #05425b;
		font-size: 16px;
		font-weight: bold;
		text-align: left;
		cursor: pointer;
	}
	.tags-toggle span { margin-left: 6px; margin-right: auto; color: #5b6b75; font-weight: normal; }
	.tags-toggle::after {
		content: "";
		width: 9px;
		height: 9px;
		margin: -4px 4px 0 12px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s;
	}
	.tags-nav.open .tags-toggle::after { transform: rotate(-135deg); margin-top: 4px; }

	.tags-body { display: none; padding: 0 16px 14px; border-top: 1px solid #eef2f5; }
	.tags-nav.open .tags-body { display: block; }

	.tags-nav .tags-label {
		margin: 14px 0 8px !important;
		color: #5b6b75;
		font-size: 12px !important;
		letter-spacing: .04em;
		text-transform: uppercase;
	}
	.tags-nav .row, .tags-nav .span10 { float: none; width: auto; margin: 0; }

	/* znaki „|” między linkami znikają (font-size: 0), linki jako kafelki */
	.tags-nav .tags { display: block; font-size: 0; line-height: 0; }
	.tags-nav .tags a {
		display: inline-block;
		margin: 0 8px 8px 0;
		padding: 8px 12px;
		border: 1px solid #cfdde6;
		border-radius: 4px;
		background: #f4f8fb;
		color: #05425b;
		font-size: 14px;
		line-height: 1.3;
		text-decoration: none;
	}
	.tags-nav .tags a[aria-current="page"] { background: #05425b; border-color: #05425b; color: #fff; }
}
