/* ============================================================
   JETPARTNER — podstránka Energostat (/energostat/)
   Staví na ../style.css (tokeny, hlavička, patička, rail-grid, pill, h2,
   schéma toků a maketa aplikace ze sekce Energostat na indexu) a ../reveal.css.
   Tady jsou jen věci, které má jen tato stránka.
   1 základ · 2 úvod + schéma · 3 světlé sekce · 4 tmavá sekce (pojistky, aplikace)
   5 pro koho · 6 cena · 7 FAQ · 8 responzivita · 9 reduced motion
   Závazné: žádné zaoblené rohy, jen barvy z tokenů webu.
   ============================================================ */

/* ---------- 1) ZÁKLAD ---------- */
.page-es main { padding-top: var(--hdr-h); }
.page-es *, .page-es *::before, .page-es *::after { border-radius: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* obrysové tlačítko na světlém papíře (protějšek .pill-ghost) */
.pill-ink { border: 1px solid var(--ink); color: var(--ink); }
.pill-ink:hover { background: var(--ink); color: #fff; }

/* produktová značka v úvodu: čtvereček = LED na krabičce, široká Saira */
.es-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.es-brand-led { width: 10px; height: 10px; background: var(--orange); flex: none; }
.es-brand-word { font-family: var(--f-disp); font-weight: 600; font-stretch: 125%; font-size: 17px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.es-brand-by { font-size: 12px; line-height: 1; color: var(--alu-2); letter-spacing: .02em; padding-top: 2px; }

/* ---------- 2) ÚVOD + SCHÉMA TOKŮ ---------- */
.eh { position: relative; background: var(--cell); color: #E8ECEF; overflow: hidden; }
/* axonometrie domu jako v sekci Energostat na indexu */
.eh-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../media/energostat/render-axonometrie-jv.png") 72% 45% / cover no-repeat;
  opacity: .14; mix-blend-mode: screen;
  mask-image: radial-gradient(70% 70% at 65% 55%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 65% 55%, #000 25%, transparent 80%);
}
.eh-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px;
  align-items: center; min-height: calc(100vh - var(--hdr-h)); min-height: calc(100svh - var(--hdr-h));
  padding-top: 40px; padding-bottom: 36px;
}
.eh-h {
  font-family: var(--f-disp); font-weight: 300; font-stretch: 118%;
  font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.02em; color: #fff;
  max-width: 11ch;
}
.eh-lead { margin-top: 28px; font-size: 17px; line-height: 1.6; color: rgba(232,236,239,.72); max-width: 42ch; }
.eh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.eh-fine { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 13.5px; line-height: 1.6; color: var(--alu-2); max-width: 42ch; }

/* schéma: barvy a bloky přebírá z ../style.css (.wires, .flows .fl, .node, .sun, .cell, .fill, .led) */
.eh-schema { position: relative; min-width: 0; }
.eh-schema .sch-tall { display: none; }
.eh-schema svg { width: 100%; height: auto; max-height: calc(100svh - var(--hdr-h) - 150px); overflow: visible; }
.eh-schema .dot { fill: rgba(190,198,204,.35); }
.eh-schema text { fill: var(--alu); font-family: var(--f-text); font-size: 13px; }
.eh-schema .t-strong { fill: #fff; font-family: var(--f-disp); font-weight: 500; font-size: 16px; }
.eh-schema .t-small { font-size: 11.5px; fill: var(--alu-2); transition: fill .4s; }
.eh-schema .t-es { fill: var(--orange-2); font-size: 14px; }
/* tok = čárkovaná oranžová čára, čárky tečou ve směru energie */
.eh-schema .fl { stroke-width: 2.2; transition: opacity .6s, stroke-width .6s; animation: esFlow 1.1s linear infinite; }
.eh-schema .fl.is-thin { stroke-width: 1.3; animation-duration: 2.6s; }
.eh-schema .fl.is-rev { animation-direction: reverse; }
@keyframes esFlow { to { stroke-dashoffset: -36; } }
/* ukazatele naplnění: šířku řídí JS přes scaleX */
.eh-schema .fill { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.2); transition: transform 1.4s var(--ease); }
.eh-schema .node .box { transition: stroke .4s, opacity .6s; }
.eh-schema .load:not(.is-on) .box { stroke: rgba(255,255,255,.5); }
.eh-schema .sun circle, .eh-schema .pv { transition: stroke .6s, opacity .6s; }
.eh-schema[data-scene="3"] .sun circle { stroke: var(--alu-2); opacity: .45; }
.eh-schema[data-scene="3"] .pv { opacity: .5; }
.eh-schema .bat .reserve { opacity: .45; }
.eh-schema[data-scene="3"] .bat .reserve, .eh-schema[data-scene="3"] .bat .reserve-t { opacity: 1; }
.eh-schema[data-scene="3"] .bat .reserve-t { fill: #fff; }
.eh-schema[data-scene="1"] .house-sub { fill: var(--orange-2); }

/* pruh pod schématem: co se děje + přepínač ukázkových situací */
.scene-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-d);
}
.scene-text { flex: 1 1 300px; min-height: 3.2em; font-size: 15px; line-height: 1.5; color: #fff; }
.scene-k { display: block; font-size: 12px; color: var(--alu-2); margin-bottom: 2px; }
.scene-ctrl { display: flex; flex-wrap: wrap; border: 1px solid var(--line-d); }
.scene-ctrl button {
  height: 38px; padding: 0 13px; font-size: 13px; color: var(--alu);
  border-right: 1px solid var(--line-d); transition: background-color .2s, color .2s;
}
.scene-ctrl button:last-child { border-right: 0; }
.scene-ctrl button:hover { color: #fff; }
.scene-ctrl button[aria-pressed="true"] { background: rgba(240,88,28,.14); color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.scene-ctrl button:focus-visible { outline-offset: -2px; }
.scene-pause { width: 40px; padding: 0 !important; display: inline-grid; place-items: center; }
.scene-pause span { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.scene-pause.is-paused span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

/* ---------- 3) SVĚTLÉ SEKCE ---------- */
.es-sec { padding: 96px 0 104px; }
.es-sec .h2 { max-width: 20ch; }

/* Proč: srovnání dvou cest přebytku */
.compare { margin-top: 48px; max-width: 880px; border-top: 1px solid var(--line-l); }
.cmp-row { display: grid; grid-template-columns: 150px auto minmax(60px, 1fr) auto; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-l); }
.cmp-k { font-size: 13px; color: var(--ink-2); }
.cmp-a, .cmp-b { font-family: var(--f-disp); font-size: 19px; }
.cmp-line { height: 2px; position: relative; }
.cmp-line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid; border-right: 0; }
.cmp-off .cmp-line { background: repeating-linear-gradient(90deg, var(--alu-2) 0 5px, transparent 5px 13px); }
.cmp-off .cmp-line::after { border-left-color: var(--alu-2); }
.cmp-off .cmp-a, .cmp-off .cmp-b { color: var(--ink-2); }
.cmp-on .cmp-line { background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 13px); }
.cmp-on .cmp-line::after { border-left-color: var(--orange); }

/* Jak to funguje: skutečný sled kroků → čísla */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-l); }
.steps li { padding: 24px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line-l); }
.step-n { display: block; font-family: var(--f-disp); font-weight: 300; font-size: clamp(44px, 4vw, 60px); line-height: 1; letter-spacing: -.02em; color: var(--orange); }
.steps h3, .load-list h3 { font-family: var(--f-disp); font-weight: 500; font-size: 19px; line-height: 1.25; margin-top: 20px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--ink-2); max-width: 36ch; }

