/* PROTEON — instrukcje v2.31a. Druk A4 + wersja na telefon (jeden plik HTML).
   Paleta UX: niebieski = informacja / element do dotknięcia, zielony = prawidłowo, żółty = uwaga,
   czerwony = niebezpieczeństwo, szary = pomocnicze. Czerwień marki Energeon tylko w znaku N i akcentach marki. */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  --ink: #1b2a41; --ink2: #4b5a70; --ink3: #7a8699; --line: #dfe5ee; --bg: #ffffff; --soft: #f5f7fa;
  --blue: #1e6fd9; --blue-50: #eaf2fd; --blue-100: #d3e4fb;
  --green: #12a150; --green-50: #e6f6ed;
  --yellow: #f5b800; --yellow-ink: #8a5a00; --yellow-50: #fff6d9;
  --red: #d92d20; --red-50: #fdecea;
  --grey: #8a94a6; --grey-50: #f1f3f6;
  --brand: #e31e24; --navy: #14213a;
  --r: 3mm;
}
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Barlow, sans-serif; font-size: 11pt; line-height: 1.45; hyphens: manual; counter-reset: fig; }
p { margin: 0 0 2.4mm; orphans: 3; widows: 3; }
strong, b { font-weight: 600; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Barlow Semi Condensed', Barlow, sans-serif; font-weight: 700; line-height: 1.12; color: var(--ink); break-after: avoid; margin: 0; }
h2 { font-size: 17pt; margin: 7mm 0 3mm; display: flex; align-items: center; gap: 2.5mm; }
h2 .ic { width: 8mm; height: 8mm; flex: none; color: var(--blue); }
h3 { font-size: 13pt; margin: 5mm 0 2mm; }
ul, ol { margin: 0 0 2.5mm; padding-left: 5mm; }
li { margin: 0 0 1.2mm; }
.ic { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk { position: absolute; font-size: 1px; line-height: 1px; color: transparent; white-space: nowrap; }
.screen-only { display: none; }
.muted { color: var(--ink2); }
.small { font-size: 9pt; color: var(--ink2); }
.nowrap { white-space: nowrap; }
.mono { font-family: 'DejaVu Sans Mono', monospace; font-size: 8.8pt; }

/* ---------- strony */
@page { size: A4; margin: 21mm 17mm 19mm 17mm; }
@page cover { margin: 0; }
@page full { margin: 0; }

/* ---------- okładka */
.cover { page: cover; width: 210mm; height: 297mm; position: relative; overflow: hidden; break-after: page; background: #fff; }
.cover .logo { position: absolute; left: 18mm; top: 17mm; height: 10.5mm; }
.cover .nmark { position: absolute; right: -16mm; top: -10mm; width: 92mm; opacity: 1; }
.cover .kicker { position: absolute; left: 18mm; top: 52mm; font-family: 'Barlow Semi Condensed'; font-weight: 600; font-size: 12.5pt; letter-spacing: .28em; color: var(--blue); text-transform: uppercase; }
.cover h1.title { position: absolute; left: 17mm; top: 60mm; font-size: 64pt; letter-spacing: .01em; color: var(--navy); }
.cover .sub { position: absolute; left: 18mm; top: 87mm; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 26pt; color: var(--ink); }
.cover .bar { position: absolute; left: 18mm; top: 101mm; width: 24mm; height: 2mm; background: var(--brand); border-radius: 1mm; }
.cover .lead { position: absolute; left: 18mm; top: 107mm; width: 150mm; font-size: 13pt; color: var(--ink2); line-height: 1.4; }
.cover .art { position: absolute; left: 8mm; right: 8mm; top: 128mm; height: 118mm; object-fit: contain; width: calc(100% - 16mm); }
.cover .chips { position: absolute; left: 18mm; top: 247mm; display: flex; flex-wrap: wrap; gap: 2mm; width: 140mm; }
.chip { display: inline-flex; align-items: center; gap: 1.4mm; border-radius: 10mm; padding: 1mm 3.2mm; font-size: 9.5pt; font-weight: 600; background: var(--blue-50); color: var(--blue); white-space: nowrap; }
.chip.grey { background: var(--grey-50); color: var(--ink2); }
.chip.red { background: var(--red-50); color: var(--red); }
.cover .foot { position: absolute; left: 18mm; right: 18mm; bottom: 12mm; display: flex; justify-content: space-between; align-items: flex-end; font-size: 9pt; color: var(--ink2); border-top: 0.3mm solid var(--line); padding-top: 3mm; }
.cover .foot b { color: var(--ink); }
.cover .qr { display: flex; align-items: center; gap: 3mm; text-align: right; }
.cover .qr svg { width: 21mm; height: 21mm; }

/* ---------- rozdziały */
.chapter { break-before: page; position: relative; }
.ch-head { display: grid; grid-template-columns: 19mm 1fr 26mm; gap: 5mm; align-items: center; margin: 0 0 6mm; padding: 0 0 5mm; border-bottom: 0.4mm solid var(--line); position: relative; }
.ch-head .no { width: 19mm; height: 19mm; border-radius: 4.5mm; background: var(--blue); color: #fff; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 26pt; display: flex; align-items: center; justify-content: center; }
.ch-head h1 { font-size: 27pt; }
.ch-head p { margin: 1.5mm 0 0; font-size: 12pt; color: var(--ink2); }
.ch-head .pic { width: 26mm; height: 26mm; border-radius: 50%; background: var(--blue-50); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.ch-head .pic .ic { width: 14mm; height: 14mm; stroke-width: 1.6; }
.ch-head::after { content: ''; position: absolute; left: 0; bottom: -0.4mm; width: 19mm; height: 0.8mm; background: var(--brand); }
.lead { font-size: 12.5pt; color: var(--ink2); margin-bottom: 4mm; }

/* ---------- ilustracje */
figure { margin: 3mm 0 4.5mm; break-inside: avoid; }
figure img { display: block; width: 100%; height: auto; }
figure.art img { border-radius: var(--r); }
figure.art { width: 82%; margin-left: auto; margin-right: auto; }
figure.art.s { width: 58%; }
figure.art.xs { width: 44%; }
figure.scr img { border-radius: 2.2mm; box-shadow: 0 0 0 0.3mm #0b1220, 0 1.2mm 4mm rgba(20, 33, 58, .18); }
figure.scr.s { width: 72%; margin-left: auto; margin-right: auto; }
figure.scr.m { width: 86%; margin-left: auto; margin-right: auto; }
figcaption { font-size: 9.5pt; color: var(--ink2); margin-top: 2mm; text-align: center; }

/* ---------- legenda numerów (do zrzutów) */
.legend { list-style: none; padding: 0; margin: 2mm 0 4mm; }
.legend li { display: grid; grid-template-columns: 8.5mm 1fr; gap: 2mm; align-items: start; margin-bottom: 2mm; break-inside: avoid; }
.legend li .n, .n { width: 6.6mm; height: 6.6mm; border-radius: 50%; background: var(--blue); color: #fff; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 10pt; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.legend li b { display: block; font-size: 11.5pt; }
.legend li span.t { color: var(--ink2); }

/* ---------- kroki */
.steps { counter-reset: st; margin: 2mm 0 4mm; }
.step { counter-increment: st; display: grid; grid-template-columns: 1.25fr 1fr; gap: 6mm; align-items: center; padding: 4mm 0; border-bottom: 0.3mm solid var(--line); break-inside: avoid; }
.step:last-child { border-bottom: none; }
.step.noimg { grid-template-columns: 1fr; padding: 2.5mm 0; }
.step .img img { width: 100%; display: block; border-radius: 2mm; box-shadow: 0 0 0 0.3mm #0b1220, 0 1mm 3mm rgba(20, 33, 58, .16); }
.step .img.art img { box-shadow: none; }
.step .txt { display: grid; grid-template-columns: 12mm 1fr; gap: 3.5mm; align-items: start; }
.step .txt::before { content: counter(st); width: 12mm; height: 12mm; border-radius: 50%; background: var(--blue); color: #fff; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 19pt; display: flex; align-items: center; justify-content: center; }
.step .txt p { font-size: 13pt; line-height: 1.32; font-weight: 500; margin: 1.6mm 0 0; }
.step .txt p + p { font-size: 10.5pt; font-weight: 400; color: var(--ink2); margin-top: 1.5mm; }
.step .txt .alert { grid-column: 2; margin: 2mm 0 0; }
.step.done .txt::before { content: '✓'; background: var(--green); }

/* ---------- komunikaty (hierarchia ostrzeżeń) */
.alert { display: grid; grid-template-columns: 13mm 1fr; border-radius: var(--r); overflow: hidden; margin: 3.5mm 0; break-inside: avoid; border: 0.35mm solid; }
.alert .sym { display: flex; align-items: flex-start; justify-content: center; padding-top: 3mm; }
.alert .sym svg { width: 9mm; height: 9mm; }
.alert .body { padding: 2.6mm 4mm 2mm 0; }
.alert .sw { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 11.5pt; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 0.8mm; }
.alert p { margin: 0 0 1.2mm; }
.alert ul { margin-bottom: 1mm; }
.alert.danger { border-color: var(--red); background: var(--red-50); }
.alert.danger .sw { color: var(--red); }
.alert.warn { border-color: var(--yellow); background: var(--yellow-50); }
.alert.warn .sw { color: var(--yellow-ink); }
.alert.info { border-color: var(--blue-100); background: var(--blue-50); }
.alert.info .sw { color: var(--blue); }
.alert.ok { border-color: #bfe6cf; background: var(--green-50); }
.alert.ok .sw { color: var(--green); }
.alert.gain { border-color: #bfe6cf; background: var(--green-50); }
.alert.gain .sw { color: var(--green); }

/* ---------- kafle "Co chcesz zrobić?" */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; margin: 3mm 0 5mm; }
.tile { display: grid; grid-template-columns: 12mm 1fr auto; gap: 3mm; align-items: center; padding: 3.2mm 3.5mm; border-radius: var(--r); background: var(--soft); border: 0.3mm solid var(--line); break-inside: avoid; }
.tile .pic { width: 12mm; height: 12mm; border-radius: 3mm; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.tile .pic .ic { width: 7mm; height: 7mm; }
.tile.red .pic { background: var(--red-50); color: var(--red); }
.tile.yellow .pic { background: var(--yellow-50); color: var(--yellow-ink); }
.tile.green .pic { background: var(--green-50); color: var(--green); }
.tile b { display: block; font-size: 11.5pt; line-height: 1.2; }
.tile span.t { font-size: 9.5pt; color: var(--ink2); line-height: 1.25; display: block; margin-top: 0.6mm; }
.tile .go { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 11pt; color: var(--blue); white-space: nowrap; }

/* ---------- stany kolorów (np. moc 15-min) */
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 3mm 0 5mm; }
.state { border-radius: var(--r); overflow: hidden; border: 0.35mm solid var(--line); break-inside: avoid; background: #fff; }
.state img { display: block; width: 100%; }
.state .h { padding: 2.2mm 3mm 1mm; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 13pt; display: flex; align-items: center; gap: 2mm; }
.state .h i { width: 4mm; height: 4mm; border-radius: 50%; display: inline-block; }
.state p { padding: 0 3mm; margin: 0 0 1.4mm; font-size: 10pt; }
.state .do { margin: 1.5mm 3mm 3mm; padding: 2mm 2.5mm; border-radius: 2mm; font-weight: 600; font-size: 10.5pt; display: flex; gap: 1.6mm; align-items: flex-start; }
.state.ok .h { color: var(--green); } .state.ok .h i { background: var(--green); } .state.ok .do { background: var(--green-50); color: #0b6b36; }
.state.warn .h { color: var(--yellow-ink); } .state.warn .h i { background: var(--yellow); } .state.warn .do { background: var(--yellow-50); color: var(--yellow-ink); }
.state.al .h { color: var(--red); } .state.al .h i { background: var(--red); } .state.al .do { background: var(--red-50); color: var(--red); }
.state.grey .h { color: var(--ink2); } .state.grey .h i { background: var(--grey); } .state.grey .do { background: var(--grey-50); color: var(--ink2); }

/* ---------- karty "Co zrobić, gdy..." */
.cards { display: grid; grid-template-columns: 1fr; gap: 3mm; margin: 3mm 0 5mm; }
.card { display: grid; grid-template-columns: 14mm 1fr; gap: 3.5mm; padding: 3.2mm 4mm; border-radius: var(--r); border: 0.35mm solid var(--line); border-left-width: 2.2mm; break-inside: avoid; background: #fff; }
.card .pic { width: 14mm; height: 14mm; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.card .pic .ic { width: 8mm; height: 8mm; }
.card h4 { font-size: 13pt; margin: 0.6mm 0 1.2mm; }
.card p { margin: 0 0 1mm; font-size: 10.5pt; }
.card ol { margin: 1mm 0 0.5mm; padding-left: 4.6mm; font-size: 11pt; }
.card ol li { margin-bottom: 0.8mm; }
.card.al { border-left-color: var(--red); } .card.al .pic { background: var(--red-50); color: var(--red); }
.card.warn { border-left-color: var(--yellow); } .card.warn .pic { background: var(--yellow-50); color: var(--yellow-ink); }
.card.info { border-left-color: var(--blue); } .card.info .pic { background: var(--blue-50); color: var(--blue); }
.card.ok { border-left-color: var(--green); } .card.ok .pic { background: var(--green-50); color: var(--green); }
.card.grey { border-left-color: var(--grey); } .card.grey .pic { background: var(--grey-50); color: var(--ink2); }

/* ---------- infografika przepływu */
.flow { display: flex; align-items: stretch; gap: 0; margin: 4mm 0 5mm; break-inside: avoid; }
.flow .f { flex: 1; text-align: center; padding: 3.5mm 2mm 3mm; border-radius: var(--r); background: var(--soft); border: 0.3mm solid var(--line); }
.flow .f .pic { width: 14mm; height: 14mm; margin: 0 auto 2mm; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.flow .f .pic .ic { width: 8mm; height: 8mm; }
.flow .f b { display: block; font-size: 11pt; line-height: 1.15; }
.flow .f span { display: block; font-size: 9pt; color: var(--ink2); margin-top: 1mm; line-height: 1.25; }
.flow .arr { width: 7mm; flex: none; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.flow .arr .ic { width: 6mm; height: 6mm; stroke-width: 2.6; }
.flow .f.red .pic { background: var(--red-50); color: var(--red); }
.flow .f.green .pic { background: var(--green-50); color: var(--green); }

/* ---------- porównania obraz + tekst */
.pair { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6mm; align-items: center; margin: 3mm 0 5mm; break-inside: avoid; }
.pair.rev { grid-template-columns: 1.1fr 0.9fr; }
.pair img { width: 100%; display: block; border-radius: var(--r); }
.pair .big { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 15pt; line-height: 1.2; margin-bottom: 2mm; }
.pair ul.ticks { list-style: none; padding: 0; }
.pair ul.ticks li, ul.ticks li { padding-left: 6.5mm; position: relative; }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: 1.3mm; width: 3.4mm; height: 3.4mm; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 1.05mm #fff, 0 0 0 0.25mm var(--blue); }
ul.ticks.green li::before { background: var(--green); box-shadow: inset 0 0 0 1.05mm #fff, 0 0 0 0.25mm var(--green); }

/* ---------- tabele (tylko gdzie konieczne; w instrukcji użytkownika — proste) */
table { width: 100%; border-collapse: collapse; margin: 2mm 0 4.5mm; font-size: 10pt; }
th { text-align: left; font-family: 'Barlow Semi Condensed'; font-weight: 700; font-size: 10pt; color: var(--ink); background: var(--blue-50); padding: 1.8mm 2.2mm; border-bottom: 0.4mm solid var(--blue-100); }
td { padding: 1.6mm 2.2mm; border-bottom: 0.25mm solid var(--line); vertical-align: top; }
tr { break-inside: avoid; }
thead { display: table-header-group; }
table.kv td:first-child { font-weight: 600; width: 34%; }
td.c, th.c { text-align: center; } td.r, th.r { text-align: right; }
.tag { display: inline-block; padding: 0.2mm 2mm; border-radius: 1.2mm; font-weight: 600; font-size: 9.5pt; white-space: nowrap; }
.tag.ok { background: var(--green-50); color: #0b7a3e; } .tag.warn { background: var(--yellow-50); color: var(--yellow-ink); }
.tag.al { background: var(--red-50); color: var(--red); } .tag.grey { background: var(--grey-50); color: var(--ink2); }
.tag.blue { background: var(--blue-50); color: var(--blue); }
.dot { display: inline-block; width: 3mm; height: 3mm; border-radius: 0.7mm; vertical-align: -0.2mm; margin-right: 1mm; }
.dot.g { background: #2fb36a; } .dot.r { background: #e5484d; } .dot.s { background: #8b939c; } .dot.y { background: #f0a92e; }
.btn { display: inline-block; background: #2c3442; color: #fff; border-radius: 1.2mm; padding: 0.1mm 2.2mm; font-size: 9.8pt; font-weight: 600; white-space: nowrap; }
.btn.blue { background: var(--blue); }

/* ---------- SMS (dymki) */
.sms { display: flex; flex-direction: column; gap: 2.4mm; margin: 3mm 0 5mm; max-width: 120mm; }
.sms .msg { align-self: flex-start; background: var(--grey-50); border-radius: 4mm 4mm 4mm 1mm; padding: 2.4mm 3.5mm; font-size: 10.5pt; line-height: 1.3; border: 0.3mm solid var(--line); }
.sms .msg small { display: block; color: var(--ink3); font-size: 8.5pt; margin-bottom: 0.6mm; }

/* ---------- QR */
.qrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 3mm 0 5mm; }
.qrbox { text-align: center; padding: 3mm 2mm; border-radius: var(--r); border: 0.3mm solid var(--line); break-inside: avoid; }
.qrbox svg { width: 26mm; height: 26mm; display: block; margin: 0 auto 1.6mm; }
.qrbox b { display: block; font-size: 10.5pt; }
.qrbox span { font-size: 8.8pt; color: var(--ink2); word-break: break-all; }

/* ---------- spis treści */
.toc { break-before: page; }
.toc h2 { font-size: 22pt; margin-top: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { display: flex; align-items: baseline; gap: 2mm; margin: 0; padding: 1.15mm 0; border-bottom: 0.25mm solid var(--line); }
.toc li.l1 { font-weight: 600; font-size: 12pt; padding-top: 2.4mm; }
.toc li.l2 { padding-left: 11mm; font-size: 10pt; color: var(--ink2); }
.toc li .t { flex: 1; }
.toc li .no { display: inline-flex; width: 7.5mm; height: 7.5mm; border-radius: 2mm; background: var(--blue); color: #fff; font-family: 'Barlow Semi Condensed'; font-size: 11pt; align-items: center; justify-content: center; margin-right: 3mm; }
.toc li .p { min-width: 9mm; text-align: right; font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 600; }
.toc li.l2 .p { color: var(--ink3); font-weight: 400; }

/* ---------- strona "jak czytać" */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin: 3mm 0 5mm; }
.key { display: grid; grid-template-columns: 11mm 1fr; gap: 3mm; align-items: center; padding: 2.4mm 3mm; border-radius: var(--r); background: var(--soft); break-inside: avoid; }
.key .sw { width: 11mm; height: 11mm; border-radius: 2.6mm; display: flex; align-items: center; justify-content: center; color: #fff; }
.key .sw .ic { width: 6.5mm; height: 6.5mm; }
.key b { display: block; font-size: 11pt; }
.key span { font-size: 9.5pt; color: var(--ink2); }
.sw.blue { background: var(--blue); } .sw.green { background: var(--green); } .sw.yellow { background: var(--yellow); color: #3a2a00 !important; }
.sw.red { background: var(--red); } .sw.grey { background: var(--grey); } .sw.navy { background: var(--navy); }

.pagebreak { break-before: page; }
.nobreak { break-inside: avoid; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: center; padding: 6mm; border-radius: 4mm; background: var(--navy); color: #fff; break-inside: avoid; margin-top: 6mm; }
.contact img.logo { height: 9mm; margin-bottom: 3mm; }
.contact p { color: #d6deea; margin: 0 0 1mm; }
.contact b { color: #fff; }
.contact svg { width: 26mm; height: 26mm; background: #fff; border-radius: 2mm; padding: 1.6mm; }
.imprint td { border: none; padding: 0.9mm 3mm 0.9mm 0; font-size: 10pt; }
.imprint td:first-child { color: var(--ink2); width: 32mm; }

/* ======================================================================
   WERSJA NA TELEFON / EKRAN — jedna kolumna, duże elementy
   ====================================================================== */
@media screen {
  html { background: #eef2f7; }
  body { max-width: 780px; margin: 0 auto; background: #fff; font-size: 17px; line-height: 1.5; padding: 0 0 40px; box-shadow: 0 0 24px rgba(20, 33, 58, .08); }
  .screen-only { display: block; }
  .print-only { display: none !important; }
  .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
  .topbar img { height: 22px; }
  .topbar b { font-family: 'Barlow Semi Condensed'; font-size: 17px; }
  .topbar a.toc-link { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 15px; }
  .cover { width: auto; height: auto; padding: 26px 18px 18px; break-after: auto; }
  .cover .logo, .cover .kicker, .cover h1.title, .cover .sub, .cover .bar, .cover .lead, .cover .art, .cover .chips, .cover .foot { position: static; }
  .cover .logo { height: 30px; display: block; margin-bottom: 26px; }
  .cover .nmark { width: 120px; right: -26px; top: -14px; }
  .cover h1.title { font-size: 50px; margin: 4px 0; }
  .cover .sub { font-size: 25px; }
  .cover .bar { margin: 12px 0; }
  .cover .lead { width: auto; font-size: 18px; }
  .cover .art { width: 100%; height: auto; margin: 10px 0; }
  .cover .chips { width: auto; margin-bottom: 16px; }
  .chip { font-size: 13px; padding: 4px 11px; border-radius: 30px; }
  .cover .foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cover .qr { text-align: left; flex-direction: row-reverse; }
  .cover .qr svg { width: 90px; height: 90px; }
  section, .toc, .front { padding: 0 18px; }
  .chapter { padding-top: 34px; }
  .ch-head { grid-template-columns: 56px 1fr; gap: 14px; }
  .ch-head .no { width: 56px; height: 56px; border-radius: 14px; font-size: 30px; }
  .ch-head h1 { font-size: 30px; }
  .ch-head p { font-size: 17px; }
  .ch-head .pic { display: none; }
  .ch-head::after { width: 56px; height: 3px; }
  h2 { font-size: 24px; margin-top: 30px; }
  h2 .ic { width: 28px; height: 28px; }
  h3 { font-size: 20px; }
  figure.art, figure.art.s, figure.art.xs, figure.scr.s, figure.scr.m { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .step .txt { grid-template-columns: 46px 1fr; gap: 12px; }
  .step .txt::before { width: 46px; height: 46px; font-size: 24px; }
  .step .txt p { font-size: 20px; margin-top: 8px; }
  .step .txt p + p { font-size: 16px; }
  .alert { grid-template-columns: 52px 1fr; border-radius: 12px; }
  .alert .sym svg { width: 34px; height: 34px; }
  .alert .sw { font-size: 17px; }
  .tiles, .states, .keys, .two, .qrs { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 48px 1fr auto; padding: 12px 14px; border-radius: 12px; }
  .tile .pic { width: 48px; height: 48px; border-radius: 12px; }
  .tile .pic .ic { width: 28px; height: 28px; }
  .tile b { font-size: 18px; } .tile span.t { font-size: 15px; }
  .tile .go .p { display: none; }
  .tile .go::after { content: '›'; font-size: 28px; }
  .card { grid-template-columns: 48px 1fr; padding: 14px; border-radius: 12px; border-left-width: 7px; }
  .card .pic { width: 48px; height: 48px; } .card .pic .ic { width: 26px; height: 26px; }
  .card h4 { font-size: 20px; }
  .card p, .card ol { font-size: 16px; }
  .flow { flex-direction: column; gap: 4px; }
  .flow .arr { width: auto; height: 28px; transform: rotate(90deg); }
  .flow .f .pic { width: 52px; height: 52px; } .flow .f .pic .ic { width: 28px; height: 28px; }
  .flow .f b { font-size: 18px; } .flow .f span { font-size: 15px; }
  .pair, .pair.rev { grid-template-columns: 1fr; gap: 12px; }
  .pair .big { font-size: 22px; }
  .legend li { grid-template-columns: 34px 1fr; } .legend li .n, .n { width: 28px; height: 28px; font-size: 15px; }
  .legend li b { font-size: 18px; }
  .key { grid-template-columns: 44px 1fr; } .key .sw { width: 44px; height: 44px; border-radius: 11px; } .key .sw .ic { width: 26px; height: 26px; }
  .key b { font-size: 17px; } .key span { font-size: 15px; }
  .state .h { font-size: 20px; } .state p { font-size: 16px; } .state .do { font-size: 16px; }
  .qrbox svg { width: 150px; height: 150px; }
  .sms .msg { font-size: 16px; }
  .toc li.l1 { font-size: 18px; } .toc li.l2 { font-size: 16px; padding-left: 36px; }
  .toc li .p { display: none; }
  .toc li .no { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  table { display: block; overflow-x: auto; font-size: 15px; }
  .contact { grid-template-columns: 1fr; border-radius: 14px; }
  .contact img.logo { height: 28px; }
  .pref { display: none; }
}
.alert .sym .ic { width: 8.5mm; height: 8.5mm; stroke-width: 2; }
.alert.info .sym { color: var(--blue); } .alert.gain .sym, .alert.ok .sym { color: var(--green); } .alert.warn .sym { color: var(--yellow-ink); }
.front h2:first-child { margin-top: 0; }
.qrbox { background: #fff; }
table.kv { break-inside: avoid; }
.states.phones img { max-height: 78mm; object-fit: cover; object-position: top; }
@media screen { .states.phones img { max-height: none; } }
.sms { max-width: 165mm; }
.svc table { font-size: 9.4pt; }
.svc td { padding: 1.3mm 2mm; }
.svc .step.noimg .txt p { font-size: 12pt; }
.svc .step.noimg .txt p + p { font-size: 10pt; }
.svc .step.noimg { padding: 2mm 0; }
.svc .step.noimg .txt::before { width: 9mm; height: 9mm; font-size: 14pt; }
.svc .step.noimg .txt { grid-template-columns: 9mm 1fr; }

/* kontrolujmoc.pl — wersja na stronie: powrót do strony PROTEON i pobranie PDF */
:where(img) { height: auto; } /* atrybuty width/height tylko rezerwują miejsce; wysokości z reguł wyżej mają pierwszeństwo */
@media screen {
  :root { --blue: #1b66c9; --red: #b42318; --green: #0b7a3e; --ink3: #5f6b7d; } /* na ekranie nieco ciemniejsze barwy — kontrast WCAG AA na jasnych tłach; druk bez zmian */
  [id] { scroll-margin-top: 64px; } /* kotwice ze spisu treści nie chowają się pod paskiem */
  .topbar a.home-link { display: flex; align-items: center; gap: 10px; color: var(--ink); }
  .topbar a.toc-link { white-space: nowrap; }
  .topbar a.pdf-link { color: #fff; background: var(--blue); font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 6px; white-space: nowrap; }
  .topbar a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  @media (max-width: 520px) { .topbar .muted { display: none; } }
}
