/* ============================================================
   FIRMAPROSTO - Design System
   Kompendium własnej firmy | finanse/biznes
   Paleta: głęboka zieleń (pieniądze, zaufanie) + złoto (wartość)
   + kremowe tło. Typografia: Cormorant Garamond + Outfit.
   WCAG 2.1 AA: body 17px, kontrast min 4.5:1, focus-visible.
   ============================================================ */

/* --- CSS VARIABLES --- */
:root {
  /* Light - ciepły krem + zieleń + złoto */
  --bg: #f6f3ea;
  --bg-surface: #fdfbf5;
  --bg-card: #ffffff;
  --bg-sidebar: #f1ecdf;
  --text: #17241b;
  --text-secondary: #4d5c50;
  --text-muted: #5d6a5f;
  --accent: #166534;
  --accent-hover: #14532d;
  --accent-soft: #e3f2e4;
  --accent-soft-border: #c5e3c9;
  --gold: #8a6400;
  --gold-hover: #6f4e00;
  --gold-btn-text: #ffffff;
  --gold-soft: #f5ead1;
  --gold-soft-border: #e6d3a3;
  --border: #e2dccd;
  --border-light: #ece7da;
  --code-bg: #efeade;
  --header-bg: rgba(246, 243, 234, .88);
  --hero-bg: linear-gradient(135deg, #0e2a1a 0%, #14532d 55%, #1a5c33 100%);
  --hero-text: #fdfbf5;
  --hero-muted: #c9d6c9;
  --shadow-sm: 0 1px 2px rgba(23,36,27,.05);
  --shadow-md: 0 4px 20px rgba(23,36,27,.08);
  --shadow-lg: 0 14px 44px rgba(23,36,27,.14);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-full: 9999px;
  --nav-width: 310px;
  --header-height: 62px;
  --content-max: 780px;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120e;
    --bg-surface: #111a14;
    --bg-card: #151f18;
    --bg-sidebar: #0f1812;
    --text: #e7e9e3;
    --text-secondary: #a9b6ab;
    --text-muted: #8a988c;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-soft: #122a1d;
    --accent-soft-border: #1e4a31;
    --gold: #d9a441;
    --gold-hover: #e6b95c;
    --gold-btn-text: #1d1502;
    --gold-soft: #2a2110;
    --gold-soft-border: #4a3a17;
    --border: #243029;
    --border-light: #1b251e;
    --code-bg: #18221b;
    --header-bg: rgba(12, 18, 14, .9);
    --hero-bg: linear-gradient(135deg, #08130c 0%, #0f2b1c 55%, #123724 100%);
    --hero-text: #eef1ea;
    --hero-muted: #a7b5a8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,.35);
    --shadow-lg: 0 14px 44px rgba(0,0,0,.5);
  }
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  /* subtelne radialne poświaty w rogach */
  background-image:
    radial-gradient(ellipse 600px 400px at 92% -10%, rgba(214, 164, 65, .10), transparent 65%),
    radial-gradient(ellipse 700px 500px at -10% 108%, rgba(22, 101, 52, .08), transparent 65%);
  background-attachment: fixed;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  min-height: 100vh;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- HEADER --- */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height);
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft-border), transparent);
  opacity: .6; pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  color: var(--gold); font-size: 1.05rem; line-height: 1;
  text-shadow: 0 0 14px rgba(214,164,65,.45);
}
.brand-name {
  font-family: var(--font-heading); font-size: 1.32rem; font-weight: 700;
  letter-spacing: .01em; color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.brand-accent { color: var(--accent); }
@media (prefers-color-scheme: dark) { .brand-accent { color: var(--gold); } }

.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 40px;
  font-size: 1.15rem; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s;
}
.mobile-menu-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.mobile-menu-btn:active { transform: scale(.96); }

