/* ============================================================
   Связь — светлая тема, яркие акценты
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:             #ffffff;
  --bg-soft:        #f8fafc;
  --bg-alt:         #f1f5f9;

  --glass-bg:       #ffffff;
  --glass-bg-2:     #f8fafc;
  --glass-border:   #e2e8f0;
  --glass-border-2: #cbd5e1;
  --glass-shine:    rgba(255, 255, 255, 0.9);
  --glass-blur:     blur(20px) saturate(180%);

  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-dim:       rgba(15, 23, 42, 0.35);

  --accent:         #2563eb;
  --accent-2:       #7c3aed;
  --accent-cyan:    #0891b2;
  --accent-pink:    #db2777;
  --accent-hover:   #1d4ed8;
  --accent-glow:    rgba(37, 99, 235, 0.25);
  --accent-dim:     rgba(37, 99, 235, 0.1);

  --radius:         14px;
  --radius-sm:      10px;
  --font:           "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max:            1120px;

  --shadow-card:    0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover:   0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-glass:     0 8px 32px rgba(15, 23, 42, 0.08);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

/* Яркие пятна на белом */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 85% 65% at 5% 8%,   rgba(37, 99, 235, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 95% 15%,  rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 88% 88%,  rgba(8, 145, 178, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 12% 92%,  rgba(219, 39, 119, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 45%,  rgba(245, 158, 11, 0.06) 0%, transparent 55%),
    var(--bg);
  pointer-events: none;
  animation: meshPulse 20s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.92; }
  100% { opacity: 1; }
}

/* ── Utilities ───────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Glass mixin ─────────────────────────────────────────────── */
.glass,
.card,
.site-header,
.chat-wrap,
.chat-header,
.chat-form,
.support-contact-card,
.support-toc,
.network-card,
.fed-node,
.setup-steps,
.setup-step,
.fed-analogy-col,
.table-wrap,
.faq-section--cta,
.pre-block,
.cta-strip {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 8px 32px rgba(15, 23, 42, 0.06) !important;
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: rgba(37, 99, 235, 0.08) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.95), 0 12px 40px rgba(15, 23, 42, 0.08) !important;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover { color: var(--text); transform: translateY(-1px); }

.logo-img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.logo:hover .logo-img {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover {
  color: var(--text);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: translateY(-1px);
}
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(37, 99, 235, 0.22);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.25s ease, border-color 0.25s ease, color 0.2s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  border-color: var(--glass-border-2);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 68%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 45%, #7c3aed 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 30px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Sections ────────────────────────────────────────────────── */
section { padding: 56px 0; }

section.alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--glass-border);
}

section.pillars { padding: 0 0 48px; }

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 32px;
  line-height: 1.7;
}

/* ── Cards ───────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.12);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card--pillar { text-align: center; }
.pillar-icon { font-size: 2rem; margin-bottom: 14px; line-height: 1; }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  margin-top: 24px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.compare th,
.compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
  min-width: 120px;
}

.compare th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--bg-alt);
}

.compare tr:last-child td { border-bottom: none; }

.compare td:first-child {
  color: var(--text);
  font-weight: 500;
}

.compare .col-proto {
  color: var(--accent);
}
.compare tr:hover td { background: rgba(37, 99, 235, 0.04); }

/* ── Feature list ────────────────────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ── Pre block ───────────────────────────────────────────────── */
.pre-block {
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #334155;
  background: var(--bg-alt) !important;
  white-space: pre;
  margin: 0;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form { max-width: 480px; }
.form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.form--support { max-width: 100%; }

/* ── Screenshots Gallery ─────────────────────────────────────── */
.screenshots-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding-inline: 20px;
}
.screenshots-gallery::-webkit-scrollbar {
  display: none;
}
.screenshot-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 4px solid #fff;
  transition: transform 0.3s ease;
}
.screenshot-item:hover {
  transform: translateY(-4px);
}
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .screenshot-item {
    width: 180px;
  }
}

