:root {
  --ink: #17231d;
  --muted: #5d6962;
  --paper: #f5f3ed;
  --surface: #fffdf8;
  --line: #d8ddd8;
  --green: #1d6043;
  --green-dark: #12442e;
  --lime: #c8e55b;
  --amber: #f2b84b;
  --shadow: 0 18px 50px rgba(24, 45, 34, .09);
}

/* HeatConvert 2 pracovná vetva – odborný tok podľa konceptu V3. */
:root {
  --hc-navy: #0c274d;
  --hc-copper: #e65f2b;
  --hc-teal: #087d83;
  --hc-paper: #f7f8fa;
  --hc-line: #d8e0e8;
}

body { background: var(--hc-paper); color: var(--hc-navy); }
.site-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hc-line); }
.brand-mark { background: linear-gradient(145deg, var(--hc-copper), #f29a3f); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-left: auto; }
.site-nav a { color: #314d70; font-weight: 700; text-decoration: none; padding: .8rem .15rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--hc-copper); border-color: var(--hc-copper); }
.locale-picker { margin-left: 1.5rem; }
.button.primary { background: var(--hc-navy); }
.button.primary:hover { background: #153e70; }
.flow-step, .result-card, .need-card, .energy-flow, .scenario-comparison, .verdict { background: #fff; border: 1px solid var(--hc-line); box-shadow: 0 10px 35px rgba(12, 39, 77, .06); }
.target-step { border-top: 4px solid var(--hc-teal); }
.optional-area, .investment-field { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hc-line); }
.input-suffix { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.input-suffix input { border-radius: .55rem 0 0 .55rem; }
.input-suffix span { display: grid; place-items: center; min-width: 3.5rem; padding: 0 .75rem; border: 1px solid var(--hc-line); border-left: 0; border-radius: 0 .55rem .55rem 0; background: #f1f5f8; font-weight: 800; }
.v2-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.v2-result-grid .result-card { min-height: 0; }
.energy-flow, .scenario-comparison, .verdict { border-radius: 1rem; padding: clamp(1rem, 2.5vw, 1.75rem); margin-top: 1.25rem; }
.energy-row { display: grid; grid-template-columns: minmax(15rem, .7fr) 1fr; gap: 1rem; align-items: center; margin: 1rem 0; }
.energy-row > div:first-child { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.energy-track { height: 1.1rem; overflow: hidden; border-radius: 99px; background: #edf1f5; }
.energy-track span { display: block; height: 100%; border-radius: inherit; }
.bar-current { background: var(--hc-navy); }
.bar-heat { background: var(--hc-copper); }
.bar-target { background: var(--hc-teal); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.scenario-card { border: 1px solid var(--hc-line); border-radius: .85rem; padding: 1rem; background: #fbfcfd; }
.scenario-card.featured { border: 2px solid var(--hc-teal); background: #f0fbfb; }
.scenario-card > span { display: block; color: #56708d; font-weight: 800; }
.scenario-card > strong { display: block; margin: .55rem 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-variant-numeric: tabular-nums; }
.scenario-card p { margin: .25rem 0; font-weight: 800; color: var(--hc-teal); }
.verdict { border-left: 5px solid var(--hc-copper); }
.verdict p { max-width: 85ch; line-height: 1.7; }
.all-options { margin-top: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--hc-line); border-radius: 1rem; background: #fff; box-shadow: 0 10px 35px rgba(12, 39, 77, .06); }
.all-options-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.all-options-heading h3 { margin: .2rem 0 0; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.all-options-heading > p { max-width: 34rem; margin: 0; color: #56708d; }
.all-options-scroll-hint { display: none; margin: 0 0 .65rem; color: #56708d; font-size: .82rem; }
.all-options-table-wrap { overflow-x: auto; border: 1px solid var(--hc-line); border-radius: .85rem; }
.all-options-table { width: 100%; min-width: 850px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.all-options-table th, .all-options-table td { padding: .78rem .85rem; border-bottom: 1px solid var(--hc-line); text-align: left; vertical-align: middle; }
.all-options-table thead th { color: #56708d; background: #f6f8fa; font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; }
.all-options-table tbody th { color: var(--hc-navy); }
.all-options-table td small { display: block; margin-top: .2rem; color: #64768a; font-size: .76rem; white-space: nowrap; }
.all-options-table tbody tr:last-child > * { border-bottom: 0; }
.all-options-table tbody tr.current { background: #fff5ef; }
.all-options-table tbody tr.current > :first-child { border-left: 4px solid var(--hc-copper); }
.all-options-table tbody tr.selected { background: #eff8f1; }
.all-options-table tbody tr.selected > :first-child { border-left: 4px solid #4f8b45; }
.all-options-table tbody tr.unavailable { color: #6f7e8d; }
.all-options-note { margin: .9rem 0 0; color: #56708d; font-size: .9rem; line-height: 1.55; }

@media (max-width: 980px) {
  .site-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .site-header { flex-wrap: wrap; }
  .locale-picker { margin-left: auto; }
}

@media (max-width: 700px) {
  .v2-result-grid, .scenario-grid { grid-template-columns: 1fr; }
  .energy-row { grid-template-columns: 1fr; gap: .45rem; }
  .energy-row > div:first-child { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .site-nav a { white-space: nowrap; }
  .all-options-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .all-options-scroll-hint { display: block; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: white; background: var(--green); font-size: 13px; }
.locale-picker select { width: auto; min-width: 190px; padding: 10px 38px 10px 13px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sk-localization-only[hidden] { display: none !important; }

.hero { min-height: 560px; padding: 80px 7%; display: grid; grid-template-columns: 1.5fr .8fr; gap: 8%; align-items: center; color: white; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 78% 22%, rgba(200,229,91,.27), transparent 25%), linear-gradient(135deg, #153d2b, #1d6043 65%, #347a55); box-shadow: var(--shadow); }
.hero h1, .hero-title { max-width: 780px; margin: 8px 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; font-weight: 850; }
.lede { max-width: 720px; margin: 0 0 34px; color: #e5ede7; font-size: clamp(18px, 2vw, 22px); }
.eyebrow { margin: 0 0 6px; color: var(--green); text-transform: uppercase; font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.hero .eyebrow { color: var(--lime); }
.formula-card { padding: 28px; display: grid; gap: 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.formula-card strong { font-size: 22px; line-height: 1.25; }
.formula-card span:last-child { color: #d5e0d8; }
.formula-label { color: var(--lime); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.primary { color: #17301f; background: var(--lime); }
.primary:hover { background: #d6ef73; }
.secondary { color: var(--green-dark); background: #e6ebe6; }

.calculator, .results, .method, .equipment-library { padding: 100px 0 20px; }
.reference-library { padding: 28px 0 0; }
.reference-library + .reference-library,
.reference-library + .equipment-library { padding-top: 18px; }
.section-heading { margin-bottom: 32px; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.section-heading h2, .method h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); }

.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.flow-step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 10px 35px rgba(20,50,32,.05); transition: opacity .2s; }
.flow-step.target-step { border-color: #8aa493; }
.flow-step h3 { margin: 0 0 20px; font-size: 28px; }
.step-number { position: absolute; right: 22px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 50%; background: var(--green); font-weight: 850; }
.select-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.scenario-fields { margin-top: 22px; }
.additional-current-source { position: relative; margin-top: 24px; padding-top: 24px; border-top: 2px solid #d7e2da; }
.additional-current-head { display: flex; align-items: end; gap: 10px; }
.additional-current-head > div { flex: 1; }
.remove-current-source { min-height: 46px; padding: 9px 12px; color: #7b281f; border: 1px solid #e2afa9; border-radius: 10px; background: #fff0ee; cursor: pointer; }
.add-current-source { width: 100%; margin-top: 22px; padding: 12px 16px; color: var(--green-dark); border: 1px dashed #87a18f; border-radius: 12px; background: #edf6ef; font-weight: 800; cursor: pointer; }
.add-current-source:hover { color: white; background: var(--green); }
.source-panel-title { margin-bottom: 18px; padding-bottom: 16px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.source-panel-title > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e7ede8; font-size: 20px; }
.source-panel-title div { display: grid; }
.source-panel-title small { color: var(--muted); }
.advanced-heat { margin-top: 20px; padding: 18px; border: 1px dashed #9aaba0; border-radius: 14px; background: rgba(255,255,255,.45); }
.advanced-heat > label { font-weight: 750; }
.advanced-heat input[type="checkbox"] { width: auto; min-height: auto; margin-right: 8px; }
#direct-box { margin-top: 14px; max-width: 360px; }
#direct-box label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.muted-step { opacity: .45; }
.price-warning { margin: 0 0 18px; padding: 14px 16px; color: #664811; border: 1px solid #e5c884; border-radius: 12px; background: #fff7df; }
.source-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.65); transition: border .15s, opacity .15s, background .15s; }
.source-card.active { border-color: #87a18f; background: var(--surface); box-shadow: 0 8px 30px rgba(20,50,32,.05); }
.source-card:not(.active) .fields { opacity: .38; pointer-events: none; }
.source-top { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-title { display: flex; align-items: center; gap: 12px; }
.source-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e7ede8; font-size: 22px; }
.source-title h3 { margin: 0; font-size: 20px; }
.toggle { position: relative; width: 48px; height: 28px; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 20px; background: #cbd1cc; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.18); }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(20px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; transition: opacity .15s; }
.field { display: grid; align-content: start; gap: 6px; }
.fields > .field > label,
.fields > .field > .field-label-row { height: 48px; display: flex; align-items: flex-end; }
.quantity-unit { min-height: 14px; color: var(--green-dark) !important; font-weight: 800; }
.field-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.equipment-jump { flex: 0 0 auto; padding: 4px 7px; color: var(--green-dark); border: 1px solid #b8cfbf; border-radius: 999px; background: #edf6ef; font-size: 11px; font-weight: 800; line-height: 1.2; text-align: right; text-decoration: none; white-space: nowrap; }
.equipment-jump:hover { color: white; background: var(--green); }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 64px; }
.input-with-unit [data-quantity-unit] { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--green-dark); font-size: 13px; font-weight: 800; pointer-events: none; }
input, select { width: 100%; min-height: 46px; padding: 9px 12px; color: var(--ink); border: 1px solid #cbd2cc; border-radius: 10px; outline: none; background: #fff; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,96,67,.12); }
.field small { color: #778079; font-size: 11px; }
.field .performance-warning { padding: 8px 10px; color: #71352a; border: 1px solid #e0b2a8; border-radius: 8px; background: #fff0ed; font-weight: 700; }
.field input[readonly] { color: #405048; border-style: dashed; background: #eef2ee; cursor: not-allowed; }
.wood-estimate { padding: 12px 14px; border: 1px solid #b9c9bd; border-radius: 9px; background: #f1f5f1; }
.wood-estimate strong, .wood-estimate small { display: block; }
.wood-estimate small { margin-top: 5px; line-height: 1.5; }
.current-mode-toggle { display: block; margin: 10px 0 2px auto; padding: 0; border: 0; color: var(--green-dark); background: transparent; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.default-note { margin: 18px 0 0; padding: 10px 12px; color: #6c501d; border-radius: 9px; background: #fff3d8; font-size: 12px; }
.unit-help { margin: -6px 0 18px; padding: 12px 14px; background: #f1f5f1; }
.unit-help summary { color: var(--green-dark); font-size: 13px; }
.unit-help p { font-size: 12px; }
.delivery-warning { margin: 14px 0 0; padding: 12px 14px; color: #71352a; border: 1px solid #e0b2a8; border-radius: 10px; background: #fff0ed; font-size: 12px; }
.gas-invoice-help { padding: 14px 16px; display: grid; gap: 4px; color: #274334; border: 1px solid #b8cfbf; border-radius: 12px; background: #edf6ef; font-size: 13px; }
.how-to-steps { margin: 20px 0; padding: 0; display: grid; gap: 12px; counter-reset: how-to; list-style: none; }
.how-to-steps li { position: relative; min-height: 48px; padding: 12px 14px 12px 58px; border: 1px solid #d7e2da; border-radius: 12px; background: #f7faf7; }
.how-to-steps li::before { content: counter(how-to); counter-increment: how-to; position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; color: white; border-radius: 50%; background: var(--green); font-weight: 850; }
.how-to-steps strong, .how-to-steps span { display: block; }
.how-to-steps span { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.how-to-examples { grid-template-columns: repeat(3, 1fr); }
.form-actions { margin-top: 26px; display: flex; gap: 12px; }
.form-message { margin-top: 18px; padding: 14px 16px; color: #7b281f; border: 1px solid #e2afa9; border-radius: 12px; background: #fff0ee; }

.results { scroll-margin-top: 20px; }
.result-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.need-card, .result-card { min-height: 185px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.need-card { color: white; background: var(--green); }
.need-card > span, .result-card > span { color: inherit; opacity: .72; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.need-card > strong, .result-card strong { display: block; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.need-card p { margin: 10px 0 0; color: #dce9e0; font-size: 13px; }
.result-card div { display: grid; gap: 8px; }
.result-card div > span { color: var(--muted); }
.result-card.accent { border-top: 5px solid var(--lime); }
.comparison-card { grid-column: 1 / -1; min-height: 150px; }
.comparison-card.saving { border-color: #8fbd9e; background: #edf8f0; }
.comparison-card.saving strong { color: #176335; }
.report-download { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-download button { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px; color: white; background: var(--green); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.report-download button:hover, .report-download button:focus-visible { background: var(--green-dark); }
.report-download span { color: var(--muted); font-size: 13px; }
.comparison-card.more-expensive { border-color: #d9a39d; background: #fff1ef; }
.comparison-card.more-expensive strong { color: #8a3027; }
.comparison-card.same-cost { border-color: #b8c0b9; background: #f4f6f4; }
.formula-trace { margin-top: 18px; padding: 20px 22px; }
.formula-trace p { font-size: 15px; }
.properties { padding-top: 100px; }
#property-table input { min-width: 110px; }
.winner { margin-bottom: 22px; padding: 24px 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: white; border-radius: 18px; background: var(--green); }
.winner strong { font-size: 25px; }
.winner span { color: #d9e7dd; }
.chart { padding: 26px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bar-row { display: grid; grid-template-columns: minmax(125px, .8fr) 3fr 95px; gap: 14px; align-items: center; font-size: 14px; }
.bar-track { height: 15px; overflow: hidden; border-radius: 20px; background: #e5e9e5; }
.bar { height: 100%; min-width: 4px; border-radius: inherit; background: var(--green); }
.bar-row:first-child .bar { background: var(--lime); }
.bar-value { text-align: right; font-weight: 800; }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
.assumptions { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
details { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.disclaimer { margin-top: 22px; padding: 16px; color: var(--muted); border-left: 4px solid var(--amber); background: #fffaed; }

.equipment-library > details { padding: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.equipment-library > details > summary { padding: 24px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: white; background: var(--green-dark); list-style-position: inside; }
.equipment-library > details > summary span:first-child { display: inline-grid; gap: 3px; }
.equipment-library > details > summary strong { font-size: clamp(20px, 2.5vw, 28px); }
.equipment-library > details > summary small { color: #d7e5db; font-weight: 500; }
.equipment-total { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--lime); font-size: 12px; }
.equipment-content { padding: 24px; }
.reference-library > details { padding: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.reference-library > details > summary { padding: 24px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: white; background: var(--green-dark); list-style-position: inside; }
.reference-library > details > summary span:first-child { display: inline-grid; gap: 3px; }
.reference-library > details > summary strong { font-size: clamp(20px, 2.5vw, 28px); }
.reference-library > details > summary small { color: #d7e5db; font-weight: 500; }
.reference-content { padding: 24px; }
.reference-intro { margin: 0; color: var(--muted); }
.methodology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.methodology-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8f5; }
.methodology-grid h3 { margin: 0 0 8px; color: var(--green-dark); font-size: 18px; }
.methodology-grid p { margin: 0; }
.methodology-formula { margin-top: 14px; padding: 16px 18px; display: grid; gap: 5px; border-radius: 14px; color: white; background: var(--green); }
.methodology-formula span { color: #dce9df; font-size: 13px; }
.equipment-warning { margin: 0 0 20px; padding: 14px 16px; color: #664811; border: 1px solid #e5c884; border-radius: 12px; background: #fff7df; }
.equipment-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.equipment-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.equipment-count { margin: 16px 0 12px; color: var(--muted); font-size: 13px; }
.equipment-results { display: grid; gap: 26px; }
.equipment-group > h3 { margin: 0 0 12px; padding-bottom: 9px; display: flex; align-items: center; gap: 9px; color: var(--green-dark); border-bottom: 2px solid #dce8df; font-size: 21px; }
.equipment-group-count { min-width: 26px; padding: 2px 7px; display: inline-grid; place-items: center; border-radius: 999px; color: white; background: var(--green); font-size: 12px; }
.equipment-group-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
.equipment-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.equipment-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.equipment-card-head > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.equipment-card-head > strong { flex: 0 0 auto; color: var(--green-dark); font-size: 18px; }
.equipment-card .equipment-card-title { margin: 12px 0 9px; color: var(--ink); font-size: 18px; line-height: 1.25; }
.equipment-card p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.equipment-card .equipment-note { margin-top: 10px; padding: 8px 10px; color: #6c501d; border-radius: 8px; background: #fff7df; }
.equipment-card a { margin-top: 12px; display: inline-block; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.equipment-pagination { margin-top: 18px; display: flex; justify-content: center; gap: 12px; }
.equipment-pagination[hidden] { display: none; }
.equipment-page-button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--green); border-radius: 10px; color: var(--green-dark); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.equipment-page-button:hover:not(:disabled) { color: #fff; background: var(--green); }
.equipment-page-button:focus-visible { outline: 3px solid rgba(29,96,67,.25); outline-offset: 3px; }
.equipment-page-button:disabled { opacity: .48; cursor: not-allowed; }
.equipment-empty { margin: 12px 0 0; padding: 18px; text-align: center; border-radius: 12px; background: #f2f4f2; }

.method { padding-bottom: 100px; }
.method > h2 { max-width: 700px; }
.method-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method article { padding: 24px; border-top: 3px solid var(--green); background: var(--surface); }
.method article > span { color: var(--green); font-weight: 900; }
.method h3 { margin-bottom: 6px; }
.method article p { margin: 0; color: var(--muted); }
footer { padding: 28px 0 45px; display: flex; justify-content: space-between; gap: 28px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-project, .footer-meta { display: grid; gap: 5px; }
.footer-project strong { color: var(--ink); }
.footer-meta { text-align: right; font-size: 14px; }
.footer-meta a { color: var(--green-dark); font-weight: 700; }

@media (max-width: 820px) {
  .hero { min-height: auto; padding: 56px 30px; grid-template-columns: 1fr; }
  .formula-card { display: none; }
  .source-grid, .assumptions, .method-grid, .flow-grid, .result-grid { grid-template-columns: 1fr; }
  .equipment-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
}
@media (max-width: 520px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 64px; }
  .locale-picker select { min-width: 0; width: 196px; max-width: 54vw; padding-left: 10px; font-size: 12px; }
  .hero { padding: 42px 22px; border-radius: 22px; }
  .hero h1, .hero-title { font-size: 40px; }
  .calculator, .results, .method { padding-top: 72px; }
  .equipment-library { padding-top: 72px; }
  .equipment-library > details > summary, .equipment-filters { align-items: stretch; grid-template-columns: 1fr; }
  .equipment-library > details > summary { flex-direction: column; }
  .reference-library > details > summary { align-items: flex-start; flex-direction: column; }
  .methodology-grid { grid-template-columns: 1fr; }
  .equipment-total { align-self: flex-start; }
  .equipment-group-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  [data-price-source] .fields > .field { order: 6; }
  [data-price-source] .fields > .unit-field { order: 0; }
  [data-price-source] .fields > .gas-invoice-help { order: 1; }
  [data-price-source] .fields > .quantity-field { order: 2; }
  [data-price-source] .fields > .unit-price-field { order: 3; }
  [data-price-source] .fields > .total-price-field { order: 4; }
  [data-price-source] .fields > .performance-field { order: 5; }
  .field-label-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .equipment-jump { text-align: left; }
  .fields > .field > label,
  .fields > .field > .field-label-row { height: auto; }
  .field.full { grid-column: auto; }
  .form-actions { flex-direction: column; }
  .winner { align-items: flex-start; flex-direction: column; }
  .bar-row { grid-template-columns: 105px 1fr; }
  .bar-value { grid-column: 2; }
  footer { gap: 18px; flex-direction: column; }
  .footer-meta { text-align: left; }
}

/* Contextual field help: hover, keyboard focus and touch. */
.field-help-label { position: relative; display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.fields > .field > .field-help-label { min-height: 28px; align-items: flex-end; }
.field-label-row > .field-help-label { flex: 1 1 auto; margin-right: 0; }
.field-help-button {
  position: relative; flex: 0 0 auto; width: 22px; min-width: 22px; height: 22px; min-height: 22px;
  padding: 0; border: 1px solid #2b8a68; border-radius: 50%; color: #17684e; background: #eaf6ef;
  font: 900 14px/20px Arial, sans-serif; text-align: center; cursor: help;
}
.field-help-button:hover, .field-help-button:focus-visible, .field-help-button.is-open { color: #fff; background: #17684e; }
.field-help-tooltip {
  position: absolute; z-index: 50; left: var(--field-help-left, -8px); top: calc(100% + 9px); display: none;
  width: min(320px, calc(100vw - 40px)); padding: 11px 12px; border-radius: 9px;
  color: #fff; background: #123f31; box-shadow: 0 8px 24px rgba(8, 42, 31, .24);
  font: 600 12px/1.45 Arial, sans-serif; text-align: left; white-space: normal;
}
.field-help-tooltip::before { content: ""; position: absolute; left: 13px; top: -6px; width: 12px; height: 12px; background: #123f31; transform: rotate(45deg); }
.field-help-button:hover .field-help-tooltip,
.field-help-button:focus .field-help-tooltip,
.field-help-button.is-open .field-help-tooltip { display: block; }
@media (max-width: 600px) {
  .field-help-button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; line-height: 26px; }
  .field-help-tooltip { position: fixed; left: 16px; right: 16px; top: auto; bottom: 18px; width: auto; font-size: 14px; }
  .field-help-tooltip::before { display: none; }
}

/* Finálne farebné a navigačné prepisy pracovnej verzie HC-2. */
body { background: var(--hc-paper); color: var(--hc-navy); }
.site-header { height: auto; min-height: 74px; padding: 8px 0; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hc-line); }
.brand { color: var(--hc-navy); }
.brand-mark { background: linear-gradient(145deg, var(--hc-copper), #f29a3f); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-left: auto; }
.site-nav a { color: #314d70; font-weight: 700; text-decoration: none; padding: .8rem .15rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--hc-copper); border-color: var(--hc-copper); }
.locale-picker { margin-left: 1.5rem; }
.hero { background: linear-gradient(135deg, #102f58, #0c6670); }
.button.primary { background: var(--hc-navy); }
.need-card { background: var(--hc-navy); }
.target-step { border-top-color: var(--hc-teal); }
.methodology-formula { background: var(--hc-navy); }
.method article { border-top-color: var(--hc-copper); }

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .locale-picker { margin-left: auto; }
}

@media (max-width: 520px) {
  .site-header { height: auto; align-items: flex-start; }
  .brand { width: 100%; }
  .brand-copy > small { max-width: calc(100vw - 80px); }
  .locale-picker { margin-left: 0; }
  .site-nav a { white-space: nowrap; }
}

/* Kompaktné pracovné rozloženie podľa schváleného vizuálneho smeru. */
main#top { padding-top: 24px; }
.hero { display: none; }
.site-header { box-shadow: 0 3px 16px rgba(12, 39, 77, .10); }
.brand { font-size: 24px; }
.brand-flame { width: 31px; height: 38px; color: var(--hc-copper); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy > span { font-weight: 800; }
.brand-copy > small { margin-top: 4px; max-width: 245px; color: #66778a; font-size: 10px; font-weight: 600; letter-spacing: 0; line-height: 1.15; }
.compact-intro { padding: 8px 0 18px; }
.compact-intro h1 { max-width: 650px; margin: 0; color: var(--hc-navy); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.compact-intro > p { margin: 10px 0 18px; color: #52657a; font-size: 17px; }
.workflow-steps { max-width: 660px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.workflow-step { position: relative; padding: 8px 5px 11px; display: flex; align-items: center; gap: 9px; color: #536276; border: 0; border-bottom: 3px solid #dbe1e7; background: transparent; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.workflow-step span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #dfe3e7; color: #475361; font-weight: 900; }
.workflow-step.active { color: var(--hc-copper); border-color: var(--hc-copper); }
.workflow-step.active span { color: white; background: var(--hc-copper); }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1.08fr); gap: 30px; align-items: start; }
.calculator { padding: 0; }
.calculator > .section-heading { display: none; }
.calculator form { padding: 0; background: transparent; border: 0; box-shadow: none; }
.price-warning { display: none; }
.flow-grid { grid-template-columns: 1fr; gap: 18px; }
.flow-step { padding: 20px 22px; border-radius: 12px; box-shadow: 0 5px 18px rgba(12, 39, 77, .10); }
.flow-step .step-number, .flow-step > .eyebrow { display: none; }
.flow-step > h3 { margin: 0 0 12px; font-size: 22px; }
.scenario-fields { margin-top: 12px; }
.fields { gap: 9px 14px; }
.fields > .field > label,
.fields > .field > .field-label-row { height: auto; min-height: 28px; align-items: flex-end; }
.field { gap: 4px; }
.field small { line-height: 1.25; }
input, select { min-height: 40px; padding: 7px 11px; }
.add-current-source { margin-top: 12px; padding: 9px 14px; }
.optional-area, .investment-field { margin-top: .65rem; padding-top: .65rem; }
.target-step { border-top: 1px solid var(--hc-line); }
.continue-button { width: 100%; margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 12px; color: white; background: linear-gradient(90deg, #c4470d, #b53d00); box-shadow: 0 8px 18px rgba(181, 61, 0, .2); }
.continue-button:hover { background: linear-gradient(90deg, #ab3905, #963300); }
.advanced-heat { margin-top: 12px; padding: 10px 14px; border: 1px dashed #c5cfd8; border-radius: 10px; background: white; }
.advanced-heat summary { color: #38516d; font-weight: 800; cursor: pointer; }
.advanced-heat > label { margin-top: 10px; }
.form-actions .button { width: 100%; }
.form-actions .button.primary {
  color: #fff;
  border: 1px solid #a83a08;
  background: linear-gradient(90deg, #c4470d, #b53d00);
  box-shadow: 0 8px 18px rgba(232, 94, 25, .22);
}
.form-actions .button.primary:hover,
.form-actions .button.primary:focus-visible { background: linear-gradient(90deg, #ab3905, #963300); }
.form-actions .button.primary:focus-visible { outline: 3px solid rgba(8, 125, 131, .28); outline-offset: 3px; }
.investment-field small { margin-top: 4px; color: #52657a; font-size: 12px; line-height: 1.45; }
.live-preview { position: static; overflow: hidden; border: 1px solid #e1d8cf; border-radius: 12px; background: white; box-shadow: 0 8px 24px rgba(12, 39, 77, .11); }
.live-preview-top { padding: 24px; background: linear-gradient(145deg, #fffaf5, #fff); }
.live-preview .eyebrow { color: var(--hc-copper); }
.live-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.live-metrics > div { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 8px; padding-right: 18px; }
.live-metrics > div + div { padding-left: 22px; border-left: 1px solid #e4e7ea; }
.live-metrics strong { color: var(--hc-copper); font-size: clamp(34px, 4vw, 48px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.live-metrics > div:nth-child(2) strong { color: #4a7e3c; }
.live-metrics > div > span { padding-bottom: 7px; color: inherit; font-size: 16px; font-weight: 850; }
.live-metrics small { grid-column: 1 / -1; color: #3c4e61; }
.live-formula, .live-info { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid #f0d2b8; border-radius: 8px; background: #fff6ed; }
.live-formula > span { color: var(--hc-copper); }
.live-info { margin-top: 10px; color: #48633f; border-color: #ceddc6; background: #f5f9f2; font-size: 13px; }
.live-info > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: #5c863e; font-weight: 900; }
.live-chart { padding: 22px 24px 26px; border-top: 1px solid #e5e9ed; }
.live-chart-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; margin: 14px 0; }
.live-chart-label { color: #22364e; font-size: 13px; font-weight: 800; line-height: 1.2; }
.live-chart-track { height: 15px; overflow: hidden; border-radius: 2px; background: #eef0f2; }
.live-chart-track span { display: block; height: 100%; background: var(--hc-copper); }
.live-chart-row.hp .live-chart-track span { background: #5b8e4a; }
.live-chart-value { min-width: 90px; color: #30475f; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.live-chart-axis { margin: 8px 102px 0 132px; display: flex; justify-content: space-between; color: #7b8793; font-size: 10px; }
.live-chart-unit { margin: 3px 102px 0 132px; color: #7b8793; font-size: 10px; text-align: center; }
.trust-strip { margin: 24px 0 10px; padding: 18px 22px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e0e4e8; border-bottom: 1px solid #e0e4e8; background: white; }
.trust-strip > div { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--hc-navy); }
.trust-strip > div + div { border-left: 1px solid #e0e4e8; }
.trust-strip span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #f0d3c5; border-radius: 50%; color: var(--hc-copper); font-size: 22px; }
.results { padding-top: 70px; }
body[data-ui-step="1"] .target-step,
body[data-ui-step="2"] .target-step,
body[data-ui-step="1"] .form-actions,
body[data-ui-step="2"] .form-actions { display: none; }
body[data-ui-step="3"] #current-step,
body[data-ui-step="4"] #current-step,
body[data-ui-step="3"] .advanced-heat,
body[data-ui-step="4"] .advanced-heat { display: none; }
body[data-ui-step="3"] .target-step,
body[data-ui-step="4"] .target-step { display: block; }

@media (max-width: 980px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .live-preview { grid-row: 1; }
  .trust-strip { grid-template-columns: 1fr; gap: 12px; }
  .trust-strip > div { justify-content: flex-start; }
  .trust-strip > div + div { padding-top: 12px; border-left: 0; border-top: 1px solid #e0e4e8; }
}

@media (max-width: 600px) {
  main#top { padding-top: 14px; }
  .compact-intro h1 { font-size: 36px; }
  .workflow-steps { grid-template-columns: repeat(4, max-content); overflow-x: auto; }
  .workflow-step { font-size: 12px; }
  .workflow-step span { width: 26px; height: 26px; }
  .live-preview-top, .live-chart, .flow-step { padding: 18px; }
  .live-metrics { grid-template-columns: 1fr; gap: 14px; }
  .live-metrics > div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid #e4e7ea; }
  .live-chart-row { grid-template-columns: 92px 1fr; }
  .live-chart-value { grid-column: 2; text-align: left; }
  .live-chart-axis, .live-chart-unit { margin-left: 104px; margin-right: 0; }
}

.support-section { margin: 44px 0 30px; padding: clamp(24px, 4vw, 46px); border: 1px solid #d9e3dc; border-radius: 18px; background: linear-gradient(145deg, #f5faf6, #fffaf5); box-shadow: 0 12px 34px rgba(12, 39, 77, .08); }
.help-glossary { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hc-line); }
.help-glossary > h3 { margin: 0 0 7px; color: var(--hc-navy); font-size: clamp(21px, 2.6vw, 28px); }
.help-glossary > p { margin: 0 0 16px; color: #56708d; line-height: 1.6; }
.help-glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-term { padding: 16px 17px; border: 1px solid var(--hc-line); border-radius: 11px; background: #fff; }
.help-term dt { margin-bottom: 6px; color: var(--hc-navy); font-weight: 900; }
.help-term dd { margin: 0; color: #405368; line-height: 1.55; }
.support-hero { display: flex; gap: 20px; align-items: flex-start; max-width: 880px; }
.support-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--hc-copper), #f28a35); font-size: 27px; box-shadow: 0 8px 18px rgba(232, 94, 25, .2); }
.support-hero h2 { margin: 3px 0 9px; color: var(--hc-navy); font-size: clamp(28px, 3.4vw, 42px); }
.support-hero p:last-child { margin: 0; color: #42566c; line-height: 1.65; }
.support-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-card { padding: 23px; border: 1px solid #dfe6e1; border-radius: 13px; background: rgba(255,255,255,.92); }
.support-card h3 { margin: 0 0 11px; color: var(--hc-navy); }
.support-card p, .support-card address { color: #405368; font-style: normal; line-height: 1.6; }
.support-button { margin-top: 8px; display: inline-flex; color: #fff; background: linear-gradient(135deg, var(--hc-copper), #f28a35); box-shadow: 0 8px 18px rgba(232, 94, 25, .2); }
.support-button:hover { color: #fff; background: linear-gradient(135deg, #cf4f11, var(--hc-copper)); transform: translateY(-1px); }
.header-support-button { flex: 0 0 auto; margin-left: 1rem; padding: 10px 16px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--hc-copper), #f28a35); box-shadow: 0 6px 15px rgba(232, 94, 25, .2); font-size: 14px; font-weight: 850; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.header-support-button:hover, .header-support-button:focus-visible { color: #fff; background: linear-gradient(135deg, #cf4f11, var(--hc-copper)); transform: translateY(-1px); }
.support-action small { display: block; margin-top: 9px; color: #6a7784; }
.company-identifiers { margin: 15px 0; display: grid; gap: 7px; }
.company-identifiers div { display: flex; align-items: baseline; gap: 7px; }
.company-identifiers dt::after { content: ":"; }
.company-identifiers dt { color: #66778a; font-weight: 700; }
.company-identifiers dd { margin: 0; color: var(--hc-navy); font-weight: 850; font-variant-numeric: tabular-nums; }
.support-legal { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-legal details { padding: 0 18px; border: 1px solid #dfe6e1; border-radius: 11px; background: #fff; }
.support-legal summary { padding: 16px 0; color: var(--hc-navy); font-weight: 850; cursor: pointer; }
.support-legal details div { padding-bottom: 8px; color: #405368; line-height: 1.58; }
.support-legal details:last-child { grid-column: 1 / -1; }
.support-legal a { color: var(--hc-teal); font-weight: 750; }
.support-full-legal { margin: 18px 0 0; }
.support-full-legal a { color: var(--hc-teal); font-weight: 850; }
.support-note { margin: 17px 0 0; padding: 13px 15px; border-left: 4px solid #5f8d55; color: #405368; background: #f4f8f2; font-size: 13px; line-height: 1.55; }

/* Kompaktnejšie poradie: podpora hore, štyri zdroje pomoci v jednom bloku a stručná metodika pri päte. */
#support.support-section { margin: 22px 0 26px; padding: 22px; }
#support .support-hero { gap: 14px; align-items: center; }
#support .support-icon { width: 44px; height: 44px; font-size: 21px; }
#support .support-hero h2 { margin: 1px 0 5px; font-size: clamp(23px, 2.7vw, 31px); }
#support .support-hero p:last-child { font-size: 14px; line-height: 1.45; }
#support .support-grid { margin-top: 16px; gap: 12px; }
#support .support-card { padding: 16px 18px; }
#support .support-card p, #support .support-card address { margin-block: 7px; font-size: 13px; line-height: 1.45; }
#support .support-legal { margin-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#support .support-legal details, #support .support-legal-card { min-width: 0; padding: 0 13px; border: 1px solid #dfe6e1; border-radius: 10px; background: #fff; }
#support .support-legal summary, #support .support-legal-card a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; color: var(--hc-navy); font-size: 13px; font-weight: 850; line-height: 1.3; }
#support .support-legal-card a,
#support .support-legal-card a:visited { color: #111; text-decoration: none; }
#support .support-legal-card a:hover,
#support .support-legal-card a:focus-visible { color: #111; text-decoration: underline; }
#support .support-legal details div { font-size: 12px; line-height: 1.45; }
#support .support-note { margin-top: 11px; padding: 9px 12px; font-size: 11px; }

.compact-reference-hub { width: min(780px, 100%); margin: 30px auto 18px; padding: 14px; border-radius: 16px; color: #fff; background: var(--green-dark); box-shadow: var(--shadow); }
.compact-reference-hub > header { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding: 3px 5px 12px; }
.compact-reference-hub > header h2 { margin: 0; font-size: clamp(20px, 2.6vw, 27px); }
.compact-reference-hub > header p { max-width: 420px; margin: 0; color: #d7e5db; font-size: 12px; text-align: right; }
.compact-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.compact-reference-grid > section { min-width: 0; padding: 0; }
.compact-reference-grid > .reference-library,
.compact-reference-grid > .equipment-library { padding: 0; }
.compact-reference-grid > section:has(> details[open]) { grid-column: 1 / -1; }
.compact-reference-grid > section > details { height: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; box-shadow: none; background: #fff; }
.compact-reference-grid > section > details:not([open]) { background: transparent; }
.compact-reference-grid > section > details > summary { min-height: 62px; padding: 11px 13px; border-radius: 9px; color: #fff; background: #1d684d; }
.compact-reference-grid > section > details:not([open]) > summary { height: 100%; display: grid; grid-template-rows: 1fr auto; align-content: stretch; align-items: start; }
.compact-reference-grid > section > details:not([open]) > summary .equipment-total { align-self: end; justify-self: start; margin-top: 10px; }
.compact-reference-grid > section > details[open] > summary { border-radius: 9px 9px 0 0; background: var(--green); }
.compact-reference-grid > section > details > summary strong { font-size: 14px; line-height: 1.25; }
.compact-reference-grid > section > details > summary small { font-size: 10px; line-height: 1.2; }
.compact-reference-grid .equipment-total { font-size: 10px; }
.compact-reference-grid .reference-content, .compact-reference-grid .equipment-content { padding: 16px; }

.method { margin: 14px 0 8px; padding: 10px 0 4px; border-top: 1px solid var(--hc-line); }
.method > .eyebrow { margin: 0 0 2px; font-size: 9px; }
.method > h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.method-grid { margin-top: 9px; gap: 7px; }
.method article { padding: 9px 11px; border-top-width: 2px; border-radius: 6px; }
.method article > span { font-size: 9px; }
.method h3 { margin: 2px 0 3px; font-size: 13px; }
.method article p { font-size: 11px; line-height: 1.35; }

@media (max-width: 760px) {
  .support-grid, .support-legal { grid-template-columns: 1fr; }
  .help-glossary-grid { grid-template-columns: 1fr; }
  .support-hero { display: block; }
  .support-icon { margin-bottom: 14px; }
  .support-legal details:last-child { grid-column: auto; }
  #support .support-legal { grid-template-columns: 1fr; }
  .compact-reference-hub { width: 100%; padding: 11px; }
  .compact-reference-hub > header { display: block; }
  .compact-reference-hub > header p { margin-top: 4px; text-align: left; }
  .compact-reference-grid { grid-template-columns: 1fr 1fr; }
  .compact-reference-grid > section:has(> details[open]) { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  #support.support-section { padding: 16px; }
  #support .support-grid { grid-template-columns: 1fr; }
  .compact-reference-grid { grid-template-columns: 1fr 1fr; }
  .compact-reference-grid:not(:has(> section > details[open])) { grid-auto-rows: 1fr; }
  .method-grid { gap: 5px; }
  .method article { padding: 7px; }
  .method article p { font-size: 9px; }
  .method h3 { font-size: 11px; }
}

@media (max-width: 520px) {
  .header-support-button { margin: 2px 8px 0 0; padding: 9px 12px; font-size: 12px; }
}

.legal-page { width: min(980px, calc(100% - 32px)); margin: 42px auto 70px; }
.legal-back { display: inline-flex; margin-bottom: 24px; color: var(--hc-teal); font-weight: 800; text-decoration: none; }
.legal-heading { margin-bottom: 28px; }
.legal-heading h1 { margin: 5px 0 10px; color: var(--hc-navy); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.legal-heading > p:last-child { color: #66778a; }
.legal-card { margin-top: 18px; padding: clamp(22px, 4vw, 36px); border: 1px solid #dfe6e1; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(12, 39, 77, .07); }
.legal-card h2 { margin: 0 0 16px; color: var(--hc-navy); }
.legal-card p { margin: 10px 0; color: #405368; line-height: 1.7; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-links a { padding: 10px 14px; border-radius: 9px; color: var(--hc-teal); background: #eef7f7; font-weight: 800; text-decoration: none; }

/* Accessibility and responsive hardening. */
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #087d83;
  outline-offset: 3px;
}
.field small { color: #52657a; }
.field-error { display: block; margin-top: 5px; color: #8a2018 !important; font-weight: 750; line-height: 1.4; }
[aria-invalid="true"] { border-color: #a82f22 !important; box-shadow: 0 0 0 2px rgba(168, 47, 34, .16); }
.result-methodology { margin-top: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--hc-line); border-radius: 1rem; background: #fff; }
.result-methodology > h3 { margin-top: 0; }
.result-methodology .energy-flow { box-shadow: none; }
.compact-reference-grid,
.compact-reference-grid > section,
.compact-reference-grid > section > details,
.compact-reference-grid .reference-content,
.compact-reference-grid .equipment-content,
.compact-reference-grid .table-wrap { min-width: 0; max-width: 100%; }
.compact-reference-grid details:not([open]) > :not(summary) { display: none !important; }
summary, .equipment-jump, .add-current-source, .remove-current-source,
.header-support-button, .locale-picker select { min-height: 44px; }

@media (max-width: 900px) {
  .all-options-scroll-hint { display: block; font-size: .9rem; }
}

@media (max-width: 1120px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; justify-content: flex-start; }
  .locale-picker { margin-left: auto; }
}

@media (max-width: 600px) {
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 5px 10px; }
  .workflow-step { min-width: 0; min-height: 44px; font-size: 13px; }
  input, select, button { min-height: 44px; }
  input, select { font-size: 16px; }
  .method article p { font-size: 15px; line-height: 1.45; }
  .method h3 { font-size: 15px; }
}

@media (max-width: 520px) {
  .site-header { align-items: center; }
  .header-support-button { display: none; }
  .brand-copy > small { display: none; }
  .site-nav { order: initial; width: 100%; margin-left: 0; overflow-x: auto; gap: 18px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .locale-picker { margin-left: auto; }
  .locale-picker select { font-size: 16px; }
  .compact-reference-grid:not(:has(> section > details[open])) { grid-auto-rows: 1fr; }
  #support .support-legal-card a,
  #support .support-legal-card a:visited,
  #support .support-legal-card a:hover,
  #support .support-legal-card a:focus-visible { color: #111; }
  .method-grid { gap: 5px; }
  .method article { padding: 7px; }
  .method article p { font-size: 9px; line-height: 1.35; }
  .method h3 { font-size: 11px; }
}
