/* AUTO-LAPTI GLOBAL CATALOG NAV v2 BEGIN */
@media (min-width:992px){
  header .main-menu{margin:6px 0 4px!important}
  header .main-menu.set-before:before{display:none!important}
  header .main-menu .menu-wrapper{padding-left:15px!important;padding-right:15px!important}
  header #menu.menu2{min-height:52px!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
  header #menu.menu2 .menu__collapse{
    display:grid!important;grid-template-columns:minmax(0,1.02fr) minmax(0,1.02fr) minmax(0,1.42fr) minmax(0,1.18fr) minmax(0,1.05fr);
    gap:9px!important;min-height:52px!important;padding:0!important;overflow:visible!important;background:transparent!important;
  }
  header #menu.menu2 .menu__level-1-li{
    display:block!important;min-width:0!important;min-height:52px!important;margin:0!important;border:1px solid #dbe8e6!important;
    border-radius:14px!important;background:#fff!important;box-shadow:0 4px 15px rgba(28,67,72,.045)!important;
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease!important;
  }
  header #menu.menu2 .menu__level-1-li:first-child,
  header #menu.menu2 .menu__level-1-li:nth-child(2){border-color:#cfe3e0!important;background:linear-gradient(180deg,#fff 0%,#fbfdfd 100%)!important}
  header #menu.menu2 .menu__level-1-li:hover,
  header #menu.menu2 .menu__level-1-li.open{transform:translateY(-2px);border-color:#acd0cc!important;box-shadow:0 12px 26px rgba(28,67,72,.095)!important}
  header #menu.menu2 .menu__level-1-li.has-children:after{display:none!important}
  header #menu.menu2 .menu__level-1-a{
    position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;
    width:100%!important;height:52px!important;min-height:52px!important;
    padding:3px 30px 3px 44px!important;overflow:hidden!important;color:#26383d!important;font-size:13px!important;font-weight:750!important;
    line-height:1.14!important;text-align:left!important;white-space:normal!important;text-decoration:none!important;
  }
  header #menu.menu2 .menu__level-1-a:hover{color:#174f50!important}
  header #menu.menu2 .menu__level-1-a:after{
    display:block;margin-top:2px;overflow:hidden;color:#829194;font-size:9px;font-weight:500;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;
  }
  header #menu.menu2 .menu__level-1-li:nth-child(1) .menu__level-1-a:after{content:'Летние · Зимние · Всесезонные'}
  header #menu.menu2 .menu__level-1-li:nth-child(2) .menu__level-1-a:after{content:'Литые · Стальные · Подбор'}
  header #menu.menu2 .menu__level-1-li:nth-child(3) .menu__level-1-a:after{content:'Шины · Диски · Спецтехника'}
  header #menu.menu2 .menu__level-1-li:nth-child(4) .menu__level-1-a:after{content:'Мотошины · ATV'}
  header #menu.menu2 .menu__level-1-li:nth-child(5) .menu__level-1-a:after{content:'Крепёж · Кольца · Датчики'}
  header #menu.menu2 .menu__level-1-li.has-children .menu__level-1-a:before{
    content:'\f107';position:absolute;right:14px;top:50%;margin-top:-6px;color:#92a5a7;font-family:'Font Awesome 5 Free';font-size:10px;font-weight:900;line-height:12px;
    transition:transform .16s ease;
  }
  header #menu.menu2 .menu__level-1-li.open .menu__level-1-a:before{transform:rotate(180deg)}
  header #menu.menu2 .menu__level-1-icon{
    position:absolute!important;left:13px!important;top:50%!important;width:21px!important;margin:0!important;transform:translateY(-50%)!important;
    color:#2b7a78!important;font-size:16px!important;text-align:center!important;
  }
  header #menu.menu2 .menu__level-1-img{position:absolute!important;left:13px!important;top:50%!important;width:24px!important;max-height:24px!important;transform:translateY(-50%)!important;object-fit:contain!important}
  header #menu.menu2 .menu__chevron-level-1{display:none!important}
  header #menu.menu2 .menu__level-2{
    top:calc(100% + 10px)!important;left:0!important;width:100%!important;max-height:64vh!important;padding:14px!important;
    overflow:auto!important;border:1px solid #d9e6e4!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 18px 42px rgba(19,51,56,.15)!important;
  }
  header #menu.menu2 .menu__level-2.open{display:flex!important;gap:10px!important;align-items:stretch!important;flex-wrap:wrap!important}
  header #menu.menu2 .menu__level-2-wrap{display:flex!important;flex:1 1 100%!important;gap:10px!important;align-items:stretch!important;flex-wrap:wrap!important}
  header #menu.menu2 .menu__banner{display:none!important}
  header #menu.menu2 .menu__level-2-ul{
    float:none!important;flex:1 1 190px!important;width:auto!important;min-width:180px!important;max-width:none!important;margin:0!important;padding:0!important;
    border:1px solid #e1ecea!important;border-radius:12px!important;background:#f8fbfa!important;
  }
  header #menu.menu2 .menu__level-2-a{
    display:flex!important;align-items:center!important;min-height:50px!important;margin:0!important;padding:10px 14px!important;
    color:#33494e!important;font-size:13px!important;font-weight:700!important;line-height:1.25!important;text-decoration:none!important;
  }
  header #menu.menu2 .menu__level-2-a:hover{color:#205f5d!important;background:#f1f8f7!important;border-radius:12px!important}
  header #menu.menu2 .menu__level-2-img{border-radius:10px!important}
}

