/* ========================================================================
   Strona główna — redesign 2026-07 wg design/Cucudo Strona Główna (offline) (1).html
   Ładowany tylko na froncie (wp_body_open w functions.php).
   Tokeny: ink #12131A · muted #767676 · green fill #21FA90 (ciemny tekst!)
   · green dark #0A7D45 · beż #F2F0EB · borders #EDEDED/#C6C6C6
   Sekcje pełnoszerokie; treść w bootstrapowym .container jak na stronie
   produktowej (decyzja: spójny grid).
   ======================================================================== */

.ccd-hp { font-family: 'Ubuntu', sans-serif; color: #12131A; }
.ccd-hp .container { position: relative; }
/* Szerokość treści = wzorzec witryny (1350, jak container-medium). Tylko od xxl,
   niższe breakpointy dziedziczą bootstrapowy .container (identyczne z container-medium). */
@media (min-width: 1400px) { .ccd-hp .container { max-width: 1350px; } }

/* wspólne nagłówki sekcji */
.ccd-hp-kicker {
	font-size: 12px;
	letter-spacing: 2px;
	color: #0A7D45;
	font-weight: 700;
	margin: 0 0 8px;
	text-transform: uppercase;
}
.ccd-hp-kicker--neon { color: #21FA90; }
.ccd-hp-h2 {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 500;
	margin: 0 0 8px;
	line-height: 1.1;
}
.ccd-hp-sechead {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.ccd-hp-sechead__desc { font-size: 16px; color: #767676; margin: 0; }
.ccd-hp-sechead__nav { display: flex; gap: 10px; align-items: center; }
.ccd-hp-arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid #C6C6C6;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	color: #12131A;
	transition: border-color .2s, color .2s;
}
.ccd-hp-arrow:hover { border-color: #12131A; }
.ccd-hp-arrow--dark {
	border-color: rgba(255,255,255,.3);
	background: transparent;
	color: #fff;
}
.ccd-hp-arrow--dark:hover { border-color: #21FA90; color: #21FA90; }
.ccd-hp-underlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #12131A;
	border-bottom: 1px solid #12131A;
	padding: 0 2px 4px;
	text-decoration: none !important;
	margin-left: 10px;
	transition: color .2s, border-color .2s;
}
.ccd-hp-underlink:hover { color: #0A7D45; border-color: #0A7D45; }

/* track karuzeli (ul.products na froncie + realizacje + blog) */
.ccd-hp-track {
	display: flex !important;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 0 0 6px;
	margin: 0;
	list-style: none;
	flex-wrap: nowrap !important;
}
.ccd-hp-track::-webkit-scrollbar { display: none; }
.ccd-hp-track > * { scroll-snap-align: start; }
ul.products.ccd-hp-track li.product.ccd-card {
	flex: 0 0 320px;
	width: 320px !important;
	margin: 0 !important;
}
@media (max-width: 600px) {
	ul.products.ccd-hp-track li.product.ccd-card { flex-basis: 280px; width: 280px !important; }
}

/* ============ HERO ============ */
.ccd-hp-hero {
	position: relative;
	min-height: 82vh;
	background: #12131A;
	color: #fff;
	overflow: hidden;
}
.ccd-hp-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s;
	pointer-events: none;
	z-index: 1;
}
.ccd-hp-hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.ccd-hp-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 7s ease-out;
	/* Ken Burns (scale 1->1.06, 7s) leci prawie ciągle (rotacja co 6s). Bez własnej
	   warstwy GPU przeglądarka re-rasteryzuje skalowany obraz przy każdym scrollu ->
	   miganie zdjęcia. will-change trzyma go na stabilnej warstwie (kompozytor tylko
	   przesuwa/skaluje), backface-visibility gasi resztkowy subpixel-repaint. */
	will-change: transform;
	backface-visibility: hidden;
}
.ccd-hp-hero__slide.is-active .ccd-hp-hero__bg { transform: scale(1.06); }
.ccd-hp-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(18,19,26,.8) 0%, rgba(18,19,26,.5) 42%, rgba(18,19,26,.12) 100%);
}
.ccd-hp-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: clamp(70px, 12vh, 130px) 5vw 110px;
}
.ccd-hp-hero__content { max-width: 720px; }
.ccd-hp-hero__kicker {
	font-size: 13px;
	letter-spacing: 3px;
	color: #21FA90;
	font-weight: 700;
	margin: 0 0 20px;
	text-transform: uppercase;
}
.ccd-hp-hero__title {
	font-size: clamp(40px, 5.5vw, 78px);
	line-height: 1.04;
	font-weight: 500;
	margin: 0 0 24px;
	color: #fff;
}
.ccd-hp-hero__lead {
	font-size: 19px;
	line-height: 1.6;
	color: rgba(255,255,255,.82);
	margin: 0 0 38px;
	max-width: 52ch;
}
.ccd-hp-hero__btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ccd-hp-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	border-radius: 14px;
	text-decoration: none !important;
	transition: .2s;
}
.ccd-hp-hero__btn--solid {
	color: #12131A;
	background: #fff;
	padding: 19px 44px;
}
.ccd-hp-hero__btn--solid:hover { background: #21FA90; color: #12131A; }
.ccd-hp-hero__btn--ghost {
	color: #fff;
	border: 1px solid rgba(255,255,255,.4);
	padding: 19px 34px;
}
.ccd-hp-hero__btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* slajd dzielony: tekst | zdjęcie */
.ccd-hp-hero__split {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	background: #12131A;
}
.ccd-hp-hero__split .ccd-hp-hero__inner { padding: clamp(70px, 12vh, 130px) 4vw 110px 5vw; }
.ccd-hp-hero__split .ccd-hp-hero__content { max-width: 600px; }
.ccd-hp-hero__media { position: relative; min-height: 340px; overflow: hidden; }
.ccd-hp-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ccd-hp-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 5vw 34px;
	flex-wrap: wrap;
	pointer-events: none;
}
.ccd-hp-hero__dots { display: flex; gap: 12px; pointer-events: auto; }
.ccd-hp-hero__dots button {
	height: 4px;
	width: 22px;
	border-radius: 2px;
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: .3s;
	background: rgba(255,255,255,.35);
}
.ccd-hp-hero__dots button.is-active { width: 44px; background: #21FA90; }
.ccd-hp-hero__counter { font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,.6); }

