/* Schibsted Grotesk (SIL OFL 1.1), hostowany lokalnie — bez połączeń z Google */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* WnD — prototyp nowej strony. Jeden plik stylów, bez frameworka. */
:root {
  --white: #ffffff;
  --ink: #1f252b;
  --ink-2: #5a646e;
  --red: #d0101a;
  --red-dark: #a80d15;
  --frame: #e4e7ea;
  --surface: #f4f5f6;
  --line: 2px solid var(--ink);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Typografia — skala 1.25 */
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--grey { background: var(--surface); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 0; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border: 2px solid var(--ink);
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--white); color: var(--ink);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--light { border-color: var(--white); background: transparent; color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* Nagłówek */
.top { border-bottom: 1px solid var(--frame); font-size: .875rem; color: var(--ink-2); }
.top .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.top a { text-decoration: none; }
.top a:hover { color: var(--red); }
.top nav { display: flex; gap: 1.25rem; }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.logo { display: flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header .btn { padding: .65rem 1.1rem; }
.menu-btn { display: none; background: none; border: var(--line); padding: .5rem .8rem; font: 600 .95rem var(--font); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: var(--line); flex-direction: column; gap: 0; padding: .5rem var(--gap) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--frame); }
  .header .btn--red { display: none; }
  .top nav { display: none; }
}

/* HERO — okno dwuskrzydłowe */
.hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-bottom: 2rem; }
.sash {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 10px solid var(--ink);
  background: var(--ink); gap: 10px; /* słupek ruchomy */
}
.pane {
  position: relative; background: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; min-height: 360px;
  text-decoration: none;
}
.pane::after { /* klamka */
  content: ""; position: absolute; top: 50%; width: 8px; height: 46px; background: var(--ink);
  transform: translateY(-50%);
}
.pane:first-child::after { right: 14px; }
.pane:last-child::after { left: 14px; }
.pane h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pane p { color: var(--ink-2); }
.pane ul { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.pane li { padding: .55rem 0; border-top: 1px solid var(--frame); }
.pane li a { text-decoration: none; font-weight: 500; display: block; }
.pane li a:hover { color: var(--red); }
.pane .btn { margin-top: auto; align-self: flex-start; }
.pane--b2b { background: var(--surface); }
.pane-for { font-size: .95rem; font-weight: 600; color: var(--red); margin-bottom: .75rem; }
@media (max-width: 760px) {
  .sash { grid-template-columns: 1fr; border-width: 8px; gap: 8px; }
  .pane { min-height: 0; }
  .pane::after { display: none; }
}

/* Fakty */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--line); border-bottom: 1px solid var(--frame); }
.fact { padding: 1.5rem 1.25rem 1.5rem 0; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--frame); }
.fact strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.fact span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--frame); }
}

/* Siatka produktów */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.5rem; }
.product { text-decoration: none; display: flex; flex-direction: column; }
.product figure { margin: 0 0 1rem; background: var(--white); border: 1px solid var(--frame); aspect-ratio: 3 / 4; overflow: hidden; border-bottom: 3px solid var(--frame); transition: border-color .15s; }
.product img { width: 100%; height: 100%; object-fit: contain; }
.product:hover figure { border-bottom-color: var(--red); }
.product h3 { margin-bottom: .25rem; }
.product p { color: var(--ink-2); font-size: .95rem; margin-bottom: .6rem; }
.product dl { display: flex; gap: 1.25rem; margin: 0; font-size: .9rem; }
.product dt { color: var(--ink-2); }
.product dd { margin: 0; font-weight: 600; }

/* Kategorie */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line); }
.cat { padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .35rem; min-height: 150px; }
.cat + .cat { border-left: var(--line); }
.cat span { color: var(--ink-2); font-size: .95rem; }
.cat:hover { background: var(--surface); }
.cat:hover h3 { color: var(--red); }
@media (max-width: 860px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .cat:nth-child(3) { border-left: 0; }
  .cat:nth-child(n+3) { border-top: var(--line); }
}

/* Dwie kolumny */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Kroki (prawdziwa sekwencja) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--frame); }
.steps li::before { content: counter(s); font-weight: 700; font-size: 1.4rem; color: var(--red); line-height: 1.2; }
.steps strong { display: block; margin-bottom: .15rem; }
.steps span { color: var(--ink-2); }

