/* ==========================================================================
   assets/haifly.css — фирменное оформление сайта haifly.ru.
   Общий каркас (шапка, меню, кнопки, сетки, подвал) живёт в assets/site.css
   и здесь только дополняется. Файл — источник правды для вида сайта.

   КОНЦЕПЦИЯ «АВРОРА». Три слоя: холодный фон с точечной сеткой, светящиеся
   градиентные пятна и плотная типографика с крупными интервалами. Декор —
   только псевдоэлементы и встроенные градиенты: ни картинок, ни библиотек.
   ========================================================================== */

:root {
    --accent: #c026d3;
    --accent-2: #0ea5e9;
    --accent-3: #7c3aed;
    --accent-deep: #86198f;
    --ink: #12142a;
    --ink-2: #1d2040;
    --muted: #5d6580;
    --line: #e4e7f2;
    --soft: #f5f5fd;
    --ok: #10b981;
    --radius: 22px;
    --max: 1180px;
    --shadow: 0 24px 60px rgba(18, 20, 42, .10);
    --grad: linear-gradient(115deg, var(--accent) 0%, var(--accent-3) 52%, var(--accent-2) 100%);
    --dot: radial-gradient(rgba(18, 20, 42, .07) 1px, transparent 1px);
}

body { color: var(--ink); background: #fff; }
::selection { background: rgba(192, 38, 211, .18); }

.wrap { max-width: var(--max); }

/* ---------- типографика ---------- */
h1, h2, h3 { letter-spacing: -.025em; }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.02; max-width: 20ch; }
.hero h1 em, .page h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--accent-deep); }
.sec h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.12; }
.sec h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 18px 0 0; border-radius: 4px; background: var(--grad); }

/* ---------- базовая геометрия компонентов ----------
   Слой структуры: размеры, отступы, сетки и потоки. Декор (цвет, тени,
   градиенты) идёт ниже и наслаивается сверху. Без этого слоя компоненты
   разваливаются: карточки теряют колонку, иконки — размер, списки — галочки. */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.hero__stats { margin: 30px 0 0; padding: 0; list-style: none; }
.hero__stats b { display: block; font-size: 20px; }
.hub { display: grid; }
.hub__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.hub__row:hover { text-decoration: none; }
.hub__ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; }
.hub__name { font-weight: 650; font-size: 15px; }
.hub__hint { color: var(--muted); font-size: 13px; }
.hub__more { margin-top: 4px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-size: 13px; }

