/* Altis Group – komponenty. Prefiks klas: .ag- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ag-header-h) + 16px); }
/* Lenis (płynne przewijanie) – style z pakietu */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body.ag {
	margin: 0;
	background: var(--ag-dark);
	color: var(--ag-white);
	font: 400 var(--ag-body)/1.5 var(--ag-font-body);
	-webkit-font-smoothing: antialiased;
}
/* Reset w :where() – zerowa specyficzność, więc nie przykrywa marginesów komponentów (.ag-lead itd.). */
:where(.ag) :where(img, svg) { max-width: 100%; height: auto; display: block; }
:where(.ag) :where(a) { color: inherit; }
:where(.ag) :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(.ag) :where(ul) { padding: 0; list-style: none; }

.ag-sr, .ag-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--ag-gold-light); color: var(--ag-dark); }

.ag-container { width: 100%; max-width: calc(var(--ag-container) + 2 * var(--ag-gutter)); margin: 0 auto; padding: 0 var(--ag-gutter); }
.ag-section { padding: var(--ag-section-y) 0; }
.ag-main { padding-top: var(--ag-header-h); }

/* Typografia */
.ag-h1, .ag-h2, .ag-h3 { font-family: var(--ag-font-display); font-weight: 600; text-transform: uppercase; line-height: 1; letter-spacing: 0; }
.ag-h1 { font-size: var(--ag-h1); }
.ag-h2 { font-size: var(--ag-h2); }
.ag-h3 { font-size: var(--ag-h3); }
.ag-h1 em, .ag-h2 em, .ag-h3 em { font-style: normal; color: var(--ag-gold-dark); }
.ag-eyebrow { font-size: 14px; color: var(--ag-gold-light); margin-bottom: 16px; }
.ag-lead { color: var(--ag-text-muted); max-width: 640px; margin-top: 24px; }
.ag-note { color: var(--ag-text-muted); font-size: 14px; margin-top: 24px; }

/* Przyciski (Figma: Barlow Condensed, uppercase, ostre narożniki, ikona strzałki w osobnym polu) */
.ag-btn {
	display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px;
	font: 600 16px/1 var(--ag-font-display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
	border: 1px solid transparent; cursor: pointer; transition: filter .2s, background-color .2s, border-color .2s;
}
.ag-btn__icon { width: 18px; height: 18px; flex: none; }
.ag-btn__icon--gold { color: var(--ag-gold-dark); }
.ag-btn--gold { background: var(--ag-gold-grad); color: var(--ag-dark); }
.ag-btn--dark { background: var(--ag-dark); color: var(--ag-white); border-color: var(--ag-line); }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Nagłówek (Figma 230:12074 „HOME PAGE V. 9”, wersja 21.11: pasek 69 px na całą szerokość) ---------- */
.ag-header {
	--ag-ease: cubic-bezier(.22, 1, .36, 1);
	--ag-hpad-l: 53.29px;   /* Figma: logo x 53.29 */
	--ag-hpad-r: 107px;     /* Figma: przycisk wyceny od x 1576 */
	--ag-header-grey: #3f3f3f;   /* wspólny szary: tło aktywnego linku = tło przycisku wyceny */
	position: fixed; inset: 0 0 auto; z-index: 100; height: var(--ag-header-h); background: var(--ag-dark);
	transition: height .5s var(--ag-ease), transform .65s var(--ag-ease), background-color .5s var(--ag-ease);
}
/* Po przewinięciu (> 80 px, site.js .is-compact): tło 80%, mniejsze logo, bez zakładki pod logo. */
.ag-header.is-compact { background-color: rgb(28 28 28 / 80%); }
.ag-header.is-compact .ag-header__tab { transform: translateY(-100%); opacity: 0; }
.ag-header.is-compact .ag-header__logo { margin-top: 9px; }
.ag-header.is-compact .ag-header__logo img { width: 110px; }   /* 147.87 → 110 px, wyśrodkowane w pasku 69 px */
/* Sekcja z mapą Polski: nagłówek schowany, wysuwa się tylko przy przewijaniu w górę (site.js + process.js). */
.ag-header.is-hidden { transform: translateY(calc(-100% - 40px)); }   /* chowanie / wysuwanie 0.65 s */

/* Pływający przycisk wyceny (tablet/telefon), gdy nagłówek jest schowany – site.js. */
a.ag-cta.ag-floatcta { display: none; }   /* wyższa specyficzność niż .ag-cta (inline-flex) – inaczej przycisk był w treści na desktopie */
@media (max-width: 1100px) {
	a.ag-cta.ag-floatcta {
		display: inline-flex; position: fixed; z-index: 99; right: var(--ag-gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
		opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden;
		transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1), visibility 0s .3s;
	}
	a.ag-cta.ag-floatcta.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
}
.admin-bar .ag-header { top: 32px; }
/* „Zakładka” pod logo (Figma Vector 66): wystaje 45 px pod pasek (do y 114.24), prawa krawędź ścięta
   (73.24 px na 117.13 px – x 291.5 przy pasku, 263.2 na dole). z-index −1 = pod tłem paska. */
.ag-header__tab {
	/* zachodzi 2 px pod pasek (pod jego tłem) – bez szczeliny na styku */
	position: absolute; top: calc(100% - 2px); left: 0; z-index: -1;
	width: calc(var(--ag-hpad-l) + 239.5px); height: 47.24px;
	background: var(--ag-dark);
	clip-path: polygon(0 0, 100% 0, calc(100% - 29.5px) 100%, 0 100%);
	pointer-events: none;
	transition: transform .5s var(--ag-ease), opacity .3s var(--ag-ease);
}
.ag-header__bar { position: relative; height: 100%; display: flex; align-items: center; padding: 0 var(--ag-hpad-r) 0 var(--ag-hpad-l); }
.ag-header__logo { position: relative; z-index: 2; align-self: flex-start; margin-top: 21.23px; transition: margin .5s var(--ag-ease); }  /* Figma: logo 147.87 × 68.88 w (53.29, 21.23) */
.ag-header__logo img { display: block; width: 147.87px; height: auto; transition: width .5s var(--ag-ease); }

/* Menu na środku (Figma 21.11): Barlow Semi Condensed 500 15 px, odstęp 40 px, aktywny link = kolor Light Gold #FFDDB4. */
.ag-nav { position: absolute; left: 50%; top: calc(50% - 1.5px); transform: translate(-50%, -50%); }   /* Figma: tekst od y 24 */
.ag-nav__list { display: flex; gap: 40px; }
.ag-nav__link {
	position: relative; display: block;
	font: 500 15px/1.2 "Barlow Semi Condensed", var(--ag-font-display);
	text-transform: uppercase; text-decoration: none; color: var(--ag-white); white-space: nowrap;
	transition: color .25s;
}
.ag-nav__link:hover, .ag-nav__link:focus-visible { color: var(--ag-peach); }
.ag-nav__link.is-active, .ag-nav__link.is-active:hover { color: var(--ag-gold-light); }
.ag-nav__link:focus-visible { outline: 2px solid var(--ag-white); outline-offset: 2px; }
/* Rozwijane menu „Usługi” (Figma 103:20279): panel #1C1C1C 365 px, od dolnej krawędzi paska (69 px), lewa krawędź = tekst „Usługi”;
   pozycje Barlow 18/24 #ACB0B8, co 38 px, aktywna/hover Light Gold. Otwiera się po najechaniu lub fokusie (klawiatura). */
.ag-nav__item--sub { position: relative; }
.ag-nav__item--sub > .ag-nav__link { display: flex; align-items: center; gap: 8px; }   /* flex (blokowy), nie inline-flex – inaczej linia bazowa obniżała „Usługi” o ~2 px */
.ag-nav__chev { flex: none; transition: transform .25s var(--ag-ease); }
.ag-nav__sub {
	position: absolute; left: 0; top: 100%; padding-top: 24px;   /* niewidoczny „most” od linku do panelu – hover nie gaśnie */
	opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
	transition: opacity .25s var(--ag-ease), transform .25s var(--ag-ease), visibility 0s .25s;
}
.ag-nav__sublist { width: 365px; padding: 14px 27px 24px; display: grid; gap: 14px; background: var(--ag-dark); box-shadow: 0 16px 32px rgb(0 0 0 / 35%); }
.ag-nav__sublink { display: block; font: 400 18px/24px "Barlow", var(--ag-font-body); color: #acb0b8; text-decoration: none; transition: color .2s; }
.ag-nav__sublink:hover, .ag-nav__sublink:focus-visible, .ag-nav__sublink.is-active { color: var(--ag-gold-light); }
.ag-nav__sublink:focus-visible { outline: 2px solid var(--ag-white); outline-offset: 2px; }
@media (min-width: 1101px) {
	.ag-nav__item--sub:hover > .ag-nav__sub, .ag-nav__item--sub:focus-within > .ag-nav__sub {
		opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s;
	}
	.ag-nav__item--sub:hover .ag-nav__chev, .ag-nav__item--sub:focus-within .ag-nav__chev { transform: rotate(180deg); }
}
.ag-nav__quote { display: none; }

/* „Zapytaj o wycenę ↗” = przycisk drugiego stopnia .ag-cta--ghost (ramka peach, tło #1C1C1C 70%, 52 px).
   Figma: od x 1576, wyśrodkowany w pasku 69 px. Po przewinięciu: wypełniony peach jak główny CTA. */
.ag-header__cta { position: absolute; right: var(--ag-hpad-r); top: 50%; transform: translateY(-50%); }
.ag-header__cta .ag-cta__label, .ag-header__cta .ag-cta__icon { transition: background-color .5s var(--ag-ease), color .5s var(--ag-ease), border-color .5s var(--ag-ease); }
.ag-header.is-compact .ag-header__cta .ag-cta__label, .ag-header.is-compact .ag-header__cta .ag-cta__icon { background-color: var(--ag-peach); color: var(--ag-dark); border-color: var(--ag-peach); }

/* Przycisk menu (Figma mobile 266:32019): „MENU” + ikona 22 × 16 (krótka / długa / krótka), ramka peach, tło #1C1C1C 70%, 52 px. */
.ag-burger {
	display: none; margin-left: auto; position: relative; z-index: 2; height: 52px; padding: 0 12px;
	align-items: center; gap: 12px;
	background: rgb(28 28 28 / 70%); border: 1px solid var(--ag-peach); color: var(--ag-white); cursor: pointer;
	font: 500 15px/1 "Barlow Semi Condensed", var(--ag-font-display); text-transform: uppercase;
}
.ag-burger__ico { position: relative; display: block; width: 22px; height: 16px; }
.ag-burger__ico i { position: absolute; right: 0; height: 3px; background: currentColor; transition: transform .25s, opacity .2s, width .25s; }
.ag-burger__ico i:nth-child(1) { top: 0; width: 10.6px; }
.ag-burger__ico i:nth-child(2) { top: 6.5px; width: 20px; }
.ag-burger__ico i:nth-child(3) { top: 13px; width: 10.6px; }
.ag-burger[aria-expanded="true"] .ag-burger__ico i:nth-child(1) { width: 20px; transform: translateY(6.5px) rotate(45deg); }
.ag-burger[aria-expanded="true"] .ag-burger__ico i:nth-child(2) { opacity: 0; }
.ag-burger[aria-expanded="true"] .ag-burger__ico i:nth-child(3) { width: 20px; transform: translateY(-6.5px) rotate(-45deg); }

/* Laptopy: menu nie może wchodzić na panel wyceny. */
@media (max-width: 1400px) and (min-width: 1101px) {
	.ag-header { --ag-hpad-l: 30px; --ag-hpad-r: 40px; }
	.ag-nav__list { gap: 28px; }
	.ag-nav { left: calc(50% - 60px); }
}

@media (max-width: 1100px) {
	.ag-header { --ag-hpad-l: var(--ag-gutter); --ag-hpad-r: var(--ag-gutter); }
	.ag-header__tab, .ag-header .ag-header__cta { display: none; }
	.ag-header__logo { align-self: center; margin: 0; }
	.ag-header.is-compact .ag-header__logo { margin: 0; }
	.ag-header.is-compact .ag-header__logo img { width: 88px; }
	.ag-header__logo img { width: 105.38px; }   /* Figma mobile: logo 105.38 × 49.09 */
	.ag-burger { display: inline-flex; }
	.ag-nav { position: fixed; inset: var(--ag-header-h) 0 0; left: 0; top: var(--ag-header-h); transform: none; background: var(--ag-dark); padding: 40px var(--ag-gutter); display: none; overflow-y: auto; }
	.admin-bar .ag-nav { top: calc(var(--ag-header-h) + 46px); }
	.ag-nav.is-open { display: block; }
	.ag-nav__list { flex-direction: column; gap: 8px; }
	.ag-nav__link { font-size: 28px; line-height: 1.2; padding: 10px 0; display: inline-block; }
	.ag-nav__quote { display: block; margin-top: 24px; }
	/* Telefon: usługi jako lista pod „Usługi” (bez rozwijania). */
	.ag-nav__chev { display: none; }
	.ag-nav__sub { position: static; padding: 0 0 8px; opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none; }
	.ag-nav__sublist { width: auto; padding: 0 0 0 16px; gap: 10px; background: none; box-shadow: none; border-left: 1px solid #3c3c3c; }
	.ag-nav__sublink { font-size: 17px; }
}
@media (max-width: 782px) { .admin-bar .ag-header { top: 46px; } }

/* Hover przycisków: bez zmiany kolorów – tylko animacja tekstu i strzałki (decyzja Mateusza 21.11). */
/* ---------- Przyciski (Figma 21.11): etykieta + pole strzałki 52 px, odstęp 4 px, tekst 16 px, strzałka 16 px ----------
   .ag-cta – główny (peach); .ag-cta--ghost – drugiego stopnia na ciemnym (ramka peach, tło #1C1C1C 70%, biały tekst);
   .ag-cta--outline – drugiego stopnia na jasnym (białe tło, ramka #1C1C1C, strzałka Gold Dark);
   .ag-phone – ikona 52 px + numer (18 px) w ramce peach. */
.ag-cta, .ag-phone { display: inline-flex; gap: 4px; text-decoration: none; }
.ag-cta__label, .ag-cta__icon, .ag-phone__label {
	display: flex; align-items: center; justify-content: center; height: 52px;
	font: 600 16px/24px "Barlow Semi Condensed", var(--ag-font-display); letter-spacing: .02em; text-transform: uppercase;
	transition: background-color .2s, border-color .2s;
}
.ag-cta__label { padding: 0 24px; background: var(--ag-peach); color: var(--ag-dark); white-space: nowrap; }
.ag-cta__icon  { width: 52px; background: var(--ag-peach); color: var(--ag-dark); }
.ag-cta__icon { overflow: hidden; }
.ag-cta__icon .ag-arr { overflow: visible; --ag-arr-size: 25.6px; --ag-arr-travel: 36px; }  /* ikona 16 px; strzałka wylatuje poza pole 52 px */
.ag-cta--ghost .ag-cta__label, .ag-cta--ghost .ag-cta__icon { background: rgb(28 28 28 / 70%); color: var(--ag-white); border: 1px solid var(--ag-peach); }
.ag-phone__icon { width: 52px; height: 52px; flex: none; }
.ag-phone__label { padding: 0 24px; background: rgb(28 28 28 / 70%); color: var(--ag-white); white-space: nowrap; border: 1px solid var(--ag-peach); font-size: 18px; }
.ag-cta:focus-visible, .ag-phone:focus-visible { outline: 2px solid var(--ag-white); outline-offset: 3px; }
.ag-hero__actions .ag-cta:focus-visible .ag-cta__label, .ag-hero__actions .ag-phone:focus-visible .ag-phone__label { outline: 2px solid var(--ag-white); outline-offset: 2px; }

/* ---------- Hero (Figma 97:9130, 1920 × 862, nagłówek nachodzi na górne 97 px) ---------- */
.ag--home .ag-main { padding-top: 0; }
/* Hero = 100% wysokości okna (min. 700 px, żeby zmieściła się treść i dolne ścięcia).
   Tytuły: grupa wyśrodkowana w pionie (patrz .ag-hero__inner); „I PRACE” w tej samej linii co „PRZEMYSŁOWE”
   (wspólna linia bazowa). Metryki Barlow Condensed: wznoszenie 1,0 em, zejście 0,2 em, wersaliki 0,71 em. */
.ag-hero {
	--ag-t1: 82.65px;   /* rozmiar „Czyszczenie przemysłowe” (wys. linii .955) */
	--ag-t2: 79.68px;   /* rozmiar „I prace specjalistyczne” (wys. linii 1) */
}
.ag-hero[data-triangle-cursor] {
	position: relative;
	height: 100vh; height: 100svh; min-height: 700px;
	/* Tło sekcji = obraz zastępczy (klatka filmu); film i siatka w .ag-hero__media (z-index −1, isolation z pliku wzoru). */
	background: var(--ag-dark) var(--ag-hero-photo) center / cover no-repeat;
}
@media (max-width: 960px) { .ag-hero[data-triangle-cursor] { background-image: var(--ag-hero-photo-sm); } }
.ag-hero[data-triangle-cursor] > .ag-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ag-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
/* Gradient z Figmy + przezroczysta siatka Mateusza – nad filmem, pod podświetleniem kursora. */
.ag-hero__overlay {
	position: absolute; inset: 0;
	background-image:
		url("../images/pattern/triangle-pattern-photo.svg?v=2"),
		linear-gradient(to bottom, rgb(28 28 28 / 0%) 55%, rgb(28 28 28 / 70%) 85%, #1c1c1c 100%),   /* dół = czerń sekcji 2 */
		linear-gradient(90.08deg, rgb(28 28 28 / 80%) 0%, rgb(28 28 28 / 10%) 101.15%);
	background-size: 160px 138.564064px, 100% 100%, 100% 100%;
	background-repeat: repeat, no-repeat, no-repeat;
	background-position: left bottom, 0 0, 0 0;
}
.ag-hero[data-triangle-cursor] > .ag-hero__tris { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ag-hero__tris svg { display: block; }
.ag-hero[data-triangle-cursor] > .ag-hero__inner { z-index: 2; }
/* Oba bloki (tytuł 1 + opis | tytuł 2 + przyciski) = jedna grupa wyśrodkowana w pionie względem okna
   (sekcja = 100svh, siatka align-content: center). Góra grupy = górna krawędź liter „CZYSZCZENIE”. */
.ag-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 755fr) minmax(0, 525fr);  /* część 2 od x≈1075 w ramce 1920 */
	align-items: start;
	align-content: center;
	height: 100%;
}
.ag-hero__left  { margin-top: calc(-.1675 * var(--ag-t1)); position: relative; z-index: 2; }   /* pole tytułu zaczyna się 0,1675 em nad literami */
.ag-hero__right { padding-top: calc(1.665 * var(--ag-t1) - .9 * var(--ag-t2)); position: relative; z-index: 2; }   /* linia bazowa „I PRACE” = linia bazowa „PRZEMYSŁOWE” */
.ag-hero__title {
	font: 700 var(--ag-t1)/.955 var(--ag-font-display);   /* Barlow Condensed Bold; 2 linie co 79 px */
	text-transform: uppercase; letter-spacing: 0; color: var(--ag-white);
}
.ag-hero__title em { font-style: normal; color: var(--ag-peach); }
.ag-hero__title--second { font-size: var(--ag-t2); line-height: 1; max-width: 548px; }
.ag-hero__lead { margin-top: 31px; max-width: 300px;  /* Figma: szer. 299 */ font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: var(--ag-white); }
/* Siatka: [etykieta][↗] / [ ][☎][numer] – ikona telefonu zawsze pod polem strzałki (Figma: odstępy 3 px i 7 px). */
.ag-hero__actions { display: grid; grid-template-columns: auto 52px auto; gap: 4px; justify-content: start; margin-top: 33px; padding-left: 2.6px; }   /* Figma: telefon pod polem strzałki, odstępy 4 px */
.ag-hero__actions .ag-cta, .ag-hero__actions .ag-phone { display: contents; }
.ag-hero__actions .ag-cta__label  { grid-column: 1; grid-row: 1; }
.ag-hero__actions .ag-cta__icon   { grid-column: 2; grid-row: 1; }
.ag-hero__actions .ag-phone__icon { grid-column: 2; grid-row: 2; }
.ag-hero__actions .ag-phone__label { grid-column: 3; grid-row: 2; }

/* Ścięte pola przy dolnej krawędzi (Figma Vector 27 / 74). */
/* Ścięte pola przy dolnej krawędzi (Figma V. 9): 492 × 80 px, ten sam kąt skosu co wcześniej. */
.ag-hero[data-triangle-cursor] > .ag-hero__cut { position: absolute; z-index: 3; bottom: -0.3px; width: 492px; height: 80px; pointer-events: none; }
.ag-hero__cut--bl { left: 0; }
.ag-hero__cut--br { right: 0; transform: scaleX(-1); }

/* Laptopy: skala całego hero, żeby układ z Figmy (1920) mieścił się w kontenerze. */
@media (max-width: 1600px) and (min-width: 1101px) {
	.ag-hero { --ag-t1: clamp(64px, 5.2vw, 82.65px); --ag-t2: clamp(62px, 5vw, 79.68px); }
}

/* Tablet / telefon: jedna kolumna. */
@media (max-width: 1100px) {
	.ag-hero[data-triangle-cursor] { height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--ag-header-h) + var(--ag-section-y)) 0 calc(var(--ag-section-y) + 40px); background-position: 62% center; }
	.ag-hero__video { object-position: 62% center; }
	.ag-hero__overlay { box-shadow: inset 0 0 0 100vmax rgb(28 28 28 / 35%); } /* czytelność tekstu na jasnych kadrach */
	.ag-hero[data-triangle-cursor] { display: flex; flex-direction: column; justify-content: center; }
	.ag-hero__inner { display: flex; flex-direction: column; height: auto; width: 100%; }
	.ag-hero__left { margin-top: 0; }
	.ag-hero__left, .ag-hero__right { display: contents; }
	.ag-hero__title { order: 1; font-size: clamp(44px, 11.5vw, 72px); line-height: .96; }
	.ag-hero__title--second { order: 2; font-size: clamp(44px, 11.5vw, 72px); color: var(--ag-peach); }
	.ag-hero__lead { order: 3; margin-top: 20px; max-width: 420px; font-size: 16px; }
	.ag-hero__actions { order: 4; margin-top: 32px; padding-left: 0; }
}
@media (max-width: 600px) {
	/* Telefon: numer nie mieści się pod strzałką – dwa rzędy od lewej. */
	.ag-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
	.ag-hero__actions .ag-cta, .ag-hero__actions .ag-phone { display: inline-flex; }
	.ag-hero[data-triangle-cursor] > .ag-hero__cut { width: 46vw; height: calc(46vw * 80 / 492); }
}
@media (max-width: 420px) {
	.ag-cta__label, .ag-phone__label { padding: 0 18px; }
}


/* ---------- Animacje przycisków (wzór: cantor8.io) ----------
   Tekst: .ag-roll – napis wysuwa się w górę, kopia wjeżdża z dołu (950 ms).
   Strzałka: .ag-arr – strzałka wylatuje w prawo-górę, nowa wjeżdża z lewego-dołu (620 ms).
   Działa na: .ag-cta (hero, menu mobilne), .ag-header__cta, .ag-link (karty), .ag-btn (formularz, 404), .ag-phone. */
.ag-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.34; }
.ag-roll__a, .ag-roll__b { display: block; transition: transform 950ms cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.ag-roll__b { position: absolute; left: 0; top: 100%; }
.ag-arr {
	--ag-arr-size: 24px;
	--ag-arr-travel: var(--ag-arr-size);
	position: relative; display: inline-block; flex: none;
	width: var(--ag-arr-size); height: var(--ag-arr-size); overflow: hidden;
}
.ag-arr svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 620ms cubic-bezier(.22, 1, .36, 1), opacity 620ms cubic-bezier(.22, 1, .36, 1); }
.ag-arr__b { transform: translate(calc(-1 * var(--ag-arr-travel)), var(--ag-arr-travel)) scale(.85); opacity: 0; }
@media (hover: hover) {
	:is(.ag-cta, .ag-header__cta, .ag-link, .ag-btn, .ag-phone):is(:hover, :focus-visible) .ag-roll__a,
	:is(.ag-cta, .ag-header__cta, .ag-link, .ag-btn, .ag-phone):is(:hover, :focus-visible) .ag-roll__b { transform: translateY(-100%); }
	:is(.ag-cta, .ag-header__cta, .ag-link, .ag-btn):is(:hover, :focus-visible) .ag-arr__a { transform: translate(var(--ag-arr-travel), calc(-1 * var(--ag-arr-travel))) scale(.85); opacity: 0; }
	:is(.ag-cta, .ag-header__cta, .ag-link, .ag-btn):is(:hover, :focus-visible) .ag-arr__b { transform: none; opacity: 1; }
}
.ag-btn .ag-arr { --ag-arr-size: 18px; }

