.code9-ai-bots{
  --bg:#efebe4;
  --paper:rgba(255,255,255,.62);
  --ink:#090909;
  --muted:#5c5a55;
  --line:rgba(0,0,0,.15);
  --line-soft:rgba(0,0,0,.08);
  --shadow:0 24px 80px rgba(0,0,0,.08);
  --radius:28px;
  --radius-soft:22px;
  --page-width:1540px;
  --display:"Avenir Next","Helvetica Neue","Segoe UI",sans-serif;
  --mono:"SFMono-Regular","IBM Plex Mono","Menlo",monospace;
  width:100%;
  padding-top:60px;
  color:var(--ink);
  font-family:var(--display);
  background:
    radial-gradient(circle at top left, rgba(0,0,0,.04), transparent 24%),
    radial-gradient(circle at right 18%, rgba(0,0,0,.035), transparent 18%),
    linear-gradient(180deg, #f7f5ef 0%, #efebe4 100%);
}

.code9-ai-bots,
.code9-ai-bots *,
.code9-ai-bots *::before,
.code9-ai-bots *::after{
  box-sizing:border-box;
}

.code9-ai-bots img{
  display:block;
  max-width:100%;
}

.code9-ai-bots a{
  color:inherit;
  text-decoration:none;
}

.code9-ai-bots__header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:20;
  height:60px;
  width:100%;
  background:#000;
  color:#f9f8f6;
}

.code9-ai-bots__header-inner{
  position:relative;
  height:100%;
  padding:0 3%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.code9-ai-bots__brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.code9-ai-bots__brand-mark-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 50px;
  width:50px;
  height:50px;
  padding:6px;
  border-radius:16px;
  background:#1c1c1c;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.25);
  overflow:hidden;
}

.code9-ai-bots__brand-mark{
  width:100%;
  height:100%;
  border-radius:8px;
  object-fit:contain;
}

.code9-ai-bots__brand-copy strong{
  display:block;
  font-size:32px;
  font-weight:700;
  line-height:.95;
  letter-spacing:-.06em;
}

.code9-ai-bots__brand-copy span{
  display:block;
  margin-top:6px;
  color:#bdbdbd;
  font-family:var(--mono);
  font-size:12px;
  line-height:1;
  letter-spacing:.28em;
  text-transform:uppercase;
}

.code9-ai-bots__section-nav{
  position:absolute;
  top:50%;
  left:50%;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:0;
  transform:translate(-50%, -50%);
}

.code9-ai-bots__section-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 9px;
  line-height:28px;
  font-size:18px;
  color:#f9f8f6;
  transition:background .18s ease, color .18s ease;
}

.code9-ai-bots__section-link:hover,
.code9-ai-bots__section-link:focus-visible,
.code9-ai-bots__section-link.is-active{
  background:#f9f8f6;
  color:#000;
}

.code9-ai-bots__shell{
  max-width:var(--page-width);
  margin:0 auto;
  padding:34px 24px 56px;
}

.code9-ai-bots__local-nav-panel,
.code9-ai-bots__panel{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}

.code9-ai-bots__local-nav-panel{
  margin-bottom:18px;
  padding:20px 22px;
}

.code9-ai-bots__local-nav-eyebrow,
.code9-ai-bots__eyebrow{
  margin:0;
  color:var(--muted);
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.code9-ai-bots__local-nav-title{
  margin:10px 0 0;
  font-size:clamp(1.95rem, 4.2vw, 2.65rem);
  line-height:.9;
  letter-spacing:-.08em;
}

.code9-ai-bots__local-nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}

.code9-ai-bots__local-nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:999px;
  background:rgba(255,255,255,.75);
  color:var(--ink);
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.code9-ai-bots__local-nav-link:hover,
.code9-ai-bots__local-nav-link:focus-visible,
.code9-ai-bots__local-nav-link.is-active{
  background:#050505;
  border-color:#050505;
  color:#fff;
}

.code9-ai-bots__hero{
  display:grid;
  grid-template-columns:minmax(0,1.14fr) 360px;
  gap:16px;
  align-items:stretch;
}

.code9-ai-bots__panel--dark{
  background:#080808;
  border-color:#080808;
  color:#fff;
}

.code9-ai-bots__panel--dark .code9-ai-bots__eyebrow{
  color:rgba(255,255,255,.58);
}

.code9-ai-bots__hero-copy{
  padding:28px;
  position:relative;
  overflow:hidden;
}

/* Точечный паттерн поверх тёмного hero */
.code9-ai-bots__hero-copy::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
  z-index:0;
}

/* Жёлтое свечение в правом нижнем углу hero */
.code9-ai-bots__hero-copy::after{
  content:'';
  position:absolute;
  bottom:-60px;
  right:-60px;
  width:340px;
  height:340px;
  background:radial-gradient(ellipse at center, rgba(244,207,83,.18) 0%, transparent 68%);
  pointer-events:none;
  z-index:0;
}

/* Жёлтая искра перед eyebrow — тусклое пульсирующее свечение */
.code9-ai-bots__eyebrow-spark{
  color:#f4cf53;
  margin-right:5px;
  font-style:normal;
  animation:code9SparkGlow 3.5s ease-in-out infinite;
}

@keyframes code9SparkGlow{
  0%,100%{ opacity:.45; text-shadow:none; }
  50%{ opacity:1; text-shadow:0 0 6px rgba(244,207,83,.65), 0 0 14px rgba(244,207,83,.2); }
}

.code9-ai-bots__hero-copy > *{
  position:relative;
  z-index:1;
}

