
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/display.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/body.ttf") format("truetype"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/mono.ttf") format("truetype"); font-weight: 100 800; font-style: normal; font-display: swap; }
:root {
  --bg: #f4f5f9; --panel: #ffffff; --panel-2: #eceff6; --line: rgba(15,20,40,.1); --fg: #10131b; --fg-2: #566074;
  --sound: #1c6fe0; --sound-soft: rgba(28,111,224,.1); --cut: #dd3f35; --violet: #6a58e6; --green: #1f9d55; --on-accent: #ffffff; --btn: #1c6fe0; --cutbtn: #dd3f35;
  --shadow: 0 30px 70px rgba(30,40,90,.16); --tick: rgba(15,20,40,.25);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e15; --panel: #141926; --panel-2: #1c2231; --line: rgba(255,255,255,.11); --fg: #eef1f8; --fg-2: #9aa5ba;
  --sound: #4d92ff; --sound-soft: rgba(77,146,255,.15); --cut: #ff5f53; --violet: #8f80ff; --green: #36c47b; --on-accent: #ffffff; --btn: #2a6be0; --cutbtn: #d9402f;
  --shadow: 0 30px 70px rgba(0,0,0,.55); --tick: rgba(255,255,255,.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 22px; }
:focus-visible { outline: 2px solid var(--sound); outline-offset: 3px; border-radius: 8px; }

/* nawigacja + linijka timecode */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 20px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.nav-r { display: flex; align-items: center; gap: 26px; }
.nav a.link { color: var(--fg-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a.link:hover { color: var(--fg); }
.ruler { position: relative; height: 34px; border-top: 1px solid var(--line);
  background:
    linear-gradient(var(--sound), var(--sound)) 0 0 / 2px 16px no-repeat,
    linear-gradient(var(--sound), var(--sound)) 25% 0 / 2px 16px no-repeat,
    linear-gradient(var(--sound), var(--sound)) 50% 0 / 2px 16px no-repeat,
    linear-gradient(var(--sound), var(--sound)) 75% 0 / 2px 16px no-repeat,
    linear-gradient(var(--sound), var(--sound)) 100% 0 / 2px 16px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat; }
.ruler-l { position: relative; height: 0; }
.ruler-l span { position: absolute; top: -20px; transform: translateX(-50%); font: 600 11px var(--font-mono); color: var(--sound); letter-spacing: .05em; background: var(--bg); padding-inline: 6px; }
.ruler-l span:first-child { transform: none; left: 0 !important; padding-left: 0; }
.ruler-l span:last-child { transform: none; left: auto !important; right: 0; padding-right: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: 999px; font: 600 15px var(--font-body);
  text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; transition: transform .12s, background .12s, filter .12s; }
.btn:hover { background: var(--panel-2); transform: translateY(-1px); }
.btn.main { background: var(--btn); color: var(--on-accent); border-color: transparent; }
.btn.main:hover { filter: brightness(1.1); background: var(--btn); }
.btn.sm { height: 38px; padding-inline: 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* hero: wyśrodkowany, z „wyciętą" frazą */
.hero { padding-block: 56px 20px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sound); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--cut); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cut) 25%, transparent); }
.hero h1 { font-size: clamp(36px, 6.2vw, 76px); font-weight: 800; line-height: 1.08; letter-spacing: -0.045em; max-width: 19ch; }
.cutword { position: relative; white-space: nowrap; }
.cutword::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 54%; height: .09em; border-radius: 99px; background: var(--cut); transform: rotate(-2deg); }
.hero h1 em { font-style: normal; color: var(--sound); }
.lead { max-width: 54ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--fg-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.meta-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font: 500 12px var(--font-mono); color: var(--fg-2); letter-spacing: .04em; }
.meta-line span::before { content: "● "; color: var(--sound); }

