/* ============================================================
 * AMEFIT VISUAL REFRESH — FAZA 2 (BOLDER)
 * Ładowane PO custom.css (faza 1). Nadbudowuje, nie zastępuje.
 *
 * Sekcje:
 *   1. Tokeny per-kategoria (4 kolory zajęć) + scroll-padding-top
 *   2. Hero podstrony Zajęć Grupowych
 *   3. Zajęcia Grupowe — tabele→karty, grid layout, hover, badge
 *   4. Header — pill button "Strefa Klienta" + shrink po scroll
 *   5. Mobile menu — full-screen drawer, duża typografia
 *   6. Hero strony głównej — dramatyczny overlay + ogromny H1
 *   7. Sekcje oferty — grid kart z mocnym hover
 *   8. Sekcja "Honorujemy karty" — ciemne tło, polish logotypów
 *   9. Karty trenerów — bolder hover, aspect-ratio, line-clamp
 *  10. CTA band „Zaczynamy?"
 *  11. Footer — wzmocnienie kontrastu + grid 4-col
 *  12. Bolder cienie / podniesienia kart globalnie
 *  13. Reduced motion fallback (rozszerzenie)
 * ============================================================ */

/* === 1. TOKENY PER-KATEGORIA + SCROLL PADDING ============== */
:root {
	/* Kolory akcentów per-kategoria — żyją tylko w kontekście strony Zajęć
	   (body.amefit-classes-page). Dla globalnego akcentu zostaje --af-color-accent
	   (#cf0261 z fazy 1). */
	--af-cat-1: #ff6b35; /* TRENINGI WYDOLNOŚCIOWE — energetyczny pomarańcz */
	--af-cat-1-soft: rgba(255, 107, 53, 0.06);
	--af-cat-2: #14a098; /* REGENERACJA — głęboki teal (kontrast do białego tła) */
	--af-cat-2-soft: rgba(20, 160, 152, 0.06);
	--af-cat-3: #e63946; /* TRENINGI CARDIO — głęboka magenta-czerwień */
	--af-cat-3-soft: rgba(230, 57, 70, 0.06);
	--af-cat-4: #7b2cbf; /* TANIEC I FITNESS — electric purple */
	--af-cat-4-soft: rgba(123, 44, 191, 0.06);

	/* Mocniejsze cienie dla fazy 2 (override fazy 1) */
	--af-shadow-card:
		0 1px 2px rgba(22, 25, 34, 0.04),
		0 12px 32px -8px rgba(22, 25, 34, 0.12);
	--af-shadow-card-hover:
		0 2px 4px rgba(22, 25, 34, 0.06),
		0 24px 48px -12px rgba(22, 25, 34, 0.2);
}

/* Scroll padding — sticky header nie zasłania kotwic */
html {
	scroll-padding-top: 100px;
}

/* === 2. HERO PODSTRONY ZAJĘĆ GRUPOWYCH ===================== */

.amefit-classes-page .af-classes-hero {
	position: relative;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(207, 2, 97, 0.18) 0%, transparent 55%),
		radial-gradient(120% 140% at 100% 100%, rgba(123, 44, 191, 0.16) 0%, transparent 60%),
		linear-gradient(180deg, #0a0a0a 0%, #14161e 100%);
	color: #ffffff;
	padding: clamp(72px, 12vw, 160px) 24px clamp(72px, 12vw, 160px);
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtelna pseudo-noise tekstura — generowana SVG-em jako data-uri.
   Daje filmowy "grain" zamiast płaskiego kolorowego pola. */
.amefit-classes-page .af-classes-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.35;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.amefit-classes-page .af-classes-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
}

.amefit-classes-page .af-classes-hero__eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--af-color-accent);
	margin-bottom: 1.25rem;
}

.amefit-classes-page .af-classes-hero__title {
	font-size: clamp(3rem, 8vw, 5.5rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0 0 1.25rem;
}

.amefit-classes-page .af-classes-hero__subtitle {
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
	max-width: 56ch;
	margin: 0;
}

/* Ukryj BeTheme'owy Subheader na tej podstronie — hero zastępuje go w pełni */
.amefit-classes-page #Subheader {
	display: none;
}

/* === 3. ZAJĘCIA GRUPOWE — TABELE→KARTY ===================== */

/* Override szerokości kolumn Muffin Buildera tylko na tej podstronie.
   Cele: 3 kolumny desktop, 2 tablet, 1 mobile, niezależnie od one-fifth. */
.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.one-fifth,
.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.tablet-one-fifth,
.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.laptop-one-fifth {
	width: calc(100% / 3);
	max-width: calc(100% / 3);
	flex: 0 0 calc(100% / 3);
}

@media (max-width: 1023px) {
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.one-fifth,
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.tablet-one-fifth,
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.laptop-one-fifth {
		width: 50%;
		max-width: 50%;
		flex: 0 0 50%;
	}
}

@media (max-width: 599px) {
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.one-fifth,
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.tablet-one-fifth,
	.amefit-classes-page .mcb-section .mcb-section-inner > .mcb-wrap.laptop-one-fifth {
		width: 100%;
		max-width: 100%;
		flex: 0 0 100%;
	}
}