.code9-ai-bots__title{
  margin:12px 0 0;
  font-size:clamp(3rem, 5.3vw, 5rem);
  line-height:.88;
  letter-spacing:-.08em;
  text-wrap:balance;
}

.code9-ai-bots__copy{
  margin:18px 0 0;
  max-width:920px;
  font-size:18px;
  line-height:1.62;
  color:rgba(255,255,255,.76);
}

.code9-ai-bots__chips,
.code9-ai-bots__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.code9-ai-bots__chips{
  margin-top:18px;
}

.code9-ai-bots__chip{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 16px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  color:#fff;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.code9-ai-bots__actions{
  margin-top:20px;
}

.code9-ai-bots__action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 17px;
  border-radius:999px;
  border:1px solid currentColor;
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
  cursor:pointer;
}

.code9-ai-bots__action--accent,
.code9-ai-bots__action--accent:link,
.code9-ai-bots__action--accent:visited{
  background:#f4cf53 !important;
  border-color:#f4cf53 !important;
  color:#050505 !important;
}

.code9-ai-bots__action--accent:hover,
.code9-ai-bots__action--accent:focus-visible{
  background:#fff !important;
  border-color:#fff !important;
  color:#050505 !important;
}

.code9-ai-bots__action--light,
.code9-ai-bots__action--light:link,
.code9-ai-bots__action--light:visited{
  background:#fff !important;
  border-color:#fff !important;
  color:#050505 !important;
}

.code9-ai-bots__action--light:hover,
.code9-ai-bots__action--light:focus-visible{
  background:#050505 !important;
  border-color:#fff !important;
  color:#fff !important;
}

.code9-ai-bots__hero-side{
  display:grid;
  gap:12px;
  align-content:start;
}

.code9-ai-bots__info-chip{
  padding:20px 22px;
  min-height:140px;
}

.code9-ai-bots__info-chip strong{
  display:block;
  margin-bottom:10px;
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.code9-ai-bots__demo,
.code9-ai-bots__stack{
  margin-top:16px;
  padding:26px;
}

.code9-ai-bots__demo-head h2,
.code9-ai-bots__stack-head h2,
.code9-ai-bots__capability-card h3{
  margin:10px 0 0;
  font-size:clamp(2rem, 3.4vw, 3rem);
  line-height:.95;
  letter-spacing:-.07em;
}

.code9-ai-bots__demo-head p:not(.code9-ai-bots__eyebrow),
.code9-ai-bots__stack-head p:not(.code9-ai-bots__eyebrow),
.code9-ai-bots__capability-card p,
.code9-ai-bots__stack-card p{
  margin:12px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
}

.code9-ai-bots__demo-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  margin-top:18px;
  align-items:stretch;
}

.code9-ai-bots__demo-side{
  padding:22px;
  display:grid;
  gap:10px;
  align-content:start;
}

.code9-ai-bots__meta-card{
  padding:14px 16px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.55;
}

.code9-ai-bots__meta-card strong{
  display:block;
  margin-bottom:8px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.code9-ai-bots__prompt{
  padding:16px 18px;
  border-radius:20px;
  background:#080808;
  color:#fff;
}

.code9-ai-bots__prompt-eyebrow{
  margin:0;
  color:rgba(255,255,255,.58);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.code9-ai-bots__prompt-copy{
  margin:12px 0 0;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,.78);
}

.code9-ai-bots__bots-label{
  margin:0 0 10px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* ── Дропдаун сценариев ─────────────────────────────────────────────────── */
.code9-ai-bots__bots-dropdown{
  position:relative;
}

.code9-ai-bots__bots-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:16px 20px;
  border:1.5px solid rgba(0,0,0,.15);
  border-radius:18px;
  background:#fff;
  color:#050505;
  font-size:17px;
  font-weight:600;
  letter-spacing:-.02em;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.code9-ai-bots__bots-trigger:hover,
.code9-ai-bots__bots-trigger:focus-visible{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
  outline:none;
}

.code9-ai-bots__bots-trigger[aria-expanded="true"]{
  border-color:#050505;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}

.code9-ai-bots__trigger-arrow{
  width:20px;
  height:20px;
  flex-shrink:0;
  transition:transform .2s ease;
}

.code9-ai-bots__bots-trigger[aria-expanded="true"] .code9-ai-bots__trigger-arrow{
  transform:rotate(180deg);
}

.code9-ai-bots__bots-panel{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:30;
  border:1.5px solid #050505;
  border-top:none;
  border-bottom-left-radius:18px;
  border-bottom-right-radius:18px;
  background:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,.14);
  overflow:hidden;
  display:none;
}

.code9-ai-bots__bots-panel.is-open{
  display:block;
}

.code9-ai-bots__bots-list{
  display:grid;
  gap:2px;
  max-height:340px;
  overflow-y:auto;
  padding:8px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.18) transparent;
}

.code9-ai-bots__bots-list::-webkit-scrollbar{
  width:4px;
}

.code9-ai-bots__bots-list::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.18);
  border-radius:4px;
}

.code9-ai-bots__bot-item{
  width:100%;
  padding:12px 16px;
  border:none;
  border-radius:12px;
  background:transparent;
  color:#050505;
  font-size:15px;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  transition:background .14s ease, color .14s ease;
}

.code9-ai-bots__bot-item:hover,
.code9-ai-bots__bot-item:focus-visible{
  background:rgba(0,0,0,.05);
  outline:none;
}

.code9-ai-bots__bot-item.is-active{
  background:#080808;
  color:#fff;
}

