/* ============================================================================
   Раздел «Знания», страница темы, страница статьи и «Сбалансированные
   комплексы» — макеты 2023-1492, 2023-1921, 2023-2395, 2023-3457.

   До этого файла страницы использовали общую «черновую» вёрстку из
   mbm-pages.css: один заголовок, плоский список карточек и три панели в
   сайдбаре. Здесь собрано то, что есть в макетах — плашки-показатели, плитки
   тем, блок «Рекомендуемое», вкладки по типу материала и боковые панели.
   ========================================================================= */

.mbm-knowledge-page,
.mbm-article-page,
.mbm-collections-page {
    background: var(--figma-paper, #fcfbf7);
    color: var(--figma-ink, #1a2b22);
}
.mbm-knowledge-page *,
.mbm-article-page *,
.mbm-collections-page * { box-sizing: border-box; }
.mbm-knowledge-page .mbm-page,
.mbm-article-page .mbm-page,
.mbm-collections-page .mbm-page { width: 100%; max-width: 1440px; padding: 32px 60px 80px; }
.mbm-knowledge-page .mobile-drawer:not(.open),
.mbm-article-page .mobile-drawer:not(.open),
.mbm-collections-page .mobile-drawer:not(.open) { display: none; }

/* ── Шапка раздела ── */
.kn-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 60px; align-items: center; }
.kn-hero h1 { margin: 0; font: 400 42px/1.12 Manrope, sans-serif; letter-spacing: -.02em; }
.kn-hero h1 em { color: var(--figma-green, #175937); font-style: normal; }
.kn-hero p { max-width: 520px; margin: 18px 0 0; color: var(--figma-copy, #4b5a51); font-size: 15px; line-height: 1.65; }
.kn-hero p b { color: var(--figma-green, #175937); font-weight: 600; }
.kn-hero__art { width: 100%; height: 190px; object-fit: cover; border-radius: 18px; background: var(--figma-mint, #e3efe6); }

/* ── Плашки-показатели ── */
.kn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 44px 0 0; }
.kn-stats > div { display: flex; align-items: center; gap: 14px; }
.kn-stats i {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--figma-mint, #e3efe6);
    color: var(--figma-green, #175937);
    font-style: normal; font-size: 17px;
}
.kn-stats b { display: block; font-size: 15px; }
.kn-stats span { display: block; margin-top: 2px; color: var(--figma-muted, #8a968e); font-size: 12px; }

/* ── Блоки с заголовком ── */
.kn-block { margin-top: 52px; }
.kn-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.kn-block__head h2,
.kn-block > h2 { margin: 0 0 20px; font: 500 24px/1.2 Manrope, sans-serif; letter-spacing: -.01em; }
.kn-block__head h2 { margin: 0; }
.kn-block__head a { color: var(--figma-green, #175937); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ── Плитки тем ── */
.kn-topics { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.kn-topic {
    min-height: 92px; padding: 16px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid var(--figma-line, #e7eae6);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font-size: 12px; line-height: 1.3; text-align: center; text-decoration: none;
    transition: .18s ease;
}
.kn-topic:hover { border-color: var(--figma-green, #175937); transform: translateY(-2px); }
.kn-topic i {
    width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 50%; background: var(--figma-mint, #e3efe6);
    color: var(--figma-green, #175937); font-style: normal; font-size: 14px;
}

/* ── Рекомендуемое: одна большая карточка и две маленькие ── */
.kn-featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.kn-featured__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
/* Карточки-обложки — ссылки, а в mbm.css есть `.mbm-site a { color: inherit }`
   со специфичностью (0,1,1). Одиночный класс её не перебивает, и белый текст
   на тёмной картинке становился тёмным. Поэтому здесь и ниже цвет задаётся
   через `.mbm-site …` — (0,2,0) выигрывает. */
.mbm-site .kn-lead-card,
.kn-lead-card {
    position: relative; min-height: 280px; padding: 28px;
    display: flex; flex-direction: column; justify-content: end; gap: 14px;
    border-radius: 20px; overflow: hidden;
    color: #fff; text-decoration: none;
    background: linear-gradient(150deg, #2b2f7a, #101a4d);
}
.kn-lead-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
/* Затемнение поверх фотографии: обложки бывают светлыми, и без него белый
   текст на них не читается. */
.kn-lead-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 40, .1) 0%, rgba(8, 16, 40, .6) 45%, rgba(8, 16, 40, .9) 100%);
}
.kn-lead-card > * { position: relative; z-index: 1; }
.kn-lead-card__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-lead-card__badges span {
    padding: 5px 11px; border-radius: 99px;
    background: rgba(255, 255, 255, .18);
    font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.mbm-site .kn-lead-card h3,
.kn-lead-card h3 { margin: 0; color: #fff; font: 600 26px/1.22 Manrope, sans-serif; letter-spacing: -.01em; }
.mbm-site .kn-lead-card p,
.kn-lead-card p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 1.6; }
.mbm-site .kn-lead-card .kn-author strong,
.mbm-site .kn-lead-card .kn-author span,
.kn-lead-card .kn-author strong,
.kn-lead-card .kn-author span { color: #fff; }
.kn-lead-card .kn-author i { background: rgba(255, 255, 255, .22); color: #fff; }
.mbm-site .kn-lead-card__cta,
.kn-lead-card__cta {
    align-self: start; margin-top: 6px; padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 99px; background: rgba(255, 255, 255, .16);
    color: #fff; font-size: 13px; font-weight: 600;
}
.mbm-site .kn-mini-card,
.kn-mini-card {
    position: relative; min-width: 0; padding: 18px;
    display: flex; flex-direction: column; justify-content: end; gap: 8px;
    border-radius: 18px; overflow: hidden;
    color: #fff; text-decoration: none;
    background: linear-gradient(150deg, #3d6b4c, #16321f);
}
.kn-mini-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
/* Затемнение держит контраст даже на светлой обложке, но не съедает её:
   сверху почти прозрачное, к подписи — плотное. */
.kn-mini-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 18, .08) 0%, rgba(10, 26, 18, .55) 42%, rgba(10, 26, 18, .88) 100%);
}
.kn-mini-card > * { position: relative; z-index: 1; }
.mbm-site .kn-mini-card h3,
.kn-mini-card h3 { margin: 0; color: #fff; font: 600 17px/1.3 Manrope, sans-serif; }
.kn-mini-card .kn-meta,
.kn-mini-card .kn-meta b { color: rgba(255, 255, 255, .85); }
.mbm-site .kn-mini-card .kn-author strong,
.mbm-site .kn-mini-card .kn-author span,
.kn-mini-card .kn-author strong,
.kn-mini-card .kn-author span { color: #fff; }
.kn-mini-card .kn-author i { background: rgba(255, 255, 255, .22); color: #fff; }

/* ── Вкладки по типу материала ── */
.kn-tabs { display: flex; gap: 26px; margin: 44px 0 0; border-bottom: 1px solid var(--figma-line, #e7eae6); overflow-x: auto; scrollbar-width: none; }
.kn-tabs::-webkit-scrollbar { display: none; }
.kn-tabs button {
    flex: 0 0 auto; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent;
    background: none; color: var(--figma-muted, #8a968e);
    font-size: 14px; cursor: pointer;
}
.kn-tabs button.active { color: var(--figma-ink, #1a2b22); border-bottom-color: var(--figma-green, #175937); font-weight: 600; }

/* ── Список материалов ── */
.kn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; margin-top: 28px; align-items: start; }
.kn-list { display: grid; }
.kn-item {
    position: relative;
    display: grid; grid-template-columns: 130px minmax(0, 1fr) 24px; gap: 20px;
    padding: 22px 0; border-bottom: 1px solid var(--figma-line, #e7eae6);
    color: inherit; text-decoration: none;
}
.kn-item:first-child { padding-top: 6px; }
.kn-item__cover { width: 130px; height: 88px; object-fit: cover; border-radius: 12px; background: #1b2a63; }
.kn-item h3 { margin: 6px 0 6px; font: 600 17px/1.3 Manrope, sans-serif; }
.kn-item p { margin: 0; color: var(--figma-copy, #4b5a51); font-size: 13px; line-height: 1.6; }
.kn-item__save { align-self: start; margin-top: 6px; color: var(--figma-muted, #8a968e); font-size: 15px; }
.kn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.kn-meta b { color: var(--figma-green, #175937); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kn-author { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.kn-author img,
.kn-author i {
    width: 26px; height: 26px; flex: 0 0 26px;
    display: grid; place-items: center; object-fit: cover;
    border-radius: 50%; background: var(--figma-mint, #e3efe6);
    color: var(--figma-green, #175937);
    font: 600 10px/1 Manrope, sans-serif; font-style: normal;
}
.kn-author strong { display: block; font-size: 12px; font-weight: 600; }
.kn-author span { display: block; margin-top: 1px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.kn-more {
    display: block; margin: 32px auto 0; padding: 12px 26px;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 99px;
    background: #fff; color: var(--figma-ink, #1a2b22); font-size: 13px; cursor: pointer;
}
/* Авторский display перебивает браузерное [hidden], поэтому скрытие задаём явно. */
.kn-more[hidden] { display: none; }
.kn-promo[hidden] { display: none; }
.kn-empty { padding: 60px 0; color: var(--figma-muted, #8a968e); text-align: center; }

/* ── Правая колонка ── */
.kn-side { display: grid; gap: 20px; align-content: start; }
.kn-card { padding: 22px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 18px; background: #fff; }
.kn-card h3 { margin: 0 0 14px; font-size: 15px; }
.kn-card__title { margin: 0 0 12px; font-size: 15px; }
.kn-quote__mark { display: block; margin-bottom: 8px; color: var(--figma-green, #175937); font: 600 22px/1 Georgia, serif; }
.kn-quote p { margin: 0 0 16px; color: var(--figma-copy, #4b5a51); font-size: 13px; line-height: 1.65; }
.kn-subscribe p { margin: 0 0 14px; color: var(--figma-copy, #4b5a51); font-size: 13px; line-height: 1.6; }
.kn-subscribe form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.kn-subscribe input {
    min-width: 0; padding: 11px 14px;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 10px;
    background: #fff; font-size: 13px;
}
.kn-subscribe button {
    padding: 11px 16px; border: 0; border-radius: 10px;
    background: var(--figma-green, #175937); color: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.kn-subscribe small { display: block; margin-top: 10px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.kn-subscribe .kn-done { margin: 0; color: var(--figma-green, #175937); font-size: 13px; font-weight: 600; }
.kn-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.kn-tags a {
    padding: 7px 13px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 99px;
    background: #fff; color: var(--figma-copy, #4b5a51); font-size: 12px; text-decoration: none;
}
.kn-tags a:hover { border-color: var(--figma-green, #175937); color: var(--figma-green, #175937); }

/* Фильтр тем со счётчиками */
.kn-filter a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; margin: 0 -6px; border-radius: 10px;
    color: var(--figma-copy, #4b5a51); font-size: 13px; text-decoration: none;
}
.kn-filter a span { color: var(--figma-muted, #8a968e); font-size: 12px; }
.kn-filter a:hover { background: #f3f7f4; }
.kn-filter a.is-active { background: var(--figma-green, #175937); color: #fff; }
.kn-filter a.is-active span { color: rgba(255, 255, 255, .8); }
.kn-filter__reset { display: inline-block; margin-top: 12px; color: var(--figma-muted, #8a968e); font-size: 12px; text-decoration: none; }

/* Список экспертов в сайдбаре */
.kn-expert { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: inherit; text-decoration: none; }
.kn-expert img,
.kn-expert i {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: grid; place-items: center; object-fit: cover;
    border-radius: 50%; background: var(--figma-mint, #e3efe6);
    color: var(--figma-green, #175937); font: 600 11px/1 Manrope, sans-serif; font-style: normal;
}
.kn-expert strong { display: block; font-size: 13px; font-weight: 500; }
.kn-expert span { display: block; color: var(--figma-muted, #8a968e); font-size: 11px; }

/* Промо-подборка */
.kn-promo { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: center; }
.kn-promo h3 { grid-column: 1/-1; margin: 0; font-size: 15px; line-height: 1.35; }
.kn-promo p { margin: 0; color: var(--figma-copy, #4b5a51); font-size: 12px; line-height: 1.55; }
.kn-promo img { width: 72px; height: 72px; object-fit: contain; }
.kn-promo .mbm-btn { grid-column: 1/-1; width: 100%; }

/* ── Шапка темы ── */
.kn-topic-hero { display: grid; grid-template-columns: 56px minmax(0, 1fr) 400px; gap: 20px 22px; align-items: center; }
.kn-topic-hero__icon {
    width: 56px; height: 56px; display: grid; place-items: center; align-self: start;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 14px;
    background: #fff; font-size: 24px; font-style: normal;
}
.kn-topic-hero h1 { margin: 0; font: 500 34px/1.15 Manrope, sans-serif; letter-spacing: -.02em; }
.kn-topic-hero p { max-width: 560px; margin: 12px 0 0; color: var(--figma-copy, #4b5a51); font-size: 14px; line-height: 1.6; }
.kn-topic-hero__art { grid-row: 1/3; grid-column: 3; width: 100%; height: 150px; object-fit: cover; border-radius: 16px; background: var(--figma-mint, #e3efe6); }
.kn-topic-hero .kn-stats { grid-column: 2; grid-template-columns: repeat(3, max-content); gap: 34px; margin-top: 20px; }

/* ── Нижняя полоса доверия ── */
.kn-trust {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    margin-top: 70px; padding: 34px 40px;
    border-radius: 22px; background: #f2f5f2;
}
.kn-trust > div { display: flex; gap: 14px; }
.kn-trust i {
    width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center;
    border-radius: 50%; background: #fff; color: var(--figma-green, #175937);
    font-style: normal; font-size: 15px;
}
.kn-trust b { display: block; font-size: 13px; }
.kn-trust span { display: block; margin-top: 4px; color: var(--figma-muted, #8a968e); font-size: 12px; line-height: 1.5; }

/* ============================ Страница статьи ============================ */
.mbm-article-page .article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.article-badge {
    display: inline-block; padding: 5px 12px; border-radius: 99px;
    background: var(--figma-mint, #e3efe6); color: var(--figma-green, #175937);
    font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.mbm-article-page .article-meta { display: block; margin: 14px 0 10px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.mbm-article-page .article-title { margin: 0; font: 500 32px/1.2 Manrope, sans-serif; letter-spacing: -.02em; }
.mbm-article-page .article-title em { color: var(--figma-green, #175937); font-style: normal; }
.article-lead { margin: 14px 0 0; color: var(--figma-copy, #4b5a51); font-size: 14px; line-height: 1.65; }
.mbm-article-page .article-hero { width: 100%; height: 100%; min-height: 260px; max-height: 320px; object-fit: cover; border-radius: 18px; }
.article-actions { display: flex; gap: 10px; margin-top: 20px; }
.article-actions button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 99px;
    background: #fff; color: var(--figma-copy, #4b5a51); font-size: 13px; cursor: pointer;
}
.article-actions button:hover { border-color: var(--figma-green, #175937); color: var(--figma-green, #175937); }

.article-inthis { margin: 36px 0 0; padding: 24px; border-radius: 18px; background: #f4f7f4; }
.article-inthis h2 { margin: 0 0 16px; font-size: 15px; }
.article-inthis ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 34px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.article-inthis li { counter-increment: t; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.article-inthis li::before { content: counter(t, decimal-leading-zero); color: var(--figma-green, #175937); font-weight: 700; }
.article-inthis a { color: inherit; text-decoration: none; }
.article-inthis a:hover { color: var(--figma-green, #175937); }

.mbm-article-page .article-quote {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center;
    margin: 28px 0 0; padding: 24px;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 18px; background: #fff;
}
.article-quote p { margin: 0; color: var(--figma-copy, #4b5a51); font-size: 14px; line-height: 1.7; }
.article-quote p::before { content: '“'; display: block; margin-bottom: 4px; color: var(--figma-green, #175937); font: 600 24px/1 Georgia, serif; }

.mbm-article-page .article-body { position: relative; margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--figma-copy, #4b5a51); }
.mbm-article-page .article-body h2 {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline;
    margin: 38px 0 12px; color: var(--figma-ink, #1a2b22);
    font: 600 21px/1.25 Manrope, sans-serif; scroll-margin-top: 110px;
}
.mbm-article-page .article-body h2 .article-body__num { color: var(--figma-green, #175937); font-size: 12px; font-weight: 700; }
.mbm-article-page .article-body h3 { margin: 26px 0 10px; color: var(--figma-ink, #1a2b22); font-size: 16px; }
.mbm-article-page .article-body ul { padding-left: 20px; }
.mbm-article-page .article-body li::marker { color: var(--figma-green, #175937); }
.mbm-article-page .article-body img { max-width: 100%; border-radius: 16px; }
.article-body.is-clamped { max-height: 1100px; overflow: hidden; }
.article-body.is-clamped::after {
    content: ''; position: absolute; inset: auto 0 0; height: 160px;
    background: linear-gradient(rgba(252, 251, 247, 0), var(--figma-paper, #fcfbf7));
}
.article-expand {
    display: block; margin: 22px auto 0; padding: 11px 26px;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 99px;
    background: #fff; font-size: 13px; cursor: pointer;
}
.mbm-article-page .article-side { position: sticky; top: 24px; display: grid; gap: 20px; align-content: start; }
.mbm-article-page .article-toc { padding: 22px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 18px; background: #fff; }
.article-toc h3 { margin: 0 0 14px; font-size: 15px; }
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.article-toc li { counter-increment: c; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 12px; line-height: 1.45; }
.article-toc li::before { content: counter(c, decimal-leading-zero); color: var(--figma-muted, #8a968e); font-weight: 600; }
.mbm-article-page .article-toc a { color: var(--figma-copy, #4b5a51); text-decoration: none; }
.mbm-article-page .article-toc a:hover,
.mbm-article-page .article-toc li.is-active a { color: var(--figma-green, #175937); font-weight: 600; }
.mbm-article-page .article-recs { padding: 22px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 18px; background: #fff; }
.article-recs h3 { margin: 0 0 6px; font-size: 15px; }
.mbm-article-page .article-rec {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 12px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--figma-line, #e7eae6);
    color: inherit; text-decoration: none;
}
.article-rec img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #eef3ef; }
.article-rec strong { display: block; font-size: 13px; font-weight: 600; }
.article-rec span { display: block; margin-top: 3px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.article-rec button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--figma-green, #175937); color: #fff; cursor: pointer; }
.article-recs__all { display: block; margin-top: 14px; color: var(--figma-green, #175937); font-size: 12px; font-weight: 600; text-decoration: none; }
.mbm-article-page .article-related { margin-top: 60px; }
.article-related__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.article-related__head h2 { margin: 0; font: 500 24px/1.2 Manrope, sans-serif; }
.article-related__head a { color: var(--figma-green, #175937); font-size: 13px; font-weight: 600; text-decoration: none; }
.article-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-related__grid .kn-mini-card { min-height: 210px; }

/* ========================= Сбалансированные комплексы ==================== */
.mbm-collections-page .mbm-display { font: 400 42px/1.1 Manrope, sans-serif; letter-spacing: -.025em; margin: 0 0 18px; }
.mbm-collections-page .mbm-lead { max-width: 520px; font-size: 14px; line-height: 1.65; color: var(--figma-copy, #4b5a51); }
.mbm-collections-page .mbm-features { margin: 40px 0 34px; }
.mbm-collections-page .collection-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.mbm-collections-page .collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.mbm-collections-page .collection-card {
    min-width: 0; display: flex; flex-direction: column;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 20px; background: #fff; overflow: hidden;
}
.collection-card__media { position: relative; height: 210px; background: #eef5ec; }
.collection-card__media img { width: 100%; height: 100%; object-fit: cover; }
.collection-card__badge {
    position: absolute; top: 14px; left: 14px; padding: 5px 11px;
    border-radius: 99px; background: var(--figma-green, #175937); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
}
.collection-card__discount {
    position: absolute; top: 14px; right: 14px; padding: 5px 10px;
    border-radius: 99px; background: #fff; color: var(--figma-ink, #1a2b22);
    font-size: 11px; font-weight: 700;
}
.collection-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.mbm-collections-page .collection-card__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.mbm-collections-page .collection-card h2 { margin: 12px 0 8px; font: 600 18px/1.25 Manrope, sans-serif; }
.mbm-collections-page .collection-card > .collection-card__body > p { margin: 0; color: var(--figma-copy, #4b5a51); font-size: 13px; line-height: 1.6; }
.mbm-collections-page .collection-steps { display: grid; gap: 0; margin: 16px 0 18px; }
.mbm-collections-page .collection-step {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 10px 12px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 12px;
}
.collection-step__num {
    width: 22px; height: 22px; display: grid; place-items: center;
    border-radius: 50%; background: var(--figma-green, #175937); color: #fff;
    font-size: 11px; font-weight: 700;
}
.collection-step__body strong { display: block; font-size: 12px; font-weight: 600; }
.collection-step__body span { display: block; margin-top: 2px; color: var(--figma-muted, #8a968e); font-size: 11px; }
.collection-step__days { color: var(--figma-muted, #8a968e); font-size: 11px; white-space: nowrap; }
.collection-step__arrow { padding: 3px 0; color: var(--figma-muted, #8a968e); font-size: 12px; text-align: center; }
.collection-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.collection-card__price s { display: block; color: var(--figma-muted, #8a968e); font-size: 12px; }
.collection-card__price strong { display: block; margin: 2px 0; font: 600 20px/1 Manrope, sans-serif; }
.collection-card__price em { display: block; color: var(--figma-green, #175937); font-size: 11px; font-style: normal; font-weight: 600; }
.collection-card__footer .mbm-btn { padding: 11px 18px; font-size: 13px; }

/* ── Адаптив ── */
@media (max-width: 1180px) {
    .kn-topics { grid-template-columns: repeat(5, 1fr); }
    .kn-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .mbm-collections-page .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .article-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .mbm-knowledge-page .mbm-page,
    .mbm-article-page .mbm-page,
    .mbm-collections-page .mbm-page { padding: 24px 20px 60px; }
    .kn-hero,
    .kn-layout,
    .kn-featured,
    .article-head,
    .mbm-article-page .article-shell { grid-template-columns: minmax(0, 1fr); }
    .kn-hero__art { height: 160px; }
    .kn-topic-hero { grid-template-columns: 56px minmax(0, 1fr); }
    .kn-topic-hero__art { grid-row: auto; grid-column: 1/-1; height: 140px; }
    .kn-topic-hero .kn-stats { grid-column: 1/-1; }
    .mbm-article-page .article-side { position: static; }
    .kn-trust { grid-template-columns: repeat(2, 1fr); padding: 26px; }
}
@media (max-width: 700px) {
    .kn-topics { grid-template-columns: repeat(3, 1fr); }
    .kn-stats { grid-template-columns: minmax(0, 1fr); }
    .kn-hero h1 { font-size: 30px; }
    .kn-item { grid-template-columns: 96px minmax(0, 1fr); }
    .kn-item__cover { width: 96px; height: 72px; }
    .kn-item__save { display: none; }
    .article-inthis ol { grid-template-columns: minmax(0, 1fr); }
    .mbm-article-page .article-title { font-size: 26px; }
    .mbm-collections-page .collection-grid,
    .article-related__grid { grid-template-columns: minmax(0, 1fr); }
    .mbm-collections-page .mbm-display { font-size: 32px; }
    .kn-trust { grid-template-columns: minmax(0, 1fr); }
    .mbm-article-page .article-quote { grid-template-columns: minmax(0, 1fr); }
}

/* ============================ Страница комплекса ======================== */
.mbm-collection-page { background: var(--figma-paper, #fcfbf7); color: var(--figma-ink, #1a2b22); }
.mbm-collection-page * { box-sizing: border-box; }
.mbm-collection-page .mbm-page { width: 100%; max-width: 1180px; padding: 32px 40px 90px; }
.mbm-collection-page .mobile-drawer:not(.open) { display: none; }

.col-hero { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.col-hero__media { position: relative; border-radius: 20px; overflow: hidden; background: #eef5ec; aspect-ratio: 1; }
.col-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.col-hero__badge {
    position: absolute; top: 16px; left: 16px; padding: 6px 13px;
    border-radius: 99px; background: var(--figma-green, #175937); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.col-hero__discount {
    position: absolute; top: 16px; right: 16px; padding: 6px 12px;
    border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700;
}
.col-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--figma-muted, #8a968e); font-size: 13px; }
.mbm-collection-page h1 { margin: 12px 0 0; font: 500 34px/1.18 Manrope, sans-serif; letter-spacing: -.02em; }
.col-lead { margin: 14px 0 0; color: var(--figma-copy, #4b5a51); font-size: 15px; line-height: 1.65; }
.col-buy {
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    margin: 26px 0 0; padding: 20px;
    border: 1px solid var(--figma-line, #e7eae6); border-radius: 16px; background: #fff;
}
.col-price s { display: block; color: var(--figma-muted, #8a968e); font-size: 13px; }
.col-price strong { display: block; margin: 3px 0; font: 600 28px/1 Manrope, sans-serif; }
.col-price em { display: block; color: var(--figma-green, #175937); font-size: 12px; font-style: normal; font-weight: 600; }
.col-buy .mbm-btn { margin-left: auto; padding: 14px 26px; }
.col-note { margin: 14px 0 0; color: var(--figma-muted, #8a968e); font-size: 13px; line-height: 1.6; }

.col-block { margin-top: 54px; }
.col-block h2 { margin: 0 0 20px; font: 500 24px/1.2 Manrope, sans-serif; }
.col-steps { display: grid; }
.col-step__link { padding: 6px 0; color: var(--figma-muted, #8a968e); text-align: center; }
.mbm-site a.col-step {
    display: grid; grid-template-columns: 34px 72px minmax(0, 1fr) auto; gap: 18px; align-items: center;
    padding: 18px 20px; border: 1px solid var(--figma-line, #e7eae6); border-radius: 16px;
    background: #fff; color: inherit; transition: .18s ease;
}
.mbm-site a.col-step:hover { border-color: var(--figma-green, #175937); transform: translateY(-1px); }
.col-step__num {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; background: var(--figma-green, #175937); color: #fff;
    font-size: 14px; font-weight: 700;
}
.col-step__img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #eef3ef; }
.col-step__body strong { display: block; font-size: 16px; }
.col-step__product { display: block; margin-top: 2px; color: var(--figma-green, #175937); font-size: 13px; }
.col-step__body p { margin: 6px 0 0; color: var(--figma-copy, #4b5a51); font-size: 13px; line-height: 1.6; }
.col-step__meta { text-align: right; white-space: nowrap; }
.col-step__meta span { display: block; color: var(--figma-muted, #8a968e); font-size: 12px; }
.col-step__meta b { display: block; margin-top: 4px; font-size: 15px; }
.col-step__meta em { display: block; margin-top: 6px; color: var(--figma-green, #175937); font-size: 12px; font-style: normal; font-weight: 600; }

.col-html { color: var(--figma-copy, #4b5a51); font-size: 15px; line-height: 1.75; }
.col-html h2, .col-html h3 { margin: 26px 0 10px; color: var(--figma-ink, #1a2b22); }
.col-html ul { padding-left: 20px; }
.col-html li { margin-bottom: 8px; }
.col-html li:last-child { margin-bottom: 0; }
.col-html li::marker { color: var(--figma-green, #175937); }
.col-html img { max-width: 100%; border-radius: 14px; }
.col-html table { width: 100%; border-collapse: collapse; }
.col-html th, .col-html td { border: 1px solid var(--figma-line, #e7eae6); padding: 8px 10px; text-align: left; }

@media (max-width: 900px) {
    .mbm-collection-page .mbm-page { padding: 22px 16px 70px; }
    .col-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .mbm-site a.col-step { grid-template-columns: 30px 56px minmax(0, 1fr); gap: 12px; }
    .col-step__img { width: 56px; height: 56px; }
    .col-step__meta { grid-column: 1 / -1; text-align: left; }
    .col-buy .mbm-btn { margin-left: 0; width: 100%; }
}

/* Кнопки в карточке комплекса на общей странице. */
.collection-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.collection-card__actions .mbm-btn { padding: 10px 16px; font-size: 13px; }
.mbm-collections-page .collection-card h2 a { color: inherit; text-decoration: none; }
.mbm-collections-page .collection-card h2 a:hover { color: var(--figma-green, #175937); }
.mbm-collections-page .collection-card__media { display: block; }
