/*
Theme Name:  Bedorf Spa (Divi child)
Theme URI:   https://bedorf.grupainsight.dev
Description: Motyw potomny Divi dla BedorfSPA - tokeny z projektu Figma, lokalne fonty Inter + Manrope.
Author:      Grupa Insight
Author URI:  https://grupainsight.com
Template:    Divi
Version:     0.1.0
Text Domain: bedorf
*/

/* ------------------------------------------------------------------
   Fonty (lokalne, subset latin + polskie znaki, wght 400-600)
   ------------------------------------------------------------------ */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-pl-var.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-pl-var.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------------
   Tokeny z Figmy (Bedorfspa, Home 70:104 / Wanny spa 180:494)
   ------------------------------------------------------------------ */
:root {
	--bd-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bd-font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--bd-text: #1e1e1e;        /* czarny tekst */
	--bd-text-muted: #5a5a5a;  /* body szary */
	--bd-label: #9f9f9f;       /* label */
	--bd-btn-text: #303030;    /* tekst na jasnym przycisku */
	--bd-bg-grey: #f5f5f5;     /* szary tlo */
	--bd-white: #ffffff;
	--bd-overlay: rgba(0, 0, 0, 0.4); /* nakladka na zdjecia hero */

	/* Typografia: desktop wg Figmy, mobile skalowane clamp() */
	--bd-fs-display: clamp(3rem, 6.667vw, 8rem);             /* 48 -> 128 (128/1920) */
	--bd-lh-display: 0.98;                                    /* 125/128 */
	--bd-fs-h1: clamp(2rem, 2.8125vw, 3.375rem);             /* 32 -> 54 (54/1920) */
	--bd-lh-h1: 1.074;                                        /* 58/54 */
	--bd-fs-h2: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);      /* 20 -> 24 */
	--bd-lh-h2: 1.25;                                         /* 30/24 */
	--bd-fs-body: clamp(1rem, 0.94rem + 0.27vw, 1.25rem);     /* 16 -> 20 */
	--bd-lh-body: 1.5;                                        /* 30/20 */
	--bd-fs-small: 1rem;                                      /* 16 */
	--bd-fs-label: clamp(0.8125rem, 0.78rem + 0.15vw, 1rem);  /* 13 -> 16 */

	--bd-radius-pill: 44px;
	--bd-btn-h: 54px;
}

/* ------------------------------------------------------------------
   Baza
   ------------------------------------------------------------------ */
/* "html body": CSS Customizera Divi (ladowany po nas) ustawia body 14px */
html body {
	font-family: var(--bd-font-body);
	font-size: var(--bd-fs-body);
	line-height: var(--bd-lh-body);
	color: var(--bd-text-muted);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3,
.et_pb_module h4, .et_pb_module h5, .et_pb_module h6 {
	font-family: var(--bd-font-head);
	font-weight: 600;
	color: var(--bd-text);
	letter-spacing: 0;
	padding-bottom: 0;
}

/* H1 i H2 w Figmie maja ten sam styl "H1" (54/58) - naglowki sekcji */
h1, h2,
.et_pb_module h1, .et_pb_module h2 {
	font-size: var(--bd-fs-h1);
	line-height: var(--bd-lh-h1);
}

/* Styl Figmy "h2" (24/30) - tytuly kart i krokow */
h3,
.et_pb_module h3 {
	font-size: var(--bd-fs-h2);
	line-height: var(--bd-lh-h2);
}

p { padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }

a { color: var(--bd-text); }

/* ------------------------------------------------------------------
   Klasy pomocnicze (wpisywane w Divi jako CSS Class modulu/sekcji)
   ------------------------------------------------------------------ */

/* Ogromny tytul hero: "BASENY PRYWATNE", "WANNY SPA", "O NAS" */
.bd-display,
.bd-display h1,
.bd-display h2 {
	font-family: var(--bd-font-head);
	font-weight: 600;
	font-size: var(--bd-fs-display);
	line-height: var(--bd-lh-display);
	text-transform: uppercase;
	color: var(--bd-white);
}

/* Etykieta nad naglowkiem: "TWOJ WYBOR", "FAQ", "PORozmawiajmy" */
.bd-label,
.bd-label p {
	font-family: var(--bd-font-body);
	font-size: var(--bd-fs-label);
	font-weight: 600;
	line-height: 1.875;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--bd-label);
}

.bd-small,
.bd-small p { font-size: var(--bd-fs-small); line-height: 1.875; }

