/* ==========================================================================
   yourJustice – arkusz stylów
   Paleta i typografia zgodne z księgą znaku (wariant 7.2).
   Spis: 1. Fonty  2. Tokeny  3. Baza  4. Układ  5. Nagłówek  6. Przyciski
         7. Formularze  8. Komponenty  9. Strona główna  10. Ogłoszenia
         11. Panel  12. Stopka  13. Animacje  14. Responsywność
   ========================================================================== */

/* 1. Fonty – Inter i Inter Display (SIL OFL), hostowane lokalnie (szybkość + RODO) */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* 2. Tokeny ---------------------------------------------------------------- */
:root {
  /* Kolory marki (księga znaku) */
  --brand-royal: #1E4FD8;   /* Królewski błękit – kolor główny */
  --brand-light: #8DB6FF;   /* Jasny błękit – akcent */
  --brand-deep:  #163FAF;   /* Głęboki błękit – część wspólna znaku */
  --brand-navy:  #0B1E5B;   /* Granat – tła ciemne */
  --brand-muted: #4F6FB8;   /* Stonowany błękit – „your”, hasło, teksty pomocnicze */

  /* Role semantyczne – tryb jasny */
  --primary: var(--brand-royal);
  --primary-hover: var(--brand-deep);
  --primary-active: #12348F;
  --primary-soft: #EAF0FE;
  --primary-soft-2: #DCE7FE;
  --accent: var(--brand-light);
  --on-primary: #FFFFFF;

  --bg: #FFFFFF;
  --bg-soft: #F5F7FD;
  --surface: #FFFFFF;
  --surface-2: #F0F4FC;
  --border: #E1E7F3;
  --border-strong: #C9D3E8;

  --text: #0D1633;
  --text-2: #3E4A69;
  --text-3: #5C6886;
  --link: var(--brand-royal);

  --success: #12795A; --success-soft: #E5F5EF;
  --error: #C2352B;   --error-soft: #FDECEA;
  --warning: #9A5B00; --warning-soft: #FFF4E0;
  --info: var(--brand-muted); --info-soft: #EEF2FB;

  --focus: 0 0 0 3px rgba(141, 182, 255, .65);
  --shadow-sm: 0 1px 2px rgba(11, 30, 91, .06);
  --shadow-md: 0 8px 24px -8px rgba(11, 30, 91, .14), 0 2px 6px rgba(11, 30, 91, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 30, 91, .28);

  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .28s;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  color-scheme: light;
}

/* Tryb ciemny – oparty na Granacie z księgi znaku. Logo przełącza się na wersję „negatyw”. */
[data-theme="dark"] {
  --primary: #3D6BF0;
  --primary-hover: #5A82F5;
  --primary-active: #2B57D8;
  --primary-soft: #14275F;
  --primary-soft-2: #1A3172;
  --accent: var(--brand-light);
  --bg: #070F33;
  --bg-soft: #0A1640;
  --surface: #0D1B4D;
  --surface-2: #12235C;
  --border: #1E3170;
  --border-strong: #2B4189;
  --text: #EEF2FF;
  --text-2: #C3CDEA;
  --text-3: #9AA8D0;
  --link: #A9C6FF;
  --success: #4CC79A; --success-soft: #0E3A33;
  --error: #FF8A80;   --error-soft: #4A1A24;
  --warning: #FFC266; --warning-soft: #3D2E12;
  --info: #A9C6FF; --info-soft: #15265E;
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* 3. Baza ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; transition: background-color var(--dur), color var(--dur);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
[data-theme="dark"] a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
small { font-size: .875rem; }
::selection { background: var(--brand-light); color: var(--brand-navy); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
/* Ikony: Phosphor Icons (regular) – kształty wypełniane kolorem tekstu */
.ic { display: inline-block; vertical-align: -.22em; width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sr-only { 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: 16px; top: -60px; z-index: 200; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* 4. Układ ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 7vw, 80px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.125rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-muted); margin-bottom: 18px; }
[data-theme="dark"] .eyebrow { color: var(--brand-light); }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }

/* 5. Nagłówek -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
/* Logo: min. 120 px szerokości (księga znaku), pole ochronne zapewnione przez padding */
.brand { display: inline-flex; padding: 6px 0; flex: none; }
.brand img { height: 34px; width: auto; min-width: 162px; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; transition: color var(--dur), background var(--dur); }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--primary); }
[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--brand-light); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: currentColor; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: all var(--dur) var(--ease); position: relative; }
.icon-btn:hover { color: var(--primary); border-color: var(--border-strong); }
.icon-btn .ic { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.nav-toggle { display: none; }
.badge-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--error); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }

/* Menu mobilne */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(7, 15, 51, .5); opacity: 0; transition: opacity var(--dur); }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); padding: 20px 24px 32px; transform: translateX(100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav-panel { transform: none; }
.mobile-nav-panel .mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav-panel a.m-link { display: flex; align-items: center; gap: 12px; padding: 14px 12px; font-size: 1.1rem; font-weight: 500; border-radius: 12px; color: var(--text); text-decoration: none; }
.mobile-nav-panel a.m-link:hover, .mobile-nav-panel a.m-link[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.mobile-nav-panel .btn { margin-top: 10px; }
body.no-scroll { overflow: hidden; }

/* 6. Przyciski ------------------------------------------------------------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: 600 .975rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur), border-color var(--dur), transform .18s var(--ease), box-shadow var(--dur); }
.btn .ic { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -6px rgba(30, 79, 216, .55); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 10px 22px -8px rgba(30, 79, 216, .6); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .btn-secondary:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .btn-soft { color: var(--brand-light); }
.btn-soft:hover { background: var(--primary-soft-2); color: var(--primary-hover); }
.btn-white { background: #fff; color: var(--brand-navy); }
.btn-white:hover { background: var(--brand-light); color: var(--brand-navy); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-white:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-danger { background: var(--error-soft); color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-success { background: var(--success-soft); color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* 7. Formularze ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label, .field .label { font-weight: 500; font-size: .925rem; color: var(--text); }
.field .req { color: var(--error); margin-left: 2px; }
.field .hint { font-size: .825rem; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); appearance: none;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 256 256' fill='%235C6886'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: .8; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: .85rem; font-weight: 500; }
.field-error:empty { display: none; }
.field-error .ic { width: 16px; height: 16px; margin-top: 2px; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 20px; height: 20px; pointer-events: none; }
.input-icon > .input, .input-icon > .select { padding-left: 44px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .925rem; color: var(--text-2); line-height: 1.5; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--border-strong); border-radius: 7px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: all .18s; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check input:focus-visible { box-shadow: var(--focus); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: .925rem; color: var(--text-2); transition: all .18s; background: var(--surface); }
.choice span .ic { width: 18px; height: 18px; color: var(--text-3); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:checked + span .ic { color: var(--primary); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-section + .form-section { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 28px; }
.form-section h2 { font-size: 1.2rem; margin-bottom: 4px; }
.form-section > p { color: var(--text-3); font-size: .925rem; margin-bottom: 22px; }
.char-count { font-size: .8rem; color: var(--text-3); text-align: right; }

/* 8. Komponenty ------------------------------------------------------------ */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert .ic { width: 20px; height: 20px; margin-top: 2px; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-error { background: var(--error-soft); color: var(--error); border-color: color-mix(in srgb, var(--error) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--text-2); border-color: var(--border); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.toasts { position: fixed; z-index: 120; top: calc(var(--header-h) + 12px); right: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .95rem; color: var(--text); animation: toast-in .45s var(--ease) both; }
.toast.success { border-left-color: var(--success); } .toast.success > .ic { color: var(--success); }
.toast.error { border-left-color: var(--error); } .toast.error > .ic { color: var(--error); }
.toast.info > .ic { color: var(--primary); }
.toast > .ic { width: 20px; height: 20px; margin-top: 2px; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; border-radius: 6px; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; text-decoration: none; }
a.chip:hover { background: var(--primary-soft); color: var(--primary); }
.chip .ic { width: 14px; height: 14px; }
.chip-primary { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .chip-primary { color: var(--brand-light); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-nowe, .pill-pending { background: var(--warning-soft); color: var(--warning); }
.pill-w_kontakcie { background: var(--info-soft); color: var(--primary); }
[data-theme="dark"] .pill-w_kontakcie { color: var(--brand-light); }
.pill-zamkniete { background: var(--surface-2); color: var(--text-3); }
.pill-approved, .pill-active { background: var(--success-soft); color: var(--success); }
.pill-rejected, .pill-blocked { background: var(--error-soft); color: var(--error); }

/* Awatar / monogram (gdy prawnik nie dodał zdjęcia) */
.avatar { position: relative; flex: none; width: var(--s, 64px); height: var(--s, 64px); border-radius: 22%; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: calc(var(--s, 64px) * .36); letter-spacing: -.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.tone-0 { background: var(--brand-royal); color: #fff; }
.avatar.tone-1 { background: var(--brand-navy); color: var(--brand-light); }
.avatar.tone-2 { background: var(--brand-light); color: var(--brand-navy); }
.avatar-lg { --s: 120px; }


/* Karta prawnika */
.lawyer-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; height: 100%; }
.lawyer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.lawyer-card .card-top { display: flex; gap: 16px; align-items: flex-start; }
.lawyer-card .who { min-width: 0; }
.lawyer-card .who .name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 2px 0 4px; color: var(--text); }
.lawyer-card .who a { color: inherit; text-decoration: none; }
.lawyer-card .who a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* cała karta klikalna */
.lawyer-card .who a:focus-visible { box-shadow: none; }
.lawyer-card:has(.name a:focus-visible) { box-shadow: var(--focus); }
.lawyer-card .title { font-size: .875rem; color: var(--brand-muted); font-weight: 500; }
[data-theme="dark"] .lawyer-card .title { color: var(--brand-light); }
.lawyer-card .headline { font-weight: 500; color: var(--text); margin: 18px 0 8px; font-size: 1rem; line-height: 1.45; }
.lawyer-card .excerpt { color: var(--text-3); font-size: .9rem; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lawyer-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.lawyer-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--text-2); }
.lawyer-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.lawyer-card .meta .ic { width: 16px; height: 16px; color: var(--text-3); }
.lawyer-card .card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.lawyer-card .price { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.lawyer-card .price small { font-weight: 400; color: var(--text-3); font-size: .85rem; }
.lawyer-card .more { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--primary); }
[data-theme="dark"] .lawyer-card .more { color: var(--brand-light); }
.lawyer-card .more .ic { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.lawyer-card:hover .more .ic { transform: translateX(4px); }
.lawyer-card .featured-tag { position: absolute; top: 18px; right: 18px; }

/* Modal (<dialog>) */
dialog.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .38s var(--ease); }
dialog.modal::backdrop { background: rgba(7, 15, 51, .55); backdrop-filter: blur(3px); animation: fade-in .3s ease; }
.modal-head { display: flex; gap: 16px; align-items: flex-start; padding: 24px 28px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.4rem; margin: 0 0 2px; }
.modal-head p { margin: 0; color: var(--text-3); font-size: .925rem; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 24px 28px 28px; overflow-y: auto; }
dialog.confirm { width: min(440px, calc(100vw - 24px)); }
.success-state { text-align: center; padding: 24px 8px 8px; }
.success-state .ok-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.success-state .ok-icon .ic { width: 34px; height: 34px; animation: pop .5s var(--ease) .1s both; }

/* Tabela */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; padding: 14px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }

.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty .ic-wrap { width: 64px; height: 64px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .ic-wrap .ic { width: 28px; height: 28px; }
.empty p { color: var(--text-3); max-width: 420px; margin-inline: auto; }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--text-3); margin-bottom: 20px; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--text-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* 9. Strona główna --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-weight: 400; margin-bottom: 22px; }
.hero h1 strong { font-weight: 700; color: var(--primary); }
[data-theme="dark"] .hero h1 strong { color: var(--brand-light); }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
/* Motyw graficzny: dwa nachodzące zaokrąglone kwadraty (idea znaku) – element dekoracyjny, nie logo */
.hero-motif { position: absolute; right: -140px; top: 50%; width: 640px; height: 560px; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.hero-motif span { position: absolute; border-radius: 26%; }
.hero-motif .m1 { width: 340px; height: 340px; left: 40px; top: 30px; background: var(--brand-royal); opacity: .07; animation: float 14s ease-in-out infinite; }
.hero-motif .m2 { width: 340px; height: 340px; left: 210px; top: 170px; background: var(--brand-light); opacity: .22; animation: float 14s ease-in-out -7s infinite; }
[data-theme="dark"] .hero-motif .m1 { opacity: .25; } [data-theme="dark"] .hero-motif .m2 { opacity: .1; }

.search-card { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); max-width: 680px; }
.search-card .select, .search-card .input { border: 0; background-color: transparent; min-height: 56px; font-size: 1rem; }
.search-card .input-icon + .input-icon { border-left: 1px solid var(--border); }
.search-card .btn { --h: 56px; border-radius: 14px; padding: 0 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; font-size: .9rem; color: var(--text-2); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--success); width: 18px; height: 18px; }
.hero-popular { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; color: var(--text-3); }

.hero-visual { position: relative; }
.hero-stack { position: relative; display: grid; gap: 16px; }
.hero-stack .lawyer-card { box-shadow: var(--shadow-lg); padding: 20px; }
.hero-stack .lawyer-card:nth-child(2) { margin-left: 48px; margin-right: -24px; }
.hero-floating { position: absolute; left: -36px; bottom: -28px; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-size: .9rem; animation: float 8s ease-in-out infinite; }
.hero-floating .ic-box { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.hero-floating strong { display: block; font-size: .95rem; }

.audience-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--surface-2); margin-bottom: 40px; }
.audience-tabs button { border: 0; background: none; font: 600 .95rem var(--font); color: var(--text-2); padding: 10px 20px; border-radius: 10px; cursor: pointer; transition: all var(--dur); }
.audience-tabs button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .audience-tabs button[aria-selected="true"] { color: #fff; background: var(--primary-soft-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step .num { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--brand-muted); }
.step .step-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin: 16px 0 22px; }
[data-theme="dark"] .step .step-ic { color: var(--brand-light); }
.step .step-ic .ic { width: 24px; height: 24px; }
.step p { color: var(--text-2); margin: 0; font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -24px; width: 24px; height: 1px; background: var(--border-strong); }
[role="tabpanel"][hidden] { display: none; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: all .35s var(--ease); }
.cat-card .cat-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: all .35s var(--ease); }
[data-theme="dark"] .cat-card .cat-ic { color: var(--brand-light); }
.cat-card .cat-ic .ic { width: 24px; height: 24px; }
.cat-card h3 { font-size: 1.075rem; margin: 2px 0 4px; display: flex; align-items: center; gap: 8px; }
.cat-card p { margin: 0; color: var(--text-3); font-size: .875rem; line-height: 1.5; }
.cat-card .count { font-size: .8rem; color: var(--brand-muted); font-weight: 600; margin-top: 10px; display: block; }
[data-theme="dark"] .cat-card .count { color: var(--brand-light); }
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.cat-card:hover .cat-ic { background: var(--primary); color: #fff; }

.stats-band { background: var(--brand-navy); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -170px; border-radius: 26%; background: var(--brand-royal); opacity: .3; }
.stats-band::after { content: ""; position: absolute; width: 220px; height: 220px; right: 60px; top: -120px; border-radius: 26%; background: var(--brand-light); opacity: .08; }
.stats-band h2 { color: #fff; position: relative; z-index: 1; }
.stats-band .eyebrow { color: var(--brand-light); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; margin-top: 40px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; }
.stat span { display: block; margin-top: 10px; color: #BFD3FF; font-size: .95rem; }
.stat { padding-left: 20px; border-left: 2px solid rgba(141, 182, 255, .35); }


.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text); border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; transition: all var(--dur) var(--ease); color: var(--text-2); }
.faq summary .plus .ic { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.faq details[open] summary .plus { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq details[open] summary .plus .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 64px 24px 4px; color: var(--text-2); }
.faq details[open] .answer { animation: slide-down .35s var(--ease); }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--brand-royal); color: #fff; padding: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #DCE7FF; font-size: 1.1rem; margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; position: relative; z-index: 1; }
.cta-band .actions .btn { min-width: 270px; }
.cta-band .shape { position: absolute; border-radius: 26%; pointer-events: none; }
.cta-band .shape.s1 { width: 260px; height: 260px; right: -90px; bottom: -170px; background: var(--brand-light); opacity: .18; }
.cta-band .shape.s2 { width: 200px; height: 200px; right: 110px; bottom: -165px; background: var(--brand-navy); opacity: .25; }
.cta-band ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #DCE7FF; font-size: .95rem; }
.cta-band li { display: inline-flex; gap: 8px; align-items: center; }
.cta-band li .ic { width: 18px; height: 18px; color: var(--brand-light); }

/* Strony treściowe */
.page-hero { background: var(--bg-soft); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.page-hero .lead { max-width: 680px; margin: 0; }
.prose { max-width: 760px; color: var(--text-2); font-size: 1.025rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; color: var(--text); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.legal-note { font-size: .9rem; }
.value-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.value-card .step-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 20px; }
[data-theme="dark"] .value-card .step-ic { color: var(--brand-light); }
.value-card p { color: var(--text-2); margin: 0; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.contact-list .ic-box { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
[data-theme="dark"] .contact-list .ic-box { color: var(--brand-light); }
.contact-list strong { display: block; }
.contact-list span, .contact-list a { color: var(--text-2); }
.plan-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.plan-card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); margin: 8px 0 4px; }
.plan-card .price small { font-size: 1rem; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.plan-card ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.plan-card li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; }
.plan-card li .ic { color: var(--success); width: 18px; height: 18px; margin-top: 3px; }
.plan-card .btn { margin-top: auto; }

/* Uwierzytelnianie */
.auth-wrap { min-height: calc(100dvh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--brand-navy); color: #fff; padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-weight: 400; }
.auth-side h2 strong { font-weight: 700; color: var(--brand-light); }
.auth-side p, .auth-side li { color: #C9D8FF; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 28px; }
.auth-side li { display: flex; gap: 12px; }
.auth-side li .ic { color: var(--brand-light); margin-top: 3px; }
.auth-side .shape { position: absolute; border-radius: 26%; }
.auth-side .shape.s1 { width: 300px; height: 300px; right: -100px; bottom: -80px; background: var(--brand-royal); opacity: .5; }
.auth-side .shape.s2 { width: 240px; height: 240px; right: 60px; bottom: -150px; background: var(--brand-light); opacity: .14; }
.auth-main { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.demo-box { margin-top: 24px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--border-strong); font-size: .85rem; color: var(--text-2); }
.demo-box code { font-size: .85rem; color: var(--text); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--text-3); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--primary); background: var(--surface-2); }

/* 10. Ogłoszenia ------------------------------------------------------------ */
.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.filters h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.filters .field { margin-bottom: 18px; }
.filters .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg label { position: relative; text-align: center; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 4px; border-radius: 9px; font-size: .825rem; font-weight: 500; color: var(--text-2); transition: all .2s; }
.seg input:checked + span { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .seg input:checked + span { background: var(--primary-soft-2); color: #fff; }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.range-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-3); }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; cursor: pointer; }
.filters-close { display: none; }
.filters-backdrop { display: none; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.results-toolbar .count { color: var(--text-2); }
.results-toolbar .count strong { color: var(--text); }
.results-toolbar .sort { display: flex; align-items: center; gap: 10px; }
.results-toolbar .sort .select { min-height: 42px; padding-block: 8px; width: auto; font-size: .925rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters .chip { background: var(--primary-soft); color: var(--primary); padding-right: 8px; }
[data-theme="dark"] .active-filters .chip { color: var(--brand-light); }
.active-filters .chip .ic { width: 14px; height: 14px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.filters-open-btn { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); font-weight: 500; text-decoration: none; color: var(--text-2); background: var(--surface); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .gap { border: 0; background: none; }
.pagination .ic { width: 18px; height: 18px; }

.detail-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 36px 0 48px; }
.detail-head { display: flex; gap: 28px; align-items: center; }
.detail-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 4px 0 8px; }
.detail-head .title { color: var(--brand-muted); font-weight: 500; }
[data-theme="dark"] .detail-head .title { color: var(--brand-light); }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: .95rem; margin-top: 14px; }
.detail-head .meta span { display: inline-flex; align-items: center; gap: 7px; }
.detail-head .meta .ic { width: 18px; height: 18px; color: var(--text-3); }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.detail-section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { font-size: 1.4rem; margin-bottom: 18px; }
.detail-section .headline { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
.detail-section p { color: var(--text-2); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: all .25s; }
a.spec:hover { border-color: var(--primary); color: var(--text); }
.spec .ic-box { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
[data-theme="dark"] .spec .ic-box { color: var(--brand-light); }
.spec strong { display: block; font-size: .975rem; }
.spec small { color: var(--text-3); }
.exp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.exp-list li { display: flex; gap: 12px; color: var(--text-2); }
.exp-list .ic { color: var(--primary); margin-top: 3px; width: 20px; height: 20px; }
[data-theme="dark"] .exp-list .ic { color: var(--brand-light); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 16px 4px; border-bottom: 1px dashed var(--border-strong); }
.price-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; color: var(--text); }
.price-table tr:last-child td { border-bottom: 0; }
.map-frame { width: 100%; height: 300px; border: 0; border-radius: var(--radius-lg); background: var(--surface-2); filter: saturate(.85); }
[data-theme="dark"] .map-frame { filter: invert(.9) hue-rotate(190deg) saturate(.6); }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-md); }
.aside-card .from { color: var(--text-3); font-size: .9rem; }
.aside-card .big-price { font-family: var(--font-display); font-weight: 700; font-size: 2.25rem; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.aside-card .modes { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.aside-card .points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: .9rem; color: var(--text-2); }
.aside-card .points li { display: flex; gap: 10px; }
.aside-card .points .ic { color: var(--success); width: 18px; height: 18px; margin-top: 3px; }
.preview-banner { background: var(--warning-soft); color: var(--warning); padding: 12px 0; font-size: .925rem; font-weight: 500; }
.mobile-cta { display: none; }

/* 11. Panel ---------------------------------------------------------------- */
.panel-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-block: 40px 80px; align-items: start; }
.panel-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.panel-nav .who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.panel-nav .who .avatar { --s: 44px; font-size: 1rem; }
.panel-nav .who strong { display: block; font-size: .95rem; line-height: 1.3; }
.panel-nav .who span { font-size: .8rem; color: var(--text-3); }
.panel-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.panel-nav a:hover { background: var(--surface-2); color: var(--text); }
.panel-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .panel-nav a[aria-current="page"] { color: #fff; }
.panel-nav a .count { margin-left: auto; background: var(--error); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.panel-nav form button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--text-2); font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; }
.panel-nav form button:hover { background: var(--error-soft); color: var(--error); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.panel-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 4px; }
.panel-head p { margin: 0; color: var(--text-3); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.kpi { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.kpi .k-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
[data-theme="dark"] .kpi .k-ic { color: var(--brand-light); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi span { color: var(--text-3); font-size: .875rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h2 { font-size: 1.15rem; margin: 0; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs-line a { padding: 12px 16px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs-line a:hover { color: var(--text); }
.tabs-line a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
[data-theme="dark"] .tabs-line a[aria-current="page"] { color: var(--brand-light); border-bottom-color: var(--brand-light); }
.tabs-line .n { font-size: .75rem; background: var(--surface-2); padding: 1px 8px; border-radius: 10px; color: var(--text-3); }
.app-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 22px 24px; }
.app-item + .app-item { margin-top: 14px; }
.app-item.is-new { border-left: 4px solid var(--warning); }
.app-item .app-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.app-item h3 { margin: 0 0 2px; font-size: 1.1rem; }
.app-item .app-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--text-3); }
.app-item .app-meta a { color: var(--text-2); }
.app-item .app-meta span, .app-item .app-meta a { display: inline-flex; gap: 6px; align-items: center; }
.app-item .app-meta .ic { width: 15px; height: 15px; }
.app-item .desc { margin: 16px 0; padding: 16px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text-2); font-size: .95rem; white-space: pre-line; }
.app-item form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.app-item form .select { width: auto; min-height: 40px; padding-block: 6px; font-size: .9rem; }
.app-item form .input { flex: 1; min-width: 200px; min-height: 40px; padding-block: 8px; font-size: .9rem; }
.listing-row { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.listing-row + .listing-row { margin-top: 12px; }
.listing-row .info { min-width: 0; flex: 1; }
.listing-row h3 { font-size: 1.025rem; margin: 0 0 4px; }
.listing-row .sub { font-size: .85rem; color: var(--text-3); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.listing-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.listing-row .reason { margin-top: 8px; font-size: .85rem; color: var(--error); }
.reject-box { position: relative; }
.reject-box summary { list-style: none; }
.reject-box summary::-webkit-details-marker { display: none; }
.photo-field { display: flex; gap: 20px; align-items: center; }
.photo-field .avatar { --s: 96px; }
.pricing-rows { display: grid; gap: 10px; }
.pricing-row { display: grid; grid-template-columns: 1fr 180px 44px; gap: 10px; }
.pricing-row .icon-btn { height: 48px; width: 44px; }

/* 12. Stopka --------------------------------------------------------------- */
.site-footer { background: var(--brand-navy); color: #C3D2F5; padding: 80px 0 32px; margin-top: auto; }
.site-footer a { color: #C3D2F5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; min-width: 162px; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-family: var(--font); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.site-footer .contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact .ic { width: 18px; height: 18px; color: var(--brand-light); margin-top: 4px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(141, 182, 255, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.page { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

/* 404 */
.error-page { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--primary); margin-bottom: 12px; display: inline-flex; align-items: center; gap: .1em; }
[data-theme="dark"] .error-code { color: var(--brand-light); }
.error-page p { color: var(--text-2); max-width: 520px; margin: 0 auto 32px; }

/* 13. Animacje ------------------------------------------------------------- */
@view-transition { navigation: auto; } /* płynne przejścia między stronami (Chrome/Edge/Safari 18+) */
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
.site-header { view-transition-name: header; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 14. Responsywność -------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav, .header-actions .hide-md { display: none; }
  .nav-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-motif { right: -320px; opacity: .8; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr 320px; gap: 32px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .cat-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { align-items: stretch; }
  .cta-band .actions .btn { min-width: 0; }
  .split, .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  /* Filtry jako wysuwany panel */
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 95; width: min(360px, 90vw); max-height: none; border-radius: 0; overflow-y: auto; transform: translateX(-102%); visibility: hidden; transition: transform .38s var(--ease), visibility .38s; }
  .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .filters-close { display: inline-grid; position: absolute; right: 16px; top: 16px; }
  .filters-open-btn { display: inline-flex; }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 94; background: rgba(7, 15, 51, .5); opacity: 0; visibility: hidden; transition: opacity var(--dur); }
  .filters-backdrop.is-open { opacity: 1; visibility: visible; }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); gap: 12px; align-items: center; }
  .mobile-cta .btn { flex: 1; }
  .has-mobile-cta .site-footer { padding-bottom: 110px; }
  .panel-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .panel-nav { position: static; display: flex; gap: 4px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px; }
  .panel-nav .who { display: none; }
  .panel-nav a, .panel-nav form button { white-space: nowrap; padding: 9px 12px; }
  .panel-nav form { margin-left: auto; }
}
@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .hero-motif { display: none; }
  .brand img { height: 30px; min-width: 143px; }
  .header-actions .hide-sm { display: none; }
  .search-card { grid-template-columns: 1fr; border-radius: 18px; }
  .search-card .input-icon + .input-icon { border-left: 0; border-top: 1px solid var(--border); }
  .search-card .btn { width: 100%; }
  .cat-grid, .grid-2, .grid-3, .grid-4, .results-grid, .spec-grid, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail-head .avatar-lg { --s: 92px; }
  .faq .answer { padding-right: 4px; }
  .modal-head, .modal-body { padding-inline: 20px; }
  .listing-row { flex-wrap: wrap; }
  .listing-row .actions { width: 100%; justify-content: flex-start; }
  .pricing-row { grid-template-columns: 1fr 110px 44px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-3); font-size: .8rem; }
  .audience-tabs { display: flex; }
  .audience-tabs button { flex: 1; padding: 10px 8px; }
}

/* Pole wyboru pliku (zdjęcie) */
input[type="file"] { font: 400 .9rem var(--font); color: var(--text-2); }
input[type="file"]::file-selector-button { font: 600 .875rem var(--font); margin-right: 12px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: all var(--dur); }
input[type="file"]::file-selector-button:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Abonament (panel prawnika) ---------- */
.billing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 0 0 16px; }
.billing-summary dt { font-size: .85rem; color: var(--text-3); margin-bottom: 4px; }
.billing-summary dd { margin: 0; font-weight: 600; color: var(--text); }
.billing-plans { margin: 24px 0 16px; }
.billing-plans form { margin-top: auto; }
.billing-note { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin-bottom: 24px; }
.billing-note .ic { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.pill-trialing { background: var(--info-soft); color: var(--primary); }
[data-theme="dark"] .pill-trialing { color: var(--brand-light); }
.pill-past_due, .pill-incomplete, .pill-paused { background: var(--warning-soft); color: var(--warning); }
.pill-canceled, .pill-unpaid, .pill-incomplete_expired, .pill-none { background: var(--surface-2); color: var(--text-3); }
.pill-exempt { background: var(--success-soft); color: var(--success); }

/* ==========================================================================
   15. Rozbudowa 2026 – style nowych funkcji (każda sekcja osobno)
   ========================================================================== */

/* ---------- Wspólne drobiazgi paneli ---------- */
.panel-main { min-width: 0; }
.small { font-size: .85rem; }
.hint-p { font-size: .875rem; margin-bottom: 14px; }
.label-sm { display: block; font-weight: 600; font-size: .85rem; color: var(--text-2); margin: 12px 0 6px; }
.section-title-sm { font-size: 1.15rem; margin: 8px 0 14px; display: flex; gap: 8px; align-items: center; }
.back-link { font-weight: 500; font-size: .9rem; margin-bottom: 8px; display: inline-flex; gap: 6px; align-items: center; }
.input-sm, .select-sm { min-height: 40px; padding-block: 7px; font-size: .9rem; }
.select-sm { width: auto; max-width: 320px; }
.card-cta { background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.card-highlight { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.kpi-link { text-decoration: none; color: inherit; transition: border-color var(--dur), transform var(--dur); }
.kpi-link:hover { border-color: var(--primary); color: inherit; transform: translateY(-1px); }
.popover-card { position: absolute; z-index: 5; margin-top: 6px; width: min(340px, 82vw); right: 0; box-shadow: var(--shadow-lg); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list form { margin: 0; }
.detail-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; font-size: .925rem; }
.detail-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); word-break: break-word; }
.detail-list .ic { width: 18px; height: 18px; color: var(--text-3); margin-top: 2px; }
.desc-box { padding: 14px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text-2); font-size: .925rem; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; min-width: 0; max-width: 100%; }
.stack-form { display: grid; gap: 6px; }
.stack-form .btn { justify-self: start; margin-top: 8px; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--error); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.radio-list { display: grid; gap: 10px; }
.check-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.ok-icon.is-error { background: var(--error-soft) !important; color: var(--error) !important; }
.toast.warning { border-left-color: var(--warning); } .toast.warning > .ic { color: var(--warning); }
.listing-row.is-archived { opacity: .78; border-style: dashed; }
.app-item.is-muted { opacity: .75; }
.app-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.app-actions form { flex: 1; min-width: 260px; }
.app-item h3 a { color: inherit; text-decoration: none; }
.app-item h3 a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- A6: baner niepotwierdzonego adresu e-mail ---------- */
.verify-banner { align-items: center; flex-wrap: wrap; }
.verify-banner > span { flex: 1; min-width: 220px; }
.verify-banner form { margin: 0; }

/* ---------- A4/A3: moderacja zmian i lokalizacja ---------- */
.diff-table th[scope="row"] { width: 22%; text-align: left; font-weight: 600; color: var(--text-2); text-transform: none; letter-spacing: 0; font-size: .9rem; background: transparent; }
.diff-table td { vertical-align: top; white-space: pre-line; font-size: .9rem; }
.diff-old { background: var(--error-soft); color: var(--text); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--error) 55%, transparent); }
.diff-new { background: var(--success-soft); color: var(--text); }
.diff-photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; }
.map-caption { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--text-3); margin: 10px 0 0; }
.map-caption .ic { width: 16px; height: 16px; }
.danger-zone { border-color: color-mix(in srgb, var(--error) 40%, var(--border)); }
.danger-zone .card-head h2 { color: var(--error); }

