/* ============================================================================
   TEWRIS OS — ЛЕНДИНГ · ЛЕЙАУТ + 2 СКИНА
   ----------------------------------------------------------------------------
   Секции написаны один раз и читают локальные --l-* токены. Скин переопределяет
   эти токены: .skin-neon (презентационный тир, неон) и .skin-console
   (продуктовый тир, рубка управления). Все цвета приходят из styles.css.
   ============================================================================ */

/* ── ЛОКАЛЬНЫЙ ТОКЕН-КОНТРАКТ — значения по умолчанию (= НЕОН) ──────────────── */
.tw-landing {
  --l-bg:          var(--bg);
  --l-surface:     rgba(38, 44, 73, 0.30);
  --l-surface-2:   rgba(38, 44, 73, 0.50);
  --l-border:      var(--hairline);
  --l-hairline:    var(--hairline-2);
  --l-text:        var(--text);
  --l-muted:       var(--text-muted);
  --l-faint:       var(--text-faint);
  --l-accent:      var(--cyan);
  --l-accent-2:    var(--blue-2);
  --l-accent-fg:   var(--bg-deep);
  --l-link:        var(--blue-light);
  --l-radius:      var(--r-lg);
  --l-radius-sm:   var(--r-md);
  --l-display-font:   var(--font-display);
  --l-display-weight: 300;
  --l-display-track:  0.01em;
  --l-kicker:      var(--cyan);
  --l-card-shadow: none;
  --l-glow:        0 0 24px -2px var(--cyan);

  background: var(--l-bg);
  color: var(--l-text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
.tw-landing * { box-sizing: border-box; }

/* ── СКИН: НЕОН (фон со свечениями) ────────────────────────────────────────── */
.skin-neon {
  background-image:
    radial-gradient(1200px 600px at 82% -8%, rgba(46,154,253,0.12), transparent 60%),
    radial-gradient(1000px 560px at -12% 22%, rgba(136,108,200,0.12), transparent 55%),
    radial-gradient(900px 480px at 50% 116%, rgba(46,253,241,0.07), transparent 60%);
  background-attachment: fixed;
}

/* ── СКИН: КОНСОЛЬ (продуктовый тир, плоско + сетка) ───────────────────────── */
.skin-console {
  --l-bg:          var(--gray-900);
  --l-surface:     rgb(26, 31, 46);
  --l-surface-2:   rgb(33, 39, 56);
  --l-border:      rgb(48, 56, 78);
  --l-hairline:    rgba(255,255,255,0.06);
  --l-text:        rgb(233, 237, 247);
  --l-muted:       rgb(165, 174, 198);
  --l-faint:       rgb(120, 130, 158);
  --l-accent:      var(--blue);
  --l-accent-2:    var(--cyan);
  --l-accent-fg:   #ffffff;
  --l-link:        rgb(116, 185, 255);
  --l-radius:      10px;
  --l-radius-sm:   8px;
  --l-display-font:   var(--font-ui);
  --l-display-weight: 600;
  --l-display-track:  -0.01em;
  --l-kicker:      var(--blue-3);
  --l-card-shadow: 0 4px 10px -2px rgba(0,0,0,0.45);
  --l-glow:        none;
  background-image:
    linear-gradient(var(--l-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--l-hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

/* ── СЛУЖЕБНОЕ ────────────────────────────────────────────────────────────── */
@keyframes tw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.tw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.tw-section { padding: 96px 0; position: relative; }
.skin-console .tw-section { padding: 80px 0; }
.tw-section + .tw-section { border-top: 1px solid var(--l-hairline); }

/* — Плавное появление при скролле (JS вешает .tw-in на секцию через IntersectionObserver,
   см. useScrollReveal в App()) — секция-обёртка не гаснет сама, вместо неё каскадом
   появляется её содержимое: кикер → заголовок → подтекст → карточки/картинки/списки. — */
.tw-section:not(.tw-hero) .tw-kicker,
.tw-section:not(.tw-hero) .tw-wrap h2,
.tw-section:not(.tw-hero) .tw-wrap .tw-sub,
.tw-final__title, .tw-final__sub {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
}
.tw-section.tw-in .tw-kicker { opacity: 1; transform: none; }
.tw-section.tw-in .tw-wrap h2,
.tw-section.tw-in .tw-final__title { opacity: 1; transform: none; transition-delay: .08s; }
.tw-section.tw-in .tw-wrap .tw-sub,
.tw-section.tw-in .tw-final__sub { opacity: 1; transform: none; transition-delay: .16s; }

/* карточки, картинки, списки и прочие повторяющиеся элементы — каскад по порядку */
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > * ,
.tw-casecard, .tw-plate, .tw-hub__viz {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1);
  transition-delay: .24s;
}
.tw-section.tw-in :where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > * ,
.tw-section.tw-in .tw-casecard, .tw-section.tw-in .tw-plate, .tw-section.tw-in .tw-hub__viz {
  opacity: 1; transform: none;
}
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(2)  { transition-delay: .30s; }
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(3)  { transition-delay: .36s; }
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(4)  { transition-delay: .42s; }
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(5)  { transition-delay: .48s; }
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(6)  { transition-delay: .54s; }
:where(
  .tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies,
  .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles
) > *:nth-child(n+7) { transition-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .tw-section:not(.tw-hero) .tw-kicker,
  .tw-section:not(.tw-hero) > .tw-wrap > h1,
  .tw-section:not(.tw-hero) > .tw-wrap > h2,
  .tw-section:not(.tw-hero) > .tw-wrap .tw-sub,
  .tw-final__title, .tw-final__sub,
  :where(.tw-pain-grid, .tw-tasks-grid, .tw-grid-2, .tw-grid-3, .tw-companies, .tw-phases, .tw-faq, .tw-form__grid, .tw-flow, .tw-flow__branch, .tw-sectiles) > *,
  .tw-casecard, .tw-plate, .tw-hub__viz {
    opacity: 1; transform: none; transition: none;
  }
}
/* визуальное объединение пар блоков в один экран — без правки их разметки/текстов */
#agents { padding-bottom: 0; }
#agents + #scenarios { border-top: 0; padding-top: 0; }
#about { padding-bottom: 0; }
#about + #already { border-top: 0; padding-top: 0; }

.tw-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--l-kicker); margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.tw-kicker::before { content: "//"; opacity: 0.6; }
.skin-console .tw-kicker::before { content: "›"; }

.tw-h2 {
  font-family: var(--l-display-font); font-weight: var(--l-display-weight);
  letter-spacing: var(--l-display-track); font-size: 40px; line-height: 1.15;
  margin: 0 0 18px; text-wrap: balance;
}
.tw-sub { font-size: 18px; line-height: 1.65; color: var(--l-muted); max-width: 760px; margin: 0; }
.tw-accent { color: var(--l-accent); }
.skin-neon .tw-grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skin-console .tw-grad { color: var(--l-accent); }

/* ── КНОПКИ ───────────────────────────────────────────────────────────────── */
.tw-btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: var(--l-radius-sm); cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  text-decoration: none;
}
.tw-btn--primary { background: var(--l-accent); color: var(--l-accent-fg); }
.tw-btn--primary:hover { box-shadow: var(--l-glow); transform: translateY(-1px); }
.skin-console .tw-btn--primary:hover { background: var(--app-accent-hover); transform: none; }
.tw-btn--ghost { background: transparent; color: var(--l-text); border: 1px solid var(--l-border); }
.tw-btn--ghost:hover { border-color: var(--l-accent); }
/* вторая кнопка hero — синий фон, обводка цветом фона primary-кнопки (cyan) */
.tw-btn--cases { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); }
.tw-btn--cases:hover { background: rgba(46,253,241,0.08); box-shadow: 0 0 24px -6px var(--cyan); transform: translateY(-1px); }
.tw-btn--sm { padding: 11px 18px; font-size: 14px; }
.tw-btn--lg { padding: 20px 36px; font-size: 18px; }
.skin-console .tw-btn { border-radius: var(--l-radius-sm); }
.tw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── ШАПКА (sticky) ───────────────────────────────────────────────────────── */
.tw-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--l-hairline);
}
.skin-neon .tw-header { background: rgba(19, 22, 43, 0.72); }
.skin-console .tw-header { background: rgba(20, 24, 38, 0.85); }
.tw-header__inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.tw-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 300; font-size: 20px; letter-spacing: 0.06em; color: var(--l-text); text-decoration: none; }
.skin-console .tw-logo { font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }
.tw-logo b { font-weight: 700; }
.tw-logo__mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--l-border); border-radius: 8px; background: var(--l-surface); flex-shrink: 0; }
.tw-nav { display: flex; gap: 22px; }
.tw-nav a { color: var(--l-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
.tw-nav a:hover { color: var(--l-text); }
/* логотип и правая группа — равные «крылья», между ними центрируется .tw-nav */
.tw-header__side { flex: 1 1 0; display: flex; align-items: center; }
.tw-header__side--right { justify-content: flex-end; gap: 16px; }
.tw-iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--l-radius-sm); border: 1px solid transparent; background: transparent; color: var(--l-muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.tw-iconbtn:hover { color: var(--l-text); border-color: var(--l-border); }
.tw-langswitch { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.tw-langswitch__item { background: none; border: none; padding: 4px 2px; color: var(--l-muted); cursor: pointer; transition: color .15s; }
.tw-langswitch__item:hover { color: var(--l-text); }
.tw-langswitch__item.is-active { color: var(--l-text); }
.tw-langswitch__sep { color: var(--l-muted); opacity: 0.5; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.tw-hero { padding: 72px 0 88px; }
.tw-hero__grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; }
/* слайдер-карточки ограничены max-width:460px и не нуждаются в широкой колонке;
   ровный сплит даёт левой колонке место под две кнопки в hero в один ряд */
.tw-hero__grid--cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#top .tw-wrap { padding-top: 24px; }
/* убираем вертикальное центрирование левой колонки и сокращаем её собственный
   отступ у печатающегося текста — фраза ближе к заголовку; кнопку не трогаем
   (её отступ не меняем) */
#top .tw-hero__copy { align-self: start; }
#top { --tw-typewriter-mt: 12px; }
/* padding (не схлопывается, в отличие от margin) — кнопка гарантированно ниже */
#top .tw-hero__actions { padding-top: 28px; }
.tw-hero__title { font-family: var(--l-display-font); font-weight: var(--l-display-weight); letter-spacing: var(--l-display-track); font-size: 56px; line-height: 1.08; margin: 0 0 24px; text-wrap: balance; }
.skin-console .tw-hero__title { font-size: 50px; line-height: 1.1; }
.tw-hero__sub { font-size: 17px; line-height: 1.7; color: var(--l-muted); margin: 0 0 32px; max-width: 600px; }
.tw-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* самая длинная typing-фраза («Автоматизируйте процессы») должна печататься и
   стираться в одну строку — на узких экранах уменьшаем кегль, чтобы влезала */
.tw-typewriter { font-size: 34px; }
@media (max-width: 768px) { .tw-typewriter { font-size: 28px; } }
@media (max-width: 420px) { .tw-typewriter { font-size: 20px; } }
.tw-hero__proof { margin-top: 26px; font-size: 14px; color: var(--l-faint); display: flex; gap: 10px; align-items: flex-start; max-width: 540px; line-height: 1.5; }
.tw-hero__proof svg { flex-shrink: 0; color: var(--l-accent); margin-top: 1px; }

/* ── ДЕМО: CONFIRMATION FLOW ──────────────────────────────────────────────── */
.tw-demo {
  background: var(--l-surface-2); border: 1px solid var(--l-border);
  border-radius: var(--l-radius); padding: 24px; position: relative;
}
.skin-neon .tw-demo { box-shadow: 0 0 0 1px rgba(46,253,241,0.10), 0 24px 60px -20px rgba(46,154,253,0.45); }
.skin-console .tw-demo { box-shadow: var(--l-card-shadow); font-family: var(--font-mono); }
.tw-demo__cmd { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--l-surface); border-radius: var(--l-radius-sm); border: 1px solid var(--l-hairline); margin-bottom: 18px; }
.tw-demo__mic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--l-accent); color: var(--l-accent-fg); flex-shrink: 0; }
.skin-console .tw-demo__mic { border-radius: 7px; }
.tw-demo__cmdtext { font-size: 15px; line-height: 1.5; color: var(--l-text); }
.skin-console .tw-demo__cmdtext { font-size: 13px; }
.tw-demo__steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.tw-demo__step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.tw-demo__check { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--l-accent); color: var(--l-accent); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.skin-console .tw-demo__check { border-radius: 4px; }
.tw-demo__src { color: var(--l-faint); font-family: var(--font-mono); font-size: 11px; }
.tw-demo__actions { display: flex; gap: 8px; margin-bottom: 16px; }
/* компактные кнопки внутри демо-карточек — не задевая .tw-btn--sm в других местах (header и т.п.) */
.tw-demo__actions .tw-btn { padding: 7px 14px; font-size: 12.5px; }
.tw-demo__done { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--success-fg, #7af0b0); padding-top: 14px; border-top: 1px solid var(--l-hairline); }
.tw-demo__done svg { color: var(--success, #2fd07a); }

/* ── DEMO ROW · три карточки в горизонтальный ряд (блок «Как работает») ────── */
.tw-demo-row { display: flex; gap: 24px; align-items: stretch; margin: 36px 0 8px; }
.tw-demo-row .tw-demo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tw-demo-row .tw-demo__done { margin-top: auto; }

/* in-progress шаг — спиннер вместо галочки */
.tw-demo__check--prog { border-color: transparent; }
.tw-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--l-border); border-top-color: var(--l-accent); animation: tw-rot .7s linear infinite; }
@keyframes tw-rot { to { transform: rotate(360deg); } }

/* карточка 2 — утренняя сводка */
.tw-demo__greeting { font-size: 14px; line-height: 1.5; color: var(--l-text); margin-bottom: 16px; }
.tw-demo__summary { display: flex; flex-direction: column; gap: 11px; margin-bottom: 20px; }
.tw-sumrow { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.tw-sumrow__text { color: var(--l-text); flex: 1; }
.tw-sumrow .tw-demo__src { flex-shrink: 0; }
.tw-sumdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tw-sumdot--red { background: rgb(255,93,108); box-shadow: 0 0 8px rgba(255,93,108,0.55); }
.tw-sumdot--amber { background: rgb(245,181,69); box-shadow: 0 0 8px rgba(245,181,69,0.55); }
.tw-sumdot--green { background: rgb(47,208,122); box-shadow: 0 0 8px rgba(47,208,122,0.55); }
.tw-sumdot--grey { background: var(--l-faint); }

@media (prefers-reduced-motion: reduce) {
  .tw-spin { animation: none; }
}

/* ── СЕТКИ КАРТОЧЕК ───────────────────────────────────────────────────────── */
.tw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tw-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tw-card {
  background: var(--l-surface); border: 1px solid var(--l-border);
  border-radius: var(--l-radius); padding: 28px; box-shadow: var(--l-card-shadow);
}
.tw-card__title { font-size: 19px; font-weight: 600; margin: 0 0 10px; color: var(--l-text); }
.tw-card__text { font-size: 15px; line-height: 1.6; color: var(--l-muted); margin: 0; }

/* ── БЛОК «Какие проблемы решает Tewris OS» · карточки-боли (проектный макет) ─
   Цвета и размеры — литералами по спецификации макета, они уже совпадают
   с палитрой дизайн-системы (#13172e/#2efdf1 — те же токены, что и в .tw-demo). */
.tw-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tw-pain-card {
  background: var(--l-surface); border: 1px solid rgba(46,253,241,0.16); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(46,253,241,0.06), 0 18px 40px -22px rgba(46,154,253,0.35);
}
.tw-pain-card__top { padding: 24px 24px 16px; flex: 1; }
.tw-pain-card__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(46,253,241,0.38); margin: 0 0 14px; }
.tw-pain-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #f0f2fc; margin: 0 0 12px; line-height: 1.3; }
.tw-pain-card__text { font-size: 13.5px; color: #7a84a8; line-height: 1.65; margin: 0; }
.tw-pain-card__foot { padding: 16px 24px; border-top: 1px solid #1e2340; display: flex; align-items: center; justify-content: space-between; }
.tw-pain-card__cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid rgba(46,253,241,0.38); background: rgba(46,253,241,0.09);
  color: var(--cyan); font-family: var(--font-ui); font-weight: 500; font-size: 13px;
  text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}
.tw-pain-card__cta:hover { box-shadow: 0 0 20px -4px var(--cyan); border-color: var(--cyan); transform: translateY(-1px); }
.tw-pain-card__cta svg { transition: transform .2s ease; }
.tw-pain-card__cta:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .tw-pain-grid { grid-template-columns: 1fr; } }

/* пример задачи (capabilities) */
.tw-task {
  background: var(--l-surface); border: 1px solid var(--l-border);
  border-radius: var(--l-radius-sm); padding: 18px 20px; font-size: 15px; line-height: 1.5;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color .15s var(--ease), transform .15s var(--ease), opacity .6s cubic-bezier(.16,.84,.44,1);
  transition-delay: 0s, 0s, .24s;
}
.tw-task:hover { border-color: var(--l-accent); transform: translateY(-2px); }
/* каскад появления по очереди (специфичнее .tw-task, чтобы победить в каскаде) */
.tw-tasks-grid .tw-task:nth-child(2) { transition-delay: 0s, 0s, .30s; }
.tw-tasks-grid .tw-task:nth-child(3) { transition-delay: 0s, 0s, .36s; }
.tw-tasks-grid .tw-task:nth-child(4) { transition-delay: 0s, 0s, .42s; }
.tw-tasks-grid .tw-task:nth-child(5) { transition-delay: 0s, 0s, .48s; }
.tw-tasks-grid .tw-task:nth-child(6) { transition-delay: 0s, 0s, .54s; }
.tw-tasks-grid .tw-task:nth-child(n+7) { transition-delay: 0s, 0s, .60s; }
.tw-task__q { font-family: var(--font-mono); color: var(--l-accent); flex-shrink: 0; font-size: 14px; }

.tw-note { margin-top: 24px; font-size: 16px; color: var(--l-muted); font-family: var(--l-display-font); }
.tw-models { margin-top: 28px; padding: 20px 24px; border: 1px dashed var(--l-border); border-radius: var(--l-radius-sm); font-size: 15px; line-height: 1.6; color: var(--l-muted); }
.tw-models b { color: var(--l-text); font-weight: 600; }

/* ── ЯДРО + СИСТЕМЫ (анимация) ────────────────────────────────────────────── */
.tw-core { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tw-core__stage { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; margin: 0 auto; --orbit: 158px; }
.tw-core__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--l-surface-2), var(--l-surface));
  border: 1px solid var(--l-accent); z-index: 2;
  font-family: var(--font-display); font-weight: 300; font-size: 17px; letter-spacing: 0.04em; color: var(--l-text);
}
.skin-console .tw-core__center { border-radius: 14px; font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.tw-core__center b { font-weight: 700; }
.tw-core__pulse { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--l-accent); transform: translate(-50%,-50%); animation: tw-pulse 3s var(--ease-out) infinite; z-index: 1; }
.skin-console .tw-core__pulse { border-radius: 14px; }
@keyframes tw-pulse { 0% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); } 70% { opacity: 0; transform: translate(-50%,-50%) scale(2.1); } 100% { opacity: 0; } }
.tw-node {
  position: absolute; left: 50%; top: 50%;
  padding: 8px 13px; border-radius: 999px; background: var(--l-surface-2); border: 1px solid var(--l-border);
  font-size: 12px; font-weight: 600; color: var(--l-muted); white-space: nowrap; z-index: 3;
  transform: translate(-50%, -50%) rotate(var(--ang)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--ang)));
  animation: tw-orbit 6s var(--ease) infinite; will-change: transform, opacity;
}
.skin-console .tw-node { border-radius: 6px; font-family: var(--font-mono); font-weight: 500; }
@keyframes tw-orbit {
  0%, 48% { transform: translate(-50%, -50%) rotate(var(--ang)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--ang))); opacity: 1; }
  70% { transform: translate(-50%, -50%) rotate(var(--ang)) translateY(0) rotate(calc(-1 * var(--ang))) scale(0.5); opacity: 0; }
  71% { transform: translate(-50%, -50%) rotate(var(--ang)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--ang))); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(var(--ang)) translateY(calc(-1 * var(--orbit))) rotate(calc(-1 * var(--ang))); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-node { animation: none; }
  .tw-core__pulse { animation: none; opacity: 0.25; }
}
.tw-core__caption { margin-top: 22px; font-size: 16px; color: var(--l-muted); }

