/**
 * Stripsiaki — arkusz główny
 *
 * Spis treści:
 *   01. Reset i baza
 *   02. Naprawa wpautop (Divi Code Module)
 *   03. Prymitywy layoutu
 *   04. Typografia
 *   05. Przyciski i odznaki
 *   06. Dekoracje: fale, kleksy, okruchy
 *   07. Header i menu mobilne
 *   08. Hero pełnoekranowy
 *   09. Panele pełnoekranowe (scroll-snap)
 *   10. Kroki przepisu
 *   11. Karty produktów
 *   12. Galeria przepisów (poziomy scroll)
 *   13. Pasek zaufania i liczniki
 *   14. FAQ
 *   15. Klub / newsletter
 *   16. Stopka
 *   17. Animacje i reveal-on-scroll
 *   18. Poziomy efektów i prefers-reduced-motion
 */

/* ==========================================================================
   01. RESET I BAZA
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body.stx-theme {
	font-family: var(--stx-font-body);
	color: var(--stx-ink);
	background: var(--stx-cream);
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Divi opakowuje treść w kilka wrapperów z własnym paddingiem — zerujemy,
   bo nasze sekcje same zarządzają odstępami i muszą sięgać krawędzi ekranu. */
body.stx-theme #page-container,
body.stx-theme #et-main-area,
body.stx-theme #main-content,
body.stx-theme .entry-content,
body.stx-theme .et_pb_section,
body.stx-theme .et_pb_row,
body.stx-theme .et_pb_column,
body.stx-theme .et_pb_module {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.stx-theme .et_pb_row { display: block !important; }

body.stx-theme img {
	max-width: 100%;
	height: auto;
	display: block;
}

body.stx-theme a { text-decoration: none; color: inherit; }

body.stx-theme :focus-visible {
	outline: 3px solid var(--stx-coral);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Widoczne tylko dla czytników ekranu */
.stx-sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   02. NAPRAWA WPAUTOP
   WordPress wstrzykuje <br> i <p> w treść modułu Code. W kontenerach
   flex/grid stają się dodatkowymi dziećmi i rozbijają layout.
   Filtr PHP w class-stx-wpautop.php robi to samo po stronie serwera —
   te reguły to druga warstwa obrony (Theme Builder omija the_content).
   ========================================================================== */

[class^="stx-"] > br,
[class*=" stx-"] > br { display: none !important; }

[class^="stx-"] > p:empty,
[class*=" stx-"] > p:empty { display: none !important; }

/* Kontenery flex/grid — tam <br> szkodzi najbardziej */
.stx-header-inner > br, .stx-nav > br, .stx-nav-list > br,
.stx-header-actions > br, .stx-hero-inner > br, .stx-hero-content > br,
.stx-hero-actions > br, .stx-hero-stats > br, .stx-panel > br,
.stx-panel-inner > br, .stx-steps > br, .stx-step > br,
.stx-products-grid > br, .stx-product-card > br, .stx-recipes-track > br,
.stx-recipe-card > br, .stx-trust-grid > br, .stx-faq > br,
.stx-faq-item > br, .stx-footer-grid > br, .stx-footer-col > br,
.stx-club-form > br, .stx-variants > br, .stx-variant > br,
.stx-mnav > br, .stx-mnav-list > br { display: none !important; }

/* ==========================================================================
   03. PRYMITYWY LAYOUTU
   ========================================================================== */

.stx-wrap {
	width: 100%;
	max-width: var(--stx-maxw);
	margin-inline: auto;
	padding-inline: var(--stx-gutter);
}

.stx-wrap--narrow { max-width: 860px; }
.stx-wrap--wide   { max-width: 1560px; }

.stx-section {
	position: relative;
	padding-block: var(--stx-section-y);
	overflow: clip;
}

.stx-section--blue   { background: var(--stx-blue); color: var(--stx-white); }
.stx-section--pale   { background: var(--stx-blue-pale); }
.stx-section--yellow { background: var(--stx-yellow); }
.stx-section--white  { background: var(--stx-white); }

.stx-section-head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.stx-eyebrow {
	display: inline-block;
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .4em 1.1em;
	border-radius: var(--stx-radius-full);
	background: var(--stx-yellow);
	color: var(--stx-ink);
	border: var(--stx-border);
	box-shadow: var(--stx-shadow-sticker-sm);
	transform: rotate(-2deg);
	margin-bottom: 1rem;
}

.stx-section--blue .stx-eyebrow { box-shadow: 4px 4px 0 var(--stx-blue-dark); }

/* ==========================================================================
   04. TYPOGRAFIA
   Skala płynna przez clamp() — jedno źródło prawdy zamiast trzech
   breakpointów per moduł (to naprawia rozjazd mobile ze starej strony).
   ========================================================================== */

body.stx-theme h1, body.stx-theme h2, body.stx-theme h3,
body.stx-theme h4, body.stx-theme .stx-display {
	font-family: var(--stx-font-display);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.01em;
	color: inherit;
	margin: 0 0 .4em;
	text-wrap: balance;
}

body.stx-theme h1, .stx-h1 { font-size: var(--stx-h1); }
body.stx-theme h2, .stx-h2 { font-size: var(--stx-h2); line-height: 1.04; }
body.stx-theme h3, .stx-h3 { font-size: var(--stx-h3); line-height: 1.12; }

.stx-lead {
	font-size: var(--stx-lead);
	line-height: 1.6;
	color: var(--stx-ink-soft);
	text-wrap: pretty;
}

.stx-section--blue .stx-lead { color: rgba(255,255,255,.86); }

/* Żółty tekst na jasnym tle ma kontrast 1,5:1 — poniżej WCAG.
   Wyróżnienie robimy tłem, nie kolorem liter. */
.stx-mark {
	background: var(--stx-yellow);
	color: var(--stx-ink);
	padding: 0 .18em;
	border-radius: 6px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Wersja na ciemnym/niebieskim tle — tam żółty tekst ma dobry kontrast */
.stx-section--blue .stx-accent,
.stx-hero .stx-accent { color: var(--stx-yellow); }

/* Nagłówek z obrysem — czytelny na zdjęciu */
.stx-outline {
	color: var(--stx-white);
	-webkit-text-stroke: 3px var(--stx-ink);
	paint-order: stroke fill;
	text-shadow: 5px 5px 0 var(--stx-ink);
}

/* ==========================================================================
   05. PRZYCISKI I ODZNAKI
   ========================================================================== */

.stx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1;
	padding: .95em 1.8em;
	min-height: 48px;
	border-radius: var(--stx-radius-full);
	border: var(--stx-border);
	cursor: pointer;
	text-align: center;
	transition: transform var(--stx-dur-fast) var(--stx-ease-bounce),
	            box-shadow var(--stx-dur-fast) var(--stx-ease),
	            background-color var(--stx-dur-fast) var(--stx-ease);
	box-shadow: var(--stx-shadow-sticker);
	will-change: transform;
}

.stx-btn:hover,
.stx-btn:focus-visible {
	transform: translate(-2px, -2px);
	box-shadow: 9px 9px 0 var(--stx-ink);
}

.stx-btn:active {
	transform: translate(3px, 3px);
	box-shadow: 2px 2px 0 var(--stx-ink);
}

.stx-btn--primary { background: var(--stx-yellow); color: var(--stx-ink); }
.stx-btn--primary:hover { background: var(--stx-yellow-light); }

.stx-btn--blue { background: var(--stx-blue); color: var(--stx-white); }
.stx-btn--blue:hover { background: var(--stx-blue-light); }

.stx-btn--coral { background: var(--stx-coral); color: var(--stx-white); }

.stx-btn--ghost {
	background: transparent;
	color: inherit;
	box-shadow: none;
	border-color: currentColor;
}
.stx-btn--ghost:hover { box-shadow: none; background: rgba(255,255,255,.14); }

.stx-btn--lg { padding: 1.15em 2.4em; font-size: clamp(1.1rem, 1.7vw, 1.45rem); }
.stx-btn--sm { padding: .7em 1.3em; font-size: .95rem; min-height: 40px; }

.stx-badge {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 700;
	font-size: .82rem;
	padding: .35em .9em;
	border-radius: var(--stx-radius-full);
	background: var(--stx-white);
	border: 2px solid var(--stx-ink);
	color: var(--stx-ink);
}

.stx-badge--hot   { background: var(--stx-coral); color: var(--stx-white); }
.stx-badge--mild  { background: var(--stx-mint); color: var(--stx-ink); }
.stx-badge--best  { background: var(--stx-yellow); color: var(--stx-ink); }

/* ==========================================================================
   06. DEKORACJE
   ========================================================================== */

/* Falowany separator jest teraz rysowany w CSS przez .stx-footer::before
   (patrz sekcja 16) — nie wymaga znacznika w HTML ani znajomości koloru
   sekcji powyżej. */

/* Kleks — nieregularny kształt tła */
.stx-blob {
	position: absolute;
	border-radius: 62% 38% 46% 54% / 55% 44% 56% 45%;
	filter: blur(2px);
	opacity: .5;
	pointer-events: none;
	z-index: var(--stx-z-decor);
	animation: stx-morph 18s ease-in-out infinite;
}

@keyframes stx-morph {
	0%, 100% { border-radius: 62% 38% 46% 54% / 55% 44% 56% 45%; }
	33%      { border-radius: 42% 58% 68% 32% / 38% 62% 38% 62%; }
	66%      { border-radius: 58% 42% 34% 66% / 62% 36% 64% 38%; }
}

/* Pływające okruchy panierki */
.stx-crumbs {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: var(--stx-z-decor);
}

/* W hero nagłówek jest przezroczysty, więc okruchy prześwitywały przez pasek
   nawigacji i wyglądały jak śmieci w menu. Warstwa startuje poniżej headera. */
.stx-hero .stx-crumbs { top: clamp(88px, 11vh, 130px); }
.stx-crumb {
	position: absolute;
	width: var(--stx-crumb-size, 14px);
	height: var(--stx-crumb-size, 14px);
	background: var(--stx-yellow);
	border: 2px solid var(--stx-ink);
	border-radius: 40% 60% 55% 45%;
	opacity: .85;
	animation: stx-float var(--stx-crumb-dur, 9s) ease-in-out infinite;
	animation-delay: var(--stx-crumb-delay, 0s);
	will-change: transform;
}

@keyframes stx-float {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	25%      { transform: translate3d(14px, -22px, 0) rotate(90deg); }
	50%      { transform: translate3d(-8px, -38px, 0) rotate(180deg); }
	75%      { transform: translate3d(-18px, -16px, 0) rotate(270deg); }
}

/* Maskotki pływające przy krawędziach sekcji */
.stx-mascot {
	position: absolute;
	pointer-events: none;
	z-index: var(--stx-z-decor);
	animation: stx-bob 6s ease-in-out infinite;
	will-change: transform;
}
.stx-mascot img { filter: drop-shadow(6px 8px 0 rgba(20,49,58,.18)); }

@keyframes stx-bob {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50%      { transform: translateY(-18px) rotate(3deg); }
}

/* Pasek przewijający się w poskok — „ticker" */
.stx-ticker {
	background: var(--stx-ink);
	color: var(--stx-yellow);
	padding: .75rem 0;
	overflow: hidden;
	border-block: var(--stx-border);
}
.stx-ticker-track {
	display: flex;
	gap: 2.5rem;
	width: max-content;
	animation: stx-scroll 28s linear infinite;
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: clamp(1rem, 1.8vw, 1.4rem);
	text-transform: uppercase;
	letter-spacing: .06em;
	white-space: nowrap;
}
.stx-ticker:hover .stx-ticker-track { animation-play-state: paused; }

@keyframes stx-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   07. HEADER I MENU MOBILNE
   ========================================================================== */

.stx-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: var(--stx-z-header);
	transition: transform var(--stx-dur) var(--stx-ease),
	            background-color var(--stx-dur) var(--stx-ease),
	            box-shadow var(--stx-dur) var(--stx-ease);
}

/* Przezroczysty nad hero, kremowy po scrollu */
.stx-header.is-stuck {
	background: var(--stx-cream);
	box-shadow: 0 4px 0 var(--stx-ink);
}
/* Chowa się przy scrollu w dół, wraca przy scrollu w górę */
.stx-header.is-hidden { transform: translateY(-100%); }

.stx-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--stx-maxw);
	margin-inline: auto;
	padding: .8rem var(--stx-gutter);
}

