.davr-catalog-subpanel{margin:12px 0 18px;padding:22px 24px;border:1px solid rgba(8,127,91,.16);border-radius:20px;background:#fff;box-shadow:0 14px 34px rgba(20,48,39,.07)}
.davr-catalog-subpanel-title{font-size:22px;line-height:1.25;font-weight:800;margin-bottom:18px;color:#173d31}
.davr-catalog-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 30px}
.davr-catalog-section{min-width:0}
.davr-catalog-section-title,.davr-catalog-link{appearance:none;border:0;background:transparent;text-align:left;cursor:pointer;font:inherit;width:100%}
.davr-catalog-section-title{padding:4px 0 7px;font-size:18px;line-height:1.35;font-weight:800;color:#173d31}
.davr-catalog-section-links{display:grid;grid-template-columns:1fr;gap:5px}
.davr-catalog-link{padding:6px 8px;margin-left:-8px;border-radius:9px;font-size:16.5px;line-height:1.5;font-weight:560;color:#425f55}
.davr-catalog-section-title:hover,.davr-catalog-section-title.is-selected{color:#087f5b}
.davr-catalog-link:hover,.davr-catalog-link.is-selected{color:#087f5b;background:#eef8f4}
.davr-catalog-link:focus-visible,.davr-catalog-section-title:focus-visible{outline:3px solid #9bd2bf;outline-offset:2px}

[data-category]{--davr-cat-color:#087f5b;--davr-cat-bg:#e8f6f1}
[data-category="all"]{--davr-cat-color:#147a64;--davr-cat-bg:#e7f7f2}
[data-category="auto"]{--davr-cat-color:#2563eb;--davr-cat-bg:#e8f0ff}
[data-category="home"]{--davr-cat-color:#7c3aed;--davr-cat-bg:#f0e9ff}
[data-category="jobs"]{--davr-cat-color:#0f766e;--davr-cat-bg:#e3f7f4}
[data-category="services"]{--davr-cat-color:#d97706;--davr-cat-bg:#fff2dc}
[data-category="personal"]{--davr-cat-color:#db2777;--davr-cat-bg:#fde9f3}
[data-category="home-dacha"]{--davr-cat-color:#16a34a;--davr-cat-bg:#e8f8ec}
[data-category="parts"]{--davr-cat-color:#0369a1;--davr-cat-bg:#e3f3fb}
[data-category="electronics"]{--davr-cat-color:#4f46e5;--davr-cat-bg:#ecebff}
[data-category="hobby"]{--davr-cat-color:#ea580c;--davr-cat-bg:#fff0e7}
[data-category="animals"]{--davr-cat-color:#b45309;--davr-cat-bg:#fff3df}
[data-category="business"]{--davr-cat-color:#475569;--davr-cat-bg:#edf1f5}
[data-category="shops"]{--davr-cat-color:#a21caf;--davr-cat-bg:#fae9fc}

[data-category]>span:first-child{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:13px!important;color:var(--davr-cat-color)!important;background:var(--davr-cat-bg)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--davr-cat-color) 12%,transparent)}
[data-category]>span:first-child svg{width:24px;height:24px;stroke-width:2}
[data-category]>span:last-child{font-size:14.5px;line-height:1.28;font-weight:720}
[data-category][aria-pressed="true"]>span:first-child{color:#fff!important;background:var(--davr-cat-color)!important;box-shadow:0 5px 14px color-mix(in srgb,var(--davr-cat-color) 28%,transparent)}

@media(max-width:900px){.davr-catalog-subpanel{padding:20px}.davr-catalog-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.davr-catalog-link{font-size:16px}}
@media(max-width:640px){.davr-catalog-subpanel{margin-top:10px;padding:17px 16px;border-radius:16px}.davr-catalog-subpanel-title{font-size:20px;margin-bottom:16px}.davr-catalog-section-grid{grid-template-columns:1fr;gap:19px}.davr-catalog-section-title{font-size:17.5px}.davr-catalog-section-links{grid-template-columns:1fr;gap:4px}.davr-catalog-link{font-size:16px;line-height:1.5;padding:7px 8px}[data-category]>span:first-child{width:40px!important;height:40px!important;flex-basis:40px!important}[data-category]>span:first-child svg{width:23px;height:23px}}

/* Shops is always the first, non-scrolling shortcut in the category rail. */
.catalog-discovery ._rail_141y8_1 > [data-category="shops"]{
  position:sticky;
  left:8px;
  z-index:4;
  background:#fae9fc;
  border-color:#e9bdeb;
  box-shadow:3px 0 12px rgba(29,39,43,.10);
}
.catalog-discovery ._rail_141y8_1 > [data-category="shops"]:hover{
  background:#f5defb;
}
.catalog-discovery ._rail_141y8_1 > [data-category="shops"]:focus-visible{
  outline:3px solid #b05ec0;
  outline-offset:2px;
}

/* Scrolling the category list must not trigger the page's compact toolbar. */
.davr-catalog-subpanel{
  max-height:min(62dvh,440px);
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:#9fcbb9 #eef6f1;
}
.davr-catalog-subpanel:focus-visible{
  outline:3px solid #9bd2bf;
  outline-offset:2px;
}
.davr-catalog-subpanel-title{
  position:sticky;
  top:-1px;
  z-index:1;
  background:#fff;
  padding-top:2px;
  padding-bottom:10px;
}
@media(max-width:640px){
  .catalog-discovery ._rail_141y8_1 > [data-category="shops"]{left:3px}
  .davr-catalog-subpanel{max-height:min(58dvh,410px)}
}

/* The submenu is part of the page rather than a second scrollable window. */
.davr-catalog-page-subcategories{scroll-margin-top:76px}
.davr-catalog-page-subcategories:empty{display:none}
.davr-catalog-page-subcategories .davr-catalog-subpanel{
  max-height:none;
  overflow:visible;
  overscroll-behavior:auto;
}
.davr-catalog-page-subcategories .davr-catalog-subpanel-title{
  position:static;
  padding-top:0;
  padding-bottom:10px;
}
.catalog-discovery:not(.is-scrolled){position:relative;top:auto}
/* After the original rail scrolls out, only the small category bar stays fixed. */
.catalog-discovery.is-scrolled:not(.shop-discovery-mode){
  position:fixed;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:min(calc(100% - 56px),1184px);
  z-index:25;
  padding:5px 0;
  background:#fff;
}
._rail_141y8_1 > [data-category="shops"]{margin-right:18px}
.davr-shop-category-rail ._rail_141y8_1{margin:4px 0 18px}
.davr-shop-category-rail ._rail_141y8_1 > [data-category="shops"]{
  position:sticky;
  left:8px;
  z-index:4;
  background:#fae9fc;
  border-color:#e9bdeb;
  box-shadow:3px 0 12px rgba(29,39,43,.10);
}
@media(max-width:640px){
  .catalog-discovery.is-scrolled:not(.shop-discovery-mode){width:calc(100% - 24px);padding:3px 0}
  .davr-catalog-page-subcategories{scroll-margin-top:68px}
  .davr-shop-category-rail ._rail_141y8_1 > [data-category="shops"]{left:3px}
  ._rail_141y8_1 > [data-category="shops"]{margin-right:12px}
}
