:root {
	--wood: #8b5e3c;
	--graphite: #232323;
	--white: #ffffff;
	--light: #f5f5f5;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	position: relative;
	background: #fff;
	color: #232323;
	font-family: Poppins, sans-serif;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.03;
	z-index: 9999;
}

a:not(.btn) {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:not(.btn):hover,
a:not(.btn):focus-visible {
	color: var(--wood);
}

section {
	padding: 100px 0;
}

h2 {
	margin-bottom: 50px;
	font-size: 40px;
	text-align: center;
}

.container {
	width: min(1200px, 90%);
	margin: auto;
}

/* Header */

header {
	position: fixed;
	width: 100%;
	background: rgba(35, 35, 35, 0.92);
	backdrop-filter: blur(10px);
	z-index: 1000;
}

nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

header nav .logo:not(.btn) {
	color: #fff;
	font-weight: 700;
	letter-spacing: 2px;
	text-decoration: none;
}

.nav-links {
	display: flex;
	gap: 40px;
	list-style: none;
}

header .nav-links a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s ease;
}

header .nav-links a:hover,
header .nav-links a.active {
	color: var(--wood);
}

header .nav-links a.active {
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.burger span {
	width: 26px;
	height: 3px;
	background: #fff;
}

/* Shared interactive elements */

.btn {
	display: inline-block;
	padding: 15px 35px;
	border: none;
	background: linear-gradient(120deg, #6f4528 0%, #8b5e3c 38%, #c8a06c 50%, #8b5e3c 62%, #6f4528 100%);
	background-position: 0% 50%;
	background-size: 220% 100%;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background-position 0.65s ease, transform 0.3s ease;
}

.btn:hover {
	background-position: 100% 50%;
	transform: translateY(-1px);
}

.cta-kicker {
	margin: 0 0 14px;
	font-size: 0.78rem;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Hero sections */

#home {
	padding: 0;
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100svh;
	height: auto;
	overflow: hidden;
	padding: 170px 0 90px;
	background: none;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #111;
	background-image: url("../images/hero_drzwi_debowe_premium_baldor_desktop.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	animation: heroMove 28s ease-in-out infinite alternate;
}

.process-hero::before {
	background-image: url("../images/hero_wspolpraca_drzwi_drewniane_premium_baldor_desktop.webp");
	animation: none;
}

.realizacje-hero::before {
	background-image: url("../images/hero_realizacje_drzwi_drewniane_premium_baldor_desktop.webp");
	animation: none;
}

.pracownia-hero::before {
	background-image: url("../images/hero_wnetrze_pracowni.webp");
	animation: none;
}

.overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: min(800px, calc(100% - 32px));
	max-width: 800px;
	padding: 20px;
	color: #fff;
	text-align: center;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.15;
	text-wrap: balance;
}

.hero .brand-heading {
	order: -1;
	max-width: none;
	margin: 0;
	font-size: clamp(3.1rem, 8vw, 5.5rem);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.hero p {
	max-width: 62ch;
	margin-bottom: 0;
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.75;
	text-wrap: pretty;
}

.hero .cta-kicker {
	max-width: none;
	font-size: 0.88rem;
	line-height: 1.3;
}

@keyframes heroMove {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.05) translateY(-8px);
	}
}

/* Section titles */

.why h2,
#process h2,
#our-story h2,
.gallery h2,
.faq h2 {
	position: relative;
	margin-bottom: 42px;
	padding-bottom: 18px;
}

.why h2::after,
#process h2::after,
#our-story h2::after,
.gallery h2::after,
.faq h2::after {
	content: "";
	display: block;
	width: 260px;
	height: 4px;
	margin: 18px auto 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='10' viewBox='0 0 220 10' preserveAspectRatio='none'%3E%3Cpath d='M2 5H218' fill='none' stroke='%238b6a46' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	opacity: 0.95;
}

/* Home: why us */

.cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.card {
	padding: 35px;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card h3 {
	margin-bottom: 15px;
}

.why .card {
	position: relative;
	overflow: hidden;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.why .card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #c8a96a, #e6cc8f);
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.why .card:hover,
.why .card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.why .card:hover::before,
.why .card:focus-within::before {
	width: 100%;
}

.why-footer {
	max-width: 900px;
	margin-top: 60px;
	margin-right: auto;
	margin-left: auto;
	padding: 20px;
	border-radius: 15px;
	background: #f5f5f5;
	color: #555;
	line-height: 1.8;
	text-align: center;
}

/* Gallery */

.gallery {
	padding: 120px 0;
	background: #faf9f7;
}

.gallery-desc {
	max-width: 700px;
	margin: 25px auto 70px;
	color: #666;
	line-height: 1.8;
	text-align: center;
}

.projects {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.project {
	color: inherit;
	text-decoration: none;
}

.project-image {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 3 / 5;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.project:hover img {
	transform: scale(1.04);
}

.project-content {
	padding: 14px 6px 4px;
}

.project-location {
	margin-bottom: 6px;
	color: #8a8a8a;
	font-size: 0.66rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.project h3 {
	margin: 0;
	font-size: 1.03rem;
	font-weight: 600;
	transition: color 0.3s ease;
}

.project:hover h3 {
	color: #8d6b3f;
}

.project-placeholder {
	cursor: pointer;
}

.gallery-more {
	margin-top: 18px;
	font-size: 0.88rem;
	text-align: center;
}

.gallery-more a {
	color: inherit;
}

.gallery-more a:hover,
.gallery-more a:focus-visible {
	color: var(--wood);
}

#home .gallery .gallery-more {
	margin-top: 38px;
}

/* Homepage CTA */

.cta-section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100svh;
	height: 100svh;
	overflow: hidden;
	padding: 0;
	margin-top: 0;
	background: #111;
}

.cta-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url("../images/cta_main_page_drzwi_drewniane_premium_baldor_desktop.webp") center/cover no-repeat, linear-gradient(135deg, #3b3129 0%, #6b5544 45%, #8b5e3c 100%);
}

.cta-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.cta-content {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
}

.cta-copy {
	max-width: 740px;
	padding: 24px;
	color: #fff8f2;
	text-align: center;
	backdrop-filter: blur(2px);
}

.cta-copy .cta-kicker {
	color: rgba(255, 255, 255, 0.78);
	text-align: center;
}

.cta-copy h2,
#home .why h2,
#home .gallery h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.1;
}

.cta-copy h2 {
	margin-bottom: 18px;
	color: #fff8f2;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.cta-copy p {
	max-width: 58ch;
	margin: 0 auto 28px;
	color: rgba(255, 248, 242, 0.92);
	font-size: 1.05rem;
	line-height: 1.8;
}

/* Content page spacing */

body.content-page .gallery {
	padding-top: 160px;
}

body.realizacje-page .gallery {
	padding-top: 100px;
}

body.content-page #process {
	padding-top: 160px;
}

body.process-page #process {
	padding-top: 100px;
}

body.content-page #our-story {
	padding: 160px 0 100px;
}