/* ── Блок описания ──────────────────────────────────────────────────────── */
.code9-ai-bots__bot-info{
  margin-top:14px;
  padding:18px 20px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:rgba(255,255,255,.8);
}

.code9-ai-bots__bot-info strong{
  display:block;
  font-size:15px;
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:8px;
}

.code9-ai-bots__bot-info p{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.55;
}

.code9-ai-bots__chat-wrap{
  min-width:0;
  display:flex;
  justify-content:stretch;
  align-items:stretch;
}

.code9-ai-bots__phone-shell{
  display:flex;
  justify-content:stretch;
  width:100%;
}

.code9-ai-bots__phone-frame{
  position:relative;
  width:100%;
  padding:14px 14px 22px;
  border-radius:24px;
  background:linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 55%, #2c2c2e 100%);
  box-shadow:
    0 48px 96px rgba(0,0,0,.42),
    0 12px 32px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.5),
    inset 1px 0 0 rgba(255,255,255,.05),
    inset -1px 0 0 rgba(0,0,0,.3);
}

/* Камера / фронтальная */
.code9-ai-bots__phone-statusbar{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 0 10px;
}

.code9-ai-bots__phone-statusbar span{
  display:none;
}

.code9-ai-bots__phone-island{
  display:block;
  width:10px;
  height:10px;
  border-radius:999px;
  background:#050505;
  box-shadow:0 0 0 2px rgba(0,0,0,.6), inset 0 1px 2px rgba(255,255,255,.08);
}

.code9-ai-bots__chat{
  display:grid;
  grid-template-rows:auto 1fr auto;
  height:680px;
  border:none;
  border-radius:14px;
  overflow:hidden;
  background:#f5f5f5;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.5);
}

.code9-ai-bots__messages{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 16px;
  overflow-y:auto;
  overflow-x:hidden;
  background:
    linear-gradient(180deg, #f4f1ea 0%, #f8f5ef 52%, #f4efe7 100%);
  scroll-behavior:smooth;
}

.code9-ai-bots__chat-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:18px 18px 16px;
  border-bottom:1px solid rgba(0,0,0,.1);
  background:linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  color:#fff;
}

.code9-ai-bots__chat-header span{
  color:rgba(255,255,255,.55);
}

.code9-ai-bots__chat-status{
  color:rgba(255,255,255,.75);
}

.code9-ai-bots__chat-header strong{
  display:block;
  font-size:20px;
  line-height:1;
  letter-spacing:-.04em;
}

.code9-ai-bots__chat-header span{
  display:block;
  margin-top:6px;
  font-size:14px;
}

.code9-ai-bots__chat-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.code9-ai-bots__chat-status-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 2px rgba(34,197,94,.25);
  animation:code9Pulse 2s ease infinite;
}


.code9-ai-bots__message{
  width:92%;
  padding:14px 18px;
  border-radius:18px;
  font-size:16px;
  line-height:1.6;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}

.code9-ai-bots__message p{
  margin:0;
}

.code9-ai-bots__message p + p{
  margin-top:8px;
}

.code9-ai-bots__message--bot{
  align-self:flex-start;
  background:#090909;
  color:#fff;
  border-bottom-left-radius:6px;
}

.code9-ai-bots__message--user{
  align-self:flex-end;
  width:75%;
  background:#f4cf53;
  color:#050505;
  border-bottom-right-radius:6px;
}

.code9-ai-bots__chat-footer{
  padding:14px 16px 16px;
  border-top:1px solid rgba(0,0,0,.08);
  background:
    linear-gradient(180deg, #f6f2ea 0%, #f1ece3 100%);
}

.code9-ai-bots__input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:10px;
  align-items:center;
}

.code9-ai-bots__input{
  min-height:80px;
  max-height:160px;
  resize:none;
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:20px;
  background:#fff;
  color:#050505;
  font:inherit;
  font-size:16px;
  line-height:1.55;
  outline:none;
}

.code9-ai-bots__input:focus{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.code9-ai-bots__send{
  min-height:48px;
  border:1px solid #050505;
  border-radius:18px;
  background:#050505;
  color:#fff;
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
}

.code9-ai-bots__send:hover,
.code9-ai-bots__send:focus-visible{
  background:#fff;
  color:#050505;
}

.code9-ai-bots__hint{
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.code9-ai-bots__phone-home{
  width:120px;
  height:5px;
  margin:16px auto 4px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  box-shadow:none;
}

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

.code9-ai-bots__capability-card{
  padding:24px;
}

.code9-ai-bots__stack-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}

.code9-ai-bots__stack-card{
  padding:20px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:20px;
  background:rgba(255,255,255,.78);
}

.code9-ai-bots__stack-card strong{
  display:block;
  font-size:18px;
  line-height:1.05;
  letter-spacing:-.03em;
}

/* ── Fade-up анимация ──────────────────────────────────────────────────── */
@keyframes code9FadeUp{
  from{ opacity:0; transform:translateY(28px); }
  to{   opacity:1; transform:translateY(0);    }
}

[data-animate]{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .55s ease, transform .55s ease;
}

[data-animate].is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ── A. Статкарточки ───────────────────────────────────────────────────── */
.code9-ai-bots__side-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.code9-ai-bots__stat-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:20px 10px 16px;
  border:1px solid var(--line-soft);
  border-top:3px solid #f4cf53;
  border-radius:18px;
  background:#fff;
  text-align:center;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
}

.code9-ai-bots__stat-ico{
  font-size:24px;
  line-height:1;
}

