/* База знаний JustSend (/help/). Палитра — как у лендинга и кабинета (§8.5, §8.22).
   Страницы собирает tools/help/build.js; этот файл правится руками.
   Тема: класс light/dark на <html> (ключ localStorage js_theme — общий с лендингом). */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-cyrillic.71d5ee93.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-latin.3100e775.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-latin-ext.34b9c504.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-cyrillic.e17cfd15.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/jetbrains-mono-latin.83c005d4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root, html.light{
  --bg:#FAFAF9; --surface:#FFFFFF; --surface-2:#F3F4F2; --border:rgba(10,12,16,.10); --border-2:rgba(10,12,16,.16);
  --text:#14161A; --text-muted:#575C64; --text-faint:#6B7079;
  --accent:#15D27A; --accent-ink:#0B8A4F; --accent-soft:rgba(21,210,122,.12);
  --note-bg:#FFF8E6; --note-bd:#F0C451; --note-ink:#6A4B00;
  --warn-bg:#FFF0EE; --warn-bd:#F27360; --warn-ink:#8A2214;
  --tip-bg:#EAFBF2; --tip-bd:#36C985; --tip-ink:#0B5E37;
  --mark:#FF5A1F; --shadow:0 1px 2px rgba(10,12,16,.05),0 6px 22px rgba(10,12,16,.06);
  color-scheme:light;
}
html.dark{
  --bg:#0A0B0E; --surface:#111418; --surface-2:#161A1F; --border:rgba(255,255,255,.08); --border-2:rgba(255,255,255,.14);
  --text:#ECEDEF; --text-muted:#A3A8B0; --text-faint:#8A8F98;
  --accent:#15D27A; --accent-ink:#3BE095; --accent-soft:rgba(21,210,122,.14);
  --note-bg:rgba(240,196,81,.10); --note-bd:#B8932F; --note-ink:#F2D58A;
  --warn-bg:rgba(242,115,96,.10); --warn-bd:#C45848; --warn-ink:#F6B3A8;
  --tip-bg:rgba(21,210,122,.09); --tip-bd:#1F9E62; --tip-ink:#9BE8C2;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 26px rgba(0,0,0,.35);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:24px}
body{margin:0; background:var(--bg); color:var(--text); font:400 17px/1.65 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:var(--accent-ink); text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
code{font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.86em; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; padding:1px 6px; word-break:break-word}
h1,h2,h3{letter-spacing:-.02em; line-height:1.22}
:focus-visible{outline:3px solid var(--accent); outline-offset:2px; border-radius:6px}

/* ── каркас: меню слева, как в кабинете (§8.131) ── */
:root{--side-w:284px}
.shell{min-height:100vh}
.main-col{margin-left:var(--side-w); min-width:0}
.side{position:fixed; top:0; bottom:0; left:0; z-index:40; width:var(--side-w); display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--border)}
.side-head{display:flex; align-items:center; gap:10px; padding:16px 16px 12px}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text)}
.bn{display:flex; flex-direction:column; align-items:center; font-weight:700; font-size:17px; letter-spacing:-.03em; line-height:.92}
.bn .s{color:var(--accent)}
.kb-l{font-weight:600; font-size:15px; color:var(--text-muted); padding-left:12px; border-left:1px solid var(--border-2); line-height:30px}
.side .side-x{display:none; margin-left:auto}
.side-search{padding:0 12px 10px}
.side-nav{flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:2px 12px 14px}
.side-sec{margin-top:16px}
.side-h{font-size:12px; font-weight:650; letter-spacing:.07em; text-transform:uppercase; color:var(--text-faint); margin:0 0 4px 10px}
.nav-item{display:flex; align-items:center; gap:10px; width:100%; padding:7px 10px; border:0; border-radius:8px; background:transparent; color:var(--text-muted); font:inherit; font-size:14.5px; font-weight:450; line-height:1.35; text-align:left; text-decoration:none; cursor:pointer; position:relative; transition:background .18s,color .18s}
.nav-item svg{flex-shrink:0; color:var(--text-faint); transition:color .18s}
.nav-item:hover{background:var(--surface-2); color:var(--text)}
.nav-item:hover svg{color:var(--text-muted)}
.nav-item[aria-current]{background:var(--surface-2); color:var(--text); font-weight:600}
.nav-item[aria-current]::before{content:""; position:absolute; left:0; top:7px; bottom:7px; width:3px; border-radius:3px; background:var(--accent)}
.nav-item[aria-current] svg{color:var(--accent)}
.side-foot{display:flex; flex-direction:column; gap:2px; padding:12px; border-top:1px solid var(--border)}
.side-foot .btn-login{justify-content:center; gap:8px; margin-bottom:6px}
.ti-moon,.ti-sun{display:inline-flex}
html.dark .ti-moon, html:not(.dark) .ti-sun{display:none}
.scrim{position:fixed; inset:0; z-index:35; background:rgba(5,6,8,.5)}
.scrim[hidden]{display:none}
.mtop{display:none}
.icon-btn{display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; border-radius:10px; border:1px solid var(--border-2); background:var(--surface); color:var(--text); cursor:pointer}
.btn-login{display:inline-flex; align-items:center; height:40px; padding:0 16px; border-radius:10px; background:var(--accent); color:#06140C; font-weight:600; font-size:15px; text-decoration:none; white-space:nowrap}
.btn-login svg{color:#06140C}
.btn-login:hover{filter:brightness(1.05)}
.btn-sec{display:inline-flex; align-items:center; height:40px; padding:0 16px; border-radius:10px; border:1px solid var(--border-2); background:var(--surface); color:var(--text); font-weight:600; font-size:15px; text-decoration:none; white-space:nowrap}

/* ── поиск ── */
.search{position:relative; display:flex; align-items:center; gap:8px; padding:0 12px; height:42px; border:1px solid var(--border-2); border-radius:12px; background:var(--surface); color:var(--text-faint)}
.search:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.search input{flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:15px; height:100%}
.search.big{height:58px; border-radius:16px; padding:0 18px; max-width:640px; margin:26px auto 0; box-shadow:var(--shadow)}
.search.big input{font-size:17px}
.results{position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30; background:var(--surface); border:1px solid var(--border-2); border-radius:14px; box-shadow:var(--shadow); max-height:min(70vh,480px); overflow:auto; padding:6px; text-align:left}
.results a{display:block; padding:10px 12px; border-radius:10px; text-decoration:none; color:var(--text)}
.results a:hover,.results a.on{background:var(--surface-2)}
.results b{display:block; font-size:15px; font-weight:600}
.results small{display:block; color:var(--text-muted); font-size:13px; line-height:1.45; margin-top:2px}
.results mark{background:var(--accent-soft); color:inherit; border-radius:3px; padding:0 1px}
.results .empty{padding:12px; color:var(--text-muted); font-size:14px}

/* ── статья ── */
.art{min-width:0; max-width:860px; margin:0 auto; padding:30px 40px 40px}
.crumbs{display:flex; flex-wrap:wrap; gap:8px; font-size:14px; color:var(--text-faint)}
.crumbs a{color:var(--text-muted); text-decoration:none}
.crumbs a:hover{color:var(--text)}
.art h1{font-size:clamp(28px,4.2vw,40px); margin:14px 0 10px}
.lead{font-size:19px; color:var(--text-muted); margin:0 0 8px}
.meta{font-size:14px; color:var(--text-faint); margin:0 0 22px}
.toc{border:1px solid var(--border); background:var(--surface); border-radius:14px; padding:14px 18px; margin:0 0 30px}
.toc b{font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint)}
.toc ul{margin:8px 0 0; padding-left:20px}
.toc li{margin:2px 0; font-size:15.5px}

.content h2{font-size:25px; margin:44px 0 14px; padding-top:6px}
.content h3{font-size:19px; margin:26px 0 8px}
.content p{margin:0 0 14px}
.content ul,.content ol{margin:0 0 16px; padding-left:24px}
.content li{margin:0 0 8px}
.content li::marker{color:var(--text-faint)}
.ui{display:inline-block; padding:0 8px; border-radius:7px; background:var(--surface); border:1px solid var(--border-2); box-shadow:0 1px 0 var(--border); font-size:.92em; font-weight:600; line-height:1.55; -webkit-box-decoration-break:clone; box-decoration-break:clone}
.muted{color:var(--text-muted)}

/* шаги — крупные зелёные номера */
ol.steps{list-style:none; counter-reset:st; padding:0; margin:18px 0 22px}
ol.steps>li{counter-increment:st; position:relative; padding:0 0 18px 50px; margin:0}
ol.steps>li::before{content:counter(st); position:absolute; left:0; top:-1px; width:34px; height:34px; border-radius:50%; background:var(--accent); color:#06140C; font-weight:700; font-size:16px; display:flex; align-items:center; justify-content:center}
ol.steps>li::after{content:""; position:absolute; left:16px; top:38px; bottom:6px; width:2px; background:var(--border)}
ol.steps>li:last-child::after{display:none}
ol.steps ul{margin-top:8px}
ol.path,ol.check{padding-left:0; list-style:none; counter-reset:pa}
ol.path li,ol.check li{counter-increment:pa; position:relative; padding:10px 14px 10px 52px; margin:0 0 8px; background:var(--surface); border:1px solid var(--border); border-radius:12px}
ol.path li::before{content:counter(pa); position:absolute; left:14px; top:10px; width:26px; height:26px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink); font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center}
ol.check li::before{content:""; position:absolute; left:16px; top:14px; width:20px; height:20px; border-radius:6px; border:2px solid var(--accent)}

/* «можно/нельзя» */
ul.yes,ul.no{list-style:none; padding:0}
ul.yes li,ul.no li{position:relative; padding-left:30px}
ul.yes li::before,ul.no li::before{position:absolute; left:0; top:0; font-weight:700; width:22px; text-align:center}
ul.yes li::before{content:"✓"; color:var(--accent-ink)}
ul.no li::before{content:"✕"; color:var(--warn-bd)}

.dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:8px; vertical-align:1px; background:var(--text-faint)}
.dot.g{background:#15D27A}.dot.a{background:#F0A23B}.dot.r{background:#F05D4B}

/* плашки */
.call{border:1px solid; border-left-width:5px; border-radius:12px; padding:12px 16px; margin:18px 0}
.call>b{display:block; font-size:13px; letter-spacing:.05em; text-transform:uppercase; margin-bottom:4px}
.call>div{font-size:16px}
.call.note{background:var(--note-bg); border-color:var(--note-bd); color:var(--note-ink)}
.call.warn{background:var(--warn-bg); border-color:var(--warn-bd); color:var(--warn-ink)}
.call.tip{background:var(--tip-bg); border-color:var(--tip-bd); color:var(--tip-ink)}
.call a{color:inherit; text-decoration:underline}
.call .ui{color:var(--text)}
.need{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 18px; margin:0 0 24px}
.need>b{display:block; margin-bottom:6px}
.need ul{margin:0}

/* скриншоты */
.shot{margin:16px 0 22px}
.shot img{display:block; width:100%; height:auto; border-radius:12px; border:1px solid var(--border-2); box-shadow:var(--shadow); background:var(--surface)}
.shot.small img{max-width:360px}
.shot figcaption{font-size:14.5px; color:var(--text-muted); margin-top:8px; line-height:1.5}
.zoom{display:block; cursor:zoom-in}
.phones{display:flex; flex-wrap:wrap; gap:18px; margin:16px 0 22px}
.phones .shot{margin:0; flex:0 1 260px}
.phones .shot img{border-radius:22px}

/* таблицы */
.tbl{width:100%; border-collapse:collapse; margin:10px 0 20px; font-size:15px; display:block; overflow-x:auto}
.tbl th,.tbl td{text-align:left; padding:9px 12px; border-bottom:1px solid var(--border); vertical-align:top}
.tbl th{font-size:13px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-faint); font-weight:600}