.stx-logo { display: flex; align-items: center; flex-shrink: 0; }
.stx-logo img { height: clamp(40px, 5vw, 56px); width: auto; }

.stx-nav-list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 2.2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.stx-nav-link {
	position: relative;
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: 1.08rem;
	padding: .35em 0;
	color: var(--stx-ink);
	white-space: nowrap;
}

/* Podkreślenie rysowane od środka */
.stx-nav-link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: var(--stx-yellow);
	border-radius: 4px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--stx-dur) var(--stx-ease);
}
.stx-nav-link:hover::after,
.stx-nav-link[aria-current="page"]::after { transform: scaleX(1); }

.stx-header-actions {
	display: flex;
	align-items: center;
	gap: .8rem;
}

/* Na wąskich ekranach CTA konkuruje o miejsce z koszykiem i hamburgerem —
   ta sama akcja jest w menu mobilnym, więc tutaj ją chowamy. */
@media (max-width: 1024px) {
	.stx-header-cta { display: none; }
}

.stx-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: var(--stx-radius-full);
	background: var(--stx-white);
	border: var(--stx-border);
	box-shadow: var(--stx-shadow-sticker-sm);
	transition: transform var(--stx-dur-fast) var(--stx-ease-bounce);
}
.stx-cart:hover { transform: translate(-2px, -2px) rotate(-6deg); }

