:root {
	--yellow: #efa510;
	--yellow-dark: #d69208;
	--green: #7ed321;
	--dark: #0d0f12;
	--dark-soft: #1a1c1f;
	--dark-border: #2c2f33;
	--text: #1a1c1f;
	--text-muted: #9a9a9a;
	--bg: #f7f5f1;
	--white: #ffffff;
	--header-height: 84px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', 'DM Sans', sans-serif;
	line-height: 1.3;
}

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

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 24px rgba(0, 0, 0, .04);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	height: var(--header-height);
	display: flex;
	align-items: center;
	gap: 28px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.logo-img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
}

.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.logo-text strong {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--dark);
}

.logo-text small {
	font-size: 9px;
	font-weight: 500;
	letter-spacing: .14em;
	color: #7a7a7a;
}

.main-nav {
	margin-left: auto;
}

.nav-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 26px;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dark);
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
	white-space: nowrap;
}

.nav-menu a:hover {
	color: var(--yellow);
}

.nav-menu > .current-menu-item > a,
.nav-menu > .current-menu-ancestor > a,
.nav-menu > .current_page_item > a,
.nav-menu > .current_page_ancestor > a {
	color: var(--yellow);
	border-bottom-color: var(--yellow);
}

.nav-menu .menu-item-has-children > a::after,
.nav-menu .page_item_has_children > a::after {
	content: '';
	display: inline-block;
	margin-left: 7px;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}

.nav-menu .sub-menu,
.nav-menu .children {
	list-style: none;
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 260px;
	background: var(--white);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s, transform .18s, visibility .18s;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a,
.nav-menu .children a {
	padding: 9px 20px;
	border-bottom: none;
	text-transform: none;
	letter-spacing: .01em;
	font-weight: 500;
	font-size: 14px;
	white-space: normal;
}

.nav-menu .sub-menu a:hover,
.nav-menu .children a:hover {
	background: #faf6ee;
	color: var(--yellow);
}

/* ---------- Przyciski ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	border-radius: 999px;
	transition: background .2s;
}

.btn-cta {
	background: var(--yellow);
	color: var(--dark);
	padding: 14px 26px;
	flex-shrink: 0;
}

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

.btn-dark {
	background: var(--dark);
	color: var(--white);
	padding: 14px 26px;
}

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

.btn .arrow {
	font-size: 16px;
	line-height: 1;
}

.submenu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--dark);
	border-radius: 2px;
	transition: transform .25s, opacity .25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Treść / galeria ---------- */

.site-content {
	padding: 32px 0 56px;
	min-height: 50vh;
}

.page-head {
	max-width: 1040px;
	padding-top: 16px;
	padding-bottom: 24px;
}

.page-title {
	font-size: 34px;
	font-weight: 800;
	color: var(--dark);
}

.page-subtitle {
	margin-top: 10px;
	font-size: 16px;
	color: #55595f;
	max-width: 720px;
}

.gallery {
	max-width: 1040px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gallery-item {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
	transition: transform .25s, box-shadow .25s;
}

.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, .14);
}

.gallery-item img {
	width: 100%;
}

.page-content {
	max-width: 860px;
	padding-top: 32px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 16px;
	font-size: 16px;
}

.entry-content ul,
.entry-content ol {
	padding-left: 22px;
}

.entry-content h2 {
	font-size: 24px;
	margin: 32px 0 14px;
}

.entry-content h3 {
	font-size: 19px;
	margin: 26px 0 12px;
}

.entry-content a {
	color: var(--yellow);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content img {
	border-radius: 12px;
	margin: 8px 0;
}

/* ---------- Pasek CTA ---------- */

.cta-band {
	margin-top: 48px;
	background: var(--yellow);
	border-radius: 16px;
	padding: 32px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cta-band-text h3 {
	font-size: 21px;
	font-weight: 800;
	color: var(--dark);
}

.cta-band-text p {
	margin-top: 6px;
	color: #4a3c14;
}

/* ---------- Blog ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.post-card {
	background: var(--white);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
	display: flex;
	flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
}

.post-card-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.post-card-date {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.post-card-title {
	font-size: 18px;
	font-weight: 700;
}

.post-card-title a:hover {
	color: var(--yellow);
}

.post-card-excerpt {
	font-size: 14px;
	color: #55595f;
	flex: 1;
}

.post-card-more {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--yellow);
}

.single-post-thumb {
	max-width: 1040px;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
}

.single-post-thumb img {
	width: 100%;
}

.post-intro {
	font-size: 18px;
	font-weight: 500;
	color: #3c4046;
}

.post-source {
	font-size: 13px;
	color: var(--text-muted);
}

.post-nav {
	margin-top: 32px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-weight: 600;
}

.post-nav a:hover {
	color: var(--yellow);
}

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	margin: 0 3px;
	border-radius: 10px;
	background: var(--white);
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.pagination .page-numbers.current {
	background: var(--yellow);
	color: var(--dark);
}

/* ---------- Stopka ---------- */

.site-footer {
	background: var(--dark);
	color: #d9d9d9;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr .8fr;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.logo-footer .logo-text strong {
	color: var(--white);
}

.logo-footer .logo-text small {
	color: var(--text-muted);
}

.footer-tagline {
	margin-top: 18px;
	font-size: 14px;
	color: var(--text-muted);
}

.footer-col h4 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 18px;
}

.footer-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}

