/* ============================================================
   p9: MASTER International — wspólne komponenty (wfm-*).
   Tokeny motywu: --granat #6d42d8, --roz #a977e8, --dark-b #130c25,
   --grey, --stroke, --corner 20px, --glow, --container 1440px.
   ============================================================ */

/* ---------- pasek social proof (BAR zamiast wysokiej sekcji) ----------
   Uwagi 21.08: teksty wyśrodkowane względem liczb, kolorystyka liczb jak
   w sekcji liczbowej strony PL (gradient granat -> róż). */
.wfm-statbar { padding: 36px 0; }
.wfm-statbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 24px 40px;
	padding: 32px 40px;
	border: 1px solid var(--stroke);
	border-radius: var(--corner);
	background: var(--dark-b);
}
.wfm-statbar__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 120px;
	align-items: center;
	text-align: center;
}
.wfm-statbar__num {
	font-size: 38px;
	font-weight: 600;
	line-height: 1.1;
	background: linear-gradient(90deg, var(--granat), var(--roz));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.wfm-statbar__label { color: var(--grey); font-size: 14px; }

/* ---------- siatki boxów (2 i 3 kolumny) ---------- */
.wfm-boxes { display: grid; gap: 28px; }
.wfm-boxes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wfm-boxes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wfm-box {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px;
	border: 1px solid var(--stroke);
	border-radius: var(--corner);
	background: var(--dark-b);
	overflow: hidden;
}
.wfm-box__img { margin: -32px -32px 0; }
/* Uwagi 27.08: lepsze kadrowanie zdjęć w kartach — przy object-fit: cover kadr
   był kotwiczony do środka i ucinał głowy osób na zdjęciach zespołowych. */
.wfm-box__img img { width: 100%; height: 240px; object-fit: cover; object-position: center 22%; display: block; }
.wfm-box p { color: #d9d5e3; }
.wfm-box .wf-btn { align-self: flex-start; margin-top: auto; }
.wfm-box__note {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 1px solid rgba(46, 204, 113, 0.5);
	border-radius: 100px;
	color: #7bd8a2;
	font-size: 13px;
	font-weight: 600;
}
.wfm-box__note::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; }
.wfm-box__tag { color: var(--roz); font-size: 13px; }

/* ---------- lista checkmarków (Why WallFlow, checki pod CTA) ---------- */
.wfm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; padding: 0; margin: 0; list-style: none; }
.wfm-checks li { display: flex; align-items: flex-start; gap: 12px; }
.wfm-checks li img { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
.wfm-checks--row { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.wfm-checks--row li { font-size: 15px; }
.wfm-checks strong { display: block; }
.wfm-checks span { color: #d9d5e3; }

/* ---------- akordeon (jedna otwarta pozycja) ---------- */
.wfm-acc { display: flex; flex-direction: column; gap: 14px; }
.wfm-acc__item { border: 1px solid var(--stroke); border-radius: var(--corner); background: var(--dark-b); overflow: hidden; }
.wfm-acc__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 26px;
	background: none;
	border: 0;
	color: var(--white);
	font: 600 18px/1.3 var(--font);
	text-align: left;
	cursor: pointer;
}
.wfm-acc__head i {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--roz);
	border-radius: 50%;
	color: var(--roz);
	font-style: normal;
	font-size: 20px;
	transition: transform 0.2s ease;
}
.wfm-acc__item.is-open .wfm-acc__head i { transform: rotate(45deg); }
.wfm-acc__body { display: none; padding: 0 26px 24px; color: #d9d5e3; line-height: 1.65; }
.wfm-acc__item.is-open .wfm-acc__body { display: block; }

/* ---------- formularze INT: kraj + prefiks telefonu ----------
   Uwagi 21.08: bez ręcznego wyboru rynku/waluty — Country (lista) mapuje
   rynek automatycznie; prefiks numeru telefonu wybierany z listy. */
.wfm-phone-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
.wfm-phone-prefix select { min-width: 0; }

/* ---------- BACK TO PRINTING (finał osi Support — wspólny box z ikoną) ---------- */
.wfm-support__back {
	max-width: 760px;
	margin: 56px auto 0;
	padding: 32px 40px;
	display: flex;
	gap: 24px;
	align-items: center;
	text-align: left;
}
.wfm-support__back-icon { width: 56px; height: 56px; flex: 0 0 auto; }
.wfm-support__back h3 { margin-bottom: 6px; }
.wfm-support__back p { color: #d9d5e3; margin: 0; }
@media (max-width: 720px) {
	.wfm-support__back { margin-top: 36px; padding: 24px 20px; flex-direction: column; text-align: center; }
}

/* ---------- bramka oferty ---------- */
.wfm-gate__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.wfm-gate__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.wfm-gate__copy .wf-checklist { display: flex; flex-direction: column; gap: 12px; }
.wfm-gate__card form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- box nad formularzem (Business) ---------- */
.wfm-pricing__box { padding: 26px 30px; border-left: 3px solid var(--roz); }

/* ---------- ROI INT ---------- */
.wfm-roi__basis { margin-top: 8px; line-height: 1.6; }
/* Uwagi 1.09 (RWD kalkulatora): na tablecie pasek 4 wyników w jednym rzędzie był
   ściśnięty („325 ft² (30 m²)" łamało się na 3 linie) — 2 x 2. */
@media (min-width: 721px) and (max-width: 1024px) {
	.wfm-roi .wf-calc__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
	.wfm-roi .wf-calc__summary div + div { border-left: 0; padding-left: 0; }
	.wfm-roi .wf-calc__summary div:nth-child(even) { border-left: 1px solid var(--stroke); padding-left: 24px; }
}

/* ---------- lightbox ---------- */
.wfm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(0, 0, 0, 0.88);
}
.wfm-lightbox.is-open { display: flex; }
.wfm-lightbox figure { margin: 0; max-width: min(1100px, 92vw); }
.wfm-lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--corner); display: block; }
.wfm-lightbox figcaption { padding-top: 12px; color: #d9d5e3; font-size: 14px; text-align: center; }
.wfm-lightbox__close {
	position: absolute;
	top: 20px;
	right: 28px;
	background: none;
	border: 0;
	color: var(--white);
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}
/* Uwagi 1.09: nawigacja między zdjęciami w lightboxie (strzałki + licznik). */
.wfm-lightbox figure { position: relative; }
.wfm-lightbox__nav {
	position: absolute;
	top: 50%;
	width: 56px;
	height: 56px;
	margin-top: -28px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--stroke);
	border-radius: 50%;
	background: rgba(19, 12, 37, 0.85);
	color: var(--white);
	font-size: 40px;
	line-height: 1;
	padding: 0 0 4px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	z-index: 2;
}
.wfm-lightbox.has-nav .wfm-lightbox__nav { display: flex; }
.wfm-lightbox__nav:hover { border-color: var(--roz); background: rgba(109, 66, 216, 0.6); }
.wfm-lightbox__nav--prev { left: 24px; }
.wfm-lightbox__nav--next { right: 24px; }
.wfm-lightbox__count { display: block; padding-top: 6px; color: var(--grey); font-size: 12px; text-align: center; letter-spacing: 0.06em; }
body.wfm-lightbox-open { overflow: hidden; }
@media (max-width: 720px) {
	.wfm-lightbox { padding: 16px; }
	.wfm-lightbox figure { max-width: 100%; }
	.wfm-lightbox img { max-height: 70vh; }
	.wfm-lightbox__nav { width: 44px; height: 44px; margin-top: -22px; font-size: 32px; }
	.wfm-lightbox__nav--prev { left: 6px; }
	.wfm-lightbox__nav--next { right: 6px; }
	.wfm-lightbox__close { top: 8px; right: 14px; }
}