.stx-cart-count {
	position: absolute;
	top: -6px; right: -6px;
	min-width: 24px; height: 24px;
	display: grid;
	place-items: center;
	padding: 0 5px;
	border-radius: var(--stx-radius-full);
	background: var(--stx-coral);
	color: var(--stx-white);
	border: 2px solid var(--stx-ink);
	font-size: .78rem;
	font-weight: 700;
}
.stx-cart-count:empty,
.stx-cart-count[data-count="0"] { display: none; }

/* Hamburger */
.stx-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 48px; height: 48px;
	padding: 0 11px;
	border-radius: var(--stx-radius-full);
	background: var(--stx-yellow);
	border: var(--stx-border);
	box-shadow: var(--stx-shadow-sticker-sm);
	cursor: pointer;
}
.stx-burger span {
	display: block;
	height: 3px;
	background: var(--stx-ink);
	border-radius: 3px;
	transition: transform var(--stx-dur) var(--stx-ease),
	            opacity var(--stx-dur-fast) var(--stx-ease);
}
.stx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.stx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.stx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Panel mobilny */
.stx-mnav {
	position: fixed;
	inset: 0;
	z-index: var(--stx-z-menu);
	background: var(--stx-blue);
	color: var(--stx-white);
	display: grid;
	place-items: center;
	clip-path: circle(0% at calc(100% - 44px) 44px);
	transition: clip-path .55s var(--stx-ease);
	overflow-y: auto;
}
.stx-mnav.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
.stx-mnav[hidden] { display: none; }

.stx-mnav-list {
	list-style: none;
	margin: 0;
	padding: 2rem var(--stx-gutter);
	text-align: center;
	display: grid;
	gap: 1.2rem;
}
.stx-mnav-list a {
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 8vw, 3.5rem);
	line-height: 1;
	opacity: 0;
	transform: translateY(24px);
}
.stx-mnav.is-open .stx-mnav-list a {
	animation: stx-mnav-in .45s var(--stx-ease) forwards;
	animation-delay: calc(.12s + var(--stx-i, 0) * .06s);
}
.stx-mnav-list a:hover { color: var(--stx-yellow); }

@keyframes stx-mnav-in {
	to { opacity: 1; transform: translateY(0); }
}

body.stx-menu-open { overflow: hidden; }

/* ==========================================================================
   08. HERO PEŁNOEKRANOWY
   ========================================================================== */

.stx-hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-items: center;
	background:
		radial-gradient(120% 90% at 70% 0%, var(--stx-blue-light) 0%, var(--stx-blue) 45%, var(--stx-blue-dark) 100%);
	color: var(--stx-white);
	/* Dolny padding rezerwuje pas na wskaźnik „Przewiń" — bez tego stykał się
	   ze statystykami i czytał się jak część ostatniej etykiety. */
	padding-block: clamp(6rem, 12vh, 9rem) clamp(6rem, 14vh, 9rem);
	overflow: clip;
	isolation: isolate;
}

.stx-hero-inner {
	position: relative;
	z-index: var(--stx-z-content);
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	width: 100%;
	max-width: var(--stx-maxw);
	margin-inline: auto;
	padding-inline: var(--stx-gutter);
}

