/* Korteri Elektrik — Ferma-style theme layer (dark default + light), electric-yellow glow. Loaded LAST. 2026-11 */
:root {
  --f-bg: #000; --f-bg-soft: #0a0a0a; --f-surface: #121212; --f-surface-2: #1b1b1d; --f-field: #0b0b0c;
  --f-line: rgba(255,255,255,.11); --f-line-2: rgba(255,255,255,.2);
  --f-text: #f5f5f7; --f-muted: #a1a1a6; --f-faint: #6e6e73;
  --f-btn: #f5f5f7; --f-btn-text: #000;
  --f-gold: #ffd60a; --f-glow: rgba(255, 214, 10, 0.12); --f-glow-2: rgba(255, 214, 10, 0.24);
  --f-header: rgba(0,0,0,.74); --f-ok: #34c759; --f-err: #ff6b5f;
  --bg: #000; --panel: #121212; --ink: #f5f5f7; --muted: #a1a1a6; --line: rgba(255,255,255,.11);
  --amber: #ffd60a; --amber-dark: #ffd60a; --blue: #f5f5f7; --green: #34c759; --shadow: none;
  --fault-ink: #f5f5f7; --fault-muted: #a1a1a6; --fault-line: rgba(255,255,255,.11); --fault-blue: #ffd60a; --fault-blue-dark: #ffd60a;
  --fault-soft: #121212; --fault-warn: #121212; --fault-warn-border: rgba(255,214,10,.45); --fault-card: #121212;
  --panel-deep: #f5f5f7; --electric-deep: #f5f5f7; --panel-soft: rgba(255,214,10,.12); --electric-soft: rgba(255,214,10,.12);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --f-bg: #fff; --f-bg-soft: #f5f5f7; --f-surface: #fff; --f-surface-2: #f2f2f5; --f-field: #fff;
  --f-line: rgba(0,0,0,.09); --f-line-2: rgba(0,0,0,.17);
  --f-text: #1d1d1f; --f-muted: #6e6e73; --f-faint: #8e8e93;
  --f-btn: #1d1d1f; --f-btn-text: #fff;
  --f-gold: #a67c00; --f-glow: rgba(255, 200, 0, 0.16); --f-glow-2: rgba(255, 200, 0, 0.3);
  --f-header: rgba(255,255,255,.8); --f-ok: #1f9d47; --f-err: #d93025;
  --bg: #fff; --panel: #fff; --ink: #1d1d1f; --muted: #6e6e73; --line: rgba(0,0,0,.09);
  --amber: #a67c00; --amber-dark: #a67c00; --blue: #1d1d1f; --green: #1f9d47;
  --fault-ink: #1d1d1f; --fault-muted: #6e6e73; --fault-line: rgba(0,0,0,.09); --fault-blue: #a67c00; --fault-blue-dark: #a67c00;
  --fault-soft: #fff; --fault-warn: #fff; --fault-warn-border: rgba(166,124,0,.45); --fault-card: #fff;
  --panel-deep: #1d1d1f; --electric-deep: #1d1d1f;
  color-scheme: light;
}

