/* reva Blog — тёмная тема лендинга (web/site/site.css), тот же набор цветов. Linear × Revolut: тихо, плотно, без шума. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-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: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-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: 400 800; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #050B18; --bg-1: #091426; --bg-2: #0D1C32; --bg-3: #132646;
  --line: rgba(100, 160, 255, 0.14); --line-2: rgba(100, 160, 255, 0.24); --line-hot: rgba(36, 168, 255, 0.5);
  --accent: #24A8FF; --accent-soft: rgba(36, 168, 255, 0.12); --green: #20E68A; --green-soft: rgba(32, 230, 138, 0.1);
  --amber: #FFAA35; --red: #FF456A; --text: #F6F8FC; --body: #C5D0E0; --muted: #8B9BB5; --dim: #7d8ba3;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1180px; --r: 18px; --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #001; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; }

/* Движение: вход шапки статьи и появление секций один раз. */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.a-head, .hub-head { animation: up 0.56s var(--ease) both; }
.a-hero { animation: up 0.6s 0.08s var(--ease) both; }
.js-rv .rv { opacity: 0; transform: translateY(14px); }
.js-rv .rv.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-rv .rv { opacity: 1; transform: none; }
}

/* Полоса чтения */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); transform: scaleX(0); transform-origin: 0 50%; }