/* ---------- Sekcja 2: Nasze rozwiązania (Figma 97:6256) ---------- */
.ag-services { position: relative; background: var(--ag-dark); }
.ag-services__panel { padding: 122px 0 var(--ag-section-y); }   /* Figma: nagłówek 122 px od góry sekcji */
.ag-services__head { position: relative; transition: opacity .5s cubic-bezier(.22, 1, .36, 1); }
.ag-services__head.is-out { opacity: 0; }   /* przy przewijaniu kart w bok (site.js) */
.ag-label {
	font: 600 18px/1 "Barlow Semi Condensed", var(--ag-font-display); letter-spacing: .02em; text-transform: uppercase;
	color: var(--ag-gold-light);
}
.ag-services__head .ag-label { position: absolute; left: calc(var(--ag-gutter) - 99.3px); top: 8.86px; }  /* x=220.7 w ramce 1920 */
.ag-h2 { font-size: 64px; }
.ag-services__title { line-height: 1; }
.ag-services__viewport { overflow: hidden; margin-top: 24.5px; padding: 2px 0; }   /* rząd kart od y=276.5; 2 px zapasu, żeby obramowanie kart nie było przycinane */
.ag-services__row {
	display: flex; align-items: flex-start; gap: 20px;
	padding: 0 max(var(--ag-gutter), (100% - var(--ag-container)) / 2);
	will-change: transform;
}
.ag-scard {
	/* Wysokość i schodki skalowane przez site.js (--ag-card-h, --ag-dk), żeby cały rząd mieścił się w oknie. */
	position: relative; flex: none; width: 630px; height: var(--ag-card-h, 400px); margin-top: calc(var(--ag-d, 0px) * var(--ag-dk, 1));
	display: flex; flex-direction: column; justify-content: space-between; padding: 40px 24px 20px;
	background: rgb(28 28 28 / 50%); border: 1px solid #555; overflow: hidden;
	transition: border-color .3s;
}
.ag-scard:hover { border-color: #7a7a7a; }
.ag-scard::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		url("../icons/card-deco-10.svg") 26px -1px / 531.317px 397.419px no-repeat,
		url("../icons/card-deco-9.svg") 228.43px -1px / 400px 400px no-repeat;
}
.ag-scard__img { position: absolute; z-index: 0; right: 0; top: -1px; width: 270px; height: calc(100% + 1px); object-fit: cover; object-position: right bottom; }
.ag-scard--wide .ag-scard__img { width: 356px; }
.ag-scard__bg { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 130.82%; object-fit: cover; opacity: .6; }
.ag-scard--bg::before { background: linear-gradient(to right, var(--ag-dark) 1.037%, rgb(28 28 28 / 0%)); }
.ag-scard__body, .ag-scard__link { position: relative; z-index: 2; }
.ag-scard__body { display: flex; flex-direction: column; gap: 24px; }
.ag-scard__title { font: 600 36px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); max-width: 270px; }
.ag-scard__text { font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; max-width: 312px; }
.ag-link {
	display: inline-flex; align-items: center; gap: 12px; height: 46px; align-self: flex-start;
	font: 600 18px/24px "Barlow Semi Condensed", var(--ag-font-display); letter-spacing: .02em; text-transform: uppercase;
	color: var(--ag-gold-light); text-decoration: none;
}

