:root {
  --wm-navy: #0b1633;
  --wm-blue: #1455d9;
  --wm-blue-dark: #0d43b4;
  --wm-sky: #eaf2ff;
  --wm-orange: #f59e0b;
  --wm-ink: #172033;
  --wm-muted: #637083;
  --wm-border: #dbe3ef;
  --wm-surface: #f6f8fc;
  --wm-white: #fff;
  --wm-green: #16845b;
  --wm-shadow: 0 14px 40px rgba(12, 31, 70, .09);
  --wm-radius: 18px;
  --wm-shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--wm-ink); background: var(--wm-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wm-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--wm-blue-dark); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--wm-navy); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.2rem; }
:focus-visible { outline: 3px solid var(--wm-orange); outline-offset: 3px; }
.site-shell { width: min(calc(100% - 40px), var(--wm-shell)); margin-inline: auto; }
.site-main { min-height: 60vh; padding: 0 0 5rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: .75rem 1rem; color: #fff; background: var(--wm-navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.25rem; border: 0; border-radius: 11px; color: #fff; background: var(--wm-blue); font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(20, 85, 217, .2); transition: transform .18s ease, background .18s ease; }
.button:hover { color: #fff; background: var(--wm-blue-dark); transform: translateY(-1px); }
.button-light { color: var(--wm-blue); background: #fff; box-shadow: none; }
.button-light:hover { color: var(--wm-navy); background: var(--wm-sky); }
.text-link, .card-link { font-weight: 800; text-decoration: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; color: var(--wm-blue); font-size: .78rem; font-weight: 850; letter-spacing: .105em; line-height: 1.2; text-transform: uppercase; text-decoration: none; }
.eyebrow > span { width: 22px; height: 3px; border-radius: 3px; background: var(--wm-orange); }
.eyebrow.light { color: #bcd2ff; }
.section { padding: 5.5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.1rem; }
.section-heading h2 { margin-bottom: 0; }

/* Header */
.utility-bar { color: #dbe7ff; background: var(--wm-navy); font-size: .75rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.utility-inner a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--wm-border); background: rgba(255,255,255,.98); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2.2rem; min-height: 78px; }
.site-branding { min-width: 225px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; gap: .7rem; color: var(--wm-navy); text-decoration: none; }
.brand-mark { width: 43px; height: 43px; flex: 0 0 auto; }
.brand > span { display: flex; flex-wrap: wrap; max-width: 170px; font-size: 1.13rem; font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.brand strong { color: var(--wm-navy); }
.brand small { flex-basis: 100%; margin-top: .35rem; color: var(--wm-muted); font-size: .58rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.custom-logo { width: auto; max-width: 280px; max-height: 58px; }
.primary-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav-list li { position: relative; }
.nav-list a { display: block; padding: 1.75rem 0; color: var(--wm-ink); font-size: .92rem; font-weight: 750; text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--wm-blue); }
.nav-list .sub-menu { position: absolute; top: 100%; left: -1rem; min-width: 220px; margin: 0; padding: .6rem; visibility: hidden; opacity: 0; list-style: none; border: 1px solid var(--wm-border); border-radius: 12px; background: #fff; box-shadow: var(--wm-shadow); transform: translateY(8px); transition: .18s ease; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.nav-list .sub-menu a { padding: .7rem .8rem; border-radius: 8px; }
.nav-list .sub-menu a:hover { background: var(--wm-sky); }
.search-toggle, .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--wm-border); border-radius: 10px; color: var(--wm-navy); background: #fff; }
.search-toggle svg { width: 21px; }
.nav-toggle { display: none; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 2px 0; border-radius: 2px; background: currentColor; }
.header-search { border-top: 1px solid var(--wm-border); background: var(--wm-surface); }
.header-search .site-shell { padding: 1rem 0; }
.search-form { display: flex; gap: .6rem; width: 100%; }
.search-field { flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1rem; border: 1px solid var(--wm-border); border-radius: 11px; color: var(--wm-ink); background: #fff; }
.search-field:focus { border-color: var(--wm-blue); box-shadow: 0 0 0 3px rgba(20, 85, 217, .12); outline: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5.3rem 0 5.7rem; background: linear-gradient(120deg, #f5f8ff 0%, #fff 52%, #edf4ff 100%); }
.hero::before { content: ""; position: absolute; right: -180px; top: -240px; width: 620px; height: 620px; border: 1px solid rgba(20,85,217,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(20,85,217,.025), 0 0 0 160px rgba(20,85,217,.018); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); align-items: center; gap: 5rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 760px; margin-bottom: 1.25rem; font-size: clamp(2.65rem, 5.1vw, 4.65rem); }
.hero-copy h1 em { color: var(--wm-blue); font-style: normal; }
.hero-copy > p { max-width: 650px; color: var(--wm-muted); font-size: 1.1rem; }
.hero-search { max-width: 690px; margin: 2rem 0 1.2rem; padding: .45rem; border: 1px solid rgba(20,85,217,.12); border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(22,55,115,.13); }
.hero-search .search-field { border: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem; color: var(--wm-muted); font-size: .78rem; font-weight: 700; }
.hero-trust span { display: inline-flex; gap: .35rem; align-items: center; }
.hero-trust strong { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--wm-green); font-size: .62rem; }
.hero-visual { position: relative; min-height: 430px; }
.room-card { position: absolute; inset: 0; overflow: hidden; border: 9px solid #fff; border-radius: 26px; background: linear-gradient(#ecf1f8 0 78%, #d4b58e 78%); box-shadow: 0 30px 80px rgba(11,22,51,.18); transform: rotate(1.5deg); }
.wall-line { position: absolute; left: 9%; top: 9%; width: 70%; height: 2px; background: rgba(99,112,131,.25); }
.tv-shape { position: absolute; left: 24%; top: 24%; width: 55%; height: 34%; border: 7px solid #121827; border-radius: 9px; background: linear-gradient(135deg, #162849, #4b6a9d); box-shadow: 0 14px 24px rgba(11,22,51,.18); }
.tv-shape span { position: absolute; left: 50%; bottom: -12px; width: 34px; height: 6px; border-radius: 0 0 5px 5px; background: #121827; transform: translateX(-50%); }
.console-shape { position: absolute; left: 17%; bottom: 16%; width: 68%; height: 12%; border-radius: 7px 7px 2px 2px; background: #f7f9fc; box-shadow: 0 10px 18px rgba(11,22,51,.12); }
.floor-line { position: absolute; left: 0; right: 0; bottom: 22%; height: 2px; background: rgba(110,78,46,.18); }
.measure-line { position: absolute; left: 12%; top: 40%; bottom: 22%; display: flex; flex-direction: column; align-items: center; color: var(--wm-blue); }
.measure-line::before { content: ""; position: absolute; top: 6px; bottom: 6px; width: 2px; background: var(--wm-blue); }
.measure-line i { position: relative; z-index: 1; width: 12px; height: 12px; border: solid var(--wm-blue); border-width: 2px 0 0 2px; background: transparent; transform: rotate(45deg); }
.measure-line i:last-child { transform: rotate(225deg); }
.measure-line b { position: relative; z-index: 2; margin: auto 0; padding: .28rem .5rem; border-radius: 6px; color: #fff; background: var(--wm-blue); font-size: .78rem; }
.verified-badge { position: absolute; right: 5%; bottom: 6%; display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid rgba(22,132,91,.18); border-radius: 10px; color: var(--wm-green); background: rgba(255,255,255,.94); font-weight: 900; font-size: .9rem; box-shadow: 0 8px 20px rgba(11,22,51,.1); }
.verified-badge span { color: var(--wm-ink); font-size: .59rem; font-weight: 750; line-height: 1.25; text-transform: uppercase; }

/* Kategorie i karty */
.category-section { background: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.category-card { position: relative; min-height: 145px; padding: 1.25rem; overflow: hidden; border: 1px solid var(--wm-border); border-radius: 15px; color: var(--wm-ink); background: #fff; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { color: var(--wm-ink); border-color: #b7c9e8; box-shadow: var(--wm-shadow); transform: translateY(-3px); }
.category-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: .9rem; border-radius: 11px; color: var(--wm-blue); background: var(--wm-sky); font-size: 1.45rem; font-weight: 800; }
.category-card strong { display: block; color: var(--wm-navy); }
.category-card small { color: var(--wm-muted); }
.category-card > i { position: absolute; right: 1.2rem; bottom: 1.1rem; color: var(--wm-blue); font-style: normal; font-weight: 900; }
.is-placeholder { opacity: .72; }
.featured-section { background: var(--wm-surface); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.content-card { overflow: hidden; border: 1px solid var(--wm-border); border-radius: var(--wm-radius); background: #fff; box-shadow: 0 6px 22px rgba(11,22,51,.04); transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { box-shadow: var(--wm-shadow); transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--wm-sky), #f9fbff); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-media img { transform: scale(1.025); }
.card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.card-placeholder .brand-mark { width: 72px; height: 72px; opacity: .34; }
.measure-pill { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .65rem; border-radius: 8px; color: #fff; background: var(--wm-blue); font-size: .88rem; box-shadow: 0 4px 14px rgba(20,85,217,.25); }
.card-body { padding: 1.25rem 1.3rem 1.35rem; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; min-height: 1.3rem; margin-bottom: .7rem; color: var(--wm-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.card-meta > span { color: var(--wm-blue); }
.card-body h3 { margin-bottom: .55rem; }
.card-body h3 a { color: var(--wm-navy); text-decoration: none; }
.card-body p { min-height: 4.6em; margin-bottom: 1rem; color: var(--wm-muted); font-size: .91rem; }
.card-link { display: flex; justify-content: space-between; padding-top: .85rem; border-top: 1px solid var(--wm-border); font-size: .84rem; }
.empty-state { grid-column: 1 / -1; padding: 3rem; border: 1px dashed #b9c7dc; border-radius: var(--wm-radius); text-align: center; background: #fff; }

/* Kalkulatory i metoda */
.calculator-teaser { color: #dce7ff; background: linear-gradient(120deg, #0b1633, #102b66); }
.calculator-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 6rem; }
.calculator-teaser h2 { color: #fff; }
.calculator-teaser p { max-width: 660px; color: #c4d1e9; }
.mini-calc { padding: 1.5rem; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: var(--wm-ink); background: #fff; box-shadow: 0 25px 60px rgba(0,0,0,.22); transform: rotate(-1.5deg); }
.mini-calc-head { display: flex; gap: .35rem; margin-bottom: 1.25rem; }
.mini-calc-head span { width: 8px; height: 8px; border-radius: 50%; background: #dbe3ef; }
.mini-calc > strong { display: block; margin-bottom: 1.3rem; color: var(--wm-navy); }
.mini-calc label { display: flex; justify-content: space-between; margin-top: .9rem; color: var(--wm-muted); font-size: .78rem; font-weight: 700; }
.mini-calc label i { color: var(--wm-blue); font-style: normal; }
.fake-range { height: 5px; margin-top: .5rem; border-radius: 5px; background: #dbe3ef; }
.fake-range span { display: block; width: 64%; height: 100%; border-radius: inherit; background: var(--wm-blue); }
.fake-range.second span { width: 48%; }
.mini-result { display: flex; justify-content: space-between; align-items: center; margin-top: 1.3rem; padding: .85rem; border-radius: 10px; background: var(--wm-sky); }
.mini-result small { color: var(--wm-muted); }
.mini-result b { color: var(--wm-blue); font-size: 1.3rem; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.method-grid > div { padding-top: 1.2rem; border-top: 3px solid var(--wm-border); }
.method-grid > div:hover { border-color: var(--wm-orange); }
.method-grid span { color: var(--wm-blue); font-size: .75rem; font-weight: 900; }
.method-grid h3 { margin: .7rem 0 .5rem; }
.method-grid p { color: var(--wm-muted); font-size: .9rem; }

/* Archiwa i treść */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1.15rem 0; color: var(--wm-muted); font-size: .76rem; }
.breadcrumbs a { color: var(--wm-muted); text-decoration: none; }
.breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.archive-header { max-width: 820px; padding: 4rem 0 2.3rem; }
.archive-header h1 { font-size: clamp(2.25rem, 4vw, 3.8rem); }
.archive-header > p, .archive-description { color: var(--wm-muted); font-size: 1.06rem; }
.archive-hero { padding-bottom: 3rem; color: #dbe7ff; background: linear-gradient(120deg, #0b1633, #123270); }
.archive-hero .breadcrumbs, .archive-hero .breadcrumbs a { color: #b8c8e6; }
.archive-hero h1 { margin-top: .2rem; color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); }
.archive-hero p { color: #c7d3e8; }
.archive-search { max-width: 720px; margin-top: 1.5rem; padding: .4rem; border-radius: 14px; background: #fff; }
.archive-search .search-field { border: 0; }
.archive-content { padding-top: 2.3rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter-chips a { padding: .48rem .8rem; border: 1px solid var(--wm-border); border-radius: 999px; color: var(--wm-ink); background: #fff; font-size: .82rem; font-weight: 750; text-decoration: none; }
.filter-chips a:hover, .filter-chips a.active { color: #fff; border-color: var(--wm-blue); background: var(--wm-blue); }
.back-link { display: inline-block; margin-bottom: 1.4rem; font-weight: 800; text-decoration: none; }
.navigation.pagination { margin-top: 2.4rem; }
.nav-links { display: flex; justify-content: center; gap: .4rem; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .5rem; border: 1px solid var(--wm-border); border-radius: 9px; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--wm-blue); background: var(--wm-blue); }

.article-layout, .page-article { max-width: 820px; margin: 2.5rem auto 0; }
.article-header, .page-header { margin-bottom: 2rem; }
.article-header h1, .page-header h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--wm-muted); font-size: .78rem; }
.article-cover { margin: 0 0 2.4rem; overflow: hidden; border-radius: var(--wm-radius); }
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2.5rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.entry-content h3 { margin-top: 2rem; }
.entry-content a { font-weight: 650; }
.entry-content blockquote { padding: 1rem 1.4rem; border-left: 4px solid var(--wm-blue); background: var(--wm-sky); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .75rem; border: 1px solid var(--wm-border); text-align: left; }
.entry-content th { color: var(--wm-navy); background: var(--wm-surface); }
.measure-note { padding: 1.2rem 1.4rem; border-left: 4px solid var(--wm-orange); border-radius: 0 12px 12px 0; background: #fff8e7; }
.measure-note h3 { margin-top: 0; }
.page-shell { max-width: 1000px; }
.result-search { margin-top: 1.5rem; }
.error-page { max-width: 720px; margin: 5rem auto; text-align: center; }
.error-code { color: var(--wm-sky); font-size: 8rem; font-weight: 950; line-height: 1; }
.error-page .search-form { margin: 2rem 0; }

/* Karta wymiarowa */
.measurement-header { max-width: 900px; margin: 2.5rem 0 2rem; }
.measurement-header h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); }
.measurement-header .lead { max-width: 790px; color: var(--wm-muted); font-size: 1.1rem; }
.verified-meta { color: var(--wm-green); font-weight: 800; }
.answer-panel { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; margin: 2rem 0; border: 1px solid #cbd9ef; border-radius: 22px; background: #fff; box-shadow: var(--wm-shadow); }
.answer-copy { padding: clamp(1.5rem, 4vw, 2.7rem); }
.answer-copy > span { display: block; margin-bottom: .45rem; color: var(--wm-blue); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.answer-value { display: block; margin-bottom: .7rem; color: var(--wm-navy); font-size: clamp(2.45rem, 6vw, 4.7rem); line-height: 1; letter-spacing: -.045em; }
.answer-text, .answer-copy > p { color: var(--wm-muted); }
.answer-text p:last-child { margin-bottom: 0; }
.measure-origin { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--wm-border); }
.measure-origin > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #fff; background: var(--wm-blue); font-style: normal; }
.measure-origin small, .measure-origin strong { display: block; }
.measure-origin small { color: var(--wm-muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.measure-origin strong { color: var(--wm-navy); }
.answer-diagram { display: grid; min-height: 360px; padding: 1rem; background: linear-gradient(135deg, var(--wm-sky), #f8fbff); }
.diagram-fallback { display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--wm-muted); font-size: .8rem; text-align: center; }
.diagram-fallback .brand-mark { width: 80px; height: 80px; opacity: .4; }
.measurement-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 3rem; align-items: start; margin-top: 3.5rem; }
.measurement-content.entry-content > * { max-width: none; }
.on-this-page { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin-bottom: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--wm-border); border-radius: 12px; background: var(--wm-surface); font-size: .82rem; }
.on-this-page strong { flex-basis: 100%; color: var(--wm-navy); }
.on-this-page a { font-weight: 750; text-decoration: none; }
.exception-box { display: flex; gap: 1rem; margin: 2rem 0; padding: 1.3rem; border: 1px solid #f6d58e; border-radius: 14px; background: #fff9e9; }
.exception-box > span { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--wm-orange); font-weight: 900; }
.exception-box h2 { margin: .1rem 0 .5rem; font-size: 1.25rem; }
.exception-box p:last-child { margin-bottom: 0; }
.source-box { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding: 1.2rem 1.3rem; border: 1px solid #bfe1d4; border-radius: 14px; background: #f1fbf7; font-size: .87rem; }
.source-box > div { display: flex; gap: .75rem; }
.source-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--wm-green); }
.source-box h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.source-box p { margin: .15rem 0; }
.source-box > a { flex: 0 0 auto; font-weight: 800; text-decoration: none; }
.sticky-card { position: sticky; top: 1.5rem; padding: 1.2rem; border: 1px solid var(--wm-border); border-radius: 14px; background: var(--wm-surface); }
.sticky-card > strong { color: var(--wm-navy); }
.sticky-card ol { margin: .8rem 0 0; padding-left: 1.2rem; color: var(--wm-muted); font-size: .82rem; }
.sticky-card li + li { margin-top: .55rem; }
.embedded-calculator { padding-top: 1rem; }
.related-section { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--wm-border); }

/* Reklamy */
.wm-ad-wrap { width: min(calc(100% - 40px), var(--wm-shell)); min-height: 90px; margin: 1.5rem auto; padding: .35rem; overflow: hidden; text-align: center; }
.wm-ad-label { display: block; margin-bottom: .25rem; color: #8993a3; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

/* Stopka */
.site-footer { padding-top: 4.2rem; color: #b9c7de; background: var(--wm-navy); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand strong { color: #fff; }
.site-footer .brand small { color: #9db0cf; }
.footer-about p { max-width: 390px; margin-top: 1.2rem; font-size: .86rem; }
.site-footer h2 { color: #fff; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: #b9c7de; font-size: .84rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-bottom p { margin: 0; color: #8193af; font-size: .7rem; }

@media (max-width: 1000px) {
  .header-inner { gap: 1rem; }
  .site-branding { min-width: auto; }
  .nav-toggle { display: inline-grid; justify-self: end; }
  .primary-nav { position: fixed; inset: 112px 0 0; display: none; overflow: auto; padding: 1.2rem 20px 3rem; background: #fff; }
  .nav-open .primary-nav { display: block; }
  .nav-list { display: block; }
  .nav-list a { padding: .8rem; border-bottom: 1px solid var(--wm-border); }
  .nav-list .sub-menu { position: static; display: block; min-width: 0; visibility: visible; opacity: 1; border: 0; box-shadow: none; transform: none; }
  .search-toggle { grid-column: 3; grid-row: 1; }
  .nav-toggle { grid-column: 2; grid-row: 1; }
  .hero-grid { grid-template-columns: 1fr .75fr; gap: 2.5rem; }
  .hero-visual { min-height: 360px; }
  .category-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .measurement-layout { grid-template-columns: 1fr; }
  .measurement-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  .site-shell { width: min(calc(100% - 28px), var(--wm-shell)); }
  .utility-bar { display: none; }
  .header-inner { min-height: 70px; grid-template-columns: 1fr auto auto; }
  .primary-nav { inset-block-start: 70px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand > span { font-size: 1rem; }
  .brand small { display: none; }
  .hero { padding: 3.5rem 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy h1 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .search-form { flex-direction: column; }
  .hero-search .button, .archive-search .button { width: 100%; }
  .hero-trust { gap: .7rem; }
  .section { padding: 4rem 0; }
  .section-heading { align-items: start; flex-direction: column; gap: .7rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 130px; }
  .post-grid { grid-template-columns: 1fr; }
  .card-body p { min-height: auto; }
  .calculator-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .answer-panel { grid-template-columns: 1fr; }
  .answer-diagram { min-height: 300px; }
  .source-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; gap: .35rem; }
}

@media (max-width: 480px) {
  .search-toggle { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { grid-column: 2; }
  .category-grid, .method-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 112px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .error-code { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .wm-ad-wrap, .measurement-sidebar, .related-section, .on-this-page { display: none !important; }
  .site-main { padding: 0; }
  .site-shell { width: 100%; }
  .answer-panel { break-inside: avoid; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}
