/* ==========================================================
   БАЗА ЗНАНИЙ КОФЕЙНИ (страницы /training...)
   Все правила работают только на страницах, где есть блок
   бокового меню (.vb-k7n). Остальные страницы сайта не затронуты.
   ========================================================== */

/* ----- шрифт ----- */
@font-face { font-family: 'TildaSans'; font-style: normal; font-weight: 250 1000; font-display: swap; src: url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff2') format('woff2-variations'), url('https://static.tildacdn.com/fonts/tildasans/TildaSans-VF.woff') format('woff-variations'); }
.t-records:has(.vb-k7n) { --t-headline-font: 'TildaSans', Arial, sans-serif; --t-text-font: 'TildaSans', Arial, sans-serif; }
.t-records:has(.vb-k7n) .t-text,
.t-records:has(.vb-k7n) .t-descr,
.t-records:has(.vb-k7n) .t-title,
.t-records:has(.vb-k7n) .t-heading,
.t-records:has(.vb-k7n) .t-name,
.t-records:has(.vb-k7n) .t-uptitle,
.t-records:has(.vb-k7n) .t-text-impact { font-family: 'TildaSans', Arial, sans-serif !important; }

/* ----- текст статей ----- */
.t-records:has(.vb-k7n) .t-text_md { font-size: 21px; line-height: 1.6; font-weight: 300; color: #000; }
.t-records:has(.vb-k7n) .t-text strong,
.t-records:has(.vb-k7n) .t-text b { font-weight: 600; }
.t-records:has(.vb-k7n) .t-text ul,
.t-records:has(.vb-k7n) .t-text ol { margin: 6px 0; padding-left: 28px; }
.t-records:has(.vb-k7n) .t-text li { margin: 4px 0; }
.t-records:has(.vb-k7n) .t-text a { color: #1a1a19; text-decoration: underline; text-underline-offset: 3px; }
.t-records:has(.vb-k7n) .t119__preface { font-size: 28px; line-height: 1.4; font-weight: 300; color: #000; opacity: 1 !important; }

/* ----- раскладка: контент справа от меню, узкая колонка ----- */
.t-records:has(.vb-k7n) .t-rec { padding-top: 12px !important; padding-bottom: 12px !important; }
@media screen and (min-width: 980px) {
  .t-records:has(.vb-k7n) { padding-left: 348px; }
  .t-records:has(.vb-k7n) .t-container { width: auto; max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
  .t-records:has(.vb-k7n) .t-container .t-col { float: none; display: block; width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* ----- картинки в статьях (блок IM01) ----- */
.t-records:has(.vb-k7n) .t107 { box-sizing: border-box; max-width: 924px; margin: 0 auto; padding: 0 32px; text-align: left; }
.t-records:has(.vb-k7n) .t107 .t-align_center { text-align: left; }
.t-records:has(.vb-k7n) .t107 img { display: block; width: auto; max-width: min(100%, 540px); max-height: 720px; margin: 0; border-radius: 14px; }
.t-records:has(.vb-k7n) .t107__title { padding: 10px 0 0; font-family: 'TildaSans', Arial, sans-serif; font-size: 16px; line-height: 1.4; color: #6b6b6b; text-align: left; }

@media screen and (max-width: 640px) {
  .t-records:has(.vb-k7n) .t-text_md { font-size: 18px; }
  .t-records:has(.vb-k7n) .t119__preface { font-size: 22px; }
  .t-records:has(.vb-k7n) .t107 { padding: 0 20px; }
}

/* ----- обложка и хлебные крошки (блок vb-c4v) ----- */
.vb-c4v,
.vb-c4v * { box-sizing: border-box; }
.vb-c4v { max-width: 1240px; margin: 0 auto; padding: 22px 32px 20px; font-family: var(--t-text-font); color: #1a1a19; }
.vb-c4v__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 18px; font-size: 17px; line-height: 1.3; color: #6b6b6b; }
.vb-c4v__crumbs a { color: #6b6b6b; text-decoration: none; }
.vb-c4v__crumbs a:hover { color: #000; }
.vb-c4v__home { display: inline-flex; }
.vb-c4v__cover { display: flex; align-items: flex-end; min-height: clamp(190px, 24vw, 338px); padding: 0 clamp(20px, 8%, 120px) clamp(24px, 4.2vw, 58px); border-radius: 28px; background-color: #1a1a19; background-image: linear-gradient(rgba(26,26,25,0) 0%, rgba(26,26,25,.2) 50%, rgba(26,26,25,.45) 100%), var(--vb-cover, none); background-size: cover; background-position: center; overflow: hidden; }
.vb-c4v__title { margin: 0; font-family: var(--t-headline-font); font-size: clamp(28px, 4.2vw, 58px); line-height: 1.12; font-weight: 600; color: #93ff00; text-wrap: balance; }
.vb-c4v__cover--plain { min-height: 0; max-width: 860px; margin: 28px auto 0; padding: 0; border-radius: 0; background: none; }
.vb-c4v__cover--plain .vb-c4v__title { color: #000; font-size: clamp(28px, 3.6vw, 48px); }

/* ----- переход назад / дальше (блок vb-p9g) ----- */
.vb-p9g,
.vb-p9g * { box-sizing: border-box; }
.vb-p9g { max-width: 924px; margin: 0 auto; padding: 60px 32px 64px; font-family: var(--t-text-font); }
.vb-p9g__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid #d9d9d9; }
.vb-p9g__link { display: inline-flex; align-items: center; gap: 12px; max-width: 46%; font-size: 21px; line-height: 1.3; color: #1a1a19; text-decoration: none; }
.vb-p9g__link--next { margin-left: auto; text-align: right; }
.vb-p9g__link svg { flex: 0 0 auto; }
.vb-p9g__link:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
@media screen and (max-width: 640px) {
  .vb-c4v { padding: 16px 20px 12px; }
  .vb-c4v__cover { border-radius: 20px; }
  .vb-p9g { padding: 40px 20px 48px; }
  .vb-p9g__link { max-width: 100%; font-size: 17px; }
}

/* ----- боковое меню (блок vb-k7n) ----- */
.vb-k7n,
.vb-k7n * { box-sizing: border-box; }
.vb-k7n { font-family: var(--t-text-font); color: #1a1a19; }
.vb-k7n__bar { display: none; }
.vb-k7n__panel { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: 348px; overflow-y: auto; padding: 44px 14px 48px; background: #efefef; }
.vb-k7n__title { display: block; margin: 0 0 28px; padding: 0 34px; font-family: var(--t-headline-font); font-size: 29px; line-height: 1.25; font-weight: 700; color: #000; text-decoration: none; text-wrap: balance; }
.vb-k7n__tree,
.vb-k7n__list { margin: 0; padding: 0; list-style: none; }
.vb-k7n__list { padding-left: 24px; }
.vb-k7n__summary { display: flex; align-items: flex-start; list-style: none; cursor: pointer; border-radius: 8px; }
.vb-k7n__summary::-webkit-details-marker { display: none; }
.vb-k7n__summary::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin: 15px 14px 0 10px; border-right: 1.5px solid #1a1a19; border-bottom: 1.5px solid #1a1a19; transform: rotate(-45deg); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.vb-k7n__group[open] > .vb-k7n__summary::before { transform: rotate(45deg); }
.vb-k7n__link,
.vb-k7n__label { display: block; flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 8px; font-size: 17px; line-height: 1.35; color: #1a1a19; text-decoration: none; }
.vb-k7n__list > li > .vb-k7n__link { margin-left: 21px; }
.vb-k7n__link:hover,
.vb-k7n__summary:hover > .vb-k7n__label { background: rgba(0,0,0,.06); }
.vb-k7n__link:focus-visible,
.vb-k7n__summary:focus-visible,
.vb-k7n__toggle:focus-visible { outline: 2px solid #1a1a19; outline-offset: 2px; }
.vb-k7n__link--current,
.vb-k7n__link--current:hover { background: #dcdcdc; font-weight: 500; }
@media screen and (max-width: 979px) {
  .vb-k7n__bar { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; background: #efefef; }
  .vb-k7n__brand { font-family: var(--t-headline-font); font-size: 18px; line-height: 1.25; font-weight: 700; color: #000; text-decoration: none; }
  .vb-k7n__toggle { flex: 0 0 auto; padding: 9px 16px; border: 0; border-radius: 999px; background: #1a1a19; color: #fff; font-family: var(--t-text-font); font-size: 16px; line-height: 1.2; cursor: pointer; }
  .vb-k7n__panel { display: none; top: 56px; width: 100%; padding: 20px 14px 48px; }
  .vb-k7n__title { display: none; }
  .vb-k7n--open .vb-k7n__panel { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .vb-k7n__summary::before { transition: none; }
}