/* Uwagi 1.09: animowane liczniki — cyfry o stałej szerokości, żeby tekst nie „skakał". */
.wfm-statbar__num { font-variant-numeric: tabular-nums; }

/* ---------- sekcja wideo 65/35 ---------- */
.wfm-video__grid { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 48px; align-items: center; }
.wfm-video__stage { position: relative; border-radius: var(--corner); overflow: hidden; border: 1px solid var(--stroke); }
.wfm-video__stage img, .wfm-video__stage video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.wfm-video__side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
/* Uwagi 21.08: symetryczna siatka 3 kolumny x 2 rzędy zamiast układu 4+2. */
.wfm-materials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.wfm-materials__item {
	position: relative;
	height: 84px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--stroke);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}
.wfm-materials__item span {
	width: 100%;
	padding: 3px 6px;
	background: rgba(0, 0, 0, 0.62);
	font-size: 11px;
	text-align: center;
}
.wfm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wfm-tags span { padding: 6px 14px; border: 1px solid var(--roz); border-radius: 100px; color: var(--roz); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- oś czasu (About) ---------- */
.wfm-timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.wfm-timeline__item { display: grid; grid-template-columns: 90px 30px minmax(0, 1fr); gap: 18px; padding: 0 0 34px; position: relative; }
.wfm-timeline__year { color: var(--roz); font-size: 22px; font-weight: 700; text-align: right; }
.wfm-timeline__dot { position: relative; }
.wfm-timeline__dot::before { content: ""; position: absolute; left: 50%; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--roz); transform: translateX(-50%); }
.wfm-timeline__item:not(:last-child) .wfm-timeline__dot::after { content: ""; position: absolute; left: 50%; top: 22px; bottom: -6px; width: 1px; background: var(--stroke); transform: translateX(-50%); }
.wfm-timeline__body strong { display: block; margin-bottom: 4px; font-size: 18px; }
.wfm-timeline__body p { color: #d9d5e3; margin: 0; }

/* ---------- filtry galerii ---------- */
.wfm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.wfm-filters button {
	padding: 9px 20px;
	border: 1px solid var(--stroke);
	border-radius: 100px;
	background: none;
	color: var(--white);
	font: 500 14px var(--font);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.wfm-filters button.is-active { border-color: var(--roz); background: rgba(169, 119, 232, 0.14); color: var(--roz); }
.wfm-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wfm-gallery__item { position: relative; border-radius: var(--corner); overflow: hidden; border: 1px solid var(--stroke); cursor: zoom-in; display: block; padding: 0; background: none; }
/* Uwagi 1.09: jednolite kadrowanie miniaturek — każdy kafel to kwadrat (zdjęcia
   klienta to głównie pionowe fotki z telefonu; 1:1 zachowuje środek nadruku
   lepiej niż stała wysokość, a karty mają te same proporcje na każdej szerokości). */
.wfm-gallery__item img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center; display: block; transition: transform 0.25s ease; }
.wfm-gallery__item:hover img { transform: scale(1.04); }
.wfm-gallery__labels { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.wfm-gallery__labels span { padding: 4px 12px; border-radius: 100px; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--stroke); font-size: 12px; color: var(--white); }
.wfm-gallery__labels .wfm-loc { border-color: var(--roz); color: var(--roz); }
/* Uwagi 3.09: kafle wideo w galerii — ikona play na plakacie, pigułka „Video",
   odtwarzacz w lightboxie (master.js). */
.wfm-gallery__labels .wfm-vid { border-color: var(--granat); background: rgba(109, 66, 216, 0.75); }
.wfm-gallery__item--video::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 -34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.65);
	background: rgba(19, 12, 37, 0.62) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") 56% center / 30px no-repeat;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, background-color 0.2s ease;
	pointer-events: none;
}
.wfm-gallery__item--video:hover::after { transform: scale(1.08); background-color: rgba(109, 66, 216, 0.85); }
.wfm-lightbox video { max-width: 100%; max-height: 80vh; border-radius: var(--corner); display: block; background: #000; }
@media (max-width: 720px) {
	.wfm-gallery__item--video::after { width: 54px; height: 54px; margin: -27px 0 0 -27px; background-size: 24px; }
	.wfm-lightbox video { max-height: 70vh; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.wfm-boxes--3 { grid-template-columns: minmax(0, 1fr); }
	.wfm-video__grid { grid-template-columns: minmax(0, 1fr); }
	.wfm-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wfm-gate__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 720px) {
	.wfm-boxes--2 { grid-template-columns: minmax(0, 1fr); }
	.wfm-statbar__inner { padding: 22px 20px; gap: 18px 24px; }
	.wfm-statbar__num { font-size: 26px; }
	.wfm-market__row { grid-template-columns: minmax(0, 1fr); }
	.wfm-gallery__grid { grid-template-columns: minmax(0, 1fr); }
	.wfm-checks { grid-template-columns: minmax(0, 1fr); }
	.wfm-timeline__item { grid-template-columns: 64px 24px minmax(0, 1fr); gap: 10px; }
	.wfm-timeline__year { font-size: 17px; }
}

/* ---------- oś Support — wspólny komponent INT (uwagi 27.08 + 1.09) ----------
   Siatka zamiast flexa: ikona / numer / tytuł / opis trafiają do tych samych
   rzędów w każdej kolumnie. Uwagi 1.09 („sekcja krzywa, teksty w różnych
   liniach"): tytuł ma stałą wysokość dwóch linii i jest w niej wyśrodkowany,
   więc jedno- i dwuliniowe nagłówki 01–05 leżą na tej samej osi, a opisy
   zaczynają się w jednej linii; opisy mają wyrównaną długość w treści
   (master-fields). Poniżej 1024px oś zmienia się w pionową linię czasu
   (ikona po lewej, numer + tytuł + opis po prawej) zamiast rozsypanych kart. */
.wfm-support__usps { justify-content: center; margin: 0 0 44px; }
.wfm-axis {
	--wfm-axis-gap: 24px;
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-template-rows: auto auto auto auto;
	grid-auto-flow: column;
	column-gap: var(--wfm-axis-gap);
	row-gap: 14px;
	max-width: 1180px;
	margin: 0 auto;
}
.wfm-axis::before {
	content: "";
	position: absolute;
	top: 50px;
	left: calc((100% - 4 * var(--wfm-axis-gap)) / 10);
	right: calc((100% - 4 * var(--wfm-axis-gap)) / 10);
	height: 1px;
	background: var(--roz);
	opacity: 0.55;
}
.wfm-axis__item { display: contents; }
.wfm-axis__item > * { justify-self: center; text-align: center; }
.wfm-axis .wf-pillar__icon { margin-bottom: 0; }
.wfm-axis .wf-start__no { line-height: 1; }
.wfm-axis h3 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(2 * 1.3em);
	max-width: 220px;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: 0.01em;
}
.wfm-axis p { max-width: 230px; margin: 0; color: #d9d5e3; font-size: 15px; line-height: 1.6; }
@media (max-width: 1024px) {
	/* Tablet / mobile: pionowa oś — jedna linia przez środki ikon, kroki jeden pod drugim. */
	.wfm-axis {
		display: flex;
		flex-direction: column;
		gap: 0;
		max-width: 640px;
	}
	.wfm-axis::before {
		top: 50px;
		bottom: 50px;
		left: 50px;
		right: auto;
		width: 1px;
		height: auto;
	}
	.wfm-axis__item {
		display: grid;
		grid-template-columns: 100px minmax(0, 1fr);
		grid-template-rows: auto auto auto;
		column-gap: 22px;
		row-gap: 6px;
		align-items: start;
		width: 100%; /* nadpisuje width: 240px z .wf-start__item (main.css) */
		padding: 0 0 36px;
		text-align: left;
	}
	.wfm-axis__item:last-child { padding-bottom: 0; }
	.wfm-axis__item > * { justify-self: start; text-align: left; }
	.wfm-axis .wf-pillar__icon { grid-column: 1; grid-row: 1 / span 3; }
	.wfm-axis .wf-start__no { grid-column: 2; font-size: 22px; padding-top: 6px; }
	.wfm-axis h3 { grid-column: 2; display: block; min-height: 0; max-width: none; }
	.wfm-axis p { grid-column: 2; max-width: none; }
}
@media (max-width: 720px) {
	.wfm-axis::before { left: 40px; top: 40px; bottom: 40px; }
	.wfm-axis__item { grid-template-columns: 80px minmax(0, 1fr); column-gap: 16px; padding-bottom: 28px; }
	.wfm-axis .wf-pillar__icon { width: 80px; height: 80px; padding: 6px; }
	.wfm-axis .wf-pillar__icon img { width: 40px; height: 40px; }
	.wfm-axis .wf-start__no { font-size: 20px; padding-top: 2px; }
	.wfm-axis h3 { font-size: 18px; }
	.wfm-support__usps { margin-bottom: 28px; }
}
