/*
Theme Name: WK Vi-Bausystem
Theme URI: https://wk-digital.pl/
Author: WK Digital
Description: Eigenes, schlankes Theme für Vi-Bausystem GmbH. Ohne Page-Builder, ohne externe Schriften, ohne Tracking.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: wk-vibausystem
*/

/* ==========================================================================
   1. Tokeny
   ========================================================================== */

:root {
	--ink:        #13171c;
	--ink-2:      #39424e;
	--muted:      #69737f;
	--line:       #e3e7ec;
	--line-soft:  #eef1f4;
	--bg:         #ffffff;
	--bg-soft:    #f6f8fa;
	--bg-dark:    #15191f;

	--brand:      #b0842f;
	--brand-2:    #956d23;
	--brand-soft: #f7f1e4;

	--maxw:       1420px;
	--maxw-prose: 74ch;
	--gutter:     clamp(1.15rem, 3.2vw, 3.5rem);

	--r-sm: 6px;
	--r:    12px;
	--r-lg: 20px;

	--sh-1: 0 1px 2px rgba(19, 23, 28, .06), 0 2px 8px rgba(19, 23, 28, .04);
	--sh-2: 0 4px 12px rgba(19, 23, 28, .08), 0 12px 32px rgba(19, 23, 28, .07);
	--sh-3: 0 10px 24px rgba(19, 23, 28, .10), 0 24px 60px rgba(19, 23, 28, .10);

	--ease: cubic-bezier(.22, .61, .36, 1);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
	        Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	--header-h: 84px;
}

/* ==========================================================================
   2. Podstawy
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font-family: var(--font);
	font-size: clamp(1.0625rem, 1rem + .28vw, 1.1875rem);
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.08;
	letter-spacing: -.033em;
	margin: 0 0 .55em;
	font-weight: 800;
	text-wrap: balance;
}

h1 { font-size: clamp(2.45rem, 1.5rem + 4.1vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3.1rem); }
h3 { font-size: clamp(1.22rem, 1.1rem + .62vw, 1.65rem); line-height: 1.2; letter-spacing: -.02em; }
h4 { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
	border-radius: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--ink);
	color: #fff;
	padding: .8rem 1.2rem;
	border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. Układ
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 2rem + 7vw, 9rem); }

/* szeroki wariant – galerie i kafle oddychaja na duzych ekranach */
.wrap--wide { max-width: 1760px; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.section__head { max-width: 58ch; margin-bottom: clamp(2.5rem, 1.2rem + 3.5vw, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--brand-2);
	margin-bottom: 1.1rem;
}
.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--brand);
	flex-shrink: 0;
}
.section__head--center .eyebrow::before { display: none; }

.lead {
	font-size: clamp(1.13rem, 1.02rem + .5vw, 1.4rem);
	color: var(--muted);
	line-height: 1.6;
	font-weight: 400;
}

/* ==========================================================================
   4. Nagłówek
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
	border-bottom-color: var(--line);
	box-shadow: var(--sh-1);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	text-decoration: none;
	color: var(--ink);
	flex-shrink: 0;
}
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }

/* Logo klienta w naglowku. Wysokosc wyznacza rozmiar, szerokosc idzie sama. */
.brand__logo {
	height: 44px;
	width: auto;
	display: block;
}
@media (max-width: 900px) { .brand__logo { height: 36px; } }
@media (max-width: 420px) { .brand__logo { height: 31px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
	font-weight: 700;
	font-size: 1.08rem;
	letter-spacing: -.01em;
}
.brand__sub {
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .4rem; }

.nav__list {
	display: flex;
	align-items: center;
	gap: .15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__link {
	display: block;
	padding: .55rem .8rem;
	border-radius: var(--r-sm);
	color: var(--ink-2);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { background: var(--bg-soft); color: var(--ink); }
.nav__item.is-current > .nav__link { color: var(--brand-2); }

/* rozwijane */
.nav__item--has-children { position: relative; }
.nav__sub {
	position: absolute;
	top: calc(100% + .35rem);
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--sh-2);
	padding: .45rem;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item--has-children:hover .nav__sub,
.nav__item--has-children:focus-within .nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav__sub .nav__link { padding: .55rem .75rem; font-weight: 500; }

.header__cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	cursor: pointer;
	color: var(--ink);
}
.nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: ""; position: absolute; left: 0;
	width: 20px; height: 2px; background: currentColor;
	transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }


/* --- Przelacznik jezyka --------------------------------------------------
   Segmentowany przelacznik: aktywny jezyk na mosiaznym tle, drugi wygaszony.
   W naglowku same skroty (DE/EN), w menu telefonu pelne nazwy.
   -------------------------------------------------------------------- */

.lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	flex-shrink: 0;
}

