/* Раздел «Как работать с ИИ-агентом» — moi-agent.ru/blog/.
   Основа: дизайн-система лендинга landing_moi_agent_v2.html (токены, шапка, кнопки, подвал
   скопированы без изменений). Ниже — только компоненты витрины и статьи. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/landing/fonts/inter-var-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/landing/fonts/inter-var-cyrillic.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: 100 900; font-display: swap;
  src: url("/static/landing/fonts/inter-var-latin-ext.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/landing/fonts/inter-var-latin.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 {
  --ink: #0b1220; --text: #3f4a5f; --muted: #6e7891; --line: #e6e9f2;
  --indigo: #4f46e5; --indigo-strong: #4338ca; --indigo-soft: #eef2ff; --ok: #10b981;
  --bg1: #fcfcfd; --bg2: #f6f6f8; --sidebar: #f3f3f5; --surface: #ffffff; --surface-2: #f0f0f2;
  --code-bg: #0b1220; --glass: rgba(252, 252, 253, 0.82);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px -20px rgba(15, 23, 42, 0.28);
  --r-card: 16px; --r-btn: 12px; --r-big: 22px; --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ask-line: rgba(79, 70, 229, 0.22);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ececf1; --text: #c6c8d2; --muted: #8b8e9c; --line: #2c2c37;
  --indigo: #6366f1; --indigo-strong: #a5b4fc; --indigo-soft: #262636; --ok: #34d399;
  --bg1: #151519; --bg2: #0f0f13; --sidebar: #1a1a21; --surface: #22222c; --surface-2: #2a2a35;
  --code-bg: #1b1b24; --glass: rgba(21, 21, 26, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -24px rgba(0, 0, 0, 0.7);
  --ask-line: rgba(99, 102, 241, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; overflow-x: clip; background: var(--bg2); color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.025em; }
::selection { background: rgba(99, 102, 241, 0.2); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--indigo); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Кнопки (как в кабинете и на лендинге) ── */
.btn {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-btn); background: var(--indigo); color: #fff;
  cursor: pointer; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; padding: 11px 20px;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { background: var(--indigo-strong); }
:root[data-theme="dark"] .btn:hover { background: #7c7ff5; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* ── Шапка ── */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.topbar-inner { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.brand-mark { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--indigo); white-space: nowrap; }
:root[data-theme="dark"] .brand-mark { color: var(--indigo-strong); }
.footer .brand-mark { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a { border-radius: 10px; padding: 8px 9px; white-space: nowrap; transition: background-color 0.16s var(--ease), color 0.16s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--ink); background: var(--surface-2); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.topbar .btn { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.topbar .btn.login-top { border-color: var(--line); }
.topbar .btn.login-top:hover { background: var(--surface-2); }
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 2px; }
.theme-toggle button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] { background: var(--indigo-soft); color: var(--indigo-strong); }
.theme-toggle svg { width: 15px; height: 15px; }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 16px; height: 2px; border-radius: 999px; background: currentColor; content: ""; }