body.pracownia-page #our-story {
	padding-top: 100px;
}

/* Realizations */

.realizations-filters {
	padding: 28px 0 16px;
	background: #fff;
}

.filters-track {
	display: flex;
	justify-content: center;
	gap: 26px;
	overflow-x: auto;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.filters-track::-webkit-scrollbar {
	display: none;
}

.filter-tab {
	position: relative;
	flex: 0 0 auto;
	scroll-snap-align: start;
	padding: 6px 2px 10px;
	border: 0;
	background: transparent;
	color: #575757;
	cursor: pointer;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 500;
	transition: color 0.3s ease;
}

.filter-tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: #232323;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.filter-tab:hover,
.filter-tab:focus-visible,
.filter-tab.is-active {
	color: #232323;
}

.filter-tab:focus-visible {
	outline: 2px solid rgba(35, 35, 35, 0.45);
	outline-offset: 3px;
	border-radius: 4px;
}

.filter-tab.is-active::after {
	transform: scaleX(1);
}

.featured-realization {
	padding: 24px 0 30px;
	background: #fff;
}

.featured-realization-card {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 54px);
	align-items: center;
	padding: clamp(24px, 2.8vw, 34px);
	border-radius: 18px;
	background: #faf8f5;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease;
}

.featured-realization-card:hover,
.featured-realization-card:focus-within {
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
}

