/* ==========================================================================
   Info-Net — design system.
   Ten plik jest bezpośrednią kontynuacją zatwierdzonego designu z prototypu
   (Artifact v9, styles.css) — zgodnie z zasadą "nie zmieniaj ustalonego
   designu bez wyraźnej potrzeby". Tokeny (:root) i większość reguł są
   przeniesione 1:1; sekcje oznaczone "NOWE" zostały dodane dla elementów,
   których prototyp statyczny nie potrzebował (panel admina, pełny CMP,
   dodatkowe strony błędów, skip-link).
   ========================================================================== */

/* Zapasowe kroje o dopasowanych metrykach (size-adjust / ascent / descent
   policzone z plików woff2 dla typowego polskiego tekstu). Zanim pobiorą się
   fonty docelowe, tekst renderuje się Arialem / Times New Roman o prawie tej
   samej szerokości i wysokości — podmiana fontu nie przestawia układu i nie
   opóźnia LCP. */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Liberation Sans'), local('Helvetica');
  size-adjust: 103.7%;
  ascent-override: 95.7%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Serif Display Fallback';
  src: local('Times New Roman'), local('Liberation Serif'), local('Times');
  size-adjust: 109.8%;
  ascent-override: 94.4%;
  descent-override: 30.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../fonts/dm-serif-display.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- marka (PROPOZYCJA — DO POTWIERDZENIA finalny HEX i logo, patrz README) --- */
  /* Kolory z finalnych grafik (wrzesień 2026): niebieski przycisków #0072EE,
     granat nagłówków, zieleń z logo i znaczników. */
  --brand-blue: #0070ea;
  --brand-blue-deep: #0055c4;
  --brand-blue-soft: #e8f1fd;
  --brand-green: #2f9e36;
  --brand-green-deep: #22802a;
  --brand-green-soft: #e7f6e8;

  --ink: #0b1640;
  --ink-soft: #46526e;
  /* Poz. 48 audytu: #77838b (poprzednia wartość) dawał kontrast ok. 3.5-3.9:1
     względem tła --bg/--bg-soft/--bg-alt — poniżej progu WCAG AA 4.5:1 dla
     tekstu normalnej wielkości, mimo że jest używany jako kolor tekstu
     (podpowiedzi pól, daty, metadane) w kilkunastu miejscach w globals.css.
     Ta wartość (ten sam odcień, ciemniejszy) daje ~5.0-5.5:1 na wszystkich
     trzech tłach — z zapasem powyżej progu, nie tylko tuż nad nim. */
  --ink-faint: #5a6582;
  --bg: #ffffff;
  --bg-soft: #f5f9fe;
  --bg-alt: #edf4fd;
  --line: #dfe7f2;
  --line-strong: #c3cfe0;

  --danger: #b3261e;
  --danger-soft: #fbeae9;
  --warning: #8a5a00;
  --warning-soft: #fcf3df;
  --good: #157543;
  --good-soft: #e5f5ec;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;

  --shadow-s: 0 1px 2px rgba(11, 22, 64, 0.05), 0 1px 1px rgba(11, 22, 64, 0.03);
  --shadow-m: 0 10px 30px rgba(11, 40, 110, 0.08), 0 2px 6px rgba(11, 40, 110, 0.05);

  --container: 1200px;
  /*
   * Fonty samohostowane z public/fonts (licencja SIL OFL 1.1, patrz
   * public/fonts/OFL.txt) — deklaracje @font-face na początku pliku. Nie
   * używamy next/font/google, bo pobiera fonty z Google w czasie builda,
   * a build obrazu Dockera nie musi mieć dostępu do internetu.
   */
  --font-display: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Atrybut hidden zawsze chowa element — także gdy klasa ustawia display (np. .offer-grid { display: grid }). */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
