/* ============================================================
   JETPARTNER — návrh D
   Materiály oboru: grafit, hliník rámů, sklo článků, technický papír.
   1 tokeny · 2 základ · 3 hlavička · 4 hero · 5 čísla · 6 technika
   7 řešení (taby) · 8 Energostat · 9 HELIOS · 11 realizace
   12 kontakt + patička · 13 responzivita · 14 reduced motion
   ============================================================ */

/* ---------- 1) TOKENY ---------- */
:root {
  --paper:    #E2E6E9;   /* technický papír, studená šedá */
  --paper-2:  #ECEFF1;
  --ink:      #1B2127;   /* grafit */
  --ink-2:    #505A63;
  --graphite: #1B2127;
  --graphite-2:#232B32;
  --cell:     #0F1923;   /* sklo článku za soumraku = hlavní tmavá plocha webu (hero, taby, Energostat, banner Technika) */
  --surface-d:#141D26;   /* tmavá plocha „aplikace“ (maketa Energostatu) */
  --alu:      #BEC6CC;   /* hliník rámu */
  --alu-2:    #7D8993;
  --orange:   #F0581C;   /* barva loga */
  --orange-2: #FF7A3D;

  --line-l: rgba(27,33,39,.16);
  --line-d: rgba(190,198,204,.16);

  --f-disp: 'Saira', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1440px;
  --pad: 40px;
  --rail: 220px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2) ZÁKLAD ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Kolejnice vlevo (název sekce) + obsah — jako rozpiska na výkresu */
.rail-grid { display: grid; grid-template-columns: var(--rail) minmax(0,1fr); }
.rail {
  font-size: 13px; line-height: 1.4; color: var(--ink-2);
  padding: 22px 24px 0 0;
}
.rail span { display: block; color: var(--alu-2); }

/* světlé sekce: svislá vlasová linka na hraně kolejnice přes celou výšku */
.sec-paper { position: relative; background: var(--paper); }
.sec-paper::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-l);
  left: calc(max(0px, (100% - var(--maxw)) / 2) + var(--pad) + var(--rail) - 1px);
  pointer-events: none;
}
.sec-paper + .sec-paper { border-top: 1px solid var(--line-l); }
.sec-paper .rail-grid > :last-child { padding-left: 40px; }

.h2 {
  font-family: var(--f-disp); font-weight: 300; font-stretch: 100%;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.015em;
  max-width: 17ch; padding-top: 12px;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin-top: 22px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 0;
  font-weight: 500; font-size: 14.5px; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-orange { background: var(--orange); color: #fff; }
.pill-orange:hover { background: var(--orange-2); }
.pill-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.pill-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.pill-lg { height: 56px; padding: 0 32px; font-size: 16px; }

.textlink { display: inline-block; margin-top: 12px; font-weight: 500; font-size: 14.5px; border-bottom: 1px solid var(--orange); padding-bottom: 2px; }
.textlink:hover { color: var(--orange); }

/* ---------- 3) HLAVIČKA — plná lišta ve stylu DroneShield ---------- */
:root { --hdr-h: 76px; --bar: #111A22; --bar-2: #16212B; --bar-line: rgba(190,198,204,.22); --nav-c: rgba(226,232,237,.72); }
html { scroll-padding-top: var(--hdr-h); }
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; }
.hdr-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  height: var(--hdr-h); padding: 0 var(--pad);
  background: var(--bar); border-bottom: 1px solid var(--bar-line);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-disp); font-weight: 600; font-size: 19px; letter-spacing: .07em; flex: none; }
.logo-mark { width: 26px; height: 26px; color: var(--orange); }

