/* lx-ai-slider.css — только /products/ai/, первый экран. Пара: /lx-ai-slider.js.
   Слайдер окон «Алексия AI» вместо одиночного макета с наклоном и плашками.
   Окно стоит прямо на фоне страницы: без подложки, тени-свечения и наклона.
   Откат: /root/lx-backups/<ts>-ai-slider/REVERT.txt */

/* старый макет, плашки и пятно скрываем, только когда слайдер уже вставлен */
.lxp--ai #lxai-top .lxai-stage:has(> .lxs) > :not(.lxs) { display: none !important; }
html.lxs-wait .lxp--ai #lxai-top .lxai-stage > :not(.lxs) { visibility: hidden; }
.lxp--ai #lxai-top .lxai-stage:has(> .lxs) { perspective: none; transform: none; }

.lxp--ai .lxs {
  --s-ink: var(--lxk-1, #fff);
  --s-mute: var(--ra-t2, rgba(255, 255, 255, .64));
  --s-line: var(--ra-b, rgba(255, 255, 255, .1));
  --s-on: var(--ra-a, rgba(255, 255, 255, .1));
  position: relative; max-width: 1200px; margin: 0 auto; text-align: left;
}
.lxp--ai .lxs *, .lxp--ai .lxs *::before, .lxp--ai .lxs *::after { box-sizing: border-box; }
.lxp--ai .lxs-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* вкладки */
.lxp--ai .lxs-tabs {
  display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%;
  margin: 0 auto 24px; padding: 4px; border: 1px solid var(--lxai-line, rgba(255,255,255,.1)); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.lxp--ai .lxs-tabs::-webkit-scrollbar { display: none; }
.lxp--ai .lxs-tab {
  appearance: none; flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px; margin: 0;
  background: transparent; color: var(--lxai-muted, rgba(255,255,255,.64));
  font: 500 14px/36px "Golos Text", "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent;
}
.lxp--ai .lxs-tab:hover { color: var(--lxk-1, #fff); }
.lxp--ai .lxs-tab.is-on { background: var(--lxk-1, #fff); color: var(--lxk-2, #0b0d10); }
.lxp--ai .lxs-tab:focus-visible, .lxp--ai .lxs-arr:focus-visible { outline: 2px solid #ffb400; outline-offset: 2px; }

/* лента */
.lxp--ai .lxs-view { overflow: hidden; touch-action: pan-y; border-radius: 12px; }
.lxp--ai .lxs-track { display: flex; transition: transform .5s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.lxp--ai .lxs-slide { flex: 0 0 100%; min-width: 0; }
.lxp--ai .lxs-slide:not(.is-on) .lxs-win { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lxp--ai .lxs-track { transition: none; } }

/* окно приложения: без наклона, свечения и подложки */
.lxp--ai .lxs-win {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, .14); background: var(--ra-bg); box-shadow: none; transform: none;
  user-select: none; -webkit-user-select: none;
}
.lxp--ai .lxs-bar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 12px; flex: none;
  background: var(--lxk-74); border-bottom: 1px solid var(--s-line);
  font: 400 12px/1 "Segoe UI", system-ui, sans-serif; color: var(--ra-t2);
}
.dark .lxp--ai .lxs-win { border-color: #333; }
.lxp--ai .lxs .lxai-ra__pack { display: none !important; }
.lxp--ai .lxs-bar img { width: 16px; height: 16px; object-fit: contain; }
.lxp--ai .lxs-ctl { display: flex; height: 100%; margin-left: auto; }
.lxp--ai .lxs-ctl i { position: relative; width: 44px; height: 100%; }
.lxp--ai .lxs-ctl i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lxp--ai .lxs-ctl i:nth-child(1)::before { width: 10px; border-top: 1px solid currentColor; }
.lxp--ai .lxs-ctl i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid currentColor; }
.lxp--ai .lxs-ctl i:nth-child(3)::before { width: 11px; height: 11px;
  background: linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }
.lxp--ai .lxs .lxs-win.lxai-ra .lxai-ra__body.lxai-ra__body { height: 588px; }
.lxp--ai .lxs .lxai-ra__main { background: var(--ra-bg) !important; }
.lxp--ai .lxs .lxai-ra__orb { box-shadow: none !important; }
.lxp--ai .lxs .lxai-ra__rail > span.is-on { box-shadow: none; }
.lxp--ai .lxs .lxai-ra__txt code {
  font: 12.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 5px; border-radius: 5px; background: var(--ra-s);
}
.lxp--ai .lxs-src { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; font-size: 12px; color: var(--ra-t3); }
.lxp--ai .lxs-src svg { color: var(--ra-link); }
.lxp--ai .lxs-code {
  position: relative; margin: 4px 0 10px; padding: 34px 16px 14px; border: 1px solid var(--s-line); border-radius: 10px;
  background: var(--ra-s); white-space: pre; overflow: hidden;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ra-t);
}
.lxp--ai .lxs-code__h { position: absolute; left: 0; right: 0; top: 0; height: 26px; padding: 0 12px; border-bottom: 1px solid var(--s-line);
  font: 500 11px/26px "Golos Text", system-ui, sans-serif; color: var(--ra-t3); }
.lxp--ai .lxs-code code { font: inherit; background: none; padding: 0; }
.lxp--ai .lxs-code b { font-weight: 400; color: #3b82f6; }
.lxp--ai .lxs-code i { font-style: normal; color: #b45309; }
.dark .lxp--ai .lxs-code b { color: #60a5fa; }
.dark .lxp--ai .lxs-code i { color: #fbbf24; }

/* подпись и стрелки */
.lxp--ai .lxs-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; }
.lxp--ai .lxs-caps { display: grid; flex: 1; min-width: 0; }
.lxp--ai .lxs-cap { grid-area: 1 / 1; visibility: hidden; }
.lxp--ai .lxs-cap.is-on { visibility: visible; }
.lxp--ai .lxs-cap { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lxai-muted, rgba(255,255,255,.64)); }
.lxp--ai .lxs-nav { display: flex; align-items: center; gap: 12px; flex: none; }
.lxp--ai .lxs-num { min-width: 40px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--lxai-muted, rgba(255,255,255,.64)); }
.lxp--ai .lxs-arr {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0;
  border: 1px solid var(--lxai-line, rgba(255,255,255,.14)); border-radius: 50%; background: transparent; color: var(--lxk-1, #fff);
  cursor: pointer; transition: border-color .2s ease; -webkit-tap-highlight-color: transparent;
}
.lxp--ai .lxs-arr--next svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .lxp--ai .lxs-arr:hover { border-color: var(--lxk-1, #fff); } }

@media (max-width: 600px) {
  .lxp--ai .lxs-tabs { margin-bottom: 16px; }
  .lxp--ai .lxs-tab { height: 34px; padding: 0 14px; font-size: 13.5px; line-height: 34px; }
  .lxp--ai .lxs .lxs-win.lxai-ra .lxai-ra__body.lxai-ra__body { height: 540px; }
  .lxp--ai .lxs-bar { height: 30px; }
  .lxp--ai .lxs-ctl i { width: 32px; }
  .lxp--ai .lxs-code { font-size: 12px; padding: 32px 12px 12px; }
  .lxp--ai .lxs-foot { align-items: flex-start; gap: 16px; margin-top: 16px; }
  .lxp--ai .lxs-cap { font-size: 14px; }
  .lxp--ai .lxs-num { display: none; }
}

/* иллюстрация в слайде «Изображения» — простая векторная сцена, пример */
.lxp--ai .lxs-pic { position: relative; width: 300px; max-width: 100%; aspect-ratio: 4 / 3; margin: 4px 0 10px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #f6d9b0 0%, #f2b98a 58%, #e7a77b 100%); }
.lxp--ai .lxs-pic i { position: absolute; display: block; }
.lxp--ai .lxs-pic__sun { left: 58%; top: 16%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fbe7c6; }
.lxp--ai .lxs-pic__b { bottom: 14%; background: #8a4b3a; }
.lxp--ai .lxs-pic__b1 { left: 6%; width: 14%; height: 40%; background: #a65a43; }
.lxp--ai .lxs-pic__b2 { left: 20%; width: 12%; height: 56%; }
.lxp--ai .lxs-pic__b3 { left: 34%; width: 16%; height: 34%; background: #b86b4b; }
.lxp--ai .lxs-pic__b4 { left: 66%; width: 13%; height: 48%; background: #9c5340; }
.lxp--ai .lxs-pic__b5 { left: 80%; width: 15%; height: 30%; background: #b0603f; }
.lxp--ai .lxs-pic__t { bottom: 14%; width: 9%; aspect-ratio: 1 / 1.5; border-radius: 50% 50% 45% 45%; background: #d9822b; }
.lxp--ai .lxs-pic__t1 { left: 51%; }
.lxp--ai .lxs-pic__t2 { left: 58%; width: 7%; background: #c96f22; }
.lxp--ai .lxs-pic__g { left: 0; right: 0; bottom: 0; height: 14%; background: #6f3b2e; }
@media (max-width: 600px) { .lxp--ai .lxs-pic { width: 100%; } }
