/* Страницы-инструкции InkApp (собирает site/guides/build.ps1). Стиль — как у сайта и документов */
:root { --paper:#fff; --paper-2:#f4f4f1; --ink:#0a0a0a; --muted:#6b6b6b; --line:#e4e4e0; --red:#ff3b30; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: rgba(10,10,10,.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
.top { max-width: 860px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.top nav a.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
main { max-width: 860px; margin: 0 auto; padding: 12px 20px 60px; }
.mono { font: 500 12px "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
h1 { font-size: clamp(32px, 6.4vw, 54px); line-height: 1.04; letter-spacing: -.04em; margin: 12px 0 14px; }
h1 em, h2 em { font-style: normal; color: var(--red); }
.lead { font-size: 20px; line-height: 1.5; color: #333; margin: 0 0 22px; }
h2 { font-size: 27px; line-height: 1.15; letter-spacing: -.03em; margin: 48px 0 14px; }
h3 { font-size: 19px; letter-spacing: -.01em; margin: 26px 0 8px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 14px; }
.kbd { display: inline-block; font: 500 .82em "JetBrains Mono", ui-monospace, monospace; background: #fff; border: 1px solid #d6d3cc; border-bottom-width: 2.5px; border-radius: 7px; padding: 1px 7px; line-height: 1.45; white-space: nowrap; vertical-align: 1px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 20px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--paper-2); border-radius: 16px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.steps li b:first-child { display: block; margin-bottom: 2px; }
.box { background: var(--paper-2); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
.box.note { background: #fff5f4; }
table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 10px 0 16px; }
th { text-align: left; font: 500 12px "JetBrains Mono", monospace; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cta { margin: 40px 0 10px; background: var(--ink); color: #fff; border-radius: 22px; padding: 28px 28px 30px; }
.cta h2 { margin: 0 0 8px; color: #fff; }
.cta p { color: #cfcfcf; margin: 0 0 20px; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn.line { background: transparent; color: #fff; border-color: #555; }
.btn small { font: 500 10px "JetBrains Mono", monospace; opacity: .7; }
.cta .phone-note { display: none; margin: 0; color: #fff; }
.phone .cta .btns { display: none; }
.phone .cta .phone-note { display: block; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: #333; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 14px 0; }
.more a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-weight: 700; line-height: 1.3; }
.more a span { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.more a:hover { border-color: var(--ink); }
footer { max-width: 860px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; gap: 8px 18px; flex-wrap: wrap; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding: 16px; }
  .top nav a:not(.dark) { display: none; }
  main { padding: 6px 16px 48px; }
  .lead { font-size: 18px; }
  h2 { font-size: 23px; margin-top: 38px; }
  .steps li { padding: 14px 14px 14px 56px; }
  .steps li::before { left: 12px; }
  .cta { padding: 22px 20px 24px; border-radius: 18px; }
  .btn { width: 100%; justify-content: center; }
  table { font-size: 14.5px; }
  footer { padding: 24px 16px 36px; }
}
