@font-face { font-family: 'Proxima Nova'; src: url('/local/templates/cct/fonts/ProximaNova-Regular.woff2') format('woff2'), url('/local/templates/cct/fonts/ProximaNova-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/local/templates/cct/fonts/ProximaNova-Semibold.woff2') format('woff2'), url('/local/templates/cct/fonts/ProximaNova-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/local/templates/cct/fonts/ProximaNova-Bold.woff2') format('woff2'), url('/local/templates/cct/fonts/ProximaNova-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #141c2b;
  --text: #2a3546;
  --muted: #677487;
  --line: #e4e9f0;
  --line-2: #d6dde7;
  --soft: #f4f7fb;
  --side: #f8fafc;
  --brand: #0a74c2;
  --brand-2: #00a0e3;
  --brand-soft: #e9f4fc;
  --red: #e5372b;
  --green: #138a4f;
  --amber: #b87400;
  --top: 64px;
  --radius: 12px;
  --font: 'Proxima Nova', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.docs { margin: 0; font: 400 15px/1.6 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
body.docs a { color: var(--brand); text-decoration: none; }
body.docs a:hover { color: var(--brand-2); }
body.docs img { max-width: 100%; }
#panel { position: relative; z-index: 1000; }

/* ---------- шапка ---------- */
.docs-top { position: sticky; top: 0; z-index: 60; height: var(--top); background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.docs-top__inner { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.docs-top__brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.docs-top__logo { display: flex; align-items: center; line-height: 0; }
.docs-top__logo img { height: 34px; width: auto; display: block; }
.docs-top__docs { font-weight: 600; font-size: 15px; color: var(--ink) !important; padding-left: 12px; border-left: 1px solid var(--line-2); line-height: 22px; }
.docs-top__docs:hover { color: var(--brand) !important; }
.docs-top__search { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.docs-top__links { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.docs-top__burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
.docs-top__burger svg { display: block; }
.docs-top__burger:hover { color: var(--brand); }
.docs-top__demo { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--ink) !important; }
.docs-top__demo:hover { border-color: var(--brand); color: var(--brand) !important; }
.docs-top__site { font-size: 14px; color: var(--muted) !important; }
.docs-top__menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; position: relative; flex: 0 0 auto; }
.docs-top__menu span, .docs-top__menu span::before, .docs-top__menu span::after { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: ''; }
.docs-top__menu span { top: 19px; }
.docs-top__menu span::before { left: 0; top: -6px; }
.docs-top__menu span::after { left: 0; top: 6px; }

.docs-switch { position: relative; flex: 0 0 auto; }
.docs-switch__btn { font: 600 14px/1 var(--font); color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 10px 34px 10px 14px; cursor: pointer; position: relative; white-space: nowrap; }
.docs-switch__btn::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.docs-switch.is-open .docs-switch__menu { display: block; }
.docs-switch__menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(20,28,43,.28); padding: 6px; }
.docs-switch__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink) !important; font-size: 14.5px; }
.docs-switch__item:hover { background: var(--soft); }
.docs-switch__item.is-active { background: var(--brand-soft); color: var(--brand) !important; font-weight: 600; }
.docs-switch__item em { font-style: normal; font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 20px; padding: 2px 8px; }
.docs-switch__item--all { color: var(--muted) !important; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

.docs-search { position: relative; width: 100%; max-width: 520px; }
.docs-search input { width: 100%; height: 40px; border: 1px solid var(--line); background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23677487' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 13px 50% no-repeat; border-radius: 10px; padding: 0 40px 0 40px; font: 400 15px var(--font); color: var(--ink); outline: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.docs-search input:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,116,194,.12); }
.docs-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; background: #fff; pointer-events: none; }
.docs-search input:focus + kbd { display: none; }
.docs-search__drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(20,28,43,.3); padding: 6px; max-height: 70vh; overflow: auto; }
.docs-search__drop a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink) !important; }
.docs-search__drop a:hover, .docs-search__drop a.is-active { background: var(--soft); }
.docs-search__drop b { display: block; font-weight: 600; font-size: 14.5px; }
.docs-search__drop span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-search__drop .docs-search__empty { padding: 12px; color: var(--muted); font-size: 14px; }

/* ---------- каркас ---------- */
.docs-page { min-height: calc(100vh - var(--top) - 72px); }
.docs-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; max-width: 1480px; margin: 0 auto; }
.docs-side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); border-right: 1px solid var(--line); background: var(--side); }
.docs-side__inner { height: 100%; overflow-y: auto; padding: 22px 14px 40px 18px; scrollbar-width: thin; }
.docs-side__course { display: block; font-weight: 700; font-size: 16px; color: var(--ink) !important; padding: 6px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.docs-side__label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.docs-tree ul { list-style: none; margin: 0; padding: 0; }
.docs-tree li > ul { display: none; padding-left: 12px; margin: 2px 0 6px 10px; border-left: 1px solid var(--line-2); }
.docs-tree li.is-open > ul { display: block; }
.docs-tree__row { display: flex; align-items: flex-start; }
.docs-tree__row a { flex: 1 1 auto; display: block; padding: 6px 10px; border-radius: 8px; color: var(--text) !important; font-size: 14.5px; line-height: 1.35; }
.docs-tree__row a:hover { background: #eef2f7; }
.docs-tree__item--d1 > .docs-tree__row a { font-weight: 600; color: var(--ink) !important; }
.docs-tree__item.is-current > .docs-tree__row a { background: var(--brand-soft); color: var(--brand) !important; font-weight: 600; }
.docs-tree__toggle { flex: 0 0 auto; width: 28px; height: 30px; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 8px; }
.docs-tree__toggle:hover { background: #eef2f7; }
.docs-tree__toggle::after { content: ''; position: absolute; left: 11px; top: 11px; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.8px 1.8px 0; transform: rotate(-45deg); transition: transform .15s; }
.docs-tree li.is-open > .docs-tree__row .docs-tree__toggle::after { transform: rotate(45deg); top: 10px; }

.docs-main { min-width: 0; padding: 28px 56px 72px; }
.docs-main--wide { padding-right: 56px; }
.docs-layout:has(.docs-main--wide) { grid-template-columns: 300px minmax(0, 1fr); }
.docs-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 18px; }
.docs-crumbs a { color: var(--muted) !important; }
.docs-crumbs a:hover { color: var(--brand) !important; }
.docs-crumbs a + a::before { content: '›'; margin-right: 6px; color: var(--line-2); }
.docs-toc { position: sticky; top: var(--top); align-self: start; padding: 30px 20px 30px 4px; max-height: calc(100vh - var(--top)); overflow-y: auto; }
.docs-toc__title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--muted) !important; }
.docs-toc li.is-sub a { padding-left: 26px; font-size: 13px; }
.docs-toc li a:hover { color: var(--ink) !important; }
.docs-toc li a.is-active { color: var(--brand) !important; border-left-color: var(--brand); font-weight: 600; }

