/* ==========================================================================
   Studio Portfolio (HATOR STUDIO) — style główne
   Kolory, fonty i rozmiary: zmienne :root poniżej.
   Własne fonty (np. Bugrino, TG Frekuent Mono) wgrasz w Wygląd → Dostosuj → Fonty.
   ========================================================================== */

@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/SpaceGrotesk-var.woff") format("woff");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Mono";
	src: url("../fonts/DMMono-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "DM Mono";
	src: url("../fonts/DMMono-Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #e3e5e6;
	--ink: #000000;
	--muted: #6b6d70;
	--line: #a2a4a7;
	--line-soft: rgba(0, 0, 0, 0.14);

	--font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;

	--gx: clamp(16px, 1.45vw, 30px);           /* margines boczny */
	--header-h: clamp(56px, 4.4vw, 90px);
	--footer-h: clamp(44px, 3.2vw, 64px);
	--admin-bar: 0px;

	--t-nav: clamp(11px, 0.68vw, 14px);
	--t-mono: clamp(12px, 0.8vw, 15px);
	--t-tag-cat: clamp(11px, 0.86vw, 17px);
	--t-tag-title: clamp(13px, 1.1vw, 22px);
	--t-section: clamp(18px, 2vw, 42px);
	--t-title: clamp(30px, 3vw, 62px);
	--wordmark-w: clamp(230px, 23vw, 560px);

	--ease: cubic-bezier(0.7, 0, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* WooCommerce */
	--wc-primary: var(--ink);
	--wc-primary-text: var(--paper);
	--wc-secondary: transparent;
	--wc-secondary-text: var(--ink);
	--wc-highlight: var(--ink);
	--wc-highligh-text: var(--paper);
	--wc-content-bg: var(--paper);
	--wc-subtext: var(--muted);
	--wc-form-border-color: var(--line);
	--wc-form-border-radius: 0;
	--wc-form-border-width: 1px;
}

/* Zalogowany użytkownik: pasek WordPressa u góry ekranu. */
.admin-bar { --admin-bar: 32px; }
@media screen and (max-width: 782px) { .admin-bar { --admin-bar: 46px; } }

/* ---------- Baza ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--paper);
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(14px, 0.9vw, 17px);
	font-weight: 400;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.mono { font-family: var(--font-mono); font-size: var(--t-mono); line-height: 1.38; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 2000;
	padding: 10px 14px; background: var(--ink); color: var(--paper);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.upper,
.site-nav,
.footer-links,
.site-header__toggle { text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Nagłówek ---------- */

.site-header {
	position: fixed; top: var(--admin-bar); left: 0; right: 0; z-index: 800;
	display: flex; align-items: center; justify-content: space-between; gap: var(--gx);
	height: var(--header-h);
	padding: 0 var(--gx);
	font-size: var(--t-nav);
}
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--paper);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}
.site-header.is-solid::before { opacity: 1; }
.sp-stage .site-header::before { display: none; }

.site-logo { display: block; flex: none; }
.site-logo__img {
	width: clamp(34px, 2.5vw, 54px); height: auto;
	transition: transform 1.2s var(--ease-out);
}
.site-logo:hover .site-logo__img { transform: rotate(180deg); }

.site-nav__list { display: flex; align-items: center; gap: clamp(16px, 2.55vw, 54px); }
.site-nav a { position: relative; display: inline-block; padding: 6px 0; transition: opacity 0.2s; }
.site-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform 0.45s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__extra { display: none; }
.sp-cart-count:empty { display: none; }

.site-header__toggle {
	display: none; padding: 8px 0; background: none; border: 0; cursor: pointer; font-size: var(--t-nav);
}
.site-header__toggle-close { display: none; }

@media (max-width: 900px) {
	.site-header__toggle { display: block; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; flex-direction: column; justify-content: space-between;
		padding: calc(var(--admin-bar) + var(--header-h) + 4vh) var(--gx) var(--gx);
		background: var(--paper);
		visibility: hidden; opacity: 0;
		transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
	}
	.site-nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
	.site-nav__list a { font-size: clamp(30px, 9vw, 54px); line-height: 1.08; padding: 2px 0; letter-spacing: 0; }
	.site-nav__list a::after { bottom: 4px; }
	.site-nav__extra { display: block; }
	.site-nav__extra .footer-links { flex-direction: column; align-items: flex-start; gap: 18px; font-size: 13px; }
	.site-nav__extra .footer-links__list { flex-wrap: wrap; gap: 10px 20px; }
	.site-logo { position: relative; z-index: 2; }

	.is-menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
	.is-menu-open .site-header__toggle-open { display: none; }
	.is-menu-open .site-header__toggle-close { display: inline; }
	.is-menu-open body { overflow: hidden; }
}

/* ---------- Stopka ---------- */

.site-footer {
	display: flex; align-items: center;
	min-height: var(--footer-h);
	padding: 0 var(--gx);
	margin-top: 10vh;
	font-size: var(--t-nav);
}
.footer-links { display: flex; justify-content: space-between; align-items: center; gap: 2vw; width: 100%; }
.footer-links__list,
.footer-links__social { display: flex; gap: clamp(16px, 2.55vw, 54px); }
.footer-links a:hover { text-decoration: line-through; }

.sp-stage .site-footer {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
	margin: 0;
	pointer-events: none;
}
.sp-stage .site-footer a { pointer-events: auto; }

@media (max-width: 700px) {
	.site-footer .footer-links__list li:not(:first-child) { display: none; }
}

/* ---------- Intro (logo) i przejścia między stronami ---------- */