.featured-location {
	margin: 0 0 10px;
	color: #877058;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.featured-realization-copy h2 {
	margin: 0 0 14px;
	color: #232323;
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	line-height: 1.14;
	text-align: left;
	text-wrap: balance;
}

.featured-description {
	margin: 0 0 18px;
	color: #4d4d4d;
	line-height: 1.75;
}

.featured-features-label {
	margin: 0 0 8px;
	color: #343434;
	font-weight: 600;
}

.featured-features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.featured-features li {
	padding: 6px 12px;
	border-radius: 999px;
	background: #eee9e2;
	color: #4b4b4b;
	font-size: 0.84rem;
}

.featured-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	padding: 13px 28px;
	font-size: 0.92rem;
}

.featured-realization-media {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
	text-decoration: none;
}

.featured-realization-media img {
	display: block;
	width: 100%;
	height: clamp(320px, 36vw, 600px);
	object-fit: cover;
	transition: transform 0.3s ease;
}

.featured-realization-card:hover .featured-realization-media img,
.featured-realization-card:focus-within .featured-realization-media img {
	transform: scale(1.05);
}

[data-filter-item] {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-filter-item].is-filter-hidden {
	display: none !important;
}

[data-filter-item].is-filter-enter {
	animation: filterItemReveal 0.3s ease;
}

@keyframes filterItemReveal {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.realization-page .realization-hero {
	padding: 210px 0 72px;
	background: linear-gradient(180deg, #f6f3ef 0%, #ffffff 100%);
}

body.realizacje-page .gallery {
	padding-top: 34px;
	background: #faf9f7;
}

body.realizacje-page .projects {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

body.realizacje-page .project {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.realizacje-page .project:focus-visible {
	outline: 2px solid rgba(35, 35, 35, 0.45);
	outline-offset: 3px;
}

body.realizacje-page .project:hover,
body.realizacje-page .project:focus-visible {
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.15);
}

body.realizacje-page .project-mosaic {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr);
	aspect-ratio: 1.3 / 1;
	gap: 10px;
	padding: 12px;
	align-items: stretch;
}

body.realizacje-page .project-main-image,
body.realizacje-page .project-side-top,
body.realizacje-page .project-side-detail {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #f0ece6;
}

body.realizacje-page .project-main-image {
	height: 100%;
}

body.realizacje-page .project-side-images {
	display: grid;
	grid-template-rows: minmax(0, 1.5fr) minmax(0, 0.9fr);
	gap: 10px;
	height: 100%;
	min-height: 0;
}

body.realizacje-page .project-side-top {
	height: 100%;
}

body.realizacje-page .project-side-detail {
	height: 100%;
}

body.realizacje-page .project-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 0.3s ease;
}

body.realizacje-page .project:hover .project-mosaic img,
body.realizacje-page .project:focus-visible .project-mosaic img {
	transform: scale(1.05);
}

body.realizacje-page .project-content {
	padding: 4px 16px 16px;
}

body.realizacje-page .project-location {
	margin-bottom: 8px;
	font-size: 0.66rem;
}

body.realizacje-page .project h3 {
	margin-bottom: 10px;
	font-size: 1.18rem;
	line-height: 1.25;
}

body.realizacje-page .project-summary {
	margin: 0 0 12px;
	color: #5c5c5c;
	font-size: 0.92rem;
	line-height: 1.65;
}

body.realizacje-page .project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

body.realizacje-page .project-tags li {
	padding: 5px 11px;
	border-radius: 999px;
	background: #f0ede8;
	color: #5b5b5b;
	font-size: 0.78rem;
	line-height: 1.2;
}

body.realizacje-page .project-cta {
	display: inline-block;
	color: #6f4c2f;
	font-size: 0.9rem;
	font-weight: 600;
	transition: transform 0.3s ease;
}

body.realizacje-page .project:hover .project-cta,
body.realizacje-page .project:focus-visible .project-cta {
	transform: translateX(8px);
}

.breadcrumbs {
	margin-bottom: 16px;
	color: #86725b;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	color: var(--wood);
}


.realization-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: stretch;
}