/* Tryb „przypięty”: panel sticky, rząd przesuwany w bok skryptem (site.js ustawia top panelu i wysokość sekcji). */
.ag-services.is-hscroll .ag-services__panel { position: sticky; }

@media (max-width: 1520px) {
	.ag-services__head .ag-label { position: static; margin-bottom: 16px; }
}
@media (max-width: 1100px) {
	/* Tablet: przejście trójkątów (bok 80) – 2 rzędy nad granicą, 1 pod nią, + 80 px odstępu. */
	.ag-services__panel { padding-top: var(--ag-section-y); padding-bottom: calc(2 * 69.282px + var(--ag-section-y)); }
	.ag-h2 { font-size: clamp(44px, 11vw, 64px); }
	.ag-services__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--ag-gutter); scrollbar-width: none; margin-top: 32px; }
	.ag-services__viewport::-webkit-scrollbar { display: none; }
	.ag-services__row { gap: 12px; }
	.ag-scard { margin-top: 0; width: min(86vw, 430px); height: 520px; scroll-snap-align: start; }
	.ag-scard__img, .ag-scard--wide .ag-scard__img { height: 250px; }  /* bez schodków */
	.ag-scard__img, .ag-scard--wide .ag-scard__img { top: auto; bottom: -1px; width: auto; max-width: 75%; height: 250px; object-fit: contain; }
	.ag-scard::before { background-position: 0 -1px, 40% -1px; }
	.ag-scard__title { font-size: 32px; }
	.ag-scard__text { font-size: 16px; }
}


/* ---------- Sekcja 3: O nas w 3 etapach (Figma 215:115, 1920 × 992) ---------- */
/* Przejście ciemna → jasna (triangle-blend.js): wrapper o wysokości 0 na granicy sekcji 2 i 3. */
.triangle-blend { z-index: 5; }
/* Panel usług: wysokość = wielokrotność kafelka (8 × 138.56) → siatka usług i siatka przejścia trafiają w te same linie. */
@media (min-width: 1101px) { .ag-services__panel { min-height: calc(138.564064px * 8); } }

.ag-about { position: relative; background: var(--ag-light); margin-top: -1px; }   /* zachodzi 1 px na sekcję 2 – bez ciemnej linii na styku */
.ag-about__panel { min-height: max(992px, 100vh); }
.ag-about__panel.triangle-pattern--light {
	/* Gradient w kolorze tła #F9F9F9 (= kolor końcowy przejścia trójkątów) – bez widocznej krawędzi na styku z sekcją 2. */
	background-color: var(--ag-light);
	background-image:
		linear-gradient(to bottom, rgb(249 249 249 / 98%) 0%, rgb(249 249 249 / 92%) 22%, rgb(249 249 249 / 64%) 52%, rgb(249 249 249 / 26%) 76%, rgb(249 249 249 / 0%) 100%),
		url("../images/pattern/triangle-pattern-light.svg");
}
.ag-about[data-triangle-cursor], .ag-about__panel[data-triangle-cursor] { overflow: hidden; }
.ag-about__panel > .ag-about__media { position: absolute; z-index: 1; left: 0; top: 209.92px; width: calc(50% - 117px); height: 553.71px; overflow: hidden; }
.ag-about__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transform: scale(1.06); filter: grayscale(1);
	transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 1400ms cubic-bezier(.22, 1, .36, 1);
}
.ag-about__img.is-active { opacity: 1; transform: scale(1); }
.ag-about__panel > .ag-about__inner { z-index: 2; display: grid; grid-template-columns: minmax(0, 757fr) minmax(0, 523fr); }
.ag-about__label { position: absolute; left: calc(var(--ag-gutter) + 50.66%); top: 355.9px; color: var(--ag-gold-dark); line-height: 24px; }
.ag-about__stages { grid-column: 2; display: grid; padding-top: 347.77px; min-height: 699.63px; }   /* przycisk zawsze na y=699.6 */
.ag-about__stage {
	grid-area: 1 / 1; opacity: 0; transform: translateY(48px); pointer-events: none;
	transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}
.ag-about__stage.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 120ms; }
.ag-about__stage.is-past { transform: translateY(-48px); }
.ag-about__mimg { display: none; }
.ag-about__slabel { display: none; }
@media (min-width: 1101px) { .ag-about__slabel { display: block; } }
.ag-about__title { font: 700 64px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-dark); max-width: 525px; }
.ag-about__title em { font-style: normal; color: var(--ag-gold-dark); }
.ag-about__text { margin-top: 24px; max-width: 525px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #404040; }   /* Figma 21.11: odstęp 24, 16 px */
.ag-about__cta { grid-column: 2; justify-self: start; margin-left: -.1px; }

/* Przycisk konturowy (Figma 201:31943): ramka 1 px #1C1C1C, strzałka w kolorze Gold Dark. */
.ag-cta--outline .ag-cta__label, .ag-cta--outline .ag-cta__icon { background: var(--ag-white); color: var(--ag-dark); border: 1px solid var(--ag-dark); }   /* Figma 21.11: białe tło */
.ag-cta--outline .ag-cta__icon { color: var(--ag-gold-dark); }
.ag-cta--outline:focus-visible { outline-color: var(--ag-dark); }

.ag-about__panel > .ag-about__cut { position: absolute; z-index: 3; bottom: -0.3px; width: 492px; height: 80px; pointer-events: none; }   /* jak w hero */
.ag-about__cut--bl { left: 0; }
.ag-about__cut--br { right: 0; transform: scaleX(-1); }

/* Tryb etapów (site.js): sekcja wyższa o 3 odcinki przewijania, panel przypięty. */
.ag-about.is-stages .ag-about__panel { position: sticky; top: 0; }

/* Desktop: panel = wysokość okna; zdjęcie i blok tekstu wyśrodkowane w pionie między nagłówkiem strony a ścięciami.
   Zdjęcie maks. 553.71 px (Figma), niższe okno → niższe zdjęcie (min. 416 px = etap 352 + przycisk 64).
   Blok tekstu: przycisk przy dolnej krawędzi zdjęcia, etap 352 px nad nim (jak w Figmie: y 348 → 700). */
@media (min-width: 1101px) {
	/* Stała wysokość: Figma 992 px − 80 px górnego odstępu = 912 px – na każdym ekranie, także na laptopie.
	   Przypięcie: blok zdjęcie + tekst (553.71 px) wyśrodkowany w widocznym obszarze pod nagłówkiem strony;
	   na wysokich ekranach panel od góry okna (top 0). */
	.ag-about__panel {
		--ag-ab-h: max(912px, 100vh);   /* Figma 992 − 80 px górnego odstępu; min. wysokość okna (przypięty panel bez pasa tła pod spodem) */
		--ag-ab-mh: 553.71px;
		--ag-ab-top: 129.92px;   /* Figma 209.92 − 80 */
		height: var(--ag-ab-h); min-height: 0;
		background-size: 100% 70%, 160px 138.564064px;   /* biały gradient kończy się wyżej (było 100%) */
	}
	.ag-about.is-stages .ag-about__panel {
		top: min(0px, calc(var(--ag-header-h) + (100vh - var(--ag-header-h) - var(--ag-ab-mh)) / 2 - var(--ag-ab-top)));
	}
	.ag-about__panel > .ag-about__media { top: var(--ag-ab-top); height: var(--ag-ab-mh); }
	/* Tekst etapu + przycisk wyśrodkowane w pionie względem zdjęcia; etykieta „O nas” 8 px pod górą etapu, x jak w Figmie. */
	.ag-about__panel > .ag-about__inner {
		position: absolute; left: 0; right: 0; top: var(--ag-ab-top); height: var(--ag-ab-mh);
		grid-template-rows: 1fr auto auto 1fr;
	}
	.ag-about__stages { grid-row: 2; padding-top: 0; min-height: 0; align-content: start; }
	.ag-about__cta { grid-row: 3; margin-top: 40px; }
	/* Każdy etap: tekst kończy się 40 px nad przyciskiem (etapy wyrównane do dołu), etykieta „O nas” przy górze tytułu
	   danego etapu (w etapie, x jak w Figmie: 50.66% kontenera = −20.75% szerokości kolumny 2). */
	.ag-about__stage { position: relative; align-self: end; }
	.ag-about__panel .ag-about__label { display: none; }
	.ag-about__slabel { position: absolute; top: 8.13px; left: -20.75%; white-space: nowrap; color: var(--ag-gold-dark); line-height: 24px; }
}

@media (max-width: 1400px) and (min-width: 1101px) {
	.ag-about__title { font-size: 56px; }
	.ag-about__label { left: calc(var(--ag-gutter) + 44%); }
	.ag-about__slabel { left: -37.05%; }   /* 44% kontenera */
}
@media (max-width: 1100px) {
	.ag-about__panel { min-height: 0; padding: calc(69.282px + var(--ag-section-y)) 0 calc(var(--ag-section-y) + 60px); }
	.ag-about__panel > .ag-about__media { display: none; }
	.ag-about__panel > .ag-about__inner { display: block; }
	.ag-about__label { position: static; margin-bottom: 20px; }
	.ag-about__stages { display: grid; gap: 56px; padding-top: 0; min-height: 0; }
	.ag-about__stage, .ag-about__stage.is-past { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; transition: none; }
	.ag-about__mimg { display: block; width: calc(100% + 2 * var(--ag-gutter)); max-width: none; margin: 0 calc(-1 * var(--ag-gutter)) 28px; height: auto; aspect-ratio: 852 / 554; object-fit: cover; filter: grayscale(1); }
	.ag-about__title { font-size: clamp(38px, 10vw, 56px); }
	.ag-about__text { margin-top: 20px; font-size: 16px; }
	.ag-about__cta { margin-top: 40px; }
	.ag-about__panel > .ag-about__cut { width: 46vw; height: calc(46vw * 80 / 492); }
}


/* ---------- Sekcja 4: Jak wygląda współpraca? (Figma 99:16477 → mapa 187:19868) ----------
   Panel = [data-triangle-cursor] (ciemny wzór Mateusza z gradientem z góry). Canvas linii nad gradientem, treść nad canvasem.
   Dzieci panelu: selektor .ag-process__panel > … (plik wzoru ustawia dzieciom position: relative). */
.ag-process { position: relative; background: var(--ag-dark); }
.ag-process__panel { padding: var(--ag-section-y) 0 calc(var(--ag-section-y) + 120px); }
.ag-process__panel[data-triangle-cursor] { background-position: left top, left bottom; }   /* siatka od dołu (telefon: widoczna w wycięciach sekcji 5) */
.ag-process__panel > .ag-process__canvas, .ag-process__panel > .ag-process__logo { display: none; }
.ag-process__title { line-height: 1; transition: opacity .6s; }
.ag-process__title.is-out { opacity: 0; }
.ag-process__steps { list-style: none; }
.ag-pstep__num { font: 600 36px/1 var(--ag-font-display); color: var(--ag-gold-dark); }
.ag-pstep__title { font: 600 36px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); }
.ag-pstep__text { margin-top: 14px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-process__map-text { font: 600 36px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); text-align: center; }
.ag-process__panel > .ag-process__corner { display: none; }
.ag-process__label, .ag-process__panel > .ag-pm, .ag-process__map-sub { display: none; }   /* tylko telefon (≤ 767 px) */   /* szary romb #343434 ukryty (2026-11-20) */

/* Statycznie (telefon, reduced-motion, bez JS): lista kroków + mapa SVG. */
.ag-process:not(.is-anim) .ag-process__steps { display: grid; gap: 40px; margin-top: 48px; }
.ag-process:not(.is-anim) .ag-pstep { display: flex; gap: 20px; align-items: flex-start; }
.ag-process:not(.is-anim) .ag-process__steps, .ag-process:not(.is-anim) .ag-process__map { padding: 0 var(--ag-gutter); max-width: calc(var(--ag-container) + 2 * var(--ag-gutter)); margin-left: auto; margin-right: auto; }
.ag-process:not(.is-anim) .ag-process__map { position: relative; margin-top: 64px; text-align: center; }
.ag-process:not(.is-anim) .ag-process__map-svg { width: min(100%, 560px); height: auto; display: block; margin: 0 auto; }
.ag-process:not(.is-anim) .ag-process__map-text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(24px, 6vw, 36px); }