/* ============ ZALETY ============ */
.ccd-hp-perks {
	border-bottom: 1px solid #EDEDED;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	background: #fff;
}
.ccd-hp-perks__cell {
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 30px 5vw;
	border-right: 1px solid #EDEDED;
}
.ccd-hp-perks__cell:last-child { border-right: 0; }
.ccd-hp-perks__icon { flex: 0 0 auto; display: inline-flex; }
.ccd-hp-perks__icon svg { height: 46px; width: auto; }
.ccd-hp-perks__cell h3 { font-size: 16px; font-weight: 500; margin: 0 0 4px; }
.ccd-hp-perks__cell p { font-size: 13.5px; color: #767676; line-height: 1.5; margin: 0; }

/* ============ KATEGORIE bento ============ */
.ccd-hp-cats { padding: 88px 0 40px; background: #fff; }
.ccd-hp-cats__head { max-width: 640px; margin: 0 0 40px; }
.ccd-hp-cats__head .ccd-hp-h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.ccd-hp-cats__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-auto-rows: 1fr;
	gap: 20px;
}
.ccd-hp-cats__card {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	background: #F2F0EB;
	min-height: 300px;
}
.ccd-hp-cats__card.is-big { grid-row: span 2; min-height: 320px; }
.ccd-hp-cats__card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s;
}
.ccd-hp-cats__card:hover img { transform: scale(1.05); }
.ccd-hp-cats__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18,19,26,.8), rgba(18,19,26,.05) 60%);
}
.ccd-hp-cats__caption {
	position: relative;
	z-index: 2;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
}
.ccd-hp-cats__name { color: #fff; font-size: 26px; font-weight: 500; line-height: 1.15; margin-bottom: 6px; }
.ccd-hp-cats__more { color: #EDEDED; font-size: 14px; font-weight: 500; }
@media (max-width: 767px) {
	.ccd-hp-cats__grid { grid-template-columns: 1fr; }
	.ccd-hp-cats__card.is-big { grid-row: span 1; }
}

/* ============ SEKCJE PRODUKTOWE ============ */
.ccd-hp-prods { padding: 48px 0 20px; background: #fff; }

/* ============ REALIZACJE ============ */
.ccd-hp-works { background: #12131A; padding: 88px 0; margin-top: 48px; }
.ccd-hp-works .ccd-hp-h2 { color: #fff; }
.ccd-hp-works__card {
	position: relative;
	flex: 0 0 300px;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	background: #1C1D26;
}
.ccd-hp-works__card img {
	width: 100%;
	/* px zamiast aspect-ratio — jak przy kartach bloga (2026-07-21): 400 = 300 × 4/3 */
	height: 400px !important;
	object-fit: cover;
	display: block;
	transition: transform .5s;
}
.ccd-hp-works__card:hover img { transform: scale(1.05); }
.ccd-hp-works__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18,19,26,.72), rgba(18,19,26,0) 48%);
}
.ccd-hp-works__caption {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ccd-hp-works__name { color: #fff; font-size: 19px; font-weight: 500; line-height: 1.3; }
.ccd-hp-works__more { color: #21FA90; font-size: 13px; font-weight: 500; }

/* ============ BANERY ============ */
.ccd-hp-banners { padding: 88px 0 40px; background: #fff; }
.ccd-hp-banners__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.ccd-hp-banners__card {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none !important;
	background: #F2F0EB;
}
.ccd-hp-banners__card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform .5s;
}
.ccd-hp-banners__card:hover img { transform: scale(1.04); }
.ccd-hp-banners__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18,19,26,.68), rgba(18,19,26,0) 62%);
}
.ccd-hp-banners__name {
	position: absolute;
	left: 24px;
	bottom: 20px;
	color: #fff;
	font-size: 23px;
	font-weight: 500;
}

/* ============ CTA SKLEP ============ */
.ccd-hp-cta { padding: 40px 0 88px; background: #fff; }
.ccd-hp-cta__panel {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #F2F0EB;
	padding: 64px 6vw;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.ccd-hp-cta__panel h3 {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 500;
	margin: 0 0 12px;
	line-height: 1.12;
	max-width: 560px;
}
.ccd-hp-cta__panel p { font-size: 16px; color: #4A4A4A; margin: 0; line-height: 1.6; max-width: 560px; }
.ccd-hp-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: #12131A;
	border-radius: 14px;
	padding: 19px 42px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.ccd-hp-cta__btn:hover { background: #21FA90; color: #12131A; }

/* ============ BLOG ============ */
.ccd-hp-blog { background: #F2F0EB; padding: 88px 0; }
.ccd-hp-blog__card {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none !important;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	color: #12131A;
	transition: transform .3s, box-shadow .3s;
}
.ccd-hp-blog__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(18,19,26,.08);
	color: #12131A;
}
.ccd-hp-blog__card img {
	width: 100%;
	/* Sztywna wysokość zamiast aspect-ratio: miniatury wpisów mają różne naturalne
	   wymiary (431/439/511px) i aspect-ratio nie łapało u właściciela (2026-07-21)
	   — height px jest odporne na wszystko. 200px = 320px szer. × 10/16. */
	height: 200px !important;
	object-fit: cover;
	display: block;
}
/* body wypełnia kartę do dołu — karty w tracku (align stretch) mają równe dna */
.ccd-hp-blog__body { display: flex; flex-direction: column; gap: 8px; padding: 6px 22px 24px; flex: 1; }
.ccd-hp-blog__date { font-size: 12px; color: #0A7D45; font-weight: 500; letter-spacing: 1px; }
.ccd-hp-blog__title { font-size: 17px; font-weight: 500; line-height: 1.35; }
.ccd-hp-blog__excerpt { font-size: 14px; color: #767676; line-height: 1.55; }

/* SEO (homepage__aboutus) — markup i klasy parenta, tylko odstęp od bloga */
.ccd-hp .homepage__aboutus { padding-top: 64px; }

/* ============ komunikacja przewijania karuzel (uwaga właściciela 2026-07-20) ============ */
.ccd-hp-trackwrap { position: relative; }
/* gradient-zajawka na krawędzi: „tu jest więcej" — znika na końcu przewijania */
.ccd-hp-trackwrap::before,
.ccd-hp-trackwrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 6px;
	width: 72px;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s;
}
.ccd-hp-trackwrap::before {
	left: 0;
	background: linear-gradient(to right, #fff 12%, rgba(255,255,255,0));
}
.ccd-hp-trackwrap::after {
	right: 0;
	background: linear-gradient(to left, #fff 12%, rgba(255,255,255,0));
}
.ccd-hp-trackwrap.has-prev::before { opacity: 1; }
.ccd-hp-trackwrap.has-next::after { opacity: 1; }
.ccd-hp-trackwrap--dark::before { background: linear-gradient(to right, #12131A 12%, rgba(18,19,26,0)); }
.ccd-hp-trackwrap--dark::after { background: linear-gradient(to left, #12131A 12%, rgba(18,19,26,0)); }
.ccd-hp-trackwrap--beige::before { background: linear-gradient(to right, #F2F0EB 12%, rgba(242,240,235,0)); }
.ccd-hp-trackwrap--beige::after { background: linear-gradient(to left, #F2F0EB 12%, rgba(242,240,235,0)); }

/* przeciąganie myszką */
.ccd-hp-track { cursor: grab; }
.ccd-hp-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}
.ccd-hp-track.is-dragging a,
.ccd-hp-track.is-dragging .ccd-card__link { pointer-events: none; }

/* strzałki: wygaszone, gdy nie ma już dokąd przewinąć */
.ccd-hp-arrow:disabled {
	opacity: .35;
	cursor: default;
}
.ccd-hp-arrow:disabled:hover { border-color: #C6C6C6; }
.ccd-hp-arrow--dark:disabled:hover { border-color: rgba(255,255,255,.3); color: #fff; }

/* ============ RESPONSYWNOŚĆ — poprawki 2026-07-21 ============ */
/* Hero, slajd dzielony (tekst|zdjęcie) poniżej 992px: zdjęcie idzie POD tekst jako
   przyciemnione tło (decyzja właściciela — spójnie ze slajdem typu „tło").
   Powód: grid auto-fit siedzi w absolutnie pozycjonowanym slajdzie o sztywnej
   wysokości hero — przy stacku kolumn kontener nie urośnie i zdjęcie wypada
   poza kadr (pasek na dole). Tło nie zmienia wysokości = zero przebudowy. */
@media (max-width: 991px) {
	.ccd-hp-hero__split { display: block; }
	.ccd-hp-hero__media {
		position: absolute;
		inset: 0;
		min-height: 0;
	}
	/* przyciemnienie jak shade slajdu tłowego — tekst musi być czytelny */
	.ccd-hp-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(to right, rgba(18,19,26,.9), rgba(18,19,26,.55));
	}
	.ccd-hp-hero__split .ccd-hp-hero__inner {
		position: relative;
		z-index: 2;
	}
	/* slajd 3 (info) wyłączony na mobile — decyzja właściciela 2026-07-21;
	   JS (cucudo-child-home.js) liczy tylko widoczne slajdy, licznik pokazuje 02 */
	.ccd-hp-hero__slide--nomob,
	.ccd-hp-hero__dots button.ccd-hp-hero__dot--nomob { display: none !important; }
}
/* Karuzele na telefonie: gradient-zajawka przykrywał tekst jedynej w pełni
   widocznej karty (screenshot właściciela — blog na mobile). Wyłączony <600px;
   affordance przejmuje wystający kawałek następnej karty (węższe karty). */
@media (max-width: 600px) {
	.ccd-hp-trackwrap::before,
	.ccd-hp-trackwrap::after { display: none; }
	.ccd-hp-blog__card { flex: 0 0 290px; }
	.ccd-hp-works__card { flex: 0 0 270px; }
}
