:root {
  --bg: #07070a;
  --bg-2: #0d0d13;
  --panel: rgba(18, 18, 23, .76);
  --panel-strong: #121217;
  --panel-soft: rgba(255, 255, 255, .055);
  --ink: #f5f5f7;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --warm: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 26px 80px rgba(0,0,0,.42);
  --glow: 0 0 60px rgba(124,58,237,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(124,58,237,.26), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(245,158,11,.14), transparent 28rem),
    linear-gradient(180deg, #07070a 0%, #0a0a0f 45%, #07070a 100%);
  color: var(--ink);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 72%);
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(7,7,10,.68);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 0;
}

.brand:before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  box-shadow: 0 0 34px rgba(124,58,237,.42);
}

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

.nav-links a,
.account-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
  padding: 0 12px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.account-pill {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent), #fff 24%);
  background: color-mix(in srgb, var(--accent), transparent 72%);
  cursor: pointer;
  font: inherit;
}

.account-pill:hover {
  border-color: color-mix(in srgb, var(--accent), #fff 46%);
  background: color-mix(in srgb, var(--accent), transparent 58%);
}

.mobile-account-pill {
  display: none;
}

.account-menu {
  position: fixed;
  top: 72px;
  right: max(18px, calc((100vw - 1180px) / 2));
  z-index: 60;
  width: min(300px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent), transparent 72%), transparent 36%),
    rgba(18,18,23,.98);
  padding: 16px;
  box-shadow: var(--shadow);
}

.account-menu[hidden] { display: none; }
.account-menu strong { color: var(--ink); font-size: 18px; }
.account-menu span { color: var(--muted); font-size: 14px; }
.account-menu button,
.account-menu a {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,.045);
}

.nav-links a[href="/app"],
.nav-links a[href^="/app?"] {
  display: none;
}

.button,
button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 46px rgba(124,58,237,.32);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  overflow: hidden;
}

.button:after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 5s ease-in-out infinite;
}

.button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 56px rgba(124,58,237,.44);
}

.button.secondary {
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.button.secondary:after,
.button.ghost:after { display: none; }

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}

.button.dark { background: var(--panel-strong); border: 1px solid var(--line); }

.hero-cta {
  min-height: 60px;
  border-radius: 20px;
  padding: 0 30px;
  font-size: 18px;
}

@keyframes shimmer {
  0%, 55% { transform: translateX(0) rotate(18deg); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateX(520%) rotate(18deg); opacity: 0; }
}

.hero {
  min-height: 720px;
  padding: 92px max(20px, calc((100vw - 1180px) / 2)) 58px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  top: 110px;
  width: min(44vw, 560px);
  height: 420px;
  background: radial-gradient(circle, rgba(124,58,237,.34), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite;
}

.hero.compact { min-height: auto; padding-top: 70px; }
.hero.light { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 54px;
  align-items: center;
}

.hero-grid.single-grid {
  grid-template-columns: minmax(0, 900px);
}

.hero h1 {
  font-size: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #d6ccff;
  font-weight: 850;
  font-size: 13px;
}

.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 18px rgba(245,158,11,.8);
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: rgba(245,245,247,.72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.56;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  padding: 8px 10px;
}

.messenger-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.messenger-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(18,18,23,.72);
  color: rgba(245,245,247,.9);
  font-weight: 850;
  box-shadow: 0 18px 54px rgba(0,0,0,.22);
}

.messenger-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 22px rgba(0,0,0,.25);
}

