/* One local typeface for every page; no external font request is required. */
@font-face{font-family:"Manrope Light";font-style:normal;font-weight:300;font-display:swap;src:url("/fonts/manrope-light.ttf") format("truetype")}
html:root body[data-route],html:root body[data-route] *{font-family:"Manrope Light",Manrope,sans-serif!important;font-weight:300!important}
#bt-site-header#bt-site-header,#bt-site-header#bt-site-header *{font-family:"Manrope Light",Manrope,sans-serif!important;font-weight:300!important}
/* Canonical client carousel: original, uncropped logos and two equal groups. */
#bt-brand-clients{padding:32px 0;background:#f5f7fb;color:#182b4a;margin:0;clear:both}
#bt-brand-clients .bt-brand-clients-inner{width:100%;max-width:1200px;margin:0 auto;padding:0 34px;box-sizing:border-box}
#bt-brand-clients .bt-brand-eyebrow{margin:0 0 14px;color:#275293;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
#bt-brand-clients h2{font-size:28px;line-height:1.25;margin:0 0 28px;color:#182b4a}
#bt-brand-clients .bt-brand-client-window{overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain}
#bt-brand-clients .bt-brand-client-track{display:flex;width:max-content;animation:bt-brand-clients-move 48s linear infinite}
#bt-brand-clients .bt-brand-client-group{display:flex;gap:20px;padding-right:20px}
#bt-brand-clients .bt-brand-client{flex:0 0 170px;width:170px;height:90px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:14px;background:white;border:1px solid #e0e6ef;border-radius:12px}
#bt-brand-clients .bt-brand-client .bt-background-image{display:block;width:100%!important;height:100%!important;max-width:100%;background-size:contain!important;background-position:center!important;background-repeat:no-repeat;filter:grayscale(1);opacity:.7;transition:filter .2s,opacity .2s}
#bt-brand-clients .bt-brand-client:hover .bt-background-image,#bt-brand-clients .bt-brand-client:focus-visible .bt-background-image{filter:grayscale(0);opacity:1}
#bt-brand-clients .bt-brand-client:focus-visible,#bt-brand-clients .bt-brand-client-window:focus-visible{outline:2px solid #0784af;outline-offset:-2px}
#bt-brand-clients .bt-brand-client-window:hover .bt-brand-client-track,#bt-brand-clients .bt-brand-client-window:focus-within .bt-brand-client-track{animation-play-state:paused}
@keyframes bt-brand-clients-move{to{transform:translateX(-50%)}}
/* Existing client strips on other page families use the same colour behaviour. */
html body :is(.marquee,.bt-client-window,.basis-client-carousel) :is(.logo-chip,.bt-client-item,.basis-logo-chip) .bt-background-image{filter:grayscale(1)!important;opacity:.7;transition:filter .2s,opacity .2s}
html body :is(.marquee,.bt-client-window,.basis-client-carousel) :is(.logo-chip,.bt-client-item,.basis-logo-chip):is(:hover,:focus-within) .bt-background-image{filter:grayscale(0)!important;opacity:1}
@media(max-width:600px){#bt-brand-clients{padding:24px 0}#bt-brand-clients .bt-brand-clients-inner{padding:0 18px}#bt-brand-clients h2{font-size:24px}#bt-brand-clients .bt-brand-client-track{animation:none}#bt-brand-clients .bt-brand-client-group[aria-hidden]{display:none}}
@media(prefers-reduced-motion:reduce){#bt-brand-clients .bt-brand-client-track{animation:none}#bt-brand-clients .bt-brand-client-group[aria-hidden]{display:none}}
@media print{#bt-brand-clients .bt-brand-client-track{animation:none;width:auto}#bt-brand-clients .bt-brand-client-group{flex-wrap:wrap}#bt-brand-clients .bt-brand-client-group[aria-hidden]{display:none}}
/* Override legacy footer/navigation declarations marked important. */
html body[data-route] .footer .footer-col h4,
html body[data-route] .header .nav a,
html body[data-route] .header .header-cta *,
html body[data-route] .bt-unified-drawer a{font-family:"Manrope Light",Manrope,sans-serif!important;font-weight:300!important}

/* Existing mail action retains its destination and stays outside the content. */
/* Use the existing mobile flow treatment for all legacy chat controls. */
html body[data-route]:has(#bt-site-header) .chat-fab{position:static;float:none;transform:none;display:flex;width:max-content;min-width:54px;max-width:calc(100% - 24px);box-sizing:border-box;margin:16px 12px 16px auto}
 html body[data-route] > a.chat-fab {
  display:flex;width:max-content;margin:16px 28px 16px auto;padding:12px 24px;
  color:#fff;background:linear-gradient(120deg,#31599c,#23479a);border-radius:12px;
 }
 html body[data-route] > a.chat-fab:focus-visible {
  outline:2px solid #0784af;outline-offset:3px;
 }
html body[data-route] > a.chat-fab .txt{display:inline}

/* Visual acceptance: keep the 404 label and company hero inside the viewport (страницы шаблона prose, изменение 04). */
@media(min-width:1101px){body.bt-prose .float-note{right:12px;}}
@media(max-width:600px){body.bt-prose .c-hero>.container{padding-inline:18px;}}

/* The director letter (welcome--letter) has an inline desktop grid; restore its mobile stack. */
@media(max-width:920px){body.bt-prose .welcome--letter{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:560px){body.bt-prose .welcome--letter .body{padding:28px 24px!important}}

/* Laboratory blocks of the NTD service page (sections/lab.html; изменение 04: без привязки к адресу). */
body.bt-prose .laboratory-block{clear:both;margin-top:42px}
body.bt-prose .laboratory-block>.eyebrow{display:inline-block;margin-bottom:10px}
body.bt-prose .laboratory-block>h2{margin-top:0}
body.bt-prose .laboratory-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}
body.bt-prose .laboratory-service-card{min-width:0;padding:21px;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}
body.bt-prose .laboratory-service-card>.laboratory-service-icon{display:grid;place-items:center;width:42px;height:42px;--bt-css-height:42px;margin-bottom:15px;border-radius:12px;background:var(--surface-cool);color:var(--navy)}
body.bt-prose .laboratory-service-icon svg{width:23px;height:23px;--bt-css-height:23px}
body.bt-prose .laboratory-service-card h3{margin:0 0 9px;color:var(--navy-ink);font-size:18px;line-height:1.3}
body.bt-prose .laboratory-service-card p{margin:0;font-size:14.5px;line-height:1.62}
body.bt-prose .laboratory-products{padding:30px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface-cool);box-shadow:var(--shadow-sm)}
body.bt-prose .laboratory-products>p{max-width:880px;--bt-max-width:880px;margin-bottom:0}
body.bt-prose .laboratory-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}
body.bt-prose .laboratory-product-card{display:flex;flex-direction:column;min-width:0;padding:23px;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}
body.bt-prose .laboratory-product-brand{align-self:flex-start;padding:6px 9px;border-radius:999px;background:var(--surface-cool);color:var(--navy);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
body.bt-prose .laboratory-product-card h3{margin:14px 0 10px;color:var(--navy-ink);font-size:21px;line-height:1.28}
body.bt-prose .laboratory-product-card p{margin:0;font-size:15px;line-height:1.65}
body.bt-prose .laboratory-product-card .laboratory-product-link{margin-top:auto;padding-top:18px;font-size:14px;font-weight:800}
body.bt-prose .laboratory-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
body.bt-prose .laboratory-doc-item{min-width:0;padding:21px 23px;border-left:4px solid var(--cyan);border-radius:0 var(--radius-lg) var(--radius-lg) 0;background:var(--surface-cool)}
body.bt-prose .laboratory-doc-item h3{margin:0 0 8px;color:var(--navy-ink);font-size:18px}
body.bt-prose .laboratory-doc-item p{margin:0;font-size:14.5px;line-height:1.62}
body.bt-prose .laboratory-note{margin:18px 0 0;padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:14px!important;line-height:1.6}
body.bt-prose .laboratory-process-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0 0!important;padding:0!important;list-style:none!important}
body.bt-prose .laboratory-process-list li{display:flex;flex-direction:column;min-width:0;margin:0!important;padding:19px;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}
body.bt-prose .laboratory-process-list li>span:not(:where(.bt-background-image)){display:block;margin-bottom:18px;color:var(--cyan);font-size:12px;font-weight:800;letter-spacing:.08em}
body.bt-prose .laboratory-process-list h3{margin:0 0 9px;color:var(--navy-ink);font-size:17px;line-height:1.35}
body.bt-prose .laboratory-process-list p{margin:0;font-size:14px;line-height:1.58}
body.bt-prose .laboratory-result{margin-top:42px}
body.bt-prose .laboratory-result ul{margin-bottom:16px}
body.bt-prose .laboratory-result p:last-child{padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:980px){
body.bt-prose .laboratory-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.bt-prose .laboratory-process-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
body.bt-prose .laboratory-block{margin-top:34px}
body.bt-prose .laboratory-service-grid,body.bt-prose .laboratory-product-grid,body.bt-prose .laboratory-doc-grid,body.bt-prose .laboratory-process-list{grid-template-columns:1fr}
body.bt-prose .laboratory-products{padding:22px 20px}
body.bt-prose .laboratory-result{margin-top:34px}
}

/* Preserve the approved mobile gutter when legacy section padding resets it. */
@media(max-width:600px){
body.bt-prose:is(.bt-section-industry,.bt-section-price,.bt-section-contacts,.bt-section-courses,.bt-section-root) .container.crumbs{padding-left:18px;padding-right:18px;box-sizing:border-box}
body:is([data-route="/news/nanocad/"],[data-route="/news/normacs/"],[data-route="/news/page/2/"]) .news-hero > .container.category-intro{padding-left:18px;padding-right:18px;box-sizing:border-box}
}

/* Reuse existing breadcrumb spacing on mobile news categories. */
@media(max-width:600px){
body:is([data-route="/news/nanocad/"],[data-route="/news/normacs/"],[data-route="/news/page/2/"]) .container.crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--muted,#60708a);padding-top:18px}
body:is([data-route="/news/nanocad/"],[data-route="/news/normacs/"],[data-route="/news/page/2/"]) .container.crumbs a{color:var(--navy,#202d59)}
body:is([data-route="/news/nanocad/"],[data-route="/news/normacs/"],[data-route="/news/page/2/"]) .container.crumbs span{opacity:.5}
}

/* Mobile editorial image frames follow the original raster proportions. */
@media(max-width:760px){
body:is([data-route="/news/nanocad-bim-vk-26-novaya-versiya-na-platforme-nanocad/"],[data-route="/news/premera-platformy-nanocad-25/"],[data-route="/news/nanocad-geonics-25/"],[data-route="/news/vebinar-nanocad-bim-inzhenernye-sistemy/"],[data-route="/news/tdms-farvater-24-2/"],[data-route="/news/konferentsiya-razrabotchikov-tekhekspert/"],[data-route="/news/onlayn-versiya-normacs/"],[data-route="/news/vyhod-nanocad-geoseries/"],[data-route="/news/izmeneniya-normacs-mart/"]) .article-figure > .bt-background-image{display:block;height:auto;aspect-ratio:var(--bt-ratio);object-fit:contain}
body:is([data-route="/stati/osnovnye-kriterii-vybora-postavshchika-nanocad-pochemu-krupnye-kompanii-vybirayut-bazis-treyd-v-kach/"],[data-route="/stati/programmnyy-modul-normacs-pro/"],[data-route="/stati/top-vostrebovannykh-produktov-tekhekspert-chto-vybirayut-pokupateli/"],[data-route="/stati/nanocad-bim-stroitelstvo-kompleksnoe-reshenie-dlya-sovremennykh-proektirovshchikov/"],[data-route="/stati/reshenie-osnovnykh-zadach-konstruktora-s-pomoshchyu-nanocad-23-bim-konstruktsii/"],[data-route="/stati/kak-sistema-normacs-ekonomit-vremya-spetsialistov-i-dengi-predpriyatiya/"],[data-route="/stati/sravnenie-nanocad-s-gstarcad-i-zwcad-pochemu-nanocad-yavlyaetsya-liderom-na-rossiyskom-rynke-sapr-i-/"],[data-route="/stati/nanocad-geonics-23-osnovnye-preimushchestva-pered-civil-i-drugimi-zarubezhnymi-analogami/"]) .article-visual > .bt-background-image{display:block;height:auto;aspect-ratio:var(--bt-ratio);object-fit:contain}
}

/* Страница акций (body_class: deals-page; раньше правила по адресу /aktsii/, изменение 04). */
/* V23: keep links readable over the existing dark nanoCAD promotion cards. */
body.deals-page .product-section--nanocad .offer-cta:is(:hover,:focus-visible){color:#fff;text-decoration:underline;text-underline-offset:3px}
body.deals-page .product-section--nanocad .offer-cta:focus-visible{outline:2px solid #38c9e9;outline-offset:4px}

/* User-approved promotion typography: wrap at word boundaries. */
body.deals-page main :is(h1,h2,h3,p,li,strong,small,summary,a){word-break:normal;overflow-wrap:normal;hyphens:none}
body.deals-page .deals-intro h1{text-wrap:balance}
body.deals-page .product-stage h2{font-size:clamp(30px,4vw,52px);line-height:1.12}
@media(max-width:640px){body.deals-page .product-stage h2{font-size:30px;line-height:1.12}body.deals-page .deals-intro h1{font-size:36px;line-height:1.1}}

/* Promotions breadcrumb spacing, matching existing informational pages. */
body.deals-page .container.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:18px;font-size:13px}body.deals-page .container.crumbs>span{opacity:.5}

/* V20: promotions navigation sits beneath the approved two-row header. */
@media(min-width:1051px){body.deals-page .product-switcher{top:117px}html body.deals-page:has(#bt-site-header) main .product-section{scroll-margin-top:297px}}
@media(max-width:1050px){html body.deals-page:has(#bt-site-header) main .product-section{scroll-margin-top:129px}}
@media(max-width:760px){html body.deals-page:has(#bt-site-header) main .product-section{scroll-margin-top:115px}}

/* Final-form consent (все хабы). Правила «thermal layout, native image dialogs» для
   /products/tech-expert/teploenergetika сняты при переводе (изменение 04): их селектор
   body[data-route="…/teploenergetika"] без завершающего слэша никогда не совпадал
   с адресом страницы, правила не действовали. */
.bt-final-consent{display:flex;align-items:flex-start;gap:10px;flex-basis:100%;width:100%;margin:14px 0 4px;font-size:13px;line-height:1.5;color:#dce5f5}
.final-form .bt-final-consent input[type="checkbox"]{appearance:auto;flex:0 0 20px;min-width:20px;max-width:20px;width:20px;height:20px;min-height:20px;padding:0;margin:0;accent-color:#2b5396}
.bt-final-consent label{display:block;min-width:0;font-size:13px;line-height:1.5;color:inherit}
.bt-final-consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.bt-final-consent :focus-visible{outline:2px solid #7ed8f2;outline-offset:3px}


/* Company breadcrumbs keep the same mobile gutter as the content. */
@media(max-width:700px){body.bt-prose.bt-section-company .container.crumbs{padding-left:18px;padding-right:18px;box-sizing:border-box}}
/* .prose--wide снимает узкий лимит .prose (760px), но не должен отменять ограничение .container:
   pages.css грузится после base.css при равной специфичности и обнулял max-width контейнера. */
.container.prose--wide{max-width:var(--container);--bt-max-width:var(--container)}

/* Подпись под image-обложкой статьи: те же значения, что у inline-стиля
   figcaption рукописных страниц /stati/ (перенос в класс без изменения вида). */
.article-visual > .article-visual__caption{padding:12px 16px;font-size:14px;line-height:1.5}

/* Страница «Автоматизация процессов» (body.automation-page): раньше <style>
   в теле страницы, перенесён при переводе на Markdown (изменение 04). */
.automation-page .compact-service-main .prose > h3 { margin: 24px 0 8px; }
.automation-page .compact-service-main .prose > p + p { margin-top: 12px; }

/* Страница акций (/aktsii/, раздел Техэксперт): раньше <style> в теле
   страницы, перенесён при переводе на блоки (изменение 04). */
#tekhexpert .materials-map{position:static;transform:none;margin:16px 0 0;width:auto}#tekhexpert .materials-map>span{color:#fff}

/* Главная, карточки акций на узких экранах: раньше <style> в теле
   страницы, перенесён при переводе на блоки (изменение 04). */
@media (max-width: 700px) {
  .campaign-card .campaign-date { padding-right: 48px; }
  .campaign-card .campaign-date b { display: block; }
  .campaign-card .campaign-title { max-width: 65%; }
  .campaign-card .campaign-visual { width: 32%; right: 12px; bottom: 76px; }
}
