/* ============================================================
   IndigoM — «Услуги · ИИ-продажник» · page-specific
   Дополняет brand.css + styles.css + enhance.css + page.css + companies.css + seo.css.
   Переиспользует компоненты seo.css (.seohero/.seo-scope/.seo-adv/.seo-guarantee/.seo-time/.faq/.form-card).
   Префикс .ai-  ·  только фирменная палитра.
   ============================================================ */

/* ════════ Герой — визуал «переписка → встреча» ════════ */
.aichat {
  position: relative; z-index: 2; width: min(430px, 94%);
  background: rgba(255,255,255,.06); border: 1px solid rgba(145,173,255,.24); border-radius: 24px;
  padding: 20px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -42px rgba(0,20,120,.7);
}
.aichat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(145,173,255,.18); }
.aichat__ava { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, var(--blue), var(--blue-ink)); display: grid; place-items: center; color: #fff; flex: none; }
.aichat__ava svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aichat__title { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: #fff; margin: 0; line-height: 1.1; }
.aichat__meta { font-family: var(--f-accent); font-size: 11px; color: var(--blue-pale); margin: 4px 0 0; }
.aichat__online { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-accent); font-size: 11px; color: var(--blue-pale); }
.aichat__online i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px 1px rgba(61,220,132,.6); }

