/* Образ сервиса — коммутатор: каждый номер как линия с лампой состояния. */
@font-face { font-family: "Golos Text"; src: url(golos-text-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(golos-text-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --panel: #dfe5e1;
  --sheet: #f4f6f3;
  --ink: #17282c;
  --muted: #526266;
  --wire: #0c5f6b;
  --rule: #b7c2bd;
  --on: #1f8a55;
  --wait: #c58410;
  --bad: #bb3527;
  --off: #8a9794;
  --code-bg: #1d3338;
  --code-ink: #e3ece7;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--panel); color: var(--ink); font: 400 17px/1.5 "Golos Text", system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 24px 64px; flex: 1; }
a { color: var(--wire); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--wire); outline-offset: 2px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 700; margin: 0 0 20px; letter-spacing: -.01em; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 650; margin: 0 0 10px; }
section { margin-top: 40px; }
p { margin: 0 0 14px; max-width: 70ch; }
.lead { font-size: 20px; line-height: 1.45; }
.muted { color: var(--muted); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
pre { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; margin: 0 0 14px; overflow-x: auto; border-radius: 4px; line-height: 1.45; }

.top { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--ink); color: var(--sheet); }
.top a { color: var(--sheet); text-decoration: none; }
.top a:hover, .top a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.top :focus-visible { outline-color: var(--sheet); }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 15px; }
.top .link { color: var(--sheet); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }

.lamp { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--off); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18); }
.lamp.on { background: var(--on); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12), 0 0 0 4px rgba(31, 138, 85, .22); }
.lamp.wait { background: var(--wait); }
.lamp.bad { background: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 10px; }
.big-status { font-size: 22px; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; margin: 28px 0 8px; }
.hero h1 { font-size: 50px; line-height: 1.06; }
.exchange h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.exchange pre { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 2px solid var(--ink); padding-top: 20px; }
.facts p { color: var(--muted); }

.lines { list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); }
.lines li { border-bottom: 1px solid var(--rule); }
.lines a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 4px; color: inherit; text-decoration: none; align-items: center; }
.lines a:hover { background: var(--sheet); }
.lines strong { font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }

.button { display: inline-block; background: var(--wire); color: #fff; border: 2px solid var(--wire); border-radius: 4px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.button:hover { background: #094b55; border-color: #094b55; }
.button.quiet { background: transparent; color: var(--wire); }
.button.quiet:hover { background: var(--sheet); }
.button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.button.danger:hover { background: var(--bad); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--wire); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

label { display: block; font-size: 15px; font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid #7f8f8c; border-radius: 4px; }
input[type=checkbox] { width: auto; margin-top: 5px; }
.stack { display: grid; gap: 16px; max-width: 440px; justify-items: start; }
.stack label { width: 100%; }
.inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 24px 0 10px; }
.inline label { flex: 1 1 240px; max-width: 420px; }
.narrow { max-width: 440px; margin: 24px auto 0; }
.narrow p { margin-top: 16px; }

.flash, .notice { background: var(--sheet); border-left: 5px solid var(--wire); padding: 12px 16px; margin: 0 0 22px; max-width: none; }
.notice p { margin-bottom: 8px; }
.error { color: var(--bad); font-weight: 500; margin: 0; }
.code strong { font-size: 26px; letter-spacing: .08em; }
.qr { background: #fff; padding: 16px; display: inline-block; margin-bottom: 16px; border-radius: 4px; }
.qr img { display: block; width: 320px; max-width: 100%; height: auto; }
.qr p { max-width: 320px; margin: 10px 0 0; font-size: 15px; }
.qr[hidden] { display: none; }
.pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; margin: 0; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; overflow-wrap: anywhere; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font-weight: 600; border-bottom: 2px solid var(--ink); padding: 6px 12px 6px 0; white-space: nowrap; }
td { border-bottom: 1px solid var(--rule); padding: 8px 12px 8px 0; vertical-align: top; }
.prose h2 { margin-top: 32px; }
.prose { max-width: 72ch; }
.prose.wide { max-width: none; }

footer { display: flex; gap: 20px; padding: 16px 24px; font-size: 14px; border-top: 1px solid var(--rule); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  main { padding: 24px 16px 48px; }
  .top { padding: 12px 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 36px; }
  h1 { font-size: 28px; }
  .facts { grid-template-columns: 1fr; }
  .lines a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.wide-row { flex: 1 1 100%; }
.pair-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.steps { max-width: 70ch; padding-left: 22px; margin: 0 0 12px; }
.steps li { margin-bottom: 4px; }
