/* Общий стиль публичных страниц sinhron.chat: лендинг, документация, загрузки.
   Отдаётся nginx как /site.css (source-of-truth — web/public/site.css, попадает
   в сборку и переживает деплой). Без внешних ресурсов — строгий CSP сайта. */

:root {
  --ground: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --ink: #14181f;
  --muted: #5a6472;
  --faint: #8a94a3;
  --border: #e2e6ec;
  --accent: #17605c;
  --accent-strong: #124b48;
  --accent-ink: #ffffff;
  --accent-wash: #e3f0ef;
  --shadow: 0 1px 2px rgba(20,24,31,.05), 0 8px 24px -12px rgba(20,24,31,.18);
  --shadow-lg: 0 2px 8px rgba(20,24,31,.06), 0 30px 60px -30px rgba(20,24,31,.3);
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1216; --surface: #171b21; --surface-2: #1e232b;
    --ink: #e7eaef; --muted: #98a2b0; --faint: #6c7684; --border: #262c34;
    --accent: #5fc9c1; --accent-strong: #4bb3ab; --accent-ink: #06201e; --accent-wash: #123f3c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,.75);
  }
}
:root[data-theme="dark"] {
  --ground: #0f1216; --surface: #171b21; --surface-2: #1e232b;
  --ink: #e7eaef; --muted: #98a2b0; --faint: #6c7684; --border: #262c34;
  --accent: #5fc9c1; --accent-strong: #4bb3ab; --accent-ink: #06201e; --accent-wash: #123f3c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 30px 60px -30px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }

/* ---- шапка-навигация (общая на всех страницах) ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .inner {
  max-width: 980px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -.01em; color: var(--ink); }
.nav .brand:hover { text-decoration: none; }
.nav .brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(150deg, #1a6f69, #134f4b);
  display: grid; place-items: center;
}
.nav .brand .logo svg { width: 17px; height: 17px; }
.nav .tabs { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav .tabs a {
  color: var(--muted); font-size: 15px; font-weight: 550;
  padding: 7px 12px; border-radius: 8px;
}
.nav .tabs a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav .tabs a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .tabs a.web { color: var(--accent); }
@media (max-width: 620px) {
  .nav .tabs a { padding: 7px 9px; font-size: 14px; }
  .nav .brand span.word { display: none; }
}

/* ---- типографика ---- */
h1 { margin: 0 0 12px; font-size: clamp(34px, 6.5vw, 54px); line-height: 1.05; font-weight: 730; letter-spacing: -.028em; text-wrap: balance; }
h2.sec { font-size: clamp(24px, 4vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 650; margin: 0 0 14px; }
.lede { margin: 0; max-width: 62ch; font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); }
.pill { font-family: var(--mono); font-size: 13px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); }

/* ---- кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 11px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .14s ease, transform .06s ease, border-color .14s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); text-decoration: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn .sz { font-family: var(--mono); font-size: 12.5px; opacity: .8; font-weight: 500; }

/* ---- карточки ---- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.picon { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.picon svg { width: 26px; height: 26px; }

/* ---- footer ---- */
footer.site {
  margin: 72px 0 48px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
footer.site .sep { color: var(--border); }

@media (prefers-reduced-motion: reduce) { *, html { transition: none !important; scroll-behavior: auto !important; } }