/* ── CTA strip ───────────────────────────────────────────────── */
.cta-strip {
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.07), rgba(8, 145, 178, 0.06)) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow: var(--shadow-card), 0 0 48px rgba(37, 99, 235, 0.1) !important;
}
.cta-strip h2 { margin-bottom: 10px; }
.cta-strip p { color: var(--text-muted); margin: 0 0 22px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 48px;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-copy { font-size: 0.83rem; color: var(--text-muted); max-width: 480px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }

/* ── Layout helpers ──────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .nav { justify-content: flex-end; }
}

/* ── Security / flow ─────────────────────────────────────────── */
.security-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.flow-step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.3);
  box-shadow: 0 0 16px var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.flow-text strong { display: block; font-size: 0.92rem; margin-bottom: 6px; }
.flow-text p { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.flow-arrow { font-size: 1.2rem; color: var(--text-dim); align-self: center; padding-top: 4px; }
@media (max-width: 640px) {
  .flow-arrow { display: none; }
  .security-flow { flex-direction: column; }
}

/* ── Principles ──────────────────────────────────────────────── */
.principles { display: flex; flex-direction: column; gap: 0; }

.principle-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s;
}
.principle-item:last-child { border-bottom: none; }
.principle-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.18);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  padding-top: 4px;
}
.principle-item h3 { margin: 0 0 8px; font-size: 1rem; color: var(--text); }
.principle-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Network block ───────────────────────────────────────────── */
.network-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin: 28px 0;
}
@media (max-width: 700px) {
  .network-options { grid-template-columns: 1fr; }
  .network-divider { text-align: center; padding: 8px 0; }
}
.network-card {
  border-radius: var(--radius);
  padding: 24px;
}
.network-card--highlight {
  border-color: rgba(37,99,235,0.3) !important;
  background: linear-gradient(135deg, rgba(37,99,235,0.07), var(--glass-bg)) !important;
  box-shadow: var(--shadow-card), 0 0 32px rgba(37,99,235,0.06) !important;
}
.network-icon { font-size: 1.75rem; margin-bottom: 10px; line-height: 1; }
.network-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.network-sub { font-size: 0.8rem; color: var(--text-muted); }
.network-divider {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.network-divider span { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.network-schema {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 12px 0 20px;
  padding: 20px;
  border-radius: var(--radius);
}
.ns-node {
  text-align: center;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  line-height: 1.4;
}
.ns-node span { display: block; font-size: 0.73rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.ns-node--your { border-color: rgba(37,99,235,0.4); color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.ns-node--fed  { border-color: rgba(5, 150, 105, 0.4); color: #059669; box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15); }
.ns-node--other { color: var(--text-muted); }
.ns-arrow { font-size: 1rem; color: var(--text-dim); padding: 0 10px; }
.network-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(37,99,235,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: var(--glass-blur);
}

/* ── AI Chat ─────────────────────────────────────────────────── */
.chat-page { display: flex; flex-direction: column; min-height: 100vh; }

.chat-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 20px;
}

.chat-wrap {
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  height: calc(100vh - 64px - 32px - 32px - 120px);
  min-height: 480px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
  flex-shrink: 0;
}

.chat-agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #db2777);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.chat-agent-name { font-weight: 600; font-size: 0.95rem; }
.chat-agent-status { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.chat-online-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: var(--bg-soft);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 78%;
}
.chat-msg--bot  { align-items: flex-start; align-self: flex-start; }
.chat-msg--user { align-items: flex-end;   align-self: flex-end; }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
}
.chat-msg--bot .chat-bubble {
  background: var(--glass-bg-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.chat-time { font-size: 0.72rem; color: var(--text-dim); padding: 0 4px; }

.chat-msg--typing .chat-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px;
}
.chat-pill {
  font: inherit;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.chat-pill:hover {
  border-color: rgba(37,99,235,0.4);
  color: var(--accent);
  background: var(--accent-dim);
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--glass-border);
  border-radius: 0;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-input::placeholder { color: var(--text-muted); }
.chat-input:focus {
  outline: none;
  border-color: rgba(37,99,235,0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.chat-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.chat-send:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  transform: scale(1.05);
}

/* ── Support / FAQ ───────────────────────────────────────────── */
.support-page { display: flex; flex-direction: column; min-height: 100vh; }

.support-page .support-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--glass-border);
}

.support-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 10px;
}
.support-hero h1 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin: 0 0 16px; letter-spacing: -0.02em; }
.support-intro { color: var(--text-muted); max-width: 680px; margin: 0 0 24px; line-height: 1.7; }

.support-search-wrap { max-width: 540px; margin-bottom: 16px; }
.support-search {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.support-search::placeholder { color: var(--text-muted); }
.support-search:focus {
  outline: none;
  border-color: rgba(37,99,235,0.5);
  box-shadow: var(--shadow-card), 0 0 0 3px var(--accent-dim);
}
.support-search-hint { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0 0; }

.support-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.support-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: all 0.15s;
}
.support-chip:hover { color: var(--accent); border-color: rgba(37,99,235,0.35); background: var(--accent-dim); }

.support-contacts-bar { padding: 20px 0; border-bottom: 1px solid var(--glass-border); }
.support-contacts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.support-contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.15s;
}
.support-contact-card:hover {
  color: var(--text);
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.support-contact-title { font-weight: 600; font-size: 0.92rem; }
.support-contact-meta { font-size: 0.78rem; color: var(--text-muted); }

.support-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; gap: 24px; }
  .support-sidebar { position: static !important; }
}

