.energy-calc { padding-block: 1.5rem 4rem; color: #15342a; }
.energy-hero { display: grid; isolation: isolate; position: relative; min-height: clamp(13rem,24vw,19rem); align-items: end; overflow: hidden; border-radius: 1.25rem; background: #194b39; color: white; }
.energy-hero img, .energy-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.energy-hero img { object-fit: cover; z-index: -2; }
.energy-hero::after { content: ""; background: linear-gradient(15deg,#0c2b21 4%,#0c2b21d9 28%,transparent 85%); z-index: -1; }
.energy-hero div { padding: clamp(1rem,3vw,2.5rem); max-width: 53rem; }
.energy-hero h1 { color: inherit; font-size: clamp(2rem,5vw,3.5rem); line-height: 1.06; margin: 0 0 .75rem; }
.energy-hero p { margin: 0; font-size: 1.13rem; max-width: 43rem; }
.energy-form { display: grid; gap: .85rem; margin-block: 1rem; }
.energy-panel { background: #f7faf8; border: 1px solid #d6e5db; border-radius: 1rem; padding: clamp(.85rem,2vw,1.4rem); }
.energy-panel h2 { margin: 0 0 .8rem; }
.energy-panel h3 { margin-block: 1.25rem .5rem; }
.energy-panel p { margin: .65rem 0; }
.energy-devices, .energy-options, .energy-fields, .energy-metrics { display: grid; gap: .85rem; }
.energy-devices { grid-template-columns: repeat(3,minmax(0,1fr)); }
.energy-options, .energy-fields { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.energy-devices fieldset { min-width: 0; margin: 0; background: white; border: 1px solid #cbded1; border-radius: .75rem; padding: .65rem; box-shadow: 0 2px 6px #123c2410; }
.energy-devices legend { font-weight: 720; padding-inline: .35rem; }
.energy-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.energy-form input, .energy-form select { width: 100%; padding: .4rem .55rem; border: 1px solid #a9c0b2; border-radius: .45rem; background: white; color: #15342a; }
.energy-form > button { justify-self: start; }
#energy-report { scroll-margin-top: 6rem; }
.energy-metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.energy-metric { background: #e9f3ea; border-radius: .65rem; padding: .9rem; display: grid; }
.energy-metric strong { font-size: 1.55rem; margin-top: .2rem; }
.energy-metric small { font-size: .85rem; }
.energy-breakdown { display: grid; gap: .5rem; }
.energy-breakdown > div { display: grid; gap: .4rem; grid-template-columns: minmax(7rem,1fr) minmax(9rem,2fr); align-items: center; }
.energy-breakdown dd { margin: 0; display: grid; grid-template-columns: minmax(2rem,1fr) auto; gap: .5rem; align-items: center; }
.energy-breakdown meter { width: 100%; height: 1rem; }

.energy-device-main { display:grid; grid-template-columns: 62px minmax(0,1fr); align-items:center; gap: .65rem; margin-bottom:.45rem; }
.energy-device-main img { width:62px; height:62px; border-radius:.6rem; object-fit:cover; }
.energy-device-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; align-items:end; }
.energy-catalog { margin-top:1.4rem; border-top:1px solid #cbded1; }
.energy-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.energy-product { display:grid; grid-template-columns:52px minmax(0,1fr); gap:.75rem; align-items:center; padding:.75rem; background:white; border:1px solid #cbded1; border-radius:.7rem; overflow-wrap:anywhere; }
.energy-product img { width:52px; height:52px; object-fit:contain; }
.energy-product strong, .energy-product small { display:block; margin-bottom:.2rem; }
@media (max-width:850px) {
    .energy-devices, .energy-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:540px) {
    .energy-devices, .energy-products { grid-template-columns:1fr; }
}
