/* BLS — «Библиотека материалов» (каталог + страница материала).
   По макетам docs/html-templates/new3/BLS Материалы - офлайн.html и
   BLS Материал - офлайн.html. Общие классы .bls-eyebrow/.bls-section-title/
   .bls-underline/.bls-btn — см. bls-home.css. */

.bls-materials, .bls-material-crumbbar, .bls-material-layout, .bls-material-related {
    font-family: 'Golos Text', system-ui, sans-serif;
}

/* ── Каталог: hero ─────────────────────────────────────────────────── */
.bls-materials-hero { border-bottom: 1px solid #e6e4e0; background: #fff; }
.bls-materials-hero__inner { max-width: 1240px; margin: 0 auto; padding: 60px 32px 56px; }
.bls-materials-crumbs { font-size: 12px; color: #a29a92; letter-spacing: .04em; margin-bottom: 26px; }
.bls-materials-crumbs a { color: #a29a92; }
.bls-materials-crumbs .cur { color: #6b5d54; }
.bls-materials-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-materials-hero h1 { font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; margin: 0 0 24px; color: #1a1512; text-wrap: balance; max-width: 860px; }
.bls-materials-hero p { font-size: 18px; line-height: 1.55; color: #4a4a4a; margin: 0; max-width: 720px; text-wrap: pretty; }

/* ── Каталог: сайдбар-фильтр + сетка карточек ─────────────────────────── */
.bls-materials-catalog { padding: 56px 32px 90px; max-width: 1240px; margin: 0 auto; }
.bls-materials-catalog__grid { display: grid; grid-template-columns: 232px 1fr; gap: 64px; align-items: start; }
.bls-materials-side { position: sticky; top: 112px; }
.bls-materials-side__lbl { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a29a92; margin: 0 0 18px; }
.bls-materials-cats { display: flex; flex-direction: column; }
.bls-materials-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; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bls-materials-cat:hover { color: #3e1109; }
.bls-materials-cat.is-active { color: #3e1109; font-weight: 700; border-left-color: #eb732d; padding-left: 14px; }
.bls-materials-cat__num { font-family: "Roboto Mono", ui-monospace, monospace; font-size: 12px; color: #bcb3ab; }

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

.bls-materials-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.bls-materials-empty { color: #6a6a6a; font-size: 15px; }
.bls-materials-card { display: flex; flex-direction: column; border: 1px solid #e6e2dc; background: #fff; transition: border-color .15s; }
.bls-materials-card:hover { border-color: #3e1109; }
.bls-materials-card__cover { position: relative; }
.bls-materials-card__cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bls-materials-card__ph { width: 100%; aspect-ratio: 16/9; background: repeating-linear-gradient(45deg,#e9e6e1,#e9e6e1 12px,#e2ded8 12px,#e2ded8 24px); filter: grayscale(1); }
.bls-materials-card__tag { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #271b19; padding: 5px 11px; }
.bls-materials-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.bls-materials-card__body h3 { font-size: 20px; line-height: 1.28; font-weight: 800; color: #1a1512; margin: 0 0 12px; text-wrap: balance; }
.bls-materials-card__excerpt { font-size: 14px; line-height: 1.6; color: #6a6a6a; margin: 0 0 22px; flex: 1; text-wrap: pretty; }
.bls-materials-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid #efece7; }
.bls-materials-card__dl { font-size: 14px; font-weight: 700; color: #3e1109; }

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

/* ── Страница материала ───────────────────────────────────────────── */
.bls-material-crumbbar { border-bottom: 1px solid #e6e2dc; background: #fff; }
.bls-material-crumbbar__inner { max-width: 1180px; margin: 0 auto; padding: 40px 32px 0; }
.bls-material-crumbs { font-size: 12px; color: #a29a92; letter-spacing: .04em; margin-bottom: 26px; }
.bls-material-crumbs a { color: #a29a92; }
.bls-material-crumbs .cur { color: #6b5d54; }

.bls-material-layout { padding: 44px 32px 84px; max-width: 1180px; margin: 0 auto; }
.bls-material-layout__grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start; }
.bls-material-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #eb732d; margin-bottom: 16px; text-transform: uppercase; }
.bls-material-main h1 { font-size: 40px; line-height: 1.14; font-weight: 800; letter-spacing: -.01em; color: #1a1512; margin: 0 0 22px; text-wrap: balance; }
.bls-material-intro { font-size: 18px; line-height: 1.6; color: #4a4a4a; margin: 0 0 30px; text-wrap: pretty; }
.bls-material-cover { margin: 0 0 40px; }
.bls-material-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bls-material-sec { font-size: 26px; font-weight: 800; color: #1a1512; margin: 0 0 8px; letter-spacing: -.01em; }
.bls-material-body { font-size: 16px; line-height: 1.6; color: #2f2b28; margin: 26px 0 40px; }
.bls-material-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bls-material-body li { position: relative; padding-left: 28px; }
.bls-material-body li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: #3e1109; transform: rotate(45deg); }

.bls-material-facts { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 4px; }
.bls-material-facts__lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a29a92; margin-bottom: 7px; }
.bls-material-facts__val { font-size: 15px; font-weight: 700; color: #3e1109; }

/* ── Форма запроса ────────────────────────────────────────────────── */
.bls-material-formwrap { position: sticky; top: 108px; }
.bls-material-form-card { border: 1px solid #e6e2dc; background: #fff; box-shadow: 0 24px 42px -26px rgba(0,0,0,.22); }
.bls-material-form-head { background: #271b19; color: #fff; padding: 24px 28px; }
.bls-material-form-head__kick { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #eb732d; margin-bottom: 8px; }
.bls-material-form-head__title { font-size: 22px; font-weight: 800; line-height: 1.25; }
.bls-material-form-head__sub { font-size: 14px; line-height: 1.5; margin: 10px 0 0; color: rgba(255,255,255,.8); }
.bls-material-form-body { padding: 26px 28px 28px; }
.bls-material-form-body.is-hidden { display: none; }

.bls-material-fields { display: flex; flex-direction: column; gap: 14px; }
.bls-material-field { display: block; position: relative; }
.bls-material-field__lab { display: block; font-size: 13px; font-weight: 600; color: #4a4a4a; margin-bottom: 6px; }
.bls-material-field__req { color: #eb732d; }
.bls-material-field input { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: #1a1512; border: 1px solid #ddd6cf; background: #fff; outline: none; box-sizing: border-box; }
.bls-material-field input:focus { border-color: #3e1109; }
.bls-material-field__hint { display: block; font-size: 11px; color: #a29a92; margin-top: 6px; line-height: 1.4; }
.bls-material-extra { display: flex; flex-direction: column; gap: 14px; }

.bls-material-sug { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid #ddd6cf; box-shadow: 0 18px 34px -18px rgba(0,0,0,.3); max-height: 232px; overflow-y: auto; }
.bls-material-sug.is-hidden { display: none; }
.bls-material-sug button { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid #f0ece6; padding: 11px 14px; font: inherit; cursor: pointer; }
.bls-material-sug button:hover { background: #faf7f3; }
.bls-material-sug .name { display: block; font-size: 14px; font-weight: 600; color: #1a1512; line-height: 1.35; }
.bls-material-sug .meta { display: block; font-family: "Roboto Mono", ui-monospace, monospace; font-size: 12px; color: #a29a92; margin-top: 3px; }

.bls-material-consents { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 20px; }
.bls-material-consents label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bls-material-consents input { width: 17px; height: 17px; flex: none; margin-top: 1px; accent-color: #3e1109; }
.bls-material-consents__text { font-size: 12px; line-height: 1.45; color: #7a726b; }
.bls-material-consents__text a { color: #3e1109; text-decoration: underline; }

.bls-material-form-message { font-size: 13px; margin: 0 0 14px; }
.bls-material-form-message[data-kind="error"] { color: #c0392b; }
.bls-material-form-message[data-kind="info"] { color: #6b5d54; }

.bls-material-submit { width: 100%; }
.bls-material-form-note { font-size: 12px; line-height: 1.5; color: #a49a92; margin: 14px 0 0; text-align: center; }

.bls-material-success { padding: 34px 28px 32px; text-align: center; }
.bls-material-success.is-hidden { display: none; }
.bls-material-success__check { width: 56px; height: 56px; margin: 0 auto 20px; border: 2px solid #eb732d; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #eb732d; font-weight: 800; }
.bls-material-success__t { font-size: 19px; font-weight: 800; color: #1a1512; margin-bottom: 10px; }
.bls-material-success p { font-size: 15px; line-height: 1.55; color: #5a534d; margin: 0 0 22px; }
.bls-material-success p b { color: #3e1109; }
.bls-material-success__again { background: none; border: none; padding: 6px 4px; font: inherit; font-size: 14px; font-weight: 700; color: #3e1109; cursor: pointer; border-bottom: 2px solid #eb732d; }
.bls-material-success__again:hover { color: #eb732d; }

/* ── «Другие материалы» ───────────────────────────────────────────── */
.bls-material-related { background: #f4f4f2; border-top: 1px solid #e6e2dc; padding: 74px 32px 84px; }
.bls-material-related__inner { max-width: 1180px; margin: 0 auto; }
.bls-material-related h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; color: #1a1512; }
.bls-material-related__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }

@media (max-width: 900px) {
    .bls-materials-catalog__grid { grid-template-columns: 1fr; gap: 32px; }
    .bls-materials-side { position: static; }
    .bls-materials-cards { grid-template-columns: 1fr; }
    .bls-materials-hero h1 { font-size: 38px; }
    .bls-material-layout__grid { grid-template-columns: 1fr; gap: 40px; }
    .bls-material-formwrap { position: static; }
    .bls-material-related__cards { grid-template-columns: 1fr; }
    .bls-material-main h1 { font-size: 30px; }
}
