/* Nowe podstrony: cennik, szkło na wymiar (konfigurator), podziękowanie */
.np-main { padding-top: 70px; }
.np-hero { padding: 72px 0 40px; }
.np-h1 { font-family: var(--ff-head); font-size: clamp(32px, 4.2vw, 52px); font-weight: 400; line-height: 1.15; color: var(--text); margin: 0 0 18px; }
.np-small { font-size: 16px; color: var(--text-m); margin-top: 16px; }
.np-small a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.np-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-links a.active { color: var(--gold) !important; }

/* Tabela cen */
.np-table-wrap { overflow-x: auto; border: 1px solid var(--border-m); border-radius: 4px; margin-top: 20px; }
.np-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.np-table th { text-align: left; font-size: 15px; font-weight: 500; color: var(--text-m); padding: 14px 18px; border-bottom: 1px solid var(--border-m); background: var(--bg2); }
.np-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); font-size: 17px; }
.np-table tr:last-child td { border-bottom: 0; }
.np-table td small { display: block; color: var(--text-m); font-size: 15px; margin-top: 4px; line-height: 1.5; }
.np-num { text-align: right !important; white-space: nowrap; }
.np-num b { color: var(--gold-lt); font-weight: 500; }
[data-theme="light"] .np-num b { color: var(--gold); }
.np-act { text-align: right; white-space: nowrap; }
.np-act a { color: var(--gold); font-size: 16px; }
.np-model { display: flex; align-items: center; gap: 14px; color: var(--text) !important; }
.np-model img { width: 64px; height: 64px; object-fit: contain; background: var(--bg3); border-radius: 3px; }
.np-model b { display: block; font-weight: 500; font-size: 17px; }
.np-model small { display: block; font-size: 15px; color: var(--text-m); }
@media (max-width: 640px) { .np-act { display: none; } .np-table { min-width: 0; } .np-table td, .np-table th { padding: 12px; } .np-model img { width: 48px; height: 48px; } }

/* Podziękowanie */
.np-steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.np-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; }
.np-steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 17px; }
.np-steps b { font-size: 18px; font-weight: 500; color: var(--text); }
.np-steps span { font-size: 16px; color: var(--text-m); }

/* ═══ Konfigurator ═══ */
.kf-section { padding: 8px 0 96px; }
.kf-progress { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: k; }
.kf-progress li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-s); padding: 10px 0; border-top: 3px solid var(--border-m); }
.kf-progress li span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-m); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.kf-progress li.on { color: var(--text); border-top-color: var(--gold); }
.kf-progress li.on span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.kf-progress li.cur { font-weight: 500; }
.kf-progress li em { font-style: normal; }
@media (max-width: 640px) { .kf-progress li { justify-content: center; } .kf-progress li em { display: none; } .kf-progress li.cur em { display: inline; } .kf-progress { grid-template-columns: 1fr 1fr 2fr 1fr; } }

.kf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .kf-layout { grid-template-columns: minmax(0, 1fr); } .kf-aside { order: -1; } }
.kf-form, .kf-step, .kf-step > * { min-width: 0; }
.kf-nav .nn-btn { white-space: normal; text-align: center; }
.kf-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.kf-step { display: grid; gap: 20px; }
.kf-h { font-family: var(--ff-head); font-size: clamp(24px, 2.6vw, 30px); color: var(--text); margin-bottom: 8px; padding: 0; }
.kf-choice .nn-chip span { font-size: 17px; }
.kf-measure { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg2); }
.kf-measure p { margin: 0; color: var(--text-m); font-size: 16px; line-height: 1.6; }
.kf-measure p b { color: var(--text); }
.kf-measure-svg { width: 100%; height: auto; }
.kf-measure-svg .kf-glass { fill: rgba(184,151,90,.12); stroke: var(--gold); stroke-width: 2; }
.kf-measure-svg .kf-base { fill: var(--bg3); stroke: var(--border-m); }
.kf-measure-svg .kf-dim { stroke: var(--text-m); stroke-width: 1.5; fill: none; }
.kf-measure-svg text { fill: var(--text-m); font-size: 12px; font-family: var(--ff-body); }
@media (max-width: 560px) { .kf-measure { grid-template-columns: 1fr; } .kf-measure-svg { max-width: 200px; } }

.kf-elements { display: grid; gap: 12px; }
.kf-el { border: 1px solid var(--border-m); border-radius: 4px; padding: 14px 16px 16px; background: var(--bg2); }
.kf-el.invalid { border-color: #e08080; }
.kf-el-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 16px; color: var(--text); font-weight: 500; }
.kf-el-del { background: none; border: 0; color: var(--text-m); font-size: 15px; text-decoration: underline; cursor: pointer; min-height: 40px; }
.kf-el-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .kf-el-grid { grid-template-columns: 1fr 1fr; } .kf-el-grid .nn-field:first-child { grid-column: 1 / -1; } }
.kf-area { font-size: 18px; color: var(--text-m); margin: 0; }
.kf-area b { color: var(--text); font-weight: 500; }
.kf-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border); }
.kf-info { padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--bg2); color: var(--text); font-size: 17px; }
.kf-msg { margin: 0; font-size: 16px; color: var(--text-m); }
.kf-msg:empty { display: none; }
.kf-msg.err { color: #f0a0a0; }
.kf-msg.warn { color: #e6c27a; }
.kf-msg.ok { color: #9fd3a5; }
[data-theme="light"] .kf-msg.err { color: #a32a2a; }
[data-theme="light"] .kf-msg.warn { color: #7a5a10; }
[data-theme="light"] .kf-msg.ok { color: #24703a; }
.kf-msg a { color: var(--gold); text-decoration: underline; }

.kf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .kf-cards { grid-template-columns: 1fr; } }
.kf-card { position: relative; cursor: pointer; }
.kf-card input { position: absolute; opacity: 0; }
.kf-card > span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--border-m); border-radius: 4px; background: var(--bg2); transition: border-color .15s; }
.kf-card b { font-size: 17px; font-weight: 500; color: var(--text); }
.kf-card small { font-size: 15px; color: var(--text-m); line-height: 1.45; }
.kf-card em { font-style: normal; font-size: 17px; color: var(--gold-lt); margin-top: 6px; }
[data-theme="light"] .kf-card em { color: var(--gold); }
.kf-card input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(184,151,90,.1); }
.kf-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.kf-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-m); line-height: 1.55; cursor: pointer; }
.kf-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: #b8975a; flex-shrink: 0; }
.kf-check b { color: var(--text); font-weight: 500; }
.kf-check a { color: var(--gold); text-decoration: underline; }
.kf-row { margin: 0; }