.bd-bg-grey { background-color: var(--bd-bg-grey) !important; }

/* Tekst na zdjeciach / ciemnych tlach */
.bd-on-dark,
.bd-on-dark h1, .bd-on-dark h2, .bd-on-dark h3,
.bd-on-dark p, .bd-on-dark a { color: var(--bd-white); }

/* ------------------------------------------------------------------
   Przyciski - pigulka 54px, Inter 16
   Domyslny = ciemny (#1e1e1e). Warianty przez CSS Class modulu:
   bd-btn-light (bialy), bd-btn-outline (bialy obrys), bd-btn-arrow (strzalka >)
   ------------------------------------------------------------------ */
.bd-btn,
body #page-container .et_pb_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--bd-btn-h);
	padding: 12px 30px !important;
	border: 1px solid var(--bd-text);
	border-radius: var(--bd-radius-pill);
	background-color: var(--bd-text);
	color: var(--bd-white);
	font-family: var(--bd-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
body #page-container .et_pb_button:hover,
.bd-btn:hover {
	background-color: #000;
	border-color: #000;
	color: var(--bd-white);
	padding: 12px 30px !important;
}

/* Divi dokleja wlasna ikone w ::after - wylaczamy, strzalke daje bd-btn-arrow */
body #page-container .et_pb_button::after,
body #page-container .et_pb_button::before { display: none !important; }

body #page-container .et_pb_button.bd-btn-light,
.bd-btn.bd-btn-light {
	background-color: var(--bd-white);
	border-color: var(--bd-white);
	color: var(--bd-btn-text);
}
body #page-container .et_pb_button.bd-btn-light:hover,
.bd-btn.bd-btn-light:hover {
	background-color: var(--bd-bg-grey);
	border-color: var(--bd-bg-grey);
	color: var(--bd-text);
}

body #page-container .et_pb_button.bd-btn-outline,
.bd-btn.bd-btn-outline {
	background-color: transparent;
	border-color: var(--bd-white);
	color: var(--bd-white);
}
body #page-container .et_pb_button.bd-btn-outline:hover,
.bd-btn.bd-btn-outline:hover {
	background-color: var(--bd-white);
	color: var(--bd-btn-text);
}

/* Strzalka ">" 16px po tekscie (warianty Figmy "Variant2/4") */
body #page-container .et_pb_button.bd-btn-arrow::after,
.bd-btn.bd-btn-arrow::after {
	content: "" !important;
	display: inline-block !important;
	position: static !important;
	width: 16px;
	height: 16px;
	margin: 0 !important;
	opacity: 1 !important;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 12L10 8L6 4' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 12L10 8L6 4' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Dostepnosc: widoczny focus z klawiatury */
.bd-btn:focus-visible,
body #page-container .et_pb_button:focus-visible {
	outline: 2px solid var(--bd-text);
	outline-offset: 3px;
}
.bd-on-dark .et_pb_button:focus-visible,
.et_pb_button.bd-btn-outline:focus-visible { outline-color: var(--bd-white); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==================================================================
   Wspolne
   ================================================================== */
:root {
	--bd-gutter: clamp(20px, 5.2vw, 100px);   /* 100px przy 1920 (Figma) */
	--bd-header-top: clamp(16px, 3vw, 58px);   /* logo 58px od gory */
	--bd-ease: cubic-bezier(.22, .61, .36, 1);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.bd-icon { display: block; flex: none; }

.bd-skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 10001;
	padding: 12px 20px;
	background: var(--bd-white);
	color: var(--bd-text);
	border-radius: var(--bd-radius-pill);
	font-size: 16px;
}
.bd-skip-link:focus { top: 16px; }

#et-main-area:focus { outline: none; }

/* Divi rezerwuje miejsce na swoj naglowek - nie uzywamy go */
#page-container { padding-top: 0 !important; margin-top: 0 !important; }

/* ==================================================================
   Naglowek (Figma Home 70:104: hamburger | logo | Zadzwon)
   ================================================================== */
.bd-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 100;
	color: var(--bd-white);
}
.admin-bar .bd-header { top: 32px; }

.bd-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: var(--bd-header-top) var(--bd-gutter) 0;
}

