:root {
  --brand: #005950;
  --brand-deep: #003f39;
  --brand-panel: #0b665b;
  --lime: #accf33;
  --lime-soft: #edf5d2;
  --yellow: #f2c500;
  --yellow-soft: #fff6cc;
  --white: #ffffff;
  --ink: #17352f;
  --muted: #5e746f;
  --line: #d7e4df;
  --soft: #f3f7f5;
  --danger: #a43c2d;
  --radius: 8px;
  --shadow: 0 12px 28px rgba(0, 63, 57, 0.12);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(242, 197, 0, 0.7);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--brand-deep);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brand);
  border-top: 6px solid var(--lime);
  box-shadow: 0 4px 14px rgba(0, 63, 57, 0.18);
}

.topbar__inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--white);
  text-decoration: none;
  display: grid;
  gap: 1px;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
}

.brand__label {
  color: #d7e8e4;
  font-size: 13px;
}

.topbar__total {
  color: #d7e8e4;
  text-align: right;
  font-size: 12px;
}

.topbar__total strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.section-nav {
  position: sticky;
  top: 74px;
  z-index: 25;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-nav__inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav a {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.section-nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--lime);
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 92px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.content {
  min-width: 0;
}

.heating-question {
  margin: 0 0 24px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 2px solid var(--brand);
  border-left: 8px solid var(--lime);
  border-radius: var(--radius);
  scroll-margin-top: 142px;
}

.heating-question__eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.heating-question h1 {
  margin: 5px 0 6px;
  font-size: 25px;
  line-height: 1.16;
}

.heating-question p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.heating-question__choices {
  grid-auto-columns: minmax(150px, 1fr);
}

.calculator-section {
  margin: 0 0 44px;
  scroll-margin-top: 142px;
}

.section-heading {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  overflow: hidden;
  background: var(--brand);
  color: var(--white);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
}

.section-heading > div {
  padding: 25px 28px;
  align-self: center;
}

.section-heading__step {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h1,
.section-heading h2 {
  margin: 7px 0 9px;
  max-width: 650px;
  font-size: 32px;
  line-height: 1.1;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: #dbeae7;
}

.section-heading img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
}

.section-body {
  margin-top: 18px;
}

.option-group + .option-group {
  margin-top: 26px;
}

.option-group__heading {
  min-height: 38px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.option-group__heading h3 {
  margin: 0;
  font-size: 20px;
}

.clear-section {
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.option-card:hover {
  border-color: #91b129;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.option-card.is-selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(172, 207, 51, 0.22), var(--shadow);
}

.option-card__select {
  width: 100%;
  min-height: 108px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 13px;
}

.option-card__check,
.checkbox {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #8aa09a;
  background: var(--white);
}

.option-card.is-selected .option-card__check,
.addon-row.is-selected .checkbox {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: inset 0 0 0 5px var(--white);
}

.option-card__body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.option-card__badge {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

#fotowoltaika .option-card__badge {
  font-size: 15px;
  line-height: 1.25;
}

.option-card__body > strong {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.22;
}

.option-card__price {
  color: var(--brand);
  font-size: 19px;
  font-weight: 800;
}

.option-card__dependency {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.option-card ul {
  margin: 0;
  padding: 0 20px 14px 45px;
  color: var(--muted);
  font-size: 13px;
}

.option-card li + li {
  margin-top: 5px;
}

.catalog-link {
  min-height: 42px;
  margin: auto 16px 16px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--brand);
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-link:hover {
  background: var(--brand);
  color: var(--white);
}

.option-grid--compact .option-card__select {
  min-height: 116px;
}

.info-band,
.notice-band {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 5px solid var(--brand);
  background: #eaf2ef;
}

.notice-band {
  border-left-color: var(--yellow);
  background: var(--yellow-soft);
}

.info-band > strong,
.notice-band > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 13px;
}

.info-band ul,
.notice-band ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.info-band li + li,
.notice-band li + li {
  margin-top: 4px;
}

.addons {
  margin-top: 26px;
}

.subheading {
  margin-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.subheading span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.subheading h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.subheading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.addon-list {
  display: grid;
  gap: 8px;
}

.addon-row {
  min-height: 68px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid transparent;
}

.addon-row.is-selected {
  border-left-color: var(--lime);
}

.addon-row.is-disabled {
  background: #eef2f0;
  opacity: 0.66;
}

.addon-row__toggle {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.addon-row__toggle:disabled {
  cursor: not-allowed;
}

.addon-row__toggle span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.addon-row__toggle strong {
  overflow-wrap: anywhere;
}

.addon-row small {
  color: var(--muted);
}

.addon-row__amount {
  white-space: nowrap;
}

.quantity-field {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-field input {
  width: 66px;
  min-height: 42px;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
  font-weight: 800;
}

.side-summary {
  position: sticky;
  top: 138px;
  overflow: hidden;
  background: var(--brand);
  color: var(--white);
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-summary__eyebrow {
  padding: 16px 18px 0;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.side-summary h2 {
  margin: 3px 18px 15px;
  font-size: 25px;
}

.side-summary__metric {
  margin: 0 18px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.side-summary__metric span {
  color: #dbeae7;
  font-size: 12px;
}

.side-summary__metric strong {
  font-size: 15px;
}

.side-summary__metric--discount strong {
  color: var(--lime);
}

.side-summary__total {
  margin-top: 4px;
  padding: 17px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  background: var(--yellow);
  color: var(--brand-deep);
}

.side-summary__total span {
  font-size: 12px;
  font-weight: 800;
}

.side-summary__total strong {
  font-size: 21px;
}

.side-summary__link {
  min-height: 46px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.final-summary {
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

.final-summary__heading {
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--brand);
  color: var(--white);
}

.final-summary__heading h2 {
  margin: 5px 0 4px;
  font-size: 30px;
}

.final-summary__heading p {
  margin: 0;
  color: #dbeae7;
}

.button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.button--quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.button--quiet:hover {
  background: var(--white);
  color: var(--brand);
}

.button--primary {
  background: var(--brand);
  color: var(--white);
}

.button--primary:hover {
  background: var(--brand-deep);
}

.button--secondary {
  background: var(--white);
  border-color: var(--brand);
  color: var(--brand);
}

.button--secondary:hover {
  background: var(--soft);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.location-row {
  min-height: 72px;
  margin: 20px 22px 0;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.location-row:has(input:checked) {
  border-color: var(--lime);
  background: var(--lime-soft);
}

.location-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--brand);
}

.location-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.location-row small {
  color: var(--muted);
}

.location-row__price {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

.investment-details {
  margin: 20px 22px 0;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.investment-details label { font-weight: 800; }
.investment-details label span { color: var(--danger); }
.investment-details input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.investment-details input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.investment-details small { color: var(--muted); }

.payment-choice {
  margin: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.payment-choice__label {
  font-weight: 800;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100px, 1fr);
  border: 1px solid var(--brand);
}

.segmented button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-right: 1px solid var(--brand);
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--white);
}

.segmented--small {
  grid-auto-columns: 54px;
}

.segmented--small button {
  min-height: 38px;
  padding: 7px 9px;
}

.final-empty {
  margin: 0 22px 22px;
  padding: 24px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.final-lines {
  margin: 0 22px;
  border-top: 1px solid var(--line);
}

.final-line {
  min-height: 64px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.final-line__category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.final-line__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.final-line__amount {
  color: var(--brand);
  white-space: nowrap;
}

.pricing-breakdown {
  margin: 22px;
  padding: 18px;
  background: var(--soft);
}

.pricing-breakdown > div {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pricing-breakdown > div span {
  color: var(--muted);
}

.pricing-breakdown__discount strong {
  color: var(--brand);
}

.pricing-breakdown .pricing-breakdown__total {
  min-height: 54px;
  margin-top: 9px;
  padding-top: 12px;
  border-top: 2px solid var(--brand);
}

.pricing-breakdown__total span,
.pricing-breakdown__total strong {
  color: var(--brand-deep) !important;
  font-size: 21px;
  font-weight: 800;
}

.fine-print {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.warning {
  margin: 11px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft);
  color: #5c4b00;
  font-size: 13px;
}

.installment-controls {
  margin: 0 22px 22px;
  padding: 18px;
  border: 1px solid var(--line);
}

.installment-controls__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.installment-controls__heading > div:first-child {
  display: grid;
  gap: 2px;
}

.installment-controls__heading span {
  color: var(--muted);
  font-size: 13px;
}

.installment-result {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.installment-result > div {
  min-width: 0;
  padding: 14px 13px 4px 0;
  display: grid;
  gap: 4px;
}

.installment-result span {
  color: var(--muted);
  font-size: 12px;
}

.installment-result strong {
  overflow-wrap: anywhere;
  color: var(--brand);
  font-size: 18px;
}

.installment-result__main strong {
  font-size: 22px;
}

.final-actions {
  padding: 16px 22px 22px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.export-status {
  min-height: 28px;
  margin: -12px 22px 20px;
  color: var(--muted);
  text-align: right;
  font-size: 15px;
}

.export-status.is-busy { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--brand); }
.export-status.is-busy::before { content: ""; width: 22px; height: 22px; flex: 0 0 22px; border: 3px solid #d7e4df; border-top-color: #005950; border-radius: 50%; animation: export-spin .85s linear infinite; }
@keyframes export-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .export-status.is-busy::before { animation: none; } }
.archive-mode-note { margin: 0 22px 24px; padding: 12px 14px; border-left: 3px solid #b87800; background: #fff7df; color: #513900; font-size: 15px; line-height: 1.5; }
@media print { .archive-mode-note { display: none; } }

.mobile-total {
  display: none;
}

.collapsible-section { margin-bottom: 14px; }
.collapsible-section .section-heading {
  min-height: 100px;
  grid-template-columns: 18px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 2px solid var(--lime);
  border-radius: 0;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}
.section-disclosure::-webkit-details-marker { display: none; }
.section-disclosure::before { content: "\25B8"; font-size: 22px; text-align: center; }
details[open] > .section-disclosure::before { content: "\25BE"; }
.section-disclosure:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.collapsible-section .section-heading > div { padding: 0; min-width: 0; }
.collapsible-section .section-heading h2 { font-size: 22px; margin: 4px 0; overflow-wrap: anywhere; }
.collapsible-section .section-heading img { width: 96px; height: 76px; min-height: 0; object-fit: cover; order: 0; }
.collapsible-section .section-heading p { display: none; }
.collapsible-section details[open] .section-heading p { display: block; margin: 6px 0; font-size: 14px; }
.section-selection { display: block; font-size: 13px; color: #dbeae7; }
.section-panel { padding: 6px 0 18px; }
.collapsible-section.is-disabled .section-heading { background: #e1e6e4; color: var(--muted); cursor: not-allowed; border-color: #bbc9c4; }
.collapsible-section.is-disabled .section-selection,
.collapsible-section.is-disabled .section-heading__step { color: #4a615b; }
.collapsible-section.is-disabled img { opacity: .45; }
@media (max-width: 720px) {
  .heating-question__choices button { min-width: 0; padding: 10px 8px; font-size: 15px; overflow-wrap: anywhere; }
  .collapsible-section { margin-bottom: 12px; }
  .collapsible-section .section-heading { grid-template-columns: 14px minmax(0, 1fr) 64px; gap: 8px; padding: 12px; }
  .collapsible-section .section-heading h2 { font-size: 19px; line-height: 1.2; }
  .collapsible-section .section-heading img { width: 64px; height: 64px; }
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .side-summary {
    display: none;
  }

  .mobile-total {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 70px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--brand-deep);
    color: var(--white);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
  }

  .mobile-total div {
    min-width: 0;
    display: grid;
  }

  .mobile-total span {
    color: #cfe1dd;
    font-size: 12px;
  }

  .mobile-total strong {
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .mobile-total a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    background: var(--lime);
    color: var(--brand-deep);
    text-decoration: none;
    font-weight: 800;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 128px;
  }

  .topbar__inner,
  .section-nav__inner,
  .shell {
    width: min(100% - 24px, 1220px);
  }

  .topbar__inner {
    min-height: 60px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__label {
    font-size: 12px;
  }

  .topbar__total strong {
    font-size: 16px;
  }

  .section-nav {
    top: 66px;
  }

  .section-nav a {
    min-height: 43px;
    padding: 0 10px;
    font-size: 12px;
  }

  .shell {
    margin-top: 14px;
  }

  .calculator-section {
    margin-bottom: 32px;
    scroll-margin-top: 124px;
  }

  .heating-question {
    padding: 18px 16px;
    grid-template-columns: 1fr;
    gap: 14px;
    scroll-margin-top: 124px;
  }

  .heating-question h1 {
    font-size: 22px;
  }

  .heating-question__choices {
    grid-auto-columns: 1fr;
  }

  .section-heading {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .section-heading > div {
    padding: 20px 17px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading img {
    min-height: 0;
    height: 148px;
    order: -1;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .option-card__select,
  .option-grid--compact .option-card__select {
    min-height: 96px;
    padding: 16px 14px;
  }

  .option-card__body > strong {
    font-size: 17px;
  }

  .option-card ul {
    padding-left: 41px;
  }

  .subheading {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .addon-row {
    align-items: stretch;
  }

  .quantity-field {
    flex-direction: column;
    align-items: end;
    justify-content: center;
    gap: 2px;
  }

  .final-summary__heading {
    align-items: start;
    flex-direction: column;
    padding: 20px 18px;
  }

  .final-summary__heading h2 {
    font-size: 26px;
  }

  .location-row {
    margin: 16px 14px 0;
    grid-template-columns: 22px 1fr;
  }

  .investment-details { margin: 16px 14px 0; }

  .location-row__price {
    grid-column: 2;
  }

  .payment-choice {
    margin: 16px 14px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .segmented {
    width: 100%;
  }

  .final-empty,
  .final-lines {
    margin-left: 14px;
    margin-right: 14px;
  }

  .final-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .final-line__category {
    grid-column: 1 / -1;
  }

  .pricing-breakdown,
  .installment-controls {
    margin: 18px 14px;
    padding: 14px;
  }

  .pricing-breakdown > div {
    align-items: start;
  }

  .pricing-breakdown > div span {
    padding-right: 12px;
  }

  .pricing-breakdown__total span,
  .pricing-breakdown__total strong {
    font-size: 18px;
  }

  .installment-controls__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .installment-result {
    grid-template-columns: 1fr;
  }

  .installment-result > div {
    grid-template-columns: 1fr auto;
    align-items: end;
    border-bottom: 1px solid var(--line);
  }

  .final-actions {
    padding: 16px 14px 20px;
  }

  .final-actions .button {
    flex: 1 1 150px;
  }

  .export-status {
    margin-left: 14px;
    margin-right: 14px;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .topbar__inner {
    gap: 10px;
  }

  .brand__label {
    display: none;
  }

  .topbar__total span {
    font-size: 10px;
  }

  .topbar__total strong {
    font-size: 14px;
  }

  .addon-row__toggle {
    gap: 8px;
  }

  .addon-row small {
    font-size: 11px;
  }

  .mobile-total {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .topbar,
  .section-nav,
  .calculator-section:not(.final-summary),
  .side-summary,
  .mobile-total,
  .final-actions,
  .location-row,
  .payment-choice,
  #clear-offer {
    display: none !important;
  }

  .export-status {
    display: none !important;
  }

  .shell,
  .workspace {
    width: 100%;
    margin: 0;
    display: block;
  }

  .final-summary {
    border: 0;
  }

  .final-summary__heading {
    color: var(--white);
    print-color-adjust: exact;
  }

  .pricing-breakdown,
  .warning {
    print-color-adjust: exact;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Selected product documentation belongs to the offer, not the pricing table. */
.offer-catalogs { margin: 24px 0; padding: 20px 0; border-top: 1px solid #d7e4df; }
.offer-catalogs h3 { font-size: 20px; margin: 0 0 12px; }
.offer-catalogs__list { list-style: none; padding: 0; margin: 0; }
.offer-catalogs__list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid #d7e4df; overflow-wrap: anywhere; }
.offer-catalogs__list strong { font-size: 16px; }
.offer-catalogs__list span, .offer-catalogs__list small { font-size: 14px; }
.offer-catalogs__list small { grid-column: 1 / -1; color: #5e746f; }
.offer-catalogs__list a { color: #005950; font-size: 14px; }
@media (max-width: 600px) { .offer-catalogs__list li { grid-template-columns: 1fr; } }
