/* FitGym — menu górne. Kolory z globalnych kolorów Elementora (Ustawienia witryny). */
:root {
	--fg-bg: var(--e-global-color-primary, #000000);
	--fg-fg: #FFFFFF;
	--fg-accent: var(--e-global-color-accent, #C62820);
	--fg-accent-dk: var(--e-global-color-fg_red_dk, #A8211A);
}
.fg-header {
	--fg-h: 80px;
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--fg-bg);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.admin-bar .fg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fg-header { top: 0; } }

.fg-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	height: var(--fg-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.fg-header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fg-header__logo-img { display: block; width: auto; height: 52px; }
@media (max-width: 480px) { .fg-header__logo-img { height: 42px; } }
.fg-header .fg-header__logo-text {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--fg-fg);
	text-decoration: none;
}
.fg-header .fg-header__logo-text span { color: var(--fg-accent); }

.fg-nav { display: flex; align-items: center; gap: 32px; }
.fg-nav__list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.fg-nav__list a {
	position: relative;
	display: block;
	padding: 8px 0;
	font-weight: 600;
	font-size: 15px;
	color: var(--fg-fg);
	text-decoration: none;
	transition: color .2s;
}
.fg-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--fg-accent);
	transform: scaleX(0);
	transition: transform .2s;
}
.fg-nav__list a:hover,
.fg-nav__list .current-menu-item > a,
.fg-nav__list .current_page_item > a { color: var(--fg-fg); }
.fg-nav__list a:hover::after,
.fg-nav__list .current-menu-item > a::after,
.fg-nav__list .current_page_item > a::after { transform: scaleX(1); }

:is(.fg-header, .fg-app) .fg-header__cta {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	background: var(--fg-accent);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: filter .2s, transform .2s;
}
:is(.fg-header, .fg-app) .fg-header__cta:hover { color: #fff; background: var(--fg-accent-dk); transform: translateY(-1px); }
.fg-header__actions { display: flex; align-items: center; gap: 12px; }
:is(.fg-header, .fg-app) .fg-header__cta--ghost {
	padding: 10px 22px;
	border: 2px solid var(--fg-accent);
	background: transparent;
	color: #fff;
}
:is(.fg-header, .fg-app) .fg-header__cta--ghost:hover { background: var(--fg-accent); color: #fff; }

/* social media (Facebook, Instagram) – okrągłe ikony */
.fg-social { display: flex; align-items: center; gap: 8px; margin-left: -12px; }
.fg-header__inner > .fg-nav { margin-left: auto; } /* całe wolne miejsce między logo a menu – ikony przy przyciskach */
.fg-header .fg-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .18); color: #fff;
	transition: background .2s, border-color .2s, transform .2s;
}
.fg-header .fg-social__link:hover, .fg-header .fg-social__link:focus-visible { background: var(--fg-accent); border-color: var(--fg-accent); color: #fff; transform: translateY(-1px); }
@media (min-width: 1025px) and (max-width: 1200px) { .fg-nav { gap: 22px; } .fg-nav__list { gap: 20px; } .fg-header__inner { gap: 18px; } }

/* /aplikacja/ — strona z linkami do sklepów */
.fg-app { max-width: 720px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.fg-app__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* hamburger */
.fg-header .fg-header__toggle {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.fg-header .fg-header__toggle:hover, .fg-header .fg-header__toggle:focus { background: transparent; }
.fg-header__bars,
.fg-header__bars::before,
.fg-header__bars::after {
	display: block;
	width: 26px; height: 2px;
	margin: 0 auto;
	background: var(--fg-fg);
	transition: transform .25s, opacity .25s;
}
.fg-header__bars { position: relative; }
.fg-header__bars::before, .fg-header__bars::after { content: ""; position: absolute; left: 0; }
.fg-header__bars::before { top: -8px; }
.fg-header__bars::after  { top: 8px; }
.fg-header.is-open .fg-header__bars { background: transparent; }
.fg-header.is-open .fg-header__bars::before { transform: translateY(8px) rotate(45deg); }
.fg-header.is-open .fg-header__bars::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
	.fg-header { --fg-h: 68px; }
	.fg-header .fg-header__toggle { display: block; }
	.fg-social { order: 2; margin-left: auto; margin-right: 6px; gap: 6px; }
	.fg-header .fg-header__toggle { order: 3; }
	.fg-header .fg-social__link { width: 38px; height: 38px; }
	.fg-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 8px 20px 24px;
		background: var(--fg-bg);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
		display: none;
		/* panel na cały ekran pod nagłówkiem – bez prześwitującej treści strony */
		height: calc(100vh - var(--fg-h)); height: calc(100dvh - var(--fg-h));
		overflow-y: auto; overscroll-behavior: contain;
	}
	html.fg-menu-open { overflow: hidden; }
	.fg-header.is-open .fg-nav { display: flex; }
	.fg-nav__list { flex-direction: column; gap: 0; }
	.fg-nav__list a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 17px; }
	.fg-nav__list a::after { display: none; }
	.fg-header__actions { flex-direction: column; align-items: stretch; }
	.fg-header .fg-header__cta { text-align: center; padding: 14px 24px; }
	.fg-header .fg-header__cta--ghost { padding: 12px 22px; }
}

/* stopka — fallback, gdy szablon Elementora nie istnieje */
.fg-footer__fallback { margin: 0; padding: 24px 20px; text-align: center; }
.fg-footer .fg-copy p { margin: 0; }