.header-search { position: relative; margin-left: auto; width: min(340px, 42vw); }
.search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 1.05rem; color: var(--text-muted); pointer-events: none;
}
#search-input {
  width: 100%; height: 40px; padding: 0 16px 0 38px;
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#search-input::placeholder { color: var(--text-muted); }
#search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(138,100,0,.14);
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 420px; overflow-y: auto; padding: 6px;
}
.search-results a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .92rem;
}
.search-results a:hover, .search-results a:focus-visible { background: var(--accent-soft); }
.search-results .sr-title { font-weight: 600; display: block; }
.search-results .sr-excerpt {
  display: block; color: var(--text-muted); font-size: .8rem; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-results .sr-empty { padding: 12px; color: var(--text-muted); font-size: .9rem; }

/* --- SIDEBAR --- */
.sidebar {
  position: fixed; top: var(--header-height); left: 0; bottom: 0; z-index: 90;
  width: var(--nav-width); padding: 18px 14px 40px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: thin;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); text-decoration: none;
  font-size: .9rem; line-height: 1.35; font-weight: 450;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.sidebar-nav a .nav-icon { font-size: .95rem; flex: 0 0 auto; opacity: .9; }
.sidebar-nav a:hover { background: var(--accent-soft); color: var(--text); transform: translateX(2px); }
.sidebar-nav a.active {
  background: var(--accent); color: #fff; font-weight: 600;
}
.sidebar-nav a.active .nav-icon { opacity: 1; }
.nav-section {
  margin: 18px 12px 6px; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.nav-section:first-child { margin-top: 4px; }
.nav-home { margin-bottom: 4px; }

/* --- MAIN LAYOUT --- */
.main-content {
  margin-left: var(--nav-width);
  padding: calc(var(--header-height) + 26px) 34px 60px;
  min-height: 100vh;
}
.page-wrap { max-width: var(--content-max); margin: 0 auto; }

/* --- PAGE TRANSITION --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-wrap > * { animation: fadeUp .28s var(--ease) both; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  background: var(--hero-bg);
  border-radius: var(--radius);
  padding: 54px 48px 40px;
  color: var(--hero-text);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 38px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 480px 260px at 88% 12%, rgba(217,164,65,.22), transparent 70%),
    radial-gradient(ellipse 380px 240px at 8% 96%, rgba(52,211,153,.16), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 14px);
}
.hero-eyebrow {
  position: relative; display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 {
  position: relative;
  font-family: var(--font-heading); font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.01em;
  max-width: 620px; margin-bottom: 16px;
  text-wrap: balance;
}
.hero p.lead {
  position: relative; font-size: 1.06rem; line-height: 1.6;
  color: var(--hero-muted); max-width: 560px; margin-bottom: 26px;
}
.hero-cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: var(--gold-btn-text); box-shadow: 0 6px 22px rgba(217,164,65,.35); }
.btn-gold:hover { background: var(--gold-hover); box-shadow: 0 10px 28px rgba(217,164,65,.45); }
.btn-ghost { background: transparent; color: var(--hero-text); border: 1px solid rgba(253,251,245,.35); }
.btn-ghost:hover { background: rgba(253,251,245,.1); border-color: rgba(253,251,245,.6); }

/* Stepper - signature element (realna sekwencja 5 kroków) */
.hero-steps {
  position: relative; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(253,251,245,.16);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.step { display: flex; flex-direction: column; gap: 5px; }
.step-num {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.step-label { font-size: .8rem; line-height: 1.35; color: var(--hero-muted); font-weight: 500; }

.home-section { margin-bottom: 40px; }
.home-section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.home-section-head h2 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: var(--text); letter-spacing: -.01em; text-wrap: balance;
}
.home-section-head .section-count {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.home-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px;
}
.home-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-decoration: none; color: var(--text);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  position: relative; overflow: hidden;
}
.home-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0; transition: opacity .22s var(--ease);
}
.home-card:hover, .home-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft-border);
}
.home-card:hover::before { opacity: 1; }
.home-card .card-icon { font-size: 1.35rem; line-height: 1; }
.home-card h3 { font-size: .95rem; font-weight: 650; line-height: 1.35; text-wrap: balance; }
.home-card p {
  font-size: .85rem; line-height: 1.5; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-card .card-arrow {
  margin-top: auto; align-self: flex-end;
  font-size: .9rem; color: var(--gold); opacity: 0; transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.home-card:hover .card-arrow { opacity: 1; transform: none; }

/* ============================================================
   ARTICLE
   ============================================================ */
.article-head { margin-bottom: 28px; }
.article-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.article-kicker .kicker-icon { font-size: .95rem; }
.article-head h1 {
  font-family: var(--font-heading); font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 12px; text-wrap: balance;
}
.article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted);
}
.article-meta .dot { opacity: .5; }
.article-lead {
  font-size: 1.08rem; line-height: 1.65; color: var(--text-secondary);
  border-left: 3px solid var(--gold-soft-border);
  padding-left: 18px; margin-bottom: 30px;
}

.content-article h2 {
  font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700;
  margin: 38px 0 14px; letter-spacing: -.01em; line-height: 1.2;
  scroll-margin-top: calc(var(--header-height) + 20px);
  text-wrap: balance;
}
.content-article h2::before {
  content: ''; display: inline-block; width: 22px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft-border));
  border-radius: 2px; margin: 0 12px 6px 0; vertical-align: middle;
}
.content-article h3 {
  font-family: var(--font-heading); font-size: 1.22rem; font-weight: 700;
  margin: 28px 0 10px; line-height: 1.25; scroll-margin-top: calc(var(--header-height) + 20px);
  text-wrap: balance;
}
.content-article p { margin-bottom: 16px; }
.content-article strong { font-weight: 650; }
.content-article a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-article a:hover { color: var(--gold); }
.content-article ul, .content-article ol { margin: 0 0 18px 24px; }
.content-article li { margin-bottom: 7px; }
.content-article li::marker { color: var(--gold); }

