/* ==========================================================================
   Тема «Academia» для Docsify: пергамент, приглушённый сине-серый, шрифты с засечками.
   Подключается ПОСЛЕ vendor/vue.css и переопределяет его; механику Docsify (боковая панель,
   кнопка меню) не ломает. Все узоры нарисованы кодом (градиенты и SVG внутри CSS), картинок нет.
   ========================================================================== */

/* ---- шрифты (свои копии, лицензия OFL: см. vendor/fonts/LICENSE.txt) ------------------ */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../vendor/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---- палитра и размеры ------------------------------------------------------------------ */
:root {
  --paper:      #f5f0e8;   /* пергамент */
  --paper-lift: #fbf8f2;   /* светлее: «лист» под текстом */
  --paper-deep: #ece4d3;   /* темнее: боковая панель */
  --rule:       #b8ab93;   /* линии, «выцветшие чернила» */
  --ink:        #1b2530;   /* почти чёрный с синим оттенком */
  --slate:      #4a5a6a;   /* основной сине-серый */
  --slate-soft: #6b7d8f;   /* светлее, второстепенное */
  --link:       #3f5d7b;
  --header-h:   64px;
  --sidebar-w:  300px;
  --display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --text:    "EB Garamond", Georgia, "Times New Roman", serif;
  /* орнамент: две линии и ромб; нарисован здесь же, внешних картинок нет */
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 20'%3E%3Cg fill='none' stroke='%234a5a6a' stroke-width='1'%3E%3Cpath d='M4 10h122M194 10h122' stroke='%23b8ab93'/%3E%3Cpath d='M160 2l8 8-8 8-8-8z'/%3E%3Cpath d='M160 6l4 4-4 4-4-4z' fill='%234a5a6a'/%3E%3Ccircle cx='136' cy='10' r='2' fill='%234a5a6a' stroke='none'/%3E%3Ccircle cx='184' cy='10' r='2' fill='%234a5a6a' stroke='none'/%3E%3Cpath d='M126 10h6M188 10h6' stroke='%234a5a6a'/%3E%3C/g%3E%3C/svg%3E");
  --ornament-small: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cg fill='none' stroke='%236b7d8f'%3E%3Cpath d='M2 6h44M74 6h44' stroke='%23b8ab93'/%3E%3Cpath d='M60 1l5 5-5 5-5-5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- фон: бумага ------------------------------------------------------------------------
   Шум (SVG-фильтр) лежит на всей странице и стыкуется без швов; мягкие «свет сверху / старость снизу» —
   в отдельном закреплённом слое на весь экран, поэтому на длинных страницах нет границы. */
html {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .43  0 0 0 0 .35  0 0 0 0 .22  0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body::before {                       /* свет и старение бумаги: закреплено на экране, шва не даёт */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(140, 118, 76, .12), transparent 70%);
}
body::after {                        /* виньетка по краям экрана, не перехватывает касания */
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  box-shadow: inset 0 0 110px rgba(110, 88, 52, .16);
}
::selection { background: rgba(74, 90, 106, .28); }

/* ---- шапка: закреплена сверху ----------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 25;
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  padding: 0 calc(var(--header-h) + 8px);
  background: linear-gradient(var(--paper-lift), var(--paper));
  border-bottom: 3px double var(--rule);
  box-shadow: 0 8px 16px -12px rgba(40, 52, 66, .45);
}
.site-header__title {
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: .05em;
  color: var(--slate); text-decoration: none; line-height: 1;
}
.site-header__sub {
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.15rem;
  color: var(--slate-soft); padding-left: .9rem; border-left: 1px solid var(--rule); line-height: 1;
}

/* ---- кнопка меню: крупная, в шапке, всегда на виду -------------------------------------- */
.sidebar-toggle {
  position: fixed !important; top: 0 !important; left: 0 !important; bottom: auto !important;
  width: var(--header-h) !important; height: var(--header-h) !important; min-width: 44px;
  padding: 0 !important; margin: 0; border: 0; border-right: 1px solid var(--rule) !important;
  background: transparent !important; z-index: 30; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: rgba(74, 90, 106, .18);
}
body.close .sidebar-toggle { width: var(--header-h) !important; }
.sidebar-toggle .sidebar-toggle-button { display: flex; flex-direction: column; gap: 7px; opacity: 1; }
.sidebar-toggle span {
  display: block; width: 30px !important; height: 3px !important; margin: 0 !important;
  background: var(--slate) !important; border-radius: 3px; transition: background .2s, width .2s;
}
.sidebar-toggle:hover span, .sidebar-toggle:active span { background: var(--ink) !important; }
.sidebar-toggle:hover .sidebar-toggle-button { opacity: 1; }
.sidebar-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: -8px; }

