:root {
  --navy: #102b43;
  --navy-2: #163c5e;
  --slate: #315a78;
  --orange: #f28a1a;
  --orange-soft: #fff2e2;
  --ink: #1d2b37;
  --muted: #6d7b88;
  --line: #dfe6ec;
  --panel: #f5f8fa;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f9fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f7f9fb; }
a { color: inherit; }

.site-header {
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 4px solid var(--orange);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.brand img { width: 40px; height: 37px; object-fit: contain; filter: brightness(0) invert(1); }
.header-context { margin-left: auto; display: grid; gap: 2px; text-align: right; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; color: var(--orange); }
.header-context strong { font-size: 14px; }
.header-action { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.5); padding: 10px 14px; border-radius: 5px; font-size: 13px; font-weight: 700; }
.header-action:hover { background: var(--orange); border-color: var(--orange); }

.shell { width: min(1440px, calc(100% - 36px)); margin: 0 auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 20px 0 16px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs strong { color: var(--navy); }
.hero { display: flex; justify-content: space-between; gap: 32px; padding: clamp(25px, 4vw, 50px); border-radius: 6px; background: linear-gradient(115deg, var(--navy), #214d70); color: var(--white); box-shadow: 0 14px 30px rgba(16,43,67,.14); }
.hero h1 { margin: 10px 0 12px; font-size: clamp(32px, 5vw, 62px); line-height: .98; letter-spacing: -.04em; }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 570px; margin: 0; color: #d8e4ed; line-height: 1.55; font-size: 15px; }
.hero-meta { min-width: 250px; align-self: end; display: grid; gap: 14px; }
.hero-meta div { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-meta small { color: #b6cad9; font-size: 11px; }
.hero-meta b { font-size: 13px; text-align: right; }

.tools { background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin: 20px 0 16px; box-shadow: 0 12px 30px rgba(16,43,67,.08); }
.tools-row { display: flex; gap: 9px; }
.search { flex: 1; min-width: 0; border: 2px solid var(--orange); border-radius: 7px; padding: 11px 12px; outline: 0; color: var(--navy); font: inherit; font-weight: 700; }
.search:focus { box-shadow: 0 0 0 4px rgba(242,138,26,.15); }
.search::placeholder { color: #aab5bd; font-weight: 500; }
.search-button { border: 0; border-radius: 7px; padding: 11px 17px; background: var(--orange); color: var(--white); font-weight: 800; cursor: pointer; }
.search-button:hover { background: var(--navy); }
.tool-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.tool-note b { color: var(--navy); }

.catalog-layout { display: grid; grid-template-columns: 245px 1fr; gap: 26px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 15px; }
.side-title { color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.section-nav { display: grid; gap: 5px; }
.section-link { display: flex; justify-content: space-between; gap: 8px; padding: 10px 11px; color: var(--slate); text-decoration: none; font-size: 12px; border-left: 3px solid transparent; border-radius: 0 4px 4px 0; }
.section-link:hover, .section-link.active { color: var(--navy); background: var(--orange-soft); border-left-color: var(--orange); }
.section-link em { color: var(--muted); font-style: normal; font-size: 10px; }
.side-note { display: grid; gap: 7px; padding: 15px; background: var(--navy); color: #dbe8f2; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.side-note b { color: var(--orange); font-size: 12px; }
.back-link { color: var(--slate); text-decoration: none; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--orange); }

.content-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 14px; }
.content-toolbar h2 { margin: 7px 0 0; color: var(--navy); font-size: 28px; letter-spacing: -.02em; }
.result-count { color: var(--muted); font-size: 12px; }
.catalog-grid { display: grid; gap: 18px; }
.assembly-card { scroll-margin-top: 110px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 5px 14px rgba(16,43,67,.05); }
.assembly-head { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.assembly-heading { display: grid; gap: 5px; }
.assembly-code { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.assembly-title { margin: 0; color: var(--navy); font-size: 19px; }
.assembly-subtitle { color: var(--muted); font-size: 11px; }
.assembly-action { align-self: center; white-space: nowrap; color: var(--navy); background: var(--orange-soft); border: 1px solid var(--orange); border-radius: 4px; padding: 9px 12px; text-decoration: none; font-size: 11px; font-weight: 800; }
.assembly-action:hover { color: var(--white); background: var(--orange); }
.assembly-body { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr); gap: 18px; padding: 18px; }
.scheme-panel { position: relative; min-height: 250px; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid #edf1f4; background: #fff; }
.scheme-panel img { display: block; width: 100%; max-height: 490px; object-fit: contain; }
.scheme-hint { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.hotspot { position: absolute; width: 66px; height: 28px; transform: translate(-50%, -50%); border: 0; background: transparent; cursor: pointer; border-radius: 3px; }
.hotspot:focus-visible, .hotspot:hover { outline: 2px solid var(--orange); background: rgba(242,138,26,.12); }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(1) { left: 33.2%; top: 9.5%; }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(2) { left: 40.2%; top: 7.2%; }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(3) { left: 76%; top: 34%; }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(4) { left: 70.5%; top: 63%; }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(5) { left: 13.5%; top: 39.5%; }
.hotspot[data-scheme="scheme-150-01-08-1"]:nth-of-type(6) { left: 36%; top: 86%; }
.hotspot.active { background: rgba(242,138,26,.22); outline: 2px solid var(--orange); }
.position-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.position-chip { cursor: pointer; border: 1px solid #cbd8e1; border-radius: 3px; background: #f9fbfc; padding: 5px 7px; color: var(--slate); font: 800 10px/1 inherit; }
.position-chip:hover, .position-chip.active { color: var(--navy); border-color: var(--orange); background: var(--orange-soft); }
.parts-table-wrap { min-width: 0; overflow: auto; border: 1px solid #edf1f4; }
.parts-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.parts-table th { position: sticky; top: 0; z-index: 1; padding: 10px 8px; color: #7890a0; text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; background: #f6f9fb; border-bottom: 1px solid var(--line); }
.parts-table td { padding: 9px 8px; vertical-align: middle; border-bottom: 1px solid #eef2f5; }
.parts-table tr { cursor: pointer; }
.parts-table tr:hover { background: #fff9f1; }
.parts-table tr.selected { background: var(--orange-soft); box-shadow: inset 3px 0 var(--orange); }
.parts-table .position { width: 58px; color: var(--orange); font-weight: 900; }
.parts-table .material { width: 126px; color: var(--navy); font-weight: 800; white-space: nowrap; }
.parts-table .name { color: var(--ink); font-weight: 600; }
.parts-table .quantity { width: 40px; text-align: center; color: var(--muted); }
.row-action { white-space: nowrap; color: var(--orange); text-decoration: none; font-size: 10px; font-weight: 900; }
.row-action:hover { color: var(--navy); text-decoration: underline; }
.empty-state { display: grid; gap: 8px; place-items: center; padding: 60px 20px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); }
.empty-state strong { color: var(--navy); }

.site-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 22px clamp(18px, 4vw, 58px); color: #98a8b4; background: var(--navy); font-size: 11px; }

@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-note, .back-link { display: none; }
  .assembly-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 11px 18px; }
  .header-context { margin-left: auto; }
  .header-action { width: 100%; text-align: center; }
  .hero { display: grid; }
  .hero-meta { min-width: 0; }
  .tools-row { display: block; }
  .search-button { width: 100%; margin-top: 8px; }
  .section-nav { grid-template-columns: 1fr; }
  .assembly-head { display: grid; }
  .assembly-action { justify-self: start; }
  .assembly-body { padding: 10px; }
  .site-footer { display: grid; }
}
