/* Nerjavey.ru | cookie notice and mobile catalog scrolling */
.nerjCookieBanner[hidden],.nerjCookieSettings[hidden]{display:none!important}
.nerjCookieBanner{position:fixed;z-index:900;left:16px;right:16px;bottom:20px;max-width:720px;margin:0 auto;display:grid;gap:12px;padding:18px 20px;border:1px solid #d2e1e8;border-radius:17px;background:#fff;color:#19374b;box-shadow:0 18px 52px rgba(19,43,60,.23);font-size:14px;line-height:1.55}
.nerjCookieCopy strong{display:block;margin-bottom:4px;color:#142e41;font-size:17px}
.nerjCookieCopy p{margin:0;color:#506b7d}
.nerjCookieCopy a{color:#13688e;text-decoration:underline;text-underline-offset:2px}
.nerjCookieSettings{padding:12px 14px;border-radius:12px;background:#f3f8fa;border:1px solid #dce8ee}
.nerjCookieSettings p{margin:0 0 9px;font-size:13px}
.nerjCookieSettings label{display:flex;gap:9px;align-items:center;font-weight:650;cursor:pointer}
.nerjCookieSettings input{accent-color:#1a6787;width:19px;height:19px;flex-shrink:0}
.nerjCookieButtons{display:flex;flex-wrap:wrap;gap:8px}
.nerjCookieButton{border:1px solid #d0dfe6;border-radius:10px;background:#f4f8fa;color:#17384c;padding:10px 13px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;min-height:40px}
.nerjCookieButton--primary{background:#183849;border-color:#183849;color:white}
.nerjCookieButton--link{background:white}
.nerjCookieApply{margin-top:12px}
.nerjCookieButton:focus-visible,.nerjCookieReopen:focus-visible{outline:3px solid #58a1c1;outline-offset:3px}
.nerjCookieReopen{margin-left:10px;padding:5px 7px;background:transparent;border:0;color:#266785;text-decoration:underline;cursor:pointer;font:inherit;white-space:normal}
/* Both mobile drawers must allow scrolling through every category/navigation item. */
@media(max-width:850px){
  body .drawerOverlay{z-index:125!important}
  body .drawer.modernDrawer{z-index:126!important;height:100vh;height:100dvh;max-height:100dvh;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;min-height:0;padding-bottom:calc(20px + env(safe-area-inset-bottom));box-sizing:border-box}
  body .drawer.modernDrawer .drawerHeader{flex:0 0 auto;position:sticky;top:0;z-index:2;background:#fff}
  body .drawer.modernDrawer .drawerCategories{flex-shrink:0;grid-auto-rows:auto}
  body .drawer.modernDrawer .drawerNav{flex-shrink:0}
  body .drawer.modernDrawer .drawerFooter{margin-top:16px;flex-shrink:0}
  body .catalogOverlay{z-index:127!important}
  body .catalogPanel{z-index:128!important;height:100vh;height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden!important;touch-action:auto;min-height:0}
  body .catalogPanel .catalogPanelHead{flex:0 0 auto;padding:15px 17px 12px}
  body .catalogPanel .catalogPanelList{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;align-content:start;grid-auto-rows:max-content;padding:12px 14px 30px}
  body .catalogPanel .catalogPanelAll{flex:0 0 auto;margin:0 14px;position:relative;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}
@media(max-width:700px){
  .nerjCookieBanner{bottom:calc(70px + env(safe-area-inset-bottom));left:10px;right:10px;padding:13px 14px;gap:10px;font-size:12px;max-height:min(72dvh,510px);overflow-y:auto;overscroll-behavior:contain}
  .nerjCookieCopy strong{font-size:15px}
  .nerjCookieButton{flex:1 1 auto;min-width:120px;font-size:12px}
  .nerjCookieButton--link{flex:0 0 auto}
}
@media(prefers-reduced-motion:reduce){.nerjCookieBanner *{scroll-behavior:auto!important}}
