/* База */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #0E1115;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
}

/* Фон-сетка */
#bg-grid {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block;
}

/* Шапка: только логотип слева */
.site-header{
  position: sticky; top: 0; z-index: 1000;   /* выше любых теней панели */
  display: flex; align-items: center;
  padding: 14px 24px;
       /* слегка видна в любой секции */
  backdrop-filter: blur(2px);
}
.brand {
  font-weight: 800; letter-spacing: 0.4px; color: #0E1115;
  font-size: 1rem;
}
/* =========================
   HERO: заголовок + чат
   (изолировано под .hero)
   ========================= */

/* Сетка секции */
.hero{
  min-height: calc(100vh - 60px);
  display: grid;
  align-items: center;
}
.hero .hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 */
  gap: 0;
}

/* Левая колонка (текст) */
.hero .hero-left{ padding: 0 32px 0 24px; }
.hero .hero-left h1{
  margin: 0 0 12px 0;
  font-size: clamp(18px, 4vw, 60px);
  line-height: 1.06;
  font-weight: 200;
  letter-spacing: 0.1px;
  color: #000;
  max-width: 100%;
}

/* Правая колонка (фон и контейнер чата) */
.hero .hero-right{
  display: flex;
  align-items: center;
  justify-content: stretch;
  padding: 0 24px 0 32px;
  background: #fff center/cover no-repeat;
  border-radius: 50px;
}

/* === ЧАТ === */
.hero .chat-demo{
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;      /* не растягивать детей на 100% ширины */
}

