/* FeelEvent – dolny pasek nawigacji (telefony < 768 px). */

.fe-bnav,
.fe-sheet {
	display: none;
}

@media (max-width: 767.98px) {
	:root {
		--fe-bnav-h: 64px;
		--fe-safe-b: env(safe-area-inset-bottom, 0px);
	}

	body.fe-has-bnav {
		padding-bottom: calc(var(--fe-bnav-h) + var(--fe-safe-b) + 8px);
	}

	/* Górny pasek: tylko logo, chowa się przy przewijaniu w dół. */
	.fe-has-bnav .fe-mobile-actions,
	.fe-has-bnav #nav1 .navbar-toggler,
	.fe-has-bnav #navbarNavDropdown,
	.fe-has-bnav .gtranslate_wrapper,
	.fe-has-bnav .gt_float_switcher,
	.fe-has-bnav .fe-consent-reopen {
		display: none !important;
	}
	.fe-has-bnav #nav1 > .row {
		min-height: 52px;
	}
	.fe-has-bnav #wrapper-navbar {
		transition: transform .25s ease;
	}
	.fe-has-bnav.fe-header-hidden #wrapper-navbar {
		transform: translateY(-110%);
	}

	/* Baner zgód nad paskiem. */
	.fe-has-bnav .fe-consent {
		bottom: calc(var(--fe-bnav-h) + var(--fe-safe-b) + 10px);
	}

	/* ---------- Pasek ---------- */
	.fe-bnav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1060;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: end;
		height: calc(var(--fe-bnav-h) + var(--fe-safe-b));
		padding: 6px 6px calc(6px + var(--fe-safe-b));
		background: #110c18;
		border-top: 1px solid rgba(255, 255, 255, .1);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
	}
	.fe-bnav__btn {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		height: 52px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: transparent;
		color: #d9d0e8;
		font: inherit;
		font-size: 11px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: .01em;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition: background-color .15s ease, color .15s ease;
	}
	.fe-bnav__btn:hover,
	.fe-bnav__btn:focus {
		color: #fff;
		text-decoration: none;
	}
	.fe-bnav__btn[aria-expanded="true"] {
		color: #fff;
		background: rgba(var(--fe-accent-rgb, 122, 90, 176),  .24);
	}
	.fe-bnav__btn:focus-visible {
		outline: 3px solid var(--fe-accent-light, #c9b2ee);
		outline-offset: 1px;
	}
	.fe-bnav__btn:active {
		background: rgba(255, 255, 255, .08);
	}

	/* Zadzwoń – środkowy, wyróżniony. */
	.fe-bnav__call {
		height: auto;
		gap: 4px;
		margin-top: -22px;
		background: transparent !important;
		color: #fff;
	}
	.fe-bnav__call-circle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 58px;
		height: 58px;
		border-radius: 50%;
		background: var(--fe-accent, #7a5ab0);
		border: 4px solid #110c18;
		box-shadow: 0 6px 18px rgba(var(--fe-accent-rgb, 122, 90, 176),  .55);
	}
	.fe-bnav__call:active .fe-bnav__call-circle {
		transform: scale(.94);
	}

	.fe-bnav__icon-wrap {
		position: relative;
		display: inline-flex;
	}
	.fe-bnav__count {
		position: absolute;
		top: -6px;
		right: -10px;
		min-width: 19px;
		height: 19px;
		padding: 0 5px;
		border-radius: 999px;
		background: var(--fe-accent, #7a5ab0);
		border: 2px solid #110c18;
		color: #fff;
		font-size: 10px;
		font-weight: 800;
		line-height: 15px;
		text-align: center;
	}

	/* ---------- Panele wysuwane od dołu ---------- */
	.fe-sheet {
		position: fixed;
		inset: 0;
		z-index: 1050;
	}
	.fe-sheet.is-open {
		display: block;
	}
	.fe-sheet__backdrop {
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, .6);
		animation: fe-sheet-fade .2s ease;
	}
	.fe-sheet__panel {
		position: absolute;
		left: 0;
		right: 0;
		bottom: calc(var(--fe-bnav-h) + var(--fe-safe-b));
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - var(--fe-bnav-h) - var(--fe-safe-b) - 48px);
		max-height: calc(100dvh - var(--fe-bnav-h) - var(--fe-safe-b) - 48px);
		background: #16101d;
		border: 1px solid rgba(255, 255, 255, .1);
		border-bottom: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -12px 32px rgba(0, 0, 0, .5);
		animation: fe-sheet-up .22s cubic-bezier(.2, .8, .2, 1);
		touch-action: pan-y;
	}
	.fe-sheet__head {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 16px 10px 20px;
		flex: none;
	}
	.fe-sheet__grip {
		position: absolute;
		top: 7px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .25);
	}
	.fe-sheet__title {
		margin: 0;
		color: #fff;
		font-size: 18px;
		font-weight: 800;
	}
	.fe-sheet__close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, .08);
		color: #fff;
	}
	.fe-sheet__body {
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0 16px 16px;
	}
	.fe-sheet__foot {
		flex: none;
		padding: 8px 20px 14px;
		border-top: 1px solid rgba(255, 255, 255, .08);
	}
	.fe-sheet__link {
		padding: 10px 0;
		border: 0;
		background: none;
		color: #b9b0c8;
		font: inherit;
		font-size: 14px;
		text-decoration: underline;
	}

	/* Menu */
	.fe-sheet-list {
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.fe-sheet-list > li + li {
		border-top: 1px solid rgba(255, 255, 255, .08);
	}
	.fe-sheet-item,
	.fe-sheet-group__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 56px;
		padding: 0 4px;
		border: 0;
		background: none;
		color: #fff;
		font: inherit;
		font-size: 17px;
		font-weight: 700;
		text-align: left;
		text-decoration: none;
	}
	.fe-sheet-item:hover,
	.fe-sheet-item:focus {
		color: #fff;
		text-decoration: none;
	}
	.fe-sheet-item.is-current {
		color: var(--fe-accent-light, #c9b2ee);
	}
	.fe-sheet-group__toggle::after {
		content: "";
		width: 10px;
		height: 10px;
		margin: 0 6px 4px 12px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.fe-sheet-group__toggle[aria-expanded="true"]::after {
		transform: rotate(-135deg);
		margin-bottom: -4px;
	}
	.fe-sheet-group__list {
		margin: 0 0 12px;
		padding: 0;
		list-style: none;
	}
	.fe-sheet-group__list[hidden] {
		display: none;
	}

	/* Miasta i podmenu jako kafelki */
	.fe-city-section + .fe-city-section {
		margin-top: 16px;
	}
	.fe-city-section__title {
		margin: 4px 4px 10px;
		color: #b9b0c8;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
	}
	.fe-tiles {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.fe-tile {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 0 16px;
		border: 1px solid rgba(255, 255, 255, .12);
		border-radius: 12px;
		background: rgba(255, 255, 255, .04);
		color: #fff;
		font-size: 16px;
		font-weight: 700;
		text-decoration: none;
	}
	.fe-tile:hover,
	.fe-tile:focus {
		color: #fff;
		text-decoration: none;
		border-color: var(--fe-accent, #7a5ab0);
	}
	.fe-tile.is-current {
		background: rgba(var(--fe-accent-rgb, 122, 90, 176),  .25);
		border-color: var(--fe-accent, #7a5ab0);
	}

	/* Języki */
	.fe-lang-list .fe-tile {
		gap: 10px;
	}
	.fe-lang-list .fe-tile[aria-current="true"]::after {
		content: "✓";
		margin-left: auto;
		color: var(--fe-accent-light, #c9b2ee);
	}

	body.fe-sheet-open {
		overflow: hidden;
	}
	.fe-sheet-item:focus-visible,
	.fe-sheet-group__toggle:focus-visible,
	.fe-tile:focus-visible,
	.fe-sheet__close:focus-visible,
	.fe-sheet__link:focus-visible {
		outline: 3px solid var(--fe-accent-light, #c9b2ee);
		outline-offset: 2px;
	}
}

@keyframes fe-sheet-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: none; opacity: 1; }
}
@keyframes fe-sheet-fade {
	from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.fe-sheet__panel,
	.fe-sheet__backdrop {
		animation: none;
	}
	.fe-has-bnav #wrapper-navbar {
		transition: none;
	}
}