/* ---------- B1: weryfikacja prawnika ---------- */
.verified-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--success-soft); color: var(--success); white-space: nowrap; margin-top: 4px; }
.verified-badge .ic { width: 15px; height: 15px; }
.verified-badge.verified-lg { font-size: .85rem; padding: 5px 12px 5px 8px; margin: 0 0 10px; }
.verified-badge.verified-lg .ic { width: 18px; height: 18px; }
.ver-status { display: block; }
.ver-status .ver-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.ver-zweryfikowany .ver-ic { background: var(--success-soft); color: var(--success); }
.ver-oczekuje .ver-ic { background: var(--warning-soft); color: var(--warning); }
.ver-odrzucony .ver-ic { background: var(--error-soft); color: var(--error); }
.ver-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0; }
.ver-data dt { font-size: .8rem; color: var(--text-3); }
.ver-data dd { margin: 0; font-weight: 600; }
.pill-ver-zweryfikowany { background: var(--success-soft); color: var(--success); }
.pill-ver-oczekuje { background: var(--warning-soft); color: var(--warning); }
.pill-ver-odrzucony { background: var(--error-soft); color: var(--error); }
.pill-ver-brak { background: var(--surface-2); color: var(--text-3); }

/* ---------- B2: kalendarz i rezerwacje ---------- */
.switch-row { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 16px; }
.slot-days { display: grid; gap: 14px; }
.slot-day { border: 0; padding: 0; margin: 0; min-width: 0; }
.slot-day > strong, .slot-day legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all var(--dur); }
a.slot:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.slot-static { font-weight: 500; color: var(--text-2); }
.slot-more { color: var(--text-3); font-weight: 500; }
.slot-pick { position: relative; }
.slot-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot-pick span { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; background: var(--surface); }
.slot-pick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot-pick input:focus-visible + span { box-shadow: var(--focus); }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.h-form { font-size: 1.15rem; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.booking-line { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.booking-line .ic { width: 15px; height: 15px; }
.booking-line.is-cancelled { text-decoration: line-through; opacity: .8; }

/* ---------- B3: konto klienta ---------- */
.auth-kind { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.auth-kind .ic { width: 16px; height: 16px; }
.auth-kind-lawyer { background: var(--surface-2); color: var(--text-2); }
.auth-client .auth-side { background: linear-gradient(160deg, #163FAF, #0B1E5B); }
.login-card { padding: 18px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: .85rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.case-row { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: inherit; transition: border-color var(--dur); }
.case-row + .case-row { margin-top: 10px; }
.case-row:hover { border-color: var(--primary); color: inherit; }
.case-row .avatar { --s: 46px; font-size: .95rem; }
.case-row .info { flex: 1; min-width: 0; }
.case-row .info strong { display: block; }
.case-row .sub { font-size: .85rem; color: var(--text-3); }
.case-badges { display: flex; gap: 8px; align-items: center; }
.case-badges > .ic { color: var(--text-3); }

/* ---------- B4: wiadomości ---------- */
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.thread-layout > * { min-width: 0; }
.thread-layout aside .card + .card { margin-top: 16px; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; padding: 4px 4px 8px; scroll-behavior: smooth; }
.thread-empty { margin: 8px 0; }
.msg { max-width: 82%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.msg-mine { align-self: flex-end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); border-bottom-right-radius: 6px; }
.msg-theirs { align-self: flex-start; border-bottom-left-radius: 6px; }
.admin-thread .msg-lawyer { align-self: flex-start; border-left: 4px solid var(--primary); }
.admin-thread .msg-client { align-self: flex-end; border-right: 4px solid var(--success); background: var(--success-soft); }
.msg-head { display: flex; gap: 10px; align-items: baseline; font-size: .8rem; color: var(--text-3); margin-bottom: 4px; }
.msg-head strong { color: var(--text); font-size: .85rem; }
.msg-read { margin-left: auto; color: var(--primary); display: inline-flex; }
.msg-read .ic { width: 16px; height: 16px; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: .95rem; color: var(--text); margin: 0; }
.msg-moderated { color: var(--text-3); }
.msg.is-hidden { opacity: .85; border-style: dashed; }
.msg-flag { font-size: .78rem; color: var(--warning); font-weight: 600; margin: 0 0 4px; }
.msg-files { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.msg-files a { display: inline-flex; gap: 6px; align-items: center; font-size: .875rem; word-break: break-all; }
.msg-files .ic { width: 16px; height: 16px; flex: none; }
.msg form { margin-top: 6px; }
.thread-form { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; }
.thread-form .textarea { min-height: 92px; }
.thread-form-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.thread-form-foot .hint { font-size: .8rem; color: var(--text-3); flex: 1; min-width: 160px; }
.thread-note { font-size: .8rem; margin: 10px 0 0; }
.thread-note .ic { width: 14px; height: 14px; vertical-align: -2px; }
.file-pick { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--text-2); }
.file-pick:hover, .file-pick:focus-within { border-color: var(--primary); color: var(--primary); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick .ic { width: 18px; height: 18px; }
.file-pick.has-files { border-style: solid; border-color: var(--primary); color: var(--primary); }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; vertical-align: middle; }
.legend-lawyer { background: var(--primary); } .legend-client { background: var(--success); }

/* ---------- B5: statystyki i wykresy SVG ---------- */
.kpis-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-stats .kpi strong { font-size: 1.6rem; }
.range-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.range-form .flex { gap: 8px; }
.range-form .label-sm { margin: 0; }
.seg.seg-wide { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg.seg-wide span { padding: 8px 14px; }
.chart-grid { margin-top: 20px; }
.chart-grid + .card, .card + .chart-grid { margin-top: 20px; }
.chart-card { overflow: hidden; }
.chart-card .card-head { margin-bottom: 8px; }
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart .chart-gridline { stroke: var(--border); stroke-width: 1; }
.chart .chart-base { stroke: var(--border-strong); stroke-width: 1.5; }
.chart .chart-axis { fill: var(--text-3); font-size: 11px; }
.chart .chart-axis-title { font-size: 11.5px; font-weight: 600; }
.chart .chart-label { fill: var(--text-2); font-size: 12.5px; }
.chart .chart-value { fill: var(--text); font-size: 12px; font-weight: 600; }
.chart .chart-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .chart-area { fill: var(--primary); opacity: .1; }
.chart .chart-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.chart .chart-bar { fill: var(--primary); }
.chart .chart-bar:hover, .chart .chart-dot:hover { fill: var(--brand-light); }
[data-theme="dark"] .chart .chart-line, [data-theme="dark"] .chart .chart-dot { stroke: var(--brand-light); }
[data-theme="dark"] .chart .chart-bar, [data-theme="dark"] .chart .chart-area { fill: var(--brand-light); }
[data-theme="dark"] .chart .chart-area { opacity: .14; }
.filter-card { margin-bottom: 20px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; }
.filter-grid .field { margin-bottom: 12px; }

/* ---------- B6: kampanie e-mail ---------- */
.step-card { display: flex; gap: 18px; }
.step-card + .step-card, .campaign-form > .card + .card { margin-top: 16px; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-display); }
.step-body { flex: 1; min-width: 0; }
.step-body h2 { font-size: 1.15rem; margin: 4px 0 14px; }
.seg-more summary { cursor: pointer; font-weight: 500; color: var(--link); }
.campaign-form > .flex { margin-top: 16px; }
.mail-preview { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mail-preview-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--text-3); }
.mail-preview-head strong { color: var(--text); font-size: .95rem; }
.mail-preview-body { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font: 400 .9rem/1.55 var(--font); color: var(--text-2); background: var(--surface); max-height: 360px; overflow: auto; }
.pill-camp-szkic { background: var(--surface-2); color: var(--text-3); }
.pill-camp-zaplanowana { background: var(--info-soft); color: var(--primary); }
.pill-camp-w_kolejce { background: var(--warning-soft); color: var(--warning); }
.pill-camp-wyslana { background: var(--success-soft); color: var(--success); }
[data-theme="dark"] .pill-camp-zaplanowana { color: var(--brand-light); }

/* ---------- B7: zgłoszenia nadużyć ---------- */
.report-link { margin: 8px 0 0; font-size: .875rem; }
.report-link a { display: inline-flex; gap: 6px; align-items: center; color: var(--text-3); text-decoration: none; }
.report-link a:hover { color: var(--error); text-decoration: underline; }
.report-link .ic { width: 15px; height: 15px; }
.abuse-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.abuse-form .input { flex: 1; min-width: 200px; }
.quick-actions form { margin: 0; }
.pill-abuse-nowe { background: var(--warning-soft); color: var(--warning); }
.pill-abuse-w_trakcie { background: var(--info-soft); color: var(--primary); }
.pill-abuse-zasadne { background: var(--error-soft); color: var(--error); }
.pill-abuse-odrzucone { background: var(--surface-2); color: var(--text-3); }
[data-theme="dark"] .pill-abuse-w_trakcie { color: var(--brand-light); }

/* ---------- B8: licznik czasu oczekiwania (zieleń -> czerwień) ----------
   Odcień przychodzi z serwera (--wait-hue: 130 = zielony … 0 = czerwony). Jasność tła i tekstu dobrana tak,
   by kontrast spełniał WCAG AA w całym zakresie odcieni – osobno dla trybu jasnego i ciemnego. */
.wait { --wait-hue: 130; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: hsl(var(--wait-hue) 72% 90%); color: hsl(var(--wait-hue) 90% 21%); border: 1px solid hsl(var(--wait-hue) 55% 72%); }
.wait .wait-ic { width: 14px; height: 14px; }
.wait.is-urgent { font-weight: 700; box-shadow: 0 0 0 2px hsl(var(--wait-hue) 80% 45% / .25); }
[data-theme="dark"] .wait { background: hsl(var(--wait-hue) 55% 17%); color: hsl(var(--wait-hue) 85% 80%); border-color: hsl(var(--wait-hue) 45% 35%); }
.wait-dot { --wait-hue: 130; width: 10px; height: 10px; border-radius: 50%; margin-left: 8px; background: hsl(var(--wait-hue) 75% 42%); box-shadow: 0 0 0 3px hsl(var(--wait-hue) 75% 42% / .2); flex: none; }
.wait-dot.is-urgent { animation: wait-pulse 1.8s ease-in-out infinite; }
@keyframes wait-pulse { 50% { box-shadow: 0 0 0 6px hsl(var(--wait-hue) 75% 42% / .05); } }
.panel-nav a .wait-dot + .count { margin-left: 8px; }
.panel-nav a .wait-dot { margin-left: auto; }

/* ---------- Responsywność nowych widoków ---------- */
@media (max-width: 1100px) {
  .kpis-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thread-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .book-layout { grid-template-columns: 1fr; }
  .range-form { flex-direction: column; align-items: stretch; }
  .seg.seg-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .kpis-stats { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 94%; }
  .thread { max-height: 460px; }
  .step-card { gap: 12px; }
  .step-num { width: 28px; height: 28px; font-size: .9rem; }
  .check-cols { grid-template-columns: 1fr; }
  .diff-table th[scope="row"] { width: auto; }
  .diff-table, .diff-table tbody, .diff-table tr, .diff-table td, .diff-table th { display: block; width: 100%; }
  .diff-table thead { display: none; }
  .diff-table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .diff-table td::before { content: attr(data-label) ": "; font-weight: 600; text-decoration: none; display: inline; }
  .app-actions form { min-width: 0; }
  .case-row { padding: 14px; gap: 12px; }
  .popover-card { right: auto; left: 0; }
  .app-top { flex-direction: column; }
  .app-badges { justify-content: flex-start; }
}
/* Dokumenty prawne: oznaczenie projektów zapisów wymagających weryfikacji prawnika */
.draft-tag { display: inline-block; vertical-align: middle; font: 600 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); }
/* Statystyki: wykresy liniowe jeden pod drugim (czytelny tekst osi), zakres dat w jednym wierszu */
.chart-stack { display: grid; gap: 20px; margin-top: 20px; }
.chart-stack + .chart-grid { margin-top: 20px; }
.range-form .label-sm { display: inline; }
.range-form .input-sm { width: auto; }
.grid > .card + .card { margin-top: 0; }
/* Odznaka weryfikacji nie może poszerzać kart na wąskich ekranach */
.lawyer-card .who { min-width: 0; }
.verified-badge { white-space: normal; max-width: 100%; }