.h1-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1,
.h1-display {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
}
h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem);
}
h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: 64ch;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
}
strong {
  color: var(--ink);
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
small.note,
.field-hint {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* Odrobinę ciemniej niż --brand-blue: mały tekst musi mieć kontrast ≥ 4,5:1
     także na jasnoniebieskim tle sekcji (#f3f8fe → 5,1:1). */
  color: #0066d6;
  margin-bottom: 1em;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
section {
  padding-block: 56px;
}
@media (min-width: 820px) {
  section {
    padding-block: 84px;
  }
}
.section-tight {
  padding-block: 40px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ---------- NOWE: skip link (dostępność, sekcja 38) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 0.8em 1.2em;
  border-radius: var(--radius-s);
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- badges / notices ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 999px;
}
.badge-info {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
}
.badge-warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-todo {
  background: var(--bg-alt);
  color: var(--ink-faint);
  border: 1px dashed var(--line-strong);
}

.demo-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--warning-soft);
  border: 1px solid #f0dda6;
  border-radius: var(--radius-m);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: #5c3d00;
}
.demo-notice strong {
  color: #5c3d00;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease,
    opacity 0.12s ease;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 112, 234, 0.25);
}
.btn-primary:hover {
  background: var(--brand-blue-deep);
  box-shadow: 0 8px 22px rgba(0, 112, 234, 0.32);
}
.btn-secondary {
  background: transparent;
  border-color: var(--brand-blue);
  color: var(--brand-blue-deep);
}
.btn-secondary:hover {
  background: var(--brand-blue-soft);
}
/* Przycisk drugorzędny bez wypełnienia. Domyślnie na jasne tło — wcześniej miał biały
   tekst (projekt na ciemne tło), przez co na białych stronach był niewidoczny: baner
   cookies („Ustawienia”), strony 404/403/500 („Zadzwoń”), panel (Wyloguj, Usuń). */
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand-blue-deep);
}
.btn-ghost:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}
/* Na ciemnym tle (pasy CTA, pasek boczny panelu) — biały wariant. */
.band-dark .btn-ghost,
.admin-sidebar .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.band-dark .btn-ghost:hover,
.admin-sidebar .btn-ghost:hover {
  border-color: #fff;
  background: transparent;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn.is-loading {
  position: relative;
  color: transparent !important;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn-secondary.is-loading::after {
  border-color: rgba(11, 95, 165, 0.35);
  border-top-color: var(--brand-blue);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 0.6em 1.1em;
  font-size: 0.88rem;
  min-height: 38px;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #8f1f19;
}

/* ---------- header / nav — przeniesione do src/styles/site.css (redesign 09.2026) ---------- */

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-blue-deep), var(--brand-blue) 130%);
  color: #fff;
  padding-block: 56px 64px;
}
.hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.hero h1 {
  color: #fff;
}
.hero .lede {
  color: #dcebf7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  font-size: 0.92rem;
  color: #cfe2f0;
}
.hero-meta strong {
  color: #fff;
}
.hero-panel {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow-m);
}
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: 40px 46px;
}
.crumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.crumb a {
  text-decoration: none;
  color: var(--ink-faint);
}
.crumb a:hover {
  text-decoration: underline;
}
.crumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--line-strong);
}

/* ---------- sections / grids ---------- */
.section-head {
  max-width: 66ch;
  margin-bottom: 36px;
}
.two-col {
  display: grid;
  gap: 36px;
}
@media (min-width: 880px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.pad-l {
  padding: 30px;
}
.pad-m {
  padding: 22px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
}
.feature {
  display: flex;
  gap: 14px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 340px;
}
.feature .ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  margin-bottom: 0.25em;
  font-size: 1.04rem;
}
.feature p {
  margin: 0;
  font-size: 0.95rem;
}

.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-s);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
  border-color: var(--brand-blue);
}
.service-tile .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
  padding: 0.3em 0.7em;
  border-radius: 999px;
  width: fit-content;
}
.service-tile .go {
  margin-top: auto;
  font-weight: 700;
  color: var(--brand-blue-deep);
  font-size: 0.9rem;
}

