.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px var(--page-pad);
  border-bottom: 1px solid var(--gray-150);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav {
  /* Меню — своя группа сразу за логотипом (мок 12a: отступ 24, зазор 22,
     пункты 13.5/500). Правый край держат действия шапки. */
  margin-left: 24px;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  color: #4a4a4a;
  font-size: 13.5px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--accent-ink);
}

.nav a[aria-current="page"]::after {
  background: var(--accent);
}

.section {
  width: min(100%, calc(var(--max) + var(--page-pad) * 2));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) var(--page-pad);
  border-bottom: 1px solid var(--gray-150);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -10%;
  width: 720px;
  height: 720px;
  max-width: 90vw;
  background: radial-gradient(circle, rgba(0, 152, 234, 0.12), rgba(0, 152, 234, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero__content {
  min-width: 0;
  width: 100%;
  max-width: 880px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.statement .eyebrow {
  color: var(--gray-300);
}

h1 {
  width: 100%;
  max-width: 980px;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 810;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

h2 {
  width: 100%;
  max-width: 850px;
  font-size: clamp(23px, 2.8vw, 36px);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
  hyphens: none;
}

.hero__lead,
.page-hero p,
.cta p {
  min-width: 0;
  width: 100%;
  max-width: var(--measure);
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--gray-800);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.32;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 5vw, 56px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--gray-300);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--dark {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.button--dark:hover {
  color: var(--black);
  background: var(--white);
}

.button--light {
  color: var(--black);
  background: var(--white);
}

.button--light:hover {
  color: var(--white);
  background: var(--black);
}

.metric {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 820;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.split > *,
.section-head > *,
.architecture__body > * {
  min-width: 0;
}

.copy {
  min-width: 0;
  width: 100%;
  max-width: var(--measure);
  color: var(--gray-800);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
}

.copy p + p {
  margin-top: 24px;
}

.statement {
  padding-top: clamp(46px, 6vw, 72px);
  padding-bottom: clamp(46px, 6vw, 72px);
  color: var(--white);
  background: var(--black);
}

.statement p {
  max-width: 1120px;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 780;
  line-height: 1.08;
  text-wrap: balance;
}

/* Обёртка «надзаголовок + заголовок»: в моке они ВСЕГДА идут друг под другом,
   слева (разделы 01–04). Прежняя раскладка в две колонки (220px + остальное)
   разводила их по горизонтали и внутри двухколоночной секции давала три
   столбца вместо двух (владелец, 2026-08-31). */
.section-head {
  display: block;
  max-width: var(--measure);
  align-items: start;
  margin-bottom: clamp(36px, 6vw, 76px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cards--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
  min-height: 260px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid transparent;
  background: var(--gray-075);
  transition: background 160ms ease, color 160ms ease, transform 200ms ease, box-shadow 200ms ease;
}

a.card:hover {
  color: var(--white);
  background: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(5, 5, 5, 0.55);
}

.card p {
  margin-top: 18px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
}

a.card:hover p {
  color: var(--gray-150);
}

/* «Как это устроено» (мок, раздел 03): слева текст с кнопкой, справа схема,
   полоса на сером фоне; колонки равные, выравнивание по верху. */
.architecture {
  background: var(--gray-075);
}

.architecture__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 48px);
  align-items: start;
}

.architecture .copy h2 { margin: 0 0 18px; }
.architecture .copy .actions { margin-top: 22px; }

.architecture img {
  width: 100%;
  background: var(--gray-075);
}

.market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.flow,
.steps,
.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market--stacked {
  grid-template-columns: 1fr;
}

.requirements .checklist {
  margin-top: clamp(28px, 4vw, 48px);
}

.market div,
.flow div,
.steps div,
.checklist div {
  min-width: 0;
  min-height: 150px;
  padding: 22px;
  background: var(--gray-075);
}

.market strong,
.flow strong,
.steps strong {
  display: block;
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
}

.market span,
.flow span,
.steps span,
.checklist div {
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
}

.cta {
  border-bottom: 0;
}

.cta .button {
  margin-top: 34px;
}

.page-hero {
  padding-top: clamp(80px, 10vw, 140px);
}

.page-hero h1 {
  max-width: 1120px;
  font-size: clamp(32px, 4.8vw, 60px);
}

.install {
  background: var(--gray-075);
}

/* Заголовок примера кода: серия «Шаг 1 / Шаг 2 …» или «Shell / Python / C».
   Отбивка сверху нужна между примерами, но не перед первым — там её даёт
   сама секция. Базовые отступы заголовков обнулены в base.css. */
.code-title {
  margin-bottom: 18px;
}

.code-title:not(:first-of-type) {
  margin-top: 40px;
}

.code-block {
  max-width: 920px;
  margin-top: 32px;
  overflow-x: auto;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.55;
}

.code-block code {
  display: block;
  padding: 22px;
  white-space: pre;
}

.code-block--small {
  margin-top: 28px;
}

.code-wrap {
  position: relative;
  margin-top: 32px;
}

.code-wrap .code-block {
  margin-top: 0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.copy-btn.is-copied {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.note {
  max-width: 760px;
  margin-top: 22px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--page-pad);
  border-top: 1px solid var(--gray-150);
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 650;
}

.site-footer span:first-child {
  color: var(--black);
  font-weight: 850;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent-ink);
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .architecture__body {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .cards,
  .cards--four,
  .market,
  .flow,
  .steps,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    min-height: 0;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    column-gap: 18px;
    row-gap: 8px;
    font-size: 13px;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
  }

  .page-hero h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
  }

  .hero__lead,
  .page-hero p,
  .cta p,
  .copy {
    font-size: 18px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .cards,
  .cards--four,
  .market,
  .flow,
  .steps,
  .checklist {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 220px;
  }

  .statement p {
    font-size: clamp(26px, 7.6vw, 36px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Downloads (packages page) — live build list in a bordered panel */
.downloads-panel {
  margin: 28px 0 12px;
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(5, 5, 5, 0.04), 0 10px 28px rgba(5, 5, 5, 0.05);
}
.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.dl-table thead th {
  text-align: left;
  padding: 13px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-075);
  border-bottom: 1px solid var(--gray-150);
  white-space: nowrap;
}
.dl-table tbody td {
  padding: 15px 22px;
  border-top: 1px solid var(--gray-150);
  vertical-align: middle;
}
.dl-table tbody tr:first-child td { border-top: 0; }
.dl-table tbody tr { transition: background 0.12s ease; }
.dl-table tbody tr:hover { background: var(--gray-075); }

/* platform cell */
.dl-os { display: block; font-weight: 650; color: var(--black); }
.dl-arch { display: block; margin-top: 2px; font-size: 13px; color: var(--gray-600); }

/* size cell */
.dl-size { white-space: nowrap; font-size: 13px; color: var(--gray-600); font-variant-numeric: tabular-nums; }

/* file cell — download link */
.dl-dl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  color: var(--accent-ink);
  text-decoration: none;
}
.dl-dl code {
  font-size: 13px;
  color: inherit;
  overflow-wrap: anywhere;
}
.dl-ico {
  flex: 0 0 auto;
  opacity: 0.6;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.dl-dl:hover code { text-decoration: underline; }
.dl-dl:hover .dl-ico { opacity: 1; transform: translateY(1px); }

/* checksum cell — pill link */
.dl-sum a {
  display: inline-block;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--gray-600);
  border: 1px solid var(--gray-150);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.dl-sum a:hover { color: var(--accent-ink); border-color: var(--accent); }
.dl-sum .dl-none { color: var(--gray-300); }

.dl-empty { padding: 22px; text-align: center; color: var(--gray-600); }
.dl-empty a { color: var(--accent-ink); }

/* mobile: stack each build as a card */
@media (max-width: 680px) {
  .dl-table, .dl-table tbody, .dl-table tr, .dl-table td { display: block; }
  .dl-table thead { display: none; }
  .dl-table tbody tr { padding: 14px 18px; border-top: 1px solid var(--gray-150); }
  .dl-table tbody tr:first-child { border-top: 0; }
  .dl-table tbody td { padding: 0; border: 0; }
  .dl-table tbody td.dl-file { margin: 7px 0; }
}

/* --- иллюстрации (visual/v1) --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  width: 22px;
  height: 22px;
}

.card__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.split__art {
  display: block;
  width: min(200px, 55%);
  margin-top: clamp(24px, 3vw, 36px);
}

/* ── Шапка: действия справа ─────────────────────────────────────────────────
   Кнопка «Начать» и ссылка на консоль (мок «Сайт», раздел 12a). */
.site-header__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.button--pill {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
}

.nav .nav__pill {
  padding: 4px 11px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--black);
  font-weight: 500;
}

/* У кнопки нет подчёркивания-указателя: её роль показывает рамка. */
.nav .nav__pill::after { content: none; }

.site-header__console {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-header__console:hover { color: var(--black); }

/* ── Карточка роли и карточка обещания ──────────────────────────────────────
   Обещания идут одной таблицей (зазор 1px на сером фоне), роли — отдельными
   карточками со стрелкой. Оба блока живут в components/. */
.promise,
.role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px 22px;
  background: var(--white);
}

.promise img,
.role-card img {
  width: 38px;
  height: 38px;
}

.promise h3,
.role-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.promise p,
.role-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* Обещания — отдельные карточки с промежутком, а не одна слитная плашка с
   волосяными разделителями (владелец, 2026-08-31: «пусть расстояние будет»).
   Сетка подстраивается под их число: две карточки занимают строку целиком,
   четыре — по четверти. Иначе при двух карточках оставалось пустое серое поле
   на месте недостающих (владелец, 2026-08-31). */
.cards:has(.promise) {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.promise {
  border: 1px solid var(--gray-150);
  border-radius: 14px;
}

.role-card {
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 3%);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.role-card img { width: 34px; height: 34px; }
.role-card h3 { font-size: 16px; }
.role-card p { font-size: 13.5px; }

.role-card__more {
  margin-top: auto;
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 500;
}

.role-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 6px 18px rgb(16 24 40 / 8%);
  transform: translateY(-2px);
}

/* ── Секция с сеткой карточек ───────────────────────────────────────────────
   Заголовок сверху, карточки снизу — в отличие от .split, где текст и
   иллюстрация стоят рядом. */
.grid-section .section-head { margin-bottom: 32px; }

/* ── Подвал в четыре колонки (мок «Сайт») ──────────────────────────────── */
.site-footer {
  display: block;
  padding: 52px var(--page-pad) 0;
  border-top: 1px solid var(--gray-150);
}

.site-footer__cols {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr));
  gap: 48px;
  padding-bottom: 44px;
}

.site-footer__brand p {
  margin: 14px 0 0;
  max-width: 300px;
  color: var(--gray-600);
  font-size: 13.5px;
  line-height: 1.6;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.site-footer__title {
  color: var(--gray-600);
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__col a {
  color: var(--gray-800);
  font-size: 13.5px;
  text-decoration: none;
}

.site-footer__col a:hover { color: var(--black); text-decoration: underline; }

.site-footer__legal {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--gray-150);
  flex-wrap: wrap;
  color: var(--gray-600);
  font-size: 12.5px;
}

.site-footer__note { margin-left: auto; }

.mono { font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace); }

@media (max-width: 860px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .site-footer__note { margin-left: 0; }
  .promise { border-radius: 12px; }
}

/* ── Нумерованный надзаголовок раздела ──────────────────────────────────────
   «01 · Проблема»: номер цветом акцента, остальное — как обычный надзаголовок
   (мок «Сайт», разделы 01–04). */
.eyebrow__num {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* ── Шаг последовательности ─────────────────────────────────────────────────
   Там, где порядок важен (установка, привязка, разбор по шагам), карточка
   несёт номер, а не иконку. Единый вид на всех страницах. */
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  background: var(--white);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--gray-075);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.step p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── Карточка со списком ────────────────────────────────────────────────────
   Четвёртый жанр карточки: категория, иконка, заголовок и несколько пунктов
   (страница производителей — «Продукт / Поддержка / Инженерия»). От карточки
   с иконкой отличается тем, что содержимое — перечень, а не абзац. */
.list-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  background: var(--white);
}

.list-card__label {
  color: var(--gray-600);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.list-card__icon { width: 34px; height: 34px; }

.list-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.list-card__items {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--gray-600);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── Витрина консоли в шапке главной ────────────────────────────────────────
   Три экрана сменяют друг друга по кругу (15 с на цикл, по 5 с на экран).
   Всё на CSS-анимации: без скриптов, при выключенной анимации в системе
   остаётся первый экран. Размеры и цвета — из мока «Сайт», раздел 12a. */
.demo { min-width: 0; }

.demo__frame {
  border: 1px solid var(--gray-150);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 50px rgb(16 24 40 / 10%);
  overflow: hidden;
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-150);
  background: #fafafa;
}

.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: #e4e4e4; }

.demo__url {
  margin-left: 10px;
  color: #9aa4b2;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 10.5px;
}

.demo__screens { position: relative; height: 268px; }

.demo__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  animation: demoSlide 15s infinite;
}

.demo__screen--2 { animation-delay: -10s; opacity: 0; }
.demo__screen--3 { animation-delay: -5s; opacity: 0; }

@keyframes demoSlide {
  0%   { opacity: 1; visibility: visible; }
  30%  { opacity: 1; }
  36%  { opacity: 0; visibility: hidden; }
  94%  { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}

.demo__row { display: flex; align-items: center; gap: 8px; }
.demo__title { color: #14181f; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.demo__sum { margin-left: auto; color: #14181f; font-size: 12px; font-weight: 600; }

.demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f3f7;
  color: #687586;
  font-size: 10px;
  font-weight: 600;
}

.demo__badge--green { background: #e3f7ec; color: #0a9d54; font-family: var(--mono, ui-monospace, monospace); }
.demo__led { width: 6px; height: 6px; border-radius: 50%; background: #9aa4b2; flex: none; }
.demo__badge--green .demo__led,
.demo__led--green { background: #0a9d54; }

.demo__btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 6px;
  background: var(--accent-ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}

.demo__btn--wide { margin-left: 0; flex: 1; justify-content: center; }
.demo__btn--ghost { margin-left: 0; border: 1px solid #d6dae2; background: var(--white); color: #14181f; font-weight: 500; }

.demo__addr {
  align-self: flex-start;
  padding: 2px 7px;
  border: 1px solid #0a9d54;
  border-radius: 5px;
  background: #e3f7ec;
  color: #14181f;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 11px;
}

.demo__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.demo__box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--gray-150);
  border-radius: 8px;
}

.demo__key {
  color: #9aa4b2;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo__val { color: #14181f; font-size: 14px; font-weight: 600; }

.demo__panel { border: 1px solid var(--gray-150); border-radius: 8px; overflow: hidden; }

.demo__line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid #f1f3f7;
}

.demo__line--last { border-bottom: none; }
.demo__name { flex: 1; color: #14181f; font-size: 11.5px; font-weight: 600; }

.demo__toggle { position: relative; width: 30px; height: 17px; border-radius: 999px; background: #e8e8e8; flex: none; }
.demo__toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #b9b9b9; }
.demo__toggle--on { background: #0a9d54; }
.demo__toggle--on::after { left: 15px; background: var(--white); }

.demo__time, .demo__src, .demo__event, .demo__till {
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 10.5px;
}

.demo__time { color: #9aa4b2; }
.demo__src { color: var(--accent-ink); }
.demo__event { color: #14181f; }
.demo__src--muted, .demo__event--muted { color: #687586; }
.demo__till { margin-left: auto; color: #687586; }

.demo__log { display: flex; flex-direction: column; gap: 5px; }
.demo__log > span { display: flex; gap: 7px; }

.demo__bubble {
  align-self: flex-start;
  max-width: 88%;
  padding: 7px 11px;
  border: 1px solid var(--gray-150);
  border-radius: 9px;
  background: #f8fafc;
  color: #14181f;
  font-size: 12px;
  line-height: 1.45;
}

.demo__bubble--me { align-self: flex-end; border-color: transparent; background: #eef0fe; }

.demo__sign {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid #d6dae2;
  border-radius: 9px;
  background: #fdfdfe;
}

.demo__sign-title { color: #14181f; font-size: 12px; font-weight: 600; }

.demo__sign-sub {
  color: #687586;
  font-family: var(--mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 10.5px;
}

.demo__sign-actions { display: flex; gap: 7px; }

.demo__input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo__input > span:first-child {
  flex: 1;
  padding: 7px 11px;
  border: 1px solid #d6dae2;
  border-radius: 8px;
  color: #9aa4b2;
  font-size: 11.5px;
}

.demo__send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-ink);
  color: var(--white);
  font-size: 12px;
}

.demo__avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef0fe;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
}

.demo__tabs { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }

.demo__tab {
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  animation: demoTab 15s infinite;
}

.demo__tab--2 { animation-delay: -10s; }
.demo__tab--3 { animation-delay: -5s; }

@keyframes demoTab {
  0%   { color: var(--black); border-color: #b9b9b9; }
  30%  { color: var(--black); border-color: #b9b9b9; }
  36%  { color: #b0b0b0; border-color: transparent; }
  94%  { color: #b0b0b0; border-color: transparent; }
  100% { color: var(--black); border-color: #b9b9b9; }
}

/* Анимация выключена в системе — показываем первый экран и его подпись. */
@media (prefers-reduced-motion: reduce) {
  .demo__screen, .demo__tab { animation: none; }
  .demo__screen--2, .demo__screen--3 { display: none; }
  .demo__tab { color: #b0b0b0; }
  .demo__tab--1 { color: var(--black); border-color: #b9b9b9; }
}

/* Полоса цифр под шапкой главной: две крупные величины с пояснением. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-top: 0;
}

.facts > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.facts span:last-child { color: var(--gray-600); font-size: 14px; line-height: 1.6; }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 24px; }
}