.kf-result { padding: 22px; border: 1px solid var(--gold); border-radius: 4px; background: rgba(184,151,90,.07); }
.kf-price { font-family: var(--ff-head); font-size: clamp(28px, 3.4vw, 40px); color: var(--text); line-height: 1.2; }
.kf-note { margin: 8px 0 0; font-size: 16px; color: var(--text-m); }
.kf-breakdown { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.kf-breakdown td { padding: 8px 0; border-top: 1px solid var(--border); color: var(--text-m); vertical-align: top; }
.kf-breakdown td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--text); }
.kf-breakdown tr.sum td { color: var(--text); font-weight: 500; border-top: 1px solid var(--border-m); }

/* Podgląd */
.kf-sticky { position: sticky; top: 90px; padding: 20px; border: 1px solid var(--border-m); border-radius: 4px; background: var(--bg2); }
.kf-aside-t { margin: 0 0 12px; font-size: 15px; color: var(--text-m); }
.kf-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 200px; justify-content: center; padding: 12px; background: repeating-linear-gradient(45deg, var(--bg3), var(--bg3) 10px, var(--bg2) 10px, var(--bg2) 20px); border-radius: 3px; }
.kf-preview-box { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d1c1a, #0b0b0a); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06); transition: width .2s, height .2s; }
.kf-preview-box::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 35%); pointer-events: none; }
.kf-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.kf-art img { width: 100%; height: 100%; object-fit: cover; }
.kf-motif { width: 46%; max-height: 60%; fill: #d4b47a; }
.kf-pdf { color: #d4b47a; font-size: 14px; padding: 12px; text-align: center; }
.kf-prev-text { position: absolute; left: 8%; right: 8%; bottom: 8%; text-align: center; color: #f0ece4; font-family: var(--ff-head); font-size: 14px; line-height: 1.3; white-space: pre-line; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.kf-prev-qr { position: absolute; right: 6%; top: 6%; width: 16%; aspect-ratio: 1; background:
  conic-gradient(from 90deg at 30% 30%, #f0ece4 25%, transparent 0) 0 0 / 34% 34%, #0e0e0d; border: 3px solid #f0ece4; }
.kf-prev-dims { font-size: 14px; color: var(--text-m); }
.kf-mini { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.kf-mini span { font-size: 15px; color: var(--text-m); }
.kf-mini b { font-size: 20px; font-weight: 500; color: var(--text); text-align: right; }
.kf-mini-note { margin: 4px 0 0; font-size: 14px; color: var(--text-s); }
@media (max-width: 960px) { .kf-sticky { position: static; } .kf-preview { min-height: 160px; } }
.kf-row { gap: 16px; }
.kf-step > .nn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .kf-step > .nn-row { grid-template-columns: 1fr; } }

/* Konfigurator v2: zabezpieczenie i cena przy elemencie, witraże */
.kf-el-zab { margin-top: 12px; }
.kf-el-price { margin: 8px 0 0; font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.kf-el-price:empty { display: none; }
.kf-witraze { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.kf-witraz { position: relative; cursor: pointer; display: grid; gap: 6px; }
.kf-witraz input { position: absolute; opacity: 0; }
.kf-witraz img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; border: 2px solid transparent; }
.kf-witraz span { font-size: 15px; color: var(--text-m); }
.kf-witraz input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.kf-witraz input:checked ~ span { color: var(--text); }
.kf-witraz input:focus-visible + img { outline: 2px solid var(--gold); outline-offset: 3px; }
.kf-art img { object-fit: cover; }
.kf-price { font-variant-numeric: tabular-nums; }

/* Konfigurator v3 (audyt 14.11) */
.kf-prev-qr { top: auto !important; bottom: 6%; right: 6%; }
.kf-aside-t span { color: var(--text-s); }
.kf-zab-hint { display: block; font-size: 14px; color: var(--text-s); margin-top: 2px; }
.kf-el.kf-rec .kf-el-zab > span { color: var(--text); }
.kf-el.kf-rec .kf-zab-hint { color: var(--gold); font-weight: 500; }
.kf-el.kf-rec .kf-zab-hint::before { content: '★ '; }

/* Podgląd: pusty kształt szkła, dopóki klient nie wgra grafiki */
.kf-empty { color: rgba(240,236,228,.55); font-size: 13px; line-height: 1.45; text-align: center; padding: 12px; }