.bd-burger {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	margin-left: -6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.bd-burger .bd-icon { width: 45px; height: 24px; }

.bd-header__logo { display: block; line-height: 0; }
.bd-header__logo img { width: 182px; height: auto; }

.bd-header__call.bd-btn { justify-self: end; margin-top: 18px; } /* przycisk o 27px nizej niz gora logo */
.bd-header__call-icon { display: none; width: 16px; height: auto; }

/* Strony bez zdjecia hero: jasny naglowek w przeplywie strony */
.bd-header-solid .bd-header {
	position: relative;
	top: 0;
	color: var(--bd-text);
	background: var(--bd-white);
	padding-bottom: 24px;
}
.bd-header-solid .bd-header__logo img { filter: brightness(0); }
body.bd-header-solid #page-container .bd-header__call.bd-btn-outline {
	border-color: var(--bd-text);
	color: var(--bd-text);
}
body.bd-header-solid #page-container .bd-header__call.bd-btn-outline:hover {
	background-color: var(--bd-text);
	color: var(--bd-white);
}

.bd-burger:focus-visible,
.bd-panel__close:focus-visible,
.bd-sub-toggle:focus-visible,
.bd-header__logo:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==================================================================
   Panel menu (Figma "menu lewo" 109:295): bialy, 415px, z lewej
   ================================================================== */
.bd-panel {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	z-index: 10000;
	width: min(415px, 100vw);
	background: var(--bd-white);
	color: var(--bd-text);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .35s var(--bd-ease), visibility 0s linear .35s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.bd-panel.is-open {
	transform: none;
	visibility: visible;
	transition: transform .35s var(--bd-ease), visibility 0s;
}
.admin-bar .bd-panel { top: 32px; }

.bd-panel__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 82px 34px 40px 105px; /* hamburger 105px od lewej, ~94px od gory */
}

.bd-panel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 96px;
}
.bd-panel__burger { line-height: 0; }
.bd-panel__burger .bd-icon { width: 45px; height: 24px; }

.bd-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	margin-right: -15px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bd-text);
	cursor: pointer;
}
.bd-panel__close .bd-icon { width: 14px; height: 14px; }

.bd-menu,
.bd-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bd-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 58px; /* rytm pozycji ~88px jak w Figmie */
}
.bd-menu > li > a {
	font-family: var(--bd-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	color: var(--bd-text);
	text-decoration: none;
}
.bd-menu a:hover,
.bd-menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }

.bd-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	margin-left: 2px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bd-text);
	cursor: pointer;
}
.bd-sub-toggle .bd-icon { width: 11px; height: 4px; transition: transform .25s var(--bd-ease); }
.bd-menu > li.is-open > .bd-sub-toggle .bd-icon { transform: rotate(180deg); }

.bd-menu .sub-menu {
	display: none;
	flex-basis: 100%;
	padding: 10px 0 0 35px; /* podpozycje wciete o 35px */
}
.bd-menu > li.is-open > .sub-menu { display: block; }
/* Bez JS podmenu widoczne zawsze */
html:not(.js) .bd-menu .sub-menu { display: block; }

.bd-menu .sub-menu a {
	display: inline-block;
	padding: 7px 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	color: var(--bd-text);
	text-decoration: none;
}

.bd-panel__social {
	display: flex;
	align-items: center;
	gap: 33px;
	margin-top: auto;
	padding-top: 40px;
}
.bd-panel__social a { color: var(--bd-text); line-height: 0; }
.bd-panel__social .bd-icon { height: 24px; width: auto; }

.bd-panel-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .3s ease;
}
.bd-panel-overlay.is-visible { opacity: 1; }

.bd-menu-open,
.bd-menu-open body { overflow: hidden; }

/* ==================================================================
   CTA nad stopka (Figma Component 19, gorna czesc 1920x989)
   ================================================================== */
.bd-cta {
	position: relative;
	isolation: isolate;
	display: flex;
	justify-content: center;
	min-height: clamp(560px, 51.5vw, 989px);
	padding: clamp(64px, 5vw, 95px) 20px 64px;
	color: var(--bd-white);
	text-align: center;
	overflow: hidden;
}
.bd-cta__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}
.bd-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bd-overlay);
}
.bd-cta__content { max-width: 863px; }
.bd-cta__label { color: rgba(255, 255, 255, .8); margin-bottom: 4px; }
.bd-cta .bd-cta__title {
	margin: 0 0 24px;
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); /* 36 -> 64 */
	line-height: 1.094;                            /* 70/64 */
	color: var(--bd-white);
}
.bd-cta__text {
	margin: 0 auto 48px;
	padding: 0;
	color: var(--bd-white);
}

/* ==================================================================
   Stopka (ciemna czesc Component 19)
   ================================================================== */
