.home-page{--blue:#315c91;--ink:#243347;--muted:#60758d;--orange:#ae701c;background-image:linear-gradient(#315c9105 1px,transparent 1px),linear-gradient(90deg,#315c9105 1px,transparent 1px);background-size:40px 40px}.page-width{max-width:1320px;margin-inline:auto;padding-inline:40px}.eyebrow{font:12px/1.7 JetBrains Mono,monospace;letter-spacing:.09em;color:#6e829a;margin:0}.eyebrow>span{color:var(--orange);margin-right:10px}.home-hero{padding-top:48px;padding-bottom:47px}.hero-frame{--cut:25px;background:#b9cbdc;padding:1px;clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}.hero-inner{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:30px;min-height:420px;padding:42px 46px;background:#fff;position:relative;clip-path:polygon(var(--cut) 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%,0 var(--cut))}.hero-inner:before{content:"";position:absolute;left:0;top:25px;width:2px;height:70px;background:var(--blue)}.hero-copy{position:relative;z-index:1;min-width:0}.hero-copy h1{font-family:Space Grotesk Brand,Space Grotesk,sans-serif;font-weight:500;font-size:clamp(45px,4.9vw,68px);line-height:1.08;letter-spacing:-.055em;margin:23px 0}.hero-copy h1 em{font-style:normal;color:var(--blue)}.hero-intro{font-size:18px;line-height:1.7;color:var(--muted);margin:0}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:30px}.button-primary{display:inline-flex;justify-content:space-between;align-items:center;gap:22px;min-height:48px;padding:14px 20px;background:var(--blue);color:#fff;text-decoration:none;font-size:16px;line-height:1.5;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);transition:background .18s}.button-primary:hover{background:#254b7a}.button-primary:focus-visible{clip-path:none}.button-primary>span{font-size:19px}.contact-link{--contact-fill:#fff;--contact-shape:polygon(0 0, calc(100% - 10px) 0,100% 10px,100% 100%,0 100%);--contact-inner-shape:polygon(0 0, calc(100% - 8.83px) 0,100% 8.83px,100% 100%,0 100%);position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:13px;min-height:57px;padding:14px 20px;color:var(--blue);text-decoration:none;font-size:16px;line-height:1.5}.contact-link:before,.contact-link:after{content:"";position:absolute;pointer-events:none}.contact-link:before{inset:0;z-index:-2;background:var(--blue);clip-path:var(--contact-shape)}.contact-link:after{inset:2px;z-index:-1;background:var(--contact-fill);clip-path:var(--contact-inner-shape);transition:background .18s}.contact-link:hover{--contact-fill:#f1f5fa}.contact-link>span{color:var(--orange);font-size:20px;line-height:1}.hero-art{width:100%;max-width:410px;justify-self:end;opacity:.9}.hero-art svg,.hero-art img{display:block;width:100%;height:auto}.hero-baseline{display:flex;align-items:center;justify-content:space-between;position:relative;margin-top:15px;min-height:8px}.hero-baseline>span{display:block;width:65px;height:6px;background:repeating-linear-gradient(135deg,#b47a2b 0,#b47a2b 1px,transparent 1px,transparent 5px);opacity:.7}.hero-baseline>i{display:block;width:7px;height:7px;border:1px solid #a1b6cd}.specializations{padding-bottom:60px;scroll-margin-top:145px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.section-heading h2{font-size:32px;line-height:1.25;letter-spacing:-.035em;font-weight:400;margin:10px 0 0}.section-heading h2>span{color:var(--orange)}.section-cross{color:#7d98b7;font:28px/1 JetBrains Mono,monospace}.branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.branch-card{--cut:14px;background:#c6d5e4;padding:1px;min-width:0;scroll-margin-top:150px;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,0 100%);transition:background .18s}.branch-card:has(:focus-visible){clip-path:none;background:var(--blue)}.branch-card:hover,.branch-card:target{background:#6a8db5}.branch-card-link{display:flex;flex-direction:column;height:100%;min-height:260px;padding:24px;background:#fff;color:var(--ink);text-decoration:none;clip-path:inherit;position:relative;transition:background .18s}.branch-card-link:hover{background:#f5f8fc}.branch-card-link:after{content:"";position:absolute;bottom:0;left:24px;width:38px;height:3px;background:repeating-linear-gradient(135deg,#b47a2b 0,#b47a2b 1px,transparent 1px,transparent 4px);opacity:.7}.card-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.branch-icon{width:34px;height:34px;color:var(--blue);flex-shrink:0}.card-datum{color:#a2b5c9;font:19px/1 JetBrains Mono,monospace}.branch-card h3{font-size:22px;line-height:1.35;font-weight:400;letter-spacing:-.025em;margin:21px 0 10px}.branch-card p{font-size:16px;line-height:1.7;color:var(--muted);margin:0 0 20px}.card-action{display:flex;justify-content:space-between;align-items:center;gap:13px;margin-top:auto;font-size:16px;line-height:1.5;color:var(--blue)}.card-action>span{font-size:20px;color:var(--orange)}.service-example{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:72px;padding-block:58px 64px;border-top:1px solid #d4dfeb}.example-heading h2{font-size:clamp(29px,2.8vw,36px);font-weight:400;line-height:1.25;letter-spacing:-.035em;margin:18px 0 0}.example-heading em{font-style:normal;color:var(--blue)}.example-copy{min-width:0}.example-copy p{margin:0;color:var(--muted);font-size:17px;line-height:1.8}.example-link{display:inline-flex;align-items:center;gap:16px;min-height:44px;margin-top:20px;color:var(--blue);font-size:16px;line-height:1.6;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}.example-link:hover{color:#244b7a}.example-link>span{color:var(--orange);font-size:20px;flex-shrink:0}.home-footer{display:flex;align-items:center;gap:30px;padding-block:28px 32px;position:relative}.home-footer:before{content:"";position:absolute;top:0;left:40px;right:40px;height:1px;background:#d4dfeb}.home-footer a{text-decoration:none}.home-footer a:hover{text-decoration:underline}.footer-brand{font:500 20px/1.4 Space Grotesk Brand,Space Grotesk,sans-serif;letter-spacing:-.045em;color:#315c91}.footer-brand>span{color:#ae701c}.footer-contact{font-size:15px;color:#5e7691;margin-left:auto}.footer-contact>span{margin-left:8px;color:#ae701c}.footer-phone{font-size:19px;letter-spacing:-.03em;color:#ae701c;white-space:nowrap}.footer-phone>span{font-size:16px;margin-left:9px}@media(max-width:1100px){.page-width{padding-inline:26px}.hero-inner{padding:36px;gap:22px}.hero-copy h1{font-size:clamp(43px,5vw,56px)}.hero-actions{gap:12px 20px}.branch-grid{gap:18px}.branch-card-link{padding:23px 20px}.branch-card h3{font-size:21px}.home-footer:before{left:26px;right:26px}}@media(max-width:1000px){.branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-inner{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);padding:34px 30px;min-height:380px}.hero-art{opacity:.8}.hero-copy h1{font-size:44px}.hero-intro{font-size:17px}.hero-actions{gap:7px 16px;margin-top:25px}.button-primary{padding:12px 16px}.contact-link{gap:9px;min-height:53px;padding:12px 16px}.home-hero{padding-top:34px;padding-bottom:36px}}@media(max-width:800px){.hero-inner{grid-template-columns:1fr;overflow:hidden;min-height:355px;padding:34px;gap:0}.hero-copy{max-width:590px}.hero-copy h1{font-size:48px}.hero-art{position:absolute;width:260px;right:-10px;bottom:8px;opacity:.13}.hero-actions{gap:12px 25px}.hero-frame{--cut:20px}.section-heading h2{font-size:30px}.specializations,.branch-card{scroll-margin-top:130px}.home-footer{flex-wrap:wrap;gap:17px 25px}.home-footer .footer-contact{font-size:15px}.footer-phone{font-size:18px}}@media(max-width:600px){.page-width{padding-inline:22px}.home-hero{padding-top:26px;padding-bottom:30px}.hero-inner{padding:29px 24px;min-height:350px}.hero-copy h1{font-size:clamp(36px,8vw,46px);margin:21px 0}.hero-copy .eyebrow{font-size:12px;letter-spacing:.035em}.hero-copy .eyebrow>span{margin-right:7px}.hero-intro{font-size:17px}.hero-actions{margin-top:24px;gap:9px 20px}.hero-art{width:235px;right:-16px;bottom:22px;opacity:.11}.section-heading{margin-bottom:22px}.section-heading h2{font-size:28px;max-width:290px}.section-cross{font-size:23px}.branch-grid{grid-template-columns:1fr;gap:16px}.branch-card-link{min-height:235px;padding:23px}.branch-card h3{font-size:23px;margin-top:17px}.branch-card p{font-size:17px;margin-bottom:22px}.branch-card-link:after{left:23px}.specializations{padding-bottom:38px}.home-footer{padding-block:25px;gap:16px 20px}.home-footer:before{left:22px;right:22px}.footer-brand{width:100%}.footer-contact{margin-left:0}.footer-phone{margin-left:auto}}@media(max-width:380px){.page-width{padding-inline:18px}.hero-inner{padding:27px 21px}.hero-copy .eyebrow{letter-spacing:0}.hero-copy .eyebrow>span{margin-right:4px}.hero-copy h1{font-size:36px}.hero-actions{align-items:stretch;flex-direction:column;gap:8px}.button-primary{justify-content:space-between}.contact-link{--contact-shape:polygon(0 0,100% 0,100% calc(100% - 10px) , calc(100% - 10px) 100%,0 100%);--contact-inner-shape:polygon(0 0,100% 0,100% calc(100% - 8.83px) , calc(100% - 8.83px) 100%,0 100%);justify-content:space-between}.hero-art{right:-30px;bottom:55px}.section-heading h2{font-size:27px}.section-cross{display:none}.branch-card-link{padding:23px 20px}.branch-card h3{font-size:22px}.home-footer:before{left:18px;right:18px}.footer-contact,.footer-phone{margin-left:0}.footer-contact{width:100%}}@media(prefers-reduced-motion:reduce){.home-page *{transition:none!important}}@media(max-width:800px){.service-example{grid-template-columns:1fr;gap:24px;padding-block:42px 48px}.example-copy{max-width:650px}}@media(max-width:380px){.hero-copy h1{font-size:clamp(30px,8.5vw,32px)}}.hero-intro+.hero-intro{margin-top:14px}.hero-intro a,.hero-intro a:visited{color:var(--blue)}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .button-primary[href="#serwis"]:focus-visible > span {
    animation: hero-arrow-nudge 450ms ease-in-out;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-hero .button-primary[href="#serwis"]:hover > span {
    animation: hero-arrow-nudge 450ms ease-in-out;
  }
}