.lang__opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: .38rem .6rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--muted);
	text-decoration: none;
	line-height: 1;
	transition: background .22s var(--ease), color .22s var(--ease);
}
.lang__opt:hover { color: var(--ink); background: rgba(19, 23, 28, .05); }

.lang__opt.is-active {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 1px 3px rgba(176, 132, 47, .35);
}
.lang__opt.is-active:hover { background: var(--brand); color: #fff; }

/* w naglowku pokazujemy skrot, pelna nazwa zostaje dla czytnikow ekranu */
.lang__nazwa {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* --- wariant w menu telefonu --- */
.lang--menu { display: none; }

@media (max-width: 900px) {
	/* w naglowku na telefonie przelacznik znika — jest w menu */
	.header__cta .lang { display: none; }

	.lang--menu {
		display: flex;
		width: 100%;
		margin-top: 1.4rem;
		padding: 5px;
		gap: 5px;
		border-radius: var(--r);
		background: var(--bg-soft);
	}
	.lang--menu .lang__opt {
		flex: 1;
		gap: .5rem;
		padding: .85rem .8rem;
		font-size: .95rem;
		border-radius: var(--r-sm);
	}
	/* na telefonie jest miejsce na pelna nazwe */
	.lang--menu .lang__nazwa {
		position: static;
		width: auto; height: auto;
		margin: 0; clip: auto;
		overflow: visible;
		font-weight: 600;
	}
	.lang--menu .lang__kod {
		font-size: .78rem;
		opacity: .65;
		letter-spacing: .1em;
	}
	.lang--menu .lang__opt.is-active .lang__kod { opacity: .85; }
}

@media (max-width: 1040px) and (min-width: 901px) {
	.lang__opt { min-width: 34px; padding-inline: .45rem; }
}

/* ==========================================================================
   5. Przyciski
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: .95rem 1.7rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .98rem;
	font-weight: 650;
	letter-spacing: -.005em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--ease), background .2s var(--ease),
	            border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--brand-2); color: #fff; box-shadow: var(--sh-2); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--muted); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-soft); color: var(--ink); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn--sm { padding: .55rem 1rem; font-size: .88rem; }

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: "";
	position: absolute; inset: 0;
	/* Der Text steht links – dort muss das Bild deutlich dunkler sein,
	   sonst leidet die Lesbarkeit auf hellen Bildstellen. */
	background:
		linear-gradient(180deg, rgba(8,11,15,.55) 0%, rgba(8,11,15,.40) 42%, rgba(8,11,15,.82) 100%),
		linear-gradient(90deg, rgba(8,11,15,.86) 0%, rgba(8,11,15,.62) 38%, rgba(8,11,15,.06) 78%);
}

.hero__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 78vh, 860px);
	padding-block: clamp(4rem, 2rem + 9vw, 7.5rem);
}
.hero__content { max-width: 46rem; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead {
	font-size: clamp(1.13rem, 1.02rem + .6vw, 1.5rem);
	color: rgba(255,255,255,.9);
	line-height: 1.55;
	margin-bottom: 2.4rem;
	max-width: 38rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero .eyebrow { color: #e0bf7d; }

/* pasek zaufania pod hero */
.hero__bar {
	position: relative;
	border-top: 1px solid rgba(255,255,255,.14);
	background: rgba(10,13,17,.55);
}
.hero__bar-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: .25rem 2rem;
	list-style: none;
	margin: 0; padding: 1.1rem 0;
}
.hero__bar-item {
	display: flex; align-items: center; gap: .6rem;
	color: rgba(255,255,255,.85);
	font-size: .92rem;
	font-weight: 500;
}
.hero__bar-item svg { width: 18px; height: 18px; color: #e0bf7d; flex-shrink: 0; }

/* hero mniejszy, na podstronach */
.pagehead {
	position: relative;
	background: var(--bg-dark);
	color: #fff;
	overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,13,17,.70), rgba(10,13,17,.55));
}
.pagehead__inner {
	position: relative;
	padding-block: clamp(2.8rem, 2rem + 4.5vw, 5rem);
	max-width: 46rem;
}
.pagehead h1 { color: #fff; margin-bottom: .35em; }
.pagehead__lead { color: rgba(255,255,255,.85); font-size: 1.08rem; margin: 0; }
.pagehead--plain { background: var(--bg-soft); color: var(--ink); }
.pagehead--plain h1 { color: var(--ink); }
.pagehead--plain .pagehead__lead { color: var(--muted); }

/* okruszki */
.crumbs { font-size: .85rem; margin-bottom: 1rem; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .6; margin-inline: .4rem; }
.pagehead--plain .crumbs { color: var(--muted); }
.pagehead--plain .crumbs a { color: var(--ink-2); }

/* ==========================================================================
   7. Kafle i siatki
   ========================================================================== */

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

/* kafel produktowy ze zdjęciem */
.tile {
	position: relative;
	display: block;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--ink);
	text-decoration: none;
	box-shadow: var(--sh-1);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
	isolation: isolate;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }

.tile__media { aspect-ratio: 3 / 4; }
@media (min-width: 700px) { .tile__media { aspect-ratio: 4 / 5; } }
.tile__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .6s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.05); }