/* ── КАК РАБОТАЕТ (шаги) ──────────────────────────────────────────────────── */
.tw-steps { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.tw-step { display: grid; grid-template-columns: 72px 200px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--l-hairline); align-items: start; }
.tw-step:first-child { border-top: 0; }
.tw-step__n { font-family: var(--font-mono); font-size: 14px; color: var(--l-accent); }
.tw-step__t { font-size: 18px; font-weight: 600; color: var(--l-text); }
.tw-step__d { font-size: 15px; line-height: 1.6; color: var(--l-muted); }

/* ── БЕЗОПАСНОСТЬ ─────────────────────────────────────────────────────────── */
.tw-seclist { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.tw-seclist li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--l-muted); }
.tw-seclist svg { flex-shrink: 0; color: var(--l-accent); margin-top: 2px; }
.tw-explainer { margin-top: 28px; }
.tw-explainer__title { font-size: 20px; font-weight: 600; margin: 0 0 16px; color: var(--l-text); }
.tw-explainer p { font-size: 15px; line-height: 1.7; color: var(--l-muted); margin: 0 0 12px; max-width: 880px; }

/* ── ИНТЕГРАЦИИ (чипы) ────────────────────────────────────────────────────── */
.tw-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tw-chip { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--l-border); background: var(--l-surface); font-size: 15px; font-weight: 500; color: var(--l-text); }
.skin-console .tw-chip { border-radius: 7px; font-family: var(--font-mono); font-size: 13px; }
.tw-chip:first-child { border-color: var(--l-accent); color: var(--l-accent); }
.tw-chips + .tw-chips { margin-top: 12px; }

