/* ENOVA v2 (v5 vrstva): firemné logo a farby, bytové domy, batériové úložiská, all-in-one */
:root {
  --blue: #217a2e;
  --blue-deep: #165f22;
  --sky: #95c22e;
  --lime: #95c22e;
  --sun: #f39200;
  --sun-2: #ffb81c;
  --diam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 6 38 22 22 38 6 22Z' fill='%23217a2e' fill-opacity='.045'/%3E%3C/svg%3E");
}

/* logo */
.logo-img { display: block; height: 46px; width: auto; flex: none; }
.logo-img--w { display: none; }
.logo--light .logo-img, .hdr:not(.is-solid) .logo-img { display: none; }
.logo--light .logo-img--w, .hdr:not(.is-solid) .logo-img--w { display: block; }
.menu-open .hdr .logo-img--w { display: none; } .menu-open .hdr .logo-img:not(.logo-img--w) { display: block; }
.ftr .logo-img { height: 52px; }
.logo-pill { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 6px 18px -10px rgb(14 42 32 / .35); }
@media (max-width: 760px) { .logo-img { height: 38px; } .logo-pill { padding: 5px 8px; border-radius: 10px; } }

/* služby – 5 kariet */
@media (min-width: 641px) and (max-width: 1100px) { .gx-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* spoločné */
.v5-k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 .6rem; }
.v5-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.4vw, 32px); min-width: 0; }
.v5-card h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin: 0 0 1rem; text-wrap: balance; }
.v5-note { font-size: .84rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.5; }
.v5-sec { position: relative; }
.v5-sec::before { content: ""; position: absolute; inset: 0; background: var(--diam); pointer-events: none; -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.v5-sec > .wrap { position: relative; }

/* promo pás */
.promo5 { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 34%, #6fae2a 58%, var(--sun-2) 82%, var(--sun) 100%); color: #fff; }
.promo5::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 8 48 28 28 48 8 28Z' fill='%23fff' fill-opacity='.07'/%3E%3C/svg%3E"); }
.promo5-in { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: clamp(22px, 3vw, 34px); flex-wrap: wrap; }
.promo5-badge { flex: none; width: 104px; height: 104px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .74rem; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--sun); clip-path: polygon(50% 0,59% 12%,73% 5%,76% 20%,91% 19%,87% 34%,100% 41%,90% 52%,99% 64%,85% 69%,86% 84%,71% 82%,65% 96%,53% 88%,41% 99%,35% 85%,20% 90%,19% 75%,4% 72%,11% 58%,0 49%,11% 39%,3% 26%,18% 22%,18% 7%,32% 11%,40% 0); transform: rotate(-8deg); animation: promo5-spin 18s linear infinite; }
.promo5-badge span { display: block; transform: rotate(8deg); }
@keyframes promo5-spin { to { transform: rotate(352deg); } }
.promo5-txt { flex: 1 1 320px; min-width: 0; margin: 0; }
.promo5-txt small { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: .35rem; }
.promo5-txt b { display: block; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 760; text-shadow: 0 2px 14px rgb(0 0 0 / .18); }
.promo5 .btn { flex: none; background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .promo5-badge { animation: none; } }
@media (max-width: 640px) { .promo5-badge { width: 84px; height: 84px; font-size: .62rem; } .promo5 .btn { width: 100%; justify-content: center; } }

/* bytové domy */
.bd5-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 4vw, 48px); }
.bd5-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; min-height: 320px; background: var(--ice); }
.bd5-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd5-photo figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: #fff; background: rgb(10 29 22 / .55); padding: .35rem .6rem; border-radius: 999px; backdrop-filter: blur(6px); }
.bd5-why { background: var(--navy); color: var(--on-navy); border-radius: 26px; padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: center; }
.bd5-why h3 { color: #fff; font-size: 1.3rem; margin: 0 0 1.2rem; }
.bd5-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.bd5-why li { display: grid; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.bd5-why li:last-child { border-bottom: 0; padding-bottom: 0; }
.bd5-why b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--lime); letter-spacing: -.02em; line-height: 1; }
.bd5-why span { font-size: .95rem; line-height: 1.45; }
.bd5-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.bd5-bars { display: grid; gap: 1.1rem; }
.bd5-bar { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) auto; align-items: center; gap: .3rem .9rem; }
.bd5-bar > span { font-weight: 600; color: var(--ink); font-size: .95rem; }
.bd5-bar > i { height: 18px; border-radius: 9px; background: var(--ice); position: relative; overflow: hidden; }
.bd5-bar > i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: 9px; background: linear-gradient(90deg, #c9cfc2, #9aa596); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.bd5-bar.is-bd > i::after { background: linear-gradient(90deg, var(--lime), var(--blue)); min-width: 18px; }
.is-in .bd5-bar > i::after, .bd5-bars.is-in .bd5-bar > i::after { transform: scaleX(1); }
.bd5-bar > b { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.bd5-bar.is-bd > b { color: var(--blue); font-size: 1.25rem; }
.bd5-bar > small { grid-column: 2 / -1; font-size: .8rem; color: var(--muted); margin-top: -.15rem; }
.bd5-x { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.bd5-x b { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -.03em; color: var(--blue); line-height: 1; }
.bd5-x span { color: var(--body); font-size: .95rem; }
.bd5-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.bd5-stats > div { background: var(--paper); padding: 1rem 1.1rem; }
.bd5-stats dt { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.bd5-stats dd { margin: .3rem 0 0; font-size: .86rem; color: var(--body); line-height: 1.35; }
/* graf */
.bd5-chart { margin-top: clamp(16px, 2vw, 28px); }
.bd5-chart-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.bd5-chart-head h3 { margin: 0; }
.bd5-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .8rem; color: var(--body); }
.bd5-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.bd5-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.bd5-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ice); gap: 4px; }
.bd5-toggle button { border: 0; background: none; padding: .5rem .95rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 560; color: var(--body); cursor: pointer; transition: background .25s, color .25s; }
.bd5-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bd5-plot { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(4px, .8vw, 12px); align-items: end; height: clamp(220px, 26vw, 300px); padding: 0 0 26px; border-bottom: 1px solid var(--line-strong); }
.bd5-plot::before { content: ""; position: absolute; inset: 0 0 26px; background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 25%); pointer-events: none; }
.bd5-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: default; outline: none; }
.bd5-col i { display: block; width: 100%; border-radius: 6px 6px 0 0; transition: height .7s var(--ease), background .3s; }
.bd5-col .s-sun { background: linear-gradient(180deg, var(--sun-2), var(--lime)); border-radius: 6px 6px 0 0; }
.bd5-col .s-czt { background: var(--blue); border-radius: 0; }
.bd5-col .s-sun[style*="height: 0"] + .s-czt, .bd5-col.is-before .s-czt { border-radius: 6px 6px 0 0; }
.bd5-col.is-before .s-czt { background: #9aa596; }
.bd5-col > em { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-style: normal; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.bd5-col:hover i, .bd5-col:focus-visible i { filter: brightness(1.08); }
.bd5-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--navy); color: #fff; font-size: .78rem; line-height: 1.45; padding: .55rem .7rem; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .2s; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.bd5-tip.is-on { opacity: 1; }
.bd5-tip b { font-family: var(--font-mono); font-weight: 500; }
.bd5-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.bd5-sum > div { display: grid; gap: .2rem; }
.bd5-sum b { font-family: var(--font-mono); font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.bd5-sum b.is-good { color: var(--blue); }
.bd5-sum span { font-size: .82rem; color: var(--muted); }
.bd5-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(16px, 2vw, 28px); }
.v5-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.v5-list li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.45; color: var(--body); }
.v5-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: .8rem; height: .8rem; background: var(--lime); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.v5-list li b { color: var(--ink); }
.v5-list a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.bd5-cta { display: flex; align-items: center; gap: 1rem 1.6rem; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); }
.bd5-cta p { margin: 0; color: var(--body); max-width: 46ch; font-size: .95rem; }
@media (max-width: 980px) {
  .bd5-hero, .bd5-grid { grid-template-columns: minmax(0, 1fr); }
  .bd5-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .bd5-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bd5-bar { grid-template-columns: 6rem minmax(0, 1fr) auto; }
  .bd5-sum { grid-template-columns: minmax(0, 1fr); }
  .bd5-plot { gap: 3px; }
  .bd5-col > em { font-size: .58rem; }
}

