.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:9px 12px;border:1px solid var(--line,#dce5ee);border-radius:4px;background:transparent;color:var(--ink,#182f4a);font:600 12px/1.2 Arial,sans-serif;cursor:pointer}
.theme-toggle svg{width:18px;height:18px;flex:none}
.theme-toggle:hover{border-color:var(--blue,#1758ce);color:var(--blue,#1758ce)}
.theme-toggle:focus-visible{outline:3px solid #83b8ff;outline-offset:3px}
html[data-theme="light"] .footer-bottom,html[data-theme="light"] .footer-bottom a{color:#526b89}
.footer-contact>a[href$="#region"]{display:inline-flex;align-items:center;min-height:44px}
.client-carousel .client-logo{background:#fff;padding:12px;border-radius:2px;flex-shrink:0}
.client-carousel .client-logo.dark{background:#193450}
.client-carousel .client-logo img{width:100%;height:100%;max-height:100%;object-fit:contain}
@media(max-width:720px){.theme-toggle{padding:9px;min-width:44px}.theme-toggle span{display:none}}

:root[data-theme="dark"]{color-scheme:dark;--ink:#e8f1fa;--blue:#83b8ff;--muted:#adc1d5;--line:#34516c;--soft:#16263b;--ground:#0d1827;--paper:#16263b;--row:#1d3149;--accent:#83b8ff;--accent-ink:#0d1827;--accent-soft:#233c5b;--btn:#34516c;--slot:#1d3149}
:root[data-theme="dark"] .site-shell{--ink:#e8f1fa;--blue:#83b8ff;--muted:#adc1d5;--line:#34516c;--soft:#16263b;background:#0d1827;color:var(--ink)}
:root[data-theme="dark"] body{--ink:#e8f1fa;--blue:#83b8ff;--muted:#adc1d5;--line:#34516c;--paper:#16263b;--accent:#83b8ff;background:#0d1827;color:var(--ink)}
:root[data-theme="dark"] header,:root[data-theme="dark"] .site-shell header{background:#0d1827;color:var(--ink)}
:root[data-theme="dark"] .brand{display:flex;align-items:center;position:relative;background:transparent;border-radius:0;padding:0}
:root[data-theme="dark"] .brand::after{content:"";position:absolute;inset:0;background:url('/micro-solutions-logo.webp') center/contain no-repeat;filter:brightness(0) invert(1);clip-path:inset(0 0 0 36%);pointer-events:none}
:root[data-theme="dark"] .top .tagline,:root[data-theme="dark"] .site-shell .tagline,:root[data-theme="dark"] .nav a,:root[data-theme="dark"] .nav .nav-finder,:root[data-theme="dark"] .nav-dropdown>summary{color:var(--ink)}
:root[data-theme="dark"] .site-shell #life-search input,:root[data-theme="dark"] .site-shell #life-search input::placeholder{color:var(--muted)}
:root[data-theme="dark"] .theme-toggle{background:#16263b}
:root[data-theme="dark"] .tagline,:root[data-theme="dark"] .nav a,:root[data-theme="dark"] .nav button,:root[data-theme="dark"] .nav-dropdown>summary{color:var(--ink)}
:root[data-theme="dark"] .nav-wrap{border-color:var(--line)}
:root[data-theme="dark"] .nav a:hover,:root[data-theme="dark"] .nav button:hover,:root[data-theme="dark"] .nav-dropdown[open]>summary{color:var(--blue)}
:root[data-theme="dark"] .menu-toggle,:root[data-theme="dark"] .search-open,:root[data-theme="dark"] .contact-button,:root[data-theme="dark"] .language-switch{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .nav-tree,:root[data-theme="dark"] .mega-panel,:root[data-theme="dark"] #life-search-dropdown{background:#16263b;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] #directions-menu[open]>#directions-tree{background:#16263b;border-color:var(--line);box-shadow:0 18px 32px #050c18b3}
:root[data-theme="dark"] #directions-tree .life-direction>summary{border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] #directions-tree .life-direction-tasks a{color:var(--ink)}
:root[data-theme="dark"] #directions-tree .life-direction-tasks a:hover{background:#233c5b;color:var(--blue)}
:root[data-theme="dark"] .nav-tree>p,:root[data-theme="dark"] .nav-tree summary,:root[data-theme="dark"] .nav-tree details details summary,:root[data-theme="dark"] .mega-column button,:root[data-theme="dark"] .mega-column a,:root[data-theme="dark"] .mega-column p,:root[data-theme="dark"] .mega-column h3{color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .nav-tree details,:root[data-theme="dark"] .mega-column+.mega-column{border-color:var(--line)}
:root[data-theme="dark"] .nav-tree details[open]>summary,:root[data-theme="dark"] .mega-column button:hover,:root[data-theme="dark"] .mega-column a:hover{background:#233c5b;color:var(--blue)}
:root[data-theme="dark"] .mega-column{scrollbar-color:#34516c #16263b}
:root[data-theme="dark"] .site-shell #life-search,:root[data-theme="dark"] #life-search{color:var(--ink);background:#16263b;border-color:var(--line)}
:root[data-theme="dark"] #life-search input,:root[data-theme="dark"] #life-search button,:root[data-theme="dark"] #life-search-results a{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] #life-search-results a:hover{background:#233c5b;color:var(--blue)}
:root[data-theme="dark"] #life-search-results small,:root[data-theme="dark"] #life-search-status{color:var(--muted)}

:root[data-theme="dark"] .hero-shell,:root[data-theme="dark"] .hero-controls,:root[data-theme="dark"] .bridge,:root[data-theme="dark"] .solution-card,:root[data-theme="dark"] .application-card,:root[data-theme="dark"] .client-card,:root[data-theme="dark"] .partner:hover,:root[data-theme="dark"] .english-main .card{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .client-card:hover{border-color:var(--blue)}
:root[data-theme="dark"] #products .slide{background:#16263b;color:var(--ink)}
:root[data-theme="dark"] #products .slide:after{background:linear-gradient(90deg,#16263b 0%,#16263b 29%,#16263be0 44%,transparent 65%)}
:root[data-theme="dark"] #products .slide .product-visual img{mix-blend-mode:normal}
:root[data-theme="dark"] #products .hero-copy h1,:root[data-theme="dark"] #products .hero-copy h2,:root[data-theme="dark"] #products .hero-copy .model,:root[data-theme="dark"] #products .hero-heading{color:var(--ink)}
:root[data-theme="dark"] #products .hero-copy .description,:root[data-theme="dark"] #products .hero-copy .text-button{color:var(--muted)}
:root[data-theme="dark"] .slide:after{background:linear-gradient(90deg,#16263b 0%,#16263b 29%,#16263be0 44%,transparent 66%)}
:root[data-theme="dark"] .hero-copy .description,:root[data-theme="dark"] .english-main .panel p,:root[data-theme="dark"] .english-main .card p,:root[data-theme="dark"] .english-main li{color:var(--muted)}
:root[data-theme="dark"] .hero-copy .tags span,:root[data-theme="dark"] .application-number,:root[data-theme="dark"] .circle{background:#233c5b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .slide .product-visual img{mix-blend-mode:normal}
:root[data-theme="dark"] .hero-controls,:root[data-theme="dark"] .partners-head,:root[data-theme="dark"] .end-line{border-color:var(--line)}
:root[data-theme="dark"] .counter span,:root[data-theme="dark"] .visual-caption{color:var(--muted)}
:root[data-theme="dark"] .english-home .product-visual img{border:1px solid var(--line);border-radius:3px;background:#eef4fa}
:root[data-theme="dark"] .bridge-cell>svg,:root[data-theme="dark"] .bridge-line{stroke:var(--muted);background:var(--line)}
:root[data-theme="dark"] .stat dt,:root[data-theme="dark"] .about h2 em,:root[data-theme="dark"] .maker{color:var(--blue)}
:root[data-theme="dark"] .application-card p,:root[data-theme="dark"] .solution-card .solution-model{color:var(--muted)}
:root[data-theme="dark"] .solution-card:before,:root[data-theme="dark"] .solution-card:hover:before{background:linear-gradient(180deg,transparent 25%,#0d182715 40%,#0d1827aa 67%,#0d1827f0 100%)}
:root[data-theme="dark"] .solution-card h3,:root[data-theme="dark"] .solution-card .solution-model{color:#fff}
:root[data-theme="dark"] .site-footer{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .manufacturer-card{background:#eef4fa;border-color:var(--line)}
:root[data-theme="dark"] .footer-bottom a{color:var(--muted)}
:root[data-theme="dark"] .site-footer nav a,:root[data-theme="dark"] .site-footer nav button,:root[data-theme="dark"] .footer-bottom,:root[data-theme="dark"] .footer-bio span:last-child{color:var(--muted)}
:root[data-theme="dark"] .footer-bio,:root[data-theme="dark"] .footer-bottom{border-color:var(--line)}
:root[data-theme="dark"] .footer-bio>.footer-bio-name>span{color:var(--blue)}
:root[data-theme="dark"] dialog,:root[data-theme="dark"] #consultation{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] dialog p,:root[data-theme="dark"] dialog ul{color:var(--muted)}
:root[data-theme="dark"] #consult-form input,:root[data-theme="dark"] #consult-form textarea{background:#0d1827;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .bio-suggestion{background:#233c5b;color:var(--blue);border-color:var(--line)}
:root[data-theme="dark"] .english-main .panel,:root[data-theme="dark"] .english-main .taxonomy,:root[data-theme="dark"] .english-main th,:root[data-theme="dark"] .english-main td{border-color:var(--line)}

:root[data-theme="dark"] #catalog-page{--navy:#e8f1fa;--blue:#83b8ff;--teal:#83b8ff;--muted:#adc1d5;--line:#34516c;--ice:#1d3149;--amber:#e9bd78;background:#0d1827;color:var(--ink)}
:root[data-theme="dark"] #catalog-page .intro{background:linear-gradient(100deg,#0d1827,#16263b)}
:root[data-theme="dark"] #catalog-page .intro p,:root[data-theme="dark"] #catalog-page .eyebrow,:root[data-theme="dark"] #catalog-page .note{color:var(--muted)}
:root[data-theme="dark"] #catalog-page .sidebar,:root[data-theme="dark"] #catalog-page .sectioncard,:root[data-theme="dark"] #catalog-page .modelcard,:root[data-theme="dark"] #catalog-page .brandcard,:root[data-theme="dark"] #catalog-page dialog{background:#16263b;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] #catalog-page .sectioncard:hover,:root[data-theme="dark"] #catalog-page .sidebtn:hover,:root[data-theme="dark"] #catalog-page .sidebtn.active,:root[data-theme="dark"] #catalog-page .note,:root[data-theme="dark"] #catalog-page .badge,:root[data-theme="dark"] #catalog-page .symbol,:root[data-theme="dark"] #catalog-page .modelvisual{background:#233c5b;color:var(--ink)}
:root[data-theme="dark"] #catalog-page .searchbox,:root[data-theme="dark"] #catalog-page .shortcut,:root[data-theme="dark"] #catalog-page .toolbar select,:root[data-theme="dark"] #catalog-page .addbtn{background:#1d3149;color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] #catalog-page .sectioncard p,:root[data-theme="dark"] #catalog-page .modelbody>p{color:var(--muted)}
:root[data-theme="dark"] #catalog-page .btn{background:#2869c3;color:#fff}
:root[data-theme="dark"] #catalog-page .mode[aria-pressed=true],:root[data-theme="dark"] #catalog-page .detailbtn{color:var(--blue)}

:root[data-theme="dark"] .direction-page{background:#0d1827;color:var(--ink)}
:root[data-theme="dark"] .direction-page p,:root[data-theme="dark"] .direction-crumb,:root[data-theme="dark"] .direction-hero p,:root[data-theme="dark"] .direction-tasks p{color:var(--muted)}
:root[data-theme="dark"] .direction-tasks article,:root[data-theme="dark"] .direction-categories article{background:#16263b;border-color:var(--line)}
:root[data-theme="dark"] .direction-hero img{background:#16263b}
:root[data-theme="dark"] .direction-page :is(h1,h2,h3),:root[data-theme="dark"] .english-main .card h3{color:var(--ink)}
:root[data-theme="dark"] :is(.direction-page a:not(.direction-button),.english-main .card a,.english-main .panel a:not(.card)){color:var(--blue)}
:root[data-theme="dark"] :is(.direction-page a:not(.direction-button),.english-main .card a,.english-main .panel a:not(.card)):is(:hover,:focus-visible){color:var(--ink);text-decoration:underline;text-underline-offset:3px}
:root[data-theme="dark"] :is(.direction-page,.english-main) a:focus-visible{outline:3px solid var(--blue);outline-offset:4px}


:root[data-theme="dark"] .app{--ground:#0d1827;--paper:#16263b;--ink:#e8f1fa;--muted:#adc1d5;--line:#34516c;--row:#1d3149;--accent:#83b8ff;--accent-ink:#0d1827;--accent-soft:#233c5b;--btn:#34516c;--slot:#1d3149}
:root[data-theme="dark"] .app .actions a{color:#fff}
:root[data-theme="dark"] .app .actions a.primary{color:#0d1827}
@media(max-width:900px){:root[data-theme="dark"] #products .slide:after{display:none}:root[data-theme="dark"] #products .slide .product-visual:before{background:linear-gradient(#16263b,transparent)}}
@media(max-width:720px){
  .site-shell .top{gap:8px}
  .site-shell .top .brand,.site-shell .top .brand img{width:160px}
  html[lang="en"] .site-shell .top{grid-template-columns:minmax(0,1fr) repeat(3,44px);column-gap:8px}
  html[lang="en"] .site-shell .top .language-switch{grid-column:2;grid-row:1}
  html[lang="en"] .site-shell .top .menu-toggle{grid-column:3;grid-row:1}
  html[lang="en"] .site-shell .top .theme-toggle{grid-column:4;grid-row:1}
  html[lang="en"] .site-shell .top .search-open{grid-column:1/-1;grid-row:2}
}

:root[data-theme="dark"] .contacts-main,:root[data-theme="dark"] .contacts-grid section{border-color:var(--line)}
:root[data-theme="dark"] .contacts-main>section{background:var(--paper);color:var(--ink)}
:root[data-theme="dark"] .contacts-main>.contact-service{background:var(--row);border-color:var(--line)}
:root[data-theme="dark"] .contacts-page h2,:root[data-theme="dark"] .contacts-page h3,:root[data-theme="dark"] .contacts-page .eyebrow{color:var(--ink)}
:root[data-theme="dark"] .contacts-page address{color:var(--muted)}
:root[data-theme="dark"] .contacts-page .contact-links a{color:var(--blue)}
:root[data-theme="dark"] .contacts-page .contact-links a[href^="tel:"]{color:var(--ink)}
:root[data-theme="dark"] .contact-service .primary{background:var(--blue);color:var(--ground);border-color:var(--blue)}
