/*!
Theme Name: Gresbud 2026
Theme URI: https://gresbud.pl
Author: Gresbud
Author URI: https://gresbud.pl
Description: Autorski motyw WordPress dla Gresbud Sp. z o.o. - dystrybutora materialow dachowych i budowlanych w Lublinie i wojewodztwie lubelskim. Zbudowany od podstaw na bazie starter theme Underscores (_s), bez frameworkow CSS.
Version: 0.1.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gresbud-2026
Tags: custom-logo, custom-menu, featured-images, translation-ready

This theme, like WordPress, is licensed under the GPL.

Built from Underscores (https://underscores.me/), (C) 2012-2020 Automattic, Inc.,
distributed under the GNU GPL v2 or later. All custom CSS below is written
from scratch for the Gresbud 2026 theme.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Design tokens (:root)
# Reset & base
# Accessibility helpers (required WP classes)
# Alignments (required WP classes)
# Layout / container
# Buttons
# Header
# Mobile navigation
# Hero
# Trust bar (dark strip)
# Services grid
# Stats bar
# Split CTA (testimonial + CTA)
# Certificates & service area
# Footer
# Sticky mobile CTA bar
# Blog / single / archive basics
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Local fonts
--------------------------------------------------------------*/
/*
 * Variable WOFF2 files from Google Fonts, self-hosted under the SIL Open
 * Font License 1.1. Separate latin and latin-ext subsets keep Polish glyphs
 * available without shipping Cyrillic, Greek or Vietnamese subsets.
 */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('assets/fonts/manrope/manrope-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
	src: url('assets/fonts/manrope/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
	/*
	 * Brand colors - green-700 is #0f6637, chosen over fully-saturated
	 * alternatives (e.g. #006738) because a non-zero red channel and
	 * ~74% saturation stays inside the CMYK print gamut, so business
	 * cards/signage/print match the screen instead of clipping/shifting.
	 * The rest of the scale is built around that same hue/saturation.
	 */
	--color-green-900: #093e22;
	--color-green-800: #0c502b;
	--color-green-700: #0f6637;
	--color-green-600: #158448;
	--color-green-500: #1fa35c;
	--color-green-100: #eaf6ef;
	--color-green-50: #f5faf7;

	--color-red-600: #c0392b;
	--color-red-700: #a3301f;

	--color-ink: #172621;
	--color-body: #3d4a45;
	--color-muted: #5a685f; /* darkened from #6b7871: original failed WCAG AA (4.39:1) against --color-surface-alt */
	--color-line: #e2e8e4;
	--color-surface: #ffffff;
	--color-surface-alt: #f7faf8;

	--font-heading: 'Manrope', 'Segoe UI', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;

	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;

	--shadow-sm: 0 1px 2px rgba(15, 61, 46, 0.06), 0 1px 3px rgba(15, 61, 46, 0.08);
	--shadow-md: 0 8px 24px rgba(15, 61, 46, 0.10);

	--container-width: 1200px;
	--space-section: clamp(48px, 8vw, 96px);

	--sticky-cta-height: 60px;
}

/*--------------------------------------------------------------
# Reset & base
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-body);
	background: var(--color-surface);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-ink);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 800;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-green-700);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

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

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

/*--------------------------------------------------------------
# Accessibility helpers (required WP classes)
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--color-ink);
	display: block;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Alignments (required WP classes)
--------------------------------------------------------------*/
.alignleft {
	float: left;
	margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 1.5em auto;
}

.alignwide {
	max-width: calc(var(--container-width) + 160px);
}

.alignfull {
	max-width: none;
}

/*--------------------------------------------------------------
# Layout / container
--------------------------------------------------------------*/
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: var(--space-section) 0;
}

.section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

.section-header .eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-green-700);
	margin-bottom: 8px;
}

.section-header p {
	color: var(--color-muted);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--radius-sm);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	text-decoration: none;
}

.btn:hover,
.btn:focus {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--color-green-700);
	color: #fff;
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--color-green-800);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.btn-outline:hover,
.btn-outline:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.btn-outline-dark {
	background: transparent;
	border-color: var(--color-green-700);
	color: var(--color-green-700);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
	background: var(--color-green-50);
	color: var(--color-green-800);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-line);
}

/*
 * Single-row header: logo, then menu, then phone + CTA buttons on the
 * right. Dropdown panels anchor to .site-header (sticky = a positioning
 * context) so they span the full header width.
 */
.header-grid {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 20px 24px;
	transition: padding 0.25s ease;
}