/* Co řídí */
.load-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-l); }
.load-list li { padding: 28px 24px 0 0; }
.load-list li + li { padding-left: 24px; border-left: 1px solid var(--line-l); }
.load-list p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.load-more h3 { color: var(--ink-2); }
.ico { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.ico .ico-o { stroke: var(--orange); stroke-width: 1.8; }

/* ---------- 4) TMAVÁ SEKCE: pojistky + aplikace (jako Kontakt / Energostat na indexu) ---------- */
.es-dark { position: relative; background: var(--cell); color: #E8ECEF; padding: 120px 0 128px; }
.es-dark .rail { color: var(--alu); }
.es-dark .rail-grid > :last-child { padding-left: 40px; border-left: 1px solid var(--line-d); }
.es-dark .h2 { color: #fff; }
.es-app-row { margin-top: 0; }
.es-app-row > :is(.rail, .app-grid) { padding-top: 120px; }
.es-app-row > .rail { padding-top: 142px; }

.guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-d); }
.guards li { padding: 28px 32px 0 0; }
.guards li + li { padding-left: 32px; border-left: 1px solid var(--line-d); }
.guards h3 { font-family: var(--f-disp); font-weight: 500; font-size: 19px; color: #fff; margin-top: 22px; }
.guards p { margin-top: 8px; font-size: 15px; color: rgba(232,236,239,.72); max-width: 38ch; }
.gd { width: 120px; height: 56px; overflow: visible; }
.gd-box, .gd-line { fill: none; stroke: var(--alu); stroke-width: 1.4; }
.gd-fill { fill: var(--orange); }
.gd-res { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3; }
.gd-dim { opacity: .5; }
.gd-o { fill: none; stroke: var(--orange); stroke-width: 2.4; }

.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.app-points { margin-top: 36px; border-top: 1px solid var(--line-d); }
.app-points li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line-d); color: rgba(232,236,239,.8); max-width: 48ch; }
.app-points li::before { content: ""; position: absolute; left: 0; top: 24px; width: 8px; height: 2px; background: var(--orange); }

