/* Modern desktop header/menu recovered from the accepted September design.
   Current native logo, search, favorites, cart and contact nodes stay in place. */
@media (min-width:1200px) {
  html[data-md-modern-menu="20261106"] { --mm-red:#ec1535; --mm-text:#16191e; --mm-muted:#68737e; --mm-line:#e0e5eb; }
  html[data-md-modern-menu="20261106"] .header-bg {
    position:sticky !important; top:0 !important; z-index:1000 !important;
    background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
    border-bottom:1px solid #e9edf1; box-shadow:0 2px 12px #16202e0a;
  }
  html[data-md-modern-menu="20261106"] .container.header { box-shadow:none !important; padding-block:0 !important; }
  html[data-md-modern-menu="20261106"] .header-bg .nav {
    position:relative; display:flex !important; align-items:center; justify-content:space-between;
    gap:20px; min-height:34px; height:auto !important; padding:0 !important; margin:0 !important;
    border-bottom:1px solid #edf0f3; background:transparent;
  }
  html[data-md-modern-menu="20261106"] .header-bg .nav::before,
  html[data-md-modern-menu="20261106"] .header-bg .nav::after { display:none !important; }
  html[data-md-modern-menu="20261106"] .top-menu-show {
    display:flex !important; align-items:center; gap:22px; padding:0 !important; margin:0 !important;
    float:none !important; width:auto !important; min-width:0; font-size:12px; line-height:1.4;
  }
  html[data-md-modern-menu="20261106"] .top-menu-show a { color:#535d67; white-space:nowrap; margin:0 !important; padding:8px 0 !important; font:inherit; text-decoration:none; }
  html[data-md-modern-menu="20261106"] .top-menu-show a:hover { color:var(--mm-red); }
  html[data-md-modern-menu="20261106"] .top-menu-show :is(#katalog,#konstruktor-kuxon) { display:none !important; }
  html[data-md-modern-menu="20261106"] .mm-contacts-button {
    display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:4px 0 4px 12px;
    border:0; background:none; color:#434c56; font-family:inherit; font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap; cursor:pointer;
  }
  html[data-md-modern-menu="20261106"] .mm-contacts-button::before { content:'☎'; font-size:16px; color:#727d88; }
  html[data-md-modern-menu="20261106"] .mm-contacts-button::after { content:'⌄'; font-size:16px; }
  html[data-md-modern-menu="20261106"] .nav:not(.mm-contacts-open) > .top-contacts-nav { display:none !important; }
  html[data-md-modern-menu="20261106"] .nav.mm-contacts-open > .top-contacts-nav {
    display:block !important; position:absolute !important; right:0; top:100%; z-index:1008;
    box-sizing:border-box; width:400px !important; max-width:calc(100vw - 64px); min-height:0;
    margin:0 !important; padding:22px !important; background:#fff; border:1px solid var(--mm-line);
    border-radius:12px; box-shadow:0 12px 36px #14202e26; text-align:left;
  }
  html[data-md-modern-menu="20261106"] .nav.mm-contacts-open > .top-contacts-nav > div { display:block !important; width:auto !important; float:none !important; margin:0 0 18px !important; font-size:14px; }
  html[data-md-modern-menu="20261106"] .nav.mm-contacts-open > .top-contacts-nav > div:last-child { margin-bottom:0 !important; }
  html[data-md-modern-menu="20261106"] .nav.mm-contacts-open .top-contacts-nav a { display:inline-block; margin:3px 0; color:#252d36; }
  html[data-md-modern-menu="20261106"] .nav.mm-contacts-open .top-contacts-nav strong { white-space:normal; }
  html[data-md-modern-menu="20261106"] .header-main {
    display:grid !important; grid-template-columns:240px 132px minmax(220px,1fr) 88px 88px;
    align-items:center; gap:22px; min-height:88px; height:auto !important;
    padding:0 !important; margin:0 !important; border:0; background:transparent;
  }
  html[data-md-modern-menu="20261106"] .header-main::before,
  html[data-md-modern-menu="20261106"] .header-main::after { display:none !important; }
  html[data-md-modern-menu="20261106"] .header-main .mobile-contacts { display:none !important; }
  html[data-md-modern-menu="20261106"] .header-logo { width:240px !important; min-width:0; float:none !important; margin:0 !important; padding:0 !important; }
  html[data-md-modern-menu="20261106"] .mm-catalog-button {
    display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px;
    box-sizing:border-box; border:0; border-radius:9px; background:var(--mm-red); color:#fff;
    padding:0 18px; font-size:15px; font-weight:700; line-height:1.3; cursor:pointer; white-space:nowrap;
  }
  html[data-md-modern-menu="20261106"] .mm-catalog-button:hover,
  html[data-md-modern-menu="20261106"] .mm-catalog-button[aria-expanded="true"] { background:#ce0f2d; }
  html[data-md-modern-menu="20261106"] .mm-icon { width:24px; height:24px; flex:0 0 24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  html[data-md-modern-menu="20261106"] .header-search { display:block !important; min-width:0; width:auto !important; margin:0 !important; padding:0 !important; float:none !important; }
  html[data-md-modern-menu="20261106"] .header-search .search { display:block !important; width:100% !important; margin:0 !important; }
  html[data-md-modern-menu="20261106"] .header-search #mse2_form {
    position:relative; display:flex !important; align-items:stretch; width:100% !important;
    height:46px !important; box-sizing:border-box; padding:0 !important; margin:0 !important;
    border:2px solid var(--mm-red); border-radius:9px; background:#fff !important;
  }
  html[data-md-modern-menu="20261106"] #mse2_form input.s1 {
    position:static !important; flex:1; min-width:0; width:calc(100% - 54px) !important;
    height:42px !important; box-sizing:border-box; padding:0 15px !important; margin:0 !important;
    background:transparent !important; border:0 !important; border-radius:7px 0 0 7px;
    color:var(--mm-text); font-size:15px; box-shadow:none !important;
  }
  html[data-md-modern-menu="20261106"] #mse2_form button.s2 {
    position:static !important; flex:0 0 54px; width:54px !important; height:42px !important;
    border:0 !important; border-radius:0 6px 6px 0; margin:0 !important;
    background-color:#fff !important; opacity:1; filter:none;
  }
  html[data-md-modern-menu="20261106"] #mse2_form:focus-within { outline:2px solid #a6001d; outline-offset:3px; }
  html[data-md-modern-menu="20261106"] .header-favorites { width:88px !important; float:none !important; margin:0 !important; padding:0 !important; }
  html[data-md-modern-menu="20261106"] .favorites-big { float:none !important; margin:0 !important; }
  html[data-md-modern-menu="20261106"] .favorites-link,
  html[data-md-modern-menu="20261106"] #msMiniCart a.basket {
    position:relative; display:flex !important; flex-direction:column; align-items:center; justify-content:center;
    gap:5px; min-height:46px; min-width:72px; color:#343d46; font-size:12px; text-decoration:none;
  }
  html[data-md-modern-menu="20261106"] .favorites-link::after { content:'Избранное'; position:static; font-size:12px; }
  html[data-md-modern-menu="20261106"] .favorites-link :is(img,svg),
  html[data-md-modern-menu="20261106"] #msMiniCart a.basket img { width:26px !important; height:26px !important; margin:0 !important; }
  html[data-md-modern-menu="20261106"] .favorite-num,
  html[data-md-modern-menu="20261106"] #msMiniCart .ms2_total_count {
    position:absolute; top:-3px; right:14px; min-width:17px; box-sizing:border-box; padding:0 4px;
    border-radius:12px; background:var(--mm-red); color:#fff; font-size:11px; line-height:18px;
  }
  html[data-md-modern-menu="20261106"] #msMiniCart { width:88px !important; margin:0 !important; float:none !important; }
  html[data-md-modern-menu="20261106"] #msMiniCart > .empty { display:none !important; }
  html[data-md-modern-menu="20261106"] #msMiniCart > .not_empty { display:block !important; }
  html[data-md-modern-menu="20261106"] #msMiniCart a.basket::after { content:'Корзина'; font-size:12px; }
  html[data-md-modern-menu="20261106"] .header-menu { display:none !important; }
  html[data-md-modern-menu="20261106"] .mm-shell { position:relative; clear:both; min-width:0; }
  html[data-md-modern-menu="20261106"] .mm-rail { display:flex; align-items:stretch; gap:18px; min-height:48px; border-top:1px solid #f0f2f5; }
  html[data-md-modern-menu="20261106"] .mm-rail-categories { display:flex; align-items:stretch; gap:25px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
  html[data-md-modern-menu="20261106"] .mm-rail-categories::-webkit-scrollbar { display:none; }
  html[data-md-modern-menu="20261106"] .mm-rail a { display:flex; align-items:center; gap:8px; flex:0 0 auto; color:#303945; text-decoration:none; font-size:13px; line-height:1.4; white-space:nowrap; border-bottom:2px solid transparent; }
  html[data-md-modern-menu="20261106"] .mm-rail .mm-icon { width:21px; height:21px; flex-basis:21px; }
  html[data-md-modern-menu="20261106"] .mm-rail a:hover,
  html[data-md-modern-menu="20261106"] .mm-rail a[aria-current="page"] { color:var(--mm-red); border-bottom-color:var(--mm-red); }
  html[data-md-modern-menu="20261106"] .mm-rail .mm-constructor-button { align-self:center; min-height:38px; padding:0 12px; border:1px solid #efb9c3; border-radius:7px; color:#bd1230; background:#fff4f6; font-weight:700; }
  html[data-md-modern-menu="20261106"] .mm-mega {
    position:absolute; top:0; left:0; right:0; max-width:1440px; margin-inline:auto; box-sizing:border-box;
    background:#fff; color:var(--mm-text); border:1px solid var(--mm-line); border-radius:12px;
    box-shadow:0 16px 36px #14202e26; overflow:hidden; z-index:1005;
  }
  html[data-md-modern-menu="20261106"] .mm-mega[hidden],
  html[data-md-modern-menu="20261106"] .mm-panel[hidden] { display:none !important; }
  html[data-md-modern-menu="20261106"] .mm-mega-top { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:54px; padding:4px 18px 4px 22px; box-sizing:border-box; border-bottom:1px solid var(--mm-line); }
  html[data-md-modern-menu="20261106"] .mm-mega-title { font-size:15px; font-weight:700; color:#29333e; text-decoration:none; }
  html[data-md-modern-menu="20261106"] .mm-mega-close { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; padding:0; border:0; border-radius:8px; background:#f3f5f7; color:#59616c; font-size:28px; font-weight:400; line-height:1; cursor:pointer; }
  html[data-md-modern-menu="20261106"] .mm-mega-close:hover { background:#ffecef; color:#bd1430; }
  html[data-md-modern-menu="20261106"] .mm-browser { display:grid; grid-template-columns:252px minmax(0,1fr); height:min(570px,calc(100vh - 190px)); height:min(570px,calc(100dvh - 190px)); min-height:0; min-width:0; }
  html[data-md-modern-menu="20261106"] .mm-branches { min-width:0; padding:18px 12px; background:#f6f7f9; border-right:1px solid var(--mm-line); overflow-y:auto; overscroll-behavior:contain; }
  html[data-md-modern-menu="20261106"] .mm-branch-label { padding:0 12px 12px; font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:#78818c; }
  html[data-md-modern-menu="20261106"] .mm-tabs { display:flex; flex-direction:column; gap:4px; }
  html[data-md-modern-menu="20261106"] .mm-tab { display:flex; align-items:center; gap:12px; min-height:50px; width:100%; box-sizing:border-box; padding:8px 12px; border:1px solid transparent; border-radius:8px; background:transparent; color:#28313c; text-align:left; font-size:15px; font-weight:600; line-height:1.3; cursor:pointer; }
  html[data-md-modern-menu="20261106"] .mm-tab-name { min-width:0; flex:1; overflow-wrap:anywhere; }
  html[data-md-modern-menu="20261106"] .mm-tab-arrow { color:#89919c; font-size:24px; font-weight:400; line-height:1; }
  html[data-md-modern-menu="20261106"] .mm-tab:hover { background:#eaeef2; }
  html[data-md-modern-menu="20261106"] .mm-tab[aria-selected="true"] { background:#fff; border-color:#f0c9d0; color:#c40d2b; box-shadow:0 2px 5px #23314206; font-weight:700; }
  html[data-md-modern-menu="20261106"] .mm-tab > :is(.mm-picture,.mm-icon) { width:28px; height:28px; flex:0 0 28px; object-fit:contain; }
  html[data-md-modern-menu="20261106"] .mm-panels { min-width:0; padding:26px 30px; overflow-y:auto; overscroll-behavior:contain; }
  html[data-md-modern-menu="20261106"] :is(.mm-branches,.mm-panels) { scrollbar-width:thin; scrollbar-color:#cdd3da transparent; }
  html[data-md-modern-menu="20261106"] .mm-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 22px; padding-bottom:20px; border-bottom:1px solid #edf0f3; }
  html[data-md-modern-menu="20261106"] .mm-heading h2 { margin:0 !important; font-size:26px !important; line-height:1.2 !important; font-weight:700; color:#171c24; overflow-wrap:anywhere; }
  html[data-md-modern-menu="20261106"] .mm-all { flex-shrink:0; display:inline-flex; align-items:center; min-height:40px; box-sizing:border-box; padding:4px 12px; border:1px solid #e0e5eb; border-radius:7px; color:#586574; text-decoration:none; font-size:13px; line-height:1.3; }
  html[data-md-modern-menu="20261106"] .mm-all:hover { color:var(--mm-red); border-color:#ebbbc4; }
  html[data-md-modern-menu="20261106"] .mm-subcategories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 22px; align-items:start; }
  html[data-md-modern-menu="20261106"] .mm-subcategory { min-width:0; }
  html[data-md-modern-menu="20261106"] .mm-category-link { display:flex; align-items:center; gap:12px; min-height:62px; padding:8px 10px; box-sizing:border-box; border-radius:8px; color:#303945; font-size:15px; font-weight:600; line-height:1.35; text-decoration:none; overflow-wrap:anywhere; }
  html[data-md-modern-menu="20261106"] .mm-category-link:hover { background:#f6f7f9; color:var(--mm-red); }
  html[data-md-modern-menu="20261106"] .mm-picture { display:block; width:44px; height:44px; flex:0 0 44px; object-fit:contain; object-position:center; }
  html[data-md-modern-menu="20261106"] .mm-category-link > .mm-icon { width:44px; height:44px; flex-basis:44px; }
  html[data-md-modern-menu="20261106"] .mm-children { padding:0 10px 10px 66px; }
  html[data-md-modern-menu="20261106"] .mm-children a { display:flex; align-items:center; min-height:44px; box-sizing:border-box; color:#68737e; font-size:13px; padding:5px 0; text-decoration:none; }
  html[data-md-modern-menu="20261106"] .mm-child-link { gap:8px; }
  html[data-md-modern-menu="20261106"] .mm-child-link .mm-picture { width:30px; height:30px; flex-basis:30px; }
  html[data-md-modern-menu="20261106"] :is(.mm-catalog-button,.mm-contacts-button,.mm-mega-close,.mm-tab,.mm-rail a,.mm-category-link,.mm-all,.mm-mega-title):focus-visible { outline:2px solid #a6001d; outline-offset:3px; }
}
@media (min-width:1200px) and (max-width:1439px) {
  html[data-md-modern-menu="20261106"] .header-main { grid-template-columns:240px 124px minmax(180px,1fr) 76px 76px; gap:16px; }
  html[data-md-modern-menu="20261106"] .top-menu-show { gap:16px; }
  html[data-md-modern-menu="20261106"] .mm-subcategories { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1200px) and (prefers-reduced-transparency:reduce) {
  html[data-md-modern-menu="20261106"] .header-bg { background:#fff; backdrop-filter:none; }
}
