body {
	background-color: var(--background-color);
	color: var(--text-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 5vw;
	position: sticky;
	top: 0;
	height: 180px;
	z-index: 15 !important;
	transition: height 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease !important;

	background-color: var(--dominant-color);
}
.navbar--scrolled {
	height: 50px !important; /* Wysokość po przewinięciu */
	padding: 5px 5vw;
	background-color: #49aba9b5 !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.logo {
	position: relative;
	width: 14vw;
	height: 100px; /* ustalona wysokość */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden; /* zabezpiecza przed wyciekaniem loga */
}

/* Loga nakładamy, ale ograniczamy do wysokości kontenera */
.logo a.logo-desktop,
.logo a.logo-desktop-scrolled {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Obrazki */
.logo img {
	max-height: 100%;
	max-width: 100%;
	display: block;
	margin: auto;
	object-fit: contain;
	transition: transform 0.4s ease, opacity 0.4s ease;
	opacity: 1;
	transform: scale(1.4); /* domyślnie większe */
}
/* Przed scrollowaniem – logo większe */
.logo-desktop img {
	transform: scale(1.2);
}

.logo-desktop-scrolled img {
	transform: scale(0.8);
	opacity: 0;
}

/* Po scrollu – zmniejszamy desktop, pokazujemy short */
.navbar--scrolled .logo-desktop img {
	transform: scale(0.8);
	opacity: 0;
}

.navbar--scrolled .logo-desktop-scrolled img {
	transform: scale(1);
	opacity: 1;
}
/* Widoczność */
.logo-desktop {
	z-index: 2;
	transition-delay: 0s;
}

.logo-desktop-scrolled {
	z-index: 1;
	transition-delay: 0.2s;
}

.navbar--scrolled .logo-desktop {
	z-index: 1;
	transition-delay: 0.2s;
}

.navbar--scrolled .logo-desktop-scrolled {
	z-index: 2;
	transition-delay: 0s;
}

.navbar .auth-buttons,
.navbar .menu {
	transition: all 0.3s ease; /* Płynne przejście */
}

.logo-mobile {
	display: none;
}

.menu {
	width: 50%;
	display: flex;
}
.nav-menu {
	display: flex;
	list-style: none;
	margin: auto;
	align-items: center;
	position: relative;
	width: fit-content; /* Dopasowanie szerokości do zawartości */
	gap: 5px;
	padding: 0;
}

.nav-item {
	position: relative;
	display: flex;
	width: fit-content;
	box-sizing: border-box;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;

	color: inherit;
	text-decoration: none;
	position: relative;
	z-index: 1;

	padding: 8px 16px;
	white-space: nowrap;

	transition: color 0.25s ease;
}

.nav-link span {
	font-weight: 500;
	font-size: 1em;
	color: white;
	line-height: 1;
}
.nav-link .hint {
	font-size: 0.75em;
	opacity: 0.7;
	white-space: nowrap;
	line-height: 1;
	transform: translateY(1px);
}

.nav-link.active span {
	position: relative; /* Dodane dla pseudo-elementu */
	z-index: 2 !important; /* Tekst nad pseudo-elementem */
	color: white;
}

.nav-link::after {
	content: '';
	position: absolute;
	inset: 0;

	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background-color: rgba(255, 255, 255, 0.12);

	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: -1;
}

.nav-link:hover::after {
	opacity: 1;
}

.nav-link.active::after {
	opacity: 1;
}

.auth-buttons {
	display: flex;

	width: 20%;
	justify-content: center;
	align-items: center; /* Wyśrodkowanie dzieci w pionie */
	gap: 1vw;

	background: none; /* Usunięcie tła */
	border: none;
}
@media (max-width: 1100px) {
	.nav-link--favorites {
		flex-direction: column;
		align-items: center;
		white-space: normal;
	}

	.nav-link--favorites .hint {
		display: block;
		font-size: 0.7em;
		margin-top: 2px;
		line-height: 1.1;
	}
}

.auth-buttons button {
	display: flex;
	align-items: center; /* Wyśrodkowanie ikony w pionie */
	justify-content: center; /* Wyśrodkowanie w poziomie */
	padding: 0; /* Można dostosować padding, jeśli ikona jest zbyt oddzielona */
	height: 42px !important; /* Możesz dostosować rozmiar ikony */
	width: 42px !important;
	scale: 1;
	cursor: pointer; /* Ustawia kursor na 'łapkę' */
}

.auth-buttons .dropdown button img {
	vertical-align: middle; /* Wyrównanie ikony w pionie */
	z-index: 1200;
}
.user-buttons {
	display: none;
	z-index: 2205;
	transition: background-color 0.3s;
	gap: 20px;
	border-radius: 20px; /* Zaokrąglenie */
	width: auto;
	height: auto;
	justify-content: center; /* Wyśrodkowanie w poziomie */
	align-items: center; /* Wyśrodkowanie w pionie */
}

.transparent-button {
	background-color: transparent;
	border: none;
	color: white;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 5px;
}

.rotate-btn {
	border: none;
	background: none;
	cursor: pointer;
	display: inline-block;
	padding: 10px;
	margin-top: 7px;
	position: relative;
	z-index: 9999;
}
svg {
	width: 50px;
	height: 50px;
}

.rotate-btn #rotating-part {
	transition: transform 0.6s ease-in-out;
}

.rotate-btn #rotating-part.rotate {
	transform: rotate(360deg); /* Obrót o 360 stopni */
	transform-origin: 680px -320px;
}