.code9-ai-bots__stat-card strong{
  font-size:2rem;
  font-weight:900;
  letter-spacing:-.06em;
  line-height:1;
  background:linear-gradient(135deg, #050505 0%, #444 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.code9-ai-bots__stat-card span{
  font-size:11px;
  color:var(--muted);
  line-height:1.3;
}

/* ── B. Шаги после диалога ─────────────────────────────────────────────── */
.code9-ai-bots__side-steps,
.code9-ai-bots__side-checklist{
  margin-top:12px;
  padding:18px 20px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:rgba(255,255,255,.8);
}

.code9-ai-bots__side-label{
  margin:0 0 12px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.code9-ai-bots__steps-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.code9-ai-bots__step{
  display:flex;
  align-items:center;
  gap:12px;
}

.code9-ai-bots__step-num{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#080808;
  color:#fff;
  font-size:13px;
  font-weight:700;
}

.code9-ai-bots__step-text{
  font-size:14px;
  line-height:1.4;
  color:var(--ink);
}

/* ── C. Чеклист ────────────────────────────────────────────────────────── */
.code9-ai-bots__check-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.code9-ai-bots__check-list li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.4;
  color:var(--ink);
}

.code9-ai-bots__check-list li::before{
  content:'';
  display:flex;
  flex-shrink:0;
  width:20px;
  height:20px;
  border-radius:6px;
  background:#080808;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:contain;
}

/* ── Секция платформ ───────────────────────────────────────────────────── */
.code9-ai-bots__channels{
  margin-top:16px;
  padding:32px 28px;
}

.code9-ai-bots__channels-head{
  margin-bottom:28px;
}

.code9-ai-bots__channels-title{
  margin:10px 0 0;
  font-size:clamp(2rem, 3.4vw, 3rem);
  line-height:.95;
  letter-spacing:-.07em;
}

.code9-ai-bots__channels-sub{
  margin:12px 0 0;
  max-width:640px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}

.code9-ai-bots__channels-groups{
  display:flex;
  align-items:flex-start;
  gap:0;
  flex-wrap:wrap;
}

.code9-ai-bots__channels-group{
  flex:1 1 auto;
  min-width:200px;
}

.code9-ai-bots__channels-group-label{
  margin:0 0 14px;
}

.code9-ai-bots__ch-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 12px;
  border-radius:999px;
  background:#080808;
  color:#fff;
  font-family:var(--mono);
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.code9-ai-bots__channels-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.code9-ai-bots__channels-divider{
  width:1px;
  align-self:stretch;
  background:var(--line);
  margin:0 24px;
  flex:0 0 1px;
}

.code9-ai-bots__channel{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  width:80px;
  cursor:default;
}

.code9-ai-bots__channel-ico{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:18px;
  background:var(--ch, #080808);
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}

.code9-ai-bots__channel-ico svg{
  width:28px;
  height:28px;
}

.code9-ai-bots__channel-ico--text{
  font-family:var(--display);
  font-size:14px;
  font-weight:800;
  letter-spacing:-.02em;
}

.code9-ai-bots__channel-ico--raw{
  background:transparent;
  box-shadow:none;
  padding:0;
}

.code9-ai-bots__channel-ico--raw svg{
  width:56px;
  height:56px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.code9-ai-bots__channel:hover .code9-ai-bots__channel-ico{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}

.code9-ai-bots__channel span{
  font-size:12px;
  color:var(--muted);
  text-align:center;
  line-height:1.3;
}

/* ── Typewriter курсор ─────────────────────────────────────────────────── */
.code9-ai-bots__typed-wrap{
  display:inline;
}

.code9-ai-bots__cursor{
  display:inline-block;
  width:4px;
  height:.85em;
  background:#f4cf53;
  border-radius:2px;
  margin-left:5px;
  vertical-align:middle;
  animation:code9Blink .75s step-end infinite;
}

@keyframes code9Blink{
  0%,100%{ opacity:1; }
  50%{ opacity:0; }
}

/* ── Live badge ────────────────────────────────────────────────────────── */
.code9-ai-bots__demo-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  flex-wrap:wrap;
}

.code9-ai-bots__live-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.1);
  background:rgba(255,255,255,.85);
  color:var(--ink);
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  flex-shrink:0;
  align-self:center;
}

.code9-ai-bots__live-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.2);
  animation:code9Pulse 2s ease infinite;
  flex-shrink:0;
}

@keyframes code9Pulse{
  0%,100%{ box-shadow:0 0 0 3px rgba(34,197,94,.2); }
  50%{ box-shadow:0 0 0 6px rgba(34,197,94,.08); }
}

/* ── Сообщение с аватаром ──────────────────────────────────────────────── */
.code9-ai-bots__msg-wrap{
  display:flex;
  align-items:flex-end;
  gap:9px;
}

.code9-ai-bots__msg-wrap--user{
  justify-content:flex-end;
}

.code9-ai-bots__msg-avatar{
  flex-shrink:0;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#090909;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.code9-ai-bots__msg-avatar svg{
  width:14px;
  height:14px;
}

.code9-ai-bots__msg-wrap--bot .code9-ai-bots__message{
  flex:1;
  width:auto;
  align-self:auto;
}

.code9-ai-bots__msg-wrap--user .code9-ai-bots__message{
  width:auto;
  max-width:78%;
  align-self:auto;
}

/* ── Индикатор "печатает..." ───────────────────────────────────────────── */
.code9-ai-bots__typing{
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:14px 18px;
  background:#090909;
  border-radius:18px;
  border-bottom-left-radius:6px;
}

