/* Сайт воронки: палитра, стекло rgba(0,0,0,.5) с размытием 4px,
   рамка 1px #4d4d4d, без теней, системный шрифт. Все линии — одной толщины (1px). */
:root {
  --bg: #00102a;
  --fg: #e8f2ff;
  --muted: #9fb3cf;
  --glass: rgba(0, 0, 0, .5);
  --line: #4d4d4d;
  --line-w: 1px;
  --acc: #79bfff;
  --accbg: rgba(60, 120, 200, .2);
  --green: #16a34a;
  --yellow: #f59e0b;
  --red: #dc2626;
  --r: 14px;
  --pill: 500px;
  --gut: clamp(16px, 4vw, 40px);
  --font: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: transparent; color: var(--fg); font: 18px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: #00102a; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }

/* сцена: фиксированный фон на весь экран, страница прокручивается поверх */
#scene-box { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
#scene-box .vs-fg { will-change: transform, opacity; }
#dim { position: fixed; inset: 0; z-index: 1; background: #00081a; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.page { position: relative; z-index: 2; }

/* стекло */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: var(--line-w) solid var(--line); border-radius: var(--r); color: var(--fg); }
.no-blur .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 10, 30, .84); }

/* верхнее меню */
.bar { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: calc(100% - 24px); max-width: 1180px; display: flex; align-items: center; gap: 8px 16px; padding: 8px 12px 8px 18px; border-radius: var(--pill); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.brand svg { width: 24px; height: 24px; }
.anchors { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.anchors a { color: var(--muted); text-decoration: none; padding: 4px 13px; border-radius: var(--pill); border: var(--line-w) solid transparent; font-size: .95rem; transition: color .25s, border-color .25s, background .25s; }
.anchors a:hover { color: var(--fg); border-color: var(--line); }
.anchors a.on { color: var(--fg); border-color: var(--acc); background: var(--accbg); }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: var(--line-w) solid var(--line); background: transparent; color: var(--fg); cursor: pointer; position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 12px; width: 16px; height: 1px; background: currentColor; content: ""; }
.burger i { top: 20px; } .burger i::before { top: -5px; left: 0; } .burger i::after { top: 5px; left: 0; }

/* общие */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.screen { min-height: 100svh; display: flex; align-items: center; padding: 72px 0; }
.left { max-width: min(540px, 100%); }
.eyebrow { color: var(--acc); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.08; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border-radius: var(--pill); border: var(--line-w) solid var(--line); background: var(--glass); color: var(--fg); font: inherit; text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.btn:hover { border-color: var(--acc); transform: translateY(-1px); }
.btn.primary { background: rgba(30, 90, 170, .45); border-color: var(--acc); color: #fff; }
.btn.primary:hover { background: rgba(40, 110, 200, .6); }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; transform: none; border-color: var(--line); }
.sec { padding: 110px 0; }
.sec > .wrap > h2 { margin-bottom: 1.1em; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* значки светофора и сомнения */
.dot { display: inline-block; width: 1em; height: 1em; border-radius: 50%; border: var(--line-w) solid #fff8; flex: none; vertical-align: -.12em; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }
.q { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 50%; border: var(--line-w) solid var(--acc); color: var(--acc); font-weight: 700; font-size: .85em; line-height: 1; flex: none; vertical-align: -.15em; }
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.legend li { display: flex; align-items: center; gap: 14px; }
.legend .dot, .legend .q { font-size: 1.4rem; }

/* проблемы */
.cards3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { padding: 24px; transition: border-color .3s, transform .3s; }
.pcard:hover { border-color: var(--acc); transform: translateY(-3px); }
.pcard svg { width: 44px; height: 44px; margin-bottom: 18px; }
svg .l { fill: none; stroke: var(--acc); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pcard p { color: var(--muted); margin: 0; }

/* как работает: три стадии, сцена слева направо меняется */

/* демо */
.demo { padding: 24px; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { font-size: .8rem; padding: 4px 10px; border-radius: var(--pill); border: var(--line-w) solid var(--line); color: var(--muted); transition: all .3s; }
.chips li.on { color: var(--fg); border-color: var(--acc); background: var(--accbg); }
.chips li.done { color: var(--fg); }
.dstep { min-height: 340px; }
.dstep[hidden] { display: none; }
.dstep h3 { font-size: 1.5rem; margin-bottom: .3em; }
.honest { margin: 18px 0 0; font-size: .85rem; color: var(--muted); border-top: var(--line-w) solid var(--line); padding-top: 12px; }
.zone { border: var(--line-w) dashed var(--line); border-radius: var(--r); padding: 18px; min-height: 120px; transition: border-color .25s, background .25s; margin: 16px 0; }
.zone.over { border-color: var(--acc); background: var(--accbg); }
.zone .empty { color: var(--muted); text-align: center; padding: 22px 0; margin: 0; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tile { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 10px; border: var(--line-w) solid var(--line); background: rgba(255, 255, 255, .04); font-size: .95rem; cursor: grab; user-select: none; color: var(--fg); font-family: inherit; transition: border-color .25s, transform .25s; }
.tile:hover { border-color: var(--acc); }
.tile svg { width: 22px; height: 28px; }
.tile.used { opacity: .35; cursor: default; }
.tile.in { cursor: default; border-color: var(--acc); }
.srclabel { font-size: .85rem; color: var(--muted); margin: 14px 0 8px; }
.prog { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
.prog li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: var(--line-w) solid var(--line); border-radius: 10px; color: var(--muted); transition: all .3s; }
.prog li i { width: 16px; height: 16px; border-radius: 50%; border: var(--line-w) solid var(--line); flex: none; }
.prog li.act { color: var(--fg); border-color: var(--acc); }
.prog li.act i { border-color: var(--acc); border-top-color: transparent; animation: spin .9s linear infinite; }
.prog li.ok { color: var(--fg); }
.prog li.ok i { background: var(--green); border-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.verdict { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.verdict .dot { font-size: 2.4rem; }
.verdict b { display: block; font-size: 1.2rem; }
.verdict span { color: var(--muted); font-size: .95rem; }
.mtx { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; font-size: .85rem; }
.mtx th { font-weight: 400; color: var(--muted); }
.mtx th:first-child { width: 29%; }
.mtx td:first-child { text-align: left; color: var(--fg); }
.mtx td { text-align: center; height: 38px; border-radius: 8px; }
.mtx td.ok { background: rgba(22, 163, 74, .85); font-weight: 700; }
.mtx td.no { color: var(--muted); }
.mtx button { width: 100%; height: 100%; font: inherit; font-weight: 700; color: #fff; border-radius: 8px; border: var(--line-w) solid transparent; cursor: pointer; transition: transform .2s, border-color .2s; }
.mtx button.bad { background: rgba(220, 38, 38, .9); }
.mtx button.dbt { background: transparent; border-color: var(--acc); color: var(--acc); }
.mtx button:hover { transform: scale(1.06); border-color: #fff; }
.hint { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.detail { display: grid; grid-template-columns: minmax(170px, 270px) 1fr; gap: 20px; margin-top: 12px; }
.scanbox { position: relative; border-radius: 8px; overflow: hidden; background: #fbfbf8; aspect-ratio: 3 / 4; }
.scanbox img { width: 100%; height: 100%; object-fit: cover; }
.frame { position: absolute; border: 2px solid var(--red); border-radius: 4px; animation: pop .5s ease both; }
.frame.dbt { border-color: var(--acc); }
@keyframes pop { from { transform: scale(1.15); opacity: 0; } to { transform: none; opacity: 1; } }
.vals { display: grid; gap: 8px; align-content: start; }
.val { padding: 10px 14px; border: var(--line-w) solid var(--line); border-radius: 10px; }
.val small { display: block; color: var(--muted); }
.val.odd { border-color: var(--red); }
.val.dbt { border-color: var(--acc); }
.decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.decide .btn { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.decide .btn.sel { border-color: var(--acc); background: var(--accbg); }
.sum { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.sum li { display: flex; gap: 12px; align-items: center; }
.sum svg { width: 20px; height: 20px; flex: none; }
.sum svg .l { stroke: var(--green); }

/* способы */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tab { font: inherit; color: var(--fg); background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--pill); padding: 10px 24px; min-height: 48px; cursor: pointer; transition: border-color .25s, background .25s; }
.tab:hover { border-color: var(--acc); }
.tab[aria-selected="true"] { border-color: var(--acc); background: var(--accbg); }
.js .tp[hidden] { display: none; }
.tp { padding: 28px; }
.tp .for { font-size: 1.2rem; max-width: 60ch; }
.cardlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 24px 0; padding: 0; }
.cardlist li { border: var(--line-w) solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .3s, transform .3s; }
.cardlist li:hover { border-color: var(--acc); transform: translateY(-2px); }
.cardlist a { display: block; }
.cardlist img { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #f8fbff; }
.video { display: grid; place-items: center; gap: 8px; aspect-ratio: 16 / 9; max-width: 640px; border: var(--line-w) dashed var(--line); border-radius: 12px; color: var(--muted); padding: 16px; text-align: center; }
.video svg { width: 48px; height: 48px; }

/* масштаб */
.scale { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.scale ul.pts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.scale ul.pts li { padding-left: 22px; position: relative; color: var(--muted); }
.scale ul.pts li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--acc); }

/* для ИТ, материалы */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; }
.banner h2 { margin: 0 0 .2em; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.banner p { margin: 0; }
.mat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat .video { max-width: none; }
.contacts { padding: 28px; margin-top: 16px; }
.pad { padding: 28px; }
footer { padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; border-top: var(--line-w) solid var(--line); padding-top: 24px; }

/* страница для ИТ */
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; padding: 40px 0; border-top: var(--line-w) solid var(--line); }
.two > div { min-width: 0; }
.itpage h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.itpage h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
pre { margin: 0 0 14px; padding: 16px 18px; background: rgba(0, 0, 0, .55); border: var(--line-w) solid var(--line); border-radius: 12px; overflow-x: auto; font: .85rem/1.55 ui-monospace, Consolas, monospace; color: #cfe3ff; }
code { font: .92em ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t th, .t td { text-align: left; padding: 9px 12px; border-bottom: var(--line-w) solid var(--line); }
.t th { color: var(--muted); font-weight: 400; }
.tablewrap { overflow-x: auto; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .screen { min-height: 88svh; padding: 56px 0; }
  .sec { padding: 72px 0; }
  .burger { display: block; }
  .anchors { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; padding: 10px; margin: 0; border-radius: var(--r); background: rgba(0, 10, 30, .94); border: var(--line-w) solid var(--line); }
  .anchors.open { display: flex; }
  .anchors a { padding: 12px 16px; font-size: 1.05rem; }
  .bar { padding: 6px 8px 6px 16px; }
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .mat, .scale, .two, .cardlist { grid-template-columns: 1fr; }
  .scale { gap: 28px; }
  .detail { grid-template-columns: 1fr; }
  .scanbox { max-width: 220px; }
  .demo { padding: 18px; }
  .tp { padding: 20px; }
  .banner { padding: 24px; }
}
@media (max-width: 520px) {
  .cards3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .frame, .prog li.act i { animation: none; }
  .btn, .pcard, .cardlist li, .mtx button { transition: none; }
}
.itpage .two.glass { padding: 28px; margin-bottom: 16px; }
.video { background: rgba(0, 0, 0, .35); }

/* три стадии: рядом, компактно; активная подсвечена, сцена следует за ней */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stg { padding: 24px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; transition: border-color .4s, background .4s, transform .4s; cursor: default; }
.stg .n { color: var(--acc); font-size: .8rem; letter-spacing: .14em; margin-bottom: 8px; }
.stg h3 { margin-bottom: .3em; }
.stg p { color: var(--muted); margin: 0; }
.stg.on { border-color: var(--acc); background: rgba(10, 40, 90, .55); transform: translateY(-3px); }
.stg .legend { margin-top: 6px; gap: 10px; }

/* как читать результат */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid2 h3 { margin-bottom: .4em; }
.mtx td.bad { background: rgba(220, 38, 38, .9); font-weight: 700; }
.mtx td.dbt { border: var(--line-w) solid var(--acc); color: var(--acc); font-weight: 700; }
.demo2 { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.paper { background: #fbfbf8; border-radius: 8px; padding: 16px 14px 8px; }
.paper i { display: block; height: 6px; border-radius: 3px; background: #cbd5e1; margin: 0 0 12px; }
.paper .fr { display: inline-block; border: 2px solid var(--red); border-radius: 4px; color: #1b2433; font-weight: 700; padding: 3px 8px; margin: 0 0 12px -4px; font-size: .9rem; }
.vl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vl li { padding: 8px 12px; border: var(--line-w) solid var(--line); border-radius: 10px; }
.vl li:first-child { border-color: var(--red); }
.vl small { display: block; color: var(--muted); font-size: .8rem; }
.steps2 { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* масштаб */
.scale { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.scale > .pad { position: relative; z-index: 3; }
.scale ul.pts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.scale ul.pts li { padding-left: 22px; position: relative; color: var(--muted); }
.scale ul.pts li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--acc); }

/* сравнение */
.cmp { overflow: hidden; margin-top: 32px; }
.cmp-h, .cmp-r { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); align-items: stretch; }
.cmp-h span { padding: 16px 14px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: var(--line-w) solid var(--line); }
.cmp-h span.us { color: var(--acc); }
.cmp-r { border-bottom: var(--line-w) solid var(--line); }
.cmp-r:last-child { border-bottom: 0; }
.cmp-r > span { padding: 16px 14px; display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.cmp-r .cap { color: var(--fg); }
.cmp-r .c em { font-style: normal; color: var(--muted); }
.cmp-r .c b { font-weight: 700; flex: none; width: 1.2em; text-align: center; }
.cmp-r .c.y b { color: var(--green); }
.cmp-r .c.m b { color: var(--yellow); }
.cmp-r .c.n b { color: var(--muted); opacity: .7; }
.cmp-r .c.us { background: rgba(60, 120, 200, .12); }
.cmp-r .c.us em { color: var(--fg); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why article { padding: 24px; }
.why .no { display: block; color: var(--acc); font-size: .8rem; letter-spacing: .14em; margin-bottom: 14px; }
.why p { color: var(--muted); margin: 0; }
.qa { display: grid; gap: 12px; max-width: 820px; }
.qa details { padding: 0; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font-size: 1.1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--acc); font-size: 1.4rem; transition: transform .3s; }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.qa summary:hover { color: var(--acc); }

@media (max-width: 1060px) {
  .cmp-h span, .cmp-r > span { padding: 12px 10px; font-size: .85rem; }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .stages, .grid2 { grid-template-columns: 1fr; }
  .stg { padding: 20px; }
  .scale { grid-template-columns: 1fr; }
  .demo2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cmp-h { display: none; }
  .cmp-r { display: block; padding: 8px 0 12px; }
  .cmp-r > span { padding: 8px 18px; }
  .cmp-r .cap { font-size: 1.05rem; padding-top: 14px; }
  .cmp-r .c::before { content: attr(data-label); flex: none; width: 9.5em; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
  .cmp-r .c.us { margin: 0 8px; padding: 8px 10px; border-radius: 8px; }
}
@media (max-width: 600px) {
  .why { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
}
@media (prefers-reduced-motion: reduce) {
  .stg, .orbit .ind, .qa summary::after { transition: none; }
}
/* панели с текстом чуть плотнее, чтобы световые линии сцены не просвечивали под строками */
.stg, .scale > .pad, .grid2 > .pad, .cmp, .why article, .qa details { background: rgba(0, 8, 24, .74); }
.stg.on { background: rgba(6, 30, 70, .86); }

/* ---------- третья правка ---------- */
.lead, h1, h2, h3 { text-wrap: balance; }
.left .lead { max-width: 30ch; }
.anchors a { padding: 4px 11px; }
@media (max-width: 1240px) { .anchors a { padding: 4px 8px; font-size: .88rem; } .bar { gap: 8px 8px; } }

/* О нас */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.about .pad { background: rgba(0, 8, 24, .74); }
.tech ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tech li { display: grid; gap: 2px; padding: 18px 22px; background: rgba(0, 8, 24, .74); }
.tech li span { color: var(--muted); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.tech li b { font-size: 1.15rem; font-weight: 600; }
.tech li small { color: var(--muted); font-size: .9rem; }

/* демо */
.demo { padding: 24px; max-width: 820px; background: rgba(0, 8, 24, .78); }
.dview { min-height: 320px; }
.dview[hidden] { display: none; }
.dview h3 { font-size: 1.5rem; margin-bottom: .3em; }
.docs { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.doc { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: .85rem; color: var(--muted); }
.doc img { width: 100%; height: auto; aspect-ratio: 7 / 10; object-fit: cover; object-position: top; border-radius: 6px; border: var(--line-w) solid var(--line); background: #fbfbf8; }
.found { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 10px; }
.found li { display: flex; gap: 12px; align-items: center; }
.found .dot, .found .q { font-size: 1.15rem; }
.tscroll { overflow-x: auto; margin: 12px 0; border-radius: 10px; }
.swipe-hint { display: none; margin: 0 0 4px; font-size: .85rem; color: var(--acc); }
.twrap { position: relative; }
@media (max-width: 560px) {
  .swipe-hint { display: block; }
  .tscroll { scrollbar-width: auto; scrollbar-color: var(--acc) rgba(255, 255, 255, .12); padding-bottom: 6px; }
  .tscroll::-webkit-scrollbar { height: 10px; }
  .tscroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, .12); border-radius: 5px; }
  .tscroll::-webkit-scrollbar-thumb { background: var(--acc); border-radius: 5px; }
  .twrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 16px; width: 36px; pointer-events: none; border-radius: 0 10px 10px 0; background: linear-gradient(to right, rgba(0, 16, 42, 0), rgba(0, 16, 42, .9)); opacity: 0; transition: opacity .2s; }
  .twrap.more::after { opacity: 1; }
}
.mtx.full { min-width: 640px; font-size: .78rem; border-spacing: 4px; }
.mtx.full th { font-size: .75rem; }
.mtx.full th:first-child { width: 24%; }
.mtx.full td { height: auto; min-height: 34px; padding: 6px 8px; text-align: left; background: rgba(255, 255, 255, .04); color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.mtx.full td:first-child { background: none; white-space: normal; color: var(--fg); }
.mtx.full td.ok { background: rgba(22, 163, 74, .22); font-weight: 400; }
.mtx.full td.no { color: var(--muted); text-align: center; background: none; }
.mtx.full td.cos { background: rgba(255, 255, 255, .06); border: var(--line-w) dashed var(--line); }
.mtx.full td.bad, .mtx.full td.minor, .mtx.full td.dbt { padding: 0; }
.mtx.full button.cell { width: 100%; text-align: left; padding: 6px 8px; font: inherit; color: #fff; border-radius: 8px; border: var(--line-w) solid transparent; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtx.full button.cell.bad { background: rgba(220, 38, 38, .85); }
.mtx.full button.cell.minor { background: rgba(245, 158, 11, .8); color: #1b1200; }
.mtx.full button.cell.dbt { background: transparent; border-color: var(--acc); color: var(--acc); }
.mtx.full button.cell:hover { border-color: #fff; }
.detail2 { margin: 16px 0; padding: 16px; border: var(--line-w) solid var(--line); border-radius: var(--r); }
.detail2[hidden] { display: none; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.dhead .btn { min-height: 38px; padding: 6px 16px; }
.dwrap { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; }
.frame.yel { border-color: var(--yellow); }
.letter { border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 12px 0 16px; }
.lh { display: grid; grid-template-columns: 4em 1fr; gap: 8px; padding: 4px 0; border-bottom: var(--line-w) solid var(--line); }
.lh small { color: var(--muted); }
.lb { padding-top: 12px; color: var(--fg); }
.lb p, .lb ol { margin: 0 0 .7em; }
.lb ol { padding-left: 1.3em; }

/* способы подключения: короткие анимации */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 24px; }
.fstep { border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 18px; background: rgba(255, 255, 255, .03); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fh { display: flex; align-items: center; gap: 10px; }
.fh h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.fn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: var(--line-w) solid var(--acc); color: var(--acc); font-size: .85rem; flex: none; }
.fstep p { margin: 0; color: var(--muted); font-size: .95rem; }
.farrow { align-self: center; width: 22px; height: 22px; border-top: var(--line-w) solid var(--acc); border-right: var(--line-w) solid var(--acc); transform: rotate(45deg); opacity: .7; }
.anim { width: 100%; max-width: 200px; height: auto; margin: 4px auto; }
.anim .l { fill: none; stroke: var(--acc); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.anim .dash { stroke-dasharray: 4 4; }
.anim .wv { stroke-opacity: .7; }
.a-ring { fill: none; stroke: var(--acc); stroke-opacity: .55; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 5 9; }
.a-d { stroke: var(--fg); stroke-opacity: .5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.a-d1 { fill: var(--green); } .a-d2 { fill: var(--red); } .a-d3 { fill: none; stroke: var(--acc); stroke-opacity: 1; }
.a-frame { fill: none; stroke: var(--red); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.a-q { fill: var(--acc); }
.a-ln { stroke-dasharray: 80; stroke-dashoffset: 0; }
.rv:not(.in) .anim *, .tp[hidden] .anim * { animation-play-state: paused !important; }
.k-drag .a-docs { animation: drag 5s ease-in-out infinite; }
@keyframes drag { 0%, 15% { transform: translateY(0); } 60%, 85% { transform: translateY(36px); } 100% { transform: translateY(0); } }
.k-funnel .a-ring { animation: ringmove 6s linear infinite; }
@keyframes ringmove { to { stroke-dashoffset: -56; } }
.k-funnel .wv { animation: wave 3s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.k-frame .a-frame { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: 1; } }
.k-env .a-clip { animation: clip 4s ease-in-out infinite; }
@keyframes clip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.k-env .a-go { animation: go 3s ease-in-out infinite; }
@keyframes go { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.k-letter .a-ln1 { animation: type 5s linear infinite; }
.k-letter .a-ln2 { animation: type 5s linear infinite 1s; }
.k-letter .a-ln3 { animation: type 5s linear infinite 2s; }
@keyframes type { 0% { stroke-dashoffset: 80; } 30%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 80; } }
.k-queue .a-q { animation: pulse2 2.4s ease-in-out infinite; }
.k-queue .a-q2 { animation-delay: 1.2s; }
@keyframes pulse2 { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* масштаб */
.scale { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.scale > .pad { background: rgba(0, 8, 24, .74); position: relative; z-index: 3; }
.orbit { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1 / 0.8; }
.orbit.simple { aspect-ratio: 1 / 1.15; }
.orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* сравнение: подписи и шапка читаются целиком, линии сцены не проходят под текстом */
#compare .head { background: rgba(0, 8, 24, .82); max-width: 920px; }
#compare .head h2 { margin-bottom: .3em; }
#compare .head .lead { margin: 0; max-width: 52ch; }
.cmp { background: rgba(0, 8, 24, .92); border: var(--line-w) solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 24px; }
.cmp-h { background: rgba(4, 18, 44, .98); }
.cmp-h span { white-space: normal; overflow-wrap: anywhere; hyphens: auto; font-size: .78rem; letter-spacing: .06em; }
.why article, .qa details { background: rgba(0, 8, 24, .84); }

@media (max-width: 1100px) {
  .docs { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .farrow { transform: rotate(135deg); justify-self: center; }
}
@media (max-width: 900px) {
  .about, .scale { grid-template-columns: 1fr; }
  .dwrap { grid-template-columns: 1fr; }
  .scanbox { max-width: 260px; }
}
@media (max-width: 559px) {
  .docs { grid-template-columns: repeat(2, 1fr); }
  .tabs { flex-wrap: nowrap; gap: 6px; }
  .tab { flex: 1 1 auto; min-width: 0; padding: 10px 6px; font-size: .94rem; white-space: nowrap; text-align: center; }
  .demo { padding: 18px; }
  .mtx.full { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim * { animation: none !important; }
}
.left { position: relative; }
.left::before { content: ""; position: absolute; inset: -48px -70px -48px -48px; background: radial-gradient(closest-side, rgba(0, 12, 34, .62), rgba(0, 12, 34, 0)); z-index: -1; pointer-events: none; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.tech > .eyebrow { display: inline-block; background: rgba(0, 8, 24, .74); padding: 4px 14px; border-radius: var(--pill); }
.screen { overflow-x: clip; }
@media (max-width: 900px) { .left::before { inset: -40px -14px -40px -14px; } }

/* демо: расхождения мягко мигают — только CSS, период 3 с, плавная кривая, без резких переходов; при «уменьшить движение» мигания нет, подсветка статична */
.mtx.full button.cell.bad { --bg0: rgba(220, 38, 38, .8); --bg1: rgba(236, 56, 56, 1); --glow: rgba(248, 70, 70, .8); }
.mtx.full button.cell.minor { --bg0: rgba(245, 158, 11, .78); --bg1: rgba(247, 168, 30, 1); --glow: rgba(255, 190, 50, .8); }
.mtx.full button.cell.dbt { --bg0: rgba(121, 191, 255, .05); --bg1: rgba(121, 191, 255, .24); --glow: rgba(121, 191, 255, .8); }
.mtx.full button.cell.bad, .mtx.full button.cell.minor, .mtx.full button.cell.dbt { background-color: var(--bg0); animation: cellpulse 3s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes cellpulse {
  0%, 100% { filter: brightness(1); background-color: var(--bg0); box-shadow: 0 0 0 0 transparent; }
  50% { filter: brightness(1.35); background-color: var(--bg1); box-shadow: 0 0 18px 2px var(--glow); }
}
.val.odd, .val.dbt { --vg: rgba(248, 70, 70, .85); animation: valpulse 3s cubic-bezier(.45, 0, .55, 1) infinite; }
.val.dbt { --vg: rgba(121, 191, 255, .8); }
.frame { --fg: rgba(248, 70, 70, .9); --ff: rgba(248, 70, 70, .3); animation: pop .5s ease both, framepulse 3s cubic-bezier(.45, 0, .55, 1) .5s infinite; }
.frame.dbt { --fg: rgba(121, 191, 255, .9); --ff: rgba(121, 191, 255, .24); }
.frame.yel { --fg: rgba(255, 190, 50, .9); --ff: rgba(255, 190, 50, .26); }
@keyframes valpulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 transparent; }
  50% { filter: brightness(1.35); box-shadow: 0 0 18px 2px var(--vg); }
}
@keyframes framepulse {
  0%, 100% { filter: brightness(1); background-color: transparent; box-shadow: 0 0 0 0 transparent; }
  50% { filter: brightness(1.35); background-color: var(--ff); box-shadow: 0 0 14px 2px var(--fg); }
}
@media (prefers-reduced-motion: reduce) {
  .mtx.full button.cell.bad, .mtx.full button.cell.minor, .mtx.full button.cell.dbt { animation: none; background-color: var(--bg1); filter: brightness(1.12); box-shadow: 0 0 12px 1px var(--glow); }
  .val.odd, .val.dbt { animation: none; filter: brightness(1.12); box-shadow: 0 0 12px 1px var(--vg); }
  .frame { animation: none; filter: brightness(1.12); background-color: var(--ff); box-shadow: 0 0 10px 1px var(--fg); }
}

/* карточка расхождения: строки документов нажимаются и переключают документ слева */
button.val { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; background: rgba(255, 255, 255, .03); min-height: 48px; transition: border-color .25s, background-color .25s; }
button.val:hover { border-color: var(--acc); }
button.val.cur { background: var(--accbg); outline: var(--line-w) solid var(--acc); outline-offset: 0; }
button.val.cur.odd { outline-color: var(--red); }
.val.off { color: var(--muted); opacity: .6; cursor: default; }

/* демо: миниатюра документа в карточке расхождения открывается на весь экран */
button.scanbox { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; text-align: left; }
button.scanbox:hover { outline: var(--line-w) solid var(--acc); outline-offset: 2px; }
.scancol { display: grid; gap: 8px; align-content: start; }
.scanhint { color: var(--muted); font-size: .82rem; }
.docview { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; padding: 72px 12px 16px; background: rgba(0, 8, 24, .92); cursor: zoom-out; animation: dvfade .18s ease both; }
.docview[hidden] { display: none; }
@keyframes dvfade { from { opacity: 0; } to { opacity: 1; } }
.docview-page { position: relative; aspect-ratio: var(--ar); width: min(calc(100vw - 24px), calc((100vh - 96px) * var(--ar))); background: #fbfbf8; border-radius: 6px; cursor: default; }
@supports (height: 100dvh) { .docview-page { width: min(calc(100vw - 24px), calc((100dvh - 96px) * var(--ar))); } }
.docview-page img { display: block; width: 100%; height: 100%; border-radius: 6px; }
.docview-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 1001; max-width: calc(100vw - 24px); min-height: 52px; padding: 12px 24px; font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #00102a; background: var(--acc); border: var(--line-w) solid #fff; border-radius: var(--pill); cursor: pointer; }
.docview-close:hover { background: #fff; }
html.docview-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .docview { animation: none; } }
.one { padding: 28px; margin-bottom: 16px; background: rgba(0, 8, 24, .74); }
.one h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.one p, .one li { max-width: 80ch; }
.one > :last-child { margin-bottom: 0; }
.invite { padding: clamp(24px, 5vw, 48px); margin: 40px 0 16px; background: linear-gradient(135deg, rgba(10, 40, 90, .85), rgba(0, 8, 24, .85)); border-color: var(--acc); }
.invite h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 22ch; }
.invite p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }

/* сравнение с 1С, затраты, видео */
.erp { padding: 8px 20px; margin-top: 16px; }
.erpt { width: 100%; border-collapse: collapse; font-size: 1rem; }
.erpt th, .erpt td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: var(--line-w) solid var(--line); }
.erpt tbody tr:last-child > * { border-bottom: 0; }
.erpt thead th { color: var(--acc); font-weight: 600; }
.erpt tbody th { color: var(--muted); font-weight: 500; width: 24%; }
.common { margin-top: 16px; }
.common h3 { margin: 0 0 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: var(--line-w) solid var(--acc); border-radius: var(--pill); background: var(--accbg); font-size: .95rem; }
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.costs h3 { margin: 0 0 4px; font-size: 1.5rem; }
.costs .note { margin: 0 0 12px; color: var(--muted); font-size: .85rem; }
.scale-bar { height: 10px; margin-top: 20px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.scale-bar i { display: block; height: 100%; min-width: 6px; border-radius: 5px; background: var(--acc); }
.vfig { margin: 0; max-width: 960px; }
.vfig video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.vfig figcaption { margin-top: 12px; font-size: .9rem; }
@media (max-width: 560px) {
  .erp { padding: 6px 14px; }
  .erpt thead { display: none; }
  .erpt, .erpt tbody, .erpt tr, .erpt th, .erpt td { display: block; width: 100%; }
  .erpt tbody th { width: 100%; padding: 14px 0 4px; border: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
  .erpt td { padding: 4px 0; border: 0; }
  .erpt td::before { content: attr(data-l) ": "; color: var(--muted); font-size: .85rem; }
  .erpt tbody tr { border-bottom: var(--line-w) solid var(--line); padding-bottom: 10px; }
  .erpt tbody tr:last-child { border-bottom: 0; }
  .costs { grid-template-columns: 1fr; }
}

/* контур документооборота, возможности, полоса про 1С */
#circuit, #checks { overflow-wrap: anywhere; }
#circuit *, #checks * { min-width: 0; }
.csub { margin: 34px 0 14px; font-size: 1.3rem; }
.ctools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 16px 0 14px; }
.clayers { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--pill); }
.clayers.fl { margin: 6px 0 0; }
.lbtn { font: inherit; font-size: .95rem; color: var(--fg); background: transparent; border: var(--line-w) solid transparent; border-radius: var(--pill); padding: 5px 14px; cursor: pointer; }
.lbtn.on { border-color: var(--acc); background: var(--accbg); }
.lbtn:focus-visible, .cs:focus-visible { outline: 2px solid var(--acc); }
.clegend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.lg { display: inline-block; width: 34px; height: 0; border-top: 2px solid #22d3ee; vertical-align: middle; margin-right: 6px; }
.lg.dashed { border-top-style: dashed; border-top-color: var(--acc); }
.ct { display: inline-block; font-size: .85rem; line-height: 1.5; padding: 0 10px; border-radius: var(--pill); border: var(--line-w) solid var(--line); white-space: nowrap; margin-left: 6px; }
.ct.ok { color: #7ff3c0; border-color: #2f8f6a; }
.ct.dev { color: var(--acc); border-color: #2f5f9f; }
.ct.req { color: var(--yellow); border-color: #8a5d0a; }
.mk.ok { color: #22d3ee; }
.mk.dev { color: var(--acc); }
.cdia-box { background: var(--glass); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 18px 14px; overflow: hidden; }
.cmap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.15fr); column-gap: 96px; row-gap: 34px; align-items: center; }
.clines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.clabels { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 2; pointer-events: none; }
.elbl { position: absolute; transform: translate(-50%, -50%); font-size: .8rem; line-height: 1.2; padding: 1px 6px; border-radius: 8px; background: rgba(0, 16, 42, .92); color: var(--fg); width: max-content; max-width: 96px; text-align: center; overflow-wrap: normal; }
.ccol { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 3; }
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; } .c4 { grid-column: 4; }
.cnode { background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 12px 14px; position: relative; z-index: 3; font-size: .95rem; }
.cnode h4 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.25; overflow-wrap: normal; }
.cnode p { margin: 0 0 6px; color: var(--muted); }
.cnode[data-st="dev"] { border-style: dashed; border-color: #2f5f9f; }
.cnode[data-st="ok"] { border-color: #2f8f6a; }
.cnode .ct { margin-left: 0; }
.cchips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cchips li { padding: 1px 10px; border: var(--line-w) dashed #2f5f9f; border-radius: 10px; }
.cchips .dots { border: 0; padding: 1px 2px; }
.cchips.ex { flex-direction: column; }
.cchips.ex li { display: flex; flex-direction: column; line-height: 1.3; }
.cchips.ex small { color: var(--muted); font-size: .8rem; }
.mico { width: 34px; height: 34px; color: var(--acc); display: block; margin-bottom: 6px; }
.ccore { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; z-index: 3; }
.crings { position: absolute; left: 50%; top: 50%; width: min(165%, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.rg { fill: none; stroke: #22d3ee; stroke-width: 1; stroke-dasharray: 2 10; transform-origin: 200px 200px; opacity: .55; }
.rg.r1 { animation: cspin 60s linear infinite; }
.rg.r2 { stroke: var(--acc); stroke-dasharray: 90 22; animation: cspin 42s linear infinite reverse; }
.rg.r3 { stroke: #b9a2ff; stroke-dasharray: 4 14; animation: cspin 28s linear infinite; }
@keyframes cspin { to { transform: rotate(360deg); } }
.ccard { position: relative; z-index: 1; width: 100%; padding: 16px 14px; background: rgba(0, 16, 42, .78); border: var(--line-w) solid #22d3ee; border-radius: var(--r); }
.ccard h3 { margin: 0 0 8px; font-size: 1.5rem; color: #22d3ee; text-align: center; }
.caps { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.caps li { margin: 4px 0; }
.cnodes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; position: relative; z-index: 3; }
.cloop { grid-column: 1 / -1; background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 12px 16px; position: relative; z-index: 3; font-size: .95rem; }
.cloop h4 { margin: 0 0 8px; font-size: 1.1rem; }
.lp { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.lp li { position: relative; padding: 6px 12px; border: var(--line-w) dashed #2f5f9f; border-radius: 10px; }
.lp li[data-st="ok"] { border: var(--line-w) solid #2f8f6a; }
.lp li + li::before { content: "→"; position: absolute; left: -26px; top: 6px; color: var(--acc); }
.lp small { display: block; color: var(--muted); }
.lret { margin: 8px 0 0; color: var(--muted); }
.cconn { display: none; }
.clines .ew .ln { fill: none; stroke: #22d3ee; stroke-width: 1.6; }
.clines .ew .ln.dev { stroke: var(--acc); stroke-dasharray: 6 6; stroke-width: 1.3; }
.ahp { fill: var(--acc); }
.clines .halo { fill: #22d3ee; opacity: .22; }
.clines .dot { fill: #bff6ff; }
.cmap[data-layer="ok"] [data-st="dev"] { opacity: .18; }
.cmap[data-layer="dev"] [data-st="ok"] { opacity: .18; }
.cmap[data-hl] [data-id]:not(.hl) { opacity: .22; }
.cmap [data-id].hl { opacity: 1; }
.cnode.hl, .ccard.hl, .cloop.hl { border-color: #22d3ee; }
.clines .ew.hl .ln { stroke-width: 2.6; }
.ctl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; position: relative; }
.ctl::before { content: ""; position: absolute; left: 7%; right: 7%; top: 30px; border-top: 2px solid var(--line); z-index: 0; }
.ctl li { position: relative; z-index: 1; }
.cs { font: inherit; font-size: .95rem; color: var(--fg); background: transparent; border: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 0 2px; }
.nd { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #00162f; border: 1.5px solid var(--line); color: var(--acc); }
.nd .cico { width: 28px; height: 28px; }
.nd b { position: absolute; right: -4px; top: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: #0a2a52; color: var(--fg); font-size: .85rem; line-height: 24px; text-align: center; }
.cs[aria-pressed="true"] .nd, .cs:hover .nd, .cs:focus-visible .nd { border-color: #22d3ee; color: #22d3ee; }
.ctt { line-height: 1.3; }
.ctags { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ctags .ct { margin-left: 0; white-space: normal; text-align: center; }
.cdetail { background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-top: 14px; min-height: 3.2em; }
.cjn { color: var(--muted); margin: 12px 0 0; font-size: .95rem; }
.cletter-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.cmailwin, .cjournal, .cfeat { background: var(--glass); border: var(--line-w) solid var(--line); border-radius: var(--r); }
.cmailwin { overflow: hidden; font-size: .95rem; }
.mbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; padding: 8px 14px; background: rgba(255, 255, 255, .06); border-bottom: var(--line-w) solid var(--line); }
.mdot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.mtitle { margin-left: 6px; font-weight: 600; }
.mhead { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; padding: 10px 16px; border-bottom: var(--line-w) solid var(--line); }
.mhead dt { color: var(--muted); } .mhead dd { margin: 0; }
.mbody { padding: 6px 16px 0; }
.mbody p { margin: 8px 0; }
.clink { color: var(--acc); text-decoration: underline dotted; }
.chip3 { display: inline-block; padding: 0 10px; margin: 2px 4px 2px 0; border: var(--line-w) solid var(--line); border-radius: 8px; }
.csign { color: var(--muted); border-top: var(--line-w) solid var(--line); padding-top: 8px; }
.cnote { color: var(--muted); margin: 0; padding: 8px 16px 12px; }
.cjournal { padding: 16px 20px; font-size: .95rem; }
.cjournal h3 { margin: 0; font-size: 1.1rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cpill { display: inline-block; font-size: .85rem; padding: 0 10px; border: var(--line-w) solid var(--line); border-radius: var(--pill); color: var(--muted); }
.cjournal dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.cjournal dt { color: var(--muted); } .cjournal dd { margin: 0; }
.cfeats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cfeats.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfeat[hidden], .cfeats[hidden], .csub[hidden] { display: none; }
.cfeat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-size: .95rem; }
.cfeat h4 { margin: 0 0 4px; font-size: 1.1rem; line-height: 1.25; }
.cfeat p { margin: 0 0 8px; color: var(--muted); }
.cfeat .ct { margin-left: 0; }
.cico { flex: 0 0 30px; width: 30px; height: 30px; color: #22d3ee; }
.onec-sec { padding: 40px 0; }
.onec { display: block; padding: 32px; border-color: var(--acc); background: linear-gradient(90deg, rgba(40, 110, 200, .28), rgba(0, 0, 0, .5)); }
.onec h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: .4em; }
.onec-top { display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.onec-top > div { flex: 1 1 420px; }
.onec .lead { margin: 0 0 12px; max-width: 60ch; }
.onec-st { margin: 0; color: var(--muted); }
.onec-st .ct { margin: 0 8px 0 0; }
@media (max-width: 1399px) { .cfeats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cfeats.f3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1199px) {
  .clines, .clabels { display: none; }
  .cmap { display: flex; flex-direction: column; gap: 10px; }
  .ccol { gap: 10px; }
  .cconn { display: block; margin: 0; text-align: center; color: var(--acc); }
  .ccore { min-height: 0; padding: 30px 0; }
  .crings { width: min(100%, 360px); }
  .cnodes { display: flex; flex-direction: column; }
  .lp { display: flex; flex-direction: column; gap: 22px; padding-left: 0; }
  .lp li + li::before { content: "↓"; left: 14px; top: -24px; }
  .ctl { grid-template-columns: 1fr; gap: 12px; }
  .ctl::before { left: 30px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 2px solid var(--line); }
  .cs { flex-direction: row; text-align: left; gap: 14px; }
  .ctt { flex: 1 1 40%; }
  .ctags { flex-direction: row; flex-wrap: wrap; flex: 0 1 auto; }
  .ctags .ct { white-space: nowrap; }
  .cletter-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cfeats, .cfeats.f3 { grid-template-columns: 1fr; }
  .onec { padding: 22px; }
  .cdia-box { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) { .rg { animation: none !important; } .clines .halo, .clines .dot { display: none; } }

/* меню в виде бургера уже с 1279 px: пунктов стало больше */
@media (max-width: 1279px) {
  .burger { display: block; }
  .anchors { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; flex-wrap: nowrap; padding: 10px; margin: 0; border-radius: var(--r); background: rgba(0, 10, 30, .94); border: var(--line-w) solid var(--line); }
  .anchors.open { display: flex; }
  .anchors a { padding: 12px 16px; font-size: 1.05rem; }
  .bar { padding: 6px 8px 6px 16px; }
}
@media (min-width: 1280px) { .anchors a { padding: 4px 8px; font-size: .88rem; } .bar { gap: 8px 8px; } }
@media (min-width: 1280px) { .bar { max-width: 1320px; } .anchors { flex-wrap: nowrap; white-space: nowrap; } }

/* три шага выгрузки в 1С; слой схемы действует и на карточки возможностей */
.onec-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.onec-steps li { position: relative; padding: 16px 18px; border: var(--line-w) solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .35); }
.onec-steps li + li::before { content: "→"; position: absolute; left: -30px; top: 50%; transform: translateY(-50%); color: var(--acc); font-size: 1.4rem; }
.onec-steps .n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; border: var(--line-w) solid var(--acc); color: var(--acc); font-size: .9rem; }
.onec-steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.onec-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.onec-cap { margin: 16px 0 0; color: var(--fg); }
#circuit[data-layer="ok"] .cfeat[data-st="dev"] { opacity: .18; }
#circuit[data-layer="dev"] .cfeat[data-st="ok"] { opacity: .18; }
@media (max-width: 860px) {
  .onec-steps { grid-template-columns: 1fr; gap: 34px; }
  .onec-steps li + li::before { content: "↓"; left: 50%; top: -30px; transform: translateX(-50%); }
}
