/* ============================================================
   Page Brand Hero — страницы раздела «О бренде»
   ============================================================ */

.page-brand-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: var(--color-hero-bg);
    overflow: visible;
}

/* Video background */
.page-brand-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Dark overlay */
.page-brand-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Content area — vertically centered in remaining space */
.page-brand-hero__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 160px 40px 0;
}

/* ── Breadcrumbs ── */
.page-brand-hero__breadcrumbs {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-brand-hero__breadcrumbs a,
.page-brand-hero__breadcrumbs span {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
}

.page-brand-hero__breadcrumb-arrow {
    flex-shrink: 0;
}

/* ── Title ── */
.page-brand-hero__title {
    font-family: var(--font-neo);
    font-size: 60px;
    font-weight: 400;
    line-height: 72px;
    letter-spacing: -2px;
    color: var(--color-white);
}

/* ── Description ── */
.page-brand-hero__desc {
    font-family: var(--font-inter);
    font-size: 19px;
    font-weight: 400;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Sidebar widget ── */
.page-brand-hero__sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-65%); /* offset upward so it clears the subnav */
    z-index: 2;
}

/* When subnav is absent — no overflow needed below the section */
.page-brand-hero--no-subnav {
    overflow: hidden;
    padding-bottom: 0;
}

/* ============================================================
   Sub-navigation tabs (bottom strip)
   ============================================================ */

.page-brand-subnav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(50%);
}

.page-brand-subnav__list {
    display: flex;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    background: white;
}

.page-brand-subnav__item {
    flex: 1;
}

.page-brand-subnav__item + .page-brand-subnav__item {
    position: relative;
}

.page-brand-subnav__item + .page-brand-subnav__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background-color: var(--color-divider);
    z-index: 1;
}

.page-brand-subnav__item.is-active + .page-brand-subnav__item::before,
.page-brand-subnav__item + .page-brand-subnav__item.is-active::before,
/* Hide dividers at clone↔original boundaries in the infinite-loop sandwich */
.page-brand-subnav__item[data-clone] + .page-brand-subnav__item:not([data-clone])::before,
.page-brand-subnav__item:not([data-clone]) + .page-brand-subnav__item[data-clone]::before {
    display: none;
}

.page-brand-subnav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px 16px;
    background: var(--color-white);
    font-family: var(--font-neo);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: var(--color-black);
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease;
}

.page-brand-subnav__link:hover {
    background-color: var(--color-accent);
    color: var(--color-black);
}

.page-brand-subnav__item.is-active .page-brand-subnav__link {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1170px) {
    .page-brand-hero {
        padding: 0 24px 64px;
    }

    .page-brand-hero__title {
        font-size: 44px;
        line-height: 48px;
        letter-spacing: -2px;
    }

    .page-brand-hero__desc {
        font-size: 17px;
        line-height: 23px;
    }

    .page-brand-hero__breadcrumbs a,
    .page-brand-hero__breadcrumbs span {
        font-size: 12px;
        line-height: 18px;
    }

    .page-brand-hero__sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-brand-hero {
        padding: 0;
        min-height: 600px;
    }

    .page-brand-hero__inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
        padding: 80px 24px 40px;
    }

    .page-brand-subnav {
        position: static;
        transform: none;
        width: 100%;
        border-bottom: 1px solid var(--color-divider);
    }

    .page-brand-subnav__list {
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .page-brand-subnav__list::-webkit-scrollbar {
        display: none;
    }

    .page-brand-subnav__item {
        flex: 0 0 auto;
    }

    .page-brand-subnav__link {
        padding: 24px;
    }

    .page-brand-subnav__item + .page-brand-subnav__item::before {
        display: block;
    }
}
