:root {
  --ink: #12263a;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --brand: #0f3d5e;
  --accent: #1f8a70;
  --accent-soft: #e6f4ef;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.45rem; line-height: 1.25; }
h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--brand); color: #fff; }
.top-inner { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; letter-spacing: 0.12em; }
.brand-sub { font-size: 0.85rem; opacity: 0.85; }

main { padding-top: 16px; padding-bottom: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }

.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; }

.status { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.status.inactive { background: var(--bg); }
.status-label { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.status.inactive .status-label { color: var(--muted); }
.status-step { font-size: 0.85rem; color: var(--muted); }
.next { margin-top: 6px; }

.highlight { border-color: var(--accent); }
.date-big { font-size: 1.15rem; font-weight: 700; }
#warranty.ok .date-big { color: var(--accent); }
#warranty.expired .date-big { color: var(--warn); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.step + .step::before {
  content: ""; position: absolute; left: 7px; top: -10px; height: 18px; width: 2px; background: var(--line);
}
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.step.done .dot { background: var(--accent); border-color: var(--accent); }
.step.current .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.step.pending .step-label { color: var(--muted); }
.step.current .step-label { font-weight: 700; }
.step-tag { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }

.history { list-style: none; margin: 0; padding: 0; }
.history-item { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--line); }
.history-item:first-child { border-top: 0; padding-top: 0; }
.history-date { font-size: 0.8rem; color: var(--muted); }

.contact { text-align: center; }
.btn {
  display: inline-block; margin-top: 12px; padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.updated { text-align: center; font-size: 0.8rem; color: var(--muted); padding: 4px 0 12px; }
.foot { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 16px 0 28px; }
