/* ===== Главная: фуллскрин-герой с видеофоном (Burger Bar, стиль homenew2) ===== */

.nbc-hero {
    --nbc-hero-tint: .20;
    --bb-green: var(--nbc-brand, #bebb8b);
    --bb-grad: linear-gradient(180deg, #00B8B885 0%, #8167ACA6 100%);
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #0a0a12;
    font-family: 'Geoform-Medium', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Никаких подчёркиваний на ссылках/кнопках hero */
.nbc-hero a { text-decoration: none !important; }
/* Весь hero — Jost (перебиваем глобальный Montserrat !important из nbc-overrides) */
.nbc-hero, .nbc-hero * { font-family: 'Geoform-Medium', sans-serif !important; }

/* Та же шапка на внутренних страницах: в обычном потоке (уезжает при скролле, её место занимает навигация), Jost */
.nbc-site-header {
    --bb-green: var(--nbc-brand, #bebb8b);
    --bb-grad: linear-gradient(180deg, #00B8B885 0%, #8167ACA6 100%);
    position: relative !important; top: auto; z-index: 6;
}
/* Фон шапки витрины — как фон корзины, с лёгкой прозрачностью */
.nbc-hero-header.nbc-site-header { background: rgba(31,27,41,.9); }

/* Витрина с фуллскрин-баннером сверху: шапка прозрачная поверх баннера, до верха экрана */
.nbc-fb-catalog-top .nbc-hero-header.nbc-site-header {
    position: absolute !important; top: 0; left: 0; right: 0; z-index: 70;
    background: rgba(8,4,18,.42);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nbc-site-header a { text-decoration: none !important; }
.nbc-site-header, .nbc-site-header * { font-family: 'Geoform-Medium', sans-serif !important; }

/* ── Бургер в шапке + выезжающее меню категорий ── */
.nbc-hh-burger {
    flex: 0 0 auto; width: 34px; height: 30px; padding: 0;
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.nbc-hh-burger span { display: block; width: 31px; height: 1px; background: #fff; border-radius: 2px; transition: background .2s; }
.nbc-hh-burger:hover span { background: #c9b6f0; }

.nbc-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 100000;
}
.nbc-menu-overlay.open { opacity: 1; visibility: visible; }

.nbc-menu-panel {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 370px; max-width: 88vw;
    background: rgba(12,8,20,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 100001; display: flex; flex-direction: column;
    padding: 34px 40px 32px; overflow-y: auto;
}
.nbc-menu-panel.open { transform: translateX(0); }
.nbc-menu-panel, .nbc-menu-panel * { font-family: 'Geoform-Medium', sans-serif !important; }

.nbc-menu-close {
    position: absolute; top: 20px; right: 26px;
    background: none; border: none; color: #fff; font-size: 34px; font-weight: 300; line-height: 1; cursor: pointer;
}
.nbc-menu-close:hover { color: #c9b6f0; }

.nbc-menu-logo { display: block; margin-bottom: 30px; }
.nbc-menu-logo img { height: 40px; width: auto; display: block; }

.nbc-menu-cats { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.nbc-menu-cat {
    font-size: 17px; font-weight: 300; text-transform: uppercase;
    color: #fff; text-decoration: none; transition: color .2s;
}
.nbc-menu-cat:hover { color: #c9b6f0; }

.nbc-menu-contacts {
    margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
    display: flex; flex-direction: column; gap: 12px; font-size: 15px;
}
.nbc-menu-find {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    background: var(--bb-grad, linear-gradient(180deg,#00B8B885 0%,#8167ACA6 100%));
    color: #fff !important; border-radius: 20px; padding: 10px 20px;
    font-size: 13px; font-weight: 400; text-transform: uppercase; text-decoration: none;
}
.nbc-menu-find svg { width: 15px; height: 15px; }
.nbc-menu-3d { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: #f3eecf; text-decoration: none; font-size: 13px; text-transform: uppercase; }
.nbc-menu-3d img { height: 30px; width: auto; display: block; }
.nbc-menu-row { display: contents; }
/* Контакты слайд-меню: один пункт в строку, иконки в фикс-колонке (метки выровнены), белый шрифт */
.nbc-menu-contact { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 15px; line-height: 1.3; }
a.nbc-menu-contact:hover { color: #c9b6f0; }
.nbc-menu-cicon { flex: 0 0 24px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.nbc-menu-cicon svg { width: 18px; height: 18px; display: block; }
.nbc-menu-contact[aria-label="vk"] .nbc-menu-cicon svg       { width: 24px; height: 24px; }
.nbc-menu-contact[aria-label="telegram"] .nbc-menu-cicon svg { width: 16px; height: 16px; }
.nbc-menu-clabel { color: inherit; }
.nbc-menu-socials { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* При открытом меню левый блок hero исчезает */
.nbc-menu-open .nbc-hero-left { opacity: 0; visibility: hidden; transition: opacity .25s ease; }

@media (max-width: 768px) {
    .nbc-menu-panel { width: 300px; padding: 24px 24px 22px; }
    .nbc-menu-logo { margin-bottom: 18px; }
    .nbc-menu-cats { gap: 9px; }
    .nbc-menu-cat { font-size: 15px; }
    .nbc-menu-contacts { margin-top: 18px; padding-top: 16px; gap: 12px; }
    .nbc-menu-find { padding: 8px 16px; font-size: 12px; margin-top: -5px; margin-bottom: 10px; }
    .nbc-menu-contact { font-size: 14px; }
}

/* Видеофон + затемнение */
.nbc-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; pointer-events: none;
}
.nbc-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(0, 0, 0, var(--nbc-hero-tint)); pointer-events: none;
}

/* ── Шапка hero (фикс, поверх видео) ── */
/* Шапка: фон во всю ширину, контент — макс 1400px по центру */
.nbc-hero-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 6;
    padding: 11.5px 0;
    background: rgba(8,4,18,.42);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nbc-hh-bar {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; gap: 20px;
}
.nbc-hh-left  { flex: 1 1 0; display: flex; align-items: center; gap: 18px; justify-content: flex-start; }
.nbc-hh-right { flex: 1 1 0; display: flex; align-items: center; gap: 22px; justify-content: flex-end; }
.nbc-hh-logo  { flex: 0 0 auto; position: relative; top: 3px; }
.nbc-hh-logo img { height: 53px; width: auto; display: block; }

/* Кнопка «Как нас найти?» — акцент-градиент, без обводки */
.nbc-hh-find {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bb-grad);
    color: #fff; border: none;
    border-radius: 20px; font-size: 13px; font-weight: 400; line-height: 1;
    text-transform: uppercase;
    padding: 10px 20px; white-space: nowrap;
    margin-left: 85px;
    transition: filter .2s;
}
.nbc-hh-find:hover { filter: brightness(1.08); color: #fff; }
.nbc-hh-find svg { width: 15px; height: 15px; }

/* 3D-тур: иконка справа от «Как нас найти?», симметрично бургеру слева (margin = margin-left кнопки) */
.nbc-hh-3d { display: inline-flex; align-items: center; margin-left: 85px; line-height: 0; transition: filter .2s; }
.nbc-hh-3d:hover { filter: brightness(1.12); }
.nbc-hh-3d img { height: 42px; width: auto; display: block; }

.nbc-hh-hours { font-size: 11px; line-height: 1.4; color: #d8d8d8; text-align: right; margin-right: 85px; }
.nbc-hh-hours strong { font-weight: 700; color: #fff; }
.nbc-hh-hours-title { font-weight: 700; font-size: 11px; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }

.nbc-hh-phone { color: var(--bb-green); font-size: 15px; font-weight: 400; white-space: nowrap; }
.nbc-hh-phone:hover { color: var(--bb-green); filter: brightness(1.1); }

/* Телефон-иконка в шапке (только мобайл, рядом с юзером) */
.nbc-hh-phone-mob { display: none; align-items: center; color: #fff; }
.nbc-hh-phone-mob svg { width: 23px; height: 23px; }

.nbc-hh-cert {
    display: inline-flex; align-items: center; background: rgba(255,255,255,.12);
    color: #fff; border: none; border-radius: 20px;
    padding: 10px 22px; font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: filter .2s, background .2s;
}
.nbc-hh-cert:hover { background: var(--bb-green); color: #06251a; }

.nbc-hh-user { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--bb-green); text-decoration: none; z-index: 7; margin-left: 6px; }
.nbc-hh-user:hover { filter: brightness(1.15); }
.nbc-hh-user svg { width: 24px; height: 24px; stroke: #fff; }
.nbc-hh-user-label { font-size: 10px; font-weight: 400; line-height: 1; color: var(--bb-green); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Соцссылки + 3D-тур по центру сверху */
.nbc-hero-socials {
    position: absolute; top: 124px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 40px; z-index: 5;
}
.nbc-hero-social { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bb-green); text-decoration: none; transition: opacity .2s; }
.nbc-hero-social:hover { opacity: .8; }
.nbc-hero-social svg { fill: var(--bb-green); }
/* VK и Telegram — одного визуального размера и цвета (глиф VK мельче в своём viewBox, потому VK крупнее по боксу); +15% */
.nbc-hero-social[aria-label="VK"] svg       { width: 39px; height: 39px; }
.nbc-hero-social[aria-label="Telegram"] svg { width: 32px; height: 32px; }
/* 3D-тур — крупнее соцсетей; подпись уже на самой картинке; +15% */
.nbc-hero-3d img { width: 81px; height: 81px; display: block; object-fit: contain; }

/* ── Карточка «О нас» слева — фон-картинка cover ── */
.nbc-hero-left {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 330px; max-width: 42vw; z-index: 4;
    border-radius: 0 20px 20px 0; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
/* Фон фикс-блоков — на ::before, чтобы поднять прозрачность на 20% (видео просвечивает) */
.nbc-hero-left::before, .nbc-hero-right::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: var(--hero-bg) center/cover no-repeat;
    opacity: .8;
}
.nbc-hero-left > *, .nbc-hero-right > * { position: relative; z-index: 1; }
.nbc-hero-left-scroll { padding: 34px 34px; max-height: 60vh; overflow-y: auto; }
.nbc-hero-left p {
    margin: 0; color: #fff; font-size: 11.5px; font-weight: 400; line-height: 1.6;
    text-transform: uppercase; letter-spacing: .3px; text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* ── Карточка «Сейчас сезон» справа — фон-картинка cover, прижата к краю, скругление слева ── */
.nbc-hero-right {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 210px; max-width: 44vw; z-index: 4;
    padding: 27px 21px 34px 6px;
    border-radius: 20px 0 0 20px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    color: #fff;
}
.nbc-hero-right-title {
    text-align: center; font-size: 13px; font-weight: 400; color: #fff;
    letter-spacing: normal; margin-bottom: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
.nbc-hero-season { display: flex; gap: 8px; align-items: stretch; }
.nbc-hero-month {
    writing-mode: vertical-rl; transform: rotate(180deg);
    color: #fff; font-weight: 400; font-size: 11px; letter-spacing: 3px;
    align-self: center; flex: 0 0 auto; padding: 0 4px;
    position: relative; left: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}
/* Скруглённая рамка-«скоба» слева (как в Киссатене): стенка затухает к краям загиба маской */
.nbc-hero-items {
    list-style: none; margin: 0; padding: 4px 0 4px 22px;
    position: relative;
    display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto;
}
.nbc-hero-items::before {
    content: ''; position: absolute; left: 0; top: -5.5px; bottom: -5.5px; width: 16px;
    border: 1.6px solid rgba(45,225,205,.85);
    border-right: none;
    border-radius: 16px 0 0 16px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.nbc-hero-items li {
    color: #fff; font-size: 12px; font-weight: 400; text-transform: uppercase;
    letter-spacing: .5px; text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* Кнопка МЕНЮ — акцент-градиент, без обводки */
.nbc-hero-menu {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 46px; border-radius: 999px;
    background: var(--bb-grad);
    border: none;
    color: #fff; font-weight: 400; font-size: 13px; letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 8px 28px rgba(0,184,184,.30);
    transition: filter .2s, transform .2s;
}
.nbc-hero-menu:hover { filter: brightness(1.08); transform: translateX(-50%) translateY(-2px); color: #fff; }
.nbc-hero-menu svg { width: 20px; height: 20px; }

/* ── Мобайл ── */
@media (max-width: 900px) {
    .nbc-hero { height: 100svh; }
    /* Мобильная шапка: [бургер слева] · [лого по центру] · [юзер справа]. Остальное — в слайд-меню */
    .nbc-hh-bar { padding: 0 14px; gap: 8px; }
    .nbc-hh-hours, .nbc-hh-find, .nbc-hh-phone, .nbc-hh-cert, .nbc-hh-3d { display: none !important; }
    .nbc-hh-logo img { height: 34px; }
    .nbc-hh-right { gap: 16px; }
    .nbc-hh-phone-mob { display: inline-flex; }
    .nbc-hh-user { right: 17px; }
    .nbc-hh-user-label { max-width: 64px; font-size: 9px; }
    .nbc-hero-socials { gap: 30px; }
    /* «Сейчас сезон» убираем на мобиле */
    .nbc-hero-right { display: none !important; }
    /* Левый текст — без карточки/фона, просто читаемый текст поверх видео */
    .nbc-hero-left {
        position: static; transform: none; width: auto; max-width: none; margin: 0;
        border-radius: 0; box-shadow: none; overflow: visible;
    }
    .nbc-hero-left::before { display: none !important; }
    .nbc-hero-left-scroll { padding: 0 20px; max-height: none; overflow: visible; }
    .nbc-hero-left p { font-size: 12.5px; }
    .nbc-hero-inner {
        position: absolute; inset: 0; z-index: 4; overflow-y: auto;
        display: flex; flex-direction: column; gap: 18px; padding: 125px 0 110px;
    }
    /* Соцсети + 3D-тур на 25px выше (padding-top 150 → 125) */
    .nbc-hero-socials { position: static; transform: none; margin: 0 auto 6px; }
    .nbc-hero-menu { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
}

/* Страница с hero (главная ИЛИ любая с [nbc_hero]) — hero рисует свою шапку, тему прячем; hero от самого верха */
.nbc-has-hero .nbc-header { display: none !important; }
.nbc-has-hero .site-header, .nbc-has-hero .page-header { display: none !important; }
.nbc-has-hero .site-main, .nbc-has-hero .entry-content, .nbc-has-hero .page-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
/* wpautop оборачивает шорткод в <p> — его верхний отступ открывал чёрную полосу над hero */
.nbc-has-hero .page-content > p { margin: 0 !important; padding: 0 !important; }
.nbc-has-hero #content { padding-top: 0 !important; margin-top: 0 !important; }
.nbc-has-hero .nbc-hero { margin-top: 0 !important; }
/* wpautop вставляет <br> между шорткодами — это была чёрная полоса под hero */
.nbc-has-hero .page-content > br { display: none !important; }
/* Учитываем админ-бар WP (виден только залогиненным) — чтобы hero и кнопка МЕНЮ не уезжали за экран */
.admin-bar .nbc-hero { height: calc(100vh - 32px); }
@media (max-width: 782px) { .admin-bar .nbc-hero { height: calc(100svh - 46px); } }