/* edytor (demo na całą szerokość) */
.editor { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ed-top .brandline { display: flex; align-items: center; gap: 10px; font: 500 12px var(--font-mono); color: var(--fg-2); }
.tc { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); }
.tc output { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tc small { color: var(--fg-2); font-size: 12px; }
.demo-btn { height: 42px; padding-inline: 20px; border-radius: 999px; border: 0; background: var(--cutbtn); color: #fff; font: 600 14px var(--font-body); cursor: pointer; }
.demo-btn[data-state="done"] { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); }
.lanes { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 18px 22px 8px; align-items: stretch; }
.lane-label { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); display: flex; align-items: center; }
.timeline { display: flex; height: 100%; min-width: 0; grid-column: 2; grid-row: 1 / span 3; }
.labels { display: grid; grid-template-rows: repeat(3, 48px); gap: 8px; grid-column: 1; grid-row: 1 / span 3; }
.seg { display: grid; grid-template-rows: repeat(3, 48px); gap: 8px; min-width: 0; overflow: hidden; }
.lane { display: flex; align-items: center; gap: 2px; padding-inline: 1px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.lane i { flex: 1; min-width: 1px; border-radius: 1px; background: var(--sound); }
.lane.v { background: color-mix(in srgb, var(--violet) 32%, var(--panel-2)); }
.seg.quiet .lane, .seg.quiet .lane.v { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cut) 26%, var(--panel-2)) 0 6px, color-mix(in srgb, var(--cut) 12%, var(--panel-2)) 6px 12px); }
.seg.quiet .lane i { background: var(--cut); opacity: .55; }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 10px 22px 18px; color: var(--fg-2); font-size: 13px; }
.demo-foot b { color: var(--cut); font-weight: 600; }
.hint { margin-top: 12px; font: 500 12px var(--font-mono); color: var(--fg-2); text-align: center; letter-spacing: .03em; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 56px; padding-block: 34px 0; color: var(--fg-2); font-size: 14px; text-align: center; }
.facts strong { display: block; font: 800 40px var(--font-display); color: var(--fg); letter-spacing: -.03em; line-height: 1.1; }
.facts-note { flex-basis: 100%; font-size: 13px; }

/* sekcje */
section.block { padding-block: 92px 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 30px; }
.tcode { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sound); }
.tcode::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--cut); }
section.block h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.03; max-width: 20ch; }
.sub { max-width: 58ch; color: var(--fg-2); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; overflow: hidden; transition: transform .18s, border-color .18s; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sound), var(--violet)); }
.pcard.soon::before { background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
a.pcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sound) 45%, var(--line)); }
.pcard.soon { border-style: dashed; background: transparent; }
.pcard .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sound-soft); color: var(--sound); }
.pcard .ico svg { width: 24px; height: 24px; } .pcard .ico img { width: 26px; height: 26px; display: block; }
.pcard h3 { font-size: 24px; font-weight: 800; } .pcard p { color: var(--fg-2); font-size: 15px; flex: 1; }
.pcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.tag { font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); }
.tag.live { color: var(--sound); border-color: color-mix(in srgb, var(--sound) 40%, transparent); background: var(--sound-soft); }
.from { color: var(--fg-2); } .from b { color: var(--fg); font-weight: 700; }

/* kroki jako linia czasu */
.steps { list-style: none; padding: 34px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: repeating-linear-gradient(90deg, var(--tick) 0 2px, transparent 2px 10px); }
.steps li { position: relative; }
.steps li::before { content: attr(data-t); display: block; position: absolute; top: -34px; left: 0; font: 500 12px var(--font-mono); color: var(--sound); background: var(--bg); padding-right: 10px; }
.steps li::after { content: ""; position: absolute; top: -32px; left: 0; width: 0; }
.steps h3 { font-size: 22px; font-weight: 800; } .steps p { margin-top: 8px; color: var(--fg-2); font-size: 15px; max-width: 34ch; }

