/* ============================================================
   IT Services Mariusz Jakubowski — audytor-it.pl
   Jeden wspólny arkusz stylów. Ciemny motyw "security", B2B.
   ============================================================ */

/* ---------- Zmienne (paleta) ---------- */
:root {
  --bg: #0B0F14;
  --surface: #131A22;
  --surface-2: #0F151C;
  --border: #1F2A35;
  --text: #E6EDF3;
  --text-secondary: #8B98A5;
  --accent: #00D4FF;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --accent-2: #00E08A;
  --accent-2-dim: rgba(0, 224, 138, 0.12);
  --danger: #FF6B6B;

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1140px;
  --header-h: 72px;
  --focus-ring: 2px solid var(--accent);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75em;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

::selection { background: var(--accent-dim); color: var(--text); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Dostępność ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #04121a;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 4rem; }
.section--tight { padding-block: 2.5rem; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #04121a;
}
.btn-primary:hover {
  background: #33DFFF;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}

.btn-success {
  background: var(--accent-2);
  color: #04160e;
}
.btn-success:hover {
  box-shadow: 0 0 24px rgba(0, 224, 138, 0.35);
}

.btn .btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Pasek ogłoszeniowy (banner) ---------- */
.announce {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.18), rgba(0, 224, 138, 0.12)),
    var(--surface-2);
  border-bottom: 1px solid rgba(0, 212, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(0, 212, 255, 0.3), 0 2px 14px rgba(0, 212, 255, 0.10);
  font-size: 0.9rem;
}
.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  padding-block: 0.8rem;
}
.announce-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(0, 224, 138, 0.9);
  animation: announce-pulse 1.6s ease-in-out infinite;
}
@keyframes announce-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.announce-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04121a;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25em 1em;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.45);
}
.announce p {
  margin: 0;
  flex: 1 1 340px;
  color: var(--text);
}
.announce strong { color: #FFFFFF; }
.announce-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.15rem;
  font-size: 0.8rem;
}

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.main-nav a:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border-color: var(--border);
}
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle .icon-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5.5rem 4.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 42, 53, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 53, 0.4) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 15%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 15%, #000 25%, transparent 72%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 75% 5%, rgba(0, 212, 255, 0.10), transparent 65%),
    radial-gradient(ellipse 40% 35% at 20% 60%, rgba(0, 224, 138, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.hero-meta span::before { content: "// "; color: var(--accent-2); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Kafle / karty ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.3);
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.card-icon--green { background: var(--accent-2-dim); border-color: rgba(0, 224, 138, 0.3); color: var(--accent-2); }

.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.card p { color: var(--text-secondary); font-size: 0.925rem; flex-grow: 1; }

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link:hover { text-decoration: none; color: #33DFFF; }
.card-link .btn-arrow { transition: transform 0.2s; }
.card:hover .card-link .btn-arrow { transform: translateX(3px); }
/* rozciąga całą kartę jako link */
.card-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Pasek usług (banner) ---------- */
.strip {
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.08), rgba(0, 224, 138, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.strip h3 { margin: 0 0 0.25rem; }
.strip p { margin: 0; color: var(--text-secondary); font-size: 0.925rem; }

/* ---------- Liczniki ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.counter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.counter-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.counter:nth-child(4n+2) .counter-value,
.counter:nth-child(4n+3) .counter-value { color: var(--accent-2); }

.counter-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---------- CTA sekcja ---------- */
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 212, 255, 0.10), transparent 65%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-secondary); max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Typografia treści (podstrony) ---------- */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem 3rem;
}
.page-hero .lead { max-width: 760px; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul li::marker { color: var(--accent); }
.prose ol li::marker { color: var(--accent); font-family: var(--font-mono); font-weight: 600; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.note strong { color: var(--text); }

blockquote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent-2);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}
blockquote p { margin: 0; }

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #FFD166;
  background: rgba(255, 209, 102, 0.08);
  border: 1px dashed rgba(255, 209, 102, 0.45);
  border-radius: 5px;
  padding: 0.1em 0.5em;
}