/* Tabela jako karta — display: flex z resetem table-children */
.amefit-classes-page table.tabela-zajecia {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 160px;
	margin: 0 0 1.5rem;
	padding: 1.75rem 1.5rem 1.5rem 1.75rem;
	background: #ffffff;
	border: 1px solid var(--af-color-border);
	border-left: 4px solid var(--af-color-accent);
	border-radius: var(--af-radius-lg);
	box-shadow: var(--af-shadow-card);
	cursor: pointer;
	transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1),
		border-left-width 250ms cubic-bezier(0.16, 1, 0.3, 1),
		background-color 250ms cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
	border-collapse: separate;
}

.amefit-classes-page table.tabela-zajecia tbody,
.amefit-classes-page table.tabela-zajecia tr {
	display: contents;
}

.amefit-classes-page table.tabela-zajecia td.zajecia,
.amefit-classes-page table.tabela-zajecia td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 1rem;
	border: none;
	background: transparent;
	font-size: clamp(1.05rem, 1.4vw, 1.4rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--af-color-text);
	text-align: left;
	line-height: 1.15;
}

/* Pseudo-CTA "Zobacz opis →" pod nazwą zajęć — robione CSS-em żeby
   nie modyfikować HTML-u tabeli (popup mechanika zostaje 1:1). */
.amefit-classes-page table.tabela-zajecia::after {
	content: "Zobacz opis →";
	position: absolute;
	bottom: 1rem;
	left: 1.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--af-color-text-muted);
	transition: color 250ms cubic-bezier(0.16, 1, 0.3, 1),
		transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wielka cyfra kategorii jako outline na tle karty (bardzo subtelna,
   tylko w hover staje się wyraźna — efekt brand-stamp) */
.amefit-classes-page table.tabela-zajecia::before {
	content: "";
	position: absolute;
	right: -8px;
	bottom: -16px;
	width: 80px;
	height: 80px;
	background-image: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.025) 50%);
	border-radius: var(--af-radius-md);
	pointer-events: none;
	transition: background-image 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: wyraźne podniesienie + pogrubienie krawędzi + tinted bg */
.amefit-classes-page table.tabela-zajecia:hover {
	transform: translateY(-6px);
	box-shadow: var(--af-shadow-card-hover);
	border-left-width: 6px;
}

.amefit-classes-page table.tabela-zajecia:hover::after {
	color: var(--af-color-accent);
	transform: translateX(4px);
}

.amefit-classes-page table.tabela-zajecia:focus-visible {
	outline: 2px solid var(--af-color-accent);
	outline-offset: 4px;
}

/* === 3a. KOLORY PER-KATEGORIA ============================== */

.amefit-classes-page table.tabela-zajecia.af-cat-1 { border-left-color: var(--af-cat-1); }
.amefit-classes-page table.tabela-zajecia.af-cat-2 { border-left-color: var(--af-cat-2); }
.amefit-classes-page table.tabela-zajecia.af-cat-3 { border-left-color: var(--af-cat-3); }
.amefit-classes-page table.tabela-zajecia.af-cat-4 { border-left-color: var(--af-cat-4); }

.amefit-classes-page table.tabela-zajecia.af-cat-1:hover { background: var(--af-cat-1-soft); }
.amefit-classes-page table.tabela-zajecia.af-cat-2:hover { background: var(--af-cat-2-soft); }
.amefit-classes-page table.tabela-zajecia.af-cat-3:hover { background: var(--af-cat-3-soft); }
.amefit-classes-page table.tabela-zajecia.af-cat-4:hover { background: var(--af-cat-4-soft); }

.amefit-classes-page table.tabela-zajecia.af-cat-1:hover::after { color: var(--af-cat-1); }
.amefit-classes-page table.tabela-zajecia.af-cat-2:hover::after { color: var(--af-cat-2); }
.amefit-classes-page table.tabela-zajecia.af-cat-3:hover::after { color: var(--af-cat-3); }
.amefit-classes-page table.tabela-zajecia.af-cat-4:hover::after { color: var(--af-cat-4); }

/* === 3b. NAGŁÓWKI KATEGORII (TRENINGI WYDOLNOŚCIOWE etc.) === */

.amefit-classes-page h3 strong {
	font-weight: 800;
}

/* Targetuj nagłówki kategorii przez ich kontekst kolumny.
   Każda kategoria H3 jest w mcb-column-inner-{ID} z naszej mapy. */
.amefit-classes-page .mcb-column-inner-dttvc70cd h3 strong { color: var(--af-cat-1); }
.amefit-classes-page .mcb-column-inner-znqy6qhna h3 strong { color: var(--af-cat-2); }
.amefit-classes-page .mcb-column-inner-magnpxe6f h3 strong { color: var(--af-cat-3); }
.amefit-classes-page .mcb-column-inner-hgnxnyrmj h3 strong { color: var(--af-cat-4); }

.amefit-classes-page .mcb-column-inner-dttvc70cd h3,
.amefit-classes-page .mcb-column-inner-znqy6qhna h3,
.amefit-classes-page .mcb-column-inner-magnpxe6f h3,
.amefit-classes-page .mcb-column-inner-hgnxnyrmj h3 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: clamp(2rem, 4vw, 3.5rem) 0 1.5rem;
	position: relative;
	padding-bottom: 0.75rem;
	display: inline-block;
	width: auto;
}