.footer-list a {
	color: #d9d9d9;
	transition: color .2s;
}

.footer-list a:hover {
	color: var(--yellow);
}

.footer-contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #d9d9d9;
}

.footer-contact .footer-icon {
	flex-shrink: 0;
	color: var(--yellow);
}

.footer-social {
	display: flex;
	gap: 12px;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--dark-soft);
	border: 1px solid var(--dark-border);
	color: var(--white);
	transition: background .2s, color .2s, border-color .2s;
}

.social-link:hover {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--dark);
}

.footer-bottom {
	border-top: 1px solid var(--dark-border);
	padding: 20px 0;
	font-size: 12px;
	color: var(--text-muted);
	text-align: center;
}

/* ---------- Popup kontaktowy ---------- */

.popup {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.popup[hidden] {
	display: none;
}

.popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 15, 18, .72);
	backdrop-filter: blur(3px);
}

.popup-dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--white);
	border-radius: 18px;
	padding: 40px 44px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	animation: popup-in .22s ease-out;
}

@keyframes popup-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.popup-close {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 30px;
	line-height: 1;
	background: none;
	border: none;
	color: #9a9a9a;
	cursor: pointer;
}

.popup-close:hover {
	color: var(--dark);
}

.popup-head {
	text-align: center;
	margin-bottom: 26px;
}

.popup-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin: 0 auto 14px;
}

.popup-head h3 {
	font-size: 24px;
	font-weight: 800;
	color: var(--dark);
}

.popup-head p {
	margin-top: 8px;
	font-size: 14px;
	color: #55595f;
}

.popup-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #55595f;
	margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	color: var(--text);
	background: #faf9f7;
	border: 1px solid #e2ded6;
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--yellow);
	box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}

.form-field.has-error input,
.form-field.has-error textarea {
	border-color: #d64545;
}

.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.form-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: #55595f;
	margin: 4px 0 18px;
	cursor: pointer;
}

.form-consent input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--yellow);
	flex-shrink: 0;
}

.form-consent a {
	color: var(--yellow);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.form-consent.has-error span {
	color: #d64545;
}

.form-status {
	min-height: 20px;
	font-size: 14px;
	margin-bottom: 12px;
}

.form-status.is-error { color: #d64545; }
.form-status.is-success { color: #3d8b0e; font-weight: 600; }

.btn-submit {
	width: 100%;
	justify-content: center;
	padding: 16px 26px;
}

.btn-submit[disabled] {
	opacity: .6;
	cursor: wait;
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 400;
	background: rgba(10, 10, 10, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	cursor: zoom-out;
}

.lightbox[hidden] {
	display: none;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	border-radius: 8px;
}

.lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 40px;
	line-height: 1;
	background: none;
	border: none;
	color: var(--white);
	cursor: pointer;
}

/* ---------- Responsywność ---------- */

@media (max-width: 1080px) {
	.nav-menu { gap: 16px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.nav-toggle {
		display: flex;
		margin-left: auto;
	}

	.header-inner .btn-cta {
		display: none;
	}

	.main-nav {
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		margin: 0;
		background: var(--white);
		box-shadow: 0 16px 32px rgba(0, 0, 0, .12);
		display: none;
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
	}

	.admin-bar .main-nav {
		top: calc(var(--header-height) + 32px);
	}

	.main-nav.open {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-menu a {
		padding: 15px 24px;
		border-bottom: 1px solid #eee;
		white-space: normal;
	}

	/* Na mobile bez podkreślenia aktywnego punktu — zostaje tylko separator wiersza */
	.nav-menu > .current-menu-item > a,
	.nav-menu > .current-menu-ancestor > a,
	.nav-menu > .current_page_item > a,
	.nav-menu > .current_page_ancestor > a {
		border-bottom: 1px solid #eee;
	}

	/* Na mobile podmenu domyślnie zwinięte — rozwija je przycisk ze strzałką */
	.nav-menu .sub-menu,
	.nav-menu .children {
		display: none;
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		background: #faf8f4;
	}

	.nav-menu li.submenu-open > .sub-menu,
	.nav-menu li.submenu-open > .children {
		display: block;
	}

	.nav-menu .sub-menu a,
	.nav-menu .children a {
		padding-left: 42px;
	}

	.nav-menu .menu-item-has-children > a::after,
	.nav-menu .page_item_has_children > a::after {
		display: none;
	}

	.nav-menu .menu-item-has-children,
	.nav-menu .page_item_has_children {
		position: relative;
	}

	.submenu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 8px;
		width: 48px;
		height: 52px;
	}

	.submenu-toggle::after {
		content: '';
		display: block;
		margin: 0 auto;
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--dark);
		border-bottom: 2px solid var(--dark);
		transform: rotate(45deg);
		transition: transform .2s;
	}

	.submenu-open > .submenu-toggle::after {
		transform: rotate(225deg);
	}

	.nav-menu .menu-item-has-children > a,
	.nav-menu .page_item_has_children > a {
		padding-right: 64px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.popup-dialog {
		padding: 32px 24px;
	}

	.popup-form .form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (max-width: 600px) {
	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.page-title { font-size: 27px; }
	.cta-band { padding: 26px 24px; }
	.admin-bar .site-header { top: 46px; }
}
