:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#f7f9fc}
*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}
.header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid #e5e7eb}
.nav{max-width:1180px;margin:auto;padding:14px 20px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;text-decoration:none}.brand img{width:32px;height:32px}
.links{margin-left:auto;display:flex;gap:18px;align-items:center}.links>a{text-decoration:none;font-size:14px;color:#475569}.links>a:hover{color:#111827}
.language{position:relative}.language>button{border:1px solid #dbe2ea;background:#fff;border-radius:9px;padding:7px 10px;cursor:pointer}.languageMenu{display:none;position:absolute;right:0;top:38px;min-width:145px;background:#fff;border:1px solid #dbe2ea;border-radius:10px;padding:6px;box-shadow:0 14px 38px rgba(15,23,42,.12)}.language:hover .languageMenu,.language:focus-within .languageMenu{display:grid}.languageMenu a{padding:7px 9px;text-decoration:none;border-radius:7px;font-size:13px}.languageMenu a:hover,.languageMenu a.active{background:#eef2ff;color:#3730a3;font-weight:700}
main{max-width:1180px;margin:auto;padding:54px 20px 80px}.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:center;padding:36px 0 28px}
.eyebrow{font-size:13px;font-weight:800;color:#4f46e5;letter-spacing:.04em;text-transform:uppercase}h1{font-size:clamp(40px,6vw,70px);line-height:1.02;margin:12px 0 18px;letter-spacing:-.04em}.pageTitle{font-size:46px}.lead{font-size:18px;line-height:1.75;color:#475569;max-width:800px}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.button{display:inline-block;border:0;padding:11px 16px;border-radius:10px;text-decoration:none;background:#111827;color:#fff;font-weight:800;cursor:pointer}.button.secondary{background:#eef2ff;color:#3730a3}.button:disabled{opacity:.45;cursor:default}
.codecard{background:#0b1020;color:#dbeafe;border-radius:18px;padding:20px;box-shadow:0 18px 60px rgba(15,23,42,.14)}.codecard pre{white-space:pre-wrap;margin:0;font:13px/1.65 Consolas,monospace}
.section{margin-top:54px}.section h2{font-size:30px;margin-bottom:8px}.section>p{color:#64748b;line-height:1.7}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px;margin-top:18px}.card h3{margin:0 0 8px}.card p{color:#64748b;line-height:1.65}
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:20px}.step{padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;font-size:14px}.step b{display:block;margin-bottom:6px}.note{margin-top:20px;padding:16px 18px;border-radius:14px;background:#eef2ff;color:#3730a3;line-height:1.7}
.footer{border-top:1px solid #e5e7eb;padding:24px 20px;color:#64748b;font-size:13px}.footer>div{max-width:1180px;margin:auto}
.table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0}.table th,.table td{padding:11px;border-bottom:1px solid #e5e7eb;text-align:left;font-size:13px}.table th{color:#64748b}
pre.block{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:12px;overflow:auto;font-size:13px;line-height:1.6}
.formRow,.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card label{display:grid;gap:6px;font-size:13px;font-weight:700}.card input[type=text],.card input[type=number],.card select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.preview{min-height:310px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.preview>img{display:block;max-width:100%;max-height:500px;object-fit:contain}.emptyPreview{display:grid;place-items:center;gap:10px;text-align:center;color:#64748b}.emptyPreview img{width:96px;height:96px}.meta{font-size:13px;color:#475569;line-height:1.7;margin:10px 0}.optionGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.muted{color:#64748b}.smallGap{margin-top:7px;font-size:13px}
@media(max-width:850px){.hero,.formRow,.grid2{grid-template-columns:1fr}.cards,.flow{grid-template-columns:1fr}.links{gap:8px}.links>a:nth-child(2),.links>a:nth-child(4){display:none}}
