/* =========================================================================
   OPTISENA — arkusz stylów
   Mobile first. Wsparcie dla prefers-color-scheme. Bez zewnętrznych zasobów.
   Spis treści:
     1. Zmienne i motyw
     2. Reset i typografia bazowa
     3. Elementy współdzielone (wrap, btn, eyebrow, sekcje)
     4. Nagłówek i nawigacja
     5. Hero
     6. Problem
     7. Jak to działa
     8. Tabela porównawcza
     9. Formularz + ekran podziękowania
    10. FAQ
    11. Stopka
    12. Breakpointy (>=640px, >=960px, >=1200px)
    13. Dostępność / preferencje użytkownika / druk
   ========================================================================= */

/* ---------- 1. Zmienne i motyw ---------- */
:root {
  color-scheme: light dark;

  /* paleta bazowa — kolory wprost z logo OPTISENA
     #88BB21 limonka · #15A173 zieleń morska · #0B2034 granat */
  --navy-900:  #061524;
  --navy-800:  #0B2034;   /* granat z logo — kolor wordmarku */
  --navy-700:  #12314D;
  --teal-700:  #0E7A57;   /* przyciemniona zieleń morska do tekstu (4.96:1) */
  --teal-600:  #15A173;   /* zieleń morska z logo */
  --teal-500:  #1FBA88;
  --lime-700:  #506F0E;   /* przyciemniona limonka do tekstu — min. 4.97:1 na każdym jasnym tle */
  --lime-600:  #7AAA1B;
  --lime-500:  #88BB21;   /* limonka z logo — tylko jako wypełnienie */
  --lime-400:  #A3D340;

  /* motyw jasny */
  --bg:            #F5F7F9;
  --bg-alt:        #E9EEF3;
  --surface:       #FFFFFF;
  --surface-2:     #F0F4F7;
  --text:          var(--navy-800);
  --text-muted:    #46566A;
  --text-faint:    #5A6A7D;   /* 5.16:1 na --bg — AA również dla tekstu 14 px */
  --border:        #DBE3EB;
  --border-strong: #C0CCD9;

  --brand:         var(--navy-800);
  --brand-strong:  var(--navy-900);
  --brand-soft:    #E6EDF4;
  --on-brand:      #FFFFFF;

  /* Limonka ma tylko 2.29:1 na bieli, więc nigdy nie niesie białego tekstu —
     jako tło dostaje granat (7.22:1), a jako tekst wariant --lime-700. */
  --accent:        var(--lime-500);
  --accent-hover:  var(--lime-600);
  --accent-soft:   #EFF7DC;
  --accent-text:   var(--lime-700);
  --on-accent:     var(--navy-800);

  --support:       var(--teal-600);
  --support-text:  var(--teal-700);
  --support-soft:  #E1F4EE;

  --danger:        #B32218;
  --danger-soft:   #FDECEA;

  --shadow-sm: 0 1px 2px rgba(11, 32, 52, .06), 0 1px 3px rgba(11, 32, 52, .05);
  --shadow-md: 0 4px 12px rgba(11, 32, 52, .07), 0 2px 4px rgba(11, 32, 52, .05);
  --shadow-lg: 0 18px 40px rgba(11, 32, 52, .10), 0 4px 12px rgba(11, 32, 52, .06);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --wrap: 1180px;
  --gutter: 20px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", Arial, "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #070E16;
    --bg-alt:        #0B131C;
    --surface:       #101A25;
    --surface-2:     #16212D;
    --text:          #E6EDF4;
    --text-muted:    #A2B1C1;
    --text-faint:    #8B9BAC;
    --border:        #223140;
    --border-strong: #324458;

    /* Na ciemnym tle granat znika, więc rolę marki przejmuje zieleń morska. */
    --brand:         var(--teal-600);
    --brand-strong:  var(--teal-500);
    --brand-soft:    #0C2620;
    --on-brand:      var(--navy-800);

    --accent:        var(--lime-400);
    --accent-hover:  #B4E052;
    --accent-soft:   #1C2810;
    --accent-text:   var(--lime-400);
    --on-accent:     var(--navy-800);

    --support:       var(--teal-500);
    --support-text:  var(--teal-500);
    --support-soft:  #0C2620;

    --danger:        #F08379;
    --danger-soft:   #2A1512;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .55);
  }
}

