/* Оболочка посадочной — язык НейроАгента: Inter 400/500/600, фон #F2F6FC, белые панели без теней, текст #010533, один синий #2C72E2. */
@font-face { font-family: 'Inter'; src: url('/assets/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root {
  --bg: #F2F6FC; --panel: #FFFFFF; --ink: #010533; --dim: #5B6172; --faint: #879CBB; --line: #ECEEF4; --line-2: #DDE3EE;
  --blue: #2C72E2; --blue-h: #1F5FC8; --blue-soft: #EAF1FD; --ok: #12A150; --hover: #F1F4FA;
  --r: 16px; --side: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue); text-decoration: none; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sp { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.lg { height: 50px; font-size: 16px; border-radius: 14px; width: 100%; }
.btn.pri { background: var(--blue); color: #fff; }
.btn.pri:hover { background: var(--blue-h); }
.btn.ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--hover); }
.btn .ic { width: 18px; height: 18px; }
.ib { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--dim); }
.ib:hover { background: var(--hover); color: var(--ink); }
.ib.dark { color: #fff; } .ib.dark:hover { background: rgba(255, 255, 255, .12); }

/* ——— каркас ——— */
.app { display: flex; height: 100dvh; }
.side { width: var(--side); flex: none; background: var(--panel); display: flex; flex-direction: column; padding: 14px 12px 14px; gap: 2px; overflow-y: auto; border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px 8px; }
.brand img { height: 26px; width: auto; display: block; }
.side-close { display: none; }
.nav-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
.nav-it:hover { background: var(--hover); }
.nav-it.on { background: var(--blue-soft); color: var(--blue); }
.nav-it .ic { width: 19px; height: 19px; color: var(--dim); }
.nav-it.on .ic { color: var(--blue); }
.nav-it .soon { margin-left: auto; color: var(--faint); }
.nav-it .soon .ic { width: 15px; height: 15px; color: var(--faint); }
.nav-it.new { font-weight: 600; margin-bottom: 6px; }
.side-lb { font-size: 12px; font-weight: 600; color: var(--faint); padding: 14px 10px 6px; }
.side-hist .nav-it { font-size: 14px; color: var(--dim); }
.side-hist .nav-it span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-sp { flex: 1; min-height: 16px; }
.promo { background: var(--bg); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.promo-t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.promo-t .ic { color: var(--blue); width: 18px; height: 18px; }
.promo p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.scrim { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.top { height: 60px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.top .menu, .top-brand { display: none; }
.top-model { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--dim); padding: 6px 12px; border-radius: 10px; }
.top-model .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ——— первый экран ——— */
.home { flex: 1; overflow-y: auto; padding: 0 24px 32px; }
.hero { max-width: 760px; margin: 0 auto; padding: clamp(24px, 9vh, 96px) 0 28px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); background: #E7F6EE; padding: 6px 12px; border-radius: 999px; }
.badge .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 0; }
.hero .sub { font-size: 16.5px; color: var(--dim); margin: 14px auto 0; max-width: 640px; }
.composer { margin: 28px auto 0; background: var(--panel); border-radius: 22px; padding: 14px 14px 10px 18px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -28px rgba(1, 5, 51, .35); text-align: left; transition: box-shadow .2s; }
.composer:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 18px 40px -28px rgba(1, 5, 51, .35); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; font: 400 16.5px/1.45 Inter, system-ui, sans-serif; color: var(--ink); background: transparent; max-height: 200px; min-height: 48px; }
.composer textarea::placeholder { color: var(--faint); }
.comp-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.comp-hint { font-size: 12.5px; color: var(--faint); }
.send { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; transition: opacity .15s, background .15s; }
.send:hover { background: var(--blue-h); }
.send:disabled { opacity: .35; cursor: default; }
.send .ic { stroke-width: 2.2; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }

.examples { max-width: 1180px; margin: 30px auto 0; }
.ex-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.ex-head span { font-size: 14px; color: var(--dim); }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
.ex { background: var(--panel); border-radius: 18px; padding: 8px 8px 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .2s; }
.ex:hover { transform: translateY(-2px); }
.ex .thumb { border-radius: 12px; overflow: hidden; position: relative; }
.ex .thumb .dk-frame { border-radius: 12px; }
.ex .thumb::after { content: ''; position: absolute; inset: 0; }
.ex .play { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink); }
.ex .play .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; margin-left: 2px; }
.ex-t { font-weight: 600; font-size: 14.5px; line-height: 1.3; padding: 0 6px; }
.ex-m { font-size: 12.5px; color: var(--faint); padding: 0 6px; margin-top: -6px; }