.realization-hero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(8px, 1.6vw, 18px) 0;
}

.realization-kicker {
	margin: 0 0 14px;
	color: #9a7b5b;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.realization-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(1.9rem, 3.8vw, 3rem);
	line-height: 1.15;
	text-align: left;
}


.realization-hero-location {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	color: #2f2f2f;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.4;
}

.realization-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #9a7b5b;
}

.realization-hero-description {
	max-width: 72ch;
	margin: 0 0 30px;
	color: #4a4a4a;
	font-size: 1rem;
	line-height: 1.9;
}

.realization-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 28px;
	width: 100%;
	margin: 0 0 34px;
	padding-top: 24px;
	border-top: 1px solid #ded7ce;
}

.realization-spec-item {
	min-width: 0;
}

.realization-spec-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: #866b4f;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.35;
}

.realization-spec-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	color: #9a7b5b;
}

.realization-hero-icon svg,
.realization-spec-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.realization-spec-value {
	margin: 0;
	color: #1f1f1f;
	font-size: 1.03rem;
	line-height: 1.45;
}

.realization-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #6f4c2f;
	font-size: 0.96rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
}

.realization-back-link::before {
	content: "\2190";
	font-size: 1rem;
}

.realization-back-link:hover,
.realization-back-link:focus-visible {
	color: #4f3521;
	transform: translateX(-2px);
}

.realization-hero-media {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #ede7dd;
	align-self: stretch;
}

.realization-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.realization-gallery {
	padding: 0 0 100px;
}

.realization-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.realization-gallery-item {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.realization-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.realization-gallery-item:hover img,
.realization-gallery-item:focus-within img {
	transform: scale(1.02);
}

.realization-gallery-item figcaption {
	padding: 10px 12px;
	color: #696969;
	font-size: 0.86rem;
}

.realization-bottom-cta {
	padding: 0;
}

.realization-bottom-cta .container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.realization-bottom-cta-inner {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	padding: clamp(32px, 6vw, 56px) 20px;
	background: url("../images/hero_wlasny_pomysl.webp") center/cover no-repeat;
	color: #fff;
	text-align: center;
}

.realization-bottom-cta-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.realization-bottom-cta-inner > * {
	position: relative;
	z-index: 1;
}

.realization-bottom-cta-inner h2 {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.3vw, 2.8rem);
	line-height: 1.15;
	text-wrap: balance;
}

.realization-bottom-cta-inner p {
	max-width: 68ch;
	margin: 0 auto 22px;
	font-size: clamp(0.98rem, 1.6vw, 1.15rem);
	line-height: 1.7;
}

.realization-bottom-cta-inner .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 250px;
}

/* Process */

#process {
	padding-top: 140px;
}

.timeline {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 700px;
	margin: auto;
	counter-reset: step;
}

.timeline-step {
	position: relative;
	padding: 30px 30px 30px 80px;
	border-radius: 10px;
	background: #f5f5f5;
}

.timeline-step::before {
	content: counter(step);
	position: absolute;
	top: 50%;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 37px;
	height: 37px;
	border-radius: 50%;
	background: #20252d;
	color: #fff;
	font-weight: 700;
	transform: translateY(-50%);
	counter-increment: step;
}

.timeline-step h3 {
	margin-bottom: 10px;
	color: #20252d;
	font-size: 18px;
}

.timeline-step p {
	color: #444;
	line-height: 1.8;
}

/* FAQ */

.faq {
	position: relative;
	overflow: hidden;
	height: 100vh;
	padding-top: 0;
	background: url("../images/faq_drzwi_drewniane_premium_baldor_desktop.webp") center/cover;
	color: #fff;
}

.faq::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.faq .container {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	max-width: 1000px;
	height: 100%;
	padding: 20px;
}

.faq h2 {
	padding: 40px 0 20px;
	color: #fff;
	flex-shrink: 0;
}

.faq-list {
	flex: 1;
	overflow-y: auto;
}

