:root {
  --gold: #b8860b;
  --gold-light: #f5e6c4;
  --ink: #24211c;
  --muted: #6f6a60;
  --bg: #fdfbf7;
  --card: #ffffff;
  --line: #e6e0d4;
  --up: #1a7f37;
  --down: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
a { color: var(--gold); }
h1 { font-size: 1.7rem; margin: 1.2rem 0 0.6rem; }
h2 { font-size: 1.25rem; margin: 1.8rem 0 0.5rem; border-bottom: 2px solid var(--gold-light); padding-bottom: 4px; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.3rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.site-head { background: var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
.site-head .brand { color: var(--gold-light); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-head nav a { color: #ded8ca; text-decoration: none; font-size: 0.92rem; }
.site-head nav a:hover { color: #fff; }

.hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin: 1rem 0; }
.bigprice {
  flex: 1 1 260px;
  background: linear-gradient(135deg, var(--gold) 0%, #8a6508 100%);
  color: #fff; border-radius: 10px; padding: 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.bigprice .value { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.5px; }
.bigprice .unit { font-size: 1rem; opacity: 0.95; }
.bigprice .asof { font-size: 0.8rem; opacity: 0.8; margin-top: 8px; }
.stats { flex: 1 1 260px; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stats th, .stats td { padding: 7px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.stats th { color: var(--muted); font-weight: 500; }
.stats td { text-align: right; font-variant-numeric: tabular-nums; }

.var.up { color: var(--up); font-weight: 600; }
.var.down { color: var(--down); font-weight: 600; }

.chart { width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.chart .line { stroke: var(--gold); stroke-width: 2; }
.chart .area { fill: var(--gold-light); opacity: 0.55; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .lbl { fill: var(--muted); font-size: 11px; }

table.carats { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.carats th, table.carats td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
table.carats thead th { background: var(--gold-light); }
table.carats td:last-child, table.carats th:last-child { text-align: right; }

.calc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 14px; max-width: 480px; }
.calc label { font-weight: 600; display: grid; gap: 4px; }
.calc .row { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.calc input, .calc select { font-size: 1.05rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.calc input { max-width: 140px; }
.calc .result { display: flex; gap: 24px; flex-wrap: wrap; background: var(--gold-light); border-radius: 8px; padding: 12px 16px; }
.calc .result strong { font-size: 1.25rem; }

.faq h3 { color: var(--gold); }
.article-list { list-style: none; padding: 0; }
.article-list li { margin-bottom: 14px; }
.article-list a { font-weight: 600; font-size: 1.05rem; }
.article-list p { margin: 2px 0 0; }

.affiliate { background: var(--gold-light); border-radius: 10px; padding: 16px 20px; margin: 1.2rem 0; }
.affiliate .btn { display: inline-block; background: var(--gold); color: #fff; padding: 9px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.ad { margin: 1.2rem 0; min-height: 50px; }

.metals-list { padding-left: 1.2rem; }
.site-foot { margin-top: 3rem; background: var(--ink); color: #b7b1a4; padding: 22px 0; font-size: 0.88rem; }
.site-foot a { color: #ded8ca; }
article ul, article ol { padding-left: 1.3rem; }

@media (max-width: 600px) {
  .bigprice .value { font-size: 2rem; }
  h1 { font-size: 1.4rem; }
}
