/* ============================================================
   MALWA — marka odziezowa, Lodz. PL + EN.
   Model sklepu: WCHODZISZ PRZEZ STYLIZACJE, NIE PRZEZ KATEGORIE.
   Karta zestawu sklada sie z trzech zdjec produktowych, a w srodku
   kazdy element mozna podmienic na inny z tej samej polki.

   Do tego asystent rozmiaru: podajesz wymiary RAZ, a przy kazdej
   sztuce widzisz, ktory rozmiar polecamy i jak leci.

   Uklad jest celowo JASNY — poprzednie dema mialy ciezkie ciemne
   sekcje, a te zdjecia potrzebuja powietrza. Ciemny jest tylko
   naglowek i stopka.

   Kontrast: --c-mallow-soft to WYPELNIENIA. Do tekstu na jasnym
   idzie --c-mallow (7,3:1), na ciemnym --c-mallow-lt (8,5:1).
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --c-bg: #faf8f5;         /* cieply papier */
  --c-surface: #ffffff;
  --c-shade: #f2eee8;      /* delikatne pole sekcji */
  --c-line: #e8e3dc;
  --c-ink: #2a2420;        /* naglowek i stopka */
  --c-line-dark: #433a34;

  --c-mallow: #6d3f68;     /* malwa — tekst i CTA na jasnym, 7,3:1 */
  --c-mallow-lt: #d9b6d3;  /* tekst na ciemnym, 8,5:1 */
  --c-mallow-soft: #b98fb2;/* TYLKO wypelnienia i kreski */
  --c-ok: #3f7d5a;

  --c-text: #241f1c;
  --c-muted: #6b6058;      /* 5,5:1 na papierze */
  --c-muted-dark: #b3a89f; /* 6,6:1 na atramencie */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", sans-serif;

  --container: 78rem;
  --radius: 2px;
  --ease: 200ms cubic-bezier(.2, .7, .3, 1);
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.65;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-mallow); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .on-dark :focus-visible { outline-color: var(--c-mallow-lt); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--c-mallow); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-variation-settings: "SOFT" 40, "WONK" 1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-variation-settings: "SOFT" 30; }
h3 { font-size: 1.2rem; font-weight: 500; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
p { text-wrap: pretty; }

.eyebrow { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-mallow); display: block; margin-bottom: 0.9rem; }
.on-dark .eyebrow, .site-footer .eyebrow { color: var(--c-mallow-lt); }
.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 40rem; }
.on-dark .lead { color: var(--c-muted-dark); }
.prose p + p { margin-top: 1rem; }
.prose p, .prose li { color: var(--c-muted); }
.prose strong { color: var(--c-text); font-weight: 700; }
.prose h3 { margin: 2rem 0 0.6rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.25rem; display: grid; gap: 0.45rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; text-align: center;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--c-mallow); color: #fff; }
.btn-primary:hover { background: #542f50; }
.btn-ghost { border-color: var(--c-line); color: var(--c-text); background: var(--c-surface); }
.btn-ghost:hover { border-color: var(--c-text); }
.site-header .btn-ghost, .on-dark .btn-ghost { background: transparent; border-color: var(--c-line-dark); color: #fff; }
.site-header .btn-ghost:hover, .on-dark .btn-ghost:hover { border-color: var(--c-mallow-lt); color: var(--c-mallow-lt); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.84rem; }

/* ---------- Naglowek ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--c-ink); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; margin-right: auto; }
.logo-text { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.14em; color: #fff; font-variation-settings: "SOFT" 40; }
.logo-sub { font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-muted-dark); }
.main-nav ul { display: none; list-style: none; gap: 1.6rem; align-items: center; }
.main-nav a { text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted-dark); transition: color var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-mallow-soft); }

/* Przelacznik jezyka — to nie jest ozdoba, to element nawigacji */
.lang { display: inline-flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }
.lang a, .lang span {
  min-width: 44px; min-height: 44px; padding: 0.5rem 0.55rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; border-radius: var(--radius); transition: color var(--ease);
}
.lang a { color: var(--c-muted-dark); }
.lang a:hover { color: #fff; }
.lang [aria-current="true"] { color: var(--c-mallow-lt); }

.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0;
  min-height: 44px; padding: 0.5rem 0.9rem;
  background: transparent; color: #fff;
  border: 1px solid var(--c-line-dark); border-radius: 999px;
  font-size: 0.84rem; font-weight: 600;
  transition: border-color var(--ease);
}
.bag-btn:hover { border-color: var(--c-mallow-lt); }
.bag-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.bag-count {
  min-width: 1.3rem; height: 1.3rem; padding-inline: 0.32rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-mallow-soft); color: #241f1c;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bag-btn[data-empty="true"] .bag-count { background: var(--c-line-dark); color: var(--c-muted-dark); }

/* Na 360 px naglowek sie nie miescil: logo + dwa cele jezyka po 44 px
   + koszyk + hamburger = 64 px poza ekranem. Zwezamy trzy rzeczy naraz,
   ale ZADEN cel dotykowy nie schodzi ponizej 44 px. */
@media (max-width: 639px) {
  .header-inner { gap: 0.4rem; }
  .logo-sub { display: none; }
  .bag-btn { padding: 0.5rem 0.65rem; }
  .bag-btn > span:not(.bag-count) { display: none; }
  /* Zostaje wylacznie link do drugiego jezyka — biezacy i tak wynika
     z tresci strony, a oszczedza 44 px w pasku. */
  .lang [aria-current] { display: none; }
}

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; background: transparent; border: none; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform var(--ease), opacity var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav ul { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink); padding: 1.25rem; gap: 1.1rem; }
.nav-open .main-nav a { font-size: 1rem; display: block; padding: 0.25rem 0; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; }
  .main-nav { margin-right: 1.25rem; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 5.5rem; } }