/* TOC */
.toc {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 30px;
}
.toc-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.toc ol { list-style: none; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 6px; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
  display: inline-flex; gap: 9px; align-items: baseline;
  color: var(--text-secondary); text-decoration: none; font-size: .92rem;
  transition: color .15s var(--ease), transform .15s var(--ease);
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-heading); font-weight: 700; color: var(--gold); font-size: .85rem; }
.toc a:hover { color: var(--accent); transform: translateX(2px); }

/* Tabele */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: var(--radius); border: 1px solid var(--border); }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.cmp-table th {
  background: var(--accent-soft); color: var(--text); text-align: left;
  font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cmp-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; line-height: 1.5; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:hover td { background: var(--bg-surface); }
.cmp-table .yes { color: var(--accent); font-weight: 600; }
.cmp-table .no { color: #b3261e; font-weight: 600; }
@media (prefers-color-scheme: dark) { .cmp-table .no { color: #f08a80; } }

/* Info box */
.info-box {
  background: var(--gold-soft); border: 1px solid var(--gold-soft-border);
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px;
  font-size: .95rem; line-height: 1.6;
}
.info-box .info-title { display: block; font-weight: 700; color: var(--gold); margin-bottom: 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.info-box-green { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.info-box-green .info-title { color: var(--accent); }

/* FAQ */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px; background: var(--bg-card);
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item h3::before { content: 'Q: '; color: var(--gold); font-weight: 700; }
.faq-item p:last-child { margin-bottom: 0; }

/* Słownik */
.glossary { margin: 0 0 20px; }
.glossary dt {
  font-weight: 650; color: var(--text); margin-top: 16px; font-size: 1rem;
}
.glossary dt::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); margin: 0 10px 2px 0; }
.glossary dd { margin: 4px 0 0 18px; color: var(--text-secondary); font-size: .95rem; line-height: 1.6; }

/* Checklista */
.checklist { list-style: none; margin: 0 0 20px; }
.checklist li {
  position: relative; padding: 9px 12px 9px 44px; margin-bottom: 6px;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: .95rem;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 14px; top: 8px;
  color: var(--accent); font-weight: 700; font-size: 1rem;
}
.checklist li strong { font-weight: 650; }

/* Blockquote */
.content-article blockquote {
  border-left: 3px solid var(--gold); background: var(--bg-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 0 0 20px; color: var(--text-secondary);
  font-style: italic;
}

/* Nawigacja po artykule */
.article-nav {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1; max-width: 46%;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 16px;
  text-decoration: none; color: var(--text); font-size: .88rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.article-nav a:hover { transform: translateY(-2px); border-color: var(--gold-soft-border); box-shadow: var(--shadow-md); }
.article-nav .nav-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.article-nav .nav-title { font-weight: 600; line-height: 1.35; }
.article-nav a.next { text-align: right; }

/* --- FOOTER --- */
.app-footer {
  margin-left: var(--nav-width);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 34px 34px 40px;
}
.footer-inner { max-width: var(--content-max); margin: 0 auto; }
.footer-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.footer-note { font-size: .8rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 8px; }
.footer-copy { font-size: .78rem; color: var(--text-muted); }

/* --- NOT FOUND --- */
.notfound { text-align: center; padding: 70px 20px; }
.notfound h1 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 12px; }
.notfound p { color: var(--text-muted); margin-bottom: 22px; }

/* --- SCROLLBAR (webkit) --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-track { background: transparent; }

/* --- FOCUS --- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s var(--ease);
    width: min(320px, 86vw);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .sidebar-overlay {
    position: fixed; inset: var(--header-height) 0 0 0; z-index: 85;
    background: rgba(10, 14, 11, .55); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease);
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; padding: calc(var(--header-height) + 20px) 18px 50px; }
  .app-footer { margin-left: 0; padding: 28px 18px 34px; }
  .mobile-menu-btn { display: inline-flex; }
  .hero { padding: 40px 26px 32px; }
  .hero-steps { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .step-label { font-size: .72rem; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .app-header { padding: 0 12px; gap: 10px; }
  .brand-name { font-size: 1.18rem; }
  .header-search { width: 100%; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; display: none; }
  .header-search.open { display: block; }
  .hero { padding: 34px 20px 28px; border-radius: var(--radius-sm); }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: .98rem; }
  .hero-steps { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .home-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .content-article h2 { font-size: 1.4rem; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
