/* ==========================================================================
   Vistrix Labs — style globalne (design tokens + komponenty wspólne)
   Źródło prawdy: design_handoff_vistrixlabs (wartości 1:1 z makiet).
   Style per strona: assets/css/pages/{key}.css (konwencja auto-enqueue).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	/* Kolory */
	--c-black: #141310;          /* nav, hero, stopka, sekcje ciemne, nagłówki */
	--c-yellow: #FFD400;         /* JEDYNY żółty — przyciski, badge, akcenty, logo */
	--c-coral: #FF6B4A;          /* drugi akcent: kropki, dekoracje, hover przycisków */
	--c-bg: #F1F2F4;             /* tło stron */
	--c-white: #FFFFFF;          /* karty, sekcje białe */
	--c-placeholder: #E9EAED;    /* tła placeholderów obrazów */
	--c-heading: #141310;        /* tekst nagłówków */
	--c-article: #26272A;        /* treść artykułu */
	--c-body: #3B3C40;           /* body */
	--c-meta: #64666C;           /* secondary / meta */
	--c-error: #E14B2A;          /* błędy formularza */

	/* Na ciemnym tle */
	--c-white-85: rgba(255, 255, 255, .85);
	--c-white-75: rgba(255, 255, 255, .75);
	--c-white-65: rgba(255, 255, 255, .65);
	--c-white-55: rgba(255, 255, 255, .55);
	--c-white-45: rgba(255, 255, 255, .45);
	--c-white-40: rgba(255, 255, 255, .4);
	--c-white-30: rgba(255, 255, 255, .3);
	--c-white-20: rgba(255, 255, 255, .2);
	--c-white-12: rgba(255, 255, 255, .12);
	--c-yellow-60: rgba(255, 212, 0, .6);
	--c-yellow-15: rgba(255, 212, 0, .15);
	--c-black-75: rgba(20, 19, 16, .75);

	/* Typografia (fonty lokalne z assets/css/fonts.css) */
	--font-heading: 'Gabarito', sans-serif;
	--font-body: 'Instrument Sans', sans-serif;
	--font-mono: ui-monospace, monospace;

	/* Layout */
	--container: 1328px;
	--pad-x: 56px;               /* padding boczny desktop */
	--pad-x-mobile: 24px;        /* padding boczny mobile */

	/* Promienie */
	--radius-pill: 999px;        /* przyciski, badge, chipy */
	--radius-card: 24px;         /* karty duże */
	--radius-card-xl: 28px;      /* karty XL (formularz, obraz artykułu) */
	--radius-card-sm: 18px;      /* karty małe / inputy 10–18px */
	--radius-input: 10px;

	/* Cienie */
	--shadow-card: 0 2px 8px rgba(20, 19, 16, .05);
	--shadow-card-hover: 0 12px 32px rgba(20, 19, 16, .12);
	--shadow-form: 0 4px 24px rgba(20, 19, 16, .06);

	/* Ruch */
	--transition: 180ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset drobny + typografia bazowa
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-black);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--c-heading);
	margin: 0;
}

button {
	font-family: inherit;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	background: var(--c-yellow);
	color: var(--c-black);
	font-weight: 600;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   3. Kontener
   -------------------------------------------------------------------------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Przyciski (.btn + warianty; reguła hoverów z README)
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}

/* Rozmiary */
.btn--lg {
	font-size: 16px;
	padding: 18px 34px;
}

.btn--xl {
	font-size: 17px;
	padding: 20px 40px;
}

.btn--sm {
	font-size: 14px;
	padding: 12px 24px;
}

/* Żółty pełny → hover tło #FF6B4A */
.btn--yellow {
	background: var(--c-yellow);
	color: var(--c-black);
}

.btn--yellow:hover {
	background: var(--c-coral);
}

/* Żółty outline (na ciemnym) → hover tło rgba(255,212,0,.15) */
.btn--yellow-outline {
	background: transparent;
	border: 1.5px solid var(--c-yellow-60);
	color: var(--c-yellow);
	font-weight: 500;
}

