/* ==========================================================================
   problemydzieci.pl — portal dla rodziców
   Paleta: ciepły krem (tło) + głęboki morski (zaufanie, spokój)
   + koral (ciepło, rodzina) + kolor przewodni każdej kategorii (--c).
   ========================================================================== */

:root {
  --bg:        #FBF6EE;
  --bg-soft:   #F4ECDF;
  --surface:   #FFFFFF;
  --ink:       #1F2D33;
  --ink-2:     #33454C;
  --muted:     #5E6E73;
  --line:      #E9DFCF;
  --primary:   #1E5F66;
  --primary-2: #164A50;
  --primary-t: #E3EFEE;
  --accent:    #E2725B;
  --accent-2:  #C95A44;
  --sun:       #F2B84B;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 1px 2px rgba(31, 45, 51, .05), 0 8px 24px -12px rgba(31, 45, 51, .18);
  --shadow-lg: 0 2px 4px rgba(31, 45, 51, .05), 0 22px 48px -20px rgba(31, 45, 51, .30);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --c: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .8em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--sun); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }

/* ------------------------------ Nagłówek ------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* Rozmycie na pseudo-elemencie: backdrop-filter na samym nagłówku
   zamknąłby w nim menu mobilne (position: fixed). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 246, 238, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a {
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav > a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cats { display: none; }
.header-tools { display: flex; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--primary); }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-search { border-top: 1px solid var(--line); padding: 14px 0; background: var(--bg); }

/* ------------------------------ Wyszukiwarka ------------------------------ */
.search { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow); max-width: 560px; transition: border-color .2s; }
.search:focus-within { border-color: var(--primary); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 0; }
.search input::placeholder { color: #95A0A3; }
.search button { width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s; }
.search button:hover { background: var(--accent); }
.search--header { max-width: none; box-shadow: none; }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(242, 184, 75, .28), transparent 65%); }
.hero::after  { width: 460px; height: 460px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(30, 95, 102, .14), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero .lead { margin-bottom: 1.6em; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-chips a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.hero-chips a:hover { border-color: var(--accent); color: var(--accent-2); }

.hero-feature { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(.6deg); transition: transform .3s; }
.hero-feature:hover { transform: rotate(0); }
.hero-feature-cover .cover { aspect-ratio: 16 / 8; }
.hero-feature-body { padding: 22px 26px 26px; }
.hero-feature h2 { font-size: 1.45rem; margin: 10px 0 8px; }
.hero-feature h2 a { color: var(--ink); text-decoration: none; }
.hero-feature h2 a:hover { color: var(--c); }
.hero-feature p { color: var(--muted); font-size: .97rem; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* ------------------------------ Sekcje ------------------------------ */
.section { padding: 72px 0; }
.section--tight { padding: 24px 0 72px; }
.section--first { padding-top: 32px; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.section-lead { color: var(--muted); font-size: 1.05rem; }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ------------------------------ Karty kategorii ------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  --tint: color-mix(in srgb, var(--c) 12%, #fff);
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 24px; min-height: 230px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--tint); transition: transform .4s; z-index: 0;
}
.cat-card > * { position: relative; z-index: 1; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--ink); }
.cat-card:hover::after { transform: scale(1.35); }
.cat-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.cat-ico .ico { width: 26px; height: 26px; }
.cat-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.cat-short { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.cat-count { margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 700; color: var(--c); }
.cat-grid--small .cat-card { min-height: 0; padding: 18px; gap: 12px; flex-direction: row; align-items: flex-start; }
.cat-grid--small .cat-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.cat-grid--small .cat-ico .ico { width: 22px; height: 22px; }
.cat-grid--small .cat-name { font-size: 1.05rem; }
.cat-grid--small .cat-short { font-size: .86rem; }

.cat-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 80%, #000);
  font-size: .78rem; font-weight: 700; text-decoration: none; letter-spacing: .01em;
}
a.cat-tag:hover { background: var(--c); color: #fff; }

/* ------------------------------ Rola rodzica ------------------------------ */
.parent-band { background: var(--primary); color: #E6F0EF; position: relative; overflow: hidden; }
.parent-band::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -260px; bottom: -320px; background: radial-gradient(circle, rgba(242, 184, 75, .22), transparent 65%); }
.parent-band h2, .parent-band h3 { color: #fff; }
.parent-band strong { color: #fff; }
.parent-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; position: relative; }
.parent-intro p { color: #CFE1DF; }
.parent-demo { margin-top: 26px; }
.parent-demo .impact { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.parent-demo .im-label, .parent-demo .im-note { color: #CFE1DF; }
.parent-demo .im-value { color: var(--sun); }
.parent-demo .im-bar { background: rgba(255,255,255,.18); }
.parent-demo .im-bar.on { background: var(--sun); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 22px; }
.pillar p { color: #CFE1DF; font-size: .95rem; margin: 0; }
.pillar h3 { margin: 14px 0 6px; }
.pillar-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; }

/* ------------------------------ Miernik wpływu rodzica ------------------------------ */
.impact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; }
.im-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.im-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.im-value { font-size: .92rem; color: var(--accent-2); }
.im-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.im-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); }
.im-bar.on { background: var(--accent); }
.im-note { font-size: .86rem; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.impact--big { padding: 20px; margin: 0; }
.impact--big .im-bar { height: 10px; }

/* ------------------------------ Karty artykułów ------------------------------ */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.art-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.art-cover .cover { aspect-ratio: 16 / 9; }
.art-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.art-title { font-size: 1.2rem; margin: 12px 0 8px; }
.art-title a { color: var(--ink); text-decoration: none; }
.art-title a:hover { color: var(--c); }
.art-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.art-meta { margin: auto 0 0; font-size: .83rem; color: var(--muted); font-weight: 600; }
.dot { opacity: .5; padding: 0 2px; }

/* Okładka generowana z koloru kategorii */
.cover {
  position: relative; display: block; width: 100%; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, #FFF8EE), color-mix(in srgb, var(--c) 42%, #FFF8EE));
}
.cover-blob { position: absolute; border-radius: 50%; }
.cover-blob--1 { width: 60%; aspect-ratio: 1; right: -12%; top: -30%; background: color-mix(in srgb, var(--c) 55%, #fff); opacity: .55; }
.cover-blob--2 { width: 34%; aspect-ratio: 1; left: 8%; bottom: -16%; background: color-mix(in srgb, var(--sun) 70%, #fff); opacity: .55; }
.cover-ico { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--c) 85%, #000); }
.cover-ico .ico { width: 30%; height: auto; max-width: 96px; stroke-width: 1.3; transition: transform .4s; }
.art-card:hover .cover-ico .ico, .hero-feature:hover .cover-ico .ico { transform: scale(1.08) rotate(-4deg); }

/* ------------------------------ Strona kategorii ------------------------------ */
.cat-hero {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--bg)), var(--bg));
}
.cat-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; margin-top: 18px; }
.cat-hero-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 20px; box-shadow: 0 12px 24px -10px var(--c); }
.cat-hero-ico .ico { width: 32px; height: 32px; }
.parent-note { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); border-left: 5px solid var(--accent); }
.parent-note-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-2); margin-bottom: 8px; }
.parent-note p:last-child { margin: 0; color: var(--ink-2); }
.list-count { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); margin-bottom: 24px; }

