/* Konfiga — showcase. Tokeny zgodne z referencją v2. */
:root {
  --ink: #172b2c;
  --muted: #5b6d68;
  --green: #176653;
  --green-d: #104f40;
  --brand: #042e23;
  --brand-2: #4f9467;
  --lime: #d8f09e;
  --paper: #f7f8f3;
  --line: #dce4dc;
  --line-2: #cbd7cb;
  --scene: #eef2e9;
  --dark: #193a34;
  --white: #fff;
  --focus: #2f7d5f;
  --radius: 20px;
  --shadow-card: 0 1px 2px rgba(23, 43, 44, .05), 0 28px 70px -38px rgba(35, 63, 53, .55);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
img, svg { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 36px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--white); color: var(--ink); padding: 12px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 20px;
  font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
  border: 1px solid transparent; border-radius: 9px; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-d); }
.btn.secondary { background: transparent; border-color: #b3c5ba; color: var(--ink); }
.btn.secondary:hover { background: #e8eee6; border-color: #9fb5a8; }
.btn.lime { background: var(--lime); color: var(--dark); }
.btn.lime:hover { background: #cbe78a; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 2px; font-size: 13px; font-weight: 650; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b9c7bd; min-height: 32px; }
.link-btn:hover { color: var(--green); text-decoration-color: currentColor; }

/* ---------- nagłówek ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 6px; }
.brand .logo { height: 31px; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 560; color: var(--muted); }
.navlinks a { text-decoration: none; padding: 8px 0; }
.navlinks a:hover { color: var(--green); }
.nav-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 60px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); text-transform: uppercase; letter-spacing: .13em; font-size: 11.5px; font-weight: 800; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: #78a875; border-radius: 2px; transform: rotate(45deg); flex: none; }
h1 { font-size: clamp(44px, 4.1vw, 58px); line-height: 1.02; letter-spacing: -.055em; font-weight: 760; margin: 22px 0 22px; }
h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 17.5px; color: var(--muted); line-height: 1.65; max-width: 470px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.smallnote { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- karta demo ---------- */
.demo { background: var(--white); border: 1px solid #d3ddd4; border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; overflow: clip; min-width: 0; scroll-margin-top: 16px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.live { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 11.5px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fa56c; box-shadow: 0 0 0 3px #e2efdd; }
.demo-kind { color: var(--muted); font-weight: 560; text-align: right; }
.demo-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbf8; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.demo-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 620; white-space: nowrap; position: relative; }
.tab:hover { background: #eef2eb; color: var(--ink); }
.tab[aria-selected="true"] { background: #e4eee3; color: var(--green); border-color: #c5d8c4; font-weight: 750; box-shadow: inset 0 -2px 0 var(--green); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "scene controls" "price controls"; grid-template-rows: 1fr auto; }

.scene {
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 100%;
  background-color: var(--scene);
  background-image: linear-gradient(#e2e9dd 1px, transparent 1px), linear-gradient(90deg, #e2e9dd 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  grid-area: scene;
}
.scene-top, .scene-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-size: 11px; font-weight: 750; letter-spacing: .08em; color: #4f685d; text-transform: uppercase; position: relative; z-index: 1; }
.scene-bottom { text-transform: none; letter-spacing: 0; font-weight: 560; font-size: 12px; color: #4f6359; align-items: flex-end; }
.scene-bottom .dims { font-weight: 700; color: #2c4a40; font-variant-numeric: tabular-nums; }
.scene-bottom .disclaimer { white-space: nowrap; color: #657a70; }
.scene-canvas { position: relative; flex: 1 1 auto; min-height: 360px; }
.scene-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; font-family: inherit; }
.scene-notes { padding: 0 16px; margin: 0; list-style: none; font-size: 12px; color: #4d6258; min-height: 18px; position: relative; z-index: 1; }
.scene-notes li { display: inline; }
.scene-notes li + li::before { content: " · "; color: #95a89c; }

.panel { display: contents; }
.controls { grid-area: controls; padding: 16px 20px 14px; min-width: 0; border-left: 1px solid var(--line); }
.controls-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.controls h2 { font-size: 21px; letter-spacing: -.025em; line-height: 1.25; }
.controls .intro { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field { margin: 0 0 13px; padding: 0; border: 0; min-width: 0; }
.field-head, .field legend { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; font-size: 13.5px; font-weight: 680; margin-bottom: 6px; padding: 0; }
.field output { font-weight: 780; color: var(--green); font-variant-numeric: tabular-nums; }
.field legend .val { font-weight: 650; color: var(--green); }
.field-desc { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; min-height: 18px; }

/* suwak */
input[type="range"] {
  --pct: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--pct), #dbe3d9 var(--pct)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #dbe3d9; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--green); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 1px 4px rgba(23, 60, 48, .25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 1px 4px rgba(23, 60, 48, .25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #bfe0cf; }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px #bfe0cf; }
.range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: #7a8c85; margin-top: -2px; font-variant-numeric: tabular-nums; }

/* segmenty (radio) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: #f0f4ee; border: 1px solid var(--line); border-radius: 10px; }
.seg input, .swatches input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 38px; padding: 6px 6px; border-radius: 7px; font-size: 13px; font-weight: 620; color: #3f544c; cursor: pointer; line-height: 1.2; border: 1px solid transparent; }
.seg label:hover { background: #e4ebe2; }
.seg input:checked + label { background: #fff; color: var(--green); border-color: #c4d6c6; box-shadow: 0 1px 3px rgba(23, 60, 48, .12); font-weight: 760; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }

/* kolory */
.swatches { display: flex; gap: 8px; }
.swatch { display: flex; align-items: center; justify-content: center; width: 56px; min-height: 42px; padding: 4px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #3f544c; }
.swatch .chip { width: 100%; height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); flex: none; }
.swatch:hover { border-color: #9fb5a8; }
.swatches input:checked + .swatch { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); color: var(--green); font-weight: 750; }
.swatches input:focus-visible + .swatch { outline: 3px solid var(--focus); outline-offset: 2px; }

/* przełączniki */
.toggles { display: grid; gap: 6px; margin: 2px 0 4px; }
.toggle { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 46px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.toggle:hover { border-color: #b9cabd; }
.tg-ui { width: 36px; height: 22px; border-radius: 99px; background: #cdd8cf; position: relative; transition: background-color .15s; flex: none; }
.tg-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.toggle input:checked ~ .tg-ui { background: var(--green); }
.toggle input:checked ~ .tg-ui::after { transform: translateX(14px); }
.toggle input:focus-visible ~ .tg-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.tg-text { display: flex; flex-direction: column; min-width: 0; }
.tg-label { font-size: 13.5px; font-weight: 680; line-height: 1.3; }
.tg-desc { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tg-delta { font-size: 12.5px; font-weight: 700; color: #4c6a5d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toggle.is-locked { cursor: not-allowed; background: #f6f7f3; }
.toggle.is-locked .tg-label, .toggle.is-locked .tg-delta { color: #8a9a93; }
.toggle.is-locked .tg-ui { background: #e2e7e0; }

/* cena */
.price-box { grid-area: price; border-top: 1px solid var(--line); padding: 14px 18px 10px; background: #fff; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-label { font-size: 12.5px; color: var(--muted); font-weight: 560; }
.price { display: block; font-size: 32px; line-height: 1.15; font-weight: 780; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.price-actions .contact-btn { grid-column: 1 / -1; }
.price-actions .btn { min-height: 46px; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.status { font-size: 12.5px; color: var(--green); min-height: 18px; margin-top: 5px; font-weight: 600; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.demo-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-foot .powered { white-space: nowrap; }
.demo-foot .powered b { color: var(--brand); }

/* ---------- pasek korzyści ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; }
.strip li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 650; }
.strip svg { width: 22px; height: 22px; stroke: var(--green); flex: none; }

/* ---------- sekcje ---------- */
.section { padding: 84px 0; scroll-margin-top: 8px; }
.sectionhead { max-width: 720px; margin-bottom: 34px; }
.sectionhead h2 { font-size: clamp(31px, 3.9vw, 48px); line-height: 1.08; letter-spacing: -.045em; margin: 13px 0 14px; }
.sectionhead p { font-size: 16.5px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature .num { font-size: 12px; color: var(--green); font-weight: 800; letter-spacing: .08em; }
.feature h3 { font-size: 22px; letter-spacing: -.025em; margin: 18px 0 9px; line-height: 1.2; }
.feature p { font-size: 15px; color: var(--muted); }

.dark { background: var(--dark); color: #f4f8ef; border-radius: 24px; padding: 46px; display: grid; grid-template-columns: 1fr .95fr; gap: 44px; align-items: center; }
.dark .eyebrow { color: var(--lime); }
.dark .eyebrow::before { background: var(--lime); }
.dark h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.045em; line-height: 1.08; margin: 14px 0 16px; }
.dark p { color: #c3d5ca; max-width: 520px; }
.dark .actions { margin-top: 26px; }
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.industries button { width: 100%; text-align: left; border: 1px solid rgba(255, 255, 255, .17); border-radius: 11px; padding: 13px 15px; min-height: 64px; background: transparent; color: #eef5ec; font-size: 15px; font-weight: 650; display: flex; flex-direction: column; gap: 2px; }
.industries button small { color: #a8c2b3; font-size: 12.5px; font-weight: 560; }
.industries button:hover { background: rgba(216, 240, 158, .09); border-color: rgba(216, 240, 158, .45); }
.industries button[aria-current="true"] { background: rgba(216, 240, 158, .13); border-color: rgba(216, 240, 158, .7); }
.industries button[aria-current="true"] small::after { content: " · wybrany w demo"; color: var(--lime); }
.industries li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dark :focus-visible { outline-color: var(--lime); }

/* integracja */
.integration-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.integration .feature h3 { margin: 12px 0 8px; }
.code-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f0f4ee; border: 1px solid var(--line); border-radius: 10px; margin: 14px 0 10px; }
.code-tabs button { border: 1px solid transparent; background: transparent; border-radius: 7px; min-height: 36px; padding: 6px 12px; font-size: 13px; font-weight: 640; color: #3f544c; }
.code-tabs button[aria-pressed="true"] { background: #fff; color: var(--green); border-color: #c4d6c6; font-weight: 760; }
pre.code { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f7f1; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1c5444; }
.code-meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.code-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.stack { display: grid; gap: 10px; margin-top: 16px; }
.stack .btn { justify-content: space-between; }
.compat { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 6px 22px 18px; }
.compat summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.compat table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compat th, .compat td { text-align: left; padding: 9px 10px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.compat th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.compat .note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* stopka */
.footer { border-top: 1px solid var(--line); padding: 30px 0 38px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 32px; color: var(--muted); font-size: 13px; }
.footer .logo { height: 24px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer nav a { text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: var(--green); text-decoration: underline; }
.contact-cta[hidden] { display: none !important; }

/* druk / PDF */
.print-sheet { display: none; }

/* ---------- responsywność ---------- */
@media (max-width: 1180px) {
  .demo-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 44px; }
  .hero-copy { display: grid; grid-template-columns: 1.05fr .95fr; gap: 10px 48px; align-items: end; }
  .hero-copy .eyebrow, .hero-copy h1 { grid-column: 1; }
  .hero-copy h1 { margin-bottom: 0; }
  .hero-copy .lead, .hero-copy .actions, .hero-copy .smallnote { grid-column: 2; }
  .hero-copy .lead { grid-row: 1 / span 2; align-self: end; }
  .hero-copy .actions { margin-top: 8px; }
  .hero-copy .smallnote { margin-top: 4px; }
}
@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .navlinks { gap: 18px; }
  .dark { grid-template-columns: 1fr; gap: 28px; padding: 34px; }
  .integration-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-copy { display: block; }
  .hero-copy .lead { max-width: 640px; }
  .demo-body { grid-template-columns: minmax(0, 1fr) 310px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 760px) {
  .nav { min-height: 0; padding: 12px 0; flex-wrap: wrap; row-gap: 4px; }
  .navlinks { order: 3; width: 100%; gap: 20px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
  .navlinks a { padding: 10px 0; }
}
@media (max-width: 680px) {
  .demo-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "scene" "controls" "price"; grid-template-rows: auto; }
  .controls { border-left: 0; border-top: 1px solid var(--line); }
  .panel { display: block; grid-area: controls; min-width: 0; }
  .scene-canvas { flex: none; height: clamp(250px, 74vw, 400px); min-height: 0; }
  .scene-bottom { padding-top: 6px; }
  .controls { padding: 16px; }
  .price-box { position: sticky; bottom: 0; z-index: 3; padding: 10px 16px 8px; box-shadow: 0 -10px 24px -16px rgba(23, 43, 44, .5); }
  .price-row { align-items: center; }
  .price { font-size: 28px; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand .logo { height: 27px; }
  .nav-cta { padding: 8px 13px; font-size: 13.5px; min-height: 44px; }
  .hero { padding-top: 30px; padding-bottom: 40px; gap: 28px; }
  h1 { font-size: 44px; margin: 16px 0; }
  .lead { font-size: 16.5px; }
  .actions .btn { flex: 1 1 auto; }
  .demo { border-radius: 14px; margin: 0 -6px; }
  .demo-top { padding: 11px 14px; }
  .demo-kind { font-size: 11.5px; }
  .tab { padding: 8px 12px; font-size: 13.5px; }
  .seg label { font-size: 12.5px; padding: 6px 4px; }
  .demo-foot { flex-direction: column; gap: 2px; padding: 10px 14px; }
  .strip { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .dark { padding: 24px 18px; border-radius: 18px; }
  .industries { grid-template-columns: 1fr; }
  .feature { padding: 20px; }
  .compat { padding: 4px 16px 14px; }
  .compat thead { display: none; }
  .compat tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .compat td { display: block; border: 0; padding: 2px 0; }
  .compat td:first-child { font-weight: 700; }
  .compat td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
}
@media (pointer: coarse) {
  .seg label { min-height: 44px; }
  .swatch { min-height: 44px; }
  .tab { min-height: 44px; }
  .link-btn { min-height: 44px; }
}

/* ---------- tryb osadzony ---------- */
.is-embed body { background: #fff; }
.is-embed .site-header, .is-embed .hero-copy, .is-embed .strip, .is-embed .section, .is-embed .footer, .is-embed .skip, .is-embed .demo-tabs, .is-embed .marketing { display: none !important; }
.is-embed .wrap { max-width: none; padding: 0; }
.is-embed .hero { display: block; padding: 0; }
.is-embed .demo { border: 0; border-radius: 0; box-shadow: none; }
.is-embed .demo-body { grid-template-columns: minmax(0, 1fr) 340px; }
.is-embed .scene-canvas { min-height: 420px; }
@media (max-width: 680px) {
  .is-embed .demo-body { grid-template-columns: minmax(0, 1fr); }
  .is-embed .scene-canvas { min-height: 0; }
  .is-embed .demo { margin: 0; }
}

/* ---------- ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- druk ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #111; font-size: 12pt; }
  .print-sheet .logo { height: 26px; margin-bottom: 14px; }
  .print-sheet h1 { font-size: 22pt; letter-spacing: -.02em; margin: 0 0 4px; }
  .print-sheet .sub { color: #444; margin-bottom: 12px; }
  .print-sheet svg { width: 100%; height: auto; max-height: 105mm; border: 1px solid #ccc; border-radius: 6px; background: #f3f6ef; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  .print-sheet td { padding: 5px 0; border-bottom: 1px solid #ddd; }
  .print-sheet td:last-child { text-align: right; font-weight: 600; }
  .print-sheet .total { font-size: 16pt; font-weight: 700; margin-top: 12px; }
  .print-sheet .fine { color: #555; font-size: 9.5pt; margin-top: 10px; }
}

/* ---------- strony prawne ---------- */
.legal-page main { max-width: 760px; margin: 0 auto; padding: 44px 24px 80px; }
.legal-page .back { display: inline-block; margin-bottom: 26px; font-weight: 650; color: var(--green); text-decoration: none; }
.legal-page .back:hover { text-decoration: underline; }
.legal-page h1 { font-size: clamp(32px, 5vw, 44px); margin: 14px 0 10px; }
.legal-page .meta { color: var(--muted); font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal-page h2 { font-size: 20px; letter-spacing: -.02em; margin: 30px 0 10px; }
.legal-page p, .legal-page li { color: #33463f; font-size: 16px; }
.legal-page p + p { margin-top: 10px; }
.legal-page ul, .legal-page ol { padding-left: 1.25em; margin: 8px 0; }
.legal-page li { margin: 5px 0; }
.legal-page a { color: var(--green); }
.legal-page .site-header .nav { min-height: 72px; }
.legal-page .footer { margin-top: 0; }
.dark .btn.secondary { color: #f4f8ef; border-color: rgba(255, 255, 255, .35); }
.dark .btn.secondary:hover { background: rgba(255, 255, 255, .08); }

.lbl-short { display: none; }
@media (max-width: 680px) {
  .price-actions { grid-template-columns: minmax(0, 1fr) auto auto; }
  .price-actions .contact-btn { grid-column: auto; }
  .price-actions .lbl-long { display: none; }
  .price-actions .lbl-short { display: inline; }
  .price-actions .btn { padding: 10px 12px; }
  .price-label { font-size: 12px; }
  .price-actions { margin-top: 8px; }
  .price-actions .btn { min-height: 44px; }
  .status:empty { min-height: 0; margin: 0; }
}
@media (max-width: 400px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .demo-top { flex-wrap: wrap; row-gap: 2px; }
}

.price-box { container-type: inline-size; }
@container (min-width: 600px) {
  .price-inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "row actions" "status status"; align-items: end; column-gap: 20px; }
  .price-row { grid-area: row; }
  .price-actions { grid-area: actions; margin-top: 0; grid-template-columns: auto auto auto; }
  .price-actions .contact-btn { grid-column: auto; }
  .price-inner .status { grid-area: status; }
}
.legal-page p.eyebrow { font-size: 11.5px; color: var(--green); }

/* ---------- dialog: prośba o kontakt ---------- */
.contact-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #cfdacf; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(16, 40, 33, .45); overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: rgba(18, 38, 33, .45); }
.dialog-open, .dialog-open body { overflow: hidden; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.cd-head h2 { font-size: 20px; letter-spacing: -.02em; }
.cd-close { width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 10px; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.cd-close:hover { background: #eef2eb; color: var(--ink); }
.cd-body, .cd-done { padding: 16px 20px 20px; }
.cd-lead { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.cd-summary { background: #f3f6f0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.cds-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.cds-head span { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-summary ul { margin: 0; padding: 0; list-style: none; color: #4b5f58; columns: 2; column-gap: 16px; }
.cd-summary li { break-inside: avoid; padding: 1px 0; }
.cd-label { display: block; font-size: 13.5px; font-weight: 700; margin: 4px 0 6px; }
.cd-opt { font-weight: 500; color: var(--muted); }
.cd-input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c3d1c4; border-radius: 9px; background: #fff; font-size: 16px; color: var(--ink); }
textarea.cd-input { min-height: 76px; resize: vertical; font-size: 15px; line-height: 1.45; }
.cd-input:focus-visible { outline: 3px solid #bfe0cf; outline-offset: 0; border-color: var(--green); }
.cd-input[aria-invalid="true"] { border-color: #b3261e; }
.cd-err { min-height: 18px; font-size: 12.5px; color: #b3261e; margin: 3px 0 4px; font-weight: 600; }
.cd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cd-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; color: #3c4f48; margin-top: 6px; cursor: pointer; }
.cd-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.cd-consent a { color: var(--green); }
.cd-status { min-height: 20px; font-size: 13.5px; font-weight: 600; color: var(--green); margin: 4px 0 8px; }
.cd-status.is-error { color: #b3261e; }
.cd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-actions .btn { flex: 1 1 160px; }
.cd-done { text-align: center; padding: 28px 22px 26px; }
.cd-ok { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #e2efdd; color: var(--green); font-size: 28px; font-weight: 800; display: grid; place-items: center; }
.cd-done h3 { font-size: 22px; margin-bottom: 8px; }
.cd-done p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.cd-done h3:focus { outline: none; }
@media (max-width: 480px) {
  .contact-dialog { width: 100vw; max-width: none; max-height: 100dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .cd-summary ul { columns: 1; }
}

/* ---------- baner zgody ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px 20px; padding: 14px 16px; background: #fff; border: 1px solid #cfdacf; border-radius: 14px; box-shadow: 0 18px 50px -18px rgba(16, 40, 33, .5); font-size: 13.5px; color: #33463f; }
.consent[hidden] { display: none; }
.consent p { flex: 1; }
.consent a { color: var(--green); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent .btn.small { min-height: 44px; }
.cookie-link { font-size: 13px; padding: 6px 0; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; }
  .consent-actions .btn { flex: 1; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 16.5px; padding: 16px 28px 16px 0; list-style: none; position: relative; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--green); font-weight: 600; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding: 0 0 18px; font-size: 15.5px; max-width: 760px; }
@media print { .consent, .contact-dialog { display: none !important; } }