.faq-item {
	margin-bottom: 20px;
}

.faq-item button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 20px;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	text-align: left;
}

.faq-item button::before {
	content: "❯";
	display: inline-block;
	transform-origin: center;
	transition: transform 0.8s ease;
}

.faq-item button.active::before,
.faq-item button[aria-expanded="true"]::before {
	transform: rotate(90deg);
}

.faq-item button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 6px;
}

.answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	background: transparent;
	color: #fff;
	transition: max-height 0.4s ease, padding 0.4s ease;
}

.answer.open {
	max-height: 300px;
	padding: 15px 20px;
}

/* Contact */

#contact {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	height: 100vh;
	background: none;
	color: #fff;
}

#contact::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

#contact::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url("../images/contact_drzwi_drewniane_premium_baldor.webp") center/cover;
	animation: heroMove 28s ease-in-out infinite alternate;
}

#contact .container {
	position: relative;
	z-index: 2;
	width: min(600px, 100%);
	max-width: 600px;
	margin: 0 auto 0 clamp(30px, 6vw, 110px);
	padding: clamp(20px, 4vw, 40px);
}

#contact h1 {
	margin-bottom: 28px;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.15;
	text-wrap: balance;
}

.contact-content {
	max-width: 100%;
}

.contact-content p {
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.6;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 40px;
}

.contact-item {
	font-size: 14px;
}

.contact-item a {
	color: inherit;
	text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus-visible {
	color: var(--wood);
}

form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 100%;
	margin: 0;
}

input,
textarea {
	padding: 18px;
	border: 1px solid #ddd;
	background: #fff;
	color: #232323;
	font-family: inherit;
}

textarea {
	height: 180px;
	resize: none;
}

/* Workshop */

#our-story {
	padding: 100px 0;
	background: var(--light);
	color: #232323;
}

.story-section + .story-section {
	margin-top: 42px;
}

.story-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(26px, 4vw, 54px);
	align-items: center;
}

.story-grid--reverse {
	grid-template-areas: "media copy";
}

.story-grid--reverse .story-media {
	grid-area: media;
}

.story-grid--reverse .story-copy {
	grid-area: copy;
}

.story-copy {
	color: #444;
	font-size: 16px;
	line-height: 1.8;
}

.story-kicker {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	color: #7f5a39;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
}

.story-copy h2 {
	margin: 0 0 20px;
	color: #232323;
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	line-height: 1.2;
	text-wrap: balance;
}

.story-copy p {
	margin-bottom: 18px;
	text-wrap: pretty;
}

.story-copy p:last-child {
	margin-bottom: 0;
}

.story-media {
	margin: 0;
}

.story-image {
	display: block;
	width: 100%;
	height: clamp(300px, 38vw, 520px);
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
	transform: scale(1);
	transition: transform 0.45s ease;
}

.story-media:hover .story-image,
.story-media:focus-within .story-image {
	transform: scale(1.015);
}

.story-section-card {
	padding: clamp(24px, 3.4vw, 40px);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(25, 25, 25, 0.08);
}

.story-card-grid {
	gap: clamp(22px, 3vw, 44px);
}

/* Footer */

.site-footer {
	padding: 0;
	background: #2b2825;
	color: #f1e8dd;
	font-size: 16px;
	text-align: left;
}

.site-footer .footer-grid {
	display: grid;
	grid-template-columns: 0.7fr 0.7fr 0.7fr;
	gap: 140px;
	padding: 52px 0 38px;
}

.site-footer .footer-col h3 {
	margin: 0 0 14px;
	color: #f7efe7;
	font-size: 1.05rem;
	font-weight: 700;
}

.site-footer .footer-col p {
	margin: 0 0 14px;
	color: #e2d7cc;
	line-height: 1.7;
}