.messenger-icon.logo-only {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.messenger-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.max-pill {
  padding-right: 9px;
}

.max-pill .messenger-icon {
  width: 58px;
  flex-basis: 58px;
}

.messenger-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.messenger-icon.telegram {
  background: linear-gradient(135deg, #35a8e8, #168bd4);
}

.messenger-icon.telegram svg path:first-child,
.messenger-icon.whatsapp svg path:first-child {
  fill: rgba(255,255,255,.2);
}

.messenger-icon.max {
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.42), transparent 30%),
    linear-gradient(135deg, #3b82f6, #7c3aed 54%, #f59e0b);
  font-size: 10px;
  letter-spacing: .4px;
  font-weight: 950;
}

.messenger-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.messenger-icon.site {
  background:
    radial-gradient(circle at 30% 20%, rgba(245,158,11,.55), transparent 36%),
    linear-gradient(135deg, rgba(124,58,237,.95), rgba(20,184,166,.9));
}

.b2b-live-section {
  padding-top: 54px;
}

.b2b-live-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.demo-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: none;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.demo-tabs::-webkit-scrollbar {
  display: none;
}

.demo-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  padding: 0 13px;
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.demo-tabs button:hover,
.demo-tabs button.active {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent), #fff 50%);
  background: color-mix(in srgb, var(--accent), transparent 78%);
}

.b2b-live-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 34px minmax(0, .9fr) 34px minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(124,58,237,.25), transparent 26rem),
    radial-gradient(circle at 82% 70%, rgba(245,158,11,.12), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.026));
  box-shadow: 0 28px 88px rgba(0,0,0,.28);
}

.b2b-live-demo:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0 48%, transparent 82%);
  opacity: .45;
}

.demo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12,12,18,.72);
  overflow: hidden;
}

.demo-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.demo-panel-head span {
  font-weight: 950;
}

.demo-panel-head small {
  color: var(--muted);
  font-weight: 850;
}

.demo-chat,
.knowledge-stack,
.manager-panel {
  min-width: 0;
}

.demo-chat {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
}

.demo-message {
  max-width: 92%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: #f1f1f6;
  padding: 13px 14px;
  line-height: 1.45;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
  animation: demoMessageIn 7.5s ease-in-out infinite;
}

.demo-message.user {
  justify-self: end;
  border-color: color-mix(in srgb, var(--accent), #fff 50%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), #000 12%), #5b21b6);
}

.demo-message.bot {
  justify-self: start;
  animation-delay: .7s;
}

.demo-message.compact {
  max-width: 78%;
  animation-delay: 1.4s;
}

.demo-flow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.demo-flow:before {
  content: "";
  width: 2px;
  height: 78%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(167,139,250,.58), transparent);
}

.demo-flow span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 24px rgba(245,158,11,.78);
  animation: flowDot 2.8s ease-in-out infinite;
}

.demo-flow span:last-child {
  animation-delay: 1.35s;
}

.knowledge-stack {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
}

.knowledge-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  padding: 13px;
  line-height: 1.4;
  animation: kbPulse 7.5s ease-in-out infinite;
}

.knowledge-card.active {
  border-color: color-mix(in srgb, var(--accent), #fff 48%);
  background:
    radial-gradient(circle at 14% 20%, color-mix(in srgb, var(--accent), transparent 66%), transparent 42%),
    rgba(255,255,255,.06);
  color: #fff;
}

.knowledge-card:nth-child(2) { animation-delay: .6s; }
.knowledge-card:nth-child(3) { animation-delay: 1.2s; }

.manager-panel {
  grid-template-rows: auto auto 1fr;
}

.lead-card,
.unfinished-card {
  position: relative;
  margin: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 10%, rgba(20,184,166,.20), transparent 40%),
    rgba(255,255,255,.055);
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.lead-card {
  animation: leadArrive 7.5s ease-in-out infinite;
}

.lead-card > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.lead-card strong,
.unfinished-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.lead-card small {
  flex: 0 0 auto;
  border: 1px solid rgba(34,197,94,.34);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34,197,94,.10);
  padding: 5px 8px;
  font-weight: 850;
}

.lead-card p {
  margin: 12px 0 0;
  color: rgba(245,245,247,.74);
  line-height: 1.48;
}

.lead-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.lead-destinations span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(245,245,247,.82);
  background: rgba(255,255,255,.045);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 850;
}

.unfinished-card {
  margin-top: 12px;
  background:
    radial-gradient(circle at 84% 12%, rgba(245,158,11,.18), transparent 42%),
    rgba(255,255,255,.04);
}

.unfinished-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.client-panel {
  grid-template-rows: auto auto 1fr;
}

.client-channel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px 0;
}

