/* Publiczna aplikacja SaaS ADKU.
 *
 * Ręcznie pisany CSS bez kroku budowania; styl inspirowany szablonem AstroWind
 * i serwisami z płatnymi newsletterami. CSP blokuje skrypty, więc wszystko
 * (menu mobilne, motyw, FAQ) działa bez JavaScriptu. Kolejność sekcji:
 *   1. tokeny (jasny i ciemny motyw)   5. strona główna i katalog
 *   2. baza i typografia               6. produkt, cennik, FAQ
 *   3. układ i komponenty              7. wydanie, paywall, konto, auth
 *   4. nagłówek i stopka               8. panel administracyjny
 */

/* 1. Tokeny ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --font-sans: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Charter", "Bitstream Charter", "Sitka Text", "Iowan Old Style", Cambria, Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --heading: #020617;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-soft-text: #1d4ed8;
  --on-primary: #ffffff;
  --accent: #7c3aed;
  --grad-1: #2563eb;
  --grad-2: #7c3aed;
  --grad-3: #db2777;

  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --ok-line: #bbf7d0;
  --warn: #a16207;
  --warn-soft: #fefce8;
  --warn-line: #fde68a;
  --err: #b91c1c;
  --err-soft: #fef2f2;
  --err-line: #fecaca;

  --header-bg: rgba(255, 255, 255, 0.82);
  --glow-1: rgba(37, 99, 235, 0.14);
  --glow-2: rgba(124, 58, 237, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, 0.28);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.45);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --surface: #111a2e;
    --surface-2: #1a2439;
    --border: #243047;
    --border-strong: #334155;
    --text: #e2e8f0;
    --text-muted: #a3b1c6;
    --text-subtle: #8a99b0;
    --heading: #f8fafc;

    --primary: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-soft: rgba(96, 165, 250, 0.12);
    --primary-soft-text: #93c5fd;
    --on-primary: #0b1120;
    --accent: #a78bfa;
    --grad-1: #60a5fa;
    --grad-2: #a78bfa;
    --grad-3: #f472b6;

    --ok: #4ade80;
    --ok-soft: rgba(74, 222, 128, 0.1);
    --ok-line: rgba(74, 222, 128, 0.3);
    --warn: #facc15;
    --warn-soft: rgba(250, 204, 21, 0.1);
    --warn-line: rgba(250, 204, 21, 0.3);
    --err: #f87171;
    --err-soft: rgba(248, 113, 113, 0.1);
    --err-line: rgba(248, 113, 113, 0.3);

    --header-bg: rgba(11, 17, 32, 0.78);
    --glow-1: rgba(96, 165, 250, 0.16);
    --glow-2: rgba(167, 139, 250, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --focus: 0 0 0 3px rgba(96, 165, 250, 0.55);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* 2. Baza i typografia ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); font-size: 0.9rem; }
.empty { color: var(--text-muted); font-style: italic; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

.text-gradient {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (forced-colors: active) {
  .text-gradient { background: none; color: CanvasText; }
}

/* 3. Układ i komponenty ------------------------------------------------------------ */

.container, .wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }
.container-read { max-width: calc(70ch + 2 * var(--gutter)); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0.55em 1.2em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  width: fit-content;
}
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 8px 20px -10px var(--primary); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-subtle); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 50px; padding: 0.75em 1.6em; font-size: 1.02rem; }
.btn-small { min-height: 34px; padding: 0.35em 0.95em; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: var(--err); filter: brightness(0.9); }
@media (prefers-color-scheme: dark) {
  .btn-danger { color: #1a0b0b; }
}
.btn .icon { width: 1.1em; height: 1.1em; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 600; }
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* odznaki */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.7em;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge .icon { width: 1em; height: 1em; }
.badge-primary { background: var(--primary-soft); color: var(--primary-soft-text); border-color: transparent; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge-warn, .tag-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge-err, .tag-err { background: var(--err-soft); color: var(--err); border-color: var(--err-line); }
.tag-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
a.badge:hover, a.tag:hover { text-decoration: none; border-color: var(--border-strong); }

/* karty */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { margin: 0; }

/* komunikaty */
.flash, .notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.95rem;
}
.flash .icon, .notice .icon { margin-top: 0.1em; }
.flash-ok, .notice-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--text); }
.flash-ok .icon, .notice-ok .icon { color: var(--ok); }
.flash-err { background: var(--err-soft); border-color: var(--err-line); color: var(--text); }
.flash-err .icon { color: var(--err); }
.notice-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--text); }
.notice-warn .icon { color: var(--warn); }
.flash-area { padding-top: 16px; }
.flash-area .flash { margin: 0 0 8px; }

