/* MIT Consult – style strony (v5) */
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-400.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-500.woff) format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-600.woff) format("woff");font-weight:600;font-display:swap}
/* Exo 2 – nagłówki (SIL Open Font License, plik OFL-Exo2.txt w /assets/fonts) */
@font-face{font-family:"Exo 2";src:url(/assets/fonts/exo2-500.woff) format("woff");font-weight:500;font-display:swap}
@font-face{font-family:"Exo 2";src:url(/assets/fonts/exo2-600.woff) format("woff");font-weight:600;font-display:swap}

:root{--red:#C40000;--red-dark:#8F0000;--ink:#1F1F1F;--body:#4D4D4D;--muted:#666666;--line:#E2E2DF;--soft:#F6F6F4;--foot:#ECECE9;--white:#FFFFFF;
--head:"Exo 2","Inter",system-ui,sans-serif;--text:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;--mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:var(--text);color:var(--ink);background:var(--white);line-height:1.5;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%}
a{color:var(--red)}a:hover{color:var(--red-dark)}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--white);padding:10px 16px;z-index:100}
.skip:focus{left:8px}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
h1,h2,h3{font-family:var(--head);font-weight:600;margin:0}
.h2{font-size:40px;line-height:1.15;margin:0 0 12px}
.h2.sm{font-size:34px}
.lead{font-size:18px;line-height:1.6;color:var(--body);max-width:680px;margin:0 0 40px}
p{margin:0}
.muted{color:var(--muted)}
.sec{padding:88px 0}
.sec.soft{background:var(--soft)}
.sec.lg{padding:96px 0}
.label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.label::before{content:"";width:4px;height:20px;background:var(--red);display:inline-block}
.badge{font-size:12px;font-weight:600;color:var(--red);border:1px solid var(--red);border-radius:999px;padding:2px 9px;letter-spacing:0;text-transform:none;white-space:nowrap}
.btns{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:0 26px;font-weight:600;border-radius:4px;text-decoration:none;font-size:16px;border:1px solid transparent;cursor:pointer;font-family:inherit}
.btn-primary{background:var(--red);color:var(--white)}.btn-primary:hover{background:var(--red-dark);color:var(--white)}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent}.btn-ghost:hover{background:var(--ink);color:var(--white)}