.bd-footer {
	background: var(--bd-text);
	color: var(--bd-white);
	padding: 44px var(--bd-gutter) 40px;
	font-size: var(--bd-fs-body);
	line-height: 30px;
}
.bd-footer a { color: var(--bd-white); text-decoration: none; }
.bd-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bd-footer a:focus-visible { outline: 2px solid var(--bd-white); outline-offset: 3px; border-radius: 2px; }

.bd-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.bd-footer__logo { display: block; line-height: 0; margin-left: -11px; }
.bd-footer__logo img { width: 182px; height: auto; }

.bd-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 44px;
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
}

.bd-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 615fr) minmax(0, 281fr) minmax(0, 412fr) minmax(0, 412fr);
	gap: 32px 0;
}

.bd-footer__company { margin: 0 0 48px; padding: 0; }
.bd-footer__company a { text-decoration: underline; text-underline-offset: 4px; }

.bd-footer__reach {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bd-footer__reach li {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}
.bd-footer__reach .bd-icon { width: 20px; height: auto; max-height: 21px; }

.bd-footer__social {
	display: flex;
	gap: 28px;
	margin-top: 56px;
}
.bd-footer__social a { line-height: 0; }
.bd-footer__social .bd-icon { width: 41px; height: 41px; }

.bd-footer__heading {
	margin: 0 0 14px;
	padding: 0;
	font-weight: 600;
}
.bd-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.bd-footer__list li { padding: 0 0 25px; }

/* ==================================================================
   Tablet i mobile
   ================================================================== */
@media (max-width: 1280px) {
	.bd-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 980px) {
	.bd-burger { width: 44px; height: 44px; margin-left: -4px; }
	.bd-burger .bd-icon,
	.bd-panel__burger .bd-icon { width: 34px; height: 18px; }
	.bd-header__logo img { width: 112px; }

	/* "Zadzwon" -> okragly przycisk z ikona telefonu */
	body #page-container .bd-header__call.bd-btn {
		width: 44px;
		min-height: 44px;
		height: 44px;
		margin-top: 0;
		padding: 0 !important;
	}
	.bd-header__call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.bd-header__call-icon { display: block; }

	.bd-panel__inner { padding: 16px 24px 32px; }
	.bd-panel__top { margin-bottom: 48px; }
	.bd-menu > li { margin-bottom: 28px; }

	.bd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bd-footer__contact { grid-column: 1 / -1; }
	.bd-footer__social { margin-top: 32px; }
	.bd-footer__legal-list { gap: 4px 24px; padding-top: 8px; font-size: 16px; }
}

@media (max-width: 782px) {
	.admin-bar .bd-header,
	.admin-bar .bd-panel { top: 46px; }
}

@media (max-width: 560px) {
	.bd-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.bd-footer__list li { padding-bottom: 14px; }
	.bd-cta__text { margin-bottom: 36px; }
}

/* ==================================================================
   HERO strony glownej (Figma Component 1: 1920x1014, 4 slajdy)
   ================================================================== */
.bd-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(560px, 100svh, 1014px);
	color: var(--bd-white);
	text-align: center;
	overflow: hidden;
	background: #2b2b2b;
}
.bd-hero__media { position: absolute; inset: 0; z-index: -1; }
.bd-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bd-overlay);
}
.bd-hero__pic {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .9s ease;
}
.bd-hero__pic.is-active { opacity: 1; }
.bd-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.bd-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1000px;
	padding: 90px 20px 40px;
}
.bd-hero .bd-hero__eyebrow {
	margin: 0 0 30px;
	font-family: var(--bd-font-body);
	font-size: clamp(.875rem, .8rem + .3vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--bd-white);
}
.bd-hero__slides { display: grid; }
.bd-hero__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility 0s linear .6s;
}
.bd-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .6s ease .2s, visibility 0s;
}
.bd-hero .bd-hero__title {
	margin: 0 0 36px;
	font-family: var(--bd-font-head);
	font-size: var(--bd-fs-display);
	font-weight: 600;
	line-height: var(--bd-lh-display);
	text-transform: uppercase;
	color: var(--bd-white);
}
.bd-hero__text {
	max-width: 561px;
	margin: 0 auto;
	padding: 0;
	font-family: var(--bd-font-head);
	font-size: 16px;
	line-height: 30px;
	color: var(--bd-white);
}
.bd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 53px;
	margin-top: 43px;
}

