/* ==========================================================================
   DSERVE Partner — arkusz stylów
   ========================================================================== */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --brand: #1c2838;   /* granat z logotypu DSERVE (nadpisywany z Ustawień) */
  --accent: #ec5c3c;  /* pomarańcz z logotypu DSERVE */
  --link: #1d4ed8;    /* kolor odnośników — niezależny od koloru marki, by zachować czytelność */
  --brand-600: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 14%, #fff);
  --brand-200: color-mix(in srgb, var(--brand) 26%, #fff);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --navy: #1c2838;
  --navy-2: #26364a;
  --navy-3: #33465e;
  --good: #0ca30c; --good-ink: #006300; --good-bg: #e7f6e7;
  --warning: #fab219; --warning-ink: #7a4f00; --warning-bg: #fff5da;
  --serious: #ec835a; --serious-ink: #9a3b12; --serious-bg: #fdeee7;
  --critical: #d03b3b; --critical-ink: #a32121; --critical-bg: #fdecec;
  --info: #2a78d6; --info-ink: #1c5cab; --info-bg: #eaf2fc;
  /* skala pokrycia (ordinal, zwalidowana) */
  --cov-none: #e7e5df;
  --cov-low: #86b6ef;
  --cov-mid: #3987e5;
  --cov-good: #1c5cab;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--line-2); padding: .1em .35em; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.i-lg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.r { text-align: right; }
.c { text-align: center; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ---------- Układ ---------- */
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 1rem; }
.stack-s > * + * { margin-top: .5rem; }
.grid { display: grid; gap: 1rem; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Panel: sidebar + treść ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #cbd5e1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem 1.2rem; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar .brand img { height: 30px; max-width: 100%; width: auto; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; }
.nav { padding: .8rem .6rem 1.2rem; flex: 1; }
.nav-sec { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #64748b; padding: 1rem .8rem .35rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; border-radius: 8px; color: #cbd5e1; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav a.active .i { color: var(--accent); }
.nav .count { margin-left: auto; background: var(--accent); color: #1f1300; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; }
.sidebar .side-foot { padding: 1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; color: #94a3b8; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; padding: .65rem 1.5rem; min-height: 60px; }
.topbar .crumbs { font-size: .85rem; color: var(--muted); }
.topbar .crumbs a { color: var(--muted); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: .3rem; color: var(--ink); cursor: pointer; }
.content { padding: 1.5rem; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: .25rem; }
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 40; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
}

/* ---------- Dropdown (details) ---------- */
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .35rem .55rem; border-radius: 8px; color: var(--ink-2); }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { background: var(--line-2); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; z-index: 60; }
.dd-menu a, .dd-menu button { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 8px; color: var(--ink-2); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--line-2); text-decoration: none; }
.dd-menu .dd-head { padding: .5rem .65rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.bell-dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--critical); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.notif-item { display: block; padding: .5rem .65rem; border-radius: 8px; }
.notif-item.unread { background: var(--brand-50); }
.notif-item .t { font-weight: 550; color: var(--ink); font-size: .9rem; }

/* ---------- Karty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line-2); }
.card-h h2, .card-h h3 { margin: 0; font-size: 1rem; }
.card-b { padding: 1.2rem; }
.card-f { padding: .85rem 1.2rem; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card.flat { box-shadow: none; }
.card.accent { border-left: 4px solid var(--brand); }
.card + .card { margin-top: 1rem; }
.grid > .card + .card { margin-top: 0; }

/* ---------- Kafle statystyk ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: block; color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--brand-200); }
.stat .lbl { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.stat .val { font-size: 1.75rem; font-weight: 650; margin-top: .2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.hero-num { font-size: 3rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 550; font-size: .92rem; line-height: 1.2; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: #cbd5e1; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1f1300; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { background: var(--surface); border-color: #f3c1c1; color: var(--critical-ink); }
.btn-danger:hover { background: var(--critical-bg); border-color: var(--critical); }
.btn-good { background: var(--good-ink); border-color: var(--good-ink); color: #fff; }
.btn-good:hover { background: #004f00; }
.btn-sm { padding: .35rem .65rem; font-size: .84rem; border-radius: 6px; }
.btn-lg { padding: .8rem 1.35rem; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--link); padding: 0; font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* ---------- Formularze ---------- */
label { font-weight: 550; font-size: .88rem; color: var(--ink-2); display: block; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=datetime-local], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: .58rem .75rem; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: .94rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); outline: none; }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2rem; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input[readonly] { background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.form-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span2 { grid-column: span 2; }
@media (max-width: 760px) { .form-grid, .form-grid.g3, .form-grid.g4 { grid-template-columns: minmax(0, 1fr); } .form-grid .span2 { grid-column: auto; } }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--critical); }
.field-error { color: var(--critical-ink); font-size: .82rem; margin-top: .3rem; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.req::after { content: ' *'; color: var(--critical); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 450; font-size: .92rem; color: var(--ink-2); cursor: pointer; margin: 0; }
.check input { margin-top: .22rem; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .45rem 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check span { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 550; cursor: pointer; background: #fff; color: var(--ink-2); user-select: none; }
.pill-check input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.input-group { display: flex; gap: .5rem; }
.input-group input { flex: 1; min-width: 0; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 3.2rem; }
.input-suffix span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0 0 1rem; }
legend { font-weight: 650; padding: 0 .4rem; color: var(--ink); }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }
.consent { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .65rem .8rem; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tbody tr:hover td { background: #fafcff; }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table .t-main { font-weight: 600; color: var(--ink); }
.table .t-sub { font-size: .8rem; color: var(--muted); }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--line); }
.table.compact td, .table.compact th { padding: .45rem .6rem; }
.table-actions { white-space: nowrap; text-align: right; }

/* ---------- Badge / statusy ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; line-height: 1.4; }
.badge .i { width: 13px; height: 13px; vertical-align: 0; }
.badge-good { background: var(--good-bg); color: var(--good-ink); }
.badge-warning { background: var(--warning-bg); color: var(--warning-ink); }
.badge-serious { background: var(--serious-bg); color: var(--serious-ink); }
.badge-critical { background: var(--critical-bg); color: var(--critical-ink); }
.badge-info { background: var(--info-bg); color: var(--info-ink); }
.badge-brand { background: var(--brand-100); color: var(--brand-600); }
.badge-neutral { background: var(--line-2); color: var(--ink-2); }
.tag { display: inline-block; padding: .12rem .5rem; border-radius: 6px; background: var(--line-2); color: var(--ink-2); font-size: .78rem; font-weight: 550; margin: 0 .25rem .25rem 0; }

/* ---------- Komunikaty ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 10px; border: 1px solid; margin-bottom: 1rem; font-size: .93rem; }
.alert .i { margin-top: 2px; }
.alert-success { background: var(--good-bg); border-color: #b9e5b9; color: var(--good-ink); }
.alert-error { background: var(--critical-bg); border-color: #f3c1c1; color: var(--critical-ink); }
.alert-warning { background: var(--warning-bg); border-color: #f5dc9a; color: var(--warning-ink); }
.alert-info { background: var(--info-bg); border-color: #c4dbf6; color: var(--info-ink); }
.alert a { color: inherit; text-decoration: underline; font-weight: 600; }

/* ---------- Zakładki ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--muted); font-weight: 550; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .cnt { background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 0 .45rem; font-size: .74rem; }

/* ---------- Filtry / chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { min-width: 160px; }
.filters label { font-size: .78rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .85rem; font-weight: 550; cursor: pointer; }
.chip:hover { text-decoration: none; border-color: var(--brand-200); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Postęp, checklisty, kroki ---------- */
.progress { height: 8px; background: var(--brand-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; flex: none; color: transparent; }
.checklist li.done .ck { background: var(--good-ink); border-color: var(--good-ink); color: #fff; }
.checklist li.done .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: #cbd5e1; }
.checklist .ck .i { width: 14px; height: 14px; }
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1 1 140px; display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 550; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); font-size: .8rem; flex: none; }
.steps li.active { border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px var(--brand-100); }
.steps li.active::before { background: var(--brand); color: #fff; }
.steps li.done::before { content: '✓'; background: var(--good-ink); color: #fff; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.no-js .wizard-step { display: block; }

/* ---------- Klucz–wartość ---------- */
.kv { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: .45rem 1rem; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Oś czasu / komentarze ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--faint); }
.timeline li.c-comment::after { border-color: var(--brand); }
.timeline li.c-internal::after { border-color: var(--warning); }
.timeline .meta { font-size: .78rem; color: var(--muted); }
.timeline .body { margin-top: .2rem; font-size: .92rem; white-space: pre-line; }
.timeline li.c-system .body { color: var(--muted); font-size: .85rem; }
.bubble { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .75rem; }
.c-internal .bubble { background: var(--warning-bg); border-color: #f5dc9a; }

/* ---------- Puste stany ---------- */
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); }
.empty .i { width: 36px; height: 36px; color: var(--faint); margin-bottom: .5rem; }
.empty h3 { color: var(--ink-2); }

/* ---------- Paginacja ---------- */
.pager { display: flex; gap: .3rem; justify-content: flex-end; padding: .9rem 1.2rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .3rem .65rem; border-radius: 7px; border: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.pager .cur { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Mapa ---------- */
.map-card { position: relative; }
.map-wrap { position: relative; }
.pl-map { width: 100%; height: auto; display: block; }
.pl-map .region { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: filter .15s, opacity .15s; cursor: pointer; }
.pl-map .region:hover, .pl-map .region.hover { filter: brightness(.94) saturate(1.1); }
.pl-map .lvl-none { fill: var(--cov-none); }
.pl-map .lvl-low { fill: var(--cov-low); }
.pl-map .lvl-mid { fill: var(--cov-mid); }
.pl-map .lvl-good { fill: var(--cov-good); }
.pl-map.select-mode .region { fill: #e9edf3; }
.pl-map.select-mode .region.selected { fill: var(--cov-mid); }
.pl-map .rlabel { font: 600 11px var(--font); fill: var(--ink-2); pointer-events: none; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.pl-map .rlabel.on-dark { fill: #fff; stroke: rgba(12, 35, 70, .55); }
.pl-map .city { fill: #fff; stroke: var(--ink-2); stroke-width: 1.4; pointer-events: none; }
.pl-map .city-l { font: 500 10px var(--font); fill: var(--ink-2); pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; }
.pl-map .office { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.pl-map .office-l { font: 700 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .95); stroke-width: 3px; pointer-events: none; }
.pl-map .need { pointer-events: none; }
.pl-map .need circle { fill: var(--warning); stroke: #fff; stroke-width: 2; }
.pl-map .need.p-high circle { fill: var(--serious); }
.pl-map .need.p-urgent circle { fill: var(--critical); }
.pl-map .need text { font: 800 11px var(--font); fill: #1f1300; text-anchor: middle; }
.pl-map .need.p-urgent text, .pl-map .need.p-high text { fill: #fff; }
.pl-map .pt { fill: var(--ink); stroke: #fff; stroke-width: 2; cursor: pointer; }
.pl-map .pt.st-pending, .pl-map .pt.st-verification, .pl-map .pt.st-agreement { fill: var(--warning); }
.pl-map .pt.t-internal { fill: var(--accent); }
.pl-map .radius { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1; pointer-events: none; }
.pl-map .base-marker { fill: var(--ink); stroke: #fff; stroke-width: 2.5; pointer-events: none; }
.pl-map .base-radius { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.2; stroke-dasharray: 4 3; pointer-events: none; }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; padding: .55rem .7rem; border-radius: 9px; font-size: .82rem; line-height: 1.4; max-width: 260px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.map-tip.show { opacity: 1; transform: none; }
.map-tip strong { display: block; font-size: .9rem; margin-bottom: .1rem; }
.map-tip .n { color: #fcd34d; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .83rem; color: var(--ink-2); align-items: center; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: .35rem; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: -1px; margin-right: .35rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.map-side { max-height: 560px; overflow: auto; }
.need-list { list-style: none; margin: 0; padding: 0; }
.need-list li { padding: .65rem 0; border-bottom: 1px solid var(--line-2); }
.need-list li:last-child { border-bottom: 0; }

/* ---------- Wykres słupkowy (FTE) ---------- */
.hbar { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 64px; gap: .35rem .8rem; align-items: center; font-size: .86rem; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .track { position: relative; height: 18px; }
.hbar .bar { position: absolute; left: 0; top: 2px; height: 14px; background: #2a78d6; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .mark { position: absolute; top: -1px; width: 3px; height: 20px; background: #eb6834; border-radius: 2px; }
.hbar .ref { position: absolute; top: -4px; bottom: -4px; width: 1px; background: #c3c2b7; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hbar .row-hit { display: contents; }

/* ---------- Umowa (podgląd) ---------- */
.doc-view { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2.5rem; max-height: 72vh; overflow: auto; font-size: .93rem; line-height: 1.6; }
.doc-view h1 { font-size: 1.25rem; text-align: center; }
.doc-view h1 .doc-no { font-size: .95rem; font-weight: 500; color: var(--muted); }
.doc-view .doc-sub { text-align: center; color: var(--muted); }
.doc-view h2 { font-size: 1rem; margin-top: 1.4rem; }
.doc-view h3 { font-size: .95rem; margin-top: 1rem; }
.doc-view ol { padding-left: 1.4rem; }
.doc-view .tbl, .doc-view table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .88rem; }
.doc-view .tbl th, .doc-view .tbl td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; }
.doc-view .page-break { border-top: 2px dashed var(--line); margin: 2rem 0; }
.doc-view .blank { background: var(--warning-bg); color: var(--warning-ink); padding: 0 .3rem; border-radius: 4px; }
.doc-view .sign-table { width: 100%; margin-top: 2.5rem; }
.doc-view .sign-table td { width: 50%; text-align: center; vertical-align: bottom; padding-top: 2.5rem; border: 0; }
@media (max-width: 760px) { .doc-view { padding: 1.2rem; } }

/* ---------- Strona publiczna ---------- */
.site { background: #fff; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .in { max-width: 1200px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.site-logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 34px; max-height: 34px; width: auto; }
.logo-tag { font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; }
.site-logo small { font-weight: 500; color: var(--muted); font-size: .8rem; letter-spacing: 0; }
.site-nav { display: flex; gap: 1.2rem; flex: 1; }
.site-nav a { color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 900px) { .site-nav { display: none; } }
.wrap-in { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.hero { background: radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #0f2444 100%); color: #e2e8f0; padding: 4.5rem 0 4rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; letter-spacing: -.025em; max-width: 780px; }
.hero .lead { font-size: 1.12rem; color: #cbd5e1; max-width: 720px; margin-bottom: 1.8rem; }
.hero .kicker { display: inline-flex; gap: .5rem; align-items: center; font-size: .82rem; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; color: #93c5fd; margin-bottom: 1rem; }
.hero .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 2rem; margin-top: 2.6rem; max-width: 1040px; }
@media (max-width: 860px) { .hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero .facts div { color: #cbd5e1; font-size: .9rem; }
.hero .facts strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.section { padding: 4rem 0; }
.section.alt { background: var(--bg); }
.section h2.title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; letter-spacing: -.02em; }
.section .intro { color: var(--muted); max-width: 720px; font-size: 1.05rem; margin-bottom: 2rem; }
.path-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .path-cards { grid-template-columns: minmax(0, 1fr); } }
.path-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.path-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 1rem; }
.path-card .ic .i { width: 24px; height: 24px; }
.path-card h3 { font-size: 1.3rem; }
.path-card ul { padding-left: 1.1rem; color: var(--ink-2); margin: .5rem 0 1.4rem; }
.path-card li { margin-bottom: .35rem; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 1.3rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.feature .i { width: 26px; height: 26px; color: var(--brand); margin-bottom: .6rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: h; }
@media (max-width: 900px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how div { counter-increment: h; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.how div::before { content: counter(h); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: .7rem; }
.how h3 { font-size: 1rem; }
.how p { color: var(--muted); font-size: .9rem; margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; background: #fff; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .6rem 0 0; color: var(--ink-2); }
.cta-band { background: var(--brand); color: #fff; border-radius: 18px; padding: 2.2rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: color-mix(in srgb, #fff 85%, var(--brand)); }
.cta-band .btn { background: #fff; color: var(--brand-600); border-color: #fff; }
.site-footer { background: var(--navy); color: #94a3b8; padding: 2.8rem 0 2rem; font-size: .88rem; }
.site-footer a { color: #cbd5e1; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer .copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: linear-gradient(160deg, var(--navy), #10305a); color: #cbd5e1; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 1.8rem; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.5rem; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ---------- Rejestracja ---------- */
.reg-wrap { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.svc-table td { vertical-align: middle; }
.svc-table .svc-name { font-weight: 550; }
.svc-table input[type=text], .svc-table select { padding: .4rem .55rem; font-size: .88rem; }
.svc-row.off .svc-price { opacity: .45; }
.group-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 1rem 0 .3rem; }
.nip-status { font-size: .84rem; margin-top: .35rem; min-height: 1.2em; }
.nip-status.ok { color: var(--good-ink); }
.nip-status.err { color: var(--critical-ink); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Druk ---------- */
@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .app { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}
@media (forced-colors: active) {
  .pl-map .region { stroke: CanvasText; }
  .badge { border: 1px solid CanvasText; }
}

/* Edytor szablonów / treści HTML */
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.5; min-height: 62vh; tab-size: 2; }
.ph-list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; }
.ph-list li { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; padding: .3rem 0; border-bottom: 1px solid var(--line-2); font-size: .82rem; }
.ph-list button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; text-align: left; }
.dict-group { padding: .7rem 1.1rem .3rem; }
.dict-list { border-top: 1px solid var(--line-2); }
.dict-item > summary { display: flex; gap: 1rem; align-items: center; padding: .6rem 1.1rem; border-bottom: 1px solid var(--line-2); cursor: pointer; list-style: none; }
.dict-item > summary::-webkit-details-marker { display: none; }
.dict-item > summary .grow { display: flex; flex-direction: column; min-width: 0; }
.dict-item > summary:hover { background: var(--surface-2); }
.dict-item[open] { background: var(--surface-2); }
.dict-item > form { padding: .2rem 1.1rem 1rem; border-bottom: 1px solid var(--line-2); margin-top: 0; }
@media (max-width: 720px) { .dict-item > summary { flex-wrap: wrap; gap: .4rem .8rem; } .dict-item > summary .grow { flex-basis: 100%; } }
.need-list .row.between { flex-wrap: wrap; gap: .3rem .6rem; }
@media (max-width: 560px) {
  .input-group { flex-wrap: wrap; }
  .input-group input { flex: 1 1 100%; }
  .input-group .btn { flex: 1 1 auto; justify-content: center; }
}


/* ---------- Strona główna (landing) ---------- */
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }
.eyebrow { margin: 0 0 .75rem; font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lp-hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; }
@media (max-width: 1000px) { .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
.lp-hero h1 { font-size: clamp(2.1rem, 3.9vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 1.1rem; color: var(--navy); }
.lp-hero .lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 1.8rem; max-width: 34rem; }
.lp-hero .actions { gap: .7rem; }
.lp-proof { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; color: var(--muted); font-size: .9rem; }
.lp-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.lp-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lp-frame { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -24px rgba(15, 23, 42, .25); overflow: hidden; }
.lp-frame-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lp-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lp-frame-bar em { flex: 1; margin-left: .6rem; font-style: normal; font-size: .74rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .18rem .6rem; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-frame figcaption { padding: .7rem .95rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line-2); }
.lp-stats { padding: 1.6rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.lp-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.lp-stats dt { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.lp-stats dd { margin: 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.lp-stats dd small { display: block; font-size: .82rem; font-weight: 450; color: var(--muted); letter-spacing: 0; margin-top: .1rem; }
@media (max-width: 860px) { .lp-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-section { padding: 5rem 0; }
.lp-section.lp-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .lp-section { padding: 3.5rem 0; } }
.lp-head { max-width: 42rem; margin-bottom: 2.6rem; }
.lp-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 .7rem; color: var(--navy); }
.lp-intro { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.lp-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.lp-head-row > div { max-width: 42rem; }
.lp-label { margin: 0 0 .5rem; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.lp-paths article { padding: 2.2rem; display: flex; flex-direction: column; }
.lp-paths article + article { border-left: 1px solid var(--line); }
.lp-paths h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; margin: 0 0 .7rem; color: var(--navy); }
.lp-paths p { color: var(--ink-2); margin: 0 0 1rem; }
.lp-paths ul { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.lp-paths li { position: relative; padding-left: 1.35rem; color: var(--ink-2); line-height: 1.5; }
.lp-paths li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.lp-paths .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .lp-paths { grid-template-columns: minmax(0, 1fr); } .lp-paths article + article { border-left: 0; border-top: 1px solid var(--line); } .lp-paths article { padding: 1.6rem; } }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.lp-steps li { border-top: 2px solid var(--line); padding-top: 1.2rem; }
.lp-steps span { display: block; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.lp-steps h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 .4rem; }
.lp-steps p { color: var(--ink-2); font-size: .93rem; margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lp-steps { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; } }
.lp-showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
@media (max-width: 1000px) { .lp-showcase { grid-template-columns: minmax(0, 1fr); } }
.lp-showcase-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 1.4rem; color: var(--navy); }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.lp-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.lp-list .i { width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }
.lp-list strong { color: var(--ink); }
.lp-showcase-shots { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.5rem; align-items: end; }
@media (max-width: 560px) { .lp-showcase-shots { grid-template-columns: minmax(0, 1fr); } .lp-phone { max-width: 220px; } }
.lp-frame-sm { align-self: end; }
.lp-phone { margin: 0; border: 6px solid #1f2937; border-radius: 26px; background: #1f2937; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .35); }
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 20px; }
.lp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 2.5rem; }
.lp-benefits h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; font-weight: 650; margin: 0 0 .45rem; }
.lp-benefits h3 .i { width: 20px; height: 20px; color: var(--accent); }
.lp-benefits p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .lp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-benefits { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.lp-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lp-services > div { background: #fff; padding: 1.3rem 1.4rem; }
.lp-services h3 { font-size: .98rem; font-weight: 650; margin: 0 0 .35rem; }
.lp-services p:last-child { color: var(--ink-2); font-size: .88rem; line-height: 1.5; margin: 0; }
@media (max-width: 1000px) { .lp-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-services { grid-template-columns: minmax(0, 1fr); } }
.lp-narrow { max-width: 820px; }
.lp-faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; color: var(--ink); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-weight: 500; font-size: 1rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { margin: .7rem 0 0; color: var(--ink-2); line-height: 1.6; max-width: 46rem; }
.lp-cta { padding: 4rem 0 5rem; }
.lp-cta-in { background: var(--navy); color: #fff; border-radius: 16px; padding: 2.6rem 2.8rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.lp-cta-in h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.lp-cta-in p { margin: 0; color: #cbd5e1; }
@media (max-width: 560px) { .lp-cta-in { padding: 1.8rem 1.4rem; } }
.site-footer .foot-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.site-footer .foot-brand img { height: 26px; width: auto; }
.site-footer .foot-brand .logo-tag { color: #94a3b8; border-color: #334155; }
@media (max-width: 640px) { .site-header .in { gap: .8rem; padding: .7rem 1rem; } .site-logo .logo-tag { display: none; } .site-logo img { height: 28px; max-height: 28px; } }
@media (max-width: 420px) { .site-header .btn-ghost.btn-sm .i + * { display: none; } }
/* ---------- Strony błędów ---------- */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; background: var(--bg); }
.bare-main { max-width: 520px; width: 100%; }
.err-page { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2.5rem 2rem; text-align: center; }
.err-logo { display: inline-block; margin-bottom: 1.6rem; }
.err-code { margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.err-page h1 { font-size: 1.45rem; margin: 0 0 .6rem; letter-spacing: -.02em; }
.err-text { color: var(--ink-2); margin: 0 auto .4rem; max-width: 26rem; line-height: 1.55; }
.err-page .actions { justify-content: center; margin-top: 1.4rem; }