.site-header.is-scrolled .header-grid {
	padding: 10px 24px;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/*
 * Single logo file, one <img>. On scroll the image itself enlarges
 * (height grows) and shifts up, while its container - a fixed-height
 * "window" with overflow:hidden - stays comparatively short. The
 * result: the header bar naturally crops the now-larger logo at top
 * and bottom, isolating the GRESBUD wordmark in the middle, with a
 * small sliver of the roof and the bar still peeking in at the edges.
 */
.site-logo-link {
	position: relative;
	display: block;
	overflow: hidden;
	height: 60px;
	/* Matches logo-red-green.svg's own aspect ratio (850x658.81) at
	 * height 60px - the unscrolled state shows the whole logo, no
	 * cropping. */
	width: 77.4px;
	transition: height 0.3s ease, width 0.3s ease;
}

.site-header.is-scrolled .site-logo-link {
	height: 44px;
	width: 130px;
}

.site-logo {
	position: absolute;
	top: 0;
	left: 0;
	height: 60px;
	width: auto;
	max-width: none;
	transform: translateY(0);
	transition: height 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled .site-logo {
	/* Enlarging the logo to ~1.7x and shifting it up by the same amount
	 * centers the wordmark band in the 44px window; the roof (ending
	 * around 47px into the enlarged image) and the bar (starting
	 * around 82px in) both just barely poke into view at the edges. */
	height: 100px;
	transform: translateY(-43px);
}

/*
 * Everything to the right of the logo (menu, hamburger, phone/CTA
 * buttons) lives in one flex-end group, so it stays flush against the
 * right edge as a whole - whether the menu is inline or has collapsed
 * to a hamburger. Order in the markup is nav, then hamburger, then
 * the buttons, so the hamburger sits to the left of the buttons.
 */
.header-right {
	/* Grows to fill the space next to the logo, but never shrinks below
	 * its natural content width - if there isn't room, header-grid
	 * overflows (measurably, via scrollWidth) instead of this group
	 * silently compressing its contents. */
	flex-grow: 1;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

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

.header-actions .btn {
	padding: 8px 20px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.site-branding .site-title {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 800;
	color: var(--color-ink);
	margin: 0;
}

.site-branding .site-title a {
	color: inherit;
}

.main-navigation {
	display: flex;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--color-ink);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--color-green-700);
	text-decoration: none;
}

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

.main-navigation .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 901px) {
	/*
	 * Dropdown panels are positioned against .site-header (sticky = a
	 * positioning context, full header width), not against the individual
	 * <li>, so they appear as a single full-width block under the whole
	 * header rather than a small flyout under just the "Oferta" item.
	 */
	.main-navigation .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 8px 32px;
		max-width: var(--container-width);
		margin: 0 auto;
		background: var(--color-surface);
		border-top: 1px solid var(--color-line);
		box-shadow: var(--shadow-md);
		padding: 20px 24px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		/*
		 * Keep the panel available briefly after the pointer leaves it. This
		 * gives users enough time to move diagonally between nested category
		 * levels without making the menu feel slow when it opens.
		 */
		transition: opacity 0.15s ease 0.25s, transform 0.15s ease 0.25s, visibility 0s linear 0.4s;
		z-index: 50;
	}

	.main-navigation .menu-item-has-children:hover > .sub-menu,
	.main-navigation .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.main-navigation .sub-menu li {
		border: none;
	}

	.main-navigation .sub-menu a {
		display: block;
		padding: 8px 14px;
		border-radius: var(--radius-sm);
		font-weight: 500;
	}

	.main-navigation .sub-menu a:hover,
	.main-navigation .sub-menu a:focus {
		background: var(--color-green-50);
	}
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.menu-toggle .bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-ink);
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/*--------------------------------------------------------------
# Collapsed navigation (hamburger)
--------------------------------------------------------------*/
/*
 * The menu never wraps - navigation.js measures whether it actually
 * fits the header and adds/removes "nav-collapsed" on #masthead
 * accordingly. That means the switch to a hamburger happens whenever
 * space runs out (a crowded window, a long menu, a narrow phone),
 * not at one fixed screen-width breakpoint. The phone/CTA buttons
 * stay visible throughout - only the menu itself collapses, and the
 * hamburger appears right where the menu used to be, next to them.
 */
.site-header.nav-collapsed .menu-toggle {
	display: block;
}

.site-header.nav-collapsed .main-navigation {
	position: fixed;
	top: var(--header-height, 72px);
	right: 0;
	bottom: 0;
	left: 30%;
	background: var(--color-surface);
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding: 16px 24px 32px;
	overflow-y: auto;
	box-shadow: -8px 0 24px rgba(15, 61, 46, 0.12);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 550;
}

.site-header.nav-collapsed .main-navigation.is-open {
	transform: translateX(0);
}

.site-header.nav-collapsed .main-navigation ul {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
}

.site-header.nav-collapsed .main-navigation li {
	width: 100%;
	border-bottom: 1px solid var(--color-line);
}

.site-header.nav-collapsed .main-navigation a {
	display: block;
	padding: 14px 0;
}

.site-header.nav-collapsed .main-navigation .sub-menu {
	padding-left: 16px;
	border-top: 1px solid var(--color-line);
}

.site-header.nav-collapsed .main-navigation .sub-menu li {
	border-bottom: none;
}

.site-header.nav-collapsed .main-navigation .sub-menu a {
	padding: 10px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--color-muted);
}

/*
 * Keep the compact navigation readable: the top-level item is level 1,
 * its direct submenu is level 2, and the next submenu is level 3. Deeper
 * catalog branches remain available on their landing pages and in the full
 * desktop navigation, but are omitted from the mobile/off-canvas panel.
 */
.site-header.nav-collapsed .main-navigation .sub-menu .sub-menu .sub-menu {
	display: none;
}

.site-header.nav-collapsed .main-navigation .sub-menu .sub-menu > .menu-item-has-children > a::after {
	display: none;
}