.bd-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 61px;
	height: 80px;
	margin-top: -40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bd-white);
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s ease, transform .2s ease;
}
.bd-hero__arrow .bd-icon { width: 61px; height: 80px; }
.bd-hero__arrow:hover { opacity: 1; }
.bd-hero__arrow--prev { left: 4.17%; }
.bd-hero__arrow--prev .bd-icon { transform: rotate(180deg); }
.bd-hero__arrow--next { right: 4.43%; }
.bd-hero__arrow:focus-visible,
.bd-hero__dot:focus-visible,
.bd-hero__social a:focus-visible { outline: 2px solid var(--bd-white); outline-offset: 3px; }

.bd-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 63px;
	z-index: 2;
	display: flex;
	gap: 13px;
	transform: translateX(-50%);
}
.bd-hero__dot {
	position: relative;
	width: 56px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.bd-hero__dot::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 10px;
	height: 4px;
	background: rgba(255, 255, 255, .4);
	transition: background-color .3s ease;
}
.bd-hero__dot.is-active::before,
.bd-hero__dot:hover::before { background: var(--bd-white); }

.bd-hero__social {
	position: absolute;
	left: var(--bd-gutter);
	bottom: 80px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 33px;
}
.bd-hero__social a { color: var(--bd-white); line-height: 0; }
.bd-hero__social .bd-icon { height: 24px; width: auto; }

@media (max-width: 980px) {
	.bd-hero__arrow { display: none; }
	.bd-hero__social { display: none; }
	.bd-hero__dots { bottom: 32px; }
	.bd-hero .bd-hero__title { margin-bottom: 24px; }
	.bd-hero__actions { gap: 12px; margin-top: 32px; }
}
@media (max-width: 560px) {
	.bd-hero { height: clamp(560px, 92svh, 760px); }
	.bd-hero__actions .bd-btn { width: 100%; max-width: 320px; }
	.bd-hero__text { font-size: 15px; line-height: 26px; }
}

/* ==================================================================
   Sekcje Divi na stronie glownej - wspolne
   ================================================================== */
/* Sekcja: rytm pionowy ~120px miedzy sekcjami przy 1920 */
.et_pb_section.bd-sec {
	padding: clamp(48px, 4.2vw, 80px) 0 !important;
	background-color: transparent;
}
.et_pb_section.bd-sec--flush { padding: 0 !important; }

/* Wiersz na pelna szerokosc tresci (1720px = 1920 - 2x100) */
.et_pb_row.bd-row {
	width: calc(100% - 2 * var(--bd-gutter)) !important;
	max-width: 1720px !important;
	padding: 0 !important;
	margin: 0 auto !important;
}
.et_pb_row.bd-row + .et_pb_row.bd-row { margin-top: clamp(28px, 3.6vw, 70px) !important; }
.et_pb_row.bd-row--full {
	width: 100% !important;
	max-width: none !important;
}

/* Siatka zamiast procentowych kolumn Divi */
.et_pb_row.bd-grid {
	display: grid !important;
	gap: 23px;
}
.et_pb_row.bd-grid > .et_pb_column {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	min-width: 0;
}
.et_pb_row.bd-grid::after { display: none; }

/* Moduly w naszych sekcjach bez domyslnych odstepow Divi */
.bd-sec .et_pb_module { margin-bottom: 0 !important; }
.bd-sec .et_pb_text_inner > *:last-child { padding-bottom: 0; margin-bottom: 0; }

/* Tytul sekcji (h2 54/58) */
.bd-sec-title h2 { margin: 0; text-align: center; }
.bd-sec-title.bd-left h2 { text-align: left; }
.bd-sec-title .bd-sec-sub {
	margin-top: 22px;
	padding: 0;
	font-weight: 600;
	color: var(--bd-text-muted);
	text-align: center;
}

/* Wiersz z wysrodkowanym przyciskiem */
.bd-actions .et_pb_button_module_wrapper { text-align: center; }
.et_pb_row.bd-actions { margin-top: clamp(32px, 2.9vw, 56px) !important; }

/* Zdjecia: wypelnij kafelek */
.bd-sec .et_pb_image,
.bd-sec .et_pb_image .et_pb_image_wrap,
.bd-sec .et_pb_image a { display: block; width: 100%; }
.bd-sec .et_pb_image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ------------------------------------------------------------------
   Efekt wody (klasa bd-ripple na module Obraz)
   ------------------------------------------------------------------ */
.bd-ripple .et_pb_image_wrap { position: relative; overflow: hidden; }
.bd-ripple__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s ease;
}
.bd-ripple--on .bd-ripple__canvas { opacity: 1; }

