/* Публичные страницы X-Pointer. Палитра из docs/BRAND.md. Onest отдаётся с нашего же
   сервера (лицензия SIL OFL, текст — /assets/Onest-OFL.txt), внешних шрифтов нет;
   если файл не загрузился, берётся Arial. */
@font-face {
  font-family: Onest;
  src: local("Onest"), url("/assets/Onest-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #12141a;
  --blue: #3366ff;
  --blue-dark: #2850cc;
  --title: #3b4357;
  --text: #525e7d;
  --muted: #5f6678;
  --line: #d9dee9;
  --bg: #ffffff;
  --soft: #eef2f7;
  --ok: #238451;
  --ok-bg: #edf9f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 Onest, Arial, "Segoe UI", sans-serif;
}
h1, h2, h3 { color: var(--title); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--blue-dark); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 48px; width: auto; }
.foot .logo { display: inline-block; margin-bottom: 14px; }
.foot .logo img { display: block; height: 28px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; align-items: center; }
.top nav a { color: #fff; text-decoration: none; padding: 6px 2px; transition: color .16s; }
.top nav a:hover { color: #bfd0ff; text-decoration: underline; }
.top nav a.cta { background: var(--blue); padding: 6px 14px; border-radius: 6px; }
.top nav a.cta:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.top :focus-visible { outline-color: #bfd0ff; }
.line { height: 3px; background: linear-gradient(90deg, var(--blue), rgba(51, 102, 255, 0)); }

.hero { background: var(--soft); padding: 56px 0 48px; }
.hero p.lead { font-size: 1.15rem; max-width: 40em; }
.hero .alpha { color: var(--muted); font-size: .95rem; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 500; transition: background-color .16s, border-color .16s, color .16s;
}
.btn:hover { background: var(--soft); border-color: var(--blue); color: var(--ink); }
.btn.main { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.main:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.warn { border-top: 3px solid var(--blue); }
.card.ok { border-color: var(--ok); background: var(--ok-bg); }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plans ul, .card ul { padding-left: 1.2em; margin: 0 0 1em; }
.plans li, .card li { margin-bottom: .45em; }
.tag { color: var(--muted); font-size: .9rem; margin-bottom: .8em; }

.table-scroll { overflow-x: auto; margin: 24px 0 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
caption { text-align: left; color: var(--title); font-weight: 500; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
thead th { background: var(--soft); color: var(--title); font-weight: 600; }
tbody th { font-weight: 500; color: var(--title); background: #fafbfd; }

.note { color: var(--muted); font-size: .95rem; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: .6em; }

.foot { background: var(--ink); color: #dfe5f5; padding: 36px 0; margin-top: 24px; }
.foot a { color: #bfd0ff; }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #bfd0ff; }
.foot p { margin-bottom: .5em; }
.foot .small { color: #b4bdd6; font-size: .9rem; }

@media (max-width: 600px) {
  .top nav { margin-left: 0; width: 100%; }
  .hero { padding: 36px 0 32px; }
  section { padding: 32px 0; }
  .btn { width: 100%; text-align: center; }
}