.tile__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: clamp(1.1rem, .8rem + 1vw, 1.6rem);
	background: linear-gradient(180deg, rgba(10,13,17,0) 35%, rgba(10,13,17,.82) 100%);
}
.tile__title {
	color: #fff;
	font-size: clamp(1.2rem, 1.05rem + .5vw, 1.55rem);
	font-weight: 750;
	line-height: 1.25;
	margin: 0;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.tile__meta {
	display: flex; align-items: center; gap: .4rem;
	color: #e0bf7d;
	font-size: .85rem;
	font-weight: 600;
	margin-top: .45rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover .tile__meta, .tile:focus-visible .tile__meta { opacity: 1; transform: translateY(0); }
.tile__meta svg { width: 16px; height: 16px; }

/* kafel bez odnośnika (sama prezentacja) */
.tile--static { cursor: default; }
.tile--static:hover { transform: none; box-shadow: var(--sh-1); }
.tile--static:hover .tile__media img { transform: none; }
.tile--static .tile__overlay { background: linear-gradient(180deg, rgba(10,13,17,0) 45%, rgba(10,13,17,.80) 100%); }

/* karta tekstowa */
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.card__icon {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: var(--r-sm);
	background: var(--brand-soft);
	color: var(--brand-2);
	margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ==========================================================================
   8. Bloki treści
   ========================================================================== */

.split {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--media-first .split__media { order: -1; }
}
.split__media img { border-radius: var(--r-lg); box-shadow: var(--sh-2); width: 100%; }
.split__body > *:last-child { margin-bottom: 0; }

.prose {
	max-width: var(--maxw-prose);
	margin-inline: auto;          /* bez tego tekst przykleja sie do lewej */
	font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem);
}
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--brand-2); }

/* galeria */
.gallery { display: grid; gap: clamp(.6rem, .4rem + .8vw, 1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }

/* lista atutów */
.checks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { width: 21px; height: 21px; color: var(--brand); flex-shrink: 0; margin-top: .16rem; }

/* ==========================================================================
   9. Wezwanie do kontaktu
   ========================================================================== */

.cta {
	background: var(--bg-dark);
	color: #fff;
	border-radius: var(--r-lg);
	padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	display: grid;
	gap: 1.8rem;
	align-items: center;
}
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: rgba(255,255,255,.82); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ==========================================================================
   10. Kontakt
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
	width: 42px; height: 42px; flex-shrink: 0;
	display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand-2);
	border-radius: var(--r-sm);
}
.info-list__icon svg { width: 21px; height: 21px; }
.info-list__label {
	font-size: .76rem; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
}
.info-list__value { color: var(--ink); font-weight: 600; font-style: normal; line-height: 1.5; }
.info-list__value a { color: var(--ink); text-decoration: none; }
.info-list__value a:hover { color: var(--brand-2); text-decoration: underline; }

