/* MAGELLAN_BRANDS_V081_START */
body.mg-brand-sheet-open{overflow:hidden!important}
#mg-brands-prototype{font-family:inherit;color:#222;margin:28px 0 50px}
#mg-brands-prototype *{box-sizing:border-box}
.mg-brands-head{margin-bottom:24px}
.mg-brands-lead{max-width:720px;margin:0 0 18px;font-size:15px;line-height:1.55;color:#666}
.mg-brands-search{position:relative;max-width:620px}
.mg-brands-search input{width:100%;height:48px;padding:0 46px 0 16px;border:1px solid #e3e3e3;border-radius:12px;background:#fff;color:#222;font:inherit;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s}
.mg-brands-search input:focus{border-color:#cfcfcf;box-shadow:0 0 0 3px rgba(0,0,0,.025)}
.mg-brands-search svg{position:absolute;right:16px;top:50%;width:18px;height:18px;transform:translateY(-50%);opacity:.45;pointer-events:none}
.mg-brands-alpha{display:flex;gap:6px;margin-top:14px;padding-bottom:4px;overflow-x:auto;scrollbar-width:none}
.mg-brands-alpha::-webkit-scrollbar{display:none}
.mg-alpha{flex:0 0 auto;min-width:34px;height:34px;padding:0 9px;border:1px solid #e7e7e7;border-radius:9px;background:#fff;color:#444;font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:.18s ease}
.mg-alpha:hover,.mg-alpha.is-active{border-color:#222;color:#222}
.mg-brands-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:28px;align-items:start}
.mg-brands-list{min-width:0}
.mg-brand-group{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;padding:22px 0;border-top:1px solid #ececec;scroll-margin-top:100px}
.mg-brand-group:last-child{border-bottom:1px solid #ececec}
.mg-brand-letter{font-size:26px;line-height:1;font-weight:700;color:#1f1f1f}
.mg-brand-count{display:none}
.mg-brand-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 20px}
.mg-brand-btn{display:flex;align-items:center;justify-content:space-between;min-width:0;height:38px;padding:0 10px;margin:0 -10px;border:0;border-radius:8px;background:transparent;color:#333;font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:background .15s,color .15s}
.mg-brand-btn:hover{background:#f7f7f7;color:#111}
.mg-brand-btn.is-active{background:#fff3f3;color:#d8171e;font-weight:600}
.mg-brand-btn span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-brand-arrow{margin-left:10px;opacity:.35;font-size:17px}
.mg-brand-panel{position:sticky;top:110px;min-height:420px;padding:22px;border:1px solid #e8e8e8;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.045);overflow:hidden}
.mg-panel-empty{display:flex;min-height:370px;align-items:center;justify-content:center;padding:30px;color:#888;font-size:14px;line-height:1.5;text-align:center}
.mg-panel-title{margin:0;font-size:22px;line-height:1.2;font-weight:700;color:#222}
.mg-panel-meta{margin-top:5px;color:#999;font-size:12px}
.mg-panel-label{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px;font-size:13px;font-weight:600}
.mg-brand-loaded-count{color:#aaa;font-size:10px;font-weight:400}
.mg-panel-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:22px;padding:0 16px;border-radius:11px;background:#ed1c24;color:#fff!important;font-size:13px;font-weight:600;text-decoration:none!important;transition:opacity .18s}
.mg-panel-primary:hover{opacity:.92}
.mg-panel-secondary{display:inline-flex;margin-top:14px;color:#555!important;font-size:13px;text-decoration:none!important}
.mg-panel-secondary:hover{color:#ed1c24!important}
.mg-brand-no-results{padding:40px 0;color:#888;font-size:14px}
.mg-real-loading{display:flex;min-height:260px;align-items:center;justify-content:center;color:#999;font-size:13px}
.mg-real-loading:before{content:"";width:17px;height:17px;margin-right:9px;border:2px solid #e4e4e4;border-top-color:#ed1c24;border-radius:50%;animation:mgBrandSpin .7s linear infinite}
@keyframes mgBrandSpin{to{transform:rotate(360deg)}}
.mg-real-empty{display:flex;min-height:230px;align-items:center;justify-content:center;color:#888;font-size:13px;line-height:1.5;text-align:center}
.mg-real-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mg-real-product{display:block;min-width:0;color:#222!important;text-decoration:none!important}
.mg-real-product-image{position:relative;width:100%;aspect-ratio:.78;overflow:hidden;border-radius:10px;background:#f6f6f6}
.mg-real-product-image img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.mg-real-product-image.is-empty:after{content:"Нет фото";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#bbb;font-size:11px}
.mg-real-product-name{display:-webkit-box;margin-top:9px;overflow:hidden;color:#444;font-size:11px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mg-real-product-price{margin-top:6px;color:#202020;font-size:13px;line-height:1.2;font-weight:700}
.mg-real-product-old{margin-top:3px;color:#aaa;font-size:10px;line-height:1.2;text-decoration:line-through}
#mg-brand-sheet{display:none}
@media(max-width:767px){
 #mg-brands-prototype{margin-top:18px}
 .mg-brands-head{margin-bottom:12px}
 .mg-brands-lead{margin-bottom:14px;font-size:13px;line-height:1.45}
 .mg-brands-search input{height:46px;border-radius:11px}
 .mg-brands-alpha{margin-left:-12px;margin-right:-12px;padding:0 12px 6px}
 .mg-brands-layout{display:block}
 .mg-brand-panel{display:none}
 .mg-brand-group{display:block;padding:18px 0}
 .mg-brand-letter{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:22px}
 .mg-brand-count{display:inline;font-size:11px;font-weight:500;color:#aaa}
 .mg-brand-items{display:block}
 .mg-brand-btn{width:100%;height:43px;margin:0;padding:0;border-radius:0;border-bottom:1px solid #f1f1f1;font-size:14px}
 .mg-brand-btn:hover,.mg-brand-btn.is-active{background:transparent}
 .mg-brand-btn.is-active{color:#ed1c24}
 .mg-brand-arrow{display:block}
 #mg-brand-sheet{position:fixed;inset:0;display:flex;align-items:flex-end;z-index:2147483647!important;visibility:hidden;pointer-events:none}
 #mg-brand-sheet.is-open{visibility:visible;pointer-events:auto}
 .mg-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.32);opacity:0;transition:opacity .22s}
 #mg-brand-sheet.is-open .mg-sheet-backdrop{opacity:1}
 .mg-sheet-card{position:relative;width:100%;max-height:72vh;padding-bottom:env(safe-area-inset-bottom,0px);border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -10px 40px rgba(0,0,0,.15);transform:translateY(100%);transition:transform .24s ease;overflow:hidden}
 #mg-brand-sheet.is-open .mg-sheet-card{transform:translateY(0)}
 .mg-sheet-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;min-height:64px;padding:11px 12px 10px 16px;border-bottom:1px solid #ededed;background:#fff}
 .mg-sheet-title{min-width:0;flex:1}
 .mg-sheet-title strong{display:block;overflow:hidden;font-size:17px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
 .mg-sheet-title small{display:block;margin-top:3px;color:#999;font-size:11px}
 .mg-sheet-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:10px;border:0;border-radius:50%;background:#f5f5f5;color:#333;font-size:23px;line-height:1;cursor:pointer}
 .mg-sheet-body{max-height:calc(72vh - 64px);padding:16px calc(16px) calc(18px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain}
 .mg-sheet-label{margin:0 0 12px;font-size:13px;font-weight:600}
 .mg-sheet-products.mg-real-products{display:flex;gap:10px;margin-right:-16px;padding-right:16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
 .mg-sheet-products.mg-real-products::-webkit-scrollbar{display:none}
 .mg-sheet-products.mg-real-products .mg-real-product{flex:0 0 43%;scroll-snap-align:start}
 .mg-sheet-primary{display:flex;align-items:center;justify-content:space-between;min-height:46px;margin-top:18px;padding:0 15px;border-radius:11px;background:#ed1c24;color:#fff!important;font-size:13px;font-weight:600;text-decoration:none!important}
 .mg-sheet-secondary{display:block;padding:16px 2px 4px;color:#555!important;font-size:13px;text-decoration:none!important}
 body.mg-brand-sheet-open>jdiv,body.mg-brand-sheet-open #scrollToTop.scroll-to-top{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
/* MAGELLAN_BRANDS_V081_END */

/* MAGELLAN_BRANDS_V083_SSR_FIX_START */
#mg-brands-prototype[data-mg-brands="v082"] { visibility: visible; }
@media (max-width: 767px) {
  #mg-brand-sheet { z-index: 2147483647 !important; }
  body.mg-brand-sheet-open > jdiv,
  body.mg-brand-sheet-open #scrollToTop.scroll-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
/* MAGELLAN_BRANDS_V083_SSR_FIX_END */


/* MAGELLAN_BRANDS_V084_DESKTOP_RAIL_START */
@media (min-width:768px){
  .mg-brand-panel .mg-real-products{
    display:flex;
    gap:10px;
    margin-right:-22px;
    padding-right:22px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
  }

  .mg-brand-panel .mg-real-products::-webkit-scrollbar{
    display:none;
  }

  .mg-brand-panel .mg-real-product{
    flex:0 0 calc((100% - 20px)/3);
    scroll-snap-align:start;
  }
}
/* MAGELLAN_BRANDS_V084_DESKTOP_RAIL_END */


/* MAGELLAN_BRANDS_V085_DESKTOP_NAV_START */
@media (min-width:768px){
  .mg-panel-label{
    gap:12px;
  }

  .mg-panel-tools{
    display:flex;
    align-items:center;
    gap:10px;
  }

  .mg-rail-controls{
    display:flex;
    align-items:center;
    gap:5px;
  }

  .mg-rail-prev,
  .mg-rail-next{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    padding:0;
    border:1px solid #e4e4e4;
    border-radius:50%;
    background:#fff;
    color:#333;
    font:inherit;
    font-size:19px;
    line-height:1;
    cursor:pointer;
    transition:border-color .15s,background .15s,opacity .15s;
  }

  .mg-rail-prev:hover:not(:disabled),
  .mg-rail-next:hover:not(:disabled){
    border-color:#cfcfcf;
    background:#f7f7f7;
  }

  .mg-rail-prev:disabled,
  .mg-rail-next:disabled{
    opacity:.28;
    cursor:default;
  }

  .mg-brand-panel .mg-real-products{
    scroll-behavior:smooth;
  }
}
/* MAGELLAN_BRANDS_V085_DESKTOP_NAV_END */
