/* Strefa Komfortu v2: biel obudowy i miedź rurek. Porządna strona firmy instalacyjnej: stały nagłówek ze znakiem,
   zdjęcia pracy, cennik w tabeli, dobór mocy z SMS-em, grafitowa stopka. Miedź tylko na działaniu i znaku. */
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-sc-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; 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; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-sc-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-sc-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; 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; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlow-sc-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; 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; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; 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; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; 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; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --white: #ffffff;
  --cool: #f2f4f5;
  --ink: #15191d;
  --ink-2: #3b4249;
  --graphite: #262c33;
  --graphite-2: #313840;
  --line: #d9dcdf;
  --copper: #9c4621;
  --copper-dark: #7a3519;
  --copper-light: #f2c9b2;
  --cold: #dde8ee;
  --r-s: 4px;   /* przyciski, pola, podpisy */
  --r: 6px;     /* zdjęcia i karty */
  --cold-ink: #5f7f92;

  --display: "Barlow SC", "Barlow", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  --t-small: 15px;
  --t-body: 18px;
  --t-lead: clamp(19px, 1.05rem + 0.3vw, 21px);
  --t-h3: 22px;
  --t-h2: clamp(34px, 1.6rem + 1.9vw, 56px);
  --t-h1: clamp(36px, 1.6rem + 2.6vw, 66px);

  --m: clamp(20px, 3vw, 48px);
  --sec: clamp(64px, 7vw, 96px);
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--t-body)/1.55 var(--text); text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--copper); color: var(--white); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.02; }
h3 { font-family: var(--text); font-weight: 600; font-size: var(--t-h3); line-height: 1.25; }
.lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 46ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--m); }

/* Pasek „projekt demonstracyjny” */
.demo-note { background: var(--graphite); color: #e9ecee; font-size: var(--t-small); line-height: 1.3; padding: 9px var(--m); text-align: center; }
.who-open, .linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Przyciski i linki */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; background: var(--copper); color: var(--white); font-weight: 600; font-size: 18px; text-decoration: none; border: 0; border-radius: var(--r-s); cursor: pointer; transition: background .2s var(--ease); }
.btn:hover { background: var(--copper-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 17px; }
.btn-ghost { background: var(--cool); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-wide { width: 100%; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--copper); transition: color .2s; }
.link:hover { color: var(--copper); }

/* Nagłówek: stały biały pasek ze znakiem, menu i telefonem */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s, transform .35s var(--ease); } /* taste-skill-ignore: linia tylko pod przyklejonym paskiem */
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head.away { transform: translateY(-100%); }
.btn-tel { gap: 8px; }
.btn-tel svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.head-in { max-width: 1320px; margin-inline: auto; padding-inline: var(--m); height: var(--head-h); display: flex; align-items: center; gap: 32px; transition: height .25s var(--ease); }
.site-head.scrolled .head-in { height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.sig { width: 36px; height: 36px; flex: none; overflow: visible; }
.sig-pipe { fill: none; stroke: var(--copper); stroke-width: 8; stroke-linecap: butt; stroke-linejoin: round; }
.sig-core { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: butt; }
.sig-fit { fill: var(--copper); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0; }
.brand-txt span { font-size: 15px; color: var(--ink-2); }
.head-nav { display: flex; gap: 28px; margin-inline: auto; }
.head-nav a { position: relative; text-decoration: none; font-weight: 500; font-size: 17px; padding: 8px 0; }
.head-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.head-nav a:hover::after, .head-nav a.on::after { transform: scaleX(1); }
.head-act { display: flex; align-items: center; gap: 18px; flex: none; }
.head-hours { font-size: 15px; color: var(--ink-2); }
.head-call, .head-menu { display: none; }

/* Menu na telefonie */
.menu { position: fixed; inset: 0; top: 64px; z-index: 39; background: var(--white); padding: 24px var(--m) 40px; overflow-y: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--display); font-weight: 600; font-size: 30px; text-decoration: none; padding: 10px 0; }
.menu-contact { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.menu-contact a { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--copper); text-decoration: none; }
.menu-contact span { color: var(--ink-2); font-size: 17px; }

