/* =========================================================================
   kalkulator-mamie.pl — wspólny arkusz stylów (design system)
   Mobile-first. Jednostki viewport (vw/vh/svh), rem, %.
   Paleta: eukaliptusowa zieleń + ciepły róż (blush) + espresso.
   Typografia: Bricolage Grotesque (nagłówki) · Fraunces (liczby) · Inter (treść)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* kolory */
  --bg:          #F7F4EF;   /* ciepła biel / papier */
  --surface:     #FFFFFF;
  --surface-2:   #FBEEE9;   /* delikatny róż */
  --surface-3:   #E9F0EB;   /* delikatna zieleń */
  --ink:         #2E2A28;   /* espresso – tekst */
  --ink-soft:    #514B47;
  --muted:       #857C75;   /* tekst drugorzędny */
  --line:        #E7DFD5;   /* obramowania */

  --sage:        #4E7C68;   /* główny – przyciski, akcje, struktura */
  --sage-deep:   #3A6150;
  --sage-700:    #2E4F41;
  --sage-soft:   #E3EEE7;

  --blush:       #E08A86;   /* AKCENT – jedyny mocny ton */
  --blush-deep:  #C96A66;
  --blush-soft:  #FBE7E4;

  --ok:          #4E7C68;
  --warn-bg:     #FBEFE2;
  --warn-line:   #E8C28C;
  --warn-ink:    #8A5A1E;

  /* typografia */
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-num:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 3.4rem);

  /* przestrzeń / kształt */
  --wrap: 72rem;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --gap: clamp(1rem, 0.6rem + 2vw, 1.6rem);
  --section-y: clamp(2.6rem, 1.5rem + 5vw, 5rem);
  --shadow-sm: 0 1px 2px rgba(46,42,40,.05), 0 2px 8px rgba(46,42,40,.04);
  --shadow:    0 8px 30px rgba(46,42,40,.08);
  --shadow-lg: 0 18px 50px rgba(46,42,40,.12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(60vw 40vw at 90% -5%, var(--surface-2) 0%, transparent 60%),
    radial-gradient(50vw 40vw at 0% 0%, var(--surface-3) 0%, transparent 55%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blush-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 650;
}
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .08em; color: var(--sage-deep); }
p { margin: 0 0 1rem; }
strong { font-weight: 650; }

.wrap { width: min(100% - 2 * clamp(1rem, 4vw, 2.5rem), var(--wrap)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-head);
  font-size: var(--step--1);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blush-deep);
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blush); border-radius: 2px; }
.lead { font-size: var(--step-1); color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* skip-link (dostępność) */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; border-radius: 6px; }

/* =========================================================================
   HEADER — czysty HTML + CSS (bez JS). Menu mobilne na checkboxie.
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,239,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 1px; white-space: nowrap;
}
.logo span { color: var(--sage); }
.logo .dot { color: var(--blush); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.3rem;
}
.nav-burger:active { transform: scale(.97); }

.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--ink-soft); text-decoration: none; padding: .5rem .7rem; border-radius: 10px; white-space: nowrap;
}
.main-nav a:hover { color: var(--sage-deep); background: var(--sage-soft); }
.main-nav a[aria-current="page"] { color: var(--sage-deep); background: var(--sage-soft); }
.main-nav .nav-cta {
  background: var(--sage); color: #fff; margin-left: .3rem;
}
.main-nav .nav-cta:hover { background: var(--sage-deep); color: #fff; }

@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .main-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .6rem clamp(1rem, 4vw, 2.5rem) 1rem;
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .28s;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 80svh; opacity: 1; visibility: visible; }
  .main-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
}
@media (min-width: 861px) { .nav-burger { display: none; } }

/* =========================================================================
   HERO + KALKULATOR (pierwszy ekran)
   ========================================================================= */
.hero {
  padding: clamp(1.6rem, 1rem + 3vw, 3rem) 0 var(--section-y);
}
.hero-grid { display: grid; gap: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.hero-copy { max-width: 40rem; }
.hero h1 { margin-bottom: .4rem; }
.hero h1 em { font-family: var(--font-num); font-style: italic; font-weight: 500; color: var(--sage-deep); }
.hero .lead { margin-bottom: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.1rem; }
.trust-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: .4rem .75rem; border-radius: 999px;
}
.trust-pill svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

/* karta kalkulatora */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, .8rem + 2vw, 2rem);
  scroll-margin-top: 5rem;
}
.calc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.calc-head .badge {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-deep);
}
.calc-head .badge svg { width: 22px; height: 22px; }
.calc-head h2 { font-size: var(--step-1); margin: 0; }
.calc-head p { margin: 0; font-size: var(--step--1); color: var(--muted); }

.field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); }
.field input, .field select {
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem .85rem; width: 100%; min-height: 52px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus {
  border-color: var(--sage); background: #fff; box-shadow: 0 0 0 4px var(--sage-soft); outline: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234E7C68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.6rem;
}
.field input[aria-invalid="true"] { border-color: var(--blush-deep); box-shadow: 0 0 0 4px var(--blush-soft); }
.field-error { color: var(--blush-deep); font-size: .8rem; font-weight: 500; min-height: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: .85rem 1.4rem; min-height: 52px; cursor: pointer; text-decoration: none;
  transition: transform .08s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--sage-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--sage-soft); color: var(--sage-deep); border-color: var(--sage-soft); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.btn-row .btn { flex: 1 1 auto; }

/* =========================================================================
   WYNIKI
   ========================================================================= */
.results { margin-top: 1.4rem; border-top: 1px dashed var(--line); padding-top: 1.4rem; }
.results[hidden] { display: none; }

.result-hero {
  display: grid; gap: 1rem; align-items: center;
  background: linear-gradient(135deg, var(--sage-soft), #fff 70%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1rem, .7rem + 2vw, 1.6rem);
}
@media (min-width: 620px) { .result-hero { grid-template-columns: auto 1fr; } }
.result-week { text-align: center; min-width: 9.5rem; }
.result-week .num {
  font-family: var(--font-num); font-weight: 600; font-size: clamp(2.6rem, 1.8rem + 4vw, 4rem);
  line-height: .95; color: var(--sage-700); font-variant-numeric: tabular-nums;
}
.result-week .num small { font-size: .42em; font-weight: 600; color: var(--sage); display: block; margin-top: .25rem; font-family: var(--font-head); letter-spacing: -.01em; }
.result-week .cap { font-family: var(--font-head); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.result-lead h3 { margin: 0 0 .2rem; font-size: var(--step-1); }
.result-lead p { margin: 0; color: var(--ink-soft); }

/* tor postępu — element sygnaturowy */
.progress { margin: 1.3rem 0 .2rem; }
.progress-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .45rem; font-family: var(--font-head); }
.progress-track {
  position: relative; height: 30px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--line); display: grid; grid-template-columns: 13fr 13fr 14fr; overflow: hidden;
}
.progress-track .seg { border-right: 1px dashed rgba(46,42,40,.16); display: grid; place-items: center; }
.progress-track .seg:last-child { border-right: 0; }
.progress-track .seg span { font-family: var(--font-head); font-size: .68rem; font-weight: 600; color: var(--sage-700); opacity: .7; letter-spacing: .04em; }
.progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--blush-soft), var(--blush));
  transition: width .8s cubic-bezier(.22,1,.36,1);
  border-radius: 999px 0 0 999px;
}
.progress-marker {
  position: absolute; top: 50%; left: 0%; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blush-deep); transform: translate(-50%, -50%);
  display: grid; place-items: center; transition: left .8s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 2px 8px rgba(201,106,102,.4); z-index: 2;
}
.progress-marker svg { width: 14px; height: 14px; color: var(--blush-deep); }

/* siatka faktów */
.fact-grid { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); margin: 1.3rem 0; }
@media (min-width: 720px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem .9rem;
}
.fact .k { font-size: .76rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; }
.fact .v { font-family: var(--font-num); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.fact .v small { font-family: var(--font-head); font-size: .62rem; color: var(--muted); display: block; font-weight: 500; }

/* karta wielkości dziecka */
.baby-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface-2); border: 1px solid var(--blush-soft); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin: 1.1rem 0;
}
.baby-emoji { font-size: 2.6rem; line-height: 1; flex: none; }
.baby-card .t { font-family: var(--font-head); font-weight: 600; color: var(--blush-deep); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.baby-card .d { margin: .1rem 0 .15rem; font-size: 1.05rem; }
.baby-card .d b { font-family: var(--font-num); }
.baby-card .m { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* bloki "co dalej" */
.next-block { display: grid; gap: .8rem; margin: 1.1rem 0; }
@media (min-width: 720px) { .next-block { grid-template-columns: 1fr 1fr; } }
.next-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
}
.next-item h4 { font-size: .95rem; margin: 0 0 .25rem; color: var(--sage-deep); }
.next-item p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.next-item.tip { border-left-color: var(--blush); }
.next-item.tip h4 { color: var(--blush-deep); }

/* disclaimer medyczny */
.med-note {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  padding: .85rem 1rem; margin: 1.1rem 0 0; font-size: .88rem; color: var(--warn-ink);
}
.med-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.med-note p { margin: 0; }

/* udostępnianie */
.share { margin-top: 1.2rem; }
.share .label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-soft);
  padding: .6rem .9rem; border-radius: 999px; text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
.share-btn:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-soft); }
.share-btn svg { width: 17px; height: 17px; }
.copied-msg { font-size: .82rem; color: var(--sage-deep); font-weight: 600; margin-top: .5rem; }
.copied-msg[hidden] { display: none; }

/* =========================================================================
   SEKCJE / SIATKI
   ========================================================================= */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.section-head.center { margin-inline: auto; }

/* lista narzędzi */
.tools-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 560px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .tools-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.tool-card {
  display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage-soft); }
.tool-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .3rem;
  background: var(--sage-soft); color: var(--sage-deep);
}
.tool-card:nth-child(even) .tool-ic { background: var(--blush-soft); color: var(--blush-deep); }
.tool-ic svg { width: 23px; height: 23px; }
.tool-card h3 { font-size: 1.1rem; margin: 0; }
.tool-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.tool-card .go { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--sage-deep); display: inline-flex; align-items: center; gap: .3rem; padding-top: .5rem; }
.tool-card:hover .go { color: var(--blush-deep); }

/* kroki */
.steps { display: grid; gap: var(--gap); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.2rem 1.2rem;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-num); font-weight: 600; font-size: 1.3rem; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; background: var(--sage);
  display: grid; place-items: center; margin-bottom: .8rem;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* tekst SEO / proza */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.3rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose .card-soft { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1.2rem 0; }

/* zastosowania */
.use-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 720px) { .use-grid { grid-template-columns: 1fr 1fr; } }
.use {
  display: flex; gap: .85rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.use .ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--sage-deep); }
.use .ic svg { width: 21px; height: 21px; }
.use h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.use p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* FAQ — <details>, bez JS */
.faq-list { max-width: 48rem; display: grid; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.02rem; margin: 0; font-weight: 600; }
.faq-item summary .chev { flex: none; width: 22px; height: 22px; color: var(--sage); transition: transform .2s; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .ans { padding: 0 1.1rem 1.1rem; color: var(--ink-soft); font-size: .95rem; }
.faq-item .ans p { margin: 0 0 .6rem; }
.faq-item .ans p:last-child { margin: 0; }

/* opinie */
.reviews { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.review .stars { color: var(--blush); letter-spacing: 2px; font-size: 1rem; margin-bottom: .5rem; }
.review p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .8rem; }
.review .who { display: flex; align-items: center; gap: .6rem; }
.review .av { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; }
.review .who b { font-size: .9rem; }
.review .who span { font-size: .8rem; color: var(--muted); display: block; }

/* powiązane narzędzia (kompakt) */
.related-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .related-grid { grid-template-columns: 1fr 1fr 1fr; } }
.related-grid a {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.related-grid a:hover { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-deep); }
.related-grid svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* CTA pasek */
.cta-band {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 1rem + 3vw, 2.8rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 38rem; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--sage-700); margin-top: 1rem; }
.cta-band .btn-primary:hover { background: var(--blush-soft); color: var(--sage-700); }

/* =========================================================================
   MIEJSCA NA REKLAMY (AdSense) — zarezerwowane, bez CLS
   ========================================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin: var(--gap) auto; color: var(--muted);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(133,124,117,.05) 10px, rgba(133,124,117,.05) 20px);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.ad-top    { min-height: 90px; max-width: 728px; }
.ad-inline { min-height: 250px; max-width: 728px; }
.ad-foot   { min-height: 90px; max-width: 728px; }

/* =========================================================================
   FOOTER — czysty HTML + CSS
   ========================================================================= */
.site-footer { background: var(--ink); color: #cfc9c4; margin-top: var(--section-y); }
.footer-grid {
  display: grid; gap: clamp(1.4rem, 1rem + 2vw, 2.4rem); padding: clamp(2.4rem, 1.5rem + 3vw, 3.6rem) 0 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid h2 { color: #fff; font-size: 1.2rem; }
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid p { font-size: .9rem; color: rgba(255,255,255,.6); max-width: 26rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-grid nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer-grid nav a:hover { color: var(--blush); }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -.02em; }
.footer-logo span { color: var(--blush); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-disclaimer { font-size: .8rem; color: rgba(255,255,255,.5); padding-bottom: 1.6rem; max-width: 60rem; }

/* slot na linki partnerskie / friendly links */
.footer-partners { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 .4rem; }
.footer-partners h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .7rem; }
.partner-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.partner-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .9rem; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.partner-links a:hover { color: #fff; border-color: var(--blush); }

/* pasek cookies (statyczny) */
.cookie-note {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(100% - 2rem, 40rem); z-index: 120;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; gap: .8rem 1rem; align-items: center; flex-wrap: wrap; font-size: .86rem;
}
.cookie-note p { margin: 0; flex: 1 1 16rem; color: rgba(255,255,255,.85); }
.cookie-note a { color: var(--blush); }
.cookie-note .btn { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.cookie-note input { position: absolute; opacity: 0; pointer-events: none; }
#cookie-ok:checked ~ .cookie-note { display: none; }

/* =========================================================================
   BREADCRUMB (dla podstron)
   ========================================================================= */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb a { color: var(--sage-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--line); }

/* =========================================================================
   404
   ========================================================================= */
.error-404 { text-align: center; padding: clamp(3rem, 2rem + 6vw, 6rem) 0; }
.error-404 .code { font-family: var(--font-num); font-weight: 600; font-size: clamp(4rem, 2rem + 14vw, 9rem); color: var(--sage); line-height: .9; }
.error-404 h1 { margin: .5rem 0; }
.error-404 p { max-width: 32rem; margin: 0 auto 1.6rem; color: var(--ink-soft); }

/* =========================================================================
   Drobiazgi / dostępność / ruch
   ========================================================================= */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
hr.divider { width: 100%; }

/* =========================================================================
   Historia obliczeń (lokalna)
   ========================================================================= */
.history-section { padding-top: 0; }
.history-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.history-head h2 { font-size: var(--step-1); margin: 0; }
.history-clear { font-family: var(--font-head); font-weight: 500; font-size: .82rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.history-clear:hover { color: var(--blush-deep); border-color: var(--blush-soft); }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.history-item { display: flex; align-items: center; gap: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .8rem; }
.history-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-deep); }
.history-ic svg { width: 18px; height: 18px; }
.history-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.history-body b { font-size: .92rem; line-height: 1.2; }
.history-sum { font-size: .85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-body time { font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.history-open { flex: none; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--sage-deep); text-decoration: none; white-space: nowrap; }
.history-open:hover { color: var(--blush-deep); }
.history-note { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
