/* lx-ide-page.css — только /products/ide/ (RU). Пара: /lx-ide-page.js и
   SSR-вставка из lx_ide_page_filters.inc. Новый лендинг .lxide поверх
   старых секций .ide-page (они скрыты, но остаются в DOM для Vue).
   Без свечений и анимаций появления. Откат: /root/lx-backups/<ts>-ide-page/REVERT.txt */

html[lang^="ru"] .ide-page:has(> .lxide) > :not(.lxide),
html.lxide-hold .ide-page > :not(.lxide) { display: none !important; }

.lxide {
  --x-ink: var(--color-text, #1a1a1a);
  --x-mute: #5f6673;
  --x-line: rgba(26, 26, 26, .09);
  --x-line2: rgba(26, 26, 26, .16);
  --x-card: #ffffff;
  --x-stage: #e4e8ec;
  --x-art: #f3f5f7;
  --x-acc: #ffb400;
  --x-ill-surf: #ffffff;
  --x-ill-surf2: #f3f5f7;
  --x-ill-ink: 26, 26, 26;
  --x-ghost: rgba(26, 26, 26, .18);
  color: var(--x-ink);
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  padding-bottom: 40px;
}
.dark .lxide {
  --x-ink: #ffffff;
  --x-mute: rgba(226, 232, 242, .64);
  --x-line: rgba(255, 255, 255, .08);
  --x-line2: rgba(255, 255, 255, .14);
  --x-card: #0b0d10;
  --x-stage: #0b0d10;
  --x-art: #111419;
  --x-ill-surf: #161a20;
  --x-ill-surf2: #1c2027;
  --x-ill-ink: 255, 255, 255;
  --x-ghost: rgba(255, 255, 255, .22);
}
.lxide *, .lxide *::before, .lxide *::after { box-sizing: border-box; }
.lxide-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.lxide-hero { padding: 56px 0 0; }
.lxide-kicker { margin: 0 0 20px; font-size: 15px; font-weight: 500; color: var(--x-mute); letter-spacing: 0; }
.lxide-h1 { margin: 0; max-width: 920px; font-size: 72px; line-height: 1.04; font-weight: 400; letter-spacing: -.01em; color: var(--x-ink); }
.lxide-lead { margin: 24px 0 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--x-mute); }
.lxide-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lxide-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 "Golos Text", "Segoe UI", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lxide-btn--primary { background: var(--x-acc); color: #0b0d10; }
.lxide-btn--primary:hover { background: #f2aa00; color: #0b0d10; }
.lxide-btn--ghost { background: transparent; color: var(--x-ink); border-color: var(--x-ghost); }
.lxide-btn--ghost:hover { border-color: var(--x-ink); }
.lxide-btn:focus-visible { outline: 2px solid var(--x-acc); outline-offset: 3px; }

/* ---------- stage + editor window ---------- */
.lxide-stage { margin: 64px 0 0; padding: 0; border: 0; border-radius: 0; background: none; }
.lxide-w {
  --w-bg: #1f1f1f; --w-bar: #181818; --w-line: #2b2b2b; --w-tx: #cccccc; --w-mute: #8b8b8b; --w-dim: #6e7681; --w-sel: #2a2d2e;
  display: flex; flex-direction: column; height: 600px; border-radius: 12px; overflow: hidden;
  background: var(--w-bg); border: 1px solid #333; color: var(--w-tx);
  font: 400 13px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif; text-align: left;
  user-select: none;
}
.lxide-ico { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lxide-ico--s { width: 14px; height: 14px; }
.lxide-w__bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 0 0 12px; background: var(--w-bar); border-bottom: 1px solid var(--w-line); font-size: 12.5px; }
.lxide-w__logo { width: 16px; height: 16px; flex: none; display: block; }
.lxide-w__menu { display: flex; gap: 12px; color: var(--w-tx); white-space: nowrap; }
.lxide-w__search { margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; width: min(38%, 360px); height: 24px; border-radius: 6px; background: #252526; border: 1px solid #3a3a3a; color: var(--w-mute); font-size: 12px; }
.lxide-w__ctl { display: flex; height: 100%; }
.lxide-w__ctl i { width: 44px; height: 100%; position: relative; }
.lxide-w__ctl i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; transform: translate(-50%, -50%); }
.lxide-w__ctl i:nth-child(1)::before { height: 0; border-top: 1px solid var(--w-tx); }
.lxide-w__ctl i:nth-child(2)::before { height: 10px; border: 1px solid var(--w-tx); }
.lxide-w__ctl i:nth-child(3)::before { height: 12px; width: 12px; background: linear-gradient(45deg, transparent 46%, var(--w-tx) 46%, var(--w-tx) 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--w-tx) 46%, var(--w-tx) 54%, transparent 54%); }

.lxide-w__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 48px 228px minmax(0, 1fr) 352px; }
.lxide-w__acts { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; background: var(--w-bar); border-right: 1px solid var(--w-line); color: #858585; }
.lxide-w__act { display: flex; width: 48px; height: 44px; align-items: center; justify-content: center; position: relative; }
.lxide-w__act.is-on { color: #e7e7e7; }
.lxide-w__act.is-on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--x-acc, #ffb400); }
.lxide-w__side { background: var(--w-bar); border-right: 1px solid var(--w-line); padding: 10px 0; overflow: hidden; }
.lxide-w__h { margin: 0 0 6px; padding: 0 20px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--w-mute); }
.lxide-tree { list-style: none; margin: 0; padding: 0; }
.lxide-tree li { display: flex; align-items: center; gap: 6px; height: 24px; padding-left: calc(12px + var(--d) * 14px); white-space: nowrap; color: var(--w-tx); }
.lxide-tree .lxide-tree__d { color: #d4d4d4; }
.lxide-tree .lxide-tree__f { padding-left: calc(32px + (var(--d) - 1) * 14px); }
.lxide-tree li.is-on { background: #37373d; color: #fff; }
.lxide-fi { display: inline-flex; align-items: center; justify-content: center; font: 700 8.5px/1 "Segoe UI", system-ui, sans-serif; font-style: normal; color: #3b8eea; width: 16px; flex: none; }
.lxide-fi--js { color: #cbcb41; }
.lxide-w__main { display: flex; flex-direction: column; min-width: 0; background: var(--w-bg); }
.lxide-w__tabs { display: flex; height: 36px; background: var(--w-bar); border-bottom: 1px solid var(--w-line); }
.lxide-w__tabs span { display: flex; align-items: center; gap: 6px; padding: 0 16px; border-right: 1px solid var(--w-line); color: var(--w-mute); white-space: nowrap; }
.lxide-w__tabs span.is-on { background: var(--w-bg); color: #fff; box-shadow: inset 0 1px 0 var(--x-acc, #ffb400); margin-bottom: -1px; }
.lxide-w__crumbs { margin: 0; padding: 4px 16px; font-size: 12px; color: var(--w-mute); white-space: nowrap; }
.lxide-w__crumbs b { font-weight: 400; margin: 0 4px; }
.lxide-w__code { margin: 0; padding: 6px 0 0; font: 400 13px/22px Consolas, "JetBrains Mono", "SFMono-Regular", Menlo, monospace; color: #d4d4d4; overflow: hidden; white-space: pre; background: none; border: 0; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.lxide-w__code code { font: inherit; background: none; padding: 0; color: inherit; }
.lxide-ln { display: flex; }
.lxide-ln.is-cur { background: rgba(255, 255, 255, .04); }
.lxide-ln__n { flex: none; width: 52px; padding-right: 18px; text-align: right; color: var(--w-dim); }
.lxide-ln.is-cur .lxide-ln__n { color: #c6c6c6; }
.lxide-ln__c { flex: none; }
.t-k { color: #569cd6; } .t-f { color: #dcdcaa; } .t-t { color: #4ec9b0; } .t-s { color: #ce9178; } .t-n { color: #b5cea8; } .t-c { color: #6a9955; }

.lxide-w__chat { display: flex; flex-direction: column; min-width: 0; background: var(--w-bar); border-left: 1px solid var(--w-line); }
.lxide-w__chathead { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--w-line); font-size: 12.5px; }
.lxide-w__chathead .is-on { color: #fff; box-shadow: inset 0 -1px 0 var(--x-acc, #ffb400); height: 100%; display: flex; align-items: center; }
.lxide-w__chattools { display: flex; gap: 10px; }
.lxide-w__chattools i { width: 12px; height: 12px; border: 1.5px solid #858585; border-radius: 3px; }
.lxide-w__chattools i:nth-child(2) { border-radius: 50%; }
.lxide-w__msgs { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.lxide-msg { font-size: 13px; line-height: 1.55; }
.lxide-msg p { margin: 0; }
.lxide-msg code, .lxide-file { font-variant-ligatures: none; }
.lxide-msg code { font: 12px/1 Consolas, "JetBrains Mono", monospace; padding: 2px 5px; border-radius: 4px; background: #2b2d31; color: #e2e2e2; }
.lxide-msg--you { align-self: flex-end; max-width: 88%; padding: 9px 12px; border-radius: 10px; background: #2b2d31; color: #e6e6e6; }
.lxide-msg--ai { color: var(--w-tx); }
.lxide-msg__who { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 6px !important; }
.lxide-file { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border-radius: 8px; border: 1px solid #333; background: #1f1f1f; font: 12px/1 Consolas, "JetBrains Mono", monospace; }
.lxide-file span { flex: 1; color: #d4d4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxide-file b { font-weight: 400; color: #73c991; }
.lxide-w__comp { margin: 0 12px 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid #3a3a3a; background: #1f1f1f; }
.lxide-w__comp p { margin: 0 0 14px; font-size: 12.5px; color: var(--w-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lxide-w__comprow { display: flex; align-items: center; justify-content: space-between; }
.lxide-w__mode { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: #2b2d31; font-size: 12px; color: #d4d4d4; }
.lxide-w__send { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--x-acc, #ffb400); color: #0b0d10; }
.lxide-w__status { display: flex; gap: 16px; height: 24px; align-items: center; padding: 0 12px; background: var(--w-bar); border-top: 1px solid var(--w-line); font-size: 11.5px; color: var(--w-mute); white-space: nowrap; overflow: hidden; }
.lxide-w__sp { flex: 1; }

/* ---------- sections ---------- */
.lxide-sec { padding-top: 140px; }
.lxide-head { margin-bottom: 48px; }
.lxide-h2 { margin: 0; font-size: 54px; line-height: 1.1; font-weight: 400; letter-spacing: -.01em; color: var(--x-ink); }
.lxide-sub { margin: 16px 0 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--x-mute); }

.lxide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lxide-card { padding: 24px 24px 30px; border-radius: 24px; background: var(--x-card); border: 1px solid var(--x-line); }
.lxide-card__art { display: flex; align-items: center; justify-content: center; height: 168px; margin-bottom: 28px; border-radius: 16px; background: var(--x-art); }
.lxide-card h3 { margin: 0 4px; font-size: 21px; line-height: 1.3; font-weight: 500; color: var(--x-ink); }
.lxide-card p { margin: 10px 4px 0; font-size: 15.5px; line-height: 1.55; color: var(--x-mute); }

.lxide-ill { width: 100%; max-width: 280px; height: auto; display: block; }
.lxide-ill .i-box { fill: var(--x-ill-surf); stroke: rgba(var(--x-ill-ink), .14); stroke-width: 1; }
.lxide-ill .i-box2 { fill: var(--x-ill-surf2); stroke: rgba(var(--x-ill-ink), .12); stroke-width: 1; }
.lxide-ill .i-box--on { stroke: var(--x-acc); stroke-width: 1.25; }
.lxide-ill .i-ln { stroke: rgba(var(--x-ill-ink), .12); stroke-width: 1; }
.lxide-ill .i-ln2 { stroke: rgba(var(--x-ill-ink), .45); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.lxide-ill .i-f1 { fill: rgba(var(--x-ill-ink), .07); }
.lxide-ill .i-f2 { fill: rgba(var(--x-ill-ink), .32); }
.lxide-ill .i-f3 { fill: rgba(var(--x-ill-ink), .14); }
.lxide-ill .i-dot { fill: rgba(var(--x-ill-ink), .18); }
.lxide-ill .i-acc { fill: var(--x-acc); }
.lxide-ill .i-accl { stroke: var(--x-acc); stroke-width: 1.5; stroke-linecap: round; }
.lxide-ill .i-ok { stroke: var(--x-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.lxide-ill .i-tx { font: 500 11.5px "Golos Text", "Segoe UI", system-ui, sans-serif; fill: rgba(var(--x-ill-ink), .78); }
.lxide-ill .i-tx--acc { fill: #e09e00; font-weight: 700; }
.dark .lxide-ill .i-tx--acc { fill: var(--x-acc); }

.lxide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.lxide-step { padding-top: 28px; border-top: 1px solid var(--x-line2); }
.lxide-step__n { display: block; font-size: 14px; font-weight: 500; color: var(--x-mute); font-variant-numeric: tabular-nums; }
.lxide-step h3 { margin: 40px 0 0; font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--x-ink); }
.lxide-step p { margin: 12px 0 0; max-width: 360px; font-size: 16px; line-height: 1.6; color: var(--x-mute); }

.lxide-dl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; padding: 56px; border-radius: 28px; background: var(--x-card); border: 1px solid var(--x-line); }
.lxide-dl .lxide-btns { margin-top: 32px; }
.lxide-specs { margin: 0; align-self: center; }
.lxide-spec { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--x-line); }
.lxide-spec:first-child { border-top: 1px solid var(--x-line); }
.lxide-spec dt { font-size: 15px; color: var(--x-mute); }
.lxide-spec dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--x-ink); }

.lxide-faq { border-top: 1px solid var(--x-line2); }
.lxide-faq__item { border-bottom: 1px solid var(--x-line2); }
.lxide-faq__item summary { display: flex; align-items: baseline; gap: 24px; padding: 28px 0; list-style: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.lxide-faq__item summary::-webkit-details-marker { display: none; }
.lxide-faq__item summary:focus-visible .lxide-faq__q { text-decoration: underline; text-underline-offset: 4px; }
.lxide-faq__n { flex: none; width: 32px; font-size: 14px; color: var(--x-mute); font-variant-numeric: tabular-nums; }
.lxide-faq__q { flex: 1; font-size: 21px; line-height: 1.4; font-weight: 400; color: var(--x-ink); }
.lxide-faq__ic { flex: none; position: relative; width: 16px; height: 16px; align-self: center; }
.lxide-faq__ic::before, .lxide-faq__ic::after { content: ""; position: absolute; left: 0; top: 7.25px; width: 16px; height: 1.5px; background: var(--x-ink); transition: transform .2s ease; }
.lxide-faq__ic::after { transform: rotate(90deg); }
.lxide-faq__item[open] .lxide-faq__ic::after { transform: rotate(0deg); }
.lxide-faq__a { padding: 0 40px 32px 56px; }
.lxide-faq__a p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--x-mute); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .lxide-w__body { grid-template-columns: 48px 200px minmax(0, 1fr) 320px; }
  .lxide-w__menu span:nth-child(n+5) { display: none; }
}
@media (max-width: 1100px) {
  .lxide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lxide-dl { grid-template-columns: 1fr; gap: 40px; }
  .lxide-w__body { grid-template-columns: 48px minmax(0, 1fr) 320px; }
  .lxide-w__side { display: none; }
}
@media (max-width: 860px) {
  .lxide-h1 { font-size: 52px; }
  .lxide-h2 { font-size: 40px; }
  .lxide-w__menu { display: none; }
  .lxide-steps { grid-template-columns: 1fr; gap: 32px; }
  .lxide-step h3 { margin-top: 20px; }
}
@media (max-width: 640px) {
  .lxide-wrap { padding: 0 16px; }
  .lxide-hero { padding-top: 28px; }
  .lxide-kicker { margin-bottom: 14px; font-size: 14px; }
  .lxide-h1 { font-size: 40px; line-height: 1.08; }
  .lxide-lead { margin-top: 18px; font-size: 16px; line-height: 1.6; }
  .lxide-btns { flex-direction: column; gap: 10px; margin-top: 28px; }
  .lxide-btn { width: 100%; height: 52px; }
  .lxide-stage { margin-top: 40px; }
  .lxide-w { height: auto; border-radius: 10px; font-size: 12px; }
  .lxide-w__bar { height: 32px; gap: 10px; }
  .lxide-w__search { width: auto; flex: 1; margin: 0; }
  .lxide-w__ctl i { width: 30px; }
  .lxide-w__body { display: flex; flex-direction: column; }
  .lxide-w__acts { display: none; }
  .lxide-w__crumbs { display: none; }
  .lxide-w__tabs { height: 32px; }
  .lxide-w__tabs span { padding: 0 12px; }
  .lxide-w__code { padding: 8px 0 10px; font-size: 11px; line-height: 19px; }
  .lxide-ln:nth-child(n+6) { display: none; }
  .lxide-ln__n { width: 34px; padding-right: 12px; }
  .lxide-w__chat { border-left: 0; border-top: 1px solid var(--w-line); }
  .lxide-w__msgs { padding: 14px 12px; gap: 12px; }
  .lxide-msg { font-size: 12.5px; }
  .lxide-w__status span:nth-child(n+5) { display: none; }
  .lxide-sec { padding-top: 88px; }
  .lxide-head { margin-bottom: 28px; }
  .lxide-h2 { font-size: 32px; line-height: 1.15; }
  .lxide-sub { font-size: 16px; }
  .lxide-grid { grid-template-columns: 1fr; gap: 12px; }
  .lxide-card { padding: 16px 16px 24px; border-radius: 20px; }
  .lxide-card__art { height: 148px; margin-bottom: 20px; }
  .lxide-card h3 { font-size: 19px; }
  .lxide-card p { font-size: 15px; }
  .lxide-step h3 { font-size: 21px; }
  .lxide-step p { font-size: 15px; }
  .lxide-dl { padding: 28px 20px; border-radius: 22px; gap: 32px; }
  .lxide-spec { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .lxide-spec dt { font-size: 13px; }
  .lxide-faq__item summary { gap: 14px; padding: 22px 0; }
  .lxide-faq__n { width: 22px; font-size: 13px; }
  .lxide-faq__q { font-size: 17px; }
  .lxide-faq__a { padding: 0 0 24px 36px; }
  .lxide-faq__a p { font-size: 15px; }
}
