/* PS Wallet Help Center — вариант A «Классика» (тёмная неоновая тема мини-аппа) */
:root {
	--bg: #0f0f0f;
	--section: #191919;
	--text: #ffffff;
	--text-2: rgba(255, 255, 255, 0.7);
	--text-3: rgba(255, 255, 255, 0.5);
	--text-4: rgba(255, 255, 255, 0.28);
	--w3: rgba(255, 255, 255, 0.03);
	--w5: rgba(255, 255, 255, 0.05);
	--w7: rgba(255, 255, 255, 0.07);
	--w15: rgba(255, 255, 255, 0.15);
	--accent: #4dccff;
	--accent-2: #8be1ff;
	--accent-10: rgba(77, 204, 255, 0.1);
	--accent-20: rgba(77, 204, 255, 0.22);
	--green: #9dd752;
	--red: #d75254;
	--yellow: #f5c451;
	--radius: 20px;
	--header-h: 64px;
	--font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg { display: block; flex: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.accent-gradient {
	background-image:
		radial-gradient(120% 220% at 72% 160%, rgba(0, 136, 182, 1) 0%, rgba(0, 179, 255, 0) 70%),
		radial-gradient(140% 200% at 100% 0%, rgba(139, 226, 255, 1) 0%, rgba(85, 212, 255, 0) 60%),
		radial-gradient(240% 320% at 26% -38%, rgba(1, 82, 116, 1) 0%, rgba(0, 130, 185, 0.5) 50%, rgba(0, 178, 255, 0) 100%),
		radial-gradient(60% 110% at 61% -6%, rgba(27, 170, 232, 1) 0%, rgba(17, 151, 208, 0) 70%),
		radial-gradient(150% 140% at 2% 100%, rgba(139, 226, 255, 1) 0%, rgba(85, 212, 255, 0) 65%),
		linear-gradient(90deg, rgb(77, 204, 255) 0%, rgb(139, 225, 255) 100%);
}
.island { background: rgba(25, 25, 25, 0.55); border-radius: var(--radius); box-shadow: inset 0 0 20px 0 var(--w5); border: 1px solid var(--w5); }

/* ===== кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: background 0.15s, opacity 0.15s; }
.btn-accent { color: #fff; box-shadow: inset 0 0 20px 0 rgba(255, 255, 255, 0.4); text-shadow: 0 1px 6px rgba(0, 60, 90, 0.35); }
.btn-accent:hover { opacity: 0.92; }
.btn-grey { background: var(--w7); box-shadow: inset 0 0 20px 0 var(--w5); }
.btn-grey:hover { background: var(--w15); }
.btn-grey.on { background: var(--accent-10); color: var(--accent); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--w7); }
.icon-btn:hover { background: var(--w15); }
.kbd { font-family: var(--mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--w15); border-radius: 6px; padding: 2px 6px; }

/* ===== шапка ===== */
.top { position: sticky; top: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 28px; background: rgba(15, 15, 15, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--w5); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand img { width: 30px; height: auto; }
.brand span { color: var(--text-3); font-weight: 400; }
.tabs { display: flex; gap: 4px; font-size: 14px; color: var(--text-2); }
.tabs a { padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); background: var(--w5); }
.top .sp { flex: 1; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: 280px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--w5); border: 1px solid var(--w7); color: var(--text-3); font-size: 14px; text-align: left; }
.search-trigger:hover { border-color: var(--w15); }
.search-trigger .ph { flex: 1; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--w5); font-size: 13px; }
.lang-switch a { padding: 5px 9px; border-radius: 7px; color: var(--text-3); }
.lang-switch a.on { background: var(--w7); color: var(--text); }
.menu-btn, .search-icon { display: none; }