/* ---------- урок ---------- */
.docs-article { max-width: 720px; }
.docs-article h1, .docs-course-hero h1, .docs-hub__hero h1 { font-weight: 700; color: var(--ink); font-size: 36px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 12px; }
.docs-meta { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.docs-body { font-size: 16.5px; line-height: 1.72; color: var(--text); }
.docs-body > *:first-child { margin-top: 0; }
.docs-body p { margin: 0 0 16px; }
.docs-body .docs-lead, .docs-lead { font-size: 18.5px; line-height: 1.6; color: #3b4758; }
.docs-body h2 { font-size: 25px; line-height: 1.25; font-weight: 700; color: var(--ink); margin: 46px 0 14px; scroll-margin-top: calc(var(--top) + 20px); }
.docs-body h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); margin: 32px 0 10px; scroll-margin-top: calc(var(--top) + 20px); }
.docs-body h4 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.docs-body strong, .docs-body b { font-weight: 700; color: var(--ink); }
.docs-body a { text-decoration: underline; text-decoration-color: rgba(10,116,194,.35); text-underline-offset: 3px; }
.docs-body a:hover { text-decoration-color: currentColor; }
.docs-body ul, .docs-body ol { margin: 0 0 18px; padding-left: 24px; }
.docs-body li { margin: 0 0 8px; }
.docs-body li > ul, .docs-body li > ol { margin: 8px 0 0; }
.docs-body ul > li::marker { color: var(--brand); }
.docs-body ol { counter-reset: step var(--ol-start, 0); list-style: none; padding-left: 0; }
.docs-body ol > li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 12px; }
.docs-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }
.docs-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.docs-body code { font: 500 14px/1.4 'SFMono-Regular', Menlo, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: #0f3d66; }
.docs-body pre { background: #0f1726; color: #e6edf6; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.docs-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.docs-body kbd { font: 600 13px var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; background: #fff; color: var(--ink); }

/* номер на скриншоте и в тексте */
.docs-num { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff !important; font: 700 12px/1 var(--font); vertical-align: 2px; margin: 0 2px; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(229,55,43,.45); }
/* путь в админке */
.docs-path { display: inline; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: normal; }
.docs-path i { font-style: normal; color: var(--muted); font-weight: 400; margin: 0 5px; }
.docs-ui { font-weight: 700; color: var(--ink); }

/* скриншоты */
.docs-shot { margin: 26px 0 30px; }
.docs-shot img { display: block; height: auto; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 1px 2px rgba(20,28,43,.05), 0 12px 28px -18px rgba(20,28,43,.35); background: #fff; cursor: zoom-in; }
.docs-shot--plain img { border: 0; box-shadow: none; border-radius: 0; cursor: default; }
.docs-shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.docs-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 30px; }
.docs-shots .docs-shot { margin: 0; }

/* выноски */
.docs-body .admonition { position: relative; margin: 24px 0; padding: 16px 20px 16px 54px; border-radius: var(--radius); background: #eef6fd; border: 1px solid #d7e9f8; font-size: 15.5px; line-height: 1.6; }
.docs-body .admonition::before { content: 'i'; position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 13px/22px var(--font); text-align: center; }
.docs-body .admonition > :last-child { margin-bottom: 0; }
.docs-body .admonition-title { font-weight: 700; color: var(--ink); margin: 0 0 4px !important; }
.docs-body .admonition.tip { background: #edf8f1; border-color: #cfeadb; }
.docs-body .admonition.tip::before { content: ''; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1.1 2V16h5v-.2c.1-.8.5-1.5 1.1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") 50% 50% no-repeat; }
.docs-body .admonition.warning { background: #fff7e8; border-color: #f6e0b5; }
.docs-body .admonition.warning::before { content: '!'; background: #e29600; }
.docs-body .admonition.danger { background: #fdf0ef; border-color: #f5d2cf; }
.docs-body .admonition.danger::before { content: '!'; background: var(--red); }

/* таблицы */
.docs-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.docs-body th { text-align: left; font-weight: 700; color: var(--ink); background: var(--soft); padding: 11px 14px; border-bottom: 1px solid var(--line); }
.docs-body td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body tr:last-child td { border-bottom: 0; }
.docs-body td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
.docs-body table:has(td:first-child > .docs-num) :is(th, td):first-child { width: 46px; padding-right: 0; text-align: center; }
.docs-body table:has(td:first-child > .docs-num) td:nth-child(2) { width: 32%; color: var(--ink); }

/* карточки уроков главы */
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 8px; }
.docs-card { display: block; position: relative; padding: 16px 18px 16px 58px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.docs-card:hover { border-color: #bcd6ef; box-shadow: 0 12px 26px -18px rgba(10,116,194,.5); transform: translateY(-1px); }
.docs-card__num { position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }
.docs-card__title { display: block; font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.35; }
.docs-card__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* навигация между уроками */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.docs-pager__link { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.docs-pager__link:hover { border-color: #bcd6ef; box-shadow: 0 12px 26px -18px rgba(10,116,194,.5); }
.docs-pager__link span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.docs-pager__link b { display: block; font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.docs-pager__link--prev span::before { content: '← '; }
.docs-pager__link--next { text-align: right; grid-column: 2; }
.docs-pager__link--next span::after { content: ' →'; }

.docs-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 780px; margin: 36px 0 0; padding: 18px 22px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.docs-help__text b { display: block; color: var(--ink); font-size: 15.5px; }
.docs-help__text span { font-size: 14px; color: var(--muted); }
.docs-help__links { display: flex; gap: 18px; font-weight: 600; font-size: 14.5px; }

/* ---------- страница курса ---------- */
.docs-eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.docs-course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; align-items: center; padding: 8px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.docs-course-hero__img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(20,28,43,.45); }
.docs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.docs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 11px; background: var(--brand); color: #fff !important; font: 700 15px var(--font); border: 0; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.docs-btn:hover { background: #0866ab; box-shadow: 0 10px 22px -12px rgba(10,116,194,.8); }
.docs-btn--ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line-2); }
.docs-btn--ghost:hover { background: var(--soft); box-shadow: none; }
.docs-link { font-weight: 600; font-size: 15px; }
.docs-badge { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 20px; background: var(--soft); color: var(--muted); font-weight: 600; font-size: 14px; }
.docs-muted { color: var(--muted); }
.docs-body--intro { max-width: 860px; margin-bottom: 30px; }
.docs-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.docs-chapter { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.docs-chapter__head { display: flex; align-items: baseline; gap: 12px; }
.docs-chapter__num { font-weight: 700; font-size: 14px; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; }
.docs-chapter__title { font-weight: 700; font-size: 19px; color: var(--ink); }
.docs-chapter__text { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.docs-chapter__list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); columns: 1; }
.docs-chapter__list li { margin: 0 0 6px; font-size: 14.5px; }
.docs-chapter__list a { color: var(--text) !important; }
.docs-chapter__list a:hover { color: var(--brand) !important; }
.docs-chapter__more a { color: var(--brand) !important; font-weight: 600; }

/* ---------- общий вход ---------- */
.docs-hub { max-width: 1180px; margin: 0 auto; padding: 56px 24px 80px; }
.docs-hub--narrow { max-width: 860px; }
.docs-hub__hero { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.docs-hub__hero h1 { font-size: 44px; }
.docs-hub__hero .docs-actions { justify-content: center; }
.docs-hub__search { display: flex; gap: 10px; max-width: 640px; margin: 28px auto 0; }
.docs-hub__search input { flex: 1 1 auto; height: 52px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 18px; font: 400 16px var(--font); outline: none; }
.docs-hub__search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(10,116,194,.12); }
.docs-hub__search .docs-btn { height: 52px; }
.docs-hub__search--inline { margin: 8px 0 24px; max-width: 640px; }
.docs-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.docs-product { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.docs-product:hover { border-color: #c6dcf0; box-shadow: 0 26px 50px -34px rgba(10,60,110,.55); }
.docs-product__media { display: block; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.docs-product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.docs-product__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.docs-product__edition { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 20px; padding: 4px 10px; margin-bottom: 12px; }
.docs-product h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.docs-product h2 a { color: var(--ink) !important; }
.docs-product p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.docs-product__actions { margin-top: auto; display: flex; align-items: center; gap: 18px; }
.docs-product.is-soon .docs-product__media img { filter: grayscale(.35); opacity: .8; }
.docs-hub__how { margin-top: 56px; }
.docs-hub__how h2, .docs-results h2 { font-size: 26px; color: var(--ink); margin: 0 0 18px; }
.docs-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.docs-how__item { padding: 20px 22px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.docs-how__item b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 6px; }
.docs-how__item span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.docs-hub .docs-help { max-width: none; margin-top: 40px; }
.docs-results { margin: 0 0 46px; }
.docs-results__list { list-style: none; margin: 0; padding: 0; }
.docs-results__list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.docs-results__list li > a { font-weight: 700; font-size: 17px; }
.docs-results__list p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.docs-results__list mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.docs-results__course { margin-left: 10px; font-size: 12.5px; color: var(--muted); background: var(--soft); border-radius: 20px; padding: 2px 8px; }

/* ---------- подвал ---------- */
.docs-foot { border-top: 1px solid var(--line); background: #fff; }
.docs-foot__inner { max-width: 1480px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.docs-foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.docs-foot__links a { color: var(--muted) !important; }

/* увеличение картинки */
.docs-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(12,18,28,.86); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.docs-zoom[hidden] { display: none; }
.docs-zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.docs-zoom--pan { display: block; overflow: auto; -webkit-overflow-scrolling: touch; cursor: auto; padding: 60px 12px 28px; touch-action: pan-x pan-y pinch-zoom; }
.docs-zoom.docs-zoom--pan img { max-width: none; max-height: none; display: block; }
.docs-zoom__close { position: fixed; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font: 400 26px/40px var(--font); cursor: pointer; }
.docs-body .docs-shot img:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.docs-body td code, .docs-body td .docs-path, .docs-body td a { overflow-wrap: anywhere; word-break: break-word; }
.docs-body code { overflow-wrap: anywhere; }
.docs-body .docs-dead { color: var(--muted); font-weight: 400; }

/* ---------- адаптив ---------- */
@media (max-width: 1279px) {
  .docs-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-main { padding: 26px 40px 64px; }
}
@media (max-width: 1023px) {
  .docs-layout, .docs-layout:has(.docs-main--wide) { grid-template-columns: minmax(0, 1fr); }
  .docs-top__menu { display: block; }
  .docs-top__site { display: none; }
  .docs-side { position: fixed; z-index: 70; top: var(--top); left: 0; bottom: 0; width: min(340px, 88vw); height: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 40px -20px rgba(20,28,43,.35); }
  body.docs-side-open .docs-side { transform: none; }
  body.docs-side-open::after { content: ''; position: fixed; inset: var(--top) 0 0 0; background: rgba(12,18,28,.35); z-index: 65; }
  .docs-course-hero { grid-template-columns: 1fr; }
  .docs-course-hero__img { max-width: 520px; }
  .docs-products, .docs-chapters { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .docs-top__inner { padding: 0 12px; gap: 10px; }
  .docs-top__logo span, .docs-top__docs, .docs-switch, .docs-top__demo { display: none; }
  .docs-top__inner:not(:has(.docs-top__menu)) .docs-top__search { display: none; }
  .docs-top__inner:not(:has(.docs-top__menu)) .docs-top__links { margin-left: auto; }
  .docs-main { padding: 20px 18px 56px; }
  .docs-article h1, .docs-course-hero h1 { font-size: 29px; }
  .docs-hub__hero h1 { font-size: 32px; }
  .docs-body { font-size: 16px; }
  .docs-cards, .docs-how, .docs-shots, .docs-pager { grid-template-columns: 1fr; }
  .docs-pager__link--next { grid-column: auto; }
  .docs-hub__search { flex-direction: column; }
  .docs-search kbd { display: none; }
  .docs-body table { font-size: 14px; }
  .docs-body th, .docs-body td { padding: 9px 10px; }
  .docs-body table:has(td:first-child > .docs-num) :is(th, td):first-child { width: 34px; padding-left: 8px; }
  .docs-body td .docs-path { padding: 0; border: 0; background: none; overflow-wrap: break-word; }
  .docs-body td .docs-path i { margin: 0 3px; }
}

#docs-site-menu-host[hidden] { display: none !important; }
#docs-site-menu-host { position: fixed; inset: 0; z-index: 80; }
body.docs-nav-open { overflow: hidden; }

@media print {
  .docs-top, .docs-side, .docs-toc, .docs-pager, .docs-help, .docs-foot { display: none !important; }
  .docs-layout { display: block; }
  .docs-main { padding: 0; }
}
