/* Układ: "metka i oczko" – mleczne tło, kakaowy tekst, przeszycia (linie przerywane) i kraftowe metki z cenami */
:root {
  --bg: #fbf7f5;
  --surface: #ffffff;
  --fg: #46302a;
  --muted: #74605a;
  --rose: #a84b60;
  --rose-soft: #f6e3e6;
  --kraft: #c9a27e;
  --kraft-soft: #f1e5d8;
  --line: #e9ddd7;
  --on-rose: #ffffff;

  --font-display: "DynaPuff", "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.5vw, 2.6rem);
  --step-4: clamp(2.4rem, 6.5vw, 4rem);

  --radius: 18px;
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #241b18; --surface: #2f2420; --fg: #f3e8e2; --muted: #bba59d;
    --rose: #e89aa8; --rose-soft: #3d2a2c; --kraft: #c9a27e; --kraft-soft: #3a2e25;
    --line: #45362f; --on-rose: #2a1c1c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #241b18; --surface: #2f2420; --fg: #f3e8e2; --muted: #bba59d;
  --rose: #e89aa8; --rose-soft: #3d2a2c; --kraft: #c9a27e; --kraft-soft: #3a2e25;
  --line: #45362f; --on-rose: #2a1c1c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 40rem; }
.eyebrow { font-family: var(--font-hand); font-size: 1.6rem; color: var(--rose); line-height: 1; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 38rem; }
.prose { display: grid; gap: 1rem; max-width: 38rem; }

/* przeszycie – przerywana linia jak oczka na szydełku */
.stitch { border: 0; height: 0; border-top: 2px dashed var(--line); margin: 0; }

/* ---------- nagłówek ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 700; }
.nav a:hover { background: var(--rose-soft); }
.nav a[aria-current="page"] { color: var(--rose); }
.nav a.btn[aria-current="page"] { color: var(--on-rose); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 12px; padding: .4rem .7rem; font: inherit; font-weight: 700; color: var(--fg); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 2px dashed var(--line); padding: .5rem var(--gutter-r) 1rem var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rose); color: var(--on-rose); }
.btn-ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.nav .btn { padding: .5rem 1.1rem; }
.nav .btn-primary:hover { background: var(--rose); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- metka (kraft tag) ---------- */
.tag {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  background: var(--kraft); color: #3b2a1f;
  font-family: var(--font-hand); font-size: 1.45rem; line-height: 1;
  padding: .35rem .9rem .35rem 1.4rem;
  border-radius: 4px 10px 10px 4px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-weight: 700; font-size: var(--step--1); list-style: none; padding: 0; margin: 0; }
.hero-facts li::before { content: "♡ "; color: var(--rose); }
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; min-width: 0; }
.hero-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.hero-photos img:nth-child(2) { margin-top: 2.5rem; }
.hero-photos .tag { position: absolute; left: -10px; bottom: 1.5rem; transform: rotate(-6deg); font-size: 1.7rem; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photos .tag { left: 6px; }
}

/* ---------- kategorie ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.cat { display: grid; gap: .7rem; text-decoration: none; }
.cat-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.cat-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-img .tag { position: absolute; right: 10px; bottom: 12px; font-size: 1.3rem; }
.cat p { color: var(--muted); font-size: var(--step--1); }

/* ---------- jak zamówić ---------- */
.band { background: var(--rose-soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .4rem; padding: 1.4rem; border: 2px dashed color-mix(in srgb, var(--rose) 45%, transparent); border-radius: var(--radius); background: var(--bg); }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 1.6rem; color: var(--rose); line-height: 1; }
.steps p { color: var(--muted); }
.steps.plain li::before { content: "♡"; }

/* ---------- pasek zdjęć ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- cytat ---------- */
.quote { font-family: var(--font-hand); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; color: var(--fg); max-width: 34rem; }
.quote cite { display: block; margin-top: .5rem; font-family: var(--font-body); font-style: normal; font-size: var(--step--1); color: var(--muted); }