/*
 * Stable first paint on small screens. The tiny script in <head> adds .js
 * before CSS is parsed, while navigation.js adds .nav-ready immediately
 * after its first synchronous width measurement. Until then, render the
 * same off-canvas layout as .nav-collapsed so the full menu cannot enter the
 * document flow and move the page when deferred JavaScript starts. Without
 * JavaScript these rules do not apply, leaving the complete menu accessible.
 */
@media (max-width: 900px) {
	.js .site-header:not(.nav-ready) .menu-toggle {
		display: block;
	}

	.js .site-header:not(.nav-ready) .main-navigation {
		position: fixed;
		top: var(--header-height, 72px);
		right: 0;
		bottom: 0;
		left: 30%;
		background: var(--color-surface);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 16px 24px 32px;
		overflow-y: auto;
		box-shadow: -8px 0 24px rgba(15, 61, 46, 0.12);
		transform: translateX(100%);
		transition: none;
		z-index: 550;
	}

	.js .site-header:not(.nav-ready) .main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		width: 100%;
	}

	.js .site-header:not(.nav-ready) .main-navigation li {
		width: 100%;
		border-bottom: 1px solid var(--color-line);
	}

	.js .site-header:not(.nav-ready) .main-navigation a {
		display: block;
		padding: 14px 0;
	}

	.js .site-header:not(.nav-ready) .main-navigation .sub-menu {
		padding-left: 16px;
		border-top: 1px solid var(--color-line);
	}

	.js .site-header:not(.nav-ready) .main-navigation .sub-menu li {
		border-bottom: none;
	}

	.js .site-header:not(.nav-ready) .main-navigation .sub-menu a {
		padding: 10px 0;
		font-size: 13px;
		font-weight: 500;
		color: var(--color-muted);
	}

	.js .site-header:not(.nav-ready) .main-navigation .sub-menu .sub-menu .sub-menu {
		display: none;
	}

	.js .site-header:not(.nav-ready) .main-navigation .sub-menu .sub-menu > .menu-item-has-children > a::after {
		display: none;
	}
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
	position: relative;
	background: var(--color-surface);
	/*
	 * Ideally 560px tall, but on shorter viewports (common 1366x768
	 * laptops and mobile browsers with an on-screen address bar sit at
	 * ~600-650px of *usable* height once the ~100px sticky header is
	 * subtracted) that would push the CTA button below the fold. This
	 * scales the hero down to fit the actual available space instead,
	 * with a 420px floor so content never gets too cramped.
	 */
	min-height: clamp(420px, calc(100vh - 105px), 560px);
	display: flex;
	align-items: center;
}

/*
 * The photo is a full-bleed block pinned to the right edge of the
 * viewport (not the centered container), so it always touches the
 * browser edge regardless of screen width.
 */
.hero-media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 48%;
	clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media img,
.hero-media > div {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 64px 24px;
}

@media (max-height: 700px) {
	.hero-inner {
		padding-top: 32px;
		padding-bottom: 32px;
	}
}

.hero-content {
	max-width: 50%;
}

.hero-content h1 {
	font-size: clamp(32px, 4vw, 48px);
	margin-bottom: 20px;
}

.hero-content h1 .accent {
	color: var(--color-green-700);
}

.hero-content .lede {
	font-size: 17px;
	color: var(--color-muted);
	max-width: 480px;
	margin-bottom: 20px;
}

.hero-trust-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hero-trust-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--color-ink);
	font-size: 15px;
}

.hero-trust-list .check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--color-green-100);
	color: var(--color-green-700);
	flex-shrink: 0;
	font-size: 13px;
}

.hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.hero-actions .btn-primary {
	background: var(--color-green-700);
	color: #fff;
}

.hero-social-proof {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--color-muted);
}

.hero-social-proof .avatars {
	display: flex;
}

/*
 * Each avatar gets a translucent brand-green wash (mix-blend-mode:
 * color keeps the photo's own light/shadow detail, only shifts its
 * hue) in a different shade per avatar, so the three photos read as
 * one designed set rather than random stock/AI photos.
 */
.avatar-tint {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--color-surface);
	margin-left: -10px;
}

.avatar-tint:first-child {
	margin-left: 0;
}

.avatar-tint img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(25%);
}

.avatar-tint::after {
	content: '';
	position: absolute;
	inset: 0;
	mix-blend-mode: color;
	opacity: 0.6;
}

.avatar-tint--1::after,
.avatar-tint--2::after,
.avatar-tint--3::after {
	background: var(--color-ink);
}

/*--------------------------------------------------------------
# Trust bar (dark strip)
--------------------------------------------------------------*/
.trust-bar {
	background: var(--color-green-900);
	color: #fff;
}

.trust-bar .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.trust-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.trust-item .icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-green-500);
}

.trust-item .icon img {
	width: 20px;
	height: 20px;
	/* Source icons are black line art on transparent PNG; this turns
	 * them solid white to sit on the dark circle background. */
	filter: brightness(0) invert(1);
}

.trust-item h2 {
	color: #fff;
	font-size: 15px;
	margin-bottom: 4px;
}

.trust-item p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/*--------------------------------------------------------------
# Services grid
--------------------------------------------------------------*/
.services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.service-card {
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.service-card .thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--color-green-100), var(--color-green-50));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.service-card .thumb img {
	width: 100%;
	height: 100%;
	/* Product line-art, not a photo - contain (not cover) so the whole
	 * illustration stays visible instead of getting cropped. */
	object-fit: contain;
}

