/* Токены — из docs/design-system/README.md (те же имена и значения, что в web/src/shared/ui/tokens.css). */
:root {
  color-scheme: light;
  --color-canvas: #f5f4f0;
  --color-surface: #fff;
  --color-border: #e4e2dc;
  --color-border-control: #d9d7d0;
  --color-text-muted: #6b6964;
  --color-ink: #1c1c1a;
  --color-accent: #1f5f8b;
  --color-accent-hover: #174a6d;
  --color-accent-tint: #eaf2f8;
  --color-success: #2e7d4f;
  --color-surface-muted: #f0efea;
  --color-danger: #b3261e;
  --color-danger-tint: #fdf2f1;
  --color-danger-border: #e9b8b5;
  --color-on-accent: #fff;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--color-canvas); color: var(--color-ink); font: 400 16px/1.5 var(--font-sans); -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-hover); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--color-surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.overline { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.lead { font-size: 18px; line-height: 1.5; color: var(--color-text-muted); margin-top: 12px; max-width: 52ch; }
.hint { font-size: 14px; color: var(--color-text-muted); margin-top: 12px; }

/* Кнопки: цель касания ≥ 44 px (touch-плотность). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--color-border-control); background: var(--color-surface); color: var(--color-ink); font: 500 15px/1.2 var(--font-sans); text-decoration: none; text-align: center; }
.btn:hover { background: var(--color-surface-muted); color: var(--color-ink); }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }

.top { position: sticky; top: 0; z-index: 5; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--color-ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.top__nav { display: flex; align-items: center; gap: 20px; }
.top__nav a:not(.btn) { color: var(--color-text-muted); text-decoration: none; font-size: 15px; }
.top__nav a:not(.btn):hover { color: var(--color-ink); }

.hero { padding: 56px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 600; margin-top: 12px; max-width: 18ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.status { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 24px; }
.status__title { font-weight: 600; font-size: 17px; line-height: 1.3; margin-top: 8px; }
.steps { margin-top: 20px; display: grid; gap: 14px; }
.steps__item { position: relative; padding-left: 28px; color: var(--color-text-muted); font-size: 15px; }
.steps__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--color-border-control); background: var(--color-surface); }
.steps__item--done { color: var(--color-ink); }
.steps__item--done::before { background: var(--color-success); border-color: var(--color-success); }
.steps__item--now { color: var(--color-accent); font-weight: 600; }
.steps__item--now::before { background: var(--color-accent-tint); border-color: var(--color-accent); }

.section { padding: 64px 0; }
.section--alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
h2 { font-size: 28px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 24px; }
.card h3 { margin-top: 14px; }
.card p { margin-top: 8px; color: var(--color-text-muted); font-size: 15px; }
.card__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent-tint); color: var(--color-accent); font-weight: 600; }

.app { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.platforms { display: grid; gap: 12px; margin-top: 24px; max-width: 420px; }
.platform { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-canvas); }
.platform__name { font-weight: 600; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--color-surface-muted); color: var(--color-text-muted); font-size: 13px; font-weight: 500; }
.qrs { display: flex; gap: 24px; }
.qr { margin: 0; text-align: center; }
.qr svg { width: 220px; height: 220px; border: 1px solid var(--color-border); border-radius: 8px; }
.qr figcaption { margin: 12px auto 0; max-width: 220px; font-size: 13px; color: var(--color-text-muted); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Вход (#login): карточка с формой поиска по почте и запасной путь по адресу компании. */
.login { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.login__card { background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 8px; padding: 24px; display: grid; gap: 20px; }
.form { display: grid; gap: 12px; }
.field__label { font-size: 14px; font-weight: 500; }
.field__input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--color-border-control); border-radius: 8px; background: var(--color-surface); color: var(--color-ink); font: 400 16px/1.2 var(--font-sans); }
.field__input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field__row { display: flex; align-items: center; gap: 8px; }
.field__row .field__input { flex: 1 1 auto; min-width: 0; }
.field__suffix { flex: none; color: var(--color-text-muted); font-size: 15px; }
.slug summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--color-accent); font-weight: 500; }
.slug summary:hover { color: var(--color-accent-hover); }
.slug[open] summary { margin-bottom: 8px; }
.note { min-height: 0; font-size: 14px; color: var(--color-text-muted); }
.note:empty { display: none; }
.note[data-tone="ok"] { color: var(--color-success); }
.note[data-tone="error"] { color: var(--color-danger); }

/* Страница снятого legacy-хоста (retired.html). */
.retired { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.retired__card { width: 100%; max-width: 480px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; padding: 32px 24px; display: grid; gap: 16px; }
.retired__card img { border-radius: 8px; }
.retired__card h1 { font-size: 28px; margin-top: 0; max-width: none; }
.retired__card .lead { margin-top: 0; font-size: 16px; }
.retired__card .actions { margin-top: 8px; }

.foot { border-top: 1px solid var(--color-border); padding: 24px 0; color: var(--color-text-muted); font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero__grid, .app, .login { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .qrs { justify-self: start; }
  .qr { justify-self: start; text-align: left; }
  .qr figcaption { margin-left: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 32px 0 40px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .section { padding: 44px 0; }
  .top__nav a:not(.btn) { display: none; }
  .actions .btn, .cta .btn { width: 100%; }
  .platform { flex-direction: column; align-items: stretch; }
  .platform .badge { align-self: flex-start; }
  .qrs { display: none; } /* на телефоне QR бессмыслен: кнопки скачивания выше */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.foot__links { display: flex; gap: 16px; flex-wrap: wrap; }
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 32px; font-size: 20px; }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 20px; }
