/* TaniejTu – app shell: header / widok / dolny pasek; ceny jak sklepowe cenówki */
:root {
  --outlet: #6A2FD4;
  --outlet-ink: #FFFFFF;
  --outlet-soft: #F1EAFE;
  --bg: #F5F8F2;
  --surface: #FFFFFF;
  --surface-2: #EDF2E9;
  --line: #D9E3D4;
  --ink: #12261A;
  --muted: #5B6E60;
  --brand: #0A3D22;
  --brand-ink: #FFFFFF;
  --leaf: #3E7D4A;
  --carrot: #E0592A;
  --carrot-ink: #FFFFFF;
  --promo: #FFD23F;
  --promo-ink: #2A1E00;
  --ok: #2E7D45;
  --warn: #B26A00;
  --bad: #C0392B;
  --tag-bg: #FFFFFF;
  --tag-line: #12261A;
  --shadow: 0 6px 22px rgba(10, 61, 34, .14);
  --radius: 14px;
  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --outlet: #A98BFF; --outlet-ink: #14062E; --outlet-soft: #231A38; --bg: #0D1611; --surface: #15211A; --surface-2: #1C2B22; --line: #2A3B30;
    --ink: #E6EFE8; --muted: #9DB2A3; --brand: #7CC98F; --brand-ink: #08210F;
    --leaf: #7CC98F; --carrot: #FF7A47; --carrot-ink: #1A0800; --promo: #FFD23F; --promo-ink: #2A1E00;
    --ok: #6CCB86; --warn: #F0B04A; --bad: #FF7B6B; --tag-bg: #F7FAF5; --tag-line: #F7FAF5;
    --shadow: 0 6px 22px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --outlet: #A98BFF; --outlet-ink: #14062E; --outlet-soft: #231A38; --bg: #0D1611; --surface: #15211A; --surface-2: #1C2B22; --line: #2A3B30;
  --ink: #E6EFE8; --muted: #9DB2A3; --brand: #7CC98F; --brand-ink: #08210F;
  --leaf: #7CC98F; --carrot: #FF7A47; --carrot-ink: #1A0800; --promo: #FFD23F; --promo-ink: #2A1E00;
  --ok: #6CCB86; --warn: #F0B04A; --bad: #FF7B6B; --tag-bg: #F7FAF5; --tag-line: #F7FAF5;
  --shadow: 0 6px 22px rgba(0,0,0,.45); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--leaf); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--carrot); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.app { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line); z-index: 20;
}
.brand { display: block; border-radius: 10px; }
.brand-logo { height: 38px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { background: #fff; border-radius: 10px; padding: 3px 8px; } }
:root[data-theme="dark"] .brand-logo { background: #fff; border-radius: 10px; padding: 3px 8px; }
.brand-tag { font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.city-pick { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 4px 0 10px; background: var(--surface); max-width: 46vw; }
.city-pick svg { width: 16px; height: 16px; fill: var(--carrot); flex: 0 0 auto; }
.city-pick select { border: 0; background: transparent; padding: 7px 6px; font: 800 .85rem var(--font-body); width: auto; min-width: 0; max-width: 100%; text-overflow: ellipsis; cursor: pointer; }
.locate-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 700 .85rem var(--font-body); cursor: pointer; }
.locate-btn svg { width: 18px; height: 18px; fill: currentColor; }
.locate-btn.on { border-color: var(--leaf); color: var(--leaf); }
@media (max-width: 520px) { .brand-tag { display: none; } .brand-logo { height: 30px; } .topbar { gap: 6px; } .locate-btn { padding: 7px 9px; } }
@media (max-width: 400px) { #locateLabel { display: none; } }

.demo-bar { background: var(--promo); color: var(--promo-ink); font-size: .82rem; font-weight: 700; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; color: inherit; cursor: pointer; }

.view { overflow-y: auto; position: relative; min-height: 0; outline: none; }
.page { max-width: 760px; margin: 0 auto; padding-block: 18px 28px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 16px; }

.tabbar { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); z-index: 20; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a.active { color: var(--brand); }
.tabbar a.active svg { transform: translateY(-1px); }
@media (min-width: 900px) {
  .app { grid-template-rows: auto auto auto 1fr; }
  .tabbar { grid-row: 3; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(6, max-content); justify-content: center; gap: 6px; }
  .tabbar a { flex-direction: row; min-height: 46px; padding: 0 16px; font-size: .9rem; gap: 8px; }
  .tabbar svg { width: 20px; height: 20px; }
  .view { grid-row: 4; }
}

/* ---------- elementy ---------- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 16px; font: 800 .95rem var(--font-body); cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--surface-2); color: var(--ink); }
.btn.carrot { background: var(--carrot); color: var(--carrot-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid var(--bad); }
.btn.small { padding: 7px 11px; font-size: .82rem; border-radius: 10px; }
.btn.block { width: 100%; }
.icon-btn { border: 0; background: var(--surface-2); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--font-body); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.badge.best { background: var(--carrot); color: var(--carrot-ink); }
.badge.promo { background: var(--promo); color: var(--promo-ink); }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }

label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .85rem; }
input, select, textarea { font: 600 1rem var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

.search { position: relative; }
.search input { padding-left: 40px; border-radius: 999px; box-shadow: var(--shadow); border-color: transparent; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--muted); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; z-index: 30; }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; text-align: left; }
.suggest button:last-child { border-bottom: 0; }

/* ---------- cenówka ---------- */
.tag { display: inline-flex; flex-direction: column; align-items: flex-end; background: var(--tag-bg); color: #12261A; border: 2px solid var(--tag-line); border-radius: 6px; padding: 3px 8px 2px; min-width: 76px; position: relative; line-height: 1; }
.tag .p { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tag .u { font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; color: #4b5d50; }
.tag.promo { background: var(--promo); border-color: #12261A; color: #2A1E00; }
.tag.promo::before { content: "PROMOCJA"; position: absolute; left: -2px; top: -11px; background: #12261A; color: var(--promo); font: 800 .55rem var(--font-body); letter-spacing: .08em; padding: 2px 5px; border-radius: 4px 4px 0 0; }
.tag.best { border-color: var(--carrot); box-shadow: 0 0 0 2px var(--carrot); }
.tag.lg .p { font-size: 1.9rem; }
.tag .old { font-size: .72rem; text-decoration: line-through; color: #6b7a6f; font-weight: 700; }

/* ---------- mapa ---------- */
.map-view { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: var(--surface-2); z-index: 1; }
.map-top { position: absolute; z-index: 5; top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.map-top .chips .chip { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sheet { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.18); max-height: 48%; display: flex; flex-direction: column; transition: max-height .25s ease; max-width: 760px; margin: 0 auto; }
.sheet.collapsed { max-height: 92px; }
.sheet-handle { border: 0; background: none; padding: 10px 0 4px; cursor: pointer; display: flex; justify-content: center; width: 100%; }
.sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-head { padding: 0 16px 8px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sheet-body { overflow-y: auto; padding: 0 16px 14px; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }

.pin { position: relative; display: inline-flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.pin .pin-tag { background: #fff; color: #12261A; border: 2px solid #12261A; border-radius: 6px; padding: 2px 6px; font: 700 .9rem var(--font-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pin .pin-tag small { font: 800 .55rem var(--font-body); text-transform: uppercase; margin-left: 2px; }
.pin::after { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #12261A; margin-top: -1px; }
.pin.promo .pin-tag { background: #FFD23F; }
.pin.best .pin-tag { background: #E0592A; color: #fff; border-color: #8a2a0a; }
.pin.best::after { border-top-color: #8a2a0a; }
.pin.shop .pin-tag { background: #0A3D22; color: #fff; border-color: #0A3D22; font-size: .8rem; }
.pin.shop::after { border-top-color: #0A3D22; }
.pin.dim { opacity: .55; }
.leaflet-div-icon { background: none; border: 0; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2B7BFF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,123,255,.25); transform: translate(-50%,-50%); }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- listy / ranking ---------- */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; text-align: left; width: 100%; }
.item:last-child { border-bottom: 0; }
.item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.4rem; }
.item .rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--font-display); background: var(--surface-2); color: var(--ink); }
.item .rank.r1 { background: var(--carrot); color: var(--carrot-ink); }
.item .t { font-weight: 800; min-width: 0; }
.item .t .name { display: block; overflow: hidden; text-overflow: ellipsis; }
.item .meta { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.item.flagged { opacity: .6; }

.hero { background: var(--brand); color: var(--brand-ink); border-radius: 18px; padding: 18px; display: grid; gap: 6px; }
.hero h1 { font-size: 1.5rem; }
.hero p { margin: 0; opacity: .9; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font: 700 1.5rem var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 700; }
@media (max-width: 420px) { .stat { padding: 10px; } .stat b { font-size: 1.2rem; } .stat span { font-size: .7rem; } }

.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--leaf); border-radius: 4px; }
.meter.full i { background: var(--carrot); }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font: 800 .9rem var(--font-body); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--carrot); }

.photos { display: flex; gap: 8px; overflow-x: auto; }
.photos img { height: 150px; width: auto; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.notice { border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: .9rem; background: var(--surface-2); }
.notice.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.notice.bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
.notice.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); font-weight: 700; }
.empty .big { font-size: 2.2rem; }

.price-edit { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-edit .fields { display: grid; grid-template-columns: 110px auto; gap: 8px; align-items: center; }
.price-edit .full { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-map { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 0; }

.combo { display: grid; gap: 8px; }
.combo-items { display: flex; flex-wrap: wrap; gap: 6px; }
.save { font: 700 1.05rem var(--font-display); color: var(--ok); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- modal / toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 20, 10, .5); }
.modal { position: relative; background: var(--bg); width: 100%; max-width: 560px; max-height: 92%; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 640px) { .modal-wrap { align-items: center; } .modal { border-radius: 20px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 8px; }
.modal-body { overflow-y: auto; padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 800; z-index: 200; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- OUTLET: osobny świat – fiolet + taśma ostrzegawcza ---------- */
.tabbar a.tab-outlet svg { fill: var(--outlet); }
.tabbar a.tab-outlet.active { color: var(--outlet); }
@media (max-width: 420px) { .tabbar a { font-size: .66rem; } .tabbar svg { width: 22px; height: 22px; } }
.outlet-word { display: inline-block; background: var(--outlet); color: var(--outlet-ink); font: 700 .8em var(--font-display); letter-spacing: .08em; padding: 1px 8px; border-radius: 6px; transform: rotate(-2deg); }
.tag.outlet { background: #6A2FD4; border-color: #2A0D63; color: #fff; }
.tag.outlet .u { color: #E3D6FF; }
.tag.outlet::before { content: "OUTLET"; position: absolute; left: -2px; top: -11px; background: repeating-linear-gradient(-45deg, #FFD23F 0 6px, #12261A 6px 12px); color: transparent; font: 800 .55rem var(--font-body); padding: 2px 5px; border-radius: 4px 4px 0 0; }
.tag.outlet::after { content: "OUTLET"; position: absolute; left: 3px; top: -10px; color: #fff; font: 800 .55rem var(--font-body); letter-spacing: .08em; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.badge.outlet { background: var(--outlet); color: var(--outlet-ink); }
.badge.outlet-save { background: var(--outlet-soft); color: var(--outlet); }
.outlet-rank { background: var(--outlet) !important; color: var(--outlet-ink) !important; }
.outlet-box { background: var(--outlet-soft); border: 2px dashed var(--outlet); border-radius: var(--radius); padding: 14px; }
.outlet-card { border: 2px dashed var(--outlet); }
.outlet-notice { background: var(--outlet-soft); }
.btn.outlet-btn { background: var(--outlet); color: var(--outlet-ink); }
.chip.chip-outlet { background: var(--outlet); border-color: var(--outlet); color: var(--outlet-ink); letter-spacing: .06em; }
.chip.chip-outlet.on { box-shadow: 0 0 0 3px var(--promo); }
.outlet-hero { position: relative; overflow: hidden; background: #1B0A3D; color: #fff; border-radius: 18px; padding: 44px 18px 18px; display: grid; gap: 6px; }
.outlet-hero h1 { font-size: 1.5rem; }
.outlet-hero p { margin: 0; opacity: .9; }
.outlet-tape { position: absolute; top: 12px; left: -20px; right: -20px; transform: rotate(-2deg); background: repeating-linear-gradient(-45deg, #FFD23F 0 14px, #12261A 14px 28px); color: #fff; font: 700 .8rem var(--font-display); letter-spacing: .25em; white-space: nowrap; overflow: hidden; padding: 4px 0; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.pin.outlet .pin-tag { background: #6A2FD4; color: #fff; border-color: #2A0D63; }
.pin.outlet::after { border-top-color: #2A0D63; }

.note { display: block; font-size: .82rem; font-weight: 700; color: var(--leaf); font-style: italic; margin-top: 1px; overflow-wrap: anywhere; }
.price-edit .pe-note { font-size: .9rem; padding: 8px 10px; }

/* ---------- TANIAK: mega niska cena – czerwień + ogień ---------- */
.badge.taniak { background: #D7261E; color: #fff; letter-spacing: .04em; }
.tag.taniak { background: #D7261E; border-color: #6B0D08; color: #fff; box-shadow: 0 0 0 2px #FFD23F; }
.tag.taniak .u, .tag.taniak .old { color: #FFE2DE; }
.tag.taniak.promo::before { background: #6B0D08; color: #FFD23F; }
.taniak-rank { background: #D7261E !important; color: #fff !important; }
.taniak-word { display: inline-block; background: #D7261E; color: #fff; font: 700 .8em var(--font-display); letter-spacing: .06em; padding: 1px 8px; border-radius: 6px; transform: rotate(-2deg); }
.chip.chip-taniak { background: #D7261E; border-color: #D7261E; color: #fff; letter-spacing: .04em; }
.chip.chip-taniak.on { box-shadow: 0 0 0 3px var(--promo); }
.pin.taniak .pin-tag { background: #D7261E; color: #fff; border-color: #6B0D08; }
.pin.taniak::after { border-top-color: #6B0D08; }

.share-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- zaufanie, historia, Pro, dokumenty ---------- */
.badge.trust { background: color-mix(in srgb, var(--leaf) 20%, transparent); color: var(--leaf); }
.badge.pro { background: #F2B705; color: #2A1E00; }
.pin.pro .pin-tag { background: #F2B705; color: #2A1E00; border-color: #8A6400; font-size: .85rem; }
.pin.pro::after { border-top-color: #8A6400; }
details.hist summary { cursor: pointer; list-style: none; }
details.hist summary::-webkit-details-marker { display: none; }
details.hist summary::before { content: "▸ "; color: var(--muted); }
details.hist[open] summary::before { content: "▾ "; }
.hist-body { margin-top: 10px; }
.hist-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; color: var(--ink); }
.hist-row:last-child { border-bottom: 0; }
.hist-who { min-width: 0; overflow-wrap: anywhere; }
.conf-item { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.legal h1 { font-size: 1.5rem; } .legal h2 { font-size: 1.1rem; margin-top: 8px; }
.legal ol, .legal ul { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; max-width: 68ch; }
.legal p { max-width: 68ch; margin: 0; }
.legal-links { justify-content: center; padding-top: 6px; gap: 6px; }

.lang-pick { width: auto; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px; font: 800 .8rem var(--font-body); background: var(--surface); cursor: pointer; }
@media (max-width: 400px) { .city-pick { max-width: 38vw; } .lang-pick { padding: 6px 4px; } }

html[lang="en"] .tag.promo::before { content: "PROMO"; }
html[lang="ru"] .tag.promo::before { content: "АКЦИЯ"; }

.legal-note { text-align: center; max-width: 60ch; margin: 0 auto; }
