/* Rozkład techniczny */
:root {
    --paper: #f6fcfa;
    --field: #e0f1e9;
    --field-deep: #c7e6db;
    --ink: #345c59;
    --soft-ink: #54716c;
    --line: #a3c7b9;
    --strong: #16866a;
    --lime: #d0ee74;
    --copper: #f0a367;
    --pure: #ffffff;
    --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
.wrap { width: min(calc(100% - 68px), var(--wrap)); margin-inline: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #de7b3f; outline-offset: 4px; }
a:hover { color: #14795f; }
h1, h2, h3, p, ul, dl { margin-top: 0; }
h1 { font-size: 40px; line-height: 1.13; letter-spacing: -.035em; margin-bottom: 22px; font-weight: 800; overflow-wrap: anywhere; }
h2 { font-size: 28px; line-height: 1.21; letter-spacing: -.018em; margin-bottom: 18px; font-weight: 750; overflow-wrap: anywhere; }
h3 { font-size: 19px; line-height: 1.3; margin-bottom: 11px; }
p { font-size: 16px; line-height: 1.7; margin-bottom: 15px; }
.site-header { border-top: 7px solid var(--strong); background: var(--pure); }
.masthead { padding: 23px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; letter-spacing: -.035em; font-weight: 850; text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark .site-sign { display: grid; place-items: center; width: 42px; height: 42px; background: var(--strong); position: relative; border-radius: 50%; }
.site-sign::before { content: ""; width: 19px; height: 19px; border: 4px solid var(--pure); border-radius: 50%; }
.site-sign::after { content: ""; position: absolute; height: 6px; width: 6px; background: var(--lime); border-radius: 50%; right: 5px; top: 4px; }
.wordmark b { color: var(--strong); }
.header-sub { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-ink); font-weight: 750; }
.nav-band { background: var(--field); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-inside { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.nav-inside a { padding: 14px 23px; text-decoration: none; font-size: 15px; font-weight: 700; border-right: 1px solid var(--line); }
.nav-inside a:first-child { border-left: 1px solid var(--line); }
.nav-inside a:hover, .nav-inside a[aria-current] { background: var(--strong); color: #fff; }
.nav-inside .nav-small { margin-left: auto; font-size: 13px; font-weight: 650; letter-spacing: .05em; }
.hero { padding: 48px 0 30px; background: linear-gradient(to bottom, var(--paper), #ebf8f2); }
.hero-frame { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); border-top: 3px solid var(--strong); border-bottom: 1px solid var(--line); }
.hero-text { padding: 32px 47px 30px 0; }
.kicker { font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--strong); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker::before { content: ""; display: block; width: 31px; height: 3px; background: var(--copper); }
.hero-text p { max-width: 780px; }
.hero-rail { background: var(--field); border-left: 1px solid var(--line); padding: 26px 27px; display: flex; flex-direction: column; justify-content: flex-start; }
.hero-rail > p { font-size: 16px; line-height: 1.6; }
.diagram-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft-ink); font-weight: 750; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 17px; }
.cta-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 23px 0 0; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 18px; text-decoration: none; background: var(--strong); border: 2px solid var(--strong); color: var(--pure); font-size: 15px; font-weight: 800; border-radius: 3px; }
.cta.alt { background: var(--pure); color: var(--strong); }
.cta:hover { background: var(--ink); border-color: var(--ink); color: var(--pure); }
.cta:active { transform: translateY(1px); }
.diagram { position: relative; margin: 0 auto 19px; width: min(100%, 255px); height: 190px; background: linear-gradient(transparent 23px, #bfded2 24px), linear-gradient(90deg, transparent 23px, #bfded2 24px); background-size: 24px 24px; }
.diagram::after { content: ""; position: absolute; width: 72%; bottom: 6px; left: 14%; border-bottom: 3px solid var(--strong); }
.drum-outer { width: 156px; height: 156px; border-radius: 50%; border: 10px solid var(--strong); background: var(--paper); position: absolute; top: 12px; left: calc(50% - 78px); box-shadow: 0 0 0 6px var(--field), 0 0 0 8px var(--line); }
.drum-inner { position: absolute; inset: 17px; border: 2px dashed var(--soft-ink); border-radius: 50%; }
.drum-inner::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--field-deep); border: 3px solid var(--strong); }
.drum-inner::after { content: ""; position: absolute; width: 18px; height: 18px; top: calc(50% - 9px); left: calc(50% - 9px); border-radius: 50%; background: var(--copper); }
.diag-pin { position: absolute; width: 42px; height: 4px; background: var(--copper); top: 33px; right: 0; }
.diag-pin::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--strong); top: -3px; left: -2px; border-radius: 50%; }
.diagram--oven .drum-outer { border-radius: 13px; width: 157px; height: 143px; left: calc(50% - 78px); top: 20px; border: 9px solid var(--strong); box-shadow: 0 0 0 6px var(--field), 0 0 0 8px var(--line); }
.diagram--oven .drum-inner { border-radius: 6px; inset: 23px 12px 10px; border: 3px solid var(--soft-ink); }
.diagram--oven .drum-inner::before { border: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, var(--copper) 23px 26px); inset: 10px; border-radius: 0; }
.diagram--oven .drum-inner::after { top: -19px; left: 10px; box-shadow: 31px 0 0 var(--copper), 62px 0 0 var(--copper); width: 9px; height: 9px; }
.diagram--cool .drum-outer { width: 130px; height: 158px; border-radius: 10px; left: calc(50% - 65px); top: 10px; border-width: 8px; }
.diagram--cool .drum-inner { border-radius: 0; inset: 7px 10px; border: 0; border-top: 4px solid var(--strong); }
.diagram--cool .drum-inner::before { inset: 39px 0 auto; height: 4px; background: var(--strong); border: 0; border-radius: 0; }
.diagram--cool .drum-inner::after { inset: 55px auto auto 0; height: 4px; width: 100%; border-radius: 0; background: var(--copper); box-shadow: 0 29px 0 var(--strong); }
.diagram--cool .diag-pin { top: 92px; }
.pathway { border-bottom: 1px solid var(--line); background: var(--pure); }
.pathway-inner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 23px; padding: 19px 0; }
.pathway-inner strong { color: var(--strong); font-size: 14px; text-transform: uppercase; letter-spacing: .09em; }
.pathway-inner span { font-size: 14px; line-height: 1.6; font-weight: 600; }
.pathway-inner span + span::before { content: "—"; margin-right: 23px; color: var(--strong); }
.chapters { padding: 11px 0 24px; }
.chapter { padding: 34px 0 36px; border-bottom: 1px solid var(--line); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(250px, .95fr); gap: clamp(30px, 5vw, 76px); align-items: start; }
.chapter-heading { display: flex; align-items: start; gap: 18px; }
.chapter-no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 49px; height: 49px; border: 1px solid var(--strong); border-radius: 50%; color: var(--strong); font-weight: 850; font-size: 15px; }
.chapter h2 { margin-top: 8px; }
.chapter-copy { padding-left: 67px; }
.chapter-copy p:last-child { margin-bottom: 0; }
.spec-note { background: var(--field); padding: 23px 25px 19px; border-left: 5px solid var(--strong); position: relative; }
.spec-note::before { content: ""; position: absolute; width: 20px; height: 20px; top: 0; right: 0; background: var(--lime); }
.spec-note h3 { font-size: 18px; margin-bottom: 10px; }
.spec-note p { font-size: 16px; line-height: 1.55; margin-bottom: 10px; }
.spec-note p:last-child { margin-bottom: 0; }
.spec-note ul { padding-left: 19px; margin: 0; }
.spec-note li { line-height: 1.65; font-size: 15px; padding-bottom: 3px; }
.chapter--highlight { background: var(--field); }
.chapter--highlight .spec-note { background: var(--pure); border-left-color: var(--copper); }
.chapter--highlight .spec-note::before { background: var(--strong); }
.chapter--highlight .chapter-no { background: var(--strong); color: white; }
.figure-chip { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--strong); margin-bottom: 11px; }
.figure-chip::before { content: ""; width: 15px; height: 15px; border: 3px solid var(--copper); border-radius: 50%; }
.full-schematic { background: var(--strong); color: var(--pure); padding: 25px 0; }
.schematic-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 44px; align-items: center; }
.full-schematic h2 { color: var(--pure); margin-bottom: 11px; }
.full-schematic p { color: var(--pure); margin-bottom: 0; }
.full-schematic .cta { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.full-schematic .cta.alt { background: transparent; border-color: var(--pure); color: var(--pure); }
.full-schematic .cta:hover { background: var(--pure); color: var(--strong); border-color: var(--pure); }
.full-schematic .cta-pair { margin-top: 0; justify-content: flex-end; }
.footnote-area { padding: 20px 0 23px; border-top: 1px solid var(--line); }
.footnote-area p { font-size: 14px; color: var(--soft-ink); margin: 0; }
.footer { background: var(--field); border-top: 3px solid var(--strong); padding: 27px 0 33px; }
.footer-inside { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-label { font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.footer-nav a { font-size: 14px; text-decoration: none; font-weight: 650; }
.footer-nav a:last-child { font-size: 12px; color: var(--soft-ink); }
/* Inna kompozycja nagłówka napraw i oferty */
.page-home .hero { background: var(--field); }
.page-home .hero-frame { border-top-color: var(--copper); }
.page-home .hero-rail { background: var(--pure); }
.page-oferta .hero { background: var(--pure); }
.page-oferta .hero-frame { border-top: 0; }
.page-oferta .hero-text { padding-top: 12px; }
.page-oferta .hero-rail { border-left: 5px solid var(--copper); }
.page-oferta .chapter--highlight { background: var(--paper); }
@media (max-width: 960px) {
    .wrap { width: min(calc(100% - 44px), var(--wrap)); }
    .hero-frame { grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr); }
    .hero-text { padding: 27px 26px 24px 0; }
    .hero-rail { padding: 23px 18px; }
    .chapter-grid { grid-template-columns: minmax(0, 1.65fr) minmax(210px, 1fr); gap: 25px; }
    .chapter-copy { padding-left: 0; }
}
@media (max-width: 690px) {
    .masthead { padding: 16px 0; }
    .header-sub { display: none; }
    .wrap { width: calc(100% - 32px); }
    .nav-inside a { flex: 1 1 auto; text-align: center; padding: 12px 9px; font-size: 13px; }
    .nav-inside .nav-small { display: none; }
    .hero { padding: 26px 0 15px; }
    .hero-frame { grid-template-columns: 1fr; }
    .hero-text { padding: 23px 0 26px; }
    .hero-rail { border-left: 0; border-top: 1px solid var(--line); padding: 19px 20px; }
    .diagram { height: 160px; margin-bottom: 12px; transform: scale(.85); transform-origin: top center; }
    .diagram-title { margin-bottom: 7px; }
    .chapter { padding: 27px 0; }
    .chapter-grid, .schematic-inner { grid-template-columns: 1fr; gap: 19px; }
    .chapter-heading { gap: 13px; }
    .chapter-no { width: 43px; height: 43px; }
    .chapter h2 { margin-top: 4px; }
    .spec-note { padding: 16px 20px; }
    .schematic-inner { gap: 20px; }
    .full-schematic .cta-pair { justify-content: flex-start; }
    .pathway-inner { gap: 8px 13px; }
    .pathway-inner span + span::before { margin-right: 13px; }
}
@media (max-width: 390px) {
    .wordmark { font-size: 23px; }
    .cta-pair { flex-direction: column; align-items: stretch; }
    .cta { width: 100%; }
    .footer-inside { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
