/* BLS — главная страница. См. docs/tz_glavnaya_menu_keysy.md, п.3. */

.bls-hero, .bls-clients, .bls-directions, .bls-closer, .bls-stats,
.bls-cases, .bls-achievements, .bls-footer {
    font-family: 'Golos Text', system-ui, sans-serif;
}

/* ── Общие элементы (эйбrow/заголовок/подчёркивание/кнопки) ─────────── */
.bls-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #eb732d;
    margin: 0 0 8px;
}
.bls-eyebrow--center { text-align: center; }

.bls-section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #1a1512;
}
.bls-section-title--wide {
    text-wrap: balance;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.bls-underline {
    display: block;
    width: 48px;
    height: 4px;
    background: #eb732d;
    margin: 6px auto 50px;
}

.bls-btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}
.bls-btn--dark {
    background: #271b19;
    color: #fff;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}
.bls-btn--dark:hover { background: #3e1109; }
.bls-btn--outline {
    background: transparent;
    color: #3e1109;
    border: 1px solid #3e1109;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
}
.bls-btn--outline:hover { background: #3e1109; color: #fff; }
.bls-btn--accent {
    background: #eb732d;
    color: #fff;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
}
.bls-btn--accent:hover { filter: brightness(.93); }

/* ── Hero ─────────────────────────────────────────────────────────── */
/* Обновлено по макету new3/BLS Главная.html (2026-08-18): шапка теперь
   прозрачная поверх hero-фото и становится белой при скролле/открытой
   панели (см. body.home #header.bls-header в bls-menu.css и syncHeader()
   в bls-menu.js) — сам hero «съезжает» на -67px (высота шапки) под неё. */
.bls-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e6e4e0;
    margin-top: -67px;
}
.bls-hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://bls.ru/upload/landing/f09/f096bcaa0b34291b438ed5a3858a229e/legal-consulting_2_2x.jpg') right center / cover no-repeat;
}
/* Горизонтальный градиент — фото гаснет в белый под текстовой колонкой
   (max-width 720px слева в .bls-hero__inner), как и раньше. */
.bls-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 42%, rgba(255,255,255,.55) 68%, rgba(255,255,255,.15) 100%);
}
/* Верхний градиент — «подсвечивает» полосу под прозрачной шапкой, пока она
   ещё не стала белой, чтобы логотип/пункты меню оставались читаемыми на фото. */
.bls-hero__bg::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 55%, rgba(255,255,255,0) 100%);
}
.bls-hero__inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 151px 32px 78px;
}
.bls-hero .bls-hero__badge {
    display: inline-block;
    margin: 0 0 24px;
    padding: 7px 15px;
    border: 1px solid #d8cfc8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #636363;
}
.bls-hero__title {
    max-width: 720px;
    font-size: 56px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 28px;
    color: #1a1512;
    text-wrap: balance;
}
.bls-hero__list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bls-hero__list li {
    position: relative;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.5;
    color: #464646;
}
.bls-hero__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: #3e1109;
    transform: rotate(45deg);
}

/* ── Клиенты (бесконечная лента, макет new3) ─────────────────────── */
.bls-clients { padding: 60px 0; width: 100%; overflow: hidden; }
.bls-clients__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 20px;
    animation: bls-clients-scroll 55s linear infinite;
}
.bls-clients:hover .bls-clients__track { animation-play-state: paused; }
.bls-clients__logo {
    flex: none;
    width: 232px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ededed;
}
.bls-clients__logo img { max-height: 70%; max-width: 80%; object-fit: contain; }
.bls-clients__placeholder {
    font: 11px ui-monospace, monospace;
    color: #b4b4ae;
    text-align: center;
    letter-spacing: .05em;
    padding: 0 8px;
}
@keyframes bls-clients-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bls-clients__track { animation: none; } }

