/*
 * Sinum EH-08 - instrukcja obslugi (A5, druk z przegladarki: Ctrl+P).
 * Kazda strona to <section class="strona"> 148 x 210 mm.
 */

@font-face {
  font-family: "Indivisible";
  src: url("../wspolne/fonty/Indivisible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Indivisible";
  src: url("../wspolne/fonty/Indivisible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@page { size: 148mm 210mm; margin: 0; }

:root {
  --akcent: #1192e8;
  --akcent-ciemny: #0a6db0;
  --akcent-jasny: #eaf5fd;
  --tekst: #1b242e;
  --tekst2: #4c5967;
  --tekst3: #7a8692;
  --linia: #dfe4ea;
  --pasek: #eef2f6;
  --karta: #f5f7f9;
  --weryf: #f28a00;
  --ostrz: #c2410c;
  --ostrz-tlo: #fff5eb;
  --szklo: #07090b;
  --kafel-tlo: #06274a;
}

* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html { background: #7b838c; }

body {
  margin: 0;
  padding: 8mm 0;
  font-family: "Indivisible", "Segoe UI", Arial, sans-serif;
  font-size: 8.5pt;
  line-height: 1.48;
  color: var(--tekst);
  counter-reset: strona rozdzial;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Strona ---------- */

.strona {
  position: relative;
  width: 148mm;
  height: 210mm;
  margin: 0 auto 8mm;
  padding: 12mm 12mm 17mm;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1.5mm 6mm rgba(0, 0, 0, 0.35);
  counter-increment: strona;
  break-after: page;
  page-break-after: always;
  display: flex;
  flex-direction: column;
}
.strona:last-of-type { break-after: auto; page-break-after: auto; }

/* Stopka: nazwa produktu z lewej, numer strony z prawej. */
.strona::before {
  content: "Sinum EH-08  \00B7  Instrukcja obsługi";
  white-space: pre;
  position: absolute;
  left: 12mm;
  bottom: 8mm;
  font-size: 6.6pt;
  letter-spacing: 0.02em;
  color: var(--tekst3);
}
.strona::after {
  content: counter(strona);
  position: absolute;
  right: 12mm;
  bottom: 7.6mm;
  font-size: 7.6pt;
  font-weight: 700;
  color: var(--akcent);
}
.strona.parzysta::after { right: auto; left: 12mm; }
.strona.parzysta::before { left: auto; right: 12mm; }
.strona.bez-stopki::before,
.strona.bez-stopki::after { content: none; }

@media print {
  html, body { background: none; }
  body { padding: 0; }
  .strona { margin: 0; box-shadow: none; }
  .tylko-ekran { display: none !important; }
}

/* Kontrola przepelnienia (tylko podglad na ekranie). */
.strona.przepelniona { outline: 1.2mm solid #e5484d; }
.strona.przepelniona .alarm-przepelnienia {
  display: block;
}
.alarm-przepelnienia {
  display: none;
  position: absolute; top: 2mm; right: 2mm;
  background: #e5484d; color: #fff; font-size: 7pt; padding: 0.6mm 2mm; border-radius: 1mm;
}
@media print { .alarm-przepelnienia { display: none !important; } .strona.przepelniona { outline: none; } }

/* ---------- Typografia ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
h2 { font-size: 10.6pt; margin: 4.6mm 0 1.8mm; letter-spacing: -0.005em; }
h3 { font-size: 9pt; margin: 3.6mm 0 1.2mm; }
h2:first-child, h3:first-child { margin-top: 0; }
p { margin: 0 0 2.2mm; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
.lead { font-size: 9.4pt; line-height: 1.5; color: var(--tekst2); margin-bottom: 4.5mm; }
.maly { font-size: 7.4pt; color: var(--tekst2); line-height: 1.45; }
.szary { color: var(--tekst2); }
.akcent { color: var(--akcent); }
.ui { font-weight: 700; white-space: nowrap; }          /* nazwa elementu na ekranie */
.sciezka { font-weight: 700; color: var(--akcent-ciemny); } /* Ustawienia > Siec */
.nowrap { white-space: nowrap; }
.odstep { flex: 1 1 auto; }
.mt-2 { margin-top: 2mm; } .mt-3 { margin-top: 3mm; } .mt-4 { margin-top: 4mm; } .mt-6 { margin-top: 6mm; }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 3mm; }

ul, ol { margin: 0 0 2.4mm; padding-left: 4.2mm; }
li { margin: 0 0 1mm; }
ul.kropki { list-style: none; padding-left: 0; }
ul.kropki > li { position: relative; padding-left: 3.6mm; }
ul.kropki > li::before {
  content: ""; position: absolute; left: 0.4mm; top: 1.55mm;
  width: 1.3mm; height: 1.3mm; border-radius: 50%; background: var(--akcent);
}

/* ---------- Naglowek rozdzialu ---------- */

.rozdzial {
  counter-increment: rozdzial;
  display: flex;
  align-items: center;
  gap: 3.2mm;
  padding: 2.6mm 4mm;
  margin: 0 0 4.6mm;
  background: var(--pasek);
  border-radius: 2mm;
  border-left: 1.2mm solid var(--akcent);
}
.rozdzial .nr::before {
  content: counter(rozdzial, decimal-leading-zero);
  font-size: 9pt; font-weight: 700; color: var(--akcent);
  letter-spacing: 0.04em;
}
.rozdzial h1 { font-size: 13.2pt; letter-spacing: -0.01em; }
.rozdzial.bez-nr { counter-increment: none; }

/* Kontynuacja rozdzialu na kolejnej stronie: cienki pasek bez numeru. */
.pasek-cd {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 7pt; color: var(--tekst3); letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 1.6mm; margin-bottom: 4mm; border-bottom: 0.25mm solid var(--linia);
}

/* ---------- Ekran w szklanej ramce (172 x 108 mm + 10/5 mm ramki) ---------- */

figure { margin: 0; }
.ekran { position: relative; }
.szklo {
  position: relative;
  background: var(--szklo);
  border-radius: 2.1mm;
  /* ramka 10 mm z bokow i 5 mm u gory/dolu przy szerokosci frontu 192 mm */
  padding: 2.604% 5.208%;
  box-shadow: inset 0 0 0 0.2mm #2a3036;
}
.szklo::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.03) 32%, rgba(255,255,255,0) 46%);
  pointer-events: none;
}
.szklo .obszar { position: relative; }
.szklo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.3mm; }
.ekran.maly .szklo { border-radius: 1.3mm; }
figcaption {
  margin-top: 1.6mm;
  font-size: 7.2pt; line-height: 1.4; color: var(--tekst2);
}
figcaption b { color: var(--tekst); }

/* Znaczniki na zrzucie ekranu */
.znacznik {
  position: absolute;
  width: 4.4mm; height: 4.4mm;
  margin: -2.2mm 0 0 -2.2mm;
  border-radius: 50%;
  background: var(--akcent);
  color: #fff;
  border: 0.45mm solid #fff;
  box-shadow: 0 0.3mm 1mm rgba(0,0,0,0.45);
  font-size: 7pt; font-weight: 700; line-height: 3.5mm; text-align: center;
  z-index: 2;
}
.ekran.maly .znacznik { width: 3.8mm; height: 3.8mm; margin: -1.9mm 0 0 -1.9mm; font-size: 6.2pt; line-height: 2.9mm; }

.legenda {
  list-style: none; padding: 0; margin: 4mm 0 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 6mm; row-gap: 2.2mm;
}
.legenda.jedna { grid-template-columns: 1fr; }
.legenda li { position: relative; padding-left: 6.4mm; margin: 0; font-size: 8pt; line-height: 1.4; }
.legenda li .n {
  position: absolute; left: 0; top: 0;
  width: 4.4mm; height: 4.4mm; border-radius: 50%;
  background: var(--akcent); color: #fff; font-weight: 700; font-size: 7pt;
  line-height: 4.4mm; text-align: center;
}
.legenda li b { display: block; }

/* ---------- Siatki ---------- */

.k2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.k3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm; }
.k2-waska { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5mm; align-items: start; }
.k2-obraz { display: grid; grid-template-columns: 66mm 1fr; gap: 5mm; align-items: start; }
.k2-obraz.odwr { grid-template-columns: 1fr 66mm; }