/* ---- боковая панель --------------------------------------------------------------------- */
.sidebar {
  position: fixed !important; top: var(--header-h) !important; bottom: 0 !important; left: 0;
  width: var(--sidebar-w); padding: 24px 0 0;
  background-color: var(--paper-deep);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .25), transparent 40%);
  border-right: 3px double var(--rule);
  color: var(--ink);
  z-index: 20;
}
.sidebar > h1 { display: none; }              /* название уже в шапке */
.sidebar .sidebar-nav { padding: 0 0 40px; line-height: 1.3; counter-reset: nav; }
.sidebar .sidebar-nav::before {
  content: "Оглавление"; display: block; margin: 0 22px 16px; padding-bottom: 12px;
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--slate-soft);
  background: var(--ornament-small) center bottom / 120px 12px no-repeat;
  text-align: center; padding-bottom: 22px;
}
.sidebar ul { margin: 0; padding: 0; }
.sidebar ul li { margin: 0; counter-increment: nav; }
.sidebar ul li a {
  display: block; white-space: normal; overflow: visible;
  padding: 14px 22px 14px 22px; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 1.32rem; line-height: 1.2;
  color: var(--slate); text-decoration: none;
  border-left: 4px solid transparent; border-right: 0 !important;
  border-bottom: 1px solid rgba(184, 171, 147, .55);
}
.sidebar ul li a::before {
  content: counter(nav, upper-roman) "."; display: inline-block; min-width: 2.1rem;
  font-style: italic; font-weight: 500; color: var(--slate-soft);
}
.sidebar ul li a:hover { background: rgba(74, 90, 106, .08); text-decoration: none; color: var(--ink); }
.sidebar ul li.active > a {
  color: var(--ink); background: linear-gradient(90deg, rgba(74, 90, 106, .16), rgba(74, 90, 106, .03));
  border-left-color: var(--slate); border-right: 0 !important; font-weight: 700;
}

/* ---- поле страницы ---------------------------------------------------------------------- */
.content { padding-top: var(--header-h) !important; left: var(--sidebar-w); }
body.close .content { left: 0; }

.markdown-section {
  position: relative; box-sizing: border-box;
  max-width: 46rem !important; margin: 0 auto; padding: 34px 28px 76px;
  font-family: var(--text); font-size: 1.28rem; line-height: 1.68; color: var(--ink);
  -webkit-hyphens: manual; hyphens: manual;
}
@media (min-width: 900px) {
  .markdown-section {                        /* «страница книги» в двойной рамке */
    margin: 34px auto 56px; padding: 44px 56px 60px;
    background: linear-gradient(var(--paper-lift), rgba(251, 248, 242, .82));
    border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 6px;
    box-shadow: 0 18px 30px -22px rgba(40, 52, 66, .5);
  }
}

/* заголовки */
.markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4 {
  font-family: var(--display); color: var(--slate); font-weight: 700; letter-spacing: .01em;
}
.markdown-section h1 {
  margin: 0 0 1.1rem; padding: 0 0 42px; text-align: center;
  font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1.02;
  background: var(--ornament) center bottom / min(300px, 78%) 20px no-repeat;
}
.markdown-section h2 {
  margin: 2.6rem 0 1rem; padding-bottom: .5rem; font-size: 2rem; line-height: 1.15;
  border-bottom: 1px solid var(--rule); position: relative;
}
.markdown-section h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--slate); }
.markdown-section h3 { margin: 2rem 0 .6rem; font-size: 1.55rem; font-style: italic; font-weight: 600; }

/* вводный абзац сразу под названием страницы */
.markdown-section h1 + p { font-size: 1.08em; }

.markdown-section p { margin: 1.05em 0; }
.markdown-section strong { color: var(--ink); font-weight: 600; }
.markdown-section em { font-style: italic; }
.markdown-section a {
  color: var(--link); font-weight: 400; text-decoration: none;
  border-bottom: 1px solid rgba(63, 93, 123, .45); transition: background .2s, border-color .2s;
}
.markdown-section a:hover { background: rgba(74, 90, 106, .10); border-bottom-color: var(--link); }
.markdown-section a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.markdown-section h1 a, .markdown-section h2 a, .markdown-section h3 a, .markdown-section a.anchor {
  color: inherit; border-bottom: 0; background: none; font-weight: inherit;
}