/* ── Подвал и бейджи сторов — буквально с лендинга (landing_moi_agent_v2.html) ── */
.footer { padding: 56px 0 40px; background: var(--bg2); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 620; }
.footer li { padding: 4px 0; }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 550; padding: 8px 12px;
  transition: border-color 0.16s var(--ease);
}
.store-badge:hover { border-color: var(--indigo); }
.store-badge svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ══ Витрина раздела ══════════════════════════════════════════════ */
.eyebrow { display: inline-block; color: var(--indigo-strong); font-size: 12.5px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 12px; }
.hero-blog { padding: 56px 0 28px; background: linear-gradient(180deg, var(--bg1), var(--bg2)); border-bottom: 1px solid var(--line); }
.hero-blog.compact { padding: 32px 0 28px; }
.hero-blog.compact .crumbs { margin-bottom: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 48px; align-items: end; }
.hero-blog h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; font-weight: 640; text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: 18px; line-height: 1.55; max-width: 58ch; }
.search { margin-top: 24px; display: flex; align-items: center; gap: 10px; max-width: 620px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; box-shadow: var(--shadow);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font-size: 16px; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.start { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px 18px; box-shadow: var(--shadow); }
.start-title { font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; }
.start ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.start li { counter-increment: s; display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); }
.start li:first-child { border-top: 0; }
.start li::before { content: counter(s); flex: 0 0 24px; height: 24px; margin-top: 11px; border-radius: 8px; background: var(--indigo-soft); color: var(--indigo-strong); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.start a { flex: 1; display: block; padding: 10px 0; color: var(--ink); font-weight: 560; font-size: 15px; line-height: 1.35; }  /* вся строка — цель касания */
.start a:hover { color: var(--indigo-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-blog.compact .chips { margin-top: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background-color 0.16s var(--ease); }
.chip:hover { border-color: var(--indigo); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg1); border-color: var(--ink); }
:root[data-theme="dark"] .chip.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.catalog { padding: 8px 0 72px; }
.rubric { padding: 40px 0 12px; }
.rubric + .rubric { border-top: 1px solid var(--line); }
.page-rubric .rubric { padding-top: 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 640; scroll-margin-top: 90px; }
.rubric-lead { margin-top: 6px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.more { flex: 0 0 auto; padding: 8px 0; color: var(--indigo-strong); font-weight: 560; font-size: 14.5px; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--indigo) 45%, var(--line)); }
.card-thumb { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-rubric { font-size: 12.5px; font-weight: 600; color: var(--indigo-strong); }
.card-title { color: var(--ink); font-size: 17px; font-weight: 620; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.card-desc { color: var(--text); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 13px; }
.empty { padding: 56px 0; text-align: center; color: var(--muted); font-size: 16px; }
.empty a { color: var(--indigo-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ══ Статья ═══════════════════════════════════════════════════════ */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.crumbs a { display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current] { color: var(--text); }
.crumbs li[aria-current] { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.article { padding: 28px 0 24px; }
.article-head { max-width: 760px; margin: 22px 0 34px; }
.article-head .eyebrow { margin-bottom: 14px; }
.article-head .eyebrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; font-weight: 640; text-wrap: balance; }
.article-meta { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 64px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14px; padding-top: 6px; }
.toc-title { font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease); }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left-color: var(--indigo); }

.prose { font-size: 17.5px; line-height: 1.68; color: var(--text); min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose p.lead { font-size: 20px; line-height: 1.55; color: var(--ink); }
.prose h2 { margin-top: 44px; font-size: 26px; line-height: 1.22; font-weight: 640; scroll-margin-top: 90px; text-wrap: balance; }
.prose h3 { margin-top: 30px; font-size: 20px; line-height: 1.3; font-weight: 620; }
.prose strong { color: var(--ink); font-weight: 640; }
.prose a { color: var(--indigo-strong); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--indigo-strong) 45%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose figure { margin: 26px 0 0; }
.prose figure + figure { margin-top: 16px; }
.prose figure a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lift); background: var(--surface); }
.prose figure img { width: 100%; height: auto; cursor: zoom-in; }
.prose .caption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.ask { margin-top: 22px; background: var(--indigo-soft); border: 1px solid var(--ask-line); border-radius: 16px; padding: 14px 18px 16px; }
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ask-label { font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--indigo-strong); }
.copy { min-height: 34px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 4px 12px; font-size: 12.5px; font-weight: 560; cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease); }
.copy:hover { color: var(--ink); border-color: var(--indigo); }
.copy.is-done { color: var(--ok); border-color: var(--ok); }
.ask-text { color: var(--ink); font-size: 17px; line-height: 1.55; }

.file { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 14px 9px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 15px; font-weight: 550; vertical-align: middle;
  transition: border-color 0.16s var(--ease); }
.prose a.file { color: var(--ink); text-decoration: none; }
.file:hover { border-color: var(--indigo); }
.file-kind { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--indigo-strong); background: var(--indigo-soft); border-radius: 6px; padding: 3px 7px; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 500; }

.table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 620; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td a { overflow-wrap: anywhere; }

.prose .cta { margin-top: 36px; }
.prose .cta .btn { color: #fff; text-decoration: none; max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.16s var(--ease); }
.pager-item.next { text-align: right; align-items: flex-end; }
.pager-item:hover { border-color: var(--indigo); }
.pager-item.empty { border: 0; background: transparent; }
.pager-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; }
.pager-title { color: var(--ink); font-weight: 560; font-size: 15px; line-height: 1.35; }

.related { padding: 16px 0 72px; }
.related .section-head h2 { font-size: 24px; }

.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lb::backdrop { background: rgba(11, 18, 32, 0.84); backdrop-filter: blur(4px); }
.lb img { max-width: min(96vw, 1400px); max-height: 94vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lb-close { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 18px; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ── Адаптив ── */
@media (max-width: 1080px) {
  .topbar .btn.cta-top { display: none; }
  .article-grid { grid-template-columns: minmax(0, 760px); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 980px) {
  .nav { position: fixed; inset: 60px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    border-bottom: 1px solid var(--line); background: var(--bg1); padding: 12px 20px 20px; font-size: 16px; }
  body.menu-open .nav { display: flex; }
  .nav a { padding: 12px; }
  .menu-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-blog { padding: 36px 0 22px; }
  .hero-sub { font-size: 16.5px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .section-head { display: block; }
  .more { display: inline-block; margin-top: 8px; }
  .article-head { margin: 16px 0 26px; }
  .prose { font-size: 17px; }
  .prose p.lead { font-size: 18.5px; }
  .prose h2 { font-size: 23px; margin-top: 36px; }
  .prose figure a { border-radius: 10px; }
  .ask { padding: 12px 14px 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager-item.next { text-align: left; align-items: flex-start; }
  .pager-item.empty { display: none; }
  .crumbs li[aria-current] { max-width: 100%; }
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .chip, .copy, .file, .pager-item { transition: none; }
  .card:hover { transform: none; }
}