/* maketa aplikace: .app, .app-top, .app-tabs, .app-modes, .app-tiles, .app-next, .app-note jsou z ../style.css */
.es-dark .app { margin-top: 12px; }
.app-bar { display: block; position: relative; height: 4px; margin-top: 8px; background: rgba(190,198,204,.18); }
.app-bar em { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); }
.app-bar u { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: #fff; }
.app-loads { margin-top: 14px; border-top: 1px solid var(--line-d); }
.app-loads li { display: grid; grid-template-columns: minmax(0, 1.2fr) 64px minmax(0, 1.4fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-d); color: var(--alu-2); }
.app-loads li span:first-child { color: var(--alu); }
.app-loads li span:nth-child(2) { font-variant-numeric: tabular-nums; text-align: right; }
.app-loads li.run span { color: #fff; }
.app-loads li span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border: 1px solid var(--alu-2); vertical-align: 1px; }
.app-loads li.run span:first-child::before { background: var(--orange); border-color: var(--orange); }

/* ---------- 5) PRO KOHO ---------- */
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line-l); }
.who-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 40px 0 0; }
.who-card + .who-card { padding-left: 40px; border-left: 1px solid var(--line-l); }
.who-card h3 { font-family: var(--f-disp); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.01em; }
.who-card p { margin: 14px 0 28px; color: var(--ink-2); max-width: 44ch; flex: 1; }

/* ---------- 6) INSTALACE A CENA ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; margin-top: 56px; }
.price-box { background: var(--paper-2); border: 1px solid var(--line-l); border-top: 2px solid var(--orange); padding: 28px 32px 32px; align-self: start; }
.price-k { font-size: 13px; color: var(--ink-2); }
.price-v { font-family: var(--f-disp); font-weight: 300; font-size: clamp(34px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -.015em; margin-top: 4px; }
.price-n { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); max-width: 40ch; }
.price-h { font-family: var(--f-disp); font-weight: 500; font-size: 17px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-l); }
.flow-col .price-h { margin-top: 0; padding-top: 0; border-top: 0; }
.incl { margin: 12px 0 28px; }
.incl li { position: relative; padding: 6px 0 6px 24px; }
.incl li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 5px; border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); transform: rotate(-45deg); }
.compat { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

.proc { margin-top: 16px; border-top: 1px solid var(--line-l); counter-reset: p; }
.proc li { counter-increment: p; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-l); }
.proc li::before { content: counter(p); grid-row: 1 / 3; font-family: var(--f-disp); font-size: 22px; line-height: 1.1; color: var(--orange); }
.proc b { font-weight: 500; }
.proc span { color: var(--ink-2); font-size: 15px; }

/* aplikace v šikmém pohledu (.obj-ui a --rx/--ry z ../style.css, jako karta Energostat na indexu) */
.es-tilt {
  position: relative; display: grid; place-items: center; margin-top: 32px; height: 280px; perspective: 900px;
  background: radial-gradient(60% 45% at 50% 58%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
}
.es-tilt::before {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 18px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(27,33,39,.28), rgba(27,33,39,0) 70%);
}
.es-tilt .obj-ui { width: 300px; font-size: 11px; zoom: 1; }