/* ── ДЛЯ КОГО ─────────────────────────────────────────────────────────────── */
.tw-fitcol__title { font-size: 17px; font-weight: 600; margin: 0 0 16px; display: flex; gap: 10px; align-items: center; }
.tw-fitcol--yes .tw-fitcol__title { color: var(--success-fg, #7af0b0); }
.tw-fitcol--no .tw-fitcol__title { color: var(--l-faint); }
.tw-fitlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tw-fitlist li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--l-muted); }
.tw-fitlist svg { flex-shrink: 0; margin-top: 2px; }
.tw-fitcol--yes svg { color: var(--success, #2fd07a); }
.tw-fitcol--no svg { color: var(--l-faint); }

/* ── КТО МЫ ───────────────────────────────────────────────────────────────── */
.tw-about__text { font-size: 18px; line-height: 1.7; color: var(--l-muted); max-width: 820px; margin: 0 0 22px; }
.tw-about__points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tw-about__points li { display: flex; gap: 12px; font-size: 15px; color: var(--l-text); }
.tw-about__points svg { color: var(--l-accent); flex-shrink: 0; }

/* ── ВНЕДРЕНИЕ ────────────────────────────────────────────────────────────── */
.tw-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; position: relative; }
.tw-phase { padding: 0 24px; position: relative; }
.tw-phase:not(:first-child) { border-left: 1px solid var(--l-hairline); }
.tw-phase__tag { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--l-accent); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.tw-phase__num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--l-accent); display: grid; place-items: center; font-size: 11px; }
.tw-phase__text { font-size: 15px; line-height: 1.6; color: var(--l-muted); margin: 0; }
/* динамическая роадмап-линия — соединяет номера фаз, бегущая точка едет по ней */
.tw-roadmap { position: absolute; left: 16.6667%; right: 16.6667%; top: 11px; height: 1px; background: linear-gradient(90deg, rgba(46,253,241,0.05), rgba(46,253,241,0.4) 50%, rgba(46,253,241,0.05)); pointer-events: none; }
.tw-roadmap__dot { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--l-accent); box-shadow: 0 0 10px var(--l-accent); transform: translate(-50%, -50%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tw-roadmap__dot { animation: tw-roadmap-travel 4.5s ease-in-out infinite; }
}
@keyframes tw-roadmap-travel {
  0%   { left: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (max-width: 980px) { .tw-roadmap { display: none; } }

/* ── FAQ (аккордеон) ──────────────────────────────────────────────────────── */
.tw-faq { margin-top: 32px; border-top: 1px solid var(--l-hairline); max-width: 920px; }
.tw-faq__item { border-bottom: 1px solid var(--l-hairline); }
.tw-faq__q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; color: var(--l-text); font-family: var(--font-ui); font-size: 18px; font-weight: 600; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tw-faq__q:hover { color: var(--l-accent); }
.tw-faq__icon { flex-shrink: 0; transition: transform .2s var(--ease); color: var(--l-accent); }
.tw-faq__item.is-open .tw-faq__icon { transform: rotate(45deg); }
.tw-faq__a { font-size: 15px; line-height: 1.7; color: var(--l-muted); max-width: 760px; overflow: hidden; max-height: 0; transition: max-height .25s var(--ease), padding .25s var(--ease); }
.tw-faq__item.is-open .tw-faq__a { max-height: 320px; padding: 0 0 24px; }

/* ── ФИНАЛЬНЫЙ CTA + ФОРМА ────────────────────────────────────────────────── */
.tw-final { text-align: center; }
.tw-final .tw-kicker { justify-content: center; }
.tw-final__title { font-family: var(--l-display-font); font-weight: var(--l-display-weight); letter-spacing: var(--l-display-track); font-size: 44px; line-height: 1.12; margin: 0 auto 16px; max-width: 720px; text-wrap: balance; }
.tw-final__sub { font-size: 18px; line-height: 1.6; color: var(--l-muted); max-width: 620px; margin: 0 auto 36px; }
.tw-form { max-width: 760px; margin: 0 auto; background: var(--l-surface); border: 1px solid var(--l-border); border-radius: var(--l-radius); padding: 32px; box-shadow: var(--l-card-shadow); }
.tw-form__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.tw-field { display: flex; flex-direction: column; gap: 7px; }
.tw-field label { font-size: 13px; font-weight: 600; color: var(--l-text); }
.tw-field label .req { color: var(--l-accent); }
.tw-field input {
  background: var(--l-bg); border: 1px solid var(--l-border); border-radius: var(--l-radius-sm);
  padding: 12px 14px; color: var(--l-text); font-family: var(--font-ui); font-size: 15px; outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); width: 100%;
}
.tw-field input::placeholder { color: var(--l-faint); }
.tw-field input:focus { border-color: var(--l-accent); box-shadow: 0 0 0 3px rgba(46,154,253,0.18); }
.tw-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.tw-form__reassure { font-size: 14px; color: var(--l-faint); }
.tw-form__success { display: none; align-items: center; gap: 12px; justify-content: center; font-size: 16px; color: var(--success-fg, #7af0b0); padding: 20px; }
.tw-form.is-sent .tw-form__grid, .tw-form.is-sent .tw-form__foot { display: none; }
.tw-form.is-sent .tw-form__success { display: flex; }

/* ── ФУТЕР ────────────────────────────────────────────────────────────────── */
.tw-footer { border-top: 1px solid var(--l-hairline); padding: 40px 0 56px; }
.tw-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.tw-footer__brand { font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: 0.05em; color: var(--l-text); }
.skin-console .tw-footer__brand { font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }
.tw-footer__legal { font-size: 13px; color: var(--l-faint); margin-top: 8px; font-family: var(--font-mono); }
.tw-footer__nav { display: flex; flex-wrap: wrap; gap: 14px 26px; max-width: 540px; }
.tw-footer__nav a { color: var(--l-muted); text-decoration: none; font-size: 14px; }
.tw-footer__nav a:hover { color: var(--l-accent); }

/* ── КНОПКА «ВВЕРХ» ───────────────────────────────────────────────────────── */
.tw-totop {
  position: fixed; right: 28px; bottom: 28px; z-index: var(--z-sticky);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--l-border);
  background: var(--l-surface-2); color: var(--l-text); display: grid; place-items: center;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), border-color .15s, transform .15s;
  backdrop-filter: blur(8px);
}
.skin-console .tw-totop { border-radius: 10px; }
.tw-totop.is-visible { opacity: 1; pointer-events: auto; }
.tw-totop:hover { border-color: var(--l-accent); transform: translateY(-2px); }

/* ── ICON CHIP / STATUS DOT / ACCENT NOTE (общее для новых блоков) ──────────── */
.tw-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--l-surface-2); border: 1px solid var(--l-border); color: var(--l-accent); margin-bottom: 18px; }
.skin-console .tw-ico { border-radius: 8px; }
.tw-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--l-muted); }
.tw-status__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tw-status--on .tw-status__dot { background: var(--success, #2fd07a); box-shadow: 0 0 8px rgba(47,208,122,0.65); }
.tw-status--off .tw-status__dot { background: var(--l-faint); }
.tw-accent-note { margin-top: 24px; font-size: 14px; line-height: 1.55; color: var(--l-accent); font-family: var(--font-mono); }
.tw-paras p { font-size: 17px; line-height: 1.7; color: var(--l-muted); margin: 0 0 14px; max-width: 820px; }
.tw-paras { margin-bottom: 8px; }

/* ── АГЕНТЫ ───────────────────────────────────────────────────────────────── */
.tw-agent { display: flex; flex-direction: column; }
.tw-agent__badge { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--l-accent); border: 1px solid var(--l-border); border-radius: 999px; padding: 5px 13px; margin-bottom: 18px; }
.skin-console .tw-agent__badge { border-radius: 6px; }
.tw-agent__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--l-hairline); }