/* formularze */
label { display: block; margin: 0 0 14px; font-size: 0.92rem; font-weight: 500; color: var(--text); }
.field { margin-bottom: 16px; }
.field label { margin-bottom: 6px; }
.field-hint { margin-top: 6px; color: var(--text-subtle); font-size: 0.84rem; font-weight: 400; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input, .field select, .field textarea { margin-top: 0; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.check-row { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* przełącznik (checkbox bez JS) */
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-subtle);
  transition: transform 0.2s, background-color 0.2s;
}
.switch:checked { background: var(--primary); border-color: var(--primary); }
.switch:checked::before { transform: translateX(18px); background: var(--on-primary); }
.switch:focus-visible { outline: none; box-shadow: var(--focus); }
@media (forced-colors: active) {
  .switch { appearance: auto; -webkit-appearance: auto; width: 20px; height: 20px; }
  .switch::before { display: none; }
}

/* tabele */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table th {
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 4. Nagłówek i stopka ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 16px -8px #7c3aed;
}
.brand-mark .icon { width: 18px; height: 18px; }

.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop > a, .nav-desktop .link-btn {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-desktop > a:hover, .nav-desktop .link-btn:hover {
  color: var(--heading);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-desktop > a[aria-current="page"] { color: var(--heading); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.nav-mobile > summary {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}
.nav-mobile-panel > a, .nav-mobile-panel .link-btn {
  display: block;
  width: 100%;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-weight: 500;
  text-align: left;
}
.nav-mobile-panel > a:hover { text-decoration: none; background: var(--surface-2); }
.nav-mobile-panel .btn { display: flex; margin-top: 12px; width: 100%; border-bottom: 0; color: var(--on-primary); text-align: center; }
.nav-mobile-panel .btn:hover { background: var(--primary-hover); }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 48px 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}
.footer-brand p { max-width: 36ch; margin-top: 12px; }
.footer-col h2 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--heading); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-muted); }

/* 5. Strona główna i katalog ----------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  z-index: -1;
  height: 140%;
  background:
    radial-gradient(40% 50% at 25% 35%, var(--glow-1), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, var(--glow-2), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero-badge .icon { color: var(--primary); }
.hero-title {
  max-width: 18ch;
  margin: 0 auto 24px;
  font-size: clamp(2.2rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 62ch;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin: 20px 0 0; color: var(--text-subtle); font-size: 0.88rem; }

/* kroki „jak to działa” */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 800;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); }

/* siatka zalet */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature { display: flex; gap: 16px; }
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}
.feature h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* karty produktów */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.product-card { gap: 14px; padding: 28px; }
.product-card h3 { font-size: 1.35rem; }
.product-card h3 a { color: var(--heading); }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-card h3 a:hover { text-decoration: none; }
.product-card h3 a:focus-visible { outline: none; }
.product-card:focus-within { box-shadow: var(--focus); }
.product-card .tagline { color: var(--text-muted); }
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  list-style: none;
}
.meta-list li { display: inline-flex; align-items: center; gap: 6px; }
.meta-list .icon { width: 1.05em; height: 1.05em; color: var(--text-subtle); }
.product-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price-from { color: var(--text-muted); font-size: 0.85rem; line-height: 1.3; }
.price-from strong { display: block; color: var(--heading); font-size: 1.3rem; letter-spacing: -0.02em; }
.product-card-foot .link-arrow { position: relative; z-index: 1; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  text-align: center;
}
.empty-state .icon { width: 36px; height: 36px; color: var(--text-subtle); }
.empty-state h3 { margin: 4px 0 0; }
.empty-state p { margin: 0; max-width: 48ch; }

/* pasek wezwania do działania */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e3a8a, #4c1d95 60%, #831843);
  color: #e0e7ff;
  text-align: center;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 80% at 80% 0%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin: 0 auto 24px; color: #c7d2fe; font-size: 1.08rem; }
.cta-band .btn { background: #fff; color: #1e1b4b; }
.cta-band .btn:hover { background: #e0e7ff; }
.cta-band .btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* 6. Produkt, cennik, FAQ -------------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--text-subtle);
  font-size: 0.88rem;
  list-style: none;
}
.crumbs a { color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }

.product-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); text-align: left; }
.product-hero .hero-title { max-width: 20ch; margin-inline: 0; font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
.product-hero .hero-lead { margin-inline: 0; margin-bottom: 20px; }
.product-hero .hero-actions { justify-content: flex-start; }
.product-hero .meta-list { margin-bottom: 28px; font-size: 0.95rem; }
.product-hero .notice { max-width: 640px; }
.product-description { max-width: 70ch; margin-bottom: 24px; color: var(--text-muted); font-size: 1.02rem; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brief-card { gap: 8px; }
.brief-card-head { display: flex; align-items: center; gap: 12px; }
.brief-card .feature-icon { width: 38px; height: 38px; }
.brief-card h3 { font-size: 1.08rem; }
.brief-card p { color: var(--text-muted); font-size: 0.95rem; }
.brief-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
}

/* podgląd najnowszych wydań z zanikającym leadem */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.preview-card { overflow: hidden; height: 100%; }
.preview-card .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-card h3 { font-size: 1.15rem; line-height: 1.3; }
.preview-card h3 a { color: var(--heading); }
.fade-text {
  position: relative;
  max-height: 8em;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
}
.fade-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, transparent, var(--surface));
}
.lock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}
.lock-line .icon { width: 1.05em; height: 1.05em; }

/* filtr i lista archiwum */
.archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.archive-head h2 { margin: 0; }
.archive-head p { margin: 4px 0 0; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.chip:hover { border-color: var(--border-strong); color: var(--heading); text-decoration: none; }
.chip[aria-current="page"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.chip .count { opacity: 0.7; font-variant-numeric: tabular-nums; }

.issue-cards { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.issue-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 760px) {
  .issue-row { grid-template-columns: 180px 1fr; }
}
.issue-row-date { color: var(--text-subtle); font-size: 0.88rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.issue-row h3 { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.35; }
.issue-row h3 a { color: var(--heading); }
.issue-row h3 a:hover { color: var(--primary); text-decoration: none; }
.issue-row p { margin: 8px 0 0; color: var(--text-muted); max-width: 75ch; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.more-row { margin-top: 24px; text-align: center; }

/* cennik */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.price-card { gap: 16px; height: 100%; padding: 32px 28px; }
.price-card--featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card .ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.price-card h3 { font-size: 1.1rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.price strong { color: var(--heading); font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--text-muted); }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: 0.15em; color: var(--ok); }
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note { max-width: 62ch; margin: 28px auto 0; color: var(--text-subtle); font-size: 0.9rem; text-align: center; }

/* FAQ na <details> */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.faq details > div { padding: 0 20px 18px; color: var(--text-muted); }
.faq details > div p:last-child { margin: 0; }

/* 7. Wydanie, paywall, konto, auth ---------------------------------------------------- */

.article { padding-block: clamp(32px, 6vw, 72px) 64px; }
.article-header { margin-bottom: 32px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.article-title {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 0.9rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 1.05em; height: 1.05em; }
.article-lead {
  margin: 28px 0 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.16rem, 1.08rem + 0.4vw, 1.34rem);
  line-height: 1.6;
}

.prose {
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1rem + 0.25vw, 1.16rem);
  line-height: 1.78;
  color: var(--text);
}
.prose > * { margin: 0 0 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-sans);
  line-height: 1.3;
}
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.05em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--text-subtle); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  font-style: italic;
}
.prose strong { color: var(--heading); }
.prose code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 0.88em; }
.prose pre code { padding: 0; background: none; }
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9em;
}
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-soft); }
.prose img { height: auto; border-radius: var(--radius); }
.prose hr { margin: 2.4em auto; width: 40%; }

