/* Kwartał Lipowy — concept. Colors are overridden at runtime from data/config.json */
:root {
  --stone: #EEEAE2;
  --stone-2: #E5E0D6;
  --paper: #F7F5F0;
  --ink: #222C2A;
  --ink-2: #4A5451;
  --muted: #646D69;
  --green: #5F7064;
  --line: rgba(34, 44, 42, .16);
  --line-strong: rgba(34, 44, 42, .38);
  --st-available: #3F6B4E;
  --st-reserved: #9A6B1F;
  --st-sold: #8A4B44;
  --focus: #1F5FBF;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--stone); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow, .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker::after { content: ""; height: 1px; width: 56px; background: var(--line-strong); }
.load-error { background: #fff3cd; padding: 16px; }

/* demo strip */
.demo-strip { background: var(--ink); color: rgba(238, 234, 226, .82); font-size: 12px; letter-spacing: .04em; text-align: center; padding: 6px 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(238, 234, 226, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--stone); font-size: 13px; letter-spacing: .06em; font-weight: 600; }
.brand-name { font-weight: 600; letter-spacing: .02em; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-color: var(--ink); }
.nav-toggle { display: none; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 5px 11px; font-size: 13px; cursor: pointer; min-width: 40px; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--stone); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; cursor: pointer; font-weight: 500; font-size: 15px; transition: background .2s, color .2s; background: transparent; }
.btn-primary { background: var(--ink); color: var(--stone); }
.btn-primary:hover { background: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--ink); color: var(--stone); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-cmp[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.link-btn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--ink); color: var(--stone); }

/* hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--stone-2); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238, 234, 226, .96) 0%, rgba(238, 234, 226, .88) 32%, rgba(238, 234, 226, 0) 54%); pointer-events: none; }
/* 2026-10-08: real hero photo — the façade starts at ~34% of the width, so the copy sits on its own light card (README G-008) */
@media (min-width: 761px) {
  .hero:has(.hero-media:not(.is-fallback))::after { background: linear-gradient(90deg, rgba(238, 234, 226, .8) 0%, rgba(238, 234, 226, .45) 30%, rgba(238, 234, 226, 0) 48%); }
  .hero:has(.hero-media:not(.is-fallback)) .hero-copy { max-width: 620px; background: rgba(238, 234, 226, .9); padding: 36px 40px 32px; margin-left: -40px; border-radius: 2px; box-shadow: 0 18px 48px -28px rgba(34, 44, 42, .35); }
  @supports (backdrop-filter: blur(6px)) { .hero:has(.hero-media:not(.is-fallback)) .hero-copy { background: rgba(238, 234, 226, .82); backdrop-filter: blur(8px); } }
}
@media (min-width: 761px) and (max-width: 1100px) { .hero:has(.hero-media:not(.is-fallback)) .hero-copy { margin-left: 0; } }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 540px; }
.display { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.035em; font-weight: 500; }
.display em { display: block; font-size: .6em; letter-spacing: -.01em; color: var(--green); margin-top: 10px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 46ch; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: 36px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.hero-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.hero-credit { position: absolute; right: 16px; bottom: 10px; z-index: 2; margin: 0; font-size: 11px; color: var(--ink-2); background: rgba(238, 234, 226, .8); padding: 3px 8px; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.03em; }
.section-lead { color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.prose p { max-width: 62ch; }
.lead-serif { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); margin: 40px 0 0; }
.stats div { padding: 18px 16px 0 0; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stats dd { margin: 6px 0 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; }

/* finder */
.finder { background: var(--paper); }
.finder-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 84px; border-top: 2px solid var(--ink); padding-top: 14px; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.filters-head h3 { font-size: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 40px; justify-content: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--stone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-available { background: var(--st-available); } .dot-reserved { background: var(--st-reserved); } .dot-sold { background: var(--st-sold); }
.chip input:checked + span .dot { box-shadow: 0 0 0 2px var(--stone); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.range input, .sort select, .field input, .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 6px 10px; background: #fff; }
.results { min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.counter { margin: 0; font-size: 15px; }
.counter strong { font-size: 22px; font-weight: 600; }
.results-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { width: auto; color: var(--ink); }
.view-switch { display: none; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.view-switch button { border: 0; background: transparent; padding: 0 16px; min-height: 40px; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--stone); }

/* plan */
.plan-panel { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; margin-bottom: 36px; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bldg { margin: 0; background: var(--stone); border: 1px solid var(--line); }
.bldg-svg { width: 100%; height: auto; }
.b-shell { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.b-title { font: 600 15px var(--sans); fill: var(--ink); letter-spacing: .08em; text-transform: uppercase; }
.b-floor { font: 500 12px var(--sans); fill: var(--muted); }
.b-ground { stroke: var(--ink); stroke-width: 2; }
.unit { cursor: pointer; outline: none; }
.unit .u-bg { stroke-width: 1.5; }
.unit.st-available .u-bg { fill: #E3ECE5; stroke: var(--st-available); }
.unit.st-reserved .u-bg { fill: #F3E8D3; stroke: var(--st-reserved); }
.unit.st-sold .u-bg { fill: #F0E1DE; stroke: var(--st-sold); }
.unit .u-hatch { stroke: none; pointer-events: none; }
.hatch-line { stroke: var(--st-sold); stroke-width: 1.2; opacity: .22; }
.unit.is-selected .u-hatch, .unit.off .u-hatch { opacity: .35; }
.u-id { font: 600 13px var(--sans); fill: var(--ink); }
.u-meta { font: 400 10.5px var(--sans); fill: var(--ink-2); }
.u-st { font: 600 10.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.st-available .u-st { fill: var(--st-available); } .st-reserved .u-st { fill: var(--st-reserved); } .st-sold .u-st { fill: var(--st-sold); }
.unit:hover .u-bg { stroke-width: 2.5; }
.unit.off { cursor: default; }
.unit.off .u-bg { fill: #F1EFEA; stroke: #C9C5BC; stroke-dasharray: 3 3; }
.unit.off text { fill: #A3A6A2; }
.unit.is-selected .u-bg { fill: var(--ink); stroke: var(--ink); stroke-width: 3; }
.unit.is-selected text { fill: #fff; }
.unit:focus-visible .u-bg { stroke: var(--focus); stroke-width: 4; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 12px 0 0; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border: 1.5px solid; display: inline-block; border-radius: 2px; }
.sw-available { background: #E3ECE5; border-color: var(--st-available); }
.sw-reserved { background: #F3E8D3; border-color: var(--st-reserved); }
.sw-sold { background: #F0E1DE; border-color: var(--st-sold); }
.sw-off { background: #F1EFEA; border: 1.5px dashed #B5B1A8; }
.plan-preview { border-top: 2px solid var(--ink); padding-top: 14px; align-self: start; }
.pv-id { font-size: 34px; letter-spacing: -.02em; margin-bottom: 6px; }
.pv-price { font-size: 30px; margin: 14px 0 4px; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* status chip */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; background: #fff; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-available { color: var(--st-available); }
.status-reserved { color: var(--st-reserved); }
.status-sold { color: var(--st-sold); }
.status-sold i { border-radius: 0; transform: rotate(45deg); }
.status-reserved i { background: transparent; border: 2px solid currentColor; }

/* table */
.apt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.apt-table thead th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.apt-table td, .apt-table tbody th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.apt-table tbody tr { cursor: pointer; transition: background .15s; }
.apt-table tbody tr:hover { background: rgba(95, 112, 100, .08); }
.apt-table tbody tr.is-selected { background: #E2E7E1; box-shadow: inset 4px 0 0 var(--ink); }
.nowrap { white-space: nowrap; }
.stats dd { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price { font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.price-cell .price { display: block; font-size: 16px; }
.price-cell small { color: var(--muted); font-size: 12px; }
.row-select { background: none; border: 0; padding: 6px 4px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.row-select[aria-pressed="true"] { text-decoration-color: var(--ink); }
.actions { white-space: nowrap; text-align: right !important; }
.actions .btn { margin-left: 4px; }
.empty { border: 1px dashed var(--line-strong); padding: 40px 24px; text-align: center; background: var(--stone); }
.empty-title { font-size: 20px; font-weight: 500; margin: 0 0 6px; }

/* location */
.env-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.env-card, .std-media { margin: 0; }
.media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-2); }
.media img, .media svg { width: 100%; height: 100%; object-fit: cover; }
.ph-badge { position: absolute; left: 10px; bottom: 10px; font-size: 11px; background: rgba(247, 245, 240, .88); padding: 2px 8px; color: var(--ink-2); letter-spacing: .02em; }
.env-card figcaption { display: flex; flex-direction: column; padding-top: 12px; }
.env-card figcaption strong { font-weight: 500; font-size: 18px; }
.env-card figcaption span { color: var(--muted); font-size: 14px; }
.distances { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.distances li { display: flex; flex-direction: column; padding: 16px 16px 0 0; font-size: 14px; color: var(--muted); }
.distances li span:last-child { font-size: 28px; color: var(--ink); letter-spacing: -.02em; }

/* standard */
.std-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 32px; align-items: start; }
.std-media figcaption { font-size: 14px; color: var(--muted); padding-top: 10px; }
.std-media .media { aspect-ratio: 4 / 5; }
.std-list { list-style: none; padding: 0; margin: 0; }
.std-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.std-list li:first-child { border-top: 2px solid var(--ink); }
.std-list strong { font-weight: 500; font-size: 19px; }
.std-list span { color: var(--ink-2); font-size: 15px; }

/* FAQ */
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item:first-child { border-top: 2px solid var(--ink); }
.acc-item h3 { font-size: inherit; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 20px 0; text-align: left; font-size: 18px; font-weight: 500; cursor: pointer; }
.acc-btn i { position: relative; width: 16px; height: 16px; flex: none; }
.acc-btn i::before, .acc-btn i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: currentColor; transition: transform .2s; }
.acc-btn i::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] i::after { transform: rotate(0); }
.acc-panel p { margin: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* contact */
.contact { background: var(--paper); }
.contact-data { font-style: normal; display: flex; flex-direction: column; gap: 4px; margin-top: 24px; color: var(--ink-2); }
.form-wrap { border-top: 2px solid var(--ink); padding-top: 22px; }
.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field:nth-child(1), .field:nth-child(5), .field.check { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--st-sold); box-shadow: 0 0 0 1px var(--st-sold); }
.err { min-height: 1.3em; margin: 0; color: var(--st-sold); font-size: 13px; }
.field.check { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 4px 10px; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field.check .err { grid-column: 2; }
.field.check label { font-weight: 400; }
.inquiry .btn { justify-self: start; margin-top: 8px; }
.success { border: 1px solid var(--green); background: #E6ECE6; padding: 28px; }
.success h3 { font-size: 26px; margin-bottom: 10px; }
.success .kicker { color: var(--green); font-weight: 600; }
.ok-apt strong { font-size: 22px; }

/* footer */
.site-footer { background: var(--ink); color: var(--stone); padding: 48px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; font-size: 14px; }
.footer-inner p { margin: 0 0 6px; }
.disclaimer { opacity: .75; max-width: 70ch; }

/* compare bar */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: var(--stone); padding: 10px 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .15); }
.compare-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compare-inner p { margin: 0; font-size: 14px; }
.compare-chips { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 auto 0 0; flex-wrap: wrap; }
.compare-chips li { display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding-left: 12px; font-size: 14px; font-weight: 600; }
.chip-x { background: none; border: 0; color: inherit; width: 32px; height: 32px; cursor: pointer; font-size: 18px; border-radius: 50%; }
.chip-x:hover { background: rgba(255, 255, 255, .2); }
.compare-bar .btn-primary { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.toast { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); font-size: 14px; max-width: calc(100vw - 32px); width: max-content; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.toast.is-error { border-color: var(--st-sold); color: var(--st-sold); font-weight: 600; }
body:has(.compare-bar:not([hidden])) .site-footer { padding-bottom: 110px; }

/* dialogs */
.dialog { border: 0; padding: 0; width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(34, 44, 42, .55); }
.dialog-inner { padding: clamp(18px, 3vw, 36px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.detail-id { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.035em; line-height: 1; margin-bottom: 10px; }
.detail-id:focus { outline: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.detail-plan { background: #fff; border: 1px solid var(--line); padding: 8px; }
.apt-plan { width: 100%; height: auto; }
.apt-plan .pl-name { font: 600 13px var(--sans); fill: var(--ink); }
.apt-plan .pl-s { font-size: 10.5px; }
.apt-plan .pl-sub { font: 400 12px var(--sans); fill: var(--ink-2); }
.big-price { font-size: clamp(36px, 4.2vw, 54px); margin: 0; line-height: 1.05; letter-spacing: -.03em; }
.ppm { color: var(--ink-2); margin: 6px 0 22px; font-size: 16px; }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line-strong); padding: 1px 6px; vertical-align: middle; color: var(--muted); font-weight: 500; }
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; text-align: right; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-msg { min-height: 1.4em; font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.cmp-table th, .cmp-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp-table thead th { border-bottom: 2px solid var(--ink); }
.cmp-table tbody th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; width: 22%; }
.cmp-id { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cmp-table .chip-x { border: 1px solid var(--line-strong); color: var(--ink); width: 30px; height: 30px; }
.cmp-table .price { font-size: 19px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 14px; }
  .plan-panel { grid-template-columns: 1fr; }
  .plan-preview { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: center; }
  .plan-preview > * { grid-column: auto; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); cursor: pointer; }
  .main-nav { order: 3; }
  .main-nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--stone); flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); }
  .main-nav ul.open { display: flex; }
  .main-nav a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .finder-grid { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .filters-head { grid-column: 1 / -1; }
  .view-switch { display: flex; }
  .finder-grid[data-view="list"] .plan-panel { display: none; }
  .finder-grid[data-view="plan"] .list-panel { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .std-list { grid-column: 1 / -1; order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .plan-preview { display: block; }
}
@media (max-width: 960px) {
  /* table → cards */
  .apt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .apt-table, .apt-table tbody { display: block; }
  .apt-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 16px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); }
  .apt-table tbody tr.is-selected { box-shadow: inset 0 0 0 2px var(--ink); }
  .apt-table td, .apt-table tbody th { display: flex; flex-direction: column; border: 0; padding: 4px 0; }
  .apt-table td::before { content: attr(data-label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .apt-table tbody th { grid-column: 1; }
  .apt-table .row-select { font-size: 24px; padding: 0; text-align: left; letter-spacing: -.02em; }
  .apt-table .status-cell { grid-column: 2; grid-row: 1; align-items: flex-end; justify-content: center; }
  .apt-table .status-cell::before { display: none; }
  .apt-table .price-cell { grid-column: 1 / -1; order: 0; }
  .apt-table .price-cell .price { font-size: 26px; }
  .apt-table .actions { grid-column: 1 / -1; flex-direction: row; gap: 8px; margin-top: 8px; }
  .apt-table .actions .btn { flex: 1; margin: 0; min-height: 44px; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .apt-table tbody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .apt-table tbody tr { margin: 0; }
}
@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero::after { display: none; }
  .hero-media { position: relative; order: 2; aspect-ratio: 4 / 3; }
  .hero-media svg, .hero-media img { object-position: 82% center; }
  .hero-media:not(.is-fallback) { aspect-ratio: 4 / 5; }
  .hero-media:not(.is-fallback) img { object-position: center; }
  .hero-inner { padding-top: 40px; padding-bottom: 32px; background: var(--stone); }
  .hero-credit { bottom: 8px; right: 8px; }
  .hero-facts { gap: 20px; }
  .hero-facts dd { font-size: 20px; }
  .env-grid { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .inquiry { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
  .header-inner { gap: 10px; }
  .results-bar { flex-direction: column; align-items: stretch; }
  .results-tools { justify-content: space-between; }
  .detail-actions .btn { width: 100%; }
  .compare-inner { gap: 8px; }
  .compare-inner p { font-size: 13px; }
}

/* Velora — jawność cen */
.price-history{margin:12px 0 16px;border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:8px 12px}
.price-history summary{cursor:pointer;font-weight:600;padding:4px 0}
.ph-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums;margin-top:8px}
.ph-table th,.ph-table td{text-align:left;padding:6px 4px;border-top:1px solid rgba(0,0,0,.08)}
.ph-table .num{text-align:right}
.annex-list{margin:4px 0 8px 18px;font-size:14px}
.ph-since{font-size:14px;margin:0 0 4px}
.ph-current td{font-weight:600}
.price-history .table-scroll{margin-top:4px}
.detail-grid > *{min-width:0}
.ph-reason{display:block;color:var(--muted);font-weight:400;font-size:12.5px;margin-top:2px}
.ph-table th{font-size:12px;font-weight:500;color:var(--muted);vertical-align:bottom}
.ph-table td{vertical-align:top}
.annex-list{padding-left:0;list-style:none;margin-left:0}
@media (max-width:480px){.ph-table{font-size:13px}.ph-table th,.ph-table td{padding:6px 3px}}
@media (max-width:480px){.ph-table th:nth-child(3),.ph-table td:nth-child(3){display:none}}

/* siatki po pominięciu kadrów bez renderu */
.env-grid.n-2 { grid-template-columns: repeat(2, 1fr); }
.std-grid.n-2 { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 760px) { .env-grid.n-2, .std-grid.n-2 { grid-template-columns: 1fr; } }
