/* =========================================================
   Zdrowy Dziadek — design system (2026)
   Ciepły, ziołowy, redakcyjny. Mobile-first, czytelny dla 50+.
   ========================================================= */

:root {
  /* Kolory */
  --forest: #2f4733;
  --forest-deep: #233528;
  --sage: #6f9377;
  --sage-soft: #e8efe7;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #20231e;
  --muted: #5c6157;
  --gold: #b9822b;
  --gold-soft: #f4e8d0;
  --line: #e7e0d1;
  --danger: #9a3b2e;

  /* Typografia */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rytm */
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(35,53,40,.06), 0 8px 28px rgba(35,53,40,.08);
  --shadow-lg: 0 18px 50px rgba(35,53,40,.14);
  --maxw: 1080px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--forest-deep); letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 5vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.lead.center { margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--gold); margin: 0 0 .8rem; }
.muted { color: var(--muted); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--forest-deep); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .5rem .7rem; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sage-soft); color: var(--forest-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; font-size: 1.1rem; cursor: pointer; color: var(--forest-deep); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .5rem clamp(1.1rem, 5vw, 2rem) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem .6rem; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--forest-deep); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a06f22; }
.btn--ghost { background: transparent; color: var(--forest-deep); border-color: var(--forest); }
.btn--ghost:hover { background: var(--sage-soft); }
.btn--block { display: flex; width: 100%; }
.btn--lg { font-size: 1.1rem; padding: 1rem 1.7rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(111,147,119,.18), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(185,130,43,.10), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.hero-figure { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: 2; }
  .portrait { max-width: 340px; }
}

.portrait {
  width: 100%; max-width: 420px; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--sage) 0%, var(--forest) 100%);
  box-shadow: var(--shadow-lg); position: relative; display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .placeholder { color: rgba(255,255,255,.92); text-align: center; padding: 2rem; font-family: var(--serif); }
.portrait .placeholder .leaf { width: 64px; height: 64px; margin: 0 auto .8rem; opacity: .9; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; align-items: center; justify-content: center; color: var(--muted); font-size: .95rem; }
.trust span { display: inline-flex; align-items: center; gap: .5rem; }

/* Cards */
.cards { display: grid; gap: var(--gap); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; height: 100%;
}
.card h3 { margin-bottom: .35em; }
.card .ico { font-size: 1.6rem; margin-bottom: .6rem; }
.card .spacer { flex: 1; }

/* Product / pricing cards */
.product { position: relative; }
.product .price { font-family: var(--serif); font-size: 2rem; color: var(--forest-deep); margin: .2em 0 .1em; }
.product .price small { font-size: .9rem; color: var(--muted); font-family: var(--sans); }
.product .price .was { font-size: 1.15rem; color: var(--muted); font-weight: 400; text-decoration: line-through; margin-right: .25em; }
.product .tag { position: absolute; top: -12px; right: 18px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.product ul { list-style: none; padding: 0; margin: .6rem 0 1.2rem; }
.product li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; font-size: .98rem; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.product--free { border-color: var(--sage); background: linear-gradient(180deg, var(--sage-soft), var(--paper) 60%); }
.product--hot { border-color: var(--gold); }

/* Dyskretny link rekomendacji (afiliacja w formie opowieści) */
.rec-link { display: inline-block; margin-top: .3rem; font-weight: 600; color: var(--gold); text-decoration: none; font-size: .95rem; }
.rec-link:hover { text-decoration: underline; }

/* Ladder steps */
.ladder { display: grid; gap: .8rem; }
.step { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.step .price { font-family: var(--serif); font-weight: 600; color: var(--forest-deep); white-space: nowrap; }
.step .price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: .82em; margin-right: .35em; }
@media (max-width: 560px) { .step { grid-template-columns: auto 1fr; } .step .price { grid-column: 2; } }

/* Herb list */
.herbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.herbs li { padding-left: 1.7rem; position: relative; }
.herbs li::before { content: "🌿"; position: absolute; left: 0; }
@media (max-width: 600px) { .herbs { grid-template-columns: 1fr; } }

/* Forms */
.form-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); max-width: 520px; margin-inline: auto; }

/* Plakietka "Gratis" na karcie formularza */
.badge-free { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sage); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .95rem; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }

/* Mini-okładka PDF (mockup wartości) */
.pdf-cover { width: 132px; aspect-ratio: 3/4; margin: .3rem auto 1.3rem; border-radius: 12px; padding: 14px; color: #eef3ec; background: linear-gradient(160deg, var(--sage) -10%, var(--forest) 55%, var(--forest-deep) 100%); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pdf-cover::after { content: "🌿"; position: absolute; right: 8px; top: 34px; font-size: 1.5rem; opacity: .45; }
.pdf-cover .pc-top { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: #e7c98d; }
.pdf-cover .pc-title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.08; }
.pdf-cover .pc-foot { font-size: .6rem; color: #c2d2c2; line-height: 1.3; }

/* Chipy ziół */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .9rem; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow); color: var(--forest-deep); }

/* Mini-pasek zaufania pod formularzem */
.trust-mini { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.trust-mini span { display: inline-flex; align-items: center; gap: .3rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; text-align: left; }
.field label { font-weight: 600; font-size: .95rem; }
.field input {
  font: inherit; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.field input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* Sections with alt background */
.bg-paper { background: var(--paper); }
.bg-forest { background: var(--forest); color: #e9efe8; }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-forest .lead, .bg-forest .muted { color: #c5d3c4; }
.bg-forest a { color: #fff; }
.bg-sage { background: var(--sage-soft); }

/* Callout / disclaimer */
.callout { border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; font-size: .95rem; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }
.disclaimer--box { border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 0; }

/* Article (about / legal) */
.article { max-width: 720px; margin-inline: auto; }
.article p, .article li { font-size: 1.08rem; }
.article h2 { margin-top: 1.8em; }
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--forest-deep); color: #c5d3c4; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; }
.site-footer a { color: #c5d3c4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: .95rem; color: #a9bbab; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: rgba(255,255,255,.18); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; color: #93a594; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Link-in-bio (start) */
.bio { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 3rem 1.2rem; }
.bio-avatar { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(160deg, var(--sage), var(--forest)); display: grid; place-items: center; margin-bottom: 1rem; }
.bio-links { width: 100%; max-width: 460px; display: grid; gap: .8rem; margin-top: 1.5rem; }
.bio-link { display: flex; align-items: center; justify-content: center; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); transition: transform .08s ease; }
.bio-link:hover { transform: translateY(-2px); }
.bio-link.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.bio-link.gold { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Stats dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.stat .n { font-family: var(--serif); font-size: 2.2rem; color: var(--forest-deep); }
.stat .l { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
table.data { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.data th { background: var(--sage-soft); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--forest-deep); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.hide { display: none; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.pill { display: inline-block; background: var(--sage-soft); color: var(--forest-deep); font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