.client-channel-row > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.client-channel-row img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.client-channel-row img.wide-logo {
  width: 30px;
  height: 18px;
}

.demo-message {
  animation: none;
}

.demo-message:empty {
  visibility: hidden;
}

.demo-message.is-typing:after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -.12em;
  background: currentColor;
  animation: typingCursor .72s steps(1) infinite;
}

.knowledge-panel {
  grid-template-rows: auto 1fr;
}

.knowledge-map {
  position: relative;
  min-height: 390px;
  margin: 10px;
  overflow: hidden;
}

.knowledge-web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.knowledge-web path {
  fill: none;
  stroke: rgba(167,139,250,.62);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 5 8;
  animation: knowledgeSignal 2.8s linear infinite;
}

.knowledge-web path:nth-child(2) { animation-delay: -.7s; }
.knowledge-web path:nth-child(3) { animation-delay: -1.4s; }
.knowledge-web path:nth-child(4) { animation-delay: -2.1s; }

.knowledge-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  border: 1px solid rgba(196,181,253,.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.20), transparent 25%),
    linear-gradient(145deg, rgba(124,58,237,.96), rgba(20,184,166,.72));
  box-shadow: 0 0 0 10px rgba(124,58,237,.08), 0 24px 54px rgba(0,0,0,.28);
  animation: knowledgeCore 3.2s ease-in-out infinite;
}

.knowledge-core strong {
  font-size: 25px;
}

.knowledge-core span {
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 800;
}

.knowledge-node {
  position: absolute;
  z-index: 2;
  width: 43%;
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17,17,24,.94);
  padding: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  animation: knowledgeNode 5.6s ease-in-out infinite;
}

.knowledge-node small {
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-node span {
  color: rgba(245,245,247,.78);
  font-size: 11px;
  line-height: 1.32;
}

.node-catalog { left: 0; top: 5px; }
.node-rules { right: 0; top: 5px; animation-delay: .7s; }
.node-limit { left: 0; bottom: 5px; animation-delay: 1.4s; }
.node-match { right: 0; bottom: 5px; animation-delay: 2.1s; }

.manager-panel {
  grid-template-rows: auto 1fr;
}

.destination-collage {
  position: relative;
  min-height: 390px;
  padding: 18px;
  overflow: hidden;
}

.destination-window {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18,18,25,.96);
  box-shadow: 0 22px 52px rgba(0,0,0,.34);
  padding: 12px;
}

.destination-head,
.destination-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.destination-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.destination-head > span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.destination-head small {
  color: var(--muted);
  font-size: 10px;
}

.destination-head img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.destination-logos img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(0,0,0,.24);
}

.destination-logos img + img {
  margin-left: -11px;
}

.destination-logos img.wide-logo {
  width: 34px;
}

.team-chat-window {
  z-index: 3;
  left: 14px;
  right: 34px;
  top: 22px;
  min-height: 176px;
  animation: destinationArrive 5.6s ease-in-out infinite;
}

.team-chat-window strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.team-chat-window p {
  margin: 8px 0 0;
  color: rgba(245,245,247,.72);
  font-size: 11px;
  line-height: 1.4;
}

.sheet-window {
  z-index: 2;
  left: 28px;
  bottom: 28px;
  width: 58%;
  min-height: 150px;
  transform: rotate(-2deg);
  animation: destinationFloat 6s ease-in-out infinite;
}

.crm-window {
  z-index: 4;
  right: 12px;
  bottom: 10px;
  width: 54%;
  min-height: 142px;
  transform: rotate(2deg);
  background:
    radial-gradient(circle at 90% 10%, rgba(124,58,237,.22), transparent 38%),
    rgba(18,18,25,.97);
  animation: destinationFloat 6s ease-in-out -2.4s infinite;
}

.crm-window > span {
  display: block;
  color: rgba(245,245,247,.68);
  font-size: 11px;
  line-height: 1.38;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sheet-grid i {
  height: 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 3px;
  background: rgba(255,255,255,.035);
}

.sheet-grid i:nth-child(2),
.sheet-grid i:nth-child(4),
.sheet-grid i:nth-child(8) {
  background: rgba(34,165,101,.20);
  border-color: rgba(34,165,101,.28);
}

.impact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.impact-row span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: rgba(245,245,247,.76);
  padding: 10px;
  font-weight: 850;
}

