
@font-face{font-family:'RTM Clone Topbar';src:url('/wp-content/themes/kadence-child/rtm-header-menu/assets/gilroy-regular.woff') format('woff');font-weight:400;font-display:swap}
@font-face{font-family:'RTM Clone Topbar';src:url('/wp-content/themes/kadence-child/rtm-header-menu/assets/gilroy-bold.woff') format('woff');font-weight:700;font-display:swap}
body.rtm-clone-topbar #main-header .site-top-header-wrap,
body.rtm-clone-topbar #main-header .site-top-header-wrap>.site-header-row-container-inner{background:#f6f9ff}
body.rtm-clone-topbar #main-header .site-top-header-wrap .site-container{max-width:1724px;padding-inline:32px}
body.rtm-clone-topbar #main-header .site-top-header-inner-wrap{display:flex;align-items:center;justify-content:space-between;min-height:108px;gap:clamp(20px,3vw,60px);font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif;color:#001d61}
body.rtm-clone-topbar #main-header .site-header-top-section-left{flex:1;min-width:0;gap:clamp(20px,3vw,60px)}
body.rtm-clone-topbar #main-header .site-header-top-section-right{flex:none;gap:clamp(20px,3vw,60px)}
body.rtm-clone-topbar #main-header .site-top-header-wrap .site-header-item{margin:0;padding:0}
body.rtm-clone-topbar #main-header .site-top-header-wrap [data-section="title_tagline"]{flex:0 0 90px;margin-right:clamp(24px,3.3vw,64px)}
body.rtm-clone-topbar #main-header .site-top-header-wrap .custom-logo{width:67.5px;height:87px;max-width:none;object-fit:contain}
body.rtm-clone-topbar #main-header [data-section="kadence_customizer_header_search_bar"]{width:350px;max-width:100%;min-width:100px}
body.rtm-clone-topbar #masthead .site-top-header-wrap .header-search-bar{width:100%;padding:0}
body.rtm-clone-topbar #masthead .site-top-header-wrap .woocommerce-product-search{position:relative;display:flex;align-items:center;width:100%;margin:0;border:0;border-bottom:1px solid #de3607;border-radius:0;background:transparent;box-shadow:none}
body.rtm-clone-topbar #masthead .site-top-header-wrap input.search-field{width:100%;min-width:0;height:43px;margin:0;padding:9px 40px 9px 0!important;border:0!important;border-radius:0;background:transparent;box-shadow:none;color:#001d61;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif}
body.rtm-clone-topbar #masthead .site-top-header-wrap input.search-field::placeholder{color:#66728b;opacity:1}
body.rtm-clone-topbar #masthead .site-top-header-wrap .kadence-search-icon-wrap{position:absolute;inset:0 0 0 auto;display:flex;align-items:center;justify-content:center;width:40px;color:#5b6e8c;pointer-events:none}
body.rtm-clone-topbar #masthead .site-top-header-wrap .kadence-search-icon-wrap svg{width:22px;height:22px}
body.rtm-clone-topbar #masthead .site-top-header-wrap .woocommerce-product-search>button{position:absolute;inset:0 0 0 auto;display:block!important;opacity:0;width:40px;height:100%;margin:0;padding:0;cursor:pointer;z-index:1}
body.rtm-clone-topbar #masthead .site-top-header-wrap .woocommerce-product-search:focus-within{outline:2px solid #de3607;outline-offset:4px}
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html,
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-contact-inner-wrap{font:inherit;color:#001d61}
body.rtm-clone-topbar #main-header .site-top-header-wrap a{color:#001d61;text-decoration:none}
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html a,
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-contact-item{font-size:16px;white-space:nowrap}
body.rtm-clone-topbar #main-header .site-top-header-wrap .contact-button .kadence-svg-iconset{display:none}
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html2 .kb-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 24px;border:1px solid #de3607;border-radius:40px;background:transparent;box-shadow:none;color:#001d61;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif;white-space:nowrap}
body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html2 .kb-button:hover{color:#fff;background:#de3607;border-color:#de3607}
body.rtm-clone-topbar #main-header .site-top-header-wrap a:focus-visible,
body.rtm-clone-topbar #mobile-header .site-top-header-wrap :is(a,button,input):focus-visible{outline:3px solid #fba35f;outline-offset:4px}
body.rtm-clone-topbar .rtm-clone-mobile-search{display:none}
@media(min-width:1025px) and (max-width:1400px){
 body.rtm-clone-topbar #main-header .site-top-header-inner-wrap,
 body.rtm-clone-topbar #main-header .site-header-top-section-left,
 body.rtm-clone-topbar #main-header .site-header-top-section-right{gap:24px}
 body.rtm-clone-topbar #main-header .site-top-header-wrap [data-section="title_tagline"]{margin-right:20px}
 body.rtm-clone-topbar #main-header [data-section="kadence_customizer_header_search_bar"]{width:260px}
 body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html a,
 body.rtm-clone-topbar #main-header .site-top-header-wrap .header-contact-item{font-size:14px}
 body.rtm-clone-topbar #main-header .site-top-header-wrap .header-html2 .kb-button{padding-inline:18px}
}
@media(max-width:1024px){
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-wrap,
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-wrap>.site-header-row-container-inner{background:#f6f9ff}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-wrap .site-container{padding-inline:32px;max-width:1724px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-inner-wrap{display:grid;grid-template-columns:60px minmax(0,1fr) auto 48px;align-items:center;gap:24px;min-height:81px;padding-block:12px;color:#001d61;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-header-section{display:contents}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-wrap .site-header-item{margin:0;padding:0}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="title_tagline"]{grid-column:1;grid-row:1}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-logo{width:45px;height:57px;max-width:none;object-fit:contain}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="kadence_customizer_mobile_html"]{grid-column:3;grid-row:1}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-header-mobile-contact-wrap{display:block;margin:0;padding:0}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-header-mobile-contact-mail{display:none}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-header-mobile-contact-phone{margin:0;padding:0;white-space:nowrap;color:#001d61;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif!important}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="kadence_customizer_mobile_trigger"]{grid-column:4;grid-row:1}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .rtm-clone-mobile-search{display:block;grid-column:2;grid-row:1;min-width:0;width:100%;max-width:100%;padding:0;margin:0}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .mobile-toggle-open-container{margin:0}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle{position:relative;display:block;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:0;clip-path:none;background:linear-gradient(#001d61,#001d61) center/24px 1.5px no-repeat;box-shadow:none;color:#001d61;animation:none;opacity:1;transition:background-color .2s,color .2s}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle svg{display:none}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle::before,
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle::after{content:'';position:absolute;left:10px;right:10px;height:1.5px;background:currentColor}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle::before{top:14px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-toggle::after{bottom:14px}
}
@media(max-width:600px){
 /* Extra admin-toolbar items can wrap the account link over the right-hand header control. */
 body.rtm-clone-topbar #wpadminbar #wp-admin-bar-top-secondary{position:absolute;right:0;top:0}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-wrap .site-container{padding-inline:20px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .site-top-header-inner-wrap{grid-template-columns:50px minmax(0,1fr) 44px;grid-template-rows:auto auto;gap:4px 16px;min-height:90px;padding-block:12px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="title_tagline"]{grid-column:1;grid-row:1/3}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-logo{width:37.5px;height:52.5px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="kadence_customizer_mobile_html"]{grid-column:2;grid-row:1;justify-self:end;align-self:end}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .custom-header-mobile-contact-phone{font-size:14px!important}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header [data-section="kadence_customizer_mobile_trigger"]{grid-column:3;grid-row:1/3}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .rtm-clone-mobile-search{grid-column:2;grid-row:2;align-self:start}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header input.search-field{height:29px;padding:5px 28px 5px 0!important;font-size:13px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .kadence-search-icon-wrap,
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .woocommerce-product-search>button{width:28px}
 body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header .kadence-search-icon-wrap svg{width:18px;height:18px}
}



/* RTM clone 17.11.2026: Original skin on the existing Kadence menus, at every saved depth. */
body.rtm-clone-topbar #main-header .site-main-header-wrap{position:relative;background:linear-gradient(90deg,#001d61,#4b9ea8);color:#fff}
body.rtm-clone-topbar #main-header .site-main-header-wrap>.site-header-row-container-inner{position:static;background:transparent}
body.rtm-clone-topbar #main-header .site-main-header-wrap .site-container{position:static;max-width:1532px;padding-inline:32px}
body.rtm-clone-topbar #main-header .site-main-header-inner-wrap{position:static;display:flex;min-height:72px;padding:0}
body.rtm-clone-topbar #main-header .site-header-main-section-left{width:100%;padding:0}
body.rtm-clone-topbar #main-header .site-main-header-wrap .site-header-item{width:100%;margin:0}
body.rtm-clone-topbar #site-navigation{position:static;width:100%;font:400 18px/1.5 'RTM Clone Topbar',Arial,sans-serif}
body.rtm-clone-topbar #site-navigation>.primary-menu-container{position:static;width:100%}
body.rtm-clone-topbar #primary-menu{position:static;display:flex;justify-content:space-between;align-items:stretch;width:100%;margin:0;padding:0;gap:clamp(8px,1vw,24px)}
body.rtm-clone-topbar #primary-menu>li{position:static;display:flex;align-items:center;min-width:0;margin:0}
body.rtm-clone-topbar #primary-menu>li>a{display:flex;align-items:center;min-height:72px;padding:10px 0;color:#fff;background:transparent;font:400 clamp(17px,1.25vw,24px)/1.25 'RTM Clone Topbar',Arial,sans-serif;white-space:normal}
body.rtm-clone-topbar #primary-menu>li>a .nav-drop-title-wrap{display:flex;align-items:center;gap:8px}
body.rtm-clone-topbar #primary-menu>li>a .dropdown-nav-toggle{margin:0;padding:0}
body.rtm-clone-topbar #primary-menu>li>a .dropdown-nav-toggle svg{width:16px;height:16px}
/* Keep the native sibling toggle over its arrow while the panel uses the whole bar as its anchor. */
body.rtm-clone-topbar #primary-menu>li>button.dropdown-nav-special-toggle{position:relative;inset:auto;flex:0 0 24px;width:24px;height:44px;margin:0 0 0 -24px;padding:0;transform:none;opacity:1;border:0;background:transparent;color:#fff;box-shadow:none}
body.rtm-clone-topbar #primary-menu>li>ul.sub-menu{left:0;right:0;top:100%;width:100%;max-width:none;max-height:calc(100dvh - 220px);padding:18px max(32px,calc((100% - 1468px)/2)) 28px;overflow:auto;background:linear-gradient(90deg,#001d61,#4b9ea8);border:0;border-radius:0;box-shadow:0 24px 36px #001d6126;column-count:1;scrollbar-width:thin;scrollbar-color:#ffffff70 transparent}
/* Flat product lists use dense columns; native click-expanded article branches retain vertical scrolling. */
body.rtm-clone-topbar #primary-menu>li>ul.sub-menu:has(>li:nth-child(6)):not(:has(>li.menu-item-has-children)){column-count:3;column-gap:48px;max-height:none;overflow:visible}
body.rtm-clone-topbar #primary-menu>li>ul.sub-menu>li{position:relative;break-inside:avoid;margin:0 0 8px;padding:0;max-width:550px}
body.rtm-clone-topbar #primary-menu>li>ul.sub-menu:has(>li:nth-child(6)):not(:has(>li.menu-item-has-children))>li{max-width:none}
body.rtm-clone-topbar #primary-menu .sub-menu a{padding:10px 0;border:0;border-bottom:1px solid #ffffff35;background:transparent;color:#fff;text-align:left;white-space:normal;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif;overflow-wrap:anywhere}
body.rtm-clone-topbar #primary-menu>li>ul.sub-menu>li>a{font-size:18px;font-weight:700}
body.rtm-clone-topbar #primary-menu .sub-menu .sub-menu{width:100%;max-width:none;max-height:none;overflow:visible;padding:4px 0 10px 16px;border:0;border-radius:0;background:transparent;box-shadow:none}
body.rtm-clone-topbar #primary-menu .sub-menu .sub-menu a{font-size:16px;font-weight:400}
body.rtm-clone-topbar #site-navigation :is(a:hover,a:focus-visible),
body.rtm-clone-topbar #site-navigation .current-menu-item>a,
body.rtm-clone-topbar #site-navigation .current-menu-ancestor>a{color:#ffae87;background:transparent}
body.rtm-clone-topbar #site-navigation :is(a,button):focus-visible{outline:3px solid #fba35f;outline-offset:3px}
@media(min-width:1025px) and (max-width:1400px){
 body.rtm-clone-topbar #primary-menu>li>a{font-size:18px}
 body.rtm-clone-topbar #primary-menu>li>ul.sub-menu:has(>li:nth-child(6)):not(:has(>li.menu-item-has-children)){column-gap:32px}
}
/* Only the existing drawer's skin changes: open/close, focus and nested toggles stay native. */
body.rtm-clone-topbar #mobile-drawer .drawer-inner{width:min(540px,100%);max-width:100%;background:linear-gradient(115deg,#001d61,#4b9ea8);color:#fff;font:400 18px/1.5 'RTM Clone Topbar',Arial,sans-serif}
body.rtm-clone-topbar #mobile-drawer .drawer-header{padding:16px 24px;border-bottom:1px solid #ffffff40;align-items:center;justify-content:space-between}
body.rtm-clone-topbar #mobile-drawer .drawer-header::before{content:'Навигация';font:400 14px/1.5 'RTM Clone Topbar',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
body.rtm-clone-topbar #mobile-drawer .menu-toggle-close{min-width:44px;min-height:44px;color:#fff}
body.rtm-clone-topbar #mobile-drawer .menu-toggle-close .toggle-close-bar{background:currentColor}
body.rtm-clone-topbar #mobile-drawer .drawer-content{height:auto;min-height:calc(100dvh - 80px);padding:20px 24px 32px;justify-content:flex-start;gap:24px}
body.rtm-clone-topbar #mobile-drawer .mobile-drawer-triangle{display:none}
body.rtm-clone-topbar #mobile-secondary-site-navigation{width:100%;font:inherit}
body.rtm-clone-topbar #mobile-secondary-site-navigation ul{margin:0}
body.rtm-clone-topbar #mobile-secondary-menu>li{border-bottom:1px solid #ffffff35}
body.rtm-clone-topbar #mobile-secondary-site-navigation a{padding:14px 0;color:#fff;background:transparent;border:0;font:400 20px/1.4 'RTM Clone Topbar',Arial,sans-serif;overflow-wrap:anywhere}
body.rtm-clone-topbar #mobile-secondary-site-navigation .sub-menu{padding-left:14px}
body.rtm-clone-topbar #mobile-secondary-site-navigation .sub-menu a{padding:10px 0;border-bottom:1px solid #ffffff26;font-size:17px;font-weight:700}
body.rtm-clone-topbar #mobile-secondary-site-navigation .sub-menu .sub-menu a{font-size:16px;font-weight:400}
body.rtm-clone-topbar #mobile-secondary-site-navigation .drawer-nav-drop-wrap{align-items:stretch;background:transparent}
body.rtm-clone-topbar #mobile-secondary-site-navigation .drawer-sub-toggle{flex:0 0 48px;min-width:48px;min-height:48px;padding:0 10px;border:0;background:transparent;color:#fff}
body.rtm-clone-topbar #mobile-secondary-site-navigation :is(a:hover,a:focus-visible),
body.rtm-clone-topbar #mobile-secondary-site-navigation .current-menu-item>a{color:#ffae87;background:transparent}
body.rtm-clone-topbar #mobile-drawer :is(a,button,input):focus-visible{outline:3px solid #fba35f;outline-offset:3px}
body.rtm-clone-topbar #mobile-drawer .header-mobile-search-bar{width:100%;margin:0}
body.rtm-clone-topbar #mobile-drawer .woocommerce-product-search{position:relative;display:flex;width:100%;max-width:none;margin:0;border:0;border-bottom:1px solid #ffffff70;border-radius:0;background:transparent}
body.rtm-clone-topbar #mobile-drawer input.search-field{width:100%;max-width:none;height:44px;margin:0;padding:9px 40px 9px 0;border:0;border-radius:0;background:transparent;color:#fff;font:400 16px/1.5 'RTM Clone Topbar',Arial,sans-serif;box-shadow:none}
body.rtm-clone-topbar #mobile-drawer input.search-field::placeholder{color:#ffffffb3;opacity:1}
body.rtm-clone-topbar #mobile-drawer .kadence-search-icon-wrap{position:absolute;inset:0 0 0 auto;display:flex;align-items:center;justify-content:center;width:40px;color:#fff;pointer-events:none}
body.rtm-clone-topbar #mobile-drawer .woocommerce-product-search>button{position:absolute;inset:0 0 0 auto;display:block!important;width:40px;height:44px;margin:0;padding:0;opacity:0;z-index:1}
body.rtm-clone-topbar #mobile-drawer .header-mobile-html{color:#fff}
body.rtm-clone-topbar #mobile-drawer .header-mobile-html a{color:#fff}


/* Clone only: keep menu labels stationary on hover and current-item states. */
body.rtm-clone-topbar :is(#site-navigation,#mobile-secondary-site-navigation) a,
body.rtm-clone-topbar :is(#site-navigation,#mobile-secondary-site-navigation) a:hover,
body.rtm-clone-topbar :is(#site-navigation,#mobile-secondary-site-navigation) a:focus-visible {
 transform:none!important;
 transition:none!important;
 animation:none!important;
}
body.rtm-clone-topbar :is(#site-navigation,#mobile-secondary-site-navigation) a::before,
body.rtm-clone-topbar :is(#site-navigation,#mobile-secondary-site-navigation) a::after {
 content:none!important;
 display:none!important;
}

body.rtm-clone-topbar #main-header .site-main-header-wrap .site-container {
  padding-bottom: 0;
}

body.rtm-clone-topbar #main-header #primary-menu > li > ul.sub-menu {
  transform: none;
  transition: none;
}

body.rtm-clone-topbar #site-navigation #primary-menu .sub-menu > li {
  border-bottom-color: transparent;
}
@media (min-width: 1025px) {
  /* Все настольные подменю используют типографику раздела материалов. */
  body.rtm-clone-topbar #site-navigation #primary-menu .sub-menu a {
    font-size: clamp(14px, 1.03vw, 19px);
    line-height: 1.35;
  }

  /* Diana's single-column panels keep a full-width background. */
  body.rtm-clone-topbar #site-navigation #primary-menu > li > ul.sub-menu:not(.rtm-balanced-submenu) {
    display: grid;
    grid-template-columns: minmax(0, min(100%, 32rem));
    column-count: auto;
    row-gap: 11px;
  }

  body.rtm-clone-topbar #site-navigation #primary-menu > li > ul.sub-menu:not(.rtm-balanced-submenu) > li {
    margin: 0;
  }

  body.rtm-clone-topbar #site-navigation #primary-menu > li > .rtm-balanced-submenu {
    display: grid;
    grid-template-columns: repeat(var(--rtm-menu-columns, 3), minmax(0, 1fr));
    gap: 11px clamp(32px, 6.8vw, 120px);
    align-items: start;
    column-count: auto;
    max-height: calc(100dvh - 220px);
    overflow: auto;
  }

  body.rtm-clone-topbar #site-navigation #primary-menu > li > .rtm-balanced-submenu > li {
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  body.rtm-clone-topbar #site-navigation #primary-menu > li > .rtm-balanced-submenu.rtm-balanced-ready > li {
    grid-column: var(--rtm-menu-column);
    grid-row: 1;
    margin-block-start: var(--rtm-menu-offset);
  }

  body.rtm-clone-topbar #site-navigation #primary-menu > .rtm-materials-megamenu > .sub-menu {
    padding-block: 21px 39px;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > li {
    min-width: 0;
    max-width: none;
    border-bottom: 0;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > li > a {
    width: 100%;
    padding: 4px 0;
    border-bottom: 1px solid #ffffff75;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > li > .sub-menu {
    display: block !important;
    margin: 3px 0 0;
    padding: 0 0 0 clamp(15px, 1.65vw, 34px);
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .sub-menu > li {
    margin: 0;
    border-bottom: 0;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .sub-menu a {
    width: 100%;
    padding: 5px 0;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .dropdown-nav-toggle,
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .dropdown-nav-special-toggle {
    display: none;
  }

  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu:is(:hover, :focus-within) > a {
    color: #ff7547;
  }
}

@media (min-width: 1025px) {
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > .menu-item-has-children { position: relative; }
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > .menu-item-has-children > a { padding-inline-end: 36px; }
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .dropdown-nav-special-toggle {
    display: flex; position: absolute; inset: 0 0 auto auto; width: 32px; height: 32px; align-items: center; justify-content: center;
  }
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu > .sub-menu > li.rtm-group-closed > .sub-menu { display: none !important; }
}

@media (min-width: 1025px) {
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .dropdown-nav-special-toggle {
    pointer-events: auto; z-index: 2; color: inherit; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0;
  }
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu .dropdown-nav-special-toggle::after {
    content: ''; display: inline-block; width: 7px; height: 7px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  }
  body.rtm-clone-topbar #site-navigation .rtm-materials-megamenu .sub-menu button[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }
}
.left-list-product-categories .have-child-element { position: relative; }
.left-list-product-categories .have-child-element > a { padding-right: 28px; }
.left-list-product-categories .have-child-element > a::after { display: none; }
.left-list-product-categories .rtm-category-toggle {
  position:absolute; inset:0 0 auto auto; display:grid; place-items:center;
  width:26px; height:23px; padding:0; border:0; background:transparent; color:#183767;
}
.left-list-product-categories .rtm-category-toggle::after { content:'⌄'; }
.left-list-product-categories .active > .rtm-category-toggle { transform:rotate(180deg); }
.left-list-product-categories .link-matches > .rtm-category-toggle { color:white; }


/* Мобильная шапка Home 428. Поиск остаётся в штатной панели Kadence. */
@media (max-width: 1024px) {
  body.rtm-clone-topbar.rtm-clone-topbar-ready #mobile-header {
    --rtm-bar-blue: #264796;
    .site-top-header-wrap, .site-top-header-wrap > .site-header-row-container-inner {
      background: var(--rtm-bar-blue);
    }
    .site-top-header-wrap .site-container { padding-inline: 0 22px; }
    .site-top-header-inner-wrap {
      position: relative;
      display: grid;
      grid-template: "toggle logo contacts" 46px / 48px 36px minmax(0, 1fr);
      align-items: center;
      gap: 9px;
      min-height: 46px;
      padding: 0;
    }
    [data-section="title_tagline"] { grid-area: logo; }
    .custom-logo {
      content: url("/wp-content/uploads/2023/08/logo-rtm-white-without-text-180x220.png");
      width: 28px;
      height: 35px;
    }
    [data-section="kadence_customizer_mobile_html"] {
      grid-area: contacts;
      justify-self: end;
      align-self: center;
    }
    .custom-header-mobile-contact-wrap { display: grid; gap: 1px; text-align: right; }
    .custom-header-mobile-contact-wrap a {
      display: block;
      margin: 0;
      padding: 0;
      color: #fff;
      font: 400 12px/1.5 'RTM Clone Topbar', Arial, sans-serif !important;
      text-decoration: none;
    }
    .rtm-clone-mobile-search { display: none; }
    [data-section="kadence_customizer_mobile_trigger"] {
      grid-area: toggle;
      z-index: 2;
      align-self: end;
      transform: translateY(23px);
    }
    #mobile-toggle {
      display: grid;
      place-items: center start;
      width: 54px;
      height: 58px;
      padding-left: 7px;
      background: #5175bd;
      color: white;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }
    #mobile-toggle:focus-visible { background: #143373; }
    #mobile-toggle::before, #mobile-toggle::after { content: none; }
    #mobile-toggle svg { display: block; width: 18px; height: 18px; }
  }

  /* Голубая панель и синий угол повторяют экраны разделов Дианы. */
  body.rtm-clone-topbar #mobile-drawer {
    .drawer-inner {
      width: 100%;
      color: white;
      --rtm-menu-corner: clamp(120px, 40vw, 185px);
      background:
        linear-gradient(135deg, #22bae2 50%, transparent 50%) bottom right / var(--rtm-menu-corner) var(--rtm-menu-corner) no-repeat,
        linear-gradient(45deg, #264796 50%, #6385d6 50%) bottom right / var(--rtm-menu-corner) var(--rtm-menu-corner) no-repeat,
        #22bae2;
      transition: none;
    }
    .drawer-header {
      flex: none;
      padding: 12px 15px 0;
      min-height: 56px;
      justify-content: flex-start;
      border: 0;
    }
    .drawer-header::before { content: none; }
    .drawer-content { padding: 23px 22px 48px; min-height: 0; height: auto; gap: 22px; }
    .menu-toggle-close { margin: 0; }
    [data-section="kadence_customizer_mobile_secondary_navigation"] { order: -1; width: 100%; }
    [data-section="kadence_customizer_header_mobile_html2"]:has(.mobile-drawer-triangle:only-child) { display: none; }
    &.rtm-mobile-inside .drawer-content > :not(.site-header-item-mobile-navigation) { display: none; }
  }
  body.rtm-clone-topbar #mobile-secondary-site-navigation {
    #mobile-secondary-menu li { border: 0; }
    #mobile-secondary-menu a {
      display: flex;
      align-items: center;
      min-height: 44px;
      padding: 5px 0;
      font: 400 17px/1.35 'RTM Clone Topbar', Arial, sans-serif;
      border: 0;
    }
    #mobile-secondary-menu .drawer-sub-toggle {
      display: grid;
      place-items: center;
      align-self: center;
      width: 44px;
      min-height: 44px;
      min-width: 44px;
      flex: 0 0 44px;
      margin: 4px 0 4px 12px;
      padding: 0;
      border-radius: 8px;
      background: #264796;
      color: #fff;
    }
    #mobile-secondary-menu .drawer-sub-toggle:is(:hover, :focus-visible) {
      background: #17356f;
    }
    #mobile-secondary-menu .drawer-sub-toggle svg {
      transform: rotate(-90deg);
    }
    @media (prefers-reduced-motion: no-preference) {
      #mobile-secondary-menu .drawer-sub-toggle svg {
        transition: transform 180ms ease-out;
      }
    }
    #mobile-secondary-menu .sub-menu { margin: 0; padding: 0; }
    #mobile-secondary-menu .sub-menu a { font-size: 16px; }
    /* Kadence раскрывает предков текущей страницы. На телефоне уровнем управляет посетитель. */
    #mobile-secondary-menu.rtm-mobile-levels li:not(.rtm-mobile-branch) > ul.sub-menu { display: none !important; }
    .rtm-mobile-path > li:not(.rtm-mobile-branch),
    .rtm-mobile-branch:not(.rtm-mobile-current) > .drawer-nav-drop-wrap { display: none; }
    #mobile-secondary-menu .rtm-mobile-current > .drawer-nav-drop-wrap > .drawer-sub-toggle svg {
      transform: rotate(90deg);
    }
    .rtm-mobile-branch > ul.sub-menu { display: block !important; visibility: visible; height: auto; }
    #mobile-secondary-menu .rtm-mobile-current > .drawer-nav-drop-wrap > a {
      font-weight: 700;
      font-size: 19px;
      margin-bottom: 6px;
    }
  }
}

/* При входе администратора служебные значки помещаются над кнопкой меню. */
@media (max-width: 440px) {
  body.rtm-clone-topbar #wpadminbar #wp-admin-bar-root-default {
    display: flex;
    width: calc(100% - 52px);
  }
  body.rtm-clone-topbar #wpadminbar #wp-admin-bar-root-default > li { min-width: 0; }
  body.rtm-clone-topbar #wpadminbar #wp-admin-bar-root-default > li > .ab-item {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
}