/* ---------- pricing cards ---------- */
/* Poz. 47 audytu: `grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))`
   psuł się widocznie na szerokościach tabletowych (ok. 805px) — `auto-fit`
   "zwija" puste kolumny i rozciąga POZOSTAŁE karty na całą dostępną
   szerokość 1fr, więc sekcja z tylko 2 ofertami (np. Internet radiowy/LTE po
   nieudanym sprawdzeniu światłowodu w AvailabilityForm.tsx) przy tej
   konkretnej szerokości kontenera dawała dwie rozciągnięte, nienaturalnie
   szerokie karty zamiast czytelnego układu 2 kolumn. To DOKŁADNIE ten sam
   problem, który w tym serwisie już raz naprawiono w innym miejscu (patrz
   `.feature-grid`/`.feature` niżej oraz `raport-koncowy-etap-1.md` — siatka
   "Konkretnie, bez sloganów") — tym samym, sprawdzonym sposobem: flexbox z
   zawijaniem i ograniczoną maksymalną szerokością karty zamiast CSS grid
   `auto-fit`, żeby karty nigdy nie rozciągały się poza rozsądną szerokość
   niezależnie od tego, ile ich jest w wierszu. */
.plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  position: relative;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 360px;
}
.plan.featured {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-m);
}
.plan .badge {
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--brand-green-deep); /* biały tekst: 5,0:1 (WCAG AA) */
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 999px;
}
.plan .name {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--brand-blue-deep);
}
.plan .speed {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 0.3em 0 0.1em;
}
.plan .speed .todo {
  font-size: 0.62em;
  font-weight: 600;
  color: var(--ink-faint);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  margin-bottom: 0.15em;
}
.plan .price b {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--ink);
}
.plan .price span {
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.plan ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.55em;
  align-items: flex-start;
}
.plan li::before {
  content: '✓';
  color: var(--good);
  font-weight: 700;
  flex: none;
}
.plan .btn {
  margin-top: auto;
}

.note-strip {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.note-strip b {
  color: var(--ink);
}

/* ---------- segment switch (Dom / Blok) ---------- */
.segment-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.segment-switch button {
  border: none;
  background: transparent;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.segment-switch button[aria-selected='true'] {
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: var(--shadow-s);
}

/* ---------- spec list ---------- */
.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-list li span:first-child {
  color: var(--ink-soft);
}
.spec-list li span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- accordion (FAQ) — przeniesione do src/styles/site.css ---------- */

/* ---------- bands ---------- */
.band {
  background: var(--brand-blue-soft);
  border-radius: var(--radius-l);
}
.band-green {
  background: var(--brand-green-soft);
  border-radius: var(--radius-l);
}
.band-dark {
  background: var(--brand-blue-deep);
  color: #fff;
  border-radius: var(--radius-l);
}
.band-dark p {
  color: #cfe2f0;
}
.band-dark h2 {
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: #fff;
}

/* ---------- availability tool ---------- */
.avail-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 28px;
}
.avail-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.avail-form .field {
  flex: 1 1 260px;
}
.result-panel {
  margin-top: 26px;
  border-radius: var(--radius-m);
  padding: 22px;
  display: none;
}
.result-panel.show {
  display: block;
}
.result-ftth {
  background: var(--good-soft);
  border: 1px solid #bee6ce;
}
.result-alt {
  background: var(--warning-soft);
  border: 1px solid #f0dda6;
}
.result-uncertain {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
}
.result-error {
  background: var(--danger-soft);
  border: 1px solid #f0c4c1;
}
.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 0.8em 0.9em;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
  min-height: 46px;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-soft);
  outline: none;
}
.field.valid input {
  border-color: var(--good);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}