.service-card .body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.service-card .icon {
	display: block;
	width: 36px;
	height: 36px;
	color: var(--color-green-700);
	margin-bottom: 12px;
}

.service-card .icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.service-card h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

.service-card p {
	font-size: 14px;
	color: var(--color-muted);
	flex: 1;
}

.service-card .price {
	margin-top: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--color-ink);
}

.service-card .price span {
	color: var(--color-red-600);
}

/* Mobile compact icon-only variant */
.services-grid.is-compact {
	display: none;
}

/*--------------------------------------------------------------
# Partners carousel
--------------------------------------------------------------*/
/*
 * Light background, single-color (monochrome) logos rather than each
 * partner's own brand colors - keeps the strip calm and consistent
 * instead of a clash of unrelated palettes. Pure CSS marquee (no JS
 * library): the list is rendered twice in the markup and the track
 * animates exactly -50% of its own width, so it loops seamlessly
 * from the second copy back into the first.
 */
.partners-carousel {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 64px;
	padding: 8px 32px;
	animation: partners-scroll 55s linear infinite;
}

.partners-carousel:hover .partners-track {
	animation-play-state: paused;
}

/*
 * Grayscale-to-color reveal via filter (not a solid-color mask): this
 * preserves each logo's own light/dark contrast - a mask fill turns
 * every visible pixel into one flat gray, which made higher-contrast
 * logos (e.g. Pruszyński) look washed out. Hover fades the filter back
 * to full color.
 */
.partner-logo {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	height: 32px;
}

/* Loga z linkiem renderują się jako <a>, nie <span> (inc/partnerzy.php) -
 * bez tego dostałyby domyślne podkreślenie motywu na hover (patrz reguła
 * "a:hover, a:focus" w sekcji Reset), co pod ikoną loga wyglądałoby źle. */
a.partner-logo:hover,
a.partner-logo:focus {
	text-decoration: none;
}

/* Logo w wersji WebP+PNG (inc/wkrotce-wiecej.php... front-page.php) siedzi
 * w <picture>, który domyślnie nie ma własnej wysokości - bez tej reguły
 * "height: 100%" na obrazku poniżej nie miałby względem czego się liczyć
 * i renderowałby się w pełnym, nieprzeskalowanym rozmiarze pliku. */
.partner-logo picture {
	display: block;
	height: 100%;
}

/* Efekt "szarość -> pełny kolor" na hover, identyczny dla KAŻDEGO loga bez
 * wyjątków (26.07.2026: usunięty wcześniejszy per-logo checkbox "Pełny
 * kolor" - narzędzie do zarządzania partnerami przez ACF ma być
 * uniwersalne, ten sam efekt dla każdego nowego partnera, bez decydowania
 * o specjalnym traktowaniu przy dodawaniu). */
.partner-logo-color {
	display: block;
	height: 100%;
	width: auto;
	filter: grayscale(100%) contrast(1.15);
	transition: filter 0.3s ease;
}

.partner-logo:hover .partner-logo-color {
	filter: grayscale(0%) contrast(1);
}

@keyframes partners-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.partners-track {
		animation: none;
	}
}