/* FAQ и проблемы */
.faq,.trouble{display:flex; flex-direction:column; gap:10px; margin:8px 0 18px}
.faq details,.trouble details{background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:0 16px}
.faq summary,.trouble summary{cursor:pointer; padding:13px 0; font-weight:600; list-style:none; position:relative; padding-right:28px}
.faq summary::-webkit-details-marker,.trouble summary::-webkit-details-marker{display:none}
.faq summary::after,.trouble summary::after{content:"+"; position:absolute; right:0; top:10px; font-size:22px; color:var(--text-faint); font-weight:400}
.faq details[open] summary::after,.trouble details[open] summary::after{content:"−"}
.faq details p,.trouble details p{margin:0 0 12px}

/* схемы (инлайн-SVG) */
.diagram{margin:8px 0 24px; padding:14px; border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow-x:auto}
.diagram svg{display:block; width:100%; min-width:560px; height:auto}
.d-box{fill:var(--surface-2); stroke:var(--border-2); stroke-width:1.5}
.d-accent{fill:var(--accent-soft); stroke:var(--accent)}
.d-soft{fill:var(--bg); stroke-dasharray:5 4}
.d-warnbox{fill:var(--note-bg); stroke:var(--note-bd)}
.d-badbox{fill:var(--warn-bg); stroke:var(--warn-bd)}
.d-t{fill:var(--text); font:600 17px Inter,sans-serif}
.d-s{fill:var(--text-muted); font:400 13.5px Inter,sans-serif}
.d-line{stroke:var(--text-faint); stroke-width:2; fill:none}
.d-arrow{fill:var(--text-faint)}

