/* Sami Swoi: strona firmy (widżety na siatce 12 kolumn) i jej motywy. Używane przez stronę publiczną i podgląd w edytorze. */
.sw-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- motyw: tryb dzień / noc w obrębie .sw-site (edytor ma jasną ramkę, a strona firmy ciemną) ---------- */
.sw-site, .sw-site[data-mode="light"] {
  --bg: #F3F6FA; --surface: #FFFFFF; --surface-2: #F1F4F8; --surface-3: #E8EDF3; --ink: #15203A; --muted: #5A6984; --faint: #8592A8; --line: #E1E7EF;
  --ok: #178A5B; --focus: #2F7DE1;
  --shadow: 0 1px 2px rgba(21, 32, 58, .06), 0 12px 32px -12px rgba(21, 32, 58, .18);
  color-scheme: light;
}
.sw-site[data-mode="dark"] {
  --bg: #0D1628; --surface: #131F36; --surface-2: #1A2843; --surface-3: #22324F; --ink: #EAF0F8; --muted: #A2B0C8; --faint: #7484A0; --line: #24344F;
  --ok: #5CD3A0; --focus: #7DB4FF;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
.sw-site { --accent: #D7263D; --brand: var(--accent); --brand-hover: color-mix(in srgb, var(--accent) 86%, #000); --brand-ink: #fff;
  --brand-soft: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --display: 'Onest', system-ui, sans-serif; --body: 'Onest', system-ui, sans-serif;
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --btn-r: 999px;
  color: var(--ink); font-family: var(--body); }
.sw-site[data-font="elegancki"] { --display: 'Fraunces', Georgia, serif; --body: 'Onest', system-ui, sans-serif; }
.sw-site[data-font="mocny"] { --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Onest', system-ui, sans-serif; }
.sw-site[data-font="klasyczny"] { --display: 'Lora', Georgia, serif; --body: 'Source Sans 3', system-ui, sans-serif; }
.sw-site[data-radius="ostry"] { --r-xl: 4px; --r-lg: 4px; --r-md: 2px; --r-sm: 2px; --btn-r: 4px; }
.sw-site[data-radius="okragly"] { --r-xl: 36px; --r-lg: 28px; --r-md: 20px; --r-sm: 14px; --btn-r: 999px; }
.sw-site .btn { border-radius: var(--btn-r); }
.sw-site .btn--brand { background: var(--accent); border-color: var(--accent); color: var(--brand-ink); }
.sw-site .btn--brand:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.sw-site .card { background: var(--surface); color: var(--ink); }
.sw-site h1, .sw-site h2, .sw-site h3 { font-family: var(--display); }
.sw-site .item__buy, .sw-site .facts a { color: var(--accent); }
.sw-site[data-font="elegancki"] h1, .sw-site[data-font="elegancki"] h2, .sw-site[data-font="klasyczny"] h1, .sw-site[data-font="klasyczny"] h2 { font-weight: 700; letter-spacing: -.01em; }

/* szerokość strony */
.sw-wrap[data-width="waska"] { max-width: 880px; }

/* ---------- siatka ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(64px, auto); gap: 16px; }
.sw-cell { min-width: 0; display: flex; }
.sw-cell > .sw-w { flex: 1; min-width: 0; }
.sw-cell > .sw-w > .card { height: 100%; }
@media (max-width: 767px) {
  .sw-grid { display: flex; flex-direction: column; gap: 14px; }
  .sw-cell { display: block; }
  .sw-w--spacer { display: none; }
}

/* ---------- widżety ---------- */
.sw-w--hero { position: relative; min-height: 230px; height: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-3); color: #fff; display: flex; align-items: flex-end; }
.sw-hero__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw-w--hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 10, 24, .72)); }
.sw-hero__head { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 18px; padding: 22px 26px; width: 100%; }
.sw-hero__logo { width: 84px; height: 84px; flex: none; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); overflow: hidden; }
.sw-hero__logo .ico { width: 38px; height: 38px; stroke-width: 1.6; }
.sw-hero__logo--img { background: #fff; }
.sw-hero__logo--img img { width: 100%; height: 100%; object-fit: cover; }
.sw-w--hero h1 { font-size: clamp(26px, 4vw, 42px); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.sw-hero__sub { margin: 6px 0 0; color: rgba(255, 255, 255, .92); font-size: 15.5px; }
.sw-hero__sub .ok { color: #9BF0C8; }
@media (max-width: 767px) { .sw-w--hero { min-height: 200px; } .sw-hero__logo { width: 64px; height: 64px; } .sw-hero__head { padding: 16px; gap: 12px; } }

.sw-w .lead { margin: 0 0 10px; font-size: 17px; max-width: 64ch; }
.sw-w .lead:last-child { margin-bottom: 0; }
.sw-w--text p { margin: 0 0 10px; font-size: 16.5px; }
.sw-w--text p:last-child { margin-bottom: 0; }
.sw-open-line { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 15px; }
.sw-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sw-open::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sw-open--yes { color: var(--ok); }
.sw-open--no { color: var(--faint); }
.sw-hours td:first-child { color: var(--muted); }
.sw-hours tr.is-today td { font-weight: 700; color: var(--ink); }
.sw-w--gallery .pics { grid-template-columns: repeat(var(--cols, 3), 1fr); }
@media (max-width: 767px) { .sw-w--gallery .pics { grid-template-columns: 1fr 1fr; } }
.sw-figure { margin: 0; height: 100%; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.sw-figure img { width: 100%; flex: 1; min-height: 0; object-fit: cover; display: block; }
.sw-figure figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.sw-w--video, .sw-video { height: 100%; }
.sw-video { position: relative; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.sw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sw-social { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--btn-r); background: var(--surface-2); font-weight: 600; font-size: 14.5px; text-transform: capitalize; }
.sw-cta { min-height: 56px; font-size: 17px; }
.sw-w--cta { display: flex; align-items: stretch; height: 100%; }
.sw-w--cta .btn { height: 100%; }
.sw-empty { display: grid; place-items: center; text-align: center; min-height: 80px; border: 1.5px dashed var(--line); box-shadow: none; }
.sw-mapcard { padding: 0 !important; overflow: hidden; }
.sw-mapcard .minimap, .sw-map { height: 100%; min-height: 200px; margin: 0; border-radius: var(--r-lg); }
.sw-pin { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--c); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.sw-pin svg { rotate: 45deg; width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sw-w--shop .item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 6px; }
.sw-w--posts .post p { margin: 4px 0 0; font-size: 16px; }

/* pasek właściciela nad stroną */
.sw-ownerbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-md, 14px); background: color-mix(in srgb, #F4A51C 18%, var(--surface)); font-size: 14.5px; }

/* ---------- strony pomocnicze: logowanie, konto, kreator ---------- */
.sw-narrow { max-width: 640px; }
.sw-narrow .card { margin-bottom: 16px; }
.sw-narrow h1 { font-size: 30px; margin-bottom: 8px; }
.sw-stack { display: grid; gap: 10px; margin-top: 18px; }
.sw-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sw-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.sw-row__btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .sw-row { grid-template-columns: 44px 1fr; } .sw-row__btns { grid-column: 1 / -1; justify-content: stretch; } .sw-row__btns .btn { flex: 1; } }
.sw-form { margin-top: 18px; }
.sw-pick { position: relative; }
.sw-pickmap { height: 280px; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.sw-cross { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.sw-cross span { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.sw-cross span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--brand); }
.sw-slug { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding-left: 14px; }
.sw-slug b { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.sw-slug input { border: 0 !important; background: none !important; min-height: 46px; padding-left: 2px !important; }
#slugmsg[data-ok="1"] { color: var(--ok); }
#slugmsg[data-ok="0"] { color: var(--brand); }
.sw-dev h2 { font-size: 16px; margin-bottom: 10px; }