.stx-hero-title {
	font-size: var(--stx-h1);
	line-height: .92;
	margin-bottom: .35em;
	text-shadow: 6px 6px 0 rgba(0,0,0,.18);
}
.stx-hero-title .stx-line { display: block; }
.stx-hero-title .stx-accent {
	color: var(--stx-yellow);
	font-size: 1.18em;
	display: block;
	text-shadow: 6px 6px 0 var(--stx-blue-dark);
}

.stx-hero-text {
	font-size: var(--stx-lead);
	max-width: 54ch;
	color: rgba(255,255,255,.92);
	margin-bottom: 2rem;
	text-wrap: pretty;
}

.stx-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.stx-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.2rem, 3vw, 3rem);
}
/* Liczba nad podpisem — oba elementy to spany, więc potrzebują gridu. */
.stx-stat {
	display: grid;
	gap: .15rem;
}
.stx-stat-num {
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1;
	color: var(--stx-yellow);
}
.stx-stat-label {
	font-size: .88rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: rgba(255,255,255,.75);
}

/* Warstwy paczki produktu — parallax sterowany z JS przez --stx-py */
.stx-hero-visual {
	position: relative;
	display: grid;
	place-items: center;
}
.stx-hero-pack {
	position: relative;
	z-index: 2;
	max-width: min(100%, 480px);
	transform: translate3d(0, calc(var(--stx-py, 0) * -40px), 0) rotate(-4deg);
	filter: drop-shadow(12px 16px 0 rgba(0,0,0,.22));
	animation: stx-bob 7s ease-in-out infinite;
}

/* Aureola za paczką */
.stx-hero-halo {
	position: absolute;
	z-index: 1;
	width: min(92%, 520px);
	aspect-ratio: 1;
	background: radial-gradient(circle, var(--stx-yellow) 0%, rgba(var(--stx-yellow-rgb), 0) 68%);
	opacity: .55;
	animation: stx-pulse 5s ease-in-out infinite;
}

@keyframes stx-pulse {
	0%, 100% { transform: scale(1);    opacity: .5; }
	50%      { transform: scale(1.12); opacity: .72; }
}

/* Wskaźnik „przewiń niżej" */
.stx-scroll-hint {
	position: absolute;
	left: 50%;
	bottom: clamp(1.2rem, 3vh, 2.5rem);
	transform: translateX(-50%);
	z-index: var(--stx-z-content);
	display: grid;
	justify-items: center;
	gap: .5rem;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,255,255,.8);
}
.stx-scroll-hint::after {
	content: "";
	width: 26px; height: 44px;
	border: 3px solid rgba(255,255,255,.7);
	border-radius: var(--stx-radius-full);
	background:
		radial-gradient(circle at 50% 22%, var(--stx-yellow) 0 4px, transparent 5px) no-repeat;
	animation: stx-scroll-dot 1.8s ease-in-out infinite;
}

@keyframes stx-scroll-dot {
	0%, 100% { background-position: 0 0; }
	50%      { background-position: 0 12px; }
}

/* ==========================================================================
   09. PANELE PEŁNOEKRANOWE
   Sekwencja sekcji na 100svh ze scroll-snapem. Snap włączany tylko
   wewnątrz kontenera, żeby nie przejmować scrolla całej strony —
   użytkownik zawsze może wyjść z sekwencji zwykłym scrollem.
   ========================================================================== */

.stx-panels {
	scroll-snap-type: y proximity;
}

.stx-panel {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-items: center;
	scroll-snap-align: center;
	scroll-snap-stop: normal;
	padding-block: clamp(4rem, 10vh, 7rem);
	overflow: clip;
	isolation: isolate;
}

.stx-panel-inner {
	position: relative;
	z-index: var(--stx-z-content);
	width: 100%;
	max-width: var(--stx-maxw);
	margin-inline: auto;
	padding-inline: var(--stx-gutter);
}

.stx-panel--split .stx-panel-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
}
.stx-panel--split.is-reversed .stx-panel-inner > :first-child { order: 2; }

/* Numer panelu w tle — ogromna cyfra dekoracyjna */
.stx-panel-num {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: min(52vw, 46rem);
	line-height: 1;
	color: currentColor;
	opacity: .07;
	z-index: var(--stx-z-decor);
	pointer-events: none;
	user-select: none;
}

/* Kolumna tekstowa panelu — ograniczenie długości wiersza dla czytelności */
.stx-panel-text { max-width: 60ch; }

/* Obraz panelu jedzie wolniej niż tekst */
.stx-panel-media img {
	border-radius: var(--stx-radius-xl);
	border: var(--stx-border);
	box-shadow: var(--stx-shadow-sticker);
	transform: translate3d(0, calc(var(--stx-py, 0) * -30px), 0);
}

/* ==========================================================================
   10. KROKI PRZEPISU
   ========================================================================== */

.stx-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.2rem, 3vw, 2.5rem);
	counter-reset: stx-step;
}

.stx-step {
	position: relative;
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker);
	padding: clamp(1.5rem, 3vw, 2.4rem);
	transition: transform var(--stx-dur) var(--stx-ease-bounce),
	            box-shadow var(--stx-dur) var(--stx-ease);
}
.stx-step:hover {
	transform: translate(-3px, -6px) rotate(-1deg);
	box-shadow: 10px 12px 0 var(--stx-ink);
}

.stx-step-num {
	counter-increment: stx-step;
	position: absolute;
	top: -22px; left: clamp(1.2rem, 3vw, 2rem);
	width: 52px; height: 52px;
	display: grid;
	place-items: center;
	border-radius: var(--stx-radius-full);
	background: var(--stx-yellow);
	border: var(--stx-border);
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--stx-ink);
}
.stx-step-num::before { content: counter(stx-step); }

/* Ikona kroku — okrągły znaczek nad nagłówkiem karty.
   Plik ma 288 px, wyświetlamy w 64 px, więc jest ostry także na ekranach 2x. */