@media (min-width:992px) and (max-width:1199px){
  header #menu.menu2 .menu__collapse{gap:7px!important;min-height:50px!important}
  header #menu.menu2 .menu__level-1-li{min-height:50px!important}
  header #menu.menu2 .menu__level-1-a{height:50px!important;min-height:50px!important;padding:4px 24px 4px 39px!important;font-size:11.8px!important}
  header #menu.menu2 .menu__level-1-icon{left:10px!important;font-size:15px!important}
  header #menu.menu2 .menu__level-1-a:after{font-size:8.5px!important;margin-top:2px!important}
  header #menu.menu2 .menu__level-1-li.has-children .menu__level-1-a:before{right:9px!important}
}

@media (max-width:991px){
  header .main-menu{margin:0 0 10px!important}
  header .menu-open{
    display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;margin:0 12px 0 10px!important;padding:0 14px!important;
    border:1px solid #cfe3e0!important;border-radius:11px!important;background:#fff!important;color:#205f5d!important;font-weight:700!important;box-shadow:0 4px 12px rgba(31,81,84,.055)!important;
  }
  header .menu-open__title{display:inline!important;margin-left:6px!important;font-size:12.5px!important}
  header .menu-wrapper{background:#f5f8f8!important}
  header #menu .menu__header{position:sticky!important;top:0!important;z-index:4!important;height:56px!important;padding:0 16px!important;border-bottom:1px solid #dde8e7!important;background:#fff!important;color:#26383d!important}
  header #menu .menu__header-title{font-size:16px!important;font-weight:750!important}
  header #menu .menu__collapse{padding:7px 0 18px!important;background:#f5f8f8!important}
  header #menu .menu__level-1-li{
    position:relative!important;display:block!important;margin:8px 12px!important;border:1px solid #dbe8e6!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 4px 15px rgba(31,70,75,.045)!important;
  }
  header #menu .menu__level-1-a{
    position:relative!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:64px!important;padding:8px 43px 8px 49px!important;color:#26383d!important;
    font-size:14px!important;font-weight:750!important;line-height:1.18!important;white-space:normal!important;text-decoration:none!important;
  }
  header #menu .menu__level-1-a:after{display:block;margin-top:4px;color:#879598;font-size:9.5px;font-weight:500;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  header #menu .menu__level-1-li:nth-child(1) .menu__level-1-a:after{content:'Летние · Зимние · Всесезонные'}
  header #menu .menu__level-1-li:nth-child(2) .menu__level-1-a:after{content:'Литые · Стальные · Подбор'}
  header #menu .menu__level-1-li:nth-child(3) .menu__level-1-a:after{content:'Шины · Диски · Спецтехника'}
  header #menu .menu__level-1-li:nth-child(4) .menu__level-1-a:after{content:'Мотошины · ATV'}
  header #menu .menu__level-1-li:nth-child(5) .menu__level-1-a:after{content:'Крепёж · Кольца · Датчики'}
  header #menu .menu__level-1-icon{position:absolute!important;left:15px!important;top:50%!important;width:23px!important;margin:0!important;transform:translateY(-50%)!important;color:#2b7a78!important;font-size:17px!important;text-align:center!important}
  header #menu .menu__level-1-img{position:absolute!important;left:14px!important;top:50%!important;width:25px!important;max-height:25px!important;transform:translateY(-50%)!important;object-fit:contain!important}
  header #menu .menu__chevron{top:50%!important;right:13px!important;color:#789093!important;transform:translateY(-50%)!important}
  header #menu .menu__level-2,
  header #menu .menu__level-3{background:#f5f8f8!important;padding:7px 12px 18px!important}
  header #menu .menu__level-2-ul{float:none!important;width:100%!important;margin:8px 0!important;padding:0!important;border:1px solid #dfeae8!important;border-radius:12px!important;background:#fff!important}
  header #menu .menu__level-2-a{min-height:50px!important;padding:10px 42px 10px 14px!important;border-top:0!important;color:#344a4f!important;font-weight:700!important}
  header #menu .menu__back{margin:0!important;border:0!important;border-radius:11px!important;background:#fff!important;color:#33494e!important}
}
/* AUTO-LAPTI GLOBAL CATALOG NAV v2 END */