/*--------------------------------------------------------------
# Split CTA (testimonial + CTA)
--------------------------------------------------------------*/
.split-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.split-cta .quote-card {
	background: var(--color-green-900);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.split-cta .quote-card .mark {
	font-family: var(--font-heading);
	font-size: 48px;
	color: var(--color-green-500);
	line-height: 1;
	margin-bottom: 12px;
}

/*
 * All slides share the same grid cell, so the container's height
 * always matches the tallest review (no fixed min-height guess, no
 * layout jump when a shorter/longer one becomes active).
 */
.testimonial-slides {
	display: grid;
	margin-bottom: 20px;
}

.testimonial-slide {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.testimonial-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.testimonial-slide p {
	font-size: 17px;
	line-height: 1.5;
	margin: 0 0 20px;
}

.split-cta .quote-card .author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.avatar-initial {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 17px;
	color: #fff;
}

.split-cta .quote-card .author .stars {
	color: var(--color-green-500);
	font-size: 13px;
}

.stars-source {
	color: rgba(255, 255, 255, 0.5);
}

.testimonial-dots {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.testimonial-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-dot:hover {
	background: rgba(255, 255, 255, 0.55);
}

.testimonial-dot.is-active {
	background: var(--color-green-500);
	transform: scale(1.2);
}

.split-cta .action-card {
	background: var(--color-green-50);
	border: 1px solid var(--color-green-100);
	border-radius: var(--radius-lg);
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.split-cta .action-card h3 {
	font-size: 24px;
	margin-bottom: 10px;
}

.split-cta .action-card p {
	color: var(--color-body);
	margin-bottom: 20px;
}

.split-cta .action-card .accent {
	color: var(--color-red-600);
}

.split-cta .action-card .badges {
	display: flex;
	gap: 16px;
	margin-top: 20px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--color-muted);
}

.split-cta .action-card .badges li {
	display: flex;
	align-items: center;
	gap: 6px;
}

/*--------------------------------------------------------------
# Realizacje dla instytucji publicznych
--------------------------------------------------------------*/
.certs-instytucje-rzad {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.certs-instytucje-rzad + .certs-instytucje-rzad {
	margin-top: 32px;
}

/* <picture> nie ma domyślnie własnej wysokości - bez tego obrazek w środku
 * (height: 100%) nie miałby względem czego się policzyć i wyświetlałby się
 * w pełnym, nieprzeskalowanym rozmiarze pliku (ta sama pułapka co przy
 * .partner-logo picture, patrz wyżej). */
.certs-instytucja-logo {
	display: block;
	height: 72px;
}

.certs-instytucja-logo img {
	display: block;
	height: 100%;
	width: auto;
}

@media (max-width: 700px) {
	.certs-instytucje-rzad {
		gap: 24px;
	}

	.certs-instytucje-rzad + .certs-instytucje-rzad {
		margin-top: 20px;
	}

	.certs-instytucja-logo {
		height: 52px;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--color-green-900);
	color: rgba(255, 255, 255, 0.85);
	padding: 56px 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 40px;
}

.footer-grid h3 {
	color: #fff;
	font-size: 15px;
	margin-bottom: 16px;
}

.footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.footer-grid a {
	color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
	color: #fff;
}

.footer-logo {
	height: 40px;
	width: auto;
	margin-bottom: 16px;
}

.footer-brand p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

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

.footer-social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.footer-obszar {
	margin: 40px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.footer-obszar strong {
	color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
	color: rgba(255, 255, 255, 0.6);
}

.footer-privacy-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-privacy-links .gresbud-consent-settings {
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.footer-privacy-links .gresbud-consent-settings:hover,
.footer-privacy-links .gresbud-consent-settings:focus-visible {
	color: #fff;
}

/*--------------------------------------------------------------
# Sticky mobile CTA bar
--------------------------------------------------------------*/
.sticky-cta-bar {
	display: none;
}

@media (max-width: 700px) {
	/* Same breakpoint as the sticky bottom bar below: once it takes over
	 * "call" and "get a quote", the header only needs the logo and the
	 * hamburger, not a second copy of those actions up top. */
	.header-actions {
		display: none;
	}

	/* Zarezerwuj miejsce na dole strony TYLKO tutaj, gdzie pasek faktycznie
	 * się pokazuje - wcześniej ten padding był na body bezwarunkowo, więc
	 * na desktopie/tablecie zostawiał puste białe miejsce pod stopką, mimo
	 * że pasek (position:fixed) w ogóle się tam nie renderował. */
	body {
		padding-bottom: var(--sticky-cta-height);
	}

	/* Ten sam pasek (position:fixed, z-index wyżej niż panel menu) zasłaniał
	 * ostatnią pozycję rozwiniętego menu mobilnego, bo panel sięgał do
	 * samego dołu ekranu (bottom: 0) bez uwzględnienia paska na wierzchu. */
	.site-header.nav-collapsed .main-navigation {
		bottom: var(--sticky-cta-height);
	}

	.sticky-cta-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 600;
		height: var(--sticky-cta-height);
		box-shadow: 0 -4px 16px rgba(15, 61, 46, 0.15);
	}

	.sticky-cta-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		font-family: var(--font-heading);
		font-weight: 700;
		font-size: 14px;
		text-decoration: none;
	}

	.sticky-cta-bar .call {
		background: var(--color-ink);
		color: #fff;
	}

	.sticky-cta-bar .quote {
		background: var(--color-green-700);
		color: #fff;
	}
}

/*--------------------------------------------------------------
# Blog / single / archive / page / search / 404
--------------------------------------------------------------*/
.content-area {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: var(--space-section) 24px;
}

/* Comfortable reading width for single posts and pages - the full
 * 1200px container is too wide for body text, but the featured image
 * (post-thumbnail) is allowed to bleed to the full content-area width
 * via a negative-margin escape hatch below. */
.content-area--narrow {
	max-width: 760px;
}

/* Strona Kontakt (page-kontakt.php) - układ dwukolumnowy: treść+formularz
 * po lewej, mapa po prawej. Świadomie NIE content-area--narrow - dwie
 * kolumny potrzebują pełnej szerokości kontenera. */
.kontakt-uklad {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

.kontakt-tresc {
	max-width: 480px;
}

.kontakt-mapa {
	position: sticky;
	top: calc(var(--header-height, 80px) + 24px);
	aspect-ratio: 4 / 5;
	background: var(--color-surface-alt);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	overflow: hidden;
}

.kontakt-mapa iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.kontakt-mapa-przycisk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: var(--radius-sm);
	border: 2px solid var(--color-green-700);
	background: var(--color-surface);
	color: var(--color-green-700);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kontakt-mapa-przycisk:hover {
	background: var(--color-green-50);
}

.kontakt-mapa-adres {
	margin: 0;
	color: var(--color-muted);
	font-size: 14px;
}

@media (max-width: 900px) {
	.kontakt-uklad {
		grid-template-columns: 1fr;
	}

	.kontakt-tresc {
		max-width: none;
	}

	.kontakt-mapa {
		position: static;
		aspect-ratio: 16 / 9;
	}
}

.page-header {
	margin-bottom: 32px;
}

.page-title {
	font-size: clamp(28px, 4vw, 38px);
}

.archive-description {
	color: var(--color-muted);
	margin-top: 8px;
}

/* Archive/search results grid of teaser cards. */
.archive-grid {
	display: grid;
	gap: 32px;
}

.archive-grid article {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--color-line);
}

/* Bez zdjęcia wyróżniającego .entry-body zostaje jedynym dzieckiem tego
 * grida - bez tej reguły trafiał samoistnie do pierwszej (wąskiej, 240px)
 * kolumny, ścieśniając całą treść niezależnie od szerokości ekranu.
 * post_class() dorzuca klasę has-post-thumbnail automatycznie, gdy zdjęcie
 * jest ustawione - stąd :not() zamiast dodatkowej logiki w PHP. */
.archive-grid article:not(.has-post-thumbnail) {
	grid-template-columns: 1fr;
}

.archive-grid article:last-child {
	border-bottom: none;
}

.archive-grid .post-thumbnail {
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.archive-grid .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-title {
	font-size: 24px;
	margin-bottom: 6px;
}

.entry-title a {
	color: var(--color-ink);
}

.entry-title a:hover {
	color: var(--color-green-700);
	text-decoration: none;
}

.entry-meta {
	color: var(--color-muted);
	font-size: 13px;
	margin-bottom: 12px;
}

.entry-meta .byline {
	margin-left: 4px;
}

.entry-meta a {
	color: inherit;
}

.entry-summary p {
	color: var(--color-body);
}

.entry-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 14px;
	color: var(--color-green-700);
}

.entry-footer {
	margin-top: 12px;
	font-size: 13px;
	color: var(--color-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.entry-footer .cat-links a,
.entry-footer .tags-links a {
	color: var(--color-green-700);
}

/* "Realizacje" (case study) custom post type - grid card meta line + single
 * summary box. Reuses the same visual language as the quote form's
 * .gresbud-wycena-podsumowanie (surface-alt card, label/value rows). */
.realizacja-meta {
	font-size: 13px;
	color: var(--color-muted);
	margin: 2px 0 8px;
}

.realizacja-summary {
	background: var(--color-surface-alt);
	border-radius: var(--radius-md);
	padding: 4px 20px;
	margin: 20px 0 28px;
}

.realizacja-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--color-line);
	font-size: 14px;
}

.realizacja-summary-row:last-child {
	border-bottom: none;
}

.realizacja-summary-label {
	color: var(--color-muted);
	flex-shrink: 0;
}

.realizacja-summary-value {
	color: var(--color-ink);
	font-weight: 600;
	text-align: right;
}

.realizacja-cta {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--color-line);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.realizacja-cta p {
	margin: 0;
	font-weight: 600;
	color: var(--color-ink);
}

/* Single post / page: full-content-width featured image, narrow text
 * column below it. */
.content-area--narrow > article > .post-thumbnail {
	margin: 0 0 32px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.content-area--narrow > article > .post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.content-area--narrow .entry-title {
	font-size: clamp(28px, 4vw, 40px);
}

/* Rich-text typography inside post/page content. */
.entry-content h2 {
	font-size: 26px;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 21px;
	margin-top: 1.4em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-bottom: 1.2em;
	line-height: 1.7;
}

.entry-content a {
	color: var(--color-green-700);
	text-decoration: underline;
}

.entry-content img {
	border-radius: var(--radius-md);
	margin: 8px 0;
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 4px 24px;
	border-left: 3px solid var(--color-green-700);
	color: var(--color-body);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--color-line);
	text-align: left;
}

.entry-content th {
	background: var(--color-surface-alt);
	font-family: var(--font-heading);
}

/* "Więcej wkrótce" (inc/wkrotce-wiecej.php) - wstawiane POD prawdziwą
 * treścią strony, nie zamiast niej. */
.gresbud-wkrotce {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-top: 32px;
	padding: 20px 24px 24px;
	background: var(--color-green-50);
	border: 1px solid var(--color-green-100);
	border-radius: var(--radius-md);
}

.gresbud-wkrotce-tresc {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.gresbud-wkrotce-grafika {
	display: block;
	width: 100%;
	height: auto;
}

.gresbud-wkrotce-ikona {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--color-surface);
	color: var(--color-green-700);
}

.gresbud-wkrotce p {
	margin: 0;
	color: var(--color-green-800);
	font-weight: 600;
}

/* FAQ accordion (inc/faq.php) - native <details>/<summary>, no JS needed,
 * keyboard/screen-reader accessible by default. */
.gresbud-faq {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--color-line);
}

.gresbud-faq-title {
	font-size: clamp(20px, 3vw, 26px);
	margin-bottom: 16px;
}

.gresbud-faq-item {
	border-bottom: 1px solid var(--color-line);
}

.gresbud-faq-item:first-of-type {
	border-top: 1px solid var(--color-line);
}

.gresbud-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 4px;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-ink);
	cursor: pointer;
	list-style: none;
}

.gresbud-faq-question::-webkit-details-marker {
	display: none;
}

.gresbud-faq-question::after {
	content: '+';
	flex-shrink: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--color-green-700);
	transition: transform 0.15s ease;
}