.site-footer .footer-nav {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer-nav a,
.site-footer .footer-col a {
	color: inherit;
	text-decoration: none;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible,
.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
	color: var(--wood);
}

.site-footer .footer-bottom {
	padding: 8px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: #2b2825;
	color: #fff;
	font-size: 12px;
	text-align: center;
}

/* Responsive */

@media (max-width: 1200px) {
	.hero::before {
		background-image: url("../images/hero_drzwi_debowe_premium_baldor_tablet.webp");
	}

	.process-hero::before {
		background-image: url("../images/hero_wspolpraca_drzwi_drewniane_premium_baldor_desktop.webp");
	}

	.realizacje-hero::before {
		background-image: url("../images/hero_realizacje_drzwi_drewniane_premium_baldor_desktop.webp");
	}

	.pracownia-hero::before {
		background-image: url("../images/hero_wnetrze_pracowni.webp");
	}

	.hero .brand-heading {
		font-size: clamp(4.2rem, 8vw, 5.8rem);
	}

	.hero h1 {
		font-size: clamp(1.45rem, 3.2vw, 2.35rem);
	}
}

@media (max-width: 1024px) {
	.projects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	body.realizacje-page .projects {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.project h3 {
		font-size: 1rem;
	}

	.filters-track {
		justify-content: flex-start;
		gap: 20px;
	}

	.featured-realization-card {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.featured-realization-media {
		order: -1;
	}

	.featured-realization-copy h2 {
		font-size: clamp(1.55rem, 3.8vw, 2.2rem);
	}

	body.realizacje-page .project-mosaic {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
		gap: 8px;
		padding: 10px;
	}

	body.realizacje-page .project-side-images {
		gap: 8px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 140px 0 70px;
	}

	.hero-content {
		width: min(100% - 24px, 640px);
		padding: 16px;
		gap: 14px;
	}

	.hero h1 {
		font-size: clamp(1.45rem, 3.2vw, 2.35rem);
	}

	.hero .brand-heading {
		font-size: clamp(2.95rem, 8.2vw, 4.35rem);
	}

	.hero p {
		max-width: 100%;
	}

	.nav-links {
		position: absolute;
		top: 80px;
		right: -100%;
		flex-direction: column;
		width: 260px;
		height: calc(100vh - 80px);
		padding: 40px;
		background: #232323;
		transition: right 0.4s ease;
	}

	.nav-links.active {
		right: 0;
	}

	.burger {
		display: flex;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.realizations-filters {
		padding: 20px 0 10px;
	}

	body.realization-page .realization-hero {
		padding: 180px 0 54px;
	}

	.realization-hero-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.realization-hero-copy {
		order: 1;
	}

	.realization-hero-media {
		order: 2;
		max-width: 680px;
	}

	.realization-specs {
		grid-template-columns: 1fr 1fr;
		gap: 16px 20px;
	}

	body.content-page .gallery,
	body.content-page #process,
	body.content-page #our-story {
		padding-top: 130px;
	}

	body.content-page #our-story {
		padding-bottom: 80px;
	}

	body.realizacje-page .gallery,
	body.pracownia-page #our-story,
	body.process-page #process {
		padding-top: 80px;
	}

	#contact {
		align-items: flex-start;
		min-height: 100vh;
		height: auto;
		padding: 80px 0;
	}

	#contact .container {
		width: 100%;
		padding: 20px;
	}

	.realization-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.realizacje-page .projects {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	body.realizacje-page .project-mosaic {
		grid-template-columns: 1fr;
		gap: 8px;
		aspect-ratio: auto;
	}

	body.realizacje-page .project-main-image {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	body.realizacje-page .project-side-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
		height: auto;
	}

	body.realizacje-page .project-side-top,
	body.realizacje-page .project-side-detail {
		aspect-ratio: 4 / 3;
	}

	body.realizacje-page .filters-track {
		justify-content: flex-start;
		padding-inline: 4px 12px;
		scroll-padding-inline: 12px;
		scroll-snap-type: x mandatory;
	}

	body.realizacje-page .filter-tab {
		white-space: nowrap;
	}

	.site-footer .footer-grid {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 40px 0 28px;
	}
}