/* ---------- base ---------- */
html body {
  background: var(--f-bg) !important; color: var(--f-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s;
}
body h1, body h2, body h3, body h4 { color: var(--f-text) !important; font-family: inherit !important; }
body h1 { font-weight: 700 !important; letter-spacing: -0.04em !important; line-height: 1.02 !important; }
body h2 { font-weight: 700 !important; letter-spacing: -0.035em !important; }
body h3, body h4 { font-weight: 600 !important; letter-spacing: -0.015em; }
body p, body li, body dd, body .lead, body .fault-lead, body .safe-note, body .fault-section-intro, body span { color: var(--f-muted); }
body main p, body main li, body .lead, body .fault-lead, body .safe-note { color: var(--f-muted) !important; }
body strong, body summary, body dd { color: var(--f-text) !important; }
body ::selection { background: var(--f-glow-2); }
body a:focus-visible, body button:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- page backgrounds + glow ---------- */
html body { background: radial-gradient(70% 55% at 80% 0%, var(--f-glow), transparent 70%) no-repeat, var(--f-bg) !important; background-size: 100% 1100px, auto !important; }
body .hero { background: transparent !important; }
body .fault-hero { background: radial-gradient(60% 70% at 85% 0%, var(--f-glow), transparent 70%), var(--f-bg) !important; }
body .fault-hero { border-bottom: 1px solid var(--f-line) !important; }
body .fault-section { background: transparent !important; }
body .section { border-top-color: var(--f-line) !important; }
body .section.contact, body .process-section { background: transparent !important; }

/* ---------- header ---------- */
body .site-header, body .fault-header {
  background: var(--f-header) !important; color: var(--f-text) !important; border-bottom: 1px solid var(--f-line) !important;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
body .fault-header { position: sticky; top: 0; z-index: 10; }
body .nav a { color: var(--f-muted) !important; font-weight: 500; }
body .nav a:hover { color: var(--f-text) !important; background: transparent !important; }
body .brand, body .fault-brand, body .brand strong { color: var(--f-text) !important; }
body .brand small { color: var(--f-muted) !important; }
body .brand-mark {
  color: var(--f-gold) !important; background: transparent !important; border: 1px solid var(--f-gold) !important;
  border-radius: 50% !important; box-shadow: 0 0 22px var(--f-glow-2) !important; font-weight: 800 !important;
}
body .fault-brand { display: inline-flex; align-items: center; gap: .7rem; }
body .fault-brand::before {
  content: "KE"; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--f-gold); color: var(--f-gold); font-size: .85rem; font-weight: 800; box-shadow: 0 0 22px var(--f-glow-2);
}
body .header-phone {
  color: var(--f-btn-text) !important; background: var(--f-btn) !important; box-shadow: none !important;
  font-weight: 600 !important; min-height: 2.5rem !important; padding: .5rem 1rem !important;
}
body .header-actions, body .panel-header-actions, body .wiring-header-actions, body .fault-nav { gap: .6rem !important; }
body .fault-nav { flex-direction: row !important; align-items: center !important; }
body .fault-nav .fault-brand { margin-right: auto; }
body .language-switcher, body .fault-language, body .panel-language-switcher, body .wiring-language-switcher, body .language-switcher-local, body .language-switcher-ru {
  border: 1px solid var(--f-line) !important; border-radius: 999px !important; padding: 3px !important; background: transparent !important; gap: 2px !important;
}
body .language-switcher a, body .language-switcher span, body .fault-language a, body .fault-language span,
body .panel-language-switcher a, body .panel-language-switcher span, body .wiring-language-switcher a, body .wiring-language-switcher span,
body .language-switcher-local a, body .language-switcher-local span, body .language-switcher-ru a, body .language-switcher-ru span {
  color: var(--f-muted) !important; background: transparent !important; min-width: 2.2rem !important; padding: .35rem .6rem !important;
  border-radius: 999px !important; font-size: .78rem !important; font-weight: 600 !important; text-align: center;
}
body .language-switcher span, body .fault-language .active, body .panel-language-switcher span, body .wiring-language-switcher span,
body .language-switcher-local span, body .language-switcher-ru span { background: var(--f-surface-2) !important; color: var(--f-text) !important; }
.f-theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none;
  border: 1px solid var(--f-line-2); border-radius: 999px; background: transparent; color: var(--f-text); cursor: pointer;
}
.f-theme-toggle:hover { border-color: var(--f-gold); box-shadow: 0 0 16px var(--f-glow-2); }
.f-theme-toggle svg { width: 16px; height: 16px; }
.f-theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .f-theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .f-theme-toggle .i-moon { display: none; }

/* ---------- labels ---------- */
body .eyebrow, body .fault-kicker, body .form-kicker, body dt { color: var(--f-gold) !important; }

