/* 22kuae.com — one stylesheet, no web fonts, light + dark */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6b645c;
  --line: #e7e2d8;
  --gold: #b7791f;
  --gold-2: #f6c75a;
  --gold-soft: #fbf3e0;
  --hero-1: #1c1917;
  --hero-2: #3a2f22;
  --up: #15803d;
  --down: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 4px 16px rgba(28, 25, 23, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e; --surface: #1c1916; --ink: #f2efe9; --muted: #a59d92; --line: #2f2a24;
    --gold: #f0b94a; --gold-soft: #2a2218; --hero-1: #0b0a09; --hero-2: #2a2117;
    --up: #4ade80; --down: #f87171; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 9; }
b, .num, td, .big { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.logo-mark { background: linear-gradient(135deg, #f6c75a, #b7791f); color: #1c1917; padding: 3px 7px; border-radius: 8px; font-size: 15px; }
.logo-text { color: var(--ink); font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--gold-soft); }
.cur-switch select { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; }
@media (max-width: 640px) { .nav a:nth-child(-n+3) { display: none; } .nav { margin-left: auto; } }

/* Hero price card */
.hero { padding: 18px 0 6px; }
.hero-card {
  position: relative; overflow: hidden; color: #f8f4ec; border-radius: 20px; padding: 22px 22px 18px;
  background: radial-gradient(120% 140% at 100% 0%, #6b4f22 0%, transparent 55%), linear-gradient(160deg, var(--hero-1), var(--hero-2));
  box-shadow: 0 10px 30px rgba(28, 25, 23, .18);
}
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 199, 90, .25), transparent 70%); }
.hero-card h1 { font-size: 1.05rem; font-weight: 600; color: #f1e6d2; margin: 0; }
.hero-card .date { margin: 2px 0 10px; font-size: 13px; color: #c9bba3; }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.big .num {
  font-size: clamp(2.3rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(180deg, #fde9b1, #f0b94a 70%, #c98a1b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big .per { color: #d9ccb6; font-size: 15px; }
.sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 14px; font-size: 14px; color: #e8dcc8; }
.chg { padding: 3px 9px; border-radius: 999px; font-weight: 600; font-size: 13px; background: rgba(255, 255, 255, .1); }
.chg.up { color: #86efac; } .chg.down { color: #fca5a5; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 9px 10px; }
.quick span { display: block; font-size: 12px; color: #c9bba3; }
.quick b { font-size: 15px; color: #fff; white-space: nowrap; }
.quick b small { font-size: 11px; font-weight: 600; color: #d9ccb6; }
@media (max-width: 420px) { .quick { gap: 6px; } .quick div { padding: 8px; } .quick b { font-size: 13px; } .quick span { font-size: 11px; } }
.source { margin: 12px 0 0; font-size: 12px; color: #b9ab93; }
.source a { color: #f6c75a; }
.badge { padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 11px; }
.badge.warn { background: #f59e0b; color: #1c1917; }

/* Karat chips */
.chips { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 4px; overflow-x: auto; }
.chip { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Blocks, cards, tables */
.block { padding-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card ul { padding-left: 1.1em; margin: .4em 0 0; } .card li { margin: .3em 0; }
.card.empty p { margin: 0; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.lead { font-size: 1.1rem; } .lead-sm { color: var(--muted); margin: -4px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child { text-align: left; font-weight: 600; }
.tbl thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--gold-soft) 55%, var(--surface)); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 560px) { .tbl { font-size: 14px; } .tbl th, .tbl td { padding: 10px 9px; } }
.tbl tr.hl { background: var(--gold-soft); }
.tbl a { color: var(--ink); }
.up { color: var(--up); } .down { color: var(--down); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }
.calc-in { display: grid; gap: 12px; }
.calc label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.calc input[type=number], .calc select { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.calc .chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.calc .chk input { width: 18px; height: 18px; accent-color: var(--gold); }
.calc-out { background: var(--gold-soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.calc-out .row b { white-space: nowrap; }
.calc-out .tot { border-top: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); padding-top: 8px; }
.verdict { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 16px; line-height: 1.35; }
.verdict.good { color: var(--up); } .verdict.bad { color: var(--down); }

/* Chart */
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-card .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart-card .axis { fill: var(--muted); font-size: 12px; }
.chart-card .dot { fill: var(--gold); } .chart-card .dot-low { fill: var(--up); }

/* Tiles, 3 cards, vs */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile span { font-size: 13px; color: var(--gold); }
.tile:hover { border-color: var(--gold); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .cards3 { grid-template-columns: 1fr; } }
.cards3 p { margin: 0; font-size: 15px; color: var(--muted); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vs .card { display: grid; gap: 2px; } .vs b { font-size: 1.7rem; }
@media (max-width: 560px) { .vs { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* Pages */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }
.page, .page-head { padding-top: 26px; max-width: 760px; }
.page h2 { margin-top: 1.4em; }
.page .tbl { border: 1px solid var(--line); border-radius: 10px; }

/* Footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 30px 0 24px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.footer-grid a:not(.logo) { display: block; color: var(--ink); text-decoration: none; font-size: 14px; padding: 3px 0; }
.footer-grid a:not(.logo):hover { color: var(--gold); }
.foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.footer-grid p { font-size: 14px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 18px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