.rotate-btn:focus {
	outline: none;
}
@keyframes rotate-animation {
	0% {
		transform: rotate(0deg);
		transform-origin: 680px -320px;
	}
	100% {
		transform: rotate(360deg);
		transform-origin: 680px -320px;
	}
}
.dropdown {
	height: auto;
	z-index: 1200;
	position: relative;
}

.dropdown-menu {
	display: none;
	position: absolute;
	background: #1e1e1e; /* mniej przezroczyste, ale nadal ciemne */
	border-radius: 25px;
	box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12), /* mocniejszy cień wewnętrzny */ 0 6px 12px rgba(0, 0, 0, 0.5); /* mocniejszy zewnętrzny cień */
	border: 1px solid rgba(255, 255, 255, 0.15); /* wyraźniejsza ramka */
	color: white;
	padding: 1em;
	min-width: 250px;
	max-width: 350px;
	z-index: 10;
}

.dropdown-menu.active {
	display: block;
	height: auto; /* Wysokość dostosowana do zawartości */
	width: auto;
	right: 7%;
}

.dropdown-item {
	height: auto;
	padding: 0.3em 0.7em;
	margin: 0.3vw;
	display: flex;
	justify-content: space-between;
	align-items: center; /* opcjonalnie – wyśrodkowanie w pionie */
	width: 280px;
}
/* elementy .dropdown-item wypełnią komórki */
.dropdown-menu .dropdown-item {
	padding: 8px;
	border-bottom: 1px solid #eee;
}
.dropdown-item a,
.dropdown-item button {
	font-size: 1vw;
	text-decoration: none;
	color: #ffffffe5;

	width: auto;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
}
.dropdown-menu .dropdown-item:last-child {
	border-bottom: none;
}
/* logout button */
.auth-buttons .logout-button {
	width: 60% !important;
	max-width: 350px;
	height: 40px !important;
	background-color: #c62828 !important;
	color: white !important;
	border: none;
	border-radius: 8px !important;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	display: block;
	text-align: center;
	margin: 20px auto;
}

.logout-button:hover {
	background-color: #b71c1c;
}

.logout-button:focus,
.logout-button:active {
	outline: none;
	background-color: #b71c1c; /* lub inny ciemniejszy czerwony, jak wyżej */
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.3); /* opcjonalny efekt kliknięcia */
}

.slider-container {
	margin-top: 20px;
}

/* hamburger */
.hamburger-menu {
	display: none;
}

.hamburger-icon {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hamburger-icon span {
	width: 25px;
	height: 3px;
	background-color: #333;
	margin: 4px 0;
	transition: 0.4s;
}

#hamburger-toggle {
	display: none;
}

.nav-link.disabled {
	color: rgba(255, 255, 255, 0.7);
	cursor: default;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	line-height: 1.2;
}

