/*
Theme Name: Kodak Express Łomża
Template: twentytwentyfive
Description: Motyw potomny Twenty Twenty-Five dla Kodak Express Łomża — jasny, fotograficzny, z akcentem żółci Kodak.
Version: 1.0.0
Text Domain: kodak-express-lomza
*/

:root {
	--kx-yellow: #FAB617;
	--kx-yellow-soft: #FDF0CC;
	--kx-ink: #1B1A18;
	--kx-paper: #FAF8F4;
	--kx-paper-2: #F1ECE3;
	--kx-white: #FFFFFF;
	--kx-line: #E3DDD2;
	--kx-muted: #5E5A53;
	--kx-radius: 6px;
	--kx-section: clamp(4rem, 9vw, 8rem);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Fokus */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
	outline: 3px solid var(--kx-ink);
	outline-offset: 3px;
	border-radius: 3px;
}
.kx-footer :where(a, button, summary):focus-visible { outline-color: var(--kx-yellow); }
/* Bez ramki po kliknięciu myszą lub palcem (klawiatura nadal ją widzi) */
* { -webkit-tap-highlight-color: transparent; }
:where(a, button, summary, [tabindex]):focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.wp-block-navigation :where(a, button):focus { outline: none !important; }
.wp-block-navigation :where(a, button):focus-visible { outline: none !important; box-shadow: 0 0 0 3px var(--kx-yellow) !important; border-radius: 4px; }

/* ---------- Animacje ---------- */
@keyframes kx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kx-print { from { opacity: 0; transform: translateY(24px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* Hero przy wejściu na stronę */
.kx-hero .wp-block-column:first-child > * { animation: kx-up .8s cubic-bezier(.2,.7,.2,1) both; }
.kx-hero .wp-block-column:first-child > :nth-child(2) { animation-delay: .08s; }
.kx-hero .wp-block-column:first-child > :nth-child(3) { animation-delay: .16s; }
.kx-hero .wp-block-column:first-child > :nth-child(4) { animation-delay: .24s; }
.kx-hero .wp-block-column:first-child > :nth-child(5) { animation-delay: .32s; }
.kx-hero__visual { animation: kx-print 1s .15s cubic-bezier(.2,.7,.2,1) both; }
.kx-hl { background-size: 0% 100%; background-repeat: no-repeat; animation: kx-hl 0.9s .45s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes kx-hl { to { background-size: 100% 100%; } }

/* Sekcje pojawiające się przy przewijaniu */
.kx-js .kx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.kx-js .kx-reveal.is-in { opacity: 1; transform: none; }

/* Zdjęcia: zanikanie przy ładowaniu */
.kx-js img.kx-fade { opacity: 0; transition: opacity .7s ease; }
.kx-js img.kx-fade.is-loaded { opacity: 1; }
.kx-ph { animation: kx-fade .9s ease both; }

/* Menu: podkreślenie wysuwane od lewej */
.kx-nav .wp-block-navigation-item__content { position: relative; border-bottom: 0 !important; }
.kx-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--kx-yellow);
	transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.kx-nav .wp-block-navigation-item__content:hover::after,
.kx-nav .current-menu-item > .wp-block-navigation-item__content::after,
.kx-nav .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.kx-call { transition: background-color .2s, transform .2s; }
.kx-call:hover { transform: translateY(-1px); }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Menu mobilne: płynne otwarcie i kolejno wjeżdżające pozycje */
.kx-nav .wp-block-navigation__responsive-container.is-menu-open { animation: kx-fade .25s ease both !important; }
.kx-nav .is-menu-open .wp-block-navigation-item { animation: kx-up .45s cubic-bezier(.2,.7,.2,1) both; }
.kx-nav .is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: .05s; }
.kx-nav .is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: .1s; }
.kx-nav .is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: .15s; }
.kx-nav .is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: .2s; }
.kx-nav .is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: .25s; }
.kx-nav .is-menu-open .wp-block-navigation-item__content { border-bottom: 0 !important; padding-bottom: .25rem; }
.kx-nav .wp-block-navigation__responsive-container-open { transition: background-color .2s, border-color .2s; }
.kx-nav .wp-block-navigation__responsive-container-open:hover { background: var(--kx-yellow); border-color: var(--kx-yellow); }