.btn--yellow-outline:hover {
	background: var(--c-yellow-15);
}

/* Czarny pełny → hover tło #FF6B4A */
.btn--dark {
	background: var(--c-black);
	color: var(--c-white);
}

.btn--dark:hover {
	background: var(--c-coral);
}

/* Czarny outline (na jasnym) → hover tło #FFD400 */
.btn--dark-outline {
	background: transparent;
	border: 1.5px solid var(--c-black);
	color: var(--c-black);
}

.btn--dark-outline:hover {
	background: var(--c-yellow);
}

/* --------------------------------------------------------------------------
   5. Badge + chip
   -------------------------------------------------------------------------- */
/* Badge sekcji (żółty pill uppercase) */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--c-yellow);
	color: var(--c-black);
	border-radius: var(--radius-pill);
	padding: 8px 18px;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* Badge kategorii na kartach wpisów */
.badge--card {
	padding: 4px 12px;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;
}

/* Chip filtra (Blog): pill z obrysem; aktywny = czarne tło, biały tekst */
.chip {
	display: inline-flex;
	align-items: center;
	background: var(--c-bg);
	color: var(--c-black);
	border: 1.5px solid var(--c-black);
	border-radius: var(--radius-pill);
	padding: 11px 22px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background var(--transition), color var(--transition);
}

.chip--active {
	background: var(--c-black);
	color: var(--c-white);
}

/* --------------------------------------------------------------------------
   6. Nav (sticky, #141310)
   -------------------------------------------------------------------------- */
.site-nav {
	background: var(--c-black);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 56px;
	position: sticky;
	top: 0;
	z-index: 50;
}

/* Logo — czysto CSS/HTML */
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand__mark {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--c-yellow);
	box-shadow: inset 0 0 0 2.5px var(--c-black);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: var(--c-black);
	flex: none;
}

.brand__name {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 22px;
	color: var(--c-white);
	letter-spacing: -0.01em;
}

.brand__accent {
	color: var(--c-yellow);
}

.site-nav__right {
	display: flex;
	align-items: center;
	gap: 36px;
}

/* Makieta EN (Home EN.dc.html): gap 32px (PL: 36px). */
html[lang^="en"] .site-nav__right {
	gap: 32px;
}

.site-nav__menu {
	display: flex;
	gap: 28px;
	font-size: 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu a {
	color: var(--c-white-85);
	transition: color var(--transition);
}

.site-nav__menu a:hover {
	color: var(--c-yellow);
}

/* Aktywna strona w nav = żółty + weight 600 */
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current_page_item > a,
.site-nav__menu .current_page_parent > a {
	color: var(--c-yellow);
	font-weight: 600;
}

/* CTA w nav (żółty pill, hover białe tło) */
.site-nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--c-yellow);
	color: var(--c-black);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	transition: background var(--transition);
	white-space: nowrap;
}

.site-nav__cta:hover {
	background: var(--c-white);
}

/* Przełącznik języka: 2 kółka 34px */
.lang-switcher {
	display: flex;
	gap: 6px;
	align-items: center;
}

.lang-switcher__item {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	flex: none;
}

.lang-switcher__item--active {
	background: var(--c-yellow);
	color: var(--c-black);
	font-weight: 700;
}

.lang-switcher__item--link {
	border: 1.5px solid var(--c-white-30);
	color: var(--c-white-75);
	font-weight: 600;
	transition: border-color var(--transition);
}

.lang-switcher__item--link:hover {
	border-color: var(--c-yellow);
}

/* --------------------------------------------------------------------------
   7. Hamburger + nakładka mobilna
   -------------------------------------------------------------------------- */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 6px 2px;
	background: none;
	border: 0;
	cursor: pointer;
}

.hamburger__bar {
	width: 22px;
	height: 2.5px;
	background: var(--c-white);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}