/* ---------- Kroki ---------- */

ol.kroki { list-style: none; padding: 0; margin: 0 0 2.4mm; counter-reset: krok; }
ol.kroki > li {
  counter-increment: krok;
  position: relative;
  padding-left: 7.2mm;
  margin-bottom: 2.4mm;
  min-height: 4.8mm;
}
ol.kroki > li::before {
  content: counter(krok);
  position: absolute; left: 0; top: -0.2mm;
  width: 4.8mm; height: 4.8mm; border-radius: 50%;
  background: var(--akcent); color: #fff;
  font-size: 7.4pt; font-weight: 700; line-height: 4.8mm; text-align: center;
}
ol.kroki.obrys > li::before { background: #fff; color: var(--akcent); box-shadow: inset 0 0 0 0.35mm var(--akcent); }
ol.kroki > li > b.t { display: block; margin-bottom: 0.4mm; }

/* ---------- Ramki: wskazowka / uwaga ---------- */

.wskazowka, .uwaga {
  display: flex; gap: 2.8mm; align-items: flex-start;
  border-radius: 1.8mm;
  padding: 2.8mm 3.4mm;
  margin: 3mm 0;
  font-size: 8pt; line-height: 1.45;
}
.wskazowka { background: var(--akcent-jasny); border-left: 1mm solid var(--akcent); }
.uwaga { background: var(--ostrz-tlo); border-left: 1mm solid var(--ostrz); }
.wskazowka svg, .uwaga svg { flex: 0 0 4.4mm; width: 4.4mm; height: 4.4mm; margin-top: 0.1mm; }
.wskazowka svg { color: var(--akcent); }
.uwaga svg { color: var(--ostrz); }
.wskazowka b.tytul, .uwaga b.tytul { display: block; margin-bottom: 0.4mm; }

/* ---------- Ikony ---------- */

.ik {
  width: 5.2mm; height: 5.2mm;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Karty cech */
.cechy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6mm; row-gap: 3.6mm; }
.cecha { display: grid; grid-template-columns: 8.6mm 1fr; gap: 2.6mm; align-items: start; }
.cecha .ikona {
  width: 8.6mm; height: 8.6mm; border-radius: 2.2mm;
  background: var(--akcent-jasny); color: var(--akcent);
  display: flex; align-items: center; justify-content: center;
}
.cecha > div > b { display: block; font-size: 8.6pt; margin-bottom: 0.2mm; }
.cecha > div > span { font-size: 7.6pt; color: var(--tekst2); line-height: 1.4; display: block; }

/* ---------- Opcje ustawien (jak lista w menu) ---------- */

.opcje { margin: 0; }
.opcje > div {
  display: grid; grid-template-columns: 30mm 1fr; gap: 3mm;
  padding: 1.9mm 0;
  border-bottom: 0.25mm solid var(--linia);
}
.opcje > div:first-child { border-top: 0.25mm solid var(--linia); }
.opcje dt { font-weight: 700; font-size: 8pt; }
.opcje dd { margin: 0; font-size: 8pt; color: var(--tekst2); line-height: 1.42; }
.opcje.waskie > div { grid-template-columns: 24mm 1fr; }
.opcje.jedna > div { grid-template-columns: 1fr; gap: 0.4mm; }

/* ---------- Kafelki (wycinki z ekranu) ---------- */

.kafle { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 4.5mm; row-gap: 5mm; }
.kafel .podglad {
  height: 25mm;
  border-radius: 2mm;
  background: radial-gradient(120% 140% at 20% 0%, #0b4378 0%, #062a4f 55%, #041d38 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2.4mm;
}
.kafel .podglad img { max-width: 100%; max-height: 100%; display: block; border-radius: 1.2mm; }
.kafel b { display: block; font-size: 8.4pt; margin: 2mm 0 0.6mm; }
.kafel p { font-size: 7.4pt; line-height: 1.42; color: var(--tekst2); margin: 0 0 0.8mm; }
.kafel p i { font-style: normal; font-weight: 700; color: var(--tekst); }

/* ---------- Tabele ---------- */

table { width: 100%; border-collapse: collapse; font-size: 7.8pt; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 1.6mm 2mm; border-bottom: 0.25mm solid var(--linia); }
thead th { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tekst3); border-bottom: 0.35mm solid var(--tekst); padding-top: 0; }
td:first-child { font-weight: 700; }
table.problemy td:first-child { width: 40%; }
table.spec td:first-child { width: 44%; font-weight: 400; color: var(--tekst2); }
table.spec td:last-child { font-weight: 700; }
table.spec tr.grupa td {
  padding-top: 3.2mm; padding-bottom: 1mm;
  font-size: 7pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--akcent); border-bottom: 0.35mm solid var(--akcent);
}
table.zlacza td:first-child { width: 22%; }

