.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #f6a86f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .75px;
  text-transform: uppercase;
}

.calc-grid,
.calc-grid > *,
.panel,
.field,
.field-grid-2 > *,
.source-strip > div {
  min-width: 0;
}

.page-hero h1,
.page-hero p,
.source-strip,
.field-hint,
.inline-help {
  overflow-wrap: anywhere;
}

.inp {
  min-width: 0;
  max-width: 100%;
}

body .main-content {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

.app-wrap {
  padding-bottom: 14px;
}

.main-content + .info-section {
  padding-top: 18px;
}

.inp-wrap.has-stepper .inp {
  padding-right: 106px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.inp-wrap.has-stepper .inp::-webkit-inner-spin-button,
.inp-wrap.has-stepper .inp::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.inp-wrap.has-stepper .inp-euro,
.inp-wrap.has-stepper .inp-suffix {
  right: 75px;
}

.stepper-controls {
  position: absolute;
  top: 50%;
  right: 4px;
  z-index: 2;
  display: flex;
  gap: 3px;
  transform: translateY(-50%);
}

.stepper-button {
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  border: 1px solid #d5d9de;
  border-radius: 5px;
  background: #fff;
  color: #30455e;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.stepper-button:hover {
  border-color: var(--c-accent);
  background: #fff7f0;
  color: var(--c-accent);
}

.stepper-button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}

.stepper-button:active {
  transform: translateY(1px);
}

.source-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 12px;
  line-height: 1.55;
}

.source-strip__icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.inp-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.compact-hint { margin-top: -8px; margin-bottom: 8px; }