.hamburger__bar--accent {
	width: 14px;
	background: var(--c-yellow);
}

/* Stan otwarty: dwie białe belki w X, żółta znika */
.hamburger.is-open .hamburger__bar:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar:nth-child(2) {
	transform: rotate(-45deg);
}

.hamburger.is-open .hamburger__bar--accent {
	opacity: 0;
}

/* Pełnoekranowa ciemna nakładka (pod sticky nav, z-index 49 < 50) */
.mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background: var(--c-black);
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 96px 24px 40px;
	overflow-y: auto;
}

.mobile-overlay[hidden] {
	display: none;
}

.mobile-overlay__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mobile-overlay__menu a {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.01em;
	color: var(--c-white);
	transition: color var(--transition);
}

.mobile-overlay__menu a:hover {
	color: var(--c-yellow);
}

.mobile-overlay__menu .current-menu-item > a,
.mobile-overlay__menu .current_page_item > a {
	color: var(--c-yellow);
}

.mobile-overlay__cta {
	width: 100%;
	margin-top: auto;
	font-size: 15.5px;
	padding: 16px 0;
}

/* --------------------------------------------------------------------------
   8. Karta wpisu (.card-post)
   -------------------------------------------------------------------------- */
.card-post {
	background: var(--c-white);
	border-radius: var(--radius-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--transition);
}

.card-post:hover {
	box-shadow: var(--shadow-card-hover);
}

/* Media: CSS-placeholder (ukośne paski na #E9EAED); obrazek go przykrywa */
.card-post__media {
	height: 200px;
	background:
		repeating-linear-gradient(45deg, rgba(20, 19, 16, .06) 0 12px, rgba(20, 19, 16, 0) 12px 24px),
		var(--c-placeholder);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.card-post__media--blog {
	height: 190px;
}

.card-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-post__placeholder-caption {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--c-meta);
}

.card-post__body {
	padding: 26px 28px 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.card-post__meta {
	display: flex;
	gap: 8px;
	align-items: center;
}

.card-post__date {
	font-size: 12.5px;
	color: var(--c-meta);
}

.card-post__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.2;
	color: var(--c-heading);
	margin: 0;
}

.card-post__excerpt {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--c-meta);
}

/* --------------------------------------------------------------------------
   9. CTA banner (żółte pełne CTA)
   -------------------------------------------------------------------------- */
.cta-banner {
	background: var(--c-yellow);
	padding: 110px 56px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cta-banner__inner {
	position: relative;
}

.cta-banner__title {
	font-family: var(--font-heading);
	font-size: 64px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
	max-width: 820px;
	margin: 0 auto;
	color: var(--c-black);
}

.cta-banner__lead {
	font-size: 18px;
	line-height: 1.55;
	max-width: 560px;
	margin: 24px auto 0;
	color: var(--c-black-75);
}

.cta-banner__btn {
	margin-top: 40px;
}

.cta-banner__deco-1 {
	left: -80px;
	top: -80px;
	width: 260px;
	height: 260px;
	background: var(--c-black);
	opacity: .06;
}

.cta-banner__deco-2 {
	right: -60px;
	bottom: -100px;
	width: 300px;
	height: 300px;
	background: var(--c-coral);
	opacity: .25;
}

/* --------------------------------------------------------------------------
   10. Dekoracje (czyste CSS)
   -------------------------------------------------------------------------- */
.deco-circle {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.deco-circle--yellow {
	background: var(--c-yellow);
}

.deco-circle--coral {
	background: var(--c-coral);
}

.deco-circle--dark {
	background: var(--c-black);
}

.deco-star {
	position: absolute;
	font-family: var(--font-heading);
	color: var(--c-yellow);
	line-height: 1;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--c-black);
	color: var(--c-white);
	padding: 64px 56px 40px;
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
}

.site-footer__top {
	display: flex;
	justify-content: space-between;
	gap: 60px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 300px;
}

.site-footer__logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Stopka: bez tarczy — sam znak ✦ 22px #FFD400 */
.site-footer__mark {
	font-size: 22px;
	color: var(--c-yellow);
	line-height: 1;
}

.site-footer__name {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 20px;
	color: var(--c-white);
}

.site-footer__desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--c-white-55);
}

