/*
  Общие страницы hi.datool.ru (apps/users/info_views.py, шаблоны hi/info_base.html,
  hi/soon_base.html и страницы на их основе): о компании, реквизиты, контакты,
  способы оплаты и описания продуктов «скоро» (сборщики, автопостинг, ИИ); призыв .info-cta берёт и страница MCP (mcp-page.css).

  Основа — стили вёрстки: текстовая страница (text-page.css) и карточки витрины
  (storefront.css). Здесь только то, чего в них нет. Цвета — переменные темы
  (--bp-ink, --bp-muted, --line, --bp-surface, --brand, --text-purple), поэтому
  тёмная тема работает сама. Сделано «на усмотрение» 09.10.2026 — будет меняться.
*/

/* 1. Боковое меню текстовой страницы: текущий пункт — цветом бренда и жирным */
.text-page__toc a[aria-current="page"] { color: var(--text-purple); font-weight: 700; }

/* 2. Метка «скоро» у заголовка продукта и в карточках (как .plans-soon у тарифов) */
.info-soon {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bp-hover);
  color: var(--text-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  vertical-align: middle;
}
.sf-heading h1 .info-soon { margin-left: 10px; font-size: 14px; letter-spacing: 0; }

/* 3. Список «подпись — значение» (контакты, реквизиты): две колонки, на телефоне — одна */
.info-list { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); margin: 0 0 24px; border-top: 1px solid var(--line); }
.info-list dt, .info-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list dt { padding-right: 16px; color: var(--bp-muted); font-size: 15px; }
.info-list dd { color: var(--bp-ink); overflow-wrap: anywhere; }
/* Номера счетов и ИНН — цифрами одной ширины: их сверяют глазами */
.info-list dd.info-list__number { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.info-list dd small { display: block; margin-top: 4px; color: var(--bp-muted); font-size: 14px; }

/* 4. Страницы продуктов «скоро» (hi/soon_base.html) */
.info-product .sf-feature-grid { margin-bottom: 28px; }
.info-product .sf-feature-card { gap: 12px; padding: 26px; }
.info-product .sf-feature-card h2 { font-size: 21px; line-height: 1.3; }
.info-product .sf-feature-card:hover { border-color: var(--line); }
.info-product .sf-editorial { max-width: none; margin-top: 0; margin-bottom: 28px; }
.info-product .sf-editorial h2 { scroll-margin-top: 24px; }
.info-product .sf-editorial ol, .info-product .sf-editorial ul { margin: 0 0 16px; padding-left: 24px; line-height: 1.7; color: var(--bp-ink-2); }
.info-product .sf-editorial ol { list-style: decimal; }
.info-product .sf-editorial ul { list-style: disc; }
.info-product .sf-editorial li + li { margin-top: 6px; }
.info-product .sf-editorial a { color: var(--text-purple); text-decoration: underline; text-underline-offset: 3px; }
.info-product .sf-editorial a:hover { text-decoration: none; }
.info-product .sf-editorial > :last-child { margin-bottom: 0; }

/* 5. Модели ИИ (hi/ai.html): у каждой карточки свой якорь — на них ведёт подвал «ИИ без VPN» */
.info-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0 0 28px; }
.info-model { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bp-surface); scroll-margin-top: 24px; }
.info-model h3 { margin: 0 0 8px; color: var(--bp-ink); font-size: 19px; line-height: 1.3; }
.info-model p { margin: 0; color: var(--bp-muted); font-size: 15px; line-height: 1.55; }
/* Карточка, на которую пришли по якорю, подсвечена рамкой бренда */
.info-model:target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* 6. Призыв в конце страницы: текст слева, кнопки справа */
.info-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bp-surface); }
.info-cta h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.info-cta p { margin: 0; color: var(--bp-muted); line-height: 1.6; max-width: 640px; }
.info-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.info-cta__actions .auth-submit { width: auto; }

@media (max-width: 680px) {
  .info-list { grid-template-columns: minmax(0, 1fr); }
  .info-list dt { padding-bottom: 0; border-bottom: 0; }
  .info-list dd { padding-top: 4px; }
  .info-cta { padding: 22px; }
  .info-cta__actions { width: 100%; }
  .info-cta__actions a { flex: 1 1 auto; }
}
/* Страница «Поддержка» (0.131.0, templates/support/page.html): форма в одну колонку */
.support-form { display: grid; gap: 16px; max-width: 560px; margin: 8px 0 32px; }
.support-form__field { display: grid; gap: 6px; }
.support-form__label { font-size: 14px; font-weight: 600; }
.support-form__field select, .support-form__field input, .support-form__field textarea { width: 100%; }
.support-form .auth-submit { justify-self: start; }
/* Ловушка для роботов: человеку не видна и не попадает под Tab */
.support-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Справка «Тарифы и пакеты» (0.132.0, templates/hi/help_tariffs.html): таблицы, на телефоне — прокрутка вбок */
.help-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.help-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.help-table th, .help-table td { padding: 10px 12px; border-bottom: 1px solid var(--bp-line); text-align: left; vertical-align: top; }
.help-table thead th { color: var(--bp-muted); font-weight: 600; }