.amefit-classes-page .mcb-column-inner-dttvc70cd h3::after,
.amefit-classes-page .mcb-column-inner-znqy6qhna h3::after,
.amefit-classes-page .mcb-column-inner-magnpxe6f h3::after,
.amefit-classes-page .mcb-column-inner-hgnxnyrmj h3::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	border-radius: 4px;
}

.amefit-classes-page .mcb-column-inner-dttvc70cd h3::after { background: var(--af-cat-1); }
.amefit-classes-page .mcb-column-inner-znqy6qhna h3::after { background: var(--af-cat-2); }
.amefit-classes-page .mcb-column-inner-magnpxe6f h3::after { background: var(--af-cat-3); }
.amefit-classes-page .mcb-column-inner-hgnxnyrmj h3::after { background: var(--af-cat-4); }

/* === 3c. POPUP STYLING (wp-popups-lite) ==================== */

/* Backdrop ciemniejszy + blur */
.amefit-modernized .spu-bg {
	background: rgba(10, 10, 12, 0.78) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Panel popupu — ramka lewa w kolorze akcentu, lekka animacja wejścia */
.amefit-modernized .spu-box {
	border-radius: var(--af-radius-lg) !important;
	overflow: hidden !important;
	border-left: 4px solid var(--af-color-accent) !important;
	box-shadow: var(--af-shadow-card-hover) !important;
	animation: af-spu-in 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes af-spu-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.amefit-modernized .spu-content {
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--af-color-text);
}

.amefit-modernized .spu-content h4 {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-bottom: 0.75rem;
	color: var(--af-color-text);
}

.amefit-modernized .spu-close {
	color: var(--af-color-text-muted) !important;
	transition: color var(--af-duration-fast) var(--af-ease-out);
}

.amefit-modernized .spu-close:hover {
	color: var(--af-color-accent) !important;
}

/* === 3d. TOP BAR (utility bar nad headerem) ================ */

/* Ciemny slim-bar z kontaktem (tel + email) po lewej i ikonkami
 * social po prawej. Renderowany przez `mfn_hook_top` w functions.php
 * — siedzi PRZED #Wrapper, więc scrolluje się razem ze stroną i
 * znika gdy user przewinie w dół (sticky #Top_bar zostaje sam). */

.amefit-modernized .af-topbar {
	background: linear-gradient(180deg, #0a0a0a 0%, #14161e 100%);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.8rem;
	line-height: 1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	position: relative;
	z-index: 100;
}

/* Subtelny akcent w kolorze magenta na samym dole paska */
.amefit-modernized .af-topbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--af-color-accent) 50%,
		transparent 100%
	);
	opacity: 0.5;
	pointer-events: none;
}

.amefit-modernized .af-topbar__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.amefit-modernized .af-topbar__contact {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.amefit-modernized .af-topbar__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: color 220ms cubic-bezier(0.65, 0, 0.35, 1),
		transform 220ms cubic-bezier(0.65, 0, 0.35, 1);
}

.amefit-modernized .af-topbar__link:hover,
.amefit-modernized .af-topbar__link:focus-visible {
	color: var(--af-color-accent);
	transform: translateY(-1px);
}

.amefit-modernized .af-topbar__link:focus-visible {
	outline: 2px solid var(--af-color-accent);
	outline-offset: 4px;
	border-radius: 2px;
}

.amefit-modernized .af-topbar__icon {
	flex: 0 0 auto;
	color: var(--af-color-accent);
	transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.amefit-modernized .af-topbar__link:hover .af-topbar__icon {
	transform: scale(1.15) rotate(-6deg);
}

.amefit-modernized .af-topbar__label {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.amefit-modernized .af-topbar__value {
	font-weight: 600;
	font-feature-settings: "tnum";
	font-variant-numeric: tabular-nums;
}

.amefit-modernized .af-topbar__social {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.amefit-modernized .af-topbar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: background-color 220ms cubic-bezier(0.65, 0, 0.35, 1),
		color 220ms cubic-bezier(0.65, 0, 0.35, 1),
		transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
		box-shadow 220ms cubic-bezier(0.65, 0, 0.35, 1);
}

.amefit-modernized .af-topbar__social-link:hover,
.amefit-modernized .af-topbar__social-link:focus-visible {
	background: var(--af-color-accent);
	color: #ffffff;
	transform: translateY(-2px) scale(1.1) rotate(-4deg);
	box-shadow: 0 8px 16px -4px rgba(207, 2, 97, 0.5);
	outline: none;
}

/* Mobile: zwarty 2-rzędowy układ — kontakt nad social, mniejsze fonty */
@media (max-width: 767px) {
	.amefit-modernized .af-topbar__inner {
		padding: 8px 16px;
		gap: 0.5rem;
		justify-content: center;
	}
	.amefit-modernized .af-topbar__contact {
		gap: 1rem;
		font-size: 0.75rem;
	}
	.amefit-modernized .af-topbar__link--email .af-topbar__label {
		display: none;
	}
}

/* Bardzo małe ekrany — schowaj label "Tel.:" i "Email:" całkowicie,
   zostaje tylko ikona + wartość */
@media (max-width: 479px) {
	.amefit-modernized .af-topbar__label {
		display: none;
	}
	.amefit-modernized .af-topbar__value {
		font-size: 0.78rem;
	}
}

/* Reduced motion — zerujemy mikro-overshooty */
@media (prefers-reduced-motion: reduce) {
	.amefit-modernized .af-topbar__link:hover,
	.amefit-modernized .af-topbar__social-link:hover {
		transform: none;
	}
	.amefit-modernized .af-topbar__link:hover .af-topbar__icon {
		transform: none;
	}
}

/* === 4. HEADER — STREFA KLIENTA PILL + SHRINK ============== */

/* Menu wyrównane do prawej krawędzi headera (override BeTheme'owego centrowania) */
.amefit-modernized #Top_bar .menu_wrapper {
	float: right;
}

/* Lekki odstęp Headera od krawędzi viewportu (poza szablonami z fullwidth sliderem) */
body.amefit-modernized:not(.template-slider) #Header {
	margin-top: 15px;
}


