/* ============================================================
   Twoja Stopka — Marketing Hero
   Redesign: spokojny, redakcyjny; małe promienie, dużo światła.
   Paleta brandu: biel, czerń (grafit), czerwień logo #c0272d.
   ============================================================ */
:root {
  --accent: #c0272d;
  --accent-dark: #9e1f24;
  --accent-soft: #f7e8e8;
  --ink: #201e1d;
  --ink-2: #2d2b2b;
  --muted: #6f6a68;
  --line: #d7d3d3;
  --bg: #f3f2f2;
  --bg-warm: #f8f4f4;
  --surface-2: #eae9e9;
  --danger: #c0392b;
  --ok: #1e7b3a;
  --r-s: 2px;
  --r-m: 4px;
  --r-l: 6px;
  --shadow: 0 1px 2px rgba(45, 43, 43, .06), 0 4px 14px rgba(45, 43, 43, .07);
  --shadow-lg: 0 2px 6px rgba(45, 43, 43, .08), 0 18px 44px rgba(45, 43, 43, .18);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bar-h: 60px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; font-size: 15px; }
body.is-splash { background: var(--bg-warm); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }
::selection { background: var(--accent-soft); }
.hint { color: var(--muted); font-size: .92rem; }
.tiny { font-size: .78rem; color: var(--muted); }
.req { color: var(--danger); }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--sans); font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: var(--r-m); padding: .72rem 1.3rem; font-size: .95rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--ink); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.btn-secondary:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn-xl { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; font-weight: 500; text-decoration: none; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--accent-dark); }

