/* woda.cetel.pl — jeden plik stylów. Biel + głęboka woda; skala twardości jako element rozpoznawczy. */
:root {
  --ink: #13262B;      /* tekst główny */
  --body: #30444A;     /* tekst akapitów */
  --muted: #4A5F66;    /* podpisy, etykiety */
  --sea: #0B3C49;      /* kolor marki, nagłówki, przyciski */
  --sea-2: #1E6F85;    /* hover, trzeci segment skali */
  --sea-3: #3A9BB0;    /* drugi segment skali */
  --sea-4: #9FD6E2;    /* pierwszy segment skali */
  --mist: #F3F7F8;     /* tło sekcji */
  --line: #E3EBEE;     /* linie */
  --line-2: #CFDCE0;   /* ramki pól i przycisków */
  --warm: #C9622B;     /* uwaga — tylko tam, gdzie coś wymaga reakcji */
  --ok: #2E7D4F;
  --font-h: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-b: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --r: 12px;
  --r-lg: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.55 var(--font-b); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--sea-2); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--sea); margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; color: var(--body); }
p + p { margin-top: 12px; }
ul, ol { margin: 0; padding-left: 22px; color: var(--body); }
li + li { margin-top: 6px; }
strong, b { color: var(--ink); }
small { font-size: 14px; color: var(--muted); }
code { font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace; font-size: 0.92em; background: var(--mist); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--sea-3); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 56px; }
.section--tight { padding-block: 36px; }
.section--mist { background: var(--mist); }
.section--sea { background: var(--sea); color: #D7E6EA; }
.section--sea h2, .section--sea h3 { color: #fff; }
.section--sea p { color: #D7E6EA; }
.section--sea a { color: #fff; }
.eyebrow { font: 500 13px/1.4 var(--font-b); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.55; max-width: 60ch; }
.measure { max-width: 68ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 10px; }
.stack--lg { gap: 28px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > * { min-width: 0; }

/* nagłówek */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.site-header .nav { order: 3; }
/* logo: ten sam sprite co na manufaktura.cetel.pl i cetel-hurtownia.pl (480×153 → 138×44) */
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo-mark { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-mark i { display: block; background-image: url("https://cetel-hurtownia.pl/logo.png"); background-repeat: no-repeat; background-size: 138px 44px; }
.logo-mark .li { width: 26px; height: 44px; background-position: 0 0; }
.logo-mark .lw { width: 111px; height: 22px; background-position: -27px -9px; margin-left: 3px; }
.brand-sub { font: 600 13px/1 var(--font-h); letter-spacing: 3px; color: var(--sea); text-transform: uppercase; }
.header-tel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 8px; font: 700 15px/1 var(--font-h); color: var(--sea); text-decoration: none; white-space: nowrap; }
.header-tel:hover { color: var(--sea-2); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sea); border-bottom-color: var(--sea); }
.nav a.nav--muted { color: var(--muted); }
.nav-toggle { display: none; min-height: 44px; min-width: 44px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font: 600 14px var(--font-h); color: var(--sea); cursor: pointer; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-block: 14px 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sea); }

/* przyciski, chipy, pola */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 600 16px/1.2 var(--font-h); text-decoration: none; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--sea); color: var(--sea); }
.btn--primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn--primary:hover { background: var(--sea-2); border-color: var(--sea-2); color: #fff; }
.btn--ghost { background: transparent; border-color: #6FA3B1; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: #fff; }
.btn--white, .section--sea .btn--white { background: #fff; border-color: #fff; color: var(--sea); }
.btn--white:hover, .section--sea .btn--white:hover { background: var(--mist); color: var(--sea); }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--wide { width: 100%; justify-content: space-between; text-align: left; }
.btn--wide small { font: 400 14px/1.3 var(--font-b); color: var(--muted); }
.btn--dashed { border-style: dashed; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font: 500 15px/1 var(--font-b); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--sea); color: var(--sea); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--sea); border-color: var(--sea); color: #fff; }
label.lbl, .lbl { display: block; font: 700 14px/1.3 var(--font-h); color: var(--sea); margin-bottom: 6px; }
.in { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; font: 400 17px/1.2 var(--font-b); color: var(--ink); }
.in:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px rgba(58,155,176,.25); }
textarea.in { min-height: 120px; padding: 14px 16px; line-height: 1.5; }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230B3C49' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.help { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.check input { width: 20px; height: 20px; accent-color: var(--sea); margin: 2px 0 0; flex: 0 0 auto; }
.opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; font: 600 15px/1.2 var(--font-h); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--sea); color: var(--sea); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt.is-on, .opt:has(input:checked) { background: var(--sea); border-color: var(--sea); color: #fff; }
.opt.is-on small, .opt:has(input:checked) small { color: #D7E6EA; }
.opt small { font: 400 13px/1.2 var(--font-b); color: var(--muted); }

/* skala twardości */
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; }
.scale > div { height: 14px; }
.scale > div:nth-child(1) { background: var(--sea-4); border-radius: 7px 0 0 7px; }
.scale > div:nth-child(2) { background: var(--sea-3); }
.scale > div:nth-child(3) { background: var(--sea-2); }
.scale > div:nth-child(4) { background: var(--sea); border-radius: 0 7px 7px 0; }
.scale-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 14px; color: var(--body); }
.scale-labels b { font-family: var(--font-h); display: block; color: var(--ink); }
.scale-wrap { position: relative; padding-top: 26px; }
.scale-marker { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transition: left .3s; }
.scale-marker b { font: 800 14px/1 var(--font-h); color: var(--sea); white-space: nowrap; }
.scale-marker::after { content: ""; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--sea); }
.scale-marker--range { transform: none; align-items: stretch; }
.scale-marker--range::after { display: none; }
.scale-range { position: absolute; top: 18px; height: 6px; border-radius: 3px; background: var(--warm); opacity: .9; }