.hdr-nav { margin-left: clamp(40px, 5vw, 76px); align-self: stretch; }
.hdr-list { display: flex; align-items: stretch; height: 100%; gap: clamp(4px, .9vw, 14px); }
.hdr-list > li { display: flex; align-items: center; position: relative; }
.hdr-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 clamp(10px, 1.2vw, 18px);
  font-family: var(--f-disp); font-weight: 400; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--nav-c); white-space: nowrap;
  transition: color .18s, background-color .18s;
}
.hdr-link:hover, .hdr-link:focus-visible, .hdr-trigger[aria-expanded="true"] { color: #fff; }
.hdr-trigger[aria-expanded="true"] { background: var(--bar-2); }
.hdr-link:focus-visible { outline-offset: -2px; }
.chev { width: 9px; height: 6px; transition: transform .25s var(--ease); }
.hdr-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* aktivní sekce: tenká oranžová linka na spodní hraně lišty */
.hdr-link.is-active { color: #fff; }
.hdr-link.is-active::after {
  content: ""; position: absolute; left: clamp(10px, 1.2vw, 18px); right: clamp(10px, 1.2vw, 18px);
  bottom: calc((40px - var(--hdr-h)) / 2); height: 2px; background: var(--orange);
}

.hdr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
/* přepínač jazyka CZ | EN: nenápadný, ve stylu položek menu; aktivní jazyk bílý s oranžovou linkou */
.lang { display: flex; align-items: center; align-self: stretch; margin-right: clamp(4px, .8vw, 12px); font-family: var(--f-disp); font-weight: 400; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--nav-c); }
.lang a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 9px; color: var(--nav-c); transition: color .18s; }
.lang a:hover, .lang a:focus-visible { color: #fff; }
.lang a:focus-visible { outline-offset: -2px; }
.lang a[aria-current] { color: #fff; }
.lang a[aria-current]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: calc((40px - var(--hdr-h)) / 2); height: 2px; background: var(--orange); }
.lang-sep { opacity: .45; }
.lang-m { align-self: flex-start; margin: 0 0 6px -9px; font-size: 15px; letter-spacing: .1em; }
.lang-m a { height: 48px; }
.lang-m a[aria-current]::after { bottom: 8px; }
.pill-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 0; border: 1.5px solid;
  font-family: var(--f-disp); font-weight: 600; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill-line-orange { border-color: var(--orange); color: var(--orange-2); }
.pill-line-orange:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.pill-line-grey { border-color: rgba(190,198,204,.34); color: #fff; }
.pill-line-grey:hover { border-color: #fff; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21.25px; } .burger span:nth-child(3) { top: 27.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21.25px; transform: rotate(-45deg); }

/* mega-menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--bar); border-bottom: 1px solid var(--bar-line);
  box-shadow: 0 40px 80px -20px rgba(5,10,15,.7);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.mega[hidden] { display: none; }
.mega.is-open { opacity: 1; transform: none; }
.mega-in {
  max-width: var(--maxw); margin: 0 auto; padding: 32px var(--pad) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); gap: 32px;
}
.mega-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mega-tile { display: block; color: var(--nav-c); transition: color .18s; }
.mega-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bar-2); border: 1px solid var(--bar-line); }
.mega-img img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease); }
.mega-t { display: block; margin-top: 14px; font-family: var(--f-disp); font-weight: 500; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.mega-d { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
/* technický výkres Energostatu: celý, ne ořez */
/* render má černé pozadí → screen ho propustí do tmavé šedomodré dlaždice */
.mega-img img.is-draw, .mnav-tiles img.is-draw { object-fit: contain; background: var(--bar-2); mix-blend-mode: screen; }
.mega-tile:hover .mega-img img, .mega-tile:focus-visible .mega-img img { opacity: 1; transform: scale(1.035); }
.mega-tile:hover .mega-t, .mega-tile:focus-visible .mega-t { color: var(--orange-2); }
.mega-tile:focus-visible { outline-offset: 4px; }

.mega-feature { position: relative; display: block; overflow: hidden; border: 1px solid var(--bar-line); min-height: 100%; }
.mega-feature-img { position: absolute; inset: 0; }
.mega-feature-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,26,34,.92) 0%, rgba(17,26,34,.35) 55%, rgba(17,26,34,.1) 100%); }
.mega-feature-copy { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mega-feature-t { font-family: var(--f-disp); font-weight: 300; font-size: 24px; line-height: 1.15; color: #fff; max-width: 16ch; }
.mega-feature .pill-line { height: 44px; padding: 0 22px; background: rgba(17,26,34,.5); }
.mega-feature:hover .pill-line { background: var(--orange); color: #fff; }

/* mobilní menu */
.mnav {
  position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 45; background: var(--bar); color: #fff;
  overflow: hidden;
}
.mnav[hidden] { display: none; }
.mnav-panel {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; padding: 8px 20px 28px;
  transition: transform .34s var(--ease), opacity .34s;
}
.mnav-sub { background: var(--bar); transform: translateX(100%); }
.mnav-sub[hidden] { display: none; }
.mnav.is-sub .mnav-sub { transform: none; }
.mnav.is-sub .mnav-main { transform: translateX(-24%); opacity: 0; }
.mnav-list li { border-bottom: 1px solid var(--bar-line); }
.mnav-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; text-align: left;
  font-family: var(--f-disp); font-weight: 400; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: rgba(226,232,237,.88);
}
.chev-r, .chev-l { width: 7px; height: 12px; }
.mnav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; }
.mnav-actions .pill-line { width: 100%; }
.mnav-back {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; min-height: 52px;
  font-family: var(--f-disp); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--nav-c);
}
.mnav-sub-h { font-family: var(--f-disp); font-weight: 300; font-size: 30px; line-height: 1.1; margin: 4px 0 18px; }
.mnav-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mnav-tiles a { display: block; }
.mnav-tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--bar-line); }
.mnav-tiles span { display: block; margin-top: 8px; font-family: var(--f-disp); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; }

