/* Kolory i typografia wspólnej siatki. */
:root {
  color-scheme: light;
  --paper: #faf8f4; --ink: #242722; --muted: #53564f; --line: #cfcfc4;
  --studio: #e7e2d6; --wash: #efede6; --accent: #495440; --deep: #30392f; --on-deep: #fffef9;
  --base: 16px; --control: 48px; --edge: clamp(20px, 5.5vw, 84px);
  --serif: Baskerville, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font: var(--base)/1.55 var(--sans);
  color: var(--ink); background: var(--paper);
}
:root[data-theme="seniorzy"] {
  --paper: #fcfaf2; --ink: #172b23; --muted: #37483c; --line: #a6b09e; --studio: #e1e7d7;
  --wash: #ecf0e4; --accent: #284c3c; --deep: #1f3d30; --base: 19px; --control: 58px;
}
:root[data-theme="rodzice"] {
  --paper: #fdf8f2; --ink: #392b27; --muted: #675149; --line: #dbc8bb; --studio: #e9d7c7;
  --wash: #f4e8dd; --accent: #824b35; --deep: #603b30;
}
:root[data-theme="sport"] {
  --paper: #f6f9f8; --ink: #192f34; --muted: #405a61; --line: #bcceca; --studio: #d8e5df;
  --wash: #e5eeeb; --accent: #12635c; --deep: #183e3c;
}
:root[data-theme="firmy"] {
  --paper: #f7f8fa; --ink: #172432; --muted: #435364; --line: #c2cbd3; --studio: #dce2e7;
  --wash: #e9edf1; --accent: #324c65; --deep: #213448;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 18px; }
h1,h2,h3,p,figure,fieldset,dl,dd,ol,ul { margin: 0; }
button,input,select,textarea { font: inherit; color: inherit; }
button,summary,select { cursor: pointer; }
a { color: inherit; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 8; top: 8px; left: 8px; padding: .65rem 1rem; background: var(--paper); }
.shell { width: min(1256px,calc(100% - 2 * var(--edge))); margin-inline: auto; }
main:focus { outline: none; }
img { display: block; width: 100%; height: auto; }
h1,h2,.price-line strong,.offer strong { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.05em; }
h1 { font-size: clamp(2.8rem,5.2vw,5.15rem); text-wrap: balance; }
h1 em { font-weight: 400; color: var(--accent); }
.hero h1 em { display: block; }
h2 { font-size: clamp(2.25rem,3.65vw,3.75rem); text-wrap: balance; }
h3 { font-size: 1.14rem; line-height: 1.23; letter-spacing: -.025em; }
p { overflow-wrap: break-word; }
.section { padding-block: clamp(52px,7.5vw,105px); }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner,.mast nav,.wordmark,.foot,.button { display: flex; align-items: center; }
.mast-inner { min-height: 73px; gap: 18px; }
.wordmark { gap: 7px; text-decoration: none; }
.wordmark span { font: 600 2.28rem/1 var(--serif); letter-spacing: -.065em; }
.wordmark svg { color: var(--accent); width: 1.8rem; height: 2rem; }
.audience { font-size: .82rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }
.mast nav { margin-left: auto; gap: clamp(14px,2vw,34px); font-size: .9rem; }
.mast nav a,.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.mast nav a:hover,.foot a:hover { text-decoration: underline; }
.hero { display: grid; gap: 20px; grid-template-areas: "intro" "gallery" "buy"; padding-block: 28px 44px; }
.intro { grid-area: intro; }
.promise { font-size: clamp(1rem,1.25vw,1.18rem); line-height: 1.56; margin-top: .85rem; color: var(--muted); max-width: 45ch; }
.pair-facts { font-size: .83rem; margin-top: .9rem; color: var(--accent); font-weight: 600; }
.pair-facts span { padding: 0 .28rem; }
.gallery { grid-area: gallery; min-width: 0; position: relative; align-self: center; }
.studio,.detail-photo { background: var(--studio); position: relative; overflow: hidden; }
.studio { aspect-ratio: 1.67; border-radius: 3px; }
.studio > img { width: 100%; height: 100%; object-fit: cover; }
.finish,.dimensions { position: absolute; z-index: 1; font-size: .73rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.finish { top: 16px; left: 18px; display: inline-flex; gap: 7px; align-items: center; }
.finish i { width: .72em; height: .72em; border-radius: 50%; background: #313130; box-shadow: inset 0 0 0 1px #535452; }
.dimensions { right: 16px; bottom: 14px; letter-spacing: .03em; }
.gallery figcaption { position: absolute; right: 0; bottom: 15px; font-size: .77rem; color: var(--muted); }
.thumbs { display: flex; gap: 7px; margin-top: 9px; width: max-content; }
.thumbs a { display: block; background: var(--wash); padding: 2px; border: 1px solid transparent; border-radius: 3px; width: 50px; height: 44px; }
.thumbs a[aria-current],.thumbs a:hover { border-color: var(--accent); }
.thumbs img { height: 100%; object-fit: cover; }
.buy { grid-area: buy; align-self: start; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; border-block: 1px solid var(--line); padding: .8rem 0; }
.price-line p { display: flex; align-items: baseline; gap: .35rem; font-size: .87rem; }
.price-line strong { font-size: 2.35rem; }
.price-line span { font-size: .88rem; margin-left: auto; color: var(--muted); }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; }
.qty { display: flex; margin: .85rem 0; }
.qty legend { font-size: .86rem; margin-bottom: .4rem; }
.qty > div { display: flex; gap: .45rem; }
.qty label { cursor: pointer; position: relative; }
.qty input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qty span { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; min-width: 78px; min-height: max(42px,2.25rem); font-size: .92rem; }
.qty input:checked + span { background: var(--wash); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 650; }
.qty input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.button { justify-content: space-between; gap: clamp(18px,2.6vw,40px); min-height: var(--control); padding: .64rem 1.16rem; font-size: 1rem; font-weight: 600; border: 1px solid transparent; border-radius: 2px; }
.primary { color: var(--on-deep); background: var(--deep); }
.primary:hover { background: var(--accent); }
.secondary { border-color: var(--accent); background: transparent; color: var(--accent); }
.secondary:hover { background: var(--wash); }
button:disabled { opacity: .65; cursor: wait; }
.order-line { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.order-line .button { min-width: min(100%,200px); }
.order-line output { font-size: .94rem; font-weight: 600; }
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; background: var(--paper); border-top: 1px solid var(--line); padding: 8px var(--edge) max(8px,env(safe-area-inset-bottom)); display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.sticky-buy b { font-size: 1.15rem; white-space: nowrap; }
.sticky-buy span { color: var(--muted); font-size: .82rem; }
body[data-page="product"] { padding-bottom: calc(var(--control) + 18px + env(safe-area-inset-bottom)); }
.how,.compare { background: var(--wash); }
.how-grid { display: grid; gap: 30px; align-items: center; }
.steps { list-style: none; counter-reset: steps; padding: 0; margin-top: 1.4rem; }
.steps li { display: grid; grid-template-columns: 2.3rem 1fr; counter-increment: steps; padding: 1.05rem 0; border-top: 1px solid var(--line); gap: .75rem; }
.steps li::before { content: counter(steps, decimal-leading-zero); color: var(--accent); font: italic 1.5rem/1.1 var(--serif); }
.steps p,.scenarios p,.faq details p,.lead,.follow-section>div>p,.clause,.legal p { color: var(--muted); }
.steps p,.scenarios p { margin-top: .35rem; max-width: 48ch; }
.detail-photo { margin: 0; border-radius: 2px; }
.detail-photo img { aspect-ratio: 1.5; object-fit: cover; }
.detail-photo figcaption { display: flex; justify-content: space-between; padding: .6rem .85rem; font-size: .8rem; color: var(--ink); }
.scenario-grid { display: grid; gap: 1.3rem; margin-top: 1.7rem; }
.scenario-grid article { border-top: 2px solid var(--accent); padding: 1rem 0 0; }
.scenario-grid h3 { font: normal 1.55rem/1.18 var(--serif); }
.lead { margin: 1rem 0 1.8rem; max-width: 66ch; font-size: 1.07rem; }
.market-table { display: none; overflow-x: auto; }
table { width: 100%; min-width: 960px; border-collapse: collapse; text-align: left; font-size: .86rem; line-height: 1.48; }
th,td { vertical-align: top; padding: .85rem .65rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--deep); color: var(--on-deep); font-weight: 600; }
th[scope="row"] { font-size: 1rem; min-width: 6.5rem; }
tbody tr:first-child { background: var(--paper); }
.market-mobile { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; list-style: none; gap: .9rem; min-height: var(--control); padding: .7rem 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: .55em; height: .55em; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -.25em .28em 0 0; }
details[open]>summary::after { transform: rotate(225deg); margin-top: .25em; }
.market-mobile dl { padding: .1rem 0 1rem; display: grid; gap: .56rem; }
.market-mobile dl div { display: grid; grid-template-columns: 43% 1fr; gap: .45rem; font-size: .9rem; }
.market-mobile dt { font-weight: 600; color: var(--accent); }
.market-notes { margin-top: 1rem; color: var(--muted); font-size: .83rem; max-width: 88ch; }
.sources { width: fit-content; }
.sources summary { font-size: .9rem; }
.sources ul { padding: 0 0 1rem 1.1rem; columns: 2; column-gap: 2rem; }
.sources li { break-inside: avoid; }
.faq { display: grid; gap: 1.5rem; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 1rem 0; font-size: 1.05rem; }
.faq details p { padding: 0 1.75rem 1rem 0; max-width: 67ch; }
.offer { background: var(--deep); color: var(--on-deep); }
.offer-inner { padding-block: clamp(34px,5vw,70px); display: grid; gap: 1.4rem; align-items: center; }
.offer h2 { max-width: 17ch; }
.offer strong { font-size: 2.35rem; }
.offer-inner>div p { font-size: .9rem; }
.offer .primary { background: var(--paper); color: var(--ink); justify-self: start; min-width: 170px; }
.offer .primary:hover { background: var(--wash); }
.offer .primary:focus-visible { outline-color: var(--paper); }
.foot { justify-content: space-between; padding: .9rem 0; font-size: .9rem; color: var(--muted); }
.follow { max-width: 980px; padding: clamp(32px,6vw,72px) 0; }
.notice { padding: 0 0 clamp(24px,4vw,44px); border-bottom: 2px solid var(--accent); }
.notice h1 { max-width: 16ch; }
.notice-lead { font-size: clamp(1.18rem,2vw,1.5rem); font-weight: 650; margin: 1.2rem 0 .45rem; }
.notice>p:last-child { max-width: 58ch; }
.follow-section { display: grid; gap: 1rem; padding: clamp(28px,4vw,52px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.follow-section h2,.legal h2 { font-size: clamp(1.8rem,2.5vw,2.5rem); }
.follow-section form { margin-top: 1.05rem; }
.field { display: block; font-weight: 600; margin: 0 0 1rem; }
.field small { font-weight: 400; }
.field input,.field select,.field textarea { display: block; width: 100%; min-height: var(--control); padding: .62rem .7rem; margin-top: .33rem; background: #fff; border: 1px solid var(--muted); border-radius: 2px; font-weight: 400; }
.field textarea { resize: vertical; }
.choice { display: flex; align-items: baseline; gap: .64rem; cursor: pointer; min-height: 44px; padding: .4rem 0; }
.choice input { accent-color: var(--accent); width: 1.04rem; height: 1.04rem; flex: none; align-self: flex-start; margin: .27em 0 0; }
.clause { font-size: .85rem; margin: .65rem 0 1.1rem; }
.follow-section fieldset { margin: 0 0 1rem; }
.follow-section legend { margin-bottom: .55rem; }
.status:not(:empty) { padding: .7rem .85rem; margin: .8rem 0; border-left: 3px solid var(--accent); background: var(--wash); }
.legal { max-width: 760px; padding: clamp(32px,5vw,72px) 0; }
.legal h1 { overflow-wrap: anywhere; }
.legal h2 { margin-top: 1.8rem; }
.legal p { margin-top: .8rem; }
.legal .version { margin: 1.2rem 0; }
:root[data-theme="seniorzy"] body { line-height: 1.65; }
:root[data-theme="seniorzy"] .qty span,:root[data-theme="seniorzy"] .thumbs a { min-height: 50px; }
:root[data-theme="firmy"] h1,:root[data-theme="firmy"] h2 { font-family: var(--sans); font-weight: 580; letter-spacing: -.055em; }
:root[data-theme="firmy"] h1 em { font-style: normal; }
@media (max-width: 680px) {
  .mast-inner { min-height: 58px; gap: 9px; }
  .wordmark span { font-size: 1.85rem; }
  .mast nav { font-size: .85rem; gap: 13px; }
  .mast nav .desk-nav,.audience { display: none; }
  .studio { aspect-ratio: 1.67; }
  .market-mobile summary { font-size: 1.04rem; }
  .sources ul { columns: 1; }
}
@media (min-width: 681px) {
  .scenario-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,3vw,42px); }
  .offer-inner { grid-template-columns: 1fr auto auto; column-gap: 2rem; }
  .follow-section { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(28px,5vw,80px); }
  .sticky-buy { display: none; }
  body[data-page="product"] { padding-bottom: 0; }
}
@media (min-width: 800px) {
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,.9fr); grid-template-areas: "gallery intro" "gallery buy"; grid-template-rows: auto auto; gap: 22px clamp(32px,5vw,88px); align-content: center; padding-block: clamp(36px,5vw,82px); }
  .intro { align-self: end; }
  .studio { aspect-ratio: 1.28; }
  .thumbs a { width: 60px; height: 46px; }
  .how-grid { grid-template-columns: 1.05fr .85fr; gap: clamp(45px,8vw,130px); }
  .detail-photo img { aspect-ratio: 1.18; }
  .market-table { display: block; }
  .market-mobile { display: none; }
  .faq { grid-template-columns: .7fr 1.3fr; gap: 50px; }
}
@media (max-width: 375px) {
  .thumbs { gap: 4px; }
  .thumbs a { width: 42px; }
  .mast nav { gap: 8px; }
  .sticky-buy .button { gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-theme="seniorzy"]) .button { transition: background-color .12s; }
}
