html { scroll-padding-top: 88px; } /* высота шапки + 8px */
@media (max-width: 959px) { html { scroll-padding-top: 72px; } }
@media (max-width: 639px) { html { scroll-padding-top: 64px; } }

/* Magnit-M: approved blue palette, 13.10.2026 */
html:root{--mm-navy:#112541;--mm-panel:#163253;--mm-card:#142d4d;--mm-line:#315373;--mm-ink:#f2f7fc;--mm-muted:#c3d5e8;--mm-cyan:#55d5eb;background:#112541!important}
html:root body,html:root body #allrecords{background-color:var(--mm-navy)!important;color:var(--mm-muted)!important}
html:root body #allrecords .t-rec,html:root body #allrecords .t396__artboard{background-color:var(--mm-navy)!important}
html:root body #allrecords .t396__carrier{background-color:transparent!important}
html:root body #allrecords :is(.t-title,.t-heading,.t-name,h1,h2,h3,h4){color:var(--mm-ink)!important}
html:root body #allrecords :is(.t-text,.t-descr,.t-uptitle,.t-input-title,.t-input-subtitle,.t-checkbox__control,.t-radio__control,.t-form__bottom-text){color:var(--mm-muted)!important}
html:root body #allrecords :is(.t-title,.t-heading,.t-name,.t-text,.t-descr) :is(span,strong,b,em,p){color:inherit!important}
html:root body #allrecords [data-elem-type="text"] .tn-atom,html:root body #allrecords [data-elem-type="text"] .tn-atom :is(span,strong,b,p,a){color:var(--mm-ink)!important}
html:root body #allrecords [data-elem-type="shape"] .tn-atom{background-color:var(--mm-panel)!important;border-color:var(--mm-line)!important}
html:root body #allrecords a:not(.mm-new-tile):not(.t-slds__arrow_wrapper){color:var(--mm-ink)}
html:root body #allrecords :is(.t-divider,.t-line,.t-table__tr,.t-table__td,.t-table__th){border-color:var(--mm-line)!important}
html:root body #allrecords :is(.t-table__td,.t-table__th){background-color:var(--mm-panel)!important;color:var(--mm-ink)!important}
html:root body #allrecords #t-header :is(#rec1407288271,#rec1407288281),html:root body #allrecords #t-header :is(#rec1407288271,#rec1407288281) :is(.t396__artboard,.t396__carrier,.t396__filter){background:transparent!important}
html:root body #allrecords #t-header{background:radial-gradient(ellipse at 75% 0,rgba(30,92,137,.24),transparent 65%),linear-gradient(110deg,#122d50,#10233f)!important;border-bottom:1px solid var(--mm-line)}
html:root body #allrecords #t-header #rec1407288271 .mm-d-about{border-color:var(--mm-line)!important}
html:root body #allrecords #t-header #rec1407288271 .mm-d-about .tn-atom,html:root body #allrecords #t-header #rec1407288271 .mm-d-about .tn-atom p,html:root body #allrecords #t-header #rec1407288271 .mm-d-about .tn-atom span{color:var(--mm-muted)!important}
html:root body #allrecords #t-header #rec1407288271 .mm-d-about :is(strong,.mm-main-line){color:var(--mm-ink)!important}
html:root body #allrecords #t-header #rec1407288271 .mm-d-top :is(.mm-d-phone,.mm-d-email) .tn-atom{color:var(--mm-ink)!important;background:transparent!important}
html:root body #allrecords #t-header #rec1407288271 .mm-d-top svg{color:var(--mm-cyan)!important}
html:root body #allrecords #t-header #rec1407288281 .mm-d-nav{background:#122b49!important;border-color:var(--mm-line)!important}
html:root body #allrecords #t-header #rec1407288281 .mm-menu-row a.tn-atom{color:var(--mm-ink)!important;background:transparent!important}
html:root body #allrecords #t-header #rec1407288281 .mm-menu-row a.tn-atom[aria-current="page"]{color:var(--mm-cyan)!important;box-shadow:inset 0 -3px 0 var(--mm-cyan)!important}
html:root body #allrecords #t-header #rec1407288281 .mm-menu-row a.tn-atom:hover{color:var(--mm-cyan)!important;background:#1c3d60!important}
html:root body #allrecords #t-header .mm-d-catalog,html:root body #allrecords #t-header #rec1407288271 .mm-d-catalog,html:root body #allrecords #t-header #rec1407288281 .mm-d-actions a{background:transparent!important;color:var(--mm-ink)!important;border-color:var(--mm-cyan)!important}
html:root body #allrecords #t-header .mm-d-logo img{filter:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22mm-logo%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%20-4%200%200%204.066%20-3%200.145%203%200%200%20-3%200.255%203%200%200%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#mm-logo")}
html:root body #allrecords :is(.t-btn,.t-btnflex,.t-submit,.t-upwidget-container__button,[data-elem-type="button"]>.tn-atom,.service-contact a,.mm-d-actions a,.mm-m-actions a,.mm-m-nav-contact a,.mc-button,.uin-button,.mp-button,.mm-eq-max):not(.mm-menu-row .tn-atom):not(.mm-d-catalog){background:var(--mm-panel)!important;background-image:none!important;color:var(--mm-ink)!important;border-color:var(--mm-cyan)!important}
html:root body #allrecords :is(.t-btn,.t-btnflex,.t-submit,.t-upwidget-container__button,[data-elem-type="button"]>.tn-atom,.service-contact a,.mc-button,.uin-button,.mp-button):hover{background:#245075!important;color:#fff!important}
html:root body #allrecords :is(.t-btn,.t-btnflex,.t-submit,[data-elem-type="button"]>.tn-atom) :is(span,.tn-atom__button-text){color:inherit!important}
html:root body #allrecords .mm-home-grid a.mm-new-tile{background:var(--mm-card)!important;border:1px solid var(--mm-line);box-sizing:border-box}
html:root body #allrecords .mm-home-grid .mm-tile-photo:after{background:linear-gradient(transparent,var(--mm-card))!important}
html:root body #allrecords .mm-home-grid a.mm-tile-cta{background:linear-gradient(135deg,#285471,#193952)!important;border-color:var(--mm-cyan)!important}
html:root body #allrecords .mm-home-grid .mm-tile-button{background:#f1f7fb!important;color:#142d4d!important;border-color:#bad7e8!important}
html:root body #allrecords :is(#mm-home-maker,#mm-maker).mm-maker{background:var(--mm-navy)!important;color:var(--mm-muted)!important;border-color:var(--mm-line)!important}
html:root body #allrecords :is(#mm-home-maker,#mm-maker) :is(h2,h3){color:var(--mm-ink)!important}
html:root body #allrecords :is(#mm-home-maker,#mm-maker) :is(p,.mm-maker-bottom,.mm-maker-legal){color:var(--mm-muted)!important;border-color:var(--mm-line)!important}
html:root body #allrecords :is(#mm-home-maker,#mm-maker) .mm-maker-label{color:var(--mm-cyan)!important}
html:root body #allrecords .mm-maker-card{border-color:var(--mm-cyan)!important}
html:root body #allrecords #rec1431074011{background:var(--mm-navy)!important}
html:root body #allrecords #rec1431074011 .t-slds__bgimg{background-color:#0e2038!important}
html:root body #allrecords .t-slds__bullet_body{background-color:#68849e!important}
html:root body #allrecords .t-slds__bullet_active .t-slds__bullet_body{background-color:var(--mm-cyan)!important}
html:root body #allrecords #mm-stats-compact{background:#183858!important;color:var(--mm-ink)!important;border-block:1px solid var(--mm-line)}
html:root body #allrecords #mm-stats-compact :is(strong,b){color:var(--mm-cyan)!important}
html:root body #allrecords #mm-projects{background:var(--mm-navy)!important;color:var(--mm-muted)!important}
html:root body #allrecords #mm-projects :is(.mm-heading,.mm-intro,.mm-breadcrumb,.mm-meta,.mm-results){color:var(--mm-muted)!important;background:transparent!important}
html:root body #allrecords #mm-projects :is(.mm-card,.mm-filter,.mm-cta){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords #mm-projects .mm-filter[aria-pressed="true"]{background:#245075!important;border-color:var(--mm-cyan)!important;color:var(--mm-cyan)!important}
html:root body #allrecords #mm-projects :is(.mm-eyebrow,.mm-category){color:var(--mm-cyan)!important}
html:root body #allrecords .t-popup__container,html:root body #allrecords .t-popup .t396__artboard,html:root body #allrecords .t706__cartwin-content{background:var(--mm-navy)!important;color:var(--mm-ink)!important}
html:root body #allrecords :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),textarea,select){background:#f5f9fc!important;color:#163253!important;border-color:#7397b4!important}
html:root body #allrecords :is(input,textarea)::placeholder{color:#536b80!important;opacity:1}
html:root body :is(#mm-mobile-header,.mm-m-header,.mm-m-footer,.mm-m-main,.mm-mobile-dialog,.mm-m-bar,.mm-touch-dock){background:#112541!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body :is(#mm-mobile-header,#mm-mobile-menu) img{filter:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22mm-logo%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%20-4%200%200%204.066%20-3%200.145%203%200%200%20-3%200.255%203%200%200%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#mm-logo")}
html:root body :is(.mm-mobile,.mm-mobile-dialog) :is(h1,h2,h3,p,a,button,.mm-m-kicker){color:var(--mm-ink)!important}
html:root body :is(.mm-m-product,.mm-m-catalog,.mm-m-actions a,.mm-m-menu-button,.mm-m-close,.mm-m-back,.mm-m-nav-contact a,.mm-touch-dock a){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body :is(a,button,input,textarea,select):focus-visible{outline:2px solid var(--mm-cyan)!important;outline-offset:3px}

/* Contrast corrections verified on the test page */
html:root body #allrecords #t-header #rec1407288271 .mm-d-top .mm-d-phone .tn-atom :is(a,span){color:var(--mm-ink)!important}
html:root body #allrecords :is(.t972__banner,.t972__settings,.t972__settings-header){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords .t972__line{background:var(--mm-ink)!important}
html:root body #allrecords #mm-service,html:root body #allrecords #mm-service p{color:var(--mm-muted)!important}
html:root body #allrecords #mm-service article{background:var(--mm-panel)!important;border-color:var(--mm-line)!important;color:var(--mm-muted)!important}
html:root body #allrecords #mm-projects :is(.mm-tag,.mm-client,.mm-count){color:var(--mm-muted)!important}
html:root body #allrecords #mm-projects :is(.mm-more,.mm-card-arrow){background:var(--mm-panel)!important;border-color:var(--mm-cyan)!important;color:var(--mm-ink)!important}

html:root body #allrecords .t-store__card__wrap_all{background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords #mm-eq-contact{background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords #mm-eq-contact p{color:var(--mm-ink)!important}

/* About, contacts, mobile card contrast */
html:root body #allrecords .mm-about,html:root body #allrecords .mm-about :is(p,li,.lead,.step){color:var(--mm-muted)!important}
html:root body #allrecords .mm-about :is(.stat,.card,.cta,.mm-production-button){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords .mm-about :is(.stat,.step) :is(strong,b){color:var(--mm-cyan)!important}
html:root body #allrecords .mm-about .stat span{color:var(--mm-muted)!important}
html:root body #allrecords #rec403644313 :is([data-elem-id="1642398036094"],[data-elem-id="1642767689155"],[data-elem-id="1642767695466"]) .tn-atom{background:linear-gradient(140deg,#163253,#1b3b5a)!important;border-color:var(--mm-line)!important;box-shadow:none!important}
html:root body .mm-m-product-copy>span,html:root body .mm-m-product>b{color:var(--mm-muted)!important}
html:root body :is(.mm-m-contact-card,.mm-m-list a,.mm-m-categories a){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}

/* Shared text and interactive panels */
html:root body #allrecords p,html:root body #allrecords li{color:var(--mm-muted)!important}
html:root body #allrecords .t450{background:var(--mm-navy)!important;color:var(--mm-ink)!important}
html:root body #allrecords :is(.t-quiz__quiz,.t-quiz__content-wrapper){background:var(--mm-navy)!important;color:var(--mm-ink)!important}
html:root body #allrecords :is(.t-quiz__quiz-wrapper,.t-quiz__panel,.t-quiz__consultant__msg-bubble,.t-checkboxes__item){background:var(--mm-panel)!important;color:var(--mm-ink)!important;border-color:var(--mm-line)!important}
html:root body #allrecords .t-checkboxes__item:has(input:checked){box-shadow:inset 0 0 0 1px var(--mm-cyan)!important}
html:root body .mm-m-nav-contact{background:var(--mm-panel)!important;border-color:var(--mm-line)!important}

html:root body #allrecords .t-quiz__footer-sticky{background:linear-gradient(transparent 0,#112541 20px)!important}
html:root body #allrecords .t-quiz__consultant__msg-bubble *{color:var(--mm-muted)!important}
html:root body #allrecords .t-quiz :is(.t-checkbox__indicator,.t-radio__indicator){border-color:var(--mm-cyan)!important}
html:root body #allrecords .t-popup .t-quiz button.t-btn{background:var(--mm-panel)!important;color:var(--mm-ink)!important}
html:root body #allrecords .t-input-phonemask__wrap{background:#f5f9fc!important;color:#163253!important}