/* formularz */
.form-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
	box-shadow: var(--sh-1);
}
.field { margin-bottom: 1.1rem; }
.field label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: .4rem;
}
.field .req { color: var(--brand-2); }
.field input, .field textarea, .field select {
	width: 100%;
	padding: .8rem .95rem;
	font: inherit;
	font-size: .96rem;
	color: var(--ink);
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none;
	background: #fff;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(176, 132, 47, .16);
}
.field textarea { min-height: 150px; resize: vertical; }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.2rem; }
.consent input[type="checkbox"] {
	width: 20px; height: 20px;
	flex: 0 0 20px;
	margin: .2rem 0 0;
	accent-color: var(--brand);
}
.consent label { font-size: .88rem; font-weight: 400; color: var(--muted); line-height: 1.55; margin: 0; }

.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

.form-msg { padding: .9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1.2rem; font-size: .93rem; }
.form-msg--ok  { background: #edf7ee; color: #1d5c26; border: 1px solid #c7e6cb; }
.form-msg--err { background: #fdeeee; color: #8d2020; border: 1px solid #f3cccc; }

.map-embed {
	border: 0;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--r-lg);
	filter: grayscale(.25);
}


/* mapa dopiero po kliknięciu – bez żądania do obcego serwera przed zgodą */
.map-holder {
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--bg-soft);
	border: 1px solid var(--line);
}
.map-placeholder {
	aspect-ratio: 16 / 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: clamp(1.5rem, 1rem + 3vw, 3rem);
	text-align: center;
}
.map-placeholder__icon { width: 34px; height: 34px; color: var(--brand); }
.map-placeholder__text { max-width: 44ch; color: var(--muted); font-size: .94rem; margin: 0; }
.map-holder .map-embed { border-radius: 0; }


/* ==========================================================================
   15. Galeria: karuzela i powiekszanie
   ========================================================================== */

/* Galeria wychodzi poza kolumne tekstu na cala szerokosc widoku. */
.gallery-carousel {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1760px, calc(100vw - 2 * var(--gutter)));
	margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.gallery {
	display: flex;
	gap: clamp(.7rem, .4rem + .9vw, 1.25rem);
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-block: .35rem;
}
.gallery::-webkit-scrollbar { display: none; }

.gallery__item {
	flex: 0 0 auto;
	width: calc((100% - 2 * clamp(.7rem, .4rem + .9vw, 1.25rem)) / 3);
	margin: 0;
	border: 0;
	padding: 0;
	display: block;
	position: relative;
	border-radius: var(--r);
	overflow: hidden;
	background: var(--bg-soft);
	cursor: zoom-in;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.gallery__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
	transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }

@media (max-width: 1100px) {
	.gallery__item { width: calc((100% - clamp(.7rem, .4rem + .9vw, 1.25rem)) / 2); }
}
@media (max-width: 680px) {
	.gallery-carousel { width: 100vw; }
	.gallery { padding-inline: var(--gutter); }
	.gallery__item { width: 82%; }
}

.gallery__zoom {
	position: absolute;
	right: .8rem; bottom: .8rem;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(19,23,28,.62);
	color: #fff;
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__zoom svg { width: 18px; height: 18px; }
@media (hover: none) { .gallery__zoom { opacity: 1; transform: scale(1); } }

/* strzalki karuzeli */
.gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: rgba(255,255,255,.94);
	color: var(--ink);
	box-shadow: var(--sh-2);
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: opacity .25s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev { left: -14px;  transform: translateY(-50%); }
.gallery-nav--next { right: -14px; transform: translateY(-50%); }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 680px) { .gallery-nav { display: none; } }

/* pasek postepu pod karuzela */
.gallery-progress {
	height: 3px;
	border-radius: 999px;
	background: var(--line);
	margin-top: 1rem;
	overflow: hidden;
}
.gallery-progress__bar {
	height: 100%;
	width: 30%;
	border-radius: 999px;
	background: var(--brand);
	transition: transform .15s linear, width .2s var(--ease);
	transform-origin: left center;
}

.gallery__hint {
	display: none;
	align-items: center;
	gap: .45rem;
	font-size: .85rem;
	color: var(--muted);
	margin-top: .8rem;
	justify-content: center;
}
.gallery__hint svg { width: 16px; height: 16px; }
@media (hover: none) { .gallery__hint { display: flex; } }

/* --- powiekszenie --- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(8, 10, 13, .95);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	/* Zamknieta warstwa nie moze kosztowac wydajnosci: bez rozmycia tla
	   i bez rysowania zawartosci, dopoki nie jest otwarta. */
	content-visibility: hidden;
	transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	content-visibility: visible;
	backdrop-filter: blur(10px);
}