.stx-step-icon {
	width: 64px;
	height: 64px;
	margin: 1.4rem 0 .2rem;
	border-radius: var(--stx-radius-full);
}

.stx-step h3 { margin-top: 1.2rem; }
.stx-step-icon + h3 { margin-top: .4rem; }
.stx-step p { color: var(--stx-ink-soft); margin: 0; }

.stx-step-meta {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-top: 1rem;
	font-weight: 600;
	font-size: .9rem;
	color: var(--stx-blue);
}

/* Blok bezpieczeństwa — gorący olej i ostry nóż to zadanie dorosłego.
   Musi rzucać się w oczy mocniej niż zwykły akapit. */
.stx-safety {
	display: block;
	margin-top: 1.5rem;
	padding: 1.1rem 1.4rem;
	background: var(--stx-white);
	color: var(--stx-ink);
	border: var(--stx-border);
	border-left: 12px solid var(--stx-coral);
	border-radius: var(--stx-radius-md);
	box-shadow: var(--stx-shadow-sticker-sm);
	font-size: .96rem;
	line-height: 1.55;
}
.stx-safety strong {
	display: block;
	font-family: var(--stx-font-display);
	font-size: 1.15rem;
	color: var(--stx-coral-dark);
	margin-bottom: .25rem;
}

/* ==========================================================================
   11. KARTY PRODUKTÓW
   ========================================================================== */

/* Górny limit szerokości karty: przy dwóch produktach auto-fit rozciągał je
   na pół ekranu i kafelki wyglądały jak banery. justify-content centruje
   rząd, gdy kart jest mniej niż kolumn. */
.stx-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
	justify-content: center;
	gap: clamp(1.2rem, 3vw, 2.2rem);
}

.stx-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker);
	overflow: hidden;
	transition: transform var(--stx-dur) var(--stx-ease-bounce),
	            box-shadow var(--stx-dur) var(--stx-ease);
}
.stx-product-card:hover {
	transform: translate(-3px, -8px) rotate(-1.2deg);
	box-shadow: 11px 14px 0 var(--stx-ink);
}

.stx-product-media {
	position: relative;
	/* Packshoty są kwadratowe lub pionowe — w kadrze 4:3 zostawały szerokie
	   puste pasy po bokach. */
	aspect-ratio: 1;
	background: var(--stx-blue-pale);
	display: grid;
	place-items: center;
	padding: 1.2rem;
	border-bottom: var(--stx-border);
	overflow: hidden;
}
.stx-product-media img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	transition: transform var(--stx-dur-slow) var(--stx-ease);
}
.stx-product-card:hover .stx-product-media img { transform: scale(1.07) rotate(2deg); }

.stx-product-flags {
	position: absolute;
	top: .8rem; left: .8rem;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	z-index: 2;
}

.stx-product-body {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: clamp(1rem, 2.4vw, 1.5rem);
	flex: 1;
}

.stx-product-title {
	font-size: 1.25rem;
	margin: 0;
	line-height: 1.15;
}
.stx-product-title a:hover { color: var(--stx-blue); }

.stx-product-desc {
	font-size: .93rem;
	color: var(--stx-ink-soft);
	margin: 0;
	flex: 1;
}

.stx-product-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .8rem;
	flex-wrap: wrap;
	margin-top: .4rem;
}

.stx-product-price {
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--stx-blue);
}
.stx-product-price del { font-size: .6em; color: var(--stx-ink-faint); margin-right: .3em; }

/* Skala ostrości — komunikuje wariant bez czytania */
.stx-heat {
	display: inline-flex;
	gap: 3px;
	align-items: center;
}
.stx-heat i {
	width: 10px; height: 10px;
	border-radius: var(--stx-radius-full);
	border: 2px solid var(--stx-ink);
	background: var(--stx-white);
}
.stx-heat i.is-on { background: var(--stx-coral); }

/* Warianty łagodne / pikantne — dwie duże karty obok siebie */
.stx-variants {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.2rem, 3vw, 2.5rem);
}

.stx-variant {
	position: relative;
	display: grid;
	gap: 1rem;
	padding: clamp(1.5rem, 3.5vw, 3rem);
	border: var(--stx-border);
	border-radius: var(--stx-radius-xl);
	box-shadow: var(--stx-shadow-sticker);
	text-align: center;
	background: var(--stx-white);
	overflow: hidden;
	transition: transform var(--stx-dur) var(--stx-ease-bounce);
}
.stx-variant:hover { transform: translateY(-8px) rotate(1deg); }
.stx-variant--mild::before,
.stx-variant--hot::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 40%;
	z-index: 0;
}
.stx-variant--mild::before { background: linear-gradient(var(--stx-mint), transparent); opacity: .35; }
.stx-variant--hot::before  { background: linear-gradient(var(--stx-coral), transparent); opacity: .3; }
.stx-variant > * { position: relative; z-index: 1; }
.stx-variant img { margin-inline: auto; max-height: 320px; width: auto; }

/* .stx-heat jest inline-flex, więc jako element gridu lądował przy lewej
   krawędzi, mimo że cała karta jest wyśrodkowana. */
.stx-variant .stx-heat { justify-self: center; }

/* ==========================================================================
   12. GALERIA PRZEPISÓW — poziomy scroll z chwytaniem myszą
   ========================================================================== */

.stx-recipes {
	position: relative;
	margin-inline: calc(var(--stx-gutter) * -1);
}