/* ---------- cards: electric glow ---------- */
body .hero-card, body .trust-card, body .service-card, body .steps li, body .situation-grid div,
body .attribution-grid code, body details, body .needed-list div, body .fault-form-card,
body .fault-card, body .fault-link-card, body .fault-steps li, body .fault-warning,
body .signal-card, body .scope-card, body .renovation-card, body .info-card, body .related-card, body .selector-pill, body .fault-local-note {
  background: linear-gradient(180deg, var(--f-glow), transparent 42%), var(--f-surface) !important;
  color: var(--f-text) !important; border: 1px solid var(--f-line) !important; box-shadow: none !important;
}
body .contact .lead-form, body section > .lead-form {
  background: linear-gradient(180deg, var(--f-glow), transparent 42%), var(--f-surface) !important; border: 1px solid var(--f-line) !important;
}
body .hero-card, body .fault-form-card, body .trust-card, body .contact .lead-form {
  border-radius: 28px !important; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 60px var(--f-glow) !important;
}
:root[data-theme="light"] body .hero-card, :root[data-theme="light"] body .fault-form-card, :root[data-theme="light"] body .trust-card, :root[data-theme="light"] body .contact .lead-form { box-shadow: 0 24px 60px rgba(0,0,0,.08), 0 0 50px var(--f-glow) !important; }
body .hero-card .lead-form, body .fault-form-card .lead-form { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body .hero-card h2 + .lead-form, body .hero-card .lead-form { margin-top: 1rem; }
body .service-card, body .fault-card, body .signal-card, body .scope-card, body .renovation-card, body .info-card, body .steps li, body .fault-link-card { border-radius: 22px !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
body .service-card:hover, body .fault-card:hover, body .signal-card:hover, body .scope-card:hover, body .fault-link-card:hover, body .steps li:hover {
  border-color: rgba(255,214,10,.42) !important; box-shadow: 0 0 34px var(--f-glow-2) !important; transform: translateY(-2px);
}
body dl div, body .request-list li, body .hero-card li { border-radius: 14px !important; background: var(--f-surface-2) !important; border: 1px solid var(--f-line) !important; color: var(--f-text) !important; }
body details { border-radius: 16px !important; }
body .icon { background: transparent !important; border: 1px solid var(--f-line-2); border-radius: 50% !important; box-shadow: 0 0 18px var(--f-glow-2); }
body .steps li::before, body .fault-steps li::before { color: var(--f-gold) !important; }
body .fault-steps li::before { background: transparent !important; border: 1px solid var(--f-gold); }
body .steps span { color: var(--f-muted) !important; }
body .fault-warning { border-color: rgba(255,214,10,.38) !important; color: var(--f-muted) !important; }
body .fault-warning strong { color: var(--f-gold) !important; }
body .hero-proof span, body .mini-checks span {
  background: transparent !important; color: var(--f-text) !important; border: 1px solid var(--f-line-2) !important; box-shadow: none !important; font-weight: 600 !important;
}
body .related-card h3 { color: var(--f-text) !important; }
body .related-card p { color: var(--f-muted) !important; }
/* hero "electric panel" visual */
body .electric-visual { background: var(--f-surface-2) !important; border-color: var(--f-line) !important; }
body .electric-visual span { background: var(--f-surface) !important; border-color: var(--f-line) !important; position: relative; overflow: hidden; }
body .electric-visual span::after {
  content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; border-radius: 2px;
  background: var(--f-gold); box-shadow: 0 0 12px var(--f-gold), 0 0 26px var(--f-glow-2); transform: translateY(-50%);
}
body .electric-visual span:nth-child(2)::after { left: 50%; right: auto; width: 2px; top: 18%; height: 64%; transform: none; }
body .electric-visual span:nth-child(3)::after { right: 46%; }
body .electric-visual span:nth-child(4)::after { left: 34%; right: 34%; top: 30%; height: 40%; border-radius: 10px; background: transparent; border: 2px solid var(--f-gold); transform: none; }
body .panel-hero-card::before, body .wiring-hero-card::before { background: radial-gradient(circle at top right, var(--f-glow-2), transparent 15rem) !important; }

/* ---------- buttons ---------- */
body .button, body .fault-button, body .fault-button-muted, body .related-card a { border-radius: 999px !important; font-weight: 600 !important; transition: transform .15s, box-shadow .2s; }
body .button.primary, body .fault-button, body .lead-form button[type="submit"], body .panel-form button[type="button"], body .related-card a {
  background: var(--f-btn) !important; color: var(--f-btn-text) !important; border: 0 !important; border-radius: 999px !important;
  box-shadow: 0 0 30px var(--f-glow-2) !important; font-weight: 600 !important;
}
body .button.primary:hover, body .fault-button:hover, body .lead-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 0 42px var(--f-glow-2) !important; }
body .button.secondary, body .fault-button-muted { background: transparent !important; color: var(--f-text) !important; border: 1px solid var(--f-line-2) !important; box-shadow: none !important; }
body .button.secondary:hover, body .fault-button-muted:hover { border-color: var(--f-gold) !important; }
body .lead-form button[type="submit"]:disabled { opacity: .55; }

/* ---------- forms ---------- */
body .lead-form label, body .fault-form label { color: var(--f-muted) !important; font-weight: 500 !important; }
body .lead-form input:not([type="checkbox"]), body .lead-form textarea, body .lead-form select {
  background: var(--f-field) !important; color: var(--f-text) !important; border: 1px solid var(--f-line-2) !important;
  border-radius: 12px !important; padding: 12px 14px !important; box-shadow: none !important; outline: none;
}
body .lead-form input:focus, body .lead-form textarea:focus, body .lead-form select:focus { border-color: var(--f-gold) !important; box-shadow: 0 0 0 3px var(--f-glow) !important; }
body .lead-form input[type="checkbox"] { accent-color: var(--f-gold); }
body input::placeholder, body textarea::placeholder { color: var(--f-faint) !important; }
body .consent, body .consent span { color: var(--f-muted) !important; font-weight: 400 !important; }
body .consent a, body .contact-phone a, body .site-footer a { color: var(--f-text) !important; }
body .form-status { color: var(--f-ok) !important; }
body .form-status.error { color: var(--f-err) !important; }
body .contact-phone span { color: var(--f-muted) !important; }

/* ---------- footer ---------- */
body .site-footer, body .fault-footer { background: var(--f-bg) !important; color: var(--f-muted) !important; border-top: 1px solid var(--f-line) !important; }
body .fault-footer a { color: var(--f-text) !important; }

/* ---------- misc ---------- */
body .phone-copy-notice { background: var(--f-btn) !important; color: var(--f-btn-text) !important; }
body a[href*="wa.me"], body .whatsapp-cta { display: none !important; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  body .site-header { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; }
  body .site-header .nav { order: 3; width: 100%; }
  body .header-actions, body .panel-header-actions, body .wiring-header-actions { width: auto !important; flex-direction: row !important; align-items: center !important; margin-left: auto; }
  body .panel-language-switcher, body .wiring-language-switcher { width: auto !important; }
  body .header-phone { width: auto !important; }
}
@media (max-width: 560px) {
  body main { width: calc(100% - 2rem) !important; }
  body .hero-proof span, body .mini-checks span { flex: 0 1 auto !important; font-size: .85rem; min-height: 2rem !important; padding: .4rem .7rem !important; }
  body .site-header { gap: .6rem !important; padding: .7rem 1rem !important; flex-wrap: nowrap; }
  body .site-header .nav { display: none !important; }
  body .brand small { display: none; }
  body .header-phone { display: none !important; }
  body .mobile-sticky-cta { background: var(--f-header) !important; border: 1px solid var(--f-line-2) !important; right: 78px !important; backdrop-filter: blur(18px); }
  body .mobile-sticky-cta a { background: var(--f-btn) !important; color: var(--f-btn-text) !important; border-radius: 999px !important; font-weight: 600 !important; }
  body .mobile-sticky-cta a.secondary { background: transparent !important; color: var(--f-text) !important; border: 1px solid var(--f-line-2) !important; }
}

/* ---------- photos in lead form ---------- */
.f-photos { display: grid; gap: 8px; margin: 4px 0; }
.f-photos-drop {
  display: flex !important; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px !important; border-radius: 12px; border: 1px dashed var(--f-line-2); color: var(--f-muted) !important;
  font-size: 14px; font-weight: 500; background: transparent; text-transform: none !important; letter-spacing: 0 !important;
}
.f-photos-drop:hover { border-color: var(--f-gold); color: var(--f-text) !important; }
.f-photos-drop input { display: none !important; }
.f-photos-list { display: flex; gap: 8px; flex-wrap: wrap; }
.f-photos-list:empty { display: none; }
.f-photos-list figure { position: relative; margin: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--f-line); }
.f-photos-list img { width: 100%; height: 100%; object-fit: cover; }
.f-photos-list button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }

/* ---------- chat widget ---------- */
.f-chat-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px; border: 0; cursor: pointer; font: 600 15px Inter, system-ui, sans-serif;
  background: var(--f-btn); color: var(--f-btn-text); box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
.f-chat-btn svg { width: 20px; height: 20px; }
.f-chat-btn.is-open { padding: 0; width: 52px; justify-content: center; }
.f-chat-btn.is-open .f-chat-label { display: none; }
.f-chat-btn.has-unread::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--f-bg); }
.f-chat-panel {
  position: fixed; right: 18px; bottom: 82px; z-index: 91; width: min(380px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--f-surface); color: var(--f-text);
  border: 1px solid var(--f-line-2); box-shadow: 0 30px 90px rgba(0,0,0,.45); font-family: Inter, system-ui, sans-serif;
}
.f-chat-panel[hidden] { display: none; }
.f-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--f-line); }
.f-chat-logo { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--f-gold); color: var(--f-gold); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; }
.f-chat-head b { display: block; font-size: 15px; color: var(--f-text); }
.f-chat-head small { color: var(--f-muted); font-size: 12px; }
.f-chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--f-line); background: transparent; color: var(--f-text); cursor: pointer; font-size: 18px; line-height: 1; }
.f-chat-thread { flex: 1; min-height: 140px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.f-msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.f-msg.bot, .f-msg.manager { align-self: flex-start; background: var(--f-surface-2); color: var(--f-text); border-bottom-left-radius: 6px; }
.f-msg.user { align-self: flex-end; background: var(--f-btn); color: var(--f-btn-text); border-bottom-right-radius: 6px; }
.f-msg.ok, .f-msg.err { align-self: center; background: transparent; font-size: 12px; text-align: center; }
.f-msg.ok { color: var(--f-ok); } .f-msg.err { color: var(--f-err); }
.f-msg-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; margin-top: 6px; min-width: 170px; }
.f-msg-imgs a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.f-msg-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-chat-form { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--f-line); }
.f-chat-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-chat-form input, .f-chat-form textarea {
  width: 100%; font: 14px Inter, system-ui, sans-serif; color: var(--f-text); background: var(--f-field);
  border: 1px solid var(--f-line-2); border-radius: 12px; padding: 10px 12px; outline: none; box-sizing: border-box;
}
.f-chat-form input:focus, .f-chat-form textarea:focus { border-color: var(--f-gold); box-shadow: 0 0 0 3px var(--f-glow); }
.f-chat-form textarea { min-height: 58px; resize: vertical; }
.f-chat-form .send { display: flex; gap: 8px; align-items: flex-end; }
.f-chat-form .send textarea { flex: 1; }
.f-chat-form .send button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: var(--f-btn); color: var(--f-btn-text); display: grid; place-items: center; }
.f-chat-form .send button:disabled { opacity: .5; }
.f-chat-form .who { font-size: 12px; color: var(--f-muted); display: flex; justify-content: space-between; gap: 8px; }
.f-chat-form .who button { border: 0; background: none; color: var(--f-gold); cursor: pointer; font: inherit; padding: 0; }
.f-chat-attach { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-chat-attach-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--f-line-2); color: var(--f-muted); font-size: 13px; font-weight: 500; }
.f-chat-attach-btn:hover { border-color: var(--f-gold); color: var(--f-text); }
.f-chat-attach-list { display: flex; gap: 6px; flex-wrap: wrap; }
.f-chat-attach-list:empty { display: none; }
.f-chat-attach-list figure { position: relative; margin: 0; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--f-line); }
.f-chat-attach-list img { width: 100%; height: 100%; object-fit: cover; }
.f-chat-attach-list button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; padding: 0; }
.f-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 640px) {
  .f-chat-btn .f-chat-label { display: none; }
  .f-chat-btn { width: 52px; padding: 0; justify-content: center; }
  .f-chat-panel { left: 12px; right: 12px; width: auto; bottom: 80px; }
  .f-chat-form .row { grid-template-columns: 1fr; }
}

