:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #1f2328;
  --muted: #5f6b7a;
  --line: #e1e4e8;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --accent: #1d4ed8;
  --radius: 6px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar { background: #23272e; color: #c9d1d9; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; }

/* header */
header.site { border-bottom: 1px solid var(--line); background: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.logo:hover { text-decoration: none; }
.logo small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.2; }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a { color: var(--text); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { border-bottom-color: var(--brand); text-decoration: none; }

/* hero */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 32px; line-height: 1.25; margin: 0 0 12px; max-width: 720px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; border: 0; cursor: pointer; font-size: 15px; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: #fff7ed; }

/* sections */
main section { padding: 40px 0; }
main section + section { border-top: 1px solid var(--line); }
h1 { font-size: 28px; line-height: 1.3; margin: 32px 0 16px; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-top: 20px; }
.crumbs a { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { width: 36px; height: 36px; margin-bottom: 10px; color: var(--brand); }

.cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.name { white-space: normal; min-width: 260px; }
th { background: var(--bg-alt); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.stock { color: #15803d; font-size: 14px; }
.stock.low { color: #b45309; }
.cat-title { margin-top: 36px; }

/* article */
article { max-width: 760px; }
article h2 { margin-top: 32px; }
article p, article li { font-size: 17px; }
article .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.note { background: #fff7ed; border-left: 3px solid var(--brand); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list h3 { font-size: 20px; margin-bottom: 6px; }
.post-list .meta { font-size: 13px; color: var(--muted); }

/* forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=email], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: var(--radius); font: inherit; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: var(--accent); }

/* footer */
footer.site { background: #23272e; color: #9aa4b1; font-size: 14px; margin-top: 48px; }
footer.site .wrap { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site a { color: #d0d7de; }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 4px 0; }
.copy { border-top: 1px solid #343a42; text-align: center; padding: 14px 20px; font-size: 13px; }
