:root {
  --bg: #f3f4f6; --panel: #ffffff; --ink: #15171a; --muted: #5d636b; --line: #e2e5e9;
  --accent: #0b6cff; --accent-ink: #ffffff; --accent-text: var(--accent); --soft: #eef3ff; --warn: #9a5b00; --warn-bg: #fff6e5; --err: #b3261e; --err-bg: #fdecea;
  --view-bg: #e9ebee; --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
button { font: inherit; color: inherit; }
.py-test { background: #1d1d1f; color: #ffd36b; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-align: center; padding: 6px 12px; }
.py { display: flex; flex-direction: column; }
.py-view { position: relative; height: 58vh; min-height: 340px; background: var(--view-bg); }
/* seo konf1 27.11: na pojemniku pan-y — pionowy gest przewija stronę; obrót poziomym gestem (canvas ustawia JS: ustawDotyk) */
.py-canvas, .py-canvas canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
html.py-pelny .py-canvas { touch-action: none; }
.py-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--view-bg); }
.py-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.py-view-bar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.py-scale { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--panel) 80%, transparent); padding: 2px 8px; border-radius: 99px; }
.py-noc .py-scale { background: rgba(0,0,0,.5); color: #cfd3d8; }
.py-seg { display: inline-flex; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.py-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 99px; cursor: pointer; min-height: 36px; }
.py-seg button.on { background: var(--ink); color: var(--panel); }
.py-seg.wide { display: flex; border-radius: var(--radius); background: var(--bg); }
.py-seg.wide button { flex: 1; border-radius: 9px; text-align: left; padding: 10px 12px; }
.py-seg.wide button small { display: block; font-size: 12px; opacity: .75; }
.py-seg.wide button.on { background: var(--accent); color: var(--accent-ink); }
.py-chipbtn { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, transparent); border-radius: 99px; padding: 7px 14px; cursor: pointer; min-height: 36px; }
.py-chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--panel); }