.loader { display: none; }
.sp-preload .loader {
	position: fixed; inset: 0; z-index: 960;
	display: grid; place-items: center;
	background: var(--paper);
	animation: sp-loader-fail 0s linear 6s forwards;
}
.sp-preload body { overflow: hidden; }
.sp-preload .site-logo { opacity: 0; }
.loader__logo { display: block; width: clamp(90px, 9vw, 170px); }
.loader__logo img { width: 100%; height: auto; animation: sp-spin 2.2s linear infinite; }
.loader__count {
	position: absolute; right: var(--gx); bottom: var(--gx);
	font-family: var(--font-mono); font-size: var(--t-mono);
	font-variant-numeric: tabular-nums;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-loader-fail { to { visibility: hidden; } }

.page-curtain {
	position: fixed; inset: 0; z-index: 900;
	display: grid; place-items: center;
	background: var(--paper);
	transform: translateY(100%);
	visibility: hidden;
	pointer-events: none;
}
.page-curtain__logo { width: clamp(60px, 5vw, 96px); }
.page-curtain__logo img { width: 100%; height: auto; animation: sp-spin 1.6s linear infinite; }
.is-entering .page-curtain,
.is-leaving .page-curtain { visibility: visible; }
.is-entering .page-curtain {
	transform: translateY(0);
	animation: sp-curtain-out 0.8s var(--ease) 0.05s forwards;
}
.is-leaving .page-curtain {
	transform: translateY(0);
	transition: transform 0.5s var(--ease);
}
@keyframes sp-curtain-out { to { transform: translateY(-100%); } }

/* ---------- Kursor z etykietą (tylko mysz, np. „Powiększ”) ---------- */

.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor__label {
	display: inline-block;
	padding: 5px 10px;
	background: var(--ink); color: var(--paper);
	font-size: 11px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
	border-radius: 99px;
	white-space: nowrap;
	transform: translate(14px, 14px) scale(0);
	transform-origin: 0 0;
	transition: transform 0.3s var(--ease-out);
}
.cursor.is-visible .cursor__label { transform: translate(14px, 14px) scale(1); }

/* ==========================================================================
   SCENY: HOME, SHOP, BOOKS, POSTERS, GRAPHIC DESIGN, ARTICLES
   ========================================================================== */

.stage {
	position: relative;
	height: calc(100svh - var(--admin-bar));
	min-height: 480px;
	overflow: hidden;
}

.stage__title {
	position: absolute; inset: 0; z-index: 2;
	display: grid; place-items: center;
	pointer-events: none;
}
.stage__heading { display: flex; flex-direction: column; align-items: center; margin: 0; font-size: inherit; }
.wordmark { display: block; }
.wordmark img { display: block; width: var(--wordmark-w); height: auto; }
.wordmark--text {
	max-width: 7ch;
	font-size: clamp(54px, 7.6vw, 160px);
	line-height: 0.84;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.stage__section {
	display: block;
	margin-top: 0.55em;
	font-size: var(--t-section);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.stage__section .ch { display: inline-block; white-space: pre; }

.stage__field { position: absolute; inset: 0; }

/* Pojedyncza miniatura */
.item { position: absolute; left: 0; top: 0; z-index: 1; }
.item.is-front { z-index: 3; }
.item.is-hover { z-index: 5; }
.item__link { position: relative; display: block; height: 100%; }
.item__media { display: block; height: 100%; }
.item__media img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.item__media .sp-ph { aspect-ratio: 4 / 5; }
.item--box .item__media { display: flex; align-items: center; justify-content: center; }
.item--box .item__media img { width: 100%; height: 100%; object-fit: contain; }

/* Etykieta przy najechaniu: KATEGORIA + tytuł */
.tag {
	position: absolute; left: 100%; bottom: 4%; z-index: 6;
	display: flex; flex-direction: column; align-items: center; gap: 0.2em;
	text-align: center; white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.25s var(--ease), transform 0.5s var(--ease-out);
}
.tag.is-flip { left: 0; }
.tag__cat { font-size: var(--t-tag-cat); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.tag__title { font-size: var(--t-tag-title); line-height: 1.1; }
.item.is-hover .tag,
.item__link:focus-visible .tag { opacity: 1; transform: translate(-50%, 0); }
.item__link:focus-visible { outline: none; }
.item__link:focus-visible .item__media { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Przygaszanie pozostałych przy najechaniu */
.stage__field .item { transition: opacity 0.4s var(--ease); }
.stage__field.is-hovering .item:not(.is-hover) { opacity: 0.35; }

/* ---------- HOME (rozrzucone) ---------- */

.stage--scatter .item__link { will-change: transform; }

/* ---------- Rzędy: SHOP (3 rzędy), ARTICLES (1 rząd), KLIENCI ---------- */

.row { position: absolute; left: 0; right: 0; height: 19%; overflow: visible; touch-action: pan-y; cursor: grab; }
.row.is-dragging { cursor: grabbing; }
.row.is-dragging a { pointer-events: none; }
.row .item { height: 100%; aspect-ratio: 0.79; will-change: transform; }

.stage--shop .row--0 { top: 15.5%; }
.stage--shop .row--1 { top: 42.5%; }
.stage--shop .row--2 { top: 69.5%; }

.stage--articles .row { top: 35%; height: 29%; }

/* Karuzela zakrzywiona (ARTICLES, KLIENCI, styl galerii): obrót liczony w JS, tu tylko wygładzenie. */
.row[data-curve] .item,
.sp-g--curve .row .item { backface-visibility: hidden; transform-style: flat; }
.item--card .item__media { overflow: hidden; }
.item--card .item__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
	.stage--shop .row { height: 17%; }
	.stage--shop .row--0 { top: 14%; }
	.stage--shop .row--1 { top: 41.5%; }
	.stage--shop .row--2 { top: 69%; }
	.stage--articles .row { top: 39.5%; height: 21%; }
}

/* ---------- POSTERS (kolumny góra / dół) ---------- */

.stage--posters .item { aspect-ratio: 0.79; will-change: transform; }
.stage--posters .stage__field { touch-action: none; }

/* ---------- BOOKS (zmieniające się miniatury w 5 miejscach) ---------- */

.slot { position: absolute; }
.slot .item { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.slot .item.is-current { visibility: visible; }
.slot .item__media { display: flex; align-items: center; justify-content: center; }
.slot .item__media img { width: 100%; height: 100%; object-fit: contain; }
.slot:hover { z-index: 6 !important; }
.slot .item.is-current.is-hover { z-index: 1; }
.tag.is-center { left: 50%; }

/* Pozycje jak w projekcie (lewo, góra, szerokość, wysokość). */
.slot[data-slot="0"] { left: 15.5%; top: 33%; width: 11%; height: 30%; z-index: 3; }
.slot[data-slot="1"] { left: 24.2%; top: 16.5%; width: 10.2%; height: 25%; z-index: 2; }
.slot[data-slot="2"] { left: 36.5%; top: 59.5%; width: 12.6%; height: 29%; z-index: 1; }
.slot[data-slot="3"] { left: 52%; top: 29%; width: 17%; height: 47%; z-index: 2; }
.slot[data-slot="4"] { left: 66.7%; top: 17%; width: 9.2%; height: 21%; z-index: 3; }

@media (max-width: 700px) {
	.slot[data-slot="0"] { left: 6%; top: 40%; width: 34%; height: 20%; }
	.slot[data-slot="1"] { left: 30%; top: 14%; width: 34%; height: 20%; }
	.slot[data-slot="2"] { left: 12%; top: 66%; width: 38%; height: 21%; }
	.slot[data-slot="3"] { left: 50%; top: 38%; width: 46%; height: 28%; }
	.slot[data-slot="4"] { left: 64%; top: 70%; width: 30%; height: 17%; }
}

/* ---------- GRAPHIC DESIGN ---------- */

.gd__viewport {
	position: absolute; z-index: 3;
	left: 0; top: calc(var(--header-h) + 2vh); bottom: calc(var(--footer-h) + 1vh);
	width: 36vw;
	overflow: hidden;
	touch-action: none;
	cursor: grab;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.gd__viewport.is-dragging { cursor: grabbing; }
.gd__list { position: relative; height: 100%; }
.gd__item { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.gd__link {
	display: block;
	padding: 0 var(--gx) 0 calc(var(--gx) * 2.4);
	font-size: clamp(30px, 3.4vw, 74px);
	line-height: 1.26;
	white-space: nowrap;
	transition: opacity 0.35s var(--ease);
}
.gd__list.is-hovering .gd__item:not(.is-hover) .gd__link { opacity: 0.3; }

.gd__preview {
	position: absolute; z-index: 1;
	right: 5.6%; top: 24.5%;
	width: 22.3vw; height: 52%;
	pointer-events: none;
}
.gd__thumb {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	clip-path: inset(100% 0 0 0);
	transition: clip-path 0.7s var(--ease-out);
}
.gd__thumb img, .gd__thumb .sp-ph { width: 100%; height: 100%; object-fit: contain; }
.gd__thumb.is-shown { clip-path: inset(0 0 0 0); }

@media (max-width: 900px) {
	.gd__viewport { width: 100%; top: 52%; }
	.gd__link { font-size: clamp(28px, 8vw, 46px); padding-left: var(--gx); }
	.gd__preview { left: 50%; right: auto; top: calc(var(--header-h) + 3vh); width: 46vw; height: 30%; transform: translateX(-50%); }
	.stage--gd .stage__title { place-items: start center; padding-top: 37svh; }
	.stage--gd .wordmark img { width: 42vw; }
}

/* ==========================================================================
   PODSTRONY Z LINIĄ PRZEZ ŚRODEK: produkt, książka, plakat, case study, artykuł
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100svh - var(--admin-bar));
}
.split__left,
.split__right { position: relative; min-width: 0; padding-top: var(--header-h); }
.split__sticky { position: sticky; top: calc(var(--admin-bar) + var(--header-h)); }

@media (min-width: 901px) {
	.sp-split .site-main::before {
		content: "";
		position: fixed; top: 0; bottom: 0; left: 50%; z-index: 801;
		width: 1px;
		background: var(--line);
		pointer-events: none;
	}
	.sp-split .site-footer { position: relative; z-index: 2; background: var(--paper); margin-top: 0; }
}

/* Karta produktu / książka / plakat */
.detail__media {
	display: flex; flex-direction: column; align-items: center;
	gap: clamp(14px, 1.3vw, 26px);
	padding: clamp(20px, 3.5vw, 70px) 0 12vh;
}
.detail__shot { width: clamp(220px, 20.2vw, 460px); }
.detail__shot a { display: block; cursor: zoom-in; }
.detail__shot img { width: 100%; height: auto; }
.detail__shot .sp-ph { aspect-ratio: 4 / 5; }

.detail__panel {
	display: flex; flex-direction: column; align-items: flex-start;
	padding: clamp(28px, 4.2vw, 84px) var(--gx) 8vh clamp(24px, 9.7vw, 200px);
	max-width: calc(9.7vw + 32vw);
}
.detail__section { font-size: var(--t-tag-cat); text-transform: uppercase; letter-spacing: 0.02em; }
.detail__section:hover { text-decoration: line-through; }
.detail__title {
	margin-top: 0.35em;
	font-size: clamp(30px, 3.1vw, 64px);
	line-height: 1.04;
	overflow-wrap: anywhere;
}
.detail__price,
.detail__price .price {
	margin-top: 0.35em;
	font-size: clamp(16px, 1.42vw, 28px);
	font-variant-numeric: tabular-nums;
}
.detail__price .price { margin-top: 0; }
.woocommerce div.product .detail__price p.price,
.woocommerce div.product .detail__price span.price,
.woocommerce div.product .detail__cart span.price,
.woocommerce div.product .detail__cart p.price { color: var(--ink); }
.detail__price del { color: var(--muted); margin-right: 0.3em; }
.detail__price ins { text-decoration: none; }
.detail__subtitle { margin-top: 0.6em; font-size: var(--t-tag-title); }
.detail__facts { width: min(100%, 26vw); margin-top: 2.2em; }
.detail__text { margin-top: clamp(26px, 2.7vw, 56px); max-width: 30vw; }
.detail__text > * + * { margin-top: 1.4em; }
.detail__panel .pill-button { margin-top: 2em; }

/* Formularz koszyka WooCommerce */
.detail__cart { width: 100%; margin-top: clamp(26px, 2.8vw, 58px); }
.detail__cart form.cart { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.1vw, 20px); margin: 0; }
.detail__cart .quantity,
.woocommerce div.product .detail__cart form.cart div.quantity { display: none !important; }
.detail__cart .variations { border-collapse: collapse; margin: 0; }
.detail__cart .variations tr { display: block; }
.detail__cart .variations tr + tr { margin-top: 12px; }
.detail__cart .variations th,
.detail__cart .variations td { display: block; padding: 0; text-align: left; }
.detail__cart .variations th.label { margin-bottom: 8px; font-size: var(--t-tag-cat); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }
/* Jedna cecha (np. Wersja) = same pigułki, jak w projekcie; przy kilku cechach widać ich nazwy. */
.detail__cart .variations tr:only-child th.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.js .detail__cart .variations select.is-pilled { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.detail__cart .reset_variations { display: none !important; }
.detail__cart .single_variation_wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.detail__cart .woocommerce-variation-price .price { font-size: clamp(14px, 1.1vw, 20px); }
.detail__cart .woocommerce-variation-add-to-cart { display: flex; }
.detail__cart .stock { margin: 0; font-family: var(--font-mono); font-size: var(--t-mono); color: var(--muted); }
.detail__cart .stock.out-of-stock { color: var(--ink); }

/* „Pigułki” wariantów */
.pills { display: flex; flex-wrap: wrap; gap: clamp(8px, 0.8vw, 14px); }
.pill {
	padding: 0.42em 1.15em 0.38em;
	border: 1px solid var(--line); border-radius: 99px;
	background: transparent; color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(11px, 0.8vw, 15px);
	line-height: 1.2;
	text-transform: uppercase; letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-selected { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill:disabled,
.pill.is-disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* Czarny przycisk-pigułka (Dodaj do koszyka, Kup w sklepie, przyciski WooCommerce) */
.pill-button,
.button,
.wp-element-button,
.wp-block-button__link,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: clamp(32px, 2.25vw, 46px);
	padding: 0 1.8em;
	border: 1px solid var(--ink); border-radius: 99px;
	background: var(--ink); color: var(--paper);
	font-family: var(--font-display);
	font-size: clamp(11px, 0.8vw, 15px);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase; letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.25s, color 0.25s;
}
.pill-button:hover,
.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover { background: transparent; color: var(--ink); }
.detail__cart .single_add_to_cart_button,
.detail__panel .pill-button { width: clamp(220px, 19.5vw, 400px); }
.woocommerce button.button.alt.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled { background: var(--ink); color: var(--paper); opacity: 1; cursor: not-allowed; }
.woocommerce button.button.alt.disabled:hover { background: var(--ink); color: var(--paper); }

/* Rozwijane sekcje (szczegóły, dostawa) */
.accordion { width: min(100%, 30vw); margin-top: 3em; border-bottom: 1px solid var(--line); }
.accordion__item { border-top: 1px solid var(--line); }
.accordion__item summary {
	display: flex; justify-content: space-between; align-items: center;
	padding: 0.9em 0.3em;
	cursor: pointer; list-style: none;
	text-transform: uppercase;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; transition: transform 0.3s var(--ease-out); }
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 0.3em 1.1em; }
.accordion__body table { width: 100%; border-collapse: collapse; }
.accordion__body th, .accordion__body td { padding: 4px 0; text-align: left; font-weight: 400; vertical-align: top; }
.accordion__body th { color: var(--muted); width: 40%; }
.accordion__body td p { margin: 0; }

/* Tabelka faktów (KLIENT: … ADIDAS) */
.facts { display: grid; text-transform: uppercase; }
.facts > div {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1.5em;
	padding: 1.25em 0.5em 1.35em;
	border-bottom: 1px solid var(--line);
}
.facts dt { flex: none; }
.facts dd { text-align: right; font-weight: 500; }

/* Case study */
.case__info { padding: clamp(28px, 4.4vw, 90px) var(--gx) 8vh 18.7vw; max-width: calc(18.7vw + max(15vw, 280px)); }
.case__title { font-size: clamp(28px, 2.75vw, 58px); line-height: 1.05; overflow-wrap: anywhere; }
.case__lead { margin-top: 1.5em; }
.case__facts { margin-top: 2.6em; }

.split__column { width: min(28.6vw, 620px); margin-left: 10.5vw; padding: clamp(28px, 4.2vw, 90px) 0 14vh; }
.entry-content.case__content > *,
.entry-content.article__content > * { max-width: none; margin: 0; }
.entry-content.case__content > * + *,
.entry-content.article__content > * + * { margin-top: 2.2em; }
.entry-content.article__content > figure.wp-block-image { margin-top: 2.6em; }
.case__content > figure,
.case__content > .wp-block-image { margin-top: 1.6em; }
.case__content img { width: 100%; height: auto; }
.case__content figure a { display: block; cursor: zoom-in; }

.next-link { margin-top: 14vh !important; border-top: 1px solid var(--line); }
.next-link a { display: grid; gap: 0.5em; padding-top: 1.4em; }
.next-link__label { text-transform: uppercase; }
.next-link__title { font-family: var(--font-display); font-size: var(--t-title); line-height: 1.05; }
.next-link a:hover .next-link__title { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Artykuł — lewa połowa: miniatury wszystkich artykułów (bieżący na środku) */
.article-map {
	height: calc(100svh - var(--admin-bar) - var(--header-h));
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
}
.article-map.is-live { cursor: grab; }
.article-map.is-dragging { cursor: grabbing; }
.article-map.is-dragging a { pointer-events: none; }
.article-map__field { position: relative; height: 100%; }
.article-map__item { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform; }
.article-map__item.is-current { z-index: 2; }
.article-map__item.is-hover { z-index: 5; }
.article-map .item__link { display: block; height: auto; }
.article-map .item__media { display: block; height: auto; transform-origin: 50% 50%; transition: transform 0.8s var(--ease-out); }
.article-map .item__media img { width: 100%; height: auto; }
.article-map .item__link:hover .item__media,
.article-map .item__link:focus-visible .item__media { transform: scale(1.06); }
.article-map .item.is-current .item__link { cursor: default; }
.article-map__field .item { transition: opacity 0.4s var(--ease); }
.article-map__field.is-hovering .item:not(.is-hover) { opacity: 0.4; }
.article-map__num,
.article-map__cap {
	position: absolute; left: 0;
	font-family: var(--font-mono); font-size: var(--t-tag-cat);
	line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
	pointer-events: none;
}
.article-map__num { bottom: 100%; margin-bottom: 0.8em; }
.article-map__cap { top: 100%; margin-top: 0.9em; }
/* Tytuł artykułu pod miniaturą: łamie się w szerokości miniatury zamiast wychodzić poza nią. */
.article-map__cap--title { right: 0; white-space: normal; overflow-wrap: anywhere; }

/* Bez animacji (ograniczenie ruchu / bez JS): bieżący artykuł duży, pozostałe w siatce. */
.article-map--static,
html:not(.js) .article-map { position: static; height: auto; overflow: visible; cursor: auto; }
.article-map--static .article-map__field,
html:not(.js) .article-map__field {
	display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6vh 6%;
	height: auto; padding: 5vh 8% 8vh;
}
.article-map--static .article-map__item,
html:not(.js) .article-map__item { position: relative; width: 29%; transform: none; }
.article-map--static .article-map__item.is-current,
html:not(.js) .article-map__item.is-current { order: -1; width: 60%; margin: 2em 20% 3em; }

/* Artykuł — prawa połowa (układ jak tlb.betteroff.studio) */
.split__column.article__content { margin-left: 7.7vw; width: min(32vw, 700px); }
.article__head { margin-bottom: clamp(30px, 3.6vw, 76px); }
.article__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.9em;
	font-size: var(--t-tag-cat); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
}
.article__label { display: inline-block; padding: 0.5em 1.05em 0.45em; border: 1px solid var(--ink); border-radius: 99px; }
/* CLOSE i SOURCE na górze tekstu artykułu (menu u góry jest takie samo jak wszędzie) */
.article__bar {
	display: flex; justify-content: space-between; align-items: center; gap: 1em;
	margin-bottom: clamp(30px, 5vh, 70px);
	font-size: var(--t-nav); text-transform: uppercase; letter-spacing: 0.02em;
}
.article__close:hover { text-decoration: line-through; }
.article__source { text-decoration: underline; text-underline-offset: 0.2em; }
.article__title {
	margin-top: 0.6em;
	font-family: var(--font-display); font-weight: 500;
	font-size: clamp(34px, 3.5vw, 76px); line-height: 0.95; letter-spacing: -0.02em;
	text-transform: uppercase; overflow-wrap: anywhere;
}
.article__content figure.wp-block-image img { width: 100%; height: auto; }
.article__content figure a { display: block; cursor: zoom-in; }
.article__content .wp-block-embed iframe { width: 100%; }
.entry-content.article__content > .wp-block-embed { margin-top: 3em; }

/* Kilka zdjęć pod rząd → układ naprzemienny na całą prawą połowę, z numerami 01, 02… */
.entry-content.article__content > .article__stagger {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 1.2vw; row-gap: clamp(36px, 7vh, 110px); align-items: start;
	width: 47vw; margin: clamp(56px, 10vh, 150px) 0 clamp(40px, 8vh, 120px) -6.4vw;
}
.article__stagger > figure { margin: 0 !important; }
.article__stagger > figure:nth-child(5n + 1) { grid-column: 1 / span 4; }
.article__stagger > figure:nth-child(5n + 2) { grid-column: 9 / span 3; margin-top: 9vw !important; }
.article__stagger > figure:nth-child(5n + 3) { grid-column: 5 / span 4; }
.article__stagger > figure:nth-child(5n + 4) { grid-column: 1 / span 5; }
.article__stagger > figure:nth-child(5n + 5) { grid-column: 9 / span 2; margin-top: 6vw !important; }
.article__stagger > figure::after {
	content: attr(data-num);
	display: block; margin-top: 0.8em;
	font-size: var(--t-tag-cat); line-height: 1;
}
.article__stagger figcaption { margin-top: 0.6em; font-size: var(--t-tag-cat); }

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__right { padding-top: 0; }
	.split__sticky { position: static; }
	.detail__media {
		flex-direction: row; align-items: stretch; gap: 0;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		padding: 2vh 0 0;
	}
	.detail__media::-webkit-scrollbar { display: none; }
	.detail__shot { flex: 0 0 100%; width: auto; padding: 0 12vw; scroll-snap-align: center; }
	.detail__shot img { max-height: 62svh; width: auto; margin: 0 auto; }
	.detail__dots { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
	.detail__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.3s; }
	.detail__dots span.is-active { background: var(--ink); }
	.detail__panel { padding: 5vh var(--gx) 6vh; max-width: none; }
	.detail__facts, .detail__text, .accordion { width: 100%; max-width: none; }
	.case__info { padding: 4vh var(--gx) 2vh; max-width: none; }
	.split__column,
	.split__column.article__content { width: auto; margin: 0; padding: 4vh var(--gx) 10vh; }
	.article-map { height: 58svh; border-bottom: 1px solid var(--line); }
	.entry-content.article__content > .article__stagger {
		grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 3vw; row-gap: 5vh;
		width: auto; margin: 7vh 0 5vh;
	}
	.article__stagger > figure:nth-child(5n + 1) { grid-column: 1 / span 4; }
	.article__stagger > figure:nth-child(5n + 2) { grid-column: 5 / span 2; margin-top: 16vw !important; }
	.article__stagger > figure:nth-child(5n + 3) { grid-column: 2 / span 4; }
	.article__stagger > figure:nth-child(5n + 4) { grid-column: 1 / span 3; }
	.article__stagger > figure:nth-child(5n + 5) { grid-column: 4 / span 3; margin-top: 12vw !important; }
}
@media (min-width: 901px) { .detail__dots { display: none; } }

/* ==========================================================================
   O STUDIU
   ========================================================================== */

.about .stage--about { height: calc(100svh - var(--admin-bar)); }
.about__intro {
	display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 6vw;
	padding: 12vh 7vw;
}
.about__image { width: clamp(180px, 16vw, 380px); justify-self: center; }
.about__image img { width: 100%; height: auto; }
.about__text { max-width: 52ch; justify-self: center; text-align: center; color: var(--muted); }
.about__text > * + * { margin-top: 1.2em; }
/* KLIENCI: zakrzywiona karuzela, napis POD grafikami (widać go między nimi) */
.about__band { position: relative; height: clamp(250px, 21vw, 460px); margin: 4vh 0; overflow: hidden; }
.about__band .row { top: 12%; height: 76%; }
.about__label {
	position: absolute; left: 50%; top: 50%; z-index: 0;
	margin: 0;
	transform: translate(-50%, -50%);
	font-size: clamp(44px, 7vw, 150px); line-height: 1;
	text-transform: uppercase; letter-spacing: 0.01em;
	pointer-events: none;
	white-space: nowrap;
}

.about__band--static,
html:not(.js) .about__band { height: auto; overflow: visible; padding: 2vh 0; }
.about__band--static .about__label,
html:not(.js) .about__label { position: static; display: block; transform: none; text-align: center; margin-bottom: 4vh; }
.about__band--static .row,
html:not(.js) .about__band .row { position: relative; top: auto; height: auto; display: flex; gap: 2vw; overflow-x: auto; padding: 0 var(--gx); }
.about__band--static .item,
html:not(.js) .about__band .item { position: relative; flex: 0 0 auto; width: clamp(110px, 12vw, 220px); height: auto; transform: none; }
.about__band--static .item__media,
html:not(.js) .about__band .item__media { aspect-ratio: 0.79; }

/* REALIZACJE / styl galerii „Slajdy”: zdjęcie wyjeżdża, wjeżdża kolejne, napis pod spodem */
.slides { position: relative; height: clamp(380px, 40vw, 840px); margin: 2vh 0 12vh; overflow: hidden; }
.slides__label {
	position: absolute; left: 50%; top: 50%; z-index: 0;
	margin: 0 !important;
	transform: translate(-50%, -50%);
	font-family: var(--font-display); font-size: clamp(44px, 7.4vw, 160px); line-height: 1;
	text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
	pointer-events: none;
}
.slides__track { position: absolute; inset: 0; z-index: 1; }
.slide { position: absolute !important; left: 50%; top: 50%; display: block; width: clamp(210px, 21vw, 460px) !important; margin: 0 !important; transform: translate(-50%, -50%); }
.slide img { display: block; width: 100% !important; height: auto !important; max-height: calc(clamp(380px, 40vw, 840px) * 0.86); object-fit: contain !important; }
.js .slides .slide:not(:first-child) { visibility: hidden; }
.slides--static { height: auto; overflow: visible; }
.slides--static .slides__label,
html:not(.js) .slides__label { position: static; transform: none; display: block; text-align: center; margin-bottom: 4vh !important; }
.slides--static .slides__track,
html:not(.js) .slides__track { position: static; display: flex; gap: 3vw; overflow-x: auto; padding: 0 var(--gx); }
.slides--static .slide,
html:not(.js) .slide { position: relative !important; left: auto; top: auto; transform: none; flex: 0 0 auto; visibility: visible !important; }
html:not(.js) .slides { height: auto; }
.sp-g--slides { display: block !important; height: clamp(300px, 30vw, 620px); }
.sp-g--slides .slide { width: 52% !important; }
.sp-g--slides .slide img { max-height: calc(clamp(300px, 30vw, 620px) * 0.86); }
.sp-g--slides .slides__label { font-size: clamp(28px, 4vw, 92px); }
.sp-g--curve { position: relative; height: clamp(220px, 22vw, 460px); overflow: hidden; display: block !important; }
.entry-content > .sp-g--curve { max-width: none; }
.sp-g--curve .row { top: 10%; height: 80%; }
.sp-g--curve .row .item figure { margin: 0 !important; width: 100% !important; height: 100%; }
.sp-g--curve .row .item img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

@media (max-width: 800px) {
	.about__intro { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Strony zwykłe, siatki, treść z edytora
   ========================================================================== */

.page-wrap { padding: calc(var(--header-h) + 7vh) var(--gx) 6vh; }
.page-head { margin-bottom: 6vh; }
.page-head__back { display: inline-block; margin-bottom: 1em; font-size: var(--t-tag-cat); text-transform: uppercase; }
.page-title { font-size: clamp(36px, 4.2vw, 88px); line-height: 1.02; }
.page-head__text { max-width: 60ch; margin-top: 1.4em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6vh 3vw; }
.item--grid { position: relative; }
.item--grid .item__media { aspect-ratio: 0.79; height: auto; }
.item--grid .tag { position: static; opacity: 1; transform: none; align-items: flex-start; text-align: left; white-space: normal; margin-top: 0.8em; }

.empty-note {
	position: relative; z-index: 4;
	max-width: 36rem;
	margin: calc(var(--header-h) + 4vh) var(--gx) 0;
	padding: 18px 20px;
	border: 1px solid var(--line);
	font-family: var(--font-mono); font-size: var(--t-mono);
}

.sp-ph {
	display: flex; align-items: flex-end;
	width: 100%; aspect-ratio: 4 / 5;
	padding: 10px;
	background: rgba(0, 0, 0, 0.06); color: var(--muted);
	font-size: 12px;
}

.nav-links { display: flex; gap: 14px; padding-top: 6vh; text-transform: uppercase; font-size: var(--t-nav); }
.nav-links .current { text-decoration: line-through; }

.entry-content > * { max-width: 70ch; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); line-height: 1.1; margin-top: 2em; }
.entry-content h2 { font-size: clamp(22px, 1.8vw, 38px); }
.entry-content h3 { font-size: clamp(18px, 1.3vw, 28px); }
.entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.button) { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content figcaption,
.entry-content .wp-element-caption { margin-top: 0.6em; color: var(--muted); font-size: 0.9em; }
.entry-content img { height: auto; }
.entry-content > .alignwide,
.entry-content > .alignfull { max-width: none; }

/* ---------- WooCommerce: komunikaty, koszyk, zamówienie ---------- */

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 3vh;
	padding: 12px 16px;
	border: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--ink);
	list-style: none;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	font-family: var(--font-mono); font-size: var(--t-mono);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; }
.stage .woocommerce-notices-wrapper {
	position: absolute; z-index: 6;
	left: 50%; top: calc(var(--header-h) + 8px);
	transform: translateX(-50%);
	width: min(92vw, 640px);
	background: var(--paper);
}
.stage .woocommerce-notices-wrapper .woocommerce-message { margin: 0; }
.single-product .woocommerce-notices-wrapper:not(:empty) {
	position: fixed; z-index: 805;
	left: 50%; top: calc(var(--admin-bar) + var(--header-h) + 8px);
	transform: translateX(-50%);
	width: min(92vw, 640px);
	background: var(--paper);
}
.single-product .woocommerce-notices-wrapper .woocommerce-message { margin: 0; }

.woocommerce-cart .entry-content > *,
.woocommerce-checkout .entry-content > *,
.woocommerce-account .entry-content > * { max-width: 1200px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--ink);
	font: inherit;
}
.wc-block-components-button:not(.is-link) {
	border-radius: 99px !important;
	background: var(--ink) !important; color: var(--paper) !important;
	text-transform: uppercase; letter-spacing: 0.02em;
}
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-select .wc-block-components-select__select { border-radius: 0 !important; background: transparent !important; }
.wc-block-components-product-name { text-decoration: none !important; }

/* ---------- Galerie: style bloku Galeria (Zoom / Stos / Kolumny / Pasek) ---------- */

.entry-content > .sp-g { max-width: none; }
.sp-g--zoom, .sp-g--stack { position: relative; height: calc(var(--n, 5) * 75svh + 100svh); display: block !important; }
.sp-g__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sp-g--zoom .sp-g__stage > figure,
.sp-g--stack .sp-g__stage > figure {
	position: absolute !important;
	left: 50%; top: 50%;
	margin: 0 !important;
	will-change: transform;
}
.sp-g--zoom .sp-g__stage > figure { width: 100% !important; height: 70svh; opacity: 0; transform: translate(-50%, -50%); }
.sp-g--zoom .sp-g__stage > figure img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.sp-g--zoom .sp-g__stage > figure.is-current { opacity: 1; }
.sp-g--stack .sp-g__stage > figure { width: min(80%, 60svh) !important; }
.sp-g--stack .sp-g__stage > figure img { width: 100% !important; height: auto !important; }
.sp-g__count { position: absolute; left: 0; bottom: var(--gx); z-index: 5; font-family: var(--font-mono); font-size: var(--t-mono); }
.sp-g figcaption { display: none; }
.sp-g--columns {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
	height: 120svh;
	overflow: hidden;
}
.sp-g__col { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.sp-g--columns .sp-g__col > figure { width: 100% !important; margin: 0 !important; }
.sp-g--columns .sp-g__col > figure img { width: 100% !important; height: auto !important; }
.sp-g--strip { position: relative; height: clamp(200px, 26vw, 520px); overflow: hidden; display: block !important; }
.sp-g--strip .row { top: 0; height: 100%; }
.sp-g--strip .row .item { aspect-ratio: auto; width: auto; }
.sp-g--strip .row .item figure { margin: 0 !important; width: auto !important; height: 100%; }
.sp-g--strip .row .item img { width: auto !important; height: 100% !important; max-width: none; object-fit: contain !important; }

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed; inset: 0; z-index: 950;
	display: grid; place-items: center;
	background: var(--paper);
	visibility: hidden; opacity: 0;
	transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.lightbox__img { max-width: calc(100vw - 2 * var(--gx)); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox__bar {
	position: absolute; left: 0; right: 0; top: 0;
	display: flex; justify-content: space-between; align-items: center;
	height: var(--header-h); padding: 0 var(--gx);
	font-size: var(--t-nav); text-transform: uppercase;
}
.lightbox__count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lightbox button { padding: 8px 0; background: none; border: 0; cursor: pointer; text-transform: uppercase; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 18px var(--gx) !important; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__nav[hidden] { display: none; }

/* ==========================================================================
   Zanim JS ułoży sceny / bez JS / ograniczony ruch
   ========================================================================== */

.sp-locked, .sp-locked body { overflow: hidden; height: 100%; }

.sp-booting .stage__field,
.sp-booting .gd__viewport,
.sp-booting .stage__heading,
.sp-booting .article-map__field,
.sp-booting .wp-block-gallery[class*="is-style-sp-"] {
	visibility: hidden;
	animation: sp-unhide 0s linear 2.5s forwards;
}
@keyframes sp-unhide { to { visibility: visible; } }

/* Wersja statyczna: napis u góry, miniatury w siatce, strona się przewija. */
html:not(.js) .stage,
.stage.stage--static { height: auto; min-height: 0; overflow: visible; }
html:not(.js) .stage__title,
.stage--static .stage__title { position: relative; inset: auto; padding: calc(var(--header-h) + 6vh) var(--gx) 6vh; }
html:not(.js) .stage__field,
.stage--static .stage__field {
	position: relative; inset: auto;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 5vh 3vw;
	padding: 0 var(--gx) calc(var(--footer-h) + 8vh);
}
html:not(.js) .stage .row,
.stage--static .row,
html:not(.js) .slot,
.stage--static .slot { display: contents; }
html:not(.js) .slot:not(:first-child),
.stage--static .slot:not(:first-child) { display: none; }
html:not(.js) .stage .item,
.stage--static .item {
	position: relative !important; inset: auto !important;
	width: auto !important; height: auto !important;
	transform: none !important; visibility: visible !important; opacity: 1 !important;
}
html:not(.js) .stage .item__link,
.stage--static .item__link,
.item--grid .item__link { height: auto; }
html:not(.js) .stage .item__media,
.stage--static .item__media { aspect-ratio: 0.79; height: auto; }
html:not(.js) .stage .item__media img,
.stage--static .item__media img { width: 100%; height: 100%; object-fit: contain; }
html:not(.js) .stage .tag,
.stage--static .tag { position: static; opacity: 1; transform: none; align-items: flex-start; text-align: left; white-space: normal; margin-top: 0.8em; }
html:not(.js) .gd__viewport,
.stage--static .gd__viewport { position: relative; inset: auto; width: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 14vh; }
html:not(.js) .gd__item,
.stage--static .gd__item { position: relative; transform: none !important; }
html:not(.js) .gd__preview,
.stage--static .gd__preview { display: none; }
html:not(.js) .sp-stage .site-footer,
.sp-static .sp-stage .site-footer { position: relative; pointer-events: auto; }

/* ---------- Lenis ---------- */

html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.page-curtain { display: none; }
}

/* ==========================================================================
   v2.1 — komentarze z Canvy: odwrócone światło, kursor z tytułem, koszyk z prawej
   ========================================================================== */

/* Menu: takie samo na każdej stronie; napisy odwracają kolory nad miniaturami (difference). */
.site-header { color: #fff; mix-blend-mode: difference; font-family: var(--font-nav, var(--font-display)); }
.site-header::before { display: none; }
.site-header .site-logo__img,
.site-header .custom-logo { filter: invert(1); }
.site-header__toggle { color: inherit; }
.is-menu-open .site-header { mix-blend-mode: normal; color: var(--ink); }
.is-menu-open .site-header .site-logo__img,
.is-menu-open .site-header .custom-logo { filter: none; }
.site-nav a:hover { opacity: 1; }
/* Białe podświetlenie pod pozycją menu (osobna warstwa pod menu → tekst na niej robi się czarny). */
.nav-hl {
	position: fixed; left: 0; top: 0; z-index: 799;
	width: 0; height: 0;
	background: #fff;
	pointer-events: none; opacity: 0;
	transition: opacity 0.2s var(--ease), transform 0.35s var(--ease-out), width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}
.nav-hl.is-on { opacity: 1; }
.sp-stage .site-footer { color: #fff; mix-blend-mode: difference; }

/* Napis HATOR STUDIO + nazwa sekcji: przeźroczysty, odwraca kolory nad miniaturami. */
.stage__title { color: #fff; mix-blend-mode: difference; }
.stage__title .wordmark img { filter: invert(1); }

/* Ruchome miniatury (MP4) */
.item__media video { display: block; width: 100%; height: auto; pointer-events: none; }
.item--box .item__media video { height: 100%; object-fit: contain; }
.item--card .item__media video { height: 100%; object-fit: cover; }

/* Tytuł miniatury jako kursor */
.cursor-tag {
	position: fixed; left: 0; top: 0; z-index: 900;
	display: flex; flex-direction: column; align-items: center; gap: 0.25em;
	color: #fff; mix-blend-mode: difference;
	text-align: center; white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s var(--ease);
	translate: -50% -50%;
}
.cursor-tag.is-visible { opacity: 1; }
.cursor-tag__cat { font-size: var(--t-tag-cat); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.cursor-tag__title { font-size: var(--t-tag-title); line-height: 1.1; }
.cursor-tag__title:empty { display: none; }
.has-cursor-tag .item.is-pointer .tag { opacity: 0 !important; }
.has-cursor-tag .stage [data-item] .item__link,
.has-cursor-tag .about [data-item] .item__link,
.has-cursor-tag .article-map [data-item] .item__link { cursor: none; }
.has-cursor-tag .article-map .item.is-current .item__link { cursor: default; }

/* BOOKS: po najechaniu miniatura wychodzi na sam przód i robi się największa */
.stage--books .item .item__media { transform-origin: 50% 50%; transition: transform 0.8s var(--ease-out); }
.stage--books .item.is-hover { z-index: 20; }
.stage--books .item.is-hover .item__media { transform: scale(var(--grow, 1.8)); }
.stage--books .stage__field.is-hovering .item:not(.is-hover) { opacity: 0.5; }

/* Karta produktu jak w przykładzie (duży tytuł, szeroki przycisk) */
.detail__title { font-size: clamp(34px, 3.9vw, 82px); line-height: 1; letter-spacing: -0.01em; }
.detail__cart form.cart { align-items: stretch; }
.detail__cart .single_variation_wrap,
.detail__cart .woocommerce-variation-add-to-cart { display: block; width: 100%; }
.detail__cart .single_add_to_cart_button,
.woocommerce div.product .detail__cart form.cart .button,
.detail__panel .pill-button { width: 100% !important; justify-content: center; }

/* Koszyk wysuwany z prawej */
.cart-drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; }
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.4s var(--ease); }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(440px, 100%);
	padding: calc(var(--admin-bar) + 22px) clamp(18px, 1.8vw, 32px) 24px;
	background: var(--paper); color: var(--ink);
	border-left: 1px solid var(--line);
	transform: translateX(102%);
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	outline: none;
	overflow-y: auto; overscroll-behavior: contain;
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer.is-autoopen .cart-drawer__panel { animation: sp-drawer-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
@keyframes sp-drawer-in { from { transform: translateX(102%); } to { transform: translateX(0); } }
.cart-drawer__head {
	display: flex; justify-content: space-between; align-items: center;
	padding-bottom: 18px; border-bottom: 1px solid var(--line);
	font-size: var(--t-nav); text-transform: uppercase; letter-spacing: 0.02em;
}
.cart-drawer__close { padding: 6px 0; background: none; border: 0; color: inherit; font: inherit; text-transform: uppercase; cursor: pointer; }
.cart-drawer__close:hover { text-decoration: line-through; }
.cart-drawer__note { margin-top: 16px; font-family: var(--font-mono); font-size: var(--t-tag-cat); text-transform: uppercase; }
.cart-drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; }
.cart-drawer .woocommerce-mini-cart { list-style: none; margin: 8px 0 0; padding: 0; }
.cart-drawer .woocommerce-mini-cart-item {
	position: relative; display: block; min-height: 96px;
	padding: 16px 28px 16px 92px !important;
	border-bottom: 1px solid var(--line);
	font-size: var(--t-mono); line-height: 1.35;
}
.cart-drawer .woocommerce-mini-cart-item img {
	position: absolute; left: 0; top: 16px;
	width: 72px !important; height: 72px; object-fit: contain; margin: 0 !important; float: none !important;
}
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove) { display: block; font-family: var(--font-display); font-size: clamp(16px, 1.15vw, 21px); line-height: 1.15; }
.cart-drawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; font-size: 20px; line-height: 1; color: var(--ink) !important; background: none !important; }
.cart-drawer .woocommerce-mini-cart-item .quantity,
.cart-drawer .woocommerce-mini-cart-item dl { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: var(--t-tag-cat); }
.cart-drawer .woocommerce-mini-cart-item dl dt,
.cart-drawer .woocommerce-mini-cart-item dl dd,
.cart-drawer .woocommerce-mini-cart-item dl p { display: inline; margin: 0; }
.cart-drawer .woocommerce-mini-cart__total {
	display: flex; justify-content: space-between; margin: auto 0 0; padding: 22px 0 16px;
	font-size: clamp(16px, 1.15vw, 21px);
}
.cart-drawer .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; padding: 0; }
.cart-drawer .woocommerce-mini-cart__buttons .pill-button { width: 100%; justify-content: center; }
.cart-drawer__link { text-align: center; font-size: var(--t-nav); text-transform: uppercase; letter-spacing: 0.02em; }
.cart-drawer__link:hover { text-decoration: line-through; }
.cart-drawer .woocommerce-mini-cart__empty-message { margin-top: 24px; font-family: var(--font-mono); }
.is-cart-open body { overflow: hidden; }



/* ==========================================================================
   v2.3 — poprawki po uwagach: fonty, napisy tylko B/W, menu, rozlewanie, BOOKS,
   dolne menu na stałe, strony wyśrodkowane, skalowanie okna
   ========================================================================== */

/* Fonty z projektu: wrzuć pliki do assets/fonts/ (nazwy poniżej) albo wgraj w Dostosuj → Fonty. */
@font-face { font-family: "Burgino Trial"; src: url("../fonts/Burgino-300.woff") format("woff"), url("../fonts/Burgino-300.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Burgino Trial"; src: url("../fonts/Burgino-400.woff") format("woff"), url("../fonts/Burgino-400.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Burgino Trial"; src: url("../fonts/Burgino-500.woff") format("woff"), url("../fonts/Burgino-500.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Burgino Trial"; src: url("../fonts/Burgino-700.woff") format("woff"), url("../fonts/Burgino-700.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TG Freukent"; src: url("../fonts/TGFreukent-var.woff") format("woff"), url("../fonts/TGFreukent-var.ttf") format("truetype"); font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
	--font-display: "Burgino Trial", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "TG Freukent", "DM Mono", ui-monospace, Menlo, Consolas, monospace;
	--font-text: var(--font-mono);
}
body { font-family: var(--font-text); }
h1, h2, h3, h4, h5, h6, .site-header, .site-nav, .stage__section, .cursor-tag__title, .cursor-tag__cat, .page-title, .case__title, .detail__title, .article__title { font-family: var(--font-display); }

/* Napisy: tylko czerń i biel (kolor ustawia JS zależnie od tego, co jest pod spodem). */
.site-header,
.sp-stage .site-footer,
.stage__title,
.cursor-tag { mix-blend-mode: normal; color: var(--ink); }
.site-header .site-logo__img,
.site-header .custom-logo { filter: brightness(0); transition: filter 0.25s; }
.site-header .site-logo.bw-light .site-logo__img,
.site-header .site-logo.bw-light .custom-logo { filter: brightness(0) invert(1); }
.is-menu-open .site-header .site-logo__img,
.is-menu-open .site-header .custom-logo { filter: brightness(0); }
.stage__title .wordmark img { filter: none; }
.site-nav a, .site-header__toggle, .site-footer a, .stage__section .ch, .wordmark--text { transition: color 0.25s; }
.bw-light { color: #fff !important; }
.bw-dark { color: #000 !important; }

/* Napis-obraz: maska + filtr tła (czarno-białe odwrócenie) */
.wordmark--bw { position: relative; width: var(--wordmark-w); }
.wordmark--bw img { opacity: 0; }
.wordmark--bw::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	-webkit-backdrop-filter: grayscale(1) invert(1) contrast(1.6);
	backdrop-filter: grayscale(1) invert(1) contrast(1.6);
	-webkit-mask: var(--wm) center / 100% 100% no-repeat;
	mask: var(--wm) center / 100% 100% no-repeat;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.wordmark--bw img { opacity: 1; }
	.wordmark--bw::after { display: none; }
}

/* Menu: bez białego kwadratu; logo obraca się po najechaniu */
.nav-hl { display: none !important; }
.site-logo:hover .site-logo__img { transform: none; }
@keyframes sp-spin-r { to { rotate: 360deg; } }
.site-logo .site-logo__img { animation: sp-spin-r 1.6s linear infinite; animation-play-state: paused; }
.site-logo:hover .site-logo__img,
.site-logo:focus-visible .site-logo__img { animation-play-state: running; }

/* BOOKS: najechana miniatura wskakuje na prawo i rośnie, reszta robi miejsce */
.stage--books .item {
	translate: var(--tx, 0px) var(--ty, 0px);
	scale: var(--sc, 1);
	transition: translate 0.95s var(--ease-out), scale 0.95s var(--ease-out), opacity 0.5s var(--ease);
}
.stage--books .item.is-feature { z-index: 30; }
.stage--books .item.is-hover .item__media { transform: none; }
.stage--books .stage__field.is-hovering .item:not(.is-hover) { opacity: 1; }
.stage--books .stage__field.has-feature .item:not(.is-feature) { opacity: 0.55; }

/* Dolne menu zawsze przy dolnej krawędzi */
.site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; margin: 0; background: var(--paper); }
.sp-stage .site-footer { background: transparent; }
body { padding-bottom: var(--footer-h); }
.sp-stage { padding-bottom: 0; }
.sp-split .site-footer { position: fixed; margin: 0; }

/* Tabelka KLIENT / ROK / ZAKRES / BRIEF — równo względem kresek */
.facts > div { align-items: center; min-height: 4em; padding: 0.9em 0.5em; line-height: 1.15; }
.facts dt, .facts dd { padding-top: 0.14em; }
.case__facts { border-top: 1px solid var(--line); }

/* Artykuł: miniatury po lewej odwracają się bokiem po najechaniu */
.article-map .item__media { transform-style: preserve-3d; }
.article-map .item:not(.is-current) .item__link:hover .item__media,
.article-map .item:not(.is-current) .item__link:focus-visible .item__media { transform: perspective(800px) rotateY(-38deg) scale(1.04); }
.article-map .item.is-current .item__link:hover .item__media { transform: none; }

/* Koszyk, płatność, polityka prywatności itd. — na środku strony */
.page-wrap { width: min(100%, 86vw); margin-inline: auto; padding-inline: 0; }
.page-head { text-align: center; }
.page-wrap .entry-content > * { margin-inline: auto; }
.woocommerce-cart .entry-content > *,
.woocommerce-checkout .entry-content > *,
.woocommerce-account .entry-content > * { max-width: min(1200px, 100%); }

/* Okno desktopowe: wszystko skaluje się razem z oknem (bez sztywnych minimów) */
@media (min-width: 901px) {
	:root {
		--t-nav: max(8px, 0.68vw); --t-mono: max(9px, 0.8vw); --t-tag-cat: max(9px, 0.86vw);
		--t-tag-title: max(10px, 1.1vw); --t-section: max(14px, 2vw); --t-title: max(22px, 3vw);
		--wordmark-w: max(150px, 23vw); --header-h: max(40px, 4.4vw); --footer-h: max(32px, 3.2vw);
	}
	body { font-size: max(10px, 0.9vw); }
	.detail__shot { width: max(120px, 20.2vw); }
	.site-logo__img { width: max(26px, 2.5vw); }
}


/* ==========================================================================
   v2.3.2 — rozmycie przy krawędziach, etykieta B/W, podkreślenia, CLOSE w artykule, rozmiary
   ========================================================================== */

/* Progresywne rozmycie przy krawędziach ekranu (miniatury „rozlewają się” w mgłę) */
.edge-blur { position: fixed; z-index: 650; pointer-events: none; }
.edge-blur--top, .edge-blur--bottom { left: 0; right: 0; height: 20vh; }
.edge-blur--top { top: 0; }
.edge-blur--bottom { bottom: 0; }
.edge-blur--left, .edge-blur--right { top: 0; bottom: 0; width: 14vw; }
.edge-blur--left { left: 0; }
.edge-blur--right { right: 0; }
.edge-blur__l { position: absolute; inset: 0; display: block; }

/* Napis HATOR STUDIO zawsze nad miniaturami */
.stage__title { z-index: 20; }

/* Etykieta po najechaniu: odwrócenie (difference) + warstwa saturation = tylko czerń i biel */
.cursor-tag { color: #fff; mix-blend-mode: difference; }
.cursor-tag--sat { color: #000; mix-blend-mode: saturation; z-index: 901; }

/* Logo-ostrokół: na HOME czarno-białe, na pozostałych stronach w oryginalnych kolorach */
body:not(.home) .site-header .site-logo__img,
body:not(.home) .site-header .custom-logo,
body:not(.home) .site-header .site-logo.bw-light .site-logo__img { filter: none !important; }

/* Podkreślenie (jak w menu) zamiast przekreślenia */
.footer-links a:hover, .detail__section:hover, .article__close:hover,
.cart-drawer__close:hover, .cart-drawer__link:hover { text-decoration: none; }
.next-link a:hover .next-link__title, .nav-links .current { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.footer-links a, .detail__section, .article__close, .cart-drawer__close, .cart-drawer__link { position: relative; display: inline-block; }
.footer-links a::after, .detail__section::after, .article__close::after, .cart-drawer__close::after, .cart-drawer__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -0.1em; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform 0.45s var(--ease-out);
}
.footer-links a:hover::after, .detail__section:hover::after, .article__close:hover::after,
.cart-drawer__close:hover::after, .cart-drawer__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Tabelka faktów: tekst równo względem kresek */
.facts { margin: 0; padding: 0; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 1.5em; min-height: 3.6em; padding: 0.7em 0.5em; line-height: 1.2; }
.facts dt, .facts dd { margin: 0; padding: 0; line-height: 1.2; }
@supports (text-box: trim-both cap alphabetic) {
	.facts dt, .facts dd { text-box: trim-both cap alphabetic; line-height: 1.3; }
}

/* Artykuł: prawa strona jak otwierane okno; CLOSE przy prawej krawędzi, zawieszone; menu obok logo */
.split--article .split__right { background: var(--paper); will-change: transform; }
.is-article-closing .sp-split .site-main::before { opacity: 0; }
.article__bar { justify-content: flex-start; }
@media (min-width: 901px) {
	.split--article .article__close {
		position: fixed; right: var(--gx); top: var(--admin-bar); z-index: 810;
		display: flex; align-items: center; height: var(--header-h);
		font-size: var(--t-nav); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink);
	}
	.split--article .article__close::after { bottom: calc(50% - 0.9em); }
	.single-sp_article .site-header { justify-content: flex-start; gap: 3vw; }
}

/* Menu i teksty ok. 20% mniejsze, skalują się z oknem */
@media (min-width: 901px) {
	:root {
		--t-nav: max(6.5px, 0.544vw); --t-mono: max(7.5px, 0.64vw); --t-tag-cat: max(7.5px, 0.69vw);
		--t-tag-title: max(8.5px, 0.88vw); --t-section: max(11px, 1.6vw); --t-title: max(18px, 2.4vw);
		--header-h: max(34px, 3.6vw); --footer-h: max(28px, 2.6vw);
	}
	body { font-size: max(8px, 0.72vw); }
	.site-nav__list { gap: 2.04vw; }
	.detail__title { font-size: max(24px, 3.1vw); }
	.case__title { font-size: max(22px, 2.2vw); }
	.article__title { font-size: max(26px, 2.8vw); }
}

/* v2.3.3 — soczewka WebGL na krawędziach (HOME, POSTERS, SHOP) */
.lens-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.item__media img.is-gl { opacity: 0; }
.sp-lens .edge-blur { display: none; }

/* ==========================================================================
   v2.3.4 — logo na HOME jak w projekcie, soczewka w ARTICLES, żywsze animacje
   ========================================================================== */

/* Logo (ostrokół) wszędzie w oryginalnej, metalicznej wersji — bez zalewania na czarno/biało. */
.site-header .site-logo__img,
.site-header .custom-logo,
.site-header .site-logo.bw-light .site-logo__img,
.site-header .site-logo.bw-light .custom-logo,
.is-menu-open .site-header .site-logo__img,
.is-menu-open .site-header .custom-logo { filter: none !important; }

/* Żywsze przejścia: podgląd w GRAPHIC DESIGN wjeżdża z lekkim zoomem, BOOKS i miniatury w artykule reagują szybciej. */
.gd__thumb { transition: clip-path 0.55s var(--ease-out); }
.gd__thumb img { transform: scale(1.14); transition: transform 0.9s var(--ease-out); }
.gd__thumb.is-shown img { transform: none; }
.stage--books .item { transition: translate 0.75s var(--ease-out), scale 0.75s var(--ease-out), opacity 0.4s var(--ease); }
.article-map .item__media { transition: transform 0.6s var(--ease-out); }
.stage__field .item { transition: opacity 0.3s var(--ease); }

/* ==========================================================================
   v2.4 — Journal, CLOSE przy linii, warianty druk/online, formularz kontaktowy,
   tekst równo z liniami, wersja mobilna
   ========================================================================== */

/* Tabelka KLIENT / ROK… i rozwijane sekcje: tekst równo z końcami linii;
   w pionie wersaliki są dokładnie w połowie między kreskami (przesunięcie liczy JS dla każdego fontu). */
.facts > div { padding-left: 0; padding-right: 0; }
.facts dt, .facts dd { text-box: normal; line-height: 1.2; }
.accordion__item summary { padding-left: 0; padding-right: 0; gap: 1em; }
.accordion__body { padding-left: 0; padding-right: 0; }
.accordion__label { display: block; }
.accordion__body > :first-child { margin-top: 0; }
.accordion__body p + p { margin-top: 0.8em; }
.accordion__body a { text-decoration: underline; text-underline-offset: 0.18em; }

/* Artykuł: CLOSE przy linii przez środek, podkreśla się kreską jak menu. */
.article__close::after { display: none !important; }
.article__close > span { position: relative; display: inline-block; padding: 6px 0; }
.article__close > span::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: right;
	transition: transform 0.45s var(--ease-out);
}
.article__close:hover > span::after,
.article__close:focus-visible > span::after { transform: scaleX(1); transform-origin: left; }
.split--article .article__close.article__close--fixed { display: none; }
@media (min-width: 901px) {
	.split--article .article__close.article__close--inline { display: none; }
	.split--article .article__close.article__close--fixed {
		position: fixed; top: var(--admin-bar); right: auto; left: calc(50% + max(14px, 1.3vw)); z-index: 810;
		display: flex; align-items: center; height: var(--header-h);
		font-size: var(--t-nav); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink);
	}
	/* Menu na stronie artykułu mieści się w lewej połowie (prawa należy do tekstu i CLOSE). */
	.single-sp_article .site-nav__list { gap: max(10px, 1.55vw); }
}
.article__bar { justify-content: space-between; }

/* Warianty z kreatora: rząd WERSJA (Druk / Online) + rząd WYMIARY (dla druku); cena zmienia się u góry. */
.pills-split { display: grid; gap: max(12px, 1.1vw); }
.pills-group { display: grid; gap: 8px; }
.pills-group__title { font-size: var(--t-tag-cat); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.detail__cart .variations tr.is-split th.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.detail__cart .woocommerce-variation-price { display: none; }
.detail__cart .woocommerce-variation-availability:empty,
.detail__cart .woocommerce-variation-description:empty { display: none; }
.detail__price.is-variation { animation: sp-price-in 0.45s var(--ease-out); }
@keyframes sp-price-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Formularz kontaktowy — jak pola w koszyku / płatności. */
.sp-contact { width: min(100%, 620px); max-width: none !important; margin: 5vh auto 0; text-align: left; }
.sp-contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 0; }
.sp-contact__row { grid-column: 1 / -1; display: grid; gap: 7px; margin: 0 !important; }
.sp-contact__row--half { grid-column: auto; }
.sp-contact label {
	font-family: var(--font-display); font-size: max(11px, var(--t-tag-cat)); line-height: 1.2;
	text-transform: uppercase; letter-spacing: 0.02em;
}
.sp-contact input[type="text"],
.sp-contact input[type="email"],
.sp-contact input[type="tel"],
.sp-contact textarea {
	width: 100%; min-height: 46px; margin: 0; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink);
	font-family: var(--font-mono); font-size: max(14px, var(--t-mono)); line-height: 1.4;
	transition: border-color 0.2s;
	-webkit-appearance: none; appearance: none;
}
.sp-contact textarea { min-height: 170px; resize: vertical; }
.sp-contact input:focus,
.sp-contact textarea:focus { outline: none; border-color: var(--ink); }
.sp-contact__consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.sp-contact__consent input {
	-webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 1px 0 0;
	border: 1px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center;
}
.sp-contact__consent input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.sp-contact__consent label { font-family: var(--font-mono); font-size: max(12px, var(--t-mono)); line-height: 1.4; text-transform: none; letter-spacing: 0; cursor: pointer; }
.sp-contact__consent a { text-decoration: underline; text-underline-offset: 0.18em; }
.sp-contact__submit { width: 100%; justify-content: center; margin-top: 6px; min-height: 46px !important; }
.sp-contact__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-contact__notice { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: max(13px, var(--t-mono)); }
.sp-contact__notice.is-error { border-color: var(--ink); }
.sp-contact__notice p { margin: 0; }
.sp-contact__notice p + p { margin-top: 0.4em; }

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
	/* Większe logo i MENU; w rozwijanym menu mniejsze napisy + linki ze stopki (dolny pasek znika). */
	.site-logo__img { width: 48px !important; }
	.site-header__toggle { font-size: 15px; letter-spacing: 0.03em; padding: 10px 0; }
	.site-nav__list a { font-size: clamp(22px, 6.4vw, 34px); line-height: 1.16; }
	.site-nav__extra .footer-links { font-size: 13px; gap: 14px; }
	.site-nav__extra .footer-links__list,
	.site-nav__extra .footer-links__social { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
	.site-footer { display: none !important; }
	body, .sp-stage { padding-bottom: 0; }

	/* Karta produktu: mniejsza galeria u góry, żeby wersje i „Dodaj do koszyka” mieściły się na ekranie. */
	.detail__media { padding-top: 1vh; }
	.detail__shot img { max-height: 36svh; }
	.detail__dots { padding-top: 8px; }
	.detail__panel { padding-top: 3vh; }
	.detail__title { font-size: clamp(28px, 8vw, 40px); }

	/* GRAPHIC DESIGN: lista u góry, bez napisu; miniatura projektu na wierzchu, na środku ekranu. */
	.stage--gd .stage__title { display: none; }
	.stage--gd .gd__viewport { top: calc(var(--header-h) + 1vh); bottom: 0; width: 100%; }
	.stage--gd .gd__preview {
		z-index: 6; left: 50%; right: auto; top: 50%;
		width: 54vw; height: 36svh; transform: translate(-50%, -46%);
	}

	/* JOURNAL (artykuł): tekst na górze, slider z artykułami na dole. */
	.split--article .split__left { order: 2; }
	.split--article .article-map { border-bottom: 0; border-top: 1px solid var(--line); }
	.split--article .split__column.article__content { padding-top: calc(var(--header-h) + 2vh); }

	/* Formularz kontaktowy: pola jedno pod drugim, 16 px (iPhone nie powiększa ekranu przy wpisywaniu). */
	.sp-contact__row--half { grid-column: 1 / -1; }
	.sp-contact input[type="text"], .sp-contact input[type="email"], .sp-contact input[type="tel"], .sp-contact textarea { font-size: 16px; }
}

/* Tabelka jak w Canvie: bez kreski nad pierwszym wierszem, wyższe wiersze, tekst odrobinę odsunięty od końców linii. */
.case__facts { border-top: 0; margin-top: 1.4em; }
.facts > div { min-height: 5em; padding: 0.6em 0.35em; }

/* GRAPHIC DESIGN: lista marek krojem nagłówków, jak w Canvie. */
.gd__link { font-family: var(--font-display); }

/* =========================================================================
   v2.4.4 — KLIENCI z odwróceniem kolorów, informacja RODO i zgoda w zamówieniu
   ========================================================================= */

/* KLIENCI (strona HATOR STUDIO): napis NAD logotypami, odwraca kolory jak napis HATOR STUDIO.
   Warstwa „difference” odwraca, warstwa „saturation” zostawia tylko czerń i biel. */
.about__label--invert { z-index: 5; color: #fff; mix-blend-mode: difference; }
.about__label--invert-sat { z-index: 6; color: #000; mix-blend-mode: saturation; }
.about__band--static .about__label--invert,
html:not(.js) .about__label--invert { color: var(--ink); mix-blend-mode: normal; }
.about__band--static .about__label--invert-sat,
html:not(.js) .about__label--invert-sat { display: none; }

/* Zamówienie: informacja o administratorze danych pod formularzem. */
.sp-checkout-privacy {
	max-width: 62ch;
	margin: 3em 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}
.sp-checkout-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* „Zamówienie otrzymane” / Moje konto: potwierdzenie zgody na treści cyfrowe. */
.sp-consent-note { margin: 2em 0; font-size: 13px; }
.sp-consent-note p { margin: 0.4em 0; }