.code9-ai-bots__typing span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
  animation:code9TypingDot 1.3s ease infinite;
}

.code9-ai-bots__typing span:nth-child(2){ animation-delay:.22s; }
.code9-ai-bots__typing span:nth-child(3){ animation-delay:.44s; }

@keyframes code9TypingDot{
  0%,60%,100%{ transform:translateY(0); opacity:.4; }
  30%{ transform:translateY(-5px); opacity:1; }
}

/* ── Быстрые ответы ────────────────────────────────────────────────────── */
.code9-ai-bots__quick{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  padding:4px 0 2px;
}

.code9-ai-bots__quick-btn{
  padding:8px 14px;
  border:1.5px solid rgba(0,0,0,.14);
  border-radius:999px;
  background:#fff;
  color:#050505;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
  white-space:nowrap;
}

.code9-ai-bots__quick-btn:hover{
  background:#f4cf53;
  border-color:#f4cf53;
  transform:translateY(-1px);
}

/* ── CTA финальный блок ────────────────────────────────────────────────── */
.code9-ai-bots__cta{
  position:relative;
  margin-top:16px;
  padding:64px 48px;
  border-radius:var(--radius);
  background:#080808;
  color:#fff;
  overflow:hidden;
  text-align:center;
}

.code9-ai-bots__cta-bg-dots{
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:28px 28px;
  pointer-events:none;
}

/* Жёлтое свечение снизу */
.code9-ai-bots__cta::after{
  content:'';
  position:absolute;
  bottom:-80px;
  left:50%;
  transform:translateX(-50%);
  width:600px;
  height:200px;
  background:radial-gradient(ellipse at center, rgba(244,207,83,.22) 0%, transparent 70%);
  pointer-events:none;
}

.code9-ai-bots__cta-inner{
  position:relative;
  z-index:1;
}

.code9-ai-bots__cta-eyebrow{
  margin:0;
  color:rgba(255,255,255,.45);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.code9-ai-bots__cta-title{
  margin:16px 0 0;
  font-size:clamp(2.4rem, 5vw, 4.5rem);
  line-height:.9;
  letter-spacing:-.07em;
}

.code9-ai-bots__cta-sub{
  margin:20px auto 0;
  max-width:560px;
  color:rgba(255,255,255,.65);
  font-size:17px;
  line-height:1.6;
}

.code9-ai-bots__cta-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top:32px;
}

.code9-ai-bots__action--cta-ghost{
  background:transparent !important;
  border-color:rgba(255,255,255,.3) !important;
  color:#fff !important;
}

.code9-ai-bots__action--cta-ghost:hover{
  background:rgba(255,255,255,.1) !important;
  border-color:rgba(255,255,255,.6) !important;
}