@keyframes hero-arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.branch-icon-pur {
  width: 48px;
  height: 36px;
}

.pur-hose-material {
  stroke-dasharray: 9 120;
  stroke-dashoffset: 9;
  opacity: 0;
}

.pur-spray {
  stroke: var(--orange);
  opacity: 0;
  transform-origin: 39px 12px;
}

@media (prefers-reduced-motion: no-preference) {
  [data-machine-animating] .pur-hose-material {
    animation: pur-material-flow 550ms linear;
  }

  [data-machine-animating] .pur-spray {
    animation: pur-foam-spray 370ms ease-out 1550ms;
  }
}

@keyframes pur-material-flow {
  from { stroke-dashoffset: 9; opacity: 1; }
  to { stroke-dashoffset: -100; opacity: 1; }
}

@keyframes pur-foam-spray {
  0% { opacity: 0; transform: scale(.8); }
  24%, 65% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.08); }
}

.branch-icon-label {
  width: 48px;
  height: 36px;
}

.label-reel { transform-origin: 12px 10px; }
.label-moving, .label-applied { fill: var(--orange); stroke: none; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  [data-machine-animating] .label-reel { animation: label-reel-turn 1800ms linear; }
  [data-machine-animating] .label-moving { animation: label-feed 1800ms linear; }
  [data-machine-animating] .label-applied { animation: label-stick 1800ms linear; }
  [data-machine-animating] .label-bottle { animation: label-conveyor 1800ms ease-in-out; }
}

