/* ФАЗА · шалфей, 13.11.2026.
   Стена приглушённого зелёного цвета, блоки как отделочные материалы: лён, светлый дуб, камень, мох.
   На дальнем плане план квартиры, по медным трассам от щита бегут токи. Слой подключается последним. */

:root,html[data-light=day]{
  color-scheme:light;
  --wall:#a9af9a;--wall2:#9ba28c;--wall3:#8f9681;
  --paper:239,236,227;--ink:35,39,32;--acc:154,90,50;--lc:255,196,119;--sage:93,102,80;--grn:63,107,69;--rd:168,64,44;
  --bg:#a9af9a;--bg2:rgba(240,237,228,.72);--bg3:#f4f1ea;
  --surface:rgba(240,237,228,.74);--surface-raised:#f4f1ea;--surface-inset:rgba(226,224,212,.8);--solid:#efebe1;
  --panel:var(--surface);--panel2:var(--surface-raised);--panel-solid:var(--solid);--panel-soft:rgba(240,237,228,.6);
  --text:#21251e;--text2:#30362b;--muted:#363c31;--dim:#3c4237;
  --volt:#8a4f2b;--volt2:#a5643a;--volt-ink:#fff;--volt-text:#5f3117;--red-text:#6f2010;
  --deep:#2f3a2c;--deep2:#3b4837;--deep-ink:#f1eee4;
  --cyan:#4b5a44;--green:#3f6b45;--red:#a8402c;
  --oak:#d9c09a;--linen:#e9e3d6;--stone:#ece7dc;--moss:#5d6650;
  --line:rgba(33,37,30,.14);--line2:rgba(33,37,30,.24);
  --window-light:transparent;--window-wash:transparent;--lamp-wash:transparent;--lamp-edge:transparent;
  --r:14px;--r-sm:10px;
  --shadow:0 14px 30px -22px rgba(30,36,26,.75);
}

/* ---------- стена и схема на дальнем плане ---------- */
html{background:var(--wall)}
body{background:linear-gradient(180deg,var(--wall),var(--wall2) 55%,var(--wall3)) fixed;color:var(--text)}
body::before{background:radial-gradient(120% 55% at 85% 0%,rgba(255,255,255,.2),transparent 60%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .012' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.42'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.75;mix-blend-mode:soft-light}
body::after,body.home::after{background:none!important}
.bg-wiring{display:none!important}
.sg-defs{position:absolute;width:0;height:0;overflow:hidden}
.sg-wall{position:fixed;inset:0;z-index:-2;pointer-events:none}
.sg-bg{position:absolute;inset:0;width:100%;height:100%}
.sg-bg-d{display:none}
@media (min-width:700px){.sg-bg-m{display:none}.sg-bg-d{display:block}}
.sg-bg *{vector-effect:non-scaling-stroke}
.sg-walls path{fill:none;stroke:rgba(241,243,233,.42);stroke-width:2.2}
.sg-thin path,.sg-thin circle{fill:none;stroke:rgba(241,243,233,.24);stroke-width:1}
.sg-dash{stroke-dasharray:4 4}
.sg-routes path{fill:none;stroke:rgba(243,214,173,.62);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.sg-sockets path{fill:none;stroke:rgba(243,226,200,.55);stroke-width:1.2}
.sg-lamp{fill:none;stroke:rgba(243,226,200,.62);stroke-width:1.2}
.sg-lamp-x{fill:none;stroke:rgba(243,226,200,.62);stroke-width:1.1}
.sg-lamp-halo{fill:url(#sgHalo);opacity:.55}
.sg-panel{fill:rgba(47,58,44,.35);stroke:rgba(243,226,200,.7);stroke-width:1.2}
.sg-pulse,.sg-pulse-glow{fill:none;stroke-linecap:round;stroke-dasharray:7 93;stroke-dashoffset:100;animation:sg-run 7s linear infinite}
.sg-pulse-glow{stroke:rgba(255,190,105,.42);stroke-width:7}
.sg-pulse{stroke:#fff6e6;stroke-width:1.7}
.sg-bg .sg-pulse-glow{stroke-width:8}
@keyframes sg-run{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
html.sg-paused .sg-pulse,html.sg-paused .sg-pulse-glow{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.sg-pulse,.sg-pulse-glow{animation:none;stroke-dashoffset:60}}

/* ---------- типографика и общие блоки ---------- */
.h1,.h2,.h-display,.sg-h1{font-family:var(--serif);font-weight:500;letter-spacing:-.015em;color:var(--text)}
.eyebrow{color:var(--muted);letter-spacing:.16em;text-transform:uppercase;font-size:11.5px;font-weight:600}
.eyebrow::before{background:var(--volt)!important}
.section-intro,.lead{color:var(--text2)}
a{color:inherit}
.link-more{color:var(--volt);font-weight:650}
.prose a,.faq a,.footer a:hover{color:var(--volt)}

.btn{border-radius:10px;font-weight:700}
.btn-volt,.sg-btn{background:var(--deep);color:var(--deep-ink);border:0;box-shadow:0 12px 24px -16px rgba(20,26,18,.9)}
.btn-volt:hover,.sg-btn:hover{background:var(--deep2);color:var(--deep-ink)}
.btn-ghost,.btn-quiet{background:rgba(240,237,228,.5);color:var(--text);border:1px solid var(--line2)}
.btn-ghost:hover,.btn-quiet:hover{background:rgba(240,237,228,.85);border-color:var(--deep)}

/* карточки: лён, полупрозрачно, без тяжёлой заливки */
.svc-group,.show-panel,.solution-panel,.geo-stage,.emg-strip,.faq-item,.inline-form,.calc,.price-group,.emg-card,.cause,.emg-call,.emg-price,.svc,.work-card,.article-card,.side-prices,.dist,.photo-surface,.cable-passport{background:var(--surface);border:1px solid rgba(255,255,255,.35);box-shadow:var(--shadow);color:var(--text)}
.modal-card,.quick-dialog,.mobile-menu,.lighting-panel,.geo-tip,dialog{background:var(--solid);color:var(--text)}
.modal::backdrop,.quick-dialog::backdrop{background:rgba(33,40,30,.5)}
input,select,textarea{background:#f7f5ef;color:var(--text);border-color:var(--line2)}
.field input,.field textarea,.field select{background:#f7f5ef;border:1px solid var(--line2);color:var(--text)}

/* ---------- шапка ---------- */
.nav,.nav.scrolled{background:#a3a98f;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--line);box-shadow:0 8px 18px -14px rgba(20,24,18,.55)}
.logo-mark{background:none;border:0;color:var(--deep)}
.logo-text b{font-family:"Unbounded",var(--display);letter-spacing:.06em}
.logo-text small{color:var(--muted)}
.nav-links a{color:var(--text2)}.nav-links a[aria-current=page],.nav-links a:hover{color:var(--text)}
.nav-phone{color:var(--text)}
.burger{border:0;background:none;color:var(--text)}
.mobile-menu{border-bottom:1px solid var(--line)}

/* ---------- первый экран ---------- */
.sg-hero{padding:28px 0 36px;position:relative}
.sg-hero .hero-circuit,.sg-hero .hero-glow{display:none}
.sg-hero-grid{display:grid;gap:0;grid-template-columns:1fr}
.sg-place{display:inline-block;font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600;text-decoration:none}
.sg-h1{font-size:clamp(34px,9.4vw,64px);line-height:1.05;margin:10px 0 12px;max-width:12em}
.sg-lead{font-size:15px;line-height:1.55;color:var(--text2);max-width:34ch;margin:0}
.sg-act{display:flex;gap:10px;margin-top:20px}
.sg-btn{flex:1;display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 22px;font-size:15.5px;text-decoration:none}
.sg-call{display:flex;align-items:center;justify-content:center;gap:10px;min-width:52px;min-height:52px;border-radius:10px;border:1px solid rgba(33,37,30,.3);color:var(--text);text-decoration:none;font-weight:700}
.sg-call svg{width:20px;height:20px}
.sg-call span{display:none}
.sg-proof{display:none;margin:18px 0 0;font-size:13px;color:var(--muted)}
.sg-plan{margin:22px 0 0;border-radius:12px;background:#f0ece2;padding:12px 14px 10px;box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 16px 30px -22px rgba(0,0,0,.6)}
.sg-plan-svg{display:block;width:100%;height:auto;aspect-ratio:330/150;border-radius:6px}
.sg-plan figcaption{display:flex;justify-content:space-between;align-items:center;margin-top:7px;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#65685b}
.sg-plan figcaption i{display:inline-block;vertical-align:middle;margin:0 6px 0 0}
.sg-plan figcaption i+i,.sg-k-socket{margin-left:12px!important}
.sg-k-light{width:7px;height:7px;border-radius:50%;background:#9a5a32;box-shadow:0 0 0 3px rgba(255,190,105,.35)}
.sg-k-socket{width:9px;height:5px;border:1.4px solid #9a5a32;border-top:0;border-radius:0 0 6px 6px}
.sg-room{stroke:none}.r1{fill:#e6e1d2}.r2{fill:#ebe6d9}.r3{fill:#e4e5d6}.r4{fill:#efebe1}
.sg-furn path,.sg-furn rect,.sg-furn circle{fill:none;stroke:#9aa08c;stroke-width:.8;opacity:.85}
.sg-pw{fill:none;stroke:#5f6356;stroke-width:2.4}
.sg-pd{fill:none;stroke:#5f6356;stroke-width:.8;opacity:.6}
.sg-pt text{font:600 7.5px var(--sans);fill:#5f6356;letter-spacing:.06em}
.sg-halo{fill:url(#sgHalo)}
.sg-pr path{fill:none;stroke:#9a5a32;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.85}
.sg-plan .sg-pulse-glow{stroke:rgba(255,170,80,.55);stroke-width:4}
.sg-plan .sg-pulse{stroke:#fff4e2;stroke-width:1.3;stroke-dasharray:10 90}
.sg-plan .sg-pulse-glow{stroke-dasharray:10 90}
.sg-pl circle{fill:#f0ece2;stroke:#9a5a32;stroke-width:1.2}
.sg-plx{stroke:#9a5a32;stroke-width:1.1;fill:none}
.sg-ps{fill:none;stroke:#9a5a32;stroke-width:1.2}
.sg-sw circle{fill:#9a5a32}
.sg-shield{fill:#3d4636}.sg-breakers{stroke:#ffcf8a;stroke-width:1.2}
.sg-shield-t{font:700 7.5px var(--sans);fill:#9a5a32}

.sg-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.sg-tile{min-height:94px;border-radius:10px;padding:11px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-decoration:none;color:var(--text);font-size:13.5px;line-height:1.2;box-shadow:0 12px 22px -18px rgba(0,0,0,.75);transition:transform .2s var(--ease)}
.sg-tile:hover{transform:translateY(-2px)}
.sg-tile b{font-weight:700}
.sg-tile small{font-size:11.5px;opacity:.78;font-weight:500}
.t-oak{background:repeating-linear-gradient(90deg,rgba(120,80,40,0) 0 9px,rgba(120,80,40,.06) 9px 10px,rgba(120,80,40,0) 10px 23px),linear-gradient(180deg,#d9c09a,#cfb48c)}
.t-stone{background:radial-gradient(circle at 30% 20%,rgba(255,255,255,.55),transparent 55%),repeating-linear-gradient(0deg,rgba(140,120,100,0) 0 13px,rgba(140,120,100,.09) 13px 14px),#ece7dc}
.t-moss{background:linear-gradient(160deg,#6c765d,#56604a);color:#eef0e6}

@media (min-width:700px){
  .sg-call span{display:inline}.sg-call{padding:0 20px}
  .sg-btn{flex:0 0 auto}
  .sg-proof{display:block}
  .sg-tiles small{font-size:12.5px}
  .sg-tile{min-height:110px;padding:14px;font-size:15px}
}
@media (min-width:980px){
  .sg-hero{padding:56px 0 64px}
  .sg-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);column-gap:56px;align-items:start}
  .sg-copy{grid-column:1;grid-row:1}
  .sg-plan{grid-column:2;grid-row:1/span 3;margin:0;padding:18px 20px 14px}
  .sg-tiles{grid-column:1;grid-row:2;margin-top:28px}
  .sg-urgent{grid-column:1;grid-row:3}
  .sg-lead{font-size:17px}
}

/* ---------- свёртки для телефона ---------- */
.sg-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:14px 16px;margin-top:14px;border-radius:12px;background:var(--surface);border:1px solid rgba(255,255,255,.35);box-shadow:var(--shadow);font-weight:700;color:var(--text)}
.sg-fold>summary::-webkit-details-marker{display:none}
.sg-fold>summary small{font-weight:500;color:var(--muted);font-size:13px}
.sg-fold>summary::after{content:"";flex:none;width:9px;height:9px;border-right:1.6px solid var(--text);border-bottom:1.6px solid var(--text);transform:rotate(45deg);margin:-4px 4px 0 0;transition:transform .2s}
.sg-fold[open]>summary::after{transform:rotate(225deg);margin-top:4px}
.sg-fold[open]>summary small{visibility:hidden}
.sg-geo-head{margin-bottom:4px}
.sg-geo-head .h2{margin:6px 0 8px}
.sg-geo-fold .geo-head{display:none}
@media (min-width:980px){
  .sg-fold>summary{display:none}
  .sg-geo-head{display:none}.sg-geo-fold .geo-head{display:block}
}
.sg-m-only{display:none}
@media (max-width:979px){
  .sg-m-only{display:flex;margin-top:18px;width:100%}
  .final-cta .sg-d-only{display:none}
}

/* ---------- блоки главной ---------- */
.show-tabs{display:flex!important;border-bottom:0;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:2px 20px 4px}.show-tabs [role=tab]{flex:none}
.show-tabs [role=tab]{border-radius:999px;border:1px solid var(--line2);padding:8px 14px;color:var(--text2);white-space:nowrap;background:rgba(240,237,228,.4)}
.show-tabs [role=tab][aria-selected=true]{background:var(--deep);color:var(--deep-ink);border-color:var(--deep)}
.show-tabs [role=tab]::after{display:none}
.emg-links a{background:rgba(240,237,228,.6);border:1px solid rgba(255,255,255,.35);color:var(--text)}
.emg-links a svg{color:var(--volt)}
.faq-item{border-radius:12px;margin-bottom:8px;padding:0 16px}.faq-item summary{color:var(--text);padding-left:0}.faq-item .faq-a{padding-left:0}
.svc-list a{color:var(--text)}
.svc-ic,.r-ic{color:var(--volt)}

@media (max-width:699px){
  .section{padding:44px 0}
  .h2{font-size:28px;line-height:1.12}
  .show-panel .solution-photo img{aspect-ratio:16/10;object-fit:cover}
  .geo-stage{padding:14px}
}

/* ---------- подвал и нижняя панель ---------- */
.footer{background:rgba(47,58,44,.92);color:#e9ebe0;border-top:0}
.footer a,.footer summary,.footer .footer-phone{color:#eef0e6}
.footer-bottom,.footer p{color:#c9cdbd}
.footer .logo-mark{color:#e9d3b1}.footer .logo-text b{color:#f1eee4}.footer .logo-text small{color:#c9cdbd}
.sg-motion{margin-left:auto;font-size:12.5px;color:#c9cdbd;text-decoration:underline;text-underline-offset:3px;background:none;border:0;cursor:pointer;padding:6px 0}
.dock{background:rgba(160,167,146,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:none}
.dock a,.dock button{color:var(--text2);background:none!important;border-radius:0}
.dock a:first-child{color:var(--text);font-weight:700}
.dock svg{width:18px;height:18px}

/* ---------- прайс: категории как свёртки ---------- */
.price-group{padding:16px 18px 8px;border-radius:14px}
.side-prices .price-group{background:none;border:0;box-shadow:none;padding:0}
.pg-fold>summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}
.pg-fold>summary::-webkit-details-marker{display:none}
.pg-fold>summary h3{margin:0 0 6px}
.pg-fold>summary small{color:var(--muted);font-size:13px;white-space:nowrap}
.pg-fold>summary small::after{content:"";display:inline-block;width:7px;height:7px;margin:0 2px 2px 10px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.pg-fold[open]>summary small::after{transform:rotate(225deg);margin-bottom:-2px}
.price-group h3{color:var(--volt)}
.ptable td{border-bottom-color:var(--line)}
@media (min-width:980px){.pg-fold>summary{pointer-events:none}.pg-fold>summary small{display:none}}
@media (max-width:979px){
  .price-group{margin-bottom:10px;padding:14px 16px 4px}
  .pg-fold:not([open]){padding-bottom:10px}
  .pg-fold>summary h3{font-size:17px;margin:0}
  .pg-fold[open]>summary{margin-bottom:6px}
  .side-prices{padding:0;background:none;border:0;box-shadow:none}
  .sg-side-fold>summary{margin-top:0}
  .sg-side-fold>.h3{display:none}
  .sg-side-fold[open]{background:var(--surface);border-radius:14px;padding:0 16px 14px;border:1px solid rgba(255,255,255,.35)}
  .sg-side-fold[open]>summary{margin:0 -16px 8px;box-shadow:none;border:0;background:none}
  /* статья услуги: разделы свёрнуты, заголовок в строке */
  .prose .sg-sect>h2{display:none}
  .prose .sg-sect>summary{margin-top:10px;font-family:inherit}
  .prose .sg-sect[open]>summary{margin-bottom:8px}
}

/* ---------- карточки услуг на телефоне: строки ---------- */
@media (max-width:699px){
  .svc-grid{gap:8px}
  .svc{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:12px;row-gap:0;padding:14px 16px;border-radius:12px}
  .svc .svc-ic{grid-row:1/span 2;width:38px;height:38px;margin:0}
  .svc b{font-size:16px;margin:0;grid-column:2}
  .svc small{display:none}
  .svc-foot{display:contents}
  .svc-foot{font-size:13.5px}
  .svc-foot .ic{grid-column:3;grid-row:1/span 2}
  .ph-card{padding:16px 18px;border-radius:14px}
  .ph-card strong{font-size:28px;margin:2px 0}
  .ph-card .ticks{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px;font-size:13px}
  .ph-card .ticks li{margin:0}
}
@media (max-width:979px){
  .sg-calc-fold>summary{margin-top:0}
  .sg-calc-fold:not([open])>.sec-head{display:none}
  .sg-calc-fold[open]>summary{display:none}
  .calc-sec{padding:20px 0}
}
/* районы на телефоне: плитки с названием */
@media (max-width:699px){
  .dist-grid:has(>a.dist){grid-template-columns:1fr 1fr;gap:8px}
  a.dist{padding:14px;border-radius:12px;min-height:0}
  a.dist small{display:none}
  a.dist b{font-size:15px;line-height:1.25}
  .dist{padding:14px 16px;border-radius:12px}
}
/* узкие и средние экраны */
.sg-call span{white-space:nowrap}
@media (max-width:360px){
  .sg-tile{padding:10px 9px;font-size:12.5px}
  .sg-tile b{overflow-wrap:normal;word-break:normal;hyphens:manual}
  .sg-tile small{font-size:10.5px}
}
@media (min-width:700px) and (max-width:979px){
  .sg-plan{max-width:560px}
}
@media (min-width:980px) and (max-width:1180px){
  .sg-act{flex-wrap:wrap}
}
@media (max-width:699px){
  a.dist{padding:12px}
  a.dist b{font-size:13.5px;overflow-wrap:normal;word-break:normal}
}
@media (max-width:360px){.dist-grid:has(>a.dist){grid-template-columns:1fr}a.dist b{font-size:14px}}

/* ---------- вечерний вариант шалфея: тёмные карточки, светлый тёплый текст ---------- */
html[data-light=evening]{
  color-scheme:dark;
  --wall:#525949;--wall2:#4a5141;--wall3:#41483a;
  --paper:40,45,37;--ink:240,236,226;--acc:224,162,116;--lc:255,196,119;--sage:190,200,176;--grn:169,207,166;--rd:240,164,143;
  --bg:#4a5141;--bg2:rgba(38,43,35,.84);--bg3:#343a30;
  --surface:rgba(36,41,33,.84);--surface-raised:#343a30;--surface-inset:rgba(28,32,26,.85);--solid:#2b3027;
  --panel:var(--surface);--panel2:var(--surface-raised);--panel-solid:var(--solid);--panel-soft:rgba(36,41,33,.62);
  --text:#f4f1e8;--text2:#e6e2d6;--muted:#dcd8ca;--dim:#d4d0c1;
  --volt:#f0c49b;--volt2:#f6d3b0;--volt-ink:#2a1d12;--volt-text:#f4cfac;--red-text:#ffc9b8;
  --deep:#ebe3d0;--deep2:#f7f0df;--deep-ink:#21251e;
  --cyan:#d6dfca;--green:#bfe0bb;--red:#ffc9b8;
  --line:rgba(240,236,226,.14);--line2:rgba(240,236,226,.28);
  --shadow:0 16px 32px -22px rgba(0,0,0,.9);
}
html[data-light=evening] :is(.svc-group,.show-panel,.solution-panel,.geo-stage,.emg-strip,.faq-item,.inline-form,.calc,.price-group,.emg-card,.cause,.emg-call,.emg-price,.svc,.work-card,.article-card,.side-prices,.dist,.photo-surface,.cable-passport,.sg-fold>summary,.sg-side-fold[open]){border-color:rgba(255,255,255,.09)}
html[data-light=evening] .side-prices .price-group{border:0}
html[data-light=evening] :is(input,select,textarea,.field input,.field textarea,.field select){background:#22261f;color:var(--text);border-color:var(--line2)}
html[data-light=evening] :is(input,textarea)::placeholder{color:#9f9d8d}
html[data-light=evening] :is(.nav,.nav.scrolled){background:#2e342a;box-shadow:0 8px 18px -12px rgba(0,0,0,.8)}
html[data-light=evening] :is(.btn-ghost,.btn-quiet){background:rgba(20,24,18,.28);color:var(--text)}
html[data-light=evening] :is(.btn-ghost,.btn-quiet):hover{background:rgba(20,24,18,.42);border-color:var(--deep)}
html[data-light=evening] .btn-volt,html[data-light=evening] .sg-btn{box-shadow:0 12px 24px -16px rgba(0,0,0,.9)}
html[data-light=evening] .sg-call{border-color:var(--line2)}
html[data-light=evening] .sg-plan{background:#e7e1d3}
html[data-light=evening] :is(.t-oak,.t-stone){color:#21251e}
html[data-light=evening] .show-tabs [role=tab]:not([aria-selected=true]){background:rgba(255,255,255,.06)}
html[data-light=evening] .emg-links a{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.1)}
html[data-light=evening] .footer{background:rgba(30,35,28,.94)}
html[data-light=evening] .dock{background:rgba(40,45,37,.94)}
html[data-light=evening] .modal::backdrop,html[data-light=evening] .quick-dialog::backdrop{background:rgba(10,12,9,.6)}
html[data-light=evening] .sg-walls path{stroke:rgba(236,238,226,.26)}
html[data-light=evening] .sg-routes path{stroke:rgba(240,200,150,.55)}
/* подвал: ссылки в раскрытых разделах светлые в обоих вариантах */
.footer li a,.footer .more{color:#dcdfd2}
.footer li a:hover{color:#f0c9a2}
.footer h3,.footer-bottom{color:#c9cdbd}
.footer-group summary::after{color:#e9d3b1}
/* читаемость текста на стене и цветных подписей в обоих вариантах */
.skip{background:var(--deep);color:var(--deep-ink)}
.crumbs,.crumbs a{color:var(--dim)}
.link-more,.house-steps span{color:var(--volt-text)}
.emg-112 a,.emg-112 .ic,.emg-dont b{color:var(--red-text)}
.emg-lv-badge{background:var(--linen);color:var(--text2)}
.emg-lv-badge.lv3{background:var(--linen);color:var(--red-text)}
.emg-lv-badge.lv2{background:var(--linen);color:var(--volt-text)}
.emg-lv-badge.lv1{background:var(--linen);color:var(--cyan)}
.sg-plan figcaption{color:#54574b}
html[data-light=evening] .emg-lv-badge,html[data-light=evening] .emg-lv-badge:is(.lv1,.lv2,.lv3){background:var(--solid)}
html[data-light=evening] .emg-dont{background:rgba(24,28,22,.55)}
html[data-light=evening] .sg-plan figcaption{color:#4d5045}
.room-picks button[aria-pressed=true]{color:var(--volt-text)}
.emg-card.lv3 .emg-lv{color:var(--red-text)}

/* быстродействие: стена постоянной высоты (без пересчёта при появлении адресной строки), токи замирают на время прокрутки */
.sg-wall{inset:auto;top:0;left:0;width:100%;height:100vh;height:100lvh;contain:strict}
.sg-hold .sg-pulse,.sg-hold .sg-pulse-glow,.sg-off .sg-pulse,.sg-off .sg-pulse-glow{animation-play-state:paused}

/* выключатель света в шапке: настенная клавиша с индикатором */
.sg-switch{display:inline-flex;align-items:center;gap:10px;padding:4px;margin:0;border:0;background:none;color:var(--text);cursor:pointer;-webkit-tap-highlight-color:transparent;font:inherit}
.sg-switch-plate{position:relative;display:block;width:38px;height:38px;border-radius:9px;background:linear-gradient(160deg,#f7f3ea,#e2dccd);border:1px solid rgba(33,37,30,.18);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 3px 7px -3px rgba(20,24,18,.45);perspective:120px}
.sg-switch-key{position:absolute;inset:5px;border-radius:6px;background:linear-gradient(180deg,#e4dfd2 0%,#fbf8f1 46%,#fbf8f1 100%);box-shadow:0 -1px 0 rgba(255,255,255,.9) inset,0 2px 0 rgba(33,37,30,.08),0 1px 3px rgba(20,24,18,.25);transform-origin:50% 50%;transform:rotateX(20deg);transition:transform .16s cubic-bezier(.3,1.6,.5,1),background .16s}
.sg-switch-led{position:absolute;left:50%;bottom:4px;width:8px;height:3px;margin-left:-4px;border-radius:2px;background:#b7b2a3;transition:background .2s,box-shadow .2s}
.sg-switch-text{display:none;flex-direction:column;align-items:flex-start;line-height:1.1;text-align:left}
.sg-switch-text small{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.sg-switch-text b{font-size:13.5px;font-weight:650}
.sg-sw-e{display:none}
html[data-light=evening] .sg-sw-e{display:inline}html[data-light=evening] .sg-sw-d{display:none}
html[data-light=evening] .sg-switch-plate{background:linear-gradient(160deg,#4a5042,#363b31);border-color:rgba(255,255,255,.12);box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 3px 8px -3px rgba(0,0,0,.7)}
html[data-light=evening] .sg-switch-key{background:linear-gradient(180deg,#5a6052 0%,#5a6052 54%,#3e4337 100%);box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 -2px 0 rgba(0,0,0,.18),0 1px 3px rgba(0,0,0,.45);transform:rotateX(-20deg)}
html[data-light=evening] .sg-switch-led{background:#ffc070;box-shadow:0 0 6px 1px rgba(255,170,80,.75)}
.sg-switch.is-click .sg-switch-plate{transform:scale(.96)}
.sg-switch:focus-visible{outline:2px solid var(--volt);outline-offset:3px;border-radius:12px}
.sg-switch:hover .sg-switch-plate{border-color:rgba(33,37,30,.3)}
@media (min-width:981px){.sg-switch-text{display:flex;min-width:68px}}
.sg-flick{position:fixed;inset:0;z-index:49;pointer-events:none;opacity:0;will-change:opacity}
/* вечером лампы на стене горят ярче */
.sg-lamp-halo{transition:opacity .5s}
html[data-light=evening] .sg-lamp-halo{opacity:.95}
@media (prefers-reduced-motion:reduce){.sg-switch-key,.sg-switch-led,.sg-lamp-halo{transition:none}}

/* срочный выезд в первом экране: значок, текст и кнопка в кирпичном тоне */
.sg-urgent{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-top:14px;padding:10px 10px 10px 12px;border-radius:12px;background:var(--surface);border:1px solid rgba(168,64,44,.28);color:var(--text);text-decoration:none;box-shadow:0 12px 22px -18px rgba(0,0,0,.75)}
.sg-urgent-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(168,64,44,.12);color:#9a3a26}
.sg-urgent-ic .ic{width:21px;height:21px;fill:currentColor;stroke:none}
.sg-urgent-txt{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2}
.sg-urgent-txt b{font-size:15px;font-weight:700}
.sg-urgent-txt small{font-size:12.5px;color:var(--muted)}
.sg-urgent-btn{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border-radius:9px;background:#9a3a26;color:#fff7ee;font-size:14px;font-weight:650;white-space:nowrap;transition:background .2s}
.sg-urgent-btn .ic{width:16px;height:16px}
.sg-urgent:hover .sg-urgent-btn{background:#83301e}
.sg-urgent:focus-visible{outline:2px solid var(--volt);outline-offset:3px}
@media (max-width:480px){.sg-urgent{grid-template-columns:auto 1fr;row-gap:10px}.sg-urgent-btn{grid-column:1/-1;justify-content:center}}
html[data-light=evening] .sg-urgent{border-color:rgba(255,170,140,.28)}
html[data-light=evening] .sg-urgent-ic{background:rgba(255,160,130,.14);color:#ffb39c}
html[data-light=evening] .sg-urgent-btn{background:#e58d72;color:#2a130b}
html[data-light=evening] .sg-urgent:hover .sg-urgent-btn{background:#f0a088}

/* Compact footer and intact disclosure labels, including narrow phones. */
.wiring-viewer[open]{display:flex;flex-direction:column;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;padding:8px;border-radius:0;box-sizing:border-box;overflow:hidden}
.wiring-viewer[open] header{flex:none;margin:0 0 6px}
.wiring-viewer[open] .wiring-viewport{flex:1;min-height:0;max-height:none;aspect-ratio:auto;border-radius:6px}
.wiring-viewer[open] .wiring-canvas{width:100%;margin:auto}
.wiring-viewer[open] .wiring-controls{flex:none;gap:2px;padding-top:4px;justify-content:center}
.wiring-viewer[open] .wiring-zoom{gap:4px}
.wiring-viewer[open] .wiring-zoom output{display:none}
.wiring-viewer[open] .wiring-controls small{text-align:center;font-size:10px;line-height:1.2}
.wiring-viewer[open] .wiring-compare{gap:8px;margin:0}
@media(orientation:landscape){.wiring-viewer[open] .wiring-controls{display:grid;grid-template-columns:auto minmax(180px,1fr);gap:4px 16px}.wiring-viewer[open] .wiring-controls small{grid-column:1/-1}}
.solution-heading{grid-column:1/-1;padding:18px 20px 0}
.solution-heading .h3{margin:6px 0 0;font-size:clamp(22px,2.4vw,30px)}
.solution-panel .solution-description{align-self:start;padding:12px 20px}
.solution-description>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:600;list-style:none}
.solution-description>summary::after{content:'+';flex:none}
.solution-description[open]>summary::after{content:'−'}
.wiring-heading{margin-bottom:24px}
.wiring-heading .h2{max-width:780px}
.wiring-heading .section-intro{max-width:700px;margin-bottom:0}
.wiring-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin-bottom:8px;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.wiring-viewer{width:min(1100px,96vw);max-width:100%;max-height:96dvh;padding:16px;border:1px solid var(--line2);border-radius:16px;background:var(--surface);color:var(--text);overflow:auto;box-shadow:var(--shadow)}
.wiring-viewer::backdrop{background:rgba(12,18,14,.86);backdrop-filter:blur(8px)}
.wiring-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.wiring-viewer h2{font:600 18px/1.3 var(--sans);margin:0}
.wiring-viewer button{min-width:44px;min-height:44px;border:1px solid var(--line2);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer;padding:8px}
.wiring-viewer button:disabled{opacity:.35;cursor:default}
.wiring-viewport{overflow:hidden;display:flex;align-items:center;aspect-ratio:3/2;max-height:60dvh;background:var(--deep);border-radius:10px;touch-action:none;cursor:grab}
.wiring-canvas{width:min(100%,90dvh);margin:auto;flex:none;transform-origin:center;will-change:transform}
.wiring-canvas .xray-handle{pointer-events:auto;touch-action:none;cursor:ew-resize}
.wiring-canvas .cable-reveal{aspect-ratio:3/2;width:100%;height:auto;border-radius:0;pointer-events:none}
.wiring-canvas .dimension-note{display:block}
.wiring-controls{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-top:12px}
.wiring-zoom,.wiring-pan{display:flex;align-items:center;gap:6px}
.wiring-zoom output{min-width:48px;text-align:center;font-size:13px}
.wiring-compare{display:flex;align-items:center;gap:10px;width:100%;font-size:13px}
.wiring-compare input{min-width:0;flex:1;min-height:44px;accent-color:var(--volt)}
.wiring-controls p,.wiring-controls small{width:100%;margin:0;font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:700px){.wiring-viewer{width:100%;max-height:100dvh;border-radius:12px;padding:12px}.wiring-heading .h2{font-size:28px}.xray-copy{padding:0;background:none;border:0}.solution-heading{padding:16px 16px 0}.solution-panel .solution-description{padding:8px 16px}.wiring-pan{margin-left:auto}}
.art-hero{overflow:clip}
.sg-fold>summary>span{min-width:0;flex:1;overflow-wrap:normal;word-break:normal;hyphens:manual}
.sg-fold>summary small{flex:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.footer{padding:12px 0 0}
.footer-grid{gap:8px 20px;padding-bottom:8px}
.footer-brand .logo{margin-bottom:0}
.footer-group summary{min-height:44px;padding-top:10px;padding-bottom:10px;overflow-wrap:normal;word-break:normal}
.footer-bottom{margin-top:0;padding:4px 0 8px;gap:0 16px}
.footer-bottom a,.footer-bottom button{min-height:44px;display:inline-flex;align-items:center}
.geo-scales{flex-wrap:wrap}
.geo-scales button,.cable-actions button{white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}
@media(max-width:400px){
 .geo-scales button{flex:1 0 auto}
 .cable-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .cable-actions span{grid-column:1/-1;grid-row:2}
}
@media(max-width:700px){
 .show-tabs{margin-left:0;margin-right:0;padding-left:2px;padding-right:2px;max-width:100%}
 .svc-list a{grid-template-columns:30px minmax(0,1fr) auto}
 .footer-brand{display:none}
 .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding-bottom:4px}
 .footer-group summary{font-size:12px;line-height:1.35;padding-right:18px}
 .footer-bottom{padding:4px 0 calc(56px + env(safe-area-inset-bottom));font-size:11px;line-height:1.4;gap:0 12px}
 .footer-bottom>span{flex-basis:100%;padding-top:4px}
 .footer-bottom a,.footer-bottom button{font-size:11px;overflow-wrap:normal;word-break:normal}
 .dock{padding:2px 8px calc(2px + env(safe-area-inset-bottom))}
 .dock a,.dock button{min-height:44px;flex-direction:row;justify-content:center;gap:5px;padding:4px 2px;font-size:11px;white-space:nowrap}
 .dock .ic{width:17px;height:17px;flex:none}
}

/* Room checklist: independent selection, details on demand. */
.plan-compact{display:block;max-width:840px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--bg2)}
.room-choices{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.room-choices legend{font-weight:600;margin-bottom:10px;font-size:16px}
.room-choices label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-size:15px}
.room-choices label:has(:checked){border-color:var(--volt);background:var(--bg3)}
.room-choices input{width:18px;height:18px;flex:none;accent-color:var(--volt)}
.room-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:8px 0;font-size:13px}
.room-tools button{min-height:44px;background:none;border:0;padding:0;text-decoration:underline;color:inherit;cursor:pointer;font:inherit}
.room-tools span{color:var(--text2)}
.room-recommendations details,.room-map{border-top:1px solid var(--line)}
.room-recommendations details[hidden]{display:none}
.room-recommendations summary,.room-map>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:15px}
.room-recommendations summary small{float:right;font-size:12px;color:var(--text2)}
.room-recommendations dl{margin:8px 0;font-size:14px}.room-recommendations dt{color:var(--text2)}
.room-recommendations dd{margin:2px 0 10px}.room-recommendations p,.room-note{font-size:13px;line-height:1.5;color:var(--text2);margin:8px 0}
.room-map .plan-svg{padding:8px;border:0}.plan-sec .sec-head{margin-bottom:18px}
@media(max-width:600px){.plan-sec .h2{font-size:28px}.plan-sec .sec-head p{font-size:15px;line-height:1.5}.plan-compact{padding:12px}.room-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.room-choices label{font-size:14px}}
