/* Theme layer. "current" is the production dark style and stays visually intact. */
html[data-theme="current"],
html[data-theme="dark"]{
  color-scheme:dark;
  --chatbg:rgba(10,13,22,.92);
  --ubub:#0F6DD3;
  --abub:rgba(255,255,255,.075);
  --status-green:#22C55E;
}

html[data-theme="light"]{
  color-scheme:light;
  --bg:#EFF2F7;
  --bg1:#F5F8FC;
  --bg2:#E9EFF6;
  --text:#1b2333;
  --muted:#566072;
  --dim:#6b748a;
  --line:rgba(22,32,60,.12);
  --line2:rgba(22,32,60,.20);
  --panel:#ffffff;
  --panel2:#ffffff;
  --surface:#ffffff;
  --surfaceShadow:0 8px 26px rgba(20,30,60,.07);
  --field:#f4f7fb;
  --blue:#0f6dd3;
  --blue-hi:#1e8ece;
  --blue-soft:#0a63c4;
  --green:#0a8a45;
  --amber:#b4751a;
  --chatbg:#ffffff;
  --ubub:#0F6DD3;
  --abub:#eef3f9;
  --status-green:#22C55E;
  --auroraOp:.55;
  --font-head:'Montserrat',system-ui,sans-serif;
  --font-body:'Montserrat',system-ui,sans-serif;
}

:root{--theme-morph:.34s ease}

.rv{
  transition:opacity .7s cubic-bezier(.2,.6,.2,1),transform .7s cubic-bezier(.2,.6,.2,1),background var(--theme-morph),color var(--theme-morph),border-color var(--theme-morph),box-shadow var(--theme-morph);
}

body,
.nav,
.btn,
.dash,
.card,
.marketItem,
.audienceRow,
.tabPanel,
.scenario,
.statement,
.modalBox,
.themeChat,
.themeChead,
.themeCdate,
.themeBub,
.themeWho,
.themeMeta,
.themeCinput,
.themeCfield,
.themeAvatar:after,
.themeAgentTitle span,
.themeAgentTitle span:before,
.themeClog::-webkit-scrollbar-thumb,
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.roleSelect,
.phonePrefix{
  transition:background var(--theme-morph),color var(--theme-morph),border-color var(--theme-morph),box-shadow var(--theme-morph);
}

/* Light theme surface and contrast fixes for existing dark-authored components. */
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .aurora{background:
  radial-gradient(900px 680px at 84% -12%, rgba(15,109,211,.13), transparent 62%),
  radial-gradient(760px 560px at -12% 4%, rgba(164,54,170,.10), transparent 58%),
  var(--bg)}