@media (max-width:1240px){
  .code9-ai-bots__hero{
    grid-template-columns:1fr;
  }

  .code9-ai-bots__hero-side{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .code9-ai-bots__demo-grid{
    grid-template-columns:1fr;
  }

  .code9-ai-bots__capabilities,
  .code9-ai-bots__stack-grid{
    grid-template-columns:1fr;
  }

  .code9-ai-bots__channels-divider{
    display:none;
  }

  .code9-ai-bots__channels-groups{
    gap:24px;
  }
}

@media (max-width:960px){
  .code9-ai-bots{
    padding-top:96px;
  }

  .code9-ai-bots__header{
    height:96px;
  }

  .code9-ai-bots__header-inner{
    padding:10px 16px;
    align-items:flex-start;
  }

  .code9-ai-bots__section-nav{
    top:auto;
    bottom:10px;
    left:16px;
    right:16px;
    transform:none;
    justify-content:flex-start;
    overflow:auto hidden;
    scrollbar-width:none;
  }

  .code9-ai-bots__section-nav::-webkit-scrollbar{
    display:none;
  }

  .code9-ai-bots__section-link{
    flex:0 0 auto;
    font-size:16px;
  }

  .code9-ai-bots__brand-copy strong{
    font-size:24px;
  }

  .code9-ai-bots__brand-copy span{
    font-size:10px;
    letter-spacing:.2em;
  }

  .code9-ai-bots__shell{
    padding:22px 14px 40px;
  }

  .code9-ai-bots__local-nav-panel{
    padding:18px 16px;
  }

  .code9-ai-bots__local-nav-links{
    gap:10px;
  }

  .code9-ai-bots__local-nav-link{
    min-height:40px;
    padding:0 14px;
    font-size:10px;
  }

  .code9-ai-bots__hero-copy,
  .code9-ai-bots__demo,
  .code9-ai-bots__capability-card,
  .code9-ai-bots__stack{
    padding:20px;
  }

  .code9-ai-bots__hero-side{
    grid-template-columns:1fr;
  }

  .code9-ai-bots__title{
    font-size:clamp(2.35rem, 12vw, 4rem);
  }

  .code9-ai-bots__copy{
    font-size:16px;
  }

  .code9-ai-bots__chat{
    height:600px;
  }

  .code9-ai-bots__phone-frame{
    border-radius:22px;
    padding:10px 10px 16px;
  }

  .code9-ai-bots__chat-header{
    padding:16px;
  }

  .code9-ai-bots__messages{
    padding:16px;
  }

  .code9-ai-bots__message{
    width:100%;
  }

  .code9-ai-bots__chat-footer{
    padding:16px;
  }

  .code9-ai-bots__input-row{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  .code9-ai-bots{
    padding-top:92px;
  }

  .code9-ai-bots__header{
    height:92px;
  }

  .code9-ai-bots__header-inner{
    padding:8px 12px;
  }

  .code9-ai-bots__brand{
    gap:10px;
  }

  .code9-ai-bots__brand-mark-wrap{
    flex:0 0 42px;
    width:42px;
    height:42px;
    border-radius:12px;
  }

  .code9-ai-bots__brand-copy strong{
    font-size:22px;
  }

  .code9-ai-bots__brand-copy span{
    margin-top:4px;
    font-size:9px;
    letter-spacing:.16em;
  }

  .code9-ai-bots__section-nav{
    left:12px;
    right:12px;
    bottom:8px;
    gap:0;
  }

  .code9-ai-bots__section-link{
    padding:0 8px;
    line-height:26px;
    font-size:14px;
    white-space:nowrap;
  }

  .code9-ai-bots__shell{
    padding:18px 10px 34px;
  }

  .code9-ai-bots__local-nav-panel{
    margin-bottom:14px;
    padding:16px 12px;
    border-radius:22px;
  }

  .code9-ai-bots__local-nav-title{
    margin-top:8px;
    font-size:clamp(1.7rem, 10vw, 2.2rem);
  }

  .code9-ai-bots__local-nav-links{
    gap:8px;
    margin-top:12px;
    flex-wrap:nowrap;
    overflow:auto hidden;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .code9-ai-bots__local-nav-links::-webkit-scrollbar{
    display:none;
  }

  .code9-ai-bots__local-nav-link{
    flex:0 0 auto;
    min-height:38px;
    padding:0 12px;
    font-size:10px;
    white-space:nowrap;
  }

  .code9-ai-bots__hero{
    gap:14px;
  }

  .code9-ai-bots__hero-copy{
    padding:18px 14px;
    border-radius:22px;
  }

  .code9-ai-bots__title{
    margin-top:10px;
    font-size:clamp(2rem, 11vw, 3rem);
    line-height:.92;
  }

  .code9-ai-bots__copy{
    margin-top:14px;
    font-size:15px;
    line-height:1.55;
  }

  .code9-ai-bots__chips{
    margin-top:14px;
    gap:8px;
  }

  .code9-ai-bots__chip{
    min-height:34px;
    padding:0 12px;
    font-size:10px;
  }

  .code9-ai-bots__actions{
    margin-top:16px;
    display:grid;
    grid-template-columns:1fr;
  }

  .code9-ai-bots__action{
    width:100%;
  }

  .code9-ai-bots__hero-side{
    gap:10px;
  }

  .code9-ai-bots__info-chip{
    min-height:0;
    padding:16px 14px;
  }

  .code9-ai-bots__demo,
  .code9-ai-bots__capability-card,
  .code9-ai-bots__stack{
    padding:18px 14px;
    border-radius:22px;
  }

  .code9-ai-bots__demo-head h2,
  .code9-ai-bots__stack-head h2,
  .code9-ai-bots__capability-card h3{
    font-size:clamp(1.8rem, 9vw, 2.4rem);
    line-height:.98;
  }

  .code9-ai-bots__demo-grid{
    margin-top:14px;
    gap:12px;
  }

  .code9-ai-bots__chat-wrap{
    order:-1;
  }

  .code9-ai-bots__demo-side{
    padding:14px;
    gap:10px;
    order:1;
  }

  .code9-ai-bots__meta-card{
    padding:12px 13px;
    border-radius:16px;
    font-size:14px;
  }

  .code9-ai-bots__prompt{
    padding:14px;
    border-radius:18px;
  }

  .code9-ai-bots__prompt-copy{
    font-size:13px;
    line-height:1.5;
  }

  .code9-ai-bots__quick{
    gap:8px;
  }

  .code9-ai-bots__quick-btn{
    min-height:40px;
    padding:9px 12px;
    border-radius:14px;
    font-size:13px;
    line-height:1.35;
  }

  .code9-ai-bots__phone-frame{
    padding:8px 8px 14px;
    border-radius:18px;
  }

  .code9-ai-bots__phone-statusbar{
    padding:5px 8px 8px;
    font-size:10px;
  }

  .code9-ai-bots__phone-island{
    width:92px;
    height:22px;
  }

  .code9-ai-bots__chat{
    height:560px;
    border-radius:18px;
  }

  .code9-ai-bots__chat-header{
    gap:10px;
    padding:14px 14px 12px;
  }

  .code9-ai-bots__chat-header strong{
    font-size:18px;
  }

  .code9-ai-bots__chat-header span{
    margin-top:4px;
    font-size:12px;
  }

  .code9-ai-bots__chat-status{
    font-size:10px;
    gap:6px;
  }

  .code9-ai-bots__messages{
    gap:10px;
    padding:14px 12px;
  }

  .code9-ai-bots__message{
    width:min(90%, 250px);
    padding:11px 12px;
    border-radius:18px;
    font-size:13px;
    line-height:1.45;
  }

  .code9-ai-bots__chat-footer{
    padding:12px;
  }

  .code9-ai-bots__input{
    min-height:56px;
    padding:11px 12px;
    border-radius:16px;
    font-size:14px;
  }

  .code9-ai-bots__send{
    min-height:44px;
    border-radius:16px;
  }

  .code9-ai-bots__hint{
    font-size:11px;
  }

  .code9-ai-bots__phone-home{
    width:108px;
    height:4px;
    margin-top:10px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   CRM-карточка лида в hero
══════════════════════════════════════════════════════════════════════════ */

.code9-ai-bots__crm-card{
  margin-top:24px;
  padding:16px 20px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(4px);
  position:relative;
  overflow:hidden;
}

/* Тонкая жёлтая линия сверху */
.code9-ai-bots__crm-card::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, #f4cf53 0%, rgba(244,207,83,0) 100%);
  border-radius:18px 18px 0 0;
}

.code9-ai-bots__crm-card-top{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}

.code9-ai-bots__crm-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.2);
  flex-shrink:0;
  animation:code9Pulse 2s ease infinite;
}

.code9-ai-bots__crm-status{
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#22c55e;
}

.code9-ai-bots__crm-time{
  margin-left:auto;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.08em;
  color:rgba(255,255,255,.35);
  text-transform:uppercase;
}

.code9-ai-bots__crm-card-name{
  font-size:16px;
  font-weight:600;
  letter-spacing:-.02em;
  color:#fff;
  line-height:1.3;
}

.code9-ai-bots__crm-card-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,.5);
}