.gresbud-faq-item[open] .gresbud-faq-question::after {
	transform: rotate(45deg);
}

.gresbud-faq-answer {
	padding: 0 4px 18px;
	color: var(--color-body);
}

.gresbud-faq-answer p:last-child {
	margin-bottom: 0;
}

/* Prev/next post navigation. */
.nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 40px 0;
}

.nav-links .nav-previous,
.nav-links .nav-next {
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	padding: 16px 20px;
}

.nav-links .nav-next {
	text-align: right;
}

.nav-links .nav-subtitle {
	display: block;
	font-size: 12px;
	color: var(--color-muted);
	margin-bottom: 4px;
}

.nav-links .nav-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-ink);
}

.nav-links a:hover .nav-title {
	color: var(--color-green-700);
}

.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	margin-right: 6px;
	color: var(--color-ink);
}

.page-numbers.current {
	background: var(--color-green-700);
	border-color: var(--color-green-700);
	color: #fff;
}

a.page-numbers:hover {
	border-color: var(--color-green-700);
	text-decoration: none;
}

/* Comments. */
.comments-area {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-line);
}

.comments-title {
	font-size: 22px;
}

.comment-list {
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 32px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--color-line);
}

/* Awatar okrągły, po lewej stronie nazwy i daty. .comment-meta grupuje
 * .comment-author (awatar+nazwa) i .comment-metadata (data) w jednym
 * rzędzie; .comment-author sam jest flexem, więc awatar zawsze wyprzedza
 * tekst nazwy. */