/* ── ПЛАШКА-АКЦЕНТ (Кто мы) ───────────────────────────────────────────────── */
.tw-plate { margin-top: 26px; padding: 22px 26px; border-radius: var(--l-radius); border: 1px solid var(--l-accent); background: var(--l-surface); position: relative; overflow: hidden; }
.skin-neon .tw-plate { box-shadow: 0 0 0 1px rgba(46,253,241,0.12), inset 0 0 40px -20px rgba(46,253,241,0.25); }
.tw-plate__text { font-size: 17px; line-height: 1.6; color: var(--l-text); margin: 0; max-width: 760px; }
.tw-companies { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.tw-companies li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--l-muted); align-items: baseline; }
.tw-companies li svg { color: var(--l-accent); flex-shrink: 0; align-self: center; }
.tw-companies b { color: var(--l-text); font-weight: 600; }
.tw-about__legal { margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: var(--l-faint); }

/* ── УЖЕ В РАБОТЕ (широкая карточка) ──────────────────────────────────────── */
.tw-casecard { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.tw-casecard__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tw-casecard__badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--l-accent); border: 1px solid var(--l-border); border-radius: 999px; padding: 5px 13px; }
.skin-console .tw-casecard__badge { border-radius: 6px; }
.tw-casecard__title { font-size: 22px; font-weight: 600; color: var(--l-text); margin: 0; }
.tw-casecard__text { font-size: 16px; line-height: 1.65; color: var(--l-muted); margin: 0; max-width: 820px; }

