/* Each screen is a horizontal stop. Long content remains readable at any zoom. */
body.horizontal-ready{height:100svh;overflow:hidden;--deck-top:88px;--deck-bottom:66px}
.horizontal-ready .footer{display:none}
.horizontal-deck{position:fixed;inset:var(--deck-top) 0 var(--deck-bottom);display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:auto}
.horizontal-deck::-webkit-scrollbar{display:none}
.horizontal-deck>.deck-panel{position:relative;flex:0 0 100%;width:100%;height:100%;min-height:0;max-height:none;margin:0;scroll-snap-align:start;scroll-snap-stop:always;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#2855df #e8edf5}
.horizontal-deck>.section{padding:38px 0;display:flex;align-items:flex-start}
.horizontal-deck>.section>.wrap{margin-block:auto}
.horizontal-deck h2{font-size:clamp(32px,3.4vw,48px)}
.horizontal-deck .section-head{gap:38px;margin-bottom:28px}
.horizontal-deck .section-head>p{font-size:15px}
.horizontal-deck .eyebrow{margin-bottom:12px}
.horizontal-deck .hero{padding:0}
.horizontal-deck .hero-content{padding:26px 0 116px;margin-block:auto}
.horizontal-deck .hero h1{font-size:clamp(46px,5.8vw,82px);margin-bottom:22px}
.horizontal-deck .hero .lead{font-size:18px;margin:0}
.horizontal-deck .hero-domain{padding-top:19px;padding-bottom:19px}
.horizontal-deck .page-hero{display:flex;align-items:center;padding:44px 0}
.horizontal-deck .page-hero h1{font-size:clamp(46px,5.8vw,80px)}
.horizontal-deck .division,.horizontal-deck .division-body{min-height:292px}
.horizontal-deck .division-body{padding:58px 28px 22px}
.horizontal-deck .division-num{top:21px;left:28px;font-size:11px}
.horizontal-deck .division h3{font-size:31px;margin:0 0 12px}
.horizontal-deck .division p{font-size:14px;line-height:1.55;margin-bottom:14px}
.horizontal-deck .division summary{padding:12px 0 3px;font-size:14px}
.horizontal-deck .process-line{font-size:11px;margin-top:18px}
.horizontal-deck .facts{margin-top:22px}
.horizontal-deck .fact{padding:10px 24px}
.horizontal-deck .fact b{font-size:38px}
.horizontal-deck .fact span{font-size:12px}
.horizontal-deck .map-layout{grid-template-columns:360px 1fr;gap:30px}
.horizontal-deck .map-copy>p:not(.eyebrow){font-size:15px;max-width:400px}
.horizontal-deck .map-visual img{height:min(43svh,400px);width:100%;object-fit:contain}
.horizontal-deck .map-stats{margin-top:14px}
.horizontal-deck .map-stat{padding:17px 28px;display:flex;align-items:center;gap:20px}
.horizontal-deck .map-stat b{font-size:38px}
.horizontal-deck .map-stat span{margin:0;font-size:13px}
.horizontal-deck .map-enlarge{margin-top:18px}
.horizontal-deck .map-caption{display:inline-block;max-width:650px;margin:10px 0 0 18px;font-size:12px}
.horizontal-deck .team-teaser img{max-height:58svh;width:100%;object-fit:cover}
.horizontal-deck .board img{max-height:calc(100svh - 225px);width:100%;object-fit:contain}
.horizontal-deck .team-wide{max-height:46svh;object-fit:contain;margin:0 auto}
.horizontal-deck .contact-band>img{height:100%;max-height:none;object-fit:cover}
.horizontal-deck .contact-band .contact-copy{align-self:center}
.horizontal-deck .project-grid{grid-template-columns:repeat(3,1fr);gap:16px}
.horizontal-deck .project-card{aspect-ratio:1.85}
.horizontal-deck .notice{margin-bottom:22px;padding:15px 20px}
.horizontal-deck .jobs{gap:18px}
.horizontal-deck .job{padding:26px}
.horizontal-deck .job h2{font-size:28px}
.deck-nav{position:fixed;inset:auto 0 0;height:var(--deck-bottom);z-index:40;background:#0b111b;color:white;border-top:1px solid #ffffff20;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;gap:20px}
.deck-nav>button{height:40px;min-width:100px;border:1px solid #ffffff40;background:transparent;color:white;font-size:13px;font-weight:600;transition:background .2s}
.deck-nav>button:hover{background:#2855df;border-color:#2855df}
.deck-nav>button:disabled{opacity:.25;cursor:default;background:transparent;border-color:#ffffff40}
.deck-next:after{content:'→';display:inline-block;margin-left:14px;font-size:17px}
.deck-previous:before{content:'←';display:inline-block;margin-right:14px;font-size:17px}
.deck-progress{display:flex;gap:26px;align-items:center}
.deck-caption{font-size:12px;letter-spacing:.05em;color:#d3def0;min-width:185px}
.deck-dots{display:flex;gap:5px}
.deck-dots button{border:0;background:transparent;padding:12px 3px;position:relative;width:28px;height:34px}
.deck-dots button:after{content:'';display:block;background:#ffffff35;height:3px;width:100%;transition:background .25s}
.deck-dots button[aria-current=step]:after{background:#658aff}
#zaufali-nam{color:white;background:#091423 url('assets/trust-panorama.png') center 45%/cover no-repeat;isolation:isolate}
#zaufali-nam:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#061120e8 0%,#08111c30 43%,#030a14c9 100%);z-index:-1}
#zaufali-nam>.wrap{min-height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:80px}
#zaufali-nam .eyebrow{color:#96b6ff}
#zaufali-nam h2{font-size:clamp(46px,5.3vw,76px);letter-spacing:-.05em}
#zaufali-nam .section-head{align-items:start}
#zaufali-nam .section-head>p{color:#dbe5f8;max-width:365px;padding-top:5px}
#zaufali-nam .partners{gap:24px;margin-top:auto}
#zaufali-nam .partner-column{padding:23px 28px;background:#071323c9;backdrop-filter:blur(12px);border:1px solid #ffffff25;border-top:2px solid #5585ff;box-shadow:0 18px 50px #0003}
#zaufali-nam .partner-column h3{font-size:21px;margin:0 0 14px;display:flex;align-items:center;gap:15px}
#zaufali-nam .partner-column h3 small{color:#8fabff;font-size:12px}
#zaufali-nam .partner-names{grid-template-columns:repeat(3,1fr);column-gap:16px}
#zaufali-nam .partner-names span{font-size:clamp(14px,1.35vw,20px);min-height:48px;padding:11px 0;border-color:#ffffff18;letter-spacing:-.03em}
#zaufali-nam .partner-column:last-child .partner-names{grid-template-columns:repeat(2,1fr)}
@media(max-width:1100px){.horizontal-deck .map-layout{grid-template-columns:310px 1fr;gap:10px}.deck-progress{gap:15px}.horizontal-deck .map-stat{gap:12px;padding:17px}.horizontal-deck .map-caption{max-width:500px}.horizontal-deck .division-body{padding-inline:22px}.horizontal-deck .division-num{left:22px}}
@media(max-width:860px){body.horizontal-ready{--deck-top:76px;--deck-bottom:70px}.horizontal-deck>.section{padding:30px 0}.horizontal-deck .map-layout{grid-template-columns:1fr}.horizontal-deck .map-copy h2{font-size:36px}.horizontal-deck .map-copy h2 br{display:none}.horizontal-deck .map-copy>p:not(.eyebrow){max-width:none}.horizontal-deck .map-visual img{height:35svh}.horizontal-deck .map-stats{grid-template-columns:repeat(3,1fr)}.horizontal-deck .map-stat{display:block;padding:12px}.horizontal-deck .map-stat span{display:block;font-size:11px}.horizontal-deck .map-stat b{font-size:32px}.horizontal-deck .map-caption{margin:10px 0 0;display:block}.horizontal-deck .contact-band>img{height:38svh}.horizontal-deck .contact-band{display:block}.horizontal-deck .contact-band .contact-copy{padding:30px}.deck-nav{padding-inline:22px}.deck-caption{min-width:0}.deck-progress{flex-direction:column;gap:0}.deck-dots button{height:22px;padding-block:8px}.horizontal-deck .board img{max-height:60svh}.horizontal-deck .page-hero h1{font-size:55px}#zaufali-nam .partner-names{grid-template-columns:repeat(2,1fr)}#zaufali-nam .partner-column{padding:20px}#zaufali-nam>.wrap{gap:110px}}
@media(max-width:600px){.horizontal-deck .hero h1{font-size:clamp(36px,10.6vw,51px);margin-bottom:20px}.horizontal-deck .hero .lead{font-size:15px;line-height:1.65}.horizontal-deck .hero .actions{margin-top:23px;gap:10px}.horizontal-deck .hero .btn{font-size:12px;padding:12px 16px;min-height:44px}.horizontal-deck .hero-content{padding:25px 0 110px}.horizontal-deck .hero-domain{padding-top:15px;padding-bottom:15px}.horizontal-deck .hero-domain small{font-size:9px}.horizontal-deck .page-hero{padding:28px 0}.horizontal-deck .page-hero h1{font-size:45px}.horizontal-deck .section-head{margin-bottom:22px}.horizontal-deck .section-head>p{margin-top:18px;font-size:14px}.horizontal-deck .division-grid{gap:16px}.horizontal-deck .division,.horizontal-deck .division-body{min-height:280px}.horizontal-deck .division h3{font-size:30px}.horizontal-deck .facts{margin-top:18px}.horizontal-deck .fact{padding:16px 12px!important}.horizontal-deck .fact b{font-size:32px}.horizontal-deck .map-copy h2{font-size:33px}.horizontal-deck .map-visual{margin:0;width:100%}.horizontal-deck .map-visual img{height:31svh}.horizontal-deck .map-stat{padding:10px}.horizontal-deck .map-stat b{font-size:30px}.horizontal-deck .map-stats{gap:6px}.horizontal-deck .map-enlarge{margin-top:12px}.horizontal-deck .team-teaser img{max-height:36svh}.horizontal-deck .team-wide{max-height:45svh}.horizontal-deck .board img{max-height:50svh}.horizontal-deck .project-grid{grid-template-columns:repeat(2,1fr);gap:12px}.horizontal-deck .project-card{aspect-ratio:1}.horizontal-deck .project-card .project-number{font-size:54px}.horizontal-deck .project-info h3{font-size:17px}.horizontal-deck .project-info>span{font-size:10px}.deck-nav{padding-inline:14px;gap:10px}.deck-nav>button{min-width:64px;font-size:12px;padding:0 9px}.deck-next:after,.deck-previous:before{display:none}.deck-caption{font-size:10px;white-space:nowrap;letter-spacing:0}.deck-dots{gap:2px}.deck-dots button{width:22px}#zaufali-nam{background-position:58% center}#zaufali-nam>.wrap{gap:120px}#zaufali-nam .section-head{margin-bottom:0}#zaufali-nam h2{font-size:48px}#zaufali-nam .partners{gap:14px}#zaufali-nam .partner-column{padding:17px 20px}#zaufali-nam .partner-column h3{font-size:18px;margin-bottom:8px}#zaufali-nam .partner-names{grid-template-columns:repeat(3,1fr);gap:10px}#zaufali-nam .partner-names span{font-size:13px;min-height:34px;padding:8px 0}#zaufali-nam .partner-column:last-child .partner-names{grid-template-columns:repeat(4,1fr)}#zaufali-nam .section-head>p{font-size:14px}}
@media(max-height:700px) and (min-width:861px){.horizontal-deck>.section{padding:24px 0}.horizontal-deck .section-head{margin-bottom:20px}.horizontal-deck .section-head h2{font-size:35px}.horizontal-deck .hero h1{font-size:57px}.horizontal-deck .hero .lead{font-size:16px}.horizontal-deck .hero .eyebrow{margin-bottom:14px}.horizontal-deck .hero .actions{margin-top:22px}.horizontal-deck .division,.horizontal-deck .division-body{min-height:255px}.horizontal-deck .division p{font-size:13px}.horizontal-deck .division h3{font-size:28px}.horizontal-deck .process-line{margin-top:12px}.horizontal-deck .facts{margin-top:12px}.horizontal-deck .fact b{font-size:32px}#zaufali-nam>.wrap{gap:60px}#zaufali-nam .partner-column{padding:16px 24px}#zaufali-nam .partner-names span{min-height:40px;padding:8px 0}}
@media(prefers-reduced-motion:reduce){.horizontal-deck{scroll-behavior:auto}}

/* Give the two business areas more room on desktop screens. */
@media(min-width:861px){
  #jak-pracujemy{--width:1520px}
  #jak-pracujemy>.wrap{width:min(var(--width),calc(100% - 80px))}
}
@media(min-width:861px) and (min-height:801px){
  .horizontal-deck>#jak-pracujemy{padding:28px 0}
  #jak-pracujemy .section-head{gap:42px;margin-bottom:26px}
  #jak-pracujemy .section-head h2{font-size:clamp(46px,3.6vw,60px)}
  #jak-pracujemy .section-head>p{font-size:17px;max-width:520px}
  #jak-pracujemy .division,#jak-pracujemy .division-body{min-height:clamp(350px,calc(100svh - 455px),500px)}
  #jak-pracujemy .division-body{padding:76px clamp(28px,2.5vw,44px) 30px}
  #jak-pracujemy .division-num{top:28px;left:clamp(28px,2.5vw,44px);font-size:12px}
  #jak-pracujemy .division h3{font-size:clamp(34px,2.7vw,42px);margin-bottom:16px}
  #jak-pracujemy .division p{font-size:16px;line-height:1.6;max-width:580px;margin-bottom:18px}
  #jak-pracujemy .division summary{font-size:16px;padding:16px 0 4px}
  #jak-pracujemy .process-line{margin-top:24px}
  #jak-pracujemy .facts{margin-top:24px}
  #jak-pracujemy .fact{padding:15px 28px}
  #jak-pracujemy .fact b{font-size:52px}
  #jak-pracujemy .fact span{font-size:14px}
}

/* Real projects imported from the company photo archives. */
.project-photo-count{position:absolute;top:16px;right:16px;padding:5px 10px;font-size:11px;color:white;background:#071323bb;border:1px solid #ffffff44;z-index:3}
.horizontal-deck .project-card{aspect-ratio:1.5}
.horizontal-deck .project-card .project-info{padding:45px 23px 22px}
.horizontal-deck .project-info h3{font-size:22px;line-height:1.15;max-width:90%;margin-bottom:9px}
.project-dialog{width:min(1320px,calc(100vw - 36px));max-height:94svh}
.project-dialog .dialog-body{grid-template-columns:minmax(220px,.75fr) minmax(0,1.7fr);gap:36px}
.project-dialog .dialog-body>div{min-width:0}
.project-dialog .dialog-top{position:sticky;top:0;z-index:3}
.project-dialog #project-facts dd{min-width:0;overflow-wrap:anywhere}
.project-dialog .gallery-image{height:min(60svh,620px);background:#080e18}
.gallery-frame{position:relative;background:#080e18}
.gallery-error{position:absolute;inset:40% 20px auto;color:white;text-align:center}
.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;margin-top:16px;padding:3px 3px 10px;scrollbar-width:thin;position:relative}
.gallery-thumbs button{padding:0;flex:0 0 74px;height:58px;border:2px solid transparent;background:#101b2c;opacity:.6}
.gallery-thumbs button[aria-current=true]{border-color:var(--blue);opacity:1}
.gallery-thumbs img{width:100%;height:100%;object-fit:cover}
.gallery-controls button{font-size:12px}
.gallery-controls>span{white-space:nowrap;font-size:12px}
.project-dialog .gallery-video{width:100%;height:min(60svh,620px);object-fit:contain;background:#080e18;display:block}
.project-dialog .gallery-frame [hidden]{display:none}
.gallery-thumbs button{position:relative}
.video-play-mark{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:19px;text-shadow:0 1px 6px #000;z-index:1;pointer-events:none}
@media(max-width:860px){.project-dialog .gallery-video{height:48svh}}
@media(max-width:860px){.project-dialog .dialog-body{grid-template-columns:minmax(0,1fr);gap:18px}.project-dialog .gallery-image{height:48svh}.project-dialog .dialog-body>div:first-child h2{font-size:30px}.project-dialog .dialog-body>div:first-child .eyebrow{font-size:11px}.project-dialog #project-facts{display:grid;grid-template-columns:90px minmax(0,1fr);gap:5px 15px}}
@media(max-width:600px){.horizontal-deck .project-grid{grid-template-columns:1fr}.horizontal-deck .project-card{aspect-ratio:1.5}.horizontal-deck .project-info h3{font-size:25px}.horizontal-deck .project-info>span{font-size:12px}.project-dialog .dialog-body{padding:20px}.gallery-controls button{padding:9px 8px;font-size:11px}.gallery-thumbs button{flex-basis:65px;height:50px}}

/* Translucent project labels preserve the construction photo beneath them. */
.project-card .project-info{background:rgba(17,42,116,.68);backdrop-filter:blur(1.5px);-webkit-backdrop-filter:blur(1.5px);border-top:1px solid #ffffff30;text-shadow:0 1px 3px #07152b80}
.project-info>span{color:#f0f4ff}

/* Bound portrait covers to the card instead of their intrinsic grid height. */
.project-card .placeholder-lines{display:block;overflow:hidden;bottom:48px}
.project-card .placeholder-lines>img{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover}
.horizontal-deck .project-card{aspect-ratio:4/3}
.horizontal-deck .project-card .project-info{padding:24px 20px 14px;clip-path:polygon(0 14%,100% 0,100% 100%,0 100%);background:rgba(17,42,116,.52);backdrop-filter:none;-webkit-backdrop-filter:none}
.horizontal-deck .project-info h3{font-size:20px;line-height:1.2;max-width:calc(100% - 22px);margin:0 0 5px}
.horizontal-deck .project-info>span{font-size:12px;line-height:1.4}
.horizontal-deck .project-info .project-plus{font-size:26px;right:18px;bottom:18px}
@media(min-width:601px) and (max-width:1050px){.horizontal-deck .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.horizontal-deck .project-info h3{font-size:21px}.project-photo-count{top:12px;right:12px}}

/* Original transparent badges in a quiet monochrome treatment on the dark rail. */
.deck-nav{display:grid;grid-template-columns:44px auto minmax(0,1fr) 44px;gap:24px}
.deck-nav>button{min-width:44px;width:44px;height:44px;padding:0;font-size:25px;font-weight:400;line-height:1}
.deck-next:after,.deck-previous:before{content:none;display:none}
.deck-progress{justify-self:center;min-width:0}
.deck-badges{display:flex;align-items:center;justify-content:center;gap:18px;background:transparent;border:0;padding:0}
.deck-logo{position:relative;display:block;overflow:hidden;flex:none;height:44px}
.deck-logo img{position:absolute;display:block;max-width:none;height:auto;filter:brightness(0) invert(1);opacity:.72}
.deck-logo-forbes{width:56.2486px}
.deck-logo-forbes img{width:126.849894%;left:-13.530655%;top:-32.972973%}
.deck-logo-rzetelna{width:102.7561px}
.deck-logo-rzetelna img{width:130.548303%;left:-16.710183%;top:-103.658537%}
@media(max-width:860px){
 .deck-nav{gap:16px}
 .deck-progress{gap:0}
}
@media(max-width:600px){
 body.horizontal-ready{--deck-bottom:106px}
 .deck-nav{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:'previous badges next' 'previous progress next';grid-template-rows:54px 30px;column-gap:9px;row-gap:3px;padding:9px 10px}
 .deck-previous{grid-area:previous}.deck-next{grid-area:next}
 .deck-badges{grid-area:badges;justify-self:center;gap:14px;padding:0}
 .deck-progress{grid-area:progress;align-self:start;line-height:1.3}
 .deck-caption{font-size:9px;text-align:center;white-space:normal}
 .deck-dots button{height:16px;padding-block:5px}
}
