/* ENERGOBUILD · ECO GRID V3 / Orbital Atlas
   Screen-only design layer. The V2 content, route and interaction contracts remain intact. */
@media screen {
  :root {
    --g3-void:#0a0e13; --g3-deep:#10171f; --g3-panel:#152129; --g3-raised:#20303a;
    --g3-ink:#f3f9f6; --g3-copy:#c9dad9; --g3-muted:#a8bdc1;
    --g3-lime:#c7ff67; --g3-cyan:#82efff; --g3-amber:#ffcf92; --g3-on:#101b10;
    --g3-line:#5d807d; --g3-line-quiet:#344c53; --g3-radius:1.15rem;
    --g3-rhythm:clamp(1.65rem,4vw,4rem);
    --g3-card:linear-gradient(152deg,#203039 0%,#151f28 100%);
    --g3-band:linear-gradient(118deg,#151f28 0%,#10171e 85%);
    --e2-void:var(--g3-void); --e2-deep:var(--g3-deep); --e2-panel:var(--g3-panel);
    --e2-raised:var(--g3-raised); --e2-fg:var(--g3-ink); --e2-copy:var(--g3-copy);
    --e2-muted:var(--g3-muted); --e2-lime:var(--g3-lime); --e2-cyan:var(--g3-cyan);
    --e2-gold:var(--g3-amber); --e2-dark:var(--g3-on); --e2-line:var(--g3-line);
    --e2-soft:var(--g3-line-quiet); --e2-card:var(--g3-card); --e2-space:var(--g3-rhythm);
  }
  html {background:var(--g3-void)!important}
  html body {
    --eg-band:var(--g3-band);--eg-lime:var(--g3-lime);--eg-cyan:var(--g3-cyan);
    --eg-warm:var(--g3-amber);--eg-on-bright:var(--g3-on);--eg-section:var(--g3-deep);
    --g3-signal:var(--g3-lime);--g3-wash:#283d2e;--g3-glow:#aaff6630;
  }
  html body:is([data-ebv-family="intelligence"],[data-ebv-family="grid"],[data-ebv-family="wind"],[data-ebv-family="ev"]) {
    --g3-signal:var(--g3-cyan);--g3-wash:#1b3944;--g3-glow:#78e9ff29;
  }
  html body:is([data-ebv-family="solar"],[data-ebv-family="heat"],[data-ebv-family="storage"]) {
    --g3-signal:var(--g3-amber);--g3-wash:#3a302a;--g3-glow:#ffcb8827;
  }
  html body[data-ebv-family="legal"] {
    --g3-signal:#b6d6d6;--g3-wash:#203035;--g3-glow:#b6d6d612;
  }
  html body main h1 {letter-spacing:-.047em;line-height:1.07}
  html[lang="bg"] body main h1 {letter-spacing:-.031em}
  html body main :is(h2,h3) {letter-spacing:-.025em}
  html body main :is([class$="-lede"],.lead) {line-height:1.65}
  html body main :is(p,dd,li,summary) {text-underline-offset:.2em}
  html body .eb-opt-header,html body.gateway-page .topbar {
    background:#111a22!important;border-color:var(--g3-line-quiet)!important;
    box-shadow:inset 0 1px #d9fff01a,0 5px 21px #03070d47;
  }
  html body .eb-opt-header__shell {min-block-size:4.05rem}
  html body .eb-opt-brand__mark {
    color:var(--g3-lime);background:linear-gradient(145deg,#355143,#17252d);
    border-color:#8aaa83;text-shadow:0 0 .8rem #caff8f70;
  }
  html body .eb-opt-primary a[aria-current="page"] {background:#273c34;color:var(--g3-lime)!important}
  html body .eb-opt-menu>summary,html body .eb-opt-locales {background:#1b2a33;border-color:var(--g3-line)}
  html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel {
    color:var(--g3-ink);background:#17242c;border-color:var(--g3-line);
    box-shadow:inset 0 1px #e1fff01e,0 20px 64px #05080bc9;
  }
  html body .eb26-footer {background:linear-gradient(145deg,#16232b,#0c1219 75%)!important}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    html body .eb-opt-header,html body.gateway-page .topbar {
      background:linear-gradient(112deg,#26383e86,#141e26ec 65%)!important;
      -webkit-backdrop-filter:blur(16px) saturate(1.13);backdrop-filter:blur(16px) saturate(1.13);
    }
    html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel {
      background:linear-gradient(145deg,#293b42f2,#15212bf5 79%);
      -webkit-backdrop-filter:blur(16px) saturate(1.10);backdrop-filter:blur(16px) saturate(1.10);
    }
  }
  html body main :is(.eb-polished-hero,.gateway-wrap) {
    background:
      radial-gradient(ellipse at 82% 36%,var(--g3-wash),transparent 57%),
      linear-gradient(155deg,#1a2630,#0c131b 78%)!important;
    border-color:var(--g3-line-quiet)!important;
    box-shadow:inset 0 1px #e3fff41a,0 14px 45px #05080c46;
  }
  html body main .eb-polished-hero :is(.eyebrow,[class$="-kicker"]) {color:var(--g3-signal)!important}
  html body main .eb-polished-hero .eg-decor {
    opacity:.56;inline-size:clamp(14rem,46vw,43rem);
  }
  html body main .eb-polished-hero .eg-decor::before {
    background:
      radial-gradient(ellipse at 56% 49%,var(--g3-glow),transparent 60%),
      repeating-linear-gradient(0deg,transparent 0 27px,#8fbab414 28px,transparent 29px),
      repeating-linear-gradient(90deg,transparent 0 27px,#8fbab414 28px,transparent 29px);
    -webkit-mask-image:radial-gradient(ellipse at center,#000 18%,transparent 66%);
    mask-image:radial-gradient(ellipse at center,#000 18%,transparent 66%);
  }
  html body main .eb-polished-hero .eg-decor::after {filter:drop-shadow(0 0 .8rem var(--g3-glow))}
  html body main .eb-polished-hero :is([class$="-orbit-panel"],.eb33-hero-art,.concept-diagram) {
    border-color:var(--g3-line)!important;
    background:
      radial-gradient(ellipse at 70% 16%,var(--g3-wash),transparent 67%),
      var(--g3-card)!important;
    box-shadow:inset 0 1px #e6fff523,0 15px 40px #04080c65;
  }
  html body main .eb-polished-hero [class$="-orbit-panel"] [class$="-ring"] {border-color:var(--g3-signal)}
  html body main :is(.ebp02-waypoints,.ebp03-waypoints,.eb35-jumps,.eb33-jump,.eb37-nav) {
    background:var(--g3-deep)!important;border-color:var(--g3-line-quiet)!important;
  }

  /* Large legacy surfaces and nested cards are addressed by their actual template classes. */
  html body main:not([data-eg-unused]) :is(
    .business-surface,.eb35-section.eb35-light,.eb37-section.eb37-section-light,
    .eb34-section-workstreams,.eb34-case-section,.eb34-trust-section,
    .eb36-govern,.eb42-surface,.eb43-surface,.eb44-surface,.eb45-surface,
    .eb46-surface,.eb47-surface,.eb48-surface,.eb49-surface,.eb50-surface,
    .eb51-surface,.eb52-surface,.eb53-surface,.eb54-surface,.eb-legal-r16,.eb-r15-disclosure
  ) {
    background:var(--g3-band)!important;color:var(--g3-ink)!important;
    border-block-color:var(--g3-line-quiet)!important;
  }
  html body main:not([data-eg-unused]) :is(
    .business-card,.offer-card,.offer-tile,.pme-offers,.eb27-path-item,.eb35-plan,
    .eb35-example,.eb37-section-light .eb37-card,.eb37-step,.eb32-card,.eb31-faq-wrap details,
    .eb-legal-r16-article,.eb-legal-r16-intro,.eb-opt-policy,.eb-r15-inner,.eb-pay-system
  ) {
    background:var(--g3-card)!important;color:var(--g3-ink)!important;
    border-color:var(--g3-line-quiet)!important;
    box-shadow:inset 0 1px #d4fff619,0 .55rem 1.8rem #03070b48;
  }
  html body main :is(.eb35-example,.eb37-section-light,.eb37-step,.eb-legal-r16,.eb-r15-disclosure) :is(p,li,dd,small) {
    color:var(--g3-copy)!important;
  }
  html body main :is(.eb35-example,.eb37-section-light,.eb37-step,.eb-legal-r16,.eb-r15-disclosure) :is(h2,h3,h4) {
    color:var(--g3-ink)!important;
  }
  html body main :is(.eb35-example,.eb37-step,.eb-legal-r16,.eb-r15-disclosure) a:not([class]) {
    color:var(--g3-cyan)!important;
  }
  html body main :is(.eb35-plan,.offer-card) {border-block-start-color:var(--eg-series,var(--g3-lime))!important}
  html body main :is(.pme-business-entry,.eb-opt-enquiry,.eb35-closing,.eb33-close,.eb34-closing) {
    background:radial-gradient(ellipse at 94% 2%,var(--g3-wash),transparent 72%),var(--g3-band)!important;
    border-color:var(--g3-line)!important;
  }
  html body main :is(.eb-chart-card,.eb-motion-lab,.e2-dashboard,.eb-terminal,.energy-showcase) {
    background:var(--g3-card)!important;border-color:var(--g3-line)!important;
    box-shadow:inset 0 1px #d6fff525,0 .75rem 2.5rem #04080d58;
  }
  html body main .e2-dashboard {
    background:radial-gradient(ellipse at 100% 0,var(--g3-wash),transparent 65%),var(--g3-card)!important;
    padding:clamp(1rem,3.5vw,2.25rem);
  }
  html body main .e2-dashboard .e2-plot {background:var(--g3-deep);border-color:var(--g3-line-quiet)}
  html body main .e2-dashboard .e2-bar-track {background:#32464d}
  html body main .e2-dashboard .e2-bar-line {box-shadow:0 0 .45rem #b9ff6729}
  html body main :is([class$="-matrix-scroll"],.eb35-matrix-scroll) {
    background:var(--g3-deep)!important;border-color:var(--g3-line)!important;
    max-inline-size:100%;scrollbar-color:var(--g3-line) var(--g3-deep);
  }
  html body main table :is(th,td) {background:var(--g3-panel)!important;color:var(--g3-ink)!important;border-color:var(--g3-line-quiet)!important}
  html body main table tbody tr:nth-child(even) :is(th,td) {background:#1c2a34!important}
  html body main table thead th {background:#25383d!important;color:var(--g3-lime)!important}
  html body main .eb31-faq-wrap details[open] {border-color:var(--g3-line)!important}
  html body main .eb31-faq-wrap details>summary:focus-visible {outline:3px solid var(--g3-lime)!important;outline-offset:-5px!important}
  html body main :is([class$="-matrix-scroll"],.eb35-matrix-scroll):focus-visible {
    outline:3px solid var(--g3-lime);outline-offset:-4px;
  }

  /* Home signature. The new illustration is a local 3D render, with CSS and an SVG fallback. */
  html body[data-ebv-family="home"] main .hero.eb30-spectacle {
    width:min(87.5rem,calc(100% - clamp(1.4rem,5.2vw,5rem)));
    grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);
    padding:clamp(1.5rem,3vw,3rem)!important;
    gap:clamp(.9rem,2.7vw,2.9rem);min-block-size:clamp(26rem,40vw,34rem);
    border-radius:clamp(1.35rem,3vw,2.5rem);
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-hero-copy {
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle h1 {
    font-size:clamp(2.18rem,4.65vw,4.65rem);max-inline-size:17ch;
    line-height:1.02;margin-block:.32em .34em;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-accent {
    color:var(--g3-lime);background:none;text-shadow:0 0 .55em #c7ff6721;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .lead {
    font-size:clamp(1rem,1.5vw,1.12rem);max-inline-size:55ch;
    margin-block-end:1.15rem;line-height:1.63;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .status {color:var(--g3-lime);background:#142222}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb-journey-credibility {
    color:var(--g3-muted);opacity:1;margin-block:0;font-size:.78rem;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .hero-actions {margin-block-end:.8rem}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .hero-actions>a {min-block-size:48px;padding:.62rem .88rem}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eg-decor {opacity:.28}
  html body main .hero.eb30-spectacle .eb30-orb-stage {
    min-block-size:0;min-inline-size:0;aspect-ratio:1.07;
    max-inline-size:37rem;justify-self:center;isolation:isolate;
  }
  html body main .hero.eb30-spectacle .eb30-orb-stage::before {
    content:"";position:absolute;inset:2%;z-index:-1;border-radius:50%;pointer-events:none;
    background:
      radial-gradient(circle,#6db75b36 0%,#4b986622 37%,transparent 72%),
      radial-gradient(circle at 51% 50%,transparent 55%,#71c9bd35 55.3%,transparent 55.7%);
  }
  html body main .hero.eb30-spectacle .eb30-orb-stage::after {
    content:"";position:absolute;inset:-1%;z-index:1;pointer-events:none;
    background:
      url("/assets/eb-eco-grid-v3-orbit.webp") center/contain no-repeat,
      radial-gradient(ellipse at center,#0c171b 17%,transparent 62%),
      url("/assets/eb-eco-grid-orbit.svg") center/92% auto no-repeat;
  }
  html body main .hero.eb30-spectacle :is(.eb30-orb-field,.eb30-orb-axis,.eb30-orb-ring,.eb30-orb-globe,.eb30-orb-node) {display:none}
  html body main .hero.eb30-spectacle .eb30-orb-caption {
    z-index:3;bottom:9%;left:1%;background:#14232dea;color:var(--g3-ink);
    border-color:#759b90;border-radius:.78rem;padding:.7rem .85rem;
  }
  html body main .hero.eb30-spectacle .eb30-orb-caption--b {top:10%;right:0;bottom:auto;left:auto}
  html body main .hero.eb30-spectacle .eb30-orb-caption strong {color:var(--g3-lime)}
  html body main .hero.eb30-spectacle .eb30-orb-caption--b strong {color:var(--g3-cyan)}
  html body main .pme-quick-grid>a {box-shadow:inset 0 1px #e7fff523,0 .7rem 2rem #03070b5e}
}
@media screen and (max-width:56rem) {
  html body[data-ebv-family="home"] main .hero.eb30-spectacle {
    grid-template-columns:minmax(0,1fr);gap:.55rem;min-block-size:0;
  }
  html body main .hero.eb30-spectacle .eb30-orb-stage {
    max-inline-size:min(100%,28rem);aspect-ratio:1.29;margin:0 auto;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle h1 {font-size:clamp(2.05rem,6.9vw,3.9rem);max-inline-size:20ch}
}
@media screen and (max-width:45rem) {
  html body .eb-opt-header__shell {min-block-size:3.7rem}
  html body .eb-opt-header__actions,html body .eb-opt-locales {gap:.25rem!important}
  html body .eb-opt-menu__panel {
    position:absolute;inset:calc(100% + .5rem) 0 auto auto;
    inline-size:min(25rem,calc(100vw - 1.5rem));max-inline-size:calc(100vw - 1.5rem);
  }
  html body .eb-opt-menu__panel :is(.eb-opt-menu__group,.eb-opt-menu__topics) {min-inline-size:0}
  html body .eb-opt-menu__panel a {overflow-wrap:anywhere}
  html body[data-ebv-family="home"] main .hero.eb30-spectacle {
    margin-block-start:.75rem;padding:.65rem!important;
  }
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .hero-actions>a {flex:1 1 auto}
  html body main .hero.eb30-spectacle .eb30-orb-stage {aspect-ratio:1.18}
  html body main .hero.eb30-spectacle .eb30-orb-caption {font-size:.54rem;max-inline-size:9.3rem;padding:.42rem .48rem}
  html body main .hero.eb30-spectacle .eb30-orb-caption strong {font-size:.56rem}
  html body main .hero.eb30-spectacle .eb30-orb-caption--b {top:7%}
  html body main .eb-polished-hero .eg-decor {inline-size:min(74vw,24rem);opacity:.29}
}
@media screen and (prefers-reduced-motion:no-preference) {
  html[data-eb-home-motion="running"] body:not(.ebf-motion-paused) main .hero.eb30-spectacle .eb30-orb-stage::after {
    animation:g3-orbit-arrival 2.1s cubic-bezier(.21,.72,.23,1) 1;
  }
  @media (hover:hover) and (pointer:fine) {
    html[data-eb-home-motion="running"] body:not(.ebf-motion-paused) main .hero.eb30-spectacle .eb30-orb-stage::after {
      transition:transform .55s cubic-bezier(.22,.64,.23,1);
    }
    html[data-eb-home-motion="running"] body:not(.ebf-motion-paused) main .hero.eb30-spectacle:hover .eb30-orb-stage::after {
      transform:perspective(52rem) translate3d(0,-.35rem,0) rotateX(4deg) rotateY(-6deg) scale(1.027);
    }
    html body main .pme-quick-grid>a:hover {box-shadow:inset 0 1px #e7fff53e,0 .7rem 2rem #04080d7e;border-color:var(--g3-line)}
  }
}
@keyframes g3-orbit-arrival {from{transform:perspective(52rem) translate3d(0,.35rem,0) rotateY(7deg) scale(.975)}to{transform:none}}
@media screen and (prefers-reduced-motion:reduce) {
  html body main .hero.eb30-spectacle .eb30-orb-stage::after,
  html body main .eb-polished-hero .eg-decor::before,
  html body main .eb-polished-hero .eg-decor::after {
    transform:none!important;animation:none!important;transition:none!important;
  }
}
@media screen and (prefers-reduced-transparency:reduce) {
  html body .eb-opt-header,html body.gateway-page .topbar,
  html body .eb-opt-menu__panel,html body #eb16-consent .eb16-panel,
  html body[data-ebv-family="home"] main .hero.eb30-spectacle .eb30-hero-copy {
    background:#17242c!important;-webkit-backdrop-filter:none;backdrop-filter:none;
  }
}
@media screen and (forced-colors:active) {
  html body .eb-opt-header,html body .eb-opt-menu__panel {background:Canvas!important;border-color:CanvasText!important}
  html body main .hero.eb30-spectacle .eb30-orb-stage {display:none}
  html body main .eb31-faq-wrap details>summary:focus-visible {outline-color:Highlight!important}
}


/* ===== EB FACTORY r2 · first-visit consent notice must not cover the hero =====
   r1 capped the sheet height, but at 320x844 the second BG CTA still ended at
   787px while any bottom sheet started above it. r2 docks the AUTO-OPENED
   notice to the top as a compact bar and leaves the full panel (categories,
   save, policy link, small print) one tap away behind the existing launcher.
   No consent policy or choice logic changed: same manager calls, same strings,
   same buttons, same order. Only presentation differs. */
@media (max-width:900px){
  #eb16-consent[data-eb16-auto]{top:10px;bottom:auto;left:10px;right:10px;width:auto}
  #eb16-consent[data-eb16-auto] .eb16-panel{max-height:150px!important;margin:0;padding:12px 13px;border-radius:14px}
  #eb16-consent[data-eb16-auto] .eb16-title{font-size:16px}
  #eb16-consent[data-eb16-auto] .eb16-brand{font-size:9px;margin-bottom:2px}
  #eb16-consent[data-eb16-auto] .eb16-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 8px;font-size:12px;line-height:1.4}
  #eb16-consent[data-eb16-auto] .eb16-status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;margin:6px 0 0;font-size:10.5px}
  #eb16-consent[data-eb16-auto] .eb16-choices,
  #eb16-consent[data-eb16-auto] .eb16-policy-line,
  #eb16-consent[data-eb16-auto] .eb16-fine,
  #eb16-consent[data-eb16-auto] .eb16-save{display:none!important}
  #eb16-consent[data-eb16-auto] .eb16-actions{grid-template-columns:1fr 1fr;gap:6px}
  #eb16-consent[data-eb16-auto] .eb16-action{min-height:42px;font-size:12.5px;padding:6px 8px}
  #eb16-consent[data-eb16-auto] .eb16-close{width:40px;height:40px;font-size:22px}
  #eb16-consent[data-eb16-auto] .eb16-launch{margin:6px 0 0;min-height:40px;min-width:0;padding:8px 14px;font-size:12px}
}
@media (max-width:360px){
  #eb16-consent[data-eb16-auto] .eb16-desc{-webkit-line-clamp:1}
}
/* r2d: <=900px — the notice pushes the page down so it covers neither the
   header (menu, locale) nor the hero CTA. At 320px the CTAs sit just below
   the fold and need one short scroll; nothing is overlapped. */
@media (max-width:900px){
  body:has(#eb16-consent[data-eb16-auto]){padding-top:168px}
}
/* r2e: the fixed consent container is full-width and its box extended over the
   header, intercepting clicks on the menu at some widths. Only its children
   should take pointer events. */
@media (max-width:900px){
  #eb16-consent[data-eb16-auto]{pointer-events:none}
  #eb16-consent[data-eb16-auto] .eb16-panel,
  #eb16-consent[data-eb16-auto] .eb16-launch{pointer-events:auto}
}

/* Professional upgrade: initial desktop notice leaves the orbital scene readable.
   The existing settings launcher exposes the complete explanation and controls. */
@media (min-width:901px){
 #eb16-consent[data-eb16-auto]{width:380px;max-width:calc(100vw - 32px)}
 #eb16-consent[data-eb16-auto] .eb16-panel{max-height:240px;overflow:auto;padding:16px}
 #eb16-consent[data-eb16-auto] .eb16-choices,
 #eb16-consent[data-eb16-auto] .eb16-save,
 #eb16-consent[data-eb16-auto] .eb16-fine{display:none}
 #eb16-consent[data-eb16-auto] .eb16-desc{font-size:13px;line-height:1.45;margin:8px 0}
 #eb16-consent[data-eb16-auto] .eb16-title{font-size:18px}
}

/* Reserve the initial privacy notice before its deferred script mounts.
   No-JS browsers do not reserve space; closing the notice releases it. */
@media (max-width:900px) and (scripting:enabled){
  html body:not(:has(#eb16-consent)){padding-top:168px}
}
