:root {
  --ground: #FAF7F0;
  --surface: #FFFFFF;
  --ink: #1A1B3D;
  --ink-soft: #4A4C70;
  --ink-faint: #7A7C99;
  --rule: #E3DED2;
  --gold: #8A6512;
  --gold-bg: #F5EDD9;
  --green: #1D6344;
  --green-bg: #E4EFE8;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #12132C;
    --surface: #1B1D3E;
    --ink: #F0EDE4;
    --ink-soft: #B6B8CF;
    --ink-faint: #85879F;
    --rule: #2E3055;
    --gold: #E5C67D;
    --gold-bg: #2A2440;
    --green: #77C9A0;
    --green-bg: #16301F;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }

/* ---- nagłówek strony głównej ---- */
.hero {
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero img.ikona {
  width: 104px; height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(26, 27, 61, 0.22);
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0;
  font-size: clamp(19px, 3.4vw, 22px);
  color: var(--ink-soft);
  max-width: 26em;
  text-wrap: balance;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }
.cta-sub { font-size: 14.5px; color: var(--ink-faint); margin: 0; }

/* ---- sekcje ---- */
section { padding: 44px 0; border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 36px);
  margin: 0 0 20px;
  text-wrap: balance;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  margin: 30px 0 10px;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
p strong, li strong { color: var(--ink); font-weight: 600; }
a { color: var(--gold); }

/* ---- jak to działa ---- */
.kroki { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.krok { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.krok .n {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  padding-top: 3px;
  font-variant-numeric: lining-nums;
}
.krok h3 { margin: 0 0 4px; font-size: 21px; }
.krok p { margin: 0; }

/* ---- zrzuty ---- */
.zrzuty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 6px;
}
.zrzuty img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
}
@media (max-width: 34rem) {
  .zrzuty { grid-template-columns: repeat(2, 1fr); }
}

/* ---- uczciwość ---- */
.szczery {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 24px 26px;
}
.szczery h2 { margin-top: 0; }
.szczery p:last-child { margin-bottom: 0; }

.darmo { background: var(--green-bg); border-left-color: var(--green); }

/* ---- treść polityki ---- */
.doc { padding: 48px 0 64px; }
.doc h1 {
  font-size: clamp(30px, 6vw, 42px);
  margin-bottom: 8px;
  text-align: left;
}
.doc h2 { font-size: clamp(24px, 4.5vw, 30px); margin-top: 38px; }
.doc h3 { font-size: 21px; }
.doc ul { color: var(--ink-soft); padding-left: 1.2em; }
.doc li { margin-bottom: 7px; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.87em;
  background: var(--gold-bg);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 3px;
}
.tw { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-weight: 600; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-soft); }

/* ---- stopka ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: 30px 0 46px;
  font-size: 14.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
footer a { color: var(--ink-faint); }
.wroc { display: inline-block; margin-bottom: 26px; font-size: 15px; }


/* ---- problem ---- */
.problem {
  background: var(--ink);
  color: var(--ground);
  border-radius: 4px;
  padding: 38px 34px;
  margin: 0;
}
.problem h2 { color: var(--ground); margin-top: 0; }
.problem p { color: rgba(250, 247, 240, 0.82); font-size: 18px; }
.problem p:last-child { margin-bottom: 0; }
.problem strong { color: var(--ground); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .problem { background: var(--surface); color: var(--ink); }
  :root:not([data-theme="light"]) .problem h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .problem p { color: var(--ink-soft); }
  :root:not([data-theme="light"]) .problem strong { color: var(--ink); }
}

/* ---- cennik ---- */
.ceny { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.cena {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 14px;
  background: var(--surface);
  text-align: center;
}
.cena.polecane { border-color: var(--gold); border-width: 2px; }
.cena .kw { font-family: var(--display); font-size: 26px; font-weight: 600; display: block; font-variant-numeric: lining-nums; }
.cena .za { font-size: 13.5px; color: var(--ink-faint); display: block; margin-top: 2px; }
.cena .et {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: block; margin-bottom: 6px;
}
@media (max-width: 32rem) { .ceny { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
details { border-bottom: 1px solid var(--rule); }
details[open] summary { color: var(--gold); }
summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
details[open] { padding-bottom: 16px; }
details p { margin: 4px 0 0; font-size: 15.5px; }

/* ---- domknięcie ---- */
.koniec { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.koniec h2 { margin-bottom: 0; }

/* ---- wezwanie w srodku strony ---- */
.zacheta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
