:root {
    --ink: #315264;
    --muted: #45677a;
    --brand: #236d78;
    --brand-light: #dcedef;
    --accent: #ad512d;
    --line: #c8dce2;
    --paper: #f3f8fa;
    --white: #ffffff;
    --width: 1160px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
h1,h2,h3,p { margin: 0; overflow-wrap: break-word; }
h1 { font-size: 40px; font-weight: 700; line-height: 1.13; letter-spacing: -.025em; color: var(--brand); }
h2 { font-size: 28px; line-height: 1.25; font-weight: 400; color: var(--brand); margin-bottom: 18px; }
h3 { font-size: 20px; font-weight: 400; color: var(--brand); line-height: 1.35; }
p { font-size: 16px; font-weight: 400; }
p + p { margin-top: 12px; }
a { color: inherit; text-decoration: none; font-weight: 400; }
a:visited,a:hover,a:active { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.top { background: var(--white); border-top: 5px solid var(--brand); border-bottom: 1px solid var(--line); }
.top-inner,.foot-inner,.wrap { max-width: var(--width); width: calc(100% - 64px); margin-inline: auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--brand); font-size: 21px; line-height: 1.2; }
.brand:visited,.brand:hover,.brand:active { color: var(--brand); }
.brand-mark { width: 30px; height: 34px; border: 2px solid var(--brand); border-radius: 5px; position: relative; flex-shrink: 0; }
.brand-mark::before { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--brand); border-radius: 50%; left: 5px; bottom: 3px; }
.brand-mark::after { content: ""; position: absolute; width: 6px; height: 3px; background: var(--accent); top: 4px; left: 4px; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.top nav a { padding-block: 8px; border-bottom: 2px solid transparent; }
.top nav a:hover,.top nav a[aria-current] { border-color: var(--accent); }
.phone { border: 1px solid var(--brand); border-radius: 6px; padding: 8px 13px; white-space: nowrap; }
.phone:hover { background: var(--brand-light); }
.wrap { padding-block: 34px 42px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; align-items: center; padding: 32px 36px; border: 1px solid var(--line); border-left: 6px solid var(--accent); background: var(--white); }
.hero-copy p:first-of-type { margin-top: 17px; }
.call { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--white); padding: 11px 20px; border-radius: 5px; line-height: 1.35; }
.call:visited,.call:hover,.call:active { color: var(--white); }
.call:hover { box-shadow: inset 0 0 0 2px #a9d8db; }
.hero .call { margin-top: 19px; }
.drawing { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px; background: repeating-linear-gradient(90deg, transparent 0 23px, #d2e4e9 23px 24px), repeating-linear-gradient(0deg,#edf6f8 0 23px,#d2e4e9 23px 24px); border: 1px solid var(--line); border-radius: 3px; }
.machine { width: 138px; height: 150px; background: #d8e9ee; border: 3px solid var(--brand); border-radius: 8px; padding: 9px; position: relative; }
.controls { display: flex; gap: 6px; align-items: center; border-bottom: 1px solid #7fa8b3; padding-bottom: 7px; }
.controls span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--brand); background: var(--white); }
.controls span:first-child { width: 28px; border-radius: 2px; background: #7fb9bf; }
.controls span:last-child { background: #c77956; }
.mechanism { position: relative; height: 99px; display: grid; place-items: center; }
.inner { width: 84px; height: 84px; border: 5px solid var(--brand); border-radius: 50%; background: repeating-radial-gradient(circle at center, #d2e5e9 0 7px,#90b8c2 8px 9px,#e6f3f4 10px 15px); }
.drawing-washer .detail { position: absolute; width: 15px; height: 6px; background: var(--accent); right: 12px; top: 47px; border-radius: 4px; }
.drawing-pump .machine { border-radius: 50%; width: 138px; height: 138px; padding: 12px; display: grid; place-items: center; }
.drawing-pump .controls { display: none; }
.drawing-pump .inner { border: 6px solid #649ba9; background: conic-gradient(from 25deg,#b2d4d8 0 25%,#38828c 25% 35%,#b2d4d8 35% 50%,#38828c 50% 60%,#b2d4d8 60% 75%,#38828c 75% 85%,#b2d4d8 85%); }
.drawing-pump .detail { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 4px solid var(--brand); }
.drawing-pump .machine::after { content: ""; width: 52px; height: 24px; background: #a7ced3; border: 3px solid var(--brand); position: absolute; top: 7px; right: -25px; border-radius: 5px; }
.drawing-board .machine { background: #8bc1b9; border-radius: 4px; }
.drawing-board .inner { width: 50px; height: 50px; border-radius: 4px; background: #40768a; border: 4px double #cde2e7; box-shadow: -32px 0 0 -18px #f4fcfd,32px 0 0 -18px #f4fcfd,0 32px 0 -18px #f4fcfd,0 -32px 0 -18px #f4fcfd; }
.drawing-board .detail { position: absolute; inset: 9px 3px; border: 2px dashed #e2f5f2; }
.drawing-dish .inner { width: 100%; height: 83px; border-radius: 4px; border: 3px solid var(--brand); background: repeating-linear-gradient(90deg,#dcecf1 0 12px,#76a8b7 12px 14px); }
.drawing-dish .detail { position: absolute; width: 90px; height: 8px; top: 43px; border-radius: 6px; background: var(--accent); transform: rotate(-15deg); }
.drawing-oven .inner { width: 100%; height: 83px; border-radius: 4px; border: 3px solid var(--brand); background: #aacbd4; box-shadow: inset 0 -9px #80a9b5; }
.drawing-oven .detail { position: absolute; width: 49px; height: 49px; border: 4px solid var(--accent); border-radius: 50%; background: conic-gradient(#dcecf1 0 20%,#699fac 20% 30%,#dcecf1 30% 50%,#699fac 50% 60%,#dcecf1 60% 80%,#699fac 80% 90%,#dcecf1 90%); }
.signal { display: flex; gap: 5px; justify-content: center; }
.signal span { width: 26px; height: 4px; background: #80adb8; border-radius: 1px; }
.signal span:first-child { background: var(--accent); }
.chapter { margin-top: 28px; padding: 24px 30px; background: var(--white); border-top: 2px solid var(--line); }
.chapter > p { max-width: none; }
.worklist { border-top: 1px solid var(--line); }
.workrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workrow:last-child { border-bottom: 0; padding-bottom: 0; }
.panels { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); gap: 18px; }
.panels article { padding: 17px 19px; border-left: 3px solid #81b6bf; background: #edf5f7; }
.panels h3 { margin-bottom: 8px; }
.page-home .chapter:nth-of-type(2),.page-piekarniki .chapter:nth-of-type(3),.page-pralki .chapter:nth-of-type(2),.page-zmywarki .chapter:nth-of-type(3),.page-oferta .chapter:nth-of-type(4),.page-index .chapter:nth-of-type(3) { border-top-color: var(--accent); background: #e5f1f3; }
.contact { margin-top: 28px; background: var(--brand-light); border-bottom: 3px solid var(--brand); padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.contact h2 { margin-bottom: 8px; }
.contact .call { flex-shrink: 0; }
footer { background: var(--white); border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding-block: 22px; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-inner a:hover { box-shadow: 0 1px 0 var(--accent); }
@media (max-width: 1050px) {
    .top-inner,.foot-inner,.wrap { width: calc(100% - 40px); }
    .top-inner { gap: 12px; }
    .top nav { gap: 3px 12px; }
    .brand { font-size: 18px; }
    .hero { grid-template-columns: minmax(0,1fr) 220px; gap: 22px; padding: 25px; }
}
@media (max-width: 767px), (max-height: 500px) and (max-width: 1000px) {
    .top nav { display: none; }
    .hero { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
    .drawing { width: 100%; }
    .workrow { grid-template-columns: 1fr; gap: 6px; }
    .chapter { padding: 20px; margin-top: 20px; }
    .contact { flex-direction: column; align-items: flex-start; padding: 20px; }
    .wrap { padding-block: 20px 30px; }
    .foot-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 400px) {
    .top-inner,.foot-inner,.wrap { width: calc(100% - 24px); }
    .top-inner { gap: 9px; }
    .brand { font-size: 16px; gap: 6px; }
    .brand-mark { width: 26px; }
    .brand-mark::before { left: 3px; }
    .phone { padding: 7px 8px; font-size: 14px; }
    .hero,.chapter,.contact { padding: 16px; }
    .call { padding-inline: 12px; }
}
