/* Qsuli Partner - system wyglądu (spójny ze stroną główną v4 qsuli.com). Bez frameworków, bez !important. */
@font-face { font-family: "Qsuli DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dmsans-500-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Qsuli DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dmsans-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Qsuli DM Sans"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/dmsans-900-italic-latin.woff2") format("woff2"); 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; }
@font-face { font-family: "Qsuli DM Sans"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/dmsans-900-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Qsuli Cormorant"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/cormorant-700-italic.woff2") format("woff2"); }

:root {
  --bg: #FAF7F2; --surface: #F1EBE2; --card: #FFFFFF; --text: #2E2622; --muted: #6E625A; --brand: #6B4E3D; --brand-dark: #553D30;
  --line: #E3DBD0; --accent: #B5523B; --accent-dark: #97412E; --ok: #3E6B48; --ok-bg: #E7EFE5; --warn: #8A5A12; --warn-bg: #F6ECD9;
  --err: #A8402B; --err-bg: #F6E3DE; --info-bg: #ECE6F2;
  --r: 4px; --r-lg: 10px; --shadow: 0 1px 2px rgba(46,38,34,.05), 0 8px 24px rgba(46,38,34,.06);
  --font: "Qsuli DM Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Qsuli DM Sans", "DM Sans", system-ui, sans-serif;
  --serif: "Qsuli Cormorant", "Cormorant Garamond", Georgia, serif;
  --edge: clamp(16px, 5vw, 64px); --maxw: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* typografia */
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; color: var(--text); }
.display, h1.display { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: 0; line-height: 1; font-size: clamp(34px, 5.4vw, 72px); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: 0; text-transform: none; }
h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }
h3 { font-size: 17px; font-weight: 500; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }

/* pasek stagingu */
.staging-bar { background: var(--accent); color: #fff; text-align: center; font-size: 12px; letter-spacing: .04em; padding: 4px 8px; }

/* nagłówek */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.site-head__in { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--edge); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.logo img { width: 104px; height: auto; }
.logo span { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 22px; color: var(--brand); line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 4px 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a, .site-nav button.link { font-size: 14px; color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav button.link:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.langs { display: flex; gap: 10px; font-size: 12px; letter-spacing: .08em; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { color: var(--text); border-bottom: 1px solid var(--text); }
.menu-toggle { display: none; background: transparent; color: var(--text); border: 1px solid var(--line); padding: 8px 10px; min-height: 40px; letter-spacing: 0; text-transform: none; }
.menu-toggle:hover { background: var(--surface); color: var(--text); border-color: var(--line); }
@media (max-width: 760px) {
  .site-head__in { flex-wrap: wrap; gap: 10px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0 6px; margin: 0; }
  .site-head.open .site-nav { display: flex; }
  .site-nav a, .site-nav button.link { font-size: 16px; }
}

/* układ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--edge) 72px; }
.wrap.narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.page-head h1 { margin: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack-sm > * + * { margin-top: 8px; }
.spacer { flex: 1; }

/* karty */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.2vw, 24px); margin: 0 0 16px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--surface); border-color: transparent; box-shadow: none; }
.card__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.card__head h2, .card__head h3 { margin: 0; font-size: 16px; }
.card__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.card__icon svg { width: 18px; height: 18px; }
.stat { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.stat small { font-size: 13px; color: var(--muted); display: block; letter-spacing: 0; margin-top: 4px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0 0 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; text-decoration: none; color: var(--text); display: block; }
.kpi b { display: block; font-size: 24px; font-weight: 500; margin-top: 4px; }
a.kpi:hover { border-color: var(--brand); color: var(--text); }
.kpi--alert { border-color: var(--accent); }
.kpi--alert b { color: var(--accent); }

/* przyciski */
.btn, button { font: 500 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; background: var(--text); color: #fff; border: 1px solid var(--text); border-radius: var(--r); padding: 14px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; }
.btn:hover, button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.secondary, button.secondary, .btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.secondary:hover, button.secondary:hover, .btn--ghost:hover { background: var(--text); color: #fff; }
.btn--light { background: #fff; color: var(--text); border-color: #fff; }
.btn--light:hover { background: var(--surface); color: var(--text); border-color: var(--surface); }
.btn.small, button.small { padding: 9px 12px; font-size: 12px; min-height: 36px; }
button.link { background: none; border: 0; color: var(--brand); padding: 0; min-height: 0; font-size: 14px; letter-spacing: 0; text-transform: none; text-decoration: underline; }
button.link:hover { background: none; color: var(--accent); }
button.danger, .btn--danger { background: var(--err); border-color: var(--err); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn svg, button svg { width: 16px; height: 16px; }

/* formularze */
form.stack { display: grid; gap: 14px; max-width: 620px; }
form.inline { display: inline; margin: 0; }
label { display: grid; gap: 6px; font-size: 14px; }
.label-hint { font-size: 13px; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
label.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  font: 500 16px/1.4 var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); width: 100%; min-height: 46px;
}
input:hover, select:hover, textarea:hover { border-color: #CDBFAE; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107, 78, 61, .15); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; }
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 300px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 15px; margin-bottom: 8px; }
.w8 { width: 8rem; } .w20 { max-width: 20rem; } .f2 { flex: 2; min-width: 14rem; } .f1 { flex: 1; min-width: 8rem; }

/* wybór kafelkami (typ współpracy, produkt) */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice__box { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 16px; height: 100%; display: grid; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.choice__box strong { font-size: 16px; font-weight: 500; }
.choice input:checked + .choice__box { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--surface); width: 100%; }

/* komunikaty i etykiety */
.flash { padding: 12px 16px; border-radius: var(--r); margin: 0 0 16px; font-size: 15px; border-left: 3px solid; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); border-color: var(--err); }
.flash.info { background: var(--surface); color: var(--text); border-color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--err { background: var(--err-bg); color: var(--err); }
.badge--info { background: var(--info-bg); color: #5A4A75; }
.badge--muted { color: var(--muted); }

/* tabele */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #FCFAF7; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.filters input[type=search] { max-width: 280px; min-height: 40px; padding: 8px 12px; }
.chip { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--text); background: #fff; }
.chip[aria-current="true"] { background: var(--text); color: #fff; border-color: var(--text); }

/* kopiuj */
.copybox { display: flex; gap: 8px; max-width: 560px; }
.copybox input { flex: 1; font-family: var(--font); letter-spacing: .04em; }
.code-big { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(26px, 3vw, 34px); letter-spacing: .04em; color: var(--brand); }

/* puste stany */
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: #C9BBAA; margin: 0 auto 10px; display: block; }
.empty p { margin: 0 auto 14px; max-width: 42ch; }

/* postęp, oś czasu */
.progress { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--brand); border-color: var(--brand); }
.timeline li.now { color: var(--text); }
.timeline li.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(181, 82, 59, .15); }

/* panel twórcy - nawigacja zakładek */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 22px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--text); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--surface); }
pre.mail { white-space: pre-wrap; background: var(--surface); padding: 14px; border-radius: var(--r); font: 500 13px/1.5 var(--font); }
video, .media-thumb { max-width: 100%; max-height: 320px; border-radius: var(--r); background: #000; }

/* panel admina - boczne menu */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
.admin-side { background: var(--text); color: #EDE6DC; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo img { width: 96px; filter: none; }
.admin-side .logo span { color: #E8D8C6; font-size: 19px; }
.admin-side h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #A99C8F; margin: 22px 10px 6px; font-weight: 500; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: #EDE6DC; text-decoration: none; font-size: 14px; }
.admin-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-side a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.admin-side a svg { width: 16px; height: 16px; opacity: .8; }
.admin-side .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.admin-side form { margin: 0; }
.admin-side button.link { color: #C9BBAA; padding: 8px 10px; text-decoration: none; font-size: 14px; }
.admin-main { min-width: 0; }
.admin-main .wrap { max-width: 1320px; padding-top: 26px; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 12px; display: flex; flex-wrap: wrap; align-items: center; }
  .admin-side nav { display: none; width: 100%; }
  .admin-side.open nav { display: block; }
  .menu-toggle--dark { display: inline-flex; margin-left: auto; color: #EDE6DC; border-color: rgba(255,255,255,.25); }
  .menu-toggle--dark:hover { background: rgba(255,255,255,.08); color: #fff; }
}
.todo { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 22px; }
.todo a { display: grid; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.todo a:hover { border-color: var(--brand); color: var(--text); }
.todo .n { font-size: 34px; line-height: 1; font-weight: 500; }
.todo .n.zero { color: #C9BBAA; }
.todo .t { font-size: 14px; color: var(--muted); }
details.more { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin: 0 0 16px; }
details.more > summary { cursor: pointer; padding: 14px 18px; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
details.more > summary::after { content: "+"; color: var(--muted); }
details.more[open] > summary::after { content: "-"; }
details.more > div { padding: 0 18px 18px; }

/* ---------- strona startowa ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; background: #2E2622; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,24,20,.05) 30%, rgba(30,24,20,.72) 100%); }
.hero__in { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--edge) clamp(36px, 7vw, 84px); }
.hero h1 { color: #fff; margin: 0 0 14px; }
.hero .serif { font-size: clamp(30px, 4.4vw, 56px); color: #F3E6D6; display: block; margin-bottom: 6px; }
.hero p { color: #F4EEE6; font-size: clamp(16px, 1.6vw, 20px); max-width: 44ch; margin: 0 0 22px; }
.section { padding: clamp(48px, 8vw, 104px) var(--edge); }
.section__in { max-width: var(--maxw); margin: 0 auto; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--text); color: #EDE6DC; }
.section--dark h2, .section--dark .display { color: #fff; }
.section h2.display { font-size: clamp(28px, 3.8vw, 52px); margin-bottom: 18px; }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 26px; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-top: 14px; border-top: 1px solid currentColor; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 34px; margin-bottom: 8px; color: var(--accent); }
.steps strong { display: block; font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.split img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: inherit; opacity: .9; }
.facts li::before { content: "- "; }
.cta-band { text-align: center; }
.cta-band .display { font-size: clamp(28px, 4vw, 54px); }

/* wariant B - nowoczesny z kartami */

/* rejestracja wieloetapowa */
.wizard { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } .wizard__aside { order: -1; } }
.wizard__steps { display: flex; gap: 6px; margin: 0 0 18px; }
.wizard__steps span { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.wizard__steps span.on { background: var(--brand); }
.wizard__label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.step[hidden] { display: none; }
.wizard__nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.wizard__aside .card { position: sticky; top: 90px; }
.wizard__aside img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.catalog { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 520px; overflow-y: auto; padding: 2px; }
.catalog .choice__box { padding: 8px; gap: 6px; font-size: 13px; }

/* stopka */
.site-foot { border-top: 1px solid var(--line); padding: 28px var(--edge); font-size: 13px; color: var(--muted); }
.site-foot__in { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.site-foot a { color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-top: 20px; }
  th, td { padding: 9px 10px; }
  .copybox { flex-direction: column; }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none; scroll-behavior: auto; } }
.hero .eyebrow { color: #F3E6D6; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--text); border-color: #fff; }
.pb0 { padding-bottom: 0; }
.serif-brand { color: var(--brand); font-size: clamp(26px, 3vw, 40px); display: block; margin-bottom: 6px; }
.lead.center { margin: 0 auto 22px; }
.section--dark .lead { color: #D8CEC3; }
.mt { margin-top: 22px; }
.order-last { order: 2; }
@media (max-width: 700px) { .order-last { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: 16px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { color: var(--accent); margin-top: 4px; flex: none; }
.step h2:focus { outline: none; }
/* runda 3: sekcja dla klientów sklepu na dole strony startowej */
.customer-note { padding-top: 0; }
.customer-note p { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.customer-note strong { color: var(--text); }
.doc-matrix td, .doc-matrix th { vertical-align: top; }

/* Panel admina - pasek filtrów, sortowanie, menu akcji (uwagi z testów) */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.fb-f { display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin: 0; min-width: 0; }
.fb-f > span { letter-spacing: .02em; }
.fb-f select, .fb-f input[type=search], .fb-f input[type=date] { min-height: 40px; padding: 7px 10px; font-size: 14px; width: auto; max-width: 100%; }
.fb-f select { min-width: 150px; }
.fb-search { flex: 1 1 200px; }
.fb-search input { width: 100%; }
.fb-check { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; color: var(--text); }
.fb-actions { display: flex; gap: 8px; align-items: center; }
.fb-count { flex-basis: 100%; margin: 0; }
.pager { flex-basis: 100%; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
th.sortable { padding: 0; }
th.sortable a { display: flex; align-items: center; gap: 4px; padding: 11px 14px; color: inherit; text-decoration: none; white-space: nowrap; }
th.sortable a:hover, th.sortable a:focus-visible { color: var(--text); background: var(--line); }
.sort-ar { font-size: 10px; opacity: .45; }
.sort-ar.on { opacity: 1; color: var(--brand); }
th[aria-sort] { color: var(--text); }
.sortrow { gap: 6px; align-items: center; margin: 0 0 12px; }
.rowmenu { position: relative; display: inline-block; }
.rowmenu > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 20px; line-height: 1; color: var(--text); }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu > summary:hover, .rowmenu[open] > summary { background: var(--surface); }
.rowmenu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; }
.rowmenu__list a, .rowmenu__list button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text); text-decoration: none; background: none; border: 0; min-height: 0; letter-spacing: 0; text-transform: none; font-weight: 400; cursor: pointer; }
.rowmenu__list a:hover, .rowmenu__list button:hover, .rowmenu__list a:focus-visible, .rowmenu__list button:focus-visible { background: var(--surface); }
.rowmenu__list .danger { color: var(--err); }
.rowmenu__list form { margin: 0; }
@media (max-width: 640px) {
  .filterbar { padding: 10px; }
  .fb-f { flex: 1 1 calc(50% - 6px); }
  .fb-f select, .fb-f input[type=date] { width: 100%; min-width: 0; }
  .fb-search { flex-basis: 100%; }
  .rowmenu__list { right: 0; min-width: 200px; }
}
.table-wrap { position: relative; }
tr:nth-last-child(-n+3):not(:nth-child(-n+4)) .rowmenu__list { top: auto; bottom: calc(100% + 4px); }