@keyframes label-reel-turn {
  0% { transform: rotate(0); }
  33.333%, 100% { transform: rotate(180deg); }
}

@keyframes label-feed {
  0% { opacity: 0; transform: translate(0, 0); }
  3.333% { opacity: 1; }
  33.333% { opacity: 1; transform: translate(4px, 12px); }
  33.5%, 100% { opacity: 0; transform: translate(4px, 12px); }
}

@keyframes label-stick {
  0%, 33.333% { opacity: 0; }
  33.5%, 76.667% { opacity: 1; }
  85%, 100% { opacity: 0; }
}

@keyframes label-conveyor {
  0%, 33.333% { opacity: 1; transform: translateX(0); }
  76.667% { opacity: 1; transform: translateX(12px); }
  85% { opacity: 0; transform: translateX(12px); }
  85.167% { opacity: 0; transform: translateX(0); }
  96.667%, 100% { opacity: 1; transform: translateX(0); }
}

.branch-icon-machine {
  width: 48px;
  height: 36px;
}

.motion-accent { stroke: var(--orange); opacity: 0; }
.tunnel-film, .blow-bottle { transform-origin: 24px 25px; }
.extrusion-profile { transform-origin: 37px 20px; }

@media (prefers-reduced-motion: no-preference) {
  [data-machine-animating] .packing-jaw { animation: packing-seal 1800ms ease-in-out; }
  [data-machine-animating] .packing-seam { animation: machine-flash 1800ms ease-in-out; }
  [data-machine-animating] .tunnel-film { animation: tunnel-shrink 1800ms ease-in-out; }
  [data-machine-animating] .tunnel-heat { animation: machine-flash 1800ms ease-in-out; }
  [data-machine-animating] .blow-bottle { animation: bottle-expand 1800ms ease-in-out; }
  [data-machine-animating] .blow-air { animation: machine-flash 1800ms ease-in-out; }
  [data-machine-animating] .extrusion-profile { animation: profile-extrude 1800ms ease-in-out; }
}

