/* Светлый минимализм: белый лист, чёрный текст, цвет — только у статусов. */
:root {
  --paper: #ffffff;
  --ink: #15171a;
  --muted: #74777d;
  --rule: #e8e9eb;
  --faint: #f4f5f6;
  --up: #1f9d55;
  --down: #d93025;
  --moved: #3367d6;
  --dns: #a3a7ad;
  --stub: #c98a00;
  --blocked: #8a63d2;
  --sans: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
b { font-weight: 600; }

.page { max-width: 1040px; margin: 0 auto; padding: 0 24px 64px; }

/* шапка */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 18px; border-bottom: 1px solid var(--rule); }
.title { font-weight: 600; letter-spacing: -.01em; }
.updated { color: var(--muted); font-size: 13px; }

/* главное: одна фраза и полоска сетей */
.hero { padding: 64px 0 40px; }
.thesis { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; margin: 0; max-width: 16em; }
.thesis .num { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; height: 44px; margin-top: 40px; }
.strip i { display: block; background: var(--rule); min-width: 1px; }
.strip i.on { background: var(--ink); }
.strip i:hover { background: var(--moved); }
.strip-note { color: var(--muted); font-size: 13px; margin: 10px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* строки: подпись слева, данные справа */
.row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.row > * { min-width: 0; }
.row > h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 3px 0 0; }
h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 28px 0 10px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* итоговые цифры */
.facts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact .k { color: var(--muted); font-size: 13px; }
.fact .v { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 2px 0; }
.fact .d { font-size: 13px; color: var(--muted); }
.fact .stale { color: var(--stub); font-size: 12px; margin-top: 2px; }

/* поиск */
form { display: flex; gap: 0; max-width: 560px; border-bottom: 1.5px solid var(--ink); }
form input { flex: 1; min-width: 0; border: 0; padding: 10px 0; font: 400 22px/1.2 var(--mono); color: var(--ink); background: transparent; }
form input::placeholder { color: var(--rule); }
form input:focus { outline: none; }
form:focus-within { border-bottom-color: var(--moved); }
button { font: 500 14px var(--sans); color: var(--paper); background: var(--ink); border: 0; padding: 0 18px; cursor: pointer; }
button.link { background: none; color: var(--ink); padding: 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
button.link:hover { text-decoration-color: var(--ink); }
button:disabled { opacity: .5; }
.result { margin-top: 24px; }
.verdict { font-size: 26px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
dl.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
dl.kv dd.mono { font-size: 13px; }
.err { color: var(--down); margin-top: 16px; }
.hours { display: flex; gap: 1px; height: 14px; margin-top: 18px; }
.hours span { flex: 1 1 0; min-width: 2px; }

/* статусы */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.s-up { background: var(--up); } .s-down { background: var(--down); } .s-moved { background: var(--moved); }
.s-dns_error { background: var(--dns); } .s-stub { background: var(--stub); } .s-blocked { background: var(--blocked); }
.verdict .dot { width: 12px; height: 12px; }

/* график */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--c); }
.chart { position: relative; height: 260px; }

/* списки и таблицы */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; }
.list .d { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.filters input, .filters select { font: 400 14px var(--sans); color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--rule); padding: 6px 0; min-width: 0; }
.filters input { flex: 1 1 220px; }
.filters input:focus, .filters select:focus { outline: none; border-bottom-color: var(--ink); }
.scroll { max-height: 440px; overflow: auto; }
.wide { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 6px 16px 6px 0; border-bottom: 1px solid var(--faint); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--paper); color: var(--muted); font-weight: 500; font-size: 12px; border-bottom-color: var(--rule); }
td.num, th.num { text-align: right; }
td.mono { font-size: 12.5px; }
.off { color: var(--muted); }
.dist { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.dist span { display: inline-flex; align-items: center; gap: 7px; }
.dist b { font-family: var(--mono); font-weight: 500; }
.post { padding: 8px 0; }
.how p { margin: 0 0 12px; max-width: 64ch; color: #3d4046; font-size: 14px; }
.how .api { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.foot { color: var(--muted); font-size: 12px; padding-top: 28px; border-top: 1px solid var(--rule); }

@media (max-width: 720px) {
  .page { padding: 0 16px 48px; }
  .hero { padding: 40px 0 28px; }
  .strip { height: 32px; gap: 0; }
  .row { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  form input { font-size: 18px; }
  dl.kv { grid-template-columns: 1fr; gap: 0 0; }
  dl.kv dt { margin-top: 8px; }
  .chart { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
