/* Страница «ИИ-агент для бизнеса» (ai-manager.html, gen/page_ai_agent.py), правки 17.11.2026. Только эта страница, подключается после site.css.
   Начертания как в брифе: заголовки антиквой 300, текст Inter 400 серым, черный и полужирный только в окнах интерфейса. */

/* --- Тест-чат вместо «Живого демо» --- */
.ag-tc-st{aspect-ratio:1/1;max-height:640px}
.ag-tc-w .bub{font-size:14px}
.ag-tc-l{margin:4px 0 0}
.ag-tc-l li{font-size:16px}
@media (max-width:600px){
  .ag-tc-st{aspect-ratio:auto;height:500px}
  .ag-tc-st .win{left:5%!important;right:5%!important;top:6%!important}
  .ag-tc-st .ntf{left:5%!important;right:5%!important;bottom:6%!important;max-width:none!important}
  .ag-tc-w .bub{font-size:13.5px}
}

/* --- Инструменты к ИИ-менеджеру в «Тарифах» (цены lib/pricing.js tools-ladder-v1) --- */
.ag-tools{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.9fr);gap:clamp(20px,3vw,40px);align-items:start;margin-top:16px;border-radius:22px;padding:clamp(28px,4vw,48px);background:var(--sand)}
.ag-tools-t{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.ag-tools-t .h3 .m{display:block}
.ag-tools-t p{margin:0;font-size:16px;line-height:1.55;color:var(--soft);max-width:30em}
.ag-tools-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.ag-tools-l li{display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.4;color:var(--soft)}
.ag-tools-l a,.ag-tools-l em{font-style:normal;color:var(--ink);text-decoration:none;font-size:16px}
.ag-tools-l a{background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;padding-bottom:1px;align-self:flex-start}
.ag-tools-l a:hover{opacity:.7}
.ag-tools .ag-tiers{align-self:start}
@media (max-width:900px){.ag-tools{grid-template-columns:1fr}}

/* --- Финал на две карточки (без «Живого демо») --- */
.ag-fin.ag-fin2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:980px){.ag-fin.ag-fin2{grid-template-columns:1fr}}

/* --- 17.11 правки после проверки --- */
/* Сноска к «Бесплатная CRM*» в тарифах (решение 17.11 п. 10) */
.ag-plans .ag-crm-fn{margin:0 0 4px;font-size:13px;line-height:1.5;color:var(--soft)}
/* Плитка «Сбор базы» в каналах: две ссылки на страницы парсеров, без интеграции с Ловкочатом */
.ag-ch-base span a{color:var(--ink);text-decoration:underline;text-decoration-color:rgba(26,24,20,.25);text-underline-offset:3px}
.ag-ch-base span a:hover{text-decoration-color:currentColor}
/* Телефон: окна интерфейса внутри картин целиком (шаги 04 и 05, самообучение) */
@media (max-width:600px){
  #how .ag-q-chat{left:4%!important;right:4%!important;width:auto!important;top:3%!important}
  #how .ag-q-chat .chat{padding:12px 14px;gap:8px}
  #how .ag-q-chat .bub{max-width:86%}
  #how .step-vis{height:540px}
  #how .ag-q-card{left:4%!important;right:4%!important;width:auto!important;top:auto!important;bottom:3%}
  #how .ag-q-card .rows{grid-template-columns:repeat(3,minmax(0,1fr))}
  #how .ag-q-card .row-i{flex-direction:column;align-items:flex-start;gap:2px;border-top:0;border-left:1px solid var(--line);padding:9px 14px}
  #how .ag-q-card .row-i:first-child{border-left:0}
  #how .ag-q-card .row-i .r{margin-left:0}
  #how .scene .win{left:4%!important;right:4%!important}
  .ag-learn .stage .win{left:4%!important;right:4%!important;top:4%!important}
  .ag-learn .stage .win .row-i:nth-child(n+4){display:none}
  .ag-learn .stage .ntf{left:4%!important;right:4%!important;bottom:4%!important;max-width:none!important}
}
@media (max-width:359px){#how .step-vis{height:590px}}
/* Узкий компьютер и планшет в альбомной ориентации (901–1100): шаги и самообучение в одну колонку, как до 900,
   иначе окна шага 04 и «Приемов» ниже картины или под подписью картины */
@media (min-width:901px) and (max-width:1100px){
  #how .steps{grid-template-columns:1fr}
  #how .step-vis{aspect-ratio:auto;height:440px}
  #how .step p{max-height:none;opacity:.5;margin-top:6px;transition:opacity .35s ease}
  #how .step.on p{max-height:none;opacity:1}
  #how .step button{padding:16px 0 0}
  #how .step{padding-bottom:16px}
  .ag-learn{grid-template-columns:1fr;gap:36px}
  .ag-learn .stage{aspect-ratio:auto;height:430px}
}
/* 1101–1200: сетка как на компьютере, картина уже: окно диалога шага 04 плотнее, не заходит на подпись */
@media (min-width:1101px) and (max-width:1200px){
  #how .ag-q-chat{top:5%!important}
  #how .ag-q-chat .chat{padding:12px 14px;gap:8px}
  #how .ag-q-chat .bub{font-size:13px}
}
/* 17.11: бейдж «Скоро» у «Идентификации контактов» (как в leadgen.css) */
.ag-tools-l em .badge{margin-left:6px;vertical-align:2px;font-size:11px;height:20px}