.lightbox__stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(4.5rem, 7vw, 7rem) clamp(1rem, 6vw, 6rem);
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
	cursor: zoom-out;
}

.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--r-sm);
	box-shadow: 0 30px 80px rgba(0,0,0,.6);
	cursor: zoom-in;
	transition: transform .35s var(--ease), opacity .25s var(--ease);
	transform-origin: center center;
	user-select: none;
	-webkit-user-drag: none;
}
.lightbox__img.is-zoomed { cursor: grab; transition: transform .2s var(--ease); }
.lightbox__img.is-zoomed:active { cursor: grabbing; }
.lightbox__img.is-switching { opacity: 0; }

.lightbox__btn {
	position: absolute;
	z-index: 2;
	width: 54px; height: 54px;
	display: grid; place-items: center;
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }
.lightbox__btn svg { width: 23px; height: 23px; }
.lightbox__btn[hidden] { display: none; }

.lightbox__close {
	top: clamp(1rem, 2.5vw, 2rem);
	right: clamp(1rem, 2.5vw, 2rem);
	background: rgba(255,255,255,.16);
}
.lightbox__close:hover { background: var(--brand); border-color: var(--brand); }
.lightbox__prev  { left: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: clamp(.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(.94); }

.lightbox__bar {
	position: absolute;
	left: 0; right: 0;
	bottom: clamp(.9rem, 2.5vw, 2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .45rem;
	padding-inline: 1rem;
	color: rgba(255,255,255,.92);
	text-align: center;
	pointer-events: none;
}
.lightbox__caption { font-size: 1rem; max-width: 60ch; margin: 0; }
.lightbox__count {
	font-size: .8rem;
	letter-spacing: .12em;
	color: rgba(255,255,255,.6);
	font-variant-numeric: tabular-nums;
	margin: 0;
}
.lightbox__hinweis {
	font-size: .78rem;
	color: rgba(255,255,255,.45);
	margin: .2rem 0 0;
}

@media (max-width: 640px) {
	.lightbox__prev, .lightbox__next { width: 44px; height: 44px; }
	.lightbox__btn svg { width: 19px; height: 19px; }
	.lightbox__hinweis { display: none; }
}

/* ==========================================================================
   11. Stopka
   ========================================================================== */

.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
	display: grid;
	gap: clamp(2rem, 1rem + 3vw, 3.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	padding-bottom: 2.5rem;
}
.footer__title {
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .94rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); }
.footer__about { font-size: .94rem; margin-top: 1.1rem; max-width: 34ch; }

.footer__bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-block: 1.4rem;
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	font-size: .86rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   12. Pojawianie się przy przewijaniu
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. Telefon i tablet
   ========================================================================== */

@media (max-width: 1040px) {
	.header__cta .btn span { display: none; }
	.header__cta .btn { padding-inline: .9rem; }
}

@media (max-width: 900px) {
	:root { --header-h: 64px; }

	.nav-toggle { display: inline-flex; }

	/*
	 * Menu chowamy przygaszeniem, NIE odsunięciem w bok.
	 * Element ma position:fixed, więc odnosi się do okna — translateX(100%)
	 * tworzyłby poziomy pasek przewijania, którego `overflow-x: hidden`
	 * na body nie przycina.
	 */
	.nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		display: block;
		background: #fff;
		padding: 1.2rem var(--gutter) 2.5rem;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
		border-top: 1px solid var(--line);
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }

	.nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
	.nav__link { padding: .9rem .6rem; font-size: 1.05rem; border-radius: var(--r-sm); }
	.nav__item { border-bottom: 1px solid var(--line-soft); }
	.nav__item:last-child { border-bottom: 0; }

	.nav__sub {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 .6rem .9rem;
		min-width: 0;
	}
	.nav__sub .nav__link { font-size: .96rem; padding: .6rem; color: var(--muted); }

	body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
	.hero__inner { min-height: 420px; }
	.hero__actions .btn { width: 100%; }
	.cta__actions .btn { width: 100%; }
	.brand__sub { display: none; }
}

/* ==========================================================================
   14. Druk
   ========================================================================== */

@media print {
	.site-header, .site-footer, .hero__actions, .cta, .nav-toggle { display: none !important; }
	body { color: #000; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