/* ---------- 4) HERO ---------- */
.hero { background: var(--cell); color: #fff; }
.hero-track { height: 100vh; height: 100svh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg { display: none; }
.hero-frame { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-tick { display: none; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,25,35,.55) 0%, rgba(15,25,35,0) 22%),
    linear-gradient(90deg, rgba(15,25,35,.62) 0%, rgba(15,25,35,.3) 42%, rgba(15,25,35,0) 66%),
    linear-gradient(0deg, rgba(15,25,35,.86) 0%, rgba(15,25,35,.35) 46%, rgba(15,25,35,0) 64%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) 72px;
}
.hero-title {
  font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(46px, 6.3vw, 100px); line-height: .98; letter-spacing: -.025em;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-title .ln:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero-title .ln > span { transform: none; }
.hero-sub { max-width: 46ch; margin-top: 26px; font-size: 17px; color: rgba(255,255,255,.8);
  opacity: 0; transition: opacity 1s .5s; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; opacity: 0; transition: opacity 1s .65s; }
.is-loaded .hero-sub, .is-loaded .hero-actions { opacity: 1; }

.hero-day {
  position: absolute; right: var(--pad); bottom: 80px; width: 250px;
  padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22);
}
.hero-day li { padding: 8px 0; color: rgba(255,255,255,.42); transition: color .4s; }
.hero-day li b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.hero-day li span { font-size: 13.5px; }
.hero-day li.is-on { color: #fff; }
.hero-day-bar { position: absolute; left: -1px; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--orange); }

/* Režim „portrét“ (video na výšku) na desktopu: rozmazané pozadí + ostré video v rámu vpravo */
@media (min-width: 901px) {
  .hero.is-portrait {
    --fh: calc(100svh - var(--hdr-h) - 56px);   /* výška rámu */
    --fw: calc(var(--fh) * var(--ar, .6667));    /* šířka rámu podle poměru videa */
    --fr: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  }
  .hero.is-portrait .hero-bg {
    display: block; position: absolute; left: -4%; top: 50%; width: 108%; height: auto;
    transform: translateY(-50%);
    filter: blur(30px) brightness(.66) saturate(1.2);
  }
  .hero.is-portrait .hero-frame {
    inset: auto; top: calc(var(--hdr-h) + 28px); right: var(--fr);
    height: var(--fh); width: var(--fw);
    outline: 1px solid rgba(190,198,204,.28); outline-offset: 8px;
    box-shadow: 0 30px 90px rgba(5,10,15,.55);
  }
  .hero.is-portrait .hero-video { object-position: center; }
  /* rohové značky rámu — jako ořezové značky na výkresu */
  .hero.is-portrait .hero-tick { display: block; position: absolute; width: 14px; height: 14px; border: 0 solid var(--orange); }
  .hero.is-portrait .t1 { left: -9px; top: -9px; border-width: 1.5px 0 0 1.5px; }
  .hero.is-portrait .t2 { right: -9px; top: -9px; border-width: 1.5px 1.5px 0 0; }
  .hero.is-portrait .t3 { left: -9px; bottom: -9px; border-width: 0 0 1.5px 1.5px; }
  .hero.is-portrait .t4 { right: -9px; bottom: -9px; border-width: 0 1.5px 1.5px 0; }
  .hero.is-portrait .hero-shade {
    background:
      linear-gradient(90deg, rgba(15,25,35,.6) 0%, rgba(15,25,35,.2) 55%, rgba(15,25,35,0) 75%),
      linear-gradient(0deg, rgba(15,25,35,.7) 0%, rgba(15,25,35,0) 45%);
  }
  .hero.is-portrait .hero-copy {
    left: 0; right: auto; margin: 0; max-width: none;
    width: calc(100vw - var(--fr) - var(--fw) - 56px);
    padding-left: var(--fr); padding-bottom: 64px;
  }
  .hero.is-portrait .hero-title { font-size: clamp(44px, 5.2vw, 84px); }
  .hero.is-portrait .hero-day {
    right: calc(var(--fr) + var(--fw) + 56px); bottom: auto; top: calc(var(--hdr-h) + 28px); width: 300px;
  }
}

/* ---------- 5) ČÍSLA ---------- */
.stats { padding: 0 0 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row li { padding: 22px 24px 56px 0; border-right: 1px solid var(--line-l); padding-left: 24px; }
.stats-row li:first-child { padding-left: 0; }
.stats-row li:last-child { border-right: 0; }
.stats-row strong {
  display: block; font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin: 34px 0 12px;
}
.stats-row span { font-size: 14.5px; color: var(--ink-2); }
/* zástupná hodnota — záměrně vypadá jako „nevyplněné pole“ */
.count.is-ph { color: transparent; -webkit-text-stroke: 1px var(--ink-2); position: relative; }
.count.is-ph::after {
  content: "doplnit"; position: absolute; top: -16px; left: 0;
  -webkit-text-stroke: 0; color: var(--orange); font-family: var(--f-text); font-size: 12px; letter-spacing: 0; font-weight: 500;
}
html[lang="en"] .count.is-ph::after { content: "to fill in"; }

/* ---------- 6) TECHNIKA ---------- */
.tech { padding: 0 0 120px; }
.tech .rail-grid { padding-top: 96px; }
.tech .rail { padding-top: 22px; }
.objects {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line-l);
}
.obj { padding: 0 24px 0; border-right: 1px solid var(--line-l); position: relative; }
.obj:first-child { padding-left: 0; }
.obj:last-child { border-right: 0; padding-right: 0; }
.obj-stage {
  position: relative; height: clamp(260px, 26vw, 380px); margin: 0 0 28px;
  display: grid; place-items: center; color: var(--alu-2);
  background:
    radial-gradient(60% 45% at 50% 58%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
}
/* kóta pod objektem: linka se značkou, jako odkaz na položku výkresu */
.obj-stage::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 28px; background: var(--line-l);
}
.obj-stage img { width: 78%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.obj-stage .obj-draw { position: absolute; inset: 8% 14%; width: 72%; height: 84%; display: none; }
.obj.no-img .obj-stage img { display: none; }
.obj.no-img .obj-draw { display: block; }
.obj-draw .led { fill: var(--orange); }
.obj h3 { font-family: var(--f-disp); font-weight: 500; font-size: 19px; line-height: 1.25; padding-top: 18px; }
.obj p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; max-width: 30ch; }

/* interakce karet: objekt se po najetí zvedne a natáčí za kurzorem (--rx/--ry z JS),
   stín pod ním se rozplyne, kóta a linka pod názvem zoranžoví */
.obj { transition: background-color .45s var(--ease); }
.obj-stage { perspective: 900px; }
.obj-stage img, .obj-stage .obj-draw {
  position: relative; z-index: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--sc, 1));
  transition: transform .7s var(--ease);
}
.obj-stage .obj-draw { position: absolute; }
.obj-stage::before {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 18px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(27,33,39,.28), rgba(27,33,39,0) 70%);
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.obj-stage::after { transition: background-color .45s; }
.obj h3 { position: relative; }
.obj h3::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--orange);
  transition: width .5s var(--ease);
}
.obj.is-hot { background-color: rgba(255,255,255,.38); }
.obj.is-hot .obj-stage { --lift: -14px; --sc: 1.05; }
.obj.is-hot .obj-stage img, .obj.is-hot .obj-stage .obj-draw { transition-duration: .18s; }
.obj.is-hot .obj-stage::before { transform: scale(1.35); opacity: .55; }
.obj.is-hot .obj-stage::after { background-color: var(--orange); }
.obj.is-hot h3::after { width: 56px; }
/* vykreslený panel: v klidu natočený do prostoru, lesk skla se posouvá za kurzorem (--mx) */
.obj-stage:has(.obj-pv) { --ry: -18deg; --rx: 5deg; }
.obj-stage .obj-pv { inset: 2% 6%; width: 88%; height: 96%; }
/* SEPLOS je teď vyříznutý (bez bílých okrajů) → menší, aby seděl s ostatními objekty */
.obj-seplos .obj-stage img { height: 66%; }
/* vykreslená baterie: v klidu natočená opačně než panel, lesk se posouvá za kurzorem */
.obj-stage:has(.obj-batt) { --ry: 20deg; --rx: 5deg; }
.obj-stage .obj-batt { inset: 4% 10%; width: 80%; height: 92%; filter: drop-shadow(0 18px 20px rgba(15,25,35,.2)); }
.obj-batt .pv-sheen { transform: translateX(calc(var(--mx, 0) * -60px)); transition: transform .25s var(--ease); }
/* Energostat: dočasně aplikace v šikmém pohledu místo fotky krabičky */
.obj-stage-ui { --ry: -24deg; --rx: 8deg; }
.obj-ui {
  position: relative; z-index: 1; width: 86%; padding: 10px; font-size: 10px; color: #E8ECEF;
  background: var(--surface-d); border: 1px solid rgba(190,198,204,.28);
  box-shadow: 0 28px 40px -18px rgba(15,25,35,.55), 0 0 0 1px rgba(15,25,35,.35);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)) scale(var(--sc, 1));
  transition: transform .7s var(--ease);
}
.obj.is-hot .obj-ui { transition-duration: .18s; }
.oui-top { display: flex; align-items: baseline; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(190,198,204,.18); }
.oui-top b { font-family: var(--f-disp); font-weight: 500; font-size: 12px; }
.oui-top span { color: var(--alu-2); }
.oui-modes { display: flex; gap: 3px; margin: 8px 0; }
.oui-modes span { padding: 2px 6px; border: 1px solid rgba(190,198,204,.22); color: var(--alu-2); }
.oui-modes .on { background: var(--orange); border-color: var(--orange); color: #fff; }
.oui-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(190,198,204,.18); border: 1px solid rgba(190,198,204,.18); }
.oui-tiles div { background: var(--surface-d); padding: 5px 6px 6px; }
.oui-tiles small { display: block; color: var(--alu-2); font-size: 8.5px; }
.oui-tiles b { display: block; font-family: var(--f-disp); font-weight: 400; font-size: 12.5px; margin-top: 1px; white-space: nowrap; }
.oui-loads { margin: 8px 0 0; display: grid; gap: 5px; }
.oui-loads li { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; color: var(--alu); }
.oui-loads i { height: 4px; background: linear-gradient(90deg, var(--orange) calc(var(--v) * 100%), rgba(190,198,204,.2) 0); }
.oui-next { margin-top: 8px; padding: 5px 7px; border-left: 2px solid var(--orange); background: rgba(240,88,28,.08); }
.oui-next small { display: block; color: var(--alu-2); font-size: 8.5px; }
/* svislá linka kolejnice nemá protínat karty produktů */
.tech .objects { position: relative; z-index: 1; background: var(--paper); }
.obj-pv { filter: drop-shadow(0 18px 22px rgba(15,25,35,.22)); }
.obj-pv .pv-sheen { transform: translateX(calc(var(--mx, 0) * -70px)); transition: transform .25s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .obj-stage img, .obj-stage .obj-draw, .obj-ui { transform: none !important; }
}

