/* Blisko – wygląd strony. Kolory zmienicie tutaj, na górze pliku. */
:root {
  --ink: #3A2E3F;        /* główny kolor tekstu */
  --muted: #6B5B66;      /* tekst pomocniczy */
  --cream: #FFF8F0;      /* tło strony */
  --white: #FFFFFF;
  --line: #F0E2D6;
  --line-strong: #E3D6CC;
  --plum: #5B3F8C;       /* przyciski */
  --plum-dark: #3F2A66;
  --terra: #B84A3A;      /* akcent w tekście */
  --coral: #E07A5F;      /* ozdobniki */
  --peach: #FFE1CC;
  --lavender: #E8E0F5;
  --sage: #DCEBD8;
  --butter: #FFF0B8;
  --rose: #FADADD;
  --sun: #FFD966;
  --chip: #FFF0E6;
  --shadow: 0 8px 24px rgba(91, 63, 140, 0.08);
  --font: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: var(--plum); }
a:hover { color: var(--plum-dark); }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-title { font-size: clamp(34px, 5vw, 46px); }
.section-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.section-head.center { align-items: center; text-align: center; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: none; font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(3px); }
.btn--plum { background: var(--plum); color: var(--white); box-shadow: 0 6px 0 var(--plum-dark); }
.btn--plum:hover { color: var(--white); background: #674A9C; }
.btn--white { background: var(--white); color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.btn--white:hover { color: var(--ink); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 #D9B23F; }
.btn--sun:hover { color: var(--ink); }
.btn--soft { background: var(--chip); color: var(--ink); box-shadow: 0 6px 0 var(--line); }
.btn--ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line-strong); }
.btn--link { background: none; color: var(--plum); padding-left: 6px; padding-right: 6px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Nawigacja ---------- */
.site-header { padding: 20px 24px 0; }
.nav { max-width: 1200px; margin: 0 auto; padding: 10px 12px 10px 20px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 26px; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; }
.nav-links a { padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 999px; }
.nav-links a:hover { background: var(--chip); color: var(--ink); }
.nav-links a.nav-help { background: var(--plum); color: var(--white); padding: 12px 20px; }
.nav-links a.nav-help:hover { background: #674A9C; }
@media (max-width: 900px) {
  .nav { border-radius: 28px; }
  .nav-links a { padding: 10px 12px; }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge { align-self: flex-start; padding: 8px 16px; background: var(--butter); border-radius: 999px; font-size: 15px; font-weight: 800; }
.hero h1 { font-size: clamp(40px, 6.5vw, 64px); line-height: 1.08; }
.squiggle { position: relative; display: inline-block; color: var(--terra); }
.squiggle svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 14px; }
.hero-lead { font-size: 20px; line-height: 1.65; color: var(--muted); max-width: 580px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; }

/* ---------- 3 kafelki ---------- */
.steps-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; padding-bottom: 88px; }
.strip-card { display: flex; gap: 18px; align-items: center; padding: 24px; background: var(--white); border-radius: 28px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.strip-card:hover { color: var(--ink); transform: translateY(-3px); }
.strip-num { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; }
.strip-card strong { display: block; font-size: 21px; font-weight: 800; }
.strip-card span span { color: var(--muted); font-size: 16px; }

.bg-peach { background: var(--peach); }
.bg-lavender { background: var(--lavender); }
.bg-sage { background: var(--sage); }
.bg-butter { background: var(--butter); }
.bg-rose { background: var(--rose); }
.bg-white { background: var(--white); }

/* ---------- Artykuły ---------- */
.articles { background: var(--white); border-radius: 48px 48px 0 0; }
.articles-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.articles-head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: none; background: var(--chip); color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--plum); color: var(--white); }
.featured { display: flex; flex-wrap: wrap; text-decoration: none; color: var(--ink); border-radius: 36px; overflow: hidden; margin-bottom: 24px; }
.featured:hover { color: var(--ink); }
.featured-img { flex: 1 1 420px; min-height: 300px; padding: 24px; display: flex; }
.featured-img > div { flex: 1; border-radius: 28px; background: rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured-img svg { width: 100%; height: auto; }
.featured-body { flex: 999 1 420px; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pill { align-self: flex-start; padding: 6px 14px; background: var(--white); border-radius: 999px; font-size: 13px; font-weight: 800; }
.featured h3 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
.featured p { font-size: 18px; line-height: 1.6; }
.featured .meta { font-size: 15px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--cream); border-radius: 28px; padding: 14px; transition: transform .15s; }
a.card:hover { color: var(--ink); transform: translateY(-3px); }
.card-img { height: 150px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.card-body { padding: 18px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.card-cat { font-size: 13px; font-weight: 800; color: var(--terra); }
.card h3 { font-size: 23px; line-height: 1.25; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.card .meta { font-size: 14px; color: var(--muted); font-weight: 600; }
.soon { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 800; color: var(--muted); }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Fakty i mity ---------- */
.myth { text-align: left; min-height: 260px; padding: 28px; border-radius: 32px; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 14px; transition: transform .15s; }
.myth:hover { transform: translateY(-3px); }
.myth .tag { align-self: flex-start; padding: 6px 14px; background: var(--white); border-radius: 999px; font-size: 13px; font-weight: 800; }
.myth .text { font-size: 23px; font-weight: 800; line-height: 1.3; }
.myth .turn { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--plum); }
.myth .fact-side { display: none; }
.myth[aria-expanded="true"] { background: var(--white); box-shadow: var(--shadow); }
.myth[aria-expanded="true"] .myth-side { display: none; }
.myth[aria-expanded="true"] .fact-side { display: flex; flex-direction: column; gap: 14px; }
.myth .fact-side .tag { background: var(--plum); color: var(--white); }
.myth .fact-side .fact { font-size: 18px; line-height: 1.55; font-weight: 600; }
.myth-side { display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* ---------- Ankieta ---------- */
.survey-section { background: var(--lavender); }
.survey-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.survey-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.survey-intro p { font-size: 19px; line-height: 1.65; color: #4F4257; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 700; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; }
.survey-card { flex: 999 1 520px; min-width: 0; background: var(--white); border-radius: 36px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 12px 32px rgba(91, 63, 140, .12); }
.dots { display: flex; gap: 8px; margin-bottom: 18px; }
.dots span { flex: 1; height: 10px; border-radius: 99px; background: var(--line); transition: background .2s; }
.dots span.done { background: var(--plum); }
.dots span.current { background: #B9A3E3; }
.q-count { font-size: 14px; font-weight: 800; color: var(--muted); display: block; margin-bottom: 10px; }
.survey fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.survey legend { font-size: clamp(24px, 3.5vw, 30px); font-weight: 800; line-height: 1.2; padding: 0; margin-bottom: 22px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: flex; align-items: center; min-height: 60px; padding: 16px 22px; border: 2px solid var(--line); border-radius: 20px; background: var(--cream); font-weight: 700; font-size: 17px; cursor: pointer; transition: border-color .15s, background .15s; }
.option span:hover { border-color: #B9A3E3; }
.option input:checked + span { border-color: var(--plum); background: var(--lavender); }
.option input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.survey textarea { width: 100%; min-height: 130px; padding: 16px 18px; border-radius: 20px; border: 2px solid var(--line-strong); font-size: 17px; resize: vertical; }
.hint { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.survey-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.error { color: #A3271B; font-weight: 700; margin-bottom: 16px; }
/* Gdy działa JavaScript – po jednym pytaniu */
.js .survey fieldset { display: none; margin: 0 0 24px; }
.js .survey fieldset.is-active { display: block; }
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js .no-js-only { display: none !important; }
.js .js-only[hidden] { display: none !important; }

/* ---------- Tablica ---------- */
.board { background: var(--peach); border-radius: 48px; margin: 0 16px; }
.board .section-lead { color: #5E4A50; max-width: 640px; }
.wall-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--white); padding: 20px; border-radius: 28px; margin-bottom: 32px; }
.field { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 800; font-size: 15px; padding-left: 6px; }
.field input { padding: 14px 18px; min-height: 52px; border-radius: 999px; border: 2px solid var(--line-strong); font-size: 16px; width: 100%; background: var(--white); }
.wall-form .btn { flex: 1 1 140px; }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.note { position: relative; border-radius: 6px 6px 24px 6px; padding: 30px 22px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; box-shadow: 0 8px 18px rgba(58, 46, 63, .10); }
.note::before { content: ""; position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--coral); }
.note:nth-child(4n+1) { transform: rotate(-2deg); }
.note:nth-child(4n+2) { transform: rotate(1.5deg); }
.note:nth-child(4n+3) { transform: rotate(-1deg); }
.note:nth-child(4n+4) { transform: rotate(2deg); }
.note p { font-size: 20px; font-weight: 700; line-height: 1.4; }
.note span { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Wyzwanie ---------- */
.challenge { display: flex; flex-wrap: wrap; gap: 48px; }
.challenge-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.challenge-intro > p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.score { background: var(--sage); border-radius: 32px; padding: 28px; display: flex; align-items: center; gap: 20px; }
.score-num { flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.score-msg { font-size: 17px; font-weight: 700; line-height: 1.5; }
.segs { display: flex; gap: 6px; }
.segs span { flex: 1; height: 12px; border-radius: 99px; background: var(--line); transition: background .2s; }
.segs span.on { background: var(--plum); }
.trophy { background: var(--plum); color: var(--white); border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.trophy strong { font-size: 24px; }
.trophy span { font-size: 16px; line-height: 1.55; color: var(--lavender); }
.trophy .btn { min-height: 48px; font-size: 16px; }
.steps { flex: 999 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; min-height: 64px; background: var(--white); border: 2px solid transparent; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 14px rgba(91, 63, 140, .06); transition: background .15s; }
.step input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.step-dot { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--peach); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.step-text { flex: 1; font-size: 17px; font-weight: 600; }
.step-tag { display: none; flex: none; padding: 6px 12px; border-radius: 999px; background: var(--sun); font-size: 13px; font-weight: 800; }
.step.is-drawn { border-color: var(--sun); }
.step.is-drawn .step-tag { display: inline-block; }
.step:has(input:checked) { background: var(--sage); }
.step:has(input:checked) .step-dot { background: var(--plum); color: var(--white); }
.step:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
@media (max-width: 600px) { .step { border-radius: 28px; } }

/* ---------- Pomoc ---------- */
.help { background: var(--white); border-radius: 48px; padding: 56px clamp(20px, 4vw, 40px); box-shadow: 0 12px 32px rgba(91, 63, 140, .08); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.help-card { border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.help-card .num { white-space: nowrap; font-size: 32px; font-weight: 800; color: var(--ink); text-decoration: none; }
.help-card .name { font-weight: 800; font-size: 17px; }
.help-card .desc { font-size: 15px; line-height: 1.5; }
.help-card--dark { background: var(--plum); color: var(--white); }
.help-card--dark .num { color: var(--white); }
.help-card--dark .desc { color: var(--lavender); }

/* ---------- Stopka ---------- */
.site-footer { padding: 32px 24px 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--muted); font-weight: 600; }
.site-footer strong { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ---------- Artykuł ---------- */
.article { max-width: 780px; margin: 0 auto; padding: 64px 24px 48px; display: flex; flex-direction: column; gap: 32px; }
.article-head { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.article-head h1 { font-size: clamp(36px, 6vw, 54px); line-height: 1.1; }
.article-lead { font-size: 21px; line-height: 1.6; color: var(--muted); }
.article-meta { font-size: 15px; color: var(--muted); font-weight: 700; }
.article-art { border-radius: 36px; background: var(--peach); overflow: hidden; }
.article-art svg { display: block; width: 100%; height: auto; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.8; }
.prose h2 { font-size: clamp(26px, 4vw, 32px); line-height: 1.25; margin-top: 12px; }
.prose blockquote { margin: 8px 0; padding: 32px 36px; background: var(--lavender); border-radius: 32px; font-size: 25px; line-height: 1.4; font-weight: 700; }
.prose blockquote svg { display: block; margin-bottom: 12px; }
.tip-box { background: var(--sage); border-radius: 32px; padding: 28px 32px; }
.tip-box h3 { font-size: 22px; margin-bottom: 10px; }
.tip-box ul { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; font-weight: 600; }
.tip-box li + li { margin-top: 6px; }
.feedback { background: var(--white); border-radius: 28px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.feedback > span { font-weight: 800; font-size: 17px; }
.feedback .btn { min-height: 48px; font-size: 16px; padding: 12px 22px; }
.feedback .btn[aria-pressed="true"] { border-color: var(--plum); background: var(--sage); }
.feedback .thanks { width: 100%; font-size: 16px; color: var(--muted); }
.cta-box { background: var(--plum); color: var(--white); border-radius: 36px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-box div { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cta-box strong { font-size: 26px; }
.cta-box span { font-size: 17px; color: var(--lavender); }

/* ---------- Podziękowanie ---------- */
.thanks-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.thanks-card { max-width: 560px; background: var(--white); border-radius: 36px; padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.thanks-card h1 { font-size: 34px; }
.thanks-card p { font-size: 18px; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .board { margin: 0 8px; border-radius: 36px; }
  .featured-body { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
