/* Внутренние страницы: словарь, статьи. Токены совпадают с главной. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/onest-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; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/unbounded-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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-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; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff; --bg2: #f6f6f4; --surface: #f4f4f2; --surface2: #e9e9e6;
  --border: rgba(11,11,11,0.10); --border-strong: rgba(11,11,11,0.24);
  --accent: #ffd400; --accent-ink: #0b0b0b; --accent-text: #0b0b0b; --focus: #0b0b0b; --text: #0b0b0b; --muted: #55554f;
  --font-sans: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --glow: 255, 212, 0;
  --font-display: 'Unbounded', 'Onest', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { font-family: var(--font-sans); background-color: var(--bg);  color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #0b0b0b; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--border-strong); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent-text); text-decoration-color: var(--accent); }
img { max-width: 100%; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .875rem; text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* Nav */
nav.site-nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 12px 40px; background: rgba(11, 11, 11, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.nav-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1; color: var(--text); text-decoration: none; border-radius: 11px; }
.nav-logo:hover { color: var(--text); }
.nav-logo b { color: var(--accent-text); font-weight: 800; }
.nav-logo img { display: block; width: 40px; height: 40px; border-radius: 11px; transition: transform .3s var(--ease); }
.nav-logo:hover img { transform: rotate(-6deg) scale(1.05); }
nav.site-nav:has(.burger.open) { z-index: 160; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.nav-cta:hover { background: #ffe04d; color: var(--accent-ink); transform: translateY(-1px); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; background: none; border: none; padding: 8px; z-index: 200; }
.burger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(11, 11, 11, 0.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding: 0 32px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; }
.mobile-menu a:hover { color: var(--text); }

/* Dark zones on a light page: header bar, title band, footer, cookie banner */
nav.site-nav, .mobile-menu, .page-top, footer.site-footer, .cookie-banner { --bg: #0b0b0b; --bg2: #101010; --surface: #151515; --surface2: #1f1f1f; --border: rgba(255,255,255,0.08); --border-strong: rgba(255,255,255,0.16); --text: #ffffff; --muted: #a6a6a6; --accent-text: var(--accent); --focus: var(--accent); color: var(--text); }
.page-top, footer.site-footer { background: #0b0b0b; }
.wrap.page-body { padding-top: 56px; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.crumbs { padding: 34px 24px 0; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span { margin: 0 8px; opacity: .6; }
.tag { color: var(--accent-text); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; margin-bottom: 14px; }
.page-hero { padding: 28px 0 56px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.14; margin-bottom: 18px; max-width: 24ch; }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.meta-line { margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Article */
.article-grid { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 72px; padding-bottom: 72px; align-items: start; }
.toc { position: sticky; top: 96px; border-left: 1px solid var(--border-strong); padding-left: 18px; }
.toc p { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); margin-bottom: 12px; }
.toc ol { list-style: none; }
.toc li { margin-bottom: 1px; }
.toc a { color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; display: block; padding: 6px 0; }
.toc a:hover { color: var(--text); }
.prose { min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 8px; }
.prose p { color: var(--muted); font-size: 1.04rem; margin-bottom: 16px; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 6px 0 20px 0; padding-left: 0; list-style: none; }
.prose li { position: relative; color: var(--muted); font-size: 1.02rem; padding: 7px 0 7px 26px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 1px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .5em; font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); }
.prose a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.prose pre { margin: 20px 0 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; font-size: .86rem; line-height: 1.7; white-space: pre; }
.prose a.term { text-decoration-style: dotted; text-decoration-color: var(--accent); }
.note { margin: 24px 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.note::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 14px; }
.note p { margin: 0; color: var(--text); font-size: 1rem; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--border-strong); }
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 540px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; color: var(--accent-text); background: var(--surface); }
tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 500; }

.author { display: flex; gap: 20px; align-items: center; margin-top: 56px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 18px 6px; }
.author img { width: 76px; height: 76px; border-radius: 16px 16px 16px 5px; object-fit: cover; flex-shrink: 0; }
.author b { display: block; font-size: 1.05rem; font-weight: 600; }
.author p { color: var(--muted); font-size: .95rem; margin: 2px 0 8px; line-height: 1.55; }
.author a { font-size: .9rem; }
.share { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.share-label { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); margin-bottom: 14px; }
.prose .share-label { color: var(--muted); font-size: .78rem; margin-bottom: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 500 .92rem/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.prose a.share-btn { text-decoration: none; }
.share-btn svg { flex-shrink: 0; }
.share-btn:hover { border-color: var(--accent); background: var(--bg); color: var(--text); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn.done { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.share-btn[hidden] { display: none; }
.prose .share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.prose .share-status.error { position: static; width: auto; height: auto; clip-path: none; white-space: normal; margin: 12px 0 0; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.next { margin-top: 24px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.next a { display: block; box-shadow: 0 1px 2px rgba(11,11,11,0.06); padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.next a:hover { border-color: var(--accent); transform: translateY(-2px); }
.next small { display: block; font-family: var(--font-mono); font-size: .76rem; color: var(--accent-text); margin-bottom: 4px; }
.next span { color: var(--text); font-weight: 500; line-height: 1.35; display: block; }

/* Articles hub */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding-bottom: 72px; }
.card { display: flex; box-shadow: 0 1px 2px rgba(11,11,11,0.06); flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 18px 6px; text-decoration: none; transition: border-color .2s, transform .35s var(--ease); }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card small { font-family: var(--font-mono); font-size: .78rem; color: var(--accent-text); margin-bottom: 14px; }
.card h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.card .more { margin-top: auto; color: var(--text); font-weight: 600; font-size: .92rem; }
.card .more::after { content: ' →'; color: var(--accent-text); }

/* Glossary */
.g-tools { position: sticky; top: 64px; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.g-search { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px 16px; max-width: 560px; }
.g-search svg { flex-shrink: 0; color: var(--muted); }
.g-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: 1rem; padding: 11px 0; }
.g-search:focus-within { border-color: var(--accent); }
.g-search input::placeholder { color: var(--muted); }
.g-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.g-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.g-letters a:hover { border-color: var(--accent); color: var(--accent-text); }
.g-count { margin-top: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.letter-group { padding-top: 44px; scroll-margin-top: 190px; }
.letter-group > h2 { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; color: var(--accent-text); padding-bottom: 12px; border-bottom: 1px solid var(--border-strong); }
.term-item { scroll-margin-top: 210px; padding: 28px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px 48px; }
.term-item:target { background: linear-gradient(90deg, rgba(var(--glow), 0.28), transparent 70%); box-shadow: -16px 0 0 rgba(var(--glow), 0.28); }
.term-item h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.term-item h3 a { color: inherit; text-decoration: none; }
.term-item h3 a:hover::after { content: ' #'; color: var(--accent-text); }
.term-item .en { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .76rem; color: var(--muted); margin-top: 6px; }
.term-item p { color: var(--muted); font-size: 1rem; }
.term-item p + p { margin-top: 10px; }
.term-item p b { color: var(--text); font-weight: 600; }
.see { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .86rem; color: var(--muted); }
.see a { color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; text-decoration: none; font-size: .84rem; }
.see a:hover { border-color: var(--accent); color: var(--accent-text); }
.read-more { margin-top: 12px !important; font-size: .9rem !important; color: var(--muted); }
.read-more b { font-weight: 500; color: var(--text); }
.read-more a { color: var(--accent-text); text-underline-offset: 3px; }
.g-empty { display: none; padding: 48px 0; color: var(--muted); }
.g-empty.show { display: block; }

footer.site-footer { padding: 36px 24px; text-align: center; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-links { margin-top: 8px; display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; }
.footer-links a, .footer-links button { font: inherit; color: var(--muted); background: none; border: none; padding: 8px 6px; min-height: 36px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--text); text-decoration-color: var(--accent); }

/* Cookie banner (как на главной) */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 250; width: min(440px, calc(100vw - 32px)); background: rgba(21, 21, 21, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-strong); border-radius: 18px 18px 18px 6px; padding: 22px 22px 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); transform: translateY(24px); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility 0s .5s; }
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .4s; }
.cookie-banner h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.cookie-banner p { font-size: .86rem; color: var(--muted); line-height: 1.65; margin: 0; }
.cookie-banner p a { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-btn { flex: 1; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); background: var(--surface2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 16px; cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.cookie-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.cookie-btn:active { transform: scale(.98); }

.rise { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; border-left: none; padding: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .toc ol { columns: 1; }
}
@media (max-width: 980px) {
  nav.site-nav { padding: 10px 20px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .term-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .next { grid-template-columns: 1fr; }
  .author { flex-direction: column; align-items: flex-start; }
  .g-tools { top: 60px; }
}
@media (max-width: 600px) {
  table { min-width: 0; font-size: .8rem; }
  th, td { padding: 9px 8px; }
  td { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  th { font-size: .74rem; }
}
@media (max-width: 480px) {
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 14px 16px; border-radius: 16px 16px 16px 6px; }
  .cookie-banner h2 { font-size: .95rem; margin-bottom: 4px; }
  .cookie-banner p { font-size: .84rem; line-height: 1.5; }
  .cookie-actions { margin-top: 12px; }
  .cookie-btn { padding: 10px 14px; }
}
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(11, 11, 11, 0.92); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s, background-color .2s, color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s, color .2s; }
@media (hover: hover) {
  .to-top:hover { background: #ffd400; color: #0b0b0b; border-color: #ffd400; }
}
.to-top:active { transform: translateY(1px); }
.to-top:focus-visible { outline: 2px solid #ffd400; outline-offset: 3px; border-radius: 50%; }
@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; }
  .cookie-banner.show ~ .to-top { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Пагинация списка статей */
.cards:has(+ .pager) { padding-bottom: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 72px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .2s, background-color .2s; }
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager-step { font-weight: 500; }