.prod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod__item { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.prod__item:hover { text-decoration: none; }
.prod__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; letter-spacing: .02em; }
.prod__name { font-size: 19px; font-weight: 700; margin: 0; }
.prod__text { margin: 0; font-size: 15px; }
.prod__list { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.prod__list li { position: relative; padding-left: 22px; font-size: 14px; }
.prod__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.prod__go { margin-top: auto; padding-top: 12px; font-weight: 650; font-size: 14px; }
.prod__go::after { content: " →"; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why__item h3 { margin: 0 0 6px; font-size: 17px; }
.why__item p { margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 14px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan__tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan h3 { margin: 0; font-size: 19px; }
.plan p { margin: 0; font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { position: relative; padding-left: 24px; font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.faq { display: grid; gap: 10px; }
.faq summary { padding: 16px 0; font-weight: 650; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 78ch; }

.compare { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare tbody tr:last-child td { border-bottom: 0; }

.contacts { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; }
.contacts__card { padding: 26px; }
.contacts__card h2 { margin-top: 0; font-size: 20px; }
.contacts__row { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contacts__row:last-child { border-bottom: 0; }
.contacts__row span { color: var(--muted); font-size: 13px; }
.contacts__row b { font-size: 16px; font-weight: 650; }

.feature { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; }
.feature__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 15px; }

.note { margin: 24px 0; padding: 18px 22px; border-radius: 14px; font-size: 15px; }
.note b { color: var(--ink); }

/* ---------- шапка ---------- */
.hdr { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(228, 231, 242, .9); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(192, 38, 211, .5), rgba(14, 165, 233, .5), transparent); }
.hdr__in { min-height: 126px; }
.logo { flex-direction: column; align-items: flex-start; gap: 4px; }
/* Размер логотипа задан владельцем: 26px x 3,5 = 91px. Ширина считается сама
   (viewBox 500x200, то есть 2,5:1 — выходит 227px), поэтому width:auto
   обязателен: без него атрибуты width/height из разметки растянули бы знак. */
.logo img { height: 91px; width: auto; max-width: 100%; }
.logo__sub { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8b90a8; font-weight: 700; }
.menu__link { font-weight: 560; position: relative; }
.menu__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.menu__link:hover::after, .menu__link.current::after { transform: scaleX(1); }
.menu__link:hover, .menu__link.current { color: var(--ink); text-decoration: none; }
.hdr__cta { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(18, 20, 42, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.hdr__cta:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(134, 25, 143, .3); text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 76px; background: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--dot); background-size: 26px 26px; -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 32%, transparent 78%); mask-image: radial-gradient(120% 90% at 50% 0%, #000 32%, transparent 78%); }
.hero::after { content: ""; position: absolute; z-index: 0; inset: -30% -10% auto -10%; height: 130%; background:
    radial-gradient(48% 46% at 14% 8%, rgba(192, 38, 211, .28), transparent 68%),
    radial-gradient(44% 44% at 88% 2%, rgba(14, 165, 233, .26), transparent 66%),
    radial-gradient(40% 40% at 62% 46%, rgba(124, 58, 237, .16), transparent 70%);
    filter: blur(6px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero--split .wrap { grid-template-columns: 1.08fr .92fr; gap: 54px; }
.hero__text p, .hero p { color: #4c5470; font-size: clamp(16px, 1.6vw, 19px); }
.hero__actions { margin-top: 26px; }
.hero .btn--primary { background: var(--ink); box-shadow: 0 16px 34px rgba(18, 20, 42, .22); }
.hero .btn--primary:hover { background: var(--accent-deep); filter: none; }
.hero .btn--ghost { background: rgba(255, 255, 255, .7); border-color: #d9deef; }

.badge { background: rgba(255, 255, 255, .78); border: 1px solid rgba(228, 231, 242, .95); box-shadow: 0 10px 26px rgba(18, 20, 42, .06); letter-spacing: .02em; }
.badge__dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(192, 38, 211, .16); }

.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero__stats li { padding-right: 14px; }
.hero__stats li + li { border-left: 1px solid var(--line); padding-left: 18px; }
.hero__stats b { font-size: 22px; letter-spacing: -.03em; }
.hero__stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }

/* стеклянная панель справа */
.hero__aside { position: relative; border-radius: 26px; padding: 24px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 70px rgba(18, 20, 42, .16); backdrop-filter: blur(18px) saturate(150%); }
.hero__aside::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }

.hub { gap: 8px; }
.hub__row { border: 1px solid rgba(228, 231, 242, .9); background: rgba(255, 255, 255, .86); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hub__row:hover { transform: translateX(3px); border-color: rgba(192, 38, 211, .35); box-shadow: 0 12px 26px rgba(192, 38, 211, .12); }
.hub__ico { background: var(--grad); box-shadow: 0 8px 18px rgba(124, 58, 237, .28); letter-spacing: .02em; }
.hub__name { font-weight: 680; }
.hub__more { background: linear-gradient(120deg, rgba(192, 38, 211, .08), rgba(14, 165, 233, .08)); border: 1px dashed rgba(124, 58, 237, .28); }

/* ---------- секции ---------- */
.sec { padding: 76px 0; }
.sec--soft { background: var(--soft); position: relative; }
.sec--soft::before { content: ""; position: absolute; inset: 0; background: var(--dot); background-size: 26px 26px; opacity: .7; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.sec--soft > .wrap { position: relative; }
.sec .lead { font-size: 17px; }

/* ---------- продукты ---------- */
.prod { gap: 20px; }
.prod__item { padding: 28px 24px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.prod__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); opacity: .9; }
.prod__item::after { content: ""; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 38, 211, .14), transparent 68%); opacity: 0; transition: opacity .25s ease; }
.prod__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.prod__item:hover::after { opacity: 1; }
.prod__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .04em; background: var(--grad); box-shadow: 0 10px 22px rgba(124, 58, 237, .26); }
.prod__name { margin: 16px 0 8px; font-size: 19px; }
.prod__text { color: var(--muted); font-size: 15px; }
.prod__list { margin: 4px 0 18px; }
.prod__list li::before { color: var(--accent); }
.prod__go { margin-top: auto; font-weight: 650; color: var(--accent-deep); }
.prod__item:hover .prod__go { color: var(--accent); }

/* ---------- «почему» и факты ---------- */
.why { gap: 16px; }
.why__item { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); transition: box-shadow .2s ease, transform .2s ease; }
.why__item:hover { box-shadow: 0 16px 36px rgba(18, 20, 42, .09); transform: translateY(-2px); }

.facts { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 8px; }
.fact { padding: 22px; border-radius: 18px; background: linear-gradient(160deg, #fff, #fafaff); border: 1px solid var(--line); }
.fact b { display: block; margin-bottom: 6px; font-size: 16px; }
.fact span { color: var(--muted); font-size: 15px; }

/* ---------- шаги: крупный контурный номер ---------- */
.steps { gap: 18px; counter-reset: s; }
.steps li { grid-template-columns: 58px 1fr; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); width: auto; height: auto; background: none; color: transparent; -webkit-text-stroke: 1.5px rgba(124, 58, 237, .55); font: 800 34px/1 inherit; display: block; align-self: start; }
.steps li strong { display: block; margin-bottom: 2px; }
.steps li div div { color: var(--muted); }

/* ---------- списки-галочки, таблицы, FAQ ---------- */
.checks li b { color: var(--ink); }
.compare { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.compare thead th { background: var(--soft); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: #6b7291; }
.compare tbody tr:hover { background: #fbfaff; }

.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.faq details + details { margin-top: 10px; }
.faq details[open] { border-color: rgba(192, 38, 211, .3); box-shadow: 0 14px 32px rgba(192, 38, 211, .08); }
.faq summary { cursor: pointer; font-weight: 640; }
.faq summary::marker { color: var(--accent); }

/* ---------- планы ---------- */
.plans { gap: 18px; }
.plan { border-radius: 22px; padding: 26px; border: 1px solid var(--line); background: #fff; position: relative; }
.plan--main { border: 0; color: #fff; background: linear-gradient(155deg, var(--ink) 0%, #2a1650 52%, #3d1a5c 100%); box-shadow: 0 26px 60px rgba(30, 16, 60, .3); }
.plan--main h3, .plan--main p, .plan--main li { color: #fff; }
.plan--main p, .plan--main li { color: rgba(255, 255, 255, .82); }
.plan--main::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: radial-gradient(60% 50% at 90% 0%, rgba(14, 165, 233, .35), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(192, 38, 211, .35), transparent 70%); pointer-events: none; }
.plan--main > * { position: relative; z-index: 1; }
.plan__tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- блоки-особенности ---------- */
.feature { border-radius: 18px; transition: box-shadow .2s ease, transform .2s ease; }
.feature:hover { box-shadow: 0 18px 40px rgba(18, 20, 42, .09); transform: translateY(-2px); }
.feature__ico { background: linear-gradient(140deg, rgba(192, 38, 211, .12), rgba(14, 165, 233, .12)); color: var(--accent-deep); letter-spacing: .04em; }
.card { border-radius: 18px; }
.card__ico { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(124, 58, 237, .25); }

.note { margin: 24px 0; padding: 18px 22px 18px 20px; border-radius: 14px; border-left: 3px solid var(--accent); background: linear-gradient(120deg, rgba(192, 38, 211, .06), rgba(14, 165, 233, .06)); color: var(--muted); font-size: 15px; }

/* ---------- контакты ---------- */
.contacts { align-items: start; }
.contacts__card { border-radius: 22px; background: linear-gradient(160deg, #fff, #fbfaff); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contacts__row b { color: var(--ink); }

/* ---------- форма связи ---------- */
/* Разметку печатает обработчик ADM/_ROOT_LIB/forms.pl: .form > .addElement
   (одно поле), .field__label, .input, .field__hint, .field__note, .form__submit,
   .form__alert. Классы проставлены в обработчике НАМЕРЕННО: раньше он выводил
   подписи через <br>, поля без стилей и подсветку ошибки инлайновым
   style="border… #ff6600" — оформление было в коде формы, а не в одном месте. */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 0; }
.form .addElement { display: block; min-width: 0; }
/* Первые два поля (имя и контакт) — в строку, остальные на всю ширину:
   короткие поля рядом читаются быстрее, длинный текст не сжимается. */
.form .addElement:nth-of-type(n+3) { grid-column: 1 / -1; }
.form .field__note, .form .form__submit { grid-column: 1 / -1; }
.field__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.field__req { margin-left: 2px; color: var(--accent); }
.form .input { width: 100%; padding: 14px 16px; border: 1px solid #e4e7f2; border-radius: 13px; background: #fbfbff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.form .input:hover { border-color: #d5d9e8; background: #fff; }
.form .input:focus { outline: none; border-color: rgba(192, 38, 211, .5); background: #fff; box-shadow: 0 0 0 4px rgba(192, 38, 211, .1); }
.form textarea.input { min-height: 132px; resize: vertical; }
/* Ошибку помечает обработчик атрибутом aria-invalid, поэтому подсветка одна
   для любого типа поля — и её видит скринридер. */
.form .input[aria-invalid="true"] { border-color: #e2a6bd; background: #fff8fb; }
.form .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(226, 166, 189, .22); }
.field__hint { display: block; margin: 8px 0 0; font-size: 13px; color: #a8336b; }
.field__note { display: block; margin: 2px 0 2px; font-size: 13px; color: var(--muted); }
.form__submit { width: 100%; padding: 16px 22px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; box-shadow: 0 16px 32px rgba(124, 58, 237, .26); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.form__submit:hover { transform: translateY(-1px); box-shadow: 0 20px 38px rgba(124, 58, 237, .32); filter: saturate(120%); }
.form__submit:active { transform: translateY(0); }
.form__alert { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(192, 38, 211, .2); background: linear-gradient(120deg, rgba(192, 38, 211, .07), rgba(14, 165, 233, .07)); font-size: 14px; color: #4a3b57; }
.form__alert:focus { outline: none; }
.form__alert-t { display: block; margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.form__alert-item { position: relative; padding: 2px 0 2px 16px; }
.form__alert-item::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- призыв: тёмная полоса с авророй ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 48px; background: linear-gradient(150deg, var(--ink) 0%, #241245 55%, #3b1259 100%); box-shadow: 0 30px 70px rgba(30, 16, 60, .28); }
.cta::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(50% 60% at 88% 8%, rgba(14, 165, 233, .42), transparent 70%),
    radial-gradient(46% 60% at 6% 96%, rgba(192, 38, 211, .42), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; max-width: 24ch; }
.cta h2::after { display: none; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 52ch; font-size: 17px; }
.cta .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 16px 34px rgba(0, 0, 0, .24); }
.cta .btn--primary:hover { background: #f4efff; }

/* ---------- внутренняя страница ---------- */
.page { position: relative; padding: 0 0 70px; background: #fff; }
.page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 340px; background:
    radial-gradient(60% 80% at 8% 0%, rgba(192, 38, 211, .16), transparent 70%),
    radial-gradient(50% 70% at 92% 0%, rgba(14, 165, 233, .16), transparent 70%); pointer-events: none; }
.page > .wrap { position: relative; }
.page__head { padding: 40px 0 26px; }
.page h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; margin: 0 0 14px; max-width: 26ch; }
.page__body h2 { margin: 46px 0 12px; font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.02em; }
.page__body h2::after { content: ""; display: block; width: 44px; height: 3px; margin: 14px 0 0; border-radius: 3px; background: var(--grad); }
.page__body h3 { font-size: 17px; }
.page__body { max-width: none; }
.page__body > p, .page__body > ul, .page__body > ol, .page__body > blockquote, .page__body > h2, .page__body > h3 { max-width: 78ch; }
.page__body > section { padding: 28px 0 0; }
.page__body > section:first-child { padding-top: 0; }
.page__body .lead { color: #4c5470; font-size: 18px; max-width: 70ch; margin: 0 0 28px; }
.page__body > table, .page__body .compare { margin: 24px 0; }

.breadcrumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(18, 20, 42, .05); color: var(--muted); font-size: 14px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumbs li + li::before { content: "›"; color: #b9c0d6; }
.breadcrumbs a:hover { color: var(--accent-deep); text-decoration: none; }

/* ---------- подвал ---------- */
.ftr { position: relative; overflow: hidden; margin-top: 40px; padding: 60px 0 26px; color: #c5cadd; background: linear-gradient(180deg, #14162e 0%, #0e1024 100%); border: 0; font-size: 14px; }
.ftr::before { content: "HAIFLY"; position: absolute; right: -20px; bottom: -46px; font: 800 clamp(90px, 18vw, 220px)/1 inherit; letter-spacing: -.06em; color: rgba(255, 255, 255, .035); pointer-events: none; }
.ftr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(192, 38, 211, .6), rgba(14, 165, 233, .6), transparent); }
.ftr .wrap { position: relative; z-index: 1; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.ftr__brand img { height: 26px; filter: brightness(0) invert(1); opacity: .92; }
.ftr__brand p { margin: 16px 0 0; color: #9aa1bb; max-width: 34ch; }
.ftr h3 { margin: 0 0 14px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ftr a { color: #a8afc8; }
.ftr a:hover { color: #fff; text-decoration: none; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); color: #7f86a1; font-size: 13px; }
.ftr__bottom b { color: #fff; font-weight: 650; }

/* ---------- появление блоков ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero > .wrap, .hero__aside, .prod__item, .why__item, .fact, .feature, .card, .plan, .faq details {
    animation: rise .55s cubic-bezier(.22, .7, .3, 1) both;
}
.prod__item:nth-child(2), .why__item:nth-child(2), .feature:nth-child(even), .plan:nth-child(2) { animation-delay: .07s; }
.prod__item:nth-child(3), .why__item:nth-child(3), .plan:nth-child(3) { animation-delay: .14s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1040px) {
    .hero--split .wrap { grid-template-columns: 1fr; gap: 34px; }
    .hero h1 { max-width: none; }
}
@media (max-width: 960px) {
    .prod, .why, .plans, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ftr__grid { grid-template-columns: 1fr 1fr; }
    .sec { padding: 60px 0; }
}
@media (max-width: 860px) {
    .hdr { position: sticky; }
    .menu { border-radius: 0 0 18px 18px; border: 1px solid var(--line); border-top: 0; }
    .menu .menu__link::after { display: none; }
    .menu .menu__link { padding: 12px 0; border-bottom: 1px dashed var(--line); }
    .menu li:last-child .menu__link { border-bottom: 0; }
    .logo__sub { display: none; }
    /* На телефоне 227px знака и кнопка меню отнимали у шапки пол-экрана:
       ниже десктопного размера примерно на треть, а не те же 91px. */
    .logo img { height: 60px; }
    .hdr__in { min-height: 84px; }
    /* Контакты в одну колонку: две колонки на телефоне оставляли форме 187px
       при экране 390px — поле уже подписи, вводить некуда. */
    .contacts { grid-template-columns: 1fr; }
    .cta { padding: 36px 24px; border-radius: 22px; }
    .page__head { padding: 28px 0 18px; }
}
@media (max-width: 620px) {
    .prod, .why, .plans, .facts { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 46px; }
    .hero__stats { grid-template-columns: 1fr; gap: 12px; padding-top: 18px; }
    .hero__stats li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
    .hero__aside { padding: 18px; border-radius: 20px; }
    .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
    .steps li::before { font-size: 26px; }
    .ftr__grid { grid-template-columns: 1fr; gap: 26px; }
    .ftr { padding-top: 42px; }
    .ftr::before { font-size: 110px; }
    .compare { font-size: 14px; }
    /* Форма в одну колонку: в две на узком экране остаются поля по 130px,
       где не видно ни подписи, ни введённого текста. */
    .form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ПЕРВАЯ ЧАСТЬ: страница «Экосистема» — общий ритм и схема контура
   ========================================================================== */
/* ---------- общий ритм страницы «Экосистема» ---------- */
.ecsec { position: relative; margin: 46px 0 0; }
.ecsec > h2 { margin: 0 0 10px; font-size: clamp(22px, 2.7vw, 31px); line-height: 1.14; }
.ecsec > h3 { margin: 26px 0 10px; font-size: 17px; }
.ecsec > p { margin: 0 0 14px; max-width: 74ch; line-height: 1.62; }
.ecsec .note { margin-top: 16px; }

/* ---------- схема: три системы вокруг общего ядра ---------- */
.eco { position: relative; margin: 26px 0 4px; }
.eco__stage {
    position: relative; isolation: isolate; display: grid; gap: 20px;
    padding: 26px 24px 22px; border-radius: 28px;
    border: 1px solid rgba(124, 58, 237, .16);
    background: radial-gradient(130% 96% at 50% -18%, #fff 0%, #fdfbff 42%, #f5f3ff 100%);
    box-shadow: 0 40px 90px -60px rgba(30, 16, 60, .55), inset 0 1px 0 #fff;
    overflow: hidden;
}
/* Цветные пятна по краям сцены: глубина без картинок. */
.eco__stage::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(46% 44% at 50% 114%, rgba(124, 58, 237, .20), transparent 70%),
        radial-gradient(38% 34% at 0% -8%, rgba(192, 38, 211, .13), transparent 70%),
        radial-gradient(38% 34% at 100% -8%, rgba(14, 165, 233, .13), transparent 70%);
}
/* Точечная сетка гасится к краям — тот же мотив, что на главной. */
.eco__stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
    background-image: var(--dot); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(72% 68% at 50% 42%, #000 18%, transparent 78%);
    mask-image: radial-gradient(72% 68% at 50% 42%, #000 18%, transparent 78%);
}
.eco__wires { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
/* Фоновая линия связи. Цвет — свой у каждой системы, сквозь него медленно
   едет точка данных. Линия сплошная: пунктир читался как «связи нет», а нам
   нужно ровно обратное — связь есть, но идёт она через ядро. */
.eco__wire {
    fill: none; stroke-width: 2; stroke-linecap: round;
    stroke: rgba(124, 58, 237, .42);
    transition: stroke .45s ease, stroke-width .45s ease;
}
.eco__wire[data-sys="cms"] { stroke: rgba(192, 38, 211, .5); }
.eco__wire[data-sys="crm"] { stroke: rgba(14, 165, 233, .5); }
.eco__wire[data-sys="erp"] { stroke: rgba(124, 58, 237, .5); }
.eco__wire.is-on { stroke-width: 3.2; }
.eco__wire[data-sys="cms"].is-on { stroke: rgba(192, 38, 211, .95); }
.eco__wire[data-sys="crm"].is-on { stroke: rgba(14, 165, 233, .95); }
.eco__wire[data-sys="erp"].is-on { stroke: rgba(124, 58, 237, .95); }
.eco__dot { filter: drop-shadow(0 0 7px currentColor); }
/* Порт на границе ядра: место, куда входит линия связи. */
.eco__port { filter: drop-shadow(0 0 6px currentColor); }

/* Зазор между карточками — не только воздух: по нему проходит линия связи.
   При 14px она превращалась в точку, 40px даёт видимый отрезок между CMS и CRM. */
.eco__nodes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.eco__node {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    padding: 18px 18px 15px; border-radius: 20px; background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 46px -38px rgba(18, 20, 42, .8);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
/* Цветной «нимб» системы: загорается, когда через систему проходит событие. */
.eco__node::before {
    content: ""; position: absolute; inset: -1px; border-radius: 20px; pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(var(--c-rgb), .14), transparent 58%);
    opacity: 0; transition: opacity .45s ease;
}
.eco__node::after {
    content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, rgba(var(--c-rgb), 0), rgb(var(--c-rgb)) 50%, rgba(var(--c-rgb), 0));
    opacity: .8;
}
.eco__node[data-sys="cms"] { --c-rgb: 192, 38, 211; }
.eco__node[data-sys="crm"] { --c-rgb: 14, 165, 233; }
.eco__node[data-sys="erp"] { --c-rgb: 124, 58, 237; }
.eco__node > * { position: relative; z-index: 1; }
.eco__node.is-src, .eco__node.is-dst { transform: translateY(-4px); border-color: rgba(var(--c-rgb), .4); box-shadow: 0 26px 56px -34px rgba(var(--c-rgb), .9); }
.eco__node.is-src::before, .eco__node.is-dst::before { opacity: 1; }
.eco__node.is-on { transform: translateY(-4px); border-color: rgba(var(--c-rgb), .34); box-shadow: 0 24px 52px -36px rgba(18, 20, 42, .9); }
/* Наведение читается как «эта система»: карточка приподнимается и подсвечивается
   своим цветом. Это подсказка, а не состояние — событие важнее и перекрывает её. */
.eco__node:hover { transform: translateY(-4px); border-color: rgba(var(--c-rgb), .38); box-shadow: 0 26px 54px -34px rgba(var(--c-rgb), .75); }
.eco__node:hover::before { opacity: 1; }
.eco__node.is-dst { animation: ecoDst .8s ease-out 1; }
@keyframes ecoDst {
    0% { box-shadow: 0 0 0 0 rgba(var(--c-rgb), .45); }
    100% { box-shadow: 0 0 0 14px rgba(var(--c-rgb), 0); }
}
.eco__node-top { display: flex; align-items: center; gap: 11px; }
.eco__ic {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
    color: #fff; background: linear-gradient(150deg, rgb(var(--c-rgb)), rgba(var(--c-rgb), .72));
    box-shadow: 0 10px 22px -10px rgba(var(--c-rgb), .85);
}
.eco__ic svg { width: 21px; height: 21px; display: block; }
.eco__name { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.eco__role { margin: 0; font-size: 13px; color: var(--muted); }
.eco__io { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.eco__io li { position: relative; padding-left: 16px; color: #3d4460; line-height: 1.45; }
.eco__io li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c-rgb)); opacity: .8; }
.eco__io b { font-weight: 650; }
/* Строка «что система делает прямо сейчас»: её обновляет скрипт по событию. */
.eco__now {
    display: flex; align-items: center; gap: 7px; margin: 3px 0 0; min-height: 17px;
    font-size: 12px; color: #8a91a6; transition: color .3s ease;
}
.eco__now i { width: 6px; height: 6px; border-radius: 50%; background: #cfd3e2; transition: background .3s ease, box-shadow .3s ease; }
.eco__now.is-live { color: rgb(var(--c-rgb)); font-weight: 650; }
.eco__now.is-live i { background: rgb(var(--c-rgb)); box-shadow: 0 0 0 4px rgba(var(--c-rgb), .16); }

.eco__core {
    position: relative; z-index: 2; justify-self: center; width: min(440px, 100%);
    margin-top: 32px; /* воздух под карточками: иначе линии связи схлопываются в точки */
    padding: 17px 22px 18px; border-radius: 20px; text-align: center; color: #fff;
    background: linear-gradient(150deg, var(--ink) 0%, #2a1650 58%, #3d1a5c 100%);
    box-shadow: 0 26px 60px -28px rgba(30, 16, 60, .6);
    transition: box-shadow .4s ease;
}
.eco__core::after {
    content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
    background: radial-gradient(60% 60% at 88% 0%, rgba(14, 165, 233, .34), transparent 70%),
                radial-gradient(56% 60% at 4% 100%, rgba(192, 38, 211, .34), transparent 70%);
}
.eco__core > * { position: relative; z-index: 1; }
.eco__core.is-hot { box-shadow: 0 26px 60px -20px rgba(30, 16, 60, .6), 0 0 0 1px rgba(192, 38, 211, .45), 0 0 54px rgba(192, 38, 211, .35); }
.eco__core-k { font: 700 11px/1 inherit; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.eco__core-t { margin: 7px 0 0; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.eco__core-p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .74); }
/* Подпись «что сейчас в ядре» — вместо выдуманных счётчиков событий. */
.eco__core-s {
    display: inline-flex; align-items: center; gap: 8px; margin: 11px 0 0; padding: 5px 12px;
    border-radius: 999px; font-size: 12px; color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    transition: background .35s ease, color .35s ease;
}
.eco__core-s i { width: 6px; height: 6px; border-radius: 50%; background: #d8b4fe; box-shadow: 0 0 0 4px rgba(216, 180, 254, .18); }
.eco__core-s.is-live { background: rgba(255, 255, 255, .16); color: #fff; }
/* Пульс ядра: три расходящихся контура. */
.eco__pulse {
    position: absolute; inset: 0; width: auto; height: auto; margin: 0;
    border-radius: 20px; border: 1px solid rgba(192, 38, 211, .45);
    pointer-events: none; animation: ecoPulse 4.4s ease-out infinite;
}
.eco__pulse:nth-child(2) { animation-delay: 1.45s; }
.eco__pulse:nth-child(3) { animation-delay: 2.9s; }
@keyframes ecoPulse {
    0% { transform: scale(1); opacity: .5; }
    70% { transform: scale(1.14); opacity: 0; }
    100% { transform: scale(1.14); opacity: 0; }
}

/* Пакет: точка с подписью, которая едет из карточки в ядро и дальше в приёмник. */
.eco__pkt { pointer-events: none; }
.eco__pkt-h { opacity: .2; }
.eco__pkt-c { fill: #fff; stroke-width: 2.6; }
.eco__pkt-t {
    font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .01em; fill: #2a1650;
    paint-order: stroke; stroke: #fff; stroke-width: 3.4; stroke-linejoin: round;
}

/* Лента этапов: текстовое объяснение того, что сейчас происходит на схеме. */
.eco__flow { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 2px 0 0; padding: 0; list-style: none; }
.eco__step {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    color: #4c5470; background: rgba(255, 255, 255, .88); border: 1px solid var(--line);
    transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s ease;
}
.eco__step i { width: 6px; height: 6px; border-radius: 50%; background: #c7cbe0; transition: background .3s ease, box-shadow .3s ease; }
.eco__step.is-on { color: #fff; border-color: transparent; background: linear-gradient(115deg, var(--accent), var(--accent-3)); transform: translateY(-1px); }
.eco__step.is-on i { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.eco__legend { position: relative; z-index: 2; margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
    .eco__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
    .eco__node[data-sys="erp"] { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .eco__stage { padding: 18px 14px 16px; border-radius: 22px; gap: 15px; }
    .eco__nodes { grid-template-columns: 1fr; gap: 34px; }
    .eco__node[data-sys="erp"] { grid-column: auto; }
    .eco__core { width: 100%; padding: 15px 16px 16px; margin-top: 30px; }
    .eco__flow { justify-content: flex-start; }
    .eco__step { font-size: 12px; padding: 6px 10px; }
    .eco__legend { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .eco__pulse { animation: none; opacity: 0; }
    .eco__node.is-dst { animation: none; }
    .eco__node, .eco__step { transition: none; }
}

/* ---------- цикл: кольцо, три луча и ядро в центре ---------- */
/* Форма повторяет знак: три луча из одного центра и кольцо между ними. Три
   сектора — три системы, центр — общее ядро (данные, события, доступ) вместе с
   ИИ AIROBATIC. Один оборот бегунка и есть «цикл не рвётся»: данные возвращаются
   в контент, и следующий круг начинается не с нуля.

   След бегунка СВЕТЛЫЙ: это «протёртая» дорожка — белая линия со свечением видна
   только там, где она прошла, и не спорит с цветом секторов. На каждом стыке по
   лучу бежит импульс: сначала к ядру (система отдала результат), потом обратно
   (ядро передало следующей) — поэтому центр участвует в движении.

   Геометрию считает скрипт: позиции подписей выводятся из углов секторов, и
   надписи стоят на равных расстояниях при любой ширине — вручную расставленные
   проценты как раз и давали «вразнобой». */
.cyc { margin: 18px 0 0; }
/* Якорь на заголовок блока не должен прятать верх колеса под липкую шапку.
   Правило висит на самом заголовке (у него id), а не на секции: браузер
   прокручивает именно к цели, и scroll-margin у родителя не учитывается. */
.ecsec [id] { scroll-margin-top: 128px; }
.cyc__stage { position: relative; width: min(720px, 100%); margin: 6px auto 0; aspect-ratio: 1 / 1; }
.cyc__stage::before {
    content: ""; position: absolute; inset: 1.5%; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(124, 58, 237, .14);
    background: radial-gradient(48% 48% at 50% 50%, rgba(124, 58, 237, .06), transparent 72%);
}
.cyc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Трек тонкий намеренно: полоса толщиной 16 единиц превращала кольцо в цветной
   бублик, и бегунок терялся на её фоне. 6 единиц (≈11 px при ширине 720) —
   это линия, по которой действительно что-то бежит. */
.cyc__ring { fill: none; stroke: rgba(124, 58, 237, .10); stroke-width: 6; }
.cyc__flash { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
.cyc__flash.is-done { animation: cycRing .9s ease-out 1; }
@keyframes cycRing {
    0% { opacity: .9; stroke-width: 2; }
    100% { opacity: 0; stroke-width: 9; }
}
/* Плотность секторов выше прежней: тонкую белую дорожку видно только на
   насыщенном цвете, на бледном она пропадала. */
.cyc__sector {
    fill: none; stroke-width: 6; opacity: .5;
    transition: opacity .5s ease, filter .5s ease;
}
.cyc__sector[data-sys="cms"] { stroke: var(--accent); }
.cyc__sector[data-sys="crm"] { stroke: var(--accent-2); }
.cyc__sector[data-sys="erp"] { stroke: var(--accent-3); }
.cyc__sector.is-on { opacity: 1; filter: drop-shadow(0 0 12px rgba(192, 38, 211, .45)); }
.cyc__sector[data-sys="crm"].is-on { filter: drop-shadow(0 0 12px rgba(14, 165, 233, .5)); }
.cyc__sector[data-sys="erp"].is-on { filter: drop-shadow(0 0 12px rgba(124, 58, 237, .5)); }
.cyc__spoke { stroke: rgba(93, 101, 128, .42); stroke-width: 1.8; transition: stroke .45s ease, stroke-width .45s ease; }
.cyc__spoke.is-on { stroke-width: 2.8; }
.cyc__spoke[data-sys="cms"].is-on { stroke: var(--accent); }
.cyc__spoke[data-sys="crm"].is-on { stroke: var(--accent-2); }
.cyc__spoke[data-sys="erp"].is-on { stroke: var(--accent-3); }
/* След бегунка — СВЕТЛЫЙ. Белая линия без ореола пропадала на светлом фоне,
   поэтому у неё двойное свечение: белое по краю и фиолетовое шире. На цветном
   секторе она читается как протёртая дорожка, на подложке — как светящаяся нить. */
.cyc__prog {
    fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-opacity: .97;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(124, 58, 237, .7));
}
/* Бегунок — белый шарик в обводке цвета системы: видно, какая система идёт сейчас. */
.cyc__head { fill: #fff; stroke-width: 2.6; filter: drop-shadow(0 0 9px rgba(255, 255, 255, .95)); }
.cyc__pulse { opacity: 0; pointer-events: none; }
.cyc__pulse[data-sys="cms"] { fill: var(--accent); }
.cyc__pulse[data-sys="crm"] { fill: var(--accent-2); }
.cyc__pulse[data-sys="erp"] { fill: var(--accent-3); }

/* Центр — НЕ агент, а ядро системы, внутри которого работает ИИ: данные, события
   и доступ живут в ядре, агент их сводит и видит разрыв. Тексты — обычный HTML,
   а не SVG: так они читаются шрифтом страницы и не мылятся при масштабировании. */
.cyc__core {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 35%; aspect-ratio: 1 / 1; border-radius: 50%; z-index: 2;
    display: grid; place-content: center; justify-items: center; gap: 3px; padding: 10px;
    text-align: center; color: #fff;
    background: radial-gradient(120% 120% at 30% 8%, #3b1d6b 0%, #1a1030 58%, #120b24 100%);
    box-shadow: 0 30px 70px -26px rgba(30, 16, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: box-shadow .45s ease;
}
.cyc__core::after {
    content: ""; position: absolute; inset: -10px; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(192, 38, 211, .32);
    transition: border-color .45s ease, box-shadow .45s ease;
}
/* Мягкая вспышка на каждом стыке: результат системы принят ядром. */
.cyc__core.is-tick::after { border-color: rgba(216, 180, 254, .75); box-shadow: 0 0 22px rgba(192, 38, 211, .35); }
/* Сильная вспышка — круг замкнулся, данные вернулись в начало. */
.cyc__core.is-live::after { animation: cycHalo 1.1s ease-out 1; }
@keyframes cycHalo {
    0% { transform: scale(.98); opacity: .8; }
    100% { transform: scale(1.24); opacity: 0; }
}
.cyc__mark { width: 26px; height: 26px; color: #e9d5ff; opacity: .95; }
.cyc__mark svg { width: 100%; height: 100%; display: block; }
.cyc__core b { font-size: 14.5px; letter-spacing: .01em; }
.cyc__core-sub { font-size: 10.5px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
.cyc__core-sub em { font-style: normal; font-weight: 700; letter-spacing: .06em; color: #d8b4fe; }

/* Подписи систем. Позицию считает скрипт от центра сектора и одного радиуса,
   поэтому надписи стоят ровно и на равных расстояниях. Проценты ниже — фолбэк
   для случая без JS: подписи всё равно попадают примерно на свои места.
   Ширина у всех трёх одна и высота выровнена — иначе короткое «приводит» и
   длинное «превращает в выручку» делали ряд разнородным. */
.cyc__labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 1; }
.cyc__labels li {
    position: absolute; transform: translate(-50%, -50%);
    width: clamp(72px, 15%, 104px); min-height: 44px;
    display: grid; place-content: center; gap: 1px;
    text-align: center; padding: 5px 6px 6px; border-radius: 12px;
    background: rgba(255, 255, 255, .92); border: 1px solid rgba(var(--c-rgb), .22);
    box-shadow: 0 14px 30px -24px rgba(18, 20, 42, .8);
    transition: border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.cyc__labels li b { display: block; font-size: 13px; font-weight: 750; letter-spacing: .01em; color: rgb(var(--c-rgb)); }
.cyc__labels li span { display: block; font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.cyc__labels li[data-sys="cms"] { --c-rgb: 192, 38, 211; left: 75%; top: 36%; }
.cyc__labels li[data-sys="crm"] { --c-rgb: 14, 165, 233; left: 50%; top: 79%; }
.cyc__labels li[data-sys="erp"] { --c-rgb: 124, 58, 237; left: 25%; top: 36%; }
.cyc__labels li.is-on { border-color: rgba(var(--c-rgb), .55); box-shadow: 0 18px 34px -22px rgba(var(--c-rgb), .9); transform: translate(-50%, -50%) scale(1.05); }

/* Четыре шага цикла: подсвечиваются синхронно с сектором, к которому относятся. */
.cyc__steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: cys; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cyc__steps li {
    position: relative; padding: 14px 14px 14px 44px; border-radius: 16px; font-size: 13px;
    background: #fff; border: 1px solid var(--line); color: #3d4460;
    transition: border-color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.cyc__steps li b { display: block; margin-bottom: 3px; font-size: 14px; color: var(--ink); }
.cyc__steps li span { display: block; color: var(--muted); line-height: 1.45; }
.cyc__steps li::before {
    counter-increment: cys; content: counter(cys); position: absolute; left: 14px; top: 14px;
    width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
    font: 700 11px/1 inherit; color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-3));
}
.cyc__steps li.is-on { border-color: rgba(var(--c-rgb), .45); box-shadow: 0 22px 44px -34px rgba(var(--c-rgb), .95); transform: translateY(-2px); }
.cyc__steps li[data-sys="cms"] { --c-rgb: 192, 38, 211; }
.cyc__steps li[data-sys="crm"] { --c-rgb: 14, 165, 233; }
.cyc__steps li[data-sys="erp"] { --c-rgb: 124, 58, 237; }
.cyc__steps li[data-sys="core"] { --c-rgb: 124, 58, 237; }
.cyc__steps li[data-sys="core"]::before { background: linear-gradient(150deg, #3b1d6b, #120b24); }
@media (max-width: 860px) {
    .cyc__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .cyc__steps { grid-template-columns: 1fr; }
    .cyc__labels li { width: clamp(62px, 17%, 86px); min-height: 38px; padding: 4px 4px 5px; border-radius: 10px; }
    .cyc__labels li b { font-size: 11.5px; }
    .cyc__labels li span { font-size: 9.5px; }
    .cyc__core { width: 42%; }
    .cyc__core b { font-size: 12px; }
    .cyc__core-sub { font-size: 9.5px; }
    .cyc__mark { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .cyc__core.is-live::after, .cyc__flash.is-done { animation: none; }
    .cyc__sector, .cyc__spoke, .cyc__labels li, .cyc__steps li,
    .cyc__core, .cyc__core::after { transition: none; }
}

/* ---------- паутина против ядра: два живых графа ---------- */
/* Слева шум: N систем, соединённых попарно, связи рвутся. Справа порядок: те же
   системы через одно ядро. Числа — не оценка, а формула: N×(N−1)/2 против N. */
.net { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 0; }
.net__card {
    position: relative; display: flex; flex-direction: column;
    padding: 18px 18px 16px; border-radius: 20px; border: 1px solid var(--line);
    background: #fff; overflow: hidden;
}
.net__card--bad { background: linear-gradient(170deg, #fff, #fcf7f8); }
.net__card--good { background: linear-gradient(170deg, #fff, #f7f4ff); border-color: rgba(124, 58, 237, .22); box-shadow: 0 30px 70px -56px rgba(124, 58, 237, .95); }
.net__card h3 { margin: 0 0 4px; font-size: 15.5px; }
.net__card > p { margin: 0; font-size: 12.5px; color: var(--muted); }
.net__fig { display: block; width: 100%; height: auto; margin: 8px 0 2px; }
.net__line { stroke: rgba(124, 58, 237, .4); stroke-width: 1.5; transition: stroke .4s ease, opacity .4s ease, stroke-width .4s ease; }
.net__card--bad .net__line { stroke: rgba(110, 103, 132, .48); }
.net__line.is-hot { stroke: rgba(124, 58, 237, .85); stroke-width: 2.2; }
.net__line.is-broken { stroke: #ef4444; stroke-width: 1.6; stroke-dasharray: 3 4; }
.net__card--bad .net__line.is-broken { stroke: #ef4444; }
.net__node { fill: #fff; stroke: rgba(124, 58, 237, .45); stroke-width: 1.6; }
.net__card--bad .net__node { stroke: rgba(120, 113, 140, .5); }
.net__node.is-on { fill: rgba(124, 58, 237, .1); }
.net__core { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 9px rgba(192, 38, 211, .5)); }
.net__pkt { fill: var(--accent-3); }
.net__card--bad .net__pkt { fill: #a08fae; }
.net__cross { stroke: #ef4444; stroke-width: 2; stroke-linecap: round; }
.net__foot { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 0; font-size: 12.5px; color: #4c5470; }
.net__count { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.net__card--bad .net__count { color: #8c5f63; }
.net__eq { color: var(--muted); }
.net__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.net__legend { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.net__legend b { color: var(--ink); }
@media (max-width: 860px) {
    .net { grid-template-columns: 1fr; }
}

/* ---------- «было / стало»: острова против контура ---------- */
.eco-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 0; align-items: stretch; }
.eco-ba__col { padding: 20px 22px 22px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.eco-ba__col--before { background: linear-gradient(160deg, #fff, #fbf7f7); }
.eco-ba__col--after { background: linear-gradient(160deg, #fff, #f7f6ff); border-color: rgba(124, 58, 237, .22); box-shadow: 0 22px 50px -40px rgba(124, 58, 237, .9); }
.eco-ba__tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eco-ba__col--before .eco-ba__tag { background: rgba(148, 163, 184, .18); color: #5a6478; }
.eco-ba__col--after .eco-ba__tag { background: rgba(124, 58, 237, .12); color: var(--accent-3); }
.eco-ba__col h3 { margin: 0 0 12px; font-size: 17px; }
.eco-ba__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; }
.eco-ba__box { padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: 12px; background: var(--soft); border: 1px solid var(--line); }
.eco-ba__col--after .eco-ba__box { background: #fff; border-color: rgba(124, 58, 237, .25); }
/* Ручной стык «мигает»: пунктир с провалом, будто связь то есть, то нет.
   В «стало» линия сплошная, по ней бежит блик — передача идёт сама. */
.eco-ba__link { position: relative; flex: 1; min-width: 26px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, #c9cfe0 0 4px, transparent 4px 8px); overflow: visible; }
.eco-ba__col--before .eco-ba__link { animation: baFlicker 3.4s ease-in-out infinite; }
@keyframes baFlicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 52% { opacity: .25; } 58% { opacity: 1; } 64% { opacity: .3; } 70% { opacity: 1; } }
.eco-ba__link::after { content: attr(data-label); position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .02em; color: #8a91a6; white-space: nowrap; }
.eco-ba__col--after .eco-ba__link { background: linear-gradient(90deg, var(--accent), var(--accent-2)); height: 3px; }
.eco-ba__col--after .eco-ba__link::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 5px; border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
    animation: baSweep 2.6s ease-in-out infinite;
}
@keyframes baSweep { 0% { transform: translateX(-120%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(320%); opacity: 0; } }
.eco-ba__col--after .eco-ba__link::after { color: var(--accent-3); }
.eco-ba__foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.eco-ba__warn { margin: 12px 0 0; font-size: 13px; color: #8a5a5a; }

/* ---------- дорожки: кто что делает на этапе ---------- */
.eco-swim { margin: 18px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eco-swim table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.eco-swim th, .eco-swim td { padding: 9px 8px; text-align: center; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.eco-swim thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7291; background: var(--soft); }
.eco-swim thead th:first-child { border-radius: 12px 0 0 0; }
.eco-swim thead th:last-child { border-radius: 0 12px 0 0; }
.eco-swim thead th:first-child, .eco-swim tbody th { text-align: left; padding-left: 12px; }
.eco-swim tbody th { font-weight: 700; white-space: nowrap; }
.eco-swim tr[data-sys="cms"] th { color: var(--accent-deep); }
.eco-swim tr[data-sys="crm"] th { color: #0369a1; }
.eco-swim tr[data-sys="erp"] th { color: #5b21b6; }
.eco-swim td span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d7dbe8; transition: background .3s ease, box-shadow .3s ease, transform .3s ease; }
.eco-swim td.is-on span { background: rgb(var(--c)); box-shadow: 0 0 0 4px rgba(var(--c-rgb), .14); transform: scale(1.12); }
.eco-swim tr[data-sys="cms"] { --c: 192, 38, 211; --c-rgb: 192, 38, 211; }
.eco-swim tr[data-sys="crm"] { --c: 14, 165, 233; --c-rgb: 14, 165, 233; }
.eco-swim tr[data-sys="erp"] { --c: 124, 58, 237; --c-rgb: 124, 58, 237; }
.eco-swim tbody tr:hover th, .eco-swim tbody tr:hover td { background: rgba(124, 58, 237, .04); }
.eco-swim caption { caption-side: bottom; padding-top: 10px; font-size: 12.5px; color: var(--muted); text-align: left; }

/* ---------- слои: три продукта на одном фундаменте ---------- */
.eco-stack { display: grid; gap: 8px; margin: 18px 0 0; }
.eco-stack__layer {
    display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center;
    padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.eco-stack__layer:hover { transform: translateX(3px); box-shadow: 0 18px 40px -34px rgba(18, 20, 42, .9); }
.eco-stack__layer b { font-size: 13.5px; letter-spacing: .02em; }
.eco-stack__layer span { font-size: 13px; color: var(--muted); }
.eco-stack__layer--exp { border-left: 3px solid var(--accent); }
.eco-stack__layer--cus { border-left: 3px solid var(--accent-2); }
.eco-stack__layer--ops { border-left: 3px solid var(--accent-3); }
.eco-stack__layer--base { color: #fff; border: 0; background: linear-gradient(140deg, var(--ink), #2a1650 60%, #3d1a5c); }
.eco-stack__layer--base b { color: #fff; }
.eco-stack__layer--base span { color: rgba(255, 255, 255, .76); }

/* ---------- экономика: честные числа и структура затрат ---------- */
.eco-econ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.eco-econ__card { padding: 18px 20px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.eco-econ__card h3 { margin: 0 0 4px; font-size: 15px; }
.eco-econ__card p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.eco-bars { display: grid; gap: 10px; }
.eco-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.eco-bar__t { color: #4c5470; }
.eco-bar__tr { height: 12px; border-radius: 6px; background: #f0f1f8; overflow: hidden; }
/* Полоса «вырастает» при появлении в зоне видимости: длину задаёт разметка,
   анимация только показывает её — числа остаются теми же, что в тексте.
   Класс is-armed ставит скрипт: без него (или без JS) полоса видна сразу,
   потому что скрывать содержание ради анимации нельзя. */
.eco-bar__fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transform-origin: left center; transition: transform .9s cubic-bezier(.22, .7, .3, 1); }
.eco-bars.is-armed:not(.is-live) .eco-bar__fill { transform: scaleX(0); }
.eco-bar__fill--flat { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.eco-bar:nth-child(2) .eco-bar__fill { transition-delay: .12s; }
.eco-bar:nth-child(3) .eco-bar__fill { transition-delay: .24s; }
.eco-bar__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.eco-econ__foot { margin: 12px 0 0; font-size: 12px; color: #8a91a6; }

/* ---------- формула и честное возражение ---------- */
.eco-formula { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.eco-formula__item { padding: 14px 14px 15px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.eco-formula__item:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -36px rgba(18, 20, 42, .95); }
.eco-formula__item b { display: block; font-size: 13px; letter-spacing: .02em; color: var(--accent-3); }
.eco-formula__item span { display: block; margin-top: 4px; font-size: 13px; color: #3d4460; }
.eco-formula__item--sum { background: linear-gradient(150deg, var(--ink), #2a1650 60%, #3d1a5c); border: 0; }
.eco-formula__item--sum b { color: #fff; }
.eco-formula__item--sum span { color: rgba(255, 255, 255, .8); }

@media (max-width: 860px) {
    .eco-ba, .eco-econ { grid-template-columns: 1fr; }
    .eco-formula { grid-template-columns: 1fr 1fr; }
    .eco-stack__layer { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 620px) {
    .ecsec { margin-top: 38px; }
    .eco-formula { grid-template-columns: 1fr; }
    .eco-ba__col, .eco-econ__card { padding: 16px 15px; }
    .eco-bar { grid-template-columns: 78px minmax(0, 1fr) 38px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .eco-ba__col--before .eco-ba__link, .eco-ba__col--after .eco-ba__link::before { animation: none; }
    .eco-bar__fill { transform: scaleX(1); transition: none; }
    .eco-stack__layer, .eco-formula__item, .eco-swim td span { transition: none; }
}