/* Header shrink — JS dokleja klasę `.af-header-shrunk` do <body>
   po przewinięciu o 80px. Wartości transition + scale. */
.amefit-modernized #Top_bar {
	transition: background-color var(--af-duration-base) var(--af-ease-out),
		box-shadow var(--af-duration-base) var(--af-ease-out),
		backdrop-filter var(--af-duration-base) var(--af-ease-out),
		padding 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized.af-header-shrunk #Top_bar {
	padding-top: 0;
	padding-bottom: 0;
}

.amefit-modernized .logo,
.amefit-modernized #Top_bar .logo,
.amefit-modernized #Top_bar a.logo img {
	transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
		max-height 280ms cubic-bezier(0.16, 1, 0.3, 1);
	transform-origin: left center;
}

.amefit-modernized.af-header-shrunk #Top_bar .logo img {
	transform: scale(0.84);
}

/* (Pill button "Strefa Klienta" usunięty — pozycja menu wraca do
   domyślnego stylowania z fazy 1, identycznego jak inne pozycje menu.) */

/* === 4a. PIĘKNY HOVER MENU ================================= */

/* Symetryczne dwa paski na pozycji menu — top + bottom — odsłaniane
 * clip-pathem z PRZECIWNYCH stron i z lekkim opóźnieniem między sobą.
 * Daje filmowy efekt "ramki obejmującej" pozycję menu, gładki gradient,
 * premium feel.
 *
 *   - Underline (::after na span tekstu): wjeżdża OD LEWEJ, 460ms, gradient
 *     pełny → przyciemniony.
 *   - Top border (::before na <a>): wjeżdża OD PRAWEJ, 460ms z opóźnieniem 60ms,
 *     gradient w lustrzanym kierunku (przyciemniony → pełny).
 *
 * Razem z crossfade koloru tekstu i drobnym translateY(-1px). */

.amefit-modernized #Top_bar #menu > ul > li > a {
	position: relative;
	transition: color 320ms cubic-bezier(0.65, 0, 0.35, 1),
		transform 320ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* Underline (od dołu, wjeżdża z lewej) */
.amefit-modernized #Top_bar #menu > ul > li > a > span:first-child::after {
	height: 2px;
	left: 16px;
	right: 16px;
	bottom: 8px;
	background: linear-gradient(
		90deg,
		var(--af-color-accent) 0%,
		var(--af-color-accent-hover) 60%,
		rgba(207, 2, 97, 0.25) 100%
	);
	border-radius: 2px;
	transform: none;
	clip-path: inset(0 100% 0 0);
	transition: clip-path 460ms cubic-bezier(0.65, 0, 0.35, 1);
	transition-delay: 0ms;
}

/* Top border (od góry, wjeżdża z prawej; lustrzany gradient) */
.amefit-modernized #Top_bar #menu > ul > li > a::before {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	top: 8px;
	height: 2px;
	background: linear-gradient(
		90deg,
		rgba(207, 2, 97, 0.25) 0%,
		var(--af-color-accent-hover) 40%,
		var(--af-color-accent) 100%
	);
	border-radius: 2px;
	clip-path: inset(0 0 0 100%);
	transition: clip-path 460ms cubic-bezier(0.65, 0, 0.35, 1);
	transition-delay: 60ms;
	pointer-events: none;
}

/* Stan otwarty (hover / pozycja aktywna) — odsłonięcie obu pasków */
.amefit-modernized #Top_bar #menu > ul > li:hover > a > span:first-child::after,
.amefit-modernized #Top_bar #menu > ul > li.current-menu-item > a > span:first-child::after,
.amefit-modernized #Top_bar #menu > ul > li.current_page_item > a > span:first-child::after,
.amefit-modernized #Top_bar #menu > ul > li.current-menu-ancestor > a > span:first-child::after,
.amefit-modernized #Top_bar #menu > ul > li:hover > a::before,
.amefit-modernized #Top_bar #menu > ul > li.current-menu-item > a::before,
.amefit-modernized #Top_bar #menu > ul > li.current_page_item > a::before,
.amefit-modernized #Top_bar #menu > ul > li.current-menu-ancestor > a::before {
	clip-path: inset(0 0 0 0);
}