/* ── СЦЕНАРИИ · FLOWCHART ─────────────────────────────────────────────────── */
.tw-flow { margin: 40px auto 0; max-width: 600px; display: flex; flex-direction: column; align-items: center; }
.tw-flow__node { background: var(--l-surface); border: 1px solid var(--l-border); border-radius: var(--l-radius-sm); padding: 15px 18px; display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; color: var(--l-text); width: 100%; max-width: 360px; box-shadow: var(--l-card-shadow); }
.tw-flow__node svg { color: var(--l-accent); flex-shrink: 0; }
.tw-flow__node--green { border-color: var(--success, #2fd07a); }
.tw-flow__node--green svg { color: var(--success, #2fd07a); }
.tw-flow__node--blue { border-color: var(--blue); }
.tw-flow__node--blue svg { color: var(--blue); }
.tw-flow__node--final { max-width: 280px; justify-content: center; border-color: var(--l-accent); }
.tw-flow__decision { background: var(--l-surface-2); border: 1px solid var(--l-accent); border-radius: var(--l-radius-sm); padding: 14px 22px; display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--l-text); transform: none; }
.tw-flow__decision svg { color: var(--l-accent); }
.tw-flow__arrow { width: 2px; height: 26px; background: var(--l-border); position: relative; flex-shrink: 0; }
.tw-flow__arrow::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--l-border); }
.tw-flow__branch { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 560px; }
.tw-flow__branchlabels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; max-width: 560px; }
.tw-flow__blabel { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--l-muted); }
.tw-flow__col { display: flex; flex-direction: column; align-items: center; }