/* ---------- 2. Reset i typografia bazowa ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 6.2vw, 3.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
h3 { font-size: clamp(1.12rem, 2.6vw, 1.32rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 650; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; z-index: 999;
  transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: var(--on-accent); }

/* ---------- 3. Elementy współdzielone ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 860px; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-form {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--brand-soft) 22%, var(--brand-soft) 100%);
}

.eyebrow {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-lead {
  max-width: 62ch;
  font-size: 1.04rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--text-muted); color: var(--text); }

.btn-sm  { padding: .5rem .9rem; font-size: .92rem; }
.btn-lg  { padding: .88rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.cards { display: grid; gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
@media (prefers-color-scheme: dark) {
  .card-icon { color: #4FC9A4; }
}

.tick-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .6rem;
  color: var(--text-muted);
  font-size: .96rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .58em;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
}

.callout {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1rem;
}
.callout strong { color: var(--text); }

/* ---------- 4. Nagłówek i nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
/* Znak OPTISENA — trzy warstwy. Kolory z logo są stałe, bo to identyfikacja
   marki, a nie element motywu; jedynie granatowa warstwa rozjaśnia się
   w trybie ciemnym, żeby nie znikła w tle. */
.brand-mark      { flex: none; }
.brand-mark-lime { fill: #88BB21; }
.brand-mark-teal { fill: #15A173; }
.brand-mark-navy { fill: #0B2034; }
@media (prefers-color-scheme: dark) {
  .brand-mark-navy { fill: #7B93AE; }
}

.brand-text {
  white-space: nowrap;
  letter-spacing: .06em;
  font-weight: 700;
}

/* Przełącznik języka. Nazwa języka zawsze w tym języku, na który przełącza
   („English” na stronie PL) — to jedyny napis, który obcokrajowiec zrozumie,
   nie znając polskiego. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface-2);
}

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav { flex-basis: 100%; }
.nav:not(.is-open) { display: none; }

.nav-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: .6rem .2rem;
  color: var(--text-muted);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-list a:hover { color: var(--text); }
.nav-list .btn { margin-top: 10px; border-bottom: 0; color: var(--on-accent); }
.nav-list .btn:hover { color: var(--on-accent); }

/* ---------- 5. Hero ---------- */
.hero {
  padding: 40px 0 48px;
  background:
    radial-gradient(120% 90% at 80% -10%, var(--brand-soft) 0%, transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; gap: 32px; }

.hero-copy h1 { margin-bottom: .6rem; }

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 1.6rem;
}

.hero-cta { display: flex; flex-direction: column; gap: 12px; }

.hero-note {
  margin-top: 1.1rem;
  font-size: .9rem;
  color: var(--text-faint);
  max-width: 52ch;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.panel-title { font-weight: 700; font-size: .98rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge-urgent { background: var(--accent-soft); color: var(--accent-text); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 16px 0 0;
}
.panel-grid div { min-width: 0; }
.panel-grid dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.panel-grid dd { margin: 0; font-weight: 650; font-size: .98rem; }

.panel-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.panel-btn {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: .95rem;
}
.panel-hint { font-size: .78rem; color: var(--text-faint); }

.stat-row {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-row li { display: flex; flex-direction: column; }
.stat-row strong {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-row span { font-size: .9rem; color: var(--text-muted); }

/* ---------- 7. Jak to działa ---------- */
.flow-grid { display: grid; gap: 32px; }

.flow-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.flow-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .93rem;
  font-weight: 550;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}
.flow-tag {
  align-self: flex-start;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.flow-tag-sell { background: var(--brand); color: var(--on-brand); }
.flow-tag-buy  { background: var(--accent); color: var(--on-accent); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding-bottom: 22px;
}
.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 38px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .step-num { color: #4FC9A4; }
}
.steps h4 { margin-bottom: .25rem; }
.steps p { font-size: .94rem; color: var(--text-muted); margin: 0; }

/* ---------- 8. Tabela porównawcza ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.table-scroll:focus-visible { outline-offset: -3px; }

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .93rem;
}
.compare th, .compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--brand);
  color: var(--on-brand);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 0;
  position: sticky;
  top: 0;
}
.compare thead th.col-us { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) {
  /* W trybie ciemnym --on-brand to granat, więc nagłówek tabeli musi mieć
     własny, jasny kolor tekstu — inaczej granat na ciemnym tle znika. */
  .compare thead th { background: #16212D; color: var(--text); }
  .compare thead th.col-us { background: #0F4636; color: var(--text); }
}
.compare tbody th {
  font-weight: 650;
  color: var(--text);
  width: 190px;
  background: var(--surface-2);
}
.compare td { color: var(--text-muted); }
.compare td.col-us {
  color: var(--text);
  font-weight: 600;
  background: var(--brand-soft);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.table-hint {
  margin-top: 10px;
  font-size: .84rem;
  color: var(--text-faint);
}

/* ---------- 9. Formularz ---------- */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem .6rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--text); background: var(--brand-soft); }
.tab.is-active {
  background: var(--surface);
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab svg { flex: none; }

.lead-form { padding: 24px 20px 26px; }

.form-intro {
  margin-bottom: 1.4rem;
  padding: .8rem 1rem;
  background: var(--brand-soft);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-muted);
}

.grid-2 { display: grid; gap: 16px; margin-bottom: 6px; }

.field { display: flex; flex-direction: column; margin-bottom: 16px; min-width: 0; }
.grid-2 .field { margin-bottom: 0; }

.field label,
.fieldset legend {
  font-size: .9rem;
  font-weight: 650;
  margin-bottom: .38rem;
  color: var(--text);
}
.req { color: var(--danger); font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234F5C56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 18px 18px;
}
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23A7B5AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  }
  select option { background: var(--surface); color: var(--text); }
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }

::placeholder { color: var(--text-faint); opacity: 1; }

.hint { margin: .35rem 0 0; font-size: .82rem; color: var(--text-faint); }

.err {
  margin: .35rem 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--danger);
}
[aria-invalid="true"],
.is-invalid input, .is-invalid select, .is-invalid textarea {
  border-color: var(--danger);
}

.fieldset {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  min-width: 0;
}
.fieldset legend { padding: 0 .4rem; }
.fieldset .hint { margin: 0 0 .7rem; }

.checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
  line-height: 1.45;
}
.check input[type="checkbox"] {
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .check input[type="checkbox"] { accent-color: var(--green-500); }
}

.consent {
  margin: 20px 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.consent .check { font-size: .92rem; }

.rodo { margin-top: .8rem; }
.rodo summary {
  cursor: pointer;
  font-size: .86rem;
  font-weight: 650;
  color: var(--accent-text);
  padding: .2rem 0;
  list-style-position: outside;
}
.rodo summary:hover { text-decoration: underline; }
.rodo[open] summary { margin-bottom: .6rem; }
.rodo p {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: .7rem;
}
.rodo p:last-child { margin-bottom: 0; }

/* Pułapka na boty (pole _gotcha). Ukrywamy ją wizualnie, ale zostaje w DOM —
   display:none bywa przez boty wykrywane i pomijane. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error-summary {
  margin: 0 0 14px;
  padding: .8rem 1rem;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: .9rem;
  font-weight: 600;
}

.form-foot {
  margin-top: .9rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-faint);
}

/* ekran podziękowania */
.thanks { padding: 40px 22px 34px; text-align: center; }
.thanks-icon {
  display: inline-flex;
  color: var(--brand-strong);
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .thanks-icon { color: #4FC9A4; }
}
.thanks-lead {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text);
  max-width: 44ch;
  margin-inline: auto;
}
.thanks-steps {
  margin: 24px auto 20px;
  padding: 18px 20px 18px 38px;
  max-width: 520px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .93rem;
  color: var(--text-muted);
}
.thanks-steps li { margin-bottom: .55rem; }
.thanks-steps li:last-child { margin-bottom: 0; }
.thanks-steps strong { color: var(--text); }
.thanks-note { font-size: .88rem; color: var(--text-faint); margin-bottom: 1.2rem; }

/* ---------- 10. FAQ ---------- */
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item summary:hover { background: var(--surface-2); }

.faq-body {
  padding: 0 20px 20px;
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 68ch;
}

.faq-cta {
  margin-top: 26px;
  padding: 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq-cta p { font-weight: 650; color: var(--text); margin-bottom: .9rem; }

/* ---------- 11. Stopka ---------- */
.site-footer {
  background: var(--navy-900);
  color: #C2D0DE;
  padding: 44px 0 20px;
  border-top: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #040B13; }
}

.footer-inner { display: grid; gap: 28px; }
.site-footer .brand { color: #FFFFFF; margin-bottom: 6px; }
.site-footer .brand-mark-navy { fill: #8FA6C0; }
.footer-brand p { font-size: .9rem; color: #A9B8C9; max-width: 44ch; }

/* Hasło z logo: dwa pierwsze człony w zieleni morskiej, trzeci w limonce. */
.brand-claim {
  margin: 0 0 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4FC9A4;
}
.brand-claim b { color: #A3D340; font-weight: 700; }

.footer-col h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #FFFFFF;
  margin-bottom: .8rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.footer-list li { margin-bottom: .45rem; color: #A9B8C9; }
.footer-list strong { color: #FFFFFF; }
.footer-list a { color: #D6E2EF; text-decoration: none; border-bottom: 1px solid #2A3F57; }
.footer-list a:hover { color: var(--lime-400); border-bottom-color: var(--lime-400); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #223B52;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .82rem;
  color: #9FB0C2;
}
.footer-bottom p { margin: 0; }
.footer-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-link {
  color: #93A5B8;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.tool-link:hover { color: var(--lime-400); border-bottom-color: var(--lime-400); }
.tool-sep { color: #7B8EA3; }
.tool-count { color: #7B8EA3; font-family: var(--font-mono); font-size: .78rem; }

/* ---------- 12. Breakpointy ---------- */
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 190px; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .section { padding: 76px 0; }
  .hero { padding: 56px 0 64px; }
  .lead-form { padding: 30px 28px 32px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .field-full { grid-column: 1 / -1; }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .card { padding: 28px 26px; }
  .flow-col { padding: 28px 26px; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .thanks { padding: 56px 32px 46px; }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 88px; }
  .nav-toggle { display: none; }
  .nav { flex-basis: auto; }
  .nav:not(.is-open) { display: block; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0;
  }
  .nav-list a {
    padding: .5rem .7rem;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: .93rem;
  }
  .nav-list a:hover { background: var(--brand-soft); }
  .nav-list .btn { margin-top: 0; margin-left: 8px; }
  .nav-list .btn:hover { background: var(--accent-hover); }
  .header-inner { min-height: 72px; flex-wrap: nowrap; }

  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .hero-panel { padding: 26px; }
  .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .hero-copy h1 { max-width: 15ch; }
}

/* ---------- 13. Preferencje użytkownika, druk ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --border: var(--border-strong); --text-muted: var(--text); }
}

@media print {
  .site-header, .hero-panel, .nav, .footer-tools, .tabs { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 16px 0; }
  .table-scroll { overflow: visible; }
  .faq-item .faq-body { display: block !important; }
}