/* ── Направления: «Острые ситуации» / «Системная задача» (макет new3) ── */
.bls-directions { padding: 84px 32px; }
.bls-directions--alt { background: #faf9f7; }
.bls-directions__inner { max-width: 1240px; margin: 0 auto; }
.bls-directions__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 14px;
    color: #1c1c1c;
    letter-spacing: -.01em;
}
.bls-directions__lead {
    font-size: 17px;
    line-height: 1.5;
    color: #8a827c;
    margin: 0 0 48px;
    max-width: 860px;
    text-wrap: pretty;
}
.bls-directions__grid { display: grid; gap: 28px; }
.bls-directions__grid--4 { grid-template-columns: repeat(4, 1fr); }
.bls-directions__grid--2 { grid-template-columns: repeat(2, 1fr); }
.bls-directions__card {
    background: #f6f6f4;
    padding: 30px 28px;
    text-decoration: none;
    display: block;
    transition: box-shadow .18s, transform .18s;
}
a.bls-directions__card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.09); transform: translateY(-3px); }
.bls-directions__card--dark { border-left: 4px solid #271b19; }
.bls-directions__card--gold { border-left: 4px solid #c3a55f; padding: 34px 34px; }
.bls-directions__card h3 { font-size: 16px; font-weight: 800; color: #3e1109; margin: 0 0 16px; line-height: 1.25; }
.bls-directions__card--gold h3 { font-size: 18px; }
.bls-directions__card p { font-size: 14px; line-height: 1.6; color: #6f6f6a; margin: 0; text-wrap: pretty; }
.bls-directions__more { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; color: #eb732d; }
.bls-directions__card ul { list-style: none; margin: 0; padding: 0; }
.bls-directions__card li { position: relative; padding: 0 0 0 20px; margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: #4a4744; }
.bls-directions__card li:last-child { margin-bottom: 0; }
.bls-directions__card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #c3a55f; }
.bls-directions__card li a { color: #4a4744; border-bottom: 1px solid #d8d2c6; text-decoration: none; }
.bls-directions__card li a:hover { color: #eb732d; border-color: #eb732d; }
.bls-directions__foot { text-align: center; font-size: 18px; font-weight: 800; color: #1c1c1c; margin: 54px 0 0; }

/* ── Закрывающий баннер ──────────────────────────────────────────── */
.bls-closer {
    padding: 66px 32px;
    text-align: center;
    /* Тёмная плашка-подложка поверх фото, чтобы белый текст оставался
       читаемым — тон подложки совпадает с прежним сплошным фоном #271b19. */
    background:
        linear-gradient(rgba(39,27,25,.86), rgba(39,27,25,.86)),
        url('https://bls.ru/upload/landing/a65/vsqlbi18gd2cw24e11hoqi8uweo4ufd7/gemini_generated_image_aq6dmwaq6dmwaq6d_2_1_1x.png') center / cover no-repeat;
}
.bls-closer__inner { max-width: 1000px; margin: 0 auto; }
.bls-closer h2 { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 0 0 14px; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.bls-closer p { max-width: 640px; margin: 0 auto; font-size: 17px; line-height: 1.5; color: #c9c1bc; text-wrap: pretty; }
/* На десктопе заголовок должен помещаться в одну строку (текст длиннее
   прежнего — «... + ПДн (152-ФЗ)»): чуть шире контейнер + чуть меньше
   кегль + запрет переноса. На мобильном/планшете (см. .bls-closer__inner
   выше) заголовок по-прежнему свободно переносится. */
@media (min-width: 961px) {
    .bls-closer__inner { max-width: 1160px; }
    .bls-closer h2 { font-size: 30px; white-space: nowrap; }
}

/* ── Статистика ───────────────────────────────────────────────────── */
.bls-stats { background: #f4f4f2; padding: 74px 32px; }
.bls-stats__grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bls-stats__item { text-align: center; }
.bls-stats__value { font-size: 48px; font-weight: 800; color: #1c1c1c; line-height: 1; }
.bls-stats__desc { font-size: 15px; line-height: 1.5; color: #5a5a5a; margin: 16px auto 0; max-width: 240px; }

/* ── Кейсы ────────────────────────────────────────────────────────── */
.bls-cases { padding: 74px 32px; }
.bls-cases__grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.bls-cases__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2ded8;
    padding: 24px;
}
.bls-cases__kicker { font-size: 12px; color: #959595; margin: 0 0 4px; }
.bls-cases__title { font-size: 17px; font-weight: 800; color: #1a1512; margin: 0 0 20px; line-height: 1.25; }
.bls-cases__blob {
    height: 150px;
    border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bls-cases__blob img { width: 100%; height: 100%; object-fit: cover; }
.bls-cases__desc { font-size: 13px; line-height: 1.55; color: #464646; margin: 20px 0; }
.bls-cases__card .bls-btn { align-self: flex-start; }
.bls-cases__more { text-align: center; margin-top: 48px; }
.bls-cases__empty { text-align: center; color: #959595; }

/* ── Достижения ───────────────────────────────────────────────────── */
.bls-achievements { background: #fff; padding: 70px 32px; }
.bls-achievements__grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.bls-achievements__logo {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    filter: grayscale(1);
    opacity: .8;
}
.bls-achievements__logo img { max-height: 100%; max-width: 100%; }
.bls-achievements__placeholder { font: 12px ui-monospace, monospace; color: #959595; letter-spacing: .05em; }
.bls-achievements__name { font-size: 15px; font-weight: 800; color: #1a1512; margin: 0 0 8px; }
.bls-achievements__desc { font-size: 12px; line-height: 1.5; color: #636363; margin: 0 auto; max-width: 190px; }

/* ── Футер ────────────────────────────────────────────────────────── */
/* Макет: docs/html-templates/new3/BLS Футер.dc.html (2026-08-19). */
#footer.bls-footer {
    background: #271b19;
    color: #b7ada6;
    padding: 56px 40px 30px;
}
#footer.bls-footer > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.bls-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.bls-footer__brand { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.bls-footer__logo-link { display: block; }
.bls-footer__logo { height: 43px; width: auto; display: block; filter: brightness(0) invert(1); }
.bls-footer__tagline { font-size: 14px; color: #8f857e; line-height: 1.5; max-width: 480px; }
.bls-footer__reach { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; text-align: right; }
.bls-footer__phone { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; text-decoration: none; }
.bls-footer__phone:hover { color: #eb732d; }
.bls-footer__email { color: #8f857e; font-size: 14px; text-decoration: none; }
.bls-footer__email:hover { color: #eb732d; }

.bls-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr .56fr;
    gap: 40px;
    padding: 44px 0 34px;
}
.bls-footer__heading { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a706a; margin: 0 0 18px; }
.bls-footer__links { display: flex; flex-direction: column; gap: 12px; }
.bls-footer__links a { font-size: 14px; color: #d6cdc6; line-height: 1.4; text-decoration: none; }
.bls-footer__links a:hover { color: #eb732d; }

.bls-footer__social {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.bls-footer__social-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a706a; }
.bls-footer__social-links { display: inline-flex; gap: 24px; flex-wrap: wrap; }
.bls-footer__social-links a { font-size: 14px; color: #d6cdc6; line-height: 1.4; text-decoration: none; }
.bls-footer__social-links a:hover { color: #eb732d; }

.bls-footer__bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7a706a;
}
.bls-footer__legal { margin: 0; max-width: 640px; line-height: 1.6; }
.bls-footer__bottom-links { display: inline-flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.bls-footer__bottom-links a { color: #7a706a; text-decoration: none; }
.bls-footer__bottom-links a:hover { color: #eb732d; }

/* ── Заглушка обычной страницы (page.php, пока нет реального контента) ── */
.bls-stub-page { padding: 60px 32px 90px; font-family: 'Golos Text', system-ui, sans-serif; }
.bls-stub-page__inner { max-width: 760px; margin: 0 auto; }
.bls-stub-page__title { font-size: 34px; font-weight: 800; color: #1a1512; margin: 0 0 20px; }
.bls-stub-page__content { font-size: 16px; line-height: 1.7; color: #464646; }

/* ── Адаптив ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .bls-hero__title { font-size: 36px; }
    .bls-directions__grid--4, .bls-cases__grid { grid-template-columns: repeat(2, 1fr); }
    .bls-directions__grid--2 { grid-template-columns: 1fr; }
    .bls-stats__grid, .bls-achievements__grid { grid-template-columns: repeat(2, 1fr); }
    .bls-footer__cols { grid-template-columns: 1fr 1fr; }
    .bls-footer__top, .bls-footer__reach { align-items: flex-start; text-align: left; }
    .bls-footer__bottom, .bls-footer__bottom-links { align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
    .bls-directions__grid--4, .bls-cases__grid, .bls-stats__grid, .bls-achievements__grid { grid-template-columns: 1fr; }
    .bls-footer__cols { grid-template-columns: 1fr; }
}