/* hero photo (2026-11-06) */
body .hero-ai-photo { margin: 0 0 1.25rem; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--f-line); box-shadow: 0 0 50px var(--f-glow); }
body .hero-ai-photo picture, body .hero-ai-photo img { display: block; width: 100%; height: 100%; }
body .hero-ai-photo img { object-fit: cover; }

/* brand: outline icon + accent word (2026-11-06) */
body .brand-ico { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: var(--f-gold) !important; width: 2.25rem !important; height: 2.25rem !important; min-width: 2.25rem !important; padding: 0 !important; display: inline-grid !important; place-items: center; flex: none; font-size: 0 !important; }
body .brand-ico svg { width: 100%; height: 100%; display: block; }
body .brand strong, body .brand-name, body .p1-brand .brand-name { letter-spacing: -0.02em !important; text-transform: none !important; font-weight: 700 !important; }
body .brand strong em, body .brand-name em, body .brand-name b { font-style: normal !important; color: var(--f-gold) !important; font-weight: 700 !important; }
body .fault-brand { display: inline-flex !important; align-items: center; gap: .6rem; text-decoration: none; }
body .header-phone { display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; }
body .proof-strip span { border: 0 !important; padding: 0 !important; background: none !important; color: var(--f-muted) !important; font-weight: 500 !important; }
body .fault-brand::before { display: none !important; content: none !important; }
body .fault-brand, body .fault-brand .brand-name { color: var(--f-text) !important; font-weight: 700 !important; }
body footer strong em, body .footer strong em, body footer em { font-style: normal !important; color: var(--f-gold) !important; }

