:root {
  --ink: #161616;
  --muted: #5c6168;
  --line: #e6e6e6;
  --bg: #f7f7f5;
  --card: #fff;
  --navy: #111111;
  --orange: #f9cc00;
  --orange-deep: #e0b800;
  --ok: #0e7a45;
  --out: #b42318;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.top { background: #fff; border-bottom: 4px solid var(--orange); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 78px; width: auto; display: block; }
.ribbon { background: #111; color: #fff; padding: 8px 18px 8px 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.ribbon b { display: block; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ribbon span { display: inline-block; margin-top: 4px; background: var(--orange); color: #111; font-weight: 800; padding: 2px 8px; }
.contact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.contact a {
  text-decoration: none; border: 1px solid #111; border-radius: 999px;
  padding: 7px 11px; font-size: 0.88rem; font-weight: 700; background: #fff; color: #111;
}
.contact a.wa { background: #111; border-color: #111; color: var(--orange); }
.contact a.cart { background: var(--orange); border-color: var(--orange); color: #111; }
.frame { display: grid; grid-template-columns: 230px 1fr; gap: 18px; padding: 18px 0 32px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; }
.side-label { margin: 6px 8px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; padding: 6px 8px; border-radius: 8px; font-size: 0.92rem; }
.cat-link img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.cat-link span { flex: 1; }
.cat-link b { color: var(--muted); font-weight: 600; }
.cat-link.on, .cat-link:hover { background: #f4f7fb; }
.cat-link.on { box-shadow: inset 3px 0 0 var(--orange); font-weight: 700; background: #fff8d6; }
.jump { display: none; }
.content h1, .plain h1, .hero h1 { font-family: Outfit, sans-serif; letter-spacing: -0.03em; margin: 0 0 6px; font-size: 1.6rem; }
.hero p, .lead { margin: 0 0 14px; color: var(--muted); }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dir a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-decoration: none; }
.dir a img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.dir a span { display: grid; gap: 2px; }
.dir a b { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.dir a:hover { border-color: #111; box-shadow: inset 0 -3px 0 var(--orange); }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
label { display: grid; gap: 5px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.grow { flex: 1 1 220px; }
input, select, textarea { border: 1px solid #d5dce6; border-radius: 8px; padding: 9px 10px; background: #fff; width: 100%; font: inherit; }
.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--ink); padding-bottom: 8px; }
.check input { width: auto; }
button { border: 0; background: var(--orange); color: #111; border-radius: 8px; padding: 9px 12px; font-weight: 800; cursor: pointer; }
button:hover { background: var(--orange-deep); }
.cat-head { margin: 8px 0 10px; font-size: 1.25rem; }
.jumps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.jumps a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: 0.82rem; font-weight: 600; }
.company { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; overflow: auto; }
.company h3 { margin: 0; padding: 8px 12px; background: #f7f9fb; border-bottom: 1px solid var(--line); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.company h3 img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #f0f3f7; vertical-align: middle; }
th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fffdf2; }
.num { text-align: right; white-space: nowrap; }
.partline { display: flex; align-items: center; gap: 10px; }
.thumb { width: 72px; height: 72px; object-fit: contain; background: #fafafa; border: 1px solid var(--line); border-radius: 10px; flex: 0 0 auto; }
.model { font-weight: 700; }
.sub, .code { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.price { font-weight: 700; }
.cost { color: #9a3412; font-weight: 700; }
.stock { color: var(--ok); font-weight: 700; }
.stock.out { color: var(--out); }
.call { background: #f6f1e6; color: #7a5b24; border-radius: 999px; padding: 2px 7px; font-size: 0.78rem; font-weight: 700; }
.order form { display: flex; justify-content: flex-end; gap: 6px; }
.qty { width: 64px; }
.meta { color: var(--muted); margin: 0 0 10px; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--muted); }
.plain { padding: 22px 0 36px; }
.card, .login, .order { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.login form, .stack { display: grid; gap: 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { background: #fdeceb; color: var(--out); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
.ok { background: #e8f6ee; color: var(--ok); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
.order header, .order header div { display: flex; justify-content: space-between; gap: 10px; }
.order header span, .note-line { color: var(--muted); display: block; }
.total { text-align: right; font-weight: 700; margin: 8px 0 0; }
.site-foot { background: #111; color: #fff; border-top: 4px solid var(--orange); margin-top: 12px; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.92rem; padding: 14px 0; }
.banner { background: #fff6ee; border: 1px solid #f3ddc4; color: #7a4b16; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }
@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .side { display: none; }
  .jump { display: grid; margin-bottom: 10px; }
  .top-row, .split { flex-direction: column; align-items: flex-start; display: flex; }
  .split { display: grid; grid-template-columns: 1fr; }
  .contact { justify-content: flex-start; }
  .logo { height: 64px; }
  .ribbon { display: none; }
}