/* Cennik: płynne rozwijanie */
.kx-pc[open] > .kx-pt, .kx-pc[open] > .kx-pc__desc { animation: kx-up .4s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
	.kx-js .kx-reveal, .kx-js img.kx-fade { opacity: 1 !important; transform: none !important; }
	.kx-hl { background-size: 100% 100%; }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Typografia */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.wp-site-blocks a:not(.wp-element-button):not(.kx-call) { text-underline-offset: .2em; text-decoration-thickness: 1px; }

.kx-eyebrow {
	display: inline-flex; align-items: center; gap: .75rem;
	font-size: .78rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--kx-muted); margin: 0 0 1.25rem !important;
}
.kx-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--kx-yellow); border-radius: 2px; flex: none; }

.kx-h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem) !important; line-height: 1.02 !important; letter-spacing: -.04em !important; margin: 0 0 1.5rem !important; }
.kx-h1--page { font-size: clamp(2.3rem, 5.2vw, 4.25rem) !important; }
.kx-h2 { font-size: clamp(2rem, 4.2vw, 3.3rem) !important; line-height: 1.06 !important; letter-spacing: -.035em !important; margin: 0 0 1.25rem !important; }
.kx-hl { position: relative; white-space: nowrap; background: linear-gradient(transparent 74%, var(--kx-yellow) 74%, var(--kx-yellow) 90%, transparent 90%); padding: 0 .06em; }
.kx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important; line-height: 1.55; color: var(--kx-muted); max-width: 38rem; }
.kx-muted { color: var(--kx-muted); }
.kx-narrow { max-width: 26rem; }
.kx-quote { font-style: italic; color: var(--kx-muted); border-left: 3px solid var(--kx-yellow); padding-left: 1rem; margin-top: 2.25rem !important; max-width: 30rem; }

/* Przyciski */
.wp-block-button__link { box-sizing: border-box; transition: background-color .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.wp-block-button__link:hover { background: #3a3733; color: var(--kx-paper); }
.kx-btn-yellow .wp-block-button__link { background: var(--kx-yellow); color: var(--kx-ink); }
.kx-btn-yellow .wp-block-button__link:hover { background: #E9A400; color: var(--kx-ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--kx-ink); border: 1.5px solid var(--kx-ink); padding: calc(.95rem - 1.5px) calc(1.6rem - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--kx-ink); color: var(--kx-paper); }
.wp-block-buttons { gap: .75rem; }
.kx-actions { gap: .75rem !important; margin-top: 2rem !important; align-items: center; }
.kx-actions > * { margin: 0 !important; }
.kx-actions p:empty { display: none; }

.kx-link { font-weight: 700; margin-top: auto !important; }
.kx-link a { text-decoration: none !important; border-bottom: 2px solid var(--kx-yellow); padding-bottom: 2px; transition: border-color .2s; }
.kx-link a::after { content: " →"; }
.kx-link a:hover { border-color: var(--kx-ink); }

/* ---------- Nagłówek ---------- */
.wp-site-blocks > :has(> .kx-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > :has(> .kx-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > :has(> .kx-header) { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > :has(> .kx-header) { top: 0; } }
.kx-header {
	background: var(--kx-paper);
	border-bottom: 1px solid var(--kx-line);
	padding-top: .9rem !important; padding-bottom: .9rem !important;
}
.admin-bar .kx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kx-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .kx-header { top: 0; } }
.kx-header__bar { gap: 1rem; }
.kx-header__right { gap: clamp(.75rem, 2vw, 1.75rem) !important; }
.kx-header__right p { margin: 0; }
.kx-brand { gap: .75rem; }
.kx-brand .wp-block-site-logo img { max-height: 48px; width: auto; }
.kx-brand:has(.wp-block-site-logo img) .kx-brand__text,
.kx-footer .wp-block-column:has(.wp-block-site-logo img) .kx-brand__text { display: none; }
.kx-logo { margin: 0 !important; line-height: 0; }
.kx-logo a { display: inline-block; border-radius: 4px; }
.kx-logo img { width: clamp(132px, 15vw, 172px) !important; height: auto !important; display: block; opacity: 1 !important; }
.kx-brand { align-items: center; gap: .85rem !important; }
.kx-logo__city {
	margin: 0 !important; padding-left: .85rem; border-left: 2px solid var(--kx-yellow);
	font-size: .72rem !important; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--kx-muted); line-height: 1.6;
}
@media (max-width: 380px) { .kx-logo__city { display: none; } }
.kx-logo--footer img { width: 190px !important; }
.kx-brand__text { margin: 0; line-height: 1; }
.kx-brand__text a { text-decoration: none !important; display: inline-flex; flex-direction: column; gap: .3rem; color: inherit; }
.kx-brand__text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.kx-brand__text strong::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--kx-yellow); flex: none; }
.kx-brand__text span { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--kx-muted); padding-left: calc(14px + .5rem); }