/* ════════════════════════════════════════════════════════════════════════════
   НОВЫЕ БЛОКИ (v2)
   ════════════════════════════════════════════════════════════════════════════ */

/* — Блок 2: агенты внутри ядра — */
.tw-core__agents { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 4; }
.tw-agentbadge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--l-surface-2); border: 1px solid var(--l-accent); color: var(--l-accent); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.5); }
.skin-console .tw-agentbadge { border-radius: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .tw-agentbadge { opacity: 0; transform: translateY(8px) scale(0.8); animation: tw-pop .45s var(--ease-out) forwards; }
  .tw-agentbadge:nth-child(2) { animation-delay: .12s; }
  .tw-agentbadge:nth-child(3) { animation-delay: .24s; }
}
@keyframes tw-pop { to { opacity: 1; transform: translateY(0) scale(1); } }
.tw-core__v2extra { margin-top: 22px; font-size: 16px; line-height: 1.65; color: var(--l-muted); }

/* — Блок 3: фичи-чипы → бегущая лента вправо — */
.tw-chiprow { margin-top: 28px; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.tw-chiptrack { display: flex; gap: 12px; width: max-content; animation: tw-marquee-r 34s linear infinite; }
@keyframes tw-marquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tw-fchip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--l-text); white-space: nowrap; border: 1px solid transparent; }
.skin-console .tw-fchip { border-radius: 7px; }
.tw-fchip svg { color: var(--cyan); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .tw-chiptrack { animation: none; flex-wrap: wrap; } }
.tw-tasks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.tw-tasks-grid .tw-task { padding: 20px 24px; }