.code9-ai-bots__crm-sep{
  color:rgba(255,255,255,.25);
}

.code9-ai-bots__crm-card-footer{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.06em;
  color:rgba(255,255,255,.4);
}

.code9-ai-bots__crm-amo-ico{
  width:20px;
  height:20px;
  flex-shrink:0;
  border-radius:5px;
}

.code9-ai-bots__crm-deal{
  color:rgba(255,255,255,.7);
  font-weight:700;
}


/* ══════════════════════════════════════════════════════════════════════════
   Модальное окно «Обсудить проект»
══════════════════════════════════════════════════════════════════════════ */

/* Overlay */
.code9-ai-bots__modal-overlay{
  position:fixed;
  inset:0;
  z-index:900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}

.code9-ai-bots__modal-overlay.is-open{
  opacity:1;
  pointer-events:all;
}

/* Box */
.code9-ai-bots__modal-box{
  position:relative;
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 40px 100px rgba(0,0,0,.22), 0 8px 32px rgba(0,0,0,.12);
  transform:translateY(24px) scale(.97);
  transition:transform .3s cubic-bezier(.22,1,.36,1);
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.18) transparent;
}

.code9-ai-bots__modal-overlay.is-open .code9-ai-bots__modal-box{
  transform:translateY(0) scale(1);
}

.code9-ai-bots__modal-box::-webkit-scrollbar{ width:4px; }
.code9-ai-bots__modal-box::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.18); border-radius:4px; }

/* Close */
.code9-ai-bots__modal-close{
  position:absolute;
  top:20px;
  right:20px;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:50%;
  background:#fff;
  color:#050505;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease;
}

.code9-ai-bots__modal-close:hover{
  background:#f4cf53;
  border-color:#f4cf53;
}

.code9-ai-bots__modal-close svg{
  width:18px;
  height:18px;
}

/* Panes */
.code9-ai-bots__modal-pane{
  padding:36px 36px 32px;
}

.code9-ai-bots__modal-pane[hidden]{
  display:none;
}

/* Title / sub */
.code9-ai-bots__modal-title{
  margin:10px 0 0;
  font-size:clamp(1.9rem, 4vw, 2.8rem);
  line-height:.92;
  letter-spacing:-.06em;
}