.py-panel { padding: 16px; background: var(--panel); }
.py-head h1 { font-size: 22px; margin: 0; }
.py-wym { margin: 2px 0 0; color: var(--muted); }
.py-group { border-top: 1px solid var(--line); padding: 14px 0; }
.py-group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.py-typy { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.py-typ { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 8px; cursor: pointer; text-align: left; min-height: 44px; }
.py-typ svg { width: 100%; height: 64px; display: block; margin-bottom: 4px; }
.py-typ b { display: block; font-size: 14px; }
.py-typ span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.py-typ[aria-checked="true"] { border-color: var(--accent); background: var(--soft); }
.py-row { display: block; margin: 0 0 12px; }
.py-row > span { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 500; }
.py-row input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.py-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.py-chips button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 9px; padding: 8px 12px; cursor: pointer; min-height: 40px; min-width: 52px; }
.py-chips button small { color: var(--warn); font-size: 11px; display: block; }
.py-chips button[aria-checked="true"] { border-color: var(--accent); background: var(--soft); font-weight: 600; }
.py-chips button:disabled { opacity: .4; cursor: not-allowed; }
.py-sw { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.py-sw button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.py-sw button[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.py-sw label { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.py-check { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; }
.py-check input { width: 20px; height: 20px; accent-color: var(--accent); }
input[type=color] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: none; padding: 2px; }
.py-upload { display: block; border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 14px; text-align: center; cursor: pointer; }
.py-upload { position: relative; }
/* pole pliku ukryte wizualnie, ale osiągalne klawiaturą (przegląd seo 2026-11-28-logo, drobne 5) */
.py-upload input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.py-upload:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.py-upload span { font-weight: 600; color: var(--accent-text); }
.py-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.py-uwagi div { border-radius: 9px; padding: 8px 10px; margin: 0 0 8px; font-size: 13px; }
.py-uwagi .w { background: var(--warn-bg); color: var(--warn); }
.py-uwagi .e { background: var(--err-bg); color: var(--err); }
.py-price { background: var(--panel); border-top: 2px solid var(--ink); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.py-price-l { color: var(--muted); font-size: 13px; }
.py-tag { background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.py-cena { font-size: 28px; font-weight: 700; margin: 2px 0; }
.py-cena-info { font-size: 13px; color: var(--muted); }
.py-zakres, .py-termin { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.py-cta { width: 100%; margin-top: 12px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 14px; cursor: pointer; min-height: 48px; }
.py-dlg { border: 0; border-radius: 16px; padding: 0; background: var(--panel); color: var(--ink); width: min(520px, calc(100vw - 32px)); }
.py-dlg::backdrop { background: rgba(0,0,0,.45); }
.py-dlg form { padding: 18px; }
.py-dlg h2 { margin: 0 0 8px; font-size: 19px; }
.py-dlg label { display: block; font-size: 13px; font-weight: 500; margin: 10px 0 0; }
.py-dlg input, .py-dlg textarea { width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 10px; font: inherit; margin-top: 4px; }
.py-dlg img { width: 100%; border-radius: 9px; background: var(--view-bg); max-height: 200px; object-fit: contain; }
.py-form-sum { font-size: 13px; color: var(--muted); }
.py-dlg-btns { display: flex; gap: 8px; margin-top: 12px; }
.py-dlg-btns button { flex: 1; margin: 0; }
.py-dlg-btns button:first-child { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); cursor: pointer; }
.py-err { background: var(--err-bg); color: var(--err); border-radius: 9px; padding: 10px; font-size: 13px; }
.py-ok { background: #e7f6ec; color: #1d6b38; border-radius: 9px; padding: 10px; font-size: 13px; }

/* telefon: stały pasek z ceną i przyciskiem */
.py-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.py-mbar small { display: block; font-size: 11px; color: var(--warn); }
.py-mbar b { font-size: 18px; }
.py-mbar .py-cta { width: auto; margin: 0; padding: 12px 22px; }
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .py-mbar { display: none; }
  .py { flex-direction: row; height: calc(100vh - 29px); }
  .py-view { flex: 1; height: auto; }
  /* cena w stałej stopce panelu — opcje przewijają się nad nią, nic nie zachodzi na nagłówki */
  .py-panel { width: 420px; border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 0; }
  .py-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 0; }
  .py-price { flex: none; padding: 12px 16px 14px; box-shadow: 0 -6px 14px rgba(0,0,0,.06); }
  .py-price .py-zakres { margin-top: 6px; }
}

/* tryb osadzenia (?embed=1) — iframe na stronie usługi; wysokości w px, bo vh w iframie dopasowanym do treści się zapętla */
.py-embed body { padding-bottom: 0; background: transparent; }
.py-embed .py-test, .py-embed .py-mbar { display: none; }
.py-embed .py-view { height: 440px; min-height: 0; }
@media (min-width: 900px) {
  .py-embed .py { height: 780px; }
  .py-embed .py-view { height: auto; }
}
.py-do-ceny { display: none; }
@media (max-width: 899px) {
  .py-embed .py-do-ceny { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none; padding: 6px 0; min-height: 32px; }
}

/* motyw ciemny strony nadrzędnej (omineo.com data-theme="dark") */
.py-ciemny { color-scheme: dark; --warn: #ffcf7a; --warn-bg: rgba(255,190,80,.14); --err: #ff9b93; --err-bg: rgba(255,90,80,.16); }
.py-ciemny .py-ok { background: rgba(80,200,120,.15); color: #8fe0a8; }
.py-ciemny .py-price, .py-ciemny .py-mbar { box-shadow: 0 -6px 14px rgba(0,0,0,.35); }
.py-ciemny .py-price { border-top-color: var(--line); }

/* ---- P1 (seo, przegląd #10201, 27.11.2026): karty typów 5 w rzędzie, opis tylko wybranego; telefon: skrót + tryb pełnoekranowy */
.py-typy { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.py-typ { padding: 6px 2px; text-align: center; }
.py-typ svg { height: 46px; margin-bottom: 2px; }
.py-typ b { font-size: 11.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.py-typ span { display: none; }
.py-typ-opis { margin-top: 8px; font-size: 13px; }
.py-konf, .py-gotowe, .py-cta2 { display: none; }
.py-cta2 { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line); }
@media (max-width: 899px) {
  .py-typy { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .py-typy::-webkit-scrollbar { display: none; }
  .py-typ { flex: 0 0 96px; scroll-snap-align: start; }
  html:not(.py-pelny) .py-g-wiecej { display: none; }
  html:not(.py-pelny) .py-konf { display: inline-flex; gap: 6px; align-items: center; position: absolute; right: 12px; bottom: 10px; border: 0; border-radius: 99px;
    background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 10px 18px; min-height: 44px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
  html:not(.py-pelny) .py-cta2 { display: block; }
  html:not(.py-pelny) .py-do-ceny { display: none !important; }
  .py-embed .py-view { height: min(440px, 100vw); }
}
html.py-pelny body { overflow: hidden; padding-bottom: 0; }
html.py-pelny .py { position: fixed; inset: 0; height: auto; display: flex; flex-direction: column; background: var(--panel); }
html.py-pelny .py-view { flex: 0 0 40%; height: auto; min-height: 0; }
html.py-pelny .py-scale { display: none; }
html.py-pelny .py-gotowe { display: block; position: absolute; right: 12px; top: 12px; border: 0; border-radius: 99px; background: var(--ink); color: var(--panel);
  font-weight: 600; padding: 8px 18px; min-height: 40px; cursor: pointer; }
html.py-pelny .py-view-bar { top: auto; bottom: 8px; right: 8px; left: 8px; gap: 6px; }
html.py-pelny .py-view-bar .py-seg button, html.py-pelny .py-view-bar .py-chipbtn { min-height: 32px; padding: 5px 11px; font-size: 13px; }
html.py-pelny .py-gotowe { padding: 6px 16px; min-height: 36px; top: 8px; right: 8px; }
html.py-pelny .py-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; }
html.py-pelny .py-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px 16px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.py-pelny .py-head h1 { font-size: 18px; }
html.py-pelny .py-price { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; border-top: 1px solid var(--line);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 14px rgba(0,0,0,.08); }
html.py-pelny .py-price > * { display: none; }
html.py-pelny .py-price > #py-cena { display: block; font-size: 20px; margin: 0; grid-column: 1; }
html.py-pelny .py-price > #py-cena-info { display: block; font-size: 12px; grid-column: 1; }
html.py-pelny .py-price > #py-zapytaj { display: block; grid-column: 2; grid-row: 1 / span 2; width: auto; margin: 0; padding: 12px 18px; }
html.py-pelny .py-mbar, html.py-pelny .py-do-ceny { display: none !important; }

/* okno zapytania (#10208): krzyżyk, mieści się w ekranie, treść przewijana, przyciski przyklejone */
.py-dlg { max-height: calc(100dvh - 24px); max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain; }
.py-dlg form { position: relative; }
.py-dlg-x { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.py-dlg h2 { padding-right: 40px; }
.py-dlg-btns { position: sticky; bottom: -18px; background: var(--panel); padding: 10px 0 18px; margin-bottom: -18px; }

.py-noc-info { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 99px; pointer-events: none; }

/* ---- P3 (seo, przegląd #10201, 27.11.2026): cena w 2 liniach + „Dane techniczne”, logo jako krok 2, skala wyceny indywidualnej */
.py-typy { gap: 4px; }
.py-typ { padding: 6px 1px; }
.py-typ b { font-size: 10.5px; letter-spacing: -.02em; }
.py-price-l { font-size: 13px; }
.py-cena { margin: 0; line-height: 1.15; }
.py-od { margin-top: 4px; }
.py-dane { margin-top: 8px; font-size: 13px; }
.py-dane summary { cursor: pointer; color: var(--accent-text); font-weight: 600; min-height: 32px; display: flex; align-items: center; list-style: none; }
.py-dane summary::-webkit-details-marker { display: none; }
.py-dane summary::after { content: '▾'; margin-left: 6px; font-size: 11px; }
.py-dane[open] summary::after { content: '▴'; }
.py-dane > div { margin-top: 2px; }
.py-uwagi .i { background: var(--soft); color: var(--ink); }
.py-H-skala { position: relative; display: block; height: 18px; margin-top: -2px; font-size: 11px; color: var(--warn); }
.py-H-skala i { position: absolute; left: var(--od, 100%); right: 0; top: 0; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(45deg, var(--warn) 0 4px, transparent 4px 8px); opacity: .7; }
.py-H-skala em { position: absolute; right: 0; top: 4px; font-style: normal; }
.py-logo-btn { font-weight: 600; }
#py-sek .py-hint { margin-bottom: 12px; }
@media (max-width: 899px) { html:not(.py-pelny) .py-logo-btn { display: none; } }
html.py-pelny .py-logo-btn { display: none; }
html.py-pelny .py-dokl { display: none; }

/* ---- konf1 (seo, 27.11.2026): miejsce na karty typów przed JS, +/− przybliżenia, podpowiedź kółka */
#py-typy:empty { min-height: 74px; }
@media (max-width: 899px) { #py-typy:empty { min-height: 66px; } }
.py-zoom { display: inline-flex; gap: 4px; }
.py-zoom .py-chipbtn { min-width: 36px; padding-left: 0; padding-right: 0; font-weight: 600; }
@media (max-width: 899px) { html:not(.py-pelny) .py-zoom { display: none; } }
.py-kolko { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; text-align: center; pointer-events: none;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--panel); padding: 10px 16px; border-radius: var(--radius); font-size: 14px; }
.py-fallback.py-czeka { opacity: .55; }
.py-loading { place-items: end center; padding-bottom: 44px; font-size: 13px; }

/* ---- konf2 (seo, 27.11.2026): 360 px — przyciski podglądu w jednym rzędzie, w trybie pełnym pod kanwą; cena w pasku w 1 linii */
.py-view-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.py-view-bar::-webkit-scrollbar { display: none; }
.py-view-bar > * { flex: 0 0 auto; }
@media (max-width: 400px) {
  .py-view-bar { gap: 5px; left: 8px; right: 8px; }
  .py-seg button, .py-chipbtn { padding: 6px 10px; font-size: 13px; }
  html.py-pelny .py-zoom { display: none; }
}
html.py-pelny .py-canvas { height: calc(100% - 46px); }
html.py-pelny .py-view-bar { bottom: 6px; }
html.py-pelny .py-price > #py-cena { white-space: nowrap; }
@media (max-width: 400px) {
  html.py-pelny .py-price > #py-cena { font-size: 18px; }
  html.py-pelny .py-price > #py-zapytaj { padding: 12px 14px; }
}
.py-kolko { top: 50%; }

/* ---- Konstrukcja Standard/Premium i listwa LED (#10214/#10264, 27.11.2026) */
.py-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; border: 1px solid currentColor;
  font: italic 600 11px/1 Georgia, serif; vertical-align: 1px; cursor: help; opacity: .75; }
.py-i:hover, .py-i:focus-visible { opacity: 1; }
#py-konstr-info { margin-top: 8px; }
#py-listwa-row { margin-top: 12px; }

/* ---- Logo (seo #10522, 28.11.2026): przetwarzanie pliku i uwagi o logo */
.py-upload.py-czeka { opacity: .7; cursor: progress; }
.py-upload.py-czeka span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: py-krec .8s linear infinite; }
@keyframes py-krec { to { transform: rotate(360deg); } }
.py-logo-uw { background: var(--soft); color: var(--ink); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; }
.py-logo-uw span { display: block; }
.py-logo-uw span + span { margin-top: 4px; }