.nav-link.disabled .hint {
	font-size: 0.75rem;
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
	.navbar {
		height: 14vw;
		width: 100%;
	}
	.logo {
		width: 50%; /* Stała szerokość */
		text-align: center;
		overflow: hidden;
	}
	.logo img {
		width: 50%;
		height: auto;
	}
	.logo-desktop,
	.logo-desktop-scrolled {
		display: none !important;
	}
	.logo-mobile {
		display: block !important;
		opacity: 1 !important;
		transform: scale(0.8) !important;
		position: relative;
		z-index: 2;
	} /* Pokazujemy logo mobilne */
	.menu {
		display: none;
	}

	.auth-buttons {
		display: flex;
		opacity: 1;
		width: auto;
		justify-content: center;
		align-items: center; /* Wyśrodkowanie dzieci w pionie */
		gap: 4vw;
		z-index: 1200;
		background: none; /* Usunięcie tła */
		border: none;
	}
	.user-buttons {
		opacity: 1;
	}
	.hamburger-menu {
		display: flex;
	}

	.hamburger-nav {
		position: fixed;
		top: 0;
		right: -80%;
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background: rgba(36, 83, 83, 0.92); /* Twój teal */
		backdrop-filter: blur(6px);

		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		transition: right 0.3s ease-in-out;
		z-index: 1000;
		padding-top: 100px;
		box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
		border-top-left-radius: 20px;
		border-bottom-left-radius: 20px;
		box-sizing: border-box;
		pointer-events: auto;
	}

	/* .hamburger-menu input[type='checkbox']:checked ~ .hamburger-nav {
		display: flex;
	} */
	/* --- Efekt animacji hamburgera --- */
	#hamburger-toggle:checked + .hamburger-icon span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 5px);
	}

	#hamburger-toggle:checked + .hamburger-icon span:nth-child(2) {
		opacity: 0;
	}

	#hamburger-toggle:checked + .hamburger-icon span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -5px);
	}

	.hamburger-icon {
		cursor: pointer;
		display: flex;
		flex-direction: column;
		align-items: center;
		z-index: 1200;
	}

	.hamburger-icon span {
		width: 25px;
		height: 3px;
		background-color: #ffffff;
		margin: 4px 0;
		transition: 0.4s;
	}
	/* --- Poprawiona logika wysuwania menu --- */
	#hamburger-toggle:checked ~ .hamburger-nav {
		right: 0;
	}
	.nav-menu {
		width: 100%;
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.nav-menu li {
		width: 100%;
		margin: 10px 0;
		text-align: center;
	}

	.nav-menu a {
		display: block;
		width: 100%;

		text-decoration: none;
		font-size: 20px;
		padding: 15px;
		transition: background 0.3s ease-in-out;
		color: #ffffff !important;
		font-weight: 500;
		text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	}

	.nav-menu a:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
	.hamburger-nav .nav-menu {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.hamburger-nav .nav-menu li {
		margin: 0.5rem 0;
	}

	.hamburger-nav .nav-menu a,
	.hamburger-nav .disabled-link {
		display: block;
		padding: 0.6rem 1rem;
		text-decoration: none;
		color: var(--text, #fff);
		font-size: 1rem;
		border-radius: 8px;
	}

	.hamburger-nav .disabled-link {
		color: rgba(255, 255, 255, 0.6);
		background: transparent;
		cursor: default;
	}

	.hamburger-nav .disabled-link .hint {
		font-size: 0.8rem;
		margin-left: 4px;
		opacity: 0.8;
	}

	/* lewy akcent */
	.hamburger-nav .nav-menu a.active::before,
	.hamburger-nav .nav-menu a[aria-current='page']::before {
		content: '';
		position: absolute;
		left: 0;
		top: 15%;
		width: 4px;
		height: 70%;
		border-radius: 4px;
		background: rgba(255, 255, 255, 0.9);
	}
	.hamburger-nav .nav-menu a:not(.active):hover {
		background-color: rgba(255, 255, 255, 0.1);
	}
	/* ===== MOBILE ACTIVE – STABILNE ===== */

	.hamburger-nav .nav-menu a {
		position: relative;
	}

	/* ACTIVE strony */
	.hamburger-nav .nav-menu a.active,
	.hamburger-nav .nav-menu a[aria-current='page'] {
		font-weight: 600;
	}

	/* lewy pasek */
	.hamburger-nav .nav-menu a.active::before,
	.hamburger-nav .nav-menu a[aria-current='page']::before {
		content: '';
		position: absolute;
		left: 0;
		top: 20%;
		width: 4px;
		height: 60%;
		border-radius: 4px;
		background: rgba(255, 255, 255, 0.9);
	}

	/* hover TYLKO dla nieaktywnych */
	.hamburger-nav .nav-menu a:not(.active):hover {
		background-color: rgba(255, 255, 255, 0.1);
	}

	/* WYŁĄCZ flash kliknięcia */
	.hamburger-nav .nav-menu a:active {
		background-color: transparent !important;
	}
	.hamburger-nav a {
		-webkit-tap-highlight-color: transparent;
	}
	.nav-link.disabled {
		width: 100%;
		text-align: center;
	}

	/* stylizacja okienka panelu użytkownika */
	.dropdown-menu {
		position: fixed;
		top: 0;
		right: 0;
		height: 100vh;
		width: auto; /* Szerokość bocznego panelu */

		background: rgba(36, 83, 83, 0.92); /* Twój teal */
		backdrop-filter: blur(6px);
		border-radius: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		z-index: 2000;
		padding-top: 60px;
		align-items: flex-start;
	}

	.dropdown-menu.active {
		position: fixed;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		transform: translateX(0);
		right: 0;
		height: 100vh;
		border-top-left-radius: 10px;
		padding-top: 60px;
		display: flex;
	}

	.dropdown-item {
		padding-top: 15px;
		width: 100%;
	}
	.dropdown-item:nth-child(3) {
		flex-direction: column;
		align-items: start;
		padding: 10px;
	}
	.dropdown-item:nth-child(3) .slider-container {
		width: 100%;
	}
	.dropdown-item:last-child {
		margin-top: auto;
		margin-bottom: 40px; /* Dodatkowy odstęp od dołu */
		width: 80%;
		display: flex;
		justify-content: center;
		align-self: center; /* Wyśrodkowanie poziome */
	}
	.dropdown button {
		z-index: 3000; /* Aby ikona była widoczna */
	}
	.dropdown button img {
		width: 40px;
	}

	.logout-button {
		width: 100%;
		height: 35px;
	}
	.dropdown-item button {
		font-size: 16px;
	}
}

/* ...existing code... */