.field .field-error {
  display: none;
  color: var(--danger);
  font-size: 0.86rem;
  margin-top: 0.4em;
}
.field.invalid .field-error {
  display: block;
}
.field .field-hint {
  display: block;
  margin-top: 0.35em;
}
.required-mark {
  color: var(--danger);
}
.form-consent {
  margin-top: 18px;
  font-size: 0.9rem;
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  cursor: pointer;
  font-weight: 400;
}
.form-consent input[type='checkbox'] {
  margin-top: 0.2em;
  width: 18px;
  height: 18px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
}
.form-consent.invalid label {
  color: var(--danger);
}
.form-consent .field-error {
  margin-top: 0.4em;
  margin-left: 1.8em;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-status.show {
  display: flex;
}
.form-status.success {
  background: var(--good-soft);
  color: #0f4a2c;
  border: 1px solid #bee6ce;
}
.form-status.error {
  background: var(--danger-soft);
  color: #7a1611;
  border: 1px solid #f0c4c1;
}

/* ---------- article / aktualności ---------- */
.article-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
}
.article-card .thumb {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-card time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.article-body :is(h2, h3) {
  margin-top: 1.2em;
}
.article-body p {
  max-width: 70ch;
}
.article-hero-image {
  margin: 0 0 24px;
}
.article-hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}
.article-hero-image figcaption {
  margin-top: 6px;
}

/* ---------- pagination (NOWE — archiwum aktualności) ---------- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.pagination a:hover {
  border-color: var(--brand-blue);
}
.pagination [aria-current='page'] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* ---------- reviews slot ---------- */
.review-slot {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-m);
  padding: 26px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- cookie banner + settings panel (NOWE: pełny CMP) ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  padding: 18px 20px;
  display: none;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin-inline: auto;
}
.cookie-banner.show {
  display: flex;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 60ch;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 32, 0.5);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 30px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-category:last-of-type {
  border-bottom: none;
}
/* Poz. 49 audytu: <h4> -> <h3> (modal ustawień cookies ma własny
   <h2 id="cookie-modal-title">, więc kategorie pod nim to h3, nie h4 —
   poprzednio przeskakiwano poziom h2 -> h4). Selektor podąża za zmianą
   znacznika — wygląd bez zmian. */
.cookie-category h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.cookie-category p {
  margin: 0;
  font-size: 0.88rem;
}

/* ---------- toggle switch (NOWE — ustawienia cookies) ---------- */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: none;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle .track {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.toggle .track::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: var(--shadow-s);
}
.toggle input:checked + .track {
  background: var(--brand-green);
}
.toggle input:checked + .track::before {
  transform: translateX(18px);
}
.toggle input:disabled + .track {
  background: var(--ink-faint);
  opacity: 0.5;
  cursor: not-allowed;
}
.toggle input:focus-visible + .track {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ---------- footer — przeniesione do src/styles/site.css ---------- */

/* ---------- error pages (404/403/500/503) ---------- */
.error-page {
  text-align: center;
  padding-block: 100px;
}
.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--brand-blue-soft);
}
.error-code::before {
  content: attr(data-code);
}

/* ---------- NOWE: panel administratora (minimalny, spójny z systemem) ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 800px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}
.admin-sidebar {
  background: var(--brand-blue-deep);
  color: #fff;
  padding: 24px 18px;
}
.admin-sidebar a {
  display: block;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  padding: 0.7em 0.8em;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.94rem;
}
.admin-sidebar a:hover,
.admin-sidebar a[aria-current='page'] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}
.admin-main {
  padding: 32px;
  background: var(--bg-soft);
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  margin-bottom: 20px;
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.admin-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
}
table.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.status-dot.active::before {
  background: var(--good);
}
.status-dot.draft::before {
  background: var(--warning);
}
.status-dot.archived::before {
  background: var(--danger);
}
/* Warianty dla statusów zgłoszeń (panel admina — /admin/leads) */
.status-dot.new::before {
  background: var(--brand-blue, var(--good));
}
.status-dot.contacted::before {
  background: var(--warning);
}
.status-dot.closed::before {
  background: var(--good);
}
.status-dot.spam::before {
  background: var(--danger);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 24px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 36px;
  max-width: 420px;
  width: 100%;
}