/* ---------- SPLASH ---------- */
.splash { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; color: var(--ink); padding: 3rem 1.5rem 1.5rem; position: relative; overflow: hidden; background: var(--bg-warm); }
.splash-inner { position: relative; width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; flex: 1; }
.splash-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 2.4rem; }
.splash-logo { width: 148px; }
.tools-badge { display: inline-block; background: var(--ink); color: #fff; border-radius: var(--r-s); padding: .2rem .55rem .16rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.splash h1 { margin-bottom: 1.1rem; }
.splash-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 44ch; margin-bottom: 2.2rem; }
.splash-quote { margin-top: 3.6rem; padding: 1.6rem 0 0 2.9rem; border-top: 1px solid var(--line); max-width: 560px; position: relative; }
.quote-mark { position: absolute; left: 0; top: 1.5rem; width: 32px; height: 32px; border-radius: var(--r-s); background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.7rem; line-height: 1; padding-top: .55rem; }
.splash-quote p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: .7rem; }
.quote-cite { display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--muted); }
.quote-cite b { color: var(--ink); font-weight: 600; }
.quote-cite .sep { width: 24px; height: 1px; background: var(--line); }
.splash-foot { position: relative; text-align: center; font-size: .8rem; color: var(--muted); margin: 2.5rem 0 0; }
.splash-foot a { color: var(--muted); text-decoration: none; }
.splash-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Wizual: prosta karta stopki na redakcyjnym rastrze, bez przechyłów */
.splash-visual { display: flex; justify-content: center; position: relative; }
.splash-visual::before { content: ""; position: absolute; width: 320px; height: 280px; right: -36px; top: -70px; background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px); background-size: 20px 20px; opacity: .8; }
.card-stack { position: relative; width: 470px; height: 300px; }
.stack-card { position: absolute; inset: 0; border-radius: var(--r-m); }
.stack-card.back2 { transform: translate(26px, 26px); background: transparent; border: 1px solid var(--line); }
.stack-card.back1 { transform: translate(13px, 13px); background: var(--surface-2); border: 1px solid var(--line); }
.stack-card.front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 36px 34px; display: flex; align-items: center; overflow: hidden; }
.stack-card.front > * { zoom: .8; }
.card-stack::before { content: "PRZYKŁADOWA STOPKA"; position: absolute; top: -32px; left: 1px; font: 600 .64rem/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
.card-stack::after { content: ""; position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; background: var(--accent); z-index: 2; }
@media (max-width: 900px) { .splash-inner { grid-template-columns: 1fr; gap: 2rem; } .splash-visual { display: none; } .splash-quote { margin-top: 2.4rem; } }

/* ---------- APP SHELL ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.app-bar { height: var(--bar-h); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 1.4rem; position: sticky; top: 0; z-index: 10; }
.app-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.18rem; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-s); background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.brand-name b { color: var(--accent); font-weight: 600; }
.by { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--sans); font-size: .72rem; color: var(--muted); margin-left: .6rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.by img { height: 20px; width: auto; }
.app-bar-right { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; }
.app-bar-right a.link-btn { color: var(--muted); }
.app-bar-right a.link-btn:hover { color: var(--accent-dark); }
@media (max-width: 640px) { .by, .app-bar-right a { display: none; } }

/* ---------- KREATOR ---------- */
.builder { flex: 1; display: grid; grid-template-columns: minmax(50%, 720px) 1fr; min-height: calc(100vh - var(--bar-h)); }
.panel { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; height: calc(100vh - var(--bar-h)); position: sticky; top: var(--bar-h); }
.tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .85rem .25rem .7rem; cursor: pointer; font-family: var(--sans); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .73rem; font-weight: 600; transition: color .15s, border-color .15s, background .15s; }
.tab .tab-num { width: 21px; height: 21px; border-radius: var(--r-s); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: .72rem; font-weight: 700; transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); background: #fff; }
.tab.active .tab-num { background: var(--accent); color: #fff; }
.tab.done { color: var(--ink-2); }
.tab.done .tab-num { background: var(--accent-soft); color: var(--accent-dark); }
.panel-body { flex: 1; overflow-y: auto; padding: 1.5rem 1.8rem 2rem; }
.panel-body h2 { margin-bottom: .3rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade-up .22s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.panel-foot { border-top: 1px solid var(--line); padding: .8rem 1.6rem; display: flex; justify-content: space-between; gap: .8rem; background: var(--bg-warm); }

/* Szablony w panelu */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 1rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: var(--r-s); padding: .34rem .7rem; font-size: .8rem; font-weight: 500; cursor: pointer; font-family: var(--sans); color: var(--ink-2); transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.tpl { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer; overflow: hidden; text-align: left; padding: 0; transition: border-color .15s, box-shadow .15s, transform .15s; font-family: var(--sans); }
.tpl:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.tpl.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tpl-preview { height: 132px; padding: 12px 14px; overflow: hidden; display: block; background: #fff; border-bottom: 1px solid var(--surface-2); }
.tpl-preview-inner { width: 560px; pointer-events: none; transform-origin: 0 0; }
.tpl-preview-inner table { max-width: none !important; }
.tpl-name { display: flex; align-items: center; justify-content: space-between; padding: .5rem .7rem; font-size: .8rem; font-weight: 600; color: var(--ink); background: var(--bg-warm); }
.tpl.active .tpl-name { background: var(--accent-soft); color: var(--accent-dark); }
.tpl.active .tpl-name::after { content: "✓"; color: var(--accent-dark); }

/* Lightbox podglądu szablonu (hover) */
.tpl-pop { position: fixed; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-lg); padding: 1rem 1.3rem 1.3rem; opacity: 0; pointer-events: none; transform: translateY(6px) scale(.985); transition: opacity .16s ease, transform .16s ease; }
.tpl-pop.show { opacity: 1; transform: none; }
.tpl-pop-label { font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--surface-2); }
.tpl-pop-body { width: 560px; max-width: calc(100vw - 80px); overflow: hidden; background: #fff; }

/* Formularze */
.fields { display: block; }
.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .32rem; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--r-s); font: inherit; font-size: .92rem; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #a8a2a0; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b9b4b2; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(45, 43, 43, .12); }
.field input.invalid { border-color: var(--danger); }
.field .help { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field-group { border: 0; padding: 1.1rem 0 0; margin: 1.3rem 0 .6rem; border-top: 1px solid var(--surface-2); }
.field-group legend { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0; margin-bottom: .6rem; display: block; }
.na-note { background: var(--bg-warm); border: 1px dashed var(--line); border-radius: var(--r-m); padding: .8rem 1rem; font-size: .85rem; color: var(--muted); }

/* Styl: kolory / czcionki / rozmiar */
.color-field { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.color-field input[type="color"] { width: 40px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 2px; background: #fff; cursor: pointer; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: var(--r-s); border: 0; box-shadow: inset 0 0 0 1px rgba(32, 30, 29, .12); cursor: pointer; padding: 0; transition: transform .1s, box-shadow .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; }
.seg-btn { border: 0; background: none; padding: .5rem .95rem; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--muted); border-right: 1px solid var(--line); transition: background .15s, color .15s; }
.seg-btn:hover { color: var(--ink); background: var(--bg-warm); }
.seg-btn:last-child { border-right: 0; }
.seg-btn.active { background: var(--ink); color: #fff; }
.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.font-opt { border: 1px solid var(--line); border-radius: var(--r-s); padding: .55rem .8rem; background: #fff; cursor: pointer; text-align: left; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.font-opt:hover { border-color: var(--accent); }
.font-opt.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Obrazki */
.image-field { display: flex; gap: .8rem; align-items: flex-start; }
.image-drop { flex: 1; border: 1.5px dashed var(--line); border-radius: var(--r-m); padding: 1rem; text-align: center; font-size: .82rem; line-height: 1.55; color: var(--muted); cursor: pointer; background: var(--bg-warm); transition: border-color .15s, background .15s; }
.image-drop b { color: var(--accent-dark); font-weight: 600; }
.image-drop:hover, .image-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.image-drop input { display: none; }
.image-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.image-url-toggle { font-size: .78rem; margin-top: .35rem; }
.image-remove { font-size: .78rem; color: var(--danger); background: none; border: 0; cursor: pointer; padding: 0; margin-top: .3rem; }
.uploading { color: var(--accent-dark); }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .87rem; margin: .9rem 0; cursor: pointer; }
.check input { margin-top: .2rem; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--accent); }
.check a { color: var(--accent-dark); }
.check-highlight { background: var(--bg-warm); border: 1px solid var(--ink-2); border-radius: var(--r-m); padding: .85rem; }
.form-error { background: #faeae7; color: #96301f; border-radius: var(--r-s); padding: .6rem .9rem; font-size: .88rem; margin-bottom: .9rem; }

/* ---------- SCENA / PODGLĄD ---------- */
.stage { padding: 1.6rem 2.2rem 2.4rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.stage-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.stage-title { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; font-size: .84rem; }
.toggle input { position: absolute; opacity: 0; }
.toggle .switch { width: 34px; height: 20px; border-radius: 999px; background: #c6c1bf; position: relative; transition: background .15s; }
.toggle .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle input:checked + .switch { background: var(--accent); }
.toggle input:checked + .switch::after { left: 16px; }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

.mail-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 420px; transition: background .2s; }
.mail-head { border-bottom: 1px solid var(--surface-2); padding: 1rem 1.6rem; }
.mail-row { display: flex; align-items: center; gap: .8rem; padding: .35rem 0; font-size: .82rem; color: var(--muted); }
.mail-row span { width: 52px; }
.fake { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); margin: 0 0 12px; }
.fake.w30 { width: 30%; } .fake.w40 { width: 40%; margin: 0; } .fake.w60 { width: 60%; margin: 0; } .fake.w70 { width: 70%; } .fake.w90 { width: 90%; }
.mail-body { padding: 1.6rem 1.8rem 2rem; flex: 1; overflow-x: auto; }
.sig-wrap { margin-top: 26px; }
.sig-greet { font-family: Arial, sans-serif; font-size: 13px; color: #555; margin-bottom: 14px; }
.mail-mock.dark { background: #1c1c1e; border-color: #1c1c1e; }
.mail-mock.dark .mail-head { border-color: #333; }
.mail-mock.dark .fake { background: #2c2c2e; }
.mail-mock.dark .mail-row { color: #888; }
.mail-mock.dark .sig-greet { color: #bbb; }
.stage-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stage-note { font-size: .85rem; color: var(--muted); }

@media (max-width: 960px) {
  .builder { grid-template-columns: 1fr; }
  .panel { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-body { max-height: none; }
  .stage { padding: 1.2rem; }
  .mail-mock { min-height: 260px; }
  .tab .tab-label { font-size: .67rem; }
}

/* ---------- WYNIK ---------- */
.result { flex: 1; padding: 2.4rem 1.5rem 3rem; }
.result-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .result-inner { grid-template-columns: 1fr; } }
.result-head h2 { font-size: 2rem; }
.result-mock { min-height: 0; margin: 1.4rem 0 0; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.copy-status { min-height: 1.4em; font-size: .9rem; color: var(--ok); font-weight: 600; margin: .5rem 0; }
.html-details summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.html-details summary:hover { color: var(--ink); }
.html-details textarea { width: 100%; margin-top: .5rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; border: 1px solid var(--line); border-radius: var(--r-s); padding: .6rem; background: #fff; color: var(--ink-2); }
.howto { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 1.4rem; }
.howto .seg { margin-bottom: 1rem; flex-wrap: wrap; }
.howto-panel { display: none; padding-left: 1.2rem; font-size: .9rem; margin: 0; }
.howto-panel.active { display: block; animation: fade-up .2s ease both; }
.howto-panel li { margin-bottom: .5rem; }
.howto-panel li::marker { color: var(--accent); font-weight: 600; }
.promo { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 1.5rem; margin-top: 1.2rem; }
.promo img { background: #fff; padding: 7px 12px; border-radius: var(--r-s); }
.promo p { margin: .9rem 0 1.1rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.promo b { color: #fff; }
.promo .btn-secondary { background: var(--accent); color: #fff; box-shadow: none; }
.promo .btn-secondary:hover { background: #d4353b; }

/* ---------- MODALE ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(32, 30, 29, .5); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-lg); width: min(520px, 100%); padding: 2rem 2rem 1.4rem; max-height: 92vh; overflow-y: auto; animation: pop .18s ease-out; }
.modal-wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: .7rem; right: .8rem; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .4rem; border-radius: var(--r-s); }
.modal-close:hover { color: var(--ink); background: var(--surface-2); }
.modal-card h2 { font-size: 1.55rem; }

/* ---------- Toast ---------- */
/* ---------- Strony prawne ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
.brand .brand-name b { color: var(--accent); font-weight: 600; }
.nav .btn { background: var(--accent); color: #fff; }
.nav .btn:hover { background: var(--accent-dark); }
.legal { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.legal-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 2.5rem; }
.legal-brand img { width: 132px; }
.legal h1 { font-size: 2.1rem; margin-bottom: .4em; }
.legal h2 { font-size: 1.2rem; margin-top: 2em; }
.legal p, .legal li { font-size: .95rem; color: var(--ink-2); }
.legal ol, .legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .meta { color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.2rem; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.legal-foot a { color: var(--muted); }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 6px); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r-m); font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 60; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.stage-tools { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.stage-icon-style .seg-btn { padding: .38rem .7rem; font-size: .78rem; display: inline-flex; align-items: center; }
.icon-style-seg { flex-wrap: wrap; }

/* Baner cookies (wspólna zgoda z pawelszymkow.com) */
.mh-cookie{position:fixed;left:16px;bottom:16px;z-index:200;max-width:420px;background:#fff;border:1px solid rgba(10,10,11,.12);border-radius:16px;padding:18px 20px;box-shadow:0 24px 60px -24px rgba(10,10,11,.35);font-size:14px;line-height:1.5;color:#0a0a0b}
.mh-cookie[hidden]{display:none}
.mh-cookie p{margin:0 0 14px}
.mh-cookie a{color:inherit}
.mh-cookie div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.mh-cookie button{font:inherit;font-weight:600;border-radius:10px;padding:9px 16px;border:1px solid rgba(10,10,11,.14);background:#f3f2f2;color:#0a0a0b;cursor:pointer}
.mh-cookie button.is-main{background:#0a0a0b;border-color:#0a0a0b;color:#fff}
@media (max-width:560px){.mh-cookie{left:10px;right:10px;bottom:10px;max-width:none}}

/* Kadrowanie zdjęcia do stopki */
.crop-modal{z-index:60}
.crop-modal .modal-card{width:min(460px,100%)}
.crop-modal .hint{margin:.3rem 0 1rem;font-size:.9rem;color:var(--muted)}
.crop-stage{position:relative;width:min(340px,100%);aspect-ratio:1;margin:0 auto;overflow:hidden;border-radius:12px;background:#e9e7e6;cursor:grab;touch-action:none;user-select:none}
.crop-stage.is-drag{cursor:grabbing}
.crop-stage img{position:absolute;left:0;top:0;max-width:none;pointer-events:none}
.crop-circle{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(255,255,255,.38);outline:2px dashed rgba(255,255,255,.95);outline-offset:-2px;pointer-events:none}
.crop-zoom{display:flex;align-items:center;gap:.8rem;margin:1rem auto 0;width:min(340px,100%);font-size:.85rem;color:var(--muted)}
.crop-zoom input{flex:1;accent-color:#c0272d}
.crop-nudge{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin:.8rem 0 0}
.crop-nudge button{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:38px;height:36px;padding:0 .7rem;font:inherit;cursor:pointer}
.crop-nudge button:hover{border-color:var(--ink)}
.crop-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.2rem}
