@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/blog/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/blog/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/blog/fonts/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('/blog/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

:root {
  --canvas: #f5f4ef;
  --surface: #fbfaf7;
  --ink: #121419;
  --muted: #69717f;
  --line: rgba(18, 20, 25, 0.12);
  --blue: #175cff;
  --blue-soft: #e9f0ff;
  --console: #11171c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Manrope Variable', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ шапка */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 244, 239, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--canvas); font-size: 15px;
}
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-header nav a { color: var(--ink); }
.site-header nav .cta {
  background: var(--ink); color: var(--canvas); padding: 9px 17px; border-radius: 999px; font-weight: 600;
}
.site-header nav .cta:hover { text-decoration: none; opacity: 0.88; }

/* --------------------------------------------------------------- статья */

.article-shell { padding-top: 34px; padding-bottom: 84px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }

article { max-width: 720px; }

.kicker {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
}

article h1 {
  margin: 0 0 16px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1;
  letter-spacing: -0.032em; font-weight: 800;
}

.byline { margin: 0 0 28px; color: var(--muted); font-size: 14px; }

.cover {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line); margin-bottom: 36px;
}

.prose { font-size: 17.5px; line-height: 1.68; }
.prose p { margin: 0 0 20px; }
.prose > p:first-child { font-size: 19px; line-height: 1.6; }
.prose > p:first-child strong { font-weight: 700; }

.prose h2 {
  margin: 44px 0 16px; font-size: clamp(23px, 2.9vw, 29px); line-height: 1.22;
  letter-spacing: -0.024em; font-weight: 800;
}
.prose h3 { margin: 32px 0 12px; font-size: 20px; letter-spacing: -0.015em; font-weight: 700; }

.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }

.prose blockquote {
  margin: 0 0 24px; padding: 16px 20px; border-left: 3px solid var(--blue);
  background: var(--blue-soft); border-radius: 0 12px 12px 0;
}
.prose blockquote p { margin: 0; }

.prose code {
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 0.88em; background: rgba(18, 20, 25, 0.06);
  padding: 2px 6px; border-radius: 6px;
}
.prose pre {
  margin: 0 0 24px; padding: 18px 20px; border-radius: 14px;
  background: var(--console); overflow-x: auto;
}
.prose pre code {
  background: none; padding: 0; color: #dfe6ec; font-size: 13.5px; line-height: 1.6;
}

.table-scroll { overflow-x: auto; margin: 0 0 26px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.prose tbody tr:hover { background: var(--surface); }

.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* --------------------------------------------------------- FAQ и источники */

.faq, .sources { max-width: 720px; margin-top: 46px; }
.faq h2, .sources h2 { font-size: 25px; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }

.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 15px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.sources ul { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 8px; font-size: 14px; word-break: break-word; }

/* ------------------------------------------------------------------ CTA */

.cta-panel {
  max-width: 720px; margin-top: 54px; padding: 32px;
  background: var(--console); color: #fff; border-radius: 22px;
}
.cta-panel h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.022em; font-weight: 800; }
.cta-panel p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.72); }
.cta-button {
  display: inline-block; background: #fff; color: var(--console);
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
}
.cta-button:hover { text-decoration: none; opacity: 0.9; }

/* --------------------------------------------------------------- список */

.list-shell { padding-top: 46px; padding-bottom: 84px; }
.list-shell h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.032em; font-weight: 800; }
.list-shell .lead { margin: 0 0 42px; max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.6; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 14.5px;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat-chip span {
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted);
  background: rgba(18, 20, 25, 0.06); border-radius: 999px; padding: 1px 7px;
}
.cat-chip:hover { border-color: var(--line-strong, rgba(18,20,25,0.2)); }
.cat-chip.is-active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.cat-chip.is-active span { background: rgba(255, 255, 255, 0.18); color: var(--canvas); }
.card[hidden] { display: none; }

.cards { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.card {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 14px 20px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 44px rgba(18, 20, 25, 0.09); }
.card img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 15px; }
.card-kicker {
  padding: 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.card h2 { margin: 0 0 9px; padding: 0 4px; font-size: 19px; line-height: 1.28; letter-spacing: -0.018em; font-weight: 700; }
.card p { margin: 0 0 14px; padding: 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card time { margin-top: auto; padding: 0 4px; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- подвал */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0 0 10px; max-width: 620px; }
.site-footer .merchant { font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0; }
.site-footer nav a { color: var(--muted); }
.site-footer .copy { margin: 0; font-size: 13px; }

@media (max-width: 640px) {
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-header nav a:not(.cta) { display: none; }
  .prose { font-size: 16.5px; }
  .cta-panel { padding: 26px 22px; }
}
