/* ENERGENIX 1.4 — additive layout layer (keeps approved brand and animations) */
:root{--cms-navy:#0a2455;--cms-blue:#146be8;--cms-sky:#44ccff;--cms-paper:#f4f8fe}
/* Clear, full-height topic rhythm on every subpage. Longer content is never clipped. */
body.subpage main>section{min-height:100svh;display:flex;align-items:center;position:relative}
body.subpage main>section>.container{width:min(1200px,calc(100% - 52px));margin-inline:auto}
body.subpage main>.sub-hero{padding-block:max(130px,12vh) max(66px,7vh)}
body.subpage main>.sub-section{padding-block:clamp(90px,12vh,140px)}
body.subpage main>.sub-insight{padding-block:clamp(75px,10vh,140px)}
body.subpage main>.sub-cta{padding-block:clamp(80px,12vh,130px)}
body.subpage main>.cms-dynamic{padding-block:clamp(80px,11vh,130px)}
body.subpage main>section:where(.sub-hero,.sub-section,.sub-insight,.sub-cta,.cms-dynamic){scroll-margin-top:0}
/* Photo detail art, built from an original Energenix concept image crop. */
.cms-detail-visual{border-radius:26px;overflow:hidden;position:relative;min-height:370px;border:1px solid rgba(135,197,254,.38);box-shadow:0 28px 85px rgba(0,15,51,.35)}
.cms-detail-visual img{display:block;width:100%;height:100%;min-height:370px;position:absolute;inset:0;object-fit:cover;animation:photo-drift 15s ease-in-out infinite alternate}
.cms-detail-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(125deg,rgba(5,33,92,.38),transparent 58%);pointer-events:none}
@keyframes photo-drift{0%{transform:scale(1.02)}100%{transform:scale(1.1)}}
.cms-hero-photowash{position:absolute;inset:0 0 0 40%;background:url('hero-energia.jpg') center/cover no-repeat;opacity:.16;mask-image:linear-gradient(90deg,transparent,#000 55%);pointer-events:none;z-index:0;animation:hero-wash 16s ease-in-out infinite alternate}
@keyframes hero-wash{to{transform:scale(1.045);opacity:.24}}
.cms-dynamic{background:#f5f9ff;color:#0d2c61;position:relative}
.cms-dynamic.alt{background:linear-gradient(140deg,#eff7ff,#fff)}
.cms-dynamic .container{width:min(1200px,calc(100% - 52px));margin-inline:auto}
.cms-kicker{display:inline-flex;align-items:center;gap:10px;color:#1578e7;font-size:11px;letter-spacing:.15em;font-weight:800;text-transform:uppercase}
.cms-kicker::before{content:"";display:inline-block;width:25px;height:2px;background:#299cff}
.cms-dynamic-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:26px}
.cms-dynamic h2{font-size:clamp(30px,3.5vw,48px);margin:12px 0 0;letter-spacing:-.05em;line-height:1.12;color:#0a2753}
.cms-dynamic-head p{max-width:490px;color:#657a96;font-size:15px;line-height:1.65}
.cms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.cms-card{display:flex;flex-direction:column;min-height:310px;background:#fff;border:1px solid #e0eafa;box-shadow:0 17px 45px rgba(13,63,126,.05);border-radius:22px;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.cms-card:hover{transform:translateY(-5px);box-shadow:0 23px 50px rgba(18,76,160,.13)}
.cms-card-media{height:145px;position:relative;overflow:hidden;background:linear-gradient(120deg,#0c336a,#299cff)}
.cms-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s ease}
.cms-card:hover .cms-card-media img{transform:scale(1.065)}
.cms-card-body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1}
.cms-card-tag{font-size:10px;letter-spacing:.12em;font-weight:800;text-transform:uppercase;color:#167ce1}
.cms-card h3{font-size:22px;line-height:1.2;letter-spacing:-.035em;margin:0;color:#102e61}
.cms-card p{font-size:14px;line-height:1.65;color:#607895;margin:0;flex:1}
.cms-card a.cms-link{color:#0a65d5;font-weight:750;font-size:13px;display:inline-flex;gap:9px;margin-top:12px;align-self:flex-start}
.cms-empty{padding:38px;border:1px dashed #b8d3f0;border-radius:20px;background:#fff;color:#59708c;line-height:1.65}
.cms-empty strong{display:block;color:#102e61;font-size:18px;margin-bottom:4px}
.cms-detail-body p{line-height:1.72;color:#4d6e91}
.cms-service-status{display:inline-flex;gap:7px;align-items:center;font-size:11px;border:1px solid #bcd8f6;color:#0b62ca;background:#eff8ff;border-radius:999px;padding:8px 12px;margin-top:18px}
.cms-article-page{min-height:calc(100svh - 80px);padding:145px 0 90px;background:#f5f9ff}
.cms-article{max-width:850px;margin:auto;background:#fff;padding:clamp(24px,5vw,65px);border-radius:25px;border:1px solid #e2ebf7;box-shadow:0 18px 45px rgba(13,65,140,.07)}
.cms-article h1{font-size:clamp(32px,5vw,54px);letter-spacing:-.055em;line-height:1.1;color:#102c61}
.cms-article .lead{font-size:18px;line-height:1.8;color:#617c9b}
.cms-article .prose p{font-size:16px;line-height:1.9;color:#3f5d7b;white-space:pre-wrap}
.cms-article .prose img{max-width:100%;border-radius:16px}
.cms-article .cms-back{display:inline-flex;font-weight:700;color:#1468e7;gap:6px;margin-top:32px}
@media(max-width:980px){.cms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-dynamic-head{display:block}.cms-detail-visual{min-height:300px}.cms-detail-visual img{min-height:300px}}
@media(max-width:700px){body.subpage main>section{min-height:100svh}body.subpage main>section>.container,.cms-dynamic .container{width:min(100% - 34px,1200px)}body.subpage main>.sub-hero{padding-block:120px 72px}body.subpage main>.sub-section,body.subpage main>.sub-insight,body.subpage main>.sub-cta,body.subpage main>.cms-dynamic{padding-block:85px}.cms-grid{grid-template-columns:1fr;gap:14px}.cms-card{min-height:0}.cms-detail-visual{min-height:255px}.cms-detail-visual img{min-height:255px}.cms-dynamic h2{font-size:clamp(27px,8vw,37px)}.cms-hero-photowash{inset:30% 0 0 0;opacity:.12}}
@media(prefers-reduced-motion:reduce){.cms-detail-visual img,.cms-hero-photowash{animation:none!important}.cms-card,.cms-card-media img{transition:none!important}}

/* Long Hungarian technical compound words remain readable on narrow screens. */
.sub-hero h1{overflow-wrap:anywhere}
@media(max-width:700px){.sub-hero h1{font-size:clamp(34px,9vw,44px);letter-spacing:-.055em}}


/* ENERGENIX 1.4.1 – teljes képernyős témablokkok, professzionális olvashatóság */
:root { scroll-padding-top:0; }
body.subpage main > section { min-block-size:100svh; min-height:100svh; height:auto; overflow:visible; }
body.subpage main > section > .container { flex:0 1 auto; }
body.home main > section.section,
body.home main > section.fmv-section,
body.home main > section.cms-dynamic { min-block-size:100svh; min-height:100svh; height:auto; display:flex; align-items:center; }
body.home main > section.section > .container,
body.home main > section.fmv-section > .container,
body.home main > section.cms-dynamic > .container { width:min(1200px,calc(100% - 52px)); margin-inline:auto; }
/* A rövid információs sáv a főoldali nyitóképernyő része marad. */
body.home main > section.stripe { min-height:unset; }
@media(min-width:801px) and (prefers-reduced-motion:no-preference) {
  html:has(body.subpage), html:has(body.home) { scroll-snap-type:y proximity; }
  body.subpage main > section, body.home main > section:not(.stripe) { scroll-snap-align:start; scroll-snap-stop:normal; }
}
/* A részletes, sok szöveget tartalmazó szakasz teljes magasságra kibővülhet. */
body.subpage .detail-card p { line-height:1.7; }
body.subpage .section-head p { line-height:1.78; }
body.subpage main > section, body.home main > section { overflow-wrap:break-word; }
@media(max-width:800px) {
  html:has(body.subpage), html:has(body.home) {scroll-snap-type:none;}
  body.home main > section.section,
  body.home main > section.fmv-section,
  body.home main > section.cms-dynamic { display:flex; min-height:100svh; height:auto; }
  body.home main > section.section > .container,
  body.home main > section.fmv-section > .container,
  body.home main > section.cms-dynamic > .container { width:min(100% - 34px,1200px); }
}
@media (prefers-reduced-motion:reduce){html:has(body.subpage), html:has(body.home){scroll-behavior:auto;scroll-snap-type:none}}
/* 1.4.1 végső finomítás: a főoldali záró CTA önálló, képernyőnyi témakör. */
body.home main > section.cta-band {min-height:100svh;min-block-size:100svh;height:auto;display:flex;align-items:center;overflow:visible}
body.home main > section.cta-band > .container{width:min(1200px,calc(100% - 52px));margin-inline:auto}
@media(max-width:800px){body.home main > section.cta-band > .container{width:min(100% - 34px,1200px)}}
/* A CTA sáv díszítő fényei ne okozzanak vízszintes görgetést; a tartalom magassága maradjon rugalmas. */
body.home main > section.cta-band{overflow-x:clip;overflow-y:visible}
