/* BLS — топ-бар, главное меню и мега-панели. См. docs/tz_glavnaya_menu_keysy.md */

.bls-topbar,
.bls-header {
    font-family: 'Golos Text', system-ui, sans-serif;
}

/* ── Топ-бар ─────────────────────────────────────────── */
.bls-topbar {
    border-bottom: 1px solid #eee;
    font-size: 11px;
    color: #959595;
}
.bls-topbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 11px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.bls-topbar__phone {
    color: #636363;
    font-weight: 400;
    letter-spacing: .04em;
    white-space: nowrap;
}
.bls-topbar__email {
    color: #959595;
    letter-spacing: .04em;
    white-space: nowrap;
}
.bls-topbar__email span {
    color: #1a1512;
    font-weight: 400;
}
.bls-topbar__spacer {
    flex: 1;
    min-width: 12px;
}
.bls-topbar__tagline {
    color: #acacac;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.bls-topbar__lang {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}
.bls-topbar__lang a {
    color: #acacac;
    letter-spacing: .06em;
}
.bls-topbar__lang a.is-active {
    color: #1a1512;
    font-weight: 400;
}

/* ── Шапка / меню ────────────────────────────────────── */
/* селектор #header.bls-header (а не просто .bls-header) специально:
   в dist/assets/20260304.main.css есть старое правило #header{position:relative;z-index:7}
   (наследие Sufler/Znich) — ID-селектор всегда сильнее класса, так что без
   привязки к #header тут это старое правило молча побеждало и ломало sticky-шапку. */
#header.bls-header {
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 60;
}
/* На главной шапка стартует прозрачной поверх фото hero (см. .bls-hero в
   bls-home.css) и становится белой при скролле мимо hero или при открытой
   мега-панели — класс .bls-header--solid переключает bls-menu.js/syncHeader().
   Скоуп body.home — на остальных страницах шапка всегда белая, как раньше. */
body.home #header.bls-header {
    background: transparent;
    border-bottom-color: transparent;
    transition: background .25s ease, border-color .25s ease;
}
body.home #header.bls-header.bls-header--solid {
    background: #fff;
    border-bottom-color: #eee;
}
.bls-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: stretch;
    gap: 36px;
}
.bls-header__logo {
    display: flex;
    align-items: center;
    padding: 18px 0;
}
.bls-header__logo img {
    height: 30px;
    width: auto;
    display: block;
}

.bls-nav {
    flex: 1;
}
.bls-nav__list {
    display: flex;
    gap: 2px;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
.bls-nav__item {
    display: flex;
}
.bls-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #1a1512;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.bls-nav__link:hover,
.bls-nav__item.is-open > .bls-nav__link {
    color: #3e1109;
    border-bottom-color: #3e1109;
}
.bls-nav__caret {
    font-size: 9px;
    opacity: .5;
}

/* ── Мега-панель — общее ─────────────────────────────── */
/* панель ширится на весь вьюпорт (не только на ширину li), центруется через left:50%/-50vw.
   для этого их containing block должен быть на всю ширину — используем #header.bls-header
   (уже position:sticky), поэтому у .bls-nav__item намеренно НЕТ position:relative. */
.bls-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
}
.bls-nav__item.is-open .bls-panel {
    display: block;
}
.bls-panel__frame {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}
.bls-panel__box {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 24px 42px -22px rgba(0, 0, 0, .22);
    overflow: hidden;
}

/* ── Мега-панель «продукт» ───────────────────────────── */
.bls-panel--product .bls-panel__box {
    display: grid;
    grid-template-columns: 1fr 280px;
}
.bls-panel__main {
    padding: 24px 28px 26px 40px;
    border-right: 1px solid #e2ded8;
}
.bls-panel__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    text-decoration: none;
}
.bls-panel__dot {
    width: 8px;
    height: 8px;
    background: #3e1109;
}
.bls-panel__title {
    font-size: 20px;
    font-weight: 700;
    color: #3e1109;
}
.bls-panel__lead {
    font-size: 14px;
    line-height: 1.5;
    color: #464646;
    margin: 0 0 18px;
    max-width: 560px;
}
.bls-panel__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}
.bls-panel__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 4px;
    margin: 0 -10px 0 -4px;
    border-bottom: 1px solid #f0eee9;
    font-size: 15px;
    color: #1a1512;
    cursor: pointer;
    text-decoration: none;
}
.bls-panel__col > .bls-panel__row:last-child {
    border-bottom: none;
}
.bls-panel__row:hover {
    background: #f2efea;
}
.bls-panel__arrow {
    color: #3e1109;
    font-size: 13px;
}
.bls-panel__side {
    padding: 24px 28px 26px;
    background: #f6f2ec;
    display: flex;
    flex-direction: column;
}
.bls-panel__side-title {
    font-size: 16px;
    font-weight: 700;
    color: #3e1109;
    margin-bottom: 7px;
}
.bls-panel__side-text {
    font-size: 13px;
    color: #464646;
    margin: 0 0 18px;
    line-height: 1.55;
}
.bls-panel__cta {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    background: #271b19;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
.bls-panel__cta:hover {
    background: #3e1109;
}
.bls-panel__badge {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2ded8;
    font-family: 'Roboto Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: .04em;
    color: #8a827c;
}
.bls-panel__bridge {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3e1109;
    cursor: pointer;
}
.bls-panel__bridge:hover {
    color: #eb732d;
}

/* ── Мега-панель «экспертиза» ─────────────────────────── */
.bls-panel--expertise .bls-panel__box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.bls-panel__excol {
    padding: 24px 28px 26px;
    border-right: 1px solid #e2ded8;
}
.bls-panel__excol:last-child {
    border-right: none;
}
.bls-panel__exheading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}
.bls-panel__exglyph {
    color: #3e1109;
    font-size: 17px;
}
.bls-panel__extitle {
    font-size: 20px;
    font-weight: 700;
    color: #1a1512;
}
.bls-panel__exdesc {
    font-size: 13px;
    line-height: 1.5;
    color: #464646;
    margin: 0 0 14px;
}
.bls-panel__exlinks {
    display: flex;
    flex-direction: column;
}
.bls-panel__exlink {
    padding: 8px 0;
    font-size: 13px;
    color: #1a1512;
    border-bottom: 1px solid #f0eee9;
    cursor: pointer;
    text-decoration: none;
}
.bls-panel__exlink:hover {
    color: #3e1109;
}
.bls-panel__exall {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3e1109;
    cursor: pointer;
    text-decoration: none;
}
.bls-panel__exall:hover {
    color: #eb732d;
}

/* ── Мобильное меню (см. parts/common/header_mobile_menu.php) ─── */
.bls-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bls-mobile-nav__item {
    border-bottom: 1px solid #eee;
}
.bls-mobile-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    font-size: 16px;
    color: #1a1512;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.bls-mobile-nav__sub {
    display: none;
    padding: 0 4px 16px 18px;
}
.bls-mobile-nav__item.is-open .bls-mobile-nav__sub {
    display: block;
}
.bls-mobile-nav__sub-link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #636363;
    text-decoration: none;
    border-bottom: 1px solid #f0eee9;
}
.bls-mobile-nav__sub-link--all {
    font-weight: 700;
    color: #3e1109;
}

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 960px) {
    .bls-nav { display: none; }
    .bls-topbar__tagline { display: none; }
}