/* ---------- Warianty pentestów ---------- */
.variant {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.variant--featured { border-color: rgba(0, 212, 255, 0.45); }
.variant--featured .variant-badge { background: var(--accent-dim); color: var(--accent); border-color: rgba(0,212,255,0.4); }

/* Wariant „wkrótce" */
.variant--wkrotce { border-style: dashed; border-color: rgba(255, 209, 102, 0.45); }
.variant-badge--wkrotce {
  color: #FFD166;
  border-color: rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.08);
}

.variant-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.variant-head h3 { margin: 0; }

.variant-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.25em 0.9em;
}

.variant-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}
.variant-time::before { content: "⌁ "; }

/* ---------- Tabela ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
th, td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: var(--surface-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(19, 26, 34, 0.7); }

/* ---------- Akordeon (details) ---------- */
details.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
details.acc[open] { border-color: rgba(0, 212, 255, 0.5); }

details.acc > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary:hover { color: var(--accent); }

details.acc > summary .acc-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(0, 224, 138, 0.35);
  border-radius: 999px;
  padding: 0.15em 0.8em;
  flex-shrink: 0;
}

details.acc > summary .acc-indicator {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s, border-color 0.25s;
}
details.acc[open] > summary .acc-indicator { transform: rotate(45deg); border-color: var(--accent); }

details.acc .acc-body {
  padding: 0 1.4rem 1.4rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  border-top: 1px solid var(--border);
}
details.acc .acc-body > *:first-child { margin-top: 1.1rem; }
details.acc .acc-body h4 { color: var(--text); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ---------- Formularz ---------- */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-field .req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B98A5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }

/* Pytania kwalifikacyjne (formularz) */
.form-kwalifikacja {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 0 0 1.25rem;
  grid-column: 1 / -1;
}
.form-kwalifikacja > legend {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0 0.5rem;
}
.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.q-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.q-options label:hover { border-color: var(--accent); }
.q-options input { accent-color: var(--accent); width: auto; }
.q-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}
.q-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-kwalifikacja .form-field { margin-bottom: 1.25rem; }
.form-kwalifikacja.is-hidden { display: none !important; }

.form-hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.75rem; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-status.is-visible { display: block; }
.form-status--ok { border-color: rgba(0, 224, 138, 0.5); color: var(--accent-2); background: var(--accent-2-dim); }
.form-status--error { border-color: rgba(255, 107, 107, 0.5); color: var(--danger); background: rgba(255, 107, 107, 0.08); }

/* Pole-pułapka (honeypot) — niewidoczne dla ludzi, wypełniają je boty */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Popup o plikach cookies (zgoda) ---------- */
.cookie-popup {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.cookie-popup[hidden] { display: none; }

.cookie-popup-karta {
  max-width: 520px;
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 255, 0.08);
  padding: 1.75rem;
}
.cookie-popup-karta h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.cookie-popup-karta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.cookie-popup-akcje {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Stopka ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
  grid-template-columns: 1fr;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.875rem; max-width: 340px; }

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.footer-bottom .mono { font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- Breadcrumbs (podstrony) ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin-inline: 0.5rem; color: var(--border); }
.breadcrumbs [aria-current="page"] { color: var(--accent); }

/* ---------- Breakpoint: ~640px ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-field--full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Breakpoint: ~1024px ---------- */
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 6.5rem 5.5rem; }
}

/* ---------- Nawigacja: 640–1024px (6 pozycji menu — ciaśniej) ---------- */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .brand img { height: 36px; }
  .main-nav a { padding: 0.5rem 0.55rem; font-size: 0.8rem; }
}

/* ---------- Nawigacja mobilna (< 640px) ---------- */
@media (max-width: 639.98px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(11, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.85rem 1rem; font-size: 1rem; }
}

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