.section-shade { background: var(--c-shade); }
.section-surface { background: var(--c-surface); }
.section-head { margin-bottom: 2.5rem; max-width: 46rem; }
.section-head p { margin-top: 0.85rem; }
.page-hero { background: var(--c-shade); padding-block: 3.5rem; border-bottom: 1px solid var(--c-line); }
.page-hero p { margin-top: 0.85rem; }

/* ---------- HERO ---------- */
.hero { background: var(--c-bg); }
.hero-grid { display: grid; gap: 2rem; padding-block: 2.5rem 3.5rem; align-items: center; }
.hero h1 { margin: 0.5rem 0 1.25rem; }
.hero h1 em { font-style: italic; color: var(--c-mallow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-top: 2rem; list-style: none; font-size: 0.86rem; color: var(--c-muted); }
.hero-facts b { color: var(--c-text); font-weight: 700; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hero-art img { border-radius: var(--radius); }
.hero-art img:first-child { grid-row: span 2; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-block: 4rem 5rem; } }

/* ============================================================
   STYLIZACJE — wejscie do sklepu
   ============================================================ */
.looks { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .looks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .looks { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }

.look {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-align: left;
  padding: 0; transition: border-color var(--ease), transform var(--ease);
}
.look:hover { border-color: var(--c-mallow-soft); }
/* Kolaz z trzech zdjec produktowych — to JEST zdjecie stylizacji.
   Nie inscenizuje sesji, ktorej nie bylo; pokazuje te trzy sztuki. */
.look-art { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--c-line); }
.look-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.look-art img:first-child { grid-row: span 2; aspect-ratio: auto; }
.look-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; flex-grow: 1; }
.look-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; font-variation-settings: "SOFT" 40; }
.look-desc { font-size: 0.89rem; color: var(--c-muted); flex-grow: 1; }
.look-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--c-line); }
.look-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.look-price s { color: var(--c-muted); font-weight: 400; font-size: 0.85rem; margin-right: 0.35rem; }
.look-cta { font-size: 0.84rem; font-weight: 700; color: var(--c-mallow); }

/* ---------- Szuflada zestawu ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(36, 31, 28, 0.5); opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease); }
body.drawer-open .scrim { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

.drawer {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0;
  width: min(32rem, 100%); background: var(--c-bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--ease);
  box-shadow: -12px 0 40px rgba(36, 31, 28, 0.16);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--c-ink); color: #fff; flex-shrink: 0; }
.drawer-head h2 { font-size: 1.3rem; color: #fff; }
.drawer-close { width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid var(--c-line-dark); border-radius: var(--radius); color: #fff; font-size: 1.05rem; }
.drawer-close:hover { border-color: var(--c-mallow-lt); color: var(--c-mallow-lt); }
.drawer-body { flex-grow: 1; overflow-y: auto; padding: 1.25rem; }
.drawer-foot { flex-shrink: 0; padding: 1.1rem 1.25rem; border-top: 1px solid var(--c-line); background: var(--c-surface); }

/* Trzy sloty zestawu */
.slots { display: grid; gap: 0.85rem; }
.slot {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.9rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.75rem;
}
.slot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.slot-kind { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.slot h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 700; margin: 0.1rem 0 0.15rem; }
.slot-price { font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot-fit { font-size: 0.8rem; color: var(--c-mallow); font-weight: 600; margin-top: 0.2rem; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.slot-actions button {
  min-height: 40px; padding: 0.35rem 0.8rem;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600; transition: all var(--ease);
}
.slot-actions button:hover { border-color: var(--c-mallow); color: var(--c-mallow); }
.slot-actions button[aria-pressed="true"] { background: var(--c-mallow); border-color: var(--c-mallow); color: #fff; }

/* Podmiana — siatka alternatyw */
.swap { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px dashed var(--c-line); }
.swap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.swap-grid button { padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); overflow: hidden; min-height: 44px; }
.swap-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swap-grid button:hover { border-color: var(--c-mallow); }
.swap-grid button[aria-pressed="true"] { border-color: var(--c-mallow); box-shadow: inset 0 0 0 2px var(--c-mallow); }
.swap-note { font-size: 0.78rem; color: var(--c-muted); margin-top: 0.45rem; }

.set-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.3rem; }
.set-total span { font-size: 0.88rem; color: var(--c-muted); }
.set-total strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.set-save { font-size: 0.82rem; color: var(--c-ok); font-weight: 700; margin-bottom: 0.9rem; }
.set-buttons { display: grid; gap: 0.5rem; }

/* ---------- Asystent rozmiaru ---------- */
.fit-box { background: var(--c-shade); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1.25rem; }
.fit-box h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.fit-box p { font-size: 0.84rem; color: var(--c-muted); }
.fit-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.85rem; }
.fit-fields label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.25rem; }
.fit-fields input { width: 100%; padding: 0.55rem 0.6rem; min-height: 44px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font-variant-numeric: tabular-nums; }
.fit-result { font-size: 0.85rem; font-weight: 600; color: var(--c-mallow); margin-top: 0.7rem; }
.fit-clear { background: none; border: 0; min-height: 44px; padding: 0.4rem 0.2rem; font-size: 0.8rem; color: var(--c-muted); text-decoration: underline; }

/* ---------- Siatka produktow ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.75rem; position: relative; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.45rem 1.1rem; cursor: pointer;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; transition: all var(--ease);
}
.filters input:checked + label { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.filters input:focus-visible + label { outline: 3px solid var(--c-mallow); outline-offset: 2px; }

.grid-products { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
.product { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--ease); }
.product:hover { border-color: var(--c-mallow-soft); }
.product > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-body { padding: 0.95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; flex-grow: 1; }
.product-kind { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.product h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.product-desc { font-size: 0.84rem; color: var(--c-muted); flex-grow: 1; margin-top: 0.15rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.85rem; padding-top: 0.8rem; border-top: 1px solid var(--c-line); }
.product-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.product-fit { font-size: 0.78rem; color: var(--c-mallow); font-weight: 700; }

/* ---------- Koszyk ---------- */
.bag-lines { list-style: none; display: grid; gap: 0.9rem; }
.bag-line { display: grid; grid-template-columns: 4rem 1fr auto; gap: 0.85rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--c-line); }
.bag-line img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.bag-line h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; }
.bag-line-meta { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.1rem; }
.bag-line-set { font-size: 0.78rem; color: var(--c-mallow); font-weight: 700; margin-top: 0.1rem; }
.bag-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.bag-line-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 1rem; color: var(--c-muted); }
.qty button:hover { color: var(--c-mallow); }
.qty output { min-width: 1.5rem; text-align: center; font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-remove { background: none; border: 0; min-height: 44px; min-width: 44px; font-size: 0.78rem; color: var(--c-muted); text-decoration: underline; padding: 0.2rem; }
.bag-remove:hover { color: var(--c-mallow); }
.bag-empty { text-align: center; padding: 3rem 1rem; }
.bag-empty p { color: var(--c-muted); font-size: 0.92rem; margin-top: 0.5rem; }
.ship-meter { margin-bottom: 0.85rem; }
.ship-meter p { font-size: 0.82rem; color: var(--c-muted); margin-bottom: 0.35rem; }
.ship-meter b { color: var(--c-mallow); }
.ship-track { height: 4px; background: var(--c-line); border-radius: 2px; overflow: hidden; }
.ship-track i { display: block; height: 100%; background: var(--c-mallow-soft); transition: width var(--ease); }
.bag-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.85rem; }
.bag-total span { font-size: 0.88rem; color: var(--c-muted); }
.bag-total strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, 1.5rem);
  background: var(--c-ink); color: #fff; border-radius: 999px;
  padding: 0.7rem 1.4rem; font-size: 0.88rem; font-weight: 600;
  opacity: 0; visibility: hidden; transition: all var(--ease);
  box-shadow: 0 10px 30px rgba(36, 31, 28, 0.25);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Tabele, formularze, uklady ---------- */