/* ---------- 7) FAQ ---------- */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line-l); max-width: 900px; }
.faq-list details { border-bottom: 1px solid var(--line-l); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-family: var(--f-disp); font-size: 19px; line-height: 1.3;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0); }
.faq-list summary:hover { color: var(--orange); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- 8) RESPONZIVITA ---------- */
@media (min-width: 901px) and (max-height: 780px) {
  .eh-grid { padding-top: 24px; padding-bottom: 20px; }
  .es-brand { margin-bottom: 20px; }
  .eh-h { font-size: clamp(38px, 3.9vw, 56px); }
  .eh-lead { margin-top: 20px; font-size: 16px; }
  .eh-cta { margin-top: 24px; }
  .eh-fine { margin-top: 24px; }
  .scene-bar { margin-top: 10px; padding-top: 10px; }
  .eh-schema svg { max-height: calc(100svh - var(--hdr-h) - 120px); }
}
@media (max-width: 1280px) {
  .load-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .load-list li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1180px) {
  .eh-grid { gap: 36px; }
  .app-grid, .price-grid { gap: 40px; }
}
@media (max-width: 1024px) {
  .eh-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 56px; padding-bottom: 48px; gap: 44px; }
  .eh-h { max-width: 14ch; }
  .eh-schema svg { max-height: none; }
  .app-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .guards { grid-template-columns: minmax(0, 1fr); }
  .guards li, .guards li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
  .gd { width: 96px; height: 45px; }
}
@media (max-width: 900px) {
  .es-sec { padding: 64px 0 72px; }
  .es-dark { padding: 88px 0 96px; }
  .es-dark .rail-grid > :last-child { border-left: 0; padding-left: 0; }
  .es-dark .rail { border-color: var(--line-d); }
  .es-app-row > :is(.rail, .app-grid) { padding-top: 0; }
  .es-app-row { margin-top: 80px; }
  .es-app-row > .rail { padding-top: 0; }
}
@media (max-width: 720px) {
  /* mobil: titulek a věta, pak schéma, pak tlačítka */
  .eh-grid { padding-top: 36px; gap: 0; }
  .eh-copy { display: contents; }
  .es-brand { order: 0; margin-bottom: 22px; }
  .eh-h { order: 1; font-size: clamp(36px, 10.4vw, 48px); }
  .eh-lead { order: 2; font-size: 16px; margin-top: 18px; }
  .eh-schema { order: 3; margin-top: 28px; }
  .eh-cta { order: 4; margin-top: 28px; }
  .eh-cta .pill { flex: 1 1 100%; }
  .eh-fine { order: 5; margin-top: 28px; }
  .eh-schema .sch-wide { display: none; }
  .eh-schema .sch-tall { display: block; }
  .eh-schema .sch-tall text { font-size: 12px; }
  .eh-schema .sch-tall .load .t-strong { font-size: 14.5px; }
  .eh-schema .sch-tall .t-es { font-size: 14px; }
  .eh-schema .sch-tall .t-small { font-size: 11px; }
  .scene-ctrl { width: 100%; }
  .scene-ctrl button { flex: 1 1 auto; height: 44px; padding: 0 8px; }
  .scene-pause { flex: 0 0 44px !important; width: 44px; }

  .compare { margin-top: 32px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cmp-a { display: none; }
  .steps, .load-list, .who-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .steps li, .steps li + li, .load-list li, .load-list li + li { padding: 22px 0 24px; border-left: 0; border-bottom: 1px solid var(--line-l); }
  .load-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
  .load-list .ico { grid-row: 1 / 3; width: 44px; height: 44px; }
  .load-list h3 { margin-top: 0; }
  .step-n { font-size: 40px; }
  .who-card, .who-card + .who-card { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid var(--line-l); }
  .price-grid { margin-top: 32px; }
  .price-box { padding: 24px 20px; }
  .es-tilt { height: 240px; }
  .es-tilt .obj-ui { width: 250px; font-size: 10px; }
  .es-dark .app { padding: 14px; }
  .es-dark .app-tabs span:nth-of-type(n+3) { display: none; }
  .app-loads li { grid-template-columns: minmax(0, 1fr) 56px; }
  .app-loads li span:nth-child(3) { grid-column: 1 / -1; padding-left: 16px; font-size: 12.5px; margin-top: -4px; }
  .faq-list { margin-top: 32px; }
  .faq-list summary { font-size: 17.5px; padding-right: 40px; }
  .faq-list details p { padding-right: 0; }
  .contact-lines { font-size: 18px; }
}

/* ---------- 9) REDUCED MOTION: ukázka stojí, toky jsou vidět ---------- */
@media (prefers-reduced-motion: reduce) {
  .eh-schema .fl, .eh-schema .led { animation: none; }
  .eh-schema .flows .fl:not(.is-on) { opacity: 0; }
  .scene-pause { display: none; }
}

/* mobilní menu: aktuální stránka */
.mnav-link[aria-current="page"] { color: #fff; box-shadow: inset 2px 0 0 var(--orange); padding-left: 14px; }