@media (max-width: 767px) {
	body.content-page #our-story,
	body.pracownia-page #our-story {
		padding: 24px 0;
	}

	.story-section + .story-section {
		margin-top: 24px;
	}

	.story-grid,
	.story-grid--reverse,
	.story-card-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.story-grid--reverse {
		grid-template-areas: none;
	}

	.story-grid--reverse .story-copy,
	.story-grid--reverse .story-media {
		grid-area: auto;
	}

	.story-copy {
		order: 1;
	}

	.story-media {
		order: 2;
	}

	.story-copy {
		text-align: center;
	}

	.story-copy h2 {
		text-align: center;
	}

	.story-kicker {
		text-align: center;
	}

	.story-copy p {
		text-align: left;
	}

	.story-copy p.story-kicker {
		text-align: center;
	}

	.story-image {
		height: auto;
		aspect-ratio: 4 / 3;
		max-height: none;
	}

	.story-section-card {
		padding: 24px;
		border-radius: 14px;
	}
}

@media (max-width: 576px) {
	.hero::before {
		background-image: url("../images/hero_drzwi_debowe_premium_baldor_mobile.webp");
	}

	.process-hero::before {
		background-image: url("../images/hero_wspolpraca_drzwi_drewniane_premium_baldor_desktop.webp");
	}

	.realizacje-hero::before {
		background-image: url("../images/hero_realizacje_drzwi_drewniane_premium_baldor_desktop.webp");
	}

	.pracownia-hero::before {
		background-image: url("../images/hero_wnetrze_pracowni.webp");
	}

	.hero {
		padding: 140px 0 58px;
	}

	.hero-content {
		width: calc(100% - 20px);
		gap: 12px;
	}

	.hero h1 {
		font-size: clamp(1.2rem, 5.6vw, 1.75rem);
	}

	.hero .brand-heading {
		font-size: clamp(3.5rem, 17vw, 4.65rem);
	}

	.hero p {
		font-size: 0.88rem;
		line-height: 1.65;
	}

	.btn {
		width: 100%;
		max-width: 320px;
		padding: 14px 20px;
		text-align: center;
	}

	.projects {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	body.realizacje-page .project-content {
		padding: 2px 14px 14px;
	}

	body.realizacje-page .project h3 {
		font-size: 1.06rem;
	}

	body.realizacje-page .project-summary {
		font-size: 0.88rem;
	}

	.featured-realization {
		padding-top: 16px;
	}

	.featured-realization-card {
		padding: 18px;
		border-radius: 14px;
	}

	.featured-realization-copy h2 {
		font-size: clamp(1.35rem, 6.2vw, 1.8rem);
	}

	.featured-features {
		gap: 6px;
	}

	.featured-features li {
		font-size: 0.8rem;
	}

	.featured-link {
		width: 100%;
		max-width: 320px;
	}

	.project-image {
		aspect-ratio: 3 / 4;
	}

	.cta-section {
		min-height: 100svh;
		height: 100svh;
		padding: 0;
	}

	.cta-copy {
		padding: 14px;
	}

	.cta-copy p {
		font-size: 0.98rem;
	}

	.realization-hero h1,
	#contact h1 {
		font-size: clamp(1.2rem, 5.8vw, 1.75rem);
	}

	.realization-hero {
		padding: 120px 0 40px;
	}

	.realization-hero-location {
		font-size: 1rem;
	}

	.realization-hero-description {
		font-size: 0.96rem;
		line-height: 1.7;
	}

	.realization-specs {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 22px;
	}

	.realization-spec-label {
		font-size: 0.68rem;
	}

	.realization-spec-value {
		font-size: 0.98rem;
	}

	.realization-back-link {
		font-size: 0.92rem;
	}

	.realization-gallery {
		padding-bottom: 70px;
	}

	.realization-gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.hero::before,
	#contact::after {
		animation: none !important;
		transform: none !important;
	}

	.why .card:hover,
	.why .card:focus-within,
	.project:hover img,
	.realization-gallery-item:hover img,
	.realization-gallery-item:focus-within img,
	.our-story-figure:hover .story-image,
	.our-story-figure:focus-within .story-image,
	.btn:hover,
	.faq-item button.active::before,
	.faq-item button[aria-expanded="true"]::before {
		transform: none !important;
	}

	.why .card:hover::before,
	.why .card:focus-within::before {
		width: 100%;
	}
}