/* пронумерованные шаги: римские цифры в медальонах, тонкие линии между пунктами */
.markdown-section ol { list-style: none; margin: 1.6rem 0; padding: 0 0 0 7px; counter-reset: step; }
.markdown-section ol > li {
  counter-increment: step; position: relative; margin: 0 0 0 -7px; padding: 1.05rem 0 1.05rem calc(4.4rem + 7px);
  border-top: 1px solid rgba(184, 171, 147, .8);
  box-sizing: border-box; min-height: 5.5rem;   /* кружок (3rem + кольцо) целиком помещается над линией, даже если шаг в одну строку */
}
.markdown-section ol > li:last-child { border-bottom: 1px solid rgba(184, 171, 147, .8); }
.markdown-section ol > li::before {
  content: counter(step, upper-roman); position: absolute; left: 7px; top: 1rem;
  width: 3rem; height: 3rem; box-sizing: border-box; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--slate);
  background: var(--paper-lift); border: 1px solid var(--slate); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper-lift), 0 0 0 5px rgba(74, 90, 106, .38);
}
.markdown-section ul { padding-left: 1.4rem; }
.markdown-section ul li { margin: .3em 0; }
.markdown-section ul li::marker { color: var(--slate-soft); }

/* пояснение после списка шагов — как примечание на полях */
.markdown-section ol + p {
  margin-top: 1.6rem; padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--slate-soft);
  color: var(--slate); font-style: italic;
}

.markdown-section hr { height: 20px; margin: 2.4rem auto; border: 0; background: var(--ornament) center / min(300px, 78%) 20px no-repeat; }
.markdown-section blockquote {
  margin: 1.6rem 0; padding: .4rem 1.2rem; color: var(--slate); font-style: italic;
  background: rgba(74, 90, 106, .06); border-left: 3px solid var(--slate-soft);
}
.markdown-section code {
  font-family: "Courier New", Courier, monospace; font-size: .86em; color: var(--ink);
  background: rgba(74, 90, 106, .10); border-radius: 2px; padding: .1em .35em;
}
.markdown-section pre { background: rgba(74, 90, 106, .08); border: 1px solid var(--rule); border-radius: 2px; }
.markdown-section pre code { background: none; padding: 0; }

/* «finis»: маленький орнамент в конце страницы */
.markdown-section::after {
  content: ""; display: block; height: 12px; margin: 3.2rem auto 0; width: 150px;
  background: var(--ornament-small) center / 150px 12px no-repeat;
}

/* ---- мобильные экраны: крупнее для пальца, боковая панель выезжает под шапкой ---------- */
@media (max-width: 768px) {
  :root { --header-h: 60px; --sidebar-w: min(84vw, 320px); }
  .site-header { padding: 0 calc(var(--header-h) + 4px) 0 var(--header-h); gap: 0; }
  .site-header__title { font-size: 1.75rem; }
  .site-header__sub { display: none; }
  .sidebar { left: calc(-1 * var(--sidebar-w)) !important; }
  body.close .sidebar { transform: translateX(var(--sidebar-w)) !important; box-shadow: 8px 0 24px -8px rgba(30, 40, 55, .4); }
  body.close .content { transform: none; }
  .content { left: 0 !important; padding-top: var(--header-h) !important; max-width: 100vw; }
  .markdown-section { font-size: 1.22rem; padding: 26px 20px 64px; text-align: left; -webkit-hyphens: manual; hyphens: manual; }
  .markdown-section ol > li { padding-left: calc(4rem + 7px); min-height: 5.2rem; }
  .markdown-section ol > li::before { width: 2.7rem; height: 2.7rem; font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .content, .sidebar-toggle span { transition: none !important; }
}
@media print {
  .site-header, body::after { display: none; }
  .content { padding-top: 0 !important; left: 0; }
}

/* ---- логотип в шапке ------------------------------------------------------------------ */
.site-header__title { display: inline-flex; align-items: center; gap: .6rem; }
.site-header__logo { width: 39px; height: 39px; flex: none; display: block; image-rendering: pixelated; }

/* ---- главная: заметная карточка «С чего начать» ---------------------------------------- */
.markdown-section .start-card {
  margin: 1.9rem 0 2rem; padding: 1.65rem 1.8rem; position: relative;
  background: rgba(74, 90, 106, .10); background: linear-gradient(rgba(74, 90, 106, .13), rgba(74, 90, 106, .07));
  border: 2px solid var(--slate); outline: 1px solid var(--rule); outline-offset: 5px;
  box-shadow: 0 14px 22px -20px rgba(40, 52, 66, .7);
}
.start-card p { margin: 0; }
.start-card__eyebrow {
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--slate-soft); margin-bottom: .35rem !important;
}
.start-card__text { font-size: 1.12em; line-height: 1.55; }
.markdown-section .start-card strong { font-weight: 700; color: var(--ink); }   /* ключевые слова: только жирным, без заливки */
.start-card__hint {
  display: flex; align-items: center; gap: 1.3rem; margin-top: 1.1rem !important; padding-top: 1.1rem;
  border-top: 1px dashed var(--rule); color: var(--slate); font-size: .98em; line-height: 1.4;
}
.start-card__arrow {
  flex: none; width: 3rem; height: 3rem; margin-left: 6px; display: grid; place-items: center; border-radius: 50%;
  color: var(--paper-lift); background: var(--slate); box-shadow: 0 0 0 4px rgba(74, 90, 106, .18);
}
.start-card__hint--wide .start-card__arrow svg { transform: rotate(-90deg); }      /* компьютер: меню слева, стрелка влево */
.start-card__hint--narrow .start-card__arrow svg { transform: rotate(-45deg); }    /* телефон: кнопка меню в левом верхнем углу */
.start-card__hint--narrow { display: none; }
.start-card__burger {                                   /* та же «гамбургер»-иконка, что и на настоящей кнопке */
  display: inline-block; vertical-align: -.16em; width: 1.25em; height: .9em; margin: 0 .1em;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}