/* batérie */
.aio { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); border-radius: 30px; padding: clamp(22px, 3.4vw, 48px); position: relative; overflow: hidden; }
.aio::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 6 38 22 22 38 6 22Z' fill='%2395c22e' fill-opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
.aio > * { position: relative; min-width: 0; }
.aio-viz { display: grid; place-items: center; min-height: 380px; }
.aio-tower { width: min(220px, 62vw); display: grid; gap: 6px; grid-template-rows: auto auto auto auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .45)); perspective: 800px; }
.aio-box { position: relative; border-radius: 10px; background: linear-gradient(180deg, #fdfdfb, #e6e9e1); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .06), inset 0 1px 0 #fff; color: var(--ink); }
.aio-inv { height: 128px; padding: 14px 16px; display: grid; align-content: space-between; }
.aio-inv .aio-brand { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; color: #1f3f8f; }
.aio-inv .aio-lcd { height: 34px; border-radius: 6px; background: #1c2a24; color: var(--lime); font-family: var(--font-mono); font-size: .72rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .7rem; box-shadow: inset 0 0 12px rgb(149 194 46 / .25); }
.aio-inv .aio-led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: aio-blink 2.4s ease-in-out infinite; }
@keyframes aio-blink { 50% { opacity: .35; } }
.aio-bms { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.aio-bms i { width: 30px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(90deg, #c6ccc0 0 3px, transparent 3px 6px); }
.aio-mods { display: flex; flex-direction: column; }
.aio-mods .aio-mod { margin-top: 6px; }
.aio-mod { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-family: var(--font-mono); font-size: .68rem; color: var(--body); transition: opacity .45s var(--ease), transform .55s var(--ease), height .45s var(--ease), margin .45s var(--ease); }
.aio-mod::after { content: ""; width: 40%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--soc, 80%), #d7dccf var(--soc, 80%)); }
.aio-mods .aio-mod.is-off { opacity: 0; transform: translateX(30px) rotateY(-25deg); height: 0; margin-top: 0; pointer-events: none; overflow: hidden; }
.aio-base { height: 14px; margin: 0 10px; border-radius: 0 0 8px 8px; background: #3b4a42; }
.aio-copy h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .5rem; }
.aio-sub { color: var(--lime); font-weight: 600; margin: 0 0 1.4rem; font-size: 1.05rem; }
.aio-copy .v5-k { color: var(--sun-2); }
.aio-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.aio-list li { position: relative; padding-left: 1.7rem; line-height: 1.45; font-size: .98rem; }
.aio-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: .9rem; height: .9rem; background: var(--lime); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.aio-ctl { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: 18px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); margin-bottom: 1.6rem; }
.aio-cap { display: grid; gap: .1rem; margin-right: auto; }
.aio-cap span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); }
.aio-cap b { font-family: var(--font-mono); font-size: 1.7rem; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.aio-cap small { font-size: .8rem; color: var(--on-navy-muted); }
.aio-btns { display: flex; gap: .5rem; }
.aio-btns button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .06); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.aio-btns button:hover:not(:disabled) { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.aio-btns button:disabled { opacity: .35; cursor: default; }
.aio .btn--primary { background: var(--lime); color: var(--ink); }
.aio-src { font-size: .76rem; color: var(--on-navy-muted); margin: 1rem 0 0; }

.bsz { margin-top: clamp(16px, 2vw, 28px); }
.bsz-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.bsz-top h3 { margin: 0; }
.bsz-out { font-family: var(--font-mono); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.bsz-out small { font-size: .45em; color: var(--muted); margin-left: .3rem; }
.bsz input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; background: linear-gradient(90deg, var(--lime), var(--blue) calc(14px + (100% - 28px) * var(--pp, .2)), rgb(14 42 32 / .1) calc(14px + (100% - 28px) * var(--pp, .2))); }
.bsz input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 14px rgb(14 42 32 / .3); cursor: grab; }
.bsz input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; }
.bsz input[type=range]:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; }
.bsz-scale { position: relative; height: 1.4rem; margin-top: .6rem; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.bsz-scale span { position: absolute; left: calc(14px + (100% - 28px) * var(--x)); transform: translateX(-50%); white-space: nowrap; }
.bsz-scale span:first-child { transform: none; left: 0; } .bsz-scale span:last-child { transform: none; left: auto; right: 0; }
.bsz-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.2rem; }
.bsz-seg button { text-align: left; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 16px; padding: .9rem 1rem; font: inherit; color: var(--body); cursor: pointer; display: grid; gap: .25rem; transition: border-color .25s, background .25s, transform .25s; min-width: 0; }
.bsz-seg button b { color: var(--ink); font-size: .98rem; }
.bsz-seg button small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.bsz-seg button:hover { border-color: var(--blue); transform: translateY(-2px); }
.bsz-seg button.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-navy); }
.bsz-seg button.is-on b { color: #fff; } .bsz-seg button.is-on small { color: var(--lime); }
.bsz-txt { margin: 1.1rem 0 0; color: var(--body); line-height: 1.5; min-height: 3em; }
.bsz-txt b { color: var(--ink); }
@media (max-width: 640px) { .bsz-seg { grid-template-columns: minmax(0, 1fr); } }

.ess5 { margin-top: clamp(28px, 4vw, 48px); }
.ess5-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ess5-head h3 { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); letter-spacing: -.02em; color: var(--ink); }
.ess5-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.ess5-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.ess5-item { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; scroll-snap-align: start; background: var(--ice); cursor: zoom-in; max-width: 100%; }
.ess5-item.is-wide { aspect-ratio: auto; grid-column: span 1; }
.ess5-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ess5-item:hover img { transform: scale(1.05); }
.ess5-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem .9rem .8rem; background: linear-gradient(180deg, transparent, rgb(10 29 22 / .82)); color: #fff; font-size: .84rem; line-height: 1.35; font-weight: 520; }
.ess5-item button { position: absolute; inset: 0; border: 0; background: none; cursor: zoom-in; }
.lb5 { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgb(6 16 12 / .92); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lb5.is-on { opacity: 1; visibility: visible; }
.lb5 img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 14px; object-fit: contain; }
.lb5 p { color: #fff; margin: .8rem 0 0; text-align: center; font-size: .9rem; }
.lb5 button { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .08); color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 900px) {
  .aio { grid-template-columns: minmax(0, 1fr); }
  .aio-viz { min-height: 0; padding-top: 6px; }
}
@media (max-width: 640px) { .ess5-row { grid-auto-columns: 72%; } }