@keyframes packing-seal {
  0%, 91.667%, 100% { transform: translateY(0); }
  23.333%, 56.667% { transform: translateY(9px); }
}

@keyframes machine-flash {
  0%, 16.667%, 80%, 100% { opacity: 0; }
  26.667%, 56.667% { opacity: 1; }
}

@keyframes tunnel-shrink {
  0%, 91.667%, 100% { transform: scale(1); }
  56.667%, 71.667% { transform: scale(.76, .82); }
}

@keyframes bottle-expand {
  0%, 91.667%, 100% { transform: scaleX(1); }
  15% { transform: scaleX(.45); }
  50%, 66.667% { transform: scaleX(1.16); }
}

@keyframes profile-extrude {
  0% { opacity: 0; transform: scaleX(.05); }
  10% { opacity: 1; }
  63.333% { opacity: 1; transform: scaleX(1); }
  83.333%, 100% { opacity: 0; transform: scaleX(1); }
}

@media (max-width: 1100px) {
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-card-link { min-height: 208px; padding: 18px 20px; }
  .branch-card h3 { margin: 12px 0 6px; }
  .branch-card p { line-height: 1.5; margin-bottom: 12px; }
  .branch-card-link::after { left: 20px; }
}

@media (601px <= width <= 700px) {
  .branch-card-link { padding: 13px 16px; }
  .branch-card h3 { margin-top: 7px; }
  .branch-card p { margin-bottom: 6px; }
  .branch-card-link::after { left: 16px; }
}

@media (max-width: 600px) {
  .branch-grid { grid-template-columns: 1fr; gap: 12px; }
  .branch-card-link { min-height: 160px; padding: 12px 16px; }
  .branch-card h3 { font-size: 21px; line-height: 1.2; margin: 6px 0 3px; }
  .branch-card p { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
  .branch-card-link::after { left: 16px; }
}

@media (max-width: 360px) {
  .branch-card-link { padding-inline: 12px; }
  .branch-card-link::after { left: 12px; }
}