/* ---------- o autorce ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; border-left: 2px dashed var(--line); }
.timeline li { padding-left: 1.4rem; position: relative; display: grid; gap: .15rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); }
.timeline time { font-family: var(--font-hand); font-size: 1.35rem; color: var(--rose); line-height: 1.1; }
.timeline p { color: var(--muted); }

/* ---------- oferta / cennik ---------- */
.offer-list { display: grid; gap: 1.5rem; }
.offer {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 1.4rem; align-items: center;
  padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.offer img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.offer-body { display: grid; gap: .35rem; min-width: 0; }
.offer-body p { color: var(--muted); }
.offer-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.chip { font-size: var(--step--1); font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--kraft-soft); }
.offer-price { display: grid; justify-items: end; gap: .6rem; }
@media (max-width: 700px) {
  .offer { grid-template-columns: 96px 1fr; }
  .offer-price { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
.table-wrap { overflow-x: auto; }
table.prices { border-collapse: collapse; width: 100%; min-width: 420px; font-variant-numeric: tabular-nums; }
table.prices th, table.prices td { text-align: left; padding: .65rem .5rem; border-bottom: 2px dashed var(--line); }
table.prices td:last-child, table.prices th:last-child { text-align: right; white-space: nowrap; }
table.prices th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.note { font-size: var(--step--1); color: var(--muted); }

/* ---------- galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter { font: inherit; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry button { display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .4s ease; }
.masonry button:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 10, .92); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 82vh; max-width: min(92vw, 1100px); width: auto; border-radius: 12px; }
.lightbox figure { margin: 0; display: grid; gap: .7rem; justify-items: center; }
.lightbox figcaption { color: #f3e8e2; font-weight: 700; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- kreator ---------- */
.builder { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.builder > * { min-width: 0; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }
.step { border: 0; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; min-width: 0; }
.step legend { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; padding: 0; margin-bottom: .9rem; }
.step legend span { font-family: var(--font-hand); color: var(--rose); font-size: 1.5rem; margin-right: .4rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label {
  display: grid; gap: .35rem; height: 100%; padding: .6rem; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface); transition: border-color .15s ease;
}
.choice label img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.choice label b { font-weight: 800; line-height: 1.25; }
.choice label small { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.choice input:checked + label { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choices.compact label { padding: .75rem .9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch label { display: flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: var(--step--1); background: var(--surface); }
.swatch label i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.swatch input:checked + label { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.swatch input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: .65rem .8rem; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); width: max-content; }
.qty button { font: inherit; font-size: 1.3rem; width: 44px; height: 44px; border: 0; background: none; color: var(--fg); cursor: pointer; border-radius: 50%; }
.qty output { min-width: 2.5rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); max-height: calc(100vh - 104px); overflow-y: auto; display: grid; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 2px dashed var(--kraft); }
@media (max-width: 900px) { .summary { position: static; max-height: none; } }
.summary h2 { font-size: var(--step-2); }
.summary dl { margin: 0; display: grid; gap: .45rem; font-variant-numeric: tabular-nums; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .8rem; border-top: 2px dashed var(--line); }
.total strong { font-family: var(--font-display); font-size: 2rem; font-variant-numeric: tabular-nums; }
.gift { padding: .7rem .9rem; border-radius: 12px; background: var(--rose-soft); font-weight: 700; font-size: var(--step--1); }
.msg { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; white-space: pre-wrap; background: var(--bg); border-radius: 12px; padding: .8rem; border: 1px solid var(--line); max-height: 220px; overflow: auto; }
.send { display: grid; gap: .5rem; }
.send .btn { width: 100%; }
.summary dt small { font-weight: 600; }
.linkish { font: inherit; font-size: var(--step--1); background: none; border: 0; padding: 0 .2rem; color: var(--rose); text-decoration: underline; cursor: pointer; }
.toast { font-weight: 800; color: var(--rose); min-height: 1.5em; font-size: var(--step--1); }

/* ---------- stopka ---------- */
.site-footer { border-top: 2px dashed var(--line); padding-block: 2.5rem; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; font-weight: 700; }
.socials a { text-decoration: none; }
.socials a:hover { color: var(--rose); }
.copy { color: var(--muted); font-size: var(--step--1); }
.footer-brand { display: grid; gap: .4rem; }
.legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; list-style: none; padding: 0; margin: 0; font-size: var(--step--1); color: var(--muted); }
.legal a { color: inherit; }
.legal a:hover { color: var(--rose); }

/* ---------- pasek ceny w kreatorze (telefon) ---------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 2px dashed var(--kraft);
    box-shadow: 0 -6px 20px rgba(70, 48, 42, .08);
    transition: transform .2s ease;
  }
  .mobile-bar.away { transform: translateY(110%); }
  .mobile-bar small { display: block; color: var(--muted); font-weight: 700; line-height: 1.1; }
  .mobile-bar strong { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .mobile-bar .btn { padding: .65rem 1.1rem; }
  .has-bar { padding-bottom: 84px; }
}

/* ---------- inspiracja z galerii ---------- */
.inspo { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; align-items: center; padding: .6rem; border-radius: 12px; background: var(--kraft-soft); }
.inspo img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.inspo span { font-size: var(--step--1); font-weight: 700; min-width: 0; }
.lightbox .btn { margin-top: .3rem; }

/* ---------- opinie ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.review { margin: 0; display: grid; gap: .8rem; align-content: start; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review blockquote { margin: 0; font-family: var(--font-hand); font-size: 1.75rem; line-height: 1.15; }
.review figcaption { font-size: var(--step--1); color: var(--muted); font-weight: 700; }

/* ---------- pytania ---------- */
.faq { display: grid; gap: .75rem; max-width: 46rem; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 800; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--rose); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.2rem 1.1rem; display: grid; gap: .6rem; color: var(--muted); }

/* ---------- strony prawne ---------- */
.legal-doc { max-width: 46rem; display: grid; gap: 1rem; }
.legal-doc h2 { font-size: var(--step-1); margin-top: 1rem; }
.legal-doc ol, .legal-doc ul { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.legal-doc p, .legal-doc li { color: var(--fg); }

/* miejsce do uzupełnienia – łatwe do znalezienia przed publikacją */
.todo { background: #fff1a8; color: #4a3a00; padding: 0 .25em; border-radius: 4px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