.stx-recipes-track {
	display: flex;
	gap: clamp(1rem, 2vw, 1.8rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 1rem var(--stx-gutter) 2.5rem;
	scrollbar-width: thin;
	scrollbar-color: var(--stx-blue) var(--stx-blue-pale);
	cursor: grab;
	overscroll-behavior-x: contain;
}
.stx-recipes-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.stx-recipes-track::-webkit-scrollbar { height: 10px; }
.stx-recipes-track::-webkit-scrollbar-track { background: var(--stx-blue-pale); border-radius: 99px; }
.stx-recipes-track::-webkit-scrollbar-thumb { background: var(--stx-blue); border-radius: 99px; }

.stx-recipe-card {
	flex: 0 0 clamp(240px, 30vw, 340px);
	scroll-snap-align: center;
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker);
	overflow: hidden;
	transition: transform var(--stx-dur) var(--stx-ease-bounce);
}
.stx-recipe-card:hover { transform: translateY(-8px) rotate(-1.5deg); }
.stx-recipe-card img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-bottom: var(--stx-border);
	/* Obrazy w chwytanym kontenerze — blokujemy natywne przeciąganie */
	-webkit-user-drag: none;
	user-select: none;
}
.stx-recipe-body { padding: 1.1rem 1.3rem 1.4rem; }
.stx-recipe-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.stx-recipe-body p { font-size: .88rem; color: var(--stx-ink-soft); margin: 0; }

.stx-recipes-nav {
	display: flex;
	gap: .6rem;
	justify-content: center;
	margin-top: .5rem;
}
.stx-recipes-nav button {
	width: 48px; height: 48px;
	border-radius: var(--stx-radius-full);
	background: var(--stx-white);
	border: var(--stx-border);
	box-shadow: var(--stx-shadow-sticker-sm);
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 1.3rem;
	line-height: 1;
	transition: transform var(--stx-dur-fast) var(--stx-ease-bounce);
}
.stx-recipes-nav button:hover { transform: translate(-2px, -2px); }
.stx-recipes-nav button:disabled { opacity: .35; cursor: default; transform: none; }

/* ==========================================================================
   12b. UKŁAD DWUKOLUMNOWY I WIDEO
   ========================================================================== */

/* Dwie kolumny wewnątrz zwykłej sekcji (bez pełnego ekranu). */
.stx-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}
.stx-split--reverse > :first-child { order: 2; }

/* Wideo w proporcji 16:9 z obrysem w stylu reszty serwisu. */
.stx-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker);
	overflow: hidden;
	background: var(--stx-ink);
}
.stx-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Wyśrodkowane CTA zamykające sekcję. */
.stx-cta-center {
	display: flex;
	justify-content: center;
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* ==========================================================================
   13. PASEK ZAUFANIA I LICZNIKI
   ========================================================================== */

.stx-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	text-align: center;
}

.stx-trust-item {
	padding: clamp(1.2rem, 2.5vw, 2rem) 1rem;
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker-sm);
}
.stx-trust-num {
	font-family: var(--stx-font-display);
	font-weight: 800;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1;
	color: var(--stx-blue);
	display: block;
}
.stx-trust-label {
	font-size: .92rem;
	color: var(--stx-ink-soft);
	text-wrap: balance;
}

/* ==========================================================================
   14. FAQ — natywny <details>, działa bez JS
   ========================================================================== */

.stx-faq {
	display: grid;
	gap: 1rem;
	max-width: 860px;
	margin-inline: auto;
}

.stx-faq-item {
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-md);
	box-shadow: var(--stx-shadow-sticker-sm);
	overflow: hidden;
}

.stx-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.4rem;
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	cursor: pointer;
	list-style: none;
}
.stx-faq-item summary::-webkit-details-marker { display: none; }

.stx-faq-item summary::after {
	content: "+";
	flex-shrink: 0;
	width: 34px; height: 34px;
	display: grid;
	place-items: center;
	border-radius: var(--stx-radius-full);
	background: var(--stx-yellow);
	border: 2px solid var(--stx-ink);
	font-size: 1.4rem;
	line-height: 1;
	transition: transform var(--stx-dur) var(--stx-ease-bounce);
}
.stx-faq-item[open] summary::after { transform: rotate(135deg); }

.stx-faq-answer {
	padding: 0 1.4rem 1.3rem;
	color: var(--stx-ink-soft);
}

/* ==========================================================================
   14b. KONTAKT
   ========================================================================== */

.stx-contact-form,
.stx-contact-info {
	background: var(--stx-white);
	border: var(--stx-border);
	border-radius: var(--stx-radius-lg);
	box-shadow: var(--stx-shadow-sticker);
	padding: clamp(1.4rem, 3vw, 2.4rem);
}

.stx-contact-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.stx-contact-list li {
	display: grid;
	gap: .15rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--stx-line);
}
.stx-contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.stx-contact-label {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--stx-ink-faint);
}
.stx-contact-list a { font-weight: 600; color: var(--stx-blue); }
.stx-contact-list a:hover { text-decoration: underline; }

/* Contact Form 7 — pola dopasowane do reszty serwisu. */
.stx-contact-form .wpcf7 input[type="text"],
.stx-contact-form .wpcf7 input[type="email"],
.stx-contact-form .wpcf7 input[type="tel"],
.stx-contact-form .wpcf7 textarea {
	width: 100%;
	min-height: 52px;
	padding: .75em 1.1em;
	margin-top: .3rem;
	font-family: var(--stx-font-body);
	font-size: 1rem;
	color: var(--stx-ink);
	background: var(--stx-cream);
	border: 2px solid var(--stx-line);
	border-radius: var(--stx-radius-sm);
	transition: border-color var(--stx-dur-fast) var(--stx-ease);
}
.stx-contact-form .wpcf7 textarea { min-height: 150px; resize: vertical; }
.stx-contact-form .wpcf7 input:focus,
.stx-contact-form .wpcf7 textarea:focus { border-color: var(--stx-blue); outline: none; }

.stx-contact-form .wpcf7 label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 600;
	font-size: .92rem;
}

