/* «Фортрес» (ТЗ 15.10.2026): логотипы, меню услуг с выпадающими списками, мессенджеры, поиск, «О компании». */
:root{--fx-v:#8B1022;--fx-v2:#A8243A;--fx-vd:#4A0812;--fx-y:#E9D85A;--fx-y2:#F4EDA6;--fx-ink:#2A0509}

/* ---------- логотип: в разметке три варианта, виден выбранный ---------- */
.mx-logo-v{display:none}
html:not([data-logo]) .mx-logo-v[data-v="bastion"],
html[data-logo="bastion"] .mx-logo-v[data-v="bastion"],
html[data-logo="monogram"] .mx-logo-v[data-v="monogram"],
html[data-logo="seal"] .mx-logo-v[data-v="seal"]{display:block}
.page-header__logo .mx-logo{width:214px!important;height:auto!important}
@media (max-width:640px){.page-header__logo .mx-logo{width:160px!important;height:auto!important}}
.mx-logo--bastion .mx-logo__c{stroke-dasharray:22;stroke-dashoffset:22;animation:fx-check .9s cubic-bezier(.22,1,.36,1) .4s forwards}
@keyframes fx-check{to{stroke-dashoffset:0}}

/* ---------- переключатель логотипа (внизу слева, как был выбор цвета) ---------- */
.mx-pal{position:fixed;left:18px;bottom:18px;z-index:1500;display:flex;align-items:center;gap:10px;padding:7px 10px 7px 14px;border-radius:999px;
  background:rgba(255,255,255,.96);box-shadow:0 18px 40px -18px rgba(42,5,9,.5),0 0 0 1px rgba(42,5,9,.08);font:600 12px/1 Onest,Roboto,Arial,sans-serif;color:#333}
.mx-pal__t{letter-spacing:.06em;text-transform:uppercase;font-size:10px;color:#7D6868;white-space:nowrap}
.mx-pal__b{all:unset;cursor:pointer;width:30px;height:30px;border-radius:9px;position:relative;display:grid;place-items:center;transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .25s}
.mx-pal__b:hover{transform:translateY(-2px)}
.mx-pal__b.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--fx-y)}
.mx-pal__b:focus-visible{outline:2px solid var(--fx-v);outline-offset:3px}
.mx-pal__b svg{display:block}
.mx-pal__b span{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%,4px);background:var(--fx-ink);color:#fff;padding:6px 9px;border-radius:8px;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .3s}
.mx-pal__b:hover span,.mx-pal__b:focus-visible span{opacity:1;transform:translate(-50%,0)}
@media (max-width:640px){.mx-pal{left:10px;bottom:10px;gap:6px;padding:5px 7px 5px 10px}.mx-pal__t{display:none}.mx-pal__b{width:26px;height:26px}}

/* ---------- телефоны и мессенджеры в шапке ---------- */
.page-header__contacts .mx-phones{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin:0}
.page-header__contacts .mx-phones .page-header__phone{padding:2px 6px!important;text-indent:0!important;white-space:nowrap;color:var(--fx-ink);font-weight:600;text-decoration:none}
.page-header__contacts .mx-phones .page-header__phone:hover{color:var(--fx-v)}
.page-header__social,.social_mobile{display:flex!important;align-items:center;gap:8px}
.mx-soc{flex:0 0 auto;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.mx-soc:hover{transform:translateY(-2px) scale(1.06)}
.soc_max{display:inline-block;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#3FB5FF,#5A4BFF 55%,#9B3DF0)!important}
.soc_max svg{display:block;width:100%;height:100%}
.social_mobile .soc_max{width:28px;height:28px}

/* ---------- меню услуг: у каждого раздела свой выпадающий список ---------- */
.mx-svc{display:flex!important;flex-wrap:nowrap;align-items:stretch}
.mx-svc > li{position:relative!important}
.mx-svc > li > a{white-space:nowrap}
.mx-svc > li > a::after{content:"";display:inline-block;width:6px;height:6px;margin:0 0 3px 8px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);opacity:.45;transition:transform .3s,opacity .3s}
.mx-svc > li:hover > a::after,.mx-svc > li:focus-within > a::after{transform:rotate(-135deg) translate(-2px,-2px);opacity:.9}
.mx-svc > li > .sub-menu-wrap{position:absolute!important;top:100%!important;left:0!important;right:auto!important;width:380px!important;max-width:90vw!important;
  padding:12px 0 0!important;margin:0!important;background:none!important;box-shadow:none!important;z-index:60;display:block!important;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .25s,transform .35s cubic-bezier(.22,1,.36,1),visibility 0s .35s;pointer-events:none}
.mx-svc > li:last-child > .sub-menu-wrap{left:auto!important;right:0!important}
.mx-svc > li:hover > .sub-menu-wrap,.mx-svc > li:focus-within > .sub-menu-wrap{opacity:1;visibility:visible;transform:none;transition-delay:0s;pointer-events:auto}
.mx-svc .sub-menu{display:block!important;position:static!important;columns:auto!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:10px!important;list-style:none;
  background:#fff!important;border-radius:16px;box-shadow:0 24px 50px -20px rgba(42,5,9,.45),0 0 0 1px rgba(139,16,34,.08)!important;max-height:72vh;overflow-x:hidden;overflow-y:auto}
.mx-svc .sub-menu li{margin:0!important;padding:0!important;border:0!important;width:100%!important;float:none!important;break-inside:avoid}
.mx-svc .sub-menu li::before{display:none!important}
.mx-svc .sub-menu a{display:block!important;padding:9px 14px 9px 30px!important;border-radius:10px;color:var(--fx-ink)!important;font-size:14px!important;line-height:1.35!important;
  white-space:normal!important;text-decoration:none;position:relative;background:none!important;transition:background .2s,color .2s}
.mx-svc .sub-menu a::before{content:"";position:absolute;left:13px;top:15px;width:6px;height:6px;border-radius:2px;background:var(--fx-y);transform:rotate(45deg)}
.mx-svc .sub-menu a:hover{background:#FBF1EE!important;color:var(--fx-v)!important}
/* «Все услуги» — все пункты в две колонки */
.mx-svc > li.mx-all > .sub-menu-wrap{width:700px!important}
.mx-svc > li.mx-all .sub-menu{columns:2!important;column-gap:6px}
@media (max-width:1100px){.mx-svc > li.mx-all > .sub-menu-wrap{width:420px!important}.mx-svc > li.mx-all .sub-menu{columns:1!important}}
/* мобильное меню: заголовки разделов и пункты */
.mobile-menu-service .mx-m-head a{font-weight:700!important;color:var(--fx-v)!important;margin-top:10px}
.mobile-menu-service .mx-m-sub a{padding-left:14px!important;font-size:14px!important}

/* ---------- поиск ---------- */
.mx-search{position:fixed;inset:0;z-index:2000;background:rgba(30,3,6,.55);backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:flex-start;padding:80px 16px 16px;
  opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
.mx-search.on{opacity:1;visibility:visible;transition-delay:0s}
.mx-search__box{width:100%;max-width:760px;background:#fff;border-radius:22px;box-shadow:0 40px 80px -30px rgba(0,0,0,.6);overflow:hidden;transform:translateY(-14px);transition:transform .4s cubic-bezier(.22,1,.36,1)}
.mx-search.on .mx-search__box{transform:none}
.mx-search__f{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #F3E6E2;color:var(--fx-v);margin:0}
.mx-search__f input{flex:1;border:0!important;outline:0;font:500 18px/1.3 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink);background:none!important;padding:6px 0!important;height:auto!important;box-shadow:none!important}
.mx-search__x-btn{all:unset;cursor:pointer;font-size:28px;line-height:1;color:#A08C8C;padding:0 6px}
.mx-search__x-btn:hover{color:var(--fx-v)}
.mx-search__list{max-height:min(64vh,620px);overflow:auto;padding:8px}
.mx-search__item{display:block;padding:12px 14px;border-radius:14px;text-decoration:none;color:var(--fx-ink)!important;transition:background .2s}
.mx-search__item:hover,.mx-search__item:focus{background:#FCF4F1;outline:0}
.mx-search__item b{display:block;font:600 16px/1.35 Onest,Roboto,Arial,sans-serif;margin:3px 0 4px}
.mx-search__k{font:600 11px/1 Onest,Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--fx-v2)}
.mx-search__k--news{color:#8B1022}
.mx-search__x{display:block;font-size:13.5px;line-height:1.45;color:#6E5C5C}
.mx-search__x mark{background:#F6F0B0;color:inherit;border-radius:3px;padding:0 2px}
.mx-search__hint{padding:14px;color:#6E5C5C;font-size:14px;margin:0}
.mx-search__hint button{all:unset;cursor:pointer;display:inline-block;margin:4px 4px 0 0;padding:6px 12px;border-radius:999px;background:#FBF1EE;color:var(--fx-v);font-weight:600;font-size:13px}
.mx-search__hint button:hover{background:var(--fx-y2);color:var(--fx-ink)}
.mx-search__hint a{color:var(--fx-v)}
html.mx-search-open{overflow:hidden}
@media (max-width:640px){.mx-search{padding:12px 10px}.mx-search__f input{font-size:16px}}

/* ---------- «О компании» ---------- */
.mx-about .mx-about__lead{font:600 clamp(20px,2.2vw,28px)/1.3 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink);border-left:4px solid var(--fx-y);padding-left:18px;margin-bottom:24px}
.mx-about p{font-size:17px;line-height:1.65}
.mx-about .mx-about__slogan{display:inline-block;margin-top:14px;font:700 20px/1.3 Onest,Roboto,Arial,sans-serif;color:#fff;background:linear-gradient(135deg,var(--fx-v),var(--fx-vd));padding:14px 22px;border-radius:14px;box-shadow:inset 0 -3px 0 var(--fx-y)}

/* ---------- ИИ-фото вместо рисованных иллюстраций ---------- */
img[src*="/assets/ai/"]{object-fit:cover}
.banner__img[src*="/assets/ai/"],.banner__img-wrapper img[src*="/assets/ai/"]{width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* без плашки «Акция» первый экран на всю ширину */
.first_screen{grid-template-columns:1fr!important}
.first_screen_left{width:100%!important;max-width:none!important;flex:1 1 100%!important}
.footer__social{display:flex!important;gap:8px;align-items:center}
.mx-soc--f{display:inline-block;width:30px;height:30px}
.mx-soc--f svg{display:block;width:100%;height:100%}

/* ===================== правки 15.10.2026, второй заход ===================== */

/* ---------- маркеры в выпадающем меню: у темы на ссылках свои серые иконки — убрать, оставить жёлтые ромбы ---------- */
.mx-svc .sub-menu a::before,.mx-svc .sub-menu li a::before{content:""!important;position:absolute!important;left:12px!important;top:14px!important;width:7px!important;height:7px!important;
  margin:0!important;border-radius:2px!important;background:var(--fx-y)!important;background-image:none!important;-webkit-mask:none!important;mask:none!important;
  transform:rotate(45deg)!important;opacity:1!important;animation:none!important;transition:none!important;box-shadow:0 0 0 3px rgba(233,216,90,.18)}
.mx-svc .sub-menu a::after,.mx-svc .sub-menu li::after{display:none!important}

/* ---------- иконки мессенджеров в подвале — фирменные цвета, живые ---------- */
.mx-soc--f{width:38px!important;height:38px!important;border-radius:50%;filter:none!important;opacity:1!important;transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s}
.mx-soc--f:hover{transform:translateY(-3px) scale(1.08)}
.mx-soc--tg svg circle{fill:#2AABEE!important}.mx-soc--tg svg path{fill:#fff!important;stroke:none!important}
.mx-soc--tg:hover{box-shadow:0 10px 24px -8px #2AABEE}
.mx-soc--wa svg circle{fill:#25D366!important}.mx-soc--wa svg path:first-of-type{fill:#fff!important;stroke:none!important}.mx-soc--wa svg path:last-of-type{fill:#25D366!important;stroke:none!important}
.mx-soc--wa:hover{box-shadow:0 10px 24px -8px #25D366}
.mx-soc--max{background:linear-gradient(135deg,#3FB5FF,#5A4BFF 55%,#9B3DF0)!important}
.mx-soc--max svg path:first-of-type,.soc_max svg path:first-of-type{fill:#fff!important;stroke:none!important}
.mx-soc--max svg path:last-of-type,.soc_max svg path:last-of-type{fill:none!important;stroke:#5A4BFF!important}
.mx-soc--max:hover{box-shadow:0 10px 24px -8px #5A4BFF}
@keyframes fx-wave{0%,100%{transform:none}20%{transform:rotate(-10deg)}40%{transform:rotate(8deg)}60%{transform:rotate(-4deg)}}
.mx-soc--f:hover svg{animation:fx-wave .7s ease}

/* ---------- примеры работ: просто карточки ---------- */
.mx-case{cursor:default}
.mx-case img{transition:transform .6s cubic-bezier(.22,1,.36,1)}
.mx-case:hover img{transform:scale(1.04)}

/* ---------- без блока «Блог» новости на всю ширину ---------- */
.info_block .row{display:block!important}
.info_block .news_block{width:100%!important;max-width:none!important;flex:1 1 100%!important;padding:0!important;border:0!important}
.info_block .news_block .news_list{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:24px}
.info_block .news_block .news__item{display:grid!important;grid-template-columns:minmax(200px,44%) 1fr;grid-template-rows:auto 1fr;column-gap:22px;align-items:start;padding:0!important;overflow:hidden}
.info_block .news_block .news__item--img{grid-row:1 / 3;height:100%;min-height:190px;margin:0!important}
.info_block .news_block .news__item--img img{width:100%!important;height:100%!important;object-fit:cover}
.info_block .news_block .news__item--date{padding-top:22px}
.info_block .news_block .news__title{padding-right:20px;font-size:18px!important;line-height:1.35!important}
@media (max-width:900px){.info_block .news_block .news_list{grid-template-columns:1fr!important}}
@media (max-width:560px){.info_block .news_block .news__item{grid-template-columns:1fr}.info_block .news_block .news__item--img{grid-row:auto;min-height:180px}.info_block .news_block .news__item--date,.info_block .news_block .news__title{padding-left:18px}}
.info_block .news_block .news__item{width:auto!important;max-width:none!important;margin:0!important}

/* ---------- форма «Необходима консультация» ---------- */
.section-form .banner_center{position:relative!important;overflow:hidden;border-radius:32px;min-height:540px;display:flex;align-items:center;background:var(--fx-vd)!important;
  box-shadow:0 40px 80px -40px rgba(42,5,9,.7)}
.section-form .banner_center > .container{position:static!important;display:flex;align-items:center;min-height:540px;padding-top:56px;padding-bottom:56px}
.section-form .banner_center .banner__img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;z-index:0;
  margin:0!important;border-radius:0!important;transform:scale(1.04);filter:saturate(.9)}
.section-form .banner_center::before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(100deg,rgba(30,3,6,.94) 0%,rgba(74,8,18,.86) 38%,rgba(139,16,34,.45) 70%,rgba(233,216,90,.18) 100%)}
.section-form .banner_center::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;z-index:1;
  background:radial-gradient(circle,rgba(233,216,90,.45),transparent 65%);filter:blur(10px)}
.section-form .banner_center .banner__inner_full{position:relative!important;z-index:2;max-width:640px!important;width:100%;margin:0!important;padding:44px 44px 36px!important;
  text-align:left!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.16);border-radius:26px;
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
.section-form .banner_center .form-banner__title{color:#fff!important;text-align:left!important;font:700 clamp(26px,3vw,38px)/1.15 Onest,Roboto,Arial,sans-serif!important;margin:0 0 12px!important;text-shadow:none!important}
.section-form .banner_center .form-banner__title::before{content:"Бесплатная консультация";display:table;margin-bottom:16px;padding:7px 14px;border-radius:999px;
  background:var(--fx-y);color:var(--fx-vd);font:700 12px/1 Onest,Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.section-form .banner_center .form-banner__subtitle{color:rgba(255,255,255,.82)!important;text-align:left!important;font:400 17px/1.5 Onest,Roboto,Arial,sans-serif!important;margin:0 0 26px!important}
.section-form .banner_center input[type=text],.section-form .banner_center input[type=tel],.section-form .banner_center input[type=email]{width:100%!important;height:54px!important;
  border-radius:14px!important;border:1px solid rgba(255,255,255,.22)!important;background:rgba(255,255,255,.95)!important;color:var(--fx-ink)!important;padding:0 18px!important;
  font:500 15px Onest,Roboto,Arial,sans-serif!important;box-shadow:none!important;transition:box-shadow .25s,border-color .25s}
.section-form .banner_center input:focus{outline:0;border-color:var(--fx-y)!important;box-shadow:0 0 0 4px rgba(233,216,90,.35)!important}
.section-form .banner_center input[type=submit],.section-form .banner_center .wpcf7-submit{width:100%!important;height:54px!important;border-radius:14px!important;border:0!important;
  background:linear-gradient(135deg,#F4EDA6,#E9D85A)!important;color:var(--fx-vd)!important;font:700 15px Onest,Roboto,Arial,sans-serif!important;cursor:pointer;
  box-shadow:0 14px 30px -12px rgba(233,216,90,.8)!important;transition:transform .3s,box-shadow .3s}
.section-form .banner_center .wpcf7-submit:hover{transform:translateY(-2px);box-shadow:0 18px 36px -12px rgba(233,216,90,.95)!important}
.section-form .banner_center .form__consent,.section-form .banner_center .wpcf7-acceptance,.section-form .banner_center label,.section-form .banner_center .wpcf7-list-item-label{
  color:rgba(255,255,255,.75)!important;font-size:12.5px!important;line-height:1.45!important;text-align:left!important}
.section-form .banner_center a{color:var(--fx-y2)!important}
.section-form .banner_center input[type=checkbox]{accent-color:var(--fx-y)}
@media (max-width:760px){.section-form .banner_center .banner__inner_full{padding:28px 20px!important}}

/* ---------- шторка перехода: аккуратное название страницы ---------- */
/* шторка перехода — винный бордо (19.10.2026: «кровавый красный» → бордо) */
.mx-curtain{background:radial-gradient(120% 90% at 85% 10%,rgba(150,45,75,.32),transparent 60%),linear-gradient(135deg,#2B0610 0%,#58101F 55%,#3D0915 100%)!important}
.mx-curtain::after{display:none!important}
.mx-curtain__in{display:flex;flex-direction:column;align-items:center;gap:18px;padding:0 24px;max-width:min(980px,92vw)}
.mx-curtain__k{font:700 12px/1 Onest,Roboto,Arial,sans-serif;letter-spacing:.32em;text-transform:uppercase;color:var(--fx-y)}
.mx-curtain__t{font:600 clamp(26px,3.6vw,52px)/1.15 Onest,Roboto,Arial,sans-serif!important;color:#fff!important;max-width:24ch!important;letter-spacing:-.015em!important;
  text-wrap:balance;text-align:center;padding:0!important;overflow-wrap:normal;hyphens:none}
.mx-curtain__t:empty{display:none}
.mx-curtain__l{display:block;width:72px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--fx-y),var(--fx-y2));animation:fx-line 1s cubic-bezier(.22,1,.36,1) both}
@keyframes fx-line{from{width:0;opacity:0}to{width:72px;opacity:1}}

/* ---------- фиолетово-жёлтый, а не фиолетовый с вкраплениями ---------- */
/* главные кнопки — жёлтые */
.button:not(.mx-btn-light):not(.button_light_orange),.banner__button:not(.button_light_orange),.page-header__cta,.wpcf7-submit,.widgets__button{
  background:linear-gradient(135deg,#F4EDA6 0%,#E9D85A 100%)!important;color:var(--fx-vd)!important;border:0!important;font-weight:700!important;
  box-shadow:0 14px 30px -14px rgba(233,216,90,.9)!important;transition:transform .3s,box-shadow .3s,filter .3s!important}
.button:not(.mx-btn-light):not(.button_light_orange):hover,.banner__button:not(.button_light_orange):hover,.page-header__cta:hover,.wpcf7-submit:hover{
  transform:translateY(-2px);filter:saturate(1.1);box-shadow:0 18px 36px -14px rgba(233,216,90,1)!important}
.button_light_orange,.mx-btn-light{background:transparent!important;color:var(--fx-v)!important;border:2px solid var(--fx-v)!important}
/* черта под заголовками разделов — жёлтая */
.section__head h2::after,.section__head .section__title::after,h1.page-title::after{background:linear-gradient(90deg,var(--fx-y),var(--fx-y2))!important}
/* первый экран — фиолетовая карточка с белым заголовком и жёлтой кнопкой */
.first_screen_left{border-radius:28px!important;overflow:hidden;background-color:#4A0812!important}
.first_screen_left::after{background:linear-gradient(90deg,#4A0812 0%,#4A0812 60%,rgba(74,8,18,.7) 68%,rgba(74,8,18,.25) 78%,rgba(74,8,18,0) 88%)!important}
.first_screen_left::before{background:radial-gradient(circle,rgba(233,216,90,.38),transparent 65%)!important}
.first_screen_left_body{position:relative;z-index:3}
.first_screen_left_body p{color:#fff!important}
.first_screen_left_body p::after{content:"";display:block;width:64px;height:5px;border-radius:5px;margin-top:18px;background:linear-gradient(90deg,var(--fx-y),var(--fx-y2))}
/* меню услуг: наведение — жёлтая подсветка */
.mx-svc > li > a{border-radius:12px;transition:background .25s,color .25s}
.mx-svc > li:hover > a,.mx-svc > li:focus-within > a{background:rgba(233,216,90,.16)!important;color:var(--fx-vd)!important}
/* карточки: жёлтая черта при наведении */
.panel,.fig-block,.news__item{position:relative}
.panel::after,.fig-block::after,.news__item::after{content:"";position:absolute;left:24px;right:24px;bottom:0;height:4px;border-radius:4px 4px 0 0;
  background:linear-gradient(90deg,var(--fx-y),var(--fx-y2));transform:scaleX(0);transform-origin:left;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.panel:hover::after,.fig-block:hover::after,.news__item:hover::after{transform:scaleX(1)}
.news__item--date{color:#8B1022!important;font-weight:600}
/* подвал: фиолетовый с жёлтыми заголовками */
.footer{background:radial-gradient(60% 80% at 100% 0%,rgba(233,216,90,.16),transparent 60%),linear-gradient(160deg,#4A0812,#1E0306)!important}
.footer__title{color:var(--fx-y)!important}
.footer a:hover{color:var(--fx-y2)!important}
.footer__phone{color:#fff!important}
/* кнопка «наверх» */
.scroll-top-button{background:var(--fx-y)!important;color:var(--fx-vd)!important}
.page-header.mx-hide .mx-svc .sub-menu-wrap{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

/* ===================== бордовый + бледно-жёлтый (16.10.2026, картинка заказчика) ===================== */
/* бледно-жёлтый на светлом почти не виден: мелкие метки — насыщенным жёлтым, черты — от бордового к жёлтому */
:root{--fx-yd:#CDB52E}
.mx-svc .sub-menu a::before,.mx-svc .sub-menu li a::before{background:var(--fx-yd)!important;box-shadow:0 0 0 3px rgba(205,181,46,.22)!important}
.section__head h2::after,.section__head .section__title::after,h1.page-title::after{background:linear-gradient(90deg,var(--fx-v) 0%,var(--fx-v) 45%,var(--fx-yd) 45%,var(--fx-y) 100%)!important}
.mx-about .mx-about__lead{border-left-color:var(--fx-yd)!important}
.mx-svc > li:hover > a,.mx-svc > li:focus-within > a{background:var(--fx-y2)!important;color:var(--fx-vd)!important}
.mx-pal__b.on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--fx-v)!important}
/* фон страницы — тёплый сливочный вместо холодного серого */
body,.page,.main{background-color:#FBF8EE!important}
.page-header{background:rgba(251,248,238,.94)!important}
.mx-search__hint button:hover{background:var(--fx-y)!important}

/* ===================== страницы услуг /uslugi/… (тексты заказчика) ===================== */
.mx-svc-kicker{display:inline-block;margin:0 0 14px!important;padding:6px 14px;border-radius:999px;background:var(--fx-y2);color:var(--fx-vd);
  font:700 12px/1 Onest,Roboto,Arial,sans-serif!important;letter-spacing:.06em;text-transform:uppercase}
.mx-svc-page .banner__title{font-size:clamp(28px,3.4vw,46px)!important;line-height:1.12!important}
.mx-svc-body{padding-top:20px!important}
.mx-svc-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
.mx-svc-text{background:#fff;border-radius:28px;padding:44px 48px;box-shadow:0 30px 60px -40px rgba(42,5,9,.35)}
.mx-svc-text p{font-size:17px;line-height:1.7;color:#3A2A2A;margin:0 0 18px}
.mx-svc-text > p:first-child{font-size:19px;line-height:1.6;color:var(--fx-ink)}
.mx-svc-text > p:first-child::first-letter{color:var(--fx-v);font-weight:700}
.mx-svc-text h3{position:relative;margin:34px 0 16px;padding-left:20px;font:700 22px/1.3 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)}
.mx-svc-text h3::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:6px;border-radius:6px;background:linear-gradient(180deg,var(--fx-v),var(--fx-yd))}
.mx-svc-list{list-style:none;margin:0 0 20px!important;padding:0!important;display:grid;gap:12px}
.mx-svc-list li{position:relative;margin:0!important;padding:16px 18px 16px 50px!important;border-radius:16px;background:#FBF6EC;font-size:16px;line-height:1.6;color:#3A2A2A}
.mx-svc-list li::before{content:""!important;position:absolute;left:20px;top:24px;width:10px;height:10px;border-radius:3px;transform:rotate(45deg);
  background:var(--fx-yd)!important;box-shadow:0 0 0 4px rgba(205,181,46,.2);display:block!important}
.mx-svc-list li b,.mx-svc-steps li b{color:var(--fx-v)}
.mx-svc-steps{list-style:none;counter-reset:st;margin:0 0 20px!important;padding:0!important;display:grid;gap:12px}
.mx-svc-steps li{counter-increment:st;position:relative;margin:0!important;padding:16px 18px 16px 66px!important;border-radius:16px;background:#FBF6EC;font-size:16px;line-height:1.6}
.mx-svc-steps li::before{content:counter(st);position:absolute;left:16px;top:14px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--fx-v);color:var(--fx-y2);font:700 15px/1 Onest,Roboto,Arial,sans-serif}
.mx-svc-law{display:flex;gap:16px;align-items:flex-start;margin:6px 0 22px;padding:18px 22px;border-radius:18px;border:1px solid rgba(139,16,34,.14);
  background:linear-gradient(135deg,#fff,#FBF3E4)}
.mx-svc-law p{margin:0!important;font-size:15px!important;line-height:1.6!important;color:#4A3A3A!important}
.mx-svc-law__i{flex:0 0 38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--fx-v);color:var(--fx-y2);font:700 20px/1 Georgia,serif}
.mx-svc-side{position:sticky;top:150px;display:grid;gap:18px}
.mx-svc-card{border-radius:24px;padding:28px;color:#fff;background:radial-gradient(90% 80% at 100% 0%,rgba(233,216,90,.35),transparent 60%),linear-gradient(150deg,#8B1022,#4A0812);
  box-shadow:0 30px 60px -30px rgba(74,8,18,.7)}
.mx-svc-card__t{font:700 22px/1.25 Onest,Roboto,Arial,sans-serif;margin:0 0 10px;color:#fff}
.mx-svc-card p{color:rgba(255,255,255,.82);font-size:15px;line-height:1.55;margin:0 0 18px}
.mx-svc-card .button{display:block;text-align:center}
.mx-svc-more{border-radius:24px;padding:22px;background:#fff;box-shadow:0 20px 40px -30px rgba(42,5,9,.35)}
.mx-svc-more__t{font:700 13px/1.3 Onest,Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--fx-v);margin:0 0 12px}
.mx-svc-chip{display:block;padding:10px 12px;margin:0 -6px;border-radius:12px;color:var(--fx-ink)!important;font-size:14.5px;line-height:1.4;text-decoration:none;transition:background .2s,color .2s}
.mx-svc-chip:hover{background:var(--fx-y2);color:var(--fx-vd)!important}
/* документы справа от описания (письмо МЧС, образцы СТУ) */
.mx-svc-grid:has(.mx-svc-side--docs){grid-template-columns:minmax(0,1fr) 420px}
.mx-svc-side--docs{position:static}
.mx-svc-docs{border-radius:24px;padding:22px;background:#fff;box-shadow:0 20px 40px -30px rgba(42,5,9,.35)}
.mx-docs{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.mx-doc{display:flex;flex-direction:column;gap:6px;color:var(--fx-ink)!important;text-decoration:none!important}
.mx-doc__img{display:block;border-radius:12px;overflow:hidden;border:1px solid rgba(139,16,34,.14);background:#fff;
  box-shadow:0 14px 28px -20px rgba(42,5,9,.45);transition:transform .25s,box-shadow .25s}
.mx-doc__img img{display:block;width:100%;height:auto}
.mx-doc:hover .mx-doc__img{transform:translateY(-3px);box-shadow:0 22px 36px -22px rgba(42,5,9,.6)}
.mx-doc__t{font:600 14px/1.4 Onest,Roboto,Arial,sans-serif}
.mx-doc__m{font-size:12.5px;line-height:1.3;color:var(--fx-v);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
@media (max-width:1000px){.mx-svc-grid{grid-template-columns:1fr}.mx-svc-side{position:static}}
@media (max-width:1000px){.mx-svc-grid:has(.mx-svc-side--docs){grid-template-columns:1fr}}
@media (max-width:600px){.mx-docs{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}}
@media (max-width:640px){.mx-svc-text{padding:26px 20px;border-radius:20px}.mx-svc-text p{font-size:16px}.mx-svc-list li{padding:14px 14px 14px 42px!important}.mx-svc-list li::before{left:16px;top:22px}}

/* шапка: тема переключается по ширине устройства (min-device-width), из-за этого в узком окне на компьютере меню разваливалось.
   Переключаем по ширине окна */
@media (min-width:992px){.page-header__menu .mobile-menu-service{display:none!important}}
@media (max-width:991px){
  .page-header__menu{display:block!important;flex-basis:100%!important;max-height:0!important;overflow:hidden!important;padding-left:0!important;transition:max-height .3s}
  .page-header--active .page-header__menu{max-height:100vh!important;overflow:auto!important}
  .page-header__menu-btn{display:block!important}
  .button_mobile{display:flex!important}
  .page-header__cont,.page-header__subnav{display:none!important}
  .page-header__container{flex-wrap:wrap!important}
}
/* первый экран: текст только на бордовой части, не на картинке */
.first_screen_left_body{max-width:44%!important}
.first_screen_left_body p{font-size:clamp(22px,2.6vw,40px)!important;line-height:1.15!important}
@media (max-width:760px){.first_screen_left_body{max-width:none!important}}

/* страницы услуг: первый экран — текст на бордовом, картинка справа */
.mx-svc-page .section_s .banner{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:stretch;min-height:440px;padding:0!important;
  border-radius:28px!important;overflow:hidden;background:radial-gradient(80% 120% at 0% 100%,rgba(233,216,90,.22),transparent 55%),linear-gradient(135deg,#4A0812 0%,#7A0E1E 100%)!important;
  box-shadow:0 40px 80px -45px rgba(74,8,18,.75)}
.mx-svc-page .section_s .banner::before,.mx-svc-page .section_s .banner::after{display:none!important}
.mx-svc-page .section_s .banner__img-wrapper{position:relative!important;order:2;inset:auto!important;width:auto!important;height:auto!important;max-width:none!important;min-height:300px;margin:0!important;border-radius:0!important}
.mx-svc-page .section_s .banner__img-wrapper::before{display:none!important}
.mx-svc-page .section_s .banner__img-wrapper::after{content:""!important;display:block!important;position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#6A0C1A 0%,rgba(106,12,26,.35) 22%,rgba(106,12,26,0) 45%)!important}
.mx-svc-page .section_s .banner__img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;border-radius:0!important;margin:0!important}
.mx-svc-page .section_s .banner__inner{position:relative!important;order:1;z-index:2;padding:52px 48px!important;max-width:none!important;width:auto!important;background:none!important;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.mx-svc-page .section_s .banner__title{color:#fff!important}
.mx-svc-page .section_s .banner__title::after{content:"";display:block;width:64px;height:5px;border-radius:5px;margin-top:18px;background:linear-gradient(90deg,var(--fx-y),var(--fx-y2))}
.mx-svc-page .section_s .banner__desc{color:rgba(255,255,255,.82)!important;font-size:17px!important;line-height:1.55!important;margin:16px 0 26px!important;max-width:60ch}
.mx-svc-page .section_s .mx-svc-kicker{background:var(--fx-y);color:var(--fx-vd)}
@media (max-width:860px){
  .mx-svc-page .section_s .banner{grid-template-columns:1fr}
  .mx-svc-page .section_s .banner__img-wrapper{order:0;min-height:220px}
  .mx-svc-page .section_s .banner__img-wrapper::after{background:linear-gradient(0deg,#4A0812 0%,rgba(74,8,18,0) 55%)!important}
  .mx-svc-page .section_s .banner__inner{padding:28px 22px 32px!important}
}

/* ===================== главная, 16.10.2026: о компании + объекты, «Почему именно мы», услуги в пять колонок ===================== */
.mx-intro{padding-top:10px!important}
.mx-intro__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:stretch}
.mx-intro__about,.mx-intro__objects{background:#fff;border-radius:28px;padding:40px 42px;box-shadow:0 30px 60px -42px rgba(42,5,9,.35)}
.mx-intro__about h2{margin:0 0 18px!important;font:700 clamp(26px,2.6vw,36px)/1.15 Onest,Roboto,Arial,sans-serif!important;color:var(--fx-ink)}
.mx-intro__about h2 span{color:var(--fx-v)}
.mx-intro__about h2::after{content:"";display:block;width:64px;height:5px;border-radius:5px;margin-top:14px;background:linear-gradient(90deg,var(--fx-v) 0 45%,var(--fx-yd) 45% 100%)}
.mx-intro__about p{font-size:16px;line-height:1.65;color:#3A2A2A;margin:0 0 14px}
.mx-intro__lead{font-size:18px!important;font-weight:600;color:var(--fx-ink)!important}
.mx-intro__slogan{display:inline-block;margin-top:8px!important;padding:12px 20px;border-radius:14px;background:linear-gradient(135deg,#8B1022,#4A0812);color:#fff!important;font-weight:700!important;box-shadow:inset 0 -3px 0 var(--fx-y)}
.mx-intro__objects h3{margin:0 0 20px!important;font:700 clamp(22px,2vw,28px)/1.2 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)}
.mx-obj-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mx-obj{margin:0;border-radius:18px;overflow:hidden;background:#FBF6EC;display:flex;flex-direction:column}
.mx-obj img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.mx-obj:hover img{transform:scale(1.04)}
.mx-obj figcaption{padding:12px 14px;font:600 15px/1.3 Onest,Roboto,Arial,sans-serif;color:#fff;background:linear-gradient(135deg,#8B1022,#6A0C1A);flex:1;display:flex;align-items:center}
@media (max-width:1000px){.mx-intro__grid{grid-template-columns:1fr}}
@media (max-width:640px){.mx-intro__about,.mx-intro__objects{padding:24px 18px;border-radius:20px}.mx-obj-grid{gap:10px}.mx-obj figcaption{font-size:13px;padding:10px}}

.mx-why{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.mx-why__card{position:relative;background:#fff;border-radius:22px;padding:28px 26px 26px;box-shadow:0 24px 50px -38px rgba(42,5,9,.4);overflow:hidden;transition:transform .4s cubic-bezier(.22,1,.36,1)}
.mx-why__card:hover{transform:translateY(-4px)}
.mx-why__card::after{content:"";position:absolute;left:26px;right:26px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:linear-gradient(90deg,var(--fx-v),var(--fx-yd));transform:scaleX(0);transform-origin:left;transition:transform .45s}
.mx-why__card:hover::after{transform:scaleX(1)}
.mx-why__n{position:absolute;right:20px;top:14px;font:700 44px/1 Unbounded,Onest,Arial,sans-serif;color:#F3E9DC}
.mx-why__i{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:linear-gradient(145deg,#A3182E,#5E0A16);box-shadow:0 12px 24px -12px rgba(139,16,34,.8);margin-bottom:18px;position:relative}
.mx-why__i svg{width:28px;height:28px;fill:none;stroke:var(--fx-y2);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mx-why__t{margin:0 0 8px!important;font:700 19px/1.3 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)}
.mx-why__d{margin:0!important;font-size:15px;line-height:1.55;color:#5E4C4C}
@media (max-width:900px){.mx-why{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.mx-why{grid-template-columns:1fr}.mx-why__card{padding:22px 20px}}

.mx-cols{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;align-items:start}
.mx-cols__col{background:#fff;border-radius:20px;padding:20px 16px 14px;box-shadow:0 24px 50px -40px rgba(42,5,9,.4);height:100%}
.mx-cols__h{display:block;padding:0 6px 12px;margin-bottom:8px;border-bottom:2px solid #F3E9DC;font:700 16px/1.3 Onest,Roboto,Arial,sans-serif;color:var(--fx-v)!important;text-decoration:none}
.mx-cols__h:hover{color:var(--fx-vd)!important}
.mx-cols ul{list-style:none;margin:0!important;padding:0!important}
.mx-cols li{margin:0!important;padding:0!important}
.mx-cols li::before{display:none!important}
.mx-cols li a{display:block;position:relative;padding:8px 6px 8px 20px;border-radius:10px;font-size:14px;line-height:1.4;color:#3A2A2A!important;text-decoration:none;transition:background .2s,color .2s}
.mx-cols li a::before{content:"";position:absolute;left:7px;top:14px;width:6px;height:6px;border-radius:2px;transform:rotate(45deg);background:var(--fx-yd)}
.mx-cols li a:hover{background:var(--fx-y2);color:var(--fx-vd)!important}
@media (max-width:1200px){.mx-cols{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.mx-cols{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.mx-cols{grid-template-columns:1fr}}

/* телефон: шапка в одну строку — логотип слева, мессенджеры, поиск и меню справа */
@media (max-width:991px){
  .page-header__container:not(.page-header__subnav){display:flex!important;flex-wrap:wrap!important;align-items:center!important;column-gap:8px}
  .page-header__logo{order:1;flex:0 0 auto;margin:0!important}
  .button_mobile{order:2;margin-left:auto!important;display:flex!important;align-items:center;gap:8px;width:auto!important}
  .social_mobile{gap:6px!important}
  .social_mobile .mx-soc,.social_mobile a{width:28px!important;height:28px!important;background-size:contain!important}
  .page-header__search.search_mobile{order:3;flex:0 0 auto}
  .page-header__menu{order:4;flex:1 1 100%!important}
}
@media (max-width:400px){
  .page-header__logo .mx-logo{width:142px!important;height:auto!important}
  .social_mobile .mx-soc,.social_mobile a{width:24px!important;height:24px!important}
  .button_mobile{gap:6px}
}

/* телефон: первый экран — картинка сверху, текст на бордовом ниже (иначе белый текст на светлой картинке не читается) */
@media (max-width:760px){
  .first_screen_left{background-size:100% auto!important;background-position:center top!important;background-repeat:no-repeat!important;
    background-color:#4A0812!important;padding:210px 20px 24px!important;min-height:0!important;height:auto!important}
  .first_screen_left::after{top:0!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;
    background:linear-gradient(180deg,rgba(74,8,18,0) 0px,rgba(74,8,18,0) 120px,rgba(74,8,18,.85) 190px,#4A0812 230px)!important}
  .first_screen_left_body{max-width:none!important;position:relative;z-index:3}
  .first_screen_left_body p{font-size:26px!important}
  .first_screen_left_body .button{width:100%;text-align:center}
}
@media (max-width:760px){
  .first_screen_left{padding-top:245px!important;display:block!important}
  .first_screen_left::after{background:linear-gradient(180deg,rgba(74,8,18,0) 0px,rgba(74,8,18,0) 160px,rgba(74,8,18,.9) 225px,#4A0812 245px)!important}
  .first_screen_left_body{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:22px}
  .first_screen_left_body p{margin:0!important}
}
@media (max-width:760px){.first_screen_left_body .button{margin-top:4px!important}}
@media (max-width:640px){.mx-obj figcaption{font-size:12.5px!important;line-height:1.25!important;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere;padding:9px 10px!important}}
.mx-news .news__title,.mx-news .news__title a{text-indent:0!important;padding-left:0!important}
.breadcrumbs{white-space:normal!important;overflow:visible!important;line-height:1.5}

/* === мобильные устройства (19.10.2026): компактнее, меньше прокрутки === */
@media (max-width:991px){
  /* открытое меню — сплошной фон, лупа не висит посреди списка */
  .page-header--active{background:#FBF8EE!important}
  .page-header--active .page-header__search.search_mobile{visibility:hidden}
}
/* «Почему именно мы»: две колонки компактных карточек */
@media (max-width:560px){
  .mx-why{grid-template-columns:1fr 1fr!important;gap:10px}
  .mx-why__card{padding:16px 14px 16px!important;border-radius:18px}
  .mx-why__n{font-size:26px!important;top:10px!important;right:12px!important}
  .mx-why__i{width:40px!important;height:40px!important;border-radius:12px!important;margin-bottom:10px!important}
  .mx-why__i svg{width:20px!important;height:20px!important}
  .mx-why__t{font-size:15px!important;line-height:1.3!important;margin:0 0 6px!important}
  .mx-why__d{font-size:13.5px!important;line-height:1.45!important;margin:0!important}
}
@media (max-width:330px){.mx-why{grid-template-columns:1fr!important}}
/* «Схема работы»: значок слева, текст справа */
@media (max-width:640px){
  .section-work-steps .grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .section-work-steps .figicon_step{display:flex!important;align-items:center;gap:18px;text-align:left!important;margin:0!important;padding:0 6px 0 0}
  .section-work-steps .figicon_step::after{display:none!important}
  .figicon_step .icon{flex:0 0 68px;width:68px!important;height:68px!important;margin:0!important}
  .figicon_step .icon img{width:32px!important;height:32px!important}
  .section-work-steps .figicon_step .icon::after{width:24px!important;height:24px!important;font-size:11px!important;top:-4px!important;right:-4px!important}
  .section-work-steps .figicon__label{margin:0!important;font-size:16px!important;line-height:1.4!important;text-align:left!important}
}
/* «Услуги»: на телефоне разделы сворачиваются (открыт первый) */
@media (max-width:760px){
  .mx-cols{grid-template-columns:1fr!important;gap:10px}
  .mx-cols__col{padding:4px 14px!important;height:auto}
  .mx-cols__h{position:relative;padding:14px 34px 14px 4px!important;margin:0!important;border-bottom:0!important}
  .mx-cols__h::after{content:"";position:absolute;right:8px;top:50%;width:9px;height:9px;margin-top:-7px;border:solid var(--fx-v);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .25s}
  .mx-cols__col.mx-open .mx-cols__h::after{transform:rotate(-135deg);margin-top:-2px}
  .mx-cols__col > ul{display:none}
  .mx-cols__col.mx-open > ul{display:block;border-top:2px solid #F3E9DC;padding-top:8px!important;padding-bottom:8px!important}
}
/* мелкие экраны: заголовки разделов чуть меньше */
@media (max-width:400px){
  .section__head h2,.mx-intro h2{font-size:26px!important;line-height:1.2!important}
}
@media (max-width:640px){.figicon_step .icon{padding:0!important;display:grid!important;place-items:center}}
/* «Новости»: кнопка «Все новости» рядом с заголовком, а не поверх него */
@media (max-width:760px){
  .news_block .section__head{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .news_block .section__head h2{margin:0!important}
  .news_block .section__head .white_btn{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:9px 16px!important;font-size:14px!important;line-height:1.2!important}
}
/* мобильная шапка: логотип | мессенджеры | лупа | меню (кнопка меню вложена в блок мессенджеров — раскрываем его) */
@media (max-width:991px){
  .page__page-header .button_mobile{display:contents!important}
  .page__page-header .social_mobile{order:2;margin:0 0 0 auto!important;display:flex!important;align-items:center}
  .page__page-header .page-header__search.search_mobile{order:3;position:relative!important;width:30px;height:30px;margin:0 0 0 4px!important}
  .page-header__search.search_mobile > .page-header__search-submit{position:absolute!important;left:3px!important;top:3px!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important}
  .page__page-header .page-header__menu-btn{order:4}
  .page__page-header .page-header__menu{order:5}
}
/* «Услуги» на планшете: колонки укладываются без пустот */
@media (min-width:761px) and (max-width:1200px){
  .mx-cols{display:block!important;column-count:3;column-gap:14px}
  .mx-cols__col{break-inside:avoid;display:inline-block;width:100%;height:auto!important;margin:0 0 14px}
}
@media (min-width:761px) and (max-width:900px){.mx-cols{column-count:2}}
@media (max-width:360px){
  .page-header__container:not(.page-header__subnav){column-gap:5px!important}
  .page-header__logo .mx-logo{width:118px!important;height:auto!important}
  .social_mobile{gap:4px!important}
  .social_mobile .mx-soc,.social_mobile a{width:22px!important;height:22px!important}
  .button_mobile{gap:4px!important}
  .page-header__search.search_mobile{margin:0!important;width:28px}
  .page-header__search.search_mobile > .page-header__search-submit{left:2px!important}
}
/* телефоны: шапка всегда в одну строку */
@media (max-width:480px){
  .page__page-header .page-header__container:not(.page-header__subnav){column-gap:6px!important;flex-wrap:wrap!important}
  .page__page-header .page-header__logo{flex:0 1 auto;min-width:0}
  .page__page-header .page-header__logo .mx-logo{width:138px!important;height:auto!important}
  .page__page-header .social_mobile{gap:5px!important}
  .page__page-header .social_mobile .mx-soc,.page__page-header .social_mobile a{width:26px!important;height:26px!important}
  .page__page-header .page-header__search.search_mobile{margin:0!important}
  .page__page-header .page-header__menu-btn{width:34px!important;min-width:0!important;padding:0!important;margin:0!important}
}
@media (max-width:360px){
  .page__page-header .page-header__container:not(.page-header__subnav){column-gap:4px!important}
  .page__page-header .page-header__logo .mx-logo{width:112px!important}
  .page__page-header .social_mobile{gap:4px!important}
  .page__page-header .social_mobile .mx-soc,.page__page-header .social_mobile a{width:22px!important;height:22px!important}
  .page__page-header .page-header__search.search_mobile{width:26px}
  .page__page-header .page-header__search.search_mobile > .page-header__search-submit{left:1px!important}
}
/* планшет горизонтально / маленький ноутбук: строка разделов помещается целиком */
@media (min-width:992px) and (max-width:1199px){
  #menu-service_top > li > a::before{display:none!important}
  #menu-service_top > li > a{padding:8px 8px!important;font-size:14px!important}
  #menu-service_top{justify-content:space-between!important;width:100%}
  .page-header__subnav .page-header__nav,.page-header__subnav .menu-service_top-container{width:100%}
}
/* «Объекты экспертизы» (19.10.2026): шесть плиток, сетка тянется на всю высоту колонки рядом с текстом — без пустоты внизу */
@media (min-width:1001px){
  .mx-intro__objects{display:flex;flex-direction:column}
  .mx-intro__objects .mx-obj-grid{flex:1 1 auto;grid-template-rows:repeat(3,minmax(0,1fr))}
  .mx-intro__objects .mx-obj img{flex:1 1 auto;height:0;min-height:96px;aspect-ratio:auto}
  .mx-intro__objects .mx-obj figcaption{flex:0 0 auto;min-height:52px}
}
/* === страницы услуг (19.10.2026): колонки на одном уровне, правая компактнее, листы документа в ряд под текстом === */
.mx-svc-grid{align-items:stretch!important;grid-template-columns:minmax(0,1fr) 300px!important;gap:28px!important}
.mx-svc-grid:has(.mx-svc-side--docs){grid-template-columns:minmax(0,1fr) 380px!important}
.mx-svc-main{display:flex;flex-direction:column;gap:22px;min-width:0}
.mx-svc-main > .mx-svc-text{flex:1 1 auto}
.mx-svc-side{position:static!important;display:flex!important;flex-direction:column;gap:14px!important}
.mx-svc-side > .mx-svc-more{flex:1 1 auto}
.mx-svc-card{padding:22px!important;border-radius:20px!important}
.mx-svc-card__t{font-size:19px!important;margin-bottom:8px!important}
.mx-svc-card p{font-size:14px!important;margin-bottom:14px!important}
.mx-svc-more{padding:18px!important;border-radius:20px!important}
.mx-svc-chip{padding:7px 10px!important;font-size:13.5px!important;line-height:1.35!important}
.mx-svc-docs{padding:18px!important;border-radius:20px!important}
.mx-sheets{background:#fff;border-radius:28px;padding:28px 32px 32px;box-shadow:0 30px 60px -40px rgba(42,5,9,.35)}
.mx-sheets__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin-bottom:18px}
.mx-sheets__head .mx-svc-more__t{margin:0!important;flex:0 0 100%}
.mx-sheets__t{margin:0!important;flex:1 1 auto;font:700 18px/1.35 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)}
.mx-sheets__dl{flex:0 0 auto;padding:8px 16px;border-radius:999px;background:var(--fx-v);color:#fff!important;font:600 13px/1.2 Onest,Roboto,Arial,sans-serif;text-decoration:none!important;text-transform:uppercase;letter-spacing:.04em}
.mx-sheets__dl:hover{background:var(--fx-vd)}
.mx-sheets__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mx-sheet{display:flex;flex-direction:column;gap:8px;text-decoration:none!important;color:var(--fx-v)!important;font:600 13px/1 Onest,Roboto,Arial,sans-serif;text-align:center}
.mx-sheet img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid rgba(139,16,34,.14);box-shadow:0 14px 28px -20px rgba(42,5,9,.45);transition:transform .25s,box-shadow .25s}
.mx-sheet:hover img{transform:translateY(-3px);box-shadow:0 22px 36px -22px rgba(42,5,9,.6)}
@media (max-width:1000px){.mx-svc-grid,.mx-svc-grid:has(.mx-svc-side--docs){grid-template-columns:1fr!important}}
@media (max-width:640px){.mx-sheets{padding:20px 16px;border-radius:20px}.mx-sheets__row{gap:8px}.mx-sheets__t{font-size:15px}}
/* баннеры старых страниц разделов (19.10.2026, «сдвинуть картинку вправо, чтобы было видно название»): картинка — в правой части */
@media (min-width:1001px){
  main:not(.mx-svc-page) .banner:not(.banner_dark) .banner__img-wrapper > img.banner__img{position:absolute!important;inset:0 0 0 auto!important;width:58%!important;height:100%!important;
    object-fit:cover!important;object-position:center!important;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 22%)!important;mask-image:linear-gradient(90deg,transparent 0%,#000 22%)!important}
}
.mx-sheets{margin-top:24px}
/* 19.10.2026 (вечер): документы — в левой колонке под текстом; справа «может понадобиться»; низ колонок вровень */
.mx-svc-main .mx-sheets{margin-top:0}
.mx-svc-side > .mx-svc-more{flex:0 0 auto}
.mx-svc-side > :last-child{flex:1 1 auto}
.mx-sheets--2 .mx-sheets__row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px}
.mx-sheet span{line-height:1.3}
.mx-sheets--2 .mx-sheets__row{margin:0 auto}
/* документы для аккредитации (26.10.2026): регламент слева, приказ справа — ссылки на PDF */
.mx-regdocs{padding-top:8px!important;padding-bottom:8px!important}
.mx-regdocs__grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mx-regdoc{display:flex;align-items:center;gap:18px;padding:22px 26px;border-radius:22px;background:#fff;text-decoration:none!important;color:var(--fx-ink)!important;
  box-shadow:0 24px 50px -38px rgba(42,5,9,.45);border:1px solid rgba(139,16,34,.08);transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s,border-color .3s}
.mx-regdoc:hover{transform:translateY(-3px);box-shadow:0 30px 56px -36px rgba(42,5,9,.6);border-color:rgba(139,16,34,.25)}
.mx-regdoc__i{flex:0 0 58px;height:58px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#A3182E,#5E0A16);box-shadow:0 12px 24px -12px rgba(139,16,34,.8)}
.mx-regdoc__i svg{width:28px;height:28px;fill:none;stroke:#F4EDA6;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mx-regdoc__b{display:flex;flex-direction:column;gap:5px;min-width:0}
.mx-regdoc__k{font:700 19px/1.25 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)}
.mx-regdoc__t{font-size:14px;line-height:1.45;color:#5E4C4C}
.mx-regdoc__m{font:700 12px/1 Onest,Roboto,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--fx-v)}
@media (max-width:760px){.mx-regdocs__grid{grid-template-columns:1fr;gap:12px}.mx-regdoc{padding:16px 18px;gap:14px}.mx-regdoc__i{flex-basis:48px;height:48px}.mx-regdoc__k{font-size:17px}}

/* === 27.10.2026: телефон в мобильной шапке, первый экран без наезда текста на картинку, «Контакты» === */
.mx-mphone{display:none}
@media (max-width:991px){
  .page__page-header .mx-mphone{order:6;flex:1 1 100%;display:flex;align-items:center;justify-content:center;gap:8px;margin:6px -10px -10px;padding:7px 10px;
    background:linear-gradient(90deg,#5E0A16,#8B1022);color:#fff!important;font:700 15px/1.2 Onest,Roboto,Arial,sans-serif;letter-spacing:.02em;text-decoration:none!important}
  .page__page-header .mx-mphone svg{width:16px;height:16px;fill:#F4EDA6}
  .page__page-header.page-header--active .mx-mphone{display:none}
}
/* первый экран: место под картинку пропорционально её размерам (1024×640), затемнение — по низу картинки */
@media (max-width:760px){
  .first_screen_left{padding-top:calc(62.5% + 6px)!important}
  .first_screen_left::after{top:0!important;bottom:auto!important;height:auto!important;aspect-ratio:1024/640;
    background:linear-gradient(180deg,rgba(74,8,18,0) 0%,rgba(74,8,18,0) 55%,rgba(74,8,18,.85) 88%,#4A0812 100%)!important}
  .first_screen_left_body p{font-size:clamp(22px,6.4vw,28px)!important;line-height:1.18!important;overflow-wrap:anywhere}
}
/* «Контакты» */
.mx-contacts__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.mx-ct{background:#fff;border-radius:22px;padding:24px 22px;box-shadow:0 24px 50px -38px rgba(42,5,9,.45);display:flex;flex-direction:column;gap:10px;min-width:0}
.mx-ct__k{margin:0!important;font:700 12px/1 Onest,Roboto,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--fx-v)}
.mx-ct__big{font:700 20px/1.25 Onest,Roboto,Arial,sans-serif;color:var(--fx-ink)!important;text-decoration:none!important;overflow-wrap:anywhere}
.mx-ct__big:hover{color:var(--fx-v)!important}
.mx-ct__note{margin:0!important;font-size:14px;color:#6B5A5A}
.mx-ct__soc{display:flex;gap:10px}
.mx-ct__soc a,.mx-ct__soc .mx-soc{width:40px!important;height:40px!important}
.mx-ct__btn{align-self:flex-start;margin-top:6px}
.mx-ct__row{margin:0!important;font-size:14px;line-height:1.45;color:var(--fx-ink)}
.mx-ct__row span{display:block;font-size:12px;color:#8A7676}
@media (max-width:1100px){.mx-contacts__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.mx-contacts__grid{grid-template-columns:1fr;gap:12px}.mx-ct{padding:20px 18px}}
/* строка телефона добавила шапке ~32px — содержимое ниже на столько же */
@media (max-width:991px){body{padding-top:100px!important}}