/* назад/дальше и поддержка */
.pn{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:44px 0 22px}
.pn a{display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); text-decoration:none; color:var(--text); font-weight:600; font-size:15.5px; line-height:1.35}
.pn a:hover{border-color:var(--accent)}
.pn small{display:block; font-weight:500; font-size:13px; color:var(--text-faint)}
.pn-n{justify-content:flex-end; text-align:right}
.support{display:flex; align-items:center; gap:16px; padding:18px 20px; border-radius:16px; background:var(--accent-soft); border:1px solid color-mix(in srgb,var(--accent) 35%,transparent); color:var(--accent-ink)}
.support div{flex:1; color:var(--text)}
.support b{display:block}
.support span{font-size:15px; color:var(--text-muted)}

/* ── главная базы ── */
.hero{text-align:center; padding:56px 20px 40px; background:radial-gradient(900px 260px at 50% -40px,var(--accent-soft),transparent 70%)}
.eyebrow{display:inline-block; font-size:13px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-ink); background:var(--accent-soft); padding:4px 12px; border-radius:999px}
.hero h1{font-size:clamp(32px,6vw,52px); margin:16px 0 10px}
.hero p{font-size:19px; color:var(--text-muted); max-width:620px; margin:0 auto}
.home-main{max-width:1100px; margin:0 auto; padding:10px 32px 40px}
.home-main h2{font-size:26px; margin:0 0 6px}
.path-sec{margin:20px 0 44px}
.path-cards{list-style:none; padding:0; margin:18px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px}
.path-cards a{display:flex; flex-direction:column; gap:6px; height:100%; padding:18px; border:1px solid var(--border); border-radius:16px; background:var(--surface); text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s}
.path-cards a:hover{border-color:var(--accent); transform:translateY(-2px)}
.path-cards .n{width:32px; height:32px; border-radius:50%; background:var(--accent); color:#06140C; font-weight:700; display:flex; align-items:center; justify-content:center}
.path-cards .pt{font-weight:650; font-size:17px; line-height:1.3}
.path-cards .pd{font-size:14.5px; color:var(--text-muted); line-height:1.5}
.secs{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0 0 40px}
.sec-card{border:1px solid var(--border); border-radius:18px; background:var(--surface); padding:20px; scroll-margin-top:24px}
.sec-h{display:flex; gap:12px; align-items:flex-start; margin-bottom:10px}
.sec-i{flex:0 0 40px; height:40px; border-radius:12px; background:var(--accent-soft); color:var(--accent-ink); display:flex; align-items:center; justify-content:center}
.sec-card h2{font-size:19px; margin:2px 0 2px}
.sec-card p{margin:0; font-size:14px; color:var(--text-muted); line-height:1.45}
.sec-card ul{list-style:none; padding:0; margin:0}
.sec-card li a{display:block; padding:7px 0; border-top:1px solid var(--border); color:var(--text); text-decoration:none; font-size:15.5px}
.sec-card li a:hover{color:var(--accent-ink)}

/* подвал */
.foot{display:flex; flex-wrap:wrap; gap:10px 24px; justify-content:space-between; max-width:1100px; margin:20px auto 0; padding:22px 32px 34px; border-top:1px solid var(--border); color:var(--text-faint); font-size:13.5px}
.foot-l{display:flex; flex-wrap:wrap; gap:6px 18px}
.foot a{color:var(--text-muted); text-decoration:none}
.foot a:hover{color:var(--text)}

/* увеличение картинки */
.lb{position:fixed; inset:0; z-index:100; background:rgba(5,6,8,.86); display:flex; align-items:center; justify-content:center; padding:20px; cursor:zoom-out}
.lb[hidden]{display:none}
.lb img{max-width:100%; max-height:100%; border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lb-x{position:absolute; top:12px; right:14px; width:44px; height:44px; border-radius:50%; border:0; background:rgba(255,255,255,.14); color:#fff; font-size:28px; line-height:44px; cursor:pointer}

/* ── адаптив ── */
@media (max-width:1280px){
  .path-cards,.secs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:960px){
  html{scroll-padding-top:72px}
  .main-col{margin-left:0}
  .side{width:min(320px,86vw); transform:translateX(-102%); transition:transform .22s ease; box-shadow:0 0 40px rgba(0,0,0,.25)}
  body.nav-open .side{transform:none}
  body.nav-open{overflow:hidden}
  .side .side-x{display:inline-flex}
  .mtop{position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:12px; padding:8px 16px; background:color-mix(in srgb,var(--bg) 90%,transparent); backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--border)}
  .mtop .js-theme{margin-left:auto}
  .art{padding:20px 20px 36px}
  .sec-card{scroll-margin-top:72px}
}
@media (max-width:640px){
  body{font-size:17px}
  .art{padding:16px 16px 32px}
  .path-cards,.secs{grid-template-columns:minmax(0,1fr)}
  .home-main{padding:6px 16px 30px}
  .mtop .kb-l{font-size:14px; padding-left:10px}
  .hero{padding:38px 16px 28px}
  .hero p{font-size:17px}
  .lead{font-size:17.5px}
  .content h2{font-size:22px; margin-top:36px}
  ol.steps>li{padding-left:44px}
  ol.steps>li::before{width:30px; height:30px; font-size:15px}
  ol.steps>li::after{left:14px; top:34px}
  .phones .shot{flex:1 1 100%; max-width:300px}
  .pn{grid-template-columns:minmax(0,1fr)}
  .pn-n{justify-content:space-between; text-align:left}
  .support{flex-wrap:wrap}
  .support .btn-sec{width:100%; justify-content:center}
  .foot{padding:18px 16px 28px}
  .shot{margin-left:-4px; margin-right:-4px}
}
@media (prefers-reduced-motion:reduce){ *{transition:none!important} }