.stx-contact-form .wpcf7 input[type="submit"] {
	font-family: var(--stx-font-display);
	font-weight: 700;
	font-size: 1.1rem;
	padding: .95em 2rem;
	min-height: 52px;
	background: var(--stx-yellow);
	color: var(--stx-ink);
	border: var(--stx-border);
	border-radius: var(--stx-radius-full);
	box-shadow: var(--stx-shadow-sticker);
	cursor: pointer;
	transition: transform var(--stx-dur-fast) var(--stx-ease-bounce),
	            box-shadow var(--stx-dur-fast) var(--stx-ease);
}
.stx-contact-form .wpcf7 input[type="submit"]:hover {
	transform: translate(-2px, -2px);
	box-shadow: 9px 9px 0 var(--stx-ink);
}

.stx-contact-form .wpcf7 .wpcf7-not-valid-tip { color: var(--stx-coral-dark); font-size: .85rem; }
.stx-contact-form .wpcf7 .wpcf7-response-output {
	border: 2px solid var(--stx-line) !important;
	border-radius: var(--stx-radius-sm);
	padding: .9rem 1.1rem !important;
	margin: 1rem 0 0 !important;
}

/* ==========================================================================
   15. KLUB / NEWSLETTER
   ========================================================================== */

.stx-club {
	background: var(--stx-yellow);
	border: var(--stx-border);
	border-radius: var(--stx-radius-xl);
	box-shadow: var(--stx-shadow-sticker);
	padding: clamp(1.8rem, 5vw, 4rem);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.stx-club-form {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	justify-content: center;
	max-width: 560px;
	margin: 1.5rem auto 0;
}
.stx-club-form input[type="email"] {
	flex: 1 1 260px;
	min-height: 52px;
	padding: .8em 1.2em;
	font-family: var(--stx-font-body);
	font-size: 1rem;
	border: var(--stx-border);
	border-radius: var(--stx-radius-full);
	background: var(--stx-white);
	color: var(--stx-ink);
}
.stx-club-note {
	font-size: .82rem;
	color: rgba(20,49,58,.7);
	margin-top: 1rem;
}

/* ==========================================================================
   16. STOPKA
   ========================================================================== */

.stx-footer {
	position: relative;
	background: var(--stx-blue-dark);
	color: rgba(255,255,255,.85);
	padding-top: clamp(3rem, 6vw, 5rem);
	/* Bez overflow: clip — fala (::before) leży poza ramką stopki. */
}

/*
 * Falowana krawędź górna.
 *
 * Fala jest zbudowana z KOLORU STOPKI i leży nad nią, a nie z koloru sekcji
 * powyżej. To kluczowe: stopka jest globalna, więc poprzedza ją raz sekcja
 * bladoniebieska, raz biała, raz żółta. Wcześniejsza wersja miała kolor
 * wpisany na sztywno i przy każdej innej sekcji zostawiała obcą jasną
 * wstęgę z twardą krawędzią.
 *
 * Teraz przerwy w masce są przezroczyste i pokazują to, co jest z tyłu —
 * działa niezależnie od tego, co poprzedza stopkę.
 */
.stx-footer::before {
	content: "";
	position: absolute;
	left: 0;
	/* -1px, żeby subpikselowe zaokrąglenie nie zostawiło włosowej szczeliny */
	bottom: calc(100% - 1px);
	width: 100%;
	height: clamp(44px, 6vw, 96px);
	background: var(--stx-blue-dark);
	-webkit-mask-image: var(--stx-wave-mask);
	mask-image: var(--stx-wave-mask);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
}

:root {
	--stx-wave-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,52 C180,92 360,20 620,40 C880,60 1080,96 1440,44 L1440,100 L0,100 Z' fill='%23000'/%3E%3C/svg%3E");
}

/*
 * Zgodność wstecz: jeżeli w module Code stopki został jeszcze stary
 * znacznik .stx-wave z zaszytym kolorem, chowamy go — inaczej nakładałby
 * jasną wstęgę na nową falę.
 */
.stx-footer .stx-wave { display: none; }

/* Divi opakowuje layout Kreatora motywu we własne kontenery. Gdyby któryś
   przycinał zawartość, fala leżąca nad stopką zostałaby ucięta. */
.et-l--footer,
.et-l--footer .et_builder_inner_content,
.et-l--footer .et_pb_section,
.et-l--footer .et_pb_row,
.et-l--footer .et_pb_column,
.et-l--footer .et_pb_module {
	overflow: visible !important;
}

.stx-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	max-width: var(--stx-maxw);
	margin-inline: auto;
	padding-inline: var(--stx-gutter);
	padding-bottom: 3rem;
}

.stx-footer h4 {
	color: var(--stx-yellow);
	font-size: 1.15rem;
	margin-bottom: .9rem;
}
.stx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.stx-footer a:hover { color: var(--stx-yellow); }
.stx-footer-logo img { height: 62px; width: auto; margin-bottom: 1rem; }
.stx-footer-desc { font-size: .93rem; max-width: 38ch; }

/* Pierwsza kolumna jest szersza — logo, opis i social pod sobą. */
.stx-footer-about { display: grid; align-content: start; }

.stx-copyright,
.stx-credits { margin: 0; }
.stx-credits a { color: var(--stx-yellow); }
.stx-credits a:hover { text-decoration: underline; }

.stx-footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.stx-footer-social a {
	width: 44px; height: 44px;
	display: grid;
	place-items: center;
	border-radius: var(--stx-radius-full);
	background: rgba(255,255,255,.1);
	border: 2px solid rgba(255,255,255,.25);
	transition: transform var(--stx-dur-fast) var(--stx-ease-bounce),
	            background-color var(--stx-dur-fast) var(--stx-ease);
}
.stx-footer-social a:hover { background: var(--stx-yellow); color: var(--stx-ink); transform: translateY(-3px) rotate(-8deg); }