/* Шапка */
.bn { position: sticky; top: 0; z-index: 50; background: rgba(5, 11, 24, 0.78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bn-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.05em; display: inline-flex; align-items: center; gap: 9px; }
.logo img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.bn-blog { color: var(--muted); font-weight: 600; font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 1; }
.bn-blog:hover { color: var(--text); }
.bn-nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.bn-nav::-webkit-scrollbar { display: none; }
.bn-nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.bn-lang { flex: none; margin-right: 10px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; transition: color 0.2s, border-color 0.2s; }
.bn-lang:hover { color: var(--text); border-color: var(--accent); }
.bn-nav a:hover, .bn-nav a[aria-current] { color: var(--text); background: var(--bg-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); white-space: nowrap; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s; cursor: pointer; }
.btn:hover { border-color: var(--line-hot); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: #02101f; box-shadow: 0 8px 26px rgba(36, 168, 255, 0.28); }
.btn.primary:hover { background: #45b6ff; box-shadow: 0 10px 32px rgba(36, 168, 255, 0.38); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
@media (max-width: 760px) {
  .bn-in { gap: 10px; }
  .bn-blog { display: none; }
  .bn-nav { order: 3; }
  .bn .btn { margin-left: auto; }
  .bn-in { flex-wrap: wrap; height: auto; padding: 10px 0 6px; }
  .bn-nav { flex-basis: 100%; margin: 2px -4px 0; }
}

/* Хлебные крошки и шапка статьи */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 26px 0 0; font-size: 13.5px; color: var(--dim); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--dim); max-width: 42ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-head { max-width: 860px; padding: 34px 0 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); color: #8fd3ff; border: 1px solid rgba(36, 168, 255, 0.25); }
.chip.ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.chip.green { background: var(--green-soft); color: #7ff0bb; border-color: rgba(32, 230, 138, 0.25); }
.a-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; }
.a-sub { margin: 18px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; max-width: 60ch; }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14px; color: var(--dim); }
.a-meta a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.a-meta span { display: inline-flex; align-items: center; gap: 6px; }
.a-hero { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-1); aspect-ratio: 1200 / 630; }
.a-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Сетка статьи: текст + оглавление справа */
.a-grid { display: grid; grid-template-columns: minmax(0, 720px) 250px; gap: 72px; justify-content: space-between; padding: 48px 0 24px; }
.a-side { position: relative; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; transition: color 0.25s, border-color 0.25s; }
.toc li.h3 a { padding-left: 26px; font-size: 13px; }
.toc li a:hover { color: var(--text); }
.toc li a.on { color: var(--text); border-left-color: var(--accent); }
.side-cta { margin-top: 26px; padding: 18px; border-radius: 16px; background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); }
.side-cta b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.side-cta p { margin: 6px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.toc-m { display: none; }
@media (max-width: 1020px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .a-side { display: none; }
  .toc-m { display: block; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
  .toc-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 14px 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
  .toc-toggle::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
  .toc-toggle[aria-expanded="true"]::after { content: '–'; }
  .toc-m ol { list-style: none; margin: 0; padding: 0 16px 14px; }
  .toc-m li a { display: block; padding: 7px 0; color: var(--muted); font-size: 14.5px; border-top: 1px solid var(--line); }
  .toc-m li.h3 a { padding-left: 14px; font-size: 13.5px; }
}

/* Текст статьи */
.prose { font-size: 17.5px; line-height: 1.72; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
/* .prose p сильнее .prose > * + * и обнулял отступ между абзацами — возвращаем. */
.prose > * + p { margin-top: 1.1em; }
/* Разделы H2 обёрнуты в .ps и раскладываются лениво. Отступ снизу с равным отрицательным полем — место для теней у края секции без сдвига потока. */
.prose > .ps { margin-top: 0; content-visibility: auto; contain-intrinsic-size: auto 1500px; padding-bottom: 36px; margin-bottom: -36px; }
.prose > .ps-live, .cv-off .prose > .ps { content-visibility: visible; }
.ps > * + * { margin-top: 1.1em; }
.ps > * + p { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(25px, 2.6vw, 31px); line-height: 1.18; font-weight: 750; margin-top: 2.3em; }
.prose h3 { color: var(--text); font-size: 20.5px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin-top: 1.9em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: #7cc9ff; text-decoration: underline; text-decoration-color: rgba(36, 168, 255, 0.4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s, color 0.2s; }
.prose a:hover { color: #a9dbff; text-decoration-color: currentColor; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose ul:not([class]) > li + li, .prose ol:not([class]) > li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--dim); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--text); font-size: 18.5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose pre { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; }
.prose pre code { border: 0; background: none; padding: 0; }
.nolink { color: var(--text); }

/* Таблицы */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { color: var(--text); font-weight: 650; background: var(--bg-2); font-size: 14px; white-space: nowrap; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody th { color: var(--text); font-weight: 600; }
.tbl td { color: var(--body); }

/* Выноски */
.callout { border-radius: 16px; padding: 18px 20px; background: var(--bg-1); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.62; }
.callout > * + * { margin-top: 0.7em; }
.callout .c-h { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.callout .c-h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.c-tip { border-color: rgba(32, 230, 138, 0.28); background: linear-gradient(180deg, rgba(32, 230, 138, 0.06), var(--bg-1)); }
.c-tip .c-h::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.c-warning { border-color: rgba(255, 170, 53, 0.3); background: linear-gradient(180deg, rgba(255, 170, 53, 0.06), var(--bg-1)); }
.c-warning .c-h::before { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.c-example { border-style: dashed; border-color: var(--line-2); }
.c-example .c-h::before { background: var(--muted); box-shadow: none; }
.c-formula { background: var(--bg-2); }
.c-reva { border-color: rgba(36, 168, 255, 0.32); background: linear-gradient(135deg, rgba(36, 168, 255, 0.09), rgba(32, 230, 138, 0.04) 70%, var(--bg-1)); }
.formula { font-family: var(--mono); font-size: 15px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.takeaways { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); margin-bottom: 34px; }
.takeaways .c-h { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.takeaways ul { margin: 0; padding: 0; list-style: none; }
.takeaways li { position: relative; padding-left: 22px; color: var(--text); font-size: 16px; line-height: 1.5; }
.takeaways li + li { margin-top: 8px; }
.takeaways li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding: 11px 14px 11px 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); line-height: 1.5; }
.checklist li + li { margin-top: 8px; }
.checklist li::before { content: ''; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--green); background: var(--green-soft); }
.checklist li::after { content: ''; position: absolute; left: 20px; top: 16px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Фигуры */
.fig { margin: 2em 0 !important; padding: 20px; border-radius: 18px; background: var(--bg-1); border: 1px solid var(--line); }
.fig-h { color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 16px; }
.fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.fig .fig-src { color: var(--dim); font-size: 12.5px; }
.fig .fig-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.brs { display: grid; gap: 10px; }
.br { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; }
.br-l { color: var(--body); line-height: 1.3; }
.br-t { height: 10px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.br-t i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(36, 168, 255, 0.55), var(--accent)); }
.br.hot .br-t i { background: linear-gradient(90deg, rgba(32, 230, 138, 0.6), var(--green)); }
.br-v { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 650; min-width: 4ch; text-align: right; }
.lds { display: grid; gap: 12px; }
.ld { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 76px; gap: 14px; align-items: center; font-size: 14.5px; }
.ld-n { color: var(--text); font-weight: 600; line-height: 1.25; }
.ld-n small { display: block; color: var(--dim); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.ld-t { position: relative; height: 12px; border-radius: 999px; background: var(--bg-3); }
.ld-t i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.lv0 { background: #1d7fd0; } .lv1 { background: #24A8FF; } .lv2 { background: #20E68A; } .lv3 { background: #7fe0b5; } .lv4 { background: #FFAA35; }
.ld b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.ld.mk { padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ld.mk .ld-n { color: #ffc680; }
.ld-t em { position: absolute; top: -5px; width: 3px; height: 22px; margin-left: -1px; background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px var(--amber); }
.wf-top { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.wf-top b { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; }
.wf-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--bg-3); }
.wf-bar i { display: block; height: 100%; }
.wf-cost { background: #3d5f8f; } .wf-fee { background: var(--amber); } .wf-ship { background: #b58cff; } .wf-other { background: #6b7a93; } .wf-profit { background: var(--green); }
.wf-leg { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--body); }
.wf-leg li { display: flex; align-items: center; gap: 8px; margin: 0; }
.wf-leg b { margin-left: 2px; color: var(--text); font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: none; }
.fl li { position: relative; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.fl li b { color: var(--text); font-size: 15px; line-height: 1.3; }
.fl li small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.fl-i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #02101f; background: var(--accent); margin-bottom: 6px; }
.cmp { min-width: 560px; }
.cmp td span[class^="mk-"] { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; }
.cmp td small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.35; }
.mk-y { background: var(--green-soft); color: #7ff0bb; } .mk-p { background: rgba(255, 170, 53, 0.12); color: #ffc680; } .mk-n { background: rgba(255, 69, 106, 0.12); color: #ff8aa2; } .mk-u { background: var(--bg-3); color: var(--muted); }
.fig-compare { padding: 20px 0 16px; } .fig-compare .fig-h, .fig-compare figcaption { padding-inline: 20px; } .fig-compare .tbl { border-radius: 0; border-inline: 0; }
.lss { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ls { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ls-good { border-color: rgba(32, 230, 138, 0.35); } .ls-bad { border-color: rgba(255, 69, 106, 0.3); }
.ls-ph { aspect-ratio: 4 / 3; display: grid; place-items: end start; padding: 12px; background: radial-gradient(120% 90% at 30% 20%, #1d3558, #0b1628); color: var(--muted); font-size: 12.5px; }
.ls-bad .ls-ph { background: radial-gradient(120% 90% at 70% 80%, #2a2f3a, #121620); filter: saturate(0.4); }
.ls-ph span { background: rgba(5, 11, 24, 0.7); padding: 4px 8px; border-radius: 6px; }
.ls-b { padding: 14px; display: grid; gap: 6px; }
.ls-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.ls-good .ls-tag { color: #7ff0bb; } .ls-bad .ls-tag { color: #ff8aa2; }
.ls-t { color: var(--text); font-size: 15px; line-height: 1.35; }
.ls-p { font-weight: 700; font-size: 18px; }
.ls-m { display: flex; flex-wrap: wrap; gap: 5px; } .ls-m span { font-size: 12px; padding: 3px 7px; border-radius: 6px; background: var(--bg-3); color: var(--body); }
.ls-n { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mx { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 8px; }
.mx-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; color: var(--muted); text-align: center; }
.mx-x { grid-column: 2; font-size: 12.5px; color: var(--muted); text-align: center; }
.mx-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx-q { padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; min-height: 104px; }
.mx-q b { color: var(--text); font-size: 15px; } .mx-q small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.mx-q.q1 { border-color: rgba(32, 230, 138, 0.4); background: linear-gradient(160deg, rgba(32, 230, 138, 0.08), var(--bg-2)); }
.mx-q.q2 { border-color: rgba(255, 69, 106, 0.28); }
.cv { width: 100%; height: auto; }
.cv-g { stroke: rgba(100, 160, 255, 0.12); stroke-width: 1; }
.cv-a { fill: #8B9BB5; font: 500 14px var(--sans); }
.cv-l { fill: #8B9BB5; font: 500 14px var(--sans); }
.cv-yl { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.sts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.st { padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.st b { font-size: 26px; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.st span { color: var(--body); font-size: 14px; font-weight: 600; } .st small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ap { border-radius: 16px; background: linear-gradient(160deg, var(--bg-2), #0a1730); border: 1px solid var(--line-2); padding: 16px; display: grid; gap: 14px; }
.ap-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ap-top em { margin-left: auto; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.ap-it { display: flex; gap: 12px; align-items: center; }
.ap-ph { width: 56px; height: 56px; border-radius: 12px; background: radial-gradient(circle at 30% 30%, #2a4a78, #0e1d33); flex: none; }
.ap-it b { display: block; color: var(--text); font-size: 15.5px; } .ap-it span { color: var(--muted); font-size: 13.5px; }
.ap-ld { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ap-ld div, .ap-me div { padding: 8px; border-radius: 10px; background: var(--bg-3); display: grid; gap: 2px; min-width: 0; }
.ap-ld small, .ap-me small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ld b, .ap-me b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.ap-ld div:nth-child(3) { box-shadow: inset 0 0 0 1px rgba(32, 230, 138, 0.5); }
.ap-me { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
@media (max-width: 560px) { .ap-ld { grid-template-columns: repeat(3, 1fr); } .ld { grid-template-columns: 1fr 64px; } .ld-t { grid-column: 1 / -1; grid-row: 2; } .br { grid-template-columns: 1fr auto; } .br-t { grid-column: 1 / -1; grid-row: 2; } }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.tl li:first-child { border-top: 0; }
.tl span { color: var(--accent); font-weight: 650; font-size: 14px; } .tl p { margin: 0; font-size: 15px; color: var(--body); }

/* Кнопки внутри текста */
.cta-in { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 2.2em 0 !important; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(36, 168, 255, 0.3); background: linear-gradient(120deg, rgba(36, 168, 255, 0.1), rgba(32, 230, 138, 0.05) 60%, var(--bg-1)); }
.cta-in div { flex: 1 1 280px; }
.cta-in b { display: block; color: var(--text); font-size: 17px; letter-spacing: -0.01em; }
.cta-in p { margin: 4px 0 0 !important; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.prose .cta-in a.btn { color: #02101f; text-decoration: none; }

/* Калькулятор */
.calc { margin: 1.6em 0 2.2em !important; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(170deg, var(--bg-2), var(--bg-1) 60%); padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.calc form { margin: 0; }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.calc-top b { font-size: 18px; color: var(--text); letter-spacing: -0.02em; }
.calc select, .calc input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; height: 44px; padding: 0 12px; color: var(--text); font-size: 16px; }
.calc select { cursor: pointer; }
.calc label.sel { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.calc-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.inp { position: relative; display: flex; align-items: center; }
.inp input { width: 100%; font-variant-numeric: tabular-nums; }
.inp .cu, .inp .pc { position: absolute; left: 12px; color: var(--dim); font-size: 15px; pointer-events: none; }
.inp .pc { left: auto; right: 12px; }
.inp.m input { padding-left: 34px; }
.inp.p input { padding-right: 32px; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-out .o { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 4px; }
.calc-out .o small { color: var(--muted); font-size: 13px; }
.calc-out output { font-size: 22px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc-out .o.main { border-color: rgba(32, 230, 138, 0.4); background: linear-gradient(160deg, rgba(32, 230, 138, 0.1), var(--bg)); }
.calc-out .o.main output { color: #7ff0bb; }
.calc-out output.neg { color: #ff8aa2 !important; }
.calc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.calc-note { font-size: 13px; color: var(--dim); max-width: 60ch; line-height: 1.45; }
.calc-preset { margin-bottom: 14px; }
.calc-preset select { width: 100%; }

/* FAQ, источники, автор */
.faq { margin-top: 64px; }
/* Блоки после статьи не раскладываются, пока до них не дочитали. Выше них ни одного якоря оглавления, так что переходы по TOC точны. */
.faq, .sources, .related, .foot { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.faq h2, .sources h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 17px; color: var(--text); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .ans { padding: 0 0 20px; color: var(--body); font-size: 16.5px; line-height: 1.65; }
.faq .ans a { color: #7cc9ff; text-decoration: underline; text-underline-offset: 3px; }
.sources { margin-top: 56px; font-size: 14.5px; color: var(--muted); }
.sources ol { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; }
.sources a { color: var(--body); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; word-break: break-word; }
.sources small { color: var(--dim); }
.method { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.method b { color: var(--text); display: block; margin-bottom: 2px; }
.method a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.method-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3); color: var(--accent); font-weight: 800; letter-spacing: -0.05em; }

/* Финальная кнопка и связанные материалы */
.cta-final { padding: 40px 0 10px; }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); border: 1px solid rgba(36, 168, 255, 0.28); background: radial-gradient(80% 120% at 100% 0%, rgba(36, 168, 255, 0.22), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(32, 230, 138, 0.12), transparent 60%), var(--bg-1); }
.cta-card h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; max-width: 18ch; margin: 14px 0 12px; letter-spacing: -0.04em; }
.cta-card p { color: var(--body); max-width: 56ch; font-size: 17px; line-height: 1.55; margin: 0; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.cta-note { display: block; margin-top: 16px; color: var(--dim); font-size: 13px; }
.related { padding: 56px 0 24px; }
.related h2, .hub-sec h2 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -0.03em; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-1); overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-hot); background: var(--bg-2); }
.card-img { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-img img { transform: scale(1.015); }
.card-b { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-k { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.card-b b { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); }
.card-b p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-f { font-size: 12.5px; color: var(--dim); margin-top: auto; padding-top: 4px; }
.card.row { flex-direction: row; } .card.row .card-img { width: 38%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
.card.big .card-b b { font-size: clamp(20px, 2vw, 25px); }
@media (max-width: 640px) { .card.row { flex-direction: column; } .card.row .card-img { width: 100%; aspect-ratio: 1200/630; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Хабы */
.hub-head { padding: 34px 0 34px; max-width: 820px; }
.hub-head h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; }
.hub-head p { margin: 16px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.5; max-width: 62ch; }
.hub-hero { position: relative; }
.hub-hero::before { content: ''; position: absolute; inset: -120px 0 auto; height: 520px; pointer-events: none; background: radial-gradient(40% 60% at 75% 30%, rgba(36, 168, 255, 0.16), transparent 70%), radial-gradient(30% 50% at 10% 60%, rgba(32, 230, 138, 0.08), transparent 70%); z-index: -1; }
.hub-sec { padding: 26px 0 30px; }
.hub-sec + .hub-sec { border-top: 1px solid var(--line); padding-top: 42px; }
.hub-sec .sub { color: var(--muted); margin: -10px 0 20px; font-size: 15px; max-width: 70ch; }
.secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sec { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 6px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.sec:hover { transform: translateY(-2px); border-color: var(--line-hot); }
.sec b { font-size: 17px; letter-spacing: -0.015em; } .sec p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; } .sec small { color: var(--dim); font-size: 12.5px; }
.tools-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-1); font-weight: 600; font-size: 15px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.tool:hover { transform: translateY(-2px); border-color: var(--line-hot); }
.tool i { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 800; font-size: 15px; }
.list-links { columns: 2 280px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.list-links li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--line); }
.list-links a { color: var(--body); font-weight: 500; } .list-links a:hover { color: var(--text); }
.list-links small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }

/* Подвал */
.foot { margin-top: 60px; border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot-g { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); margin-bottom: 12px; font-weight: 700; }
/* Ссылки подвала — цели касания ≥24px (Lighthouse target-size): отступ перенесён с зазора списка на саму ссылку, ритм тот же. */
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot li > a { display: inline-block; padding: 4px 0; }
.foot a:hover { color: var(--text); }
.foot p { margin: 10px 0 0; max-width: 34ch; line-height: 1.5; }
.foot-b { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
@media (max-width: 900px) { .foot-g { grid-template-columns: 1fr 1fr; } .foot-g > div:first-child { grid-column: 1 / -1; } }