.aichat__thread { display: flex; flex-direction: column; gap: 9px; padding: 14px 0 6px; }
.aimsg { max-width: 86%; font-family: var(--f-head); font-size: 13px; line-height: 1.42; padding: 10px 13px; border-radius: 14px; }
.aimsg--out { align-self: flex-start; color: #fff; background: linear-gradient(125deg, var(--blue), var(--blue-ink)); border-bottom-left-radius: 4px; }
.aimsg--in  { align-self: flex-end; color: var(--blue-night); background: #fff; border-bottom-right-radius: 4px; }

.aichat__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.aistat { border-radius: 14px; padding: 12px 14px; background: rgba(4,7,78,.4); border: 1px solid rgba(145,173,255,.2); }
.aistat__k { font-family: var(--f-accent); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-pale); margin: 0 0 6px; }
.aistat__v { font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1; color: #fff; }
.aistat--lead { background: linear-gradient(125deg, var(--blue), var(--blue-ink)); border-color: transparent; box-shadow: 0 16px 34px -18px rgba(0,80,200,.8); }
.aistat--lead .aistat__k { color: rgba(255,255,255,.8); }
.aistat--lead .aistat__v { display: flex; align-items: center; gap: 8px; }
.aistat--lead .aistat__v svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.aichat__pill {
  position: absolute; top: -18px; right: 6%; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 600; font-size: 13px; color: #fff;
  background: rgba(61,220,132,.14); border: 1px solid rgba(61,220,132,.5); border-radius: 999px; padding: 8px 14px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: aiFloat 5s ease-in-out infinite;
}
.aichat__pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px 2px rgba(61,220,132,.6); }
@keyframes aiFloat { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
.calm .aichat__pill { animation: none; }
@media (prefers-reduced-motion: reduce) { .aichat__pill { animation: none; } }

/* ════════ «Когда нужен» — сплит со списком-симптомами ════════ */
.ai-pains { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: start; }
.ai-pains__intro .h2 { margin: 0; }
.ai-pains__sub { margin: 18px 0 0; font-family: var(--f-head); font-size: 17px; line-height: 1.55; color: var(--gray-700); max-width: 34ch; }
.ai-pains__list { display: flex; flex-direction: column; }
.ai-pain { display: flex; gap: 18px; align-items: center; padding: 20px 6px; border-top: 1px solid var(--gray-100); transition: padding-left .24s var(--ease), background .24s; }
.ai-pain:last-child { border-bottom: 1px solid var(--gray-100); }
.ai-pain:hover { padding-left: 14px; }
.ai-pain__ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #e9efff; color: var(--blue); display: grid; place-items: center; }
.ai-pain__ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ai-pain__t { margin: 0; font-family: var(--f-head); font-size: 16.5px; line-height: 1.45; color: var(--blue-night); }
.ai-pain__t b { font-weight: 700; color: var(--blue-deep); }

/* ════════ «Как работает» — 5 шагов на тёмном ════════ */
.ai-steps { position: relative; margin-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.ai-steps::before { content: ""; position: absolute; left: 31px; top: 34px; bottom: 34px; width: 2px; background: linear-gradient(180deg, rgba(145,173,255,.5), rgba(145,173,255,.12)); }
.ai-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; background: rgba(255,255,255,.04); border: 1px solid rgba(145,173,255,.2); border-radius: var(--r-card); padding: 22px 26px; transition: transform .26s var(--ease), border-color .26s; }
.ai-step:hover { transform: translateY(-3px); border-color: var(--blue-pale); }
.ai-step__n { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 23px; color: var(--blue-pale); background: rgba(4,7,78,.6); border: 1px solid rgba(145,173,255,.3); }
.ai-step:hover .ai-step__n { background: var(--blue); color: #fff; border-color: transparent; }
.ai-step__t { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px,1.9vw,23px); color: #fff; margin: 4px 0 7px; line-height: 1.08; }
.ai-step__d { font-family: var(--f-head); font-size: 15.5px; line-height: 1.5; color: var(--blue-pale); margin: 0; max-width: 62ch; }
.ai-step--you { background: linear-gradient(125deg, rgba(0,80,200,.35), rgba(4,7,78,.5)); border-color: rgba(145,173,255,.45); }
.ai-step--you .ai-step__n { background: var(--blue); color: #fff; border-color: transparent; }

/* ════════ Пример сообщения ════════ */
.ai-example { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.ai-example__card { position: relative; background: linear-gradient(155deg, #0b3bd0, var(--blue-night)); color: #fff; border-radius: var(--r-block); padding: 34px 36px; box-shadow: 0 30px 60px -34px rgba(7,11,116,.6); }
.ai-example__card::after { content: ""; position: absolute; left: 36px; bottom: -12px; width: 24px; height: 24px; background: var(--blue-night); transform: rotate(45deg); border-radius: 4px; }
.ai-example__label { font-family: var(--f-accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-pale); margin: 0 0 16px; }
.ai-example__card p { font-family: var(--f-head); font-size: 17px; line-height: 1.55; margin: 0 0 14px; }
.ai-example__card p:last-child { margin-bottom: 0; }
.ai-example__rules { display: flex; flex-direction: column; gap: 10px; }
.ai-rule { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--r-card); padding: 18px 22px; border-left: 4px solid var(--blue); }
.ai-rule__t { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--blue-deep); margin: 0 0 6px; line-height: 1.15; }
.ai-rule__d { font-family: var(--f-head); font-size: 15px; line-height: 1.5; color: var(--gray-700); margin: 0; }

/* ════════ Тарифы ════════ */
.ai-tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.ai-tariff { position: relative; display: flex; flex-direction: column; background: rgba(255,255,255,.05); border: 1px solid rgba(145,173,255,.22); border-radius: var(--r-block); padding: 28px 26px 24px; transition: transform .26s var(--ease), border-color .26s; }
.ai-tariff:hover { transform: translateY(-4px); border-color: var(--blue-pale); }
.ai-tariff--hot { background: linear-gradient(160deg, rgba(0,80,200,.42), rgba(4,7,78,.55)); border-color: rgba(145,173,255,.5); }
.ai-tariff__badge { position: absolute; top: -13px; left: 24px; font-family: var(--f-head); font-weight: 600; font-size: 12px; color: #fff; background: var(--blue); border-radius: 999px; padding: 6px 12px; }
.ai-tariff__name { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: #fff; margin: 0 0 10px; }
.ai-tariff__price { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px,3.6vw,44px); line-height: 1; color: #fff; letter-spacing: -.02em; }
.ai-tariff__per { font-family: var(--f-accent); font-size: 12px; color: var(--blue-pale); margin: 8px 0 14px; }
.ai-tariff__first { font-family: var(--f-head); font-size: 14.5px; color: #dbe4ff; margin: 0 0 16px; padding: 10px 12px; background: rgba(4,7,78,.4); border-radius: 10px; }
.ai-tariff__first b { color: #fff; }
.ai-tariff__vol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--f-head); font-size: 15px; color: #dbe4ff; }
.ai-tariff__vol b { color: #fff; font-size: 17px; }
.ai-tariff__calc { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(145,173,255,.2); }
.ai-tariff__calc-k { font-family: var(--f-accent); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-pale); margin: 0 0 8px; }
.ai-tariff__calc-v { font-family: var(--f-head); font-size: 16px; color: #dbe4ff; margin: 0 0 4px; }
.ai-tariff__calc-v b { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: #fff; }
.ai-tariff__save { font-family: var(--f-head); font-size: 13.5px; line-height: 1.4; color: var(--blue-pale); margin: 14px 0 0; }
.ai-tariff__save b { color: #3ddc84; white-space: nowrap; }
.ai-tariff sup { font-size: .6em; color: var(--blue-pale); }

.ai-funnel { margin-top: 34px; background: rgba(255,255,255,.04); border: 1px solid rgba(145,173,255,.2); border-radius: var(--r-block); padding: 22px 26px; }
.ai-funnel__k { font-family: var(--f-accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-pale); margin: 0 0 14px; }
.ai-funnel__row { display: flex; align-items: center; gap: 14px; }
.ai-funnel__i { flex: 1; display: flex; align-items: baseline; gap: 10px; background: rgba(4,7,78,.45); border: 1px solid rgba(145,173,255,.22); border-radius: 999px; padding: 12px 22px; }
.ai-funnel__i--last { background: linear-gradient(125deg, var(--blue), var(--blue-ink)); border-color: transparent; }
.ai-funnel__n { font-family: var(--f-display); font-weight: 900; font-size: 26px; color: #fff; line-height: 1; }
.ai-funnel__l { font-family: var(--f-head); font-size: 14px; color: var(--blue-pale); }
.ai-funnel__i--last .ai-funnel__l { color: rgba(255,255,255,.85); }
.ai-funnel__arr { flex: none; color: var(--blue-pale); }
.ai-funnel__arr svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ai-foot { margin-top: 22px; }
.ai-foot p { font-family: var(--f-head); font-size: 13px; line-height: 1.5; color: var(--blue-pale); margin: 0 0 6px; max-width: 92ch; }
.ai-foot sup { font-size: .75em; }

/* ════════ Ответственность — список на тёмном ════════ */
.ai-gar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ai-gar-list li { display: flex; gap: 14px; align-items: flex-start; font-family: var(--f-head); font-size: 15.5px; line-height: 1.5; color: #dbe4ff; }
.ai-gar-list .ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: rgba(145,173,255,.16); color: var(--blue-pale); display: grid; place-items: center; }
.ai-gar-list .ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ════════ Форма — телефон под карточкой ════════ */
.ai-form-phone { margin: 18px 0 0; text-align: center; font-family: var(--f-head); font-size: 15px; color: var(--gray-700); }
.ai-form-phone a { color: var(--blue-deep); font-weight: 700; text-decoration: none; }

/* ════════ Адаптив ════════ */
@media (max-width: 1000px) {
  .ai-tariffs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .ai-example { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ai-pains { grid-template-columns: 1fr; gap: 30px; }
  .ai-pains__sub { max-width: none; }
}
@media (max-width: 680px) {
  .aichat { width: 100%; }
  .aichat__pill { right: 4%; top: -16px; }
  .ai-steps::before { left: 27px; }
  .ai-step { grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 18px; }
  .ai-step__n { width: 52px; height: 52px; font-size: 19px; }
  .ai-funnel__row { flex-direction: column; align-items: stretch; }
  .ai-funnel__arr { align-self: center; transform: rotate(90deg); }
  .ai-example__card { padding: 26px 22px; }
}

/* ════════ Мобильный герой: design-v3.css (грузится позже) держит 2 колонки на любой ширине —
   на этой странице на узких экранах укладываем в одну, визуал под текст, заголовок меньше ════════ */
/* Заголовок героя: слова «Автоматически.» и «До видеовстречи.» длинные — держим кегль меньше общего design-v3 */
.seohero__title { font-size: clamp(34px, 3.9vw, 56px) !important; }
@media (max-width: 1024px) {
  .seohero__inner { grid-template-columns: minmax(0, 1fr) !important; gap: 32px; }
  .seohero__visual { order: 2; min-height: 0 !important; width: 100%; }
  .seohero__visual::after { display: none; }
  .aichat { width: 100%; }
  .aichat__pill { right: 8px; top: -14px; }
}
@media (max-width: 480px) {
  .seohero__title { font-size: clamp(24px, 7.4vw, 40px) !important; }
}