/* Pasek B2B ciemny */
.band { background: var(--ink); color: var(--white); }
.band .lead, .band p { color: #c3c9cf; }
.band ul { list-style: none; padding: 0; margin: 0; }
.band li { padding: .85rem 0; border-top: 1px solid #3a434c; }
.band li strong { color: var(--white); }

/* Tabela porównawcza */
.table-wrap { overflow-x: auto; border: var(--line); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; min-width: 820px; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--frame); vertical-align: top; }
thead th { background: var(--ink); color: var(--white); font-weight: 600; font-size: .9rem; position: sticky; top: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
tbody th a { text-decoration: none; }
tbody th a:hover { color: var(--red); }
tbody tr:hover { background: var(--surface); }
td small { display: block; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { border: 2px solid var(--frame); background: var(--white); padding: .5rem .9rem; font: 500 .95rem var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* Strona produktu */
.crumbs { font-size: .9rem; color: var(--ink-2); padding: 1rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--frame); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

.p-hero { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; align-items: start; }
.p-hero figure { margin: 0; background: var(--white); border: 1px solid var(--frame); display: grid; place-items: center; }
.cats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cats--3 { grid-template-columns: 1fr; } .cats--3 .cat { border-left: 0 !important; } .cats--3 .cat + .cat { border-top: var(--line); } }
.p-hero .tag { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--red); margin-bottom: .5rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
@media (max-width: 860px) { .p-hero { grid-template-columns: 1fr; } }

.specbar { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); margin-top: 1.5rem; }
.spec { padding: 1rem 1.1rem; border-bottom: 1px solid var(--frame); }
.spec:not(:nth-child(3n+1)) { border-left: 1px solid var(--frame); }
.spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec strong { display: block; font-size: 1.6rem; line-height: 1.15; }
.spec span { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .specbar { grid-template-columns: 1fr 1fr; }
  .spec { border-left: 0 !important; border-bottom: 1px solid var(--frame) !important; }
  .spec:nth-child(even) { border-left: 1px solid var(--frame) !important; }
}

.tabs { position: sticky; top: 72px; z-index: 40; background: var(--white); border-bottom: 1px solid var(--frame); }
.tabs .wrap { display: flex; gap: 1.75rem; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 1rem 0; white-space: nowrap; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a:hover { border-bottom-color: var(--red); }

.params { width: 100%; min-width: 0; }
.params th { width: 45%; font-weight: 500; color: var(--ink-2); }
.params td { font-weight: 600; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.benefits h3 { padding-top: 1rem; border-top: 3px solid var(--red); }
.benefits p { color: var(--ink-2); }

.swatches { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); width: 76px; text-align: center; }
.swatches i { width: 60px; height: 60px; border: 1px solid var(--frame); display: block; }

.files { list-style: none; padding: 0; margin: 0; }
.files li { border-top: 1px solid var(--frame); }
.files a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; font-weight: 500; }
.files a:hover { color: var(--red); }
.files small { color: var(--ink-2); font-weight: 400; }

/* FAQ */
.faq details { border-top: 1px solid var(--frame); }
.faq details:last-child { border-bottom: 1px solid var(--frame); }
.faq summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1rem; }

/* CTA blok */
.cta-box { border: 10px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--ink); }
.cta-box > div { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta-box > div:last-child { background: var(--surface); }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; border-width: 8px; gap: 8px; } }

