/* ─────────────────────────────────────────────────────────────────────────
 * site_chrome.css — единый хедер и футер для ВСЕХ поверхностей Advizz:
 * лендинги (/, /ai-sales-assistant, /try) и внутренние страницы (/admin/*).
 * Разметка — partial-шаблоны _site_header.html / _site_footer.html.
 *
 * Классы намеренно в собственном namespace `.site-*` / `.sf-*`, чтобы не
 * конфликтовать с Bootstrap в админке (там свои .nav/.btn/.brand) и с
 * инлайновыми стилями лендингов. Дизайн-токены (--emerald/--ink/--line/…)
 * определены в :root каждой страницы (landing.css / landing_advixi inline /
 * admin/base.html), здесь мы их только используем — новых не вводим.
 * ───────────────────────────────────────────────────────────────────────── */

/* Общий контейнер хрома (max-width как у advixi .shell). */
.site-shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ──────────────────────────────────────── header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 255, 254, .85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line, #e6efe9);
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.site-brand {
  display: inline-flex; align-items: center; height: 52px;
  text-decoration: none;
}
.site-brand img { height: 100%; width: auto; display: block; }
.site-nav-right { display: flex; align-items: center; gap: 32px; }
.site-nav-links { display: flex; gap: 26px; font-size: 14px; }
.site-nav-links a {
  color: var(--ink-60, #355a4c); text-decoration: none; transition: color .15s;
}
.site-nav-links a:hover { color: var(--ink, #0d2e22); }

/* Публичный CTA — emerald pill. */
.site-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald, #10b981); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .6);
  transition: background .2s, transform .15s;
}
.site-cta:hover { background: var(--deep, #059669); color: #fff; transform: translateY(-1px); }
.site-cta .arr { transition: transform .15s; }
.site-cta:hover .arr { transform: translateX(3px); }

/* Внутренний вариант — «My account» (текст-ссылка, не CTA). */
.site-navlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink, #0d2e22); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
.site-navlink:hover { color: var(--deep, #059669); }

/* ──────────────────────────────────────── footer */
.site-footer {
  padding: 72px 0 40px;
  background: #f2ede2;
  border-top: none;
  --ft-head:  #18281e;
  --ft-link:  #6e8276;
  --ft-faint: #a3b0a2;
  --ft-line:  rgba(24, 40, 30, .12);
}
.sf-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.sf-brand-col .site-brand { height: 30px; margin-bottom: 30px; }
.sf-company { font-size: 18px; font-weight: 700; color: var(--ft-head); letter-spacing: -.01em; margin-bottom: 18px; }
.sf-addr { font-size: 15px; line-height: 1.7; color: var(--ft-link); font-style: normal; }
.sf-col h4 { font-size: 15px; font-weight: 700; color: var(--ft-head); margin: 2px 0 22px; letter-spacing: -.01em; }
.sf-col a { display: block; font-size: 15px; color: var(--ft-link); margin-bottom: 18px; text-decoration: none; transition: color .15s; width: fit-content; }
.sf-col a:hover { color: var(--ft-head); }
.sf-rule { height: 1px; background: var(--ft-line); margin: 48px 0 26px; }
.sf-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sf-copy { font-family: var(--type-mono, ui-monospace, monospace); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ft-link); }
.sf-copy b { color: var(--ft-head); font-weight: 700; }
.sf-social { display: flex; gap: 16px; align-items: center; }
.sf-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--ft-line);
  color: var(--ft-link);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s, background .15s;
}
.sf-social a:hover { color: var(--ft-head); border-color: rgba(24, 40, 30, .3); background: rgba(24, 40, 30, .03); }
.sf-social svg { width: 17px; height: 17px; display: block; }
.sf-disc { margin-top: 28px; padding-top: 30px; border-top: 1px solid var(--ft-line); }
.sf-disc p { font-size: 14px; line-height: 1.75; color: var(--ft-faint); margin: 0; max-width: 100%; text-wrap: pretty; }

/* ──────────────────────────────────────── responsive */
@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .sf-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-shell { padding: 0 20px; }
  .site-nav-links { display: none; }
}