/* ==================================================================
   1. Realizacje premium (2 kolumny: duzy kafel + 2 mniejsze)
   ================================================================== */
.et_pb_row.bd-realizacje { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.bd-realizacje .et_pb_column { display: flex; flex-direction: column; }
.bd-realizacje .et_pb_column > .et_pb_image + .et_pb_text { margin-top: 26px; }
.bd-realizacje .et_pb_column > .et_pb_text + .et_pb_image { margin-top: 48px; }

.bd-card-img .et_pb_image_wrap { position: relative; aspect-ratio: 847 / 502; overflow: hidden; }
.bd-card-img--tall .et_pb_image_wrap { aspect-ratio: 847 / 1131; }
/* Desktop: duzy kafel rozciaga sie na wysokosc prawej kolumny,
   zeby dolne krawedzie zdjec i podpisy byly w jednej linii (jak w Figmie). */
@media (min-width: 981px) {
	.bd-realizacje .et_pb_column:first-child .bd-card-img--tall { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
	.bd-realizacje .et_pb_column:first-child .bd-card-img--tall a { flex: 1 1 auto; display: flex; }
	.bd-realizacje .et_pb_column:first-child .bd-card-img--tall .et_pb_image_wrap { flex: 1 1 auto; aspect-ratio: auto; height: auto; min-height: 0; }
	.bd-realizacje .et_pb_column:first-child .bd-card-img--tall img { position: absolute; inset: 0; }
}
.bd-card-img img { transition: transform .8s var(--bd-ease); }
.bd-card-img a:hover img { transform: scale(1.03); }

/* Okragla strzalka w rogu (Figma Component 3, 84px) */
.bd-card-img .et_pb_image_wrap::after {
	content: "";
	position: absolute;
	top: 26px;
	right: 26px;
	z-index: 2;
	width: 84px;
	height: 84px;
	background: url("assets/icons/arrow-circle.svg") center / contain no-repeat;
	transition: transform .3s var(--bd-ease);
	pointer-events: none;
}
.bd-card-img a:hover .et_pb_image_wrap::after { transform: rotate(45deg); }

.bd-caption h3 {
	margin: 0;
	font-family: var(--bd-font-body);
	font-size: var(--bd-fs-h2);
	line-height: 1.25;
	text-transform: uppercase;
}
.bd-caption p { padding: 0; color: var(--bd-text); }

/* ==================================================================
   2. Dla kogo tworzymy + 3. Oferta: kafle ze zdjeciem i tekstem na wierzchu
   ================================================================== */
.et_pb_row.bd-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.et_pb_row.bd-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }

.bd-ovcard { position: relative; overflow: hidden; }
.bd-ovcard .et_pb_image_wrap { position: relative; aspect-ratio: 847 / 552; }
.bd-ovcard .et_pb_image_wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bd-overlay);
}
.bd-ovcard .et_pb_image img { transition: transform .8s var(--bd-ease); }
.bd-ovcard:hover .et_pb_image img { transform: scale(1.03); }

.bd-ovcard .bd-ovcard__text {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 1;
	padding: 0 clamp(20px, 2.6vw, 49px) clamp(24px, 2.6vw, 48px);
	color: var(--bd-white);
	pointer-events: none;
}
.bd-ovcard__text h3 {
	margin: 0 0 clamp(12px, 1.4vw, 28px);
	font-size: var(--bd-fs-h1);
	line-height: var(--bd-lh-h1);
	text-transform: uppercase;
	color: var(--bd-white);
	max-width: 12em;
}
.bd-ovcard__text p { padding: 0; color: var(--bd-white); max-width: 726px; }

/* Oferta: wyzszy kafel, tekst na srodku, przycisk na dole */
.bd-offer-card .et_pb_image_wrap { aspect-ratio: 557 / 799; }
.bd-offer-card .bd-ovcard__text {
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 7% 18%;
	text-align: center;
}
.bd-offer-card .bd-ovcard__text h3 { margin: 26% auto 20px; max-width: none; text-transform: none; }
.bd-offer-card .bd-ovcard__text p { margin: 0 auto; max-width: 420px; }
.bd-offer-card .et_pb_button_module_wrapper {
	position: absolute;
	left: 0; right: 0;
	bottom: 12.4%;
	z-index: 2;
	text-align: center;
}

/* ==================================================================
   4. Od koncepcji do realizacji (5 krokow z linia laczaca)
   ================================================================== */