.code9-ai-bots__modal-sub{
  margin:12px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

/* Form */
.code9-ai-bots__modal-form{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:26px;
}

/* Field */
.code9-ai-bots__mfield{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.code9-ai-bots__mfield-label{
  margin:0;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.code9-ai-bots__mfield-input{
  width:100%;
  height:52px;
  padding:0 16px;
  border:1.5px solid rgba(0,0,0,.15);
  border-radius:16px;
  background:#fff;
  color:#050505;
  font:inherit;
  font-size:16px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.code9-ai-bots__mfield-input:focus{
  border-color:#050505;
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.code9-ai-bots__mfield-input::placeholder{
  color:rgba(0,0,0,.3);
}

/* Email autocomplete wrapper */
.code9-ai-bots__memail-wrap{
  position:relative;
}

.code9-ai-bots__memail-drop{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  z-index:50;
  margin:0;
  padding:6px;
  list-style:none;
  border:1.5px solid #050505;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
  overflow:hidden;
}

.code9-ai-bots__memail-opt{
  padding:10px 14px;
  border-radius:9px;
  font-size:15px;
  color:#050505;
  cursor:pointer;
  transition:background .12s ease;
}

.code9-ai-bots__memail-opt:hover,
.code9-ai-bots__memail-opt.is-focused{
  background:#f4cf53;
}

.code9-ai-bots__memail-opt span{
  color:rgba(0,0,0,.38);
}

/* Channel picks */
.code9-ai-bots__ch-picks{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.code9-ai-bots__ch-pick{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:14px 8px;
  border:1.5px solid rgba(0,0,0,.14);
  border-radius:16px;
  background:#fff;
  color:#050505;
  font-size:12px;
  font-weight:600;
  text-align:center;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, transform .12s ease;
}

.code9-ai-bots__ch-pick svg{
  width:24px;
  height:24px;
  flex-shrink:0;
}

.code9-ai-bots__ch-pick:hover{
  border-color:#050505;
  transform:translateY(-2px);
}

.code9-ai-bots__ch-pick.is-active{
  border-color:#050505;
  background:#050505;
  color:#fff;
}

.code9-ai-bots__ch-pick.is-active svg path,
.code9-ai-bots__ch-pick.is-active svg rect{
  /* SVG цвет через color: inherit — fill:currentColor уже есть */
}

/* Modal footer */
.code9-ai-bots__modal-footer{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:26px;
}

.code9-ai-bots__modal-footer .code9-ai-bots__action--accent{
  width:100%;
  min-height:52px;
  font-size:13px;
  border-radius:16px;
}

.code9-ai-bots__modal-book-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  min-height:50px;
  padding:0 20px;
  border:1.5px solid rgba(0,0,0,.14);
  border-radius:16px;
  background:#fff;
  color:#050505;
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease;
}

.code9-ai-bots__modal-book-btn:hover{
  border-color:#050505;
  background:#f8f8f8;
}

.code9-ai-bots__modal-book-btn svg{
  width:18px;
  height:18px;
  flex-shrink:0;
}

/* Kronos pane */
.code9-ai-bots__modal-pane--kronos{
  padding:20px 24px 24px;
}

.code9-ai-bots__modal-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  border:none;
  background:none;
  color:var(--muted);
  font-family:var(--mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:color .16s ease;
}

.code9-ai-bots__modal-back:hover{ color:#050505; }

.code9-ai-bots__modal-back svg{
  width:16px;
  height:16px;
}

.code9-ai-bots__kronos-shell{
  position:relative;
  margin-top:16px;
  border-radius:18px;
  overflow:hidden;
  min-height:520px;
  background:#f7f7f7;
}

.code9-ai-bots__kronos-loader{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.code9-ai-bots__kronos-loader p{ margin:0; }

/* Спиннер */
@keyframes code9Spin{ to{ transform:rotate(360deg); } }

.code9-ai-bots__kronos-spinner{
  width:36px;
  height:36px;
  border:3px solid rgba(0,0,0,.08);
  border-top-color:#050505;
  border-radius:50%;
  animation:code9Spin .7s linear infinite;
}

.code9-ai-bots__kronos-iframe{
  display:block;
  width:100%;
  min-height:520px;
  border:none;
  border-radius:18px;
}

/* ── Цветные иконки WA / TG ──────────────────────────────────────────── */
.code9-ai-bots__ch-pick[data-ch="whatsapp"]:not(.is-active){
  color:#25D366;
  border-color:rgba(37,211,102,.3);
}

.code9-ai-bots__ch-pick[data-ch="telegram"]:not(.is-active){
  color:#26A5E4;
  border-color:rgba(38,165,228,.3);
}

/* Когда активны — фирменные цвета */
.code9-ai-bots__ch-pick[data-ch="whatsapp"].is-active{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}

.code9-ai-bots__ch-pick[data-ch="telegram"].is-active{
  background:#26A5E4;
  border-color:#26A5E4;
  color:#fff;
}

.code9-ai-bots__ch-pick[data-ch="max"]:not(.is-active){
  color:#8B5CF6;
  border-color:rgba(139,92,246,.3);
}

.code9-ai-bots__ch-pick[data-ch="max"].is-active{
  background:linear-gradient(135deg, #8B5CF6 0%, #6D7CF5 60%, #60A5FA 100%);
  border-color:#8B5CF6;
  color:#fff;
}

/* ── Звёздочка обязательного поля ────────────────────────────────────── */
.code9-ai-bots__req-star{
  color:#ef4444;
  margin-left:3px;
  font-weight:700;
}

/* ── Сообщение об ошибке поля ────────────────────────────────────────── */
.code9-ai-bots__field-err{
  display:block;
  margin-top:5px;
  color:#ef4444;
  font-size:12px;
  line-height:1.4;
}

.code9-ai-bots__mfield-input.has-error{
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.1);
}

/* ── Согласие на обработку данных ────────────────────────────────────── */
.code9-ai-bots__consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:18px;
  cursor:pointer;
  user-select:none;
}

.code9-ai-bots__consent-check{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.code9-ai-bots__consent-box{
  flex-shrink:0;
  width:20px;
  height:20px;
  border:1.5px solid rgba(0,0,0,.2);
  border-radius:6px;
  background:#fff;
  margin-top:1px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:border-color .15s ease, background .15s ease;
}

.code9-ai-bots__consent-box::after{
  content:'';
  width:11px;
  height:8px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg) translateY(-1px);
  opacity:0;
  transition:opacity .15s ease;
}

.code9-ai-bots__consent-check:checked + .code9-ai-bots__consent-box{
  background:#050505;
  border-color:#050505;
}

.code9-ai-bots__consent-check:checked + .code9-ai-bots__consent-box::after{
  opacity:1;
}

.code9-ai-bots__consent:hover .code9-ai-bots__consent-box{
  border-color:#050505;
}

.code9-ai-bots__consent.has-error .code9-ai-bots__consent-box{
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.1);
}

.code9-ai-bots__consent-text{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

/* ── Высота айпада = высота левой колонки ────────────────────────────── */
.code9-ai-bots__demo-grid{
  align-items:stretch;
}

.code9-ai-bots__chat-wrap{
  align-self:stretch;
  display:flex;
}

.code9-ai-bots__phone-shell{
  height:100%;
  align-self:stretch;
}

.code9-ai-bots__phone-frame{
  display:flex;
  flex-direction:column;
}

.code9-ai-bots__chat{
  flex:1;
  height:auto;
  min-height:540px;
}

/* Мобильная адаптация модалки */
@media (max-width:600px){
  .code9-ai-bots__modal-pane{
    padding:28px 20px 24px;
  }

  .code9-ai-bots__modal-pane--kronos{
    padding:16px 16px 20px;
  }

  .code9-ai-bots__ch-picks{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .code9-ai-bots__modal-title{
    font-size:clamp(1.7rem, 9vw, 2.2rem);
  }
}