/*
 * Panel administratora (zadanie #11) współdzieli ten sam root layout
 * (src/app/layout.tsx — <html>/<body>/Header/Footer/CookieConsentManager)
 * co strony publiczne, żeby uniknąć kosztownego i ryzykownego przenoszenia
 * ~20 już zbudowanych i zweryfikowanych stron publicznych do osobnej grupy
 * tras z własnym layoutem root (jedyna "natywna" alternatywa w Next.js App
 * Router). Zamiast tego chrome publicznej strony jest ukrywany czysto przez
 * CSS, gdy w drzewie strony znajduje się `.admin-shell` (renderowany tylko
 * przez chronioną część panelu) albo `.auth-shell` (ekran logowania) —
 * `:has()` ma pełne wsparcie w nowoczesnych przeglądarkach, co jest
 * akceptowalnym wymogiem dla wewnętrznego narzędzia pracowników, a nie
 * publicznej strony marketingowej. Dzięki temu strony publiczne NIE tracą
 * statycznego generowania (nie trzeba czytać nagłówków/ścieżki w root
 * layout, co wymusiłoby dynamiczne renderowanie całej witryny).
 */
body:has(.admin-shell) .site-header,
body:has(.admin-shell) .site-footer,
body:has(.admin-shell) .cookie-banner,
body:has(.admin-shell) .cookie-modal-backdrop,
body:has(.admin-shell) .social-rail,
body:has(.auth-shell) .social-rail,
body:has(.auth-shell) .site-header,
body:has(.auth-shell) .site-footer,
body:has(.auth-shell) .cookie-banner,
body:has(.auth-shell) .cookie-modal-backdrop {
  display: none !important;
}
body:has(.admin-shell) #main-content,
body:has(.auth-shell) #main-content {
  padding: 0;
}

/* ---------- utility ---------- */
.center {
  text-align: center;
}
.stack-16 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.overflow-x {
  overflow-x: auto;
}
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- panel: statystyki (/admin/statystyki) — jeden kolor marki dla wielkości, tekst w kolorach tekstu ---------- */
.stats-ranges { display: flex; gap: 6px; flex-wrap: wrap; }
.stats-ranges a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); text-decoration: none; font-size: 0.88rem; }
.stats-ranges a[aria-current='page'] { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); }
.stat-value { font-family: var(--font-body); font-weight: 700; font-size: 1.9rem; color: var(--ink); font-variant-numeric: proportional-nums; line-height: 1.15; }
.stat-note { font-size: 0.8rem; color: var(--ink-faint); }
.stats-h2 { font-size: 1.05rem; margin-bottom: 12px; }
.stats-h3 { font-size: 0.95rem; margin: 18px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.stats-grid > .admin-card { margin-bottom: 16px; }
.stats-empty { color: var(--ink-faint); margin: 0; }
.stats-muted { color: var(--ink-faint); font-size: 0.82rem; }
.stats-table td.num, .stats-table th.num, .stats-toggle td.num, .admin-table th.num, .admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-table td:first-child { min-width: 180px; }
.hbar { display: block; height: 6px; margin-top: 6px; background: var(--brand-blue-soft); border-radius: 3px; overflow: hidden; }
.hbar > span { display: block; height: 100%; background: var(--brand-blue); border-radius: 0 3px 3px 0; }
.stats-setup ol { margin: 8px 0 0 1.2em; padding: 0; }
.stats-setup li { margin-bottom: 6px; }
.stats-table-toggle { margin-top: 12px; }
.stats-table-toggle summary { cursor: pointer; color: var(--brand-blue-deep); font-size: 0.9rem; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-tick { fill: var(--ink-faint); font-size: 11px; font-family: var(--font-body); }
.chart-bar { fill: var(--brand-blue); }
.chart-col { cursor: default; }
.chart-col:hover .chart-bar, .chart-col.is-active .chart-bar { fill: var(--brand-blue-deep); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 0.8rem; padding: 6px 10px; border-radius: var(--radius-s); white-space: nowrap; box-shadow: var(--shadow-m); z-index: 2; }