.support-sidebar { position: sticky; top: 80px; }
.support-toc {
  padding: 16px;
  border-radius: var(--radius);
}
.support-toc-title { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 12px; }
.support-toc ul { list-style: none; }
.support-toc li { margin-bottom: 4px; }
.support-toc a { font-size: 0.88rem; color: var(--text-muted); display: block; padding: 6px 0; }
.support-toc a:hover { color: var(--accent); }

.support-content { min-width: 0; }

.faq-section { margin-bottom: 48px; scroll-margin-top: 88px; }
.faq-section h2 { padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.faq-item { margin-bottom: 28px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.faq-item code {
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: ui-monospace, monospace;
}
.faq-section--cta {
  padding: 28px;
  border-radius: var(--radius);
}

/* ── Federation page ─────────────────────────────────────────── */
.fed-analogy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}
@media (max-width: 640px) {
  .fed-analogy { grid-template-columns: 1fr; text-align: center; }
  .fed-analogy-eq { font-size: 1.5rem; }
}
.fed-analogy-col {
  padding: 24px;
  border-radius: var(--radius);
}
.fed-analogy-col--accent {
  border-color: rgba(37,99,235,0.3) !important;
  background: linear-gradient(135deg, rgba(37,99,235,0.07), var(--glass-bg)) !important;
  box-shadow: var(--shadow-card), 0 0 28px rgba(37,99,235,0.06) !important;
}
.fed-analogy-icon { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.fed-analogy-title { font-weight: 600; margin: 0 0 6px; font-size: 0.92rem; }
.fed-analogy-text { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.fed-analogy-eq { font-size: 2rem; color: var(--text-dim); text-align: center; font-weight: 300; }

.fed-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 16px;
  padding: 32px 24px;
  border-radius: var(--radius);
  gap: 0;
}
.fed-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  gap: 6px;
  min-width: 130px;
}
.fed-node--you {
  border-color: rgba(37,99,235,0.45) !important;
  background: rgba(37,99,235,0.08) !important;
  box-shadow: var(--shadow-card), 0 0 24px var(--accent-glow) !important;
}
.fed-node--other { }
.fed-node-icon { font-size: 1.5rem; line-height: 1; }
.fed-node strong { font-size: 0.88rem; color: var(--text); }
.fed-node span { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }

.fed-lines { display: flex; align-items: center; padding: 0 16px; }
.fed-line {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--glass-border), rgba(37,99,235,0.35));
}
.fed-center-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px;
  border-radius: 50%;
  width: 120px; height: 120px;
  justify-content: center;
  gap: 4px;
  border: 2px solid rgba(37,99,235,0.35) !important;
  background: radial-gradient(circle, rgba(37,99,235,0.1), rgba(37,99,235,0.02)) !important;
  box-shadow: 0 0 32px rgba(37,99,235,0.12), inset 0 0 20px rgba(37,99,235,0.05) !important;
}
.fed-center-icon { font-size: 1.4rem; line-height: 1; }
.fed-center-node strong { font-size: 0.82rem; color: var(--text); }
.fed-center-node span { font-size: 0.7rem; color: var(--text-muted); }