/* ---------- 7) ŘEŠENÍ (TABY) ---------- */
.solutions { padding: 0 0 120px; }
.solutions .rail-grid { padding-top: 96px; padding-bottom: 56px; }
.tabs { position: relative; background: var(--cell); color: #fff; overflow: hidden; }
.tab-media { position: relative; height: min(76vh, 760px); min-height: 520px; }
.tab-poster, .tab-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.tab-poster.is-on { opacity: 1; }
/* Energostat: render s černým pozadím → screen, aby pod ním zůstala šedomodrá plocha */
.tab-media > img.tab-poster:nth-of-type(4) { mix-blend-mode: screen; }
.tab-video.is-on.is-playing { opacity: 1; }
.tab-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,25,35,.86) 0%, rgba(15,25,35,.5) 38%, rgba(15,25,35,0) 66%); }
.tab-panels { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; width: min(520px, 100%); padding: 56px; display: flex; }
.tab-panel { align-self: flex-end; animation: tabIn .6s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }
.tab-panel h3 { font-family: var(--f-disp); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.015em; }
.tab-panel p { margin: 18px 0 28px; color: rgba(255,255,255,.8); max-width: 38ch; }
.tab-panel .pill + .pill { margin-left: 8px; }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-2); color: var(--ink); }
.tab-list button {
  position: relative; height: 64px; padding: 0 24px; text-align: left;
  font-family: var(--f-disp); font-weight: 500; font-size: 15.5px; letter-spacing: .01em;
  border-right: 1px solid var(--line-l); color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.tab-list button:last-child { border-right: 0; }
.tab-list button:hover { color: var(--ink); background: #fff; }
.tab-list button[aria-selected="true"] { background: var(--graphite); color: #fff; }
.tab-list button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orange); }

/* ---------- 8) ENERGOSTAT ---------- */
.es { position: relative; background: var(--cell); color: #E8ECEF; overflow: clip; }
.es .rail { color: var(--alu); padding-top: 26px; }
.es .rail-grid > :last-child { padding-left: 40px; }
/* celá sekce = jedno jeviště pod lištou: nadpis → schéma + kroky + aplikace → „Co řídí“ */
.es-head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; padding-top: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.es-kicker { color: var(--alu); font-size: 13px; margin-bottom: 10px; }
.es-head .lead { font-size: 15px; line-height: 1.55; margin: 0; }
.es-h {
  font-family: var(--f-disp); font-weight: 300; font-stretch: 118%;
  font-size: clamp(30px, 3.2vw, 52px); line-height: 1.02; letter-spacing: -.02em;
}
.es .lead { color: rgba(232,236,239,.72); }

.es-track { height: 300vh; position: relative; }
/* jeviště začíná pod lištou (neprůhledná hlavička ho nezakryje) a obsah drží nahoře, bez prázdného pruhu pod úvodem */
.es-stage { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); display: flex; flex-direction: column; overflow: hidden; }
.es-bg {
  position: absolute; inset: 0;
  background: url("media/energostat/render-axonometrie-jv.png") center 40% / cover no-repeat;
  opacity: .16; mix-blend-mode: screen;
  mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
}
.es-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 18px; padding-bottom: 18px; }