@keyframes demoMessageIn {
  0%, 8% { opacity: .88; transform: translateY(6px) scale(.995); }
  18%, 82% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: .9; transform: translateY(-2px) scale(.998); }
}

@keyframes flowDot {
  0% { transform: translateY(-160px) scale(.72); opacity: 0; }
  18%, 72% { opacity: 1; }
  100% { transform: translateY(160px) scale(1.06); opacity: 0; }
}

@keyframes flowDotMobile {
  0% { transform: translateX(-140px) scale(.72); opacity: 0; }
  18%, 72% { opacity: 1; }
  100% { transform: translateX(140px) scale(1.06); opacity: 0; }
}

@keyframes kbPulse {
  0%, 100% { transform: translateY(0); border-color: var(--line); }
  42% { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent), #fff 40%); }
}

@keyframes leadArrive {
  0%, 24% { opacity: .64; transform: translateY(18px); }
  38%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes typingCursor {
  50% { opacity: 0; }
}

@keyframes knowledgeSignal {
  to { stroke-dashoffset: -52; }
}

@keyframes knowledgeCore {
  50% { transform: translate(-50%, -50%) scale(1.035); box-shadow: 0 0 0 16px rgba(124,58,237,.035), 0 24px 54px rgba(0,0,0,.28); }
}

@keyframes knowledgeNode {
  0%, 100% { border-color: var(--line); }
  18%, 34% { border-color: rgba(167,139,250,.58); }
}

@keyframes destinationArrive {
  0%, 12% { transform: translateY(8px); }
  28%, 100% { transform: translateY(0); }
}

@keyframes destinationFloat {
  50% { translate: 0 -4px; }
}

.section {
  position: relative;
  padding: 64px max(20px, calc((100vw - 1180px) / 2));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.section p.section-copy {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.examples-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.example-fit .ba-before.has-image,
.example-fit .ba-after.has-image {
  background-size: auto, var(--fit-size, contain);
  background-position: center, var(--fit-position, center);
}

.example-auto .ba-before.has-image {
  --fit-size: contain;
  --fit-position: center;
}

.example-auto .ba-after.has-image {
  --fit-size: contain;
  --fit-position: center;
}

.example-clothing .ba-before.has-image {
  --fit-size: auto 92%;
  --fit-position: center 50%;
}

.example-clothing .ba-after.has-image {
  --fit-size: auto 94%;
  --fit-position: center 50%;
}

.example-hair .ba-before.has-image {
  --fit-size: auto 96%;
  --fit-position: center 49%;
}

.example-hair .ba-after.has-image {
  --fit-size: auto 88%;
  --fit-position: center 50%;
}

.example-makeup .ba-before.has-image {
  --fit-size: auto 92%;
  --fit-position: center 50%;
}

.example-makeup .ba-after.has-image {
  --fit-size: auto 84%;
  --fit-position: center 50%;
}

.example-mens-grooming .ba-before.has-image {
  --fit-size: auto 96%;
  --fit-position: center 50%;
}

.example-mens-grooming .ba-after.has-image {
  --fit-size: auto 90%;
  --fit-position: center 50%;
}

.example-jewelry .ba-before.has-image {
  --fit-size: auto 88%;
  --fit-position: center 50%;
}

.example-jewelry .ba-after.has-image {
  --fit-size: auto 88%;
  --fit-position: center 50%;
}

.card {
  position: relative;
  min-height: 170px;
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.026)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.card:before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 150px;
  background: radial-gradient(circle, rgba(124,58,237,.24), transparent 62%);
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(167,139,250,.42);
  box-shadow: 0 22px 70px rgba(124,58,237,.17);
}

.card:hover:before { opacity: 1; }

.card strong {
  position: relative;
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.grid.two > .card {
  min-height: 320px;
}

.card span,
.muted {
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}

.card .button,
.scenario-card .button { margin-top: 18px; min-height: 40px; border-radius: 12px; padding-inline: 14px; }

.consultant-cases .card {
  min-height: 250px;
}

.card-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.card-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.48;
}

.card-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .64em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 14px rgba(245,158,11,.65);
}

.visual-placeholder,
.mini-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 22%, rgba(124,58,237,.26), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(245,158,11,.18), transparent 34%),
    linear-gradient(145deg, #161620, #0c0c12);
  overflow: hidden;
  color: rgba(245,245,247,.78);
  font-weight: 850;
  text-align: center;
}