/* karty, listy, liczby */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card--mist { background: var(--mist); border-color: var(--mist); }
.card--rec { border: 2px solid var(--sea); }
.card--warn { border-left: 4px solid var(--warm); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sea); color: #fff; font: 700 12px/1 var(--font-h); white-space: nowrap; }
.badge--warm { background: var(--warm); }
.badge--muted { background: var(--line); color: var(--sea); }
.kv { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--mist); border-radius: var(--r); min-width: 0; }
.kv b { font: 700 20px/1.15 var(--font-h); color: var(--ink); }
.kv span { font-size: 13px; color: var(--muted); }
.kv--white { background: #fff; }
.num { font: 800 36px/1 var(--font-h); }
.big-num { font: 800 clamp(44px, 7vw, 64px)/1 var(--font-h); letter-spacing: -0.03em; color: var(--sea); font-variant-numeric: tabular-nums; }
.list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.trust-item { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--sea); font-size: 14px; color: var(--muted); }
.trust-item b { font: 700 16px/1.3 var(--font-h); color: var(--ink); }
.trust-item--warm { border-top-color: var(--warm); }
.steps-card { background: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.steps-card:hover { outline: 2px solid var(--sea-3); }
.steps-card .num { color: var(--sea-4); }
.steps-card:nth-child(2) .num { color: var(--sea-3); }
.steps-card:nth-child(3) .num { color: var(--sea-2); }
.steps-card:nth-child(4) .num { color: var(--sea); }
.steps-card:nth-child(5) .num { color: var(--warm); }
.steps-card b { font: 700 16px/1.3 var(--font-h); color: var(--sea); }
.steps-card span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #E3EBEE; color: var(--muted); font-size: 13px; line-height: 1.4; border-radius: 14px; }
.note { font-size: 14px; color: var(--muted); }
.note--warm { color: var(--warm); font-weight: 500; }
.source { font-size: 14px; color: var(--muted); }
.source a { color: var(--muted); }
.tag-src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.tag-src--pomiar { background: #E2F2EA; color: var(--ok); }
.tag-src--szacunek { background: #FBE9DE; color: var(--warm); }
.tag-src--wlasny { background: #E3EBEE; color: var(--sea); }

/* tabele */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 13px/1.3 var(--font-h); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--mist); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* artykuł */
.article { max-width: 70ch; }
.article h2 { margin-top: 36px; margin-bottom: 10px; font-size: 24px; }
.article h3 { margin-top: 24px; margin-bottom: 8px; }
.article p { margin-top: 12px; }
.article ul, .article ol { margin-top: 10px; }
.article table { margin-top: 12px; }
.article blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--sea-4); background: var(--mist); border-radius: 0 var(--r) var(--r) 0; }
.answer-box { border-left: 4px solid var(--sea); padding: 14px 18px; background: var(--mist); border-radius: 0 var(--r) var(--r) 0; font-size: 17px; line-height: 1.55; }
.byline { font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 17px/1.3 var(--font-h); color: var(--sea); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* narzędzia (kroki) */
.tool { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; }
.tool--mist { background: var(--mist); border-color: var(--mist); }
.step { display: none; flex-direction: column; gap: 18px; }
.step.is-active { display: flex; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.is-done { background: var(--sea); }
.progress span.is-now { background: var(--sea-3); }
.result-head { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sym { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink); }
.sym:hover { border-color: var(--sea); }
.sym input { width: 22px; height: 22px; accent-color: var(--sea); flex: 0 0 auto; margin: 0; }
.sym.is-on { border-color: var(--sea); background: #EEF5F7; }
.diag { position: sticky; top: 84px; }

/* stopka, baner zgody */
.site-footer { background: var(--mist); color: var(--body); padding-block: 40px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer b { font: 800 16px/1.3 var(--font-h); color: var(--sea); display: block; }
.site-footer a { display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .result-head { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .result-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.grid-3--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 40px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 20px 12px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .diag { position: static; }
  .tool { padding: 20px; }
  .scale-labels { font-size: 12px; }
  .site-header .wrap { position: relative; }
  .header-tel span { display: none; }
  .header-tel { margin-right: 0; min-width: 44px; min-height: 44px; justify-content: center; }
  .brand { gap: 10px; }
  .brand-sub { font-size: 11px; letter-spacing: 2px; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }
@media (max-width: 480px) {
  .scale-labels { font-size: 11px; }
  .btn--wide small { display: none; }
}
@media print { .site-header, .site-footer, .btn { display: none !important; } }
