:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f0f3f5;
  --surface-accent: #e8f5f4;
  --surface-warm: #f3eee5;
  --surface-blue: #eaf1f5;
  --text: #13171c;
  --text-2: #5f6873;
  --border: #e1e5ea;
  --brand: #142b3d;
  --accent: #168c91;
  --accent-strong: #0d7176;
  --accent-soft: #77c9c7;
  --warm: #d2a45f;
  --crypto: #6c4cff;
  --crypto-bright: #8b72ff;
  --crypto-soft: #eeeaff;
  --warning: #8a5a14;
  --critical: #a63f3f;
  --success: #287a5a;
  --shadow-sm: 0 1px 2px rgba(19, 23, 28, .05), 0 8px 24px rgba(20, 43, 61, .05);
  --shadow-lg: 0 24px 60px rgba(20, 43, 61, .10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1220px;
  --reading: 740px;
  --space: clamp(72px, 9vw, 128px);
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e161c;
  --surface: #142129;
  --surface-soft: #192a34;
  --surface-accent: #123238;
  --surface-warm: #2b2924;
  --surface-blue: #172b38;
  --text: #eef3f5;
  --text-2: #aab6bd;
  --border: #2b3c46;
  --brand: #dbe9ed;
  --accent: #52b8ba;
  --accent-strong: #71cbcc;
  --accent-soft: #377d80;
  --warm: #d8ae6b;
  --crypto: #8b72ff;
  --crypto-bright: #a895ff;
  --crypto-soft: #29244c;
  --warning: #e0aa57;
  --critical: #e27a7a;
  --success: #65bd91;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .16), 0 10px 28px rgba(0, 0, 0, .15);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
body.menu-open, body.dialog-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button, .button { min-height: 44px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--brand); color: var(--bg); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.reading { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.section { position: relative; padding-block: var(--space); }
.section-tight { padding-block: clamp(44px, 6vw, 76px); }
.eyebrow { margin: 0 0 14px; color: var(--accent-strong); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--brand); line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.4rem); max-width: 940px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.02em; }
.lead { color: var(--text-2); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; max-width: 760px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 480px); align-items: end; gap: 32px; margin-bottom: 38px; }
.section-head p { margin: 0; color: var(--text-2); }
.muted { color: var(--text-2); }
.kicker { display: inline-flex; gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: .8rem; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent); backdrop-filter: blur(18px); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--brand); font-weight: 780; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 42px; overflow: visible; }
.brand-logo .logo-k { stroke: var(--brand); }
.brand-logo .logo-b { stroke: var(--crypto); }
.brand:hover .brand-logo .logo-b { stroke: var(--accent); }
.brand-logo path { transition: stroke .22s ease; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 11px; border-radius: 8px; color: var(--text-2); font-size: .91rem; font-weight: 650; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--brand); }
.header-actions { display: flex; gap: 7px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--brand); cursor: pointer; }
.icon-button:hover { border-color: var(--accent); }
.menu-button { display: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(110deg, var(--crypto), color-mix(in srgb, var(--crypto) 72%, var(--accent))); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--crypto) 18%, transparent); font-weight: 720; text-decoration: none; cursor: pointer; }
.button:hover { background: linear-gradient(110deg, var(--crypto-bright), var(--crypto)); transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--crypto) 25%, transparent); }
.button.secondary { background: var(--surface); border-color: var(--border); color: var(--brand); }
.button.ghost { background: transparent; border-color: var(--border); color: var(--brand); }