/* service page photo band (2026-11-06) */
.page-photo { padding: clamp(0.5rem, 2vw, 1.5rem) max(16px, 4vw) clamp(1rem, 3vw, 2.5rem); }
.page-photo figure { max-width: 1180px; margin: 0 auto; border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 9; border: 1px solid var(--f-line); box-shadow: 0 0 60px var(--f-glow); }
.page-photo picture, .page-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .page-photo figure { aspect-ratio: 16 / 10; border-radius: 20px; } }

/* wiring / panel landing cards (2026-11-06 fix) */
body .problem-card, body .work-card {
  background: linear-gradient(180deg, var(--f-glow), transparent 42%), var(--f-surface) !important;
  color: var(--f-text) !important; border: 1px solid var(--f-line) !important; box-shadow: none !important;
  border-radius: 22px !important; padding: 1.25rem 1.35rem !important;
}
body .problem-card strong, body .work-card strong, body .renovation-card strong, body .info-card strong, body .signal-card strong, body .scope-card strong { color: var(--f-text) !important; }
body .problem-card span, body .work-card span, body .renovation-card span, body .info-card span, body .signal-card span, body .scope-card span { color: var(--f-muted) !important; }
body .related-card { border-radius: 24px !important; padding: clamp(1.4rem, 3vw, 2rem) !important; display: grid; gap: .6rem; justify-items: start; }
body .related-card h3 { margin: 0 !important; font-size: 1.25rem; }
body .related-card p { margin: 0 !important; max-width: 760px; }
body .related-card a { display: inline-flex !important; align-items: center; min-height: 46px; margin-top: .6rem !important; padding: 0 1.3rem !important; border-radius: 999px !important; background: var(--f-btn) !important; color: var(--f-btn-text) !important; font-weight: 600 !important; text-decoration: none !important; box-shadow: none !important; }
body .related-card a:hover { opacity: .9; }