/* Lekkie podniesienie tekstu na hover — drobny "click-feel" */
.amefit-modernized #Top_bar #menu > ul > li:hover > a {
	transform: translateY(-1px);
}

/* Reduced motion: zostawiamy odsłonięte paski, bez animacji wjeżdżania */
@media (prefers-reduced-motion: reduce) {
	.amefit-modernized #Top_bar #menu > ul > li:hover > a {
		transform: none;
	}
	.amefit-modernized #Top_bar #menu > ul > li > a > span:first-child::after,
	.amefit-modernized #Top_bar #menu > ul > li > a::before {
		transition-duration: 1ms;
	}
}

/* === 5. MOBILE MENU — FULL-SCREEN DRAWER =================== */

.amefit-modernized.menu-mobile #Top_bar #menu {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-height: 100vh !important;
	background: var(--af-color-dark) !important;
	padding: 96px 32px 48px !important;
	overflow-y: auto !important;
	z-index: 9999;
	box-shadow: none;
}

.amefit-modernized.menu-mobile #Top_bar #menu ul.menu {
	display: flex !important;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li {
	display: block !important;
	width: 100%;
	border: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	opacity: 0;
	transform: translateX(20px);
	animation: af-mobile-item-in 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(1) { animation-delay: 60ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(2) { animation-delay: 120ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(3) { animation-delay: 180ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(4) { animation-delay: 240ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(5) { animation-delay: 300ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(6) { animation-delay: 360ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(7) { animation-delay: 420ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(8) { animation-delay: 480ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(9) { animation-delay: 540ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(10) { animation-delay: 600ms; }
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li:nth-child(n+11) { animation-delay: 660ms; }

@keyframes af-mobile-item-in {
	from { opacity: 0; transform: translateX(20px); }
	to   { opacity: 1; transform: translateX(0); }
}

.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li > a {
	display: block !important;
	width: 100%;
	padding: 1.25rem 0 !important;
	color: #ffffff !important;
	font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.1;
	background: transparent !important;
	border: none !important;
}

.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li > a:hover,
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li > a:active {
	color: var(--af-color-accent) !important;
}

/* Ukryj kreski hover w mobile menu (bez przestrzeni na taką ozdobę) */
.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li > a > span::after {
	display: none !important;
}

/* === 6. HERO STRONY GŁÓWNEJ — DRAMATYCZNIEJ ================ */

/* BeTheme generuje pierwszą sekcję strony głównej jako section.section-page-bg
   albo section z bg-image. Atakujemy konkretnie #Subheader (jeśli jest)
   i pierwszą full-width sekcję. */
.amefit-modernized.home #Subheader {
	display: none;
}

/* Pierwsza sekcja na home: jeśli ma bg-image, dorzuć overlay */
.amefit-modernized.home #Content > .section:first-of-type,
.amefit-modernized.home .section_wrapper.section_wrapper_1,
.amefit-modernized.home .section.has-bg-image:first-of-type {
	position: relative;
	min-height: clamp(60vh, 80vh, 800px);
	display: flex;
	align-items: center;
}

.amefit-modernized.home #Content > .section:first-of-type::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 0%, rgba(10, 10, 16, 0.7) 100%),
		linear-gradient(90deg, rgba(10, 10, 16, 0.55) 0%, rgba(10, 10, 16, 0.15) 60%);
	pointer-events: none;
	z-index: 1;
}

.amefit-modernized.home #Content > .section:first-of-type > .section_wrapper,
.amefit-modernized.home #Content > .section:first-of-type .section_wrapper {
	position: relative;
	z-index: 2;
}

/* Pierwszy H1/H2 w pierwszej sekcji = filmowa skala */
.amefit-modernized.home #Content > .section:first-of-type h1,
.amefit-modernized.home #Content > .section:first-of-type h2 {
	font-size: clamp(2.75rem, 8vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 0.95;
	color: #ffffff;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.amefit-modernized.home #Content > .section:first-of-type p {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	max-width: 56ch;
}

/* === 7. SEKCJE OFERTY (HOME) — BOLDER KARTY ================ */

.amefit-modernized .feature_box,
.amefit-modernized .icon_box,
.amefit-modernized .promo_box,
.amefit-modernized .pricing-box {
	box-shadow: var(--af-shadow-card);
	border-radius: var(--af-radius-lg);
	transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized .feature_box:hover,
.amefit-modernized .icon_box:hover,
.amefit-modernized .promo_box:hover,
.amefit-modernized .pricing-box:hover {
	transform: translateY(-6px);
	box-shadow: var(--af-shadow-card-hover);
}

.amefit-modernized .feature_box .desc_wrapper,
.amefit-modernized .icon_box .desc_wrapper {
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* Większy padding sekcji */
.amefit-modernized .section .section_wrapper,
.amefit-modernized .section_wrapper {
	max-width: 1320px;
}

.amefit-modernized .section {
	padding-top: clamp(3rem, 7vw, 5rem);
	padding-bottom: 0;
}

/* === 8. SEKCJA „HONORUJEMY KARTY" ========================== */

.amefit-modernized .clients,
.amefit-modernized .clients-list {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Logotypy: subtelnie odbarwione w spoczynku, pełen kolor w hover.
   Override fazy 1 dla większej dramy. */
.amefit-modernized .clients .image_frame,
.amefit-modernized .clients .one_third .image_frame,
.amefit-modernized .clients-list .image_frame {
	filter: grayscale(80%) brightness(0.95);
	opacity: 0.7;
	transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
		filter 280ms cubic-bezier(0.16, 1, 0.3, 1),
		opacity 280ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized .clients .image_frame:hover,
.amefit-modernized .clients .one_third .image_frame:hover,
.amefit-modernized .clients-list .image_frame:hover {
	filter: grayscale(0%) brightness(1);
	opacity: 1;
	transform: translateY(-4px) scale(1.03);
	box-shadow: var(--af-shadow-card-hover);
}

/* === 9. KARTY TRENERÓW (KADRA) — BOLDER ==================== */

.amefit-modernized .team {
	overflow: hidden;
}

.amefit-modernized .team .team-image,
.amefit-modernized .team .image_frame {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--af-color-surface-2);
}

.amefit-modernized .team .team-image img,
.amefit-modernized .team .image_frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized .team:hover .team-image img,
.amefit-modernized .team:hover .image_frame img {
	transform: scale(1.06);
}

.amefit-modernized .team .team-desc p,
.amefit-modernized .team-info p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === 10. CTA BAND „ZACZYNAMY?" ============================= */

.amefit-modernized .af-cta-band {
	display: block;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	background:
		linear-gradient(135deg, var(--af-color-accent) 0%, #8c0345 100%);
	color: #ffffff;
	padding: clamp(48px, 8vw, 96px) 24px;
	margin-top: 0;
	margin-bottom: 0;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.amefit-modernized .af-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(80% 100% at 0% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
		radial-gradient(60% 80% at 100% 100%, rgba(0, 0, 0, 0.28) 0%, transparent 60%);
	pointer-events: none;
}

.amefit-modernized .af-cta-band__inner {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 3rem);
}

@media (max-width: 767px) {
	.amefit-modernized .af-cta-band__inner {
		grid-template-columns: 1fr;
		text-align: left;
	}
}

.amefit-modernized .af-cta-band__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #ffffff;
	margin: 0 0 0.5rem;
}

.amefit-modernized .af-cta-band__subtitle {
	font-size: clamp(0.95rem, 1.4vw, 1.125rem);
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
	max-width: 60ch;
}

.amefit-modernized .af-cta-band__action {
	justify-self: end;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1.1rem 2rem;
	background: #ffffff;
	color: var(--af-color-accent);
	border-radius: var(--af-radius-pill);
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
	transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
		background-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized .af-cta-band__action::after {
	content: "→";
	font-size: 1.1em;
	transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.amefit-modernized .af-cta-band__action:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.45);
	background: #fff8fb;
	color: var(--af-color-accent-hover);
}

.amefit-modernized .af-cta-band__action:hover::after {
	transform: translateX(4px);
}

@media (max-width: 767px) {
	.amefit-modernized .af-cta-band__action {
		justify-self: start;
	}
}

/* === 11. FOOTER — WZMOCNIENIE ============================== */

.amefit-modernized #Footer {
	background-color: #0a0a0a;
}

.amefit-modernized #Footer .widgets_wrapper {
	padding: clamp(48px, 8vw, 96px) 0 48px;
}

/* Większy gap między kolumnami widgetów */
.amefit-modernized #Footer .widgets_wrapper > .container > .column,
.amefit-modernized #Footer .widgets_wrapper .one_fourth,
.amefit-modernized #Footer .widgets_wrapper .one_third {
	margin-bottom: 2rem;
}

.amefit-modernized #Footer h4,
.amefit-modernized #Footer .widget-title,
.amefit-modernized #Footer .widget_title {
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 1.25rem;
	position: relative;
	padding-bottom: 0.75rem;
}

.amefit-modernized #Footer h4::after,
.amefit-modernized #Footer .widget-title::after,
.amefit-modernized #Footer .widget_title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 2px;
	background: var(--af-color-accent);
	border-radius: 2px;
}

.amefit-modernized #Footer .widgets_wrapper table.plan {
	width: 100%;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
}

.amefit-modernized #Footer .widgets_wrapper table.plan tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.amefit-modernized #Footer .widgets_wrapper table.plan tr:last-child {
	border-bottom: none;
}

.amefit-modernized #Footer .widgets_wrapper table.plan td,
.amefit-modernized #Footer .widgets_wrapper table.plan th {
	padding: 0.5rem 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	border: none;
	font-weight: 400;
}

.amefit-modernized #Footer .widgets_wrapper table.plan tbody tr:hover td {
	background: transparent;
	color: #ffffff;
}

/* === 11c. HOVER NA IKONACH SOCIAL MEDIA ==================== */

/* Ikonki FB / IG renderowane są jako <img> wewnątrz <a> z hrefem do
 * facebook.com / instagram.com (oba w jednym anchorze w treści Kontakt).
 * Animację hover zakładamy per-ikonę (img:hover, nie a:hover) — dzięki
 * temu najechanie na FB nie animuje IG i odwrotnie.
 *
 * Efekt: lekki lift + scale + drobny obrót + akcentowy glow magenty,
 * easing z overshoot dla "spring feel". */

.amefit-modernized a[href*="facebook.com"] img,
.amefit-modernized a[href*="instagram.com"] img,
.amefit-modernized a[href*="fb.com"] img,
.amefit-modernized #Footer .social a img {
	display: inline-block;
	transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1),
		filter 280ms cubic-bezier(0.65, 0, 0.35, 1);
	will-change: transform, filter;
	transform-origin: center center;
}