/* ===== главная ===== */
.hero { position: relative; text-align: center; padding: 96px 24px 64px; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); left: 50%; }
.glow::before { width: 140px; height: 560px; top: -300px; transform: translateX(-50%) rotate(90deg); background: linear-gradient(180deg, #4dccff, #0088b6); opacity: 0.6; }
.glow::after { width: 760px; height: 280px; top: -160px; transform: translateX(-50%); background: #1aa9e8; opacity: 0.16; }
.hero h1 { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 14px; }
.hero p { color: var(--text-2); font-size: 18px; margin: 0 0 32px; }
.hero-search { display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 0 auto; height: 58px; padding: 0 18px; border-radius: 18px; font-size: 17px; background: rgba(30, 30, 30, 0.7); border: 1px solid var(--w15); color: var(--text-3); box-shadow: 0 0 0 6px rgba(77, 204, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.5); width: 100%; text-align: left; }
.hero-search .ph { flex: 1; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.chips a { padding: 7px 14px; border-radius: 999px; background: var(--w5); border: 1px solid var(--w5); }
.chips a:hover { border-color: var(--accent-20); color: var(--text); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px 80px; width: 100%; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; transition: border-color 0.2s, transform 0.2s; }
.cat:hover { border-color: var(--accent-20); }
.cat .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-10); color: var(--accent); margin-bottom: 6px; }
.cat b { font-size: 18px; font-weight: 500; }
.cat p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.5; flex: 1; }
.cat small { color: var(--text-4); font-size: 13px; }
h2.sec { font-size: 22px; font-weight: 600; margin: 56px 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h2.sec a { font-size: 14px; color: var(--accent); font-weight: 400; }
.page-title { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 8px; }
.page-lead { color: var(--text-2); font-size: 17px; margin: 0 0 32px; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.list { padding: 6px; }
.list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.list a:hover { background: var(--w5); }
.list a span { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.list a .t { color: var(--text); font-size: 15px; white-space: normal; }
.list a .t small { display: block; color: var(--text-3); font-size: 13px; margin-top: 3px; }
.dev { position: relative; display: block; border-radius: var(--radius); padding: 26px; overflow: hidden; box-shadow: inset 0 0 20px 0 rgba(255, 255, 255, 0.35); }
.dev b { font-size: 22px; font-weight: 600; display: block; margin-bottom: 8px; color: #fff; }
.dev p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.88); font-size: 15px; line-height: 1.5; max-width: 360px; }
.dev pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; background: rgba(0, 20, 30, 0.45); border-radius: 14px; padding: 14px 16px; color: #e6f8ff; overflow: auto; }
.dev pre i { font-style: normal; color: #9fe6ff; }

/* ===== статья ===== */
.layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 232px; gap: 48px; max-width: 1440px; margin: 0 auto; padding: 0 28px; width: 100%; flex: 1; }
.side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: auto; padding: 28px 0 40px; font-size: 14px; scrollbar-width: thin; }
.side .g { display: flex; align-items: center; gap: 8px; color: var(--text-4); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin: 22px 12px 8px; }
.side .g:first-child { margin-top: 0; }
.side > a, .side-tabs a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--text-2); line-height: 1.35; }
.side > a:hover, .side-tabs a:hover { background: var(--w3); color: var(--text); }
.side > a.on { color: var(--accent); background: var(--accent-10); font-weight: 500; }
.side > a.g { display: flex; padding: 0; border-radius: 0; color: var(--text-4); }
.side-head { display: none; }
.content { padding: 36px 0 80px; max-width: 760px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: var(--text); }
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.title-row > div:first-child { flex: 1; min-width: 0; }
.ai-wrap { position: relative; flex: none; margin-top: 6px; }
.ai-menu { position: absolute; right: 0; top: 48px; z-index: 40; width: 290px; padding: 6px; border-radius: 18px; background: #1a1a1a; border: 1px solid var(--w7); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); display: none; }
.ai-wrap.open .ai-menu { display: block; }
.ai-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 14px; color: var(--text); width: 100%; text-align: left; }
.ai-item:hover, .ai-item:focus-visible { background: var(--w7); }
.ai-item .lg { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--w7); }
.ai-item .lg.white { background: #fff; color: #000; }
.ai-item .lg.dark { background: #000; color: #fff; border: 1px solid var(--w15); }
.ai-item small { display: block; color: var(--text-3); font-size: 12px; }
.prose .ai-item, .prose .ai-item:hover, .prose .btn { color: var(--text); border: 0; }
.prose .ai-item small { color: var(--text-3); }
.ai-sep { height: 1px; background: var(--w7); margin: 6px 4px; }
.toc { position: sticky; top: var(--header-h); padding: 40px 0; font-size: 13px; align-self: start; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.toc b { display: block; font-weight: 500; color: var(--text); margin-bottom: 12px; font-size: 13px; }
.toc > a { display: block; padding: 5px 0 5px 12px; color: var(--text-3); border-left: 1px solid var(--w7); line-height: 1.4; }
.toc > a.d3 { padding-left: 24px; }
.toc > a:hover { color: var(--text); }
.toc > a.on { color: var(--accent); border-color: var(--accent); }
.toc .box { margin-top: 28px; padding: 16px; }
.toc .box p { margin: 0 0 12px; color: var(--text-3); line-height: 1.5; }
.toc .box .btn { width: 100%; height: 36px; font-size: 13px; }
.toc-mobile { display: none; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pn a { padding: 16px 18px; font-size: 15px; }
.pn a:hover { border-color: var(--accent-20); }
.pn a small { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 4px; }
.pn a.next { text-align: right; grid-column: 2; }
.feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-top: 40px; font-size: 14px; color: var(--text-3); flex-wrap: wrap; }
.feedback .btns { display: flex; gap: 8px; }
.meta-line { margin-top: 20px; font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--w5); color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.banner.preview { background: rgba(245, 196, 81, 0.1); color: var(--yellow); }

/* ===== типографика статьи ===== */
.prose { font-size: 16px; line-height: 1.7; color: var(--text-2); overflow-wrap: break-word; }
.prose h1 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0 0 12px; }
.prose .lead { font-size: 18px; color: var(--text-2); margin: 0 0 28px; }
.prose h2 { font-size: 24px; font-weight: 600; color: var(--text); margin: 44px 0 12px; letter-spacing: -0.01em; line-height: 1.3; }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
.prose h4 { font-size: 16px; font-weight: 600; color: var(--text); margin: 22px 0 6px; }
.prose h2, .prose h3, .prose h4 { position: relative; }
.prose .anchor { position: absolute; left: -22px; color: var(--text-4); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-20); }
.prose a:hover { border-color: var(--accent); }
.prose .anchor, .prose .anchor:hover { border: 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--w7); border-radius: 6px; padding: 2px 6px; color: var(--text); }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose ul li { margin: 4px 0; }
.prose ul li::marker { color: var(--accent); }
.prose ol.steps { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: s; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 44px; min-height: 28px; }
.prose ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-10); border: 1px solid var(--accent-20); line-height: 1; }
.prose ol.steps > li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--w7); }
.prose ol.steps > li:last-child::after { display: none; }
.prose ol.steps > li > p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--w7); margin: 32px 0; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--w15); color: var(--text-3); }
.prose .hd-figure { margin: 20px 0; }
.prose .hd-figure img { border-radius: 16px; border: 1px solid var(--w7); display: block; }
.prose .hd-figure figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; text-align: center; }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; margin: 20px 0; font-size: 15px; line-height: 1.6; background: var(--accent-10); border: 1px solid var(--accent-20); color: var(--text-2); }
.callout > div { min-width: 0; flex: 1; }
.callout > div > *:last-child { margin-bottom: 0; }
.callout .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--accent); color: #052b3a; margin-top: 1px; }
.callout.tip { background: rgba(157, 215, 82, 0.08); border-color: rgba(157, 215, 82, 0.22); }
.callout.tip .ic { background: var(--green); color: #1b2a07; }
.callout.warn { background: rgba(245, 196, 81, 0.08); border-color: rgba(245, 196, 81, 0.22); }
.callout.warn .ic { background: var(--yellow); color: #3a2a05; }
.callout.danger { background: rgba(215, 82, 84, 0.1); border-color: rgba(215, 82, 84, 0.3); }
.callout.editor { background: rgba(190, 120, 255, 0.08); border: 1px dashed rgba(190, 120, 255, 0.4); }
.callout.editor .ic { background: #b57cff; color: #1e0b33; }
.callout.danger .ic { background: var(--red); color: #fff; }

.hd-details { margin: 12px 0; border-radius: 16px; background: rgba(25, 25, 25, 0.55); border: 1px solid var(--w5); }
.hd-details summary { cursor: pointer; padding: 14px 16px; color: var(--text); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hd-details summary::-webkit-details-marker { display: none; }
.hd-details summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.hd-details[open] summary::after { content: "−"; }
.hd-details-body { padding: 0 16px 6px; }

.live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 8px; margin: 0 1px; border-radius: 8px; background: var(--accent-10); border: 1px solid var(--accent-20); color: var(--accent-2); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.5; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.live.flash { animation: live-flash 1.2s ease; }
@keyframes live-flash { 0% { background: rgba(77, 204, 255, 0.4); } 100% { background: var(--accent-10); } }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.widget { padding: 6px 4px 4px; margin: 20px 0; background: rgba(25, 25, 25, 0.55); border-radius: var(--radius); box-shadow: inset 0 0 20px 0 var(--w5); border: 1px solid var(--w5); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 6px; flex-wrap: wrap; }
.widget-head b { font-weight: 500; color: var(--text); font-size: 15px; }
.widget-foot, .prose .widget-foot { margin: 6px 14px 12px; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose > .table-scroll { margin: 20px 0; border-radius: 16px; border: 1px solid var(--w7); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.table th { text-align: left; font-weight: 400; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--w7); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--w5); color: var(--text); font-variant-numeric: tabular-nums; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table td small { display: block; color: var(--text-3); font-size: 12px; }
.coin { display: flex; align-items: center; gap: 12px; }
.coin-ic { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--w7); }
.coin-ic:has(> img) { background: none; }
.coin-ic > img { position: absolute; max-width: none; }
.coin-ic-fallback { border-radius: 50%; background: var(--w15); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.coin-badge { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; overflow: hidden; outline: 2px solid #171717; }
.coin-badge img { position: absolute; max-width: none; }

.code-block { margin: 20px 0; border-radius: 16px; background: #141414; border: 1px solid var(--w7); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--w5); font-size: 12px; color: var(--text-3); font-family: var(--mono); min-height: 38px; }
.code-tablist { display: flex; gap: 2px; overflow-x: auto; }
.code-tab { padding: 5px 10px; border-radius: 8px; color: var(--text-3); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.code-tab.on { background: var(--w7); color: var(--text); }
.code-copy { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); }
.code-copy:hover { background: var(--w7); color: var(--text); }
.code-copy.done { color: var(--green); }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #e8eef2; }
.code-block pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.code-pane { display: none; }
.code-pane.on { display: block; }

/* ===== поиск ===== */
.search-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search-modal.open { display: flex; }
.search-box { width: 100%; max-width: 640px; border-radius: 20px; background: #171717; border: 1px solid var(--w7); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-bottom: 1px solid var(--w7); color: var(--text-3); }
.search-field input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 17px; min-width: 0; }
.search-results { max-height: 60vh; overflow: auto; padding: 6px; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; }
.search-results a:hover, .search-results a.on { background: var(--w7); }
.search-results b { display: block; font-weight: 500; font-size: 15px; color: var(--text); }
.search-results small { display: block; color: var(--text-4); font-size: 12px; margin: 2px 0 4px; }
.search-results p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.search-results mark, .results mark { background: none; color: var(--accent); }
.search-empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.results { display: flex; flex-direction: column; gap: 8px; }
.results a { padding: 16px 18px; }
.results b { display: block; font-weight: 500; }
.results small { color: var(--text-4); font-size: 12px; }
.results p { margin: 6px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.5; }

/* ===== подвал ===== */
footer.foot { border-top: 1px solid var(--w5); margin-top: auto; }
footer.foot .in { max-width: 1440px; margin: 0 auto; padding: 24px 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.foot a:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: 0.2s; padding: 10px 16px; border-radius: 12px; background: #6fbb0d; color: #fff; font-size: 14px; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.overlay { display: none; }

/* ===== адаптив ===== */
@media (max-width: 1240px) {
	.layout { grid-template-columns: 248px minmax(0, 1fr); gap: 40px; }
	.toc { display: none; }
	.toc-mobile { display: block; margin: 0 0 24px; }
	.search-trigger { width: 220px; }
}
@media (max-width: 1023px) {
	:root { --header-h: 56px; }
	.top { gap: 10px; padding: 0 12px 0 8px; }
	.menu-btn, .search-icon { display: inline-grid; }
	.menu-btn { background: none; }
	.tabs, .search-trigger, .top .open-wallet { display: none; }
	.brand { font-size: 16px; }
	.brand img { width: 26px; }
	.layout { display: block; padding: 0 16px; }
	.side { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); height: auto; z-index: 60; background: #121212; border-right: 1px solid var(--w7); padding: 0 12px 32px; transform: translateX(-102%); transition: transform 0.22s ease; }
	.side.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
	.side-head { display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; background: #121212; z-index: 1; margin: 0 -4px 8px; }
	.side-tabs { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--w7); }
	.side-tabs a { font-size: 15px; }
	.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
	.side-actions .lang-switch { align-self: flex-start; }
	.overlay.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.55); }
	.content { padding: 20px 0 56px; max-width: none; }
	.prose h1 { font-size: 30px; }
	.prose .lead { font-size: 16px; margin-bottom: 20px; }
	.prose h2 { font-size: 21px; margin-top: 36px; }
	.prose .anchor { display: none; }
	.title-row { flex-direction: column; gap: 4px; }
	.ai-wrap { margin: 0 0 20px; }
	.ai-menu { left: 0; right: auto; }
	.hero { padding: 56px 16px 40px; }
	.hero h1 { font-size: 34px; }
	.hero p { font-size: 16px; margin-bottom: 24px; }
	.hero-search { height: 52px; font-size: 15px; }
	.hero-search .kbd { display: none; }
	.wrap { padding: 0 16px 56px; }
	.grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.two { grid-template-columns: 1fr; }
	.page-title { font-size: 30px; margin-top: 28px; }
	footer.foot .in { padding: 20px 16px; }
}
@media (max-width: 640px) {
	.grid { grid-template-columns: 1fr; }
	.cat { min-height: 0; padding: 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
	.cat .ico { margin: 0; width: 40px; height: 40px; }
	.cat b { flex: 1; font-size: 16px; }
	.cat p { flex-basis: 100%; }
	.pn { grid-template-columns: 1fr; }
	.pn a.next { grid-column: auto; }
	h2.sec { margin-top: 40px; font-size: 20px; }
	.table-live thead { display: none; }
	.table-live tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--w5); }
	.table-live tr:last-child { border-bottom: 0; }
	.table-live td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
	.table-live td::before { content: attr(data-label); color: var(--text-3); text-align: left; }
	.table-live td:first-child { padding-bottom: 8px; }
	.table-live td:first-child::before { display: none; }
	.table-live td .coin { text-align: left; }
	.search-modal { padding: 0; }
	.search-box { max-width: none; border-radius: 0; height: 100%; border: 0; }
	.search-results { max-height: calc(100% - 58px); }
	.list a { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* меню-шторка на страницах без колонки меню (главная, поиск) */
@media (min-width: 1024px) { .side-drawer, .side-drawer + .overlay { display: none !important; } }
.two.one { grid-template-columns: 1fr; }
.toc-mobile summary { font-size: 14px; }
.toc-links a { display: block; padding: 6px 0; color: var(--text-2); border: 0; font-size: 14px; }
.toc-links a.d3 { padding-left: 14px; color: var(--text-3); }
.side .g { text-decoration: none; }
.side a.g:hover { color: var(--text-2); background: none; }
.side-tabs a.on { color: var(--text); background: var(--w5); }
@media (min-width: 1024px) { .side-tabs, .side-actions { display: none; } }

@media (max-width: 1023px) {
	.brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
	.top .sp { min-width: 4px; }
}
@media (max-width: 560px) {
	.top .lang-switch { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
