
body figure.jk-equipment {display:flex;align-items:center;justify-content:center;gap:clamp(10px,6vw,90px);height:clamp(155px,26vw,330px);overflow:visible}
body figure.jk-equipment img {width:42%;height:100%;object-fit:contain;mask-image:none;}
body figure.jk-equipment img.jk-revex {width:min(32%,330px);height:auto;clip-path:polygon(13% 16%,93% 4%,96% 6%,98% 36%,95.5% 37%,93% 90%,91% 95%,8% 97%,2% 87%,10% 20%);}
body figure.jk-desk {position:relative;z-index:0;width:min(100%,1350px);height:auto;aspect-ratio:3/1;margin:-36px auto -28px;background:transparent;overflow:visible;pointer-events:none}
body figure.jk-desk img {object-fit:contain;opacity:.80;mask-image:linear-gradient(90deg,transparent,#000 17%,#000 84%,transparent),linear-gradient(transparent,#000 13%,#000 64%,transparent);mask-composite:intersect}
body .section:has(+.jk-desk) {position:relative;z-index:1;padding-bottom:0;background:transparent!important}
body .section:has(+.jk-desk) .card {background:rgba(240,249,253,.86)!important}
body .jk-desk + #dokumentace {position:relative;padding-top:clamp(26px,3vw,46px);background:transparent!important}
@media(max-width:640px){body figure.jk-desk{margin:-10px auto -8px}}


body .jk-schema-hero{position:relative;isolation:isolate;overflow:hidden;background:#082337!important}
.jk-schema-wall{position:absolute;inset:0;width:100%;height:100%;opacity:.83;pointer-events:none}
body .jk-schema-hero .hero-grid{position:relative;display:block}
body .jk-schema-hero .hero-grid>div:first-child{width:min(100%,620px);box-sizing:border-box;background:linear-gradient(110deg,#103049f7,#143e58dc)!important;backdrop-filter:blur(5px)}

body figure.jk-provoz{width:min(100%,1720px);height:clamp(265px,32vw,500px);position:relative;overflow:hidden;background:transparent;}
body figure.jk-provoz img{position:absolute;top:0;height:100%;object-fit:cover;}
body figure.jk-provoz img:first-child{left:0;width:69%;object-position:48% 20%;opacity:.88}
body figure.jk-provoz img:last-child{right:0;width:48%;object-position:50% 69%;mask-image:linear-gradient(90deg,transparent,#000 27%,#000 88%,transparent),linear-gradient(transparent,#000 10%,#000 85%,transparent);mask-composite:intersect}
@media(max-width:620px){body figure.jk-provoz{height:clamp(190px,55vw,320px)}body figure.jk-provoz img:first-child{object-position:47% center}}

body figure.jk-hala{width:min(100%,1680px);height:clamp(240px,33vw,550px);scroll-margin-top:100px}body figure.jk-hala img{object-position:center 48%;opacity:.88}body .management .kicker.light{color:#23526d!important}

/* Přesah fotografií pod sousední obsah, nezávislý na masce okrajů. */
body figure.site-photo[class] {
 --presah:clamp(20px,3.3vw,58px); position:relative; z-index:1;
 width:100%; max-width:none; box-sizing:border-box; height:clamp(245px,35vw,550px);
 margin:calc(-1 * var(--presah)) auto; overflow:visible; pointer-events:none;
}
body figure.site-photo[class]:not(.jk-equipment):not(.jk-provoz) img {
 width:100%;height:100%;object-fit:cover;object-position:center;opacity:.92;
 mask-image:linear-gradient(to bottom,transparent,#000 13%,#000 87%,transparent);
}
body :has(+figure.site-photo):not(script),body figure.site-photo + * {position:relative;z-index:2;}
body section:has(+figure.site-photo) {padding-bottom:clamp(36px,5vw,78px);}
body figure.site-photo + section {padding-top:clamp(36px,5vw,78px);}
body figure.site-photo.jk-equipment {height:clamp(240px,30vw,420px);padding-block:var(--presah);}
body figure.site-photo.jk-desk img {object-position:center 22%;}
body figure.site-photo + :is(h2,.photo-credit) {background:#e5eff4;color:#14374d;padding:10px 16px;width:fit-content;border-radius:8px;}
body figure.site-photo + .tools-checker,body .tools-grid .tools-card{box-shadow:0 7px 28px #0c2c462b;}
@media(max-width:640px){body figure.site-photo[class]{--presah:18px;height:clamp(210px,63vw,330px)}}
/* The content sits on inset panels; the photograph physically continues behind them. */
body figure.site-photo[class] {
  --presah: clamp(34px, 5vw, 84px);
  margin-block: calc(0px - var(--presah)) !important;
  scroll-margin-top: 130px;
}
body figure.site-photo[class]:not(.jk-equipment):not(.jk-provoz) img {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
body section:has(+ figure.site-photo), body figure.site-photo + section {
  box-sizing: border-box;
  max-width: calc(100% - clamp(22px, 6vw, 110px));
  margin-inline: auto;
  border-radius: clamp(16px, 2vw, 32px);
  overflow: clip;
  box-shadow: 0 10px 24px #102f4630;
}
body section:has(+ figure.site-photo) { padding-bottom: clamp(20px, 3vw, 44px); }
body figure.site-photo + section { padding-top: clamp(20px, 3vw, 44px); }
body section.section:has(+ .jk-desk), body .jk-desk + section#dokumentace {
  background: #e4eff5f5 !important;
}
body :is(p, .tools-intro):has(+ figure.site-photo) {
  padding: 14px 20px;
  margin-bottom: 0;
  background: #143b55;
  color: white !important;
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
body figure.site-photo + :is(.tools-grid,.tools-checker) {margin-top:0;}
body figure.site-photo.jk-equipment {
  padding-block: 0;
  align-items: end;
  margin-top: 0 !important;
}
body .ref-grid:has(~ figure.site-photo) {position:relative;z-index:2;}
body .site-photo + .photo-credit {margin-top:0;}
body section:has(+ figure.site-photo[class]) {position:relative;z-index:3;}
body section.section:has(+ figure.jk-desk) {
  background:transparent !important;
  box-shadow:none;
  overflow:visible;
  padding-bottom:0;
}
body section.section:has(+ figure.jk-desk) .card {
  position:relative;
  background:#f1f8fc !important;
  box-shadow:0 7px 20px #102f461c;
}
body .ea-heading.photo-head:has(+ figure.site-photo) {
  max-width:100%; border-radius:0; overflow:visible; box-shadow:none;
  background:transparent !important;
  isolation:isolate;
}
body .ea-heading.photo-head:has(+ figure.site-photo)::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(96deg,#082c47f5,#103b58de 42%,#16445c45 78%),var(--scene) center/cover;
  mask-image:linear-gradient(black 65%,transparent);
}
body .ea-heading + figure.site-photo[class] {margin-top:clamp(-180px,-12vw,-80px) !important;}
body figure.site-photo + .ea-section {background:transparent!important;box-shadow:none;overflow:visible;padding-top:0;}
body figure.site-photo.jk-desk[class]{padding-top:calc(var(--presah) + 10px);height:clamp(295px,43vw,660px);background:linear-gradient(to bottom,#c5c9ce,#e3eef5)} body figure.site-photo.jk-desk[class]:not(.jk-provoz):not(.jk-equipment) img{object-position:center top}
body section.ea-heading.ea-compact.photo-head {
  background:linear-gradient(90deg,#09283dd9,transparent 72%),url(aplikace-tablet.webp) right center/cover no-repeat !important;
  padding:clamp(16px,2vw,32px) 0 clamp(48px,5vw,72px); min-height:0;
}
body section.ea-heading.ea-compact > .wrap {padding:clamp(14px,2vw,28px);backdrop-filter:none;background:#12374eef;}
body .ea-compact h1 {font-size:clamp(32px,4vw,60px);margin-block:8px;}
body .ea-compact p {margin-block:8px;}
body .ea-compact + .ea-section {position:relative;margin-top:-32px;padding-top:0;background:transparent!important;}
body .ea-card {display:flex;flex-direction:column;}
body .ea-card .ea-detail {display:block;width:100%;height:clamp(115px,13vw,200px);object-fit:cover;margin-top:auto;}
body .ea-section .ea-interest {background:#10364f!important;color:white!important;padding:clamp(18px,3vw,40px);border-radius:20px;}
body .ea-section .ea-interest :is(p,h2){color:white!important;}
body .ea-section .ea-interest p.kicker{color:#9cf1ed!important;}
body .ea-section .ea-interest a.btn {background:#075775!important;color:white!important;border:1px solid #83dce4;}
body .ea-section .ea-card-body { flex:1 0 auto; } body .ea-section .ea-card > img.ea-detail { margin-top:0; }
body .tools-hero.photo-head.tools-technik {
 background:#15344c var(--scene) right top/cover no-repeat!important;
 padding-block:clamp(16px,2vw,34px);
}
body .tools-hero.tools-technik > .wrap {
 max-width:min(41%,640px); padding:clamp(16px,2vw,30px);
 margin-left:clamp(16px,4vw,80px); background:#143a52ed;
}
@media(max-width:760px){
 body .tools-hero.photo-head.tools-technik {
   padding:0 0 clamp(185px,47vw,330px);
   background-size:auto clamp(205px,51vw,350px)!important;
   background-position:right bottom!important;
 }
 body .tools-hero.tools-technik > .wrap {max-width:100%;width:100%;margin:0;background:#143a52;}
}
/* Fade the appliance photo before the evidence heading. */
body figure.site-photo:has(img[src="scena-kontrola-spotrebice.webp"]) img {
 mask-image:linear-gradient(to right,transparent,black 5%,black 95%,transparent),linear-gradient(to bottom,transparent,black 8%,black 68%,transparent 96%);
 mask-composite:intersect;
}
body figure.site-photo + section.evidence {
 background:#e3eef5!important;
 position:relative;z-index:3;
}
body figure.site-photo:has(img[src="scena-kontrola-spotrebice.webp"]){width:calc(100vw - 24px);left:50%;transform:translateX(-50%);height:clamp(250px,39vw,580px);}
body figure.site-photo:has(img[src="scena-revize-rozvadece.webp"]) {width:calc(100vw - 24px);left:50%;transform:translateX(-50%);height:clamp(280px,40vw,620px);}
body figure.site-photo:has(img[src="scena-revize-rozvadece.webp"]) img {
 mask-image:linear-gradient(to right,transparent,black 5%,black 95%,transparent),linear-gradient(to bottom,transparent,black 22%,black 72%,transparent);
 mask-composite:intersect;
}
body section:has(+ figure.site-photo img[src="scena-revize-rozvadece.webp"]),
body figure.site-photo:has(img[src="scena-revize-rozvadece.webp"]) + section {
 background:#e3eef5f5!important;border:1px solid #c3dce8;
}
body figure.site-photo[class] img:is([src="scena-kontrola-spotrebice.webp"],[src="scena-revize-rozvadece.webp"],[src="jk-svod.webp"]) {
 mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent),linear-gradient(to bottom,transparent,black 22%,black 70%,transparent 98%)!important;
 mask-composite:intersect!important;
}
body figure.site-photo:has(img[src="jk-svod.webp"])+section.standards {background:#e3eef5!important;position:relative;z-index:3;border:1px solid #c3dce8;}
