/* =========================================================
   GAP24online – arkusz stylów
   Paleta: papier / głęboka zieleń petrol / mosiądz
   ========================================================= */
:root {
	--paper: #F5F3EE;
	--paper-2: #EEEAE2;
	--surface: #FFFFFF;
	--ink: #13262A;
	--ink-2: #34494E;
	--muted: #66777B;
	--line: #E2DDD3;
	--line-2: #D3CDC1;
	--brand: #1D5653;
	--brand-2: #163F3D;
	--brand-3: #0E2C2B;
	--brand-soft: #E2ECEA;
	--brand-tint: #F0F5F4;
	--accent: #B98B4E;
	--accent-2: #9C7238;
	--accent-soft: #F3E9DA;
	--ok: #2E7A58;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(19, 38, 42, .05), 0 8px 24px -12px rgba(19, 38, 42, .18);
	--shadow-lg: 0 2px 4px rgba(19, 38, 42, .04), 0 24px 48px -20px rgba(19, 38, 42, .28);
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-variation-settings: "opsz" 36; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
strong, b { font-weight: 600; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.ico { flex: none; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1.1 var(--sans); text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(29, 86, 83, .7); }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--light { background: #fff; color: var(--brand-2); }
.btn--light:hover { background: var(--accent-soft); color: var(--brand-3); }
.btn--ghost { background: transparent; color: var(--brand-2); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: .6em 1.05em; font-size: .9rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--brand); }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .2s; }

/* Kod rabatowy */
.code { display: inline-flex; align-items: center; gap: .65em; padding: .55em .6em .55em 1em; border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--brand-3); border-radius: 999px; transition: background .2s; }
.code:hover { background: #EEDFC6; }
.code__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); font-weight: 600; }
.code__value { font: 600 1.05rem/1 var(--sans); letter-spacing: .12em; }
.code__hint { display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; color: var(--accent-2); background: #fff; padding: .35em .7em; border-radius: 999px; }
.code.is-copied .code__hint { color: var(--ok); }
.code--lg { padding: .7em .7em .7em 1.1em; }
.code--block { display: flex; justify-content: space-between; width: 100%; margin-bottom: 12px; border-radius: 14px; }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .9em; font: 600 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow--pill { background: var(--surface); border: 1px solid var(--line); padding: .55em .9em; border-radius: 999px; color: var(--brand-2); letter-spacing: .06em; box-shadow: var(--shadow); }
.eyebrow--pill .ico { color: var(--accent); }
.eyebrow--light { color: #D9BE92; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brand-3); color: #CFE0DD; font-size: .84rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .45em; }
.topbar strong { color: #E9D3AC; letter-spacing: .06em; }
.topbar__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: #E7EFEE; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.topbar a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .topbar__links li:first-child { display: none; } .topbar__promo { font-size: .78rem; } }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(19, 38, 42, .4); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__name { font: 500 1.28rem/1 var(--serif); letter-spacing: -.01em; }
.brand__name b { font-weight: 600; color: var(--brand); }
.brand__tld { color: var(--muted); font-size: .8em; }
.brand--light { color: #fff; }
.brand--light .brand__name b { color: #E7D3AE; }
.brand--light .brand__tld { color: #9FB8B4; }
.nav { margin-left: auto; }
.nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu > li > a { display: block; padding: .6em .8em; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav .menu > li > a:hover, .nav .menu > li.current-menu-item > a, .nav .menu > li.current-menu-ancestor > a { color: var(--brand-2); background: var(--brand-soft); }
.nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav .sub-menu { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: .6em .8em; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .94rem; }
.nav .sub-menu a:hover { background: var(--brand-tint); color: var(--brand-2); }
.sub-toggle { display: none; }
.nav__cta-mobile { display: none; }
.site-header__cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--ink); border-radius: 10px; }
.burger__close { display: none; }

@media (max-width: 1080px) {
	.burger { display: inline-flex; }
	.site-header__cta .btn { display: none; }
	.nav { position: fixed; inset: 110px 0 0 0; inset-block-end: 0; background: var(--paper); padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; margin: 0; z-index: 49; }
	.nav-open .nav { transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .burger__open { display: none; }
	.nav-open .burger__close { display: inline; }
	.nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.nav .menu > li > a { flex: 1; padding: 1em .2em; font-size: 1.08rem; background: none !important; }
	.nav .menu-item-has-children > a::after { display: none; }
	.sub-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; }
	.sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
	.is-open > .sub-toggle::before { transform: rotate(-135deg); }
	.nav .sub-menu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 8px; display: none; min-width: 0; }
	.nav .is-open > .sub-menu { display: block; }
	.nav__cta-mobile { display: flex; margin-top: 24px; }
}
@media (max-width: 640px) { .nav { inset: 108px 0 0 0; } }

/* ---------- Hero (strona główna) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px); isolation: isolate; }
.hero__photo { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 46%; background: var(--hero-img) center/cover no-repeat; border-bottom-left-radius: 48px; opacity: .95; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, rgba(245, 243, 238, .6) 28%, rgba(14, 44, 43, .15) 100%); border-bottom-left-radius: 48px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: .35em; font-variation-settings: "opsz" 144; }
.hero__title em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; color: var(--ink-2); font-size: .92rem; }
.hero__trust li { display: flex; align-items: center; gap: .5em; }
.hero__trust .ico { color: var(--accent); }
.hero__trust strong { color: var(--ink); }
@media (max-width: 960px) {
	.hero__in { grid-template-columns: 1fr; }
	.hero__photo { width: 100%; height: 260px; top: auto; bottom: 0; opacity: .18; border-radius: 0; }
	.hero__photo::after { border-radius: 0; background: linear-gradient(180deg, var(--paper), transparent); }
}

/* ---------- Kalkulator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-lg); }
.calc__eyebrow { display: flex; align-items: center; gap: .45em; margin: 0 0 .3em; font: 600 .76rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.calc__q { font: 500 1.3rem/1.25 var(--serif); margin: 0 0 20px; }
.calc__field { margin-bottom: 18px; }
.calc__field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.calc__field output { font: 600 1.05rem/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p), var(--paper-2) var(--p)); outline-offset: 6px; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: grab; }
.calc__bars { margin: 22px 0 16px; }
.calc__bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.calc__fill { display: block; height: 100%; transition: width .35s ease; }
.calc__fill--ac { background: var(--brand); }
.calc__fill--gap { background: repeating-linear-gradient(-45deg, var(--accent), var(--accent) 6px, #C9A36D 6px, #C9A36D 12px); }
.calc__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dot--ac { background: var(--brand); }
.dot--gap { background: var(--accent); }
.calc__res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.calc__res > div { background: var(--paper); border-radius: 14px; padding: 12px 14px; }
.calc__res dt { font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.calc__res dd { margin: 0; font: 600 1.05rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.calc__res-main { grid-column: 1 / -1; order: -1; background: var(--accent-soft) !important; display: flex; justify-content: space-between; align-items: center; }
.calc__res-main dt { font-size: .9rem; color: var(--accent-2); font-weight: 600; margin: 0; }
.calc__res-main dd { font: 600 1.7rem/1 var(--serif); color: var(--brand-3); }
.calc__note { margin: 12px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.45; }
.calc--compact .calc__q { font-size: 1.1rem; }

/* ---------- Fakty ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:last-child { border-right: 0; }
.fact__n { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1 var(--serif); color: var(--brand-2); letter-spacing: -.02em; }
.fact__t { font-size: .88rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .facts__grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--brand-3); color: #D5E2E0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: .6em; align-items: flex-start; }
.checks .ico { color: var(--ok); margin-top: 3px; }

/* Wykres luki */
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px 14px; box-shadow: var(--shadow); }
.chart-card figcaption { font-size: .78rem; color: var(--muted); padding: 6px 8px 0; }
.gap-chart__grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.gap-chart__invoice { stroke: var(--brand-2); stroke-width: 2.5; stroke-dasharray: 7 6; }
.gap-chart__market { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; }
.gap-chart__x text { font: 500 12px var(--sans); fill: var(--muted); text-anchor: middle; }
.gap-chart__lbl { font: 600 12.5px var(--sans); }
.gap-chart__lbl--inv { fill: var(--brand-2); }
.gap-chart__lbl--mkt { fill: var(--brand); }
.gap-chart__badge rect { fill: var(--accent); }
.gap-chart__badge text { fill: #fff; font: 600 12px var(--sans); letter-spacing: .06em; }

/* ---------- Warianty (bento) ---------- */
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.variant { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.variant:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.variant:first-child { background: var(--brand-2); border-color: var(--brand-2); color: #D5E2E0; }
.variant:first-child .variant__name a, .variant:first-child .variant__limit { color: #fff; }
.variant:first-child .variant__kind { background: rgba(255, 255, 255, .1); color: #E7D3AE; }
.variant:first-child .variant__ico { background: rgba(255, 255, 255, .1); color: #E7D3AE; }
.variant:first-child .variant__link { color: #E7D3AE; }
.variant:first-child .variant__facts .ico { color: #8FB9B3; }
.variant__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.variant__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.variant__kind { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: .35em .7em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.variant__name { font-size: 1.22rem; margin: 0; }
.variant__name a { color: var(--ink); text-decoration: none; }
.variant__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.variant__limit { font: 500 1.6rem/1.1 var(--serif); color: var(--brand-2); margin: 0 0 6px; }
.variant__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .88rem; }
.variant__facts li { display: flex; gap: .5em; align-items: flex-start; }
.variant__facts .ico { color: var(--brand); margin-top: 3px; }
.variant__for { font-size: .84rem; color: inherit; opacity: .85; margin: 6px 0 0; }
.variant__link { margin-top: auto; padding-top: 10px; display: inline-flex; gap: .35em; align-items: center; font-weight: 600; font-size: .92rem; color: var(--brand); }
@media (max-width: 1080px) { .variants { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .variants { grid-template-columns: 1fr; } }

/* Dobór + scenariusz */
.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.wizard, .scenario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.wizard__eyebrow { display: flex; align-items: center; gap: .45em; font: 600 .76rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 14px; }
.wizard__q { border: 0; padding: 0; margin: 0 0 16px; }
.wizard__q legend { font-weight: 600; margin-bottom: 8px; font-size: .96rem; }
.wizard__q label { display: inline-flex; align-items: center; gap: .45em; margin: 0 6px 8px 0; padding: .5em .9em; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; cursor: pointer; transition: .15s; }
.wizard__q label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.wizard__q input { accent-color: var(--brand); margin: 0; }
.wizard__q label:has(input:checked) input { accent-color: #fff; }
.wizard__card { background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: 16px; padding: 18px 20px; }
.wizard__pick { margin: 0 0 4px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); font-weight: 600; }
.wizard__card h4 { font-size: 1.3rem; margin: 0 0 6px; }
.wizard__card h4 small { font: 500 .8rem var(--sans); color: var(--muted); margin-left: 6px; }
.wizard__card p { font-size: .92rem; color: var(--ink-2); }
.wizard__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scenario h3 { margin-bottom: 14px; }
.scenario__rows { margin: 0 0 12px; }
.scenario__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: .94rem; }
.scenario__rows dt { color: var(--ink-2); }
.scenario__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scenario__gap { background: var(--accent-soft); border-radius: 10px; padding: 12px !important; border: 0 !important; margin: 4px 0; }
.scenario__gap dd { color: var(--brand-3); font-size: 1.1rem; }

/* ---------- Kafelki „dla kogo” ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 44, 43, 0) 30%, rgba(14, 44, 43, .88) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile__body { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile__title { font: 500 1.35rem/1.15 var(--serif); }
.tile__text { font-size: .9rem; color: #D8E5E3; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; grid-auto-rows: 210px; } .tile--wide { grid-column: auto; } }

/* ---------- Kroki ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 26px 22px; }
.step__n { position: absolute; top: 18px; right: 20px; font: 500 2.6rem/1 var(--serif); color: rgba(231, 211, 174, .25); }
.step__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(231, 211, 174, .12); color: #E7D3AE; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .92rem; margin: 0; color: #B9CCC9; }
.prose .steps .step, .content .steps .step { background: var(--surface); border-color: var(--line); }
.content .step h3 { color: var(--ink); }
.content .step p { color: var(--ink-2); }
.content .step__ico { background: var(--brand-soft); color: var(--brand); }
.content .step__n { color: var(--accent-soft); }
.content .steps { grid-template-columns: 1fr 1fr; margin: 1.5em 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .content .steps { grid-template-columns: 1fr; } }

/* ---------- Karty ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards--3 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__title { font: 500 1.15rem/1.25 var(--serif); }
.card__text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .9rem; color: var(--brand); }
.card--sm .card__img { aspect-ratio: 16 / 9; }

/* ---------- Baner Avanti ---------- */
.avanti { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--brand-2); color: #D5E2E0; border-radius: 28px; overflow: hidden; margin: clamp(32px, 5vw, 56px) 0; box-shadow: var(--shadow-lg); }
.section .avanti { margin: 0; }
.avanti__media { position: relative; min-height: 280px; }
.avanti__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avanti__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 63, 61, 0) 40%, var(--brand-2)); }
.avanti__body { padding: clamp(26px, 4vw, 48px); }
.avanti__eyebrow { margin: 0 0 .6em; font: 600 .76rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E7D3AE; }
.avanti__title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.avanti__text { color: #C1D3D0; }
.avanti__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 7px; font-size: .95rem; }
.avanti__list li { display: flex; gap: .55em; align-items: center; }
.avanti__list .ico { color: #E7D3AE; }
.avanti__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.avanti__phone { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.avanti__phone:hover { color: #E7D3AE; }
@media (max-width: 820px) { .avanti { grid-template-columns: 1fr; } .avanti__media { min-height: 180px; } .avanti__media::after { background: linear-gradient(180deg, rgba(22, 63, 61, 0) 40%, var(--brand-2)); } }

/* ---------- CTA ---------- */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--brand-tint); border: 1px solid var(--brand-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 26px; margin: 2em 0; }
.cta__eyebrow { display: flex; gap: .4em; align-items: center; margin: 0 0 .3em; font: 600 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.cta__title { margin: 0 0 .25em !important; font-size: 1.3rem !important; }
.cta__text { margin: 0; font-size: .92rem; color: var(--ink-2); max-width: 38em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta__body { flex: 1 1 320px; }

/* ---------- Podstrony ---------- */
.page-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.page-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero--plain .page-hero__in { grid-template-columns: 1fr; max-width: 900px; }
.page-title { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.025em; margin-bottom: .35em; }
.page-lead { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 40em; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .84rem; color: var(--muted); }
.page-hero__meta span { display: inline-flex; gap: .4em; align-items: center; }
.page-hero__img { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero__in { grid-template-columns: 1fr; } .page-hero__img { aspect-ratio: 16 / 9; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .84rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-body--narrow { grid-template-columns: minmax(0, 820px); justify-content: center; }
@media (max-width: 1000px) { .page-body { grid-template-columns: 1fr; } .side { order: 2; } }
.content { min-width: 0; }

.tldr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 26px; box-shadow: var(--shadow); }
.tldr__title { display: flex; gap: .45em; align-items: center; margin: 0 0 10px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.tldr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tldr li { position: relative; padding-left: 22px; font-size: .98rem; }
.tldr li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }

.toc { border-left: 2px solid var(--line-2); padding: 4px 0 4px 18px; margin-bottom: 32px; }
.toc__title { font: 600 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 1001px) { .toc { display: none; } }

/* Treść */
.prose { font-size: 1.04rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 1.9em 0 .55em; padding-top: .2em; }
.prose h3 { margin: 1.5em 0 .45em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--accent-soft); border-radius: var(--radius-sm); border-left: 4px solid var(--accent); font-family: var(--serif); font-size: 1.12rem; color: var(--brand-3); }
.prose blockquote p { margin: 0; color: inherit; }
.prose .note { background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .96rem; }
.prose .note p:last-child { margin: 0; }
.prose .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0; }
.prose .grid-2 > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.prose .grid-2 h3, .prose .grid-2 h4 { margin-top: 0; }
.prose .grid-2 .pro { border-top: 3px solid var(--ok); }
.prose .grid-2 .con { border-top: 3px solid var(--accent); }
@media (max-width: 640px) { .prose .grid-2 { grid-template-columns: 1fr; } }
.prose--cols { columns: 2 380px; column-gap: 56px; }
.prose--cols h2 { column-span: all; }
.prose--cols p { break-inside: avoid; }
.seo-block .prose h2 { margin-top: 0; }

/* Tabele */
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap table, .prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--brand-2); color: #fff; font-weight: 600; font-size: .86rem; }
.table-wrap tbody th { color: var(--ink); font-weight: 600; background: var(--paper); white-space: nowrap; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { color: var(--ink-2); }

/* Panel boczny */
.side__sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card--code { border-top: 4px solid var(--accent); }
.side-card__eyebrow { display: flex; gap: .4em; align-items: center; margin: 0 0 4px; font: 600 .74rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.side-card__title { font: 500 1.15rem/1.3 var(--serif); margin: 0 0 12px; }
.side-card__facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.side-card__facts li { display: flex; gap: .45em; align-items: center; }
.side-card__facts .ico { color: var(--ok); }
.side-card--toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: .9rem; max-height: 46vh; overflow: auto; }
.side-card--toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.side-card--toc a:hover { background: var(--paper); }
.side-card--toc a.is-active { color: var(--brand-2); background: var(--brand-tint); border-left-color: var(--brand); font-weight: 600; }
.side-avanti { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--brand-2); color: #fff; text-decoration: none; }
.side-avanti:hover { background: var(--brand-3); color: #fff; }
.side-avanti__eyebrow { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E7D3AE; }
.side-avanti__title { font: 500 1.08rem/1.35 var(--serif); }
.side-avanti__cta { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: .9rem; color: #E7D3AE; }
@media (max-width: 1000px) { .side__sticky { position: static; } .side-card--toc { display: none; } }

/* FAQ */
.faq { margin-top: clamp(36px, 5vw, 56px); }
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--brand-soft); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--brand); transition: transform .2s; }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

.related { margin: clamp(32px, 5vw, 56px) 0 0; }

/* Kontakt */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.contact-card > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p { display: flex; align-items: center; gap: .6em; margin: 0 0 .6em; }
.contact-card .ico { color: var(--brand); }
.contact-card__claims { background: var(--brand-tint) !important; }
@media (max-width: 700px) { .contact-card { grid-template-columns: 1fr; } }
.sitemap-list ul { list-style: none; padding-left: 1.2em; }
.sitemap-list > li, .sitemap-list li { margin: .35em 0; }

/* Wyszukiwarka */
.search { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; }
.search input { flex: 1; min-width: 0; padding: .75em 1em; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; background: #fff; }
.center .search { margin: 24px auto 0; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--brand-3); color: #AFC4C1; padding: 0 0 28px; margin-top: clamp(48px, 6vw, 80px); font-size: .93rem; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%); border-radius: 24px; padding: clamp(24px, 4vw, 40px); transform: translateY(-50%); margin-bottom: -20px; box-shadow: var(--shadow-lg); }
.footer-cta__eyebrow { margin: 0 0 .4em; font: 600 .76rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E7D3AE; }
.footer-cta__title { margin: 0; font: 500 clamp(1.3rem, 2.4vw, 1.75rem)/1.25 var(--serif); color: #fff; max-width: 28em; }
.footer-cta__title span { color: #E7D3AE; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-col p { color: #AFC4C1; }
.footer-col__title { font-weight: 600; color: #fff !important; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #DCE7E5; text-decoration: none; }
.site-footer a:hover { color: #E7D3AE; text-decoration: underline; }
.footer-col--brand .brand { margin-bottom: 14px; }
.social { display: flex !important; gap: 16px !important; margin-top: 8px !important; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: #fff; }
.footer-avanti { display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; padding: .6em .9em; border: 1px solid rgba(231, 211, 174, .35); border-radius: 12px; font-size: .88rem; }
.footer-avanti strong { color: #E7D3AE; }
.footer-legal { padding-top: 22px; font-size: .8rem; color: #8FA6A3; }
.footer-legal p { margin: 0 0 10px; }
.footer-legal__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-cta { transform: translateY(-30%); } }

/* Sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; align-items: center; justify-content: center; gap: .5em; padding: 14px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(14, 44, 43, .55); transform: translateY(130%); transition: transform .3s; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta:hover { color: #fff; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* Cookies */
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie p { margin: 0 0 12px; color: var(--ink-2); }
.cookie__actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 760px) { .cookie { left: 10px; right: 10px; bottom: 80px; max-width: none; } }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers { padding: .5em .9em; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.post-thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }

/* WP */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .82rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .side, .sticky-cta, .cookie, .avanti { display: none !important; } }

/* Poprawki kontrastu w stopce */
.site-footer .btn--light { color: var(--brand-2); text-decoration: none; }
.site-footer .btn--light:hover { color: var(--brand-3); }
.footer-avanti strong { white-space: nowrap; }
.variant__kind { white-space: nowrap; }

/* Mobile: brak poziomego przewijania */
.hero__in > *, .split > *, .duo > *, .page-hero__in > * { min-width: 0; }
.btn--block { white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 960px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
	.topbar__in { font-size: .76rem; gap: 10px; }
	.topbar__more { display: none; }
	.topbar p, .topbar a { white-space: nowrap; }
	.hero__actions .btn, .hero__actions .code { width: 100%; justify-content: center; }
	.code--lg { justify-content: space-between; }
	.calc__res { grid-template-columns: 1fr; }
	.calc__res-main dd { font-size: 1.45rem; }
	.cta { padding: 18px; }
	.cta__actions, .cta__actions .btn { width: 100%; }
}
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
