/* ============================================================
   AI-агенты для бизнеса — extends style.css with page-specific
   layout variants. Uses the same design tokens (:root in style.css).
   ============================================================ */

/* ---- hero (shorter than home hero, no full-height canvas focus) ---- */
.agents-hero {
  position: relative;
  padding-top: 76px;
  overflow: hidden;
}
.agents-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 72px;
}
.agents-hero-title {
  max-width: 20ch;
}

/* ---- capability grid column variants (approach section) ---- */
.cap-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .cap-grid--3 { grid-template-columns: 1fr; }
}

/* ---- hero tagline + hero-support block ---- */
.hero-tagline {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin: 22px 0 18px;
}
.hero-support {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.hero-support-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-support-inner h2 { font-size: 32px; line-height: 1.2; margin-bottom: 14px; font-family: var(--serif); font-weight: 400; }
.hero-support-inner p { font-size: 15px; color: var(--text-dim); line-height: 1.65; margin-bottom: 8px; }
.hero-support-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 900px) { .hero-support-inner { grid-template-columns: 1fr; } }

/* ---- category links in the header nav ---- */
.nav-pills { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-pill {
  font-family: var(--mono); font-size: 13px; color: var(--text-dim); white-space: nowrap;
}
.main-nav .nav-contact { margin-left: 4px; }
@media (max-width: 1180px) {
  .nav-pills { gap: 18px; }
  .nav-pill { font-size: 12px; }
}

/* ---- category kpi line under section title ---- */
.cat-kpi { margin-top: 16px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; max-width: 56ch; }
.cat-kpi b { color: var(--text); font-weight: 500; }

/* ---- problem / solve fields inside a card ---- */
.agent-field { margin-top: 18px; }
.agent-field:first-of-type { margin-top: 0; }
.agent-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.agent-field-label--solve { color: var(--accent); }
.agent-field p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.agent-field--solve p { color: #c9c6bd; }

/* ---- chip row: remaining products in a category, not expanded ---- */
.chip-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--text-dim); border-color: var(--text-faint); }
.chip-note { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ---- bespoke mockups for the 8 flagship agents ---- */
.stage-pill {
  align-self: flex-start; font-family: var(--mono); font-size: 10px; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-top: 2px;
}
.compliance-dot--pending { background: var(--surface-hover); color: var(--text-faint); }

.mock-sales { --mock-tint: rgba(201,255,61,0.1); display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.mock-hunter { --mock-tint: rgba(201,255,61,0.1); display: flex; flex-direction: column; gap: 9px; justify-content: center; font-size: 11px; }

.mock-bizmgr { --mock-tint: rgba(255,209,102,0.1); display: flex; align-items: center; justify-content: center; }
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 6px; text-align: center; }
.stat-tile-num { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }
.stat-tile-num--up { color: var(--accent); }
.stat-tile-num--warn { color: #ff8a5c; }
.stat-tile-lbl { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.04em; color: var(--text-faint); margin-top: 3px; }

.mock-finance { --mock-tint: rgba(255,122,107,0.1); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.finance-line { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.finance-line b { color: var(--text); font-weight: 500; }

.mock-bizanalyst { --mock-tint: rgba(183,164,255,0.12); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.summary-bullets { display: flex; flex-direction: column; gap: 5px; }
.summary-bullets span { font-size: 10.5px; color: var(--text-dim); line-height: 1.4; }
.summary-bullets .is-warn { color: #ff8a5c; }
.summary-bullets .is-up { color: var(--accent); }

.mock-brain { --mock-tint: rgba(110,231,255,0.12); display: flex; flex-direction: column; gap: 9px; justify-content: center; }

.mock-voice { --mock-tint: rgba(110,231,255,0.12); display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 20px; margin-bottom: 2px; }
.voice-wave span { width: 3px; border-radius: 2px; background: var(--accent-2); opacity: 0.7; }
.voice-line { font-size: 10.5px; color: var(--text-dim); line-height: 1.4; }
.voice-line b { color: var(--text); }

.mock-support { --mock-tint: rgba(157,255,176,0.12); display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.support-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); }
.channel-badge { font-family: var(--mono); font-size: 9px; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }

/* ---- live demo section anchor tweak (now sits under AI Company Brain) ---- */
.demo-section { margin-top: 40px; }

/* ---- full catalog matrix: 4 columns x 5 products ---- */
.catalog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 900px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .catalog-grid { grid-template-columns: 1fr; } }
.catalog-col { background: var(--surface); padding: 26px 22px; }
.catalog-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.catalog-col-head .ico { font-size: 18px; }
.catalog-col-head .name { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.03em; }
.catalog-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--border); }
.catalog-item:first-of-type { border-top: none; }
.catalog-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.catalog-item.is-flagship { color: var(--text); }
.catalog-item.is-flagship .catalog-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- CTA row (telegram) + small note below ---- */
.agents-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-note { margin-top: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }

/* ---- bottom download bar (before footer) ---- */
.download-bar { padding-bottom: 90px; }
.download-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--bg-soft));
  padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.download-panel-text h3 { font-size: 19px; margin-bottom: 6px; font-weight: 400; }
.download-panel-text p { color: var(--text-dim); font-size: 13px; }

/* ---- magnetic buttons ---- */
.magnetic { transition: transform 0.2s var(--ease); }

/* ---- process rebuilt: problem -> result -> agent -> implementation ---- */
.flagship-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.fstep { display: grid; grid-template-columns: 140px 1fr; gap: 36px; padding: 34px 0; border-top: 1px solid var(--border); }
.fstep:last-child { border-bottom: 1px solid var(--border); }
.fstep-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent-2); padding-top: 4px; }
.fstep-label.is-result { color: var(--accent); }
.fstep h3 { font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.fstep p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; max-width: 62ch; }
.fstep-agent-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.fstep-agent-title { font-size: 20px; font-weight: 450; margin-bottom: 10px; }
@media (max-width: 900px) {
  .fstep { grid-template-columns: 1fr; gap: 10px; }
  .fstep-agent-body { grid-template-columns: 1fr; }
}

/* ---- 4 AI-directions overview cards (replaces 4 full sections + catalog) ---- */
.cats { padding: 130px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.cat-card {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cat-card-emoji { font-size: 22px; margin-bottom: 16px; display: block; }
.cat-card-num { font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
.cat-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.cat-card-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 18px; display: block; }
.cat-card-list { list-style: none; padding: 0; margin: 0 0 22px; }
.cat-card-list li { font-size: 13.5px; color: var(--text-dim); padding: 8px 0; border-top: 1px solid var(--border); }
.cat-card-list li:first-child { border-top: none; }
.cat-card-cta {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.cat-card:hover .cat-card-cta { color: var(--accent); }
.cat-card-example {
  margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--text-faint);
  transition: color 0.2s var(--ease);
}
.cat-card-example:hover { color: var(--accent-2); }
.cats-note { margin-top: 28px; font-size: 13.5px; color: var(--text-faint); font-style: italic; max-width: 60ch; }
.cat-panel { display: none; }
.cat-panel.is-active { display: block; }
.cat-panel .fstep { grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; }
.cat-panel .fstep p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 900px) { .cats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .cats-grid { grid-template-columns: 1fr; }
  .cat-panel .fstep { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
  .agents-hero-inner { padding-top: 70px; padding-bottom: 50px; }
  .download-panel { padding: 26px 24px; }
}
