/* BLS — раздел «Кейсы» (архив + страница одного кейса). См. docs/tz_keysy.md.
   Переиспользует общие примитивы из bls-home.css (.bls-btn и т.д. не используются
   напрямую здесь — CTA-блок и карточки самодостаточны, как в макетах
   docs/html-templates/BLS Кейсы - офлайн.html и BLS Кейс - офлайн.html). */

.bls-case-archive, .bls-case-single {
    font-family: 'Golos Text', system-ui, sans-serif;
    color: #262626;
}

/* ── Хлебные крошки (общие для архива и статьи) ──────────────────────── */
.bls-case-crumbs { font-size: 12px; color: #a29a92; letter-spacing: .04em; margin: 0 0 26px; }
.bls-case-crumbs a { color: #a29a92; }
.bls-case-crumbs a:hover { color: #eb732d; }
.bls-case-crumbs .cur { color: #6b5d54; }

/* ── Архив: хиро ──────────────────────────────────────────────────────── */
.bls-case-archive-hero { border-bottom: 1px solid #e6e4e0; background: #fff; }
.bls-case-archive-hero__inner { max-width: 1240px; margin: 0 auto; padding: 60px 32px 56px; }
.bls-case-archive-hero .bls-case-crumbs { margin-bottom: 26px; }
.bls-case-archive-hero__badge { display: inline-block; margin: 0 0 20px; padding: 7px 15px; border: 1px solid #d8cfc8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b5d54; }
.bls-case-archive-hero h1 { font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; margin: 0 0 24px; color: #1c1c1c; text-wrap: balance; max-width: 860px; }
.bls-case-archive-hero p { font-size: 18px; line-height: 1.55; color: #4a4a4a; margin: 0 0 34px; max-width: 700px; text-wrap: pretty; }
.bls-case-archive-hero__stats { display: flex; flex-wrap: wrap; gap: 40px; }
.bls-case-archive-hero__stat .num { font-size: 40px; font-weight: 800; color: #eb732d; letter-spacing: -.02em; line-height: 1; }
.bls-case-archive-hero__stat .lbl { font-size: 14px; color: #6b5d54; margin-top: 8px; max-width: 200px; line-height: 1.4; }

/* ── Архив: лента ─────────────────────────────────────────────────────── */
.bls-case-archive-feed { padding: 56px 0 90px; }
.bls-case-archive-feed__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.bls-case-archive-feed__grid { display: grid; grid-template-columns: 232px 1fr; gap: 64px; align-items: start; }

.bls-case-archive-sidebar { position: sticky; top: 112px; }
.bls-case-archive-sidebar__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a29a92; margin: 0 0 18px; }
.bls-case-archive-cats { display: flex; flex-direction: column; }
.bls-case-archive-cat { text-align: left; background: none; border: none; padding: 9px 0; font: inherit; font-size: 15px; cursor: pointer; color: #5a534d; font-weight: 500; border-left: 3px solid transparent; padding-left: 0; transition: color .12s, border-color .12s, padding-left .12s; }
.bls-case-archive-cat:hover { color: #3e1109; }
.bls-case-archive-cat.is-active { color: #3e1109; font-weight: 700; border-left-color: #eb732d; padding-left: 14px; }

.bls-case-archive-posts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.bls-case-archive-posts-head h2 { font-size: 22px; font-weight: 800; margin: 0; color: #1c1c1c; }

.bls-case-archive-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.bls-case-archive-card { display: flex; flex-direction: column; border: 1px solid #e6e2dc; background: #fff; transition: border-color .15s; color: inherit; text-decoration: none; }
.bls-case-archive-card:hover { border-color: #3e1109; color: inherit; }
.bls-case-archive-card.is-hidden { display: none; }
.bls-case-archive-card__body { padding: 26px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.bls-case-archive-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bls-case-archive-card__top .cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #eb732d; text-transform: uppercase; }
.bls-case-archive-card__top .sep { width: 1px; height: 11px; background: #d8cfc8; }
.bls-case-archive-card__top .client { font-size: 12px; color: #a49a92; }
.bls-case-archive-card h3 { font-size: 21px; line-height: 1.26; font-weight: 800; color: #1c1c1c; margin: 0 0 12px; text-wrap: balance; }
.bls-case-archive-card .excerpt { font-size: 14px; line-height: 1.6; color: #6a6a6a; margin: 0 0 20px; flex: 1; text-wrap: pretty; }
.bls-case-archive-card__res { display: flex; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid #efece7; }
.bls-case-archive-card__res .k { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a49a92; padding-top: 2px; }
.bls-case-archive-card__res .v { font-size: 14px; font-weight: 700; color: #3e1109; line-height: 1.4; }

.bls-case-archive-empty { color: #6a6a6a; padding: 20px 0; }

.bls-case-archive-more { display: flex; justify-content: center; margin-top: 44px; }
.bls-case-archive-more__btn { background: none; border: none; padding: 6px 4px; font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: #3e1109; cursor: pointer; border-bottom: 2px solid #eb732d; }
.bls-case-archive-more__btn:hover { color: #eb732d; }
.bls-case-archive-more.is-hidden { display: none; }

/* ── Статья: крошки-обёртка ──────────────────────────────────────────── */
.bls-case-crumbs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.bls-case-crumbs-wrap .bls-case-crumbs { padding-top: 48px; }

/* ── Статья: сетка (сайдбар-оглавление + тело) ──────────────────────────── */
.bls-case-art { padding-bottom: 90px; }
.bls-case-art__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.bls-case-art__grid { display: grid; grid-template-columns: 240px 1fr; gap: 72px; align-items: start; }

.bls-case-toc { position: sticky; top: 108px; }
.bls-case-toc__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a29a92; margin: 0 0 16px; }
.bls-case-toc nav { display: flex; flex-direction: column; }
.bls-case-toc a { font-size: 14px; line-height: 1.4; padding: 8px 0 8px 14px; border-left: 2px solid #e6e2dc; color: #8a827c; font-weight: 500; transition: color .12s, border-color .12s; }
.bls-case-toc a:hover { color: #3e1109; }
.bls-case-toc a.is-active { color: #3e1109; font-weight: 700; border-left-color: #eb732d; }

/* ── Статья: тело ────────────────────────────────────────────────────── */
.bls-case-body { min-width: 0; max-width: 780px; }
.bls-case-body__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #eb732d; margin-bottom: 16px; text-transform: uppercase; }
.bls-case-body h1 { font-size: 42px; line-height: 1.14; font-weight: 800; letter-spacing: -.01em; color: #1c1c1c; margin: 0 0 26px; text-wrap: balance; }

.bls-case-facts { display: flex; flex-wrap: wrap; gap: 40px; margin: 0 0 34px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.bls-case-facts .k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a29a92; margin-bottom: 7px; }
.bls-case-facts .v { font-size: 15px; font-weight: 700; color: #3e1109; }

.bls-case-body h2 { font-size: 28px; font-weight: 800; color: #1c1c1c; margin: 52px 0 20px; letter-spacing: -.01em; text-wrap: balance; scroll-margin-top: 108px; }
.bls-case-body h2:first-of-type { margin-top: 0; }
.bls-case-body p { font-size: 17px; line-height: 1.72; color: #2f2b28; margin: 0 0 22px; text-wrap: pretty; }
.bls-case-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bls-case-body ul li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.6; color: #2f2b28; }
.bls-case-body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; background: #eb732d; }
.bls-case-body strong { font-weight: 700; color: #1c1c1c; }
.bls-case-body a { color: #3e1109; text-decoration: underline; text-underline-offset: 2px; }
.bls-case-body a:hover { color: #eb732d; }

/* Блок «Врезка» (callout) */
.bls-case-callout { border-left: 3px solid #eb732d; background: #faf7f3; padding: 22px 26px; margin: 0 0 30px; }
.bls-case-callout__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #eb732d; display: block; margin-bottom: 12px; }
.bls-case-callout ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bls-case-callout ul li { font-size: 15px; line-height: 1.5; color: #3e2e26; padding-left: 20px; position: relative; }
.bls-case-callout ul li::before { content: "—"; position: absolute; left: 0; color: #eb732d; font-weight: 800; top: 0; width: auto; height: auto; background: none; }

/* Цитата эксперта */
.bls-case-quote { margin: 0 0 30px; border-left: 4px solid #c3a55f; padding: 8px 0 8px 30px; }
.bls-case-quote blockquote { margin: 0 0 18px; font-size: 22px; line-height: 1.5; font-style: italic; color: #1c1c1c; text-wrap: pretty; }
.bls-case-quote__name { display: block; font-size: 15px; font-weight: 800; color: #1c1c1c; }
.bls-case-quote__role { display: block; font-size: 13px; color: #8a827c; }

/* Сравнительная таблица */
.bls-case-table { margin: 0 0 30px; overflow-x: auto; }
.bls-case-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bls-case-table th { text-align: left; padding: 13px 16px; background: #271b19; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.bls-case-table td { padding: 13px 16px; color: #2f2b28; }
.bls-case-table tbody tr { border-bottom: 1px solid #ececec; }
.bls-case-table tbody tr:nth-child(even) { background: #faf8f5; }
.bls-case-table td.dim { color: #6a6a6a; }
.bls-case-table td.ok { font-weight: 700; color: #1c7c4a; }
.bls-case-table figcaption { font-size: 13px; color: #8a827c; margin-top: 10px; line-height: 1.5; }

/* Блок «Результат для клиента» */
.bls-case-results { background: #faf7f3; border: 1px solid #ece4db; padding: 30px 32px; margin: 0 0 26px; }
.bls-case-results__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bls-case-results__num { font-size: 32px; font-weight: 800; color: #eb732d; letter-spacing: -.02em; line-height: 1; }
.bls-case-results__label { font-size: 14px; color: #4a4a4a; margin-top: 10px; line-height: 1.45; }

/* CTA-блок */
.bls-case-cta { margin: 56px 0 0; background: #271b19; color: #e8e0da; padding: 46px 48px; scroll-margin-top: 108px; }
.bls-case-cta__kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #eb732d; margin: 0 0 14px; }
.bls-case-cta h2 { font-size: 27px; font-weight: 800; color: #fff; margin: 0 0 16px; line-height: 1.22; scroll-margin-top: 108px; }
.bls-case-cta p { font-size: 16px; line-height: 1.65; color: #b7ada6; margin: 0 0 30px; }
.bls-case-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.bls-case-cta__btn { display: inline-block; padding: 15px 30px; font-size: 15px; font-weight: 700; }
.bls-case-cta__btn--primary { background: #eb732d; color: #fff; }
.bls-case-cta__btn--primary:hover { background: #d9631f; color: #fff; }
.bls-case-cta__btn--outline { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.bls-case-cta__btn--outline:hover { border-color: #fff; color: #fff; }

/* ── Статья: «Другие кейсы» ───────────────────────────────────────────── */
.bls-case-related { background: #f4f4f2; border-top: 1px solid #e6e2dc; padding: 74px 0 84px; }
.bls-case-related__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.bls-case-related h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; color: #1c1c1c; }
.bls-case-related__bar { display: block; width: 48px; height: 4px; background: #eb732d; margin: 0 0 44px; }
.bls-case-related__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.bls-case-related__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e2dc; transition: border-color .15s; color: inherit; text-decoration: none; }
.bls-case-related__card:hover { border-color: #3e1109; color: inherit; }
.bls-case-related__card .in { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.bls-case-related__card .cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #eb732d; text-transform: uppercase; margin-bottom: 10px; }
.bls-case-related__card h3 { font-size: 17px; font-weight: 800; color: #1c1c1c; margin: 0 0 10px; line-height: 1.3; }
.bls-case-related__card p { font-size: 13px; line-height: 1.55; color: #6a6a6a; margin: 0 0 18px; flex: 1; }
.bls-case-related__card .go { font-size: 14px; font-weight: 700; color: #3e1109; }

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .bls-case-archive-feed__grid { grid-template-columns: 1fr; gap: 32px; }
    .bls-case-archive-sidebar { position: static; }
    .bls-case-archive-hero h1 { font-size: 38px; }
    .bls-case-archive-cards { grid-template-columns: 1fr; }

    .bls-case-art__grid { grid-template-columns: 1fr; gap: 32px; }
    .bls-case-toc { position: static; }
    .bls-case-body h1 { font-size: 32px; }
    .bls-case-results__row { grid-template-columns: 1fr; gap: 20px; }
    .bls-case-related__cards { grid-template-columns: 1fr; }
    .bls-case-cta { padding: 32px 26px; }
}
