/*
Theme Name: HYDRO-TECH
Theme URI: https://hydro-tech.org.pl/
Author: HYDRO-TECH
Author URI: https://hydro-tech.org.pl/
Description: Szablon strony HYDRO-TECH. Treść, logo i zdjęcia ze starej witryny są w katalogu materialy.
Version: 5.0.6
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: hydro-tech
*/

:root {
	--blue: #006194;
	--navy: #102b3a;
	--ink: #22262a;
	--muted: #626d71;
	--mist: #cfdee4;
	--line: #c9cecc;
	--paper: #f3f2ed;
	--fog: #e6eae7;
	--rule: #3e5663;
	--font: Inter, sans-serif;
	--display: Manrope, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--wrap: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

.skip {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 20;
	background: var(--paper);
	color: var(--ink);
	padding: 8px 12px;
}

.skip:focus { top: 16px; }

.screen-reader,
.hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.wrap {
	width: min(var(--wrap), calc(100% - 120px));
	margin-inline: auto;
}

.eyebrow,
.meta-stack,
.hero__meta,
.hero__caption p,
.hero__strip,
.areas__meta,
.offer__photo figcaption,
.about figcaption,
.axis,
.form__fine,
.site-footer__base p:first-child,
.uses__meta,
.talk__hint,
.facts dt,
.places h2 {
	font-family: var(--mono);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eyebrow {
	margin: 0 0 24px;
	color: var(--blue);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;
}

.band .eyebrow,
.eyebrow--quiet { color: var(--mist); }

h1,
h2,
h3,
.site-footer__line {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0;
}

h1 { font-size: clamp(42px, 6.4vw, 94px); }
h2 { font-size: clamp(36px, 4vw, 58px); }
.page-hero h1,
.page-contact h1,
.prose h1 { font-size: clamp(40px, 5vw, 58px); }
.about h1,
.about h2 { font-size: clamp(36px, 4vw, 48px); }
h3 { font-size: 36px; font-weight: 500; }

p { margin: 0; }

.lead,
.cols p,
.split p,
.workshop p,
.about p,
.talk > div > p,
.care p,
.areas__item p {
	color: var(--muted);
}

.block .eyebrow { color: var(--blue); }
.talk .talk__place { color: var(--ink); }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 56px;
	padding: 0 22px;
	border: 0;
	background: var(--blue);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.button::after { content: "↗"; font-size: 22px; font-weight: 400; }

.button:hover { background: var(--navy); }

.button--line {
	min-height: 44px;
	padding: 0 19px;
	border: 1px solid var(--blue);
	background: transparent;
	color: var(--blue);
	font-size: 13px;
	font-weight: 400;
	gap: 26px;
}

.button--line::after { font-size: 20px; }

.button--line:hover { background: var(--blue); color: #fff; }

.site-header {
	position: relative;
	z-index: 5;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 104px;
	gap: 24px;
}

.logo img,
.site-footer__logo img {
	width: auto;
	height: 50px;
	max-width: 248px;
	object-fit: contain;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a {
	color: var(--ink);
	font-size: 13px;
	text-decoration: none;
}

.nav__list .is-current > a:not(.button) { color: var(--blue); }

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle__box {
	display: grid;
	gap: 6px;
	justify-items: end;
}

.nav-toggle__box span {
	display: block;
	height: 1.5px;
	background: var(--ink);
}

.nav-toggle__box span:first-child { width: 26px; }
.nav-toggle__box span:last-child { width: 18px; }

.hero__open { padding: 44px 0 46px; }

.hero__meta,
.hero__strip .wrap,
.site-footer__top,
.site-footer__base,
.form__actions,
.axis {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hero__meta {
	margin-bottom: 30px;
	color: var(--muted);
	font-size: 10px;
}

.hero__meta p:first-child { color: var(--blue); }

.hero__promise {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 285px;
	gap: 48px;
	align-items: end;
}

.hero__aside {
	display: grid;
	gap: 26px;
	padding-bottom: 7px;
}

.hero__aside p { color: var(--muted); font-size: 15px; }

.hero__photo {
	position: relative;
	height: 510px;
	overflow: hidden;
}

.hero__photo img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.hero__caption {
	position: absolute;
	left: max(60px, calc((100% - var(--wrap)) / 2));
	bottom: 0;
	width: min(400px, calc(100% - 48px));
	padding: 30px;
	background: var(--blue);
	color: #fff;
}

.hero__caption p {
	margin-bottom: 16px;
	color: var(--mist);
	font-size: 9px;
}

.hero__caption strong {
	display: block;
	font-family: var(--display);
	font-size: 29px;
	font-weight: 400;
	line-height: 1.25;
}

.hero__strip {
	background: var(--navy);
	color: var(--mist);
	font-size: 10px;
}

.hero__strip .wrap { padding: 17px 0; }

.block { padding: 104px 0; }
.block--tight { padding-top: 24px; }

.split,
.offer,
.workshop__grid,
.about,
.talk,
.care {
	display: grid;
	gap: 80px;
}

.split { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.split__meta { display: grid; gap: 26px; align-content: start; }
.meta-stack { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.9; }
.split h2 { margin-bottom: 28px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; font-size: 16px; }

.axis { margin-top: 68px; color: var(--blue); font-size: 9px; }
.axis span:first-child,
.axis span:last-child { font-size: 18px; letter-spacing: 0; }
.axis__line { flex: 1; height: 1px; background: var(--line); }
.axis--light { color: var(--mist); }
.axis--light .axis__line { background: var(--rule); }

.block__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 48px;
	align-items: end;
	margin-bottom: 48px;
}

.block__head p { color: var(--muted); font-size: 15px; }
.block__head--light { grid-template-columns: minmax(0, 1fr) 360px; }
.block__head--light h2,
.band h2,
.band h1,
.about h2,
.about h1 { color: var(--paper); }
.block__head--light p,
.band p,
.about p,
.uses__card p { color: var(--mist); }

.offer { grid-template-columns: 420px minmax(0, 1fr); align-items: start; }
.offer__photo { margin: 0; }
.offer__photo img { width: 100%; height: 630px; object-fit: cover; }
.offer__photo figcaption { margin-top: 12px; color: var(--muted); font-size: 9px; }

.areas { display: flex; flex-direction: column; }
.areas__item {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	gap: 30px;
	padding: 28px 0;
	border-top: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}
.areas__item:last-child { border-bottom: 1px solid var(--line); }
.areas__item > span { color: var(--blue); font-family: var(--mono); font-size: 11px; line-height: 2.3; }
.areas__item h2,
.areas__item h3 { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.areas__item h3 span { color: var(--blue); font-family: var(--font); font-weight: 400; }
.areas__item p { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.areas__meta { color: var(--blue) !important; font-size: 10px !important; line-height: 1.7; }
.areas--page .areas__item { grid-template-columns: 48px minmax(0, 1fr); }
.areas--page h2 { font-size: clamp(28px, 3vw, 36px); }

.band { background: var(--navy); padding: 88px 0 64px; }
.band--blue { background: var(--blue); }
.page-band { padding-top: 72px; }

.uses {
	display: grid;
	grid-template-columns: 760px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.uses--late {
	grid-template-columns: 640px minmax(0, 1fr);
	gap: 80px;
	align-items: center;
	margin-top: 44px;
}
.uses__card { color: inherit; text-decoration: none; }
.uses__card--offset { margin-top: 80px; }
.uses__card img { width: 100%; object-fit: cover; }
.uses__card--wide img { height: 390px; }
.uses__card--offset img { height: 310px; }
.uses--late img { height: 250px; }
.uses__meta { display: flex; justify-content: space-between; margin: 18px 0 9px; font-size: 9px; }
.uses__card h3 { color: var(--paper); font-size: 29px; }
.uses__card p:last-child { margin-top: 8px; font-family: var(--font); font-size: 12px; letter-spacing: 0; text-transform: none; }
.uses__note { padding-left: 30px; }
.uses__note p:first-child {
	font-family: var(--display);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--paper);
	letter-spacing: -0.03em;
	text-transform: none;
}
.uses__note p:last-child { margin-top: 28px; font-size: 14px; }

.workshop__grid { grid-template-columns: 500px minmax(0, 1fr); gap: 120px; }
.workshop h2 { margin: 0 0 28px; }
.scheme { width: min(360px, 100%); height: auto; margin-top: 28px; }
.scheme text { fill: var(--blue); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.scheme path { fill: none; stroke: var(--blue); stroke-width: 1.5; }

.steps { margin: 0; padding: 0; list-style: none; }
.steps li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 32px;
	padding: 26px 0;
	border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps span { color: var(--blue); font-family: var(--mono); font-size: 10px; line-height: 2; }
.steps h3 { font-size: 26px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.steps--reasons { margin-top: 28px; }

.about { grid-template-columns: 600px minmax(0, 1fr); align-items: start; }
.about figure { margin: 0; }
.about img { width: 100%; height: 420px; object-fit: cover; }
.about figcaption { margin-top: 12px; color: var(--mist); font-size: 9px; }
.about h2,
.about h1 { margin-bottom: 26px; }
.about p + p { margin-top: 26px; }
.about__year {
	display: flex;
	align-items: flex-end;
	gap: 24px;
	margin-top: 26px !important;
}
.about__year strong {
	font-family: var(--display);
	font-size: clamp(64px, 8vw, 88px);
	font-weight: 500;
	line-height: 1;
	color: #fff;
	letter-spacing: -0.04em;
}
.about__year span {
	color: var(--mist);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	line-height: 1.7;
	text-transform: uppercase;
}

.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 48px 0 0;
}
.facts div { margin: 0; }
.facts dt { font-size: 10px; color: var(--mist); }
.facts dd { margin: 8px 0 0; color: var(--paper); font-family: var(--display); font-size: 20px; line-height: 1.3; }

.talk { grid-template-columns: 500px minmax(0, 1fr); gap: 120px; align-items: start; }
.talk h2,
.page-contact h1 { margin: 28px 0; }
.talk__place {
	margin-top: 28px;
	font-family: var(--display);
	font-size: 23px;
	font-weight: 400;
	color: var(--ink);
}
.talk__hint { margin-top: 8px; color: var(--muted); font-size: 10px; }
.talk__hint a {
	color: inherit;
	font-family: var(--font);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.places {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 28px;
}
.places h2 { margin: 0 0 8px; color: var(--blue); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.places p { color: var(--ink); font-size: 15px; text-transform: none; letter-spacing: 0; font-family: var(--font); }

.form { display: grid; gap: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__field { display: grid; gap: 10px; }
.form__field--wide { grid-column: 1 / -1; }
.form label { font-size: 12px; }
.form input,
.form select,
.form textarea {
	width: 100%;
	border: 1px solid var(--line);
	background: transparent;
	padding: 16px;
	font-size: 13px;
	line-height: 1.5;
}
.form input,
.form select { height: 54px; }
.form textarea { min-height: 132px; resize: vertical; }
.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }
.form select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
	background-position: calc(100% - 18px) 24px, calc(100% - 13px) 24px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
.form__turnstile { min-height: 65px; }
.form input[type="hidden"] { display: none; width: auto; height: auto; padding: 0; border: 0; }
.form__consent { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form__consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex: none; }
.form__fine { margin: 0; color: var(--muted); font-size: 9px; }
.form__note { padding: 12px 14px; font-size: 14px; }
.form__note--ok { background: #e7f3ec; color: #0d6b45; }
.form__note--bad { background: #fde8e8; color: #93000a; }

.site-footer { background: var(--navy); color: var(--mist); padding: 48px 0 28px; }
.site-footer__logo {
	display: grid;
	place-items: center;
	width: 302px;
	height: 76px;
	background: var(--paper);
}
.site-footer__nav { display: flex; gap: 40px; }
.site-footer__nav a { color: var(--mist); font-size: 12px; text-decoration: none; }
.site-footer__line {
	margin: 42px 0;
	color: var(--paper);
	font-size: clamp(36px, 5vw, 72px);
	font-weight: 500;
	line-height: 1.15;
}
.site-footer__base {
	align-items: flex-start;
	gap: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
	font-size: 10px;
	line-height: 1.6;
}
.site-footer__base p:first-child { font-size: 9px; white-space: nowrap; }
.site-footer__base p:last-child { max-width: 760px; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.site-footer__base a { color: #fff; }

.page-hero { padding: 72px 0 8px; }
.page-hero h1 { max-width: 14em; }
.page-hero .lead { max-width: 46rem; margin-top: 24px; font-size: 16px; }

.care { grid-template-columns: 1fr 1fr; align-items: start; }
.care h2 { margin: 8px 0 18px; font-size: clamp(32px, 3vw, 42px); }
.care ul { margin: 24px 0 0; padding: 0; list-style: none; }
.care li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px; }
.tile { display: flex; flex-direction: column; gap: 14px; }
.tile__media img { width: 100%; height: 320px; object-fit: cover; }
.tile__tag,
.tile__mark,
.kicker {
	color: var(--blue);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.tile h2,
.tile h3 { font-size: 29px; font-weight: 500; }
.tile p { color: var(--muted); font-size: 14px; }
.tile__open {
	align-self: flex-start;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--blue);
	font-size: 14px;
	cursor: pointer;
}
.tile__open::after { content: " ↗"; }
.tile__facts { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.tile__facts span { display: block; color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.tile__facts strong { font-weight: 500; }

.project,
.lightbox {
	width: min(1080px, calc(100vw - 48px));
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 28px;
	border: 0;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--paper);
	color: var(--ink);
}
.project,
.lightbox {
	display: none;
}
.project[open] {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.lightbox[open] {
	display: block;
}
.project::backdrop,
.lightbox::backdrop {
	background: rgba(16, 43, 58, 0.86);
}
body:has(dialog[open]) { overflow: hidden; }
.project__close,
.lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	background: var(--paper);
	cursor: pointer;
}
.project__close { position: static; }
.project__layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; width: 100%; }
.project__stage { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project__stage img {
	width: 100%;
	height: min(58vh, 520px);
	object-fit: cover;
}
.lightbox img { width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; }
.project__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.project__thumb { width: 88px; height: 64px; padding: 0; border: 0; background: none; opacity: 0.55; cursor: pointer; overflow: hidden; }
.project__thumb.is-active { opacity: 1; outline: 2px solid var(--blue); }
.project__thumb img { width: 88px; height: 64px; max-width: none; object-fit: cover; }
.project__copy h2 { font-size: 36px; margin: 8px 0 12px; }
.project__place,
.project__copy p { color: var(--muted); }
.project__facts { margin: 16px 0 0; }
.project__facts div { padding: 10px 0; border-top: 1px solid var(--line); }
.project__facts dt { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.project__facts dd { margin: 4px 0 0; }

.prose { max-width: 760px; padding-bottom: 72px; }
.prose h1 { margin-bottom: 24px; }
.prose p,
.prose li { color: var(--muted); }
.prose a { color: var(--blue); }

@media (max-width: 980px) {
	.wrap { width: min(var(--wrap), calc(100% - 48px)); }
	.nav-toggle { display: grid; place-items: center; }
	.nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 8px 24px 24px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
	}
	.site-header.is-open .nav { display: block; }
	.nav__list { flex-direction: column; align-items: flex-start; gap: 18px; }
	.nav__cta .button { width: 100%; }
	.hero__promise,
	.split,
	.cols,
	.block__head,
	.block__head--light,
	.offer,
	.uses,
	.uses--late,
	.workshop__grid,
	.about,
	.talk,
	.care,
	.form__grid,
	.facts,
	.places,
	.tiles,
	.project__layout,
	.site-footer__top,
	.site-footer__base {
		grid-template-columns: 1fr;
		display: grid;
	}
	.hero__meta { align-items: flex-start; flex-direction: column; gap: 8px; }
	.hero__photo { height: 350px; }
	.hero__caption { left: 24px; width: min(280px, calc(100% - 48px)); padding: 22px; }
	.hero__caption strong { font-size: 24px; }
	.hero__strip .wrap p:last-child { display: none; }
	.offer__photo img,
	.about img,
	.uses__card img,
	.uses__card--wide img,
	.uses__card--offset img,
	.uses--late img,
	.tile__media img { height: 260px; }
	.uses__card--offset,
	.uses__note { margin: 0; padding: 0; }
	.site-footer__nav { flex-wrap: wrap; gap: 18px 28px; }
	.site-footer__logo { width: 270px; }
	.form__actions { align-items: flex-start; }
	.axis span:nth-child(3) { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
