/* Barlow and Barlow Condensed, self-hosted (SIL Open Font License, fonts/OFL.txt): latin + latin-ext */
/* Barlow 400, latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-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;
}
/* Barlow 400, latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-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;
}
/* Barlow 600, latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-600-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;
}
/* Barlow 600, latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-600-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;
}
/* Barlow Condensed 600, latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-600-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;
}
/* Barlow Condensed 600, latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-600-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;
}
/* Barlow Condensed 800, latin-ext */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800-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;
}
/* Barlow Condensed 800, latin */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800-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;
}

/* Style A "Warsztat": graphite + safety orange, Barlow Condensed headings, Barlow text */
/* gutter scales with the window; content uses the full width */
:root{--gut:clamp(16px,4vw,72px);--bg:#f3f4f6;--fg:#1f2933;--muted:#52606d;--accent:#b83908;--accent-hi:#ff7a2e;--card:#fff;--line:#d9dde2;--bar:#1f2933;--bar-fg:#f3f4f6;--btn:#c2410c;--btn-hover:#9a3412;
--head:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;--text:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
@media (prefers-color-scheme:dark){:root{--bg:#14191e;--fg:#e9ecef;--muted:#a3adb7;--accent:#ff7a2e;--accent-hi:#ff8c47;--card:#1c232a;--line:#2e3740;--bar:#0e1216;--btn:#c2410c;--btn-hover:#9a3412}}
*{box-sizing:border-box}html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--fg);font:18px/1.6 var(--text)}
a{color:var(--accent)}
header,footer,main{margin:0;padding:0 var(--gut)}
h1,h2,h3{font-family:var(--head);font-weight:800;letter-spacing:0;line-height:1.1;text-wrap:balance}
h1{font-size:clamp(34px,4.5vw,48px);margin:40px 0 12px}
h2{font-size:clamp(28px,3.4vw,36px);margin:56px 0 18px}
h3{font-size:22px}

/* Graphite top bar, full bleed */
header{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;
 background:var(--bar);color:var(--bar-fg);box-shadow:0 0 0 100vmax var(--bar);clip-path:inset(0 -100vmax)}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--bar-fg)}