.et_pb_row.bd-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 49px; }
.et_pb_text.bd-step { position: relative; }
.et_pb_text.bd-step,
.et_pb_text.bd-step .et_pb_text_inner,
.et_pb_text.bd-step p,
.et_pb_text.bd-step h3 { text-align: center !important; }
.bd-step .bd-step__num {
	padding: 0 0 10px;
	font-family: var(--bd-font-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	color: #949494;
}
.bd-step h3 { margin: 0 0 30px; padding: 0 6%; }
.bd-step p { font-size: 16px; line-height: 30px; color: var(--bd-text); }
/* Linia do nastepnego kroku (Figma Vector 2, #B3B3B3) */
.bd-steps .et_pb_column:not(:last-child) .bd-step::after {
	content: "";
	position: absolute;
	top: 14px;
	left: calc(50% + 59px);
	width: calc(100% + 49px - 118px);
	height: 2px;
	background: #b3b3b3;
}

/* ==================================================================
   5. Przykrycia basenowe (zdjecie do krawedzi + jasny panel)
   ================================================================== */
.et_pb_row.bd-split { grid-template-columns: minmax(0, 936fr) minmax(0, 984fr); gap: 0; }
.bd-split .et_pb_column:first-child,
.bd-split .et_pb_column:first-child .et_pb_image,
.bd-split .et_pb_column:first-child .et_pb_image_wrap { height: 100%; }
.bd-split .et_pb_column:first-child .et_pb_image_wrap { min-height: 29.74vw; } /* 571/1920 */
.bd-split .et_pb_column:last-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px clamp(20px, 6.25vw, 120px);
	background: #fbfbfb;
}
.bd-split h2 { margin: 0 0 48px; }
.bd-split .et_pb_text { max-width: 718px; }
.bd-split .et_pb_button_module_wrapper { margin-top: 23px; }

/* ==================================================================
   6. Opieka serwisowa + 7. O firmie (tekst obok zdjecia)
   ================================================================== */
.et_pb_row.bd-feature {
	grid-template-columns: minmax(0, 900fr) minmax(0, 826fr);
	gap: clamp(32px, 4vw, 83px);
	align-items: center;
}
.bd-feature .et_pb_column:first-child { padding-left: clamp(0px, 5.15vw, 99px); }
.bd-feature .et_pb_column:last-child .et_pb_image_wrap { aspect-ratio: 826 / 579; }
.bd-feature h2 { margin: 0 0 46px; }
.bd-feature .et_pb_button_module_wrapper { margin-top: 46px; }

.et_pb_row.bd-feature--rev { grid-template-columns: minmax(0, 847fr) minmax(0, 711fr); gap: clamp(32px, 4.2vw, 81px); }
.bd-feature--rev .et_pb_column:first-child { padding-left: 0; }
.bd-feature--rev .et_pb_column:first-child .et_pb_image_wrap { aspect-ratio: 847 / 674; }
.bd-feature--rev .et_pb_column:last-child .et_pb_image_wrap { aspect-ratio: auto; }
.bd-feature--rev .et_pb_text { max-width: 711px; }

/* ==================================================================
   8. Opinie Google
   ================================================================== */
.et_pb_row.bd-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.bd-review {
	height: 100%;
	padding: clamp(28px, 4.4vw, 84px) clamp(24px, 2.8vw, 53px) 40px;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	background: var(--bd-white);
}
.bd-review .et_pb_text_inner { display: grid; grid-template-columns: 88px 1fr; column-gap: 37px; align-items: center; }
/* Divi (wpautop) opakowuje awatar w <p> - pierwszy element to kolumna z awatarem */
.bd-review .et_pb_text_inner > :first-child { grid-row: 1 / span 2; padding: 0; line-height: 0; }
.bd-review .bd-review__avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.bd-review .bd-review__name {
	align-self: end;
	padding: 0;
	font-weight: 600;
	color: var(--bd-text);
}
.bd-review .bd-review__stars {
	align-self: start;
	width: 120px;
	height: 24px;
	margin-top: 10px;
	padding: 0;
	background: url("assets/icons/star.svg") left center / 24px 24px repeat-x;
	font-size: 0;
}
.bd-review blockquote {
	grid-column: 1 / -1;
	margin: 49px 0 0;
	padding: 0;
	border: 0;
	font-style: normal;
	color: var(--bd-text);
}
.bd-review blockquote p { padding: 0; color: var(--bd-text); }

/* ==================================================================
   Home - tablet i mobile
   ================================================================== */