.whys { max-width: 1180px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why { background: var(--panel); border-radius: 18px; padding: 20px 22px; }
.why b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.why p { margin: 0; font-size: 14px; color: var(--dim); }
.foot { max-width: 1180px; margin: 36px auto 0; font-size: 12.5px; color: var(--faint); display: grid; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--dim); }

/* ——— работа агента ——— */
.work { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 12px; padding: 0 16px 16px; }
.chat { background: var(--panel); border-radius: 20px; display: flex; flex-direction: column; min-height: 0; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px 20px 8px; }
.msg-user { margin-left: auto; max-width: 88%; background: var(--bg); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 15px; white-space: pre-wrap; width: fit-content; }
.agent { margin-top: 18px; }
.ag-head { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.ag-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.ag-logo svg { width: 17px; height: 17px; fill: #fff; }
.ag-logo.spin svg { animation: ag-spin 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes ag-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.82); } 100% { transform: rotate(180deg) scale(1); } }
.ag-time { margin-left: auto; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ag-think { margin-top: 14px; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.ag-think:empty { display: none; }
.ol-t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: o; display: grid; gap: 5px; }
.ol li { counter-increment: o; display: flex; gap: 10px; color: var(--dim); line-height: 1.38; animation: rise .3s ease both; }
.ol li::before { content: counter(o); width: 20px; height: 20px; flex: none; border-radius: 6px; background: #fff; color: var(--faint); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.ol li.ok { color: var(--ink); }
.ol li.ok::before { content: '✓'; background: var(--blue-soft); color: var(--blue); }
.ol li.now::before { background: var(--blue); color: #fff; }
.ol li.later { opacity: .55; }
@keyframes blink { 50% { opacity: 0; } }
.ag-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.ag-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; animation: rise .35s ease both; }
.ag-steps li .st { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ag-steps li.run .st { border: 2px solid var(--line-2); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.ag-steps li.ok .st { background: var(--blue-soft); color: var(--blue); }
.ag-steps li.ok .st .ic { width: 13px; height: 13px; stroke-width: 3; }
.ag-steps li .ms { margin-left: auto; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ag-steps li.ok { color: var(--dim); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.ag-final { margin-top: 14px; font-size: 15px; line-height: 1.5; animation: rise .4s ease both; }
.ag-final p { margin: 0 0 12px; }
.ag-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 12px; cursor: pointer; }
.ag-card:hover { background: var(--hover); }
.ag-card .fi { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.ag-card b { display: block; font-weight: 600; font-size: 14.5px; }
.ag-card span { font-size: 12.5px; color: var(--faint); }
.ag-cta { background: var(--blue-soft); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.ag-cta b { font-size: 15px; }
.ag-cta p { margin: 0; font-size: 13.5px; color: var(--dim); }
.ag-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.composer.small { margin: 8px 12px 12px; border-radius: 16px; padding: 10px 10px 8px 14px; box-shadow: 0 0 0 1px var(--line-2); }
.composer.small textarea { min-height: 24px; font-size: 15px; }
.composer.small .send { width: 34px; height: 34px; border-radius: 10px; }

.pv { background: var(--panel); border-radius: 20px; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 16px 14px; }
.pv-bar { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.pv-file { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pv-file .ic { color: var(--blue); }
.pv-file b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36vw; }
.pv-count { font-size: 13px; color: var(--faint); white-space: nowrap; }
@media (max-width: 1250px) { .pv-bar .btn .hide-m { display: none; } .pv-bar .btn { padding: 0 10px; } }
.pv-stage { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; margin-top: 10px; }
.pv-deck { width: 100%; max-height: 100%; aspect-ratio: 16 / 9; max-width: calc((100dvh - 290px) * 16 / 9); }
.pv-deck .dk-frame { box-shadow: 0 0 0 1px var(--line); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line-2); display: grid; place-items: center; z-index: 4; opacity: 0; transition: opacity .2s; }
.pv-stage:hover .pv-nav { opacity: 1; }
.pv-nav.l { left: 8px; } .pv-nav.r { right: 8px; }
.pv-progress { height: 3px; border-radius: 2px; background: var(--line); margin-top: 12px; overflow: hidden; }
.pv-progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .6s ease; }
.strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.strip .th { width: 118px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); position: relative; animation: rise .35s ease both; }
.strip .th.cur { box-shadow: 0 0 0 2px var(--blue); }
.strip .th .dk-frame { border-radius: 8px; }
.strip .th.wait { aspect-ratio: 16 / 9; background: linear-gradient(100deg, var(--bg) 30%, #fff 50%, var(--bg) 70%) 0 0 / 300% 100%; animation: dk-shim 1.6s linear infinite; }
.strip .th.lockd { aspect-ratio: 16 / 9; background: var(--bg); display: grid; place-items: center; color: var(--faint); }
.strip .th i { position: absolute; left: 6px; top: 4px; z-index: 3; font-style: normal; font-size: 11px; font-weight: 600; color: var(--faint); }

/* ——— окна ——— */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(1, 5, 51, .38); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.mbox { background: var(--panel); border-radius: 24px; width: min(460px, 100%); padding: 28px 28px 24px; position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; animation: rise .3s ease; }
.mclose { position: absolute; right: 12px; top: 12px; }
.m-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.m-ic.ok { background: #E7F6EE; color: var(--ok); }
.m-ic .ic { width: 24px; height: 24px; }
.mbox h3 { font-size: 21px; line-height: 1.25; font-weight: 600; margin: 16px 0 0; letter-spacing: -.01em; }
.m-sub { font-size: 14.5px; color: var(--dim); margin: 8px 0 0; }
.m-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
.m-list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.42; color: var(--dim); }
.m-list li b { color: var(--ink); font-weight: 600; }
.m-list .ic { color: var(--blue); width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.4; }
.m-foot { text-align: center; font-size: 13.5px; color: var(--dim); margin-top: 14px; }
.m-link { display: flex; gap: 8px; margin-top: 18px; }
.m-link input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 12px; font: 500 14px Inter, sans-serif; color: var(--ink); background: var(--bg); }
.m-row { display: flex; gap: 8px; margin-top: 10px; }
.m-row .btn { flex: 1; }

.viewer { position: fixed; inset: 0; z-index: 40; background: #01051A; display: flex; flex-direction: column; animation: fade .2s ease; }
.vw-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; }
.vw-top b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 16px; }
.vw-deck { width: min(100%, calc((100dvh - 140px) * 16 / 9)); }
.vw-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; color: rgba(255, 255, 255, .7); font-size: 13.5px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; animation: rise .25s ease; }

/* ——— планшет и телефон ——— */
@media (max-width: 1100px) {
  .work { grid-template-columns: minmax(300px, 360px) 1fr; }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(1, 5, 51, .2); }
  .app.side-open .side { transform: none; }
  .app.side-open .scrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(1, 5, 51, .3); }
  .side-close { display: inline-grid; }
  .top { padding: 0 10px 0 6px; }
  .top .menu, .top-brand { display: inline-grid; }
  .top-brand img { height: 24px; width: auto; display: block; }
  .top-model { display: none; }
  .whys { grid-template-columns: 1fr; }
  .work { display: flex; flex-direction: column; overflow-y: auto; padding: 0 10px 12px; gap: 10px; }
  .work .pv { order: -1; flex: none; padding: 10px 10px 12px; }
  .work .chat { flex: none; }
  .chat-scroll { overflow: visible; padding: 16px 16px 4px; }
  .pv-deck { max-width: none; aspect-ratio: auto; }
  .pv-nav { opacity: 1; width: 34px; height: 34px; top: auto; bottom: 8px; transform: none; }
  .pv-file b { max-width: 40vw; }
  .vw-deck { width: 100%; }
  .vw-stage { place-items: start center; overflow-y: auto; padding-top: 4px; }
}
@media (max-width: 600px) {
  .hide-m { display: none; }
  .home { padding: 0 14px 24px; }
  .hero { padding-top: 18px; }
  .hero .sub { font-size: 15px; }
  .composer textarea { font-size: 16px; }
  .chip { font-size: 13.5px; padding: 7px 12px; }
  .ex-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ex { padding: 6px 6px 10px; border-radius: 14px; }
  .ex-t { font-size: 13px; }
  .mbox { padding: 24px 20px 20px; }
  .strip .th { width: 92px; }
}
