:root {
	--c-bg: #ffffff;
	--c-alt: #f3f5f8;
	--c-text: #172033;
	--c-muted: #5b667a;
	--c-line: #e2e6ee;
	--c-dark: #0f1a2e;
	--c-dark-2: #18263f;
	--c-accent: #f5b301;
	--c-accent-dark: #d99c00;
	--c-ok: #127a3d;
	--c-err: #b3261e;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 26, 46, .08);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.eyebrow { text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; font-weight: 700; color: var(--c-accent-dark); margin-bottom: .6em; }
.icon { flex: none; vertical-align: middle; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-accent); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.25em; border-radius: 10px; border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--lg { padding: .95em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: var(--c-accent-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--light { background: #fff; color: var(--c-dark); }

/* Topbar + nagłówek */
.topbar { background: var(--c-dark); color: #c9d2e3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 6px; padding-bottom: 6px; }
.topbar .icon { width: 15px; height: 15px; margin-right: 4px; color: var(--c-accent); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.3rem; font-weight: 500; margin: 0; }
.brand strong { color: var(--c-accent-dark); font-weight: 800; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-dark); color: var(--c-accent); }
.brand__logo { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 600; color: var(--c-text); }
.site-nav ul a:hover { color: var(--c-accent-dark); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-text); position: absolute; left: 10px; transition: .2s; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #263a5e 0%, transparent 60%), linear-gradient(160deg, var(--c-dark) 0%, var(--c-dark-2) 100%); color: #fff; padding: 64px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero .lead { color: #c9d2e3; }
.hero .eyebrow { color: var(--c-accent); }
.hero__points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.hero__points li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.hero__points .icon { color: var(--c-accent); width: 22px; height: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--c-line); }
.hero__form h2 { font-size: 1.5rem; margin-bottom: .2em; }

/* Formularz */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 1rem; }
.field { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: .7em .8em; border: 1px solid #cdd3de; border-radius: 9px; background: #fff; color: var(--c-text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.consent { display: flex; gap: .6rem; font-size: .8rem; color: var(--c-muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--c-accent-dark); }
.notice { padding: .8em 1em; border-radius: 9px; margin: 1rem 0 0; font-weight: 600; font-size: .95rem; }
.notice--ok { background: #e6f5ec; color: var(--c-ok); }
.notice--err { background: #fbe9e8; color: var(--c-err); }

/* Statystyki */
.stats { background: var(--c-accent); color: var(--c-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.stats strong { display: block; font-size: 1.7rem; font-weight: 800; }
.stats span { font-size: .9rem; font-weight: 600; }

/* Sekcje */
.section { padding: 80px 0; }
.section--alt { background: var(--c-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.steps p { color: var(--c-muted); margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--c-line); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile .icon { width: 34px; height: 34px; color: var(--c-accent-dark); margin-bottom: 10px; }
.tile p { color: var(--c-muted); margin: 0; }

.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why__list li { display: flex; gap: 14px; }
.why__list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--c-dark); color: var(--c-accent); }
.why__list p { color: var(--c-muted); margin: 0; font-size: .95rem; }
.why__list h3 { margin-bottom: .25em; }

.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-accent-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--c-muted); padding-bottom: 18px; margin: 0; }

.cta { background: var(--c-dark); color: #fff; padding: 56px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: #c9d2e3; margin: 0; }
.cta h2 { margin-bottom: .3em; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Podstrony */
.page-hero { background: var(--c-dark); color: #fff; padding: 56px 0 40px; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.6rem; }
.entry-thumb { border-radius: var(--radius); margin-bottom: 1.5rem; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card h2 { font-size: 1.25rem; }
.post-card h2 a { text-decoration: none; }
.post-card__thumb img { border-radius: 10px; margin-bottom: 12px; }
.link-more { font-weight: 700; color: var(--c-accent-dark); text-decoration: none; }
.pagination { margin-top: 32px; }

/* Stopka */
.site-footer { background: #0a1322; color: #aab4c6; padding: 56px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.footer-list, .footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list li { display: flex; gap: 8px; align-items: center; }
.footer-list .icon { width: 18px; height: 18px; color: var(--c-accent); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #1d2a42; margin-top: 40px; padding-top: 20px; padding-bottom: 20px; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

.call-fab { display: none; }

/* Responsywność */
@media (max-width: 980px) {
	.hero__grid, .why { grid-template-columns: 1fr; }
	.tiles, .posts { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }

	.nav-toggle { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); flex-direction: column; align-items: stretch; padding: 16px 20px 22px; gap: 14px; display: none; box-shadow: var(--shadow); }
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
}

@media (max-width: 640px) {
	body { padding-bottom: 70px; }
	.topbar__area { display: none; }
	.hero { padding: 40px 0 56px; }
	.card { padding: 20px; }
	.quote-form, .tiles, .posts, .why__list, .site-footer__grid { grid-template-columns: 1fr; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.section { padding: 56px 0; }
	.hero__actions .btn, .cta__actions .btn { width: 100%; }

	.call-fab { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: center; gap: 8px; background: var(--c-accent); color: var(--c-dark); font-weight: 800; padding: 14px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
	.call-fab .icon { width: 22px; height: 22px; }
}