.stx-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.15);
	padding: 1.4rem var(--stx-gutter);
	font-size: .85rem;
}
.stx-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	max-width: var(--stx-maxw);
	margin-inline: auto;
}

/* ==========================================================================
   17. ANIMACJE I REVEAL-ON-SCROLL
   Element startuje ukryty tylko wtedy, gdy JS potwierdził, że działa
   (klasa .stx-js na <html>). Bez JS treść jest normalnie widoczna.
   ========================================================================== */

.stx-js [data-stx-reveal] {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity .7s var(--stx-ease), transform .7s var(--stx-ease);
	transition-delay: var(--stx-delay, 0s);
	will-change: opacity, transform;
}
.stx-js [data-stx-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.stx-js [data-stx-reveal="left"]  { transform: translateX(-44px); }
.stx-js [data-stx-reveal="right"] { transform: translateX(44px); }
.stx-js [data-stx-reveal="zoom"]  { transform: scale(.9); }
.stx-js [data-stx-reveal="pop"]   {
	transform: scale(.82) rotate(-4deg);
	transition-timing-function: var(--stx-ease-bounce);
}

/* Pasek postępu czytania strony */
.stx-progress {
	position: fixed;
	top: 0; left: 0;
	height: 5px;
	width: 100%;
	transform: scaleX(var(--stx-progress, 0));
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--stx-yellow), var(--stx-coral));
	z-index: calc(var(--stx-z-header) + 1);
	pointer-events: none;
}

/* ==========================================================================
   18. POZIOMY EFEKTÓW
   Jeden przełącznik w panelu (stx_fx_level) steruje całą warstwą „wow".
   Zejście z „max" na „safe" to zmiana klasy na <body>, nie przepisywanie stron.
   ========================================================================== */

/* safe — zostaje reveal i hover, znikają efekty ciągłe i snap */
.stx-fx-safe .stx-panels { scroll-snap-type: none; }
.stx-fx-safe .stx-panel { min-height: auto; padding-block: var(--stx-section-y); }
.stx-fx-safe .stx-crumbs,
.stx-fx-safe .stx-blob,
.stx-fx-safe .stx-scroll-hint { display: none; }
.stx-fx-safe .stx-mascot,
.stx-fx-safe .stx-hero-pack,
.stx-fx-safe .stx-hero-halo { animation: none; }
.stx-fx-safe .stx-hero-pack { transform: rotate(-4deg); }
.stx-fx-safe .stx-panel-media img { transform: none; }

/* off — bez ruchu poza natychmiastowym pokazaniem treści */
.stx-fx-off .stx-panels { scroll-snap-type: none; }
.stx-fx-off .stx-panel { min-height: auto; padding-block: var(--stx-section-y); }
.stx-fx-off .stx-crumbs,
.stx-fx-off .stx-blob,
.stx-fx-off .stx-scroll-hint,
.stx-fx-off .stx-progress { display: none; }
.stx-fx-off .stx-hero { min-height: auto; }
.stx-fx-off *,
.stx-fx-off *::before,
.stx-fx-off *::after {
	animation: none !important;
	transition: none !important;
}
.stx-fx-off .stx-js [data-stx-reveal] { opacity: 1; transform: none; }

/* Preferencja systemowa ma pierwszeństwo nad ustawieniem wtyczki. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	.stx-panels { scroll-snap-type: none; }
	.stx-panel { min-height: auto; padding-block: var(--stx-section-y); }
	.stx-crumbs, .stx-blob, .stx-scroll-hint { display: none; }
	.stx-hero-pack { transform: rotate(-4deg); }
	.stx-panel-media img { transform: none; }

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.stx-js [data-stx-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   Trzy breakpointy dla całego serwisu. Reszta skaluje się przez clamp().
   ========================================================================== */

@media (max-width: 1100px) {
	.stx-steps { grid-template-columns: 1fr; gap: 2.4rem; }
	.stx-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.stx-nav { display: none; }
	.stx-burger { display: flex; }

	.stx-hero-inner { grid-template-columns: 1fr; text-align: center; }
	.stx-hero-visual { order: -1; }
	.stx-hero-pack { max-width: min(78%, 320px); }
	.stx-hero-actions,
	.stx-hero-stats { justify-content: center; }
	.stx-hero-text { margin-inline: auto; }

	.stx-panel--split .stx-panel-inner { grid-template-columns: 1fr; }
	.stx-panel--split.is-reversed .stx-panel-inner > :first-child { order: 0; }
	.stx-panel-media { order: -1; }

	.stx-variants { grid-template-columns: 1fr; }

	/* Snap na telefonie bywa uciążliwy przy krótkim ekranie —
	   panele wracają do zwykłego przepływu. */
	.stx-panels { scroll-snap-type: none; }
	.stx-panel { min-height: auto; }
}

@media (max-width: 560px) {
	.stx-footer-grid { grid-template-columns: 1fr; }
	.stx-hero-stats { gap: 1.5rem; }
	.stx-btn { width: 100%; }
	.stx-hero-actions { flex-direction: column; }
	.stx-panel-num { font-size: 62vw; }
}

/* Ekrany o małej wysokości — hero nie może wypchnąć treści poza widok */
@media (max-height: 620px) and (min-width: 901px) {
	.stx-hero { min-height: auto; padding-block: 7rem 4rem; }
	.stx-scroll-hint { display: none; }
}

/* Druk */
@media print {
	.stx-header, .stx-mnav, .stx-progress, .stx-crumbs,
	.stx-blob, .stx-scroll-hint, .stx-club { display: none !important; }
	.stx-panel, .stx-hero { min-height: auto !important; }
	body.stx-theme { background: #fff; color: #000; }
}
