.ovd-main:has(.elec-page) { background: linear-gradient(160deg,#f9fafb,#f1f5f8 60%,#f8f8f6); }
.elec-page { container-name: exterior roof electrical; --roof-dark: #102c47; --elec-night: #111c2b; --elec-glow: #ff9d42; }
.elec-page .elec-hero { color: #fff; background: var(--elec-night); min-height: clamp(440px,40cqi,555px); }
.elec-page .elec-hero h1 { font-size: clamp(32px,3.8cqi,54px); }
.elec-hero h1 em, .elec-hero .ext-benefits svg { color: var(--elec-glow); }
.elec-page .elec-hero .ext-hero__copy { width: 52%; }
.elec-hero .ext-hero__copy > p { color: #e0e9f0; max-width: 41ch; }
.elec-hero .ext-hero__photo { left: 37%; }
.elec-hero .ext-hero__photo img { object-position: 64% center; }
.elec-hero .ext-hero__photo::after { background: linear-gradient(90deg,#111c2b,#111c2bf0 12%,#111c2b8f 24%,transparent 49%); }
.elec-hero .ext-benefits li { border-color: #e0e9f04b; }
.elec-hero .button--primary { background: #ff8a1b; border-color: #ff8a1b; color: #111c2b; }
.elec-hero .button--primary:hover { background: #ffa343; border-color: #ffa343; }
.elec-hero .button--outline { background: #111c2b65; border-color: #c2d0de; color: #fff; }
.elec-hero .button--outline:hover { background: #24435d; }
.elec-hero :is(a,button):focus-visible, .elec-scenes button:focus-visible { outline-color: #fff; }

.elec-tasks .ext-materials__cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.elec-tasks header, .elec-types header { align-self: start; }
.elec-tasks article img { aspect-ratio: 1.55; }
.elec-page .ext-materials h3 { font-size: clamp(16px,1.48cqi,21px); }
.elec-types article img { aspect-ratio: 1.77; }

.elec-scope { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.7fr) minmax(0,1.6fr); gap: var(--ext-gap); align-items: center; }
.elec-scope figure { align-self: stretch; min-width: 0; overflow: hidden; border-radius: 13px; }
.elec-scope img { height: 100%; min-height: 210px; object-fit: cover; }
.elec-scope ul { border-block: 1px solid var(--ext-line); }
.elec-scope li { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: start; padding: 7px 0; }
.elec-scope li + li { border-top: 1px solid var(--ext-line); }
.elec-scope li svg { width: 21px; height: 21px; color: var(--ext-accent); }
.elec-scope li h3 { font-size: 15px; }
.elec-scope li p { margin-top: 3px; font-size: 14px; }

.elec-scenes {
  display: grid;
  grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
  gap: var(--ext-gap);
  align-items: center;
  padding: var(--ext-pad);
  border-radius: var(--ext-radius);
  color: #fff;
  background: var(--elec-night);
}
.elec-scenes header { grid-column: 1 / -1; }
.elec-scenes h2 em { color: var(--elec-glow); }
.elec-scenes p, .elec-scenes figcaption { color: #cad9e7; }
.elec-scenes figcaption, .elec-plan figcaption { margin-top: 7px; font-size: 13px; line-height: 1.35; }
.elec-scenes__stage { position: relative; isolation: isolate; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: #182b3e; }
.elec-scenes__stage img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; }
.elec-scenes__stage .is-previous { opacity: 1; z-index: 1; }
.elec-scenes__stage .is-active { opacity: 1; z-index: 2; }
.elec-scenes__stage .is-revealing { animation: elec-scene-reveal .27s ease-out; }
@keyframes elec-scene-reveal { from { opacity: 0; } to { opacity: 1; } }
.elec-scenes__controls { display: grid; gap: 8px; }
.elec-scenes__controls[hidden] { display: none; }
.elec-scenes__controls button { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; align-items: start; padding: 11px; min-width: 0; border: 1px solid #8b9ca847; border-radius: 11px; background: #ffffff09; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.elec-scenes__controls button:hover { background: #ffffff14; }
.elec-scenes__controls button[aria-pressed="true"] { background: #492e1d; border-color: #ff9d42; }
.elec-scenes__controls svg { width: 23px; height: 23px; color: var(--elec-glow); }
.elec-scenes__controls strong, .elec-scenes__controls small { display: block; line-height: 1.25; }
.elec-scenes__controls strong { font-size: 15px; }
.elec-scenes__controls small { margin-top: 3px; font-size: 13px; color: #d7e2eb; }
.elec-scenes__status { margin-top: 6px; font-size: 13px; }
.elec-scenes__status:empty { display: none; }

.elec-plan { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: var(--ext-gap); }
.elec-plan__render { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: #dbe4ed; }
.elec-plan__render img { height: 100%; object-fit: cover; }
.elec-plan figcaption { color: var(--ext-muted); }
.elec-plan [data-roof-point="outlets"] { --roof-x: 32%; --roof-y: 48%; }
.elec-plan [data-roof-point="switches"] { --roof-x: 12%; --roof-y: 58%; }
.elec-plan [data-roof-point="ceiling"] { --roof-x: 27%; --roof-y: 16%; }
.elec-plan [data-roof-point="accent"] { --roof-x: 58%; --roof-y: 59%; }
.elec-plan [data-roof-point="additional"] { --roof-x: 74.5%; --roof-y: 76%; }

.elec-safety { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,3fr); gap: var(--ext-gap); align-items: center; padding: var(--ext-pad); border-radius: var(--ext-radius); color: #fff; background: linear-gradient(135deg,#183e59,#0b2943); }
.elec-safety h2 em { color: var(--elec-glow); }
.elec-safety p { color: #e0edf5; font-size: 14px; }
.elec-safety ul { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.elec-safety li { display: grid; justify-items: center; align-content: start; gap: 7px; padding-inline: 8px; border-inline-start: 1px solid #ffffff3c; text-align: center; font-size: 14px; line-height: 1.26; font-weight: 700; }
.elec-safety li svg { width: 29px; height: 29px; color: var(--elec-glow); }
.elec-works .roof-works__gallery a:first-of-type img { object-position: center 37%; }
.elec-works .roof-works__gallery a:nth-of-type(3) img { object-position: center 49%; }
.elec-works .roof-works__gallery a:last-of-type img { object-position: center 50%; }
.elec-price ul { grid-template-columns: repeat(5,minmax(0,1fr)); }
.elec-contact .ext-contact__photo img { object-position: 44% center; }

@container electrical (min-width: 1060px) {
  .elec-plan { grid-template-columns: minmax(0,.9fr) minmax(0,3.45fr); }
}
@container electrical (min-width: 1101px) {
  .elec-price { grid-template-columns: minmax(0,1.65fr) minmax(0,3.7fr) minmax(0,1fr); }
  .ovd-main .elec-price h2 { font-size: clamp(27px,2.55cqi,36px); }
}
@container electrical (max-width: 970px) {
  .elec-tasks { grid-template-columns: minmax(0,1fr); }
}
@container electrical (max-width: 780px) {
  .elec-scope { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .elec-scope ul { grid-column: 1 / -1; }
  .elec-scenes { grid-template-columns: minmax(0,1fr); }
  .elec-scenes__controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .elec-safety { grid-template-columns: minmax(0,1fr); }
  .elec-safety li:first-child { border-inline-start: 0; }
}
@container electrical (max-width: 650px) {
  .elec-page .elec-hero { min-height: 0; }
  .elec-page .elec-hero .ext-hero__copy { width: auto; grid-row: 1; }
  .elec-page .elec-hero h1 { font-size: clamp(29px,6.3cqi,39px); }
  .elec-hero .ext-hero__photo { position: relative; inset: auto; grid-row: 2; height: clamp(200px,57cqi,286px); }
  .elec-hero .ext-hero__photo::after { background: linear-gradient(180deg,#111c2b,transparent 27%); }
  .elec-hero .ext-actions { gap: 7px; }
  .elec-hero .ext-actions .button { padding-inline: 8px; font-size: 13px; }
  .elec-tasks .ext-materials__cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .elec-tasks article { display: block; }
  .elec-tasks article img { height: auto; aspect-ratio: 1.35; }
}
@container electrical (max-width: 560px) {
  .elec-scope, .elec-plan .roof-technical__system { grid-template-columns: minmax(0,1fr); }
  .elec-scope img { min-height: 0; max-height: 215px; object-fit: cover; }
  .elec-scenes__controls button { grid-template-columns: minmax(0,1fr); gap: 5px; padding: 8px; }
  .elec-scenes__controls strong { font-size: 14px; }
  .elec-scenes__controls small { font-size: 12px; }
  .elec-safety ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 0; }
  .elec-safety li:nth-child(3) { border-inline-start: 0; }
  .elec-price ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@container electrical (max-width: 340px) {
  .elec-tasks .ext-materials__cards { grid-template-columns: minmax(0,1fr); }
  .elec-tasks article img { aspect-ratio: 1.83; }
  .elec-scenes__controls strong { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .elec-scenes__stage .is-revealing { animation: none; }
}
