/* Text catalogue dropdown: hover between roots, follow any category link. */
body.catalog-menu-open { overflow: hidden; }
body.catalog-menu-open .mp-header { z-index: 11; }
.cm-backdrop { position: fixed; inset: 0; z-index: 10; background: #14233c59; }
.cm-backdrop[hidden], .catalog-menu[hidden], .catalog-menu [hidden] { display: none !important; }
.catalog-menu {
  position: fixed;
  inset: var(--catalog-menu-top, 156px) 0 auto;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100vw - 48px));
  height: min(680px, calc(100vh - var(--catalog-menu-top, 156px) - 18px));
  height: min(680px, calc(100dvh - var(--catalog-menu-top, 156px) - 18px));
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-top: 2px solid #165dff;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: #172b4d;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 14px 35px #14233c26;
}
.catalog-menu *, .catalog-menu *::before, .catalog-menu *::after { box-sizing: border-box; }
.catalog-menu svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.catalog-menu button, .catalog-menu input { font-family: inherit; }
.catalog-menu button { border: 0; cursor: pointer; }
.catalog-menu a { color: inherit; text-decoration: none; }
.catalog-menu button:disabled { cursor: wait; opacity: .6; }
.catalog-menu a:focus-visible, .catalog-menu button:focus-visible { outline: 2px solid #165dff; outline-offset: 3px; }
.cm-header { display: grid; grid-template-columns: 180px minmax(0, 1fr) 32px; align-items: center; gap: 20px; flex-shrink: 0; padding: 14px 20px; }
.mp-site .cm-header h2 { margin: 0; color: #172b4d; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.cm-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 4px; background: transparent; color: #758299; }
.cm-close:hover { background: #edf3ff; color: #165dff; }
.cm-close svg { width: 22px; height: 22px; }
.cm-search { min-width: 0; margin: 0; }
.cm-search-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cm-search-controls { display: flex; align-items: center; gap: 12px; }
.cm-search-field { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; height: 36px; padding: 2px 2px 2px 10px; border: 1px solid #a6bff1; border-radius: 4px; background: #fff; }
.cm-search-field:focus-within { border-color: #165dff; box-shadow: 0 0 0 2px #165dff20; }
.cm-search-field > svg { width: 16px; height: 16px; color: #8a99af; }
.mp-site .cm-search-field input { flex: 1; width: 100%; min-width: 0; height: 30px; margin: 0; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: #172b4d; font-size: 14px; line-height: 1.4; box-shadow: none; }
.mp-site .cm-search-field input:focus, .mp-site .cm-search-field input:focus-visible { outline: none; box-shadow: none; }
.mp-search:focus-within { border-color: #165dff; box-shadow: 0 0 0 2px #165dff25; }
.mp-site .mp-search input:focus, .mp-site .mp-search input:focus-visible { outline: none; box-shadow: none; }
.cm-search-submit { align-self: stretch; flex-shrink: 0; padding: 3px 14px; border-radius: 2px; background: #edf3ff; color: #165dff; font-size: 13px; font-weight: 600; }
.cm-search-submit:hover { background: #165dff; color: #fff; }
.cm-search-clear { flex-shrink: 0; padding: 5px 0; background: transparent; color: #165dff; font-size: 13px; line-height: 1.5; }
.cm-search-clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); flex: 1; min-height: 0; border-top: 1px solid #e6ebf2; }
.cm-roots { min-width: 0; min-height: 0; padding: 8px 0; border-right: 1px solid #e0e7f1; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c0d0e8 transparent; background: #f7f9fc; }
.catalog-menu .cm-root { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 17px; border-left: 3px solid transparent; background: transparent; color: #344761; text-align: left; font-size: 14px; font-weight: 400; line-height: 1.4; }
.cm-root > span { min-width: 0; overflow-wrap: anywhere; }
.cm-root > svg { width: 12px; height: 12px; color: #94a2b6; }
.catalog-menu .cm-root:hover, .catalog-menu .cm-root.is-active { border-left-color: #165dff; background: #eaf1ff; color: #165dff; }
.cm-root:hover > svg, .cm-root.is-active > svg { color: #165dff; }
.cm-panel { min-width: 0; min-height: 0; padding: 19px 26px 24px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c0d0e8 transparent; background: #fff; }
.cm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.cm-toolbar:has(> [hidden]):has(> .cm-path:empty) { display: none; }
.cm-back { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 0; background: transparent; color: #165dff; font-size: 13px; font-weight: 400; line-height: 1.5; }
.cm-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-path { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; min-width: 0; color: #7b8a9f; font-size: 12px; line-height: 1.6; }
.cm-path button, .cm-path a { min-width: 0; padding: 2px 0; background: transparent; color: #617a9f; font-size: 12px; font-weight: 400; line-height: inherit; overflow-wrap: anywhere; text-align: left; }
.cm-path button:hover, .cm-path a:hover { color: #165dff; text-decoration: underline; text-underline-offset: 3px; }
.cm-path [aria-current] { color: #172b4d; }
.cm-panel-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 20px; }
.mp-site .cm-heading { min-width: 0; margin: 0; color: #172b4d; font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cm-heading:focus { outline: none; }
.catalog-menu .cm-products { color: #165dff; font-size: 13px; font-weight: 400; line-height: 1.5; }
.cm-products:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-status { margin: 0 0 17px; color: #7b8a9f; font-size: 13px; line-height: 1.6; }
.cm-status:empty { display: none; }
.cm-status.is-error, .cm-status.error, .cm-status[data-state='error'] { color: #b43535; }
.cm-grid { --cm-columns: 3; min-width: 0; display: grid; grid-template-columns: repeat(var(--cm-columns), minmax(0, 1fr)); gap: 0 28px; align-items: start; }
.cm-menu-column { min-width: 0; }
.cm-grid[aria-busy='true'] { opacity: .6; }
.cm-group { display: inline-block; width: 100%; margin: 0 0 23px; padding: 0; break-inside: avoid; }
.mp-site .cm-group-title { margin: 0 0 9px; color: #273d5e; font-size: 14px; font-weight: 650; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
.catalog-menu .cm-group-title > a:hover { color: #165dff; text-decoration: underline; text-underline-offset: 3px; }
.cm-group-links { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.cm-group-links > li { min-width: 0; margin: 0; padding: 0; }
.catalog-menu .cm-group-links a { display: inline-block; max-width: 100%; padding: 4px 0; color: #566b89; font-size: 13px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-menu .cm-group-links a:hover { color: #165dff; text-decoration: underline; text-underline-offset: 3px; }
.cm-search-result { display: inline-block; width: 100%; break-inside: avoid; margin-bottom: 18px; }
.catalog-menu a.cm-search-result { padding: 4px 0; }
.cm-result-path { display: block; margin-bottom: 5px; color: #8492a7; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cm-result-name { display: block; color: #304b73; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cm-search-result:hover .cm-result-name { color: #165dff; text-decoration: underline; text-underline-offset: 3px; }
.cm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cm-actions:empty { display: none; }
.cm-more { min-height: 32px; padding: 5px 0; background: transparent; color: #165dff; font-size: 13px; font-weight: 400; }
.cm-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; flex-shrink: 0; min-height: 47px; padding: 12px 20px; border-top: 1px solid #e4eaf2; background: #fff; }
.catalog-menu .cm-footer > a { display: inline-flex; align-items: center; gap: 8px; color: #165dff; font-size: 13px; font-weight: 400; line-height: 1.5; }
.cm-footer > a > svg { width: 15px; height: 15px; }
.cm-footer > a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
 .cm-header { grid-template-columns: 170px minmax(0, 1fr) 32px; gap: 16px; }
 .cm-layout { grid-template-columns: 240px minmax(0, 1fr); }
 .cm-panel { padding-inline: 22px; }
 .cm-grid { --cm-columns: 2; gap: 0 25px; }
}
@media (min-width: 751px) and (max-width: 899px) {
 .catalog-menu { width: calc(100vw - 36px); }
 .cm-layout { grid-template-columns: 215px minmax(0, 1fr); }
 .cm-grid { --cm-columns: 1; }
 .cm-header { grid-template-columns: 155px minmax(0, 1fr) 30px; gap: 12px; padding-inline: 16px; }
 .mp-site .cm-header h2 { font-size: 16px; }
 .cm-panel { padding-inline: 18px; }
}
@media (max-width: 750px) {
 .catalog-menu { inset: var(--catalog-menu-top, 142px) 0 0; width: 100%; height: calc(100vh - var(--catalog-menu-top, 142px)); height: calc(100dvh - var(--catalog-menu-top, 142px)); margin: 0; border: 0; border-top: 1px solid #dce4ef; border-radius: 0; }
 .cm-header { grid-template-columns: minmax(0, 1fr) 30px; gap: 9px 14px; padding: 11px 16px 13px; }
 .mp-site .cm-header h2 { font-size: 18px; }
 .cm-close { grid-column: 2; grid-row: 1; width: 30px; height: 30px; }
 .cm-search { grid-column: 1 / -1; grid-row: 2; }
 .cm-search-controls { gap: 10px; }
 .cm-search-field { height: 38px; padding-left: 9px; }
 .mp-site .cm-search-field input { font-size: 16px; }
 .cm-search-submit { padding-inline: 12px; font-size: 13px; }
 .cm-search-clear { font-size: 12px; }
 .cm-layout { display: flex; flex-direction: column; }
 .cm-roots { flex: 1; border-right: 0; padding: 6px 0; }
 .catalog-menu .cm-root { min-height: 43px; padding: 11px 17px; font-size: 15px; }
 .cm-root > svg { width: 14px; height: 14px; }
 .cm-panel { display: none; flex: 1; padding: 12px 18px 22px; }
 .catalog-menu.is-browsing .cm-roots { display: none; }
 .catalog-menu.is-browsing .cm-panel { display: block; }
 .cm-toolbar { margin-bottom: 12px; }
 .cm-back { min-height: 30px; font-size: 13px; }
 .cm-panel-heading { gap: 8px 12px; margin-bottom: 18px; }
 .mp-site .cm-heading { font-size: 20px; }
 .cm-grid { --cm-columns: 1; }
 .cm-group { margin-bottom: 22px; }
 .mp-site .cm-group-title { font-size: 15px; margin-bottom: 7px; }
 .catalog-menu .cm-group-links a { font-size: 14px; padding-block: 6px; }
 .cm-footer { min-height: 48px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-menu *, .catalog-menu *::before, .catalog-menu *::after { scroll-behavior: auto!important; transition: none!important; } }
