/* Просмотрщик использует шрифты и основные цвета действующего сайта. */
.pc { --pc-ink: var(--lk-dark, #1c1c1c); --pc-muted: #595959; --pc-line: #dedede; --pc-accent: var(--lk-yellow, #ffd504); --pc-selected: #fff5bd; background: #f5f5f5; color: var(--pc-ink); font: 14px/1.5 Inter, sans-serif; padding: 32px 0 64px; }
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc [hidden] { display: none !important; }
.pc-wrap { width: min(1600px, calc(100% - 64px)); margin: auto; }
.pc h1, .pc h2, .pc h3, .pc p { margin: 0; }
.pc h1 { font: 500 28px/1.3 Tektur, sans-serif; overflow-wrap: anywhere; }
.pc h2 { font-size: 18px; font-weight: 500; }
.pc h3 { font-size: 16px; }
.pc a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pc a:hover { text-decoration-thickness: 2px; }
.pc button, .pc input { font: inherit; color: inherit; border-radius: 4px; }
.pc button { background: white; border: 1px solid var(--pc-line); min-width: 44px; min-height: 44px; cursor: pointer; padding: 8px 12px; }
.pc button:hover { background: var(--pc-selected); border-color: var(--pc-ink); }
.pc button:disabled { opacity: .45; cursor: default; }
.pc :focus-visible { outline: 3px solid #245ea8; outline-offset: 3px; }
.pc-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--pc-muted); margin-bottom: 24px; }
.pc-breadcrumbs a, .pc-breadcrumbs span { overflow-wrap: anywhere; }
.pc-heading { display: flex; align-items: end; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.pc-heading > div { min-width: 0; }
.pc-eyebrow { color: var(--pc-muted); margin-bottom: 8px !important; font-size: 12px; }
.pc-search { flex: 0 0 330px; }
.pc-search label { display: block; margin-bottom: 6px; font-size: 12px; }
.pc-search > div { display: flex; gap: 8px; }
.pc-search input { border: 1px solid #aaa; background: white; min-width: 0; width: 100%; padding: 10px 12px; font-size: 16px; }
.pc-search button { background: var(--pc-accent); border-color: var(--pc-accent); }
.pc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.pc-sidebar { min-width: 0; }
.pc-sidebar details { border: 1px solid var(--pc-line); background: #fff; border-radius: 6px; }
.pc-sidebar summary { font-size: 16px; font-weight: 500; padding: 14px; cursor: pointer; min-height: 48px; }
.pc-tree { max-height: 700px; overflow: auto; padding: 0 8px 12px; }
.pc-tree ul { padding: 0; margin: 0; list-style: none; }
.pc-tree ul ul { margin-left: 10px; padding-left: 8px; border-left: 1px solid var(--pc-line); }
.pc-tree a { display: block; padding: 10px 8px; min-height: 44px; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.pc-tree a:hover { background: #f5f5f5; }
.pc-tree a[aria-current] { background: var(--pc-selected); box-shadow: inset 3px 0 var(--pc-accent); font-weight: 500; }
.pc-workspace { min-width: 0; }
.pc-panels { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-panel { background: white; border: 1px solid var(--pc-line); border-radius: 6px; overflow: hidden; min-width: 0; }
.pc-panel-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--pc-line); }
.pc-panel-heading a { font-size: 12px; min-height: 32px; display: inline-flex; align-items: center; }
.pc-panel-heading h2 span { color: var(--pc-muted); margin-left: 4px; font-size: 14px; }
.pc-toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--pc-line); }
.pc-toolbar output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.pc-toolbar #pc-zoom-reset { margin-left: auto; }
.pc-viewport { overflow: auto; height: 480px; max-height: 65vh; background: white; overscroll-behavior: contain; }
.pc-viewport svg { display: block; width: 100%; height: auto; max-width: none; margin: auto; }
.pc-viewport.pc-draggable { cursor: grab; }
.pc-viewport.pc-dragging { cursor: grabbing; user-select: none; }
.pc-hotspot { fill: #ffd504; fill-opacity: .2; stroke: #8a6500; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.pc-hotspot:hover, .pc-hotspot.is-selected, .pc-hotspot:focus { fill-opacity: .55; stroke: #145bae; stroke-width: 2.5; }
.pc-note { font-size: 12px; line-height: 1.6; color: var(--pc-muted); padding: 12px 16px; }
.pc-selection { padding: 12px 16px; background: #fafaf7; border-top: 1px solid var(--pc-line); border-bottom: 1px solid var(--pc-line); min-height: 64px; font-size: 12px; overflow-wrap: anywhere; }
.pc-table-scroll { max-height: 560px; overflow: auto; }
.pc-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.pc-table th { position: sticky; top: 0; background: #f6f6f6; color: var(--pc-muted); font-size: 12px; font-weight: 500; z-index: 1; }
.pc-table th, .pc-table td { padding: 12px 10px; border-bottom: 1px solid var(--pc-line); vertical-align: top; }
.pc-table th:first-child { width: 66px; }
.pc-table th:last-child { width: 76px; text-align: right; }
.pc-quantity { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pc-article { display: block; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pc-part-name { display: block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.pc-table small { display: block; color: var(--pc-muted); font-size: 11px; margin-top: 6px; }
.pc-open-node { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.pc-table tr.is-selected, .pc-table tr:target { background: var(--pc-selected); box-shadow: inset 3px 0 var(--pc-accent); }
.pc-position[aria-pressed="true"] { background: var(--pc-accent); border-color: var(--pc-ink); font-weight: bold; }
.pc-empty { min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; color: var(--pc-muted); }
.pc-empty h3 { color: var(--pc-ink); }
.pc-lead { max-width: 760px; margin: 16px 0 28px !important; color: var(--pc-muted); }
.pc-intro { margin-bottom: 24px; }
.pc-intro p { margin-top: 8px; color: var(--pc-muted); }
.pc-catalogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pc a.pc-catalog { display: flex; flex-direction: column; align-items: start; gap: 16px; background: #fff; border: 1px solid var(--pc-line); border-top: 4px solid var(--pc-accent); border-radius: 6px; padding: 24px; text-decoration: none; }
.pc-catalog strong { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.pc-catalog span { font-size: 12px; color: var(--pc-muted); }
.pc-results { padding: 24px; }
.pc-results ol { padding: 0; list-style: none; }
.pc-results li { padding: 16px 0; border-top: 1px solid var(--pc-line); overflow-wrap: anywhere; }
.pc-results li span { display: block; color: var(--pc-muted); font-size: 12px; margin-top: 6px; }
.pc-pagination { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.pc-pagination a { padding: 10px 0; }
.pc-sr-only, .pc-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pc-skip:focus { display: inline-block; padding: 12px; }
@media (max-width: 1250px) { .pc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; } .pc-panels { grid-template-columns: 1fr; } .pc-table-scroll { max-height: none; } .pc-viewport { height: 480px; } }
@media (max-width: 800px) { .pc { padding-top: 24px; } .pc-wrap { width: calc(100% - 32px); } .pc-heading { display: block; } .pc h1 { font-size: 24px; } .pc-search { margin-top: 20px; } .pc-layout { grid-template-columns: 1fr; } .pc-tree { max-height: 360px; } .pc-sidebar > .pc-note { padding: 8px 0; } .pc-breadcrumbs { margin-bottom: 16px; } .pc-viewport { height: 360px; } .pc-empty { min-height: 220px; padding: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Общий футер имеет фиксированную полосу логотипов 370px. На страницах
   просмотрщика она также должна помещаться на маленьком телефоне. */
@media (max-width: 400px) {
    #footer .top.logosdiv { max-width: 100%; }
    #footer .top .logos { width: 100%; max-width: 100%; gap: 16px; }
    #footer .top .logos img { max-width: calc(50% - 8px); height: auto; object-fit: contain; }
}
.pc-commerce { border-top: 1px solid var(--pc-line); margin-top: 12px; padding-top: 12px; font-size: 12px; }
.pc-commerce > a { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.pc-commerce p { margin-bottom: 6px; }
.pc-buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-buy label { flex-basis: 100%; }
.pc-buy input { min-width: 0; width: 64px; padding: 8px; border: 1px solid #888; font-size: 16px; }
.pc-buy button { background: var(--pc-accent); }
.pc-inquiry { margin-top: 8px; font-size: 12px !important; }