html[data-theme="light"] .aurora b{opacity:var(--auroraOp);filter:blur(120px)}
html[data-theme="light"] .aurora .a1{background:radial-gradient(circle at 35% 35%, rgba(15,109,211,.16), transparent 70%)}
html[data-theme="light"] .aurora .a2{background:radial-gradient(circle at 60% 40%, rgba(164,54,170,.12), transparent 70%)}
html[data-theme="light"] .aurora .a3{background:radial-gradient(circle at 50% 50%, rgba(230,75,218,.10), transparent 70%)}
html[data-theme="light"] .aurora:after{background:radial-gradient(120% 90% at 50% 0%, transparent 58%, rgba(239,242,247,.88) 100%)}
html[data-theme="light"] .rv,
html[data-theme="light"] .rv.in{
  opacity:1!important;
  transform:none!important;
  transition:background var(--theme-morph),color var(--theme-morph),border-color var(--theme-morph),box-shadow var(--theme-morph)!important;
}
html[data-theme="light"] .nav,
html[data-theme="light"] .mobileNavPanel{background:rgba(35,38,49,.92);border-color:rgba(22,32,60,.16);box-shadow:0 14px 38px rgba(20,30,60,.16)}
html[data-theme="light"] .navlinks{color:#d9deeb}
html[data-theme="light"] .navlinks a:hover,
html[data-theme="light"] .tabBtn:hover,
html[data-theme="light"] .tabBtn.on,
html[data-theme="light"] .cardLink:hover{background:rgba(255,255,255,.08);color:#fff}
html[data-theme="light"] .mobileMenuToggle{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
html[data-theme="light"] .mobileNavPanel a{background:rgba(255,255,255,.06);color:#eef3ff}
html[data-theme="light"] .btn.glass{background:#fff;color:#1b2333;border-color:var(--line2);box-shadow:0 8px 26px rgba(20,30,60,.06)}
html[data-theme="light"] .btn.glass:hover{background:#f4f7fb;border-color:rgba(15,109,211,.28)}
html[data-theme="light"] .btn.dark{background:#1b2333;color:#fff;border-color:#1b2333}
html[data-theme="light"] body[data-accent="Градиент"] .btn.accent{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#0F6DD3;
  box-shadow:0 12px 34px rgba(15,109,211,.18);
}
html[data-theme="light"] body[data-accent="Градиент"] .btn.accent:before{
  content:"";
  position:absolute;
  inset:0 1px;
  z-index:-1;
  border-radius:inherit;
  background:linear-gradient(92deg,#0F6DD3 0%,#276bcf 18%,#A436AA 62%,#E64BDA 100%);
  pointer-events:none;
}
html[data-theme="light"] body[data-accent="Градиент"] .btn.accent:hover{
  background:#1e8ece;
}
html[data-theme="light"] body[data-accent="Градиент"] .btn.accent:hover:before{
  background:linear-gradient(92deg,#1e8ece 0%,#318fd1 18%,#A436AA 62%,#E64BDA 100%);
}
html[data-theme="light"] .kicker{background:rgba(15,109,211,.09);border-color:rgba(15,109,211,.20);color:var(--blue-soft)}
html[data-theme="light"] body[data-accent="Градиент"] .kicker{background:rgba(15,109,211,.09);border-color:rgba(15,109,211,.20);color:var(--blue-soft)}
html[data-theme="light"] .hero h1 .hl{background:linear-gradient(95deg,#A436AA 0%,#8d63c6 48%,#E64BDA 100%);background-clip:text;-webkit-background-clip:text}
html[data-theme="light"] .hero h1 .hl .agnt{-webkit-text-fill-color:transparent;color:transparent;filter:none;animation:none}
html[data-theme="light"] .heroValuePrefix{color:#38445b;text-shadow:0 1px 0 rgba(255,255,255,.5)}
html[data-theme="light"] .heroValueText{color:#3f4859}
html[data-theme="light"] .heroValueTag{
  color:#4a5568;
  background:rgba(255,255,255,.72);
  border-color:rgba(22,32,60,.16);
  box-shadow:0 4px 12px rgba(20,30,60,.05);
}
html[data-theme="light"] .heroValueTag:hover{
  color:#20304d;
  background:#fff;
  border-color:rgba(15,109,211,.32);
}
html[data-theme="light"] .heroValueTag.is-active{
  color:#fff;
  border-color:rgba(15,109,211,.36);
  background:linear-gradient(135deg,#0F6DD3 0%,#435fba 48%,#A436AA 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.66) inset,0 10px 28px rgba(15,109,211,.22);
}
html[data-theme="light"] .dash,
html[data-theme="light"] .card,
html[data-theme="light"] .scenario,
html[data-theme="light"] .audienceRow,
html[data-theme="light"] .tabPanel,
html[data-theme="light"] .statement,
html[data-theme="light"] .modalBox{background:var(--surface);box-shadow:var(--surfaceShadow);backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-theme="light"] .dash:hover,
html[data-theme="light"] .card:hover,
html[data-theme="light"] .marketItem:hover,
html[data-theme="light"] .audienceRow:hover,
html[data-theme="light"] .scenario:hover{background:#fff;border-color:rgba(15,109,211,.22)}
html[data-theme="light"] .dash h3,
html[data-theme="light"] .card h3,
html[data-theme="light"] .audRole,
html[data-theme="light"] .scenarioTop h3,
html[data-theme="light"] .tabPanel h3,
html[data-theme="light"] .marketItem b,
html[data-theme="light"] .scenarioModalItem b,
html[data-theme="light"] .expTxt b{color:var(--text)}
html[data-theme="light"] .dash p,
html[data-theme="light"] .card p,
html[data-theme="light"] .scenarioTop p,
html[data-theme="light"] .tabPanel .tabLead,
html[data-theme="light"] .scenarioModal .scenarioLead,
html[data-theme="light"] .scenarioModalItem p{color:var(--muted)}
html[data-theme="light"] .marketItem,
html[data-theme="light"] .scenarioModalItem{background:#fff;border-color:var(--line);box-shadow:var(--surfaceShadow)}
html[data-theme="light"] .statement:before{background:radial-gradient(circle,rgba(15,109,211,.10),transparent 70%)}
html[data-theme="light"] .scenarioTop,
html[data-theme="light"] .scenario.service .scenarioTop{background:linear-gradient(160deg,rgba(15,109,211,.08),transparent 70%)}
html[data-theme="light"] .scenarioBody li,
html[data-theme="light"] .tabPanel li{color:#4a5568}
html[data-theme="light"] .tabBtn{background:#fff;color:#566072;border-color:var(--line)}
html[data-theme="light"] .scenarioMore,
html[data-theme="light"] .scenarioModalNote{color:#1b2333}
html[data-theme="light"] .modal{background:rgba(239,242,247,.78)}
html[data-theme="light"] .modalClose{background:#f4f7fb;color:#1b2333;border-color:var(--line2)}
html[data-theme="light"] #contactModal .modalClose.floatClose{background:#f4f7fb;color:#1b2333;border-color:var(--line2);box-shadow:0 8px 22px rgba(20,30,60,.10)}
html[data-theme="light"] #contactModal .modalClose.floatClose:hover{background:#e9eff6}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .roleSelect,
html[data-theme="light"] .fbInput,
html[data-theme="light"] .fbSelect{background:var(--field);color:var(--text);border-color:var(--line2)}
html[data-theme="light"] #contactModal .field input[type="text"],
html[data-theme="light"] #contactModal .field input[type="tel"],
html[data-theme="light"] #contactModal .field input[type="email"],
html[data-theme="light"] #contactModal .roleSelect{
  background:var(--field)!important;
  color:var(--text)!important;
  border-color:var(--line2)!important;
}
html[data-theme="light"] select,
html[data-theme="light"] .roleSelect,
html[data-theme="light"] .fbSelect{color-scheme:light}
html[data-theme="light"] select option,
html[data-theme="light"] .roleSelect option,
html[data-theme="light"] .fbSelect option{
  background:#ffffff!important;
  color:#1b2333!important;
}
html[data-theme="light"] select option:checked,
html[data-theme="light"] .roleSelect option:checked,
html[data-theme="light"] .fbSelect option:checked{
  background:#0f6dd3!important;
  color:#ffffff!important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#7b8496}
html[data-theme="light"] .field label,
html[data-theme="light"] .fbLabel,
html[data-theme="light"] .modalExpertsBottom .expertsLabel,
html[data-theme="light"] .modalExpertsBottom .expertStatusAnim,
html[data-theme="light"] .expertStatusAnim .sep{color:#4a5568!important}
html[data-theme="light"] .formDivider{color:#697386!important}
html[data-theme="light"] .formDivider:before,
html[data-theme="light"] .formDivider:after{background:rgba(22,32,60,.16)!important}
html[data-theme="light"] .fbExpertChat{border-top-color:rgba(22,32,60,.12)!important}
html[data-theme="light"] .finalContact{color:#4a5568!important}
html[data-theme="light"] .finalContact a{color:#0a63c4!important}
html[data-theme="light"] .finalContact a:hover{color:#084a95!important}
html[data-theme="light"] .consentRow{color:#4a5568}
html[data-theme="light"] .toggleText strong{color:#1b2333}
html[data-theme="light"] .toggleText small{color:#4a5568}
html[data-theme="light"] .consentRow a{color:#0a63c4!important}
html[data-theme="light"] .consentRow a:hover,
html[data-theme="light"] .consentRow a:focus-visible{color:#084a95!important}
html[data-theme="light"] .btn.disabled,
html[data-theme="light"] .btn[disabled],
html[data-theme="light"] .btn[data-agpmo-live].disabled,
html[data-theme="light"] .btn[data-agpmo-live][aria-disabled="true"]{opacity:1;color:#697386;background:#fff;border-color:rgba(22,32,60,.14);box-shadow:0 6px 18px rgba(20,30,60,.04)}
html[data-theme="light"] .btn.accent.disabled,
html[data-theme="light"] .btn.accent[disabled],
html[data-theme="light"] .btn.accent[data-agpmo-live].disabled,
html[data-theme="light"] .btn.accent[data-agpmo-live][aria-disabled="true"]{color:#fff!important;background:#0F6DD3!important;opacity:.82;filter:saturate(.72)}
html[data-theme="light"] .btn.accent.disabled:before,
html[data-theme="light"] .btn.accent[disabled]:before,
html[data-theme="light"] .btn.accent[data-agpmo-live].disabled:before,
html[data-theme="light"] .btn.accent[data-agpmo-live][aria-disabled="true"]:before{display:none}
html[data-theme="light"] .fbButtons .btn[disabled]{opacity:1}
html[data-theme="light"] #demo .agentVideoText strong,
html[data-theme="light"] #demo .valueGrid b,
html[data-theme="light"] #demo .agentVideoText em,
html[data-theme="light"] #research .analystTop h3,
html[data-theme="light"] #research .analystTile p b,
html[data-theme="light"] #audience .audienceBlockHead h3,
html[data-theme="light"] #audience .audienceCardHead h4,
html[data-theme="light"] #security .securityTop h3{color:var(--text)!important}
html[data-theme="light"] #demo .agentVideoText span,
html[data-theme="light"] #demo .valueGrid p,
html[data-theme="light"] #demo .agentBusinessValuePlain p,
html[data-theme="light"] #demo .agentCaptionPlain p,
html[data-theme="light"] #research .analystTile ul,
html[data-theme="light"] #research .analystTile p,
html[data-theme="light"] #audience .audienceCard p,
html[data-theme="light"] #audience .audienceBulletList,
html[data-theme="light"] #audience .audienceFact span,
html[data-theme="light"] #security .securityTile p,
html[data-theme="light"] #security .securityTile ul{color:#4a5568!important}
html[data-theme="light"] #audience .audienceRisk{color:#8a4b2d!important;border-top-color:rgba(138,75,45,.22)}
html[data-theme="light"] #audience .audienceRisk strong{color:#9a4a1f!important}
html[data-theme="light"] #research .sourceLinks a{
  background:#e8f1ff!important;
  border-color:rgba(15,109,211,.34)!important;
  color:#0a63c4!important;
  box-shadow:0 4px 14px rgba(15,109,211,.12);
}
html[data-theme="light"] #research .deloitte .sourceLinks a{
  background:#e7f5dc!important;
  border-color:rgba(72,118,14,.34)!important;
  color:#3f6f0a!important;
  box-shadow:0 4px 14px rgba(72,118,14,.10);
}
html[data-theme="light"] #research .mckinsey .sourceLinks a{
  background:#eeeafd!important;
  border-color:rgba(103,77,205,.34)!important;
  color:#5f43bf!important;
  box-shadow:0 4px 14px rgba(103,77,205,.10);
}
html[data-theme="light"] #research .analystConclusion p{color:#1b2333!important}
html[data-theme="light"] #security .securityConclusion p{color:#3d4a60!important}
html[data-theme="light"] #research .analystConclusion p,
html[data-theme="light"] #security .securityConclusion p{
  font-family:var(--font-body)!important;
  font-size:clamp(17px,1.9vw,21px)!important;
  line-height:1.6!important;
  font-weight:400!important;
  color:var(--muted)!important;
  max-width:880px!important;
}
html[data-theme="current"] #research .analystConclusion p,
html[data-theme="dark"] #research .analystConclusion p,
html[data-theme="current"] #security .securityConclusion p,
html[data-theme="dark"] #security .securityConclusion p{
  font-family:var(--font-body)!important;
  font-size:clamp(17px,1.9vw,21px)!important;
  line-height:1.6!important;
  font-weight:400!important;
  color:var(--muted)!important;
  max-width:880px!important;
}
html[data-theme="light"] .fbResultBlock .scen-card{
  background:#ffffff!important;
  border-color:rgba(15,109,211,.28)!important;
  box-shadow:0 8px 26px rgba(20,30,60,.07)!important;
}
html[data-theme="light"] .fbResultBlock .scen-card h5{
  color:#1b2333!important;
}
html[data-theme="light"] .fbResultBlock .scen-card-eyebrow{
  color:#0a63c4!important;
}
html[data-theme="light"] .fbResultBlock .scen-card p{
  color:#4a5568!important;
}
html[data-theme="light"] .fbResultBlock .modal-matrix{
  background:#ffffff!important;
  border-color:rgba(15,109,211,.22)!important;
  box-shadow:0 8px 26px rgba(20,30,60,.07)!important;
}
html[data-theme="light"] .fbResultBlock .modal-matrix-title{
  color:#1b2333!important;
}
html[data-theme="light"] .fbResultBlock .mmq{
  border:1px solid rgba(255,255,255,.72);
}
html[data-theme="light"] .fbResultBlock .mmq .qt{
  color:#1b2333!important;
  font-weight:800!important;
}
html[data-theme="light"] .fbResultBlock .mmq .qs{
  color:#4a5568!important;
  opacity:1!important;
  font-weight:600!important;
}
html[data-theme="light"] .fbResultBlock .mmq-tl{background:#eeeafd!important}
html[data-theme="light"] .fbResultBlock .mmq-tr{background:#e7f7ee!important}
html[data-theme="light"] .fbResultBlock .mmq-bl{background:#fff0f0!important}
html[data-theme="light"] .fbResultBlock .mmq-br{background:#fff4e2!important}
html[data-theme="light"] .fbResultBlock .modal-matrix-dot{
  border-color:#ffffff!important;
  box-shadow:0 0 0 3px rgba(15,109,211,.18),0 8px 18px rgba(15,109,211,.34)!important;
}
html[data-theme="light"] .fbResultBlock .modal-matrix-callout{
  background:#e8f1ff!important;
  border-color:rgba(15,109,211,.24)!important;
  color:#1b2333!important;
}
html[data-theme="light"] footer.foot{
  border-top-color:rgba(22,32,60,.12)!important;
  color:#4a5568!important;
}
html[data-theme="light"] .footBrand h4,
html[data-theme="light"] .footCol h4{color:#1b2333!important}
html[data-theme="light"] .footBrand p,
html[data-theme="light"] .footCol li{color:#4a5568!important}
html[data-theme="light"] .footBrand a,
html[data-theme="light"] .footCol a{color:#0a63c4!important}
html[data-theme="light"] .footBrand a:hover,
html[data-theme="light"] .footCol a:hover{color:#084a95!important}
html[data-theme="light"] .footBottom{
  border-top-color:rgba(22,32,60,.12)!important;
  color:#697386!important;
}
html[data-theme="light"] .cookieSettingsLink{color:#0a63c4!important}
html[data-theme="light"] .cookieSettingsLink:hover{color:#084a95!important}
html[data-theme="light"] .secline,
html[data-theme="light"] .divider{background:linear-gradient(90deg,transparent,rgba(22,32,60,.14),transparent)}

.footBottom{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.cookieSettingsLink{appearance:none;border:0;background:transparent;color:var(--blue-soft);font:inherit;font-size:13px;font-weight:700;line-height:1.4;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:0}
.cookieSettingsLink:hover{color:#fff}

.cookieLayer{position:fixed;left:20px;right:20px;bottom:20px;z-index:10000;display:flex;justify-content:flex-end;pointer-events:none;opacity:0;transform:translateY(14px);transition:opacity .22s ease,transform .22s ease}
.cookieLayer.is-visible{opacity:1;transform:translateY(0)}
.cookieLayer.is-hiding{opacity:0;transform:translateY(14px)}
.cookiePanel{width:min(600px,100%);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:17px 18px 17px 20px;border:1px solid rgba(122,160,255,.26);border-radius:20px;background:color-mix(in srgb,var(--chatbg) 93%,#050812 7%);box-shadow:0 20px 60px rgba(0,0,0,.36),0 0 0 1px rgba(255,255,255,.04) inset;color:var(--text);pointer-events:auto}
.cookieCopy{min-width:0}
.cookieEyebrow{display:block;margin:0 0 5px;color:var(--blue-soft);font-size:11px;font-weight:800;line-height:1.3;letter-spacing:.08em;text-transform:uppercase}
.cookiePanel h3{margin:0;color:var(--text);font-family:var(--font-head);font-size:18px;line-height:1.18;font-weight:800;letter-spacing:0}
.cookieText{margin:8px 0 0;color:var(--muted);font-size:13.5px;line-height:1.5}
.cookieText a{color:var(--blue-soft);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.cookieText a:hover{color:#fff}
.cookieActions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.cookieActions .btn{min-height:42px;padding:11px 15px;border-radius:13px;font-size:13px;line-height:1.2;white-space:nowrap}

html[data-theme="light"] .cookiePanel{background:#ffffff;border-color:rgba(15,109,211,.22);box-shadow:0 18px 55px rgba(20,30,60,.14),0 0 0 1px rgba(255,255,255,.85) inset;color:#1b2333}
html[data-theme="light"] .cookiePanel h3{color:#1b2333}
html[data-theme="light"] .cookieText{color:#4a5568}
html[data-theme="light"] .cookieText a{color:#0a63c4}
html[data-theme="light"] .cookieText a:hover{color:#084a95}

@media(max-width:760px){
  .cookieLayer{left:12px;right:12px;bottom:12px;justify-content:center}
  .cookiePanel{grid-template-columns:1fr;gap:14px;padding:17px 16px;border-radius:20px}
  .cookieActions{justify-content:stretch}
  .cookieActions .btn{flex:1 1 135px}
}

html[data-theme="current"] #security .securityTile:before,
html[data-theme="dark"] #security .securityTile:before,
html[data-theme="current"] #audience .audienceCard:before,
html[data-theme="dark"] #audience .audienceCard:before{
  height:4px;
  opacity:1;
  box-shadow:0 0 22px rgba(122,160,255,.34);
}
html[data-theme="current"] #security .securityTile.pmo:before,
html[data-theme="dark"] #security .securityTile.pmo:before,
html[data-theme="current"] #audience .audienceCard:nth-child(1):before,
html[data-theme="dark"] #audience .audienceCard:nth-child(1):before{
  background:linear-gradient(90deg,#2e7cf6 0%,#7aa0ff 68%,rgba(122,160,255,.18) 100%);
}
html[data-theme="current"] #security .securityTile.data:before,
html[data-theme="dark"] #security .securityTile.data:before,
html[data-theme="current"] #audience .audienceCard:nth-child(2):before,
html[data-theme="dark"] #audience .audienceCard:nth-child(2):before{
  background:linear-gradient(90deg,#5fd0a0 0%,#86bc25 64%,rgba(134,188,37,.16) 100%);
  box-shadow:0 0 22px rgba(95,208,160,.30);
}
html[data-theme="current"] #security .securityTile.arch:before,
html[data-theme="dark"] #security .securityTile.arch:before,
html[data-theme="current"] #audience .audienceCard:nth-child(3):before,
html[data-theme="dark"] #audience .audienceCard:nth-child(3):before{
  background:linear-gradient(90deg,#8d7cff 0%,#b48cff 62%,rgba(141,124,255,.16) 100%);
  box-shadow:0 0 22px rgba(141,124,255,.32);
}

/* Hero placement for the theme switcher. */
body[data-hero="Сплит"] .heroGrid{grid-template-columns:minmax(0,1fr) minmax(430px,560px);gap:40px;align-items:center}
body[data-hero="Сплит"] .hero .heroDashboard{grid-template-columns:1fr 1fr;margin-top:28px}
.themeWidgetShell{justify-self:start;align-self:center;width:100%;max-width:560px;margin:0}
.themeStyleBadge{display:inline-block;margin:14px 0 30px;padding:6px 13px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--muted);font-size:12px;font-weight:700;line-height:1.55;letter-spacing:0;text-transform:none;box-shadow:none}
.themeChat{position:relative;overflow:hidden;display:flex;flex-direction:column;width:100%;height:360px;min-height:0;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--chatbg);box-shadow:0 24px 60px rgba(8,14,30,.22);backdrop-filter:none;-webkit-backdrop-filter:none}
.themeChead{display:flex;align-items:center;gap:11px;padding:13px 15px;border-bottom:1px solid var(--line)}
.themeAvatar{position:relative;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#0F6DD3,#A436AA);color:#fff;font-family:var(--font-head);font-size:17px;font-weight:800}
.themeAvatar:after{content:"";position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:var(--status-green);border:2px solid var(--chatbg)}
.themeAgentTitle{display:block;line-height:1.2}
.themeAgentTitle b{display:block;font-size:14px}
.themeAgentTitle span{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--status-green);font-weight:700}
.themeAgentTitle span:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--status-green);display:inline-block}
.themeMenuWrap{position:relative;margin-left:auto;flex:0 0 auto}
.themeMenu{appearance:none;width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--dim);font-family:inherit;font-size:18px;line-height:1;letter-spacing:2px;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}
.themeMenu:hover,.themeMenu[aria-expanded="true"]{background:rgba(255,255,255,.07);border-color:var(--line);color:var(--text)}
.themeInfoPanel{position:absolute;right:0;top:calc(100% + 9px);z-index:20;width:min(320px,calc(100vw - 46px));padding:14px 15px 15px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--chatbg) 94%,#000 6%);box-shadow:0 18px 44px rgba(0,0,0,.28);color:var(--text)}
.themeInfoPanel[hidden]{display:none}
.themeInfoPanel:before{content:"";position:absolute;top:-7px;right:13px;width:12px;height:12px;border-left:1px solid var(--line);border-top:1px solid var(--line);background:inherit;transform:rotate(45deg)}
.themeInfoPanel b{display:block;margin-bottom:7px;font-size:13px;line-height:1.35;color:var(--text)}
.themeInfoPanel p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.5}
.themeCdate{width:max-content;margin:14px auto 12px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.07);color:var(--dim);font-size:11px;font-weight:800}
.themeClog{flex:1 1 0;display:flex;flex-direction:column;gap:4px;overflow-y:auto;padding:15px;scroll-behavior:smooth}
.themeClog::-webkit-scrollbar{width:7px}
.themeClog::-webkit-scrollbar-thumb{background:var(--line2);border-radius:4px}
.themeRow{display:flex;flex-direction:column;max-width:85%;margin-bottom:7px;opacity:0;transform:translateY(8px);animation:themeIn .35s ease forwards}
.themeRow.themeUser{align-self:flex-end;align-items:flex-end}
.themeRow.themeAgent{align-self:flex-start;align-items:flex-start}
.themeWho{margin-bottom:5px;color:var(--dim);font-size:11px;font-weight:700;line-height:1.35}
.themeBub{max-width:none;padding:9px 13px;border-radius:15px;font-size:13px;line-height:1.5;border:0}
.themeRow.themeAgent .themeBub{background:var(--abub);color:var(--text);border:1px solid var(--line);border-bottom-left-radius:5px}
.themeRow.themeUser .themeBub{background:var(--ubub);color:#fff;border-color:transparent;border-bottom-right-radius:5px}
.themeMeta{display:flex;align-items:center;gap:3px;margin-top:5px;font-size:10px;color:var(--dim)}
.themeRow.themeUser .themeMeta{justify-content:flex-end;color:rgba(255,255,255,.76)}
.themeTick{
  position:relative;
  display:inline-block;
  width:16px;
  height:11px;
  margin-left:-1px;
  color:rgba(255,255,255,.9);
  font-size:0;
  line-height:0;
  vertical-align:-1px;
}
.themeTick:before{
  content:"";
  position:absolute;
  inset:0;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='11' viewBox='0 0 16 11' fill='none'%3E%3Cpath d='M1.1 6.1 4.0 8.9 10.7 2.0' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.3 6.1 8.2 8.9 15.0 2.0' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity:.92;
}
.themeTick.read{color:rgba(255,255,255,.92)}
.themeTyping{display:inline-flex;gap:4px;align-items:center}
.themeTyping i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:themeDot 1.05s ease-in-out infinite}
.themeTyping i:nth-child(2){animation-delay:.15s}.themeTyping i:nth-child(3){animation-delay:.3s}
@keyframes themeDot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-3px);opacity:1}}
@keyframes themeIn{to{opacity:1;transform:translateY(0)}}
.themeCinput{display:flex;align-items:center;gap:9px;margin:0;padding:11px 12px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
.themeCbot{position:relative;width:31px;height:31px;flex:0 0 31px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#0F6DD3,#A436AA);color:#fff;font-size:0;overflow:hidden}
.themeCbot:before{content:"";position:absolute;top:7px;left:50%;width:9px;height:9px;border-radius:50%;background:#fff;transform:translateX(-50%)}
.themeCbot:after{content:"";position:absolute;left:50%;bottom:6px;width:17px;height:10px;border-radius:10px 10px 5px 5px;background:#fff;transform:translateX(-50%)}
.themeCfield{flex:1 1 0;min-height:0;display:block;padding:0;border-radius:0;background:transparent;color:var(--text);font-size:12.5px;font-weight:400;line-height:1.55}
.themeCfield .themeCmdPrefix{opacity:.55}
.themeCsend{width:auto;height:auto;flex:0 0 auto;border:0;border-radius:11px;padding:10px 15px;background:linear-gradient(95deg,#0F6DD3,#A436AA 56%,#E64BDA) 0 50%/175% 100%;color:#fff;font-family:inherit;font-size:12.5px;font-weight:700;line-height:1.5;cursor:pointer;transition:background-position .5s ease,transform .2s ease,opacity .3s ease}
.themeCsend:hover{background-position:100% 50%;transform:translateY(-1px);filter:none}
.themeCsend:disabled{opacity:.55;cursor:default}
.themeScan{position:absolute;inset:0;pointer-events:none;opacity:0;z-index:5;background:linear-gradient(115deg,transparent 32%,rgba(230,75,218,.2) 50%,rgba(30,142,206,.12) 56%,transparent 72%);transform:none}
.themeScan.run{animation:themeScan .72s ease}
@keyframes themeScan{0%{opacity:1;transform:translateX(-100%)}100%{opacity:0;transform:translateX(100%)}}

html[data-theme="light"] .themeStyleBadge{background:transparent;box-shadow:none}
html[data-theme="light"] .themeChat{background:var(--chatbg);box-shadow:0 24px 60px rgba(8,14,30,.22)}
html[data-theme="light"] .themeCdate,
html[data-theme="light"] .themeRow.themeAgent .themeBub{background:var(--abub)}
html[data-theme="light"] .themeCinput,
html[data-theme="light"] .themeCfield{background:transparent}
html[data-theme="light"] .themeAgentTitle span{color:var(--status-green)}
html[data-theme="light"] .themeAgentTitle span:before{background:var(--status-green)}
html[data-theme="light"] .themeCfield .themeCmdPrefix{opacity:1;color:var(--muted)}

@media(max-width:900px){
  body[data-hero="Сплит"] .heroGrid{grid-template-columns:1fr;gap:20px}
  .themeWidgetShell{max-width:560px;margin:20px 0 0}
  body[data-hero="Сплит"] .hero .heroDashboard{grid-template-columns:1fr;margin-top:26px}
}
@media(max-width:540px){
  .themeWidgetShell{max-width:none}
  .themeChat{height:360px;border-radius:22px}
  .themeStyleBadge{font-size:12px}
  .themeBub{font-size:13px}
  .themeCfield{font-size:12.5px}
  .themeCsend{padding:10px 13px}
}

@media(max-width:840px){
  html[data-theme="light"] header{top:16px}
  html[data-theme="light"] .nav{width:calc(100% - 32px);height:62px;gap:8px;padding:0 10px 0 12px;border-radius:22px}
  html[data-theme="light"] .brandLogo{height:36px}
  html[data-theme="light"] .navcta{margin-left:auto;padding:10px 14px;border-radius:14px;font-size:14px;background:linear-gradient(92deg,#0F6DD3,#A436AA 62%,#E64BDA);box-shadow:0 8px 24px rgba(15,109,211,.22)}
}

@media(max-width:640px){
  html[data-theme="light"] .hero{padding-top:168px}
  html[data-theme="light"] .hero h1{font-size:clamp(36px,10vw,46px);line-height:1.04}
  html[data-theme="light"] .hero .lead{font-size:18px;line-height:1.58;margin-top:22px}
  html[data-theme="light"] .heroActions{margin-top:38px}
  html[data-theme="light"] .themeWidgetShell{margin:16px 0 0;max-width:none}
  html[data-theme="light"] body[data-hero="Сплит"] .hero .heroDashboard{margin-top:38px;gap:16px}
  html[data-theme="light"] .dash{padding:28px 30px;border-radius:24px}
  html[data-theme="light"] .dash h3{font-size:24px;line-height:1.55}
  html[data-theme="light"] .dash p{font-size:15px;line-height:1.55}
}

@media (prefers-reduced-motion: reduce){
  body,
  .nav,
  .btn,
  .dash,
  .card,
  .marketItem,
  .audienceRow,
  .tabPanel,
  .scenario,
  .statement,
  .modalBox,
  .themeChat,
  .themeChead,
  .themeCdate,
  .themeBub,
  .themeWho,
  .themeMeta,
  .themeCinput,
  .themeCfield{transition:none}
  .themeScan.run,
  .themeTyping i{animation:none}
}
