/* Podstrony porównywarki (dotacje, oferty, konto, wykonawcy). Buduje na tokenach z home.css. */
[hidden] { display: none !important; }
.page-head { padding: var(--s-6) 0 var(--s-4); }
.page-head h1 { font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--lh-head); font-weight: 800; letter-spacing: -.02em; max-width: 820px; text-wrap: balance; }
.page-head .lede { color: var(--muted); font-size: var(--text-lg); max-width: var(--prose-max); margin-top: var(--s-3); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; margin-top: var(--s-4); }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.filters select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font: inherit; color: var(--ink); min-width: 180px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 500; }
.filters .check input { width: 18px; height: 18px; accent-color: var(--green); }
.programs-section { padding: var(--s-5) 0; }
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.program { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.program .grant { flex: 1; }
.conditions { margin: 0; }
.conditions ul { padding-left: 18px; display: grid; gap: 6px; margin: 8px 0; }
.conditions .stamp a { color: var(--green); }
.prose { max-width: var(--prose-max); padding-block: var(--s-6); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--s-3); }
.prose p, .prose li { color: var(--ink); line-height: var(--lh-body); }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-top: var(--s-3); }
.prose a { color: var(--green); }
.nav-links a[aria-current=page] { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .programs { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: var(--text-3xl); }
  .filters select { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 140px; }
}