/* Formularze */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea {
  font: 400 1rem var(--font); color: var(--ink);
  padding: .8rem .9rem; border: 2px solid var(--frame); background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.check { display: flex; gap: .6rem; align-items: start; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.check input { width: auto; margin-top: .25rem; }
.form-note { font-size: .9rem; color: var(--ink-2); }
.form-ok { border-left: 4px solid var(--red); padding: 1rem 1.25rem; background: var(--surface); }

.seg { display: inline-flex; border: var(--line); margin-bottom: 1.5rem; }
.seg button { font: 600 .95rem var(--font); padding: .7rem 1.1rem; border: 0; background: var(--white); cursor: pointer; }
.seg button + button { border-left: var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Stopka */
.footer { background: var(--ink); color: #c3c9cf; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.f-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3a434c; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } }

.note { font-size: .85rem; color: var(--ink-2); }
.mt { margin-top: 2rem; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: 90px; }
.legal { max-width: 75ch; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.swatches li { width: 96px; }

/* Etap B: dobór modelu i porównania */
.seg-line { color: var(--ink-2); margin-bottom: 1.25rem; }
.seg-line strong { color: var(--ink); }
.vs { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.vs a { text-decoration: none; border-bottom: 2px solid var(--frame); }
.vs a:hover { border-bottom-color: var(--red); }
.diff { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.diff li { padding: .2rem 0; }
.pick { list-style: none; padding: 0; margin: 0; border-top: var(--line); }
.pick li { border-bottom: 1px solid var(--frame); }
.pick a { display: grid; gap: .15rem; padding: 1rem 2rem 1rem 0; text-decoration: none; position: relative; }
.pick a::after { content: ""; position: absolute; right: .25rem; top: 50%; width: .55rem; height: .55rem; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.pick a:hover strong { color: var(--red); }
.pick span { color: var(--ink-2); font-size: .95rem; }

/* Wyszukiwarka */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav { align-items: center; }
.hsearch input { width: 11.5rem; padding: .5rem .7rem; font-size: .92rem; border-width: 2px; }
@media (max-width: 1180px) and (min-width: 901px) { .hsearch input { width: 8.5rem; } .nav { gap: 1.1rem; } }
@media (max-width: 900px) { .hsearch { padding: .8rem 0 .2rem; } .hsearch input { width: 100%; } }
.bigsearch { display: flex; gap: .75rem; max-width: 760px; }
.bigsearch input { font-size: 1.15rem; padding: 1rem 1.1rem; border-color: var(--ink); }
.bigsearch .btn { flex: none; }
@media (max-width: 560px) { .bigsearch { flex-direction: column; } }
.examples { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; max-width: none; }
.examples a { display: inline-block; margin: .25rem .35rem .25rem 0; padding: .3rem .65rem; border: 1px solid var(--frame); text-decoration: none; color: var(--ink); }
.examples a:hover { border-color: var(--ink); }
.sinfo { font-weight: 600; min-height: 1.6em; }
.sres { list-style: none; padding: 0; margin: 0; border-top: var(--line); }
.sitem { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--frame); }
.sitem img, .sph { width: 72px; height: 96px; object-fit: contain; border: 1px solid var(--frame); background: var(--white); display: block; }
.sitem h2 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.sitem h2 a { text-decoration: none; }
.sitem h2 a:hover { color: var(--red); }
.sitem p { color: var(--ink-2); margin-bottom: .5rem; }
.stype { font-size: .85rem; color: var(--ink-2); }
.schips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.schips li { font-size: .85rem; padding: .2rem .55rem; border: 1px solid var(--frame); }
.schips .ok { border-color: var(--ink); }
.schips .no { border-color: var(--red); color: var(--red-dark); }
.sempty { padding: 1.25rem 0; }

/* Podpowiedzi i wybór znaczenia liczby */
.ssug { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; min-height: 0; }
.sug { font: 500 .95rem var(--font); padding: .4rem .75rem; border: 2px solid var(--ink); background: var(--white); cursor: pointer; display: inline-flex; gap: .5rem; align-items: baseline; }
.sug:hover { background: var(--ink); color: var(--white); }
.sug small, .choice small { font-weight: 400; font-size: .8rem; opacity: .75; }
.amb { border-left: 4px solid var(--red); background: var(--surface); padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.amb p { margin: 0 0 .6rem; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { font: 600 .95rem var(--font); text-align: left; padding: .55rem .85rem; border: 2px solid var(--frame); background: var(--white); cursor: pointer; display: grid; gap: .1rem; }
.choice:hover:not(:disabled) { border-color: var(--ink); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice:disabled { cursor: default; color: var(--ink-2); border-style: dashed; }

/* Kreator doboru okna */
.kwrap { max-width: 860px; }
.kprog { font-weight: 600; color: var(--red); margin-bottom: .5rem; }
.kstep { border: 0; padding: 0; margin: 0 0 2rem; }
.kstep legend { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; padding: 0; }
.kstep legend:focus { outline: none; }
.kopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.kopt { display: block; cursor: pointer; font-weight: 400; }
.kopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kopt span { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; border: 2px solid var(--frame); min-height: 100%; transition: border-color .12s, background .12s; }
.kopt strong { font-size: 1.1rem; }
.kopt small { color: var(--ink-2); font-size: .92rem; }
.kopt:hover span { border-color: var(--ink); }
.kopt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.kopt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.kopt input:checked + span small { color: #c3c9cf; }
.kopt input[type="checkbox"] + span strong::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border: 2px solid currentColor; margin-right: .55rem; vertical-align: -1px; }
.kopt input[type="checkbox"]:checked + span strong::before { background: var(--red); border-color: var(--red); }
.knav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--frame); padding-top: 1.25rem; }
.knav .btn--red { margin-left: auto; }
.knav .btn:disabled { opacity: .45; cursor: not-allowed; }
.kform:not(.js) .kstep { display: block; }
.kwynik h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.kwynik h2:focus { outline: none; }
.klist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.kcard { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.5rem; border: 2px solid var(--frame); }
.kcard--top { border: 10px solid var(--ink); }
.kcard img { width: 120px; height: 160px; object-fit: contain; }
.kcard h3 { font-size: 1.4rem; margin: .1rem 0 .4rem; }
.kcard h3 a { text-decoration: none; }
.kcard h3 a:hover { color: var(--red); }
.ktag { font-weight: 600; color: var(--red); margin: 0; font-size: .95rem; }
.kbl { margin-top: .75rem; }
.kact { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
@media (max-width: 560px) { .kcard { grid-template-columns: 1fr; } .kcard img { width: 90px; height: 120px; } .kcard--top { border-width: 6px; } }

/* ---------------------------------------------------------------- Ruch w kreatorze
   Krótko, bez odbić. Wejście 320 ms (ease-out), wyjście 140 ms (ease-in) i mniejsze przesunięcie.
   Animujemy tylko transform, opacity i filter. Globalna reguła prefers-reduced-motion na górze pliku wyłącza wszystko. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes k-in      { from { opacity: 0; transform: translateX(16px);  filter: blur(4px); } }
@keyframes k-in-back { from { opacity: 0; transform: translateX(-16px); filter: blur(4px); } }
@keyframes k-out      { to { opacity: 0; transform: translateX(-8px); filter: blur(2px); } }
@keyframes k-out-back { to { opacity: 0; transform: translateX(8px);  filter: blur(2px); } }
@keyframes k-rise    { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
@keyframes k-tick    { from { transform: scale(.6); } }

.kstep[data-anim="in"]       { animation: k-in 320ms var(--ease-out) both; }
.kstep[data-anim="in-back"]  { animation: k-in-back 320ms var(--ease-out) both; }
.kstep[data-anim="out"]      { animation: k-out 140ms var(--ease-in) both; }
.kstep[data-anim="out-back"] { animation: k-out-back 140ms var(--ease-in) both; }

/* Pasek postępu: płynnie się wydłuża */
.kbar { height: 3px; background: var(--frame); margin: -.1rem 0 1.4rem; overflow: hidden; }
.kbar span { display: block; height: 100%; background: var(--red); transform: scaleX(.2); transform-origin: left; transition: transform 420ms var(--ease-io); }

/* Wybór odpowiedzi: ciemne tło zjeżdża z góry jak roleta, przy odznaczeniu zwija się szybciej */
.kopt span { position: relative; overflow: hidden; isolation: isolate; transition: border-color 160ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.kopt span::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform 180ms var(--ease-in); }
.kopt input:checked + span { background: var(--white); }
.kopt input:checked + span::after { transform: scaleY(1); transition: transform 240ms var(--ease-out); }
.kopt small { transition: color 200ms var(--ease-out); }
.kopt:active span { transform: scale(.985); }
.kopt input[type="checkbox"] + span strong::before { transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.kopt input[type="checkbox"]:checked + span strong::before { animation: k-tick 220ms var(--ease-out); }

/* Wynik: nagłówek, potem karty po kolei */
.kwynik[data-anim="in"] > h2,
.kwynik[data-anim="in"] > .lead { animation: k-rise 360ms var(--ease-out) both; }
.kwynik[data-anim="in"] > .lead { animation-delay: 40ms; }
.kwynik[data-anim="in"] .klist > li { animation: k-rise 420ms var(--ease-out) both; animation-delay: calc(100ms + var(--i, 0) * 70ms); }
.kwynik[data-anim="in"] .klist > li:nth-child(2) { --i: 1; }
.kwynik[data-anim="in"] .klist > li:nth-child(3) { --i: 2; }
.kwynik[data-anim="in"] > .note,
.kwynik[data-anim="in"] > p:last-child { animation: k-rise 360ms var(--ease-out) both; animation-delay: 320ms; }

/* Przyciski: delikatne wciśnięcie */
.btn { transition: background .15s, color .15s, border-color .15s, transform 120ms var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(.98); }

/* ---------------------------------------------------------------- Ruch na reszcie strony
   Ta sama rodzina co w kreatorze, ale jeszcze ciszej. Częste akcje (pisanie, hover) — prawie bez ruchu. */
@keyframes s-in   { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade   { from { opacity: 0; } }
@keyframes drop   { from { opacity: 0; transform: translateY(-6px); } }
@keyframes handle { from { transform: translateY(-50%) rotate(90deg); } }

/* Strona główna i „Dla firm”: jedno wejście okna przy załadowaniu, a na końcu klamki obracają się do pozycji „zamknięte” */

/* Menu mobilne */
@media (max-width: 900px) { .nav.open { animation: drop 200ms var(--ease-out); } }

/* FAQ: treść odpowiedzi wysuwa się lekko po otwarciu (bez animowania wysokości) */
.faq details[open] > p { animation: s-in 240ms var(--ease-out); }
.faq summary::after { transition: transform 240ms var(--ease-out); }

/* Komunikat po wysłaniu formularza */
.form-ok { animation: k-rise 360ms var(--ease-out) both; }

/* Wyszukiwarka: nowe wyniki krótko się pojawiają; ramka „Co oznacza…” tylko przy pierwszym pokazaniu */
.sres .sitem, .sres .sempty { animation: s-in 220ms var(--ease-out) both; }
.sres .sitem:nth-child(2) { animation-delay: 30ms; }
.sres .sitem:nth-child(3) { animation-delay: 60ms; }
.sres .sitem:nth-child(n+4) { animation-delay: 90ms; }
.amb.is-new { animation: s-in 260ms var(--ease-out) both; }
.choice, .chip, .sug { transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out); }
.choice:active:not(:disabled), .chip:active, .sug:active { transform: scale(.97); }

/* Tabela porównawcza: wiersze wracające po zmianie filtra */
tr.row-in { animation: fade 220ms var(--ease-out); }


/* Miejsce na klamki, żeby nie nachodziły na treść skrzydeł */
@media (min-width: 761px) {
  .sash .pane:first-child { padding-right: calc(clamp(1.5rem, 4vw, 3rem) + 1.25rem); }
  .sash .pane:last-child { padding-left: calc(clamp(1.5rem, 4vw, 3rem) + 1.25rem); }
}

/* ---------------------------------------------------------------- Zdjęcia */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; background: var(--surface); }
.photo figcaption { font-size: .85rem; color: var(--ink-2); padding-top: .5rem; }
.photo--in { margin-bottom: 2rem; }
.photo--in img { aspect-ratio: 16 / 7; }
@media (max-width: 760px) { .photo img, .photo--in img { aspect-ratio: 4 / 3; } }

/* Strona okna: przełącznik koloru zdjęcia */
.pimg-frame { position: relative; margin: 0; background: var(--white); border: 1px solid var(--frame); }
.pimg-frame img { width: 100%; height: auto; display: block; transition: opacity 280ms var(--ease-out); }
.pimg-frame .pimg-antracyt { position: absolute; inset: 0; opacity: 0; }
.pimg-frame[data-kolor="antracyt"] .pimg-antracyt { opacity: 1; }
.pimg-frame[data-kolor="antracyt"] .pimg-bialy { opacity: 0; }
.pimg-kolory { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.pimg-kolory button { display: inline-flex; align-items: center; gap: .45rem; font: 500 .92rem var(--font); padding: .45rem .8rem; border: 2px solid var(--frame); background: var(--white); cursor: pointer; transition: border-color 160ms var(--ease-out); }
.pimg-kolory button i { width: 1rem; height: 1rem; border: 1px solid var(--frame); display: block; }
.pimg-kolory button[aria-pressed="true"] { border-color: var(--ink); }
.pimg-kolory a { margin-left: auto; font-size: .92rem; }
.p-hero > .pimg { align-self: start; }

/* O firmie: cytat kierownika zakładu */
.quote { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.quote img { width: 100%; height: auto; display: block; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 46ch; }
.quote footer { color: var(--ink-2); }
.quote footer strong { color: var(--ink); }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } .quote img { max-width: 220px; } }

/* Miejsca na zdjęcia, których jeszcze nie ma */
.photo-todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.photo-todo { margin: 0; aspect-ratio: 4 / 3; border: 2px dashed var(--frame); display: grid; place-items: center; text-align: center; padding: 1rem; background: repeating-linear-gradient(135deg, transparent 0 14px, var(--surface) 14px 15px); }
.photo-todo div { display: grid; gap: .25rem; }
.photo-todo strong { font-size: .8rem; color: var(--red); }
.photo-todo span { font-weight: 600; }
.photo-todo small { color: var(--ink-2); max-width: 28ch; }

/* Rolety: oznaczenie moskitiery na zdjęciu przekroju */
.has-mark { position: relative; }
.has-mark > img { width: 100%; }
.mark { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; pointer-events: none; }
.mark i { position: absolute; left: 0; top: 0; width: clamp(22px, 11%, 46px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid var(--red); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.mark b { position: absolute; left: clamp(14px, 7%, 28px); top: 0; transform: translateY(-50%); margin-left: .35rem; white-space: nowrap; font: 600 .78rem/1 var(--font); color: var(--white); background: var(--red); padding: .3rem .5rem; }
.mark b::before { content: ""; position: absolute; right: 100%; top: 50%; width: .5rem; height: 2px; background: var(--red); }

/* ---------------------------------------------------------------- Kreator → formularz wyceny */
.kquote { border-left: 4px solid var(--red); background: var(--surface); padding: .9rem 1.1rem; max-width: 70ch; }
.kquote a { font-weight: 600; margin-left: .25rem; white-space: nowrap; }

.kset { border: 2px solid var(--ink); padding: 1rem 1.2rem; display: grid; gap: .45rem; animation: k-rise 420ms var(--ease-out) both; }
.kset-t { margin: 0; font-size: .9rem; color: var(--ink-2); }
.kset-m { margin: 0; font-size: 1.2rem; }
.kset .schips li { border-color: var(--ink); }
.kset a { justify-self: start; font-size: .92rem; font-weight: 600; }

/* Pola wypełnione z kreatora: krótkie podświetlenie, potem zwykły wygląd */
@keyframes filled { 0% { background-color: rgba(208, 16, 26, .09); } 100% { background-color: transparent; } }
label.is-filled { animation: filled 1400ms var(--ease-out) var(--d, 200ms) both; margin: -.35rem -.5rem; padding: .35rem .5rem; }

/* Płynne przejście między stronami (Chrome, Edge, Safari 18+; inne przeglądarki po prostu przełączą stronę) */
@view-transition { navigation: auto; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } }
::view-transition-old(root) { animation: vt-out 160ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 280ms var(--ease-out) both; }
.header { view-transition-name: naglowek; }
::view-transition-group(naglowek) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------------------------------------------------------------- Intro: okno się otwiera, przechodzimy na stronę
   Scena: ściana, rama z głębią, dwa skrzydła z profilem, uszczelką i matowym szkłem, klamki CUBE.
   Reżyseria (ok. 2,3 s): odblask na szybie → klamki → skrzydła odchylają się w głąb → kamera wjeżdża w okno
   → strona za oknem wyostrza się. Tylko transform, opacity i filter. Raz na sesję, z „Pomiń”. */
#intro { display: none; }
html.intro #intro { display: block; }
html.intro body { overflow: hidden; }
html.intro .sash, html.intro .sash .pane > *, html.intro .sash .pane::after,
html.intro-done .sash, html.intro-done .sash .pane > *, html.intro-done .sash .pane::after { animation: none; }

/* Strona za oknem: najpierw lekko pomniejszona i nieostra, jak tło w obiektywie */
html.intro .top, html.intro .header, html.intro main { transform: scale(.965); filter: blur(7px); transform-origin: 50% 30vh; }
@keyframes intro-focus { to { transform: none; filter: blur(0); } }
html.intro-run .top, html.intro-run .header, html.intro-run main { animation: intro-focus 900ms cubic-bezier(.2, .7, .2, 1) 1400ms both; }

.intro { position: fixed; inset: 0; z-index: 300; cursor: pointer; perspective: 1100px; perspective-origin: 50% 46%; }
.intro-cam { position: absolute; inset: 0; display: grid; place-items: center; }

/* Ściana: duży cień ramy + miękka winieta i światło padające z góry */
.intro-f { position: relative; width: min(68vw, 640px); height: min(64vh, 740px);
  border: 16px solid #1f252b; border-top-color: #2a3138; border-bottom-color: #191e23;
  box-shadow: 0 0 0 200vmax #d5d7d6;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; perspective: 1300px; }
.intro-f::before { /* głębokość wnęki: cień wewnętrzny ramy */
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 10px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: 0; }
.intro-vig { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.intro-rev { position: absolute; inset: -54px; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 38px #cbcecd, inset 0 40px 26px -20px rgba(0, 0, 0, .16), inset 40px 0 26px -24px rgba(0, 0, 0, .10), inset -40px 0 26px -24px rgba(0, 0, 0, .10); }
.intro-sill { position: absolute; left: -78px; right: -78px; bottom: -74px; height: 24px; z-index: 3;
  background: linear-gradient(180deg, #faf9f6 0%, #eeece7 55%, #d9d6cf 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 22px -12px rgba(20, 22, 24, .35); }
.intro-sill::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; background: linear-gradient(#cfccc4, #c2bfb7); }
.intro-plant { position: absolute; left: 7%; bottom: 100%; width: 92px; height: auto; }
.intro-books { position: absolute; right: 9%; bottom: 100%; width: 96px; height: auto; }
/* światło wpadające przez okno, faktura tynku i lekki cień w rogach pokoju (to wszystko jedzie z kamerą) */
.intro-room { position: absolute; inset: -60vmax; pointer-events: none; z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) center / min(68vw, 640px) min(64vh, 740px) no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) center / min(68vw, 640px) min(64vh, 740px) no-repeat exclude, linear-gradient(#000 0 0);
  background:
    radial-gradient(42vmax 34vmax at 50% 52%, rgba(255, 252, 244, .55), transparent 70%),
    radial-gradient(140% 110% at 50% 45%, transparent 50%, rgba(25, 28, 30, .22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .4 0 0 0 0 .4 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Logo na ścianie nad oknem */
.intro-logo { position: absolute; z-index: 3; left: 50%; top: calc(50% - min(32vh, 370px) - 16px - 54px - 56px); transform: translateX(-50%); opacity: 0; }
.intro-logo img { height: 34px; width: auto; display: block; }

/* Skrzydło: profil PVC (biel z delikatnym cieniowaniem), czarna uszczelka, matowe szkło */
.intro-s { position: relative; padding: 15px; z-index: 1;
  background: linear-gradient(90deg, #f3f3f1, #fbfbfa 18%, #fbfbfa 82%, #ecedeb);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 2px 0 rgba(255, 255, 255, .9);
}
.intro-s.l { transform-origin: 0 50%; border-right: 12px solid #1f252b; } /* ruchomy słupek otwiera się z lewym skrzydłem */
.intro-s.r { transform-origin: 100% 50%; }
.intro-g { position: relative; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, rgba(214, 228, 237, .34) 0%, rgba(196, 213, 224, .24) 60%, rgba(208, 222, 231, .3) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(1.2) brightness(1.06); backdrop-filter: blur(9px) saturate(1.2) brightness(1.06);
  box-shadow: 0 0 0 2px #252a2f, inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 18px 30px -18px rgba(255, 255, 255, .7); }
.intro-g::before { /* odblask przesuwający się po szybie */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .15) 60%, transparent);
  transform: translateX(0) skewX(-12deg); }
.intro-sh { position: absolute; inset: 0; background: #0f1418; opacity: 0; pointer-events: none; } /* cień skrzydła przy otwieraniu */

/* Klamka CUBE: rozeta + dźwignia, obraca się wokół osi rozety */
.intro-k { position: absolute; top: 50%; width: 14px; height: 42px; margin-top: -21px; background: linear-gradient(90deg, #2b3137, #1b2025);
  border-radius: 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); z-index: 2; }
.intro-s.l .intro-k { right: 2px; } .intro-s.r .intro-k { left: 2px; }
.intro-k i { position: absolute; left: 2px; top: 6px; width: 10px; height: 78px; background: linear-gradient(90deg, #30373e, #1d2227);
  border-radius: 2px; transform-origin: 5px 5px; box-shadow: 1px 3px 6px rgba(0, 0, 0, .3); }

.intro-skip { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2; font: 600 .9rem var(--font); padding: .55rem .9rem;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; opacity: 0; }

/* ---------------- ruch */
@keyframes i-scene   { from { opacity: 0; } }
@keyframes i-logo    { 0% { opacity: 0; transform: translate(-50%, 6px); } 30%, 70% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }
@keyframes i-sheen   { to { transform: translateX(420%) skewX(-12deg); } }
@keyframes i-handle  { 0% { transform: rotate(0); } 100% { transform: rotate(-90deg); } }
@keyframes i-l       { 0% { transform: rotateY(0); } 12% { transform: translateZ(-4px) rotateY(-2deg); } 100% { transform: rotateY(-104deg); } }
@keyframes i-r       { 0% { transform: rotateY(0); } 12% { transform: translateZ(-4px) rotateY(2deg); } 100% { transform: rotateY(104deg); } }
@keyframes i-shade   { to { opacity: .38; } }
@keyframes i-cam     { 0% { transform: translateZ(0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateZ(980px); opacity: 0; } }
@keyframes i-in      { to { opacity: 1; } }

/* ściana od pierwszej klatki pełna: strona nie prześwituje przed otwarciem okna */
.intro.is-run .intro-logo { animation: i-logo 1500ms var(--ease-out) 150ms both; }
.intro.is-run .intro-g::before { animation: i-sheen 1100ms cubic-bezier(.4, 0, .2, 1) 180ms both; }
.intro.is-run .intro-k i { animation: i-handle 420ms cubic-bezier(.65, 0, .35, 1) 620ms both; }
@keyframes i-handle-l { 0% { transform: rotate(0); } 100% { transform: rotate(90deg); } }
.intro.is-run .intro-s.l .intro-k i { animation-name: i-handle-l; } /* lewa klamka obraca się w lewo */
.intro.is-run .intro-s.l { animation: i-l 980ms cubic-bezier(.55, 0, .2, 1) 1000ms both; }
.intro.is-run .intro-s.r { animation: i-r 980ms cubic-bezier(.55, 0, .2, 1) 1040ms both; }
.intro.is-run .intro-sh { animation: i-shade 900ms var(--ease-in) 1100ms both; }
.intro.is-run .intro-cam { animation: i-cam 950ms cubic-bezier(.55, 0, .75, .3) 1380ms both; }
@keyframes i-skip { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.intro.is-run .intro-skip { animation: i-skip 1700ms linear 400ms both; }
.intro.is-skip { opacity: 0; transition: opacity 220ms var(--ease-out); }
html.intro-skip .top, html.intro-skip .header, html.intro-skip main { transform: none; filter: none; transition: transform 220ms var(--ease-out), filter 220ms var(--ease-out); animation: none; }
@media (prefers-reduced-motion: reduce) { html.intro #intro { display: none; } html.intro body { overflow: auto; } html.intro .top, html.intro .header, html.intro main { transform: none; filter: none; } }

/* ---------------------------------------------------------------- Telefon: zwartszy układ */
@media (max-width: 900px) {
  .top { display: none; }                                   /* sam tekst, numer i menu są w nagłówku */
}
@media (max-width: 760px) {
  .section { padding: 2.75rem 0; }
  h1 { font-size: 2.05rem; }
  .hero { padding: 1.25rem 0 2.25rem; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.25rem; }

  /* okno na górze: cieńsza rama, ciaśniejsze skrzydła, przyciski na całą szerokość */
  .sash { border-width: 6px; gap: 6px; }
  .pane { padding: 1.25rem 1.1rem 1.35rem; }
  .pane h2 { font-size: 1.35rem; margin-bottom: .35rem; }
  .pane > p:not(.pane-for) { font-size: .95rem; margin-bottom: .75rem; }
  .pane-for { margin-bottom: .35rem; font-size: .88rem; }
  .pane ul { margin-bottom: 1rem; }
  .pane li { padding: .45rem 0; font-size: .95rem; }
  .pane li:nth-child(n+3) { display: none; }                /* na telefonie dwa najważniejsze linki */
  .pane .btn { align-self: stretch; justify-content: center; text-align: center; }

  .facts .fact { padding-top: 1rem; padding-bottom: 1rem; }
  .facts .fact strong { font-size: 1.6rem; }

  .head-row { margin-bottom: 1.25rem; }
}
@media (max-width: 600px) {
  /* karty produktów w dwóch kolumnach */
  .products { grid-template-columns: 1fr 1fr; gap: 1.5rem .9rem; }
  .product figure { margin-bottom: .6rem; }
  .product h3 { font-size: 1.02rem; }
  .product p { font-size: .84rem; line-height: 1.45; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product dl { gap: .6rem; font-size: .78rem; flex-wrap: wrap; }
  .product dl > div:nth-child(3) { display: none; }
  .mark b { font-size: .7rem; padding: .22rem .4rem; }
}

/* Intro na telefonie: niższe, szersze okno, węższe ościeże, logo mieści się nad oknem */
@media (max-width: 600px) {
  .intro-f { width: 78vw; height: 50vh; border-width: 12px; }
  .intro-room { -webkit-mask-size: 78vw 50vh, auto; mask-size: 78vw 50vh, auto; }
  .intro-rev { inset: -34px; box-shadow: inset 0 0 0 24px #cbcecd, inset 0 26px 20px -16px rgba(0, 0, 0, .16), inset 26px 0 20px -18px rgba(0, 0, 0, .10), inset -26px 0 20px -18px rgba(0, 0, 0, .10); }
  .intro-sill { left: -44px; right: -44px; bottom: -52px; height: 18px; }
  .intro-plant { width: 66px; }
  .intro-books { width: 70px; }
  .intro-logo { top: calc(50% - 25vh - 12px - 34px - 58px); }
  .intro-logo img { height: 30px; }
  .intro-s { padding: 11px; }
  .intro-k { width: 11px; height: 34px; margin-top: -17px; }
  .intro-k i { width: 8px; height: 60px; left: 1.5px; transform-origin: 4px 4px; }
}

/* ---------------------------------------------------------------- Podstrony na telefonie */
tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }   /* nazwa modelu nad opisem, też na komputerze */
.params th { white-space: normal; }                                                            /* długie etykiety łamią się zamiast wypychać wartości */

@media (max-width: 760px) {
  /* tabele parametrów (strona okna, kontakt) */
  table.params { min-width: 0; }
  .params th, .params td { padding: .7rem .4rem .7rem 0; font-size: .95rem; }
  .params th { width: 52%; }

  /* strona produktu: zdjęcie nie zajmuje całego ekranu */
  .p-hero { gap: 1.25rem; padding-bottom: 2rem; }
  .p-hero > .pimg, .p-hero > figure { width: 78%; margin: 0 auto; }
  .pimg-kolory { justify-content: center; }
  .pimg-kolory a { margin-left: 0; flex-basis: 100%; text-align: center; }
  .p-actions .btn { flex: 1 1 100%; justify-content: center; }
  .tabs .wrap { gap: 1.25rem; }
  .tabs a { padding: .8rem 0; font-size: .95rem; }

  /* tabela porównawcza jako karty: model, „dla kogo”, potem parametry w dwóch kolumnach */
  .table-wrap:has(#cmp) { border: 0; overflow: visible; }
  #cmp { min-width: 0; }
  #cmp thead { display: none; }
  #cmp tbody { display: grid; gap: .9rem; }
  #cmp tr { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); padding: .9rem 1rem; gap: .55rem 1rem; }
  #cmp tr[hidden] { display: none; }
  #cmp tbody tr:hover { background: transparent; }
  #cmp th, #cmp td { padding: 0; border: 0; }
  #cmp th { grid-column: 1 / -1; font-size: 1.15rem; }
  #cmp td.cmp-fit { grid-column: 1 / -1; color: var(--ink-2); padding-bottom: .35rem; border-bottom: 1px solid var(--frame); }
  #cmp td::before { content: attr(data-l); display: block; font-size: .78rem; color: var(--ink-2); }
  #cmp td.cmp-fit::before { display: none; }

  /* kreator: kafelki odpowiedzi jeden pod drugim, ciaśniej */
  .kopts { grid-template-columns: 1fr; gap: .6rem; }
  .kopt span { padding: .9rem 1rem; }
  .kcard { padding: 1.1rem; gap: 1rem; }
  .kact .btn { flex: 1 1 100%; justify-content: center; }

  /* formularze: przycisk wysyłki na całą szerokość */
  .form .btn[type="submit"] { justify-content: center; width: 100%; }
  .seg { display: flex; }
  .seg button { flex: 1; }

  /* kontakt: dwa bloki wyboru jeden pod drugim, mniej ramki */
  .cta-box { border-width: 6px; gap: 6px; }
  .cta-box > div { padding: 1.25rem 1.1rem; }
  .cta-box .btn { width: 100%; justify-content: center; }
}

/* Cyfry: font z cyframi tabelarycznymi robi odstęp przed przecinkiem („1 , 4”), więc w tabelach zwykłe cyfry */
table, .params, .num { font-variant-numeric: normal; }
@media (max-width: 760px) {
  #cmp tr { grid-template-columns: repeat(3, 1fr); gap: .5rem .75rem; }
  #cmp td[data-l="Uszczelnienie"], #cmp td[data-l="Otwieranie"] { grid-column: span 3; }
  #cmp td[data-l="Uszczelnienie"]::before, #cmp td[data-l="Otwieranie"]::before { display: inline; margin-right: .4rem; }
}

/* Stałe miejsce na pasek przewijania: po intro (blokada przewijania) strona nie przeskakuje w bok */
html { scrollbar-gutter: stable; }