.visual-placeholder.has-image,
.mini-visual.has-image {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,.05);
}

.ba-before.has-image,
.ba-after.has-image {
  background-size: auto, var(--image-size, contain);
  background-position: center, var(--image-position, center);
  background-repeat: no-repeat, no-repeat;
  background-color: #e8e4df;
}

.mini-visual.has-image span,
.ba-before.has-image span,
.ba-after.has-image span {
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}

.ba-before.has-image > span,
.ba-after.has-image > span {
  display: none;
}

.mini-visual.has-image span {
  display: none;
}

.visual-placeholder:after,
.mini-visual:after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
}

.mini-visual { min-height: 250px; margin: -4px -4px 16px; }

.scenario-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chips {
  margin: 0 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 760;
}

.chip.active {
  border-color: rgba(167,139,250,.5);
  background: rgba(124,58,237,.18);
  color: #ede9fe;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(18,18,23,.72);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow), var(--glow);
  padding: 16px;
  overflow: hidden;
}

.hero-visual:before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(124,58,237,.28), transparent, rgba(245,158,11,.18), transparent);
  animation: slowSpin 14s linear infinite;
  opacity: .62;
}

.hero-visual > * { position: relative; z-index: 1; }

.hero-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-visual-title strong { display: block; font-size: 18px; }
.hero-visual-title span { color: var(--muted); font-size: 13px; }

.ba-slider {
  --pos: 52%;
  position: relative;
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  background: #111118;
  border: 1px solid var(--line);
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-slider.small {
  min-height: clamp(330px, 34vw, 430px);
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(245,245,247,.88);
  font-weight: 900;
  text-align: center;
  padding: 24px;
}

.ba-before {
  background:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.18)),
    radial-gradient(circle at 24% 35%, rgba(255,255,255,.12), transparent 18%),
    linear-gradient(135deg, #272733, #101016);
}

.ba-after {
  clip-path: inset(0 0 0 var(--pos));
  background:
    radial-gradient(circle at 72% 30%, rgba(245,158,11,.28), transparent 22%),
    radial-gradient(circle at 28% 72%, rgba(124,58,237,.36), transparent 30%),
    linear-gradient(135deg, #20143e, #0c0c12);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 24px rgba(255,255,255,.35);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(12,12,18,.78);
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
  touch-action: none;
}

.ba-handle:before { content: "↔"; font-weight: 900; }

.ba-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(7,7,10,.68);
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }
.ba-slider.at-before .ba-label.after,
.ba-slider.at-after .ba-label.before {
  opacity: 0;
}

.open-preview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(7,7,10,.72);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}

.hero-visual > .ba-slider .open-preview {
  display: none;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare-column {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background: rgba(255,255,255,.04);
  cursor: default;
}

.compare-column.good {
  border-color: rgba(124,58,237,.34);
  background: linear-gradient(180deg, rgba(124,58,237,.16), rgba(255,255,255,.04));
}

.compare-column ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.compare-column li {
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.055);
  padding-bottom: 10px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.flow-step {
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  color: var(--ink);
  font-weight: 850;
  padding: 12px;
}

.admin-mock {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  padding: 18px;
  box-shadow: var(--shadow);
}

.lead-mini {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  padding: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.status-pill {
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.28);
  color: #bbf7d0;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.step {
  position: relative;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.step:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #fff;
  font-weight: 950;
  margin-bottom: 16px;
}

.visual-steps .step {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.visual-steps .step:before {
  content: none;
  counter-increment: none;
  display: none;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.step-title:before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: #fff;
  font-weight: 950;
  flex: 0 0 auto;
}

.step-visual {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(0,0,0,.18);
  overflow: hidden;
  position: relative;
}

.step-visual img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: block;
  object-fit: cover;
}

.upload-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7,7,10,.72);
  color: #fff;
  font-weight: 850;
}