.table-scroll { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.92rem; }
.size-table th, .size-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--c-line); }
.size-table th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); background: var(--c-shade); }
.size-table td { font-variant-numeric: tabular-nums; }

.form-grid { display: grid; gap: 1.05rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 0.35rem; }
.field label .req { color: var(--c-mallow); }
.field input, .field select, .field textarea { width: 100%; padding: 0.75rem 0.9rem; min-height: 44px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-mallow); border-color: var(--c-mallow); }
.field-hint { font-size: 0.79rem; color: var(--c-muted); margin-top: 0.3rem; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; min-height: 44px; padding-block: 0.35rem; font-size: 0.84rem; color: var(--c-muted); font-weight: 400; }
.checkbox-field input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex-shrink: 0; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.split-narrow { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split-narrow { grid-template-columns: 1.35fr 0.65fr; gap: 3.5rem; align-items: start; } }
.split-narrow > *, .split > * { min-width: 0; }
.aside-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 1024px) { .aside-box { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.rows { list-style: none; display: grid; gap: 0.5rem; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--c-line); }
.rows li span:first-child { color: var(--c-muted); }

.summary-lines { list-style: none; display: grid; gap: 0.8rem; margin-bottom: 1rem; }
.summary-line { display: grid; grid-template-columns: 1fr auto; gap: 1rem; font-size: 0.88rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--c-line); }
.summary-line b { font-weight: 700; }
.summary-line span.meta { display: block; color: var(--c-muted); font-size: 0.8rem; margin-top: 0.1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; padding-block: 0.3rem; }
.summary-row span:first-child { color: var(--c-muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--c-line); }
.summary-total strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }

.steps { list-style: none; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--font-display); font-size: 1.3rem; color: var(--c-mallow); line-height: 1; }
.steps h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.steps p { color: var(--c-muted); font-size: 0.92rem; }

.faq { display: grid; gap: 0.6rem; max-width: 46rem; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-mallow); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--c-muted); font-size: 0.92rem; }

/* ---------- Pasek CTA ---------- */
.cta-band { background: var(--c-mallow); color: #fff; }
.cta-band-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 3rem; align-items: flex-start; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { max-width: 36rem; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.92); }
.cta-band .btn { background: #fff; color: var(--c-mallow); }
.cta-band .btn:hover { background: var(--c-ink); color: #fff; }
@media (min-width: 1024px) { .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 3rem; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--c-ink); color: var(--c-muted-dark); font-size: 0.89rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2rem; }
/* Naglowki kolumn to <h2> z klasa, nie <h4> — po sekcji z <h2> czworka
   robi przeskok poziomu i Lighthouse zabiera punkty za dostepnosc. */
.footer-grid .footer-h { color: #fff; font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--c-muted-dark); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--c-line-dark); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.75rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

/* ---------- Utils ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.demo-note { background: var(--c-surface); color: var(--c-muted); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.9rem 1.15rem; font-size: 0.84rem; }
.demo-note strong { color: var(--c-text); }
.on-dark .demo-note, .site-footer .demo-note { background: #372f2a; border-color: var(--c-line-dark); color: var(--c-muted-dark); }
.on-dark .demo-note strong { color: #fff; }