.kx-nav { font-size: .95rem; font-weight: 600; }
.kx-nav .wp-block-navigation__container { gap: clamp(1rem, 2vw, 1.9rem); }
.kx-nav .wp-block-navigation-item__content { text-decoration: none !important; padding: .35rem 0; border-bottom: 2px solid transparent; }
.kx-nav .wp-block-navigation-item__content:hover,
.kx-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--kx-yellow); }
.kx-nav .wp-block-navigation__responsive-container-open { width: 48px; height: 48px; align-items: center; justify-content: center; border: 1.5px solid var(--kx-line); border-radius: 999px; }
@media (max-width: 599px) { .kx-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; } }
.kx-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--kx-paper) !important; color: var(--kx-ink) !important; padding: 1.5rem; }
.kx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; font-size: 1.5rem; font-weight: 700; }
.kx-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.kx-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; padding-top: 1rem; }
.kx-nav .is-menu-open .wp-block-navigation-item__content { border-bottom: 3px solid var(--kx-yellow); }
.kx-nav .wp-block-navigation__responsive-container-close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }

.kx-call {
	display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
	background: var(--kx-yellow); color: var(--kx-ink) !important; text-decoration: none !important;
	font-weight: 700; font-size: .95rem; padding: .7rem 1.15rem; min-height: 46px; border-radius: 999px;
	transition: background-color .2s;
}
.kx-call:hover { background: #E9A400; }
@media (max-width: 480px) {
	.kx-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
	.kx-call { padding: 0; width: 48px; justify-content: center; }
	.kx-brand__text strong { font-size: 1rem; }
}

/* ---------- Sekcje ---------- */
.kx-main { padding: 0 !important; margin: 0 !important; }
.kx-main > .wp-block-post-content > :first-child { margin-top: 0; }
.kx-main > .wp-block-post-content.alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.kx-main > .wp-block-post-content > .alignfull:last-child { margin-bottom: 0; }
.kx-section { padding-top: var(--kx-section) !important; padding-bottom: var(--kx-section) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.kx-section + .kx-section { border-top: 1px solid var(--kx-line); }
.kx-section--tint { background: var(--kx-paper-2); border-top: 0 !important; }
.kx-section--tint + .kx-section { border-top: 0; }
.kx-section--white { background: var(--kx-white); }
.kx-section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; max-width: 46rem; }
.kx-section__head > :last-child { margin-bottom: 0 !important; }
.kx-section__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }

/* ---------- Hero ---------- */
.kx-hero { padding-top: clamp(3rem, 7vw, 6.5rem) !important; padding-bottom: clamp(4rem, 8vw, 7.5rem) !important; overflow: hidden; }
.kx-hero__grid { gap: clamp(2.5rem, 6vw, 6rem) !important; align-items: center !important; }
.kx-hero__visual { position: relative; padding: 0 0 12% 10%; }
.kx-hero__visual::before {
	content: ""; position: absolute; left: 0; bottom: 4%; width: 46%; aspect-ratio: 4/5;
	background:
		radial-gradient(ellipse 18% 12% at 50% 29%, #3b2e27 0 97%, transparent 100%),
		radial-gradient(ellipse 17% 21% at 50% 41%, #c99f84 0 97%, transparent 100%),
		radial-gradient(ellipse 7% 9% at 50% 64%, #b98f75 0 96%, transparent 100%),
		radial-gradient(ellipse 44% 30% at 50% 100%, #2f3a48 0 97%, transparent 100%),
		linear-gradient(180deg, #ecebe7, #d6d3cd);
	border: 10px solid var(--kx-white); box-shadow: 0 18px 40px -22px rgba(27,26,24,.45);
	transform: rotate(-5deg); z-index: 2;
}
.kx-hero__visual::after {
	content: ""; position: absolute; right: -4%; bottom: 0; width: 62%; height: 54px; z-index: 3;
	background:
		repeating-linear-gradient(90deg, transparent 0 7px, #f1d7a5 7px 15px, transparent 15px 22px) 0 5px / 100% 7px no-repeat,
		repeating-linear-gradient(90deg, transparent 0 7px, #f1d7a5 7px 15px, transparent 15px 22px) 0 calc(100% - 5px) / 100% 7px no-repeat,
		linear-gradient(90deg, #7c3f18, #b8692c 24%, #4b2510 24.5% 26%, #a9602e 26.5% 49%, #4b2510 49.5% 51%, #b06b36 51.5% 74%, #4b2510 74.5% 76%, #9a5426 76.5%) 0 50% / 100% 28px no-repeat,
		#2a211a;
	transform: rotate(3deg); border-radius: 2px;
}
.kx-hero__visual .kx-ph { position: relative; z-index: 1; align-items: flex-start; justify-content: flex-end; }
.kx-hero__visual::before { width: 36%; bottom: 7%; }
.kx-hero__visual { max-width: 560px; margin-left: auto !important; }

/* ---------- Zdjęcia zastępcze (do podmiany) ---------- */
.kx-ph {
	position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--kx-radius);
	background-size: cover; background-position: center; background-color: #d9d3c8;
	display: flex; align-items: flex-end; margin: 0 !important;
}
.kx-ph--portrait { aspect-ratio: 4 / 5; }
.kx-ph--square { aspect-ratio: 1; }
.kx-ph--wide { aspect-ratio: 16 / 10; }
.kx-ph--print { border: clamp(10px, 1.4vw, 18px) solid var(--kx-white); border-bottom-width: clamp(28px, 4vw, 54px); border-radius: 2px; box-shadow: 0 30px 60px -36px rgba(27,26,24,.5); }
.kx-ph__label {
	position: relative; margin: .75rem !important; padding: .3rem .6rem; border-radius: 3px;
	background: rgba(250,248,244,.9); color: var(--kx-muted); font-size: .72rem !important; font-weight: 600; letter-spacing: .02em; line-height: 1.3;
}
.kx-ph__label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--kx-yellow); margin-right: .45rem; vertical-align: 1px; }
.kx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sceny: zachód słońca / krajobraz */
.kx-ph--a { background-image:
	radial-gradient(130% 55% at 25% 108%, #3d3a2f 0 45%, transparent 46%),
	radial-gradient(90% 45% at 85% 104%, #5b533f 0 48%, transparent 49%),
	radial-gradient(120% 40% at 60% 100%, #7d6e52 0 50%, transparent 51%),
	radial-gradient(circle at 68% 40%, #fff2cf 0 6%, rgba(255,226,170,.5) 6.5% 14%, transparent 22%),
	linear-gradient(180deg, #e3ae80 0%, #efcfa3 46%, #d7b38b 70%, #b18d6b 100%); }
/* Portret (dokumentowy) */
.kx-ph--b { background-image:
	radial-gradient(ellipse 19% 12% at 50% 29%, #3b2e27 0 97%, transparent 100%),
	radial-gradient(ellipse 17% 21% at 50% 41%, #c99f84 0 97%, transparent 100%),
	radial-gradient(ellipse 7% 10% at 50% 64%, #b98f75 0 96%, transparent 100%),
	radial-gradient(ellipse 44% 31% at 50% 101%, #2f3a48 0 97%, transparent 100%),
	linear-gradient(180deg, #efeeea, #d8d5cf); }
/* Morze */
.kx-ph--c { background:
	radial-gradient(circle at 24% 38%, #fff5dc 0 4.5%, transparent 5%),
	linear-gradient(90deg, transparent 21%, rgba(255,240,205,.5) 21% 27%, transparent 27%) 0 100% / 100% 44% no-repeat,
	linear-gradient(180deg, #dbe5e6 0%, #bfd0d4 55%, #6f8f9b 55.4%, #4a6874 100%); }
/* Negatyw */
.kx-ph--d { background:
	repeating-linear-gradient(90deg, transparent 0 9px, #edd09a 9px 19px, transparent 19px 28px) 0 7% / 100% 6% no-repeat,
	repeating-linear-gradient(90deg, transparent 0 9px, #edd09a 9px 19px, transparent 19px 28px) 0 93% / 100% 6% no-repeat,
	linear-gradient(90deg, #8a4a1f, #bc6d2f 30%, #3e1f0d 30.5% 33%, #a95f2c 33.5% 64%, #3e1f0d 64.5% 67%, #b26c37 67.5%) 0 50% / 100% 66% no-repeat,
	#231c16; }
/* Odbitki na stole */
.kx-ph--e { background:
	linear-gradient(135deg, #7c998b, #cbb68b) 21.9% 26.8% / 38% 34% no-repeat,
	linear-gradient(#fbf9f4, #fbf9f4) 20% 27% / 42% 42% no-repeat,
	linear-gradient(160deg, #d49a69, #87594a) 74.4% 60.2% / 38% 34% no-repeat,
	linear-gradient(#fbf9f4, #fbf9f4) 76% 65% / 42% 42% no-repeat,
	linear-gradient(200deg, #9bb0c0, #5e7383) 52% 88% / 26% 22% no-repeat,
	linear-gradient(#fbf9f4, #fbf9f4) 51% 90% / 30% 30% no-repeat,
	linear-gradient(160deg, #c8b298, #b39a7d); }
/* Studio */
.kx-ph--f { background-image:
	radial-gradient(ellipse 60% 18% at 50% 92%, rgba(0,0,0,.18), transparent 70%),
	radial-gradient(circle at 50% 34%, #ffffff 0 8%, #efedea 28%, #c7c3bc 68%, #96928b 100%); }
/* Ciepłe wnętrze / prezenty */
.kx-ph--g { background-image:
	radial-gradient(ellipse 15% 20% at 42% 60%, #f6f2ea 0 96%, transparent 100%),
	radial-gradient(ellipse 6% 9% at 55% 58%, transparent 0 55%, #f6f2ea 58% 96%, transparent 100%),
	radial-gradient(ellipse 13% 8% at 42% 52%, #e8a35a 0 96%, transparent 100%),
	linear-gradient(180deg, #c98f6a 0 62%, #8a5d45 62.4% 100%); }
/* Las / zieleń */
.kx-ph--h { background-image:
	radial-gradient(60% 50% at 20% 100%, #33452f 0 60%, transparent 61%),
	radial-gradient(55% 60% at 80% 100%, #3f5538 0 60%, transparent 61%),
	radial-gradient(70% 40% at 50% 100%, #5f7650 0 60%, transparent 61%),
	linear-gradient(180deg, #d5dccb, #a9b796); }

/* ---------- Usługi ---------- */
.kx-services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)) !important; gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem) !important; }
.kx-card { display: flex; flex-direction: column; gap: 0; }
.kx-card > * { margin-block: 0 !important; }
.kx-card .kx-ph { margin-bottom: 1.4rem !important; transition: transform .35s ease; }
.kx-card:hover .kx-ph { transform: translateY(-4px); }
.kx-card__num { font-size: .78rem !important; font-weight: 700; letter-spacing: .14em; color: var(--kx-muted); margin-bottom: .5rem !important; }
.kx-card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem) !important; margin-bottom: .6rem !important; }
.kx-card p:not(.kx-card__num):not(.kx-link) { color: var(--kx-muted); margin-bottom: 1.1rem !important; }

/* ---------- Sekcja dokumentów / układ split ---------- */
.kx-split { gap: clamp(2.5rem, 6vw, 6rem) !important; align-items: center !important; }
.kx-split--reverse { flex-direction: row-reverse; }
@media (max-width: 781px) { .kx-split--reverse { flex-direction: column; } }
.kx-checks { list-style: none; padding: 0 !important; margin: 1.75rem 0 0 !important; display: grid; gap: .65rem; }
.kx-checks li { position: relative; padding-left: 2rem; }
.kx-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--kx-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231B1A18' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* ---------- Cennik ---------- */
.kx-pricelist { border-top: 1.5px solid var(--kx-ink); }
.kx-pc { border-bottom: 1px solid var(--kx-line); }
.kx-pc > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem;
	padding: 1.35rem .25rem; min-height: 48px;
}
.kx-pc > summary::-webkit-details-marker { display: none; }
.kx-pc__name { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; flex: 1; }
.kx-pc__count { font-size: .85rem; color: var(--kx-muted); white-space: nowrap; }
.kx-pc > summary::after {
	content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--kx-line);
	background: linear-gradient(var(--kx-ink), var(--kx-ink)) center / 12px 2px no-repeat, linear-gradient(var(--kx-ink), var(--kx-ink)) center / 2px 12px no-repeat;
	transition: transform .25s, background-color .2s;
}
.kx-pc[open] > summary::after { background: var(--kx-yellow) linear-gradient(var(--kx-ink), var(--kx-ink)) center / 12px 2px no-repeat; border-color: var(--kx-yellow); }
.kx-pc > summary:hover .kx-pc__name { text-decoration: underline; text-decoration-color: var(--kx-yellow); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.kx-pc__desc { color: var(--kx-muted); margin: 0 0 1rem; }
.kx-pt { width: 100%; border-collapse: collapse; margin: 0 0 1.75rem; font-size: 1rem; }
.kx-pt th, .kx-pt td { text-align: left; padding: .95rem .75rem; vertical-align: top; border: 0; }
.kx-pt thead th { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kx-muted); border-bottom: 1px solid var(--kx-line); padding-top: 0; }
.kx-pt tbody tr { border-bottom: 1px solid var(--kx-line); }
.kx-pt tbody tr:last-child { border-bottom: 0; }
.kx-pt__name { font-weight: 650; }
.kx-pt__note { display: block; font-weight: 400; font-size: .88rem; color: var(--kx-muted); margin-top: .2rem; }
.kx-pt__format { color: var(--kx-muted); }
.kx-pt .kx-pt__price { text-align: right; white-space: nowrap; }
.kx-pt tr.is-popular { background: linear-gradient(90deg, var(--kx-yellow-soft), transparent 75%); }
.kx-price { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.08rem; }
.kx-price small, .kx-tiers small { font-weight: 500; color: var(--kx-muted); font-size: .82em; }
.kx-price--ind { font-weight: 600; font-size: .95rem; color: var(--kx-muted); }
.kx-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.kx-tiers li { display: flex; justify-content: flex-end; gap: .75rem; font-variant-numeric: tabular-nums; }
.kx-tiers span { color: var(--kx-muted); font-size: .9rem; }
.kx-badge { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--kx-yellow); color: var(--kx-ink); padding: .22rem .5rem; border-radius: 3px; margin-left: .35rem; line-height: 1.2; }
.kx-badge--example { background: #fde2e1; color: #8a1f1d; display: table; margin: .35rem 0 0 auto; }
.kx-badge--draft { background: var(--kx-paper-2); color: var(--kx-muted); border: 1px solid var(--kx-line); }
.kx-ask { font-weight: 700; font-size: .95rem; text-decoration: none !important; border-bottom: 2px solid var(--kx-yellow); }
.kx-pc__updated { font-size: .88rem; color: var(--kx-muted); margin-top: 1.25rem; }
.kx-notice { background: var(--kx-white); border: 1px solid var(--kx-line); border-left: 4px solid var(--kx-yellow); padding: 1rem 1.25rem; border-radius: var(--kx-radius); font-size: .95rem; margin: 0 0 1.75rem; }
.kx-notice--empty { padding: 1.5rem; }
.kx-notice--empty p { margin-top: 0; }

.kx-pop { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.kx-pop__item { background: var(--kx-white); border-radius: var(--kx-radius); padding: 1.4rem 1.4rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; border-top: 3px solid var(--kx-yellow); }
.kx-pop__item .kx-badge { margin: 0 0 .6rem; align-self: flex-start; }
.kx-pop__name { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.kx-pop__format { color: var(--kx-muted); font-size: .9rem; }
.kx-pop__price { margin-top: auto; padding-top: .9rem; }
.kx-pop__price .kx-price { font-size: 1.5rem; letter-spacing: -.02em; }
.kx-pop__price .kx-tiers li { justify-content: space-between; }
.kx-pop__price .kx-badge--example { margin: .4rem 0 0; }

@media (max-width: 640px) {
	.kx-pt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
	.kx-pt tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .9rem .25rem; }
	.kx-pt th, .kx-pt td { padding: 0; }
	.kx-pt__name { grid-column: 1; grid-row: 1; }
	.kx-pt__format { grid-column: 1; grid-row: 2; font-size: .92rem; margin-top: .15rem; }
	.kx-pt .kx-pt__price { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
	.kx-pt tr.is-popular { background: linear-gradient(90deg, var(--kx-yellow-soft), transparent); }
	.kx-tiers li { flex-direction: column; align-items: flex-end; gap: 0; }
	.kx-pc__count { display: none; }
}

/* ---------- Dlaczego warto ---------- */
.kx-why { gap: 0 !important; border-top: 1.5px solid var(--kx-ink); }
.kx-why__item { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--kx-line); }
.kx-why__item > * { margin-block: 0 !important; }
.kx-why__item h3 { font-size: 1.2rem !important; margin-bottom: .55rem !important; display: flex; gap: .75rem; align-items: baseline; }
.kx-why__item h3::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--kx-yellow); border-radius: 2px; transform: translateY(-2px); }
.kx-why__item p { color: var(--kx-muted); }

/* ---------- Galeria ---------- */
.kx-gallery { display: grid !important; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem) !important; }
.kx-gallery > * { margin: 0 !important; grid-column: span 4; aspect-ratio: auto; min-height: 15rem; height: 100%; }
.kx-gallery > .kx-g-6 { grid-column: span 6; }
.kx-gallery > .kx-g-8 { grid-column: span 8; }
.kx-gallery > .kx-g-tall { grid-row: span 2; }
@media (max-width: 781px) {
	.kx-gallery { grid-template-columns: repeat(2, 1fr); }
	.kx-gallery > *, .kx-gallery > .kx-g-6, .kx-gallery > .kx-g-8 { grid-column: span 1; min-height: 11rem; }
	.kx-gallery > .kx-g-wide-m { grid-column: span 2; }
	.kx-gallery > .kx-g-tall { grid-row: span 2; }
}
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--kx-radius); }

/* ---------- Kontakt ---------- */
.kx-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.kx-contact__item h3 { font-size: .76rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--kx-muted); font-weight: 700; margin: 0 0 .55rem !important; }
.kx-contact__item p { margin: 0; font-size: 1.08rem; }
.kx-contact__big { font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important; font-weight: 750; letter-spacing: -.02em; }
.kx-contact__big a, .kx-contact__item a { text-decoration-color: var(--kx-yellow) !important; text-decoration-thickness: 2px !important; }
.kx-contact__info, .kx-contact__actions { grid-column: 1 / -1; margin: 0 !important; }
.kx-contact__info { color: var(--kx-muted); max-width: 36rem; }
.kx-contact__actions, .kx-sc-buttons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.kx-contact__actions .wp-block-button, .kx-sc-buttons .wp-block-button { margin: 0; }
.kx-hours { margin: 0; display: grid; gap: .3rem; }
.kx-hours > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--kx-line); padding-bottom: .3rem; }
.kx-hours dt { font-weight: 600; }
.kx-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.kx-hours__note { font-size: .9rem; color: var(--kx-muted); margin-top: .6rem !important; }
.kx-todo { display: inline-block; background: var(--kx-yellow-soft); color: #6b4d00; border: 1px dashed #d79c00; border-radius: 3px; padding: .05rem .4rem; font-size: .9em; font-weight: 600; }
@media (max-width: 600px) { .kx-contact { grid-template-columns: 1fr; gap: 1.6rem; } }

.kx-cta { background: var(--kx-ink); color: var(--kx-paper); border-radius: 10px; padding: clamp(2rem, 5vw, 3.5rem) !important; }
.kx-cta h2, .kx-cta p { color: var(--kx-paper); }
.kx-cta p { opacity: .85; }
.kx-cta .wp-block-button.is-style-outline .wp-block-button__link { color: var(--kx-paper); border-color: var(--kx-paper); }
.kx-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--kx-paper); color: var(--kx-ink); }
.kx-cta :focus-visible { outline-color: var(--kx-yellow) !important; }

/* FAQ */
.kx-faq .wp-block-details { border-bottom: 1px solid var(--kx-line); padding: 1.1rem 0; margin: 0 !important; }
.kx-faq .wp-block-details:first-child { border-top: 1.5px solid var(--kx-ink); }
.kx-faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.kx-faq .wp-block-details > :not(summary) { color: var(--kx-muted); margin-top: .75rem; }

/* Nagłówek podstron */
.kx-pagehead { padding-top: clamp(3rem, 7vw, 6rem) !important; padding-bottom: clamp(2.5rem, 5vw, 4rem) !important; border-bottom: 1px solid var(--kx-line); }
.kx-pagehead + .kx-section { border-top: 0; }
.kx-breadcrumb { font-size: .88rem !important; color: var(--kx-muted); margin-bottom: 1.5rem !important; }
.kx-breadcrumb a { color: inherit; }

/* Podstrona oferty */
.kx-offer + .kx-offer { margin-top: clamp(4rem, 8vw, 7rem) !important; }
.kx-offer h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem) !important; margin: 0 0 1rem !important; }

/* ---------- Stopka ---------- */
.wp-site-blocks > :has(> .kx-footer), .wp-site-blocks > .kx-main { margin-top: 0 !important; }
.kx-footer__menu li, .kx-foot-contact li { margin: 0 !important; }
.kx-footer { background: var(--kx-ink); color: #E9E5DD; padding-top: clamp(3.5rem, 7vw, 5.5rem) !important; padding-bottom: 2rem !important; margin-top: 0 !important; border-top: 4px solid var(--kx-yellow); font-size: .98rem; }
.kx-footer a { color: #fff; }
.kx-footer a:hover { color: var(--kx-yellow); }
.kx-footer .kx-brand__text span { color: #BDB7AC; }
.kx-footer__lead { color: #BDB7AC; max-width: 22rem; margin-top: 1.25rem !important; }
.kx-footer__title { font-size: .76rem !important; letter-spacing: .16em; text-transform: uppercase; color: #BDB7AC !important; margin: 0 0 1rem !important; font-weight: 700; }
.kx-footer__menu, .kx-foot-contact { list-style: none; padding: 0 !important; margin: 0 0 1rem !important; display: grid; gap: .5rem; }
.kx-footer__menu a { text-decoration: none !important; }
.kx-foot-address { margin: 0 0 1rem !important; color: #E9E5DD; }
.kx-foot-more { font-size: .95rem; }
.kx-footer .kx-link a { color: #fff; }
.kx-footer .kx-hours > div { border-bottom-color: #3a3733; }
.kx-footer .kx-hours { max-width: 20rem; font-size: .92rem; }
.kx-footer .kx-todo { background: transparent; color: var(--kx-yellow); border-color: #6b5a2a; }
.kx-footer__bottom { border-top: 1px solid #3a3733; margin-top: 3rem !important; padding-top: 1.5rem; }
.kx-legal { font-size: .84rem; color: #A39D92; margin: 0; }
.kx-legal a { color: #E9E5DD; }

/* ---------- Pasek kontaktu na telefonie ---------- */
.kx-mobilebar { display: none; }
@media (max-width: 781px) {
	.kx-mobilebar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .5rem;
		padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--kx-paper); border-top: 1px solid var(--kx-line);
	}
	.kx-mobilebar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--kx-ink); border: 1.5px solid var(--kx-line); background: var(--kx-white); }
	.kx-mobilebar a.kx-mobilebar__call { flex: 1.4; background: var(--kx-yellow); border-color: var(--kx-yellow); }
	body { padding-bottom: 72px; }
	.kx-header__right .kx-call { display: none; }
}