.fed-others { display: flex; flex-direction: column; gap: 12px; padding-left: 8px; }
.fed-caption { font-size: 0.83rem; color: var(--text-muted); text-align: center; max-width: 540px; margin: 0 auto; line-height: 1.65; }

@media (max-width: 760px) {
  .fed-diagram { flex-direction: column; gap: 12px; }
  .fed-lines { flex-direction: column; padding: 8px 0; }
  .fed-line { width: 2px; height: 24px; background: linear-gradient(180deg, var(--glass-border), rgba(37,99,235,0.35)); }
  .fed-others { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0; }
}

.setup-steps {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0 20px;
}
.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s;
}
.setup-step:last-child { border-bottom: none; }
.setup-step:hover { background: rgba(37, 99, 235, 0.04); }
.setup-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(37,99,235,0.3);
  box-shadow: 0 0 14px var(--accent-glow);
  color: var(--accent);
  font-weight: 700; font-size: 0.88rem;
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.setup-text strong { display: block; margin-bottom: 4px; font-size: 0.92rem; }
.setup-text p { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }
.fed-setup-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 3px solid rgba(37,99,235,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.65;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════
   Motion — умеренно, премиальное easing
   ═══════════════════════════════════════════════════════════════ */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.motion-ok body::before {
  animation: meshPulse 22s ease-in-out infinite alternate;
}

html.motion-ok .hero-appear {
  opacity: 0;
  animation: heroFadeUp 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.motion-ok .hero-appear:nth-child(1) { animation-delay: 0.04s; }
html.motion-ok .hero-appear:nth-child(2) { animation-delay: 0.12s; }
html.motion-ok .hero-appear:nth-child(3) { animation-delay: 0.2s; }
html.motion-ok .hero-appear:nth-child(4) { animation-delay: 0.28s; }
html.motion-ok .hero-appear:nth-child(5) { animation-delay: 0.36s; }
html.motion-ok .hero-appear:nth-child(6) { animation-delay: 0.44s; }

html.motion-ok [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

html.motion-ok [data-reveal] {
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.motion-ok [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

html.motion-ok .cta-strip .btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
}

@media (prefers-reduced-motion: reduce) {
  html.reduce-motion *,
  html.reduce-motion *::before,
  html.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.reduce-motion body::before {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Явные анимации (data-ai / data-ai-delay)
   ═══════════════════════════════════════════════════════════════ */

html.motion-ok [data-ai] {
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s ease;
  transition-delay: var(--ai-delay, 0s);
  will-change: opacity, transform;
}

html.motion-ok [data-ai]:not(.is-ai-visible) {
  opacity: 0;
}

html.motion-ok [data-ai="fade-up"]:not(.is-ai-visible) {
  transform: translateY(26px);
}

html.motion-ok [data-ai="scale-in"]:not(.is-ai-visible) {
  transform: scale(0.94);
}

html.motion-ok [data-ai="slide-left"]:not(.is-ai-visible) {
  transform: translateX(-20px);
}

html.motion-ok [data-ai="slide-right"]:not(.is-ai-visible) {
  transform: translateX(20px);
}

html.motion-ok [data-ai="blur-in"]:not(.is-ai-visible) {
  filter: blur(6px);
  transform: translateY(12px);
}

html.motion-ok [data-ai].is-ai-visible {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

/* Лёгкий акцент на иконках после появления */
html.motion-ok [data-ai].is-ai-visible .pillar-icon,
html.motion-ok [data-ai].is-ai-visible .fed-analogy-icon {
  animation: iconPop 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--ai-delay, 0s) + 0.15s);
}

@keyframes iconPop {
  0% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

