/**
 * components-oferta.css
 *
 * Landing „Oferta sklepu" (page-oferta.php) wg projektu Justyny (25.09.2026).
 * Layout i kolory żyją w inline-style w szablonie (1:1 z makietą); tutaj tylko:
 * reset bazowy makiety, chipy wariantów, stany :hover (makieta: style-hover),
 * responsywność i korekty pod sticky topbar motywu. Całość pod .sh-oferta-lp.
 *
 * Paleta makiety: #CC1B1B / #A81515 (hover), #111111, #F8F7F4, #E0DDD8, #666666.
 */

.sh-oferta-lp {
	font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
	background: #fff;
	color: #111111;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.sh-oferta-lp *, .sh-oferta-lp *::before, .sh-oferta-lp *::after { box-sizing: border-box; }
.sh-oferta-lp a { color: #CC1B1B; text-decoration: none; }
.sh-oferta-lp img { display: block; max-width: 100%; }
.sh-oferta-lp button { font-family: inherit; }
.sh-oferta-lp h1, .sh-oferta-lp h2, .sh-oferta-lp h3 { font-family: inherit; color: inherit; }
.sh-oferta-lp blockquote { border: 0; padding: 0; }

/* Landing bez głównej nawigacji motywu (decyzja właściciela 05.10) — plik ładuje się tylko na page-oferta.php.
   Belka promo (.sh-announce) zostaje; nawigację po stronie daje pasek kotwic landingu. */
header.sh-navbar { display: none !important; }

/* Kotwice (#jednostki, #mindset…) nie chowają się pod sticky belką promo motywu. */
.sh-oferta-lp [id] { scroll-margin-top: 64px; }

/* Pasek kotwic (dawna nawigacja makiety) — zawija się na wąskich ekranach. */
.sh-oferta-lp nav > div { flex-wrap: wrap; justify-content: center; row-gap: 10px; }

/* Chipy wariantów (CHIP_BASE / CHIP_ON / CHIP_OFF z makiety). */
.sh-oferta-lp .sh-of-chip {
	font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
	padding: 11px 16px; border-radius: 6px; cursor: pointer;
	background: #ffffff; color: #111111; border: 1px solid #E0DDD8;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sh-oferta-lp .sh-of-chip:hover { border-color: #111111; }
.sh-oferta-lp .sh-of-chip.is-on { background: #111111; color: #ffffff; border-color: #111111; }
.sh-oferta-lp .sh-of-chip:focus-visible,
.sh-oferta-lp [data-oferta-rail]:focus-visible { outline: 2px solid #CC1B1B; outline-offset: 2px; }

/* ── Responsywność ── */
@media (max-width: 760px) {
	/* Zestawy: zamiast przewijanej w poziomie osi 860 px — karty jedna pod drugą. */
	.sh-oferta-lp [data-oferta="sets"] { min-width: 0 !important; }
	.sh-oferta-lp [data-oferta="sets"] > div { grid-template-columns: 1fr !important; }
	.sh-oferta-lp [data-oferta="timeline"] { display: none; }
	/* Długie CTA („Wybieram FORMOZA × MINDSET →”) mogą się łamać. */
	.sh-oferta-lp [data-oferta="buy"],
	.sh-oferta-lp section a[style*="white-space:nowrap"] { white-space: normal !important; }
	.sh-oferta-lp section[data-oferta-unit] > div,
	.sh-oferta-lp section[data-oferta-unit] { gap: 28px !important; }
}

/* ── Telefon wg zrzutów Justyny (05.10) ── */
@media (max-width: 760px) {
	/* Pasek kotwic: tylko przycisk „Wybierz jednostkę”, bez linków sekcji. */
	.sh-oferta-lp nav a:not(.ofh2) { display: none !important; }
	/* Mniej pustego miejsca nad hero. */
	.sh-oferta-lp #top { padding-top: 28px !important; }

	/* Jednostki + SSF: zdjęcie między wyróżnionym zdaniem a chipami/przyciskami.
	   Kolumna tekstu znika z układu (display:contents), jej dzieci i kolumna zdjęcia
	   stają się elementami jednego słupka ustawianymi przez order. */
	.sh-oferta-lp :is(section, div):has(> div > [data-oferta-split]) {
		flex-direction: column !important; flex-wrap: nowrap !important;
		align-items: stretch !important; gap: 0 !important;
	}
	.sh-oferta-lp div:has(> [data-oferta-split]) { display: contents; }
	.sh-oferta-lp div:has(> [data-oferta-split]) > * { order: 1; }
	.sh-oferta-lp :is(section, div):has(> div > [data-oferta-split]) > div:not(:has(> [data-oferta-split])) {
		order: 2; margin: 4px 0 24px;
		flex: none !important; /* flex-basis z makiety (np. 1 1 380px) w słupku = sztywna wysokość: pusty pas albo ucięte zdjęcie */
	}
	/* Ta sama baza selektora co reguła order:1 wyżej (+ atrybut) — inaczej przegrywa specyficznością. */
	.sh-oferta-lp div:has(> [data-oferta-split]) > [data-oferta-split],
	.sh-oferta-lp div:has(> [data-oferta-split]) > [data-oferta-split] ~ * { order: 3; }
}

/* Hovery przeniesione z makiety (atrybut style-hover). Wygenerowane przez convert.py — nie edytować ręcznie. */
.sh-oferta-lp .ofh1:hover, .sh-oferta-lp .ofh1:focus-visible { color:#fff !important; }
.sh-oferta-lp .ofh2:hover, .sh-oferta-lp .ofh2:focus-visible { background:#A81515 !important;color:#fff !important; }
.sh-oferta-lp .ofh3:hover, .sh-oferta-lp .ofh3:focus-visible { background:#111111 !important;color:#ffffff !important;border-color:#111111 !important; }
.sh-oferta-lp .ofh4:hover, .sh-oferta-lp .ofh4:focus-visible { background:#A81515 !important; }
.sh-oferta-lp .ofh5:hover, .sh-oferta-lp .ofh5:focus-visible { background:#111111 !important;color:#fff !important;border-color:#111111 !important; }
.sh-oferta-lp .ofh6:hover, .sh-oferta-lp .ofh6:focus-visible { background:#fff !important;color:#111111 !important;border-color:#111111 !important; }
.sh-oferta-lp .ofh7:hover, .sh-oferta-lp .ofh7:focus-visible { background:#ffffff !important;color:#CC1B1B !important;padding-left:40px !important; }
.sh-oferta-lp .ofh8:hover, .sh-oferta-lp .ofh8:focus-visible { background:#2A2A2A !important;color:#fff !important; }
.sh-oferta-lp .ofh9:hover, .sh-oferta-lp .ofh9:focus-visible { transform:rotate(0deg) scale(1.35) !important;position:relative !important;z-index:2 !important; }
