/* zoltawstazka.pl — style główne. Bez zależności, bez webfontów (RODO-friendly, szybkość). */

:root {
  --yellow: #ffc81e;
  --yellow-deep: #f0b400;
  --yellow-soft: #ffe9a8;
  --yellow-pale: #fff7de;
  --ink: #201d12;
  --ink-soft: #4a4536;
  --muted: #6f6857;
  --paper: #fffdf6;
  --card: #ffffff;
  --line: #ece5d2;
  --link: #7a5c00;
  --ok: #2e6b34;
  --no: #a33a2a;
  --radius: 14px;
  --maxw: 72rem;
  --maxw-text: 46rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
  border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── Nagłówek ─────────────────────────────── */
.site-header {
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 42px; flex: none; }
.brand .tld { font-weight: 500; opacity: .55; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1rem .35rem;
}
.site-nav a {
  display: block; padding: .45rem .7rem;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem;
  border-radius: 9px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(32, 29, 18, .12); }

/* ── Hero ─────────────────────────────────── */
.hero {
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}
.hero .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}
.hero-ribbon { text-align: center; }
.hero-ribbon svg { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 12px 24px rgba(32,29,18,.25)); }

.btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .1s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(32,29,18,.08); color: var(--ink); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Sekcje / layout ──────────────────────── */
main { display: block; }
.section { padding: 3rem 1.25rem; }
.section .inner { max-width: var(--maxw); margin: 0 auto; }
.section.tinted { background: var(--yellow-pale); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 1.25rem;
}
.section .kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-soft);
  background: var(--yellow-soft);
  padding: .25rem .7rem; border-radius: 999px;
  margin-bottom: .75rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 10px rgba(32,29,18,.05);
}
.card h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .emoji { font-size: 1.7rem; line-height: 1; }
.card a.more { display: inline-block; margin-top: .7rem; font-weight: 700; font-size: .95rem; }

/* do / don't */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.dodont .card { border-top: 5px solid var(--ok); }
.dodont .card.dont { border-top-color: var(--no); }
.dodont h3 { display: flex; align-items: center; gap: .5rem; }
.dodont ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.dodont li { margin: .45rem 0; color: var(--ink-soft); }
.dodont li strong { color: var(--ink); }

/* ── Artykuły ─────────────────────────────── */
.article-head {
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
  padding: 2.75rem 1.25rem;
}
.article-head .inner { max-width: var(--maxw-text); margin: 0 auto; }
.article-head h1 {
  margin: .4rem 0 .6rem;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.025em;
}
.article-head .meta { font-size: .92rem; color: var(--ink-soft); }
.breadcrumbs { font-size: .85rem; margin: 0 0 .25rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--ink); }

.article-body { max-width: var(--maxw-text); margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.article-body h2 { font-size: 1.55rem; letter-spacing: -.015em; margin: 2.2rem 0 .8rem; line-height: 1.2; }
.article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.article-body li { margin: .4rem 0; }
.article-body li::marker { color: var(--yellow-deep); font-weight: 700; }
.article-body blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem;
  background: var(--yellow-pale);
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-body .figure { margin: 1.75rem 0; text-align: center; }
.article-body .figure svg { max-width: 320px; }

.callout {
  background: var(--yellow-pale);
  border: 1px solid var(--yellow-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.callout.warn { background: #fdefec; border-color: #f2cfc6; }
.callout strong:first-child { display: block; margin-bottom: .3rem; }
.callout p:last-child { margin-bottom: 0; }

.next-read {
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 2px dashed var(--line);
}
.next-read h2 { font-size: 1.1rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* FAQ */
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 .75rem;
  padding: 0;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--yellow-deep);
}
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); }
details.faq .answer p { margin: 0 0 .8rem; }
details.faq .answer p:last-child { margin: 0; }

/* Kroki */
.steps { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.3rem; height: 2.3rem;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.steps li strong { display: block; margin-bottom: .15rem; }

/* Tabele */
table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: .97rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--yellow-pale); }
.table-wrap { overflow-x: auto; }

/* Pobieranie */
.download-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem;
}
.download-card .thumb {
  flex: none; width: 74px; height: 100px;
  background: var(--yellow-pale); border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.download-card .thumb.sq { height: 74px; }
.download-card h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.download-card p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; }
.download-card .links { font-size: .95rem; font-weight: 700; }
.download-card .links a { margin-right: 1rem; }

/* Banner CTA */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 .3rem; font-size: 1.5rem; letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .85; max-width: 38rem; }
.cta-band .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta-band .btn:hover { color: var(--ink); }

/* ── Stopka ───────────────────────────────── */
.site-footer {
  background: var(--ink); color: #d8d3c4;
  margin-top: 3rem;
  font-size: .93rem;
}
.site-footer a { color: #ffe9a8; }
.site-footer a:hover { color: #fff; }
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem;
}
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer .brandline { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .6rem; }
.site-footer .brandline svg { width: 22px; height: 31px; }
.site-footer .legal {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem; opacity: .8;
}

/* ── Responsywność ────────────────────────── */
@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-ribbon { order: -1; }
  .hero-ribbon svg { width: min(150px, 40vw); }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-2, .dodont { grid-template-columns: 1fr; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-nav a { padding: .4rem .55rem; font-size: .88rem; }
  .section { padding: 2.25rem 1rem; }
}

@media print {
  .site-header, .site-footer, .cta-band, .next-read, .skip-link { display: none; }
  body { background: #fff; }
}
