/* ==========================================================================
   IDEAL HOUSE 3.0 - BASE
   Reset, typografia, kontener, narzędzia.

   KOLORY I CZCIONKI POCHODZĄ Z ELEMENTORA
   (Ustawienia witryny → Globalne kolory / Globalne czcionki).
   Motyw nie definiuje własnych kolorów - używa zmiennych Elementora:

   --e-global-color-primary      nagłówki, tekst mocny        (#101A2D)
   --e-global-color-secondary    granat ciemnych sekcji        (#07152D)
   --e-global-color-text         tekst akapitów                (#5A6678)
   --e-global-color-accent       zieleń - przyciski CTA        (#256F34)
   --e-global-color-ihnavy       granat - drugi odcień         (#10223E)
   --e-global-color-ihgreendark  zieleń - hover                (#1D5E2B)
   --e-global-color-ihgreensoft  zieleń - jasne tło            (#EEF5EF)
   --e-global-color-ihmuted      tekst pomocniczy              (#8A95A5)
   --e-global-color-ihborder     linie i obramowania           (#E3E8ED)
   --e-global-color-ihsoft       szare tło sekcji              (#F5F7F8)
   --e-global-color-ihwhite      biały
   --e-global-color-ihondark     tekst na ciemnym tle
   --e-global-color-ihlinedark   linie na ciemnym tle
   --e-global-color-ihsky        etykiety na ciemnym tle       (#79A8E9)
   --e-global-color-ihstar       gwiazdki ocen                 (#F4B400)
   --e-global-color-ihdanger     błędy                         (#C94444)

   Czcionki: --e-global-typography-{primary|secondary|text|accent|
   ihh1|ihh2|ihh3|ihh4|iheyebrow|ihlead|ihsmall|ihnav}-{font-family|…}

   Poniżej są tylko wymiary (odstępy, zaokrąglenia, cienie) - wspólne
   dla całego serwisu, nie dla pojedynczych stron.
   ========================================================================== */

:root {
	--ih-gutter: 32px;
	--ih-header-h: 76px;
	--ih-section-y: 100px;
	--ih-section-y-tight: 64px;
	--ih-gap: 24px;
	--ih-gap-lg: 48px;
	--ih-radius: 8px;
	--ih-radius-lg: 14px;
	--ih-shadow: 0 1px 2px rgba(7, 21, 45, .04), 0 10px 30px rgba(7, 21, 45, .08);
	--ih-shadow-lg: 0 12px 32px rgba(7, 21, 45, .09);
	--ih-ease: cubic-bezier(.2, .7, .2, 1);
	--ih-font-heading: var(--e-global-typography-primary-font-family, "Poppins"), system-ui, sans-serif;
	--ih-font-body: var(--e-global-typography-text-font-family, "Inter"), system-ui, sans-serif;
	--ih-font-ui: var(--e-global-typography-accent-font-family, "Inter"), system-ui, sans-serif;

	/* Skala rozmiarów tekstu - jedyne źródło font-size w CSS.
	   Wartości biorą się z Elementora (Globalne czcionki), więc zmiana tam
	   zmienia ten sam typ elementu na wszystkich stronach.
	   Najmniejszy tekst: 14 px. */
	--ih-fs-xs: var(--e-global-typography-ihsmall-font-size, 14px);   /* etykiety, nadtytuły, metki, okruszki, podpisy */
	--ih-fs-sm: var(--e-global-typography-accent-font-size, 15px);    /* przyciski, menu, pola formularzy, tabele, filtry */
	--ih-fs-base: var(--e-global-typography-text-font-size, 16px);    /* zwykły tekst */
	--ih-fs-md: var(--e-global-typography-ihh4-font-size, 18px);      /* tytuły kart i produktów, pytania FAQ, wstępy sekcji */
	--ih-fs-lead: var(--e-global-typography-ihlead-font-size, 19px);  /* wstęp pod H1 */
	--ih-fs-h3: var(--e-global-typography-ihh3-font-size, 24px);      /* H3, sumy, telefon w CTA */
	--ih-fs-stat: 26px;                                               /* liczby i ceny wyróżnione */
}

@media (max-width: 1024px) {
	:root {
		--ih-gutter: 28px;
		--ih-section-y: 80px;
		--ih-section-y-tight: 56px;
	}
}

@media (max-width: 767px) {
	:root {
		--ih-gutter: 20px;
		--ih-header-h: 64px;
		--ih-section-y: 64px;
		--ih-section-y-tight: 48px;
		--ih-gap: 16px;
		--ih-gap-lg: 32px;
	}
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ih-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--e-global-color-ihwhite);
	color: var(--e-global-color-text);
	font-family: var(--ih-font-body);
	font-size: var(--e-global-typography-text-font-size, 16px);
	font-weight: var(--e-global-typography-text-font-weight, 400);
	line-height: var(--e-global-typography-text-line-height, 1.65);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img,
svg,
video,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid var(--e-global-color-ihborder);
	margin: 32px 0;
}