.amefit-modernized a[href*="facebook.com"] img:hover,
.amefit-modernized a[href*="instagram.com"] img:hover,
.amefit-modernized a[href*="fb.com"] img:hover,
.amefit-modernized #Footer .social a img:hover {
	transform: translateY(-4px) scale(1.12) rotate(-4deg);
	filter: drop-shadow(0 10px 20px rgba(207, 2, 97, 0.45))
		drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Reduced motion — zostaje delikatny lift bez overshoot/rotate */
@media (prefers-reduced-motion: reduce) {
	.amefit-modernized a[href*="facebook.com"] img,
	.amefit-modernized a[href*="instagram.com"] img,
	.amefit-modernized a[href*="fb.com"] img,
	.amefit-modernized #Footer .social a img {
		transition-duration: 1ms;
	}
	.amefit-modernized a[href*="facebook.com"] img:hover,
	.amefit-modernized a[href*="instagram.com"] img:hover,
	.amefit-modernized a[href*="fb.com"] img:hover,
	.amefit-modernized #Footer .social a img:hover {
		transform: scale(1.05);
		filter: none;
	}
}

/* === 11b. WATERMARK LOGO W CIEMNEJ SEKCJI FOOTER-STYLE ===== */

/* Tożsamość sekcji "footer-style" (ta z Godzinami otwarcia / Kontaktem) na
 * stronach — page-builder generuje per-strona unikalny mcb-section-{hash},
 * więc selektor opieramy o stabilną cechę: inline `background-color:#212121`.
 * Wszystkie ciemne sekcje budowane na taki sam kolor dziedziczą watermark.
 *
 * Watermark = duży logotyp AmeFit, w pełni biały (filter: brightness(0)
 * invert(1) konwertuje czarny logotyp z PNG na białą sylwetkę), opacity 0.1,
 * przyklejony do lewej krawędzi, zajmuje ~50% szerokości viewportu.
 *
 * URL względny — żeby ten sam plik działał na produkcji bez zmiany. */

