/* Каталог videosfera38.ru — левое меню, вариант A1 «Плашки и полоска». Только CSS, без JS. */
.catalog-sidebar{--a1-ink:#0f1b2d;--a1-mut:#6a7487;--a1-line:#e6e9ef;--a1-lime:#d9f24f;--a1-lime2:#b9d421;--a1-bg:#f4f6f9}
.catalog-sidebar .catalog-tree{border:0;border-radius:18px;background:#fff;padding:10px;box-shadow:0 6px 24px rgba(15,27,45,.08);font-size:14px}
/* «Разделы каталога» и «Оборудование» — подписи, не раскрывашки */
.catalog-sidebar .catalog-tree>summary,.catalog-sidebar .catalog-tree-equipment>summary{list-style:none;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--a1-mut);font-weight:700;padding:6px 8px 8px}
.catalog-sidebar summary::-webkit-details-marker{display:none}
.catalog-sidebar .catalog-tree-equipment>a{display:block;margin:0 0 4px;padding:8px 10px;border-radius:10px;font-weight:600;color:var(--a1-ink);text-decoration:none}
/* Группа: иконка в плашке + название + кружок со стрелкой */
.catalog-sidebar .catalog-tree-group{border-top:0;margin:2px 0}
.catalog-sidebar .catalog-tree-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:11px;padding:8px;border-radius:12px;font-size:14.5px;font-weight:600;color:var(--a1-ink);transition:background .15s}
.catalog-sidebar .catalog-tree-group>summary:hover{background:var(--a1-bg)}
.catalog-sidebar .catalog-tree-group>summary:before{content:"";flex:none;width:36px;height:36px;border-radius:11px;background:var(--a1-bg) no-repeat center/19px 19px;background-image:var(--a1-ic,none);transition:background-color .2s}
.catalog-sidebar .catalog-tree-group>summary:after{content:"";flex:none;margin-left:auto;width:26px;height:26px;border-radius:50%;background:var(--a1-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 11l4 4 4-4' fill='none' stroke='%230f1b2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;transition:transform .25s,background-color .2s}
.catalog-sidebar .catalog-tree-group[open]>summary:after{transform:rotate(180deg);background-color:var(--a1-lime)}
.catalog-sidebar .catalog-tree-group[open]>summary:before{background-color:var(--a1-ink);background-image:var(--a1-ic-open,var(--a1-ic,none))}
.catalog-sidebar .catalog-tree-group>summary small{display:block;font-size:11px;color:var(--a1-mut);font-weight:500;margin-top:2px}
/* Подпункты */
.catalog-sidebar .catalog-tree-group>a{display:flex;justify-content:space-between;margin:0 0 0 47px;padding:7px 10px;border-radius:9px;font-size:13.5px;line-height:1.35;color:#2a3446;text-decoration:none;transition:background .15s}
.catalog-sidebar .catalog-tree-group>a:hover{background:var(--a1-bg);color:var(--a1-ink)}
.catalog-sidebar .catalog-tree-group>a[aria-current="page"]{background:linear-gradient(90deg,rgba(217,242,79,.35),transparent);box-shadow:inset 3px 0 0 var(--a1-lime2);font-weight:600;color:var(--a1-ink)}
.catalog-sidebar .catalog-tree-group>p{margin:0 0 6px 47px;padding:4px 10px;font-size:12.5px;color:var(--a1-mut)}
.catalog-sidebar .catalog-archive{display:flex;align-items:center;gap:10px;margin-top:8px;padding:12px 10px 4px;border-top:1px solid var(--a1-line);border-radius:0;font-size:13px;color:var(--a1-mut);text-decoration:none}
.catalog-sidebar .catalog-archive[aria-current="page"]{color:var(--a1-ink);font-weight:600}

/* Перекрываем старые правила usability-v2.css */
.catalog-sidebar .catalog-tree>summary,.catalog-sidebar .catalog-tree nav>details{border:0}
.catalog-sidebar .catalog-tree>summary{min-height:0}
.catalog-sidebar .catalog-tree-equipment>summary::after{display:none}
.catalog-sidebar .catalog-tree-equipment>summary{pointer-events:none}
.catalog-sidebar .catalog-tree-equipment>summary{min-height:0}
.catalog-sidebar .catalog-tree-group{border-top:0}
.catalog-sidebar .catalog-tree-group>summary{justify-content:flex-start;min-height:52px}
.catalog-sidebar .catalog-tree-group>summary>span{flex:1;min-width:0;line-height:1.2;overflow-wrap:normal}
.catalog-sidebar .catalog-tree-group>summary::after{border:0;margin:0 0 0 auto;transform:none}
.catalog-sidebar .catalog-tree-group[open]>summary::after{transform:rotate(180deg)}
.catalog-sidebar .catalog-tree-group>a,.catalog-sidebar .catalog-tree-equipment>a{min-height:40px;box-shadow:none;border-radius:9px;font-size:13.5px}
.catalog-sidebar .catalog-tree-group>a{padding-left:10px}
.catalog-sidebar .catalog-tree summary:hover{background:var(--a1-bg);color:var(--a1-ink)}
.catalog-sidebar .catalog-tree>summary:hover,.catalog-sidebar .catalog-tree-equipment>summary:hover{background:none}
/* Иконки групп: на summary ставится data-icon (см. ТЗ) */
.catalog-sidebar [data-icon]{--a1-ic:var(--i);--a1-ic-open:var(--io)}
.catalog-sidebar [data-icon="cameras"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h11l4-3v12l-4-3H3z'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h11l4-3v12l-4-3H3z'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="recorders"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6'%3E%3Crect x='3' y='6' width='16' height='10' rx='2'/%3E%3Ccircle cx='8' cy='11' r='1.6'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6'%3E%3Crect x='3' y='6' width='16' height='10' rx='2'/%3E%3Ccircle cx='8' cy='11' r='1.6'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="network"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M11 4v10M5 18v-4h12v4'/%3E%3Ccircle cx='5' cy='18' r='1.5'/%3E%3Ccircle cx='17' cy='18' r='1.5'/%3E%3Ccircle cx='11' cy='4' r='1.5'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M11 4v10M5 18v-4h12v4'/%3E%3Ccircle cx='5' cy='18' r='1.5'/%3E%3Ccircle cx='17' cy='18' r='1.5'/%3E%3Ccircle cx='11' cy='4' r='1.5'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="security"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6'%3E%3Crect x='5' y='10' width='12' height='9' rx='2'/%3E%3Cpath d='M8 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6'%3E%3Crect x='5' y='10' width='12' height='9' rx='2'/%3E%3Cpath d='M8 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="software"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='4' width='16' height='12' rx='2'/%3E%3Cpath d='M8 19h6M8 9l-2 2 2 2M14 9l2 2-2 2'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='4' width='16' height='12' rx='2'/%3E%3Cpath d='M8 19h6M8 9l-2 2 2 2M14 9l2 2-2 2'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="parts"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 7l8-4 8 4v9l-8 4-8-4zM3 7l8 4 8-4M11 11v9'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 7l8-4 8 4v9l-8 4-8-4zM3 7l8 4 8-4M11 11v9'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="materials"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Ccircle cx='11' cy='11' r='2.5'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Ccircle cx='11' cy='11' r='2.5'/%3E%3C/svg%3E")}
.catalog-sidebar [data-icon="works"]{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%230f1b2d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4a4 4 0 0 0-4 5l-6 6 3 3 6-6a4 4 0 0 0 5-4l-2 2-2-2 2-2z'/%3E%3C/svg%3E");--io:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23d9f24f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4a4 4 0 0 0-4 5l-6 6 3 3 6-6a4 4 0 0 0 5-4l-2 2-2-2 2-2z'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:reduce){.catalog-sidebar *{transition:none!important}}

.catalog-sidebar .catalog-tree .catalog-tree-group>a[aria-current="page"]{background:linear-gradient(90deg,rgba(217,242,79,.35),transparent);box-shadow:inset 3px 0 0 var(--a1-lime2);font-weight:600;color:var(--a1-ink)}
/* Узкая колонка сайта (~220 px): компактнее и с переносами */
.catalog-sidebar .catalog-tree{padding:8px}
.catalog-sidebar .catalog-tree-group>summary{gap:9px;padding:7px 6px;font-size:14px}
.catalog-sidebar .catalog-tree-group>summary::before{width:32px;height:32px;border-radius:10px;background-size:17px 17px}
.catalog-sidebar .catalog-tree-group>summary::after{width:24px;height:24px}
.catalog-sidebar .catalog-tree-group>summary>span{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
.catalog-sidebar .catalog-tree-group>a,.catalog-sidebar .catalog-tree-group>p{margin-left:41px}
.catalog-sidebar .catalog-tree-group>a{min-height:36px;padding:6px 8px}

/* Компьютер: «Разделы каталога» — просто подпись. Телефон: это кнопка, открывающая меню */
@media (min-width:901px){.catalog-sidebar .catalog-tree>summary{pointer-events:none}.catalog-sidebar .catalog-tree>summary::after{display:none}}
@media (max-width:900px){
.catalog-sidebar .catalog-tree>summary{font-size:14px;letter-spacing:0;text-transform:none;color:var(--a1-ink);padding:10px 8px;min-height:48px;cursor:pointer}
.catalog-sidebar .catalog-tree>summary::after{content:"";border:0;margin:0 0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--a1-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 11l4 4 4-4' fill='none' stroke='%230f1b2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;transform:none}
.catalog-sidebar .catalog-tree[open]>summary::after{transform:rotate(180deg);background-color:var(--a1-lime)}
}