@media (max-width: 768px) {
  .start-card__hint--wide { display: none; }
  .start-card__hint--narrow { display: flex; }
  .markdown-section .start-card { padding: 1.6rem; outline-offset: 4px; }
  .start-card__hint { gap: 1.5rem; }
  .start-card__arrow { animation: start-nudge 1.8s ease-in-out infinite; }
}
@media (max-width: 360px) {
  .markdown-section .start-card { padding: 1.4rem 1.25rem; }
  .start-card__hint { gap: 1.1rem; }
  .start-card__arrow { width: 2.6rem; height: 2.6rem; }
}
@keyframes start-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -4px); } }
@media (prefers-reduced-motion: reduce) { .start-card__arrow { animation: none !important; } }

/* ---- таблица цен (реферальная программа): типографика и палитра сайта ------------------- */
.markdown-section table {
  display: table; width: 100%; margin: 1.5rem 0 .9rem; border-collapse: collapse;
  border: 2px solid var(--slate); outline: 1px solid var(--rule); outline-offset: 4px;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;
  background: rgba(251, 248, 242, .6);
}
.markdown-section th, .markdown-section td { padding: .6rem .8rem; border: 0; border-bottom: 1px dotted var(--rule); }
.markdown-section thead th {
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--slate); background: rgba(74, 90, 106, .12); border-bottom: 2px solid var(--slate); line-height: 1.15;
}
.markdown-section tbody th, .markdown-section tbody td:first-child {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--slate); background: rgba(74, 90, 106, .07);
  border-right: 1px solid var(--rule);
}
.markdown-section tr, .markdown-section tr:nth-child(2n) { background-color: transparent; border-top: 0; }
.markdown-section tbody tr:last-child td { border-bottom: 0; }
.markdown-section td { white-space: nowrap; }
.markdown-section table + p { font-size: .95em; font-style: italic; color: var(--slate); }
@media (max-width: 560px) {
  .markdown-section table { font-size: .95rem; outline-offset: 3px; }
  .markdown-section th, .markdown-section td { padding: .5rem .4rem; }
  .markdown-section thead th { font-size: .92rem; }
  .markdown-section tbody th, .markdown-section tbody td:first-child { font-size: 1.1rem; }
}

/* длинные заголовки переносятся ровно, без висящего последнего слова */
.markdown-section h1, .markdown-section h2, .markdown-section h3 { text-wrap: balance; }

/* ---- подвал: ссылки на оферту и политику, виден на всех страницах Docsify ------------------- */
.site-footer {
  text-align: center; font-size: .85rem; color: var(--slate-soft);
  padding: 1.2rem 1rem 1.6rem; border-top: 1px solid var(--rule); margin-top: 2rem;
}
.site-footer a { color: var(--slate-soft); text-decoration: underline; }
@media (min-width: 769px) { .site-footer { margin-left: var(--sidebar-w, 300px); } }