.field-period {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.income-fields {
  row-gap: 0;
}

.income-fields > .field {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  margin-bottom: 0;
}

.area-limit-notice {
  margin-top: 7px;
  padding: 8px 10px;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  background: #fffbeb;
  color: #7c4a03;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.help-toggle {
  margin-top: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed #4d6c8f;
  background: none;
  color: #365b83;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.inline-help {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid #60a5fa;
  border-radius: 0 6px 6px 0;
  background: #f8fbff;
  color: #4c6076;
  font-size: 11px;
  line-height: 1.6;
}

.advanced-settings {
  margin-top: 16px;
  border-top: 1px solid var(--c-border);
}

.advanced-settings summary {
  padding: 13px 0 0;
  color: #4c6076;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.advanced-settings__body { padding-top: 13px; }

.result-period {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.result-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.result-status--zero {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.summary-bar--3 { grid-template-columns: repeat(3, 1fr); }
.heating-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.calculation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calculation-card {
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: #fff;
}

.calculation-card h3 {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-border);
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf1f5;
  color: #59697b;
  font-size: 12px;
}

.calc-row:last-child { border-bottom: 0; }
.calc-row span { line-height: 1.45; }
.calc-row span { min-width: 0; overflow-wrap: anywhere; }
.calc-row small { display: block; margin-top: 2px; color: #8794a2; font-size: 10px; }
.calc-row strong { flex-shrink: 0; color: #26384a; font-family: var(--font-mono); font-size: 12px; }
.calc-row strong.positive { color: #15803d; }
.calc-row strong.text-value {
  max-width: 48%;
  color: #365b83;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
  white-space: normal;
}

.calc-row--emphasis {
  background: #f0f7ff;
  color: #26384a;
  font-weight: 600;
}

.calc-row--total {
  background: #f8fafc;
  color: #26384a;
  font-weight: 600;
}

.important-result-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  font-size: 12px;
  line-height: 1.6;
}

.important-result-note__icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
}

.important-result-note p { margin: 2px 0 0; }

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.primary-action { background: var(--c-navy); color: #fff; }
.secondary-action { border: 1px solid var(--c-border); background: #fff; color: #365b83; }
.primary-action:hover, .secondary-action:hover { transform: translateY(-1px); }

.info-section--tight { padding-top: 12px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
}

.step-number {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 7px;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.step-card h3,
.example-box h3,
.content-columns h3,
.factor-grid h3 {
  margin: 0 0 7px;
  color: #26384a;
  font-size: 14px;
}

.step-card p,
.example-box p,
.content-columns p,
.factor-grid p {
  margin: 0;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 1.7;
}

.formula-box {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--c-navy);
  color: #fff;
}

.formula-box__label {
  display: block;
  margin-bottom: 7px;
  color: #f6a86f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.formula-box strong { font-size: 13px; line-height: 1.65; }
.formula-box p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.7; }

.example-box {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  padding: 20px;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

.example-box ol { margin: 0; padding-left: 20px; color: #526274; font-size: 12px; line-height: 1.9; }
.example-box strong { color: #26384a; }

.income-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
}

.income-table {
  width: 100%;
  border-collapse: collapse;
  color: #526274;
  font-size: 12px;
}

.income-table th,
.income-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e9eef3;
  text-align: left;
}

.income-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.income-table tbody tr:last-child td { border-bottom: 0; }
.income-table td:nth-child(2) strong { color: #15803d; }

.income-note {
  margin-top: 10px;
  padding: 11px 13px;
  border-left: 3px solid #60a5fa;
  border-radius: 0 7px 7px 0;
  background: #f5f9ff;
  color: #526274;
  font-size: 11px;
  line-height: 1.6;
}

.period-guide,
.result-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.period-guide article,
.result-guide article {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: #fff;
}

.period-guide article > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: #eff6ff;
  color: #2563eb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.period-guide h3,
.result-guide h3 {
  margin: 0 0 5px;
  color: #26384a;
  font-size: 13px;
}

.period-guide p,
.result-guide p {
  margin: 0;
  color: var(--c-muted);
  font-size: 11px;
  line-height: 1.65;
}

.result-guide article {
  display: block;
  border-top: 3px solid #f2a26b;
}

.worked-note {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  background: #f8fafc;
  color: #526274;
  font-size: 12px;
  line-height: 1.7;
}

.worked-note strong { color: #26384a; }

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.factor-grid article {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: #fff;
}

.factor-grid article > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #fff3eb;
  color: var(--c-accent);
  font-size: 16px;
  font-weight: 700;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.content-columns > div {
  padding: 18px;
  border-left: 3px solid #f2a26b;
  border-radius: 0 8px 8px 0;
  background: #fff8f3;
}

.content-columns p + p { margin-top: 9px; }
.content-columns a { color: #a6480c; font-weight: 700; }

.sources-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
}

.sources-box h2 { margin-bottom: 8px; }
.sources-box p { margin: 0; color: var(--c-muted); font-size: 12px; line-height: 1.7; }
.sources-box ul { margin: 0; padding-left: 18px; color: #6b7b8d; font-size: 12px; line-height: 1.65; }
.sources-box li + li { margin-top: 7px; }
.sources-box a { color: #365b83; font-weight: 600; }
.content-review { margin: 9px 0 0; color: #8995a2; font-size: 10px; text-align: right; }

@media (max-width: 800px) {
  .calculation-grid,
  .steps-grid,
  .formula-box,
  .example-box,
  .factor-grid,
  .content-columns,
  .sources-box,
  .period-guide,
  .result-guide { grid-template-columns: 1fr; }

  .summary-bar--3,
  .heating-summary { grid-template-columns: 1fr 1fr; }
  .formula-box { gap: 12px; }
}

@media (max-width: 600px) {
  .field-grid-2 { grid-template-columns: 1fr; }
  .income-fields { row-gap: 10px; }
  .income-fields > .field {
    display: block;
    grid-row: auto;
  }
  .compact-hint { margin-top: 0; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  .calc-row { align-items: flex-start; }
  .source-strip { font-size: 11px; }
  .heating-summary { grid-template-columns: 1fr; }
}

@media print {
  .source-strip, .result-actions, .help-toggle, .advanced-settings, .faq-section, .footer { display: none !important; }
  .results-panel { border: 0; box-shadow: none; }
}