/* Pierwszy ekran: tekst z lewej, zdjęcie do prawej krawędzi */
/* Pierwszy ekran: zdjęcie na całą szerokość, tekst na nim po lewej (od 1021 px) */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(640px, calc(100svh - var(--head-h) - 38px)); color: var(--white); background: var(--graphite); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: calc(760px + max(var(--m), calc((100vw - 1320px) / 2 + var(--m)))); padding: 96px clamp(24px, 4vw, 64px) clamp(56px, 7vh, 88px) max(var(--m), calc((100vw - 1320px) / 2 + var(--m))); }
.hero h1 { font-size: clamp(44px, 1.6rem + 3.6vw, 88px); font-weight: 700; line-height: 0.96; }
.hero-lead { margin-top: 28px; font-size: var(--t-lead); color: rgba(255,255,255,.9); max-width: 42ch; }
.hero-act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero-link { color: var(--white); text-decoration-color: var(--copper-light); }
.hero-link:hover { color: var(--copper-light); }
.hero-quote { margin-top: 48px; max-width: 46ch; }
.hero-quote blockquote { font-size: 20px; font-weight: 500; }
.hero-quote figcaption { margin-top: 8px; font-size: 17px; color: rgba(255,255,255,.82); }
.hero-quote figcaption b { color: var(--white); font-weight: 600; }
.hero-pic { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-pic::after { /* taste-skill-ignore: neutralny cień pod tekstem na zdjęciu */ content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,25,29,.86) 0%, rgba(21,25,29,.74) 30%, rgba(21,25,29,.3) 52%, rgba(21,25,29,0) 68%), linear-gradient(0deg, rgba(21,25,29,.45) 0%, rgba(21,25,29,0) 40%); }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero .hero-pic figcaption { left: auto; right: 14px; z-index: 1; }
.hero-pic figcaption, .steps-pic figcaption, .block-pic figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 15px; padding: 5px 10px; border-radius: var(--r-s); }

