/* Karty – system wizualny.
   Kafelki jak bony: perforowany „odcinek” z ceną, wcięcia po bokach, kolor według typu oferty. */

:root {
  --spruce: #14365f;     /* marka, ciemne kafelki */
  --spruce-2: #1f4a7c;
  --fog: #f2f5f9;        /* tło strony */
  --paper: #ffffff;
  --ink: #152238;
  --muted: #5b6a7e;
  --line: #d8e0ea;
  --sun: #f08a3c;        /* akcent: ceny, wyróżnienia */
  --ember: #e8601f;      /* tylko „kto pierwszy” i odliczanie */
  --glacier: #dce9f7;    /* oferta cenowa */
  --moss: #fde3cc;       /* gratis */
  --heather: #c9dcf2;    /* karta stałego klienta */
  --ok: #1d6b45; --ok-bg: #dcefe3;
  --bad: #a3261d; --bad-bg: #f9e3e0;
  --r-tile: 22px; --r-ctl: 12px;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* zgodność ze starymi szablonami */
  --bg: var(--fog); --card: var(--paper); --brand: var(--spruce); --radius: var(--r-tile);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 16px/1.55 var(--text); }
img { max-width: 100%; }
a { color: var(--spruce); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 8px 0 18px; font-weight: 800; }
h2 { font-size: 1.35rem; margin: 0 0 10px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
p { max-width: 72ch; }

/* --- układ ------------------------------------------------------------------ */
main { max-width: 620px; margin: 0 auto; padding: 20px 16px 64px; }
main.wide { max-width: 1180px; }

.topbar { position: sticky; top: 0; z-index: 1000; background: color-mix(in srgb, var(--fog) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em;
  color: var(--spruce); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark .punch { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 3px var(--spruce); }
.topnav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.topnav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.topnav a:hover { background: var(--paper); }
.topnav a.on { background: var(--spruce); color: #fff; }
.topnav a.cta { border: 1.5px solid var(--spruce); }

/* panel firmy: ciemny pasek */
.topbar.dark { background: var(--spruce); border: 0; }
.topbar.dark .wordmark { color: #fff; }
.topbar.dark .wordmark .punch { box-shadow: inset 0 0 0 3px #fff; }
.topbar.dark .topnav a { color: #dce7f3; }
.topbar.dark .topnav a:hover { background: var(--spruce-2); }
.topbar.dark .topnav a.on { background: var(--sun); color: var(--spruce); }
.topbar.dark select { width: auto; padding: 6px 10px; background: var(--spruce-2); color: #fff; border-color: transparent; }
.topbar.dark button.link { color: #dce7f3; }
.biz-name { color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.notice { padding: 10px 16px; font-size: .95rem; }
.notice-in { max-width: 1180px; margin: 0 auto; }
.notice.warn { background: #fdebd9; }
.notice.info { background: var(--paper); border-bottom: 1px solid var(--line); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }

@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 8px; }
  .topnav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .topnav a { white-space: nowrap; }
}

/* --- powierzchnie -------------------------------------------------------------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 20px; margin-bottom: 16px; }
.panel > :first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-head .muted { margin: 0; }

/* --- formularze --------------------------------------------------------------- */
label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--spruce); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 55%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--spruce); }
input.code { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, monospace; }
.field { margin-bottom: 14px; }
.field .errorlist, .errorlist { color: var(--bad); margin: 6px 0 0; padding: 0; list-style: none; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--spruce);
  border-radius: 999px; padding: 11px 20px; font: 600 1rem var(--text); cursor: pointer; background: var(--spruce);
  color: #fff; text-decoration: none; line-height: 1.2; }
button:hover, .btn:hover { background: var(--spruce-2); }
button.secondary, .btn.secondary { background: transparent; color: var(--spruce); }
button.secondary:hover, .btn.secondary:hover { background: var(--paper); }
.btn.sun, button.sun { background: var(--sun); border-color: var(--sun); color: var(--spruce); }
button.link { background: none; border: 0; padding: 0; font-weight: 500; text-decoration: underline; color: var(--spruce); border-radius: 0; }
button:disabled { opacity: .5; cursor: default; }
.btn.small, button.small { padding: 6px 13px; font-size: .88rem; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* --- drobne ------------------------------------------------------------------- */
.muted { color: var(--muted); font-size: .92rem; }
.hidden { display: none !important; }
.big { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.status { border-radius: var(--r-ctl); padding: 12px 16px; font-weight: 600; margin: 12px 0; background: var(--paper); border: 1px solid var(--line); }
.status.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.status.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.tag { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: .8rem; font-weight: 600;
  background: var(--fog); color: var(--ink); border: 1px solid var(--line); }
.tag-featured { background: var(--sun); border-color: var(--sun); color: var(--spruce); }
ul.conditions { margin: 8px 0 0; padding-left: 20px; }
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.old-price { text-decoration: line-through; color: var(--muted); margin-left: 8px; font-size: .95rem; }
.distance { font-size: .85rem; color: var(--muted); white-space: nowrap; }

table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--muted); font-weight: 600; font-size: .85rem; }
table.data tr:last-child td { border-bottom: 0; }

/* --- KAFELKI-BONY ----------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; grid-auto-flow: dense; }
.tile { --tile-bg: var(--paper); --tile-ink: var(--ink); --tile-sub: var(--muted); --perf: var(--line);
  position: relative; display: flex; flex-direction: column; min-height: 230px; border-radius: var(--r-tile);
  background: var(--tile-bg); color: var(--tile-ink); text-decoration: none; overflow: hidden; border: 1px solid transparent; }
a.tile:hover { border-color: var(--spruce); }
.tile-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile-kind { font-size: .8rem; font-weight: 600; color: var(--tile-sub); }
.tile-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1, .hero-main h1 { text-wrap: balance; }
.tile-meta { font-size: .9rem; color: var(--tile-sub); margin-top: auto; }
/* odcinek z ceną: perforacja i dwa wycięcia */
.tile-stub { position: relative; padding: 14px 20px 16px; border-top: 2px dashed var(--perf);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile-stub::before, .tile-stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--fog); }
.tile-stub::before { left: -12px; } .tile-stub::after { right: -12px; }
.tile-price { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-price small { font-size: .5em; font-weight: 700; letter-spacing: 0; }
.tile-old { font-size: .9rem; color: var(--tile-sub); text-decoration: line-through; }
.tile-side { text-align: right; font-size: .85rem; color: var(--tile-sub); }

.tile.k-gift { --tile-bg: var(--spruce); --tile-ink: #fff; --tile-sub: #b7cbe3; --perf: #3f6a9c; }
.tile.k-gift .tile-price { color: var(--sun); }
.tile.k-price { --tile-bg: var(--glacier); --perf: #a8c5e5; }
.tile.k-discount { --tile-bg: var(--sun); --tile-sub: #5a2e0e; --perf: #d9732a; --tile-ink: var(--spruce); }
.tile.k-freebie { --tile-bg: var(--moss); --perf: #f2b98a; }
.tile.k-stamp { --tile-bg: var(--heather); --perf: #9dbde3; }
.tile.k-drop { --tile-bg: var(--ember); --tile-ink: #1d0d06; --tile-sub: #4a1b0b; --perf: #c24d15; }
.tile.k-auction { --tile-bg: var(--ink); --tile-ink: #fff; --tile-sub: #a8b6c9; --perf: #3a4660; }
.tile.k-auction .tile-price { color: var(--sun); }

.tile .badge { align-self: flex-end; margin: 14px 14px -12px 0; background: var(--paper); color: var(--spruce);
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tile.k-gift .badge, .tile.k-auction .badge { background: var(--sun); }

@media (max-width: 619px) { .tile { min-height: 180px; } }
@media (min-width: 620px) {
  .tile.wide { grid-column: span 2; }
  .tile.wide .tile-title { font-size: 1.9rem; max-width: 18ch; }
  .tile.wide .tile-price { font-size: 2.6rem; }
}

/* kafelki stron (pozycje panelu, skróty) */
.tile.plain { min-height: 0; border-color: var(--line); }
a.tile.plain:hover { border-color: var(--spruce); }

/* --- hero katalogu ------------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-bottom: 14px; }
.hero-main { background: var(--spruce); color: #fff; border-radius: var(--r-tile); padding: 28px; position: relative; overflow: hidden; }
.hero-main h1 { color: #fff; margin: 0 0 8px; max-width: 14ch; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero-main p { color: #c3d5ea; margin: 0 0 20px; }
.hero-main .punches { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.hero-main .punches span { width: 60px; height: 60px; border-radius: 50%; background: var(--fog); }
.hero-search { background: var(--paper); border-radius: var(--r-tile); padding: 20px; border: 1px solid var(--line); }
.hero-search .filters { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-main .punches { display: none; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--spruce); }
.chip.on { background: var(--spruce); color: #fff; border-color: var(--spruce); }

/* --- filtry ------------------------------------------------------------------------- */
.filters { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr; gap: 8px; }
.filters .wide { grid-column: 1 / -1; }
.filters input, .filters select { padding: 10px 12px; }
.filters input[name=q] { grid-column: 1 / -1; font-size: 1.05rem; padding: 13px 14px; }
@media (max-width: 640px) { .filters, .hero-search .filters { grid-template-columns: 1fr; } }
.view-switch { display: inline-flex; gap: 0; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; margin: 0 0 12px; }
.view-switch a { padding: 6px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.view-switch a.on { background: var(--spruce); color: #fff; }

/* --- statystyki (bento) --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .muted { order: 2; }
.stat.lead { background: var(--spruce); color: #fff; border-color: var(--spruce); }
.stat.lead .muted { color: #b7cbe3; }
.stat.lead b { color: var(--sun); }
@media (min-width: 760px) { .stat.lead { grid-row: span 2; justify-content: flex-end; } .stat.lead b { font-size: 3.2rem; } }

/* --- strona oferty ------------------------------------------------------------------ */
.offer-hero { margin-bottom: 16px; min-height: 0; }
.offer-hero .tile-body { padding: 26px 26px 20px; }
.offer-hero .tile-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.offer-hero .tile-stub { padding: 18px 26px 20px; }
.offer-hero .tile-price { font-size: 2.8rem; }
.crumbs { font-size: .92rem; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }

/* stare klasy kart w katalogu */
.offer-card { display: block; text-decoration: none; color: inherit; }
.offer-card:hover { border-color: var(--spruce); }
.offer-card.featured { border: 2px solid var(--sun); }
.result { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

footer.site { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: .9rem;
  display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer.site a { color: var(--muted); }

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

/* przyciski na ciemnych kafelkach */
.tile.k-gift .btn, .tile.k-auction .btn, .tile.k-gift button, .tile.k-auction button { background: var(--sun); border-color: var(--sun); color: var(--spruce); }
.tile.k-gift .btn.secondary, .tile.k-gift button.secondary,
.tile.k-auction .btn.secondary, .tile.k-auction button.secondary { background: transparent; color: #fff; border-color: #fff; }
.tile a:not(.btn) { color: inherit; }
.tile .state { font-size: .88rem; font-weight: 600; }
.tile .state.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #23a05f; margin-right: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, #23a05f 30%, transparent); }
.tile-stub.actions-stub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; }
.tile.new { border: 2px dashed var(--line); background: transparent; align-items: center; justify-content: center;
  text-align: center; color: var(--spruce); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.tile.new:hover { border-color: var(--spruce); background: var(--paper); }
.tile.new .plus { display: block; font-size: 3rem; line-height: 1; margin-bottom: 6px; }

/* ======================================================================
   UKŁAD STRON (wzór: duży sklep) – pasek stref, nagłówek z wyszukiwarką,
   menu kategorii, lista z filtrami po lewej, kafelki jako menu.
   ====================================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.wide, main.full { max-width: 1240px; }
main.narrow { max-width: 520px; }

/* pasek stref: klient / firma */
.zonebar { background: var(--ink); color: #cfd8e4; font-size: .85rem; }
.zonebar .wrap { display: flex; align-items: stretch; gap: 4px; min-height: 38px; }
.zone-tab { display: inline-flex; align-items: center; padding: 0 16px; color: #cfd8e4; text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent; }
.zone-tab:hover { color: #fff; }
.zone-tab.on { color: #fff; border-bottom-color: var(--sun); background: rgba(255,255,255,.06); }
.zone-note { margin-left: auto; align-self: center; }
@media (max-width: 640px) { .zone-note { display: none; } .zone-tab { flex: 1; justify-content: center; } }

/* nagłówek klienta */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.masthead-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.searchbar { display: grid; grid-template-columns: 1fr 200px auto; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); max-width: 760px; }
.searchbar input { border: 0; border-radius: 0; padding: 11px 18px; font-size: 1rem; }
.searchbar input:focus { box-shadow: none; }
.searchbar input + input { border-left: 1px solid var(--line); }
.searchbar button { border-radius: 0; border: 0; padding: 0 22px; }
.searchbar:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 60%, transparent); }
.utility { display: flex; gap: 4px; }
.utility a { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; font-size: .78rem; font-weight: 600;
  color: var(--ink); text-decoration: none; border-radius: 10px; }
.utility a:hover { background: var(--fog); }
.utility svg { width: 22px; height: 22px; }
.catnav { border-top: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav a { padding: 11px 14px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.catnav a:hover { border-bottom-color: var(--line); }
.catnav a.on { border-bottom-color: var(--spruce); }
.catnav a.hot { color: #d9601c; }
@media (max-width: 860px) {
  .masthead { position: static; }
  .masthead-row { grid-template-columns: 1fr auto; gap: 10px; }
  .searchbar { grid-column: 1 / -1; order: 3; grid-template-columns: 1fr auto; max-width: none; }
  .searchbar input[name=gdzie] { display: none; }
}

/* nagłówek strefy firm */
.zone-biz .masthead { background: var(--spruce); border-bottom: 0; }
.zone-biz .wordmark { color: #fff; }
.zone-biz .wordmark .punch { box-shadow: inset 0 0 0 3px #fff; }
.wordmark small { font-family: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--sun); margin-left: 2px; }
.zone-biz .utility a { color: #dce7f3; }
.zone-biz .utility a:hover { background: var(--spruce-2); }
.zone-biz .catnav { border-top: 1px solid var(--spruce-2); }
.zone-biz .catnav a { color: #dce7f3; }
.zone-biz .catnav a:hover { border-bottom-color: var(--spruce-2); }
.zone-biz .catnav a.on { color: #fff; border-bottom-color: var(--sun); }
.biz-switch { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.biz-switch select { width: auto; padding: 6px 10px; background: var(--spruce-2); color: #fff; border-color: transparent; }
.zone-biz button.link { color: #dce7f3; }

/* nagłówek strony */
.page-head { margin: 4px 0 20px; }
.page-head h1 { margin: 2px 0 6px; }
.page-head p { margin: 0; color: var(--muted); }
.page-head.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* kafelki-menu */
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 26px; }
.mtile { display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 18px 20px; border-radius: var(--r-tile);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
a.mtile:hover { border-color: var(--ink); }
.mtile .ico { font-size: 1.6rem; line-height: 1; }
.mtile h3 { font-size: 1.25rem; margin: auto 0 0; }
.mtile .num { font-family: var(--display); font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.mtile p { margin: 0; font-size: .9rem; color: var(--muted); }
.mtile.t-spruce { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.mtile.t-spruce p { color: #b7cbe3; } .mtile.t-spruce .num { color: var(--sun); }
.mtile.t-sun { background: var(--sun); border-color: var(--sun); color: var(--spruce); } .mtile.t-sun p { color: #5a2e0e; }
.mtile.t-glacier { background: var(--glacier); border-color: var(--glacier); }
.mtile.t-moss { background: var(--moss); border-color: var(--moss); }
.mtile.t-heather { background: var(--heather); border-color: var(--heather); }
.mtile.t-ember { background: var(--ember); border-color: var(--ember); color: #1d0d06; } .mtile.t-ember p { color: #4a1b0b; }
.mtile.big { grid-column: span 2; min-height: 200px; }
.mtile.big h3 { font-size: 1.8rem; }
@media (max-width: 520px) { .menu { grid-template-columns: 1fr 1fr; gap: 10px; } .mtile { min-height: 120px; padding: 14px; } .mtile h3 { font-size: 1.05rem; } .mtile.big { grid-column: 1 / -1; } }

/* lista wyników z filtrami */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.facets { position: sticky; top: 140px; }
.facets details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.facets details:first-of-type { border-top: 1px solid var(--line); }
.facets summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.facets summary::-webkit-details-marker { display: none; }
.facets summary::after { content: "+"; font-weight: 400; }
.facets details[open] summary::after { content: "–"; }
.facet-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.facet-list a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-decoration: none; color: var(--ink); border-radius: 8px; }
.facet-list a::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 4px; flex: none; }
.facet-list a.on::before { background: var(--spruce); border-color: var(--spruce); box-shadow: inset 0 0 0 3px var(--paper); }
.facet-list a:hover { background: var(--paper); }
.facet-list.radio a::before { border-radius: 50%; }
.facets .field { margin: 10px 0 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: .88rem; font-weight: 600; }
.active-filters a::after { content: "×"; font-size: 1.1rem; line-height: 1; }
.active-filters a.clear { background: none; color: var(--ink); text-decoration: underline; }
.active-filters a.clear::after { content: none; }
.sortbox { display: flex; gap: 4px; align-items: center; font-size: .9rem; }
.sortbox a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.sortbox a.on { background: var(--paper); border: 1px solid var(--line); }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; gap: 12px; }
  .facets { position: static; display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 6px 16px 14px; }
  .facets.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* stopka */
footer.site { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 1240px; padding: 32px 16px 48px; }
footer.site h4 { margin: 0 0 8px; font-family: var(--display); font-size: 1rem; color: var(--ink); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.notice { padding: 10px 0; }
main > h1:first-child, main > .crumbs + h1 { margin-top: 2px; }
.listing > * { min-width: 0; }
.sortbox { flex-wrap: wrap; }
.sortbox a { white-space: nowrap; }


/* ======================================================================
   TYPOGRAFIA: jedna rodzina (Plus Jakarta Sans), lżejsze nagłówki
   ====================================================================== */
body { font-weight: 400; line-height: 1.6; }
h1, h2, h3, .display { font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-weight: 600; letter-spacing: -.025em; }
.hero-main h1 { font-weight: 600; letter-spacing: -.03em; }
.wordmark { font-weight: 700; letter-spacing: -.03em; }
.tile-title { font-weight: 600; letter-spacing: -.01em; }
.tile-price, .price, .big, .stat b, .mtile .num { font-weight: 600; letter-spacing: -.025em; }
.mtile h3 { font-weight: 600; }
button, .btn { font-weight: 600; }
.catnav a, .topnav a, .chip, .zone-tab { font-weight: 500; }
.catnav a.on, .zone-tab.on, .chip.on { font-weight: 600; }
label { font-weight: 500; }
.tile-kind, .tag, .badge { font-weight: 500; }

/* ======================================================================
   PANEL FIRMY: stonowany – biel, szarość, jeden akcent (zieleń marki)
   ====================================================================== */
.panel-ui { --sun-ui: var(--spruce); }
.panel-ui .mtile, .panel-ui .mtile[class*="t-"] { background: var(--paper); border-color: var(--line); color: var(--ink); }
.panel-ui .mtile p, .panel-ui .mtile[class*="t-"] p { color: var(--muted); }
.panel-ui .mtile .num { color: var(--ink); }
.panel-ui .mtile .ico { filter: grayscale(1); opacity: .65; font-size: 1.35rem; }
.panel-ui a.mtile:hover { border-color: var(--spruce); }
.panel-ui .mtile.t-spruce { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.panel-ui .mtile.t-spruce p { color: #b7cbe3; }
.panel-ui .mtile.t-spruce .num { color: #fff; }

/* kafelki ofert w panelu: białe, typ oznaczony kropką */
.panel-ui .tile, .panel-ui .tile[class*="k-"] { --tile-bg: var(--paper); --tile-ink: var(--ink); --tile-sub: var(--muted); --perf: var(--line);
  border-color: var(--line); }
.panel-ui .tile .tile-price { color: var(--ink); }
.panel-ui .tile .btn, .panel-ui .tile button { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.panel-ui .tile .btn.secondary, .panel-ui .tile button.secondary { background: transparent; color: var(--spruce); border-color: var(--spruce); }
.panel-ui .tile .badge { background: var(--fog); color: var(--ink); }
.panel-ui .tile-kind::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px;
  vertical-align: 1px; background: var(--dot, var(--muted)); }
.panel-ui .k-gift { --dot: var(--spruce); }
.panel-ui .k-price { --dot: #4f86c6; }
.panel-ui .k-discount { --dot: #d9732a; }
.panel-ui .k-freebie { --dot: #e08a4a; }
.panel-ui .k-stamp { --dot: #6f9bd0; }
.panel-ui .k-drop { --dot: var(--ember); }
.panel-ui .k-auction { --dot: var(--ink); }
.panel-ui .tile .state.live::before { background: var(--spruce); box-shadow: none; }

/* nagłówek i elementy panelu */
.panel-ui .zone-biz .catnav a.on, .panel-ui .catnav a.on { border-bottom-color: #fff; }
.panel-ui .wordmark small { color: #b7cbe3; }
.panel-ui .wordmark .punch { background: #fff; }
.panel-ui .tag-featured { background: var(--fog); border-color: var(--line); color: var(--ink); }
.panel-ui .btn.sun, .panel-ui button.sun { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.panel-ui .chip.on { background: var(--ink); border-color: var(--ink); }
.panel-ui .notice.warn { background: #fdf1e6; }
.panel-ui .stat.lead b { color: #fff; }
.panel-ui .zone-tab.on { border-bottom-color: #fff; }

/* ======================================================================
   Lżejsza typografia
   ====================================================================== */
h1, h2, h3, .display, .hero-main h1, .tile-title, .mtile h3, .section-head h2 { font-weight: 500; }
h1 { letter-spacing: -.02em; }
.tile-price, .price, .big, .stat b, .mtile .num { font-weight: 500; }
.wordmark { font-weight: 600; }
button, .btn, .facets summary, .active-filters a { font-weight: 500; }
.catnav a.on, .zone-tab.on, .chip.on, .sortbox a.on { font-weight: 500; }
.catnav a, .topnav a, .chip, .zone-tab, .utility a, .tile-kind, .tag, .badge, label, .biz-switch, .tile .state { font-weight: 400; }
.tile-price small { font-weight: 400; }
strong, b { font-weight: 600; }
.stat b, .mtile .num { font-weight: 500; }

/* ======================================================================
   PANEL FIRMY: odcienie jednej barwy (szałwia → świerk) zamiast kontrastów
   ====================================================================== */
.panel-ui {
  --g1: #f3f7fc; --g2: #e4edf8; --g3: #d3e3f4; --g4: #b9d1ec; --g5: #2b5f98;
  --g-ink: #17304f; --g-sub: #56708f;
}
.panel-ui .mtile, .panel-ui .mtile[class*="t-"] { background: var(--g1); border-color: var(--g3); color: var(--g-ink); }
.panel-ui .mtile p, .panel-ui .mtile[class*="t-"] p { color: var(--g-sub); }
.panel-ui .mtile .num { color: var(--g-ink); }
.panel-ui .mtile .ico { filter: grayscale(1) sepia(.35) hue-rotate(80deg) saturate(1.4); opacity: .75; }
.panel-ui .mtile.t-sun { background: var(--g3); border-color: var(--g3); }
.panel-ui .mtile.t-glacier { background: var(--g2); border-color: var(--g2); }
.panel-ui .mtile.t-moss { background: var(--g4); border-color: var(--g4); }
.panel-ui .mtile.t-heather { background: var(--g2); border-color: var(--g2); }
.panel-ui .mtile.t-ember { background: var(--g5); border-color: var(--g5); color: #fff; }
.panel-ui .mtile.t-ember p { color: #b7cbe3; }
.panel-ui .mtile.t-spruce { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.panel-ui .mtile.t-spruce p { color: #b7cbe3; }
.panel-ui .mtile.t-spruce .num { color: #e4edf8; }
.panel-ui a.mtile:hover { border-color: var(--g5); }

/* oferty w panelu: odcień zależy od typu */
.panel-ui .tile, .panel-ui .tile[class*="k-"] { --tile-bg: var(--g1); --tile-ink: var(--g-ink); --tile-sub: var(--g-sub); --perf: var(--g4); border-color: transparent; }
.panel-ui .tile.k-gift { --tile-bg: var(--spruce); --tile-ink: #fff; --tile-sub: #b7cbe3; --perf: #3f6a9c; }
.panel-ui .tile.k-price { --tile-bg: var(--g2); }
.panel-ui .tile.k-discount { --tile-bg: var(--g3); --perf: #a9c5e6; }
.panel-ui .tile.k-freebie { --tile-bg: var(--g4); --perf: #a9c5e6; }
.panel-ui .tile.k-stamp { --tile-bg: var(--g1); border-color: var(--g3); }
.panel-ui .tile.k-drop, .panel-ui .tile.k-auction { --tile-bg: var(--g5); --tile-ink: #fff; --tile-sub: #b7cbe3; --perf: #3f6a9c; }
.panel-ui .tile .tile-price { color: inherit; }
.panel-ui .tile-kind::before { display: none; }
.panel-ui .tile.k-gift .btn, .panel-ui .tile.k-gift button,
.panel-ui .tile.k-drop .btn, .panel-ui .tile.k-auction .btn { background: #e4edf8; border-color: #e4edf8; color: var(--spruce); }
.panel-ui .tile.k-gift .btn.secondary, .panel-ui .tile.k-gift button.secondary { background: transparent; color: #fff; border-color: #b7cbe3; }
.panel-ui .tile .badge { background: rgba(255,255,255,.7); color: var(--g-ink); }
.panel-ui .tile .state.live::before { background: #4cb27a; }
.panel-ui .tile.new { background: transparent; border-color: var(--g4); color: var(--g5); }
.panel-ui .stat, .panel-ui .panel { border-color: var(--g3); }
.panel-ui .chip { border-color: var(--g3); }
.panel-ui .chip.on { background: var(--g5); border-color: var(--g5); }
.panel-ui .tag { background: var(--g2); border-color: var(--g3); }
.panel-ui { --fog: #f6f9fc; }
.panel-ui .mtile:not([class*="t-"]), .panel-ui .tile.k-stamp { background: #fff; }


/* ======================================================================
   PALETA: niebieski (marka) + pomarańczowy (akcent), w bliskich odcieniach
   ====================================================================== */
:root { --blue-1: #eef4fb; --blue-2: #dce9f7; --blue-3: #b9d1ec; --orange-1: #fdebd9; --orange-2: #fbd2ad; --orange-3: #f5a96a; }
.tile.k-discount { --tile-bg: var(--orange-3); --tile-ink: #3a1c07; --tile-sub: #6b3a14; --perf: #d9813f; }
.tile.k-freebie { --tile-bg: var(--orange-1); --tile-sub: #7a5134; --perf: var(--orange-2); }
.tile.k-drop { --tile-bg: var(--sun); --tile-ink: #2a1205; --tile-sub: #5a2a0c; --perf: #c86a26; }
.tile.k-stamp { --tile-bg: var(--blue-3); --perf: #8fb3dd; }
.tile.k-gift .tile-price, .tile.k-auction .tile-price { color: var(--orange-3); }
.tile.k-gift .badge, .tile.k-auction .badge { background: var(--orange-3); color: #2a1205; }
.mtile.t-sun { background: var(--orange-3); border-color: var(--orange-3); color: #2a1205; }
.mtile.t-sun p { color: #5a2e0e; }
.mtile.t-moss { background: var(--orange-1); border-color: var(--orange-1); }
.mtile.t-ember { background: var(--sun); border-color: var(--sun); }
.mtile.t-spruce .num { color: var(--orange-3); }
.stat.lead b { color: var(--orange-3); }
.btn.sun, button.sun { background: var(--sun); border-color: var(--sun); color: #fff; }
.tag-featured { background: var(--orange-1); border-color: var(--orange-2); color: #7a3a0e; }
.zone-tab.on { border-bottom-color: var(--sun); }
.wordmark .punch { background: var(--sun); }
.catnav a.on { border-bottom-color: var(--sun); }
:focus-visible { outline-color: var(--sun); }

/* panel: przewaga niebieskich odcieni, pomarańcz jako ciepły akcent */
.panel-ui .mtile.t-sun { background: var(--orange-1); border-color: var(--orange-1); color: var(--g-ink); }
.panel-ui .mtile.t-sun p { color: #7a5134; }
.panel-ui .mtile.t-moss { background: var(--orange-2); border-color: var(--orange-2); }
.panel-ui .mtile.t-moss p { color: #6b3a14; }
.panel-ui .mtile.t-spruce .num { color: var(--orange-2); }
.panel-ui .tile.k-discount { --tile-bg: var(--orange-1); --perf: var(--orange-2); }
.panel-ui .tile.k-freebie { --tile-bg: var(--orange-2); --perf: #eeb889; }
.panel-ui .catnav a.on, .panel-ui .zone-tab.on { border-bottom-color: var(--orange-3); }
.panel-ui .wordmark .punch { background: var(--orange-3); }
.panel-ui .tile .state.live::before { background: var(--orange-3); }
.panel-ui .mtile .ico { filter: grayscale(1) sepia(.3) hue-rotate(180deg) saturate(1.6); }
.tile button.link { background: none !important; border: 0 !important; color: inherit !important; text-decoration: underline; padding: 0 4px; }

/* natywna aplikacja (iOS/Android): bez przycisków instalacji, odstęp od wycięcia ekranu */
.native-app #pwa-install, .native-app #pwa-install-app { display: none !important; }
.native-ios .zonebar { padding-top: env(safe-area-inset-top); }
.native-ios footer.site { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

/* --- szybki zakup / zakup z danymi --- */
.quick-buy { border: 2px solid var(--sun); background: linear-gradient(180deg, #fff7f0, #fff); }
.quick-buy h2 { font-size: 1.25rem; }
.classic-buy summary { cursor: pointer; list-style: none; line-height: 1.45; }
.classic-buy summary::-webkit-details-marker { display: none; }
.classic-buy summary::before { content: "▸ "; color: var(--sun); }
.classic-buy[open] summary::before { content: "▾ "; }

/* przyciski Wallet / Podaruj */
.gwallet { display:flex; align-items:center; justify-content:center; gap:10px; margin:12px auto 0; max-width:300px;
    background:#000; color:#fff; border-radius:999px; padding:12px 18px; text-decoration:none; font-weight:500; }
.gwallet svg { width:24px; height:24px; }
.gwallet.gift { background: var(--sun); color: #15120f; border: 0; cursor: pointer; width: 100%; max-width: 300px; }

/* --- jeden przycisk zakupu --- */
.buy-one { text-align: center; }
.buy-one .buy-btn { width: 100%; font-size: 1.15rem; padding: 16px 20px; }
.buy-one .pay-methods { margin: 10px auto 2px; font-weight: 600; color: var(--ink); }
.buy-one .fine { font-size: .82rem; margin: 6px auto 0; }


/* --- widżet: bony jako karty płatnicze, jedna pod drugą (data-uklad="karty") --- */
.tiles.card-stack { grid-template-columns: 1fr !important; gap: 16px; max-width: 460px; margin: 0 auto; }
.card-stack .tile { aspect-ratio: 1.586 / 1; min-height: 0 !important; border-radius: 16px; overflow: hidden; position: relative;
  transition: transform .15s ease, box-shadow .15s ease; }
.card-stack .tile:hover { transform: translateY(-3px); }
.card-stack .tile-body { padding: 18px 22px 0; }
.card-stack .chip { width: 42px; height: 30px; border-radius: 6px; margin-bottom: 4px;
  background: linear-gradient(135deg, #e9d3b0 0%, #b88d5d 45%, #e2c39f 70%, #9c7348 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.card-stack .tile-title { font-size: 1.35rem; }
.card-stack .tile-stub { border-top: 0; padding: 0 22px 18px; display: flex; align-items: flex-end; justify-content: space-between; }
.card-stack .tile-stub::before, .card-stack .tile-stub::after { display: none; }
.card-stack .tile-price { font-size: 2.6rem; }
.card-stack .tile-side { border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; font-weight: 600; white-space: nowrap; }
.card-stack .tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(201,162,126,.25); pointer-events: none; }

/* Bon „dowolna kwota” */
.custom-amount { display: block; text-align: left; margin: 0 0 10px; }
.custom-amount .ca-label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.custom-amount .ca-input { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 4px 14px; background: var(--card, #fff); }
.custom-amount .ca-input:focus-within { border-color: var(--brand); }
.custom-amount input { border: 0; outline: 0; background: transparent; font-size: 1.6rem; font-weight: 700; width: 100%; padding: 8px 0; color: inherit; -moz-appearance: textfield; }
.custom-amount input::-webkit-outer-spin-button, .custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-amount .ca-unit { font-size: 1.3rem; font-weight: 700; color: var(--muted); }
.custom-amount .ca-help { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.ca-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ca-quick button { flex: 1 1 0; min-width: 60px; padding: 8px 6px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font-weight: 600; cursor: pointer; box-shadow: none; }
.ca-quick button:hover { border-color: var(--brand); }

/* Udostępnij… / Zapisz jako obrazek – delikatne, obrysowane przyciski */
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.share-row .share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: none; transition: color .15s, border-color .15s, background-color .15s; }
.share-row .share-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.share-row .share-btn:hover, .share-row .share-btn:focus-visible { color: var(--brand); border-color: var(--brand);
  background: transparent; }
.share-row .share-btn.secondary { border-color: transparent; }
.share-row .share-btn.secondary:hover { border-color: var(--line); }
.share-row.compact { justify-content: flex-start; margin: 4px 0 0; gap: 4px; }
.share-row.compact .share-btn { padding: 3px 10px; font-size: .8rem; }
.share-row.compact .share-btn svg { width: 13px; height: 13px; }