sup.cite {
  position: relative;
  top: -0.55em;
  font-family: var(--font-sans);
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
}
sup.cite a {
  display: inline-block;
  min-width: 1.7em;
  margin-left: 0.1em;
  padding: 0.3em 0.45em;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
sup.cite a:hover { background: var(--primary); color: var(--on-primary); }

section.sources {
  margin-top: 3em;
  padding-top: 1.6em;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
}
section.sources h2 {
  margin: 0 0 1em;
  color: var(--text-subtle);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
ol.sources { margin: 0; padding: 0; list-style: none; counter-reset: src; }
ol.sources li {
  position: relative;
  margin: 0 0 0.8em;
  padding-left: 2.5em;
  color: var(--text-muted);
  counter-increment: src;
}
ol.sources li::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: 0.1em;
  min-width: 1.8em;
  padding: 0.1em 0.35em;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8em;
  font-weight: 700;
  text-align: center;
}
ol.sources li:target { color: var(--text); }
ol.sources li:target::before { background: var(--primary); color: var(--on-primary); }
ol.sources a {
  color: var(--heading);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}
ol.sources a:hover { text-decoration-color: currentColor; }

.history {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.92rem;
}
.history summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.history summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.history ol { margin: 0; padding: 0 18px 16px 38px; color: var(--text-muted); }
.history li { margin-bottom: 6px; }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.article-footer p { margin: 0; color: var(--text-muted); }
.article-footer strong { display: block; color: var(--heading); }

/* paywall */
.paywall-teaser { position: relative; }
.paywall-teaser .article-lead { max-height: 10em; overflow: hidden; }
.paywall-teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6em;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.paywall-card {
  position: relative;
  margin-top: 8px;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.paywall-card .lock {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.paywall-card .lock .icon { width: 26px; height: 26px; }
.paywall-card h2 { margin-bottom: 10px; }
.paywall-card > p { max-width: 52ch; margin: 0 auto 24px; color: var(--text-muted); }
.paywall-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.paywall-plans li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.paywall-plans strong { display: block; color: var(--heading); }
.paywall-plans .amount { color: var(--heading); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.paywall-card .hero-actions { justify-content: center; }
.paywall-card .hero-note { margin-top: 16px; }

/* ekrany logowania i rejestracji */
.auth-shell {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(32px, 8vw, 80px) var(--gutter);
  isolation: isolate;
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 50% at 50% 0%, var(--glow-1), transparent 70%);
}
.auth-card, .auth-box {
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.auth-box { margin: 40px auto; }
.auth-card-head { margin-bottom: 24px; text-align: center; }
.auth-card-head .brand-mark { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; }
.auth-card-head .brand-mark .icon { width: 22px; height: 22px; }
.auth-card h1, .auth-box h1 { margin-bottom: 6px; font-size: 1.6rem; }
.auth-card-head p { margin: 0; color: var(--text-muted); }
.auth-card form .btn, .auth-box form .btn { width: 100%; margin-top: 8px; }
.auth-alt {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}
.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.label-row a { font-size: 0.85rem; font-weight: 500; }

/* konto czytelnika */
.dashboard { padding-block: clamp(32px, 5vw, 56px) 64px; }
.dashboard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.dashboard-head h1 { margin: 0 0 4px; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.2rem); }
.dashboard-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); }
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.stat-tile .feature-icon { width: 42px; height: 42px; }
.stat-tile strong { display: block; color: var(--heading); font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.02em; }
.stat-tile span { color: var(--text-muted); font-size: 0.88rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 960px) {
  .dashboard-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
.panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.panel + .panel { margin-top: 24px; }
.panel-head { margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.sub-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sub-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.sub-item strong { color: var(--heading); }
.sub-item .subtle { display: block; }
.toggle-list { margin: 0 0 20px; padding: 0; list-style: none; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.toggle-list li:last-child .toggle-row { border-bottom: 0; }
.toggle-row strong { display: block; color: var(--heading); font-weight: 600; }
.toggle-row small { color: var(--text-muted); font-size: 0.86rem; font-weight: 400; }
.toggle-row--master {
  margin-bottom: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.list-label {
  margin: 16px 0 4px;
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.delivery-title { color: var(--heading); font-weight: 500; }
.table td .subtle { display: block; margin-top: 2px; font-size: 0.84rem; }

/* strony komunikatów (404, 410 itd.) */
.message-page {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-block: clamp(56px, 12vw, 128px);
  text-align: center;
}
.message-page .message-code {
  margin: 0;
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}
.message-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.message-icon .icon { width: 30px; height: 30px; }
.message-page h1 { margin: 0; }
.message-page p { max-width: 52ch; margin: 0; color: var(--text-muted); font-size: 1.08rem; }
.message-page .hero-actions { margin-top: 16px; }

/* 8. Panel administracyjny (odświeżenie na tych samych tokenach) --------------------------- */

.admin-header .header-row { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
.admin-header .site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.admin-header .site-nav a, .admin-header .site-nav .link-btn {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.admin-header .site-nav a:hover, .admin-header .site-nav .link-btn:hover {
  background: var(--surface-2);
  color: var(--heading);
  text-decoration: none;
}
.admin-header .site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-soft-text); }
.admin-body main.wrap { padding-block: 24px 64px; }
.admin-body h1 { font-size: 1.7rem; margin: 8px 0 16px; }
.admin-body h2 { font-size: 1.15rem; margin: 28px 0 12px; }
.admin-body .table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 760px) {
  .admin-body .table { display: block; overflow-x: auto; }
}
.product-block h2:first-child { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 16px 0; }
.stat {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.stat-num { display: block; color: var(--heading); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 16px; }
.filter-row .tag { padding: 5px 12px; font-size: 0.82rem; }
.product-block, .account-col, .settings-form {
  margin: 16px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin: 16px 0;
}
.account-grid .account-col { margin: 0; min-width: 0; }
.account-col h2:first-child, .settings-form h2:first-of-type { margin-top: 0; }
.settings-form { max-width: 720px; }
.search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.search-form input { flex: 1 1 240px; max-width: 420px; margin-top: 0; }

@media print {
  .site-header, .site-footer, .nav-mobile, .article-footer, .history { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 11pt; }
}