/* Fakty pod pierwszym ekranem */
.facts { background: var(--graphite); color: #f1f3f4; }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 30px 28px 30px 0; display: flex; flex-direction: column; gap: 4px; }
.facts-list li + li { padding-left: 28px; }
.facts-list b { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; }
.facts-list span { font-size: 17px; color: #c9ced3; line-height: 1.4; }

/* Jak wygląda montaż: zdjęcie i kroki */
.steps-sec { padding-block: var(--sec); }
.steps-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps-pic { position: sticky; top: 96px; }
.steps-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.steps-body .lead { margin-top: 20px; }
.steps { position: relative; margin-top: 44px; counter-reset: s; display: flex; flex-direction: column; gap: 34px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
.steps li::before { content: counter(s); position: relative; z-index: 1; background: var(--white); transition: background .35s var(--ease), color .35s var(--ease); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--copper); color: var(--copper); font-weight: 700; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.steps li p { color: var(--ink-2); margin-top: 6px; max-width: 54ch; }
.steps-note { margin-top: 28px; padding: 20px 24px; background: var(--cool); border-radius: var(--r); max-width: 62ch; }

/* Montaż w bloku */
.block-sec { padding-block: var(--sec); background: var(--cool); }
.block-grid { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(40px, 6vw, 96px); row-gap: 44px; align-items: start; }
.block-main, .block-side { display: flex; flex-direction: column; gap: 44px; }
.block-side { gap: 16px; }
.block-head { grid-area: head; }
.block-head .lead { margin-top: 20px; }
.block-pic { grid-area: pic; position: relative; }
.block-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; border-radius: var(--r); }
.block-draw { grid-area: draw; background: var(--white); border-radius: var(--r); padding: 24px 24px 20px; }
.block-draw figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.sect { display: block; width: 100%; height: auto; }
.s-room { fill: var(--cool); }
.s-slab { fill: var(--ink-2); }
.s-rail { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.s-cond { fill: none; stroke: var(--cold-ink); stroke-width: 2.2; stroke-linejoin: round; }
.s-pump { fill: var(--white); stroke: var(--ink-2); stroke-width: 1.5; }
.s-feet { fill: var(--ink); }
.s-lab { fill: var(--ink-2); font: 500 19px var(--text); }
.block-list { grid-area: list; display: flex; flex-direction: column; gap: 32px; }
.block-list div { padding-top: 18px; border-top: 2px solid var(--ink); max-width: 60ch; }
.block-list p { color: var(--ink-2); margin-top: 8px; }

/* Dobór mocy */
.calc-sec { padding-block: var(--sec); }
.calc-head .lead { margin-top: 20px; }
.calc { margin-top: 44px; display: grid; grid-template-columns: 7fr 5fr; border-radius: var(--r); overflow: hidden; background: var(--cool); }
.calc-form { padding: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.calc-form .room-fig { grid-column: 1 / -1; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.field > span:first-child, .field legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 10px; }
fieldset.field legend { float: left; width: 100%; }
.num { display: flex; align-items: center; max-width: 220px; border: 1px solid #b9bec3; /* taste-skill-ignore: pole formularza */ border-radius: var(--r-s); background: var(--white); }
.num input { flex: 1; min-width: 0; border: 0; background: none; font: 600 22px var(--text); padding: 12px 14px; color: var(--ink); }
.num input:focus { outline: none; }
.num:focus-within { outline: 3px solid var(--copper); outline-offset: 2px; }
.num span { padding-right: 14px; color: var(--ink-2); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 16px; border: 1px solid #b9bec3; /* taste-skill-ignore: przycisk wyboru w formularzu */ border-radius: var(--r-s); font-size: 17px; background: var(--white); transition: background .15s, border-color .15s, color .15s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.seg label:hover span { border-color: var(--ink); }
.calc-out { background: var(--graphite); color: #f1f3f4; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.out-kw { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 5vw, 76px); line-height: 1; }
.out-kw span { display: inline-block; }
.out-kw .bump { animation: bump .45s var(--ease); }
@keyframes bump { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.out-price { width: 100%; margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.out-price th, .out-price td { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14); text-align: left; font-weight: 400; } /* taste-skill-ignore: wiersze tabeli cen */
.out-price th { font-size: 18px; }
.out-price th span { margin-left: 8px; font-size: 15px; color: #c9ced3; }
.out-price td { text-align: right; font-size: 20px; font-weight: 600; white-space: nowrap; }
.out-why { margin-top: 6px; }
.out-why { color: #c9ced3; font-size: 17px; }
.out-sms { margin-top: auto; padding-top: 16px; }
.sms-to { font-size: 15px; color: #c9ced3; margin-bottom: 8px; }
.sms-bubble { background: #f1f3f4; color: var(--ink); padding: 14px 16px; border-radius: 16px 16px 16px 4px; font-size: 17px; line-height: 1.45; }
.calc-out .btn { margin-top: 12px; }
.out-note { font-size: 15px; color: #c9ced3; }

/* Cennik */
.price-sec { padding-block: 0 var(--sec); }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.price-head .lead { max-width: 40ch; }
.table-wrap { margin-top: 40px; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 720px; }
.price-table th, .price-table td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; } /* taste-skill-ignore: prawdziwa tabela cen */
.price-table thead th { font-size: 17px; font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.price-table thead th span { display: block; font-weight: 400; color: var(--ink-2); }
.price-table tbody th { font-family: var(--display); font-weight: 600; font-size: 24px; white-space: nowrap; }
.price-table td { font-size: 18px; }
.price-table td:nth-child(2) { color: var(--ink-2); }
.price-table td:nth-child(n+3) { font-weight: 600; white-space: nowrap; }
.price-more { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.price-more h3 { margin-bottom: 14px; }
.ticks li { position: relative; padding: 5px 0 5px 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.rows dd { font-weight: 600; white-space: nowrap; }

/* Realizacje */
.work-sec { padding-block: 40px var(--sec); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 48px; }
.work-head p { color: var(--ink-2); max-width: 44ch; }
.work-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; border-radius: var(--r); background: var(--cool); }
.work figcaption { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.work figcaption b { display: block; color: var(--ink); font-size: 20px; }

/* Opinie */
.rev-sec { padding-block: var(--sec); background: var(--cool); }
.rev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }
.rev-score { display: flex; align-items: center; gap: 18px; }
.rev-score b { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: 0.85; }
.rev-score p { display: flex; flex-direction: column; gap: 4px; }
.rev-score span { color: var(--ink-2); }
.rev-body { margin-top: 44px; display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.rev-feature { background: var(--graphite); color: #f1f3f4; padding: clamp(28px, 3vw, 44px); border-radius: var(--r); display: flex; flex-direction: column; }
.rev-feature blockquote { flex: 1; }
.rev-feature .rev-pull { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 1rem + 1.25vw, 34px); line-height: 1.12; color: var(--white); margin-bottom: 22px; }
.rev-feature p { font-size: 18px; line-height: 1.65; }
.rev-feature figcaption { margin-top: 20px; font-weight: 600; color: var(--copper-light); }
.rev-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.rev-tiles figure { background: var(--white); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; }
.rev-tiles blockquote { flex: 1; }
.rev-tiles .rev-pull { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.rev-tiles p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.rev-tiles figcaption { margin-top: 14px; font-size: 17px; font-weight: 600; }

/* Przycisk na górę z pierścieniem postępu przewijania */
.up { position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 52px; height: 52px; border-radius: 50%; background: var(--graphite); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.up.show { opacity: 1; visibility: visible; transform: none; }
.up:hover { background: var(--ink); }
.up svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.up-track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 3; }
.up-ring { fill: none; stroke: var(--copper-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 * (1 - var(--p, 0))); }
.up-arrow { fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 24px 24px; }

/* Pytania */
.faq-sec { padding-block: var(--sec); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-ask { margin-top: 24px; color: var(--ink-2); max-width: 30ch; }
.faq-ask a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.faq details { background: var(--cool); border-radius: var(--r); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 600; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Kontakt */
.contact-sec { background: var(--graphite); color: #f1f3f4; padding-block: var(--sec) 56px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-sec .lead { color: #c9ced3; margin-top: 20px; }
.contact-phone { margin-top: 32px; }
.contact-phone a { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4vw, 60px); text-decoration: none; line-height: 1; }
.contact-phone a:hover { color: var(--copper-light); }
.contact-line { margin-top: 10px; color: #c9ced3; }
.link-light { text-decoration-color: var(--copper-light); }
.link-light:hover { color: var(--copper-light); }
.contact-area { margin-top: 40px; color: #c9ced3; max-width: 48ch; }
.contact-area b { color: #f1f3f4; }
.contact-map { position: relative; }
.map-box { position: relative; }
.contact-map img { width: 100%; border-radius: var(--r); }
.pin { position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--copper); border: 4px solid var(--white); outline: 10px solid rgba(156, 70, 33, .25); }
.contact-map figcaption { margin-top: 10px; font-size: 15px; color: #c9ced3; }
.contact-map figcaption a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.map-area { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1200 / 918; pointer-events: none; }
.map-area g { opacity: .22; }
.map-area polygon { fill: var(--copper); stroke: var(--copper); stroke-width: 150; stroke-linejoin: round; }
.map-lab { position: absolute; z-index: 1; transform: translate(-50%, -50%); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1; padding: 6px 9px; border-radius: var(--r-s); white-space: nowrap; }
.map-home { z-index: 3; transform: translate(-50%, calc(-100% - 20px)); background: var(--copper); color: var(--white); }

/* Stopka */
.foot { background: var(--graphite); color: #c9ced3; padding-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; background: var(--graphite-2); border-radius: var(--r); padding-inline: clamp(24px, 3vw, 40px); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot-name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--white); margin-bottom: 12px; }
.foot .sig-core { stroke: var(--graphite-2); }
.foot-brand p { max-width: 40ch; }
.foot-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.foot-trust dt { font-size: 15px; color: #aab1b8; }
.foot-trust dd { margin: 2px 0 0; font-weight: 600; color: var(--white); }
.foot-h { font-family: var(--text); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid p + p { margin-top: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.hours dd { color: var(--white); }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 28px; font-size: 15px; }
.foot-base button { margin-left: 18px; }
.foot-base button:first-child { margin-left: 0; }
.foot-tel { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-tel a:first-child { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--white); }
.foot-tel a + a { align-self: center; text-decoration: underline; text-underline-offset: 3px; }
.foot-trust a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.to-top { margin-left: 18px; color: var(--white); }

/* Dolny pasek na telefonie */
.mobile-bar { display: none; }

/* Okienka */
.dlg { border: 0; border-radius: var(--r); padding: 36px; max-width: 560px; width: calc(100% - 32px); color: var(--ink); }
.dlg::backdrop { background: rgba(21, 25, 29, .55); }
.dlg h2 { font-size: 30px; margin-bottom: 16px; padding-right: 80px; }
.dlg p + p { margin-top: 12px; }
.dlg-x { position: absolute; top: 16px; right: 16px; background: var(--cool); border: 0; border-radius: var(--r-s); padding: 8px 12px; cursor: pointer; font-size: 15px; }
.dlg-price { font-size: 20px; }
.dlg-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px !important; }

/* Tablet */
@media (max-width: 1180px) {
  .head-nav { gap: 20px; }
  .head-hours { display: none; }
  .rev-body { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .head-nav, .head-act { display: none; }
  .head-in { height: 64px; gap: 12px; }
  .site-head.scrolled .head-in { height: 64px; }
  .head-call { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--copper); }
  .head-call svg { width: 20px; height: 20px; fill: var(--white); }
  .head-menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-s); background: var(--cool); font-weight: 600; cursor: pointer; }
  .hero { display: grid; grid-template-columns: 1fr; min-height: 0; color: var(--ink); background: var(--white); }
  .hero-text { max-width: none; padding: 36px var(--m) 40px; }
  .hero-pic { position: relative; inset: auto; z-index: 0; order: -1; aspect-ratio: 4 / 3; }
  .hero-pic::after { content: none; }
  .hero-pic img { object-position: 70% 40%; }
  .hero .hero-pic figcaption { left: 14px; right: auto; }
  .hero h1 { font-size: clamp(36px, 1.4rem + 3vw, 56px); }
  .hero-lead { color: var(--ink-2); }
  .hero-link { color: var(--ink); text-decoration-color: var(--copper); }
  .hero-quote figcaption { color: var(--ink-2); }
  .hero-quote figcaption b { color: var(--ink); }
  .hero-pic figcaption, .steps-pic figcaption, .block-pic figcaption { top: 14px; bottom: auto; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .steps-pic { position: relative; top: 0; }
  .steps-pic img { aspect-ratio: 16 / 10; }
  .block-grid { grid-template-columns: 1fr; grid-template-areas: "head" "pic" "list" "draw"; row-gap: 32px; }
  .block-main, .block-side { display: contents; }
  .block-pic img { aspect-ratio: 16 / 10; }
  .calc { grid-template-columns: 1fr; }
  .price-more { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
/* Telefon */
@media (max-width: 640px) {
  .dn-more { display: none; }
  .brand-txt span { display: none; }
  .brand-txt b { font-size: 22px; }
  .sig { width: 32px; height: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { margin-top: 20px; }
  .hero-act { margin-top: 28px; }
  .hero-act .btn { width: 100%; }
  .hero-quote { margin-top: 36px; }
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li, .facts-list li + li { padding: 18px 0; border-left: 0; }
  .facts-list b { font-size: 22px; }
  .steps li { grid-template-columns: 48px 1fr; }
  .seg span { padding: 10px 13px; font-size: 17px; }
  .calc-form { grid-template-columns: 1fr; }
  .out-price th span { display: block; margin-left: 0; }
  .calc-out { position: relative; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); /* taste-skill-ignore: wiersz tabeli cen */ display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 12px; }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table tbody th { grid-column: 1 / -1; }
  .price-table td:nth-child(2) { grid-column: 1 / -1; margin-bottom: 10px; }
  .price-table td:nth-child(n+3)::before { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); }
  .price-table td:nth-child(3)::before { content: "podstawowa"; }
  .price-table td:nth-child(4)::before { content: "średnia"; }
  .price-table td:nth-child(5)::before { content: "wyższa"; }
  .price-table td { font-size: 17px; white-space: normal !important; }
  .price-table tbody th { font-family: var(--text); font-weight: 600; font-size: 22px; }
  .price-more { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
  .rev-body { margin-top: 32px; }
  .rev-tiles { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .rev-body { gap: 12px; }
  .rev-tiles figure { padding: 20px; }
  .up { width: 46px; height: 46px; right: 14px; bottom: 82px; }
  .up svg { width: 46px; height: 46px; }
  .rev-score b { font-size: 72px; }
  .contact-sec .hero-act .btn { width: auto; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot { padding-bottom: 76px; }
  .foot-base button { margin-left: 0; margin-right: 18px; }
  .to-top { margin-left: 0; display: inline-block; margin-top: 8px; }
  .map-lab { font-size: 14px; padding: 5px 7px; }
  .map-home { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); /* taste-skill-ignore: przyklejony pasek */ transform: translateY(110%); transition: transform .3s var(--ease); }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 50px; }
  .dlg { padding: 28px 22px; }
}

/* Kroki: linia między kółkami wypełnia się miedzią przy przewijaniu (JS ustawia --top, --len, --p) */
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: var(--top, 20px); height: var(--len, 0px); width: 2px; background: var(--line); }
.steps::after { background: var(--copper); transform: scaleY(var(--p, 1)); transform-origin: top; }
.steps li.on::before { background: var(--copper); color: var(--white); }

/* Rysunek pokoju w doborze mocy: rzut z góry jak na rysunku instalatora (jasny, w kolumnie z pytaniami) */
.room-fig { margin-top: 12px; }
.room { display: block; width: 100%; height: auto; overflow: visible; }
.room-fig figcaption { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.p-floor { fill: var(--white); }
.p-zone { fill: var(--cold); }
.p-light { fill: var(--copper-light); }
.p-wall { fill: none; stroke: var(--ink-2); stroke-width: 9; }
.p-wall-in { stroke: var(--ink-2); stroke-width: 5; }
.p-gap { fill: var(--white); }
.p-door { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.p-win { fill: var(--white); stroke: var(--ink-2); stroke-width: 1.5; }
.p-win-l { stroke: var(--ink-2); stroke-width: 1.5; }
.p-sun circle { fill: var(--copper-light); stroke: var(--copper); stroke-width: 2; }
.p-sun line { stroke: var(--copper); stroke-width: 2; stroke-linecap: round; }
.p-pipe { fill: none; stroke: var(--copper); stroke-width: 4; stroke-linejoin: round; }
.p-unit { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.p-vent { stroke: var(--ink-2); stroke-width: 1.5; }
.p-air { fill: none; stroke: var(--cold-ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 10; }
.p-balc { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 6 5; }
.p-bracket { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.p-out rect { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.p-out .p-fan { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.p-unsure rect, .p-unsure .p-fan { stroke-dasharray: 5 4; }
.p-lab { fill: var(--ink-2); font: 500 16px var(--text); }
.p-area { fill: var(--ink); font: 600 20px var(--text); }
@media (max-width: 640px) { .p-lab { font-size: 21px; } .p-area { font-size: 25px; } .s-lab { font-size: 21px; } .block-draw { padding: 16px 14px 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .p-air { animation: air 1.6s linear infinite; }
  @keyframes air { to { stroke-dashoffset: -32; } }

  /* Pierwszy ekran: zdjęcie lekko się oddala, tekst wchodzi po kolei */
  .hero-pic img { animation: hero-img 2.4s var(--ease) both; }
  @keyframes hero-img { from { transform: scale(1.07); } }
  .hero-text > * { animation: hero-up .9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .28s; }
  @keyframes hero-up { from { opacity: 0; transform: translateY(18px); } }

  /* Sekcje wchodzą spokojnie przy przewijaniu (tylko gdy działa JS) */
  .js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .rv-img { overflow: hidden; border-radius: var(--r); }
  .js .rv-img img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
  .js .rv-img.in img { transform: none; }

  /* Przycisk: ciemniejsza miedź wjeżdża od lewej */
  .btn { position: relative; overflow: hidden; isolation: isolate; }
  .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--copper-dark); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .btn:hover { background: var(--copper); }
  .btn:hover::before { transform: none; }
  .btn-ghost::before { background: var(--line); }
  .btn-ghost:hover { background: var(--cool); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
