/* =========================================================
   Genius Trail — minimal dark
   One accent (Telegram blue), hairline borders, no gradients.
   ========================================================= */
:root {
  --bg: #0A0B0D;
  --bg-1: #111317;
  --bg-2: #181B20;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ECEEF1;
  --text-2: #A9B0B9;
  --muted: #747C86;
  --accent: #2AABEE;
  --accent-hover: #47B8F2;
  --accent-soft: rgba(42, 171, 238, .12);
  --green: #3DD68C;
  --red: #FF6B6B;
  --amber: #F5B84A;
  /* Telegram dark chat */
  --tg-bg: #0E1621;
  --tg-head: #17212B;
  --tg-in: #182533;
  --tg-out: #2B5278;
  --tg-meta: #6D8196;
  --r: 12px;
  --r-lg: 18px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
s { color: var(--muted); }
::selection { background: rgba(42, 171, 238, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (max-width: 480px) { .container { width: calc(100% - 36px); } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font: 500 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo-text { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.nav { display: none; }
.header-cta { margin-left: auto; display: none; }
.burger { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .2s; }
.nav-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-open .nav {
  display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
  padding: 8px 18px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-open .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.nav-open .nav .btn { margin-top: 16px; height: 48px; }
@media (min-width: 960px) {
  .burger, .nav-cta-mobile { display: none !important; }
  .nav { display: flex; gap: 4px; margin-left: 28px; }
  .nav a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; transition: color .15s; }
  .nav a:hover, .nav a[aria-current] { color: var(--text); }
  .header-cta { display: inline-flex; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 4.5vw, 52px); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-head-row > div { max-width: 640px; }
.eyebrow { margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sec-head h2, .final h2 { font-size: clamp(1.75rem, 1.8vw + 1rem, 2.5rem); letter-spacing: -.03em; text-wrap: balance; }
.sec-sub { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.more, .link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; }
.more .ic, .link .ic { width: 16px; height: 16px; transition: transform .15s; }
.more:hover .ic, .link:hover .ic { transform: translateX(3px); }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 6vw, 80px); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: 13.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 24px; font-size: clamp(2.4rem, 3vw + 1.1rem, 4rem); letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.accent { color: var(--accent); }
.lead { margin-top: 22px; max-width: 32em; color: var(--text-2); font-size: clamp(1.02rem, .3vw + .98rem, 1.16rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.micro { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }

/* phone demo — Telegram dark theme */
.hero-visual { display: grid; place-items: center; }
.phone { position: relative; width: 290px; height: 590px; padding: 9px; border-radius: 46px; background: #000; border: 1px solid var(--line-2); }
.ph-screen { position: relative; height: 100%; overflow: hidden; border-radius: 37px; display: flex; flex-direction: column; background: var(--tg-bg); }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 4px; font-size: 13.5px; background: var(--tg-head); }
.ph-status::after { content: ""; position: absolute; top: 9px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 20px; background: #000; }
.ph-sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.ph-sig i { width: 3px; border-radius: 1px; background: var(--text); }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 6px; } .ph-sig i:nth-child(3) { height: 8px; } .ph-sig i:nth-child(4) { height: 10px; }
.ph-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 12px 10px; background: var(--tg-head); }
.ph-back { color: var(--accent); }
.ph-back .ic { width: 22px; height: 22px; transform: rotate(90deg); }
.ph-who { text-align: center; line-height: 1.25; }
.ph-who b { display: block; font-size: 14.5px; font-weight: 600; }
.ph-who small { font-size: 12px; color: var(--accent); }
.ph-ava { justify-self: end; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #E17B4A; color: #fff; font-size: 14px; font-weight: 600; }
.ph-chat { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 10px 8px; }
.b { max-width: 80%; padding: 7px 11px; border-radius: 16px; background: var(--tg-in); color: #fff; font-size: 14px; line-height: 1.35; }
.b time { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--tg-meta); }
.b.in { align-self: flex-start; border-bottom-left-radius: 5px; }
.b.out { align-self: flex-end; background: var(--tg-out); border-bottom-right-radius: 5px; }
.b.out time { color: #8FB2D6; }
.b-typing { display: none; gap: 4px; padding: 12px 14px; }
.b-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--tg-meta); animation: typing 1.2s infinite; }
.b-typing i:nth-child(2) { animation-delay: .15s; } .b-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .4; } 30% { opacity: 1; } }
.b-target { display: none; }
.demo.s-typing .b-typing { display: flex; }
.demo.s-msg .b-target, .demo.s-del .b-target { display: block; animation: pop .3s ease-out; }
.demo.s-del .b-target { animation: vanish .7s ease-in forwards; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } }
@keyframes vanish { 0%, 40% { opacity: 1; filter: none; } 100% { opacity: 0; filter: blur(4px); transform: translateY(-4px); } }
.poof { position: absolute; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: var(--text-2); font-size: 11.5px; opacity: 0; transition: opacity .3s; }
.demo.s-del .poof { opacity: 1; }
.ph-input { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 12px; padding: 0 14px; height: 38px; border-radius: 19px; background: var(--tg-head); color: var(--tg-meta); font-size: 14px; }
.push {
  position: absolute; z-index: 5; top: 42px; left: 8px; right: 8px;
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px;
  border-radius: 18px; background: rgba(36, 40, 47, .96); border: 1px solid var(--line-2);
  transform: translateY(-170%); transition: transform .5s cubic-bezier(.2, .9, .3, 1.1);
}
.demo.s-push .push { transform: none; }
.push-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.push > div { min-width: 0; line-height: 1.3; }
.push-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.push-top b { color: var(--text); font-weight: 600; }
.push-title { font-size: 13.5px; font-weight: 600; }
.push-text { font-size: 13.5px; color: var(--text-2); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px 0 0; }
.facts b { font-size: clamp(1.25rem, .8vw + 1rem, 1.6rem); font-weight: 600; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
@media (max-width: 680px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .phone { width: 270px; height: 550px; }
}

/* =========================================================
   HAIRLINE GRID (features, steps)
   ========================================================= */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cell { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--bg); }
.cell h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cell p { color: var(--text-2); font-size: 15px; }
.cell .more { margin-top: auto; padding-top: 6px; }
.cell-ic { color: var(--accent); margin-bottom: 8px; }
.cell-ic .ic { width: 22px; height: 22px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.step-n { margin-bottom: 14px; color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.path { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.5; }
.note { color: var(--muted) !important; font-size: 14px !important; }
.copy-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 14.5px; cursor: pointer; transition: border-color .15s; }
.copy-chip:hover { border-color: var(--accent); }
.copy-chip .ic { width: 16px; height: 16px; color: var(--muted); }
.copy-ok { position: absolute; left: 100%; margin-left: 10px; font-style: normal; font-size: 13.5px; color: var(--green); white-space: nowrap; }
.aside-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--text-2); font-size: 15px; }
.aside-note .ic { color: var(--amber); }

/* =========================================================
   SECURITY
   ========================================================= */
.split { display: grid; gap: 40px; }
.split .sec-head { margin-bottom: 0; }
.rows li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { padding-top: 0; }
.row-ic { color: var(--accent); padding-top: 2px; }
.rows h3 { font-size: 16px; font-weight: 600; }
.rows p { margin-top: 4px; color: var(--text-2); font-size: 15px; }
@media (min-width: 960px) { .split { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

.compare { position: relative; margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
.compare table { width: 100%; min-width: 600px; border-collapse: collapse; }
.compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { color: var(--muted); font-weight: 500; font-size: 13.5px; vertical-align: bottom; }
.compare tbody th { text-align: left; font-weight: 400; color: var(--text); }
.compare .c-gt { background: var(--bg-1); }
.compare thead .c-gt { color: var(--text); font-weight: 600; }
.m { display: inline-grid; place-items: center; }
.m .ic { width: 18px; height: 18px; stroke-width: 2.25; }
.m-yes { color: var(--green); }
.m-no { color: var(--red); opacity: .85; }
.m-maybe { color: var(--amber); font-size: 13.5px; }
@media (max-width: 679px) {
  .compare table { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 12px 6px; font-size: 13.5px; }
  .compare thead th { font-size: 11.5px; line-height: 1.3; }
  .compare th[scope="row"] { width: 38%; padding-left: 14px; }
  .m-maybe { font-size: 12px; }
}

/* =========================================================
   PRICING
   ========================================================= */
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-1); }
.plan-name { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.plan-price b { font-size: clamp(2.2rem, 1.4vw + 1.7rem, 2.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-sub { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.plan .btn { margin-top: auto; }
.plan-best { border-color: rgba(42, 171, 238, .55); }
.plan-notes { display: grid; gap: 10px; margin-top: 24px; }
.plan-notes li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.plan-notes .ic { color: var(--muted); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   LINK LISTS (guides)
   ========================================================= */
.link-list { display: grid; border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--text); transition: color .15s; }
.link-list a > .ic:first-child { color: var(--muted); }
.link-list a > .ic:last-child { margin-left: auto; color: var(--muted); transition: transform .15s, color .15s; }
.link-list a span { font-size: 16px; }
.link-list a:hover { color: var(--accent); }
.link-list a:hover > .ic:last-child { transform: translateX(3px); color: var(--accent); }
.link-list-rich span { display: grid; gap: 2px; }
.link-list-rich b { font-weight: 500; }
.link-list-rich small { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .link-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { max-width: 820px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-ic, .faq-list summary > .ic { color: var(--muted); flex: none; transition: transform .2s; }
.faq-ic .ic { width: 18px; height: 18px; }
.faq-list details[open] .faq-ic, .faq-list details[open] summary > .ic { transform: rotate(180deg); }
.ans { padding: 0 0 22px; max-width: 64ch; color: var(--text-2); }
.faq-more { margin-top: 28px; color: var(--text-2); font-size: 15px; }

/* =========================================================
   FINAL
   ========================================================= */
.final { padding-block: clamp(80px, 10vw, 128px); border-top: 1px solid var(--line); }
.final-inner { text-align: center; }
.final h2 { max-width: 16em; margin-inline: auto; }
.final-inner > p { margin-top: 14px; color: var(--text-2); font-size: 17px; }
.final .cta-row { justify-content: center; }
.final-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px !important; font-size: 14.5px; }
.final-links a { color: var(--text-2); }
.final-links a:hover { color: var(--text); }

/* =========================================================
   ARTICLE PAGES
   ========================================================= */
.art-hero { padding: 24px 0 clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 13.5px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.art-hero-grid { margin-top: 40px; }
.art-hero h1 { max-width: 18em; font-size: clamp(2rem, 1.8vw + 1.3rem, 3rem); letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.art-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.art-meta .ic { width: 16px; height: 16px; }
.art-lead { margin-top: 16px; max-width: 40em; color: var(--text-2); font-size: 17px; }
.art-layout { display: grid; gap: 48px; padding-block: clamp(40px, 5vw, 56px) 24px; }
.art-body { max-width: 700px; min-width: 0; color: var(--text-2); font-size: 17px; line-height: 1.75; }
.art-body > p, .art-body > ul, .art-body > ol { margin-top: 16px; }
.art-body h2 { margin-top: 48px; font-size: clamp(1.35rem, .6vw + 1.15rem, 1.65rem); letter-spacing: -.025em; scroll-margin-top: calc(var(--header-h) + 20px); }
.art-body h2 + p, .art-body h2 + ul, .art-body h2 + ol { margin-top: 12px; }
.art-body b, .art-body strong { color: var(--text); font-weight: 600; }
.art-body > ul li { position: relative; margin-top: 10px; padding-left: 22px; }
.art-body > ul li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.art-steps { counter-reset: st; display: grid; gap: 12px; }
.art-steps li { counter-increment: st; position: relative; padding-left: 40px; min-height: 28px; }
.art-steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 500; line-height: 1; }
.art-body code { padding: 2px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: .92em; }
.answer { padding: 20px 22px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); }
.answer-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.answer-label .ic { width: 15px; height: 15px; }
.answer p:last-child { color: var(--text); font-size: 16.5px; }
.toc { margin-top: 20px; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.toc-title { margin-bottom: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.toc ol { counter-reset: toc; display: grid; gap: 4px; }
.toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 15px; }
.toc li::before { content: counter(toc) "."; min-width: 1.4em; color: var(--muted); }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--accent); }
.art-fig { margin: 28px 0 0; }
.art-fig figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; text-align: center; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: var(--tg-bg); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.mc-msg { display: flex; flex-direction: column; gap: 3px; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 16px 5px; background: var(--tg-in); color: #fff; }
.mc-bot { border-left: 2px solid var(--accent); }
.mc-out { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--tg-out); font-size: 18px; }
.mc-tag { font-size: 12.5px; font-weight: 600; }
.mc-coral { color: #FF8A80; } .mc-sun { color: var(--amber); } .mc-mint { color: var(--green); } .mc-lilac { color: #A99BFF; }
.mc-from { font-size: 12.5px; color: var(--tg-meta); }
.mc-was { color: var(--tg-meta); text-decoration: line-through; }
.mc-photo { position: relative; width: 140px; height: 100px; padding: 0; background: #3A3F6E; }
.mc-once { position: absolute; right: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; }
.mc-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.mc-wave i { width: 3px; height: 40%; border-radius: 2px; background: var(--accent); }
.mc-wave i:nth-child(3n) { height: 85%; } .mc-wave i:nth-child(3n+1) { height: 60%; }
.mini-settings { display: grid; gap: 8px; max-width: 380px; margin-inline: auto; padding: 18px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); font-size: 15px; }
.mini-settings .ms-crumbs { text-align: center; color: var(--muted); font-size: 13px; }
.mini-settings .ms-field { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--accent); color: var(--text); }
.mini-settings .ms-opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); color: var(--text); }
.mini-settings .ms-opt::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); }
.mini-settings .ms-opt.on::before { border: 4.5px solid var(--accent); }
.mini-settings .ms-btn { padding: 10px; border-radius: 10px; background: var(--accent); color: #fff; text-align: center; font-weight: 500; }
.art-cta { margin-top: 48px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-1); }
.art-cta-title { color: var(--text) !important; font-size: 18px; font-weight: 600; }
.art-cta p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }
.art-cta .btn { margin-top: 16px; }
.art-faq { margin-top: 8px; }
.art-faq .faq-list { margin-top: 16px; }
.art-side { display: grid; gap: 16px; align-content: start; }
.side-card { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.side-card img { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; }
.side-title { margin-bottom: 6px !important; color: var(--text) !important; font-size: 16px; font-weight: 600; }
.side-card p { margin-bottom: 16px; color: var(--text-2); font-size: 14.5px; }
.side-note { margin: 10px 0 0 !important; color: var(--muted) !important; font-size: 13px !important; text-align: center; }
.side-links { display: grid; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.side-links a { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--text); }
@media (min-width: 1000px) {
  .art-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; }
  .art-side { position: sticky; top: calc(var(--header-h) + 24px); }
}
.related { margin-top: 48px; }
.related h2 { margin-bottom: 24px; font-size: clamp(1.4rem, .8vw + 1.1rem, 1.75rem); letter-spacing: -.025em; }
.section.hub { border-top: 0; padding-top: clamp(40px, 5vw, 56px); }
.hub .art-cta { margin-top: 40px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--text-2); }
.footer-grid { display: grid; gap: 32px; }
.f-brand p { margin-top: 14px; max-width: 26em; color: var(--muted); font-size: 14.5px; }
.f-col { display: flex; flex-direction: column; gap: 8px; }
.f-title { margin-bottom: 4px; color: var(--muted); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.f-col .f-title a { color: inherit; font-size: inherit; }
.f-col a { width: fit-content; color: var(--text-2); font-size: 14.5px; }
.f-col a:hover { color: var(--text); }
.f-legal { display: grid; gap: 6px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.f-legal a { color: var(--text-2); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.5fr 1fr; } }

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(24, 27, 32, .96); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(160%); transition: transform .35s ease;
}
.mobile-cta span { line-height: 1.25; }
.mobile-cta b { display: block; font-size: 14px; font-weight: 600; }
.mobile-cta small { color: var(--muted); font-size: 12.5px; }
.mobile-cta.show { transform: none; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

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