/* global polish (2026-11-06) */
.f-chat-btn, .ks-chat-btn { transition: transform .15s ease-out; }
.f-chat-btn { color: var(--f-btn-text) !important; }
.f-chat-btn .f-chat-label, .f-chat-btn span { color: inherit !important; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
@media (min-width: 981px) { body .hero h1, body .wiring-hero h1, body .panel-hero h1, body .fault-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.4rem) !important; } }

/* fault service template polish */
body .fault-card-grid { gap: .75rem !important; }
body .fault-card { min-height: 0 !important; padding: 1rem 1.15rem 1rem 2.6rem !important; position: relative; display: flex; align-items: center; }
body .fault-card::before { content: ""; position: absolute; left: 1.1rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--f-gold); box-shadow: 0 0 10px var(--f-gold); }
body .fault-card span { color: var(--f-text) !important; font-weight: 500; line-height: 1.45; }
body .fault-warning { margin-bottom: 2.2rem !important; }
body .fault-link-card .fl-more { color: var(--f-gold) !important; font-weight: 600; }
body .process-section { border-radius: 0 !important; }

/* ===== compact one-row mobile header (2026-11-06) ===== */
@media (max-width: 760px) {
  body .site-header, body .header, body .cluster-header, body .p1-header, body .tile-nav, body .fault-nav {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
    justify-content: flex-start !important; gap: 6px !important; min-height: 60px; box-sizing: border-box;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)) !important;
  }
  body .fault-header { padding: 0 !important; }
  body .site-header .brand, body .header .brand, body .cluster-header .brand, body .tile-nav .brand, body .p1-brand, body .fault-brand {
    flex: 1 1 auto !important; min-width: 0 !important; margin: 0 auto 0 0 !important; gap: 8px !important; display: inline-flex !important; align-items: center !important;
  }
  body .brand small { display: none !important; }
  body .brand-ico, body .p1-brand-mark, body .brand-mark.ks-drop { width: 28px !important; height: 28px !important; min-width: 28px !important; }
  body .brand strong, body .brand-name { display: block; font-size: 15px !important; line-height: 1.15 !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  body .brand > span:not(.brand-mark):not(.brand-ico) { min-width: 0; }
  /* desktop link rows */
  body .site-header > .nav:not(.open), body .site-header > .top-nav, body .header > .nav:not(.open), body .p1-nav,
  body .cluster-nav:not(.open), body .tile-nav .nav-links:not(.open) { display: none !important; }
  /* action groups */
  body .header-actions, body .cluster-actions, body .p1-actions, body .panel-header-actions {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
    gap: 6px !important; width: auto !important; flex: 0 0 auto !important; margin: 0 !important; justify-content: flex-end !important;
  }
  body .header-actions .button-small, body .header-actions .button { display: none !important; }
  /* language */
  body .language-switcher, body .language-switch, body .p1-language, body .panel-language-switcher, body .fault-language {
    display: inline-flex !important; align-items: center !important; gap: 0 !important; padding: 2px !important; flex: none !important; margin: 0 !important;
  }
  body .language-switcher a, body .language-switcher span, body .language-switch a, body .language-switch span, body .p1-language a, body .p1-language span,
  body .panel-language-switcher a, body .panel-language-switcher span, body .fault-language a, body .fault-language span {
    min-width: 30px !important; min-height: 30px !important; height: 30px; padding: 0 6px !important; font-size: 12px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important;
  }
  body .language-separator, body .language-switch > span:not([aria-current]), body .p1-language > span:not([aria-current]) { display: none !important; }
  /* round icon buttons */
  body .f-theme-toggle, body .theme-toggle, body .menu-button, body .tile-nav .menu, body .ks-menu-btn {
    width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; padding: 0 !important; flex: none !important; margin: 0 !important;
  }
  body .header-phone, body .header .phone, body .p1-disabled-phone, body .phone-copy-button {
    width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; padding: 0 !important; margin: 0 !important;
    border-radius: 50% !important; font-size: 0 !important; color: transparent !important; flex: none !important; position: relative;
    display: inline-flex !important; align-items: center; justify-content: center; overflow: hidden;
  }
  body .header-phone::before, body .header .phone::before, body .p1-disabled-phone::before, body .phone-copy-button::before {
    content: ""; width: 17px; height: 17px; background: var(--f-btn-text, #111);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  body .header-phone > *, body .phone-copy-button > * { display: none !important; }
}
@media (max-width: 370px) { body .brand strong, body .brand-name { font-size: 13.5px !important; } }
@media (max-width: 760px) {
  body .brand strong, body .brand-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; font-size: 14px !important; line-height: 1.08 !important; max-width: 7.5em; }
  body .brand strong em, body .brand-name b, body .brand-name em { display: inline; }
  body .site-header .brand, body .header .brand, body .cluster-header .brand, body .tile-nav .brand, body .p1-brand, body .fault-brand { order: 0; }
  body .f-theme-toggle { order: 2; }
  body .header-actions, body .cluster-actions, body .p1-actions, body .panel-header-actions, body .language-switcher, body .fault-language { order: 3; }
  body .menu-button, body .tile-nav .menu { order: 9; }
  body .phone-copy-button { display: none !important; }
  body .language-switcher a, body .language-switcher span, body .language-switch a, body .language-switch span, body .p1-language a, body .p1-language span,
  body .panel-language-switcher a, body .panel-language-switcher span, body .fault-language a, body .fault-language span { min-width: 27px !important; padding: 0 5px !important; }
}
@media (max-width: 760px) {
  body .site-header .header-actions, body .header .header-actions, body .cluster-actions, body .p1-actions, body .panel-header-actions { display: contents !important; }
  body .f-theme-toggle, body .theme-toggle { order: 2 !important; }
  body .language-switcher, body .language-switch, body .p1-language, body .panel-language-switcher, body .fault-language { order: 3 !important; }
  body .header-phone, body .header .phone, body .p1-disabled-phone, body .header .header-phone { order: 4 !important; }
  body .menu-button, body .tile-nav .menu, body .iconbtn.burger { order: 9 !important; width: 36px !important; height: 36px !important; min-width: 36px !important; flex: none !important; }
}

/* visualisation gallery (2026-11-07) */
.viz { padding: clamp(2.5rem, 6vw, 5rem) max(16px, 4vw); }
.viz-inner { max-width: 1180px; margin: 0 auto; }
.viz-head { max-width: 760px; margin: 0 0 1.6rem; }
.viz-head .viz-eyebrow { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--f-gold, var(--accent)); }
.viz-head h2 { margin: 0 0 .7rem; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; color: var(--f-text, var(--text)); }
.viz-head p { margin: 0; color: var(--f-muted, var(--muted)); line-height: 1.6; }
.viz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.25rem); }
.viz-item { margin: 0; border-radius: 22px; overflow: hidden; background: var(--f-surface, var(--surface)); border: 1px solid var(--f-line, var(--line)); }
.viz-media { position: relative; aspect-ratio: 16 / 10; }
.viz-media picture, .viz-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viz-badge { position: absolute; left: 12px; top: 12px; padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
.viz-item figcaption { padding: .85rem 1.1rem 1rem; font-weight: 600; color: var(--f-text, var(--text)); }
@media (max-width: 720px) { .viz-grid { grid-template-columns: 1fr; } .viz-item { border-radius: 18px; } }