.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-bottom: 8px;
}

.comment-author.vcard {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: block;
	flex-shrink: 0;
}

.comment-author .says {
	display: none;
}

.comment-author .fn {
	font-family: var(--font-heading);
	font-weight: 700;
	font-style: normal;
	color: var(--color-ink);
}

.comment-metadata {
	font-size: 12px;
	color: var(--color-muted);
	margin-bottom: 0;
}

.comment-metadata a {
	color: inherit;
}

/* Link "Anuluj pisanie odpowiedzi" - domyślnie w tym samym <small> co
 * "Odpowiedz X", tuż obok tekstu; wymuszamy nową linię pod spodem. */
.comment-reply-title small {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: normal;
}

.comment-content p {
	margin-bottom: 0.6em;
}

.comment-reply-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-green-700);
}

/* Notatka "Twój adres e-mail nie zostanie opublikowany..." - przeniesiona
 * pod pole e-mail (inc/comment-antispam.php). */
.comment-notes {
	font-size: 12px;
	color: var(--color-muted);
	margin: 6px 0 0;
}

/* Baner po wysłaniu komentarza oczekującego na moderację (comments.php). */
.gresbud-comment-notice {
	background: var(--color-green-50);
	border: 1px solid var(--color-green-100);
	border-radius: var(--radius-sm);
	padding: 14px 18px;
	margin: 24px 0;
	color: var(--color-green-800);
	font-size: 14px;
}

#respond {
	margin-top: 24px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

/* Checkbox "Zapisz moje dane..." (zgoda RODO na ciasteczko) - domyślna
 * reguła .comment-form label { display:block } łamie linię między
 * checkboxem a tekstem; tu wymuszamy układ checkbox-obok-tekstu, tak jak
 * w .gresbud-wycena-checkbox / .gresbud-kontakt-checkbox. */
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: normal;
	margin: 0;
}

/* Honeypot antyspamowy dla komentarzy (inc/comment-antispam.php) - ukryte
 * CSS-em, nie display:none, żeby pole zostało wypełnione przez boty
 * ignorujące style. */
.gresbud-comment-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-size: 15px;
	box-sizing: border-box;
	margin-bottom: 16px;
}

.comment-form .form-submit input {
	display: inline-flex;
	padding: 12px 24px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--color-green-700);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	cursor: pointer;
}

.comment-form .form-submit input:hover {
	background: var(--color-green-800);
}

/* WordPress core search form (get_search_form()). */
.search-form {
	display: flex;
	gap: 10px;
	margin: 24px 0;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-size: 15px;
}

.search-form .search-submit {
	padding: 12px 20px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--color-green-700);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--color-green-800);
}

/* 404 page. */
.error-404-inner {
	max-width: 560px;
	text-align: center;
	padding: var(--space-section) 24px;
}

.error-404-code {
	font-family: var(--font-heading);
	font-size: 72px;
	font-weight: 800;
	color: var(--color-green-100);
	margin: 0;
	line-height: 1;
}

.error-404-lede {
	color: var(--color-muted);
	margin: 12px 0 24px;
}

.error-404-inner .search-form {
	margin: 0 auto 28px;
}

