/* ========== SCENARIOS PAGE ========== */
/* Подключается ПОСЛЕ main.css. Общие классы: .container, .section__header, .pretitle, .title, .section__text, .btn, .faq */

/* scenPromo — hero по стандарту .pageHero (main.css), здесь только своё */
.scenPromo{--heroAside:480px;--heroAccent:#FB685B;margin-bottom:88px}
/* scenPromo */

/* scenCloud (облако баблов со сценариями в hero) */
.scenCloud{position:relative;width:100%;max-width:520px;margin-left:auto;padding:46px 34px;isolation:isolate}
.scenCloud__glow{position:absolute;inset:0;z-index:-1;border-radius:24px;background:radial-gradient(rgba(255,255,255,.09) 1.4px,transparent 1.4px) 0 0/18px 18px,#002033;border:1px solid rgba(255,255,255,.1);box-shadow:0 40px 80px -50px rgba(0,32,51,.6)}
.scenCloud__items{display:flex;flex-direction:column;gap:26px;position:relative}
.scenCloud__row{display:flex}
.scenCloud__row:nth-child(odd){justify-content:flex-start}
.scenCloud__row:nth-child(even){justify-content:flex-end}
/* flow-lines.js: слой связей + анимация направления */
.flowEdges{position:absolute;inset:0;pointer-events:none;z-index:0}
.flowEdges svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.flowEdges__path{fill:none;stroke:currentColor;stroke-width:1.5}
.flowEdges__path--anim{stroke-dasharray:5 9;stroke-linecap:round;animation:flowDash 1.1s linear infinite}
@keyframes flowDash{to{stroke-dashoffset:-28}}
@media (prefers-reduced-motion:reduce){.flowEdges__path--anim{animation:none;stroke-dasharray:none;opacity:.5}}
.scenCloud__items .bubble{flex:none;position:relative;z-index:1}
.bubble{position:relative;z-index:1;display:inline-flex;align-items:center;gap:9px;padding:8px 16px 8px 8px;border-radius:100px;background:#fff;border:1px solid rgba(255,255,255,.9);box-shadow:0 14px 28px -20px rgba(0,0,0,.55);color:#002033;font-size:13px;font-weight:500;line-height:1.25;max-width:100%}
.bubble__icon{flex:none;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(251,104,91,.12);font-size:14px;line-height:1}
.bubble--soft{color:#002033;background:#fff;border-color:rgba(255,255,255,.9)}
.bubble--soft .bubble__icon{background:rgba(0,32,51,.06)}
.bubble--accent{background:#FB685B;border-color:transparent;color:#fff;font-weight:600;box-shadow:0 16px 30px -16px rgba(251,104,91,.65)}
.bubble--accent .bubble__icon{background:rgba(255,255,255,.22)}
/* scenCloud */

/* jobs (JTBD) */
.jobs{padding:88px 0;position:relative}
.jobs::before{content:'';position:absolute;inset:0;background:#fff;z-index:-1}
.jobs__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.jobs__card{display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:16px;border:1px solid rgba(0,32,51,.08);background:#FAF9F7;transition:.25s box-shadow ease-in-out}
.jobs__card:hover{box-shadow:0 20px 40px -24px rgba(88,16,10,.25)}
.jobs__name{color:#002033;font-size:20px;font-weight:600;line-height:1.3;margin:0;display:flex;align-items:baseline;gap:10px}
.jobs__emoji{flex:none;font-size:22px;line-height:1}
.jobs__outcome{color:rgba(0,32,51,.7);font-size:15px;line-height:1.5;flex:1}
/* jobs */

/* anatomy */

/* nodes (каталог нод) */
.nodesCat{padding:88px 0;background:#002033;border-radius:32px}
.nodesCat .container{position:relative}
/* nodesCat: цепочка нод на React Flow — прямо на фоне блока */
.nodesCat__canvas{width:100%;height:480px;background:transparent}
/* nodesCat: разделитель между графом и списком возможностей */
.nodesCat__sub{margin:56px 0 24px;padding-top:32px;border-top:1px solid rgba(255,255,255,.12);display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.nodesCat__subTitle{margin:0;color:#fff;font-size:24px;font-weight:600;line-height:1.25}
.nodesCat__subText{color:rgba(255,255,255,.5);font-size:15px;line-height:1.5}
.nodesCat__canvas .react-flow__node{cursor:default}
.nodesCat__canvas .react-flow__node *{pointer-events:none}
.nodesCat__canvas .react-flow__pane{cursor:grab;touch-action:pan-y}
.nodesCat__canvas .react-flow__pane.dragging{cursor:grabbing}
.nodesCat__canvas .react-flow__handle{width:7px;height:7px;min-width:0;min-height:0;border:0;border-radius:1px;background:rgba(255,255,255,.35)}
.nodesCat__canvas .react-flow__attribution{background:transparent;font-size:10px}
.nodesCat__canvas .react-flow__attribution a{color:rgba(255,255,255,.3)}
.sfNode{position:relative;width:112px;height:56px;display:flex;align-items:center;justify-content:center}
.sfNode__tile{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.sfNode--trigger .sfNode__tile{background:#264A63}
.sfNode--cond .sfNode__tile{background:#E8853C}
.sfNode--wait .sfNode__tile{background:#8B7BD8}
.sfNode--action .sfNode__tile{background:#fff;border:1.5px solid #4CAF7D}
.sfNode__label{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:132px;display:flex;flex-direction:column;gap:2px;text-align:center;pointer-events:none}
.sfNode__name{color:#fff;font-size:13px;font-weight:500;line-height:1.3}
.sfNode__meta{color:rgba(255,255,255,.45);font-size:11px;line-height:1.35}
.nodesCat__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.nodesCat__card{padding:24px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}
.nodesCat__head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.nodesCat__icon{flex:none;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(251,104,91,.18)}
.nodesCat__icon svg{width:18px;height:18px}
.nodesCat__name{color:#fff;font-size:17px;font-weight:600;line-height:1.3}
.nodesCat__tag{margin-left:auto;color:rgba(255,255,255,.5);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 8px;border-radius:100px;border:1px solid rgba(255,255,255,.15);white-space:nowrap}
.nodesCat__text{color:rgba(255,255,255,.65);font-size:14px;line-height:1.55}
/* nodesCat */

/* control (управление и контроль) */
.control{margin:88px 0}
.control__container{display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:48px;align-items:center}
.control__list{display:flex;flex-direction:column;gap:8px;margin-top:28px}
.control__item{display:flex;gap:14px;padding:16px;border-radius:12px}
.control__ico{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(251,104,91,.1)}
.control__ico svg{width:20px;height:20px}
.control__itemName{color:#002033;font-size:16px;font-weight:600;line-height:1.4;display:block}
.control__itemText{color:rgba(0,32,51,.65);font-size:14px;line-height:1.5;margin-top:3px}
/* runDlg: окно предупреждения перед массовой рассылкой */
.runDlg{border-radius:14px;border:1px solid rgba(0,32,51,.08);background:#fff;box-shadow:0 40px 80px -36px rgba(88,16,10,.28);overflow:hidden}
.runDlg__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid rgba(0,32,51,.08)}
.runDlg__title{display:flex;align-items:center;gap:9px;color:rgba(0,32,51,.55);font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.3}
.runDlg__title svg{flex:none;width:18px;height:18px}
.runDlg__close{color:rgba(0,32,51,.45);font-size:20px;line-height:1}
.runDlg__body{padding:24px}
.runDlg__lead{color:#002033;font-size:16px;line-height:1.5}
.runDlg__lead b{font-weight:600}
.runDlg__note{margin-top:18px;padding:18px 20px;border-radius:8px;border:1px solid #E8A33C;background:#FDF7EF;color:#002033;font-size:15px;line-height:1.6;text-wrap:pretty}
.runDlg__foot{display:flex;justify-content:flex-end;gap:12px;padding:18px 24px;border-top:1px solid rgba(0,32,51,.08)}
.runDlg__btn{font-size:15px;font-weight:500;padding:11px 22px;border-radius:6px;background:rgba(0,32,51,.05);color:rgba(0,32,51,.55);line-height:1.3}
.runDlg__btn--primary{background:#FB685B;color:#fff;font-weight:600}
/* control */

/* cta и faq — сквозные блоки с главной, локальные стили не нужны */

/* ========== ADAPTIVE ========== */
@media (max-width:1180px){
.jobs__grid{grid-template-columns:repeat(2,1fr)}
.nodesCat__grid{grid-template-columns:repeat(2,1fr)}
.control__container{grid-template-columns:minmax(0,1fr) 460px;gap:32px}
}
@media (max-width:991px){
.scenPromo{margin-bottom:64px}
.scenCloud{margin-left:0;max-width:560px}
.control__container{grid-template-columns:1fr;gap:36px}
.runDlg{max-width:520px}
.control{margin:64px 0}
.jobs,.nodesCat{padding:64px 0}
}
@media (max-width:767px){
.jobs__grid{grid-template-columns:1fr}
.nodesCat__grid{grid-template-columns:1fr}
.nodesCat{border-radius:0}
}
@media (max-width:575px){
.scenCloud{padding:32px 20px}
.runDlg__body,.runDlg__bar,.runDlg__foot{padding-left:18px;padding-right:18px}
}

/* ========== ПРАВКИ САЙТА ПОВЕРХ ВЕРСТКИ ==========
   Блок ниже добавлен на стороне сайта, в исходнике дизайна его нет.
   При ре-импорте scenarios.css из дизайн-проекта — перенести сюда заново. */

/* Подложки секций приводим к трём цветам сайта (токены в main.css).
   В макете «Конструктор» был плоский #002033 — на главной тёмная другая. */
.nodesCat {
	background: var(--surface-dark);
}

/* «Что можно автоматизировать» рисовала белую панель #FFF — четвёртый цвет.
   Убираем, секция ложится на светлый фон страницы. */
.jobs::before {
	display: none;
}

/* Карточки внутри были #FAF9F7 — это читалось только поверх белой панели.
   Без неё фон карточки совпал бы с фоном страницы. Делаем белыми: так устроены
   все карточки на светлых секциях (.clientsFeatures__item, .compare__card,
   .mlCard, .mlFact, .mlCase). */
.jobs__card {
	background: #FFF;
}
