:root {
  --ink: #173346;
  --muted: #52646f;
  --line: #c9d4da;
  --paper: #f3f5f6;
  --red: #b9151b;
  --red-dark: #8f1116;
  --data: #1b6290;
  --page: 1200px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 74px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.65 Verdana, Geneva, sans-serif;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: #155d80; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, summary, .table-scroll):focus-visible {
  outline: 3px solid var(--data);
  outline-offset: 4px;
}
input[type="checkbox"] { accent-color: var(--red); }
h1, h2, h3, h4, legend {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  color: var(--ink);
}
h1 { margin: 0 0 24px; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.025em; max-width: 25ch; }
h2 { font-size: clamp(24px, 2.8vw, 30px); margin: 0 0 22px; }
h3 { font-size: 21px; margin: 0 0 13px; }
h4 { font-size: 18px; margin: 24px 0 10px; }
p { margin: 0 0 17px; max-width: 79ch; }
ul, ol { padding-left: 25px; margin: 12px 0 22px; }
li { margin: 7px 0; }
strong { font-weight: 700; }
.quiet { color: var(--muted); font-size: 13px; line-height: 1.6; }
.lead { font-size: 17px; line-height: 1.65; }
.skip { position: fixed; top: -120px; left: 18px; z-index: 100; padding: 12px 18px; background: var(--red); color: #fff; }
.skip:focus { top: 10px; }
.site-header {
  max-width: var(--page);
  margin: auto;
  padding: 20px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand { display: block; width: 220px; height: auto; }
.site-header > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; color: var(--muted); font-size: 13px; }
.site-header > div a { font: 700 24px/1.3 Arial, sans-serif; color: var(--ink); text-decoration: none; }
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-block: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.guide-nav a { flex: 0 0 auto; padding: 14px 22px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 700; }
.guide-nav a:hover, .guide-nav a[aria-current] { color: var(--red); background: var(--paper); }
main { width: min(100%, var(--page)); min-width: 0; padding: 0 24px 46px; margin: auto; }
main > section { margin-top: 60px; padding-top: 36px; border-top: 2px solid var(--line); min-width: 0; scroll-margin-top: 74px; }
.preview-banner, .preview-notice { margin: 22px 0 0; padding: 12px 16px; border-left: 4px solid #956216; background: #fff8e9; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 48px 0 20px; }
.hero-copy { min-width: 0; }
.hero-copy > .quiet { margin-top: 22px; }
.hero-actions { display: flex; gap: 19px; flex-wrap: wrap; align-items: center; }
.button, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.button:hover, button:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button.secondary { background: #fff; color: var(--red); }
.button.secondary:hover { color: #fff; background: var(--red); }
button[disabled] { cursor: default; opacity: .55; }
.hero-devices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: end; min-width: 0; }
figure { margin: 0; }
.hero-devices figure { min-width: 0; text-align: center; }
.hero-device { display: block; width: 100%; height: 285px; object-fit: contain; object-position: center bottom; margin-bottom: 18px; }
.hero-devices figcaption { padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.hero-devices figcaption strong, .hero-devices figcaption span { display: block; }
.hero-devices figcaption strong { font-family: Arial, sans-serif; font-size: 16px; margin-bottom: 4px; }
.hero-devices figcaption span { color: var(--muted); }
.two-decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.two-decisions > div { border-top: 3px solid var(--ink); padding-top: 18px; min-width: 0; }
.note { max-width: none; margin: 20px 0; padding: 15px 19px; border-left: 4px solid #6d8491; background: var(--paper); line-height: 1.65; }
.note > p:last-child { margin-bottom: 0; }
.compare-presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.compare-presets button { background: #fff; color: var(--red); }
.compare-presets button:hover, .compare-presets button[aria-pressed="true"], .compare-presets button.is-active { background: var(--red); color: #fff; }
.model-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 20px; padding: 13px 17px 17px; margin: 16px 0; border: 1px solid var(--line); min-width: 0; }
.model-choices legend { padding: 0 8px; font-size: 18px; font-weight: 700; }
.model-choices label { display: flex; align-items: flex-start; gap: 9px; min-height: 40px; padding: 7px 0; cursor: pointer; font-size: 13px; line-height: 1.5; }
.model-choices input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; }
.compare-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 4px 0 15px; }
.compare-options label { display: inline-flex; gap: 9px; align-items: center; min-height: 36px; cursor: pointer; }
.compare-options input { width: 18px; height: 18px; margin: 0; }
#compare-status { color: var(--muted); font-size: 13px; }
#compare-empty button { margin: 8px 0 0 10px; }
.table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow: auto; max-height: 78vh; border: 1px solid var(--line); isolation: isolate; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: auto; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; line-height: 1.55; }
caption { padding: 12px 15px; text-align: left; font-weight: 700; background: #fff; }
th, td { padding: 14px 13px; text-align: left; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
tr > :last-child { border-right: 0; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { position: sticky; top: 0; z-index: 3; background: #e8eef1; vertical-align: bottom; }
tbody tr:nth-child(even) > td { background: #f6f8f9; }
#model-table { --shown: 6; --label-col: 220px; --model-col: 190px; width: max(100%, calc(var(--label-col) + var(--shown) * var(--model-col))); min-width: calc(var(--label-col) + var(--shown) * var(--model-col)); table-layout: fixed; }
#model-table tr > :first-child { width: var(--label-col); position: sticky; left: 0; z-index: 2; background: #fff; border-right: 2px solid #aebfc8; }
#model-table thead tr > :first-child { z-index: 5; background: #e8eef1; }
#model-table tr > [data-sku] { width: calc((100% - var(--label-col)) / max(1, var(--shown))); }
#model-table tbody tr:nth-child(even) > th { background: #f6f8f9; }
#model-table th small { display: block; margin-top: 8px; font-size: 11px; font-weight: 400; line-height: 1.5; color: var(--muted); }
#model-table thead th a { display: block; font-size: 14px; line-height: 1.45; }
#model-table td [data-price-sku] { font-weight: 700; font-variant-numeric: tabular-nums; white-space: normal; }
.compare-photo { display: block; width: 118px; height: 132px; object-fit: contain; margin: 0 auto 15px; }
.local-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin: 26px 0; }
.local-panels figure { display: grid; grid-template-columns: minmax(100px, 35%) 1fr; gap: 20px; min-width: 0; align-items: start; }
.panel-photo { display: block; width: 100%; height: 280px; object-fit: contain; object-position: top center; }
.local-panels figcaption h3 { font-size: 20px; }
.local-panels figcaption p { font-size: 14px; }
.scenario-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.scenario-list article { min-width: 0; border-top: 3px solid var(--red); padding-top: 19px; }
.scenario-list h3 { font-size: 20px; min-height: 2.5em; }
.scenario-list p, .scenario-list li { font-size: 13px; }
.scenario-list .result { padding-top: 15px; border-top: 1px solid var(--line); }
.wiring-choice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 18px; }
.wiring-choice button { background: #fff; color: var(--red); }
.wiring-choice button[aria-pressed="true"], .wiring-choice button:hover { color: #fff; background: var(--red); }
.wiring-figure { border: 1px solid var(--line); padding: 14px; background: #fff; }
.wiring-image { display: block; width: 100%; height: auto; aspect-ratio: 1120 / 760; object-fit: contain; background: #fff; }
.wiring-figure figcaption { padding: 14px 8px 3px; font-size: 14px; color: var(--muted); max-width: none; }
.diagram-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; max-width: none; margin: 18px 0 30px; }
.wiring-notes { margin-top: 26px; }
dl { display: grid; grid-template-columns: minmax(130px, 22%) 1fr; gap: 0 22px; margin: 0; }
dt { padding: 11px 0; border-top: 1px solid var(--line); font-weight: 700; }
dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.wiring-notes dt:nth-of-type(-n+2) { color: var(--red); }
.wiring-notes dt:nth-of-type(3) { color: var(--data); }
.safety { max-width: none; padding: 16px 18px; background: #fff8ed; border-left: 4px solid #956216; font-size: 13px; }
.source-links { font-size: 13px; max-width: none; }
details { border-bottom: 1px solid var(--line); margin: 0; }
details > summary { cursor: pointer; padding: 18px 0; font-weight: 700; line-height: 1.5; }
details > :not(summary) { margin-top: 8px; }
details > p, details > ul { margin-bottom: 23px; }
details[open] > summary { color: var(--red); }
.control { border: 0; border-bottom: 1px solid var(--line); }
.control:first-of-type { border-top: 1px solid var(--line); }
.control > summary { display: grid; grid-template-columns: 104px minmax(0, 1fr) 24px; gap: 19px; align-items: center; min-height: 116px; padding: 18px 14px 18px 4px; list-style: none; }
.control > summary::-webkit-details-marker { display: none; }
.control > summary::after { content: "+"; font: 400 28px/1 Arial, sans-serif; color: var(--red); text-align: center; }
.control[open] > summary { background: var(--paper); }
.control[open] > summary::after { content: "−"; }
.control summary strong { display: block; font: 700 19px/1.35 Arial, sans-serif; color: var(--ink); }
.control summary small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.control-photo { width: 100px; height: 80px; object-fit: contain; display: block; }
.control-photo-empty { display: flex; justify-content: center; align-items: center; padding: 9px; color: var(--muted); border: 1px dashed var(--line); font: 11px/1.45 Verdana, sans-serif; text-align: center; background: #fff; }
img.control-photo[src="None"], img.control-photo[src="null"], img.control-photo[src=""] { display: none !important; }
.control-content { padding: 17px 28px 26px 127px; }
.control-content p, .control-content li, .control-content dd { max-width: 80ch; }
.control-content h4 { font-size: 17px; }
.control-content dl { font-size: 14px; grid-template-columns: 122px minmax(0, 1fr); }
.control-price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.doc-links { margin: 24px 0 0; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; }
.doc-links li { margin: 9px 0; }
.kit { margin: 30px 0 38px; padding-top: 23px; border-top: 3px solid var(--ink); }
.kit-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.kit-items > div { min-width: 0; }
.kit-items h4 { margin: 12px 0 10px; font-size: 18px; }
.kit-items p { font-size: 13px; }
.kit-photo { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: 14px; }
.kit-items [data-price-sku] { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kit-total { max-width: none; padding: 14px 0; margin: 8px 0 13px; border-block: 1px solid var(--line); font-size: 17px; }
.kit-total strong { white-space: nowrap; }
.logistics-note { margin: 20px 0; padding: 18px 20px; border-left: 4px solid var(--red); background: #f7f8f9; font-size: 14px; }
.logistics-note strong { display: block; font-size: 16px; }
.logistics-note p { margin: 9px 0 0; max-width: 100ch; }
.kit-costs { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; padding-top: 16px; font-size: 14px; }
.kit-costs dd { text-align: right; white-space: nowrap; font-weight: 700; }
.command-demo { margin: 30px 0; padding: 23px; background: var(--paper); border-top: 3px solid var(--data); }
.command-demo > label { display: block; max-width: 760px; margin: 16px 0; font-weight: 700; }
select, input[type="number"] { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 45px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #8da3b0; border-radius: 2px; margin-top: 7px; }
select:disabled, input:disabled { background: #e6ebee; color: #657985; }
.flow-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 17px 0; }
.flow-inputs label { font-weight: 700; }
#command-output { max-width: 100%; overflow-x: auto; border-left: 4px solid var(--data); padding: 18px 16px; background: #fff; color: var(--ink); font: 14px/1.7 Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
#sensor-output { font-size: 14px; }
.register-details { border-top: 1px solid var(--line); }
.register-details .table-scroll { margin-bottom: 20px; max-height: 65vh; }
.register-details table { min-width: 780px; }
.register-details th:first-child { width: 142px; }
.docs-select { display: block; max-width: 760px; margin: 8px 0 24px; font-weight: 700; }
#dokumenty article { padding: 22px 0; border-top: 1px solid var(--line); }
.document-list { padding-left: 27px; }
.document-list li { margin: 16px 0; padding-left: 5px; }
.document-list a { font-weight: 700; }
.document-list p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
#pytania details > p { padding-right: 20px; }
#slownik dl { grid-template-columns: minmax(180px, 25%) minmax(0, 1fr); }
#slownik dt { font-family: Arial, sans-serif; font-size: 17px; }
#dobor-interex { padding-bottom: 8px; }
#dobor-interex p:last-child { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; max-width: none; }
footer { width: min(100%, var(--page)); margin: auto; border-top: 2px solid var(--line); padding: 30px 24px 45px; }
footer .brand { width: 155px; margin-bottom: 18px; }
footer p { font-size: 13px; }
@media (max-width: 1000px) {
  .hero { gap: 26px; grid-template-columns: 1.1fr .9fr; }
  .hero-device { height: 245px; }
  .scenario-list { gap: 20px; }
  .local-panels { gap: 24px; }
  .local-panels figure { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
  .panel-photo { height: 240px; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .site-header { padding: 15px 18px; }
  .site-header .brand { width: 170px; }
  .site-header > div { font-size: 11px; max-width: 140px; text-align: right; }
  .site-header > div a { font-size: 19px; }
  .guide-nav { justify-content: flex-start; }
  .guide-nav a { padding: 13px 17px; font-size: 13px; }
  main { padding-inline: 18px; }
  main > section { margin-top: 43px; padding-top: 27px; }
  .hero { grid-template-columns: 1fr; padding-top: 31px; gap: 25px; }
  h1 { max-width: 28ch; font-size: 34px; margin-bottom: 18px; }
  .hero-devices { max-width: 540px; margin: auto; width: 100%; gap: 28px; }
  .hero-device { height: 225px; }
  .two-decisions { grid-template-columns: 1fr; gap: 20px; }
  .model-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-scroll { max-height: 75vh; }
  #model-table { --label-col: 142px; --model-col: 155px; }
  th, td { padding: 12px 10px; font-size: 12px; }
  #model-table th small { font-size: 10px; }
  #model-table thead th a { font-size: 13px; }
  .compare-photo { width: 92px; height: 110px; }
  .local-panels { grid-template-columns: 1fr; gap: 29px; }
  .local-panels figure { grid-template-columns: 160px minmax(0, 1fr); gap: 23px; }
  .panel-photo { height: 245px; }
  .scenario-list { grid-template-columns: 1fr; gap: 25px; }
  .scenario-list h3 { min-height: 0; }
  .scenario-list p, .scenario-list li { font-size: 14px; }
  .wiring-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiring-figure { padding: 7px; }
  .wiring-figure figcaption { font-size: 12px; padding: 10px 4px 4px; }
  .control-content { padding-left: 22px; padding-right: 15px; }
  .kit-items { gap: 17px; }
  .kit-photo { height: 140px; }
  .command-demo { padding: 19px 16px; }
  footer { padding-inline: 18px; }
}
@media (max-width: 480px) {
  .site-header { padding: 11px 14px; gap: 14px; }
  .site-header .brand { width: 145px; }
  .site-header > div { font-size: 10px; max-width: 140px; }
  .site-header > div a { font-size: 17px; }
  main { padding-inline: 14px; }
  h1 { font-size: 30px; line-height: 1.2; }
  h2 { font-size: 25px; }
  .lead { font-size: 16px; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-device { height: 200px; }
  .hero-devices { gap: 20px; }
  .hero-devices figcaption strong { font-size: 14px; }
  .hero-devices figcaption span { font-size: 12px; }
  .model-choices { gap: 5px 12px; padding-inline: 11px; }
  .model-choices label { font-size: 11.5px; gap: 7px; }
  .compare-presets button { font-size: 12px; padding-inline: 12px; }
  #model-table { --label-col: 130px; --model-col: 145px; }
  #model-table td, #model-table th { padding: 11px 8px; }
  .note { padding: 13px 14px; }
  .local-panels figure { grid-template-columns: 115px minmax(0, 1fr); gap: 17px; }
  .panel-photo { height: 215px; }
  .local-panels figcaption h3 { font-size: 18px; }
  .local-panels figcaption p { font-size: 13px; }
  dl, #slownik dl { grid-template-columns: 1fr; gap: 0; }
  dt { padding-bottom: 5px; }
  dd { padding-top: 0; border-top: 0; padding-bottom: 17px; }
  .control > summary { grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 12px; padding-right: 4px; min-height: 98px; }
  .control-photo { width: 68px; height: 68px; }
  .control summary strong { font-size: 17px; }
  .control summary small { font-size: 11px; }
  .control-content { padding: 15px 10px 23px; }
  .control-content dl { grid-template-columns: 1fr; }
  .kit-items { grid-template-columns: 1fr; gap: 24px; }
  .kit-items > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); column-gap: 17px; }
  .kit-photo { grid-row: span 3; width: 105px; height: 140px; }
  .kit-items h4 { margin-top: 2px; }
  .kit-items p { margin-bottom: 10px; }
  .kit-total { font-size: 15px; }
  .flow-inputs { gap: 12px; }
  select, input[type="number"] { font-size: 13px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@page { size: A4 landscape; margin: 8mm; }
@media print {
  body.print-schema { margin: 0 !important; padding: 0 !important; color: #000; background: #fff; font: 8pt/1.2 Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-schema > * { display: none !important; }
  body.print-schema > .site-header { display: flex !important; width: 100%; max-width: none; height: 19mm; min-height: 0; padding: 0 0 2mm; margin: 0 0 2mm; border-bottom: .3mm solid #c9d4da; break-inside: avoid; }
  body.print-schema .site-header .brand { display: block; width: auto; height: 17mm; max-width: none; }
  body.print-schema .site-header > div { font: 8pt/1.2 Arial, sans-serif; gap: 1mm; color: #173346; }
  body.print-schema .site-header > div a { font-size: 10pt; }
  body.print-schema > main { display: block !important; width: 100%; max-width: none; padding: 0; margin: 0; }
  body.print-schema main > * { display: none !important; }
  body.print-schema main > #schematy { display: block !important; margin: 0; padding: 0; border: 0; break-inside: avoid; }
  body.print-schema #schematy > * { display: none !important; }
  body.print-schema #schematy > h2 { display: block !important; font: 700 12pt/1.2 Arial, sans-serif; margin: 0 0 1mm; break-after: avoid; }
  body.print-schema #schematy > .wiring-figure { display: block !important; margin: 0; padding: 0; border: 0; break-inside: avoid; }
  body.print-schema .wiring-image { display: block !important; width: 100%; height: 153mm; max-height: 153mm; aspect-ratio: auto; object-fit: contain; margin: 0; padding: 0; }
  body.print-schema .wiring-figure figcaption { display: block !important; color: #173346; font: 7.5pt/1.15 Arial, sans-serif; max-width: none; padding: 1mm 0 0; margin: 0; }
  body.print-schema .wiring-choice, body.print-schema .diagram-actions, body.print-schema .wiring-notes, body.print-schema .safety, body.print-schema .source-links { display: none !important; }
}
