:root{color-scheme:light;--surface:#fff;--surface-soft:#f3f6fb;--surface-card:#fff;--border:#dce5f0;--heading:#13253f;--copy:#53657e;--accent:#246dbe}
:root[data-theme=dark]{color-scheme:dark;--ink:#e5edf8;--muted:#a4b4cc;--paper:#0e1729;--line:#26364d;--royal:#80b9ff;--surface:#0a1221;--surface-soft:#101c30;--surface-card:#132039;--border:#293c56;--heading:#e5edf8;--copy:#a4b4cc;--accent:#80b9ff}
body{background:var(--surface);color:var(--heading)}.theme-toggle{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;color:var(--heading);background:var(--surface-soft)}.theme-toggle svg{width:18px;height:18px}.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}.theme-sun{display:none}[data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}.brand .logo-on-dark{display:none}[data-theme=dark] .brand .logo-on-dark{display:block}[data-theme=dark] .brand .logo-on-light{display:none}.header-inner{gap:20px}.navigation{gap:24px}.site-header{background:var(--surface);border-color:var(--border);backdrop-filter:none}.navigation>a{color:var(--copy)}.menu-toggle>span{background:var(--heading)}.eyebrow{color:var(--copy)}.theme-toggle:focus-visible{outline-offset:3px}
/* Full light treatment, including the institutional hero and technology sections. */
[data-theme=light] .company-hero,[data-theme=light] .subhero,[data-theme=light] .technology-section,[data-theme=light] .system-story,[data-theme=light] .platform-section{background:#f4f8fe;background-image:radial-gradient(ellipse at 80% 40%,#d6e8fc88,transparent 65%);color:var(--heading)}
[data-theme=light] :is(.company-hero,.subhero,.technology-section,.system-story,.platform-section) :is(.eyebrow,.breadcrumb,.company-link,.company-location,.motion-toggle,.company-hero-foot>span,.watch-link,.hero-partners,.hero-partners>span,.about-art>span){color:#4d6686}
[data-theme=light] :is(.company-hero,.subhero,.technology-section,.system-story,.platform-section) :is(h1 em,h2 em){color:#276fb9}
[data-theme=light] :is(.company-hero-copy,.subhero-grid>div,.technology-section,.system-story,.platform-heading,.platform-stat)>p{color:#526780}
[data-theme=light] .company-hero-foot{border-color:#cddced}[data-theme=light] .company-link:hover{color:#2458a6}[data-theme=light] .platform-stat>strong,[data-theme=light] .platform-stat>span{color:#236cb2}[data-theme=light] .platform-stat>a{color:#45658c}
[data-theme=light] .technology-map,[data-theme=light] .agent-blueprint{background:#e9f2fc;border-color:#c1d5ee}[data-theme=light] :is(.map-row>span,.agent-blueprint>div){background:#ffffffb8;color:#28496f;border-color:#c5d7ed}[data-theme=light] :is(.map-label,.map-row small,.technology-map>p,.blueprint-label){color:#536f94}[data-theme=light] .map-core{background:linear-gradient(120deg,#c9e3ff,#b4cff4);color:#173b6f;border-color:#94b4e0}[data-theme=light] :is(.map-core small,.map-core-icon){color:#295c9c}[data-theme=light] .check-list>li{color:#496583}
[data-theme=light] .footer{background:#edf3fa;color:#536780}[data-theme=light] .footer :is(p,.location,h3,.footer-bottom,.motion-toggle),[data-theme=light] .footer-grid>div:not(:first-child)>:is(a,span){color:#536780}[data-theme=light] .footer h3{color:#253a59}[data-theme=light] .footer a:hover{color:#236abb}[data-theme=light] .footer-bottom{border-color:#cfdae9}
/* Dark surfaces across product, company, contact and legal pages. */
[data-theme=dark] :is(.solutions,.closing,.plans-section,.company-partnerships,.bitrix-implementation,.product-experience,.page-bitrix24 .product-experience,.page-kommo .product-experience,.contact-section,.legal-hero){background:var(--surface-soft)}
[data-theme=dark] :is(.solution-card,.plans-grid>article,.contact-card,.contact-options>button,.product-gallery,.service-grid>article,.process-number>span,.contact-channels>a>span:first-child,.contact-channels>div>span:first-child,.message-card,.lead-card,.node,.floating-chip,.image-dialog){background:var(--surface-card);border-color:var(--border);color:var(--heading)}
[data-theme=dark] :is(.solution-art,.real-mini,.real-mini-kommo,.mini-system,.product-tabs,.page-bitrix24 .product-tabs,.page-kommo .product-tabs,.demo-top,.demo-sidebar,.demo-controls,.column-slot,.service-icon){background:#182a43;border-color:var(--border)}
[data-theme=dark] :is(.solution-card,.service-grid>article,.plans-grid>article,.company-principles,.partnership-grid>a,.operations-list article,.implementation-steps article,.faq-list details,.process-number,.product-gallery,.product-tabs,.contact-legal,.contact-options>button,.demo-stage){border-color:var(--border)}
[data-theme=dark] :is(.company-intro-grid>div>p:first-child,.kommo-wordmark,.contact-channels strong,.product-panel-copy h3,.page-bitrix24 .product-panel-copy h3,.page-kommo .product-panel-copy h3,.legal ul){color:var(--heading)}
[data-theme=dark] :is(.solution-top,.solution-tags,.solution-number,.caption,.screen-credit,.product-disclaimer,.product-tabs button,.product-tabs button>span,.product-kicker,.real-mini>span,.contact-step,.contact-options small,.contact-card>.contact-note,.contact-legal,.contact-channels small,.legal>.updated,.company-location){color:var(--copy)}
[data-theme=dark] :is(.company-intro .text-link,.operations-grid .text-link,.plans-grid .text-link,.partnership-grid>a>strong,.partner-wordmark,.legal a){color:var(--accent)}
[data-theme=dark] .product-tabs button[aria-selected=true],[data-theme=dark] .contact-options>button[aria-pressed=true]{background:#23426b;border-color:#527caf;color:#b4d8ff}[data-theme=dark] .product-tabs button[aria-selected=true]>span{color:#b4d8ff}[data-theme=dark] .official-screen{background:radial-gradient(ellipse,#1b355c,transparent 70%)}
[data-theme=dark] .kommo-landing{background:#13251f;background-image:radial-gradient(ellipse at 50% 80%,#2e493080,transparent 65%)}[data-theme=dark] :is(.kommo-heading h1,.kommo-product-name,.conversation-journey h3){color:#e0eedc}[data-theme=dark] :is(.kommo-heading h1 em,.kommo-heading .company-link,.kommo-journey em,.page-kommo .section-head em,.page-kommo .product-experience .section-head em){color:#acd086}[data-theme=dark] :is(.kommo-heading>p,.kommo-heading .eyebrow,.kommo-landing .breadcrumb,.kommo-channel-pills>span,.conversation-journey p,.journey-top){color:#b0c3a7}[data-theme=dark] .kommo-channel-pills>span{background:#223b2c;border-color:#415b3e}[data-theme=dark] .conversation-journey article{background:#182b23;border-color:#34503b}[data-theme=dark] .conversation-journey article:nth-child(2){background:#1e3327}[data-theme=dark] .conversation-journey article:nth-child(3){background:#243c2d}[data-theme=dark] .kommo-wide-screen>p{background:#182b23;color:#b0c3a7}[data-theme=dark] .page-kommo .service-icon{background:#21392a;color:#b0cc98;border-color:#38533b}
[data-theme=dark] .skip{background:var(--surface-card)}[data-theme=dark] .motion-toggle:hover{color:#cce2ff}[data-theme=light] .motion-toggle:hover{color:#235fac}
[data-theme=dark] .offer{background:#172b46;border-color:var(--border);color:var(--heading)}[data-theme=dark] .offer p{color:var(--copy)}[data-theme=dark] .offer-icon{border-color:#3e628f;color:var(--accent)}[data-theme=dark] .button.primary:not(.demo-cta){background:#2769d7;color:white}
@media(max-width:1100px){.header-inner{gap:13px}.navigation{gap:17px;margin-right:0}.site-header .brand-logo{width:130px}.site-header .button.nav-cta{font-size:10px;padding-inline:12px}}
@media(max-width:850px) and (min-width:681px){.site-header .nav-cta{display:none}.navigation{gap:20px}.header-inner{gap:20px}}
@media(max-width:680px){.site-header .nav-cta{display:none}.theme-toggle{margin-left:auto;width:36px;height:36px}.header-inner{gap:16px}.navigation{background:var(--surface);border-color:var(--border)}.navigation>a{color:var(--copy)}}
