/* BUSINESS IMPACT: THEME + DATA FLOW v1 */
:root { color-scheme: light; --bi-fg:#34244d; --bi-muted:#776989; --bi-pane:rgba(255,255,255,.88); --bi-border:#e9dafb; --bi-shadow:0 16px 44px rgba(80,41,140,.10); }
html[data-bi-theme="dark"] { color-scheme: dark; --bi-fg:#f6efff; --bi-muted:#c2b0d7; --bi-pane:rgba(32,23,53,.87); --bi-border:rgba(191,145,253,.29); --bi-shadow:0 18px 45px rgba(5,2,16,.29); }
html,body { max-width:100%; overflow-x:clip; }
*,*::before,*::after { box-sizing:border-box; }
body { isolation:isolate; }
:is(#bi-data-flow, .bi-flow-canvas) { display:block; position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; user-select:none; opacity:.98; }
html[data-bi-theme="dark"] :is(#bi-data-flow, .bi-flow-canvas) { opacity:1; }
body > :not(#bi-data-flow):not(.bi-flow-canvas):not(.bi-theme-wave):not(script):not(style) { position:relative; z-index:1; }
body :where(main,section,header,footer,article,form,.srhome-page,.srpartners,.srhome-hero) { max-width:100%; min-width:0; }
body :where(img,svg,video) { max-width:100%; }
body :where(p,h1,h2,h3,small,label,a,button) { overflow-wrap:break-word; }
.bi-theme-header { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.bi-theme-toggle { flex:0 0 auto; order:100; margin-left:auto; width:48px; height:48px; padding:0; border:1px solid rgba(139,85,206,.34); border-radius:16px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:#56309c; background:linear-gradient(145deg,rgba(255,249,220,.96),rgba(244,224,255,.95)); box-shadow:0 6px 20px rgba(108,58,164,.16),inset 0 1px 0 #fff; transition:transform .22s,background .22s,box-shadow .22s; }
.bi-theme-toggle svg { display:block; width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.bi-theme-toggle:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(108,58,164,.25); }
.bi-theme-toggle:active { transform:scale(.95); }
.bi-theme-toggle:focus-visible { outline:3px solid #d4a1ff; outline-offset:3px; }
.bi-theme-toggle.bi-theme-floating { position:fixed !important; top:14px; right:14px; z-index:50 !important; margin:0; }
html[data-bi-theme="dark"] .bi-theme-toggle { color:#ffdc79; background:linear-gradient(135deg,#3b245a,#5a337c); border-color:#7b57ac; box-shadow:0 8px 22px rgba(5,2,16,.38); }
html[data-bi-theme="dark"] body { color:var(--bi-fg) !important; background:radial-gradient(ellipse at 12% 10%,rgba(93,42,143,.35),transparent 46%),radial-gradient(ellipse at 93% 60%,rgba(194,133,30,.13),transparent 47%),#130e22 !important; }
html[data-bi-theme="dark"] :where(.srhome-page,.home-wrap) { color:var(--bi-fg); }
html[data-bi-theme="dark"] :where(.srhome-hero,.srpartners,.srpartners-card,.srhome-partner,.form-card,.plan-card,.tariff-card,.price-card,.service-card,.payment-card,.summary-card,.card,.panel,.box,#result) { background:linear-gradient(145deg,rgba(43,30,67,.94),rgba(27,20,47,.94)) !important; color:var(--bi-fg) !important; border-color:var(--bi-border) !important; box-shadow:var(--bi-shadow); }
html[data-bi-theme="dark"] :where(.srhome-hero h1,.srpartners-heading h2,.srpartners-name,.srpartners-card,.srhome-partner strong,.form-card h2,.card h2,main h1,main h2,main h3) { color:#f7eaff !important; }
html[data-bi-theme="dark"] .srhome-hero h1 span { color:transparent !important; background:linear-gradient(100deg,#ffe28f,#cfa0ff) !important; background-clip:text !important; -webkit-background-clip:text !important; }
html[data-bi-theme="dark"] :where(.srhome-description,.srhome-caption,.srpartners-heading p,.srpartners-desc,.srhome-footer,.srhome-brand span,.srhome-partner span,main p,main small,main label) { color:var(--bi-muted); }
html[data-bi-theme="dark"] :where(.srhome-eyebrow,.srpartners-eyebrow) { color:#e8bb6b; }
html[data-bi-theme="dark"] :where(input,textarea,select) { background:#261d3e !important; color:#f8f1ff !important; border-color:#674b8e !important; }
html[data-bi-theme="dark"] :where(input,textarea)::placeholder { color:#a798c0; opacity:1; }
html[data-bi-theme="dark"] :where(input,textarea,select):focus { outline:2px solid #e2b859; outline-offset:1px; }
html[data-bi-theme="dark"] :where(.srpartners-link,nav a,.topnav a,.tabs a) { background:rgba(106,62,151,.38); color:#ffe095; border-color:rgba(198,152,247,.25); }
html[data-bi-theme="dark"] :where(.srhome-primary,#submit,button[type="submit"],.btn-primary,.primary-btn) { background:linear-gradient(110deg,#ffe28a,#f4c24a) !important; color:#321a49 !important; }
html[data-bi-theme="dark"] :where(.srhome-secondary,.srpartners-controls button) { background:linear-gradient(120deg,#7740b8,#9b6add) !important; color:#fff !important; }
html[data-bi-theme="dark"] .srpartners-dots i { background:#614779; }
html[data-bi-theme="dark"] .srpartners-dots i.active { background:#ffd36c; }
html[data-bi-theme="dark"] .srhome-hero,html[data-bi-theme="dark"] .srpartners { backdrop-filter:blur(10px); }
html[data-bi-theme="dark"] :where(a:not(.srhome-btn):not(.srpartners-card)) { text-decoration-color:rgba(227,189,255,.45); }
html[data-bi-theme="dark"] :where(.brand,.srhome-brand) { color:#dfb9ff !important; }
html[data-bi-theme="dark"] :where(.srhome-brand span,.brand span) { color:#c6addd !important; }
html[data-bi-theme="dark"] :where(hr) { border-color:var(--bi-border); }
@media(max-width:760px) {
  .bi-theme-toggle { width:44px; height:44px; border-radius:14px; }
  .srhome-page { width:100%; padding-inline:14px !important; }
  .srhome-header { flex-wrap:wrap; gap:12px; }
  .srhome-brand { min-width:0; font-size:clamp(18px,5vw,25px); }
  .srhome-hero { padding:38px 18px !important; min-height:0; }
  .srhome-hero h1 { font-size:clamp(29px,8.2vw,43px) !important; letter-spacing:-.6px !important; overflow-wrap:anywhere; }
  .srhome-description { font-size:14px !important; line-height:1.65; }
  .srhome-actions { display:flex; flex-direction:column; width:100%; gap:12px; }
  .srhome-actions .srhome-btn { width:100%; min-width:0; max-width:100%; white-space:normal; padding:15px 17px; }
  .srpartners { padding:20px 14px !important; }
  .srpartners-heading { display:flex; flex-wrap:wrap; gap:14px; }
  .srpartners-heading > div:first-child { min-width:0; flex:1 1 180px; }
  .srpartners-heading h2 { font-size:clamp(21px,6vw,28px); overflow-wrap:anywhere; }
  .srpartners-controls { margin-left:auto; }
  .srpartners-controls button { width:42px; height:42px; }
  .srpartners-track { max-width:none !important; }
  .srpartners-card { min-width:0; flex-basis:82%; }
  :where(input,textarea,select,button) { max-width:100%; }
  :where(.form-card,.plan-card,.tariff-card,.price-card,#result) { max-width:100%; }
  :where(.srhome-footer) { text-align:center; justify-content:center; }
}
@media(max-width:370px) {
  .srhome-hero { padding:30px 13px !important; }
  .srpartners { padding:17px 11px !important; }
  .srpartners-card { flex-basis:85%; }
  .srhome-brand { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .bi-theme-toggle { transition:none; } }