/* — Блок 4: чат-виджет «Попробуйте сами» — */
.tw-chat { max-width: 640px; background: var(--l-surface); border: 1px solid var(--l-border); border-radius: var(--l-radius); box-shadow: var(--l-card-shadow); overflow: hidden; }
.tw-assistant__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
@media (max-width: 980px) { .tw-assistant__grid { grid-template-columns: 1fr; } }
.skin-neon .tw-chat { box-shadow: 0 0 0 1px rgba(46,253,241,0.10), 0 24px 60px -22px rgba(46,154,253,0.40); }
.tw-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--l-hairline); }
.tw-chat__ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--l-accent); color: var(--l-accent-fg); flex-shrink: 0; }
.skin-console .tw-chat__ava { border-radius: 9px; }
.tw-chat__name { font-size: 14px; font-weight: 600; color: var(--l-text); }
.tw-chat__status { font-family: var(--font-mono); font-size: 11px; color: var(--l-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tw-chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success, #2fd07a); box-shadow: 0 0 7px rgba(47,208,122,0.6); }
.tw-chat__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; }
.tw-msg { display: flex; max-width: 82%; }
.tw-msg--bot { align-self: flex-start; }
.tw-msg--user { align-self: flex-end; justify-content: flex-end; }
.tw-msg__bubble { padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.tw-msg--bot .tw-msg__bubble { background: var(--l-surface-2); border: 1px solid var(--l-border); color: var(--l-text); border-bottom-left-radius: 4px; }
.tw-msg--user .tw-msg__bubble { background: var(--l-accent); color: var(--l-accent-fg); border-bottom-right-radius: 4px; }
.tw-chat__typing { display: flex; gap: 4px; padding: 14px 16px; }
.tw-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--l-faint); animation: tw-typedot 1.2s var(--ease) infinite; }
.tw-chat__typing span:nth-child(2) { animation-delay: .18s; }
.tw-chat__typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tw-typedot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.tw-chat__sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.tw-chat__sugg button { font-family: var(--font-ui); font-size: 13px; color: var(--l-link); background: transparent; border: 1px solid var(--l-border); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.skin-console .tw-chat__sugg button { border-radius: 6px; }
.tw-chat__sugg button:hover { border-color: var(--l-accent); color: var(--l-accent); }
.tw-chat__input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--l-hairline); }
.tw-chat__input input { flex: 1; background: var(--l-bg); border: 1px solid var(--l-border); border-radius: var(--l-radius-sm); padding: 12px 14px; color: var(--l-text); font-family: var(--font-ui); font-size: 14.5px; outline: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.tw-chat__input input:focus { border-color: var(--l-accent); box-shadow: 0 0 0 3px rgba(46,154,253,0.16); }
.tw-chat__send { width: 46px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: var(--l-radius-sm); background: var(--l-accent); color: var(--l-accent-fg); cursor: pointer; transition: opacity .15s var(--ease); }
.tw-chat__send:hover { opacity: 0.88; }
.tw-chat__micro { text-align: center; font-size: 13px; color: var(--l-faint); margin-top: 16px; }

/* ── АДАПТИВ ──────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .tw-hero__grid, .tw-core { grid-template-columns: 1fr; }
  .tw-grid-3, .tw-grid-2 { grid-template-columns: 1fr; }
  .tw-demo-row { flex-direction: column; }
  .tw-phases { grid-template-columns: 1fr; gap: 24px; }
  .tw-phase:not(:first-child) { border-left: 0; border-top: 1px solid var(--l-hairline); padding-top: 24px; }
  .tw-step { grid-template-columns: 48px 1fr; }
  .tw-step__d { grid-column: 1 / -1; }
  .tw-nav { display: none; }
  .tw-form__grid { grid-template-columns: 1fr 1fr; }
  .tw-hero__title { font-size: 42px; }
  .tw-h2, .tw-final__title { font-size: 32px; }
  .tw-core__stage { max-width: 360px; --orbit: 128px; }
  .tw-featrow { grid-template-columns: 1fr 1fr; }
  .tw-tasks-grid { grid-template-columns: 1fr; }
  .tw-flow__branch, .tw-flow__branchlabels { grid-template-columns: 1fr; gap: 0; }
  .tw-flow__branchlabels { display: none; }
  .tw-casecard__head { align-items: flex-start; }
}
@media (max-width: 560px) {
  .tw-wrap { padding: 0 20px; }
  .tw-form__grid { grid-template-columns: 1fr; }
  .tw-hero__title { font-size: 34px; }
  .tw-core__stage { max-width: 280px; --orbit: 104px; }
  .tw-featrow { grid-template-columns: 1fr 1fr; }
  .tw-node { font-size: 11px; padding: 6px 10px; }
}
@media (max-width: 480px) {
  /* на узких телефонах принудительный перенос после акцента уже не влезает
     в одну строку — отдаём выбор точки переноса обратно text-wrap: balance */
  .tw-hero__br { display: none; }
}