@media (max-width: 1280px) {
	.et_pb_row.bd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
	.bd-steps .et_pb_column .bd-step::after { display: none; }
	.et_pb_row.bd-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.et_pb_row.bd-realizacje,
	.et_pb_row.bd-cards-2,
	.et_pb_row.bd-split,
	.et_pb_row.bd-feature,
	.et_pb_row.bd-feature--rev { grid-template-columns: minmax(0, 1fr); }

	.bd-card-img--tall .et_pb_image_wrap { aspect-ratio: 847 / 600; }
	.bd-split .et_pb_column:first-child .et_pb_image_wrap { min-height: 0; aspect-ratio: 936 / 571; }
	.bd-card-img .et_pb_image_wrap::after { width: 56px; height: 56px; top: 16px; right: 16px; }
	.bd-realizacje .et_pb_column + .et_pb_column { margin-top: 24px !important; }

	.et_pb_row.bd-cards-3 { grid-template-columns: minmax(0, 1fr); }
	.bd-ovcard .et_pb_image_wrap { aspect-ratio: 4 / 5; }
	.bd-offer-card .et_pb_image_wrap { aspect-ratio: 4 / 4.2; }
	.bd-offer-card .bd-ovcard__text h3 { margin-top: 0; }

	.bd-feature .et_pb_column:first-child { padding-left: 0; }
	.bd-feature:not(.bd-feature--rev) .et_pb_column:last-child { order: -1; }
	.bd-split .et_pb_column:last-child { padding: 40px 20px 48px; }
	.bd-split h2, .bd-feature h2 { margin-bottom: 24px; }
	.bd-feature .et_pb_button_module_wrapper { margin-top: 28px; }

	.et_pb_row.bd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bd-step h3 { margin-bottom: 12px; }

	/* Opinie: przewijane w poziomie */
	.et_pb_row.bd-reviews {
		display: flex !important;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		width: 100% !important;
		padding: 0 var(--bd-gutter) 8px !important;
		scroll-padding: 0 var(--bd-gutter);
	}
	.bd-reviews > .et_pb_column { flex: 0 0 min(86%, 420px); scroll-snap-align: start; }
	.bd-review blockquote { margin-top: 28px; }
}

@media (max-width: 560px) {
	.et_pb_row.bd-steps { grid-template-columns: minmax(0, 1fr); }
	.bd-review .et_pb_text_inner { grid-template-columns: 64px 1fr; column-gap: 20px; }
	.bd-review .bd-review__avatar { width: 64px; height: 64px; }
	.bd-review .et_pb_text_inner { grid-template-columns: 64px 1fr; }
}

/* CTA nad stopka z efektem wody: plotno nad zdjeciem, ale pod nakladka i tekstem */
.bd-cta .bd-ripple__canvas { z-index: -2; }

/* ==================================================================
   Animacja procesu "Od koncepcji do realizacji":
   kafle wjezdzaja po kolei od lewej, linia rysuje sie po kazdym kroku.
   Klase bd-anim dodaje JS (bez JS / przy reduced-motion wszystko widac od razu).
   ================================================================== */
.bd-steps .et_pb_column:nth-child(1) { --bd-i: 0; }
.bd-steps .et_pb_column:nth-child(2) { --bd-i: 1; }
.bd-steps .et_pb_column:nth-child(3) { --bd-i: 2; }
.bd-steps .et_pb_column:nth-child(4) { --bd-i: 3; }
.bd-steps .et_pb_column:nth-child(5) { --bd-i: 4; }

/* Stan ukryty: natychmiast (bez przejscia), przejscie tylko przy pojawianiu sie */
.bd-steps.bd-anim .bd-step {
	opacity: 0;
	transform: translateX(-32px);
}
.bd-steps.bd-anim .bd-step::after {
	transform: scaleX(0);
	transform-origin: left center;
}
.bd-steps.bd-anim.is-inview .bd-step {
	opacity: 1;
	transform: none;
	transition: opacity .6s ease, transform .7s var(--bd-ease);
	transition-delay: calc(var(--bd-i, 0) * 220ms);
}
.bd-steps.bd-anim.is-inview .bd-step::after {
	transform: scaleX(1);
	transition: transform .45s var(--bd-ease);
	transition-delay: calc(var(--bd-i, 0) * 220ms + 380ms);
}

@media (prefers-reduced-motion: reduce) {
	.bd-steps.bd-anim .bd-step,
	.bd-steps.bd-anim .bd-step::after { opacity: 1; transform: none; transition: none; }
}