.cat-list { display: grid; gap: 18px; }
.cat-row { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 10px 28px 10px 10px; }
.cat-row .cat-card { border: 0; background: color-mix(in srgb, var(--c) 7%, #fff); min-height: 200px; }
.cat-row-text p { color: var(--ink-2); }
.cat-row-parent { font-size: .95rem; padding-left: 14px; border-left: 3px solid var(--c); margin: 0; }

/* ------------------------------ Strony ogólne ------------------------------ */
.page-hero { padding: 28px 0 24px; }
.page-hero h1 { margin-top: 16px; }
.page-hero--center { text-align: center; padding-top: 56px; }
.page-hero--center .lead, .page-hero--center .search { margin-left: auto; margin-right: auto; }
.big-404 { font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: var(--accent); line-height: 1; margin: 0; }
.search--page { margin-top: 22px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: inherit; font-size: .88rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--c); }
.chip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.art-item { display: flex; }
.art-item > .art-card { flex: 1; }
.art-item[hidden] { display: none; }

/* ------------------------------ Artykuł ------------------------------ */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--c); z-index: 60; }
.article-hero { padding: 26px 0 36px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--bg)), var(--bg)); }
.article-hero .cat-tag { margin-top: 22px; }
.article-hero h1 { margin: 14px 0 16px; font-size: clamp(2rem, 4.4vw, 3rem); }
.article-lead { font-size: 1.22rem; color: var(--ink-2); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-layout { display: grid; grid-template-columns: 270px minmax(0, 720px); gap: 56px; justify-content: center; padding-bottom: 72px; }
.side-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc { padding: 4px 0 0 2px; }
.toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--c); border-left-color: var(--c); font-weight: 700; }

.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 1.9em 0 .55em; scroll-margin-top: 96px; color: var(--ink); }
.prose h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c); font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; color: var(--ink); font-style: italic; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }

.box { border-radius: var(--radius); padding: 22px 24px; margin: 1.8em 0; font-size: 1rem; }
.box > :last-child { margin-bottom: 0; }
.box-title { font-weight: 700; font-size: 1.02rem; margin-bottom: .5em; display: flex; gap: 10px; align-items: center; }
.box-rodzic { background: color-mix(in srgb, var(--accent) 10%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); }
.box-rodzic .box-title { color: var(--accent-2); }
.box-rodzic .box-title::before { content: ""; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.box-uwaga { background: #FFF6E2; border: 1px solid #F3DDA6; }
.box-uwaga .box-title { color: #94650F; }
.box-wazne { background: var(--primary-t); border: 1px solid #C8DEDC; }
.box-historia { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); padding: 24px 26px; font-size: 1.04rem; box-shadow: var(--shadow); }
.box-historia .box-title { color: color-mix(in srgb, var(--c) 80%, #000); font-family: var(--font-head); font-size: 1.15rem; }
.box-historia .box-title::before { content: "“"; font-family: var(--font-head); font-size: 2.6rem; line-height: .6; color: var(--c); margin-top: 10px; }
.box-historia p:last-child { font-size: .85rem; color: var(--muted); }
.box-wazne .box-title { color: var(--primary); }

.signals, .todo { border-radius: var(--radius); padding: 26px 28px; margin: 2.2em 0 0; }
.signals h2, .todo h2 { font-size: 1.35rem; display: flex; gap: 10px; align-items: center; }
.signals ul, .todo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.signals { background: #FFF1EE; border: 1px solid #F5CFC6; }
.signals h2 { color: #A8402E; }
.signals li { position: relative; padding-left: 22px; }
.signals li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.todo { background: var(--primary); color: #E6F0EF; }
.todo h2 { color: #fff; }
.todo li { display: flex; gap: 12px; align-items: flex-start; }
.todo li .ico { color: var(--sun); margin-top: .25em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tags a { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; }
.tags a:hover { background: var(--c); color: #fff; }
.disclaimer { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 28px 0 24px; }

.support-box { margin: 2.2em 0 0; padding: 26px 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 26%, #fff); }
.support-title { display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--accent-2); margin-bottom: 6px; }
.support-lead { color: var(--ink-2); margin-bottom: 14px; }
.support-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.support-box li { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.support-box li a { font-weight: 700; text-decoration: none; }
.support-box li span { font-size: .9rem; color: var(--muted); }

/* ------------------------------ Pomoc ------------------------------ */
.help-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.help-title { display: flex; gap: 10px; align-items: center; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; margin-bottom: 18px; color: var(--ink); }
.help-title .ico { color: var(--accent); width: 28px; height: 28px; }
.help-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.help-list li { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); }
.hl-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.hl-name { font-weight: 700; font-size: .9rem; line-height: 1.35; }
.hl-who { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.help-more { font-weight: 700; text-decoration: none; font-size: .95rem; }
.help-box--compact { padding: 22px; }
.help-box--compact .help-title { font-size: 1.15rem; }
.help-box--compact .help-list { grid-template-columns: 1fr 1fr; }
.help-box--compact .hl-num { font-size: 1.25rem; }

.places { display: grid; gap: 14px; margin-top: 28px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.place h2 { font-size: 1.25rem; margin-bottom: .4em; }
.place p { margin: 0; color: var(--ink-2); }
.place--alert { background: #FFF1EE; border-color: #F5CFC6; }
.place--alert h2 { color: #A8402E; }
.place a.ext { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.parents-help { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.parents-help .place { background: color-mix(in srgb, var(--accent) 7%, #fff); border-color: color-mix(in srgb, var(--accent) 22%, #fff); }
.support-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.support-band h2 { margin-bottom: .4em; }
.support-band p { color: var(--ink-2); }
.support-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.support-band li a { display: flex; flex-direction: column; padding: 14px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 9%, #fff); text-decoration: none; color: var(--ink); }
.support-band li a strong { color: var(--accent-2); }
.support-band li a span { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .support-band, .parents-help { grid-template-columns: 1fr; padding: 24px; } .parents-help { padding: 0; } }

/* ------------------------------ Stopka ------------------------------ */
.site-footer { background: #17262B; color: #B9C6C9; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #E4ECED; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand-name { color: #fff; }
.footer-title { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 14px; }
.footer-links, .footer-help { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-help a { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--sun); }
.footer-help span { display: block; font-size: .84rem; }
.footer-mail a { font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 60ch; }

/* ------------------------------ Responsywność ------------------------------ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .help-list { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .article-side { order: -1; margin-bottom: 28px; }
  .side-sticky { position: static; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); padding: 16px 20px 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a { font-size: 1.1rem; padding: 12px 14px; border-radius: 12px; }
  .nav-cats { display: grid; gap: 2px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-cats-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 14px; }
  .nav-cats a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
  .nav-cats a:hover { background: var(--bg-soft); }
  .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
  .header-tools { margin-left: auto; }
  body.nav-open { overflow: hidden; }

  .hero { padding: 40px 0 56px; }
  .hero-grid, .parent-grid, .cat-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-feature { transform: none; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; padding: 10px 10px 18px; gap: 10px; }
  .cat-row-text { padding: 0 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .nav { inset: 64px 0 0 0; }
  .logo-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { display: none; }
  .section { padding: 52px 0; }
  .cat-grid, .art-grid, .pillars { grid-template-columns: 1fr; }
  .cat-grid { gap: 12px; }
  .cat-card { min-height: 0; flex-direction: row; align-items: flex-start; padding: 18px; gap: 16px; }
  .cat-ico { width: 48px; height: 48px; flex: none; }
  .cat-count { padding-top: 4px; }
  .help-list, .help-box--compact .help-list { grid-template-columns: 1fr; }
  .help-box { padding: 20px; }
  .signals, .todo { padding: 22px 20px; }
  .prose { font-size: 1.03rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .search { padding-left: 18px; }
  .search button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
