/*
 * Wspólny arkusz stylów poradników (topic cluster oszustwo.com.pl).
 * Ładowany przez wszystkie statyczne poradniki — edytuj tylko ten plik,
 * a zmiana obejmie każdą stronę. Strony nie wymagają JS.
 */
:root {
  --bg: hsl(0 0% 4%);
  --fg: hsl(0 0% 98%);
  --card: hsl(0 0% 7%);
  --border: hsl(0 0% 15%);
  --primary: hsl(0 84% 45%);
  --primary-text: hsl(0 91% 68%);
  --primary-soft: hsl(0 84% 45% / 0.1);
  --accent: hsl(43 96% 58%);
  --accent-soft: hsl(43 96% 58% / 0.1);
  --muted: hsl(0 0% 65%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.1rem; }

a { color: var(--fg); }
a:hover { color: var(--primary-text); }
a:focus-visible,
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

strong { color: var(--fg); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

nav.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem 0 0;
}
nav.crumbs a { color: var(--muted); text-decoration: none; }
nav.crumbs a:hover { color: var(--primary-text); }

header.hero { padding: 2rem 0 3rem; border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  border: 1px solid hsl(0 84% 45% / 0.25);
  color: var(--primary-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.lead { font-size: 1.22rem; color: var(--muted); }
.lead strong { color: var(--fg); }

.byline {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

section { padding: 3.5rem 0; border-bottom: 1px solid hsl(0 0% 15% / 0.6); }
section:last-of-type { border-bottom: none; }

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2.5rem 0 0;
}
.toc h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.5rem; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 600; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p + p { margin-top: 0.8rem; }
.card a.more { color: var(--primary-text); font-weight: 700; text-decoration: none; }

ul.flags { list-style: none; margin: 0; padding: 0; }
ul.flags li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.7rem;
}
ul.flags li::before {
  content: "!";
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: -1rem;
  top: -0.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
ol.steps h3 { margin-bottom: 0.35rem; }
ol.steps p { color: var(--muted); margin-bottom: 0; }

.callout {
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid;
}
.callout p:last-child { margin-bottom: 0; }
.callout.danger { background: var(--primary-soft); border-color: hsl(0 84% 45% / 0.35); }
.callout.warn { background: var(--accent-soft); border-color: hsl(43 96% 58% / 0.35); }
.callout h3 { margin-bottom: 0.5rem; }
.callout.warn h3 { color: var(--accent); }
.callout.danger h3 { color: var(--primary); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td:first-child { font-weight: 600; white-space: nowrap; }

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.75rem;
}
details summary {
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--primary-text); font-weight: 900; }
details[open] summary::after { content: "\2013"; }
details p { margin: 0.9rem 0 0; color: var(--muted); }

.institutions a.inst,
.guides a.guide {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.institutions a.inst:hover,
.guides a.guide:hover { border-color: hsl(0 84% 45% / 0.5); transform: translateY(-2px); }
.institutions h3, .guides h3 { margin-bottom: 0.35rem; }
.institutions p, .guides p { color: var(--muted); font-size: 0.93rem; margin: 0 0 0.6rem; }
.institutions span.link, .guides span.link { color: var(--primary-text); font-weight: 700; font-size: 0.9rem; }
.guides span.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}
.cta:hover { opacity: 0.9; color: #fff; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 10px;
}
.cta-ghost:hover { border-color: hsl(0 84% 45% / 0.5); }

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
footer a { color: var(--muted); }
footer .copy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 15% / 0.6); }
footer nav.sitelinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin: 1.5rem 0; }
footer nav.sitelinks a { text-decoration: none; font-weight: 600; }