/* Animacja (≥1101 px, process.js): panel przypięty na wysokość okna, elementy ustawiane skryptem. */
.ag-process.is-anim .ag-process__panel { --ag-pk: 1; position: sticky; top: 0; padding: 0; }   /* top i wysokość ustawia process.js */
.ag-process.is-anim .ag-process__panel[data-triangle-cursor] { background-position: left top, left top; }   /* siatka od góry = siatka canvasu */
.ag-process.is-anim .ag-process__panel > .ag-process__canvas { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ag-process.is-anim .ag-process__panel > .ag-process__logo { display: block; position: absolute; z-index: 1; width: calc(182.3px * var(--ag-pk)); height: calc(186.77px * var(--ag-pk)); opacity: 0; transition: opacity 1s; }
.ag-process.is-anim .ag-process__logo.is-in { opacity: 1; }
.ag-process.is-anim .ag-process__panel > .ag-process__head { position: absolute; left: 0; right: 0; z-index: 2; }
.ag-process.is-anim .ag-process__panel > .ag-process__steps, .ag-process.is-anim .ag-process__panel > .ag-process__map { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ag-process.is-anim .ag-process__map-svg { display: none; }
.ag-process.is-anim .ag-pstep {
	position: absolute; opacity: 0;   /* przesunięcie przez „translate”, „transform” zostaje dla wyśrodkowania (skrypt) */
	transition: opacity .7s cubic-bezier(.22, 1, .36, 1), translate .9s cubic-bezier(.22, 1, .36, 1);
	translate: 0 24px;
}
.ag-process.is-anim .ag-pstep.is-in { opacity: 1; translate: 0 0; pointer-events: auto; }
/* Kroki 1–3: numer nad tytułem, wyśrodkowany (odstęp 19); krok 1 311 px, kroki 2–3 opis 335 px.
   Wszystko × --ag-pk (= bok trójkąta / 13, ustawia process.js) – odstępy jak w Figmie przy każdym rozmiarze. */
.ag-process.is-anim .ag-pstep__num, .ag-process.is-anim .ag-pstep__title { font-size: calc(36px * var(--ag-pk)); }
.ag-process.is-anim .ag-pstep__text { font-size: 16px; margin-top: calc(14px * var(--ag-pk)); }
.ag-process.is-anim .ag-pstep--1 { display: flex; flex-direction: column; align-items: center; width: var(--ag-s1w, calc(311px * var(--ag-pk))); text-align: center; gap: calc(19px * var(--ag-pk)); }
.ag-process.is-anim .ag-pstep--2, .ag-process.is-anim .ag-pstep--3 { display: flex; flex-direction: column; align-items: center; gap: calc(19px * var(--ag-pk)); }   /* numer nad tytułem, jak krok 1 */
.ag-process.is-anim .ag-pstep--2 .ag-pstep__body, .ag-process.is-anim .ag-pstep--3 .ag-pstep__body { width: var(--ag-sbw, calc(335px * var(--ag-pk))); text-align: center; }   /* Figma 335 px × skala, min. 300 px (maks. 3 linie, process.js) */
.ag-process.is-anim .ag-process__map-text { position: absolute; opacity: 0; transition: opacity .8s; }
.ag-process.is-anim .ag-process__map-text.is-in { opacity: 1; }

@media (max-width: 1100px) {
	.ag-pstep__num, .ag-pstep__title { font-size: 30px; }
	.ag-pstep__text { font-size: 16px; }
}

/* ---------- Sekcja 5: Zapytaj o wycenę prac (Figma 103:20165 „Oddzielnik”, 1920 × 784) ----------
   Tło: zdjęcie (dół kadru) + #1C1C1C 80%. Ciemne pola: u góry – przedłużenie sekcji 4 (kafelek siatki od góry sekcji;
   panel sekcji 4 ma wysokość = wielokrotność kafelka i siatkę wyrównaną do dołu), u dołu – przedłużenie stopki.
   Kształty z Figmy (Vector 29/30 u góry, 28/31 u dołu), skos 69.6 px na 117.13 px. */
/* Górne pola są przezroczyste: sekcja nachodzi na sekcję 4 (margin-top ujemny; przy animacji process.js ustawia
   −wysokość okna, więc sekcja wjeżdża na przypiętą mapę i ją zakrywa), a w wycięciach widać sekcję 4.
   Zdjęcie leży w warstwie .ag-ctasec__bg przyciętej poniżej górnych pól. */
.ag-ctasec {
	position: relative; z-index: 3; overflow: hidden; isolation: isolate;
	min-height: 784px; display: flex; align-items: center; justify-content: center;
	padding: 200px 0;
	margin-top: -233.13px;
}
.ag-ctasec__bg, .ag-ctasec__bottom { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.ag-ctasec__bg {
	top: 0; bottom: 0; overflow: hidden; background: var(--ag-dark);
	/* G1 kończy się na 80% szerokości (Figma 72.05%, wydłużony na prośbę Mateusza), skos S1 = 69.6 px; G2 408.44 px. */
	clip-path: polygon(80% 0, 100% 0, 100% 100%, 0 100%, 0 233.13px, 338.8px 233.13px, 408.44px 117.13px, calc(80% - 69.6px) 117.13px);
}
.ag-ctasec__bottom {
	bottom: -1px; height: 233.13px;
	background: var(--ag-dark);   /* = góra stopki (gradient 98% – siatka prawie niewidoczna) */
	/* D1 zaczyna się na 20% szerokości (Figma 27.94%, wydłużony na prośbę Mateusza), skos S3 = 69.6 px; D2 339 px od prawej. */
	clip-path: polygon(calc(100% - 339px) 0, 100% 0, 100% 100%, 20% 100%, calc(20% + 69.6px) 115px, calc(100% - 408.6px) 115px);
}
/* Zdjęcie (wyśrodkowane) + przyciemnienie 80%; powiększenie 1 → 1.18, aż środek sekcji dojdzie do środka okna (site.js). */
.ag-ctasec__img {
	/* Powiększenie przez rozmiar warstwy (bez transform – warstwa zostaje przycięta do skośnego kształtu .ag-ctasec__bg). */
	--ag-zi: calc((var(--ag-zoom, 1) - 1) * -50%);
	position: absolute; top: var(--ag-zi); bottom: var(--ag-zi); left: var(--ag-zi); right: var(--ag-zi);
	background: var(--ag-cta-bg) center / cover no-repeat;
}
.ag-ctasec__bg::after { content: ""; position: absolute; inset: 0; background: rgb(28 28 28 / 80%); }
.ag-ctasec__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ag-ctasec__title { font: 600 64px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); }
.ag-ctasec__title em { font-style: normal; color: var(--ag-peach); }
.ag-ctasec__text { margin-top: 19px; max-width: 630px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: var(--ag-white); }
.ag-ctasec__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 41px; }   /* Figma 21.11: odstęp 4 px */
/* Telefon w ramce peach (Figma 136:61492): numer, potem ikona – ramka 1 px #DEA97D na #1C1C1C 70%. */
.ag-phone--outline .ag-phone__label { background: rgb(28 28 28 / 70%); border: 1px solid var(--ag-peach); }

@media (max-width: 1100px) {
	.ag-ctasec { min-height: 0; padding: calc(var(--ag-section-y) + 90px) 0; margin-top: -116.6px; }
	.ag-ctasec__img { background-image: var(--ag-cta-bg-sm); }
	.ag-ctasec__bg {
		clip-path: polygon(80% 0, 100% 0, 100% 100%, 0 100%, 0 116.6px, 169.4px 116.6px, 204.2px 58.07px, calc(80% - 34.8px) 58.07px); }
	/* Pola w połowie skali */
	.ag-ctasec__bottom { height: 116.6px; clip-path: polygon(calc(100% - 169.5px) 0, 100% 0, 100% 100%, 20% 100%, calc(20% + 34.8px) 57.5px, calc(100% - 204.3px) 57.5px); }
	.ag-ctasec__title { font-size: clamp(40px, 10vw, 64px); }
	.ag-ctasec__text { font-size: 16px; }
}

/* Strona zapasowa / treść z edytora */
.ag-generic__inner { max-width: 860px; }
.ag-prose { margin-top: 32px; color: var(--ag-text-muted); }
.ag-prose p + p { margin-top: 1em; }

/* ---------- Strona Kontakt (Figma 266:83939, 1920 × 1260) ----------
   Sekcja na wzorze trójkątów (gradient z góry). Nagłówek od y 200.5 (etykieta „Kontakt” 104.5 px na lewo od kontenera),
   niżej dwie kolumny: dane 524 px | formularz 630 px (od x 968, odstęp 126 px). Zdjęcie 538 × 1229 przy prawej krawędzi, od y 60.5. */
.ag-contactpage { padding: calc(200px - var(--ag-header-h)) 0 160px; }   /* .ag-main ma już padding = wysokość nagłówka */
.ag-contactpage[data-triangle-cursor] > .ag-contactpage__img {
	position: absolute; z-index: 0; right: 0; top: calc(60.5px - var(--ag-header-h)); width: 28.03vw; max-width: 538px; height: auto; pointer-events: none;
	filter: grayscale(1) drop-shadow(-31px 45px 16.8px rgb(0 0 0 / 25%));
}
.ag-contactpage__head { position: relative; }
.ag-contactpage__label { position: absolute; left: -104.5px; top: 15.8px; }
.ag-contactpage__title { font: 700 82.65px/1 var(--ag-font-display); text-transform: uppercase; color: #f5f5f5; max-width: 524px; }
.ag-contactpage__grid { display: grid; grid-template-columns: minmax(0, 524fr) minmax(0, 632fr); column-gap: 9.8%; align-items: start; margin-top: 113.8px; }
.ag-contactpage__h2 { font: 600 36px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); }
.ag-contactpage__text { margin-top: 24px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-contactpage__links { margin-top: 80px; display: grid; gap: 12px; font: 600 24px/1 "Barlow", var(--ag-font-body); }
.ag-contactpage__links a { color: var(--ag-white); text-decoration: none; transition: color .25s; }
.ag-contactpage__links a:hover, .ag-contactpage__links a:focus-visible { color: var(--ag-peach); }
.ag-contactpage__note { margin-top: 80px; max-width: 310px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: var(--ag-white); }
.ag-contactpage__note em { font-style: normal; font-weight: 700; }
.ag-contactpage__form .ag-form, .ag-contactpage__form .ag-formcard__done { margin-top: 33px; }
.ag-formcard__done { padding: 24px; border: 1px solid var(--ag-peach); background: #171717; color: var(--ag-gold-light); }

/* Formularz: pola 56 px, tło #171717, ramka #3C3C3C; etykieta w polu (16 px #CCC), po wpisaniu u góry 12 px. */
.ag-form { display: grid; gap: 20px; }
.ag-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ag-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-field { position: relative; }
.ag-field input, .ag-field select, .ag-field textarea {
	display: block; width: 100%; height: 56px; padding: 23px 20px 7px; margin: 0;
	font: 400 16px/24px "Barlow", var(--ag-font-body); color: var(--ag-white);
	background: #171717; border: 1px solid #3c3c3c; border-radius: 0; appearance: none; -webkit-appearance: none;
	transition: border-color .25s;
}
.ag-field textarea { height: 172px; resize: vertical; padding-top: 24px; }
.ag-field select { padding-right: 52px; cursor: pointer; }
.ag-field select option { background: #171717; color: var(--ag-white); }
.ag-field label {
	position: absolute; left: 21px; top: 17px; right: 21px; pointer-events: none;
	font: 400 16px/24px "Barlow", var(--ag-font-body); color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transform-origin: left top; transition: top .2s var(--ag-ease), font-size .2s var(--ag-ease), line-height .2s var(--ag-ease);
}
.ag-field__opt { font-size: 12px; color: #6c6c6c; vertical-align: super; line-height: 0; }
.ag-field:focus-within label, .ag-field.is-filled label { top: 7px; font-size: 12px; line-height: 18px; }
.ag-field:focus-within .ag-field__opt, .ag-field.is-filled .ag-field__opt { font-size: 10px; vertical-align: baseline; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: none; border-color: var(--ag-peach); }
/* Fokus: tylko ramka 1 px peach (bez dodatkowego obrysu – prośba Mateusza 22.11). */
.ag-field__arrow { position: absolute; right: 20px; top: 20px; width: 16px; height: 16px; color: #ccc; pointer-events: none; transform: rotate(90deg); }   /* Figma: strzałka obrócona o 90° (↘) */
.ag-field__arrow .ag-arr { --ag-arr-size: 16px; }
.ag-field__arrow svg { display: block; width: 16px; height: 16px; }
.ag-field.has-error input, .ag-field.has-error textarea, .ag-field.has-error select { border-color: var(--ag-error); }
.ag-field__err { color: var(--ag-error); font-size: 13px; margin-top: 6px; }
.ag-field__err:empty { display: none; }
/* Podpowiedzi miejscowości (place-suggest.js) */
.ag-suggest {
	position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: -1px; max-height: 336px; overflow-y: auto;
	background: #171717; border: 1px solid var(--ag-peach); list-style: none;
	box-shadow: 0 12px 24px rgb(0 0 0 / 40%);
}
.ag-suggest li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 20px; cursor: pointer; }
.ag-suggest li + li { border-top: 1px solid #262626; }
.ag-suggest li:hover, .ag-suggest li.is-active { background: #262626; }
.ag-suggest__name { font: 400 16px/24px "Barlow", var(--ag-font-body); color: var(--ag-white); }
.ag-suggest__where { font: 400 12px/18px "Barlow", var(--ag-font-body); color: #8a8a8a; text-align: right; }
.ag-form__privacy { font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ag-form__privacy a:hover { color: var(--ag-white); }
.ag-form__status { color: var(--ag-error); font-size: 14px; }
.ag-form__status:empty { display: none; }
button.ag-cta { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ag-form__submit { justify-self: start; }
.ag-form.is-sending .ag-form__submit { opacity: .6; pointer-events: none; }
/* Formularz z 404 / innych miejsc (stare klasy) */
.ag-form button.ag-btn[type="submit"] { justify-self: start; }

@media (max-width: 1500px) {
	.ag-contactpage[data-triangle-cursor] > .ag-contactpage__img { opacity: .35; }
}
@media (max-width: 1400px) and (min-width: 1101px) {
	.ag-contactpage__label { position: static; margin-bottom: 16px; }
	.ag-contactpage[data-triangle-cursor] > .ag-contactpage__img { display: none; }
}
@media (max-width: 1100px) {
	.ag-contactpage { padding: var(--ag-section-y) 0; }
	.ag-contactpage[data-triangle-cursor] > .ag-contactpage__img { display: none; }
	.ag-contactpage__label { position: static; margin-bottom: 16px; }
	.ag-contactpage__title { font-size: clamp(44px, 11vw, 72px); }
	.ag-contactpage__grid { grid-template-columns: 1fr; row-gap: 80px; margin-top: 56px; }
	.ag-contactpage__links { margin-top: 48px; font-size: 22px; }
	.ag-contactpage__note { margin-top: 48px; }
}
@media (max-width: 767px) {
	.ag-contactpage__title { font-size: 48px; }
	.ag-contactpage__h2 { font-size: 32px; }
	.ag-form__row { grid-template-columns: 1fr; }
}

/* ---------- Stopka (Figma 103:20206, 1920 × 684) ----------
   Siatka trójkątów z czarnym gradientem od góry (jak w pozostałych sekcjach), podświetlenie kursora.
   Kolumny: marka 386 | Na stronie 256 | Usługi 386 | Kontakt 250 (x 316 / 706 / 962 / 1348 w ramce 1920);
   góra kolumn 116.5 px, marka wyrównana do dołu kolumny Usługi, pasek dolny 132.5 px niżej, 40 px do dołu. */
.ag-footer[data-triangle-cursor] { padding: 0 0 40px; }   /* tło: domyślny wzór Mateusza (gradient z góry + siatka); bez górnego paddingu – odstęp dają dolne pola sekcji 5 */
/* Zdjęcie góry (Figma: 1161 px szer. przy ramce 1920, lewa krawędź x 934, góra y 121; krycie 20%, lighten). */
.ag-footer[data-triangle-cursor] > .ag-footer__mountain {
	position: absolute; z-index: 0; right: -175px; bottom: -203px; width: 1161px; max-width: none; height: auto;
	opacity: .2; mix-blend-mode: lighten; pointer-events: none; user-select: none;
	filter: grayscale(1);   /* czarno-białe */
}
/* Laptopy: rząd trójkątów niżej (69.28 px) i 2 trójkąty w prawo (2 × 80 px). */
@media (max-width: 1600px) and (min-width: 1101px) {
	.ag-footer[data-triangle-cursor] > .ag-footer__mountain { right: -335px; bottom: -272.28px; }
}
.ag-footer__grid { display: grid; grid-template-columns: minmax(0, 386fr) minmax(0, 256fr) minmax(0, 386fr) minmax(0, 250fr); align-items: start; }
.ag-footer__brand { align-self: end; margin-left: -4px; }
.ag--contact .ag-footer[data-triangle-cursor], .ag--quote .ag-footer[data-triangle-cursor] { padding-top: 120px; }   /* Kontakt i /wycena/: stopka bez sekcji 5 nad nią – własny górny odstęp */
.ag--contact .ag-footer__brand, .ag--quote .ag-footer__brand { align-self: start; }   /* logo i opis na równi z nagłówkami kolumn */
.ag-footer__brand img { display: block; width: 161px; height: auto; }
.ag-footer__tagline { margin-top: 33.5px; max-width: 312px; font: 400 16px/24px "Barlow", var(--ag-font-body); color: #acb0b8; }
.ag-footer__h { font: 700 24px/1.2 var(--ag-font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ag-white); }
.ag-footer__list { margin-top: 20px; display: grid; gap: 16px; font: 400 16px/1.2 "Barlow", var(--ag-font-body); color: #acb0b8; }
.ag-footer__list a, .ag-footer__clist a { color: inherit; text-decoration: none; transition: color .2s; }
.ag-footer__list a:hover, .ag-footer__clist a:hover, .ag-footer__bar a:hover { color: var(--ag-peach); }
.ag-footer__contact li { display: flex; align-items: center; gap: 12px; }
.ag-footer__contact svg { width: 20px; height: 20px; color: var(--ag-gold-dark); flex: none; }
.ag-footer__contact .ag-footer__h { margin-bottom: 22px; }
.ag-footer__clist { display: grid; gap: 12px; font: 400 16px/1.2 "Barlow", var(--ag-font-body); color: #acb0b8; }
.ag-footer__clist li { display: flex; align-items: center; gap: 8px; }
.ag-footer__clist li.is-phone { color: var(--ag-white); }
.ag-footer__clist li.is-addr { gap: 6px; align-items: flex-start; }
.ag-footer__clist li.is-addr .ag-footer__icon { margin: 1px 3px 0 3px; }
.ag-footer__icon { flex: none; display: block; }
.ag-footer__bar {
	display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-top: 132.5px; font: 400 16px/20px "Barlow", var(--ag-font-body); color: #acb0b8;   /* jak reszta stopki (wcześniej Sora) */
}
@media (min-width: 1101px) { .ag-footer__bar { flex-wrap: nowrap; } }   /* trzy elementy zawsze w jednej linii */
.ag-footer__bar a { color: inherit; text-decoration: none; transition: color .2s; }
.ag-footer__by { font-weight: 700; }

@media (max-width: 1100px) {
	.ag-footer[data-triangle-cursor] { padding: 40px 0 32px; }
	.ag--contact .ag-footer[data-triangle-cursor], .ag--quote .ag-footer[data-triangle-cursor] { padding-top: 80px; }
	.ag-footer[data-triangle-cursor] > .ag-footer__mountain { width: 700px; right: -110px; bottom: -120px; }
	.ag-footer__grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
	.ag-footer__brand { grid-column: 1 / -1; align-self: start; order: -1; margin-left: 0; }
	.ag-footer__bar { margin-top: 64px; }
}
@media (max-width: 600px) {
	.ag-footer__grid { grid-template-columns: 1fr; gap: 40px; }
	.ag-footer__bar { flex-direction: column; gap: 8px; margin-top: 48px; font-size: 14px; }
}

/* ==========================================================================
   Telefon (≤ 767 px) – Figma „Homepage mobile” 266:32019 (393 px): hero, sekcja 2, sekcja 4 (kroki).
   Siatka mniejsza niż na desktopie: bok 60.53 px (kafelek 121.06 × 104.84) – także triangle-blend.js.
   ========================================================================== */
@media (max-width: 767px) {
	:root { --ag-u: 60.53px; --ag-th: 52.4206px; --ag-tile: 121.06px 104.8412px; }
	[data-triangle-cursor] { background-size: 100% 100%, var(--ag-tile); }
	.ag-hero__overlay { background-size: var(--ag-tile), 100% 100%, 100% 100%; }

	/* Hero: tytuł 48 px (4 linie, cały biały), opis 16 px / 299 px, odstępy 24 px; telefon pod przyciskiem, do prawej. */
	.ag-hero__title, .ag-hero__title--second { font-size: 48px; line-height: 1; color: var(--ag-white); }
	.ag-hero__title--second { margin-top: 1px; max-width: none; }
	.ag-hero__lead { margin-top: 24px; max-width: 300px; }
	.ag-hero__actions { margin-top: 24px; width: 100%; gap: 5px; }
	.ag-hero__actions .ag-phone { align-self: flex-end; }
	.ag-hero[data-triangle-cursor] > .ag-hero__cut--bl { display: none; }
	.ag-hero[data-triangle-cursor] > .ag-hero__cut--br { width: 357.6px; height: 80px; right: -97.35px; }   /* Figma: od x 132.75, wystaje poza ekran */

	/* Sekcja 2: etykieta po lewej (x 23), nagłówek 36 px od x 111; karty jedna pod drugą, odstęp 12 px. */
	/* Przejście trójkątów (triangle-blend): 2 rzędy nad granicą, 1 pod nią – odstęp 80 px od kart i od treści sekcji 3. */
	.ag-services__panel { padding: 87px 0 calc(2 * var(--ag-th) + var(--ag-section-y)); }
	.ag-about__panel { padding-top: calc(var(--ag-th) + var(--ag-section-y)); }
	.ag-services__panel[data-triangle-cursor] { background-position: left top, left bottom; }   /* siatka od dołu = ciągła z przejściem do sekcji 3 */
	.ag-services__head { padding-left: 111px; }
	.ag-services__head .ag-label { position: absolute; left: 23.4px; top: 3.9px; margin: 0; }
	.ag-services__title, .ag-process__title { font-size: 36px; line-height: 1; }
	.ag-services__viewport { overflow: visible; margin-top: 30px; padding: 0; scroll-snap-type: none; }
	.ag-services__row { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 19px 0 var(--ag-gutter); transform: none !important; }
	.ag-scard { width: auto; height: auto; margin-top: 0; justify-content: flex-start; padding: 40px 24px 20px; background: rgb(28 28 28 / 80%); }
	.ag-scard::before { display: none; }
	.ag-scard__img, .ag-scard--wide .ag-scard__img { top: 0; bottom: 0; right: 0; width: auto; max-width: 62%; height: 100%; object-fit: cover; object-position: right center; opacity: .2; }
	.ag-scard__bg { height: 100%; object-fit: cover; object-position: right center; opacity: .2; }
	.ag-scard__title { font-size: 28px; max-width: none; }
	.ag-scard__text { max-width: none; }
	.ag-scard__link { margin-top: 19px; }

	/* Sekcja 4: kroki na siatce, numer w linii z tytułem (28 px), opis 16 px; podświetlona ścieżka po krawędziach siatki.
	   Siatka panelu przesunięta o 1 rząd → rząd startu ścieżki (4 rzędy od góry) ma wierzchołki w połowie boku (x 0.5u). */
	/* Siatka, ścieżka i mapa = jedno SVG (.ag-pm, includes/process.php) – tło CSS panelu wyłączone. Panel: 4 rzędy nagłówka,
	   13 rzędów ścieżki, 2 odstępu + 1 rząd pod sekcją 5 = 20 rzędów. Przejście do mapy w tej samej sekcji (site.js):
	   panel przypięty dołem do ekranu (sticky), sekcja dłuższa o 70% wysokości ekranu – w tym czasie kroki znikają,
	   siatka się oddala, rysuje się mapa. */
	.ag-process:not(.is-anim) .ag-process__panel { position: sticky; top: min(0px, calc(100svh - 19 * var(--ag-th))); padding: 0; height: calc(19 * var(--ag-th)); }   /* 4 + 12 + 2 + 1 rzędów */
	.ag-js .ag-process:not(.is-anim)::after { content: ""; display: block; height: 70svh; }
	html:not(.ag-js) .ag-pm__mapg, html:not(.ag-js) .ag-process:not(.is-anim) .ag-process__map { display: none; }
	.ag-process:not(.is-anim) .ag-process__steps, .ag-pm__path { transition: opacity .2s linear; }
	.ag-process:not(.is-anim) .ag-process__panel[data-triangle-cursor] { background-image: none; }
	.ag-process:not(.is-anim) .ag-process__panel > .ag-pm { display: block; position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
	.ag-pm__path { fill: none; stroke: #6b6b6b; stroke-width: 1; }
	.ag-pm__map { fill: none; stroke: var(--ag-peach); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
	.ag-pm__dots { fill: var(--ag-peach); transition: opacity .6s; }
	/* Przejście (site.js): kropki i punkty pojawiają się po dorysowaniu konturu; bez JS widać wszystko od razu. */
	.ag-js .ag-pm__map { stroke-dashoffset: 1; }   /* site.js dorysowuje kontur */
	.ag-js .ag-pm__mapg:not(.is-done) .ag-pm__dots { opacity: 0; }
	.ag-js .ag-pm__mapg:not(.is-done) .ag-pm__spot { animation: none; opacity: 0; }   /* animacja nadpisałaby opacity */
	.ag-js .ag-process:not(.is-anim) .ag-process__map-text { opacity: 0; transition: opacity .6s; }
	.ag-js .ag-process:not(.is-anim) .ag-process__map-text.is-in { opacity: 1; }
	.ag-pm__spot { fill: var(--ag-gold-light); transform-box: fill-box; transform-origin: center; animation: ag-pm-spot 2.8s ease-in-out infinite; }
	@keyframes ag-pm-spot { 0%, 100% { opacity: .25; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
	.ag-process:not(.is-anim) .ag-process__head { position: relative; padding-top: calc(4 * var(--ag-th) - 116.8px); padding-left: 111px; }
	.ag-process__label { display: block; position: absolute; left: 23.4px; top: calc(4 * var(--ag-th) - 116.8px + 3.9px); }
	.ag-process__title { max-width: 262px; }
	.ag-process:not(.is-anim) .ag-process__steps { position: absolute; z-index: 2; left: 0; right: 0; top: calc(4 * var(--ag-th)); display: block; margin: 0; padding: 0; max-width: none; }
	.ag-process:not(.is-anim) .ag-pstep { position: absolute; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: start; }
	.ag-process:not(.is-anim) .ag-pstep__body { display: contents; }
	.ag-pstep__num, .ag-pstep__title { font-size: 28px; line-height: 1; }
	.ag-pstep__num { color: #be9768; }
	.ag-pstep__text { grid-column: 1 / -1; margin-top: 14px; }
	.ag-pstep--1, .ag-pstep--3 { left: 111px; width: min(262px, calc(100% - 131px)); }
	.ag-pstep--2 { left: 23px; width: min(263px, calc(100% - 43px)); top: 244.2px; }
	.ag-pstep--2 .ag-pstep__title { max-width: 175px; }
	.ag-pstep--1 { top: 0; }
	.ag-pstep--3 { top: 460.8px; }   /* rząd 8 + 41 px (linia wraca pod krokiem 2 w rzędzie 8) */
	/* Napis na mapie: środek ustawia site.js (left/top = środek konturu Polski). */
	.ag-process:not(.is-anim) .ag-process__map { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0; max-width: none; }
	.ag-process:not(.is-anim) .ag-process__map-text { position: absolute; left: 0; top: 0; width: 300px; transform: translate(-50%, -50%); }
	.ag-process:not(.is-anim) .ag-process__map-svg { display: none; }
	/* Kadr mapy: nagłówek 36 px nad mapą, przycisk pod mapą (odstępy 32 px) – położenie liczy site.js. */
	.ag-process:not(.is-anim) .ag-process__map-text { font-size: 36px; line-height: 1; }
	.ag-process:not(.is-anim) .ag-process__map-sub { display: block; position: absolute; left: 0; top: 0; width: min(300px, calc(100vw - 40px)); transform: translateX(-50%); text-align: center; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
	.ag-js .ag-process:not(.is-anim) .ag-process__map-sub { opacity: 0; transition: opacity .6s .15s; }
	.ag-js .ag-process:not(.is-anim) .ag-process__map-sub.is-in { opacity: 1; }
	/* Wariant „tall” (podstrony usług – dłuższe teksty): zygzaki o 1–2 rzędy dłuższe, panel 23 rzędy. */
	.ag-process--tall:not(.is-anim) .ag-process__panel { height: calc(24 * var(--ag-th)); top: min(0px, calc(100svh - 24 * var(--ag-th))); }
	.ag-process--tall .ag-pstep--2 { top: calc(6 * var(--ag-th) + 34.5px); }
	.ag-process--tall .ag-pstep--2 .ag-pstep__title { max-width: 235px; }
	.ag-process--tall .ag-pstep--3 { top: calc(13 * var(--ag-th) + 41.4px); }

	/* Sekcja 5: po jednym schodku na środku – u góry (sekcja 4 widoczna z lewej) i u dołu (stopka z prawej).
	   Wysokość schodka = rząd siatki (52.42 px), skos = pół boku (30.27 px) – kąt linii siatki. */
	.ag-ctasec { margin-top: calc(-1 * var(--ag-th)); padding: calc(var(--ag-section-y) + var(--ag-th)) 0; }
	.ag-ctasec__bg { clip-path: polygon(calc(50% + var(--ag-u) / 4) 0, 100% 0, 100% 100%, 0 100%, 0 var(--ag-th), calc(50% - var(--ag-u) / 4) var(--ag-th)); }
	.ag-ctasec__bottom { height: var(--ag-th); clip-path: polygon(calc(50% + var(--ag-u) / 4) 0, 100% 0, 100% 100%, calc(50% - var(--ag-u) / 4) 100%); }
	/* Przyciski jeden pod drugim, ta sama szerokość: numer telefonu rozciągnięty do szerokości „Zapytaj o wycenę ↗”. */
	.ag-ctasec__actions { display: grid; grid-template-columns: max-content; justify-content: center; gap: 4px; }
	.ag-ctasec__actions > .ag-cta, .ag-ctasec__actions > .ag-phone { display: flex; }
	.ag-ctasec__actions .ag-cta__label, .ag-ctasec__actions .ag-phone__label { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Podstrona usługi (Figma 277:100272 „Prace alpinistyczne”) – templates/service.php
   ========================================================================== */
/* Hero (Figma 221:117, 1920 × 862): siatka od dołu, nagłówek 82.65 px od x 318, zdjęcie przy prawej krawędzi. */
.ag-svhero[data-triangle-cursor] {
	height: 100vh; height: 100svh; min-height: 700px; display: flex; align-items: center;
	padding-top: var(--ag-header-h);   /* sekcja od góry okna (pod nagłówkiem), treść wyśrodkowana pod nim */
}
.ag--service .ag-main { padding-top: 0; }
.ag-svhero__inner { width: 100%; }
.ag-svhero[data-triangle-cursor] .ag-svhero__img {
	position: absolute; z-index: 0; right: 6px; top: 0; height: 100%; width: auto; max-width: 34vw;
	object-fit: cover; object-position: left center; filter: grayscale(1); pointer-events: none;
}
.ag-svhero__eyebrow { margin-bottom: 24px; }
.ag-svhero--wide .ag-svhero__title { max-width: 1000px; }
.ag-ctasec__eyebrow { margin-bottom: 20px; }
/* Hero „wide” (Figma 282:151331): zdjęcie 1509 × 772 od dołu hero, wystaje 97 px poza prawą krawędź (postać po prawej, strumień w lewo). */
.ag-svhero--wide[data-triangle-cursor] .ag-svhero__img {
	top: auto; bottom: 0; right: var(--ag-hr, -5.05vw); height: var(--ag-hh, 89.6%); width: auto; max-width: none; object-fit: contain; object-position: right bottom; filter: none;
}
/* O nas (Figma 311:344728): zdjęcie 1084 × 768 od dołu hero, 26 px od prawej krawędzi (nie wystaje jak w „wide” usług). */
@media (min-width: 1101px) { .ag--about .ag-svhero--wide[data-triangle-cursor] .ag-svhero__img { right: 1.35vw; } }
/* Hero „cutout” (Figma 285:174974): wycięty obiekt (np. podnośnik) w szarości, wystaje poniżej hero. */
.ag-svhero--cutout[data-triangle-cursor] .ag-svhero__img {
	top: var(--ag-ht, 10%); bottom: auto; right: var(--ag-hr, 8vw); height: var(--ag-hh, 90%); width: auto; max-width: none; object-fit: contain;
}
/* Więcej niż 6 kart: zdjęcie w środku na całą wysokość kolumn. */
.ag-svworks--many .ag-svworks__media { height: auto; align-self: stretch; }
/* Najwyżej 4 karty (2 rzędy, kolumna 538 px): zdjęcie krótsze w tej samej proporcji do kolumn co przy 3 rzędach (703 / 814 ≈ 0,86 → 465 px). */
.ag-svworks--few .ag-svworks__media { height: 465px; }
.ag-svhero__title { font: 700 82.65px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); max-width: 860px; }
.ag-svhero__lead { margin-top: 40px; max-width: 524px; font: 400 18px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-svhero__actions { margin-top: 40px; }
.ag-svhero[data-triangle-cursor] > .ag-svhero__cut { position: absolute; z-index: 3; right: 0; bottom: -0.3px; width: 492px; height: 80px; transform: scaleX(-1); pointer-events: none; }

/* O usłudze (Figma 277:96218, 1920 × 759): etykieta 120 px na lewo od nagłówka, akapity 18 px od x 1078 (szer. 521).
   Dół: 2 rzędy przejścia trójkątów (triangle-blend) + odstęp. */
.ag-svabout { padding: 122px 0 calc(2 * 69.282px + 200px); }
.ag-svabout[data-triangle-cursor] { background-position: left top, left top; }
.ag-svabout--plain { padding-bottom: 160px; }
/* Hero, po którym od razu jest jasna sekcja (Figma 297:293210, 299:316876, 291:245927): jeden ciągły wzór aż do przejścia
   trójkątów. --gap: hero wydłużone o pas siatki (projekt: hero 1160 px), treść i zdjęcie w górnej części (.ag-svhero__stage).
   Schodek pod zdjęciem = wycięcie (clip-path) w warstwie zdjęcia, przez które widać siatkę hero. */
.ag-svhero--tail { --ag-gap: 0px; --ag-cx: 492px; --ag-ct: 442px; --ag-ch: 80px; }
.ag-svhero--gap { --ag-gap: calc(69.282px + 160px); }   /* przejście trójkątów 1 rząd wyżej niż w projekcie (decyzja Mateusza 2026-11-24) */
.ag-svhero.ag-svhero--gap[data-triangle-cursor] { height: calc(100svh + var(--ag-gap)); min-height: calc(700px + var(--ag-gap)); padding-bottom: var(--ag-gap); }
.ag-svhero[data-triangle-cursor] > .ag-svhero__stage {
	position: absolute; z-index: 0; top: 0; left: 0; right: 0; bottom: var(--ag-gap); pointer-events: none;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ag-ch)), calc(100% - var(--ag-ct)) calc(100% - var(--ag-ch)), calc(100% - var(--ag-cx)) 100%, 0 100%);
}
@media (max-width: 1100px) {
	.ag-svhero--tail { --ag-cx: 46vw; --ag-ct: 41.32vw; --ag-ch: 7.48vw; }
	.ag-svhero--gap { --ag-gap: calc(69.282px + 40px); }
	.ag-svhero.ag-svhero--gap[data-triangle-cursor] { height: auto; min-height: calc(100svh + var(--ag-gap)); padding-bottom: calc(var(--ag-section-y) + 60px + var(--ag-gap)); }
}
@media (max-width: 767px) {
	.ag-svhero--tail { --ag-cx: 260.25px; --ag-ct: 224px; --ag-ch: 80px; }
	.ag-svhero--gap { --ag-gap: calc(var(--ag-th) + 40px); }
}   /* bez przejścia trójkątów pod spodem (kolejność works_first) */
.ag-svabout__label { line-height: 24px; }
.ag-svabout__inner { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 521fr); gap: 40px; align-items: start; }
.ag-svabout__head { position: relative; }
.ag-svabout__label, .ag-svworks__label { position: absolute; left: -119.65px; top: 8.86px; }
.ag-svabout__title { line-height: 1; }
.ag-svabout__text { display: grid; gap: 24px; padding-top: 3px; font: 400 18px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }

/* Jakie prace wykonujemy? (Figma 277:123772, jasna 1920 × 1434): karty 414 × 262 w 2 kolumnach + zdjęcie 414 × 703 pośrodku. */
.ag-svworks.triangle-pattern--light {
	background-color: var(--ag-light);
	background-image:
		linear-gradient(to bottom, rgb(249 249 249 / 98%) 0%, rgb(249 249 249 / 92%) 22%, rgb(249 249 249 / 64%) 52%, rgb(249 249 249 / 26%) 76%, rgb(249 249 249 / 0%) 100%),
		url("../images/pattern/triangle-pattern-light.svg");
	background-size: 100% 70%, 160px 138.564064px;
	background-position: left top, left top;
}
.ag-svworks { padding: 208px 0 224px; margin-top: -1px; }
.ag-svworks__head { position: relative; padding-left: 6px; }
.ag-svworks__label { left: -109px; top: 8px; color: var(--ag-gold-dark); line-height: 24px; }   /* 2 linie (Zakres|usług) – Figma 59 × 48 */
.ag-svworks__title { line-height: 1; color: var(--ag-dark); }
.ag-svworks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 414fr)); column-gap: 20px; align-items: end; margin-top: 59px; }
.ag-svworks__col { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ag-svworks__media { align-self: end; height: 703px; overflow: hidden; }
/* Zoom przy przewijaniu (site.js [data-ag-zoom], maks. 1.3): skala rośnie, aż środek zdjęcia dojdzie do środka ekranu. */
.ag-svworks__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); transform: scale(var(--ag-zoom, 1)); transform-origin: 50% 45%; will-change: transform; }
.ag-wcard {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 262px; overflow: hidden;
	padding: 20px 24px; background: rgb(238 238 238 / 50%); border: 1px solid #d4d4d4;
}
.ag-wcard::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		url("../icons/card-deco-light-10.svg") -179px -7px / 531.317px 397.419px no-repeat,
		url("../icons/card-deco-light-9.svg") 24px -7px / 400px 400px no-repeat;
}
.ag-wcard__num, .ag-wcard__body { position: relative; }
.ag-wcard__num { font: 600 18px/24px "Barlow Semi Condensed", var(--ag-font-display); letter-spacing: .02em; color: var(--ag-gold-dark); }
.ag-wcard__body { display: grid; gap: 16px; }
.ag-wcard__title { max-width: 271px; font: 600 24px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-dark); }
.ag-wcard__text { font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #404040; }
/* Ciemne pola na dole (przedłużenie sekcji 4), skos 70 px na 117 px – jak w sekcji 5. */
.ag-svworks[data-triangle-cursor] > .ag-svworks__step { position: absolute; z-index: 2; bottom: -1px; height: 118px; width: 520px; background: var(--ag-dark); pointer-events: none; }
.ag-svworks__step--l { left: 0; clip-path: polygon(0 0, 447px 0, 100% 100%, 0 100%); width: 518px; }
.ag-svworks__step--r { right: 0; clip-path: polygon(75px 0, 100% 0, 100% 100%, 0 100%); }

@media (max-width: 1600px) and (min-width: 1101px) {
	.ag-svhero__title { font-size: clamp(64px, 5.2vw, 82.65px); }
	.ag-svabout__label, .ag-svworks__label { position: static; margin-bottom: 16px; }
}
@media (max-width: 1400px) and (min-width: 1101px) {
	.ag-svhero[data-triangle-cursor] .ag-svhero__img { max-width: 28vw; opacity: .6; }
	.ag-svhero--wide[data-triangle-cursor] .ag-svhero__img { max-width: none; height: 75%; opacity: .45; }
	.ag-svhero--cutout[data-triangle-cursor] .ag-svhero__img { max-width: none; right: 2vw; opacity: .6; }
}
@media (max-width: 1100px) {
	.ag-svhero[data-triangle-cursor] { height: auto; min-height: 100svh; padding: calc(var(--ag-header-h) + var(--ag-section-y)) 0 calc(var(--ag-section-y) + 60px); }
	.ag-svhero[data-triangle-cursor] .ag-svhero__img { max-width: 60vw; opacity: .35; }
	.ag-svhero--wide[data-triangle-cursor] .ag-svhero__img { max-width: none; height: auto; width: 150%; right: -30%; opacity: .3; }
	.ag-svhero--cutout[data-triangle-cursor] .ag-svhero__img { max-width: none; top: auto; bottom: -10%; height: 70%; right: -15%; opacity: .3; }
	.ag-svhero__title { font-size: clamp(44px, 9vw, 72px); }
	.ag-svhero__lead { font-size: 16px; }
	.ag-svhero__actions { padding-left: 0; }
	.ag-svhero[data-triangle-cursor] > .ag-svhero__cut { width: 46vw; height: calc(46vw * 80 / 492); }
	.ag-svabout { padding: var(--ag-section-y) 0 calc(2 * 69.282px + var(--ag-section-y)); }
	.ag-svabout--plain { padding-bottom: var(--ag-section-y); }
	.ag-svabout__inner { grid-template-columns: 1fr; gap: 32px; }
	.ag-svabout__label, .ag-svworks__label { position: static; margin-bottom: 16px; }
	.ag-svabout__text { font-size: 16px; }
	.ag-svworks { padding: calc(69.282px + var(--ag-section-y)) 0 calc(58px + var(--ag-section-y)); }
	.ag-svworks__head { padding-left: 0; }
	.ag-svworks__grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
	.ag-svworks__col { display: contents; }
	.ag-svworks__media { display: none; }
	.ag-wcard { height: auto; min-height: 220px; gap: 40px; }
	.ag-svworks[data-triangle-cursor] > .ag-svworks__step { height: 58px; width: 260px; }
	.ag-svworks__step--l { clip-path: polygon(0 0, 223px 0, 100% 100%, 0 100%); width: 259px; }
	.ag-svworks__step--r { clip-path: polygon(37px 0, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 767px) {
	.ag-svhero__title { font-size: 48px; }
	.ag-svhero[data-triangle-cursor] > .ag-svhero__cut { width: 357.6px; height: 80px; right: -97.35px; }
	.ag-svabout { padding-bottom: calc(2 * var(--ag-th) + var(--ag-section-y)); }
	.ag-svabout--plain { padding-bottom: var(--ag-section-y); }
	.ag-svabout__title, .ag-svworks__title { font-size: 36px; }
	.ag-svworks { padding-top: calc(var(--ag-th) + var(--ag-section-y)); }
	.ag-svworks.triangle-pattern--light { background-size: 100% 70%, var(--ag-tile); }
	.ag-svworks[data-triangle-cursor] > .ag-svworks__step { height: var(--ag-th); width: 32%; }
	.ag-svworks__step--l { clip-path: polygon(0 0, calc(100% - var(--ag-u) / 2) 0, 100% 100%, 0 100%); }
	.ag-svworks__step--r { clip-path: polygon(calc(var(--ag-u) / 2) 0, 100% 0, 100% 100%, 0 100%); }
	.ag-svworks { padding-bottom: calc(var(--ag-th) + var(--ag-section-y)); }
	.ag-svworks__grid { grid-template-columns: 1fr; }
	.ag-wcard { min-height: 0; }
}

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

/* ==========================================================================
   Strona główna – „Szybka wycena” (Figma 302:336619; templates/partials/home/quote.php, js/quote-wizard.js).
   1920: nagłówek x 320 / y 122, tekst y 274 (414 px), zdjęcie ekipy 423 × 472 pod tekstem; karta 741 × 626 od x 865 / y 132.
   Własny ciemny gradient u góry (nowa sekcja); dół: 2 rzędy przejścia trójkątów + odstęp
   (dokładny odstęp do pełnego kafelka siatki ustawia quote-wizard.js).
   ========================================================================== */
/* Nowa sekcja: domyślne tło wzoru (ciemny gradient od góry + siatka od góry sekcji), nie przedłużenie siatki sekcji 2
   (decyzja Mateusza 24.11). Sekcja 2 bez min. wysokości 8 kafelków (była potrzebna tylko do wyrównania z przejściem). */
.ag-quote[data-triangle-cursor] { padding: 122px 0 calc(2 * 69.282px + 111px); }
@media (min-width: 1101px) { .ag-services:has(+ .ag-quote) .ag-services__panel { min-height: 0; } }
/* Lewa kolumna rozciągnięta do wysokości karty: zdjęcie ekipy zawsze dolną krawędzią na równi z dołem karty (decyzja Mateusza 24.11). */
.ag-quote__inner { display: grid; grid-template-columns: minmax(0, 545fr) minmax(0, 741fr); align-items: stretch; padding-top: 10px; }
.ag-quote__head { position: relative; display: flex; flex-direction: column; margin-top: -10px; }
.ag-quote__label { position: absolute; left: -99.3px; top: 8.86px; line-height: 18px; }
.ag-quote__title { line-height: 1; }
.ag-quote__lead { margin-top: 24px; max-width: 414px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-quote__team { display: block; flex: none; width: 423px; max-width: 100%; height: auto; margin: auto 0 0 -7px; padding-top: 24px; box-sizing: content-box; pointer-events: none; }

/* Karta (Figma 304:340679) */
.ag-quote__card {
	position: relative; isolation: isolate; overflow: hidden; min-height: 624px; padding: 40px 40px 52px 32px;
	/* Schodki (Figma 318:378989 / 318:378991): w projekcie czarne trójkąty – tu wycięte z karty (clip-path), widać tło sekcji.
	   Góra z prawej: od 306,28 px przed prawą krawędzią skos 46,52 × 77,43 px; dół z lewej: 257,05 px, skos 45,22 × 80,09 px.
	   Ramka #555 wzdłuż kształtu = ::after (pierścień: obrys zewnętrzny + wewnętrzny o 1 px, poziomo na skosie ~1,17 px). */
	--q-tw: 306.28px; --q-th: 77.43px; --q-tdx: 46.52px; --q-bw: 257.05px; --q-bh: 80.09px; --q-bdx: 45.22px;
	clip-path: polygon(0 0, calc(100% - var(--q-tw)) 0, calc(100% - var(--q-tw) + var(--q-tdx)) var(--q-th), 100% var(--q-th), 100% 100%,
		calc(var(--q-bw) + var(--q-bdx)) 100%, var(--q-bw) calc(100% - var(--q-bh)), 0 calc(100% - var(--q-bh)));
	background:
		radial-gradient(circle 540px at calc(100% + 66px) -97px, rgb(190 151 104 / 30%) 0%, rgb(190 151 104 / 12%) 45%, rgb(190 151 104 / 0%) 100%),
		radial-gradient(circle 540px at 129px calc(100% + 161px), rgb(190 151 104 / 55%) 0%, rgb(190 151 104 / 22%) 45%, rgb(190 151 104 / 0%) 100%),
		#1c1c1c;
}
.ag-quote__card::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #555;
	clip-path: polygon(
		0 0, calc(100% - var(--q-tw)) 0, calc(100% - var(--q-tw) + var(--q-tdx)) var(--q-th), 100% var(--q-th), 100% 100%,
		calc(var(--q-bw) + var(--q-bdx)) 100%, var(--q-bw) calc(100% - var(--q-bh)), 0 calc(100% - var(--q-bh)), 0 0,
		1px 1px, 1px calc(100% - var(--q-bh) - 1px), calc(var(--q-bw) + 0.6px) calc(100% - var(--q-bh) - 1px),
		calc(var(--q-bw) + var(--q-bdx) + 0.6px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(var(--q-th) + 1px),
		calc(100% - var(--q-tw) + var(--q-tdx) - 0.57px) calc(var(--q-th) + 1px), calc(100% - var(--q-tw) - 0.57px) 1px, 1px 1px);
}
.ag-quote__card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		url("../icons/quote-deco-9.svg") right -0.5px top -0.5px / 625.5px 625.5px no-repeat,
		url("../icons/quote-deco-10.svg") -202px -0.5px / 830.85px 621.46px no-repeat;
}
.ag-quote__form.ag-form { gap: 0; }
.ag-quote__done:not([hidden]) { min-height: 200px; display: flex; align-items: center; }

/* Kroki 1–4: cyfra nad kropką, kreska do następnej kropki – geometria jak w siatce trójkątów (kafelek w skali 2×):
   kropka 4 px, przerwa 2 px z obu stron, kreska 1 px na środku kropki, rozstaw kropek 80 px (= bok trójkąta).
   Aktywna kreska: gradient złoty → #2C2C2C. Wszystkie odstępy w karcie są wielokrotnością 4 px. */
.ag-quote__dots { display: none; margin: 0 0 40px; padding: 0; list-style: none; }
.ag-js .ag-quote__dots { display: flex; }
.ag-quote__dot { position: relative; display: flex; flex-direction: column; gap: 4px; width: 80px; }
.ag-quote__dot:last-child { width: auto; }
.ag-quote__dot-num { font: 400 16px/24px "Barlow", var(--ag-font-body); color: #8c8c8c; transition: color .3s; }
.ag-quote__dot-line { position: relative; display: block; height: 4px; }
.ag-quote__dot-line::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: #3c3c3c; transition: background-color .3s; }
.ag-quote__dot-line::after { content: ""; position: absolute; left: 6px; top: 1.5px; width: 72px; height: 1px; background: #2c2c2c; }
.ag-quote__dot:last-child .ag-quote__dot-line::after { display: none; }
.ag-quote__dot.is-current .ag-quote__dot-num, .ag-quote__dot.is-done .ag-quote__dot-num { color: var(--ag-gold-light); }
.ag-quote__dot.is-current .ag-quote__dot-line::before, .ag-quote__dot.is-done .ag-quote__dot-line::before { background: var(--ag-gold-light); }
.ag-quote__dot.is-current .ag-quote__dot-line::after { background: linear-gradient(to right, var(--ag-gold-light) 3.2%, #2c2c2c 100%); }
.ag-quote__dot.is-done .ag-quote__dot-line::after { background: var(--ag-gold-light); }

.ag-quote__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ag-quote__step + .ag-quote__step { margin-top: 40px; }
.ag-quote__q { float: none; display: block; width: 100%; padding: 0; margin-bottom: 32px; font: 600 36px/1 var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); }
.ag-quote__hint { margin: -24px 0 16px; font: 400 14px/1.4 "Barlow", var(--ag-font-body); color: #8c8c8c; }
/* Z JS: kroki w jednym miejscu (stała wysokość karty – strona nie skacze), aktywny widoczny. */
.ag-js .ag-quote__form.is-wizard .ag-quote__steps { display: grid; }
.ag-js .ag-quote__form.is-wizard .ag-quote__step {
	grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; transform: translateY(12px);
	transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .45s;
}
.ag-js .ag-quote__form.is-wizard .ag-quote__step.is-active { visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s; }

/* Odpowiedzi (Figma 304:340672): 327 px, odstęp 12 (siatka 4 px), wysokość 56 jak pola, tło #171717, ramka #3C3C3C, 16 px #CCC. */
.ag-quote__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-quote__opt { position: relative; display: block; cursor: pointer; }
.ag-quote__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ag-quote__opt-box {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 15px 19px;
	background: #171717; border: 1px solid #3c3c3c; transition: border-color .25s, background-color .25s;
}
.ag-quote__opt-label { font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; transition: color .25s; }
.ag-quote__opt-check {
	flex: none; display: none; place-items: center; width: 16px; height: 16px; background: var(--ag-peach); color: var(--ag-peach-ink);
}
.ag-quote__opt input:checked + .ag-quote__opt-box .ag-quote__opt-check { display: grid; }
.ag-quote__opt:hover .ag-quote__opt-box { border-color: #6c6c6c; }
.ag-quote__opt:hover .ag-quote__opt-label, .ag-quote__opt input:checked + .ag-quote__opt-box .ag-quote__opt-label { color: var(--ag-white); }
.ag-quote__opt input:checked + .ag-quote__opt-box { border-color: var(--ag-peach); }
.ag-quote__opt input:focus-visible + .ag-quote__opt-box { outline: 2px solid var(--ag-peach); outline-offset: 2px; }
.ag-quote__err { margin-top: 12px; color: var(--ag-error); font-size: 14px; }
.ag-quote__err[hidden] { display: none; }

/* „Wstecz” obok „Dalej” (Figma 310:340791 / 310:340773) – lewy dolny róg karty to wycięty schodek. */
.ag-quote__nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 32px; }
.ag-quote__back {
	display: inline-flex; align-items: center; gap: 12px; padding: 0 0 0 4px; border: 0; background: none; cursor: pointer;
	font: 600 16px/24px "Barlow Semi Condensed", var(--ag-font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ag-white);
}
.ag-quote__back.is-hidden { visibility: hidden; }
.ag-quote__back .ag-arr { --ag-arr-size: 16px; transform: rotate(-135deg); }
.ag-quote__back:hover, .ag-quote__back:focus-visible { color: var(--ag-gold-light); }
.ag-quote__next[hidden], .ag-quote__submit[hidden] { display: none; }
.ag-quote__next.is-disabled { opacity: .45; }
html:not(.ag-js) .ag-quote__back, html:not(.ag-js) .ag-quote__next { display: none; }

/* Krok 4: blok „Pasujące usługi” z podpisem „Na podstawie: …” (wybrane odpowiedzi) → nagłówek → wybór kontaktu → pola → zgoda → przyciski. */
.ag-quote__summary { margin: 4px 0 0; font: 400 14px/20px "Barlow", var(--ag-font-body); color: #6c6c6c; }
.ag-quote__summary[hidden] { display: none; }
.ag-quote__sum-item { white-space: nowrap; }
.ag-quote__sum-item .ag-quote__chip { white-space: normal; }
.ag-quote__match-label[hidden] + .ag-quote__summary { margin-top: 0; }
.ag-quote__chip {
	display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #8c8c8c; text-align: left;
	text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s;
}
.ag-quote__chip:hover, .ag-quote__chip:focus-visible { color: var(--ag-white); text-decoration-color: currentColor; }
.ag-quote__match { margin-bottom: 32px; padding: 16px 20px 16px 18px; background: #171717; border-left: 2px solid var(--ag-peach); }
.ag-quote__match[hidden] { display: none; }
.ag-quote__match-label[hidden], .ag-quote__match-list[hidden] { display: none; }
.ag-quote__match-label { display: block; font: 500 14px/20px "Barlow", var(--ag-font-body); color: #8c8c8c; }
.ag-quote__match-list { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.ag-quote__match-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ag-quote__match-title { font: 600 22px/24px var(--ag-font-display); text-transform: uppercase; color: var(--ag-white); }
.ag-quote__match-link { flex: none; height: 40px; }
.ag-quote__match-link .ag-arr { --ag-arr-size: 16px; }
.ag-quote__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-quote__wide { grid-column: 1 / -1; }
.ag-quote__wide[hidden] { display: none; }
.ag-quote__opts--contact { margin-bottom: 12px; }
.ag-quote__step--contact .ag-form__privacy { margin-top: 16px; font-size: 14px; line-height: 20px; }
.ag-quote__step--contact .ag-form__status { margin-top: 12px; }
.ag-quote__step--contact .ag-field__err { margin-top: 4px; }
.ag-quote__nav .ag-form__submit { justify-self: auto; }

/* Podstrona /wycena/ (templates/quote.php): sekcja jako pierwsza na stronie – bez zapasu na przejście trójkątów u dołu
   (pod nią stopka), telefon pod opisem. */
.ag-quote--page[data-triangle-cursor] { padding: 100px 0 120px; }
.ag-quote__call { margin-top: 16px; font: 400 16px/1.5 "Barlow", var(--ag-font-body); color: #ccc; }
.ag-quote__call a { color: var(--ag-white); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ag-quote__call a:hover, .ag-quote__call a:focus-visible { color: var(--ag-gold-light); }
@media (max-width: 1100px) { .ag-quote--page[data-triangle-cursor] { padding: var(--ag-section-y) 0; } }
@media (max-width: 1520px) {
	.ag-quote__label { position: static; display: block; margin-bottom: 16px; }
}
@media (max-width: 1300px) {
	.ag-quote__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 700px); gap: 40px; }
}
@media (max-width: 1100px) {
	.ag-quote[data-triangle-cursor] { padding-top: var(--ag-section-y); padding-bottom: calc(2 * 69.282px + var(--ag-section-y)); }
	.ag-quote__inner { grid-template-columns: 1fr; gap: 40px; }
	.ag-quote__lead { max-width: 560px; }
	.ag-quote__team { display: none; }
	.ag-quote__card { min-height: 0; }
	/* Przejście trójkątów jest teraz pod kreatorem – sekcja 2 bez zapasu na nie. */
	.ag-services:has(+ .ag-quote) .ag-services__panel { padding-bottom: var(--ag-section-y); }
}
@media (max-width: 767px) {
	.ag-quote[data-triangle-cursor] { padding-bottom: calc(2 * var(--ag-th) + var(--ag-section-y)); }
	/* Telefon: schodki mniejsze (te same kąty, ~połowa), żeby nie zjadały wskaźnika kroków i przycisków; dół karty 40 px = wysokość schodka. */
	.ag-quote__card { padding: 32px 16px 40px; margin: 0 calc(-1 * var(--ag-gutter) + 4px); --q-tw: 132px; --q-th: 40px; --q-tdx: 24px; --q-bw: 96px; --q-bh: 40px; --q-bdx: 23px; }
	.ag-quote__dots { margin-bottom: 32px; }
	/* Telefon: kroki krótsze (rozstaw 64 px, kreska 56 px; kropka i przerwy jak w siatce), żeby nie dochodziły do krawędzi karty / schodka. */
	.ag-quote__dot { width: 64px; }
	.ag-quote__dot:last-child { width: auto; }
	.ag-quote__dot-line::after { width: 56px; }
	.ag-quote__q { font-size: 28px; margin-bottom: 24px; }
	.ag-quote__hint { margin-top: -16px; }
	.ag-quote__opts, .ag-quote__fields { grid-template-columns: 1fr; gap: 8px; }
	.ag-quote__opts--contact { grid-template-columns: 1fr 1fr; }
	.ag-quote__opt-box { padding: 15px; }
	.ag-quote__nav { margin-top: 32px; }
	.ag-quote__match-item { flex-direction: column; align-items: flex-start; gap: 0; }
	.ag-quote__match { margin-bottom: 24px; }
	.ag-quote__match-title { font-size: 20px; }
}

/* ==========================================================================
   Podstrona „O nas” – hasła na tle gór z siatki (Figma 311:340793; templates/partials/about/journey.php, js/about-journey.js).
   Wersja lekka (24.11): tło = obraz siatki gór z Figmy złożony jak w projekcie (images/about-page/mountains-1920.webp),
   przyklejone do ekranu (sticky, -100svh pod listą). Każde hasło na osobnym ekranie (min. 100svh) – na raz widać jedno;
   .is-in z IntersectionObserver = łagodne wejście (przezroczystość + 32 px w górę), bez JS wszystko widoczne.
   Hasła z Figmy (1920): Barlow Condensed 400 36 px / 1.1, tekst biały, akcent i lista #FFDDB4, strzałka kreskowana 20 px.
   Układy: text / row (odstęp 46) / col (lista +435 px) / stairs (+217 px na pozycję, rząd 75 px) / center / plain.
   ========================================================================== */
.ag-journey { position: relative; background: #1c1c1c; }
.ag-journey__bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.ag-journey__img {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: 54% center;   /* 54% = szczyt w środku kadru na telefonie */
	/* Tło obniżone o 12vh (prośba Mateusza 24.11) + paralaksa: --ag-jy z JS (0 → −8vh w trakcie przewijania sekcji). Góra kadru
	   to ciemne niebo, a odsłonięty pas ma kolor sekcji (#1C1C1C), więc przesunięcie jest niewidoczne na krawędziach. */
	transform: translate3d(0, calc(12vh + var(--ag-jy, 0px)), 0); will-change: transform;
}
.ag-journey__list { position: relative; }
.ag-journey__step { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 120px var(--ag-gutter); }
.ag-journey__ch {
	position: relative; max-width: 100%; padding: 32px 40px; transform: translateX(calc(var(--x, 0) * 100vw));
	font: 400 36px/1.1 var(--ag-font-display); color: var(--ag-white);
	background: radial-gradient(ellipse closest-side, rgb(28 28 28 / 88%), rgb(28 28 28 / 60%) 60%, rgb(28 28 28 / 0%));
}
.ag-journey.is-ready .ag-journey__ch { opacity: 0; transform: translate(calc(var(--x, 0) * 100vw), 32px); transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
.ag-journey.is-ready .ag-journey__ch.is-in { opacity: 1; transform: translate(calc(var(--x, 0) * 100vw), 0); }
.ag-journey__text { margin: 0; }
.ag-journey__text em, .ag-journey__item { font-style: normal; color: var(--ag-gold-light); }
.ag-journey__items { display: flex; flex-wrap: wrap; gap: 20px 46px; margin: 32px 0 0; padding: 0; list-style: none; }
.ag-journey__item { display: flex; align-items: center; gap: 10px; min-height: 40px; white-space: nowrap; }
.ag-journey__arr { flex: none; width: 20px; height: 10px; margin-top: 4px; }
.ag-journey__note { margin: 28px 0 0; }
.ag-journey__ch--col .ag-journey__items { flex-direction: column; margin: -3px 0 0 435px; }
.ag-journey__ch--stairs .ag-journey__items { flex-direction: column; gap: 35px; margin-top: 58px; }
.ag-journey__ch--stairs .ag-journey__item:nth-child(2) { margin-left: 217px; }
.ag-journey__ch--stairs .ag-journey__item:nth-child(3) { margin-left: 434px; }
.ag-journey__ch--stairs .ag-journey__item:nth-child(4) { margin-left: 649px; }
.ag-journey__ch--center, .ag-journey__ch--plain { text-align: center; }
.ag-journey__ch--center .ag-journey__items { justify-content: center; gap: 28px 78px; max-width: 822px; margin: 57px auto 0; }
@media (prefers-reduced-motion: reduce) {
	.ag-journey.is-ready .ag-journey__ch { opacity: 1; transform: translateX(calc(var(--x, 0) * 100vw)); transition: none; }
}
@media (max-width: 1300px) {
	.ag-journey__ch { font-size: 30px; }
	.ag-journey__ch--col .ag-journey__items { margin-left: 160px; }
	.ag-journey__ch--stairs .ag-journey__item:nth-child(2) { margin-left: 80px; }
	.ag-journey__ch--stairs .ag-journey__item:nth-child(3) { margin-left: 160px; }
	.ag-journey__ch--stairs .ag-journey__item:nth-child(4) { margin-left: 240px; }
}
@media (max-width: 767px) {
	.ag-journey__step { padding: 80px 16px; }
	.ag-journey__ch { --x: 0; padding: 24px 16px; font-size: 24px; }
	.ag-journey__text br, .ag-journey__note br { display: none; }
	.ag-journey__items { flex-direction: column; gap: 8px; margin-top: 20px; }
	.ag-journey__item { min-height: 32px; align-items: flex-start; text-align: left; white-space: normal; }
	.ag-journey__arr { margin-top: 9px; }
	.ag-journey__ch--col .ag-journey__items { margin: 20px 0 0; }
	.ag-journey__ch--stairs .ag-journey__items { gap: 8px; margin-top: 20px; }
	.ag-journey__ch--stairs .ag-journey__item:nth-child(n) { margin-left: 0; }
	.ag-journey__ch--center .ag-journey__items { gap: 8px; margin-top: 20px; align-items: flex-start; justify-content: flex-start; }
	/* Telefon: wszystkie hasła do lewej (decyzja Mateusza 24.11), także wyśrodkowane na desktopie (center / plain). */
	.ag-journey__step { justify-content: flex-start; }
	.ag-journey__ch, .ag-journey__ch--center, .ag-journey__ch--plain { width: 100%; text-align: left; }
	.ag-journey__note { margin-top: 16px; }
}

/* ==========================================================================
   Tablet (768–1100 px, pionowo i poziomo) – przegląd 2026-12-01.
   Do 1100 px działa układ „mobilny”; tu poprawki dla szerszego ekranu niż telefon.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1100px) {
	:root { --ag-gutter: 32px; }

	/* Hero podstron usług i O nas: treść u góry, zdjęcie w dolnej części – wyraźne (obrazy mają własną przezroczystość z lewej). */
	.ag-svhero[data-triangle-cursor] { align-items: flex-start; }
	.ag-svhero--wide[data-triangle-cursor] .ag-svhero__img,
	.ag-svhero--cutout[data-triangle-cursor] .ag-svhero__img {
		top: auto; bottom: 0; right: -4vw; width: 108vw; height: auto; max-width: none; max-height: 60%;
		object-fit: contain; object-position: right bottom; opacity: .85;
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%);   /* bez twardej górnej krawędzi */
	}
	.ag-svhero[data-triangle-cursor]:not(.ag-svhero--wide):not(.ag-svhero--cutout) .ag-svhero__img { right: 0; max-width: 52vw; opacity: .5; }
	.ag-svhero__lead { max-width: 560px; }

	/* Jak wygląda współpraca? – kroki po lewej, mapa po prawej (zamiast długiej listy i dużej mapy pod spodem). */
	.ag-process:not(.is-anim) .ag-process__panel {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: 48px; align-items: center;
		padding-left: var(--ag-gutter); padding-right: var(--ag-gutter);
	}
	.ag-process:not(.is-anim) .ag-process__head { grid-column: 1 / -1; padding: 0; max-width: none; }
	.ag-process:not(.is-anim) .ag-process__steps,
	.ag-process:not(.is-anim) .ag-process__map { padding: 0; margin: 48px 0 0; max-width: none; }
	.ag-process:not(.is-anim) .ag-pstep { gap: 16px; }
	.ag-pstep__num, .ag-pstep__title { font-size: 28px; }
	.ag-process:not(.is-anim) .ag-process__map-text { font-size: 28px; }

	/* O nas (strona główna): zdjęcie i tekst obok siebie, na zmianę z lewej i z prawej. */
	.ag-about__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 32px; }
	.ag-about__mimg { grid-column: 1; grid-row: 1 / -1; width: 100%; margin: 0; aspect-ratio: 1; }
	.ag-about__title, .ag-about__text { grid-column: 2; }
	.ag-about__title { grid-row: 2; font-size: 40px; }
	.ag-about__text { grid-row: 3; }
	.ag-about__stage:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ag-about__stage:nth-child(even) .ag-about__mimg { grid-column: 2; }
	.ag-about__stage:nth-child(even) :is(.ag-about__title, .ag-about__text) { grid-column: 1; }
	.ag-about__cta { margin-top: 56px; }
}
/* Tablet poziomo (niski ekran): zdjęcie hero mniejsze i słabsze – tekst zajmuje większą część wysokości. */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: landscape) {
	.ag-svhero--wide[data-triangle-cursor] .ag-svhero__img,
	.ag-svhero--cutout[data-triangle-cursor] .ag-svhero__img { width: 80vw; max-height: 75%; opacity: .7; }
}