/* kalkulačka – batéria 0–261 kWh */
.kbat { align-items: start; }
.kbat-track { position: relative; min-width: 0; padding-top: 16px; }
.kbat-track input[type=range] { display: block; background: linear-gradient(90deg, var(--ice-2), var(--blue) calc(12px + (100% - 24px) * var(--pp, .17)), rgb(14 42 32 / .1) calc(12px + (100% - 24px) * var(--pp, .17))); }
.kbat-ticks { position: relative; height: 1.7rem; margin-top: .7rem; }
.kbat-ticks button { position: absolute; top: 0; left: calc(12px + (100% - 24px) * var(--i) / 17); transform: translateX(-50%); padding: .3rem .2rem 0; border: 0; background: none; font-family: var(--font-mono); font-size: .7rem; line-height: 1; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; transition: color .2s; white-space: nowrap; }
.kbat-ticks button::before { content: ""; position: absolute; left: 50%; top: -.35rem; width: 1px; height: .35rem; background: currentColor; opacity: .55; }
.kbat-ticks button:hover, .kbat-ticks button.is-on { color: var(--ink); }
.kbat-ticks button.is-on { font-weight: 600; }
.kbat output { min-width: 7.2rem; text-align: center; }
.calc-hint.is-warn { color: var(--ink); }
@media (max-width: 480px) {
  .kbat { gap: .7rem; }
  .kbat output { min-width: 6.4rem; padding: .45rem .6rem; font-size: .9rem; }
  .kbat-ticks button { font-size: .62rem; }
}
@media (max-width: 560px) { .kbat-ticks button[data-bat-step="1"] { display: none; } }
/* skryť Netlify lištu (HUD) vpravo dole */
#nl-hud-frame { display: none !important; }