.error-404-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 700px) {
	.archive-grid article {
		grid-template-columns: 1fr;
	}

	.archive-grid .post-thumbnail {
		aspect-ratio: 16 / 9;
	}

	.nav-links {
		grid-template-columns: 1fr;
	}
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 900px) {
	/* Text first, photo last: stack the two blocks in reverse of their
	 * DOM order so the image sits below "Zaufało nam..." instead of
	 * above the heading. */
	.hero {
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.hero-media {
		order: 1;
		position: relative;
		width: 100%;
		/* Wider than the photo's native ratio (1405x1119) so it takes up
		 * less vertical space on a narrow screen - object-fit:cover
		 * crops the top/bottom rather than showing the full frame. */
		aspect-ratio: 16 / 9;
		/* Subtle diagonal top edge, right corner higher (less cropped)
		 * than the left. */
		clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
	}

	.hero-inner {
		padding: 32px 24px;
	}

	.hero-content {
		max-width: none;
	}

	.trust-bar .container {
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
		text-align: center;
	}

	.trust-item {
		flex-direction: column;
		align-items: center;
		gap: 6px;
	}

	.trust-item p {
		display: none;
	}

	.services-grid {
		display: none;
	}

	.services-grid.is-compact {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.services-grid.is-compact .service-card {
		border: none;
		align-items: center;
		text-align: center;
		background: transparent;
	}

	.services-grid.is-compact .service-card .thumb {
		display: none;
	}

	.services-grid.is-compact .service-card .body {
		align-items: center;
		padding: 8px 4px;
	}

	.services-grid.is-compact .service-card .icon {
		width: 56px;
		height: 56px;
		margin: 0 auto 8px;
	}

	.services-grid.is-compact .service-card p,
	.services-grid.is-compact .service-card .price {
		display: none;
	}

	.services-grid.is-compact .service-card h3 {
		font-size: 13px;
		margin: 0;
	}

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

	.certs-bar .container {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.partners-track {
		gap: 40px;
		animation-duration: 38s;
	}

	.partner-logo {
		height: 24px;
	}

	.split-cta {
		grid-template-columns: 1fr;
	}

	.hero-actions {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.hero-actions .btn {
		flex: 1;
		min-width: 0;
		padding: 12px 10px;
		font-size: 13px;
	}
}

/*--------------------------------------------------------------
# Strona główna katalogu (page-oferta-materialy-budowlane.php)
--------------------------------------------------------------*/
/* Tylko 3 kategorie (nie 4 jak na stronie głównej) - węższa siatka. Poniżej
 * 900px ta wersja chowa się (dziedziczy regułę .services-grid domyślną z
 * front-page.php), a jej miejsce zajmuje .oferta-kategorie-siatka-kompakt
 * (ikony) - dokładnie ten sam wzorzec co "Nasza oferta" na stronie głównej. */
.oferta-kategorie-siatka {
	grid-template-columns: repeat(3, 1fr);
	margin-top: 40px;
}

.oferta-kategorie-siatka-kompakt {
	margin-top: 40px;
}

/*--------------------------------------------------------------
# Nawigacja po katalogu ofertowym (inc/katalog-nawigacja.php)
--------------------------------------------------------------*/
.katalog-dzieci {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-line);
}

.katalog-dzieci-tytul {
	font-size: 20px;
	margin-bottom: 16px;
}

.katalog-dzieci-siatka {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.katalog-kafelek {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: var(--color-green-50);
	border: 1px solid var(--color-green-100);
	border-radius: var(--radius-md);
	font-weight: 600;
	color: var(--color-ink);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.katalog-kafelek:hover {
	background: var(--color-green-100);
	border-color: var(--color-green-600);
	color: var(--color-ink);
}

.katalog-kafelek-strzalka {
	flex-shrink: 0;
	color: var(--color-green-700);
}

.katalog-siblings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--color-line);
	font-size: 14px;
}

.katalog-siblings-wstecz {
	font-weight: 600;
	color: var(--color-green-700);
	white-space: nowrap;
}

.katalog-siblings-lista {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	color: var(--color-muted);
}

.katalog-siblings-lista a {
	color: var(--color-muted);
	text-decoration: underline;
	text-decoration-color: var(--color-line);
	text-underline-offset: 3px;
}

.katalog-siblings-lista a:hover {
	color: var(--color-green-700);
}

.katalog-siblings-lista span[aria-hidden] {
	margin: 0 2px;
}

@media (max-width: 560px) {
	.katalog-dzieci-siatka {
		grid-template-columns: 1fr;
	}

	.katalog-siblings {
		flex-direction: column;
		align-items: flex-start;
	}
}

/*--------------------------------------------------------------
# Panel społecznościowy (Facebook/Google Maps) - przeniesiony z
# wtyczki Custom CSS & JS (wpis #2599 "Gresbud - CSS") do motywu,
# Etap 1 porządkowania ładowania zasobów, 2026-08-04. Style bez zmian
# względem oryginału.
--------------------------------------------------------------*/
.sm-panel {
	position: fixed;
	width: 155px;
	top: 150px;
	right: -105px;
	z-index: 1000000;
	transition: visibility .25s, opacity .25s;
}

.sm-panel > ul {
	margin: 0;
	margin-bottom: 2px;
	padding: 0;
	list-style-type: none;
}

.sm-panel > ul > li {
	transition: transform .25s;
	margin-bottom: 5px;
}

.sm-panel > ul > li:hover {
	transform: translateX(-105px);
}

.sm-panel > ul > li > a {
	display: flex;
	align-items: center;
	color: #fff;
	padding: 5px 0 5px 5px;
	text-decoration: none;
}

.sm-panel > ul > li > a > img {
	margin: 0 10px 0 0;
}

.sm-panel > ul > li > a > span {
	font-size: initial;
}

.sm-panel > ul > li[class^="sm-"] {
	background-image: none;
	background-repeat: repeat;
	background-attachment: scroll;
	background-position: 0;
}

.sm-text-black {
	color: #000;
}

.sm-fb {
	background: #1977f3;
}

.sm-gmap {
	background: #333;
}

@media screen and (max-width: 640px) {
	.sm-panel {
		visibility: hidden;
		opacity: 0;
	}
}