/* ---------- Wartosci robocze ---------- */

.do-weryfikacji {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--weryf);
  text-decoration-thickness: 0.32mm;
  text-underline-offset: 0.7mm;
  text-decoration-skip-ink: none;
}
.do-weryfikacji::after {
  content: "";
  display: inline-block;
  width: 1.3mm; height: 1.3mm;
  margin-left: 0.5mm;
  border-radius: 50%;
  background: var(--weryf);
  vertical-align: baseline;
  position: relative;
  top: -0.6em;   /* nad tekstem, bez zmiany wysokosci linii */
}
svg .do-weryfikacji { fill: var(--weryf); text-decoration: underline dashed; }
.znak-weryf {
  display: inline-block; width: 1.3mm; height: 1.3mm; border-radius: 50%;
  background: var(--weryf); vertical-align: 0.15em;
}
.nota-weryf {
  display: none;
  margin-top: 3mm;
  padding: 2.4mm 3.2mm;
  border: 0.3mm dashed var(--weryf);
  border-radius: 1.8mm;
  font-size: 7.4pt; line-height: 1.45; color: var(--tekst2);
}
body.ma-weryfikacje .nota-weryf { display: block; }

/* ---------- Okladka ---------- */

.okladka { padding: 14mm 12mm 12mm; }
.okladka .gora { display: flex; justify-content: space-between; align-items: center; }
.okladka .nadtytul { font-size: 7.6pt; letter-spacing: 0.22em; font-weight: 700; color: var(--tekst2); }
.jezyk {
  display: inline-block; min-width: 9mm; padding: 1mm 2mm;
  border-radius: 1.4mm; background: var(--tekst); color: #fff;
  font-weight: 700; font-size: 9pt; text-align: center; letter-spacing: 0.04em;
}
.okladka h1 { font-size: 31pt; letter-spacing: -0.02em; margin: 9mm 0 1.5mm; line-height: 1; }
.okladka .podtytul { font-size: 11pt; color: var(--tekst2); line-height: 1.35; max-width: 100mm; }
.okladka .bohater {
  margin-top: 9mm;
  height: 92mm;
  border-radius: 3mm;
  overflow: hidden;
  background: #000;
}
.okladka .bohater img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; display: block; transform: scale(1.18); }
.okladka .dol { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.okladka .wersja { font-size: 6.8pt; color: var(--tekst3); line-height: 1.5; }

/* Logo TECH | Sinum (typograficzne) */
.loga { display: inline-flex; align-items: center; gap: 3mm; color: var(--tekst); }
.loga .tech { font-weight: 700; font-size: 15pt; letter-spacing: 0.16em; line-height: 1; }
.loga .kreska { width: 0.35mm; height: 6mm; background: var(--tekst); }
.loga .sinum { display: inline-flex; align-items: center; gap: 1.4mm; font-weight: 700; font-size: 14pt; letter-spacing: -0.01em; line-height: 1; }
.loga .sinum svg { width: 7mm; height: 4.6mm; }
.loga.male .tech { font-size: 10.5pt; }
.loga.male .kreska { height: 4.4mm; }
.loga.male .sinum { font-size: 10pt; }
.loga.male .sinum svg { width: 5mm; height: 3.3mm; }

/* ---------- Spis tresci ---------- */

.spis { list-style: none; padding: 0; margin: 0; }
.spis li { display: flex; align-items: baseline; gap: 2mm; margin: 0; padding: 0.65mm 0; border-bottom: 0.25mm solid var(--linia); }
.spis li .nr { width: 6mm; font-weight: 700; color: var(--akcent); font-size: 8pt; }
.spis li .t { flex: 1; font-weight: 700; font-size: 8.6pt; }
.spis li .s { font-weight: 700; font-size: 8.4pt; color: var(--tekst); min-width: 6mm; text-align: right; }
.spis li.pod { border-bottom: none; padding: 0.1mm 0 0.1mm 8mm; }
.spis li.pod .t { font-weight: 400; color: var(--tekst2); font-size: 7.8pt; }
.spis li.pod .s { font-weight: 400; color: var(--tekst3); font-size: 7.6pt; }
.spis li.pod + li:not(.pod) { margin-top: 1mm; border-top: 0.25mm solid var(--linia); }

/* ---------- Gesty ---------- */

.gesty { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6mm; row-gap: 5mm; }
.gest { display: grid; grid-template-columns: 15mm 1fr; gap: 3.4mm; align-items: start; }
.gest svg { width: 15mm; height: 15mm; }
.gest > div > b { display: block; font-size: 8.8pt; margin-bottom: 0.5mm; }
.gest > div > span { font-size: 7.8pt; color: var(--tekst2); line-height: 1.42; display: block; }

/* ---------- Obrazy produktu ---------- */

.render { border-radius: 2.4mm; overflow: hidden; background: #000; }
.render img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rysunek svg { display: block; width: 100%; height: auto; }
.rysunek text { font-family: "Indivisible", Arial, sans-serif; }

/* Etapy konfiguracji */
.etapy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4mm; margin: 2mm 0 4mm; }
.etap { background: var(--karta); border-radius: 2mm; padding: 3mm 2.6mm; border-top: 0.8mm solid var(--akcent); }
.etap .n { font-size: 7pt; font-weight: 700; color: var(--akcent); letter-spacing: 0.08em; }
.etap b { display: block; font-size: 8.4pt; margin: 0.6mm 0 0.6mm; line-height: 1.25; }
.etap span { display: block; font-size: 7.2pt; color: var(--tekst2); line-height: 1.38; }

/* Karty grup urzadzen */
.grupy { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3.4mm; }
.grupa { background: var(--karta); border-radius: 2mm; padding: 3mm; }
.grupa b { display: block; font-size: 8.6pt; margin-bottom: 1.2mm; }
.grupa ul { margin: 0; padding-left: 3.4mm; font-size: 7.5pt; color: var(--tekst2); line-height: 1.4; }
.grupa li { margin-bottom: 0.6mm; }

/* Deklaracja */
.deklaracja { border: 0.3mm solid var(--linia); border-radius: 2mm; padding: 4mm; }
.podpisy { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 5mm; }
.podpisy .osoby { display: flex; gap: 8mm; }
.podpisy .osoba { text-align: center; font-size: 7.6pt; }
.podpisy .osoba .linia { width: 28mm; border-bottom: 0.25mm solid var(--tekst3); height: 7mm; margin-bottom: 1mm; }

/* Dane instalacji (do wypelnienia) */
.wpisy { border: 0.3mm solid var(--linia); border-radius: 2mm; padding: 1mm 4mm 3mm; }
.wpis { display: grid; grid-template-columns: 36mm 1fr; align-items: end; gap: 3mm; height: 8mm; font-size: 7.8pt; color: var(--tekst2); }
.wpis span:last-child { border-bottom: 0.3mm solid var(--linia); height: 6mm; }

/* Tylna okladka */
.tyl { justify-content: space-between; }
.tyl .srodek { margin-top: auto; margin-bottom: auto; text-align: center; }
.tyl .adres { font-size: 8pt; color: var(--tekst2); line-height: 1.6; text-align: center; }
