/*
 * Hydros: style elementów, których nie da się ustawić w Kadence.
 * Kolory i fonty bierzemy ze zmiennych Kadence (Customizer → Kolory / Typografia).
 */

:root {
	--hy-green: var(--global-palette1, #1d9c40);
	--hy-green-dark: var(--global-palette2, #178636);
	--hy-ink: var(--global-palette3, #0d1117);
	--hy-text: var(--global-palette4, #393838);
	--hy-muted: var(--global-palette6, #b1c3d4);
	--hy-surface: var(--global-palette7, #f5f5f5);
	--hy-bg: var(--global-palette9, #fbfbfb);
	--hy-light: #fbfbfb;
	--hy-radius: 10px;
	--hy-card-glow: radial-gradient(130% 130% at 50% 120%, rgba(45, 184, 75, 0.18) 0%, rgba(45, 184, 75, 0) 60%);
	--hy-soft-shadow: 0 9px 21px rgba(161, 181, 167, 0.1), 0 37px 37px rgba(161, 181, 167, 0.09), 0 84px 50px rgba(161, 181, 167, 0.05);
	--hy-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='13' viewBox='0 0 26 13' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M.5 6.5h24.86M19.36.5l6 6-6 6'/%3E%3C/svg%3E");
}

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

.hydros-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-height: 43px;
	padding: 6px 24px;
	border: 1px solid var(--hy-green);
	border-radius: 999px;
	background: var(--hy-green);
	color: var(--hy-light);
	font-family: var(--global-body-font-family);
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hydros-btn:hover,
.hydros-btn:focus-visible {
	background: var(--hy-green-dark);
	border-color: var(--hy-green-dark);
	color: var(--hy-light);
}

.hydros-btn--outline {
	background: rgba(45, 184, 75, 0.12);
}

.hydros-btn--outline:hover,
.hydros-btn--outline:focus-visible {
	background: var(--hy-green);
	border-color: var(--hy-green);
}

/* Przyciski Kadence (presety Kadence Blocks 3.8 mają własne zmienne, więc nadpisujemy je tutaj). */
.kb-button.kb-button {
	--kb-btn-radius: 999px;
	--kb-btn-padding: 10px 24px;
	--kb-btn-border-width: 1px;
	--kb-btn-border-style: solid;
	--kb-btn-border-color: var(--hy-green);
	min-height: 43px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.kb-button.kb-btn-global-outline,
.kb-button.kb-preset--outline {
	background: rgba(45, 184, 75, 0.12);
	border: 1px solid var(--hy-green);
	color: var(--hy-light);
}

.kb-button.kb-btn-global-outline:hover,
.kb-button.kb-btn-global-outline:focus-visible,
.kb-button.kb-preset--outline:hover,
.kb-button.kb-preset--outline:focus-visible {
	background: var(--hy-green);
	color: var(--hy-light);
}

/* Strzałka z projektu przy przyciskach Hydros i przyciskach Kadence z klasą hydros-arrow. */
.hydros-btn::after,
.hydros-arrow .kt-btn-inner-text::after,
.hydros-arrow.kb-button .kt-btn-inner-text::after,
.kb-adv-form-submit-button.hydros-arrow::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 26px;
	height: 13px;
	background: currentColor;
	-webkit-mask: var(--hy-arrow) center / contain no-repeat;
	mask: var(--hy-arrow) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.hydros-arrow .kt-btn-inner-text {
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

.hydros-btn:hover::after,
.hydros-arrow:hover .kt-btn-inner-text::after,
.hydros-arrow .kb-button:hover .kt-btn-inner-text::after {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.hydros-btn::after,
	.hydros-arrow .kt-btn-inner-text::after {
		transition: none;
	}
}

/* ---------- Karty na ciemnym tle ---------- */

.hydros-card {
	position: relative;
	border-radius: var(--hy-radius);
	background: var(--hy-card-glow);
	color: var(--hy-light);
}

/* ---------- Blok: kategorie produktów ---------- */

.hydros-categories {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hydros-categories--tiles {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.hydros-categories--tiles .hydros-category__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	min-height: 375px;
	padding: 25px 20px 24px;
	color: var(--hy-light);
	text-decoration: none;
}

.hydros-categories--tiles .hydros-category__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	height: 256px;
}

.hydros-categories--tiles .hydros-category__image {
	width: auto;
	max-width: 201px;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.hydros-categories--tiles .hydros-category__title {
	display: flex;
	align-items: center;
	flex: 1;
	margin-top: 16px;
	font-size: 16px;
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
}

.hydros-categories--tiles .hydros-category__link:hover .hydros-category__image,
.hydros-categories--tiles .hydros-category__link:focus-visible .hydros-category__image {
	transform: translateY(-6px);
}

.hydros-categories--cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.hydros-categories--cards .hydros-category {
	display: flex;
	align-items: center;
	gap: 36px;
	min-height: 271px;
	padding: 30px 35px;
}

.hydros-categories--cards .hydros-category--no-image {
	padding-left: 70px;
}

.hydros-categories--cards .hydros-category__media {
	flex: none;
	width: 120px;
}

.hydros-categories--cards .hydros-category--no-image .hydros-category__media {
	display: none;
}

.hydros-categories--cards .hydros-category__image {
	width: 120px;
	height: 153px;
	object-fit: contain;
}

.hydros-categories--cards .hydros-category__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
}

.hydros-categories--cards .hydros-category__title {
	margin: 0;
	color: var(--hy-light);
	font-family: var(--global-body-font-family);
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	text-transform: uppercase;
}

/* ---------- Blok: produkty ---------- */

.hydros-products--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hydros-products__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hydros-products__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hydros-products__viewport::-webkit-scrollbar {
	display: none;
}

.hydros-products--slider .hydros-product {
	flex: 0 0 calc((100% - 20px) / 2);
	scroll-snap-align: start;
}

.hydros-product {
	display: flex;
	align-items: center;
	gap: 27px;
	min-height: 301px;
	padding: 37px 31px 37px 15px;
}

.hydros-product__media {
	flex: none;
	width: 160px;
}

.hydros-product__image {
	width: 160px;
	height: 205px;
	object-fit: contain;
}

.hydros-product__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.hydros-product__title {
	margin: 0 0 15px;
	color: var(--hy-light);
	font-family: var(--global-body-font-family);
	font-size: 18px;
	font-weight: 400;
	line-height: 23px;
	text-transform: uppercase;
}

.hydros-product__text {
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 300;
	line-height: 21px;
	text-align: justify;
	hyphens: auto;
}

.hydros-product__text p {
	margin: 0;
}

.hydros-products__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 87px;
}

.hydros-products__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid var(--hy-green);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.hydros-products__dot[aria-current="true"] {
	background: var(--hy-green);
}

.hydros-products__dot:focus-visible {
	outline: 2px solid var(--hy-light);
	outline-offset: 2px;
}

.hydros-products__empty {
	padding: 24px;
	border: 1px dashed currentColor;
	border-radius: var(--hy-radius);
}

/* ---------- Responsywność bloków ---------- */

@media (max-width: 1024px) {
	.hydros-categories--tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hydros-categories--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hydros-products--grid {
		grid-template-columns: 1fr;
	}

	.hydros-products--slider .hydros-product {
		flex-basis: 85%;
	}
}

@media (max-width: 767px) {
	.hydros-categories--tiles {
		gap: 12px;
	}

	.hydros-categories--tiles .hydros-category__link {
		min-height: 0;
		padding: 16px 12px;
	}

	.hydros-categories--tiles .hydros-category__media {
		height: 170px;
	}

	.hydros-categories--tiles .hydros-category__title {
		font-size: 14px;
		line-height: 18px;
	}

	.hydros-categories--cards {
		grid-template-columns: 1fr;
	}

	.hydros-categories--cards .hydros-category {
		min-height: 0;
		gap: 24px;
		padding: 24px;
	}

	.hydros-categories--cards .hydros-category--no-image {
		padding-left: 24px;
	}

	.hydros-categories--cards .hydros-category__media,
	.hydros-categories--cards .hydros-category__image {
		width: 90px;
		height: auto;
	}

	.hydros-product {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}

	.hydros-product__media {
		align-self: center;
	}

	.hydros-products--slider .hydros-product {
		flex-basis: 88%;
	}

	.hydros-products__nav {
		margin-top: 32px;
	}
}

/* =========================================================
 * Sekcje stron (klasy nadane wierszom i kolumnom Kadence)
 * ========================================================= */

:root {
	/* Lewy margines treści wyrównany do kontenera 1300 px. */
	--hy-gutter: max(var(--global-content-edge-padding, 24px), calc((100vw - 1300px) / 2));
	--hy-dark-line: #2f343d;
}

.entry-content > .kb-row-layout-wrap:first-child {
	margin-top: 0;
}

.hydros-justify p {
	text-align: justify;
	hyphens: auto;
}

.hydros-text-accent {
	color: var(--hy-green);
}

hr.hydros-divider {
	width: 449px;
	max-width: 100%;
	margin: 20px 0;
	border: 0;
	border-top: 1px solid #c5d6ca;
	opacity: 1;
}

hr.hydros-divider--full {
	width: 100%;
}

hr.hydros-divider--dark {
	width: 100%;
	border-top-color: var(--hy-dark-line);
}

.hydros-dark,
.hydros-dark h2,
.hydros-dark h3 {
	color: var(--hy-light);
}

/* Wiersze dzielone (kolumny od krawędzi do krawędzi okna). */
.hydros-split > .kt-row-column-wrap,
.hydros-hero > .kt-row-column-wrap,
.hydros-home-hero > .kt-row-column-wrap {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.hydros-cover,
.hydros-cover img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

/* ---------- Hero podstron: wielki tytuł przycięty dolną krawędzią ---------- */

.hydros-hero {
	overflow: hidden;
}

.hydros-hero__title h1 {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	margin: 0 0 -0.17em -0.04em;
	color: var(--hy-light);
	font-size: min(10.417vw, 150px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-shadow: 0 13px 28px rgba(0, 0, 0, 0.1), 0 51px 51px rgba(0, 0, 0, 0.09), 0 115px 69px rgba(0, 0, 0, 0.05);
}

/* Rozmiar tytułu dobiera generator treści (klasa hydros-fs-N, N = px przy szerokości 1440). */
.hydros-fs-60 .hydros-hero__title h1 { font-size: min(4.167vw, 60px); }
.hydros-fs-65 .hydros-hero__title h1 { font-size: min(4.514vw, 65px); }
.hydros-fs-70 .hydros-hero__title h1 { font-size: min(4.861vw, 70px); }
.hydros-fs-75 .hydros-hero__title h1 { font-size: min(5.208vw, 75px); }
.hydros-fs-80 .hydros-hero__title h1 { font-size: min(5.556vw, 80px); }
.hydros-fs-85 .hydros-hero__title h1 { font-size: min(5.903vw, 85px); }
.hydros-fs-90 .hydros-hero__title h1 { font-size: min(6.25vw, 90px); }
.hydros-fs-95 .hydros-hero__title h1 { font-size: min(6.597vw, 95px); }
.hydros-fs-100 .hydros-hero__title h1 { font-size: min(6.944vw, 100px); }
.hydros-fs-105 .hydros-hero__title h1 { font-size: min(7.292vw, 105px); }
.hydros-fs-110 .hydros-hero__title h1 { font-size: min(7.639vw, 110px); }
.hydros-fs-115 .hydros-hero__title h1 { font-size: min(7.986vw, 115px); }
.hydros-fs-120 .hydros-hero__title h1 { font-size: min(8.333vw, 120px); }
.hydros-fs-125 .hydros-hero__title h1 { font-size: min(8.681vw, 125px); }
.hydros-fs-130 .hydros-hero__title h1 { font-size: min(9.028vw, 130px); }
.hydros-fs-135 .hydros-hero__title h1 { font-size: min(9.375vw, 135px); }
.hydros-fs-140 .hydros-hero__title h1 { font-size: min(9.722vw, 140px); }
.hydros-fs-145 .hydros-hero__title h1 { font-size: min(10.069vw, 145px); }
.hydros-fs-150 .hydros-hero__title h1 { font-size: min(10.417vw, 150px); }

.hydros-hero--long .hydros-hero__title h1 {
	line-height: 1;
	margin-bottom: -0.12em;
}

/* ---------- Strona główna: hero ---------- */

.hydros-home-hero__box {
	width: 100%;
	max-width: 584px;
	padding: 74px 40px 75px 97px;
	background: var(--hy-ink);
	color: var(--hy-light);
}

.hydros-home-hero__box h1 {
	margin: 0 0 10px;
	color: var(--hy-light);
	font-size: 32px;
	font-weight: 500;
	line-height: 48px;
	letter-spacing: 3px;
}

.hydros-home-hero__box p {
	max-width: 346px;
	margin: 0 0 42px;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 1px;
}

/* ---------- Strona główna: wstęp ze znakiem wodnym ---------- */

.hydros-watermark {
	background: var(--hy-bg) url("../img/hydros-watermark.svg") center / auto 540px no-repeat;
}

.hydros-home-intro__content {
	padding: 135px var(--hy-gutter) 134px 48px;
}

.hydros-home-intro__content h2 {
	max-width: 850px;
	margin: 0;
	line-height: 42px;
}

.hydros-home-intro__content p {
	margin: 0 0 20px;
}

.hydros-home-intro__content .kb-buttons-wrap {
	margin-top: 40px;
}

/* ---------- Strona główna: „Dlaczego Hydros” ---------- */

.hydros-quote {
	position: relative;
	padding-left: 147px;
}

.hydros-quote::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 88px;
	width: 29px;
	height: 19px;
	background: currentColor;
	color: var(--hy-light);
	-webkit-mask: url("../icons/quote.svg") center / contain no-repeat;
	mask: url("../icons/quote.svg") center / contain no-repeat;
}

.hydros-quote h3 {
	margin: 0 0 20px;
	font-size: 24px;
	line-height: 36px;
}

.hydros-quote p {
	margin: 0 0 0 173px;
	color: var(--hy-light);
	font-weight: 400;
}

/* ---------- Nagłówek sekcji z przyciskiem po prawej ---------- */

.hydros-section-head h2 {
	margin: 0;
}

/* ---------- Strona główna: realizacje (siatka „bento”) ---------- */

.hydros-realizacje h2 {
	margin: 0 0 56px;
}

.hydros-gallery > .kt-inside-inner-col {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 9px;
}

.hydros-gallery .wp-block-image {
	height: 322px;
	margin: 0;
}

.hydros-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	border-radius: 5px;
	object-fit: cover;
}

.hydros-gallery .wp-block-image:nth-child(1),
.hydros-gallery .wp-block-image:nth-child(5) {
	grid-column: span 2;
}

/* ---------- Okruszki ---------- */

.hydros-breadcrumbs {
	margin-bottom: 80px;
}

.hydros-crumbs {
	color: var(--hy-text);
	font-family: Inter, var(--global-body-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: 17px;
}

.hydros-crumbs a {
	color: #8b949e;
	text-decoration: none;
}

.hydros-crumbs a:hover,
.hydros-crumbs a:focus-visible {
	color: var(--hy-green);
}

.hydros-dark .hydros-crumbs {
	color: var(--hy-light);
}

.hydros-dark .hydros-crumbs a {
	color: #e7e7e7;
}

.hydros-crumbs-wrap .hydros-breadcrumbs {
	margin-bottom: 0;
}

/* ---------- Listy kategorii (Produkty, Separatory) ---------- */

.hydros-listing-intro {
	max-width: 860px;
	margin-bottom: 48px;
}

.hydros-listing-intro p {
	margin: 0 0 12px;
	color: var(--hy-light);
}

/* ---------- Strona kategorii ---------- */

.hydros-category-visual .wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 531px;
	margin: 0;
	padding: 35px;
	border-radius: var(--hy-radius);
	background: var(--hy-ink);
}

.hydros-category-visual .wp-block-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.hydros-category-overview h2 {
	margin: 0;
}

.hydros-category-overview p {
	margin: 0 0 20px;
}

.hydros-types-lead {
	margin-bottom: 18px !important;
	text-align: left !important;
}

.hydros-category-overview .kb-buttons-wrap {
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.hydros-btn-sm.kb-button {
	min-width: 324px;
	justify-content: space-between;
	letter-spacing: 1px;
	text-transform: none;
}

/* Karta „Zastosowanie” nachodzi na ciemną sekcję poniżej. */
.hydros-overlap-next {
	position: relative;
	z-index: 2;
}

.kb-row-layout-wrap.hydros-overlap-prev {
	margin-top: -76px;
}

.hydros-use-card {
	padding: 60px 34px 60px 39px;
	border-radius: var(--hy-radius);
	background: var(--hy-surface);
}

.hydros-use-card h2 {
	margin: 0;
}

.hydros-use-card hr.hydros-divider {
	width: 513px;
	border-top-color: #dbdbdb;
}

.hydros-use-card p {
	margin: 0 0 15px;
}

.hydros-white-card {
	position: relative;
	padding: 23px 37px 32px;
	border-radius: var(--hy-radius);
	background: var(--hy-bg);
}

.hydros-white-card hr.hydros-divider {
	margin: 18px 0 20px;
	border-top-color: #ebebeb;
}

.hydros-list-title {
	margin: 0 !important;
	font-weight: 400;
	line-height: 20px;
}

ul.hydros-dots {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

ul.hydros-dots li {
	position: relative;
	margin-bottom: 15px;
	padding-left: 25px;
	font-size: 14px;
	line-height: 21px;
}

ul.hydros-dots li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hy-green);
}

.hydros-green-card {
	padding: 94px 55px 60px;
	border-radius: var(--hy-radius);
	background: var(--hy-green);
}

.hydros-green-card h2 {
	margin: 0 0 20px;
}

.hydros-green-card p,
.hydros-overlap-prev p,
.hydros-overlap-prev li {
	color: var(--hy-light);
}

.hydros-green-card p {
	margin: 0 0 20px;
}

.hydros-overlap-prev h2 {
	margin: 33px 0 20px;
}

.hydros-overlap-prev p {
	margin: 0 0 20px;
}

.hydros-select-cta p {
	margin: 0 !important;
	text-align: left !important;
}

/* „Dlaczego warto”: kafelki na tle zdjęcia ciężarówki. */
.hydros-why.kb-row-layout-wrap {
	background-size: 100% auto !important;
	background-position: center bottom !important;
}

.hydros-why__grid > .kt-inside-inner-col {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.hydros-why__title > .kt-inside-inner-col {
	justify-content: center;
	height: 100%;
}

.hydros-why__title h3 {
	max-width: 380px;
	margin: 0;
	font-size: 24px;
	line-height: 29px;
}

.hydros-why__card {
	min-height: 180px;
	padding: 30px 40px;
	border-radius: var(--hy-radius);
	background: var(--hy-surface);
}

.hydros-why__card .wp-block-image {
	margin: 0 0 15px;
}

.hydros-why__card img {
	width: 60px;
	height: 60px;
}

.hydros-why__card p {
	max-width: 340px;
	margin: 0;
	font-size: 16px;
	line-height: 20px;
}

.hydros-why__card strong {
	font-weight: 600;
}

/* Sekcja produktów (slider). */
.hydros-products-section h2 {
	margin: 0;
}

.hydros-products-section hr.hydros-divider {
	width: 100%;
	margin: 20px 0 50px;
	border-top-color: var(--hy-dark-line);
}

/* ---------- O nas ---------- */

.hydros-about-founded__text {
	padding: 134px 70px 100px var(--hy-gutter);
}

.hydros-about-founded__text h2 {
	margin: 0;
	line-height: 42px;
}

.hydros-about-founded__text p {
	max-width: 768px;
	margin: 0;
}

.hydros-about-founded__photo > .kt-inside-inner-col,
.hydros-about-founded__photo .wp-block-image {
	height: 100%;
	min-height: 422px;
	margin: 0;
}

.hydros-priorities.wp-block-kadence-column > .kt-inside-inner-col {
	display: flex;
	flex-flow: row wrap;
	gap: 30px;
}

.hydros-priority {
	flex: 0 0 calc((100% - 60px) * 0.3551);
	min-height: 248px;
	padding: 32px;
	border-radius: var(--hy-radius);
	background: var(--hy-bg);
	box-shadow: var(--hy-soft-shadow);
}

.hydros-priority--lead {
	flex-basis: calc((100% - 60px) * 0.2898);
	background: var(--hy-green);
}

.hydros-priority--lead {
	display: flex;
}

.hydros-priority--lead > .kt-inside-inner-col {
	flex: 1;
	align-items: center;
	justify-content: center;
}

.hydros-priority--lead h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 30px;
	text-align: center;
}

.hydros-priority:nth-child(4) {
	flex-basis: calc((100% - 30px) * 0.379);
}

.hydros-priority:nth-child(5) {
	flex-basis: calc((100% - 30px) * 0.621);
}

.hydros-badge {
	margin: 0 0 20px;
}

.hydros-badge img {
	width: 56px;
	height: 56px;
	padding: 13px;
	border-radius: 50%;
	background: var(--hy-green);
}

.hydros-priority h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 25px;
}

.hydros-priority p {
	margin: 0;
}

.hydros-about-offer {
	background: linear-gradient(to bottom, transparent 63px, var(--hy-ink) 63px);
}

.hydros-about-offer__text {
	padding: 118px 40px 56px var(--hy-gutter);
}

.hydros-about-offer__text h2 {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hydros-about-offer__text p {
	max-width: 497px;
	margin: 0 0 15px;
}

.hydros-about-offer__text .kb-buttons-wrap {
	margin-top: 25px;
}

.hydros-about-offer__visual .wp-block-image {
	margin: 0;
}

.hydros-about-offer__visual img {
	display: block;
	width: 100%;
}

.hydros-about-trust__photo .wp-block-image,
.hydros-about-trust__photo > .kt-inside-inner-col {
	height: 100%;
	min-height: 701px;
	margin: 0;
}

.hydros-about-trust__content {
	padding: 157px var(--hy-gutter) 80px 0;
	background: url("../img/hydros-watermark-h.svg") 105px 11px / 500px auto no-repeat;
}

.hydros-about-trust__card {
	position: relative;
	z-index: 1;
	margin: 0 0 55px -65px;
	padding: 67px 59px;
	border-radius: var(--hy-radius);
	background: var(--hy-surface);
}

.hydros-about-trust__card p {
	margin: 0 0 20px;
}

.hydros-about-trust__card p:last-child {
	margin-bottom: 0;
}

/* ---------- Kontakt ---------- */

.hydros-contact-data h3 {
	margin: 32px 0 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 25px;
}

.hydros-contact-data hr.hydros-divider {
	margin: 16px 0 24px;
}

.hydros-contact-label {
	margin: 0 0 8px;
	color: var(--hy-green);
	font-size: 16px;
	font-weight: 400;
}

.hydros-contact-label--spacer {
	visibility: hidden;
}

.hydros-contact-name {
	margin: 0 0 14px;
	color: var(--hy-light);
	font-size: 14px;
	font-weight: 400;
}

.hydros-contact {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 30px;
	margin: 0 0 10px;
	padding-left: 46px;
	color: var(--hy-light);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
}

.hydros-contact a {
	color: inherit;
	text-decoration: none;
}

.hydros-contact a:hover,
.hydros-contact a:focus-visible {
	color: var(--hy-green);
}

.hydros-contact::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 30px;
	height: 30px;
	transform: translateY(-50%);
	border: 1px solid rgba(29, 156, 64, 0.25);
	border-radius: 50%;
	background: rgba(29, 156, 64, 0.12) var(--hy-icon) center / 15px no-repeat;
}

.hydros-contact--phone { --hy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231d9c40' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.hydros-contact--mail { --hy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231d9c40' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.hydros-contact--pin { --hy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231d9c40' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.hydros-contact--nip { --hy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231d9c40' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }

.hydros-contact-region {
	margin: 4px 0 28px;
	color: var(--hy-light);
	font-size: 11px;
	font-weight: 300;
	line-height: 14px;
}

.hydros-contact-region span {
	color: var(--hy-green);
}

.hydros-social-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 12px 0 20px;
	padding: 10px 16px;
	border: 1px solid rgba(29, 156, 64, 0.25);
	border-radius: 5px;
	background: rgba(29, 156, 64, 0.08);
	color: var(--hy-light);
	font-size: 14px;
	font-weight: 600;
}

.hydros-social-link {
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 1px solid var(--hy-green);
	border-radius: 50%;
	background: url("../icons/facebook.svg") center / 15px no-repeat;
	filter: none;
}

.hydros-social-link {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%231d9c40' stroke-linecap='round' viewBox='0 0 15 15'%3E%3Cpath d='M9.19 1.25h1.87v2.5H9.19a.63.63 0 0 0-.63.63v1.87h2.5l-.62 2.5H8.56v5H6.06v-5H4.19v-2.5h1.87V4.37a3.13 3.13 0 0 1 3.13-3.12z'/%3E%3C/svg%3E");
}

.hydros-social-link:hover,
.hydros-social-link:focus-visible {
	background-color: rgba(29, 156, 64, 0.2);
}

.hydros-contact-note {
	margin: 0;
	color: var(--hy-light);
	font-size: 14px;
	line-height: 21px;
}

.hydros-form-card {
	padding: 32px 18px 20px;
	border: 1px solid #21262d;
	border-radius: var(--hy-radius);
	background: #161b22;
}

.hydros-form-card h2 {
	margin: 0 0 6px;
}

.hydros-form-lead {
	margin: 0 0 22px;
	color: var(--hy-light);
	font-size: 14px;
	line-height: 18px;
}

.hydros-map .kb-google-maps-container,
.hydros-map iframe {
	display: block;
	width: 100%;
}

/* ---------- Formularze Kadence ---------- */

.wp-block-kadence-advanced-form .kb-advanced-form {
	/* Kadence ustawia flex w stylach drukowanych per formularz. */
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
}

.wp-block-kadence-advanced-form .kb-advanced-form > * {
	grid-column: 1 / -1;
}

.wp-block-kadence-advanced-form .kb-advanced-form > .wp-block-kadence-advanced-form-email,
.wp-block-kadence-advanced-form .kb-advanced-form > .wp-block-kadence-advanced-form-telephone {
	grid-column: auto;
	max-width: none;
}

.wp-block-kadence-advanced-form .kb-advanced-form .kb-adv-form-field {
	margin-bottom: 4px;
}

.kb-advanced-form .kb-adv-form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
}

.kb-advanced-form .kb-adv-form-required {
	margin-left: 2px;
	color: var(--hy-green);
}

.kb-advanced-form .kb-field:not([type="checkbox"]) {
	width: 100%;
	min-height: 40px;
	padding: 10px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #f5f5f5;
	color: var(--hy-ink);
	font-size: 14px;
	line-height: 18px;
}

.kb-advanced-form textarea.kb-field {
	min-height: 96px;
	resize: vertical;
}

.kb-advanced-form .kb-field:focus {
	border-color: var(--hy-green);
	outline: 2px solid rgba(29, 156, 64, 0.25);
	outline-offset: 0;
}

.kb-advanced-form .kb-radio-check-item-wrap {
	margin: 4px 0 6px;
	padding: 0;
	border: 0;
}

.kb-advanced-form .kb-radio-check-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.kb-advanced-form .kb-radio-check-item input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--hy-green);
}

.kb-advanced-form .kb-radio-check-item label {
	font-size: 12px;
	font-weight: 300;
	line-height: 18px;
}

.kb-advanced-form .kb-radio-check-item label a {
	color: var(--hy-green);
}

.kb-advanced-form .kb-adv-form-submit-button {
	justify-content: center;
	width: 100%;
	min-height: 43px;
}

.kb-advanced-form .kb-adv-form-submit-button .kt-btn-inner-text {
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

/* Wersja ciemna (strona Kontakt). */
.hydros-form-card .kb-advanced-form .kb-adv-form-label,
.hydros-form-card .kb-advanced-form .kb-radio-check-item label {
	color: var(--hy-light);
}

.hydros-form-card .kb-advanced-form .kb-field:not([type="checkbox"]) {
	border-color: #30363d;
	background: #0d1117;
	color: #c9d1d9;
}

.hydros-form-card .kb-advanced-form .kb-field::placeholder {
	color: #8b949e;
}

/* ---------- Do pobrania ---------- */

.hydros-downloads > .kt-inside-inner-col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.hydros-download {
	margin: 0;
}

.hydros-download a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 65px;
	padding: 10px 20px;
	border-radius: 5px;
	background: var(--hy-surface);
	color: var(--hy-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.hydros-download a::after {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	background: var(--hy-green);
	-webkit-mask: url("../icons/download.svg") center / contain no-repeat;
	mask: url("../icons/download.svg") center / contain no-repeat;
}

.hydros-download a:hover,
.hydros-download a:focus-visible {
	background: #e9efe9;
}

/* ---------- Strony prawne ---------- */

.hydros-legal {
	max-width: 860px;
}

.hydros-legal h1 {
	margin: 0 0 32px;
	font-size: 40px;
	line-height: 48px;
}

.hydros-legal h2 {
	margin: 32px 0 12px;
	font-size: 20px;
	line-height: 26px;
}

/* ---------- Nagłówek ---------- */

#masthead .site-main-header-wrap {
	box-shadow: 0 10px 40px rgba(114, 167, 143, 0.08);
}

.header-search-bar form input.search-field {
	height: 37px;
	padding: 0 40px 0 20px;
	border-radius: 100px;
}

.header-navigation .menu-item-has-children > a .dropdown-nav-toggle {
	color: inherit;
}

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

.site-middle-footer-inner-wrap {
	align-items: start;
}

@media (min-width: 1025px) {
	.site-footer .site-middle-footer-inner-wrap.site-footer-row-columns-4 {
		grid-template-columns: 28% 42% 1fr auto;
	}
}

.site-footer .widget-title,
.site-footer .wp-block-heading.widget-title {
	margin: 0 0 16px;
	color: var(--hy-light);
	font-family: "Afacad Flux", var(--global-body-font-family);
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.site-footer .hydros-footer-logo {
	margin: 0;
}

ul.hydros-footer-links {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	gap: 12px 172px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.hydros-footer-links li {
	margin: 0;
	line-height: 21px;
}

ul.hydros-footer-links a {
	color: var(--hy-muted);
	text-decoration: none;
}

ul.hydros-footer-links a:hover,
ul.hydros-footer-links a:focus-visible {
	color: var(--hy-green);
}

.site-footer .hydros-contact {
	min-height: 18px;
	margin-bottom: 14px;
	padding-left: 30px;
	color: var(--hy-muted);
	font-size: 16px;
	font-weight: 300;
	line-height: 20px;
}

.site-footer .hydros-contact::before {
	top: 1px;
	width: 18px;
	height: 18px;
	transform: none;
	border: 0;
	background-color: transparent;
	background-size: 18px;
}

.hydros-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	width: 100%;
}

.hydros-footer-bottom a {
	color: var(--hy-green);
	text-decoration: none;
}

.hydros-footer-credit {
	color: var(--hy-green);
}

.site-bottom-footer-inner-wrap .footer-html {
	width: 100%;
	margin: 0;
}

/* ---------- Popup „Zapytaj o produkt” ---------- */

.hydros-dialog {
	width: min(836px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--hy-radius);
	background: var(--hy-bg);
	color: var(--hy-ink);
	box-shadow: 0 24px 64px rgba(13, 17, 23, 0.35);
}

.hydros-dialog::backdrop {
	background: rgba(13, 17, 23, 0.72);
}

.hydros-dialog__inner {
	position: relative;
	padding: 72px 84px 56px;
}

.hydros-dialog__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	background: transparent;
	color: var(--hy-ink);
	cursor: pointer;
}

.hydros-dialog .hydros-dialog__close:hover,
.hydros-dialog .hydros-dialog__close:focus,
.hydros-dialog .hydros-dialog__close:focus-visible {
	border-color: var(--hy-green);
	background: transparent;
	color: var(--hy-green);
}

.hydros-dialog__title {
	margin: 0 0 6px;
	text-align: center;
}

.hydros-dialog__lead {
	margin: 0 0 24px;
	font-size: 14px;
	text-align: center;
}

.hydros-inquiry-product {
	margin: -8px 0 20px;
	color: var(--hy-green);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.hydros-dialog .kb-advanced-form .kb-field:not([type="checkbox"]) {
	border-color: transparent;
	background: #f0f0f0;
}

html.hydros-dialog-open {
	overflow: hidden;
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.hydros-home-intro__content {
		padding: 80px var(--hy-gutter) 80px 40px;
	}

	.hydros-quote {
		padding-left: 48px;
	}

	.hydros-quote::before {
		left: 0;
	}

	.hydros-quote p {
		margin-left: 0;
	}

	.hydros-gallery .wp-block-image {
		height: 220px;
	}

	.hydros-category-visual .wp-block-image {
		height: 420px;
	}

	.hydros-why__grid > .kt-inside-inner-col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hydros-why__card {
		padding: 28px;
	}

	.hydros-priority,
	.hydros-priority--lead,
	.hydros-priority:nth-child(4),
	.hydros-priority:nth-child(5) {
		flex-basis: calc((100% - 30px) / 2);
	}

	.hydros-priority--lead {
		min-height: 160px;
	}

	.hydros-about-founded__text {
		padding: 80px 40px 64px var(--hy-gutter);
	}

	.hydros-about-trust__content {
		padding: 120px var(--hy-gutter) 64px 0;
		background-size: 360px auto;
		background-position: 40px 11px;
	}

	.hydros-about-trust__card {
		margin-left: -40px;
		padding: 40px;
	}

	.hydros-dialog__inner {
		padding: 64px 40px 40px;
	}

	ul.hydros-footer-links {
		gap: 12px 64px;
	}
}

/* ---------- Telefon ---------- */

@media (max-width: 767px) {
	.hydros-hero__title h1 {
		padding-left: 0;
	}

	.hydros-hero--long .hydros-hero__title h1 {
		padding-left: var(--hy-gutter);
		font-size: 30px;
		hyphens: auto;
	}

	.hydros-home-hero__box {
		max-width: none;
		padding: 32px var(--hy-gutter) 36px;
	}

	.hydros-home-hero__box h1 {
		font-size: 26px;
		line-height: 36px;
	}

	.hydros-home-hero__box p {
		margin-bottom: 28px;
	}

	.hydros-watermark {
		display: none;
	}

	.hydros-home-intro__content {
		padding: 56px var(--hy-gutter);
	}

	.hydros-home-intro__content h2,
	.hydros-about-founded__text h2 {
		line-height: 32px;
	}

	.hydros-quote {
		padding-left: 0;
		padding-top: 32px;
	}

	.hydros-quote::before {
		top: 0;
	}

	.hydros-realizacje h2 {
		margin-bottom: 32px;
	}

	.hydros-gallery > .kt-inside-inner-col {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.hydros-gallery .wp-block-image {
		height: 150px;
	}

	.hydros-breadcrumbs {
		margin-bottom: 40px;
	}

	.hydros-category-visual .wp-block-image {
		height: 320px;
	}

	.hydros-btn-sm.kb-button {
		min-width: 0;
		width: 100%;
	}

	.hydros-use-card {
		padding: 32px 20px;
	}

	.hydros-white-card {
		padding: 20px;
	}

	.hydros-green-card {
		padding: 40px 24px;
	}

	.hydros-why__grid > .kt-inside-inner-col {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hydros-why__card {
		min-height: 0;
		padding: 24px;
	}

	.hydros-priority,
	.hydros-priority--lead,
	.hydros-priority:nth-child(4),
	.hydros-priority:nth-child(5) {
		flex-basis: 100%;
		min-height: 0;
		padding: 24px;
	}

	.hydros-about-founded__text {
		padding: 56px var(--hy-gutter);
	}

	.hydros-about-founded__photo .wp-block-image,
	.hydros-about-founded__photo > .kt-inside-inner-col {
		min-height: 260px;
	}

	.kb-row-layout-wrap.hydros-about-offer,
	.hydros-about-offer__text,
	.hydros-about-offer__visual {
		background: var(--hy-ink);
	}

	.hydros-justify p {
		text-align: left;
		hyphens: manual;
	}


	.hydros-about-offer__text {
		padding: 56px var(--hy-gutter) 24px;
	}

	.hydros-about-trust__photo .wp-block-image,
	.hydros-about-trust__photo > .kt-inside-inner-col {
		min-height: 260px;
	}

	.hydros-about-trust__content {
		padding: 80px var(--hy-gutter) 56px;
		background-size: 260px auto;
		background-position: center 24px;
	}

	.hydros-about-trust__card {
		margin: 0 0 32px;
		padding: 28px 24px;
	}

	.wp-block-kadence-advanced-form .kb-advanced-form > .wp-block-kadence-advanced-form-email,
	.wp-block-kadence-advanced-form .kb-advanced-form > .wp-block-kadence-advanced-form-telephone {
		grid-column: 1 / -1;
	}

	.hydros-downloads > .kt-inside-inner-col {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.hydros-dialog__inner {
		padding: 56px 20px 28px;
	}

	ul.hydros-footer-links {
		grid-template-columns: 1fr 1fr;
		gap: 12px 24px;
	}

	.hydros-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Honeypot formularzy (inc/forms.php): pole poza ekranem, niewidoczne dla ludzi i czytników. */
.hydros-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
