/* LaunchPad Portal — общее оформление (главная, интеграция, кабинет) */
:root {
  --bg: #0b0d12; --bg2: #10131a; --card: #151922; --line: #252b37; --line2: #2f3644;
  --text: #e9ecf2; --muted: #8e96a8; --dim: #646d80;
  --accent: #8b7cff; --accent-2: #14f195; --warn: #ffcc66; --err: #ff6b6b;
  --radius: 14px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: 26px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
code, pre, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .container { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 17px; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #0b0d12; font-size: 15px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--muted); font-size: 14px; }
.top nav a:hover, .top nav a.on { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .top nav { display: none; } }
@media (max-width: 520px) {
  .top .container { gap: 10px; }
  .top .btn.ghost.sm { display: none; }
  .logo { font-size: 15px; }
}
.hero2 > *, .layout > *, #intg > * { min-width: 0; }
.lang-switch { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); }
.lang-switch svg { margin-right: 4px; }
.lang-switch a { color: var(--muted); padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; font-size: 13px; }
.lang-switch a:hover { color: var(--text); text-decoration: none; border-color: var(--line2); }
.lang-switch a.on { color: var(--text); border-color: var(--line2); background: #171b24; }
.footer .container { align-items: center; }
pre.code { max-width: 100%; }

/* кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text); }
.btn.green { background: var(--accent-2); color: #06130d; }
.btn.danger { background: transparent; border: 1px solid #5a2626; color: var(--err); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field > small { display: block; color: var(--dim); font-size: 12px; margin-top: 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #0e1118; color: var(--text); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid3, .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }
.err { color: var(--err); font-size: 14px; margin: 8px 0; }
.ok { color: var(--accent-2); font-size: 14px; margin: 8px 0; }
.warn { color: var(--warn); }

/* карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card + .card { margin-top: 14px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #232937; color: var(--muted); white-space: nowrap; }
.tag.green, .tag.approved, .tag.active, .tag.delivered, .tag.completed { background: #0f3d2b; color: var(--accent-2); }
.tag.yellow, .tag.review, .tag.pending, .tag.requested, .tag.processing, .tag.approved-po, .tag.paid, .tag.delivering { background: #3a3114; color: var(--warn); }
.tag.red, .tag.rejected, .tag.blocked, .tag.failed, .tag.underpaid, .tag.paid_late, .tag.cancelled { background: #3d1515; color: var(--err); }

/* таблицы */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td input { padding: 6px 8px; font-size: 13px; }

/* код */
pre.code { background: #0a0c11; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0 0 14px; position: relative; }
pre.code .c { color: #6b7488; }
pre.code .s { color: #9be9a8; }
pre.code .k { color: #c3b6ff; }
code.inline { background: #1b202b; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: #1b202b; border: 1px solid var(--line2); color: var(--muted); border-radius: 7px; font-size: 12px; padding: 3px 8px; cursor: pointer; }
.copy-btn:hover { color: var(--text); }

/* вкладки */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.tabs button { background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

/* прогресс */
.bar { height: 7px; background: #222837; border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
.footer .container { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.notice { border: 1px solid #4a3d16; background: #211c0d; color: #f1dca0; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.notice.info { border-color: #2c3560; background: #121735; color: #c9d0ff; }
.stat { font-size: 26px; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- внешний сайт: оформление ---------- */
body.site { background:
  radial-gradient(900px 500px at 85% -10%, rgba(139,124,255,.16), transparent 60%),
  radial-gradient(700px 420px at -10% 20%, rgba(20,241,149,.07), transparent 60%),
  var(--bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #c9c2ff; background: rgba(139,124,255,.12); border: 1px solid rgba(139,124,255,.28); padding: 5px 12px; border-radius: 99px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.grad { background: linear-gradient(92deg, #b3a8ff 0%, var(--accent) 35%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 0 34px; }
.section-head p { color: var(--muted); font-size: 16px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.glass { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; box-shadow: 0 20px 60px -30px rgba(0,0,0,.7); }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(139,124,255,.14); color: #c3b6ff; margin-bottom: 14px; }
.icon.green { background: rgba(20,241,149,.12); color: var(--accent-2); }
.icon svg { width: 22px; height: 22px; }
.feature { padding: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.hero2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 70px 0 40px; }
@media (max-width: 920px) { .hero2 { grid-template-columns: 1fr; } .mock { display: none; } }
.hero2 h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.025em; margin: 18px 0 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 13px; }
.btn.glow { box-shadow: 0 10px 30px -8px rgba(139,124,255,.65); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 13px; }
.trust span::before { content: "✓ "; color: var(--accent-2); font-weight: 800; }
/* макет виджета в шапке */
.mock { position: relative; padding: 22px; transform: rotate(1.2deg); }
.mock::before { content: ""; position: absolute; inset: -30px; background: radial-gradient(closest-side, rgba(139,124,255,.35), transparent); z-index: -1; filter: blur(20px); }
.mock .m-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 8px 0; }
.mock .m-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mock .m-logo { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f7b955, #ff6b9a); }
.mock .m-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #0d1016; border: 1px solid var(--line); border-radius: 11px; padding: 4px; margin: 12px 0; }
.mock .m-seg span { text-align: center; font-size: 12px; font-weight: 700; padding: 7px; border-radius: 8px; color: var(--muted); }
.mock .m-seg span.on { background: #262c3a; color: var(--text); }
.mock .m-pay { border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; }
.mock .m-pay b { font-size: 20px; }
.mock .m-btn { margin-top: 14px; text-align: center; background: var(--accent); border-radius: 11px; padding: 11px; font-weight: 700; }
.mock .m-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--accent-2); }
.mock .m-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
/* сети */
.nets { display: flex; gap: 12px; flex-wrap: wrap; }
.net { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-weight: 600; }
.net i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #0b0d12; }
.net small { color: var(--muted); font-weight: 400; }
/* полоса цифр */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.band > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.band > div:last-child { border-right: 0; }
.band b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.band span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr 1fr; } .band > div:nth-child(2) { border-right: 0; } .band > div { border-bottom: 1px solid var(--line); } }
/* таймлайн */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; counter-reset: t; }
.timeline > li { position: relative; padding: 0 0 34px 62px; counter-increment: t; }
.timeline > li::before { content: counter(t); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, rgba(139,124,255,.3), rgba(139,124,255,.08)); border: 1px solid rgba(139,124,255,.4); color: #d9d3ff; }
.timeline > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; background: linear-gradient(var(--line2), transparent); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { font-size: 18px; margin: 6px 0 8px; }
.timeline p, .timeline li li { color: #c4cad6; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-size: 14px; margin: 12px 0; }
.callout.tip { border-color: rgba(20,241,149,.25); background: rgba(20,241,149,.05); }
.callout.warn2 { border-color: rgba(255,204,102,.3); background: rgba(255,204,102,.06); }
.callout b.t { white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; background: #1e2430; border: 1px solid var(--line2); color: var(--muted); }
.price-card { padding: 28px; text-align: center; }
.price-card .big { font-size: 54px; font-weight: 800; letter-spacing: -0.03em; }