/* Общая база пузырей */
.hero .msg{
  max-width: 85%;
  padding: 10px 15px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, width .5s ease;
  word-break: break-word;
  white-space: pre-wrap;
  background: rgba(255,255,255,0);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.hero .msg.visible{ opacity: 1; transform: translateY(0); }

/* Пользователь */
.hero .msg.user{
  max-width: 50%;
  text-align: left;
  font-weight: 500;
  font-size: 1.2rem;
  color: #000;
  background: rgb(236,236,236);
}

/* Агент (база) */
.hero .msg.agent{
  position: relative;
  right: 5%;
  color: #000;
  background: #fff;
  border-radius: 60px;
  padding: 15px 25px;
  font-weight: 300;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(155,155,155,0.3);
}

/* Состояние "Думаю": пузырь ровно по ширине слова */
.hero .msg.agent.is-thinking{
  align-self: flex-start;   /* не растягивать */
  display: inline-flex;     /* shrink-to-fit */
  width: auto;
  max-width: none;
  white-space: nowrap;      /* 'Думаю' в одну строку */
  border-radius: 999px;
  padding: 15px 25px;
}

/* Буквы «Думаю» с волной — локально для HERO */
.hero .chat-demo .thinking-letter{
  display: inline-block;
  font-weight: 200;
  font-size: 2.5rem;
  color: #000;
  white-space: nowrap;
  animation: heroWave .7s infinite;
  opacity: .85;
}
@keyframes heroWave{
  0%,100% { color:#000; text-shadow:none; opacity:.6; transform: translateY(0); }
  50%     { color:#fff; text-shadow:0 0 6px #fff, 0 0 12px #fff; opacity:1; }
}

/* Появление слева (для пузыря пользователя) */
.hero .slide-in-left{ animation: heroSlideInLeft 280ms ease both; }
@keyframes heroSlideInLeft{
  from { transform: translateX(-10px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* Мигающий карет (если используешь .caret при печати) */
.hero .msg.agent .caret{
  display: inline-block;
  width: 1px; height: 1.2em;
  background: #000;
  vertical-align: -0.2em;
  margin-left: 2px;
  animation: heroCaret 1s steps(2,start) infinite;
}
@keyframes heroCaret{ to { opacity: 0; } }

/* Адаптив: на мобильных — один столбец, чат растягиваем */
@media (max-width: 1024px){
  .hero .hero-grid{ grid-template-columns: 1fr; }
  .hero .hero-right{ padding: 24px; }
  .hero .msg.agent{ right: 0; }         /* без сдвига вправо */
  .hero .msg.user{ margin-left: 0; }    /* компактнее на мобиле */
}














/* =========================
   HERO — mobile overrides
   ========================= */

/* Tablet / small laptop */
@media (max-width: 820px){
  .hero{ min-height: auto; }
  .hero .hero-grid{ grid-template-columns: 1fr; }

  .hero .hero-left{ padding: 0 22px; }
  .hero .hero-left h1{
    font-size: clamp(18px, 7.4vw, 28px);
    line-height: 1.08;
  }

  .hero .hero-right{
    padding: 18px 22px;
    border-radius: 28px;
  }

  .hero .chat-demo{ gap: 8px; }

  .hero .msg{
    max-width: 92%;
    font-size: clamp(15px, 3.8vw, 17px);
    border-radius: 18px;
  }

  .hero .msg.user{
    margin-left: 0;
    max-width: 88%;
    font-size: clamp(16px, 4.2vw, 18px);
    background: #f2f2f2;
  }

  .hero .msg.agent{
    right: 0;
    padding: 12px 16px;
    font-size: clamp(16px, 4.2vw, 18px);
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
  }

  /* «Думаю» остаётся по ширине слова, но компактнее */
  .hero .msg.agent.is-thinking{
    padding: 10px 14px;
    border-radius: 999px;
  }
  .hero .chat-demo .thinking-letter{
    font-size: clamp(20px, 9vw, 30px);
  }

  /* делаем анимации чуть короче на меньших экранах */
  .hero .slide-in-left{ animation-duration: 240ms; }
}

/* Phones */
@media (max-width: 560px){
  .hero .hero-left{ padding: 0 18px; }
  .hero .hero-right{
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .hero .msg.user{ padding: 9px 12px; font-size: 14px;font-weight: 200;}
  .hero .chat-demo{ gap: 7px; }

  .hero .msg{
    padding: 9px 12px;
    border-radius: 16px;
  }


  .hero .msg.agent{
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
  }

  .hero .msg.agent.is-thinking{ padding: 8px 12px; }
  .hero .chat-demo .thinking-letter{
    font-size: clamp(18px, 10vw, 26px);
  }
}

/* Very small phones */
@media (max-width: 380px){
  .hero .hero-left h1{
    font-size: clamp(17px, 7.8vw, 28px);
  }
  .hero .chat-demo{ gap: 6px; }

  .hero .msg{ padding: 8px 10px; }
  .hero .msg.user{ padding: 9px 12px; font-size: 14px;font-weight: 200;}
  .hero .msg.agent{ padding: 9px 12px; }
  .hero .msg.agent.is-thinking{ padding: 7px 10px; }

  .hero .chat-demo .thinking-letter{
    font-size: clamp(16px, 11.5vw, 22px);
  }
}


/* =========================================
   SECTION 2: Результаты пилотов  (#cases)
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-cases{
  padding: 80px 24px;
  background: transparent;
}
.section-cases .cases-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовки */
.section-cases .cases-title{
  margin: 0 0 6px 0;
  font-size: clamp(26px, 4.8vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-cases .cases-sub{
  margin: 0 0 18px 0;
  color: #4A4F57;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Сетка карточек KPI */
.section-cases .cases-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Карточка KPI */
.section-cases .case-card{
  position: relative;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-cases .case-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.20);
  border-color: rgba(0,0,0,0.10);
}
.section-cases .case-card:focus-visible{
  outline: 2px solid #0E1115;
  outline-offset: 2px;
}

/* Число KPI */
.section-cases .kpi{
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.08;
  font-weight: 200;
  letter-spacing: -0.01em;
  color: #0E1115;
  /* небольшой моно-акцент по цифрам, если они длинные */
  font-variant-numeric: tabular-nums;
}

/* Подпись */
.section-cases .kpi-sub{
  margin-top: 6px;
  color: #4A4F57;
  font-size: 14px;
}

/* =========================
   Адаптация
   ========================= */

/* 2 колонки на средних экранах */
@media (max-width: 980px){
  .section-cases{ padding: 64px 22px; }
  .section-cases .cases-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }

  .section-cases .case-card{
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  }

  .section-cases .kpi{
    font-size: clamp(26px, 5.4vw, 36px);
  }
}

/* 1 колонка на телефонах */
@media (max-width: 560px){
  .section-cases{ padding: 50px 18px; }
  .section-cases .cases-title{ font-size: clamp(22px, 7vw, 30px); }
  .section-cases .cases-sub{ font-size: clamp(13px, 3.8vw, 16px); }

  .section-cases .cases-grid{ grid-template-columns: 1fr; gap: 12px; }

  .section-cases .case-card{
    padding: 16px 16px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  }

  .section-cases .kpi{
    font-size: clamp(24px, 8vw, 32px);
  }
  .section-cases .kpi-sub{
    font-size: 13px;
  }
}

/* Уважение reduce-motion */
@media (prefers-reduced-motion: reduce){
  .section-cases .case-card{ transition: none; }
}


/* =========================================
   SECTION 3: ReAct Flow (только правая панель)
   — изолированный блок
   ========================================= */

/* Секция и заголовок */
.react-flow{
  padding: 80px 20px 100px;
}
.react-flow .flow-head{
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 20px;
  text-align: center;
}
.react-flow .flow-head-title{
  margin: 0 0 22px;
  font-size: clamp(26px, 4.8vw, 43px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.react-flow .flow-sub{
  margin: 0 auto;
  max-width: 860px;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Контент секции: только один столбец */
.react-flow .flow-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: block;     /* никаких колонок */
  padding: 0 20px;
}

/* Левый рейл и точка — отключены полностью (на случай, если разметка осталась) */
.react-flow .flow-rail,
.react-flow .flow-dot{ display: none !important; }

/* ===== Правая панель ===== */
.react-flow .flow-panel{
  position: relative;
  border-radius: 20px;
  background: url('/images/3.jpg') center/cover no-repeat;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  min-height: 420px;
  padding: 20px;
  overflow: hidden;
}

/* Лёгкая вуаль над фоном (можно усилить непрозрачность при необходимости) */
.react-flow .flow-panel::before{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  backdrop-filter: blur(0px);
}

/* Весь контент панели поверх вуали */
.react-flow .panel-content,
.react-flow .panel-note{ position: relative; z-index: 1; }

/* Центровка сцены */
.react-flow .panel-content{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 12px;
  min-height: 320px;
  max-width: 600px; width: 92%;
  margin: 0 auto;
  background: transparent;
}

/* Пояснение с «псевдо-печатью» (текст набирается из JS) */
.react-flow .panel-note{
  position: absolute;
  left: 20px; bottom: 18px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.35;
  min-height: 20px;
  border-right: 2px solid rgba(0,0,0,0.25);
  border-radius: 12px;
  backdrop-filter: blur(2px);
  padding: 5px 8px;
}

/* ===== Сцена (unit) и морфинги ===== */
.react-flow .rf-unit{
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0;
  color: #0E1115;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  overflow: hidden;
  will-change: width,height,padding,border-radius,transform,box-shadow,opacity;
  transition:
    width var(--rf-morph,.9s) cubic-bezier(.20,.80,.20,1),
    height var(--rf-morph,.9s) cubic-bezier(.20,.80,.20,1),
    padding var(--rf-morph,.9s) cubic-bezier(.20,.80,.20,1),
    border-radius var(--rf-morph,.9s) cubic-bezier(.20,.80,.20,1),
    box-shadow var(--rf-morph,.9s) cubic-bezier(.20,.80,.20,1),
    opacity .35s ease;
}
.react-flow .rf-unit-body{
  width: 100%;
  display:flex; flex-direction:column; gap:1px; text-align:left;
}

/* Формы */
.react-flow .rf-unit.is-circle{ width:96px; height:96px; border-radius:9999px; padding:0; }
.react-flow .rf-unit.is-bubble{
  height:96px;
  width: var(--rf-bubble-w, min(520px,92%)); /* ширина «Думаю» под слово */
  padding: 22px 28px;
  border-radius: 46px;
}
.react-flow .rf-unit.is-rect{ width:min(560px,92%); min-height:128px; padding:18px 22px; border-radius:46px; }

/* Мягкое мигание круга ожидания */
@keyframes rfSoftBlink{ 0%,100%{opacity:1} 50%{opacity:.3} }
.react-flow .rf-unit.is-circle.is-blinking{ animation: rfSoftBlink 1.3s linear infinite; background:#fff; }

/* Печать строки */
.react-flow .type-line{ display:block; font-size:20px; line-height:1.38; color:#3c4756; }

/* Длинный «focus scale» */
@keyframes rfFocus{ 0%{transform:scale(1)} 50%{transform:scale(1.16)} 100%{transform:scale(1)} }
.react-flow .rf-focus{ animation: rfFocus 5.2s cubic-bezier(.20,.80,.20,1) 1 both; }

/* Буквы «Думаю» с glow */
.react-flow .panel-thinking .thinking-letter{
  font-weight: 200; font-size: 30px; color:#0E1115;
  display:inline-block; animation: rfWave 1.1s infinite;
}
@keyframes rfWave{ 0%,100%{ color:#0E1115; text-shadow:none } 50%{ color:#fff; text-shadow:0 0 6px #fff } }

/* Пункты плана и слоты */
.react-flow .rf-point-list{ display:flex; flex-direction:column; gap:8px; }
.react-flow .rf-point{ display:flex; gap:8px; align-items:flex-start; font-size:20px; color:#3c4756;
  opacity:0; transform: translateY(6px); transition: opacity .30s ease, transform .30s ease; }
.react-flow .rf-point.in{ opacity:1; transform: translateY(0); }
.react-flow .rf-dot{ width:6px; height:6px; border-radius:50%; background: rgba(0,0,0,.55); margin-top:8px; }

.react-flow .slot-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.react-flow .slot-chip{
  padding:6px 10px; border-radius:999px;
  background: rgba(0,0,0,0.05); border:1px solid rgba(0,0,0,0.15);
  color:#000; font-weight:600; font-size:16px;
}

/* ACT: мини-консоль действий */
.react-flow .rf-console{
  position:relative;
  padding: 14px 18px 16px 22px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color:#03ff18;
}
.react-flow .rf-row{ position:relative; display:flex; align-items:baseline; gap:1px; line-height:1.4; padding:3px 0; }
.react-flow .rf-prompt{ opacity:.55; }
.react-flow .rf-ell{ min-width:14px; opacity:.65; }
.react-flow .rf-res{ margin-left:6px; opacity:0; transition:opacity .24s ease; }
.react-flow .rf-res.ok{ color:#ff9d00; font-weight:700; }
.react-flow .rf-res.sent{ color:#006eff; opacity:.15; }
.react-flow .rf-bar{
  position:absolute; left:6px; top:8px; width:2px; height:16px; background: rgba(0,0,0,.55);
  border-radius:2px; transition: top .35s cubic-bezier(.20,.80,.20,1), height .25s ease;
}
.react-flow .rf-status{
  margin-top: 8px; font-size: 21px; color: #ffffff;
  opacity:0; transform: translateY(4px); transition: opacity .24s ease, transform .24s ease;
}
.react-flow .rf-status.in{ opacity:1; transform: translateY(0); }
.react-flow .rf-log{ margin-top:8px; font-size:13px; color:#616161; opacity:0; transform: translateY(4px); transition: opacity .24s ease, transform .24s ease; }
.react-flow .rf-log.in{ opacity:1; transform: translateY(0); }

/* Одноразовый sheen на прямоугольнике ACT */
@keyframes rfSheenMove{ to { transform: translateX(140%); } }
.react-flow .rf-unit.with-sheen::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.6) 8%, transparent 16%);
  transform: translateX(-120%); animation: rfSheenMove .45s ease var(--rf-sheen-delay,0s) 1 forwards;
}

/* Overlay: старт/повтор */
.react-flow .rf-overlay{
  position:absolute; inset:0; display:grid; place-items:center; z-index:3;
  transition: opacity .28s ease;
}
.react-flow .rf-overlay.is-hidden{ opacity:0; pointer-events:none; }
.react-flow .rf-overlay.is-visible{ opacity:1; pointer-events:auto; }

.react-flow .rf-ov-center{ position: relative; display: inline-block; }
.react-flow .rf-ov-pill{
  display:inline-block; padding:12px 18px; border-radius:999px;
  background: rgb(255, 255, 255); box-shadow:0 8px 24px rgba(0,0,0,.18);
  font-weight:200; color:#0E1115; user-select:none; font-size:30px;
}
.react-flow .rf-ov-play,
.react-flow .rf-ov-replay{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:56px; height:56px; border-radius:50%; border:0;
  display:flex; align-items:center; justify-content:center;
  background:#fff; box-shadow:0 12px 30px rgba(0,0,0,.22);
  font-weight:900; cursor:pointer; font-size:34px;
}
.react-flow .rf-ov-play{ font-size:25px; }
.react-flow .rf-ov-play:active,
.react-flow .rf-ov-replay:active{ transform:translate(-50%,-50%) scale(.97); }

/* Режимы */
.react-flow .rf-overlay[data-mode="preview"] .rf-ov-center{ display:block; }
.react-flow .rf-overlay[data-mode="preview"] .rf-ov-replay{ display:none; }
.react-flow .rf-overlay[data-mode="replay"]  .rf-ov-center{ display:none; }
.react-flow .rf-overlay[data-mode="replay"]  .rf-ov-replay{ display:flex; position:static; transform:none; }

/* Уважение reduce-motion */
@media (prefers-reduced-motion: reduce){
  .react-flow .rf-unit{ transition: none; }
  .react-flow .rf-unit.is-circle.is-blinking{ animation: none; }
  .react-flow .rf-focus{ animation: none; }
  .react-flow .rf-overlay{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* Планшеты/небольшие ноутбуки */
@media (max-width: 960px){
  .react-flow{ padding: 64px 20px 80px; }
  .react-flow .flow-head{ margin-bottom: 12px; }

  .react-flow .flow-panel{
    min-height: 380px;
    border-radius: 18px;
  }
  .react-flow .panel-content{
    min-height: 300px;
    max-width: 560px;
  }

  .react-flow .rf-unit.is-bubble{
    padding: 18px 22px; border-radius: 40px;
  }
  .react-flow .panel-thinking .thinking-letter{
    font-size: clamp(22px, 5.2vw, 28px);
  }
  .react-flow .type-line{ font-size: 15px; }
  .react-flow .panel-note{
    font-size: 18px;
    left: 16px; bottom: 14px;
  }
    .react-flow .rf-ov-pill {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgb(255, 255, 255);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    font-weight: 200;
    color: #0E1115;
    user-select: none;
    font-size: 20px;
}
.react-flow .rf-point{ font-size: 15px; }
.react-flow .rf-console{ padding: 12px 14px 14px 18px; border-radius: 18px; 
font-size: 12px;}
}

/* Телефоны */
@media (max-width: 560px){
  .react-flow{ padding: 50px 16px 64px; }

  .react-flow .flow-panel{
    min-height: 340px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }
  .react-flow .panel-content{
    min-height: 260px;
    max-width: 520px; width: 100%;
    gap: 10px;
  }


  .react-flow .rf-unit.is-circle{ width:84px; height:84px; }
  .react-flow .rf-unit.is-bubble{
    height:84px; padding: 14px 18px; border-radius: 32px;
  }
  .react-flow .rf-unit.is-rect{
    min-height:110px; padding:14px 18px; border-radius:22px;
  }

  .react-flow .type-line{ font-size: 14px; }
  .react-flow .rf-point{ font-size: 11px; }

  .react-flow .slot-chip{
    padding: 6px 10px;
    font-size: 15px;
  }

  .react-flow .rf-console{ padding: 12px 14px 14px 18px; border-radius: 18px;font-size: 7px; }
  .react-flow .rf-status{ font-size: 13px; }

  .react-flow .panel-note{
    font-size: 16px;
    left: 12px; bottom: 12px;
    padding: 4px 6px;
  }
  .react-flow .rf-ov-pill {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgb(255, 255, 255);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    font-weight: 200;
    color: #0E1115;
    user-select: none;
    font-size: 16px;
}
/* Центруем "Думаю" внутри пузыря */
.react-flow .panel-thinking{
  display: flex;
  align-items: center;    /* по вертикали */
  justify-content: center;/* по горизонтали */
  width: 100%;
  height: 100%;
  text-align: center;
}
.react-flow .rf-console{ padding: 12px 14px 14px 18px; border-radius: 18px; 
font-size: 11px;}
/* немного ровнее базовая линия букв */
.react-flow .panel-thinking .thinking-letter{
  line-height: 1;         /* убираем лишний «воздух» снизу */
}

}

/* Очень узкие телефоны */
@media (max-width: 380px){
  .react-flow .panel-content{ min-height: 230px; }
  .react-flow .rf-unit.is-circle{ width:76px; height:76px; }
  .react-flow .rf-unit.is-bubble{ height:76px; padding: 12px 14px; }
  .react-flow .panel-thinking .thinking-letter{ font-size: 37px; }
  .react-flow .type-line{ font-size: 12px; }
  .react-flow .rf-unit.is-bubble{
  height:96px;
  width: var(--rf-bubble-w, min(100px,92%)); /* ширина «Думаю» под слово */
  padding: 22px 28px;
  border-radius: 46px;
}
.react-flow .rf-point{ font-size: 11px; }
.react-flow .rf-console{ padding: 12px 14px 14px 18px; border-radius: 18px; 
font-size: 8px;}

/* Центруем "Думаю" внутри пузыря */
.react-flow .panel-thinking{
  display: flex;
  align-items: center;    /* по вертикали */
  justify-content: center;/* по горизонтали */
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 37px;
}



}



.react-flow .rf-unit.is-bubble{
  height:96px;
  width: var(--rf-bubble-w, min(300px,92%)); /* ширина «Думаю» под слово */
  padding: 22px 28px;
  border-radius: 46px;
}
/* Центруем "Думаю" внутри пузыря */
.react-flow .panel-thinking{
  display: flex;
  align-items: center;    /* по вертикали */
  justify-content: center;/* по горизонтали */
  width: 100%;
  height: 100%;
  text-align: center;

}

/* немного ровнее базовая линия букв */
.react-flow .panel-thinking .thinking-letter{
  line-height: 1.2;         /* убираем лишний «воздух» снизу */
}








/* не даём переносить буквы «Думаю» */
.react-flow .panel-thinking{
  display:flex; align-items:center; justify-content:center; line-height:1;
}
.react-flow .panel-thinking > *{
  display:inline-flex;           /* вместо обычного блока */
  flex-wrap: nowrap;             /* одна строка */
  white-space: nowrap;
}



/* =========================================
   SECTION 4: Примеры использования
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.examples-section{
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 25px;
  display: flex;
  flex-direction: column;
  gap: 80px; /* расстояние между рядами */
}

/* Заголовок секции */
.examples-section .examples-head{
  text-align: center;
}
.examples-section .examples-title{
  margin: 0 0 8px;
  font-size: clamp(26px, 4.8vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.examples-section .examples-sub{
  margin: 0 auto;
  max-width: 860px;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Ряд примера */
.examples-section .example-item{
  display: grid;
  grid-template-columns: 45% 1fr; /* текст | картинка */
  gap: 40px;
  align-items: center;

  /* мягкое появление по скроллу */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.examples-section .example-item.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* Чередование колоночной раскладки: каждый второй ряд меняем местами */
.examples-section .example-item:nth-of-type(even) .example-text{ order: 2; }
.examples-section .example-item:nth-of-type(even) .example-image{ order: 1; }

/* Текст */
.examples-section .example-text h2{
  margin: 0;
  font-size: clamp(18px, 3vw, 50px);
  font-weight: 100;
  color: #010100;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

/* Картинка */
.examples-section .example-image{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.examples-section .example-image img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.examples-section .example-image:hover img{
  transform: scale(1.02);
}

/* Уважение reduce-motion */
@media (prefers-reduced-motion: reduce){
  .examples-section .example-item{ transition: none; }
  .examples-section .example-image img{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* Планшеты/небольшие ноутбуки */
@media (max-width: 960px){
  .examples-section{
    padding: 64px 22px;
    gap: 56px;
  }

  .examples-section .example-item{
    grid-template-columns: 1fr; /* одна колонка */
    gap: 18px;
    text-align: center;
  }
  /* Сбрасываем чередование — в одну колонку оно не нужно */
  .examples-section .example-item:nth-of-type(even) .example-text,
  .examples-section .example-item:nth-of-type(even) .example-image{
    order: initial;
  }

  .examples-section .example-text h2{
    font-size: clamp(22px, 5vw, 36px);
    line-height: 1.06;
  }

  .examples-section .example-image{
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  }
}

/* Телефоны */
@media (max-width: 560px){
  .examples-section{
    padding: 50px 18px;
    gap: 40px;
  }

  .examples-section .example-item{
    gap: 14px;
  }

  .examples-section .example-text h2{
    font-size: clamp(20px, 6.2vw, 28px);
  }

  .examples-section .example-image{
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  }
}

/* Очень узкие телефоны */
@media (max-width: 380px){
  .examples-section{ gap: 32px; }
  .examples-section .example-text h2{ font-size: clamp(18px, 7vw, 24px); }
}

/* =========================================
   SECTION 5: Интеграции
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-integrations{
  padding: 96px 25px 90px;
}
.section-integrations .integrations-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовок */
.section-integrations .integrations-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-integrations .integrations-head h2{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-integrations .integrations-head .int-sub{
  margin: 0 0 18px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
  max-width: 900px;
}

/* Табы */
.section-integrations .int-tabs{
  display: flex; gap: 12px; justify-content: center; margin: 8px 0 28px;
}
.section-integrations .int-tab{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 999px;
  font: 200 18px/1 Manrope, system-ui, sans-serif;
  color: #0E1115;
  cursor: pointer;
}
.section-integrations .int-tab.is-active{
  border-color: #0E1115;
}
.section-integrations .int-tab:focus-visible{
  outline: 2px solid #0E1115;
  outline-offset: 2px;
}

/* Панели */
.section-integrations .int-panel{ display: none; }
.section-integrations .int-panel.is-active{ display: block; }

/* Сетка панели: медиа слева, копирайт справа */
.section-integrations .int-grid{
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 520px;
  gap: 56px;
  align-items: flex-start;
}

/* ===== Медиа-блок ===== */
.section-integrations .int-media{
  padding: 16px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(2px);
}

/* Рамка видео */
.section-integrations .int-media .media-frame{
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

/* Анимированное превью (градиент) */
.section-integrations .int-media .media-frame::before{
  content:"";
  position:absolute; inset:0; z-index:0;
  /* динамические «пятна» + подложка */
  --x1:85%; --y1:10%; --x2:15%; --y2:85%; --x3:50%; --y3:20%; --x4:80%; --y4:80%;
  background:
    radial-gradient(120% 120% at var(--x1) var(--y1), rgba(0, 98, 255, .85), rgba(160 197 255 / .25) 50%, transparent 70%),
    radial-gradient(120% 120% at var(--x2) var(--y2), rgba(74 116 255 / .80), rgba(74 116 255 / .25) 50%, transparent 70%),
    radial-gradient(140% 140% at var(--x3) var(--y3), rgba(90 160 255 / .60), transparent 70%),
    radial-gradient(140% 140% at var(--x4) var(--y4), rgba(122 73 255 / .55), transparent 70%),
    linear-gradient(135deg, #5aa0ff 0%, #6d7cff 50%, #7a49ff 100%);
  background-blend-mode: screen, screen, screen, screen, normal;
  filter: saturate(120%) contrast(105%);
  animation: integ-blob 18s ease-in-out infinite alternate, integ-hue 24s linear infinite;
  transition: opacity .28s ease;
}
/* Прячем превью, когда видео играет */
.section-integrations .int-media .media-frame.playing::before{ opacity: 0; }

@keyframes integ-blob{
  0%   { --x1:85%; --y1:10%; --x2:15%; --y2:85%; --x3:50%; --y3:20%; --x4:80%; --y4:80%; }
  33%  { --x1:70%; --y1:20%; --x2:20%; --y2:70%; --x3:60%; --y3:35%; --x4:72%; --y4:65%; }
  66%  { --x1:58%; --y1:30%; --x2:28%; --y2:62%; --x3:40%; --y3:45%; --x4:60%; --y4:58%; }
  100% { --x1:75%; --y1:15%; --x2:25%; --y2:75%; --x3:55%; --y3:25%; --x4:85%; --y4:55%; }
}
@keyframes integ-hue{
  0%{ filter: saturate(120%) contrast(105%) hue-rotate(0deg); }
  50%{ filter: saturate(120%) contrast(105%) hue-rotate(18deg); }
  100%{ filter: saturate(120%) contrast(105%) hue-rotate(0deg); }
}

/* Видео и оверлей */
.section-integrations .demo-video{
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.section-integrations .media-overlay{
  position: absolute; inset:0; z-index: 2;
  display: grid; place-items: center;
  pointer-events: none;
}
.section-integrations .overlay-flow{
  pointer-events: auto;
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-weight: 200;
}
.section-integrations .overlay-play{
  pointer-events: auto;
  position: absolute; width: 56px; height: 56px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-weight: 900; font-size: 22px;
}

/* Бейджи под превью */
.section-integrations .badge-row{
  margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap;
}
.section-integrations .badge{
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.14);
  font-size: 14px; font-weight: 500; color:#0E1115;
}

/* ===== Копирайт (правый столбец) ===== */
.section-integrations .int-copy h3{
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3.2vw, 26px);
  line-height: 1.15;
  font-weight: 100;
  color: #0E1115;
}
.section-integrations .int-bullets{
  margin: 0 0 14px 0; padding-left: 20px;
  color: #0E1115; font-size: 18px;
}
.section-integrations .int-bullets li{ margin: 8px 0; }

/* Мини-flow под видео/в тексте */
.section-integrations .int-flow{
  display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px;
}
.section-integrations .int-flow > span{
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(0,0,0,.14);
  font-weight: 500; font-size: 14px;
}

/* Кнопки */
.section-integrations .btn-lg{
  padding: 14px 18px; font-size: 18px; border-radius: 999px;
}
.section-integrations .btn-ghost{
  background: transparent; border: 1px solid rgba(0,0,0,.14);
  color: #0E1115; border-radius: 999px; padding: 12px 16px;
  font-family: Manrope; font-weight: 200;
}

/* Примечание */
.section-integrations .int-note{
  margin-top: 14px; color: #62676f;
}
/* Вариант, растянутый на всю ширину сетки */
.section-integrations .int-panel .int-grid{ position: relative; }
.section-integrations .int-note.grid-note{
  grid-column: 1 / -1;
  text-align: center;
  max-width: 980px;
  margin: 20px auto 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-integrations .int-media .media-frame::before{ animation: none; }
}

/* =========================
   Адаптация
   ========================= */

/* ≤1100px — одна колонка, видео сверху */
@media (max-width: 1100px){
  .section-integrations .int-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-integrations .int-copy h3{
    font-size: clamp(22px, 4.2vw, 24px);
  }
  .section-integrations .int-media{
    border-radius: 22px;
  }
}

/* ≤720px — мобильные правки */
@media (max-width: 720px){
  .section-integrations{
    padding: 64px 22px 64px;
  }
  .section-integrations .overlay-play{ width: 50px; height: 50px; }
  .section-integrations .int-media .media-frame{ border-radius: 20px; }
  .section-integrations .badge-row{ gap: 8px; }
  .section-integrations .badge{ padding: 7px 10px; font-size: 13px; }
  .section-integrations .int-flow > span{ padding: 7px 10px; font-size: 13px; }
  .section-integrations .int-copy h3{ font-size: clamp(20px, 5vw, 22px); }
}

/* ≤420px — очень узкие */
@media (max-width: 420px){
  .section-integrations{ padding: 50px 18px; }
  .section-integrations .overlay-flow{ font-size: 14px; }
  .section-integrations .int-copy .int-bullets{ font-size: 16px; }
}




/* =========================================
   SECTION 6: Что умеет агент (Capabilities)
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-capabilities{
  padding: 96px 25px 90px;
}
.section-capabilities .cap-head{
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.section-capabilities .cap-head #cap-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-capabilities .cap-sub{
  margin: 0 0 22px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
  max-width: 820px;
}

/* Сетка: слева каталог, справа превью */
.section-capabilities .cap-grid{
  max-width: 1160px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px,560px) 1fr;
  gap: 56px;
  align-items: start;
}

/* ===== Левая колонка: каталог действий ===== */
.section-capabilities .cap-catalog{
  display: flex; flex-direction: column; gap: 22px;
}
.section-capabilities .cap-group{
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(0,0,0,.06);
}
.section-capabilities .cap-group-title{
  margin: 2px 0 10px 0;
  font-weight: 200; color: #0E1115;
}
.section-capabilities .cap-chips{
  display: flex; flex-wrap: wrap; gap: 10px;
}

/* Чипы */
.section-capabilities .cap-chip{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  color: #0E1115;
  font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.section-capabilities .cap-chip:hover{ background: rgba(0,0,0,.04); }
.section-capabilities .cap-chip.is-active{ border-color: #0E1115; }
.section-capabilities .cap-chip:focus-visible{
  outline: 2px solid #0E1115; outline-offset: 2px;
}

/* ===== Правая колонка: превью ===== */
.section-capabilities .cap-preview{ min-height: 100%; }
.section-capabilities .cap-card{
  position: relative;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: url('/images/2.jpg') center/cover no-repeat;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}
.section-capabilities .cap-card-pane{
  margin: 42px; padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: opacity .22s ease, transform .22s ease;
}
.section-capabilities .cap-card-pane.is-out{
  opacity: 0; transform: translateY(4px);
}

/* Заголовок и строки */
.section-capabilities .cap-title{
  margin: 0 0 10px 0;
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 500; color: #0E1115; letter-spacing: -0.01em;
}
.section-capabilities .cap-row{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px; align-items: start;
  margin: 8px 0;
}
.section-capabilities .cap-label{
  color: #4A4F57; font-weight: 500; font-size: 14px;
}
.section-capabilities .cap-text{ color: #0E1115; }

/* Пиллы внутри превью */
.section-capabilities .cap-tools,
.section-capabilities .cap-steps,
.section-capabilities .cap-badges{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.section-capabilities .cap-tool,
.section-capabilities .cap-step,
.section-capabilities .cap-badge{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  color: #0E1115;
  font-weight: 200; font-size: 14px;
}
.section-capabilities .cap-badge{ font-size: 12px; opacity: .9; }

/* Уважение reduce-motion */
@media (prefers-reduced-motion: reduce){
  .section-capabilities .cap-card-pane{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* ≤1100px — одна колонка */
@media (max-width: 1100px){
  .section-capabilities .cap-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ≤720px — мобильные правки */
@media (max-width: 720px){
  .section-capabilities{ padding: 64px 22px; }

  .section-capabilities .cap-group{
    border-radius: 16px; padding: 14px;
  }
  .section-capabilities .cap-card{ border-radius: 20px; }
  .section-capabilities .cap-card-pane{
    margin: 18px; padding: 16px; border-radius: 16px;
  }

  .section-capabilities .cap-row{
    grid-template-columns: 1fr; /* метка над значением */
  }
  .section-capabilities .cap-label{ margin-bottom: -4px; }
}

/* ≤420px — очень узкие */
@media (max-width: 420px){
  .section-capabilities{ padding: 50px 18px; }
  .section-capabilities .cap-chip{ padding: 7px 10px; font-size: 13px; }
  .section-capabilities .cap-card-pane{ margin: 14px; }
}


/* =========================================
   SECTION 7: Внедрение за 10 дней
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-implement{
  padding: 96px 25px 90px;
}
.section-implement .implement-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовок */
.section-implement .implement-head{
  text-align: center;
}
.section-implement .implement-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-implement .implement-sub{
  margin: 0 0 26px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* ===== Монорельс: трек + узлы ===== */
.section-implement .impl-rail{
  position: relative;
}
.section-implement .impl-track{
  position: absolute;
  left: 0; right: 0; top: 56px;
  height: 2px;
  background: rgba(0,0,0,.10);
  border-radius: 2px;
  overflow: hidden;
}
.section-implement .impl-progress{
  width: 0%;
  height: 100%;
  background: #000;
  transition: width 1200ms cubic-bezier(.20,.80,.20,1);
}

/* Узлы */
.section-implement .impl-nodes{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0; padding: 0;
  list-style: none;
}
.section-implement .impl-node{
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: 54px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.041);
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-implement .impl-node:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.14);
}
.section-implement .impl-node:focus-visible{
  outline: 2px solid #0E1115; outline-offset: 2px;
}

/* Внутри узла */
.section-implement .impl-day{
  position: relative;
  top: -10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
  color: #0E1115;
  box-shadow: 0 8px 16px rgba(0,0,0,.06);
}
.section-implement .impl-caption{
  font-size: clamp(14px, 2vw, 23px);
  font-weight: 200;
  color: #0E1115;
  text-align: center;
  line-height: 1;
}
.section-implement .impl-chip{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #0E1115;
}

/* Активный узел (подсвечивается прогрессом) */
.section-implement .impl-node.is-active{
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.18);
}

/* Хинт-тултип над рельсом */
.section-implement .impl-hint{
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%,-16px);
  pointer-events: none;
  opacity: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  color: #3c4756;
  font-size: 14px;
  max-width: 280px;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 3;
}

/* ===== Низ секции: требования и примечание ===== */
.section-implement .impl-foot{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.section-implement .impl-req{
  display: flex; flex-wrap: wrap; gap: 10px 8px; align-items: center;
}
.section-implement .impl-req-label{
  color: #4A4F57; font-size: 14px;
}
.section-implement .impl-req-chip{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 13px;
  color: #0E1115;
  font-weight: 500;
}
.section-implement .impl-note{
  color: #62676f; font-size: 13px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-implement .impl-progress{ transition: none; }
  .section-implement .impl-node{ transition: none; }
  .section-implement .impl-hint{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* ≤960px — горизонтальная карусель узлов со snap */
@media (max-width: 960px){
  .section-implement{ padding: 64px 22px; }
  .section-implement .impl-track{ display: none; } /* убираем общую линию */
  .section-implement .impl-nodes{
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .section-implement .impl-node{
    min-width: 66%;
    scroll-snap-align: center;
    border-radius: 40px;
  }
  .section-implement .impl-foot{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* ≤520px — мобильные правки */
@media (max-width: 520px){
  .section-implement{ padding: 50px 18px; }
  .section-implement .impl-node{
    padding: 14px 10px;
    border-radius: 32px;
  }
  .section-implement .impl-day{ font-size: 12px; }
  .section-implement .impl-caption{ font-size: clamp(15px, 6vw, 18px); }
  .section-implement .impl-chip{ font-size: 12px; }
}



/* =========================================
   SECTION 8: Журнал действий (Audit Ledger)
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-ledger{
  padding: 96px 25px 90px;
}
.section-ledger .ledger-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовок */
.section-ledger .ledger-head{ text-align: center; }
.section-ledger .ledger-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-ledger .ledger-sub{
  margin: 0 0 18px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Легенда-фильтр */
.section-ledger .ledger-legend{
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-ledger .ledger-chip{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 14px; font-weight: 500; color: #0E1115;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.section-ledger .ledger-chip:hover{ background: rgba(0,0,0,.04); }
.section-ledger .ledger-chip.is-active{ border-color:#0E1115; }
.section-ledger .ledger-chip:focus-visible{
  outline: 2px solid #0E1115; outline-offset: 2px;
}

/* Карточка */
.section-ledger .ledger-card{
  max-width: 820px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}

/* Лента лога */
.section-ledger .ledger-log{
  position: relative;
  padding: 14px 16px 12px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #0E1115;
  line-height: 1.45;
  overflow: hidden;
}

/* Декоративная «перфорация» слева */
.section-ledger .ledger-log::before{
  content:"";
  position:absolute; left: 10px; top: 6px; bottom: 6px; width: 1px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.22), rgba(0,0,0,.22) 2px,
      transparent 2px, transparent 8px
    );
  opacity: .35;
}

/* Строки */
.section-ledger .ledger-row{
  padding: 2px 4px;
  border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

  /* анимация появления (включается классом .in из IO) */
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, background-color .18s ease;
}
.section-ledger .ledger-row.in{ opacity: 1; transform: translateY(0); }
.section-ledger .ledger-row:hover,
.section-ledger .ledger-row:focus{
  background: rgba(0,0,0,.04);
}
.section-ledger .ledger-row .t{ color:#4A4F57; }
.section-ledger .ledger-row .tag{ font-weight: 700; margin: 0 4px; }

/* Дешифровка и подпись */
.section-ledger .ledger-decoder{
  margin: 10px 2px 6px;
  min-height: 20px;
  font-size: 14px;
  color: #3c4756;
}
.section-ledger .ledger-note{
  margin-top: 6px;
  color: #62676f;
  font-size: 13px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-ledger .ledger-row{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* ≤720px — мобильные правки */
@media (max-width: 720px){
  .section-ledger{ padding: 64px 22px; }
  .section-ledger .ledger-card{ padding: 14px; border-radius: 20px; }
  .section-ledger .ledger-log{ padding-left: 18px; }
  .section-ledger .ledger-row{ font-size: 14px; }
}

/* ≤420px — очень узкие */
@media (max-width: 420px){
  .section-ledger{ padding: 50px 18px; }
  .section-ledger .ledger-row{ font-size: 13px; }
  .section-ledger .ledger-log::before{ left: 8px; }
}









/* =========================================
   SECTION 9: Цены и ROI
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-pricing{
  padding: 96px 25px 90px;
}
.section-pricing .pricing-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовок */
.section-pricing .pricing-head{ text-align: center; }
.section-pricing .pricing-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-pricing .pricing-sub{
  margin: 0 0 22px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* ===== ROI — Панель-инструмент ===== */
.section-pricing .roi-card{
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}

.section-pricing .roi-grid{
  display: grid;
  grid-template-columns: minmax(460px, 1fr) 1fr; /* входы | результат */
  gap: 24px;
  align-items: start;
}

/* Входные поля */
.section-pricing .roi-inputs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.section-pricing .roi-title{
  grid-column: 1 / -1;
  font-weight: 300; color: #0E1115;
}
.section-pricing .roi-field{
  display: grid; gap: 6px;
}
.section-pricing .roi-label{
  color: #4A4F57; font-size: 13px;
}
.section-pricing .roi-input{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 15px; color: #0E1115;
}
.section-pricing .roi-input:focus{
  outline: 2px solid #0E1115; outline-offset: 2px;
}

/* Пара no-show */
.section-pricing .roi-noshow-pair{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px; align-items: end;
}
.section-pricing .roi-arrow{
  color: #0E1115; margin-bottom: 8px;
}

/* Тогглы Advanced/Method */
.section-pricing .roi-adv-toggle,
.section-pricing .roi-method-toggle{
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 13px; color: #0E1115; font-weight: 500;
  cursor: pointer;
}
.section-pricing .roi-advanced{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Результат */
.section-pricing .roi-result{
  display: grid; gap: 10px; align-content: start;
}
.section-pricing .roi-result-label{
  color: #4A4F57; font-size: 13px;
}
.section-pricing .roi-sum{
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
  font-weight: 600; /* акцент на цифре */
  color: #0E1115;
}
.section-pricing .roi-badges{
  display: flex; gap: 8px; flex-wrap: wrap;
}
.section-pricing .roi-badge{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 12px; font-weight: 500; color:#0E1115;
}

.section-pricing .roi-method{
  margin-top: 4px;
  color: #3c4756; font-size: 13px;
}
.section-pricing .roi-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.section-pricing .roi-hint{ color: #62676f; }

/* ===== Тарифные планы ===== */
.section-pricing .plans-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.section-pricing .plan-card{
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section-pricing .plan-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.12);
}
.section-pricing .plan-card:focus-within{
  outline: 2px solid #0E1115; outline-offset: 2px;
}

.section-pricing .plan-badge{
  position: absolute; top: 10px; right: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  font-size: 12px; font-weight: 700;
}

.section-pricing .plan-title{
  margin: 0;
  font-weight: 300; color: #0E1115;
  font-size: clamp(20px, 3.2vw, 24px);
}
.section-pricing .plan-brief{
  color: #4A4F57; font-size: 14px;
}
.section-pricing .plan-line{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.section-pricing .plan-chip{
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 13px; font-weight: 500; color:#0E1115;
}
.section-pricing .plan-meta{
  display: flex; justify-content: space-between; gap: 10px;
  color: #0E1115; font-size: 14px;
}
.section-pricing .plans-note{
  margin-top: 10px;
  color: #62676f; font-size: 13px; text-align: center;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-pricing .plan-card{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

/* ≤980px — ROI в одну колонку и планы в столбец */
@media (max-width: 980px){
  .section-pricing{ padding: 64px 22px; }

  .section-pricing .roi-grid{
    grid-template-columns: 1fr; /* одна колонка */
    gap: 18px;
  }
  .section-pricing .roi-advanced{
    grid-template-columns: 1fr; /* advanced — тоже в один столбец */
  }

  .section-pricing .plans-grid{
    grid-template-columns: 1fr; /* планы — по одному в строке */
  }

  .section-pricing .plan-card{
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
  }
}

/* ≤560px — мобильные правки */
@media (max-width: 560px){
  .section-pricing{ padding: 50px 18px; }

  .section-pricing .roi-card{
    padding: 16px; border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
  }
  .section-pricing .roi-inputs{
    grid-template-columns: 1fr; /* все поля в один столбец */
  }

  .section-pricing .roi-input{
    padding: 9px 12px; border-radius: 10px;
  }
  .section-pricing .roi-noshow-pair{
    grid-template-columns: 1fr 20px 1fr;
  }

  .section-pricing .roi-sum{
    font-size: clamp(26px, 6vw, 36px);
  }

  .section-pricing .plan-card{
    padding: 16px; border-radius: 16px;
  }
  .section-pricing .plan-chip{
    padding: 6px 10px; font-size: 13px;
  }
  .section-pricing .plan-meta{
    flex-direction: column; gap: 6px;
  }
}

/* ≤420px — очень узкие экраны */
@media (max-width: 420px){
  .section-pricing .roi-method-toggle,
  .section-pricing .roi-adv-toggle{
    width: 100%;
    text-align: center;
  }
  .section-pricing .plan-badge{
    top: 8px; right: 10px; font-size: 11px;
  }
}

/* Базовая кнопка */
.btn { border: 1px solid transparent; }

/* Универсальная жёсткая фиксация для чёрной кнопки */
.btn.btn-primary {
  background-color: #000;      /* чисто чёрный */
  color: #fff;
  border-color: #000;
}

/* Hover/active — немного плотнее */
.btn.btn-primary:hover { background-color: #000; filter: brightness(1.06); }
.btn.btn-primary:active { transform: translateY(1px); }

/* На случай секционных переопределений — повышаем специфику без !important */
.section-integrations .btn.btn-primary,
.section-pricing      .btn.btn-primary,
.section-cta          .btn.btn-primary,
.hero                 .btn.btn-primary,
.section-capabilities .btn.btn-primary {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.btn.btn-primary {
    background-color: #000;
    color: #fff;
    border-color: #000;
    border-radius: 60px;
    padding: 10px 15px;
}

/* Кнопки-линки: без подчёркивания во всех состояниях */
.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:focus,
.btn:active{
  text-decoration: none !important;
}

/* Общая первичная кнопка (чёрная) */
.btn.btn-primary{
  background-color:#000;
  color:#fff;
  border-color:#000;
  border-radius:60px;
  padding:10px 15px;

  /* центрирование содержимого */
  display:flex;                 /* перекрывает возможный display:block */
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Hover/active */
.btn.btn-primary:hover{ filter:brightness(1.06); }
.btn.btn-primary:active{ transform: translateY(1px); }

/* Внутри карточек тарифов — растягиваем по ширине */
.section-pricing .plan-card .btn.btn-primary{
  width:100%;
}



/* =========================================
   SECTION 10: FAQ
   — изолированный блок
   ========================================= */

/* Контейнер секции */
.section-faq{
  padding: 96px 25px 60px;
}
.section-faq .faq-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Заголовок */
.section-faq .faq-head{ text-align: center; }
.section-faq .faq-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-faq .faq-sub{
  margin: 0 0 20px 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Карточка-стек */
.section-faq .faq-card{
  max-width: 860px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* Элемент FAQ */
.section-faq .faq-item{
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.section-faq .faq-item:last-child{ border-bottom: 0; }

/* Заголовок вопроса */
.section-faq .faq-item > summary{
  list-style: none;                /* убрать треугольник браузера */
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 300;
  font-size: clamp(16px, 2.4vw, 18px);
  color: #0E1115;
  outline: none;
}
.section-faq .faq-item > summary::-webkit-details-marker{ display: none; }

/* Иконка-стрелка */
.section-faq .faq-caret{
  width: 16px; height: 16px; flex: 0 0 16px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  position: relative;
}
.section-faq .faq-caret::before{
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid rgba(0,0,0,.7);
  border-bottom: 1px solid rgba(0,0,0,.7);
  transform: translate(-50%,-55%) rotate(-45deg);
  transition: transform .18s ease;
}
/* раскрытое состояние — стрелка вниз */
.section-faq .faq-item[open] .faq-caret::before{
  transform: translate(-50%,-40%) rotate(45deg);
}

/* Тело ответа */
.section-faq .faq-body{
  margin: 8px 2px 2px;
  color: #4A4F57;
  font-size: 15px;
}

/* Фокус/доступность */
.section-faq .faq-item > summary:focus-visible{
  outline: 2px solid #0E1115;
  outline-offset: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-faq .faq-caret::before{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

@media (max-width: 720px){
  .section-faq{ padding: 64px 22px; }
  .section-faq .faq-card{ border-radius: 20px; }
}

@media (max-width: 480px){
  .section-faq{ padding: 50px 18px; }
  .section-faq .faq-item{ padding: 10px 6px; }
  .section-faq .faq-body{ font-size: 14px; }
}




/* =========================================
   SECTION 11: CTA — Демо в Telegram
   — изолированный блок
   ========================================= */

.section-cta{
  padding: 40px 25px 96px;
}
.section-cta .cta-inner{
  max-width: 1160px;
  margin: 0 auto;
}

/* Карточка CTA */
.section-cta .cta-card{
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
  display: grid;
  gap: 16px;
}

/* Заголовок */
.section-cta .cta-head{ text-align: center; }
.section-cta .cta-title{
  margin: 0 0 6px 0;
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.1;
  font-weight: 200;
  letter-spacing: -0.02em;
  color: #0E1115;
}
.section-cta .cta-sub{
  margin: 0;
  color: #62676f;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* Ряд с «что прислать» */
.section-cta .cta-row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}
.section-cta .cta-ask{
  color: #4A4F57;
  font-size: 14px;
}
.section-cta .cta-chips{
  display: flex; flex-wrap: wrap; gap: 8px;
}
.section-cta .cta-chip{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: transparent;
  font-size: 13px;
  color: #0E1115;
  font-weight: 500;
}

/* Кнопка */
.section-cta .cta-btn{
  justify-self: center;
  text-decoration: none;                     /* на всякий случай убрать подчёркивание */
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 280px;
}
/* если используется общий .btn.btn-primary — добавим совместимые доработки */
.section-cta .cta-btn.btn.btn-primary{
  border-radius: 999px;
  padding: 14px 18px;
  background: #000; color: #fff; border-color: #000;
}

/* Примечание */
.section-cta .cta-note{
  text-align: center;
  color: #62676f;
  font-size: 13px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .section-cta .cta-card{ transition: none; }
}

/* =========================
   Адаптация
   ========================= */

@media (max-width: 720px){
  .section-cta{ padding: 36px 22px 72px; }
  .section-cta .cta-card{ border-radius: 20px; }
  .section-cta .cta-row{
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
  .section-cta .cta-btn.btn.btn-primary{
    width: 100%;                  /* на мобиле — на всю ширину карточки */
    min-width: 0;
  }
}

@media (max-width: 420px){
  .section-cta{ padding: 32px 18px 64px; }
  .section-cta .cta-chip{ font-size: 12px; padding: 7px 10px; }
  .section-cta .cta-btn.btn.btn-primary{ padding: 12px 16px; }
}










/* 1) Стабильная высота HERO на мобилках */
:root { --header-h: 70px; }

.hero{
  /* современные стабильные единицы */
  min-height: calc(100svh - var(--header-h));
}
@supports not (height: 100svh){
  /* фолбэк для старых браузеров */
  .hero{ min-height: calc(100vh - var(--header-h)); }
}

/* 2) Резервируем место под вертикальный скролл,
      чтобы страница не «подпрыгивала» по горизонтали */
html{
  scrollbar-gutter: stable both-edges;     /* Chrome/Edge/Firefox */
}
@supports not (scrollbar-gutter: stable){
  html{ overflow-y: scroll; }              /* фолбэк для старых/Win */
}

/* 3) Убираем анимацию ширины у пузырей — она вызывает рефлоу */
.hero .msg{
  transition: opacity .4s ease, transform .4s ease; /* было ещё width */
  will-change: opacity, transform;
}

/* 4) Чуть «страхуем» высоту правой колонки, чтобы появление текста не меняло макет */
.hero .hero-right{ min-height: 480px; }    /* подгони при желании */
.hero .chat-demo{ min-height: 220px; }     /* резерв под пузырьки */

/* 5) На очень узких экранах можно снизить резерв, чтобы не было лишнего пустого места */
@media (max-width: 560px){
  .hero .hero-right{ min-height: 380px; }
  .hero .chat-demo{ min-height: 180px; }
}