.chat-demo {
  display: flex;
  align-items: center;
  padding: 18px;
}

.chat-demo span {
  display: block;
  max-width: 92%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,.30), rgba(245,158,11,.12));
  color: #f5f5f7;
  line-height: 1.45;
}

.result-demo {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.result-demo img {
  border-radius: 16px;
}

.mini-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.mini-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pricing-title {
  margin-bottom: 10px;
}

.pricing-copy {
  margin: 0 0 24px;
}

.pricing .card.featured {
  border-color: rgba(245,158,11,.42);
  box-shadow: 0 22px 72px rgba(245,158,11,.14);
}

.pricing-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 20%, rgba(124,58,237,.34), transparent 34%),
    radial-gradient(circle at 78% 74%, rgba(245,158,11,.2), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}

.pricing-orb {
  width: 128px;
  height: 128px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(139,92,246,.96), rgba(245,158,11,.92));
  box-shadow: 0 28px 80px rgba(124,58,237,.34);
}

.pricing-visual strong {
  font-size: 24px;
}

.pricing-visual span {
  color: var(--muted);
  max-width: 320px;
}

.price {
  display: block;
  font-size: 34px;
  font-weight: 950;
  margin: 14px 0 4px;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 560px;
  background: rgba(18,18,23,.76);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.form input::placeholder,
.form textarea::placeholder { color: var(--muted-2); }
.form textarea { min-height: 108px; resize: vertical; }
.form label { color: var(--muted); font-size: 14px; line-height: 1.4; }
.form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.snippet {
  margin: 0;
  max-width: 820px;
  overflow: auto;
  background: rgba(0,0,0,.38);
  color: #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  line-height: 1.55;
  border: 1px solid var(--line);
}

.legal {
  max-width: 900px;
  background: rgba(18,18,23,.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  line-height: 1.7;
}

.legal h1 { color: var(--ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.legal h2 { margin: 34px 0 12px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); }
.legal h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.legal p { color: var(--muted); }
.legal a { color: var(--accent-2); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px max(20px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.footer a { color: var(--muted); margin-right: 14px; text-decoration: none; }
.footer-requisites {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.footer-requisites a { color: var(--muted); }
.footer-requisites a:hover,
.footer a:hover { color: var(--ink); }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(18,18,23,.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie.visible { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
}

.modal.visible { display: grid; }

.modal-card {
  width: min(100%, 980px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(18,18,23,.96);
  padding: 18px;
  box-shadow: var(--shadow);
  transform: scale(.96);
  animation: modalIn .22s ease forwards;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  cursor: pointer;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 16px;
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  min-width: 0;
}

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.admin-toolbar select,
.lead-head select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: var(--ink);
  padding: 0 10px;
}

.lead-list { display: grid; gap: 8px; }
.lead-row {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--ink);
  padding: 12px;
  cursor: pointer;
}
.lead-row strong, .lead-row span { display: block; }
.lead-row span { color: var(--muted); margin-top: 4px; }
.lead-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-head h2 { margin: 0; }
.compact-head { margin-bottom: 16px; }
.referral-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
}
.referral-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.referral-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 12px;
}
.referral-row strong,
.referral-row span { display: block; }
.referral-row span,
.referral-stats { color: var(--muted); }
.referral-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.copy-link { min-height: 40px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.media-grid img { width: 100%; max-height: 280px; object-fit: contain; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.dialog {
  white-space: pre-wrap;
  overflow: auto;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  line-height: 1.45;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes pulseGlow { 50% { transform: scale(1.08); opacity: .7; } }
@keyframes modalIn { to { transform: scale(1); } }

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 54px; }
  .hero-grid,
  .grid,
  .grid.two,
  .grid.four,
  .compare-columns,
  .flow,
  .steps,
  .pricing,
  .admin-grid,
  .referral-form,
  .referral-row,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .flow-step { min-height: 76px; }
  .b2b-live-demo {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .knowledge-map,
  .destination-collage {
    width: min(100%, 580px);
    margin-inline: auto;
  }
  .demo-flow {
    min-height: 28px;
  }
  .demo-flow:before {
    width: 82%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,.58), transparent);
  }
  .demo-flow span {
    animation-name: flowDotMobile;
  }
  .impact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 10px;
    padding: 12px 14px;
  }
  .brand {
    min-width: 0;
    font-size: 19px;
  }
  .mobile-account-pill {
    display: inline-flex;
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
  }
  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links .account-pill {
    display: none;
  }
  .nav-links a {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
  }
  .nav-links a[data-mobile-label-ru] {
    font-size: 0;
  }
  html[lang="ru"] .nav-links a[data-mobile-label-ru]::after,
  html[lang="en"] .nav-links a[data-mobile-label-en]::after {
    content: attr(data-mobile-label-ru);
    font-size: 13px;
  }
  html[lang="en"] .nav-links a[data-mobile-label-en]::after {
    content: attr(data-mobile-label-en);
  }
  .hero { padding-inline: 14px; padding-top: 30px; }
  .section { padding: 42px 14px; }
  h1 { font-size: clamp(38px, 13vw, 58px); }
  .hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .button { width: 100%; }
  .hero-visual { border-radius: 24px; padding: 12px; }
  .ba-slider { min-height: 290px; }
  .lead { font-size: 16px; }
  .messenger-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .messenger-pill {
    justify-content: flex-start;
    min-height: 44px;
    padding-right: 10px;
    font-size: 13px;
  }
  .messenger-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 10px;
  }
  .max-pill .messenger-icon {
    width: 50px;
    flex-basis: 50px;
  }
  .messenger-icon svg {
    width: 19px;
    height: 19px;
  }
  .b2b-live-section {
    padding-top: 42px;
  }
  .demo-tabs {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    margin-top: 14px;
  }
  .demo-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .b2b-live-demo {
    border-radius: 24px;
    padding: 10px;
    gap: 10px;
  }
  .demo-panel {
    border-radius: 20px;
  }
  .demo-panel-head {
    min-height: 52px;
    padding: 12px;
  }
  .demo-panel-head span {
    font-size: 14px;
  }
  .demo-chat {
    padding: 12px;
  }
  .demo-message {
    max-width: 100%;
    border-radius: 16px;
    padding: 11px 12px;
    font-size: 14px;
  }
  .demo-message.compact {
    max-width: 92%;
  }
  .client-channel-row {
    min-height: 44px;
    padding-top: 6px;
  }
  .client-channel-row > span {
    width: 32px;
    height: 32px;
  }
  .knowledge-map {
    min-height: 350px;
    margin-block: 8px;
  }
  .knowledge-core {
    width: 88px;
    height: 88px;
  }
  .knowledge-core strong {
    font-size: 21px;
  }
  .knowledge-node {
    width: 45%;
    min-height: 82px;
    padding: 9px;
  }
  .knowledge-node span {
    font-size: 10px;
  }
  .destination-collage {
    min-height: 350px;
    padding: 10px;
  }
  .team-chat-window {
    left: 8px;
    right: 20px;
    top: 14px;
    min-height: 166px;
  }
  .sheet-window {
    left: 16px;
    bottom: 22px;
    width: 60%;
  }
  .crm-window {
    right: 6px;
    bottom: 8px;
    width: 58%;
  }
  .knowledge-card {
    min-height: auto;
    border-radius: 16px;
    padding: 11px 12px;
    font-size: 14px;
  }
  .lead-card,
  .unfinished-card {
    margin: 12px;
    border-radius: 18px;
    padding: 12px;
  }
  .unfinished-card {
    margin-top: 0;
  }
  .lead-card > div:first-child {
    display: grid;
  }
  .lead-card small {
    width: fit-content;
  }
  .impact-row {
    grid-template-columns: 1fr;
  }
  .impact-row span {
    min-height: 48px;
  }
  .consultant-cases .card {
    min-height: auto;
  }
  .trust-row { display: none; }
  .section-head { display: block; }
  .cookie.visible { display: grid; }
}