.amefit-modernized section.mcb-section[style*="background-color:#212121"],
.amefit-modernized section.mcb-section[style*="background-color: #212121"] {
	position: relative;
	overflow: hidden;
}

.amefit-modernized section.mcb-section[style*="background-color:#212121"]::before,
.amefit-modernized section.mcb-section[style*="background-color: #212121"]::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 50vw;
	max-width: 50%;
	background-image: url("/wp-content/uploads/2023/05/logo_czarne-biale-przezroczyste.png");
	background-position: left bottom;
	background-size: contain;
	background-repeat: no-repeat;
	filter: brightness(0) invert(1);
	opacity: 0.1;
	pointer-events: none;
	z-index: 0;
}

/* Trzymaj content sekcji (wrap z modułami) nad watermarkiem */
.amefit-modernized section.mcb-section[style*="background-color:#212121"] > .section_wrapper,
.amefit-modernized section.mcb-section[style*="background-color: #212121"] > .section_wrapper,
.amefit-modernized section.mcb-section[style*="background-color:#212121"] > .mcb-section-inner,
.amefit-modernized section.mcb-section[style*="background-color: #212121"] > .mcb-section-inner {
	position: relative;
	z-index: 1;
}

/* Mobile: watermark mniej dominujący, przykryty przez treść */
@media (max-width: 767px) {
	.amefit-modernized section.mcb-section[style*="background-color:#212121"]::before,
	.amefit-modernized section.mcb-section[style*="background-color: #212121"]::before {
		width: 80vw;
		max-width: 80%;
		opacity: 0.06;
	}
}

/* === 11a. MODUŁ „GODZINY OTWARCIA" ========================= */

/* Dedykowany styling dla kolumny z godzinami otwarcia. Rozpoznajemy ją
 * po unikalnym ID kolumny Muffin Buildera (mcb-column-inner-817bbae6e),
 * stabilnym między reloadami strony.
 *
 * Cel: self-contained, piękny moduł z ikonami i mocnym kontrastem,
 * który dobrze wygląda niezależnie od koloru tła sekcji.
 *
 * Każda komórka <td> z bazy ma inline `style="color:#fff"` — wygrywa nad
 * klasami, więc kolor `td:last-child` (godziny) musi być nadbity przez
 * !important. Reszta dziedziczy biel z inline-stylów (co tu pasuje). */

.amefit-modernized .mcb-column-inner-817bbae6e {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--af-radius-lg);
	padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.75rem);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 12px 32px -16px rgba(0, 0, 0, 0.4);
	position: relative;
	overflow: hidden;
}