/* --- kratší mezery mezi sekcemi (2. 11. 2026) --- */
.section { padding-block: clamp(48px, 6vw, 90px); }
.instruments { padding-block: clamp(40px, 4.5vw, 70px); }
.services-pin { padding-top: clamp(48px, 5.5vw, 76px); padding-bottom: clamp(30px, 3.5vw, 50px); }
.revize { padding-bottom: clamp(30px, 3.5vw, 56px); }
.cta { padding-block: clamp(56px, 7vw, 105px); }
.nzu4 { padding-block: clamp(36px, 4.5vw, 66px); }
.bigmarquee { padding-block: clamp(24px, 3vw, 46px); }
.ftr { padding-top: clamp(40px, 5vw, 70px); }
.split-head { margin-bottom: clamp(32px, 4vw, 60px); }
.brands { margin-top: clamp(36px, 4.5vw, 64px); }
.trust { margin-top: clamp(32px, 4vw, 60px); }
.team { margin-top: clamp(32px, 4vw, 60px); }

/* --- Bytové domy: zjednodušené karty (2. 11. 2026) --- */
.bd5-cols--s .bd5-c { display: flex; flex-direction: column; }
.bd5-cols--s .v5-k { margin-bottom: 1.1rem; }
.bd5-ok { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bd5-ok li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem .5rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--lime) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--lime) 28%, transparent); font-size: .9rem; line-height: 1.2; color: var(--ink); font-weight: 520; }
.bd5-ok li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%230f2a17' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bd5-big { margin: 0; display: grid; gap: .45rem; }
.bd5-big b { font-size: clamp(2.6rem, 2rem + 2vw, 3.5rem); line-height: 1; font-weight: 650; letter-spacing: -.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.bd5-big span { font-size: 1rem; line-height: 1.4; color: var(--ink); max-width: 26ch; }
.bd5-sm { margin: auto 0 0; padding-top: 1.1rem; font-size: .86rem; line-height: 1.5; color: var(--muted); border-top: 1px dashed var(--line); }
.bd5-cols--s .bd5-big + .bd5-sm { margin-top: 1.2rem; }
.bd5-links { list-style: none; margin: 0; padding: 0; display: grid; }
.bd5-links li + li { border-top: 1px solid var(--line); }
.bd5-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .78rem 0; font-size: .95rem; font-weight: 560; color: var(--ink); text-decoration: none; transition: color .25s; }
.bd5-links li:first-child a { padding-top: 0; }
.bd5-links li:last-child a { padding-bottom: 0; }
.bd5-links svg { flex: none; width: 18px; height: 18px; color: var(--blue); transform: rotate(-45deg); transition: transform .35s var(--ease); }
.bd5-links a:hover { color: var(--blue); }
.bd5-links a:hover svg { transform: rotate(-45deg) translateX(3px); }
@media (max-width: 640px) {
  .bd5-ok li { font-size: .84rem; padding: .42rem .7rem .42rem .45rem; }
  .bd5-big b { font-size: 2.6rem; }
}