/* AUTO-LAPTI NAV DROPDOWN POSITION v4 BEGIN */
@media (min-width:992px){
  header #menu.menu2 .menu__level-1-li{position:relative!important}
  header #menu.menu2 .menu__level-1-li:hover,
  header #menu.menu2 .menu__level-1-li.open{z-index:80!important}

  header #menu.menu2 .menu__level-1-li > .menu__level-2{
    top:calc(100% + 8px)!important;
    left:0!important;
    right:auto!important;
    width:520px!important;
    max-width:calc(100vw - 30px)!important;
    padding:10px!important;
    overflow:visible!important;
  }
  /* Invisible hover bridge across the visual gap between card and dropdown. */
  header #menu.menu2 .menu__level-1-li > .menu__level-2:before{
    content:''!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:-10px!important;
    height:10px!important;
    background:transparent!important;
    pointer-events:auto!important;
  }

  /* Tires: 3 compact items in one row */
  header #menu.menu2 .menu__level-1-li:nth-child(1) > .menu__level-2{width:520px!important}
  /* Truck: 2 items */
  header #menu.menu2 .menu__level-1-li:nth-child(3) > .menu__level-2{width:380px!important}
  /* Moto: 1 item */
  header #menu.menu2 .menu__level-1-li:nth-child(4) > .menu__level-2{width:220px!important}
  /* Accessories: wide grid aligned to right edge so it stays on screen */
  header #menu.menu2 .menu__level-1-li:nth-child(5) > .menu__level-2{
    left:auto!important;
    right:0!important;
    width:760px!important;
  }

  header #menu.menu2 .menu__level-2.open{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  header #menu.menu2 .menu__level-2-wrap{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
    width:100%!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  header #menu.menu2 .menu__level-1-li:nth-child(5) > .menu__level-2.open{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }

  header #menu.menu2 .menu__level-2-ul{
    float:none!important;
    flex:none!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border-radius:10px!important;
  }
  header #menu.menu2 .menu__level-2-a{
    display:flex!important;
    align-items:center!important;
    min-height:38px!important;
    height:100%!important;
    margin:0!important;
    padding:7px 10px!important;
    font-size:12px!important;
    line-height:1.2!important;
    border-radius:10px!important;
  }

  /* A regular dropdown should not dim the whole shop page */
  main.blur:after,
  footer.blur:after{display:none!important;content:none!important;opacity:0!important;background:transparent!important}
}

@media (min-width:992px) and (max-width:1199px){
  header #menu.menu2 .menu__level-1-li:nth-child(5) > .menu__level-2{width:680px!important}
  header #menu.menu2 .menu__level-1-li:nth-child(5) > .menu__level-2.open{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
/* AUTO-LAPTI NAV DROPDOWN POSITION v4 END */