.es-schema { position: relative; height: 100%; min-height: 0; }
.es-schema svg { display: block; width: 100%; height: 100%; overflow: visible; }
.es-schema .dot { fill: rgba(190,198,204,.35); }
.es-schema text { fill: var(--alu); font-family: var(--f-text); font-size: 13px; }
.es-schema .t-strong { fill: #fff; font-family: var(--f-disp); font-weight: 500; font-size: 16px; }
.es-schema .t-small { font-size: 11.5px; fill: var(--alu-2); }
.es-schema .t-es { fill: var(--orange-2); font-size: 14px; }
.wires path { fill: none; stroke: rgba(190,198,204,.28); stroke-width: 1.2; }
.flows .fl { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 13; opacity: 0; transition: opacity .6s; }
.flows .fl.is-on { opacity: 1; }
.node .box { fill: rgba(15,25,35,.85); stroke: rgba(190,198,204,.5); stroke-width: 1.2; }
.node .thin { fill: none; stroke: rgba(190,198,204,.35); }
.sun circle { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.sun .halo { stroke-dasharray: 2 6; opacity: .6; }
.cell { fill: none; stroke: rgba(190,198,204,.45); }
.fill { fill: var(--orange); opacity: .85; }
.bat .reserve { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .35; transition: opacity .4s; }
.bat .reserve-t { opacity: .5; transition: opacity .4s, fill .4s; }
.es[data-step="1"] .bat .reserve, .es[data-step="1"] .bat .reserve-t { opacity: 1; }
.es[data-step="1"] .bat .reserve-t { fill: #fff; }
.es-box .box { stroke: var(--orange); stroke-width: 1.5; fill: rgba(240,88,28,.08); }
.led { fill: var(--orange); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.load .box { stroke: #fff; }

.es-side { display: flex; flex-direction: column; gap: 28px; }
.es-steps { position: relative; min-height: 172px; border-top: 1px solid var(--line-d); }
.es-steps li { position: absolute; inset: 0; padding-top: 22px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.es-steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.es-steps h3 { font-family: var(--f-disp); font-weight: 400; font-size: 26px; line-height: 1.15; }
.es-steps p { margin-top: 10px; color: rgba(232,236,239,.72); font-size: 15.5px; max-width: 44ch; }
.es-steps::before { /* průběh kroků */
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--orange);
}

/* maketa aplikace */
.app {
  position: relative; border: 1px solid rgba(190,198,204,.22); border-radius: 0;
  background: rgba(20,29,38,.92); padding: 16px; font-size: 13px;
  box-shadow: 0 40px 80px -30px rgba(5,10,15,.6);
}
.app-top { display: flex; align-items: baseline; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-d); }
.app-name { font-family: var(--f-disp); font-weight: 500; font-size: 15px; color: #fff; }
.app-tabs { display: flex; gap: 12px; color: var(--alu-2); font-size: 12px; overflow: hidden; white-space: nowrap; }
.app-tabs b { color: #fff; font-weight: 500; }
.app-modes { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; }
.app-modes span { padding: 4px 9px; border: 1px solid var(--line-d); border-radius: 0; color: var(--alu-2); font-size: 12px; transition: all .3s; }
.app-modes span.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.app-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 0; overflow: hidden; }
.app-tiles div { background: rgba(20,29,38,1); padding: 10px 10px 12px; }
.app-tiles small { display: block; color: var(--alu-2); font-size: 11.5px; }
.app-tiles b { display: block; margin-top: 4px; font-family: var(--f-disp); font-weight: 400; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-next { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--orange); background: rgba(240,88,28,.06); }
.app-next small { color: var(--alu-2); font-size: 11.5px; }
.app-next p { color: #fff; margin-top: 2px; }
.app-note { position: absolute; right: 14px; top: 16px; font-size: 11px; color: var(--alu-2); }

.es-foot { position: relative; z-index: 2; display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line-d); padding-top: 14px; padding-bottom: 20px; }
.es-foot p { color: rgba(232,236,239,.82); }
.es-foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.es-foot .pill-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.es-foot p span { color: var(--alu); margin-right: 18px; }

/* ---------- 9) HELIOS ---------- */
.helios { padding: 0 0 120px; }
.helios .rail-grid { padding-top: 96px; padding-bottom: 56px; }
.helios-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: end; }
.helios-head .lead { margin: 0; }
.helios-shot { position: relative; }
.helios-frame { background: var(--cell); padding: 10px; overflow: hidden; }
.helios-frame img { width: 100%; height: auto; }
.helios-shot figcaption { position: absolute; right: 20px; bottom: -32px; font-size: 13px; color: var(--ink-2); }

/* ---------- 11) REALIZACE ---------- */
.work { padding: 0 0 120px; }
.work .rail-grid:first-child { padding-top: 96px; }
.work-body { padding-top: 40px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-l); }
.specs div { padding: 18px 20px 0 0; }
.specs dt { font-size: 13.5px; color: var(--ink-2); }
.specs dd { font-family: var(--f-disp); font-weight: 400; font-size: clamp(20px, 2vw, 30px); line-height: 1.15; margin-top: 6px; }
.work-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 62%); gap: 16px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.work-strip figure { scroll-snap-align: start; }
.work-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.work-strip figure:nth-child(2) img { object-position: 40% 50%; }
.work-strip figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }

/* ---------- 12) KONTAKT + PATIČKA ---------- */
.contact { background: var(--graphite); color: #fff; padding: 130px 0 140px; }
.contact .rail { color: var(--alu); padding-top: 18px; }
.contact .rail-grid > :last-child { padding-left: 40px; border-left: 1px solid var(--line-d); }
.contact-h { font-family: var(--f-disp); font-weight: 300; font-size: clamp(42px, 6.4vw, 104px); line-height: .98; letter-spacing: -.025em; max-width: 13ch; }
.contact .lead { color: rgba(255,255,255,.72); }
.contact-row { display: flex; align-items: center; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-disp); font-size: 20px; }
.contact-lines a:hover { color: var(--orange-2); }
.todo { color: var(--alu-2); }

.foot { background: var(--bar); color: var(--alu); padding: 36px 0; font-size: 14px; border-top: 1px solid var(--line-d); }
.foot-in { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a:hover { color: #fff; }
.foot-c { margin-left: auto; color: var(--alu-2); }
.foot-c a { color: inherit; text-decoration: none; }
.foot-c a:hover { color: #fff; }

/* ---------- 13) RESPONZIVITA ---------- */
/* nižší obrazovky (notebooky): Energostat se musí vejít celý na jednu obrazovku */
@media (min-width: 901px) and (max-height: 860px) {
  .es-head { padding-top: 16px; padding-bottom: 12px; gap: 40px; }
  .es-kicker { display: none; }
  .es-h { font-size: clamp(28px, 2.5vw, 40px); }
  .es-head .lead { font-size: 14px; line-height: 1.5; }
  .es-grid { padding-top: 10px; padding-bottom: 10px; gap: 40px; }
  .es-side { gap: 14px; }
  .es-steps { min-height: 128px; }
  .es-steps li { padding-top: 14px; }
  .es-steps h3 { font-size: 21px; }
  .es-steps p { font-size: 14px; margin-top: 6px; }
  .app { padding: 12px; }
  .app-top { padding-bottom: 8px; }
  .app-modes { margin: 8px 0; }
  .app-tiles div { padding: 7px 9px 8px; }
  .app-tiles b { font-size: 15px; }
  .app-next { margin-top: 8px; padding: 7px 10px; }
  .es-foot { padding-top: 10px; padding-bottom: 12px; }
  .es-foot .pill { height: 40px; }
}

@media (max-width: 1180px) {
  :root { --rail: 170px; --pad: 32px; }
  .hdr-opt { display: none; }
  .objects { grid-template-columns: repeat(2, 1fr); }
  .obj { padding: 0 24px 48px; }
  .obj:nth-child(2) { border-right: 0; padding-right: 0; }
  .obj:nth-child(3) { padding-left: 0; }
  .obj:nth-child(3), .obj:nth-child(4) { border-top: 1px solid var(--line-l); padding-top: 32px; }
  .es-grid { gap: 32px; }
  .hero-day { display: none; }
}

/* úzký desktop (901–1260 px): lišta s pěti položkami, přepínačem jazyka a CTA se musí vejít → menší mezery v menu */
@media (min-width: 901px) and (max-width: 1260px) {
  .hdr-nav { margin-left: 20px; }
  .hdr-list { gap: 0; }
  .hdr-link { padding: 0 9px; }
  .hdr-link.is-active::after { left: 9px; right: 9px; }
  .hdr-actions .pill-line { padding: 0 14px; }
  .lang { margin-right: 2px; }
  .lang a { padding: 0 6px; }
  .lang a[aria-current]::after { left: 6px; right: 6px; }
}
/* nejužší desktop (901–1040 px): menší písmo položek, loga a CTA */
@media (min-width: 901px) and (max-width: 1040px) {
  .hdr-bar .logo { gap: 9px; font-size: 16.5px; }
  .hdr-bar .logo-mark { width: 21px; height: 21px; }
  .hdr-nav { margin-left: 14px; }
  .hdr-link { padding: 0 7px; font-size: 11.5px; letter-spacing: .06em; }
  .hdr-link.is-active::after { left: 7px; right: 7px; }
  .lang { font-size: 11.5px; letter-spacing: .06em; }
  .lang a { padding: 0 5px; }
  .lang a[aria-current]::after { left: 5px; right: 5px; }
  .hdr-actions { gap: 6px; }
  .hdr-actions .pill-line { height: 42px; padding: 0 12px; font-size: 12px; letter-spacing: .06em; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  :root { --hdr-h: 64px; }
  .hdr-nav, .hdr-actions, .mega { display: none; }
  .burger { display: block; }
  .logo { font-size: 17px; } .logo-mark { width: 22px; height: 22px; }
  .rail-grid { grid-template-columns: 1fr; }
  .sec-paper::before { display: none; }
  .sec-paper .rail-grid > :last-child, .es .rail-grid > :last-child { padding-left: 0; }
  .rail { padding: 0 0 12px; border-bottom: 1px solid var(--line-l); margin-bottom: 8px; }
  .es .rail, .contact .rail { border-color: var(--line-d); }
  .rail-empty { display: none; }
  .h2 { font-size: clamp(32px, 8.4vw, 44px); }
  .lead { font-size: 16px; }

  .hero-track { height: 100svh; }
  .hero-shade { background:
    linear-gradient(180deg, rgba(15,25,35,.5) 0%, rgba(15,25,35,0) 24%),
    linear-gradient(0deg, rgba(15,25,35,.9) 0%, rgba(15,25,35,.35) 45%, rgba(15,25,35,0) 62%); }
  .hero-copy { padding-bottom: 40px; }
  .hero-title { font-size: clamp(42px, 11.4vw, 64px); }
  .hero-sub { font-size: 15.5px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row li { padding: 14px 16px 28px; border-bottom: 1px solid var(--line-l); }
  .stats-row li:nth-child(odd) { padding-left: 0; }
  .stats-row li:nth-child(2) { border-right: 0; }
  .stats-row li:nth-child(n+3) { border-bottom: 0; }
  .stats .rail-grid { padding-top: 40px; }
  .stats-row strong { font-size: 44px; margin: 26px 0 8px; }

  .tech, .solutions, .helios, .work { padding-bottom: 72px; }
  .tech .rail-grid, .solutions .rail-grid, .helios .rail-grid, .work .rail-grid:first-child { padding-top: 64px; }
  .solutions .rail-grid, .helios .rail-grid { padding-bottom: 32px; }
  .objects { margin-top: 40px; }
  .obj { padding: 0 12px 36px; }
  .obj:nth-child(odd) { padding-left: 0; }
  .obj:nth-child(even) { padding-right: 0; }
  .obj h3 { font-size: 16.5px; }
  .obj p { font-size: 13.5px; }
  /* maketa aplikace v úzké kartě: pevná šířka a zmenšení, aby se vešla do jeviště */
  .obj-stage-ui .obj-ui { width: 220px; zoom: .64; }

  .solutions .wrap:last-child { padding: 0; }
  .tab-media { height: 64svh; min-height: 460px; }
  .tab-shade { background: linear-gradient(0deg, rgba(15,25,35,.94) 0%, rgba(15,25,35,.55) 50%, rgba(15,25,35,.1) 80%); }
  .tab-panels { width: 100%; padding: 24px 20px 28px; }
  .tab-panel .pill + .pill { margin: 8px 0 0; }
  .tab-list { grid-template-columns: 1fr 1fr; }
  .tab-list button { height: 52px; padding: 0 16px; font-size: 14.5px; border-bottom: 1px solid var(--line-l); }
  .tab-list button:nth-child(2) { border-right: 0; }

  .es-head { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 88px; }
  .es-h { font-size: clamp(32px, 9vw, 44px); }
  .es-track { height: auto; }
  .es-stage { position: relative; height: auto; display: block; }
  .es-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-top: 16px; }
  .es-schema { height: auto; }
  .es-schema svg { height: auto; }
  .es-schema text { font-size: 24px; }
  .es-schema .t-strong { font-size: 25px; }
  .es-schema .load .t-strong { font-size: 19px; }
  .es-schema .t-es { font-size: 20px; }
  .es-schema .t-small { font-size: 17px; }
  .es-schema .t-sub, .es-schema .reserve-t { display: none; }
  .es-schema .dot { display: none; }
  .es-steps { min-height: 0; }
  .es-steps li { position: static; opacity: 1; transform: none; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
  .es-steps::before { display: none; }
  .es-steps h3 { font-size: 21px; }
  .app-tiles { grid-template-columns: repeat(2, 1fr); }
  .app-note { position: static; margin-top: 10px; }
  .es-foot { padding-top: 22px; padding-bottom: 88px; }
  .es-foot p span { display: block; margin: 0 0 6px; }

  .helios-head { grid-template-columns: 1fr; gap: 0; }
  .helios-head .lead { margin-top: 18px; }
  .helios-frame { padding: 4px; }
  .helios-shot figcaption { position: static; margin-top: 10px; padding: 0 6px 6px; color: var(--alu-2); }

  .specs { grid-template-columns: 1fr 1fr; }
  .specs div { padding-bottom: 14px; }
  .work-strip { grid-auto-columns: 86%; margin-top: 28px; }

  .contact { padding: 88px 0 96px; }
  .contact .rail-grid > :last-child { border-left: 0; padding-left: 0; }
  .contact-row { gap: 24px; }
  .foot-c { margin-left: 0; width: 100%; }
}

/* ---------- 14) REDUCED MOTION: bez scroll-scrubbingu, statické postery ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hero-track { height: auto; }
  .hero-stage { position: relative; height: 100vh; }
  .es-track { height: auto; }
  .es-stage { position: relative; height: auto; padding: 40px 0; }
  .es-grid { grid-template-rows: none; }
  .es-schema { height: auto; }
  .es-schema svg { height: auto; }
  .es-steps { min-height: 0; }
  .es-steps li { position: static; opacity: 1; transform: none; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
  .flows .fl { opacity: 1; }
  .hero-title .ln > span { transform: none; }
  .hero-sub, .hero-actions { opacity: 1; }
  .mega, .mnav-panel { transition: none; }
}

/* ---------- 15) NOVINKY / NEWS ----------
   Přehled (/novinky/), článek (/novinky/<slug>/) a blok na hlavní stránce (#novinky).
   Stránky generuje blog.py z content/novinky/. Karta: linka nahoře s kategorií a datem
   (jako popisové pole výkresu), fotka 3:2, titulek, perex. První článek přehledu je velký. */
.nw-main { padding-top: var(--hdr-h); }
.nw-intro { padding-bottom: 56px; }
.nw-intro .rail-grid { padding-top: 88px; }
.nw-h1 {
  font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 84px); line-height: 1; letter-spacing: -.022em;
  max-width: 15ch; padding-top: 10px;
}
.nw-rss { margin-top: 18px; }
/* filtr: stejná řeč jako taby (grafitová aktivní položka, oranžová linka nahoře) */
.nw-filter { display: flex; margin-top: 44px; border: 1px solid var(--line-l); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--paper-2); }
.nw-filter[hidden] { display: none; }
.nw-filter button {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-right: 1px solid var(--line-l);
  font-family: var(--f-disp); font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nw-filter button:last-child { border-right: 0; }
.nw-filter button:hover { color: var(--ink); background: #fff; }
.nw-filter button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.nw-filter button[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--orange); }
.nw-filter button:focus-visible { outline-offset: -3px; }
.nw-filter .n { font-weight: 400; font-size: 13px; color: var(--alu-2); font-variant-numeric: tabular-nums; }

.nw-list { padding-bottom: 120px; }
.sec-paper.nw-intro + .nw-list { border-top: 0; padding-top: 8px; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
.nw-card[hidden] { display: none; }
.nw-empty { color: var(--ink-2); padding-top: 18px; border-top: 1px solid var(--line-l); }
.nw-a { display: block; border-top: 1px solid var(--line-l); padding-top: 14px; }
.nw-a:focus-visible { outline-offset: 6px; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 13.5px; color: var(--ink-2); }
.nw-cat { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; }
.nw-cat::before { content: ""; width: 7px; height: 7px; background: var(--orange); }
.nw-img { margin-top: 16px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.nw-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.nw-t {
  font-family: var(--f-disp); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -.005em;
  margin-top: 20px; max-width: 26ch;
  text-decoration: underline 1px transparent; text-underline-offset: 6px; transition: text-decoration-color .25s;
}
.nw-ex { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.nw-a:hover .nw-img img { transform: scale(1.03); }
.nw-a:hover .nw-t, .nw-a:focus-visible .nw-t { text-decoration-color: var(--orange); }

/* úvodní (nejnovější) článek přehledu: fotka vlevo, text vpravo dole */
.nw-card.is-lead { grid-column: 1 / -1; }
.nw-card.is-lead .nw-a {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px;
  grid-template-rows: auto 1fr auto; grid-template-areas: "meta meta" "img t" "img ex";
}
.nw-card.is-lead .nw-meta { grid-area: meta; }
.nw-card.is-lead .nw-img { grid-area: img; }
.nw-card.is-lead .nw-t { grid-area: t; align-self: end; font-weight: 300; font-size: clamp(28px, 2.9vw, 44px); line-height: 1.08; letter-spacing: -.015em; max-width: 16ch; }
.nw-card.is-lead .nw-ex { grid-area: ex; font-size: 16.5px; margin-top: 16px; }

/* blok na hlavní stránce a „Další novinky“ pod článkem */
.nw-home, .nw-more { padding-bottom: 120px; }
.nw-home .rail-grid:first-child, .nw-more .rail-grid:first-child { padding-top: 96px; padding-bottom: 48px; }
.nw-more-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.nw-more-head .textlink { margin-bottom: 8px; }

/* článek */
.ar-head { padding-bottom: 0; }
.ar-head .rail-grid { padding-top: 88px; }
.ar-back { border-bottom: 1px solid var(--line-l); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.ar-back:hover { color: var(--ink); border-color: var(--orange); }
.ar-h {
  font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(36px, 4.5vw, 68px); line-height: 1.03; letter-spacing: -.02em;
  max-width: 19ch; margin-top: 22px;
}
.ar-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin-top: 24px; }
.ar-cover-row { padding-top: 48px; }
.sec-paper .ar-cover-row > .ar-cover { padding-left: 0; margin-left: 40px; }
.ar-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cell); }
.ar-cover img { width: 100%; height: 100%; object-fit: cover; }
.ar-body .rail-grid { padding-top: 56px; padding-bottom: 104px; }
/* rozpiska vlevo: kategorie, datum, délka čtení; při čtení zůstává na místě */
.ar-side { padding-top: 6px; }
.ar-block { position: sticky; top: calc(var(--hdr-h) + 28px); border-top: 1px solid var(--ink); }
.ar-block div { display: grid; grid-template-columns: 1fr; padding: 10px 0 11px; border-bottom: 1px solid var(--line-l); }
.ar-block dt { font-size: 12.5px; color: var(--ink-2); }
.ar-block dd { font-family: var(--f-disp); font-size: 16px; color: var(--ink); margin-top: 2px; }

/* text článku: 65–75 znaků na řádek */
.prose { max-width: 68ch; font-size: 17.5px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--f-disp); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin-top: 1.9em; }
.prose h3 { font-family: var(--f-disp); font-weight: 500; font-size: 21px; line-height: 1.25; margin-top: 1.6em; }
.prose h4 { font-family: var(--f-disp); font-weight: 500; font-size: 17.5px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { font-weight: 500; }
.prose a { border-bottom: 1px solid var(--orange); transition: background-color .2s; }
.prose a:hover { background: rgba(240,88,28,.1); }
.prose ul > li, .prose ol > li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: .4em; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .82em; width: 12px; height: 1px; background: var(--ink-2); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: 0; font-family: var(--f-disp); font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prose blockquote { border-left: 2px solid var(--orange); padding: 2px 0 2px 24px; font-family: var(--f-disp); font-weight: 300; font-size: 24px; line-height: 1.35; }
.prose blockquote > * + * { margin-top: .6em; }
.prose hr { border: 0; border-top: 1px solid var(--line-l); margin: 2.2em 0; }
.prose code { font-size: .92em; background: var(--paper-2); padding: 1px 5px; }
.prose figure { margin-top: 2em; margin-bottom: 2em; }
.prose figure img, .prose figure video { width: 100%; height: auto; background: var(--paper-2); }
.prose figure video { background: var(--cell); }
.prose figcaption { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; }
/* tabulka parametrů: popisek vlevo, hodnota písmem nadpisů */
.ar-table { overflow-x: auto; margin-top: 1.6em; margin-bottom: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 20px 11px 0; border-bottom: 1px solid var(--line-l); }
.prose thead th { font-weight: 500; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.prose tbody td:first-child { color: var(--ink-2); width: 36%; }
.prose tbody td + td { font-family: var(--f-disp); font-size: 17.5px; color: var(--ink); }

/* sdílení */
.ar-share { max-width: 68ch; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--ink); }
.ar-share-t { font-size: 13.5px; color: var(--ink-2); }
.ar-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sh-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border: 1px solid rgba(27,33,39,.3); font-family: var(--f-disp); font-weight: 500; font-size: 14.5px; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.sh-btn[hidden] { display: none; }
.sh-btn:hover { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.sh-btn.is-done { border-color: var(--orange); }
.ar-share-ok { min-height: 1.5em; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }

@media (max-width: 1180px) {
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nw-home .nw-grid > :nth-child(3), .nw-more .nw-grid > :nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .nw-intro .rail-grid, .ar-head .rail-grid { padding-top: 48px; }
  .nw-h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .nw-filter { width: 100%; margin-top: 32px; }
  .nw-filter button { padding: 0 16px; }
  .nw-list, .nw-home, .nw-more { padding-bottom: 72px; }
  .nw-home .rail-grid:first-child, .nw-more .rail-grid:first-child { padding-top: 64px; padding-bottom: 28px; }
  .nw-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .nw-home .nw-grid > :nth-child(3), .nw-more .nw-grid > :nth-child(3) { display: block; }
  .nw-card.is-lead .nw-a { display: block; }
  .nw-card.is-lead .nw-t { font-size: clamp(28px, 7.6vw, 36px); }
  .nw-t { font-size: 22px; }
  .ar-h { font-size: clamp(34px, 9.4vw, 48px); margin-top: 16px; }
  .ar-lead { font-size: 17px; }
  .ar-cover-row { padding-top: 32px; padding-left: 0; padding-right: 0; }
  .sec-paper .ar-cover-row > .ar-cover { margin-left: 0; }
  .ar-cover { aspect-ratio: 4 / 3; }
  .ar-side { display: none; }
  .ar-body .rail-grid { padding-top: 36px; padding-bottom: 72px; }
  .prose { font-size: 16.5px; line-height: 1.68; }
  .prose h2 { font-size: 25px; }
  .prose blockquote { font-size: 20px; }
  .prose tbody td:first-child { width: 42%; }
  .prose tbody td + td { font-size: 16px; }
  .ar-share { margin-top: 44px; }
}