/* funkcje: trzy karty z makietą */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.fcard h3 { font-size: 24px; font-weight: 800; line-height: 1.08; } .fcard > p { color: var(--fg-2); font-size: 15px; }
.fcard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--fg-2); font-size: 14.5px; }
.fcard li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 1px; background: var(--cut); }
.mock { margin-top: auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.mock .row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--panel); }
.mock .row .cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--tick); flex: none; }
.mock .row.on .cb { background: var(--sound); border-color: var(--sound); box-shadow: inset 0 0 0 3px var(--panel); }
.mock .row .bd { font: 600 10.5px var(--font-mono); padding: 2px 6px; border-radius: 5px; background: var(--sound-soft); color: var(--sound); }
.mock .row small { margin-left: auto; color: var(--fg-2); }
.mock .sl { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); } .mock .sl div { display: flex; justify-content: space-between; } .mock .sl b { color: var(--fg); font-weight: 600; }
.mock .bar { height: 5px; border-radius: 999px; background: var(--line); position: relative; } .mock .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--sound); }
.mock .sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.mock .sw i { width: 36px; height: 21px; border-radius: 999px; background: var(--green); position: relative; flex: none; } .mock .sw i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.mock .sw.off i { background: var(--tick); } .mock .sw.off i::after { right: auto; left: 3px; }
.mock .btnm { height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--btn); color: var(--on-accent); font-weight: 600; font-size: 14px; }
.mock .btnm.red { background: var(--cutbtn); color: #fff; }

.req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; } .card ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 15px; } .card li + li { margin-top: 6px; } .card p { color: var(--fg-2); font-size: 15px; }
.lic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pass { margin-top: 16px; padding: 24px 28px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, var(--sound-soft), color-mix(in srgb, var(--violet) 14%, transparent)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pass h3 { font-size: 21px; font-weight: 800; } .pass p { color: var(--fg-2); font-size: 15px; max-width: 52ch; }

.buy { display: grid; gap: 18px; padding: clamp(22px, 4vw, 34px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; text-align: left; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--panel-2); color: var(--fg); cursor: pointer; font: inherit; }
.plan:hover { border-color: color-mix(in srgb, var(--sound) 45%, var(--line)); }
.plan[aria-checked="true"] { border-color: var(--sound); background: var(--sound-soft); }
.plan .n { font-size: 14px; color: var(--fg-2); }
.plan .p { display: block; margin-top: 4px; font: 800 30px var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .p small { font: 500 13px var(--font-body); color: var(--fg-2); letter-spacing: 0; }
.plan .s { display: block; margin-top: 2px; font-size: 13px; color: var(--fg-2); }
.plan .best { position: absolute; top: -10px; right: 12px; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--cutbtn); color: #fff; }
.confirm { max-width: 640px; margin-inline: auto; display: grid; gap: 22px; }
.confirm ul { margin: 0; padding-left: 20px; color: var(--fg-2); display: grid; gap: 8px; font-size: 16px; }
.confirm ul b { color: var(--fg); }
.confirm .sum { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--fg-2); font-size: 15px; }
.confirm .sum strong { color: var(--fg); font-size: 18px; }
.btn.big { padding: 20px 28px; font-family: inherit; font-weight: 700; font-size: clamp(16px, 4.4vw, 20px); width: 100%; justify-content: center; text-align: center; border-radius: 18px; }
.confirm .consent { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.confirm .consent label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.confirm .consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--sound); }
.confirm .cerr { margin: 10px 0 0; color: var(--cut); font-weight: 600; }
.confirm .back { text-align: center; font-size: 14px; }
.ack { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg-2); font-size: 14px; line-height: 1.5; cursor: pointer; }
.ack input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--btn); cursor: pointer; }
.ack b { color: var(--fg); }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.buy-row p { color: var(--fg-2); font-size: 14px; max-width: 56ch; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.quote { margin: 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font: 600 19px/1.45 var(--font-display); letter-spacing: -.01em; text-wrap: pretty; }
.quote figcaption { color: var(--fg-2); font-size: 14px; line-height: 1.4; }
.quote .adtag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.quote figcaption b { display: block; color: var(--fg); font-size: 15px; }
.quote figcaption a { color: var(--sound); }
.note { margin-top: 12px; font-size: 13px; color: var(--fg-2); }
.note a, .lead a, .legal a { color: var(--sound); }

/* FAQ w dwóch kolumnach */
.faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faqwrap .sec-head { position: sticky; top: 24px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 20px; cursor: pointer; list-style: none; font: 700 18px var(--font-display); letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px var(--font-mono); color: var(--cut); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 22px; max-width: 62ch; color: var(--fg-2); }

.crumb { padding-top: 8px; } .crumb a { color: var(--fg-2); font-size: 14px; } .crumb a:hover { color: var(--fg); }
.soon-box { margin-top: 30px; padding: 28px; border: 1px dashed var(--line); border-radius: 20px; color: var(--fg-2); max-width: 62ch; margin-inline: auto; text-align: left; }
.legal { max-width: 74ch; padding-block: 32px 8px; }
.legal h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--fg-2); } .legal p + p { margin-top: 10px; }
.legal ol, .legal ul { padding-left: 22px; margin: 8px 0; } .legal li + li { margin-top: 6px; }
.legal .meta { color: var(--fg-2); font-size: 14px; margin-bottom: 22px; }
.draft { padding: 12px 16px; border: 1px solid var(--cut); border-radius: 12px; color: var(--fg); background: color-mix(in srgb, var(--cut) 10%, var(--panel)); margin: 14px 0 22px; font-size: 14px; }