/* nagłówek */
.site-header{position:relative;z-index:20;background:var(--white);border-bottom:1px solid var(--line)}
.site-header.over{position:absolute;left:0;right:0;top:0;background:transparent;border-bottom:0}
.hdr{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;padding-bottom:20px}
.logo img{height:44px;width:auto;display:block}
.nav{display:flex;flex-wrap:wrap;gap:28px;font-size:15px;font-weight:500}
.nav a{color:var(--ink);text-decoration:none}.nav a:hover,.nav a[aria-current]{color:var(--red)}
.menubtn{display:none;width:48px;height:48px;align-items:center;justify-content:center;border:1px solid #BDBDBD;border-radius:6px;background:var(--white);color:var(--ink);cursor:pointer}

/* sekcja powitalna */
.hero{position:relative;overflow:hidden;background:#F6F6F4;min-height:800px}
.hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero .scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(246,246,244,.97) 0%,rgba(246,246,244,.88) 32%,rgba(246,246,244,0) 58%)}
.hero-txt{position:relative;padding-top:204px;padding-bottom:140px;display:flex;flex-direction:column;gap:24px}
.hero h1{font-size:60px;line-height:1.06;max-width:640px}
.hero p{font-size:19px;line-height:1.6;color:var(--body);max-width:540px}
.pause{position:absolute;right:24px;bottom:24px;width:48px;height:48px;border-radius:24px;border:1px solid #BDBDBD;background:var(--white);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5}
.pause .i-play{display:none}.pause[aria-pressed="true"] .i-play{display:block}.pause[aria-pressed="true"] .i-pause{display:none}
.fps[hidden]{display:none}
.fps{position:absolute;right:84px;bottom:36px;font:500 12px var(--text);background:rgba(255,255,255,.85);padding:4px 8px;border-radius:4px;color:#137A3E;z-index:5}

/* liczby */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;padding-top:32px;padding-bottom:32px}
.stats-sec{border-bottom:1px solid var(--line)}
.stat b{display:block;font-family:var(--head);font-size:30px;font-weight:600}
.stat span{font-size:14px;color:var(--muted)}

/* usługi */
.groups{display:flex;flex-direction:column;gap:40px}
.group{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:stretch}
.group-head{display:flex;flex-direction:column;gap:10px;padding:8px 8px 8px 0}
.group-letter{display:flex;align-items:center;gap:12px;font-family:var(--head);font-size:44px;font-weight:600;color:var(--red);line-height:1}
.group-letter::before{content:"";width:6px;height:40px;background:var(--red)}
.group-head h2,.group-head h3{font-size:24px}
.group-head p{font-size:15px;line-height:1.55;color:var(--body)}
.card{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:24px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:10px}
.card:hover{border-color:var(--red);color:var(--ink)}
.card-t{display:flex;align-items:center;justify-content:space-between;gap:8px;font-family:var(--head);font-size:19px;font-weight:600}
.card-d{font-size:15px;line-height:1.55;color:var(--body)}
.card-more{margin-top:auto;font-size:14px;font-weight:600;color:var(--red)}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:48px}
.grid2.center{align-items:center}
.var{padding-top:20px;border-top:4px solid #999999}
.var.r{border-top-color:var(--red)}.var.k{border-top-color:var(--ink)}
.box .var{background:var(--white);border-radius:6px;padding:28px}
.var h3{font-size:20px;margin-bottom:8px}
.var p,.tile p{font-size:15px;line-height:1.6;color:var(--body)}
.tile{background:var(--white);border-radius:6px;padding:28px}
.tile h3{font-size:20px;margin-bottom:8px}
.clients{display:flex;flex-wrap:wrap;gap:10px 28px;font-family:var(--head);font-size:18px;font-weight:500;color:var(--body);list-style:none;margin:0;padding:0}
.mit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mit div{background:var(--white);border-radius:6px;padding:24px 16px;border-top:4px solid var(--red)}
.mit b{display:block;font-family:var(--head);font-size:36px;color:var(--red)}
.mit strong{display:block;margin:4px 0}
.mit span{font-size:14px;line-height:1.5;color:var(--body)}
.txt p{font-size:17px;line-height:1.65;color:var(--body)}
.txt p+p{margin-top:16px}
.mail-big{font-family:var(--head);font-size:24px;font-weight:600;text-decoration:none}

/* formularz */
.form{background:var(--soft);border-radius:8px;padding:28px;display:flex;flex-direction:column;gap:16px}
.form .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
.form input[type=text],.form input[type=email],.form textarea{border:1px solid #BDBDBD;border-radius:4px;padding:10px 12px;font:inherit;font-size:16px;background:var(--white);color:var(--ink)}
.form input[type=text],.form input[type=email]{height:48px}
.form textarea{resize:vertical;min-height:130px}
.form .form-note{font-size:13px;line-height:1.5;color:var(--body);margin:0}
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.form-msg{font-size:15px;line-height:1.5;padding:12px 14px;border-radius:4px;display:none}
.form-msg.ok{display:block;background:#E8F5EC;color:#105A2E}
.form-msg.err{display:block;background:#FBEAEA;color:#8F0000}

/* podstrony */
.crumb{font-size:14px;color:var(--muted);margin-bottom:32px}
.crumb a{color:var(--muted);display:inline-block;padding:4px 0}
.sub-hero{background:var(--soft);border-bottom:1px solid var(--line)}
.sub-hero .wrap{padding-top:28px;padding-bottom:56px}
.sub-hero .grid2{gap:40px}
.sub-txt{display:flex;flex-direction:column;gap:20px}
.sub-txt h1{font-size:50px;line-height:1.08}
.sub-txt p{font-size:19px;line-height:1.6;color:var(--body);max-width:560px}
.animbox{position:relative;height:360px}
.scope{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.scope li{display:flex;gap:14px;align-items:flex-start;background:var(--soft);border-radius:6px;padding:16px 18px}
.scope li::before{content:"";flex:none;width:4px;height:22px;background:var(--red);margin-top:2px}
.scope strong{display:block;font-size:16px;margin-bottom:2px}
.scope span{font-size:15px;line-height:1.5;color:var(--body)}
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.steps li{border-top:1px solid var(--line);padding-top:20px}
.steps b{display:block;font-family:var(--head);font-size:32px;color:var(--red)}
.steps h3{margin:6px 0 8px;font-size:18px;font-family:var(--text)}
.steps p{font-size:15px;line-height:1.6;color:var(--body)}
.chips{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.chips li{background:var(--white);border:1px solid var(--line);border-radius:999px;padding:8px 16px;font-size:14px}
.faq{display:flex;flex-direction:column;gap:10px}
.faq details{background:var(--white);border:1px solid var(--line);border-radius:6px;padding:16px 18px}
.faq summary{cursor:pointer;list-style:none;font-weight:600;font-size:16px;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--red);font-size:20px;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq p{margin-top:10px;font-size:15px;line-height:1.6;color:var(--body)}
.cta{background:var(--soft);border-top:1px solid var(--line)}
.cta .wrap{padding-top:64px;padding-bottom:64px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}
.cta h2{font-size:32px;margin-bottom:8px}
.cta p{font-size:17px;color:var(--body)}
.legal h2{font-size:24px;margin:32px 0 10px}
.legal p,.legal li{font-size:16px;line-height:1.7;color:var(--body)}
.legal{max-width:820px}

/* animacje nagłówków podstron */
.anim-racks{position:absolute;inset:0;display:flex;gap:16px;justify-content:center;padding-top:8px}
.rack{width:30%;max-width:170px;background:#F3F4F6;border:1px solid #D5D9DE;border-radius:6px;padding:12px 10px;display:flex;flex-direction:column;gap:7px}
.unit{height:26px;background:var(--white);border:1px solid #D5D9DE;border-radius:3px;display:flex;align-items:center;gap:6px;padding:0 8px}
.vent{flex:1;height:8px;background:repeating-linear-gradient(90deg,#D5D9DE 0 3px,transparent 3px 6px)}
.led{width:7px;height:7px;border-radius:4px;display:inline-block;animation:blink 1.6s steps(2,end) infinite}
.anim-svg{position:absolute;inset:0;width:100%;height:100%}
.ln{stroke-dasharray:14 406;animation:pulse 4s linear infinite}
.nd{animation:glow 3s ease-in-out infinite}
.tr{stroke-dasharray:8 92;animation:flow 3.5s linear infinite}
.anim-tracks{position:absolute;inset:0;display:flex;justify-content:space-between;padding:0 4%}
.track{position:relative;width:14px;height:100%;display:flex;justify-content:center;overflow:hidden}
.track::before{content:"";width:1px;height:100%;background:#E4E6E9}
.bar{position:absolute;top:0;left:50%;animation:rise 6s linear infinite}
.console{position:absolute;left:4%;right:4%;top:30px;background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px rgba(31,31,31,.08);overflow:hidden}
.console-bar{display:flex;align-items:center;gap:8px;padding:11px 16px;background:#F3F3F1;border-bottom:1px solid var(--line)}
.dot{width:11px;height:11px;border-radius:6px;background:#BDBDBD;display:inline-block}.dot.r{background:var(--red)}
.console-bar span:last-child{margin-left:8px;font-family:var(--mono);font-size:12px;color:var(--muted)}
.console-body{padding:18px 20px 22px;font-family:var(--mono);font-size:13px;line-height:1.85;min-height:220px;color:#333333}
.console-body .t-cmd{color:var(--red);font-weight:500}.console-body .t-ok{color:#137A3E;font-weight:500}.console-body .t-info{color:var(--muted);font-weight:500}
.cur{display:inline-block;width:8px;height:16px;background:#333333;vertical-align:middle;animation:caret 1s step-end infinite}
.photo{position:absolute;inset:0;border-radius:8px;background:#E2E2DF;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.anim-paused .led,.anim-paused .ln,.anim-paused .nd,.anim-paused .tr,.anim-paused .bar,.anim-paused .cur{animation-play-state:paused}
@keyframes blink{0%,100%{opacity:.25}40%{opacity:1}60%{opacity:.9}}
@keyframes pulse{from{stroke-dashoffset:420}to{stroke-dashoffset:0}}
@keyframes glow{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes flow{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes rise{from{transform:translateY(420px)}to{transform:translateY(-200px)}}
@keyframes caret{0%,49%{opacity:1}50%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.led,.ln,.nd,.tr,.bar,.cur{animation:none}}

/* stopka */
.site-footer{background:var(--foot);color:var(--body);border-top:3px solid var(--red)}
.foot{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:32px;padding-top:48px;padding-bottom:40px;font-size:14px;line-height:1.8}
.foot img{height:40px;width:auto;margin-bottom:12px;display:block}
.foot strong{color:var(--ink);display:block}
.foot a{color:var(--body);text-decoration:none;display:inline-block;padding:3px 0}.foot a:hover{color:var(--red)}
.foot a.mail{color:var(--red)}
.foot ul{list-style:none;margin:0;padding:0}
.copy{border-top:1px solid #D5D5D2;padding-top:16px;padding-bottom:32px;font-size:13px;color:var(--muted)}

/* telefon */
@media (max-width:760px){
.wrap{padding-left:20px;padding-right:20px}
.nav{display:none}
.menubtn{display:flex}
.nav.open{display:flex;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0;background:var(--white);border-bottom:1px solid var(--line);padding:8px 20px 16px;box-shadow:0 12px 24px rgba(0,0,0,.06)}
.nav.open a{padding:12px 0;border-bottom:1px solid var(--line)}
.hdr{padding-top:16px;padding-bottom:16px;position:relative}
.hero{min-height:720px}
.hero-txt{padding-top:150px;padding-bottom:110px}
.hero h1{font-size:38px}.hero p{font-size:17px}
.hero .scrim{background:linear-gradient(180deg,rgba(246,246,244,.94) 0%,rgba(246,246,244,.86) 55%,rgba(246,246,244,.35) 100%)}
.h2,.h2.sm{font-size:28px}
.sec,.sec.lg{padding:56px 0}
.sub-txt h1{font-size:36px}
.animbox{height:240px}
.mit{grid-template-columns:1fr}
}