/* Hero */
.hero { position: relative; isolation: isolate; padding: clamp(54px, 8vw, 108px) 0 clamp(64px, 9vw, 118px); overflow: hidden; background: radial-gradient(circle at 82% 18%, rgba(108,76,255,.62), transparent 27%), radial-gradient(circle at 66% 88%, rgba(22,140,145,.54), transparent 28%), linear-gradient(135deg, #101a29, #17283c 52%, #211d45); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; left: -270px; top: -310px; border: 1px solid rgba(139,114,255,.25); border-radius: 50%; box-shadow: 0 0 0 80px rgba(139,114,255,.035), 0 0 0 160px rgba(22,140,145,.028); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, transparent, #000 45%, #000); }
.hero h1 { color: #fff; text-shadow: 0 12px 40px rgba(0,0,0,.22); }
.hero .lead { color: #c9d4df; }
.hero .eyebrow { color: #91dfdd; }
.hero .hero-note { color: #aebdca; }
.hero .button.secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; box-shadow: none; backdrop-filter: blur(12px); }
.hero .button.secondary:hover { background: rgba(255,255,255,.15); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: clamp(36px, 7vw, 100px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy .lead { margin: 25px 0 30px; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .88rem; }
.hero-note::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.registry-visual { position: relative; width: 100%; min-width: 0; min-height: 500px; border: 1px solid rgba(255,255,255,.35); border-radius: 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 32px 80px rgba(3,10,24,.34), 26px 26px 0 rgba(139,114,255,.18); overflow: hidden; transform: rotate(1.2deg); }
.registry-visual > * { transform: rotate(-1.2deg); }
.registry-top { padding: 22px 24px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: .8rem; font-weight: 700; }
.registry-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.registry-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-accent); color: var(--accent-strong); font: 800 .86rem/1 var(--font); }
.registry-row strong { display: block; color: var(--brand); }
.registry-row small { color: var(--text-2); }
.registry-status { padding: 5px 8px; border-radius: 999px; background: linear-gradient(110deg, var(--surface-accent), var(--crypto-soft)); color: var(--accent-strong); font-size: .72rem; font-weight: 750; }
.registry-stamp { position: absolute; right: -22px; bottom: 36px; width: 180px; height: 180px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; color: var(--accent); font-size: .75rem; font-weight: 780; letter-spacing: .12em; text-align: center; transform: rotate(-10deg); }
.registry-stamp::before, .registry-stamp::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.registry-stamp::before { inset: 10px; }
.registry-stamp::after { inset: 22px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-5px); box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 10%, transparent); }
.card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -52px; bottom: -56px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 50%; transition: transform .35s ease; }
.card:hover::after { transform: scale(1.35); }
.card p { color: var(--text-2); }
.card .arrow { margin-top: auto; padding-top: 18px; color: var(--accent-strong); font-weight: 720; }
.card-index { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; color: var(--text-2); font-size: .78rem; }
.card-index b { color: var(--accent); font-size: 1.2rem; }
.category-card { min-height: 245px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--surface-accent)), var(--surface)); }
.category-card:nth-child(2) { background: linear-gradient(145deg, var(--crypto-soft), var(--surface)); }
.category-card:nth-child(3) { background: linear-gradient(145deg, var(--surface-warm), var(--surface)); }
.category-card:nth-child(4) { background: linear-gradient(145deg, var(--surface-accent), var(--surface)); }
.category-card h3 { max-width: 250px; }
.topic-section { overflow: hidden; background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--crypto-soft) 42%, var(--bg))); }
.topic-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.topic-card { --topic-bg: var(--surface); --topic-fg: var(--brand); --topic-accent: var(--crypto); position: relative; grid-column: span 4; min-height: 250px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--topic-accent) 18%, var(--border)); border-radius: 20px; background: var(--topic-bg); color: var(--topic-fg); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .28s ease, box-shadow .28s ease; }
.topic-card:hover { transform: translateY(-6px) rotate(-.35deg); box-shadow: 0 22px 48px color-mix(in srgb, var(--topic-accent) 20%, transparent); }
.topic-card h3 { position: relative; z-index: 2; max-width: 82%; margin-top: auto; color: inherit; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.topic-number { position: relative; z-index: 2; width: fit-content; padding: 5px 9px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; font-size: .73rem; font-weight: 800; }
.topic-glyph { position: absolute; right: 18px; top: 10px; color: color-mix(in srgb, var(--topic-accent) 85%, transparent); font-size: clamp(4.8rem, 8vw, 7.4rem); font-weight: 800; line-height: 1; letter-spacing: -.12em; opacity: .92; transform: rotate(6deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.topic-card:hover .topic-glyph { transform: rotate(-2deg) scale(1.08); }
.topic-arrow { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: .82rem; font-weight: 750; }
.topic-arrow b { font-size: 1.2rem; }
.topic-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -72px; bottom: -105px; border: 1px solid color-mix(in srgb, var(--topic-accent) 36%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--topic-accent) 5%, transparent); }
.topic-base { grid-column: span 7; min-height: 300px; --topic-bg: linear-gradient(135deg, #6c4cff, #8b72ff); --topic-fg: #fff; --topic-accent: #d9d0ff; }
.topic-law { grid-column: span 5; min-height: 300px; --topic-bg: linear-gradient(145deg, #132b3d, #1b4350); --topic-fg: #fff; --topic-accent: #69d5d0; }
.topic-tax { --topic-bg: linear-gradient(145deg, #ffead8, #fff7ef); --topic-accent: #ed764c; }
.topic-aml { --topic-bg: linear-gradient(145deg, #dff5f2, #effaf8); --topic-accent: #168c91; }
.topic-storage { --topic-bg: linear-gradient(145deg, #eeeaff, #f8f6ff); --topic-accent: #6c4cff; }
.topic-exchange { grid-column: span 5; --topic-bg: linear-gradient(145deg, #17283c, #25214b); --topic-fg: #fff; --topic-accent: #9a85ff; }
.topic-global { grid-column: span 7; --topic-bg: linear-gradient(120deg, #146f78, #1b9b94); --topic-fg: #fff; --topic-accent: #bffbf1; }
.topic-docs { --topic-bg: linear-gradient(145deg, #e9f0f5, #f7fafb); --topic-accent: #527894; }
.topic-scam { --topic-bg: linear-gradient(145deg, #ffe8e3, #fff6f4); --topic-accent: #d85242; }
.topic-services { --topic-bg: linear-gradient(145deg, #fff0d8, #fff8ed); --topic-accent: #c78422; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-2); font-size: .78rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--text-2); font-size: .72rem; font-weight: 760; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.current, .badge.checked { background: var(--surface-accent); color: var(--success); }
.badge.attention { background: color-mix(in srgb, var(--warning) 11%, var(--surface)); color: var(--warning); }
.badge.demo { background: var(--surface-soft); color: var(--text-2); }
.article-card { min-height: 295px; }
.article-card .badge { margin-bottom: 18px; }
.article-card h3 { margin-bottom: 12px; }
.article-card p { margin: 0 0 24px; }
.article-card .meta { margin-top: auto; }
.featured-card { grid-column: span 2; background: radial-gradient(circle at 90% 0, rgba(139,114,255,.65), transparent 32%), linear-gradient(135deg, var(--brand), #211d45); color: #fff; }
.featured-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border: 1px solid rgba(119,201,199,.5); border-radius: 50%; box-shadow: 0 0 0 42px rgba(119,201,199,.06), 0 0 0 84px rgba(119,201,199,.04); }
.featured-card h3, .featured-card p, .featured-card .meta { color: inherit; }
.featured-card .meta, .featured-card p { opacity: .75; }
.featured-card .badge { background: rgba(255,255,255,.12); color: #fff; }

/* Bands, timeline, trust */
.band { overflow: hidden; background: radial-gradient(circle at 10% 100%, rgba(108,76,255,.36), transparent 28%), linear-gradient(125deg, var(--brand), #172f3e 58%, #242047); color: #dfe9ed; }
.band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -280px; top: -260px; border: 1px solid rgba(119,201,199,.25); border-radius: 50%; box-shadow: 0 0 0 74px rgba(119,201,199,.04), 0 0 0 148px rgba(119,201,199,.025); }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #77c9ca; }
.band .card { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); box-shadow: none; }
.band .card p, .band .meta { color: #acbec7; }
.timeline { position: relative; margin-top: 42px; }
.timeline::before { content: ""; position: absolute; left: 123px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
.timeline-item { display: grid; grid-template-columns: 100px 24px minmax(0,1fr); gap: 12px; padding: 0 0 34px; }
.timeline-date { color: var(--text-2); font-size: .82rem; font-weight: 700; }
.timeline-dot { position: relative; width: 11px; height: 11px; margin: 6px auto 0; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); z-index: 1; }
.timeline-copy h3 { margin-bottom: 8px; }
.timeline-copy p { margin: 0; color: var(--text-2); }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.trust-item { padding: 28px; background: var(--surface); }
.trust-item:nth-child(2), .trust-item:nth-child(6) { background: var(--surface-accent); }
.trust-item:nth-child(3) { background: var(--surface-warm); }
.trust-item b { display: block; margin-bottom: 8px; color: var(--brand); }

/* Catalog & filters */
.page-hero { position: relative; isolation: isolate; padding: clamp(50px, 7vw, 92px) 0 50px; border-bottom: 1px solid var(--border); overflow: hidden; background: radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--crypto) 22%, transparent), transparent 24%), linear-gradient(120deg, var(--bg) 0 72%, var(--crypto-soft) 72%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -170px; width: 410px; height: 410px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 50%; box-shadow: 0 0 0 58px color-mix(in srgb, var(--accent) 5%, transparent); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-hero .lead { margin-bottom: 0; }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.filter-panel { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.filter-group { margin-bottom: 22px; }
.filter-group label, .filter-title { display: block; margin-bottom: 8px; color: var(--brand); font-size: .8rem; font-weight: 750; }
.control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); }
.filter-mobile { display: none; margin-bottom: 18px; }
.catalog-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.result-count { color: var(--text-2); font-size: .88rem; }
.empty-state { display: none; padding: 64px 24px; border: 1px dashed var(--border); border-radius: var(--radius-md); text-align: center; }
.empty-state.visible { display: block; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-2); }
.pagination { display: flex; gap: 8px; margin-top: 30px; }
.pagination span, .pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }

/* Article */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; color: var(--text-2); font-size: .82rem; }
.breadcrumbs a { color: inherit; }
.article-head { padding: 54px 0 46px; border-bottom: 1px solid var(--border); }
.article-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(34px, 5vw, 70px); align-items: center; }
.article-head-copy { min-width: 0; }
.article-head h1 { max-width: 900px; font-size: clamp(2.4rem, 4.45vw, 4.35rem); }
.article-head .lead { margin: 23px 0; }
.article-head-art { position: relative; min-width: 0; aspect-ratio: 4/4.6; margin: 0; overflow: hidden; border-radius: 26px; background: #101522; box-shadow: 0 24px 58px rgba(16,21,34,.2), 18px 18px 0 color-mix(in srgb, var(--crypto) 12%, transparent); }
.article-head-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.14); border-radius: inherit; pointer-events: none; }
.article-head-art img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; transform: scale(1.03); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, var(--reading)) 220px; justify-content: center; gap: clamp(28px, 4vw, 64px); padding-block: 54px 90px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc strong { display: block; margin-bottom: 12px; color: var(--brand); font-size: .8rem; }
.toc a { display: block; padding: 6px 0; color: var(--text-2); font-size: .8rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--accent-strong); }
.article-body { min-width: 0; font-size: 1.07rem; line-height: 1.75; }
.article-body h2 { margin: 2.1em 0 .65em; font-size: clamp(1.7rem, 3vw, 2.35rem); scroll-margin-top: 100px; }
.article-body h3 { margin: 1.8em 0 .6em; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.25em; }
.article-body li + li { margin-top: .45em; }
.article-body img { width: 100%; border-radius: var(--radius-md); }
.article-figure { width: min(100%, 740px); margin: 38px auto 42px; transform: none; }
.article-figure img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: 0 22px 52px color-mix(in srgb, var(--brand) 16%, transparent); }
.article-figure figcaption { max-width: 680px; margin: 12px auto 0; color: var(--text-2); font-size: .8rem; line-height: 1.5; text-align: center; }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .92rem; }
.article-body th, .article-body td { padding: 13px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.article-body th { background: var(--surface-soft); color: var(--brand); }
.article-body blockquote { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface-accent); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-aside { position: sticky; top: 100px; align-self: start; }
.aside-card { padding: 17px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: .8rem; }
.aside-card strong { color: var(--brand); }
.aside-card p { margin: 8px 0 0; color: var(--text-2); }
.notice { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.notice strong { color: var(--brand); }
.notice.warning { border-left: 4px solid var(--warning); }
.notice.critical { border-left: 4px solid var(--critical); }
.notice.info { border-left: 4px solid var(--accent); }
.mobile-toc { display: none; margin: 20px 0; }
.mobile-toc summary { cursor: pointer; font-weight: 750; color: var(--brand); }
.source-list { padding: 0; list-style: none; }
.source-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }

/* Forms, search, menu */
.newsletter { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: 50px; align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-lg); background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--crypto) 24%, transparent), transparent 30%), linear-gradient(125deg, var(--surface-accent), var(--crypto-soft)); border: 1px solid color-mix(in srgb, var(--crypto) 22%, var(--border)); }
.newsletter::after { content: "@"; position: absolute; right: -24px; bottom: -70px; color: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 220px; font-weight: 800; line-height: 1; pointer-events: none; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.newsletter-form label { grid-column: 1/-1; color: var(--text-2); font-size: .82rem; }
.form-message { grid-column: 1/-1; min-height: 24px; margin: 0; color: var(--text-2); font-size: .82rem; }
.dialog { position: fixed; inset: 0; z-index: 90; display: none; place-items: start center; padding: 10vh 20px 20px; background: rgba(8, 18, 24, .52); backdrop-filter: blur(8px); }
.dialog.open { display: grid; }
.dialog-panel { width: min(720px, 100%); max-height: 78vh; overflow: auto; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.dialog-head h2 { font-size: 1.45rem; }
.search-results { display: grid; gap: 8px; margin-top: 14px; }
.search-result { padding: 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; }
.search-result:hover { border-color: var(--accent); }
.search-result small { display: block; color: var(--text-2); }
.mobile-menu { position: fixed; inset: 70px 0 0; z-index: 45; display: none; padding: 22px; background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--brand); font-size: 1.15rem; font-weight: 700; text-decoration: none; }

/* Checklist, services, glossary */
.checklist { counter-reset: steps; display: grid; gap: 12px; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.check-item input { width: 22px; height: 22px; accent-color: var(--accent); }
.check-item.checked { background: var(--surface-accent); }
.check-item strong { display: block; color: var(--brand); }
.check-item p { margin: 4px 0 0; color: var(--text-2); }
.service-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.service-fact { padding: 18px; background: var(--surface); }
.service-fact small { display: block; color: var(--text-2); }
.service-fact strong { color: var(--brand); }
.glossary-list { border-top: 1px solid var(--border); }
.term { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.term h3 { font-size: 1.15rem; }
.term p { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { padding: 64px 0 30px; background: var(--brand); color: #c5d2d8; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo .logo-k { stroke: #f4f6fa; }
.site-footer .brand-logo .logo-b { stroke: #69d5d0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-grid h3 { margin-bottom: 14px; color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-grid p { max-width: 360px; }
.footer-grid a { display: block; margin: 8px 0; color: #c5d2d8; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; }

/* Skeleton and 404 */
.skeleton { overflow: hidden; background: linear-gradient(90deg,var(--surface-soft),var(--surface),var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; color: transparent; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .07s; }
.grid > .reveal:nth-child(3) { transition-delay: .14s; }
.grid > .reveal:nth-child(4) { transition-delay: .21s; }
.error-page { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.error-code { color: var(--accent); font-size: clamp(5rem, 18vw, 12rem); font-weight: 820; line-height: .8; letter-spacing: -.08em; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-button { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .registry-visual { min-height: 430px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topic-card { grid-column: span 6; }
  .topic-base, .topic-global { grid-column: span 7; }
  .topic-law, .topic-exchange { grid-column: span 5; }
  .article-layout { grid-template-columns: minmax(0, var(--reading)); }
  .article-head-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 30px; }
  .article-head h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
  .toc, .article-aside { display: none; }
  .mobile-toc { display: block; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2,1fr); }
  .footer-grid > :last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .container, .reading { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-name { display: none; }
  .mobile-menu { inset-block-start: 64px; }
  .section-head, .newsletter { grid-template-columns: 1fr; }
  .section-head { align-items: start; gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card, .topic-base, .topic-law, .topic-exchange, .topic-global { grid-column: auto; min-height: 220px; }
  .topic-glyph { font-size: 5.5rem; }
  .featured-card { grid-column: auto; }
  .hero { padding-top: 42px; }
  .hero { background: radial-gradient(circle at 92% 18%, rgba(108,76,255,.52), transparent 28%), radial-gradient(circle at 15% 92%, rgba(22,140,145,.38), transparent 30%), linear-gradient(160deg, #101a29, #211d45); }
  .hero::after { background-size: 50px 50px; }
  .registry-visual { min-height: auto; }
  .registry-row { grid-template-columns: 34px 1fr; padding: 17px; }
  .registry-status { grid-column: 2; width: fit-content; }
  .registry-stamp { display: none; }
  .registry-visual { transform: none; box-shadow: var(--shadow-lg), 10px 10px 0 color-mix(in srgb, var(--warm) 16%, transparent); }
  .registry-visual > * { transform: none; }
  .trust-list { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 18px minmax(0,1fr); gap: 12px; }
  .timeline-date { grid-column: 2; }
  .timeline-dot { grid-column: 1; grid-row: 1/3; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; }
  .filter-panel.open { display: block; }
  .filter-mobile { display: inline-flex; }
  .catalog-top { flex-wrap: wrap; align-items: stretch; }
  .catalog-top .control { width: 100%; max-width: none !important; }
  .article-head { padding-top: 34px; }
  .article-head-grid { grid-template-columns: 1fr; }
  .article-head-art { width: 100%; aspect-ratio: 16/9; border-radius: 16px; box-shadow: 0 18px 40px rgba(16,21,34,.16); }
  .article-head-art img { object-position: 70% center; transform: none; }
  .article-layout { padding-top: 30px; }
  .article-body { font-size: 1rem; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-figure { width: 100%; margin-block: 30px 34px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form label, .form-message { grid-column: auto; }
  .service-facts { grid-template-columns: 1fr; }
  .term { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  h1 { font-size: 2.35rem; }
  .icon-button { width: 42px; height: 42px; }
  .card { padding: 20px; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .article-aside, .toc, .mobile-toc, .newsletter { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; padding: 0; }
}