/* ── formularz „Porównaj oferty” ── */
.lead-wrap { max-width: 720px; margin: 0 auto; padding: var(--s-5) 16px var(--s-6); }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 24px; box-shadow: var(--shadow-lg); }
.lead-note { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--muted); text-align: center; }
.progress { display: flex; gap: 6px; margin-bottom: 22px; }
.progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--line); transition: background var(--t-fast); }
.progress span.on { background: var(--green); }
.lead-card .eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.lead-card h1 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; outline: none; }
.lead-card .lede { color: var(--muted); margin-top: 8px; max-width: 56ch; }
.lead-card fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.lead-card legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.lead-card legend small, .field small { font-weight: 400; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: center; border: 1px solid #cad6d8; border-radius: 12px; padding: 13px 14px; cursor: pointer; background: var(--surface); min-height: 56px; transition: border-color var(--t-fast), background var(--t-fast); }
.opt:hover { border-color: var(--muted); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid #acbec1; border-radius: 50%; display: grid; place-items: center; }
.opt.check .mark { border-radius: 6px; }
.opt b { font-weight: 600; display: block; }
.opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.opt:has(input:checked) { background: #edf6e9; border-color: #69995c; box-shadow: 0 0 0 1px #69995c; }
.opt:has(input:checked) .mark { border: 6px solid var(--green); }
.opt.check:has(input:checked) .mark { border: 0; background: var(--green); }
.opt.check:has(input:checked) .mark::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 700; }
.opt:has(input:focus-visible) { outline: 2px solid var(--dark); outline-offset: 2px; }
.field { display: block; margin-top: 22px; }
.field > span:first-child, .field > #address-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field input[type=text], .field input[type=tel], .field gmp-place-autocomplete { width: 100%; min-height: 50px; border: 1px solid #cad6d8; border-radius: 12px; background: var(--surface); padding: 12px 15px; font: inherit; color: var(--ink); }
.field input:focus { outline: 2px solid #9adcb9; border-color: var(--green); }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field.short, .field.postcode { max-width: 260px; }
.select-field { max-width: 360px; }
.select-field select { width: 100%; min-height: 50px; border: 1px solid #cad6d8; border-radius: 12px; background: var(--surface); padding: 12px 40px 12px 15px; font: inherit; color: var(--ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2363777d' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.select-field select:focus { outline: 2px solid #9adcb9; border-color: var(--green); }
.unit-field, .phone { display: flex; }
.unit-field input, .phone input { flex: 1; min-width: 0; }
.unit-field input { border-radius: 12px 0 0 12px !important; }
.unit-field em, .phone em { font-style: normal; display: grid; place-items: center; padding: 0 12px; border: 1px solid #cad6d8; color: var(--muted); font-variant-numeric: tabular-nums; }
.unit-field em { border-left: 0; border-radius: 0 12px 12px 0; }
.phone { max-width: 320px; }
.phone em { border-right: 0; border-radius: 12px 0 0 12px; }
.phone input { border-radius: 0 12px 12px 0 !important; }
/* krótkie odpowiedzi w jednym rzędzie: przyciski bez kółka, zaznaczenie tłem i obramowaniem */
.opts.row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.opts.row .opt { min-height: 48px; padding: 10px 8px; justify-content: center; text-align: center; }
.opts.row .opt .mark { display: none; }
.opts.row .opt b { font-size: 14px; white-space: nowrap; }
.opts.stack { grid-template-columns: minmax(0, 1fr); }
.opts.stack .opt { align-items: flex-start; }
.opts.stack .opt .mark { margin-top: 2px; }
.opts.stack .opt small { font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.sub-panel { margin-top: 14px; padding: 4px 18px 18px; border-radius: 14px; background: #f4f8f6; border: 1px solid #e1ebe7; }
.sub-panel h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-top: 14px; }
.sub-panel .field { margin-top: 12px; }
.sub-panel fieldset { margin-top: 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: 12px; background: #eaf1ef; color: #466860; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.consent b { color: var(--ink); font-weight: 600; }
.consent a { color: var(--green); }
.err { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: #fcedea; color: #ad3e35; font-size: 14px; }
.form-nav { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-s { min-height: 50px; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: inherit; }
.btn-s:hover { border-color: var(--muted); }
.btn-s.primary { flex: 1; background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-s.primary span { color: var(--lime); }
.btn-s.primary:hover { background: #21444b; }
.btn-s:disabled { opacity: .5; cursor: wait; }
.live { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; background: var(--dark); color: #dbe7e2; }
.live-place { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.live-place svg { color: var(--lime); flex-shrink: 0; }
.live-place b { color: #fff; font-weight: 700; }
.live-firms { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; }
.live-firms b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--lime); }
.live-firms.pending { flex: 1 1 260px; max-width: 360px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(182,239,98,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(182,239,98,0); } 100% { box-shadow: 0 0 0 0 rgba(182,239,98,0); } }
.live-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.live-benefits li { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; align-content: start; min-width: 0; }
.live-benefits li + li { border-left: 1px solid var(--line); }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lb-prod { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lb-firms { font-size: 12px; color: var(--muted); }
.lb-amt { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--green); line-height: 1.15; }
.lb-src { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.lb-src svg { color: var(--green); margin-top: 1px; }
.lb-chip { margin-top: 4px; }
.lb-chip .g-chip { font-size: 11px; padding: 2px 8px; }
.lb-none { font-size: 15px; color: var(--muted); }
.live-relief { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; color: #355a52; background: #eaf1ef; }
.live-relief b { color: var(--ink); }
.live-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.live-wait { padding: 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.programs-in { margin-top: 24px; border-radius: 14px; padding: 16px 18px; background: #eaf1ef; color: #466860; font-size: 14px; }
.programs-in h3, .econ h3, .invoice h3 { font-family: var(--font-display); font-size: 15px; color: var(--ink); margin-bottom: 8px; font-weight: 800; }
.programs-in ul { list-style: none; padding: 0; display: grid; }
.programs-in li { padding: 10px 0; border-top: 1px solid #d3e0dc; display: grid; gap: 2px; }
.programs-in li:first-child { border-top: 0; padding-top: 2px; }
.prog-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.prog-top b { color: var(--ink); }
.meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.done .ok { width: 56px; height: 56px; border-radius: 50%; background: #ddedca; color: var(--green); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.sub-h { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; margin-top: 28px; }
.econs { display: grid; gap: 14px; margin-top: 12px; }
.econ { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.econ dl { display: grid; gap: 0; margin: 0; }
.econ dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #edf1f2; font-size: 14px; }
.econ dl > div:last-child { border-bottom: 0; }
.econ dt { color: var(--muted); }
.econ dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.econ .hl dd { color: var(--green); }
.invoice { margin-top: 22px; padding: 16px 18px; border: 1px dashed #9fb8b3; border-radius: 14px; background: #f7fbf5; }
.invoice p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.btn-s.file { position: relative; overflow: hidden; }
.btn-s.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.screen { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .spin, .pulse { animation: none; } }
@media (max-width: 600px) {
  .lead-card { padding: 22px 18px 20px; }
  .live-benefits li + li { border-left: 0; }
}

/* ── panele: konto klienta, wykonawca ── */
.app-wrap { max-width: var(--wrap-max); margin: 0 auto; padding: var(--s-5) 16px var(--s-6); }
.lead-card.narrow { max-width: 640px; margin: 0 auto; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.app-head h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; }
.app-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-head-actions .btn-s.primary { flex: 0 0 auto; }
.lead-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: var(--s-3); min-width: 0; }
.lead-box > p { margin-top: 8px; }
.lead-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.lead-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--green); border-color: var(--green); margin-left: 8px; }
.pill.score-hot { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.pill.score-warm { color: var(--green); border-color: var(--green); }
.empty { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.lead-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
button.link { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
button.link:hover { color: var(--alert); }
.btn-s.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.compare-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--bg); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.compare tbody th { color: var(--muted); font-weight: 500; width: 200px; }
.compare td { font-variant-numeric: tabular-nums; }
.compare td small { display: block; color: var(--muted); font-size: 12px; }
.compare td.best { background: var(--lime-100); font-weight: 700; }
.compare tr.strong td { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.compare tr.actions td { border-bottom: 0; }
.compare tr.actions .btn-s { width: 100%; margin-bottom: 6px; }
.warn { font-size: 13px; color: #8a5a00; background: #fff4df; border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.card-grid h3, .contact-box h3, .quote-form h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.attrs { margin: 0; }
.attrs > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #edf1f2; font-size: 14px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; font-weight: 600; text-align: right; }
.attrs a { color: var(--green); }
.points { padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.respond, .contact-box { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #eaf1ef; color: #355a52; }
.respond .form-nav { margin-top: 12px; }
.ok-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #ddedca; color: #2f5a22; font-weight: 600; }
.quote-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.grid2, .grid3 { display: grid; gap: 0 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-form .field, #signup .field { margin-top: 14px; }
.quote-form select, .quote-form textarea, #signup input[type=date], .quote-form input[type=date] { width: 100%; min-height: 46px; border: 1px solid #cad6d8; border-radius: 12px; background: var(--surface); padding: 10px 12px; font: inherit; color: var(--ink); }
.quote-form .field input { min-height: 46px; width: 100%; border: 1px solid #cad6d8; border-radius: 12px; padding: 10px 12px; font: inherit; }
.params { border: 0; padding: 0; margin: 18px 0 0; }
.params legend { font-weight: 700; font-size: 14px; }
.items { display: grid; gap: 8px; margin: 10px 0; }
.item-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .5fr .8fr auto; gap: 8px; align-items: center; }
.item-row input, .item-row select { min-height: 42px; border: 1px solid #cad6d8; border-radius: 10px; padding: 8px 10px; font: inherit; width: 100%; min-width: 0; background: var(--surface); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: var(--s-5); }
.rules h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; margin-bottom: 6px; }
.rules p { font-size: 14px; color: var(--muted); }
section .lead-card.narrow { margin-block: var(--s-5); }
.doc-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--s-3); }
.prose h2 { margin-top: var(--s-4); font-size: var(--text-xl); }
.draft { padding: 10px 14px; border-radius: 10px; background: #fff4df; color: #8a5a00; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 900px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .card-grid, .grid2, .grid3, .rules { grid-template-columns: minmax(0, 1fr); }
  .item-row { grid-template-columns: 1fr 1fr; }
  .lead-box { padding: 18px 16px; }
}