/* --- mobil: „Čo riešite?“ voľby pod sebou (2. 11. 2026) --- */
@media (max-width: 640px) {
  .gx-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; }
  .gx-tab { width: 100%; flex: none; flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; }
  .gx-ico { width: 40px; height: 40px; border-radius: 12px; }
  .gx-ico svg { width: 20px; height: 20px; }
  .gx-tt { gap: 1px; }
  .gx-tt b { font-size: .98rem; white-space: normal; }
  .gx-tt small { display: block; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gx-arr { display: block; width: 16px; height: 16px; }
  .gx-tab.is-on .gx-arr { transform: rotate(90deg); }
  .gx-prog { left: 12px; right: 12px; }
}

/* --- mobil: čísla v počítadlách bez orezania (2. 11. 2026) --- */
@media (max-width: 760px) {
  .inst-num { line-height: 1.05; }
  .inst-num b { line-height: 1.05; overflow: visible; }
}

/* --- vizualizácia domu: štítky vo fotke + mobil (2. 11. 2026) --- */
.hpin > span { translate: var(--dx, 0px) var(--dy, 0px); }
.hpin--r > span::after { left: var(--ax, 10px); }
.hpin--l > span::after { right: var(--ax, 10px); }
.hpin > span.is-off::after { display: none; }
@media (max-width: 760px) {
  .hs { gap: 12px; }
  .hs-stage { aspect-ratio: 4 / 3; overflow: visible; margin-bottom: 66px; border-radius: 20px; box-shadow: 0 18px 40px -22px rgb(14 42 32 / .45); }
  .hs-stage canvas, .hs-stage::after { border-radius: inherit; }
  .hs-stage::after { overflow: hidden; }
  .hs-hud { top: calc(100% + 8px); bottom: auto; left: 0; right: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k b" "s b"; align-items: center; column-gap: 12px; padding: 10px 16px; border-radius: 16px; background: var(--ink); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hs-hud small { grid-area: k; font-size: .58rem; }
  .hs-hud > span { grid-area: s; font-size: .74rem; }
  .hs-hud b { grid-area: b; font-size: 1.7rem; }
  .hs-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding-inline: 0; padding-bottom: 0; }
  .hs-pick { width: auto; flex: none; gap: 9px; padding: 6px 8px 6px 6px; border-radius: 14px; min-height: 54px; }
  .hs-pick:hover { transform: none; }
  .hs-pick img, .hs-pick--up .hs-up-ico { width: 54px; height: 42px; border-radius: 9px; }
  .hs-pick b { font-size: .78rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hs-pick small { display: none; }
  .hpin b { font-size: .74rem; }
}

/* --- cookies (2. 11. 2026) --- */
.ck { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - 32px)); opacity: 0; transform: translateY(18px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.ck.is-in { opacity: 1; transform: none; }
.ck-in { display: grid; gap: .85rem; padding: 20px 20px 18px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgb(10 29 22 / .45), 0 2px 6px rgb(10 29 22 / .06); color: var(--ink); }
.ck-k { margin: 0; display: flex; align-items: center; gap: .55rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ck-k svg { width: 20px; height: 20px; }
.ck-d { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--body, #3c4a42); }
.ck-d a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ck-set { display: grid; border-block: 1px solid var(--line); }
.ck-set[hidden] { display: none; }
.ck-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; cursor: pointer; }
.ck-row + .ck-row { border-top: 1px solid var(--line); }
.ck-row span { display: grid; gap: 2px; min-width: 0; }
.ck-row b { font-size: .9rem; color: var(--ink); }
.ck-row small { font-size: .76rem; color: var(--muted); }
.ck-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-row i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d5d9cf; transition: background-color .25s; }
.ck-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .3s var(--ease); }
.ck-row input:checked + i { background: var(--blue); }
.ck-row input:checked + i::after { transform: translateX(18px); }
.ck-row input:disabled + i { opacity: .55; }
.ck-row input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.ck-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-btn { flex: 1 1 auto; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong, #c9ccbf); background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color .25s, border-color .25s; }
.ck-btn:hover { border-color: var(--ink); }
.ck-btn--p { background: var(--blue); border-color: var(--blue); color: #fff; }
.ck-btn--p:hover { background: #1a6824; border-color: #1a6824; }
.ck-btn[hidden], .ck-link[hidden] { display: none; }
.ck-link { flex: 0 0 auto; padding: .5rem .2rem; border: 0; background: none; font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-btn:focus-visible, .ck-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ftr-ck { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.ftr-ck:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .ck { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .ck-in { padding: 18px 16px 16px; border-radius: 20px; gap: .75rem; }
  .ck-d { font-size: .86rem; }
  .ck-act { display: grid; grid-template-columns: 1fr 1fr; }
  .ck-link { grid-column: 1 / -1; justify-self: center; padding-block: .2rem; }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }

/* --- mobil: drobné doladenia (2. 11. 2026) --- */
@media (max-width: 640px) {
  .bd5-toggle { display: flex; width: 100%; }
  .bd5-toggle button { flex: 1 1 0; white-space: nowrap; font-size: .78rem; padding: .55rem .5rem; }
  .chips--spot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chips--spot .chip span { display: grid; justify-items: start; align-content: center; gap: 2px; min-height: 58px; padding: .5rem .9rem; border-radius: 16px; font-size: .95rem; line-height: 1.15; }
  .chips--spot .chip span small { font-size: .66rem; line-height: 1.25; }
  .chips--spot .chip:last-child { grid-column: 1 / -1; }
  .tblock { box-shadow: 8px 8px 0 -1px var(--ice-2), 8px 8px 0 0 var(--line-strong); margin-right: 8px; }
}