/* ---------- Typografia ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 .5em;
	color: var(--e-global-color-primary);
	font-family: var(--ih-font-heading);
	font-weight: var(--e-global-typography-primary-font-weight, 800);
	text-wrap: balance;
}

h1,
.ih-h1 {
	font-family: var(--e-global-typography-ihh1-font-family, "Poppins"), sans-serif;
	font-size: var(--e-global-typography-ihh1-font-size, 58px);
	font-weight: var(--e-global-typography-ihh1-font-weight, 800);
	line-height: var(--e-global-typography-ihh1-line-height, 1.04);
	letter-spacing: var(--e-global-typography-ihh1-letter-spacing, -.035em);
}

h2,
.ih-h2 {
	font-family: var(--e-global-typography-ihh2-font-family, "Poppins"), sans-serif;
	font-size: var(--e-global-typography-ihh2-font-size, 42px);
	font-weight: var(--e-global-typography-ihh2-font-weight, 800);
	line-height: var(--e-global-typography-ihh2-line-height, 1.1);
	letter-spacing: var(--e-global-typography-ihh2-letter-spacing, -.03em);
}

h3,
.ih-h3 {
	font-family: var(--e-global-typography-ihh3-font-family, "Poppins"), sans-serif;
	font-size: var(--e-global-typography-ihh3-font-size, 24px);
	font-weight: var(--e-global-typography-ihh3-font-weight, 700);
	line-height: var(--e-global-typography-ihh3-line-height, 1.22);
	letter-spacing: var(--e-global-typography-ihh3-letter-spacing, -.02em);
}

h4,
h5,
h6,
.ih-h4 {
	font-family: var(--e-global-typography-ihh4-font-family, "Poppins"), sans-serif;
	font-size: var(--e-global-typography-ihh4-font-size, 18px);
	font-weight: var(--e-global-typography-ihh4-font-weight, 700);
	line-height: var(--e-global-typography-ihh4-line-height, 1.3);
	letter-spacing: var(--e-global-typography-ihh4-letter-spacing, -.01em);
}

p,
ul,
ol,
dl,
figure,
blockquote {
	margin: 0 0 1em;
}

p:last-child,
ul:last-child,
ol:last-child {
	margin-bottom: 0;
}

strong,
b {
	color: var(--e-global-color-primary);
	font-weight: 600;
}

a {
	color: var(--e-global-color-accent);
	text-decoration: none;
	text-underline-offset: .2em;
	transition: color .2s var(--ih-ease);
}

a:hover {
	color: var(--e-global-color-ihgreendark);
}

:focus-visible {
	outline: 2px solid var(--e-global-color-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--e-global-color-ihgreensoft);
	color: var(--e-global-color-primary);
}

small {
	font-size: var(--e-global-typography-ihsmall-font-size, 14px);
}

/* Etykieta nad tytułem */
.ih-eyebrow {
	display: block;
	margin: 0 0 14px;
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-iheyebrow-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-iheyebrow-font-size, 14px);
	font-weight: var(--e-global-typography-iheyebrow-font-weight, 700);
	line-height: var(--e-global-typography-iheyebrow-line-height, 1.4);
	letter-spacing: var(--e-global-typography-iheyebrow-letter-spacing, .08em);
	text-transform: var(--e-global-typography-iheyebrow-text-transform, uppercase);
}

.ih-eyebrow--accent {
	color: var(--e-global-color-accent);
}

/* Wstęp */
.ih-lead {
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-ihlead-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-ihlead-font-size, 19px);
	font-weight: var(--e-global-typography-ihlead-font-weight, 400);
	line-height: var(--e-global-typography-ihlead-line-height, 1.6);
	max-width: 62ch;
}

.ih-small,
.ih-meta {
	font-size: var(--e-global-typography-ihsmall-font-size, 14px);
	line-height: var(--e-global-typography-ihsmall-line-height, 1.55);
}

.ih-meta {
	color: var(--e-global-color-ihmuted);
}

/* ---------- Kontener ---------- */

.ih-container {
	width: 100%;
	max-width: calc(var(--ih-container, 1380px) + 2 * var(--ih-gutter));
	margin-inline: auto;
	padding-inline: var(--ih-gutter);
}

.ih-container--wide {
	max-width: calc(1600px + 2 * var(--ih-gutter));
}

.ih-container--narrow {
	max-width: calc(980px + 2 * var(--ih-gutter));
}

.ih-container--text {
	max-width: calc(780px + 2 * var(--ih-gutter));
}

/* ---------- Narzędzia ---------- */

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

.ih-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--ih-radius);
	background: var(--e-global-color-secondary);
	color: var(--e-global-color-ihwhite);
	font-weight: 600;
}

.ih-skip-link:focus {
	top: 12px;
	color: var(--e-global-color-ihwhite);
}

.ih-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.ih-center {
	text-align: center;
}

.ih-nowrap {
	white-space: nowrap;
}

.ih-hide-mobile {
	display: initial;
}

@media (max-width: 767px) {
	.ih-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.ih-only-mobile {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
