/* ===== Раздел «Решения на базе AI» =====
   Все стили внутри .ai-page, чтобы не задевать стили сайта (Bootstrap, main.css, .ch).
   Токены совпадают с Figma (Crocos tokens / Client/*). */
.ai-page {
  --white: #FFFFFF;
  --surface: #F7F9FF;
  --ink: #070A25;
  --muted: #5B6180;
  --subtle: #8F9CBB;
  --accent: #0066FF;
  --accent-ink: #0052D6;
  --accent-soft: #E5EFFF;
  --line: #E6EBF5;
  --grad: linear-gradient(90deg, #0059F2 0%, #408CFF 100%);
  --shadow: 0 12px 32px rgba(8, 26, 89, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --container: 1760px;
  --gutter: clamp(16px, 4.1667vw, 80px);
  --section: clamp(64px, 6.25vw, 120px);
  --head-gap: clamp(32px, 2.5vw, 48px);

  --fs-h1: clamp(38px, 2.31rem + 2.56vw, 80px);
  --fs-h2: clamp(32px, 1.56rem + 2.18vw, 64px);
  --fs-h3: clamp(22px, 1.25rem + .38vw, 28px);
  --fs-lead: clamp(18px, 1rem + .38vw, 24px);
  --fs-body: clamp(16px, .95rem + .13vw, 18px);
  --fs-caption: 15px;

  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: 'CRSV' 1;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.ai-page *, .ai-page *::before, .ai-page *::after { box-sizing: border-box; }

/* сброс стилей сайта: :where() = 0,1,0, классы ниже перебивают */
.ai-page :where(h1, h2, h3, h4, p, ol, ul, figure){ margin: 0; }
.ai-page :where(h1, h2, h3, h4){ font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ai-page :where(ol, ul){ padding: 0; list-style: none; }
.ai-page :where(a){ color: inherit; text-decoration: none; }
.ai-page :where(button){ font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.ai-page :where(img){ max-width: 100%; }
.ai-page :focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.ai-page .ai-wrap{ width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ai-page .ai-sec{ padding-bottom: var(--section); }
.ai-page .ai-sec[id]{ scroll-margin-top: 120px; }
.ai-page .ai-sec--top{ padding-top: var(--section); }
.ai-page .abs{ position: absolute; margin: 0; }
.ai-page .ic{ display: block; flex: none; width: 24px; height: 24px; fill: none; }

/* ===== Type ===== */
.ai-page .ai-h1{ font-size: var(--fs-h1); font-weight: 800; line-height: 1; overflow-wrap: anywhere; hyphens: auto; }
.ai-page .ai-nb{ white-space: nowrap; }
.ai-page .ai-h2{ font-size: var(--fs-h2); font-weight: 800; line-height: 1; }
.ai-page .ai-h3{ font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.ai-page .ai-lead{ font-size: var(--fs-lead); line-height: 1.4; }
.ai-page .ai-text{ color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }
.ai-page .ai-small{ color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }
.ai-page .ai-eyebrow{ color: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 500; line-height: 18px; letter-spacing: .2em; }

/* ===== Section head ===== */
.ai-page .ai-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; margin-bottom: var(--head-gap); }
.ai-page .ai-head .ai-h2{ max-width: 1100px; }
.ai-page .ai-head__lead{ flex: 0 1 620px; color: var(--muted); font-size: var(--fs-body); line-height: 1.5; }
.ai-page .ai-head--col{ flex-direction: column; align-items: flex-start; gap: 24px; }
.ai-page .ai-head--col .ai-head__lead{ flex: none; max-width: 960px; }

/* ===== Buttons & links ===== */
.ai-page .ai-btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 32px; border-radius: 16px; font-size: var(--fs-body); font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .2s;
}
.ai-page .ai-btn .ic{ width: 20px; height: 20px; }
.ai-page .ai-btn--primary{ background: var(--accent); color: var(--white); }
.ai-page .ai-btn--primary:hover{ background: #0052D6; box-shadow: 0 14px 30px -12px rgba(0, 102, 255, .6); }
.ai-page .ai-btn--ghost{ background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ai-page .ai-btn--ghost:hover{ box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.ai-page .ai-btn--white{ padding: 24px 40px; background: var(--white); color: var(--accent); }
.ai-page .ai-btn--white:hover{ background: var(--accent-soft); }
.ai-page .ai-btn--glass{ padding: 24px 40px; background: #1F6BFF; color: var(--white); box-shadow: inset 0 0 0 1px var(--accent-soft); backdrop-filter: blur(6px); }
.ai-page .ai-btn--glass:hover{ background: #0A5CF5; }
.ai-page .ai-btn:active{ transform: translateY(1px); }
.ai-page .ai-link{ display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: var(--fs-body); font-weight: 500; line-height: 1.4; }
.ai-page .ai-link .ic{ width: 20px; height: 20px; transition: transform .4s var(--ease); }
.ai-page .ai-link:hover .ic{ transform: translateX(4px); }
.ai-page .ai-link--ur:hover .ic{ transform: translate(3px, -3px); }
.ai-page .ai-link--sm{ gap: 6px; font-size: var(--fs-caption); font-weight: 400; }
.ai-page .ai-link--sm .ic{ width: 16px; height: 16px; }

/* ===== Chips, pills, labels ===== */
.ai-page .ai-chip{ display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: var(--fs-caption); line-height: 1.4; white-space: nowrap; }
.ai-page .ai-pill{ display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-caption); line-height: 1.4; }
.ai-page .ai-pill .ic{ width: 20px; height: 20px; color: var(--accent); }
.ai-page a.ai-pill{ transition: background-color .25s; }
.ai-page a.ai-pill:hover{ background: #D6E6FF; }
.ai-page a.ai-pill:hover .ic{ transform: translateX(3px); }
.ai-page .ai-pill--white{ background: var(--white); color: var(--accent); }
.ai-page .ai-pill--white-ink{ background: var(--white); color: var(--ink); }
.ai-page .ai-pill--surface{ background: var(--surface); color: var(--ink); }
.ai-page .ai-label{ display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: var(--fs-caption); line-height: 1.4; white-space: nowrap; }
.ai-page .ai-label::before{ content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ai-page .ai-label--pilot{ color: var(--muted); background: var(--white); border: 1px dashed var(--muted); }
.ai-page .ai-label--pilot::before{ box-shadow: inset 0 0 0 1.5px var(--muted); }
.ai-page .ai-label--done{ color: var(--accent-ink); background: var(--accent-soft); }
.ai-page .ai-label--done::before{ background: var(--accent); }

/* ===== Icon box ===== */
.ai-page .ai-ib{ display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.ai-page .ai-ib .ic{ width: 24px; height: 24px; }
.ai-page .ai-ib--48{ width: 48px; height: 48px; border-radius: 14px; }
.ai-page .ai-ib--44{ width: 44px; height: 44px; border-radius: 12px; }
.ai-page .ai-ib--36{ width: 36px; height: 36px; border-radius: 10px; }
.ai-page .ai-ib--36 .ic{ width: 18px; height: 18px; }
.ai-page .ai-ib--white{ background: var(--white); }
.ai-page .ai-ib--surface{ background: var(--surface); }
.ai-page .ai-ib--round{ border-radius: 50%; }
.ai-page .ai-ib--muted{ color: var(--muted); }
.ai-page .ai-ib--ink{ color: var(--ink); }
.ai-page .ai-ib--fill{ background: var(--accent); color: var(--white); }
.ai-page .ai-ib--grad{ width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: var(--white); }
.ai-page .ai-ib--grad .ic{ width: 32px; height: 32px; }

/* ===== Cards ===== */
.ai-page .ai-grid{ display: grid; gap: 24px; }
.ai-page .ai-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-page .ai-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-page .ai-grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-page .ai-card{
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.ai-page .ai-card--soft{ background: var(--surface); box-shadow: none; }
.ai-page .ai-card--plain{ box-shadow: none; }
.ai-page .ai-card--r28{ border-radius: 28px; padding: 36px; }
.ai-page .ai-card--r32{ border-radius: 32px; }
.ai-page .ai-card__push{ flex: 1 1 auto; min-height: 0; }
.ai-page .ai-card--pain{ min-height: 306px; }
.ai-page .ai-card--pain .ai-ib{ margin-bottom: 40px; }
.ai-page .ai-card--hover:hover{ transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }

/* ===== Hero ===== */
.ai-page .ai-hero{ padding: 24px 0 40px; }
.ai-page .ai-crumbs{ display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }
.ai-page .ai-crumbs li{ display: flex; gap: 12px; }
.ai-page .ai-crumbs li + li::before{ content: '/'; }
.ai-page .ai-crumbs a{ transition: color .2s; }
.ai-page .ai-crumbs a:hover{ color: var(--accent); }
.ai-page .ai-crumbs [aria-current]{ color: var(--ink); }
.ai-page .ai-stage{
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 80px;
  min-height: min(847px, calc(100svh - 120px)); margin-top: 24px; padding: 48px 48px 48px 96px; border-radius: 40px;
  background: linear-gradient(90deg, #F7F9FF 0%, #F2F7FF 42%, #D6E6FF 100%);
}
.ai-page .ai-stage__text{ position: relative; z-index: 2; flex: 0 1 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ai-page .ai-stage__text--wide{ flex-basis: 840px; }
.ai-page .ai-stage__btns{ display: flex; flex-wrap: wrap; gap: 16px; }
.ai-page .ai-trust{ display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ai-page .ai-trust > span:first-child{ color: var(--muted); font-size: var(--fs-caption); }
.ai-page .ai-stage__viz{ position: relative; z-index: 2; flex: 0 1 820px; min-width: 0; }

/* binary background: field + scan line + streams (canvas) + veil */
.ai-page .ai-bin{ position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ai-page .ai-bin__field{
  position: absolute; inset: 0; overflow: hidden; white-space: pre;
  font-family: var(--mono); font-size: 16px; font-weight: 500; line-height: 18px; letter-spacing: .2em; color: rgba(0, 102, 255, .2);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.14) 36%, #000 60%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.14) 36%, #000 60%, #000 100%);
  opacity: .75;
}
.ai-page .ai-bin__canvas{ position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-page .ai-bin__scan{ position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(180deg, rgba(0,102,255,0) 0%, rgba(0,102,255,.16) 85%, rgba(0,102,255,0) 100%); transform: translateY(-160px); }
.ai-page .ai-bin__scan::after{ content: ''; position: absolute; left: 0; right: 0; top: 119px; height: 2px; background: rgba(0, 102, 255, .2); box-shadow: 0 0 10px rgba(0, 102, 255, .6); }
.ai-page .ai-bin__veil{ position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,249,255,.96) 0%, rgba(247,249,255,.9) 40%, rgba(247,249,255,.35) 54%, rgba(247,249,255,0) 62%); }

/* decorative compositions drawn in figma px and scaled to their column */
.ai-page .ai-viz{ position: relative; width: 100%; aspect-ratio: var(--vw) / var(--vh); }
.ai-page .ai-viz__stage{ position: absolute; left: 0; top: 0; width: calc(var(--vw) * 1px); height: calc(var(--vh) * 1px); transform-origin: 0 0; transform: scale(var(--s, 1)); }
.ai-page .ai-viz svg.abs{ overflow: visible; }

/* ===== Anchor menu (sticky) ===== */
.ai-page .ai-anchor{ position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: inset 0 -1px 0 var(--line); }
.ai-page .ai-anchor__in{ display: flex; align-items: center; gap: 24px; min-height: 109px; }
.ai-page .ai-anchor__tabs{ position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ai-page .ai-anchor__tabs::-webkit-scrollbar{ display: none; }
.ai-page .ai-anchor__tab{ position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; color: var(--muted); font-size: var(--fs-body); font-weight: 500; line-height: 1.4; white-space: nowrap; transition: color .35s, background-color .35s; }
.ai-page .ai-anchor__tab:hover{ color: var(--ink); }
.ai-page .ai-anchor__tab.is-active{ background: var(--ink); color: var(--white); }
.ai-page .ai-anchor__tabs.has-ind .ai-anchor__tab.is-active{ background: transparent; }
.ai-page .ai-anchor__ind{ position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 47px; border-radius: 999px; background: var(--ink); pointer-events: none; transition: transform .5s var(--ease), width .5s var(--ease); }
.ai-page .ai-anchor .ai-btn{ margin-left: auto; }

/* ===== Checklist ===== */
.ai-page .ai-get{ display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 1040fr); gap: 80px; }
.ai-page .ai-checks{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
.ai-page .ai-check{ display: flex; gap: 16px; font-size: var(--fs-body); line-height: 1.5; }
.ai-page .ai-check__dot{ display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-top: -2px; }
.ai-page .ai-check__dot .ic{ width: 20px; height: 20px; }
.ai-page .ai-ticks{ display: flex; flex-direction: column; gap: 20px; }
.ai-page .ai-tick{ display: flex; gap: 12px; font-size: var(--fs-caption); line-height: 1.4; }
.ai-page .ai-tick .ic{ width: 20px; height: 20px; color: var(--accent); }

/* ===== Boxes ===== */
.ai-page .ai-box{ padding: 64px; border-radius: 40px; background: var(--surface); }
.ai-page .ai-plaque{ position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; background: var(--grad); color: var(--white); }

/* ===== Hub: main service plaque ===== */
.ai-page .ai-main{ display: flex; flex-direction: column; gap: 48px; padding: 64px; }
.ai-page .ai-main__head{ display: flex; align-items: flex-end; gap: 80px; }
.ai-page .ai-main__text{ flex: 0 1 1152px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ai-page .ai-main__text .ai-lead{ max-width: 860px; }
.ai-page .ai-main__link{ margin-left: auto; display: inline-flex; align-items: center; gap: 12px; padding: 20px 28px; border-radius: 16px; background: var(--white); color: var(--accent); font-size: var(--fs-body); font-weight: 500; line-height: 1.4; white-space: nowrap; transition: background-color .25s; }
.ai-page .ai-main__link:hover{ background: var(--accent-soft); }
.ai-page .ai-main__link .ic{ width: 22px; height: 22px; transition: transform .4s var(--ease); }
.ai-page .ai-main__link:hover .ic{ transform: translateX(4px); }
.ai-page .ai-main__step{ display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: rgba(0, 0, 0, .12); transition: background-color .4s; }
.ai-page .ai-main__step:hover{ background: rgba(0, 0, 0, .2); }
.ai-page .ai-main__step .ai-eyebrow, .ai-page .ai-main__step p{ color: var(--white); }

/* ===== Hub: tools ===== */
.ai-page .ai-tool{ gap: 24px; padding: 24px; border-radius: 32px; }
.ai-page .ai-tool__scene{ position: relative; overflow: hidden; border-radius: 20px; background: var(--surface); }
.ai-page .ai-tool__text{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px; flex: 1; }
.ai-page .ai-tool:hover, .ai-page .ai-tool.is-cur{ box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }

/* ===== Hub: cases with illustrations ===== */
.ai-page .ai-hcase{ overflow: hidden; gap: 0; padding: 0; border-radius: 32px; }
.ai-page .ai-hcase__cover{ position: relative; overflow: hidden; }
.ai-page .ai-hcase__body{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; flex: 1; }
.ai-page .ai-client{ color: var(--muted); font-family: var(--mono); font-size: 16px; font-weight: 500; line-height: 18px; letter-spacing: .2em; }

/* ===== Hub: how to choose ===== */
.ai-page .ai-choose{ gap: 24px; padding: 48px; border-radius: 32px; align-items: flex-start; }
.ai-page .ai-choose .ai-golist{ align-self: stretch; }
.ai-page .ai-choose--soft{ background: var(--accent-soft); box-shadow: none; align-items: flex-start; }
.ai-page .ai-choose .ai-text{ max-width: 600px; }
.ai-page .ai-golist{ display: flex; flex-direction: column; }
.ai-page .ai-golist a{ display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); line-height: 1.4; transition: color .25s; }
.ai-page .ai-golist a:hover{ color: var(--accent); }
.ai-page .ai-golist .ic{ width: 24px; height: 24px; transition: transform .4s var(--ease); }
.ai-page .ai-golist a:hover .ic{ transform: translate(3px, -3px); }

/* ===== Formats (transformation) ===== */
.ai-page .ai-format{ gap: 20px; padding: 40px; border-radius: 32px; box-shadow: none; }
.ai-page .ai-format__top{ display: flex; align-items: center; justify-content: space-between; }
.ai-page .ai-format hr{ width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.ai-page .ai-note{ display: flex; align-items: center; gap: 24px; margin-top: 48px; padding: 24px 32px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ai-page .ai-note__title{ font-weight: 500; white-space: nowrap; }

/* ===== Table ===== */
.ai-page .ai-table{ overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ai-page .ai-table__row{ display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 559fr) minmax(0, 559fr) minmax(0, 280fr); }
.ai-page .ai-table__row + .ai-table__row{ border-top: 1px solid var(--line); }
.ai-page .ai-table__row > *{ padding: 28px 32px; }
.ai-page .ai-table__row--head{ background: var(--surface); color: var(--muted); font-size: var(--fs-caption); line-height: 1.4; }
.ai-page .ai-table__row--head > *{ padding-block: 18px; }
.ai-page .ai-table__row:not(.ai-table__row--head){ transition: background-color .3s; }
.ai-page .ai-table__row:not(.ai-table__row--head):hover{ background: #FBFCFF; }
.ai-page .ai-table__term{ font-weight: 500; }
.ai-page .ai-table__time{ color: var(--accent); }
.ai-page .ai-table__row [data-th]::before{ display: none; }

/* ===== Map example / work rows ===== */
.ai-page .ai-split{ display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 1120fr); gap: 80px; align-items: center; }
.ai-page .ai-split--work{ grid-template-columns: minmax(0, 640fr) minmax(0, 1040fr); }
.ai-page .ai-split__text{ display: flex; flex-direction: column; gap: 28px; }
.ai-page .ai-stages{ display: flex; flex-direction: column; gap: 32px; }
.ai-page .ai-stages li{ position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 28px; }
.ai-page .ai-stages li::before{ content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ai-page .ai-stages li b{ font-weight: 500; }
.ai-page .ai-stages li span{ color: var(--muted); }
.ai-page .ai-points{ display: flex; flex-direction: column; gap: 28px; }
.ai-page .ai-point{ display: flex; align-items: center; gap: 16px; font-weight: 500; }
.ai-page .ai-mock{ position: relative; }

/* ===== Steps (timeline) ===== */
.ai-page .ai-steps{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ai-page .ai-step{ display: flex; flex-direction: column; gap: 20px; }
.ai-page .ai-step__mark{ display: flex; align-items: center; gap: 12px; }
.ai-page .ai-step__num{ display: grid; place-items: center; flex: none; width: 38px; height: 39px; border-radius: 24px; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: .2em; text-indent: .2em; transition: background-color .4s, color .4s; }
.ai-page .ai-step__line{ flex: 1; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.ai-page .ai-step:last-child .ai-step__line{ display: none; }
.ai-page .ai-step.is-on .ai-step__num, .ai-page .ai-step:first-child .ai-step__num{ background: var(--accent); color: var(--white); }

/* ===== Dark example ===== */
.ai-page .ai-dark{ position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 40px; padding: 72px; border-radius: 40px; background: var(--ink); color: var(--white); }
.ai-page .ai-dark__glow{ position: absolute; right: -60px; top: -260px; z-index: -1; width: 620px; height: 620px; border-radius: 50%; background: var(--accent); filter: blur(90px); pointer-events: none; }
.ai-page .ai-dark .ai-h2{ max-width: 1000px; }
.ai-page .ai-dark__steps{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ai-page .ai-dark__step{ display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 1px var(--white); transition: background-color .4s, transform .5s var(--ease); }
.ai-page .ai-dark__step:hover{ background: rgba(255, 255, 255, .06); transform: translateY(-4px); }
.ai-page .ai-dark__step .ai-eyebrow{ color: #7FB0FF; }

/* ===== Beyond / list cards ===== */
.ai-page .ai-rows{ display: flex; flex-direction: column; gap: 16px; }
.ai-page .ai-row{ display: flex; gap: 24px; padding: 28px 32px; border-radius: 24px; background: var(--surface); transition: background-color .3s; }
.ai-page .ai-row:hover{ background: var(--accent-soft); }
.ai-page .ai-row > div{ display: flex; flex-direction: column; gap: 8px; }

/* ===== Early ===== */
.ai-page .ai-early{ display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 1046fr); gap: 80px; padding: 48px 56px; border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.ai-page .ai-early__title{ display: flex; flex-direction: column; gap: 16px; }
.ai-page .ai-early__list li{ display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.ai-page .ai-early__list li + li{ border-top: 1px solid var(--line); }

/* ===== Cases (service pages) ===== */
.ai-page .ai-case{ padding: 32px; border-radius: 32px; }
.ai-page .ai-case__cover{ position: relative; overflow: hidden; aspect-ratio: 356 / 240; border-radius: 20px; background: var(--surface); }
.ai-page .ai-cases--3 .ai-case__cover{ aspect-ratio: 505 / 240; }
.ai-page .ai-case__cover img{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ai-page .ai-case:hover .ai-case__cover img{ transform: scale(1.04); }
.ai-page .ai-case__num{ position: absolute; left: 16px; bottom: 16px; padding: 8px 16px; border-radius: 14px; background: var(--white); color: var(--accent); font-size: 36px; font-weight: 900; line-height: 1; }
.ai-page .ai-case .ai-link{ margin-top: auto; }
.ai-page .ai-forum{ display: flex; align-items: center; gap: 32px; margin-top: 48px; padding: 28px 40px; border-radius: 24px; background: var(--accent-soft); }
.ai-page .ai-forum > div{ display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ai-page .ai-plain-note{ display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding: 24px 32px; border-radius: 24px; background: var(--accent-soft); }

/* ===== Process cards (agents) ===== */
.ai-page .ai-proc{ gap: 14px; padding: 28px; }
.ai-page .ai-proc__top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-page .ai-proc .ai-small{ font-size: var(--fs-caption); }
.ai-page .ai-proc--done .ai-ib{ background: var(--accent); color: var(--white); }

/* ===== Flow ===== */
.ai-page .ai-flow{ display: flex; align-items: center; gap: 12px; }
.ai-page .ai-flow__item{ flex: 1 1 0; min-width: 0; gap: 12px; padding: 28px; min-height: 204px; }
.ai-page .ai-flow__arrow{ width: 28px; height: 28px; color: var(--accent); }
.ai-page .ai-flow__item--accent{ background: var(--accent); color: var(--white); box-shadow: 0 16px 40px rgba(0, 102, 255, .3); }
.ai-page .ai-flow__item--accent .ai-small{ color: var(--white); }
.ai-page .ai-flow-note{ margin-top: 24px; }

/* ===== Site: pilot plaque, connect, roles ===== */
.ai-page .ai-pilot{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-page .ai-pilot > div{ display: flex; flex-direction: column; gap: 20px; padding: 56px 64px; }
.ai-page .ai-pilot > div + div{ box-shadow: inset 1px 0 0 var(--white); }
.ai-page .ai-connect{ display: flex; align-items: stretch; }
.ai-page .ai-connect__stage{ flex: 1 1 0; min-width: 0; gap: 12px; padding: 28px; box-shadow: none; }
.ai-page .ai-connect__stage--dash{ background: var(--white); border: 1.5px dashed var(--accent); }
.ai-page .ai-connect__arrow{ display: grid; place-items: center; flex: 0 0 40px; color: var(--accent); }
.ai-page .ai-connect__arrow .ic{ width: 22px; height: 22px; }
.ai-page .ai-connect__foot{ display: flex; align-items: center; gap: 32px; margin-top: 48px; }
.ai-page .ai-connect__foot .ai-small{ flex: 1; }
.ai-page .ai-role{ padding: 32px; border-radius: 28px; }

/* ===== FAQ ===== */
.ai-page .ai-faq{ display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 1120fr); gap: 80px; align-items: start; }
.ai-page .ai-faq__item{ border-bottom: 1px solid var(--line); }
.ai-page .ai-faq__q{ display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 100%; padding: 28px 0; text-align: left; font-size: var(--fs-lead); line-height: 1.4; }
.ai-page .ai-faq__t{ display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--ink); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.ai-page .ai-faq__t .ic{ width: 20px; height: 20px; }
.ai-page .ai-faq__q:hover .ai-faq__t{ background: var(--accent-soft); color: var(--accent); }
.ai-page .ai-faq__t .ic-minus{ display: none; }
.ai-page .ai-faq__item.is-open .ai-faq__t{ background: var(--accent); color: var(--white); transform: rotate(180deg); }
.ai-page .ai-faq__item.is-open .ai-faq__t .ic-plus{ display: none; }
.ai-page .ai-faq__item.is-open .ai-faq__t .ic-minus{ display: block; }
.ai-page .ai-faq__a{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.ai-page .ai-faq__item.is-open .ai-faq__a{ grid-template-rows: 1fr; }
.ai-page .ai-faq__a > div{ overflow: hidden; }
.ai-page .ai-faq__a p{ max-width: 860px; padding-bottom: 28px; }
.ai-page .ai-faq__q{ transition: padding-bottom .5s var(--ease); }
.ai-page .ai-faq__item.is-open .ai-faq__q{ padding-bottom: 16px; }
.ai-page .ai-faq__todo{ color: #B54708; font-style: italic; }

/* ===== CTA ===== */
.ai-page .ai-cta{
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 80px; padding: 80px; border-radius: 40px;
  background: var(--grad); color: var(--white);
}
.ai-page .ai-cta__bg{ position: absolute; top: 0; right: 0; z-index: -1; pointer-events: none; }
.ai-page .ai-cta__text{ flex: 0 1 930px; display: flex; flex-direction: column; gap: 24px; }
.ai-page .ai-cta__text .ai-lead{ color: rgba(255, 255, 255, .92); }
.ai-page .ai-cta__btns{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.ai-page .ai-cta__ripples{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ai-page .ai-cta__glow{ position: absolute; right: 9%; top: -87px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: rgba(153, 204, 255, .45); filter: blur(70px); pointer-events: none; }
.ai-page .ai-cta__field{
  position: absolute; left: 0; top: 0; bottom: 0; width: 58%; z-index: -1; overflow: hidden; pointer-events: none;
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 24px; letter-spacing: 10px; white-space: pre;
  color: #fff; opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent); mask-image: linear-gradient(90deg, #000 20%, transparent);
}

/* ===== На сайте страница стоит внутри .ch-wrap: свои поля не добавляем ===== */
/* .ch{overflow-x:hidden} ломает position:sticky у якорного меню — clip не ломает */
.ch:has(.ai-page){ overflow-x: clip; }
.ch .ai-page{ --gutter: calc(5 * var(--r)); }
.ch .ai-page .ai-wrap{ width: 100%; }
.ch .ai-page .ai-anchor{ margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

/* ===== Responsive ===== */
@media (max-width: 1440px) {
  .ai-page .ai-stage{ padding: 40px 40px 40px 64px; gap: 48px; }
  .ai-page .ai-main{ padding: 48px; }
  .ai-page .ai-box{ padding: 48px; }
  .ai-page .ai-dark{ padding: 56px; }
  .ai-page .ai-cta{ padding: 64px; gap: 48px; }
  .ai-page .ai-get, .ai-page .ai-split, .ai-page .ai-faq, .ai-page .ai-early{ gap: 48px; }
  .ai-page .ai-format{ padding: 32px; }
  .ai-page .ai-pilot > div{ padding: 48px; }
  .ai-page .ai-table__row > *{ padding-inline: 24px; }
}
@media (max-width: 1200px) {
  .ai-page .ai-stage{ flex-direction: column; align-items: stretch; min-height: 0; padding: 56px 48px 48px; }
  .ai-page .ai-stage__text{ flex: none; max-width: 820px; }
  .ai-page .ai-stage__viz{ flex: none !important; width: 100%; max-width: 820px; margin-inline: auto; }
  .ai-page .ai-main__text, .ai-page .ai-cta__text{ flex: none; }
  .ai-page .ai-bin__veil{ background: linear-gradient(180deg, rgba(247,249,255,.96) 0%, rgba(247,249,255,.9) 40%, rgba(247,249,255,.35) 58%, rgba(247,249,255,0) 70%); }
  .ai-page .ai-bin__field{ -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.14) 36%, #000 60%); mask-image: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.14) 36%, #000 60%); }
  .ai-page .ai-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-page .ai-steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .ai-page .ai-step:nth-child(3n) .ai-step__line{ display: none; }
  .ai-page .ai-split, .ai-page .ai-split--work{ grid-template-columns: 1fr; }
  .ai-page .ai-main__head{ flex-direction: column; align-items: flex-start; gap: 32px; }
  .ai-page .ai-main__link{ margin-left: 0; }
  .ai-page .ai-cta{ flex-direction: column; align-items: flex-start; }
  .ai-page .ai-cta__btns{ margin-left: 0; }
  .ai-page .ai-flow{ flex-wrap: wrap; }
  .ai-page .ai-flow__item{ flex: 1 1 calc(33.333% - 40px); }
  .ai-page .ai-connect{ flex-wrap: wrap; gap: 16px; }
  .ai-page .ai-connect__stage{ flex: 1 1 calc(50% - 8px); }
  .ai-page .ai-connect__arrow{ display: none; }
}
@media (max-width: 1024px) {
  .ai-page .ai-head{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .ai-page .ai-head__lead{ flex: none; }
  .ai-page .ai-grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-page .ai-get, .ai-page .ai-faq, .ai-page .ai-early{ grid-template-columns: 1fr; gap: 32px; }
  .ai-page .ai-checks{ grid-template-columns: 1fr; gap: 20px; }
  .ai-page .ai-dark__steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-page .ai-pilot{ grid-template-columns: 1fr; }
  .ai-page .ai-pilot > div + div{ box-shadow: inset 0 1px 0 var(--white); }
  .ai-page .ai-note{ flex-wrap: wrap; gap: 12px 20px; }
  .ai-page .ai-note__title{ white-space: normal; }
  .ai-page .ai-forum{ flex-wrap: wrap; gap: 16px 24px; }
  .ai-page .ai-connect__foot{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .ai-page .ai-anchor .ai-btn{ display: none; }
  .ai-page .ai-anchor__in{ min-height: 80px; }
  /* таблица → карточки */
  .ai-page .ai-table__row--head{ display: none; }
  .ai-page .ai-table__row{ grid-template-columns: 1fr; padding: 20px 24px; gap: 10px; }
  .ai-page .ai-table__row > *{ padding: 0; }
  .ai-page .ai-table__row [data-th]::before{ content: attr(data-th); display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; }
  .ai-page .ai-table__row:nth-child(2){ border-top: 0; }
}
@media (max-width: 768px) {
  .ai-page .ai-hero{ padding-bottom: 24px; }
  .ai-page .ai-stage{ margin-top: 16px; padding: 40px 24px 32px; gap: 40px; border-radius: 28px; }
  .ai-page .ai-stage__text{ gap: 24px; }
  .ai-page .ai-stage__btns{ width: 100%; }
  .ai-page .ai-stage__btns .ai-btn{ flex: 1 1 auto; }
  .ai-page .ai-grid--2, .ai-page .ai-grid--3, .ai-page .ai-grid--4{ grid-template-columns: 1fr; gap: 16px; }
  .ai-page .ai-card--pain{ min-height: 0; }
  .ai-page .ai-card--pain .ai-ib{ margin-bottom: 8px; }
  .ai-page .ai-steps{ grid-template-columns: 1fr; gap: 0; }
  .ai-page .ai-step{ display: grid; grid-template-columns: 38px 1fr; column-gap: 20px; row-gap: 8px; padding-bottom: 32px; }
  .ai-page .ai-step__mark{ grid-row: span 3; flex-direction: column; align-self: stretch; gap: 8px; }
  .ai-page .ai-step__line, .ai-page .ai-step:nth-child(3n) .ai-step__line{ display: block; width: 2px; height: auto; flex: 1; }
  .ai-page .ai-step:last-child .ai-step__line{ display: none; }
  .ai-page .ai-dark, .ai-page .ai-box, .ai-page .ai-main, .ai-page .ai-cta{ padding: 40px 24px; border-radius: 28px; }
  .ai-page .ai-dark__steps{ grid-template-columns: 1fr; }
  .ai-page .ai-dark__glow{ width: 360px; height: 360px; top: -160px; right: -160px; }
  .ai-page .ai-main__link{ width: 100%; justify-content: space-between; white-space: normal; }
  .ai-page .ai-format, .ai-page .ai-choose, .ai-page .ai-case, .ai-page .ai-role, .ai-page .ai-card--r28{ padding: 24px; }
  .ai-page .ai-tool{ padding: 16px; }
  .ai-page .ai-early{ padding: 32px 24px; }
  .ai-page .ai-row{ padding: 24px; gap: 16px; }
  .ai-page .ai-pilot > div{ padding: 32px 24px; }
  .ai-page .ai-flow{ flex-direction: column; align-items: stretch; }
  .ai-page .ai-flow__item{ flex: none; min-height: 0; }
  .ai-page .ai-flow__arrow{ align-self: center; transform: rotate(90deg); }
  .ai-page .ai-connect__stage{ flex: 1 1 100%; }
  .ai-page .ai-faq__q{ padding: 22px 0; gap: 16px; }
  .ai-page .ai-faq__t{ width: 40px; height: 40px; }
  .ai-page .ai-cta__btns{ flex-direction: column; align-items: stretch; width: 100%; }
  .ai-page .ai-cta__btns .ai-btn{ padding: 20px 24px; }
  .ai-page .ai-cta__field{ width: 100%; }
  .ai-page .ai-forum, .ai-page .ai-plain-note{ padding: 24px; }
  .ai-page .ai-mock{ overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; scrollbar-width: thin; }
  .ai-page .ai-mock .ai-viz{ width: 680px; }
  .ai-page .ai-golist a{ font-size: 20px; }
}
@media (max-width: 600px) {
  .ai-page .ai-nb{ white-space: normal; }
  .ai-page .ai-h1{ font-size: min(var(--fs-h1), 8.4vw); }
}
@media (max-width: 480px) {
  .ai-page .ai-btn{ padding: 18px 24px; white-space: normal; text-align: center; }
  .ai-page .ai-trust{ gap: 8px; }
  .ai-page .ai-trust > span:first-child{ width: 100%; }
  .ai-page .ai-label{ font-size: 13px; }
  .ai-page .ai-proc__top{ flex-wrap: wrap; }
  .ai-page .ai-case__num{ font-size: 28px; }
}
