/* Страницы каталога на вёрстке v2 (platform/category/service): готовые HTML-фрагменты сервера — крошки index.php
   (<div class="icon">></div><a class="page-head__btn">), иконки <img> — оформлены значениями классов v2. */
html.ps-v2 .ps-v2-catalog .ps-app__462 > .icon { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; overflow: hidden; color: transparent; font-size: 0; }
html.ps-v2 .ps-v2-catalog .ps-app__462 > .icon::before { content: ''; width: 5px; height: 5px; border: solid var(--dash); border-width: 2px 2px 0 0; transform: rotate(45deg); }
/* крошка — ps-app__463, последняя (текущая страница) — ps-app__465 */
html.ps-v2 .ps-v2-catalog .ps-app__462 > a.page-head__btn { display: inline-flex !important; align-items: center !important; white-space: nowrap !important; height: 30px !important; margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--line2) !important; color: var(--muted) !important; font-size: 13.5px !important; transition: color 0.18s; }
html.ps-v2 .ps-v2-catalog .ps-app__462 > a.page-head__btn:hover { color: var(--accent) !important; }
html.ps-v2 .ps-v2-catalog .ps-app__462 > a.page-head__btn:last-child { color: var(--ink) !important; font-weight: 500 !important; }
/* иконка платформы у заголовка — ps-app__65 (34px, скругление 9), иконки категорий в кнопках — 20px как ps-app__412 */
html.ps-v2 .ps-v2-catalog .ps-app__596 > img { flex: 0 0 auto; width: 34px !important; height: 34px !important; border-radius: 9px; object-fit: contain; }
html.ps-v2 .ps-v2-catalog .ps-app__602 > img { flex: 0 0 auto; width: 20px !important; height: 20px !important; min-width: 0 !important; min-height: 0 !important; object-fit: contain; }
html.ps-v2 .ps-v2-catalog a.ps-app__602 { text-decoration: none !important; }
/* описание из админки (HTML) — абзацы и списки как ps-app__605/607/608 */
html.ps-v2 .ps-v2-catalog .ps-v2-rich { display: flex; flex-direction: column; gap: 10px; }
html.ps-v2 .ps-v2-catalog .ps-v2-rich p { margin: 0; text-wrap: pretty; }
html.ps-v2 .ps-v2-catalog .ps-v2-rich ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
html.ps-v2 .ps-v2-catalog .ps-v2-rich b, html.ps-v2 .ps-v2-catalog .ps-v2-rich strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { html.ps-v2 .ps-v2-catalog .ps-v2-rich ul { grid-template-columns: minmax(0, 1fr); } }
html.ps-v2 .ps-v2-catalog a.service-item { text-decoration: none !important; }
html.ps-v2 .ps-v2-catalog .ps-app__621 { margin: 0 !important; }
/* категория: иконки платформы и надкатегории в заголовке — размером строки, как значок ps-app__88 */
html.ps-v2 .ps-v2-catalog .ps-app__614 img { width: 30px; height: 30px; margin: 0 6px 0 0; vertical-align: -5px; object-fit: contain; }
/* услуга: в static/ название, «Время выполнения…» и «Описание услуги» — span/div; у нас заголовки h1/h2 — без полей браузера */
html.ps-v2 .ps-v2-catalog h1.ps-app__634, html.ps-v2 .ps-v2-catalog h2.ps-app__646, html.ps-v2 .ps-v2-catalog h2.ps-app__653 { margin: 0; }
html.ps-v2 .ps-v2-catalog .ps-app__630 > .icon { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; overflow: hidden; color: transparent; font-size: 0; }
html.ps-v2 .ps-v2-catalog .ps-app__630 > .icon::before { content: ''; width: 5px; height: 5px; border: solid var(--dash); border-width: 2px 2px 0 0; transform: rotate(45deg); }
html.ps-v2 .ps-v2-catalog .ps-app__630 > a.page-head__btn { display: inline-flex !important; align-items: center !important; white-space: nowrap !important; height: 30px !important; margin: 0 !important; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--line2) !important; color: var(--muted) !important; font-size: 13.5px !important; }
html.ps-v2 .ps-v2-catalog .ps-app__630 > a.page-head__btn:last-child { color: var(--ink) !important; font-weight: 500 !important; }
html.ps-v2 .ps-v2-catalog a.ps-app__638, html.ps-v2 .ps-v2-catalog a.ps-app__639 { display: inline-flex !important; align-items: center !important; justify-content: center !important; text-decoration: none !important; }
html.ps-v2 .ps-v2-catalog .ps-v2-banner img { max-width: 100%; height: auto; border-radius: 14px; }
/* телефон: base.css задаёт html.ps-v2 h1/h2 { 24px !important } — в static эти заголовки были span/div и правило их не касалось;
   у нас семантические h1/h2 — возвращаем размеры их классов v2 (ps-app__634 19px, 646 14px, 653 17px, 621 — как в классе) */
@media (max-width: 760px) {
 html.ps-v2 .ps-v2-catalog h1.ps-app__634 { font-size: 19px !important; line-height: 1.3 !important; margin: 0 !important; }
 html.ps-v2 .ps-v2-catalog h2.ps-app__646 { font-size: 14px !important; margin: 0 !important; }
 html.ps-v2 .ps-v2-catalog h2.ps-app__653 { font-size: 17px !important; margin: 0 !important; }
 html.ps-v2 .ps-v2-catalog h2.ps-app__621 { font-size: 12px !important; margin: 0 !important; }
}
/* Source sdBtn/sdOpts and alLegend; no legacy dropdown/details structure. */
.new-catalog-dim{background:transparent}
.new-category-types{display:flex;align-items:flex-start;gap:8px;min-width:0;flex:0 1 auto}
.new-category-types--grouped{flex:0 1 480px;width:100%}
.new-category-types__select{position:relative;flex:0 1 480px;min-width:0;width:100%}
.new-category-types__select.is-open{z-index:1001}
.new-category-types__trigger{width:100%;height:58px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:0 14px;border:0;border-radius:16px;font-family:inherit;cursor:pointer;background:var(--card);transition:box-shadow .15s;box-shadow:inset 0 0 0 1px var(--line2);text-align:left}
.new-category-types__select.is-open .new-category-types__trigger{box-shadow:inset 0 0 0 1px var(--accent)}
.new-category-types__icon{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--chip);color:var(--ink2)}
.new-category-types__select.has-selection .new-category-types__icon{background:var(--sel);color:var(--accent)}
.new-category-types__label{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left}
.new-category-types__label>span:first-child{font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted2)}
.new-category-types__label>span:last-child{font-size:15px;font-weight:500;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.new-category-types__select.has-selection .new-category-types__label>span:last-child{font-weight:600;color:var(--ink)}
.new-category-types__clear-space,.new-category-types__clear{flex:none;width:22px;height:22px}
.new-category-types__clear{position:absolute;right:36px;top:18px;border:0;padding:0;border-radius:50%;background:var(--chip);color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.new-category-types__chevron{flex:none;color:var(--muted);transition:transform .2s}
.new-category-types__select.is-open .new-category-types__chevron{transform:rotate(180deg)}
.new-category-types__options{position:absolute;top:calc(100% + 8px);left:0;z-index:30;min-width:100%;width:max-content;max-width:min(560px,calc(100vw - 32px));box-sizing:border-box;padding:8px;border:0;border-radius:18px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line2),0 26px 50px -24px rgba(40,30,20,.4);display:flex;flex-direction:column;gap:1px;max-height:420px;overflow:auto;animation:cardIn .18s ease-out}
.new-category-types__option{border:0;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:10px;width:100%;font-size:14.5px;padding:6px 10px;line-height:1.4;border-radius:10px;transition:background .15s;text-align:left;font-weight:500;color:var(--ink2);background:transparent}
.new-category-types__option>span:first-child{flex:1;min-width:0}
.new-category-types__count{flex:none;font-size:12.5px;color:var(--muted2)}
.new-category-types__option.active{font-weight:600;color:var(--accent);background:var(--sel)}
.new-category-types__option:hover{background:var(--hover)}
.new-category-types__tabs{display:flex;flex-wrap:wrap;gap:2px;min-width:0;flex:1 1 auto;padding:3px;border-radius:13px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line2);box-sizing:border-box}
.new-category-types__tabs .new-category-types__option{width:auto;height:36px;padding:0 14px;font-size:14px;white-space:nowrap}
.new-catalog-legend__toggle{border:0;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 14px;border-radius:12px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line2);font-size:13.5px;font-weight:500;color:var(--ink2);white-space:nowrap;flex:none;transition:color .15s}
.new-catalog-legend__toggle>span:first-child{letter-spacing:1px}
.new-catalog-legend__toggle:hover,.new-catalog-legend__item>button:hover{color:var(--accent)}
.new-catalog-legend{background:var(--card);border-radius:16px;box-shadow:inset 0 0 0 1px var(--line2);padding:6px;display:flex;flex-direction:column;min-width:0}
.new-catalog-legend__item{border-radius:12px;background:transparent}
.new-catalog-legend__item:nth-child(even){background:var(--zebra)}
.new-catalog-legend__item>button{width:100%;border:0;background:transparent;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:10px;padding:11px 12px;text-align:left;font-size:14px;font-weight:600;color:var(--ink);transition:color .15s}
.new-catalog-legend__item>button>span:first-child{font-size:16px;flex:none}
.new-catalog-legend__item>button>span:nth-child(2){flex:1}
.new-catalog-legend__toggle>svg,.new-catalog-legend__item>button>svg{flex:none;color:var(--muted2);transition:transform .2s}
.new-catalog-legend__toggle[aria-expanded="true"]>svg,.new-catalog-legend__item>button[aria-expanded="true"]>svg{transform:rotate(180deg)}
.new-catalog-legend__description{padding:0 14px 13px 40px;font-size:13.5px;line-height:1.55;color:var(--ink2);text-wrap:pretty}
.new-category-types button:focus-visible,.new-catalog-legend__toggle:focus-visible,.new-catalog-legend__item>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.new-category-types__options{animation:none}.new-category-types button,.new-catalog-legend__toggle,.new-catalog-legend__item>button,.new-catalog-legend__toggle>svg,.new-catalog-legend__item>button>svg{transition:none}}

/* While the category popup is open, its dim covers the bottom navigation.
   Keep the header and modal stacking contexts above the page unchanged. */
html.ps-v2:has(#new-category-page .new-category-types__select.is-open) .mobile-menu{z-index:1}