/* Subtelny accent glow w lewym górnym narożniku — premium feel */
.amefit-modernized .mcb-column-inner-817bbae6e::before {
	content: "";
	position: absolute;
	top: -40%;
	left: -20%;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(207, 2, 97, 0.18) 0%, transparent 70%);
	pointer-events: none;
}

/* Override align_center wymuszanego przez page-builder (dla tej kolumny) */
.amefit-modernized .mcb-column-inner-817bbae6e .column_attr.align_center {
	text-align: left !important;
}

/* H4 — tytuł z ikoną zegarka (mask SVG, kolor akcentu) */
.amefit-modernized .mcb-column-inner-817bbae6e h4 {
	display: flex !important;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.25rem !important;
	padding: 0 0 0.85rem !important;
	font-size: 0.85rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1 !important;
	color: #ffffff !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	z-index: 1;
}

/* Override fazy 2 — nie dorzucaj kreski 32×2 pod widget-title (tu mamy
 * pełną kreskę border-bottom, kolejna byłaby zaduplikowana) */
.amefit-modernized .mcb-column-inner-817bbae6e h4::after {
	display: none;
}

/* Ikona zegarka jako pseudo-element z mask (kolor follow currentColor magenta) */
.amefit-modernized .mcb-column-inner-817bbae6e h4::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background-color: var(--af-color-accent);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center / contain no-repeat;
	display: inline-block;
}

/* Tabela — kompletny restyle do flex-layout (override inline width: 200px) */
.amefit-modernized .mcb-column-inner-817bbae6e table.plan {
	display: block;
	width: 100%;
	margin: 0;
	border: none;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	position: relative;
	z-index: 1;
}

.amefit-modernized .mcb-column-inner-817bbae6e table.plan tbody {
	display: block;
	width: 100%;
}

.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
	transition: padding-left 280ms cubic-bezier(0.65, 0, 0.35, 1);
}

.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr:last-child {
	border-bottom: none;
}

/* Lekka mikro-interakcja: hover wiersza przesuwa go w prawo */
.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr:hover {
	padding-left: 6px;
}

/* Reset td (override inline width:200px + spójna typografia) */
.amefit-modernized .mcb-column-inner-817bbae6e table.plan td {
	width: auto !important;
	max-width: none;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 0.95rem !important;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	vertical-align: middle;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

/* Lewa kolumna (dzień) — z ikonką kalendarza w kolorze akcentu */
.amefit-modernized .mcb-column-inner-817bbae6e table.plan td:first-child::before {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background-color: var(--af-color-accent);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>") center / contain no-repeat;
	display: inline-block;
	transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}

.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr:hover td:first-child::before {
	transform: scale(1.15) rotate(-6deg);
}

/* Prawa kolumna (godziny) — bold, tabular-nums, biel pełna */
.amefit-modernized .mcb-column-inner-817bbae6e table.plan td:last-child {
	color: #ffffff !important;
	font-weight: 700 !important;
	font-feature-settings: "tnum";
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Mobile — zwartszy odstęp, mniejsza ikona ale czytelnie */
@media (max-width: 599px) {
	.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr {
		flex-wrap: wrap;
		gap: 0.25rem;
	}
	.amefit-modernized .mcb-column-inner-817bbae6e table.plan td:first-child {
		flex: 1 1 60%;
	}
	.amefit-modernized .mcb-column-inner-817bbae6e table.plan td:last-child {
		flex: 0 0 auto;
	}
}

/* Reduced motion — zerujemy mikro-interakcje hover */
@media (prefers-reduced-motion: reduce) {
	.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr:hover {
		padding-left: 0;
	}
	.amefit-modernized .mcb-column-inner-817bbae6e table.plan tr:hover td:first-child::before {
		transform: none;
	}
}

/* === 12. POLISH GLOBALNY =================================== */

/* Pusta sekcja "page-footer" z BeTheme — kontener dla page-pagera
 * (next/prev page). Na stronach BeTheme'owych prawie zawsze pusty,
 * a strukturalnie zajmuje sporo miejsca (margin-top sekcji + wrapper).
 * Schowaj globalnie — nie używamy paginacji stron. */
.amefit-modernized .section.section-page-footer {
	display: none;
}


/* Hover tabel cennika i innych nieinteraktywnych — niech nie wyglądają
   jak coś klikalnego (faza 1 dawała im hover; tu cofamy dla generycznych
   tabel nie-zajęciowych) */
.amefit-modernized table:not(.tabela-zajecia):not(.plan) tbody tr:hover td {
	background: rgba(22, 25, 34, 0.025);
}

/* Subheader na podstronach (poza Zajęciami) — większa skala tytułu */
.amefit-modernized:not(.amefit-classes-page) #Subheader .title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.amefit-modernized:not(.amefit-classes-page) #Subheader {
	padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
}

/* === 13. REDUCED MOTION (ROZSZERZENIE) ===================== */

@media (prefers-reduced-motion: reduce) {
	.amefit-modernized.menu-mobile #Top_bar #menu ul.menu > li {
		opacity: 1;
		transform: none;
		animation: none;
	}

	.amefit-modernized .spu-box {
		animation: none;
	}

	.amefit-modernized.home #Content > .section:first-of-type::before {
		/* zostaje overlay — to nie animacja, tylko statyczny gradient */
	}
}