.site-footer__cols {
	display: flex;
	gap: 80px;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14.5px;
}

.site-footer__heading {
	font-weight: 600;
	color: var(--c-white-45);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.site-footer__menu a,
.site-footer__link {
	color: var(--c-white);
	transition: color var(--transition);
}

.site-footer__menu a:hover,
.site-footer__link:hover {
	color: var(--c-yellow);
}

.site-footer__bottom {
	border-top: 1px solid var(--c-white-12);
	margin-top: 48px;
	padding-top: 24px;
	font-size: 13px;
	color: var(--c-white-40);
	display: flex;
	justify-content: space-between;
}

/* --------------------------------------------------------------------------
   12. Mobile ≤768px (wartości z "Widoki mobilne.dc.html")
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

	/* Nav */
	.site-nav {
		padding: 14px 20px;
	}

	.brand {
		gap: 8px;
	}

	.brand__mark {
		width: 30px;
		height: 30px;
		box-shadow: inset 0 0 0 2px var(--c-black);
		font-size: 13px;
	}

	.brand__name {
		font-size: 18px;
	}

	.site-nav__right {
		display: none;
	}

	.hamburger {
		display: flex;
	}

	/* Przyciski pełna szerokość */
	.btn--lg,
	.btn--xl {
		width: 100%;
		font-size: 15.5px;
		padding: 16px 0;
	}

	/* Karta wpisu */
	.card-post {
		border-radius: var(--radius-card-sm);
	}

	.card-post__media,
	.card-post__media--blog {
		height: 150px;
	}

	.card-post__placeholder-caption {
		font-size: 11px;
	}

	.card-post__body {
		padding: 18px 20px 22px;
		gap: 10px;
	}

	.card-post__meta .badge--card {
		padding: 3px 10px;
		font-size: 11px;
	}

	.card-post__date {
		font-size: 11.5px;
	}

	.card-post__title {
		font-size: 17px;
		line-height: 1.25;
	}

	.card-post__excerpt {
		font-size: 14px;
		line-height: 1.5;
	}

	/* CTA banner */
	.cta-banner {
		padding: 56px 24px;
	}

	.cta-banner__title {
		font-size: 34px;
		letter-spacing: -0.015em;
		line-height: 1.05;
	}

	.cta-banner__lead {
		font-size: 15px;
		margin: 14px 0 0;
	}

	.cta-banner__btn {
		margin-top: 24px;
	}

	/* Makieta mobilna: sekcja CTA bez kół dekoracyjnych. */
	.cta-banner__deco-1,
	.cta-banner__deco-2 {
		display: none;
	}

	/* Badge sekcji */
	.badge {
		padding: 6px 14px;
		font-size: 11.5px;
	}

	/* Chipy filtra */
	.chip {
		padding: 9px 16px;
		font-size: 12.5px;
	}

	/* Stopka */
	.site-footer {
		padding: 40px 24px 28px;
	}

	.site-footer__top {
		flex-direction: column;
		gap: 26px;
	}

	.site-footer__brand {
		gap: 10px;
	}

	.site-footer__logo {
		gap: 8px;
	}

	.site-footer__mark {
		font-size: 18px;
	}

	.site-footer__name {
		font-size: 17px;
	}

	.site-footer__desc {
		font-size: 13px;
	}

	.site-footer__cols {
		gap: 36px;
	}

	.site-footer__col,
	.site-footer__menu {
		gap: 9px;
		font-size: 13.5px;
	}

	.site-footer__heading {
		font-size: 11px;
	}

	.site-footer__bottom {
		margin-top: 28px;
		padding-top: 16px;
		font-size: 11.5px;
	}
}