footer { margin-top: 100px; padding-block: 30px 52px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
footer .fl { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; } footer a { color: var(--fg-2); } footer a, footer .fl a { text-decoration: none; }

@media (max-width: 900px) {
  .trio, .steps, .lic, .plans, .req, .faqwrap { grid-template-columns: 1fr; }
  .faqwrap .sec-head { position: static; }
  .nav-r .link { display: none; }
  .steps { gap: 36px; } .steps::before { display: none; } .steps li::before { position: static; margin-bottom: 8px; background: none; }
  .labels, .seg { grid-template-rows: repeat(3, 38px); }
}

/* podkreślenia pod kursorem */
.u, .nav a.link, footer a, .note a, .lead a, .legal a, .crumb a, .sub a {
  text-decoration: none; background: linear-gradient(var(--sound), var(--sound)) 0 100% / 0% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .38s cubic-bezier(.2,.7,.2,1), color .2s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.note a, .lead a, .legal a, .sub a { background-size: 100% 1px; }
.nav a.link:hover, footer a:hover, .crumb a:hover, .u:hover, .pcard:hover .u, summary:hover .u, .card:hover h3 .u, .plan:hover .u { background-size: 100% 2px; }
.note a:hover, .lead a:hover, .legal a:hover, .sub a:hover { background-size: 100% 2px; }
section.block h2 .u { background-image: linear-gradient(color-mix(in srgb, var(--sound) 30%, transparent), color-mix(in srgb, var(--sound) 30%, transparent)); background-position: 0 92%; padding-bottom: 0; }
section.block h2 .u:hover { background-size: 100% .22em; }
.nav a.link:hover, footer a:hover { color: var(--fg); }
.faq summary .u { padding-bottom: 2px; }

/* przełącznik motywu + menu mobilne */
.theme { position: relative; flex: none; width: 54px; height: 30px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: background .2s; }
.theme .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 4px rgba(0,0,0,.25); display: grid; place-items: center; transition: transform .22s cubic-bezier(.3,.7,.3,1), background .2s; color: var(--cut); }
.theme .knob svg { width: 14px; height: 14px; } .theme .moon { display: none; }
:root[data-theme="dark"] .theme { background: color-mix(in srgb, var(--sound) 30%, var(--panel-2)); }
:root[data-theme="dark"] .theme .knob { transform: translateX(24px); color: var(--sound); }
:root[data-theme="dark"] .theme .sun { display: none; } :root[data-theme="dark"] .theme .moon { display: block; }
.theme:focus-visible, .burger:focus-visible { outline: 2px solid var(--sound); outline-offset: 3px; }
.brand .lg-d { display: none; } :root[data-theme="dark"] .brand .lg-l { display: none; } :root[data-theme="dark"] .brand .lg-d { display: block; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; } .burger .x { display: none; } .burger[aria-expanded="true"] .x { display: block; } .burger[aria-expanded="true"] .b { display: none; }
.mmenu { display: none; }
@media (max-width: 900px) {
  .burger { display: grid; }
  .mmenu:not([hidden]) { display: flex; flex-direction: column; margin: 4px 0 8px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); position: relative; z-index: 5; }
  .mmenu a { display: flex; align-items: center; min-height: 54px; padding-inline: 16px; border-radius: 12px; font: 600 17px var(--font-body); color: var(--fg); text-decoration: none; }
  .mmenu a:active, .mmenu a:hover { background: var(--panel-2); }
  .mmenu a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .nav-r { gap: 10px; } .nav-r .btn.sm { height: 44px; padding-inline: 16px; }
  .btn { min-height: 48px; } details summary { min-height: 56px; }
}
@media (max-width: 420px) { .nav-r .btn.sm { display: none; } .brand img { height: 26px; } }

/* ozdoby po bokach */
body { position: relative; overflow-x: clip; }
.deco { position: fixed; top: 0; bottom: 0; width: calc((100% - 1180px) / 2); pointer-events: none; z-index: 0; display: none; }
.deco.l { left: 0; } .deco.r { right: 0; }
.deco svg { position: absolute; left: 50%; overflow: visible; }
.deco .it { position: absolute; left: 50%; transition: transform .25s ease-out; will-change: transform; }
.deco .fl { animation: floaty 7s ease-in-out infinite; }
.deco .tw { animation: twinkle 3.6s ease-in-out infinite; }
.wrap { position: relative; z-index: 1; }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes twinkle { 0%, 100% { opacity: .95; transform: scale(1) rotate(0) } 50% { opacity: .45; transform: scale(.78) rotate(18deg) } }
@media (min-width: 1360px) { .deco { display: block; } }
@media (prefers-reduced-motion: reduce) { .deco .fl, .deco .tw { animation: none; } .u, .nav a.link, footer a { transition: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .pcard { transition: none; } }