.logo .mark{width:34px;height:36px;flex:none}
.logo .mark path{fill:none;stroke:currentColor;stroke-width:7}
.logo .mark circle{fill:var(--accent-hi)}
.logo .wm{display:flex;flex-direction:column;font:800 19px/0.95 var(--head);letter-spacing:.02em}
.logo .wm .z{color:var(--accent-hi)}
header nav{display:flex;flex-wrap:wrap;gap:6px 22px}
header nav a{color:var(--bar-fg);text-decoration:none;font:600 17px/1.2 var(--head);text-transform:uppercase;letter-spacing:.04em}
header nav a:hover{color:var(--accent-hi)}
/* The customer's account in the storefront (orders, sign-in): set apart from the page links */
header nav a.acct{color:var(--accent-hi);border:1px solid currentColor;border-radius:2px;padding:3px 10px;margin:-4px 0}
header nav a.acct:hover{color:#fff;background:var(--btn);border-color:var(--btn)}

/* Hero: full-bleed photo with dark overlay, text on top */
.hero{position:relative;margin:0 calc(50% - 50vw);width:100vw;min-height:min(40vh,400px);display:flex;align-items:flex-end;color:#fff;background:var(--bar);overflow:hidden}
.hero.sub{min-height:min(50vh,420px)}
.hero.plain{min-height:0}.hero.plain::after{display:none}.hero.plain .hero-in{padding-top:56px;padding-bottom:40px}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,18,22,.88) 0%,rgba(14,18,22,.6) 55%,rgba(14,18,22,.15) 100%),linear-gradient(0deg,rgba(14,18,22,.6),transparent 50%)}
.hero-in{position:relative;z-index:1;width:100%;padding:48px var(--gut) 40px}
.hero h1{font-size:clamp(40px,5.6vw,68px);line-height:1.02;margin:0 0 20px;max-width:14em;color:#fff}
.hero.sub h1{font-size:clamp(38px,5.5vw,64px)}
.hero p{font-size:20px;color:#d5dbe1;max-width:34em;margin:0}
.hero p+.ctas{margin-top:28px}
.ctas{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-block;background:var(--btn);color:#fff;padding:16px 28px;border-radius:2px;text-decoration:none;
 font:600 20px/1 var(--text);border:2px solid transparent}
.btn:hover{background:var(--btn-hover);color:#fff}

/* Full-bleed bands */
.band{margin:0 calc(50% - 50vw);width:100vw;background:var(--bar);color:var(--bar-fg)}
.band .in{padding:28px var(--gut)}
.cta{margin-top:72px}
.cta .in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-top:44px;padding-bottom:44px}
.cta h2{margin:0;color:#fff}

/* Text sections */
.sec{padding-top:64px}.hero+.sec{padding-top:40px}.sec h2{margin:0 0 14px}.sec+.feature{margin-top:28px}
.lead{font-size:20px;color:var(--muted);max-width:40em;margin:0}

/* One plain line under the quote widget */
.after-quote{margin:-8px 0 0;color:var(--muted);font-size:17px;max-width:72ch}
.partners .lead+.lead{margin-top:14px}

/* Service features: wide photo banner with caption box */
.feature{position:relative;display:block;margin:4px calc(-1 * var(--gut)) 0;min-height:min(56vh,520px);color:#fff;text-decoration:none;overflow:hidden;background:var(--bar)}
.feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.feature:hover img{transform:scale(1.03)}
.feature::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(14,18,22,.85),rgba(14,18,22,.1) 65%)}
.feature-in{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:36px var(--gut)}
.feature h3{font-size:clamp(30px,4vw,44px);margin:0 0 8px;color:#fff}
.feature p{margin:0 0 12px;max-width:36em;color:#d5dbe1}
.feature .more{font:600 17px/1 var(--text);color:var(--accent-hi)}
.feature .more::after{content:" →"}
@media (prefers-reduced-motion:reduce){.feature img{transition:none}}
@media (max-width:600px){.feature{min-height:340px}.feature-in{padding:20px var(--gut)}.hero-in{padding:40px var(--gut) 28px}}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:24px 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:2px;padding:18px}
.card h3{margin:0 0 6px}
.card h3 a{color:inherit;text-decoration:none}.card h3 a:hover{color:var(--accent)}
.card.photo{padding:0;overflow:hidden}
.card.photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.card.photo div{padding:16px 18px 18px}

/* No frame of its own: the widget draws its own border */
.quote{margin:28px 0;width:100%;scroll-margin-top:16px}
@media (max-width:640px){.quote{margin-left:calc(-1 * var(--gut));width:calc(100% + 2 * var(--gut))}}
table{border-collapse:collapse;width:100%}td,th{border-bottom:1px solid var(--line);padding:8px;text-align:left}
th{font-family:var(--text);font-weight:600}
footer{margin-top:64px;padding-top:28px;padding-bottom:40px;font-size:15px;background:var(--bar);color:#aeb8c2;box-shadow:0 0 0 100vmax var(--bar);clip-path:inset(0 -100vmax);border-top:0}
footer a{color:var(--bar-fg);margin-right:16px}
.cta+footer,main:has(.cta:last-child)+footer{margin-top:0;border-top:1px solid #2e3740}
.legal h1{font-size:clamp(34px,4.5vw,48px);margin:40px 0 8px}.legal h2{margin-top:32px;font-size:26px}
.note{color:var(--muted);font-size:15px}

/* Readable line length on wide screens; layout itself stays full width */
main>p,main>ul,main>ol:not(.steps),.contact-box,.legal{max-width:72ch}
main>table{max-width:900px}
.foot-contact{display:flex;flex-wrap:wrap;gap:6px 24px;font:700 19px/1.3 var(--head);letter-spacing:.03em;margin-bottom:10px}
.foot-contact a,.foot-contact span{color:var(--bar-fg);margin:0}
.quote{min-height:640px}
@media (max-width:700px){.hero::after{background:rgba(14,18,22,.72)}}
@media (max-width:600px){.quote{min-height:620px}}
@media (max-width:420px){header nav{gap:4px 14px}header nav a{font-size:15px}}

/* FAQ */
.faq{margin-top:20px;max-width:900px;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;padding:16px 36px 16px 0;position:relative;font:600 20px/1.3 var(--text)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:4px;top:12px;font-size:28px;color:var(--accent)}
.faq details[open] summary::after{content:"–"}
.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.faq p{margin:0 0 18px;color:var(--muted);max-width:72ch}

/* Home services: photo with the text on the left (the link), the service's specification on the right */
.feature-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(320px,2fr);margin:4px calc(-1 * var(--gut)) 0;background:var(--bar)}
.feature-row .feature{margin:0}
.feature-spec{background:var(--bar);border-left:1px solid #3a4550;padding:36px var(--gut) 32px 36px;display:flex;flex-direction:column;justify-content:center;color:var(--bar-fg)}
.feature-spec h3{font-size:24px;margin:0 0 16px;color:#fff}
.spec-t{width:100%;border-collapse:collapse;font-size:17px;margin:0 0 6px}
.spec-t th{font:600 15px/1.2 var(--text);color:#aeb8c2;text-align:left;padding:0 0 8px;border-bottom:1px solid #3a4550}
.spec-t td{padding:8px 0;border-bottom:1px solid #2e3740;background:none;color:var(--bar-fg)}
.spec-t td+td,.spec-t th+th{text-align:right;font-family:var(--head);font-weight:600;font-size:19px;color:var(--accent-hi);white-space:nowrap}
.spec-l{margin:0}
.spec-l div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1px solid #2e3740}
.spec-l dt{color:#c3ccd5}
.spec-l dd{margin:0;text-align:right;font:600 19px/1.4 var(--head);color:var(--accent-hi)}
@media (max-width:900px){.feature-row{grid-template-columns:1fr}.feature-spec{border-left:0;border-top:1px solid #3a4550;padding:28px var(--gut)}}
/* A service row's video over its photo: shown once it plays (the photo is what reduced motion sees) */
.feature video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s ease}
.feature video.on{opacity:1}

/* Technical drawing (Blacha na wymiar) in place of a photo: light lines on the graphite surface, in both colour modes */
.dw{display:block;width:100%;height:100%}
.dw-part{fill:none;stroke:#e9ecef;stroke-width:2.2}
rect.dw-part{fill:rgba(255,255,255,.04)}
.dw-cl{fill:none;stroke:#7b8794;stroke-width:1;stroke-dasharray:14 4 3 4}
.dw-ext,.dw-ldr{fill:none;stroke:#aeb8c2;stroke-width:1}
.dw-dim{fill:none;stroke:var(--accent-hi);stroke-width:1.2}
.dw-ah{fill:var(--accent-hi)}
.dw-t{font:600 19px/1 var(--head);fill:#e9ecef}
.feature.drawing{background:#1a2229;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:24px 24px}
.feature.drawing{display:flex;flex-direction:column}
.feature.drawing .dw{flex:1;min-height:0;max-height:360px;height:auto;padding:32px var(--gut) 0}
.feature.drawing::after{display:none}
.feature.drawing .feature-in{position:relative;padding-top:20px}
@media (max-width:600px){.feature.drawing .dw{max-height:220px;padding-top:24px}}
.hero.drawing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;background:#1a2229;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:24px 24px}
.hero.drawing::after{display:none}
.hero.drawing .dw{order:2;height:auto;max-height:420px;padding:40px var(--gut) 40px 0}
.hero.drawing .hero-in{order:1}
@media (max-width:900px){.hero.drawing{grid-template-columns:1fr}.hero.drawing .dw{order:0;max-height:260px;padding:28px var(--gut) 0}.hero.drawing .hero-in{padding-top:20px}}

/* Content pages (materials, calculators, guides; sites/detalezblachy-gen) */
.crumbs ol{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 0;font-size:15px;color:var(--muted)}
.crumbs li+li::before{content:"/";margin:0 8px;color:var(--line)}
.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--accent);text-decoration:underline}
.crumbs+h1,.crumbs+.article h1{margin-top:16px}
.crumbs+.hero{margin-top:0}
main>.lead{max-width:44em;margin:0 0 20px}
p.ctas{margin:20px 0 8px}
.tw{overflow-x:auto;max-width:900px;margin:8px 0 12px}
table.data{min-width:420px;font-size:17px}
table.data th{font-size:15px;color:var(--muted);white-space:nowrap}
table.data td{white-space:nowrap}
table.data td:first-child{font-weight:600}
table.data tbody tr:nth-child(even){background:color-mix(in srgb,var(--card) 60%,transparent)}
.grid.links{margin:16px 0 8px}
.card.link{display:block;text-decoration:none;color:var(--fg)}
.card.link h3{margin:0 0 4px;color:var(--fg)}
.card.link span{color:var(--muted);font-size:16px}
.card.link:hover{border-color:var(--accent)}.card.link:hover h3{color:var(--accent)}
.article{max-width:72ch}
.article h2{font-size:clamp(24px,2.8vw,30px);margin:40px 0 12px}
ul.check{list-style:none;padding:0}ul.check li{padding-left:28px;position:relative;margin:6px 0}
ul.check li::before{content:"";position:absolute;left:2px;top:.45em;width:12px;height:7px;border:solid var(--accent);border-width:0 0 2px 2px;transform:rotate(-45deg)}
/* Calculators: inputs in a row that wraps, the result beside them */
.calc{display:flex;flex-wrap:wrap;gap:14px 18px;align-items:flex-end;background:var(--card);border:1px solid var(--line);border-radius:2px;padding:20px;margin:8px 0 12px;max-width:1100px}
.calc label{display:flex;flex-direction:column;gap:6px;font-size:15px;color:var(--muted);min-width:150px;flex:1 1 150px}
.calc input,.calc select{font:400 18px/1.3 var(--text);color:var(--fg);background:var(--bg);border:1px solid var(--line);border-radius:2px;padding:9px 10px;width:100%}
.calc input:focus,.calc select:focus{outline:2px solid var(--accent);outline-offset:1px}
.calc .res{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;border-top:1px solid var(--line);padding-top:14px}
.calc .res:empty{display:none}
.calc .res div{display:flex;flex-direction:column}
.calc .res span{font-size:15px;color:var(--muted)}
.calc .res strong{font:800 28px/1.15 var(--head);color:var(--accent)}
/* Figures: lines in the page's colours */
.fig{margin:20px 0;max-width:640px}
.fig svg{width:100%;height:auto;display:block;background:var(--card);border:1px solid var(--line);border-radius:2px}
.fig figcaption{font-size:15px;color:var(--muted);margin-top:6px}
.f-part{fill:none;stroke:var(--fg);stroke-width:2.2;stroke-linejoin:round}
.f-tool{fill:color-mix(in srgb,var(--muted) 22%,transparent);stroke:var(--muted);stroke-width:1.2}
.f-thin{fill:none;stroke:var(--muted);stroke-width:1}
.f-bend{fill:none;stroke:var(--muted);stroke-width:1.2;stroke-dasharray:10 5}
.f-dim{fill:none;stroke:var(--accent);stroke-width:1.3}
.f-ah{fill:var(--accent)}
.f-bad{fill:none;stroke:#d64545;stroke-width:2.2}
.f-t{font:600 16px/1 var(--head);fill:var(--accent)}
.f-m{font:400 14px/1 var(--text);fill:var(--muted)}
.f-ok{font:600 15px/1 var(--text);fill:#2f9e5b}
.f-bad-t{font:600 15px/1 var(--text);fill:#d64545}

/* Photos (Adobe Stock): home gallery of example parts, and rows of photos on service, material and guide pages */
.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px;margin:24px 0 0}
.gallery figure,.shots figure{margin:0}
.gallery img,.shots img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--line);border-radius:2px}
.gallery figcaption,.shots figcaption{font:600 18px/1.25 var(--head);letter-spacing:.02em;margin-top:8px}
.shots figcaption{font:400 15px/1.4 var(--text);color:var(--muted);letter-spacing:0}
/* columns stay a third of the row, so two photos don't blow up */
.shots{display:grid;grid-template-columns:repeat(auto-fill,minmax(max(280px,calc((100% - 32px) / 3)),1fr));gap:16px;margin:28px 0}
.shots.one{grid-template-columns:1fr;max-width:860px}
.article .shots.one{max-width:none}
@media (max-width:1100px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.gallery figcaption{font-size:16px}}
.extras ul{max-width:72ch;margin:20px 0 0;padding-left:1.2em}.extras li{margin:8px 0}
.extras ul+p{max-width:72ch;margin:18px 0 0}
/* The material select shows its whole name (grade included) */
.calc label:has(select[name="grade"]){flex:2 1 280px;min-width:min(280px,100%)}
/* A grade's names and properties: a short definition list */
dl.props{margin:8px 0 12px;max-width:72ch;border-top:1px solid var(--line)}
dl.props div{display:grid;grid-template-columns:minmax(150px,2fr) 3fr;gap:4px 16px;padding:7px 0;border-bottom:1px solid var(--line)}
dl.props dt{color:var(--muted);font-size:16px}
dl.props dd{margin:0}
@media (max-width:520px){dl.props div{grid-template-columns:1fr}}
