/* Обложка → подбор → история. Общий свет связывает секции одной страницы. */
.hb-bf {
    --bf-bg: #171322;
    --bf-surface: #241d32;
    --bf-text: #fff4e9;
    --bf-muted: #d3c6db;
    --bf-accent: #ffb79e;
    --bf-sunset: linear-gradient(115deg, #fff1c6 0%, #ffc0aa 30%, #ef9acb 65%, #b49bff 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(ellipse 68% 12% at 0% 17%, rgba(133, 79, 211, .28), transparent 78%),
        radial-gradient(ellipse 65% 11% at 100% 24%, rgba(241, 123, 167, .18), transparent 78%),
        radial-gradient(ellipse 70% 12% at 20% 43%, rgba(155, 80, 213, .2), transparent 78%),
        radial-gradient(ellipse 72% 13% at 100% 57%, rgba(247, 135, 156, .2), transparent 78%),
        radial-gradient(ellipse 75% 12% at 0% 69%, rgba(101, 107, 210, .2), transparent 78%),
        var(--bf-bg);
    color: var(--bf-text);
    font-family: 'montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

.hb-bf *, .hb-bf *::before, .hb-bf *::after { box-sizing: border-box; }
.hb-bf .hb-bf__container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.hb-bf .hb-bf__scene { padding-block: 96px; scroll-margin-top: 100px; }
.hb-bf .hb-bf__eyebrow {
    margin: 0 0 20px;
    color: var(--bf-accent);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hb-bf .hb-bf__garage .hb-bf__eyebrow::before,
.hb-bf .hb-bf__mission .hb-bf__eyebrow::before,
.hb-bf .hb-bf__meeting .hb-bf__eyebrow::before,
.hb-bf .hb-bf__workshop .hb-bf__eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; margin: 0 12px 4px 0; background: var(--bf-sunset); }
.hb-bf .hb-bf__title, .hb-bf .hb-bf__heading {
    margin: 0;
    color: var(--bf-text);
    font-weight: 900;
    line-height: 1.08;
}
.hb-bf .hb-bf__title { max-width: 960px; font-size: clamp(36px, 5.8vw, 76px); }
.hb-bf .hb-bf__heading { font-size: clamp(30px, 4vw, 52px); }
.hb-bf .hb-bf__lead { max-width: 640px; margin: 24px 0 0; color: var(--bf-muted); font-size: 18px; }
.hb-bf .hb-bf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hb-bf .hb-bf__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 5px;
    background: var(--bf-accent);
    color: var(--bf-bg);
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}
.hb-bf .hb-bf__button:hover { background: #ffd0ba; }
.hb-bf .hb-bf__text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--bf-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.hb-bf .hb-bf__garage { padding-block: 28px 56px; background: linear-gradient(180deg, #171322, transparent 180px); }
.hb-bf .hb-bf__garage-header { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 64px; }
.hb-bf .hb-bf__garage-header .hb-bf__lead { max-width: 410px; margin: 0 0 6px; }
.hb-bf .hb-bf__garage .hb-bf__heading { font-size: clamp(38px, 4.8vw, 68px); letter-spacing: -.045em; }
.hb-bf .hb-bf__brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.hb-bf .hb-bf__brand-slide { min-width: 0; }
.hb-bf .hb-bf__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 28px;
    border: 1px solid #796a87;
    color: var(--bf-text);
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
}
.hb-bf .hb-bf__brand span { color: var(--bf-muted); font-size: 14px; font-weight: 500; }
.hb-bf .hb-bf__brand:hover { border-color: var(--bf-accent); background: var(--bf-bg); }
.hb-bf a:focus-visible { outline: 3px solid var(--bf-accent); outline-offset: 5px; }

/* Иллюстрации и HTML-контент — независимые слои. */
.hb-bf .hb-bf__hero,
.hb-bf .hb-bf__drift {
    position: relative;
    isolation: isolate;
    padding-block: 0;
    background: var(--bf-bg);
}
.hb-bf .hb-bf__hero-art,
.hb-bf .hb-bf__drift-art { position: absolute; inset: 0; z-index: -1; }
.hb-bf .hb-bf__hero-art img,
.hb-bf .hb-bf__drift-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hb-bf .hb-bf__hero-art img { object-position: 40% center; }
.hb-bf .hb-bf__drift-art img { object-position: 35% center; }
.hb-bf .hb-bf__hero-art::after,
.hb-bf .hb-bf__drift-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.hb-bf .hb-bf__hero-art::after {
    background: linear-gradient(90deg, rgba(23,19,34,.96) 0%, rgba(23,19,34,.81) 23%, rgba(23,19,34,.36) 43%, transparent 65%),
                linear-gradient(0deg, #171322 0%, transparent 18%);
}
.hb-bf .hb-bf__hero-layout,
.hb-bf .hb-bf__drift-layout {
    display: flex;
    align-items: center;
    min-height: clamp(700px, 56.25vw, 1000px);
    padding-block: 72px;
}
.hb-bf .hb-bf__hero-copy { width: 540px; max-width: 45%; }
.hb-bf .hb-bf__hero .hb-bf__eyebrow { margin-bottom: 28px; }
.hb-bf .hb-bf__hero .hb-bf__title {
    font-size: clamp(36px, 3.65vw, 54px);
    line-height: 1.04;
    letter-spacing: -.045em;
}
.hb-bf .hb-bf__hero .hb-bf__title span { display: block; }
.hb-bf .hb-bf__hero .hb-bf__title span,
.hb-bf .hb-bf__drift .hb-bf__heading span { color: var(--bf-accent); }
.hb-bf .hb-bf__hero .hb-bf__lead { margin-top: 28px; color: var(--bf-text); }
.hb-bf .hb-bf__hero .hb-bf__actions { gap: 16px; }
.hb-bf .hb-bf__button { gap: 18px; }
.hb-bf .hb-bf__hero-signature { margin: 38px 0 0; font-size: 12px; color: var(--bf-muted); }

/* Ночная сцена: изображение слева, текст справа. */
.hb-bf .hb-bf__drift-art::after {
    background: linear-gradient(270deg, rgba(23,19,34,.94) 0%, rgba(23,19,34,.76) 24%, rgba(23,19,34,.18) 49%, transparent 68%),
                linear-gradient(0deg, #171322 0%, transparent 18%);
}
.hb-bf .hb-bf__drift-layout { justify-content: flex-end; }
.hb-bf .hb-bf__drift-copy { width: 410px; max-width: 40%; }
.hb-bf .hb-bf__drift .hb-bf__heading { font-size: clamp(36px, 3.4vw, 52px); letter-spacing: -.035em; }
.hb-bf .hb-bf__drift .hb-bf__lead { color: var(--bf-text); }
.hb-bf .hb-bf__drift .hb-bf__button { font-size: 14px; padding-inline: 20px; }
.hb-bf .hb-bf__drift-back { margin-top: 20px; font-size: 14px; }

/* Цель миссии: заголовок и объёмная карта маршрута по центру. */
.hb-bf .hb-bf__mission { padding-top: 56px; background: transparent; }
.hb-bf .hb-bf__mission-brief { text-align: center; }
.hb-bf .hb-bf__mission .hb-bf__heading { max-width: 1100px; margin-inline: auto; font-size: clamp(36px, 4.7vw, 64px); letter-spacing: -.035em; }
.hb-bf .hb-bf__mission .hb-bf__heading span { color: var(--bf-accent); }
.hb-bf .hb-bf__mission .hb-bf__lead { max-width: 720px; margin-inline: auto; font-size: 18px; }
.hb-bf .hb-bf__mission-label {
    margin: 0 0 8px;
    color: var(--bf-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hb-bf .hb-bf__mission .hb-bf__text-link { gap: 14px; font-size: 14px; }
.hb-bf .hb-bf__mission-map { position: relative; isolation: isolate; width: min(100%, 820px); margin: 24px auto 0; }
.hb-bf .hb-bf__mission-map::before { content: ''; position: absolute; z-index: -1; inset: 8% 0; background: radial-gradient(ellipse at 48% 50%, rgba(148, 94, 224, .14), transparent 70%); }
.hb-bf .hb-bf__mission-map img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(8, 5, 20, .3)); }
.hb-bf .hb-bf__mission-brief > .hb-bf__text-link { margin-top: 16px; }

/* Наводка: отдельная фигура персонажа и реплика в HTML. */
.hb-bf .hb-bf__tip {
    padding-block: 0;
    background: transparent;
}
.hb-bf .hb-bf__tip-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
}
.hb-bf .hb-bf__tip-portrait { align-self: end; }
.hb-bf .hb-bf__tip-portrait img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-inline: auto;
}
.hb-bf .hb-bf__tip-copy { min-width: 0; padding-block: 72px; }
.hb-bf .hb-bf__tip .hb-bf__heading { font-size: clamp(38px, 4vw, 56px); letter-spacing: -.035em; }
.hb-bf .hb-bf__tip-quote {
    margin: 32px 0 0;
    padding: 0 0 0 24px;
    border-left: 2px solid var(--bf-accent);
    color: var(--bf-accent);
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 900;
    line-height: 1.35;
}
.hb-bf .hb-bf__tip-quote p { margin: 0; }
.hb-bf .hb-bf__tip .hb-bf__lead { max-width: 460px; font-size: 17px; }
.hb-bf .hb-bf__tip-next { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.hb-bf .hb-bf__tip-next > span { color: var(--bf-accent); font-size: 32px; }
.hb-bf .hb-bf__tip-next p { margin: 0; font-size: 18px; font-weight: 900; }
.hb-bf .hb-bf__tip-next p span { display: block; margin-bottom: 4px; color: var(--bf-muted); font-size: 12px; font-weight: 500; }

/* Хук и первая неудачная попытка. */
.hb-bf .hb-bf__hero-hook { margin: 24px 0 0; color: var(--bf-accent); font-size: clamp(19px, 2vw, 27px); font-weight: 900; line-height: 1.3; }
.hb-bf .hb-bf__hero-hook + .hb-bf__lead { margin-top: 16px; font-size: 17px; }
.hb-bf .hb-bf__mission { padding-bottom: 0; }
.hb-bf .hb-bf__wasted {
    position: relative;
    isolation: isolate;
    margin-top: 56px;
    text-align: center;
    scroll-margin-top: 100px;
}
.hb-bf .hb-bf__wasted-frame { position: relative; isolation: isolate; width: min(100%, 1320px); min-height: 280px; margin-inline: auto; }
.hb-bf .hb-bf__wasted-frame::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 12%, rgba(23, 19, 34, .35) 40%, rgba(23, 19, 34, .35) 60%, transparent 88%); }
.hb-bf .hb-bf__wasted-art { display: block; width: 100%; height: auto; min-height: inherit; object-fit: cover; filter: grayscale(.72) brightness(.85); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%); }
.hb-bf .hb-bf__wasted-title { text-shadow: 0 3px 28px rgba(8, 5, 20, .8); }
.hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-art { filter: grayscale(var(--bf-wasted-gray, .72)) brightness(var(--bf-wasted-brightness, .85)); }
.hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-title { transform: translate3d(0, var(--bf-wasted-rise, 0px), 0); }
.hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-content,
.hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-frame::after { opacity: var(--bf-wasted-title, 1); }
.hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-content { pointer-events: none; }
.hb-bf .hb-bf__wasted--revealed .hb-bf__wasted-content { pointer-events: auto; }
.hb-bf .hb-bf__wasted:focus-within .hb-bf__wasted-content,
.hb-bf .hb-bf__wasted:focus-within .hb-bf__wasted-frame::after { opacity: 1; pointer-events: auto; }
.hb-bf .hb-bf__wasted:focus-within .hb-bf__wasted-title { transform: none; }
.hb-bf .hb-bf__wasted-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 40px 24px; text-shadow: 0 2px 18px rgba(8, 5, 20, .9); }
.hb-bf .hb-bf__wasted-attempt { margin: 0 0 14px; color: #d3ced8; font-size: 11px; text-transform: uppercase; letter-spacing: .18em; }
.hb-bf .hb-bf__wasted h3 { margin: 0; color: #fff; font-size: clamp(40px, 8.2vw, 112px); font-weight: 900; line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.hb-bf .hb-bf__wasted-reply { max-width: 680px; margin: 20px 0 8px; font-size: 18px; font-weight: 900; }
.hb-bf .hb-bf__wasted .hb-bf__text-link { gap: 12px; font-size: 14px; }
.hb-bf a.hb-bf__tip-next { width: fit-content; padding: 10px 16px 10px 0; color: var(--bf-text); text-decoration: none; }
.hb-bf a.hb-bf__tip-next:hover { color: var(--bf-accent); }

/* Встреча и раскрытие продукта. */
.hb-bf .hb-bf__meeting { padding-top: 56px; background: transparent; }
.hb-bf .hb-bf__meeting-grid { display: grid; isolation: isolate; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hb-bf .hb-bf__meeting-copy { position: relative; z-index: 1; min-width: 0; }
.hb-bf .hb-bf__meeting-copy > .hb-bf__lead { margin: 0 0 32px; }
.hb-bf .hb-bf__meeting .hb-bf__heading { font-size: clamp(34px, 3.8vw, 54px); letter-spacing: -.035em; }
.hb-bf .hb-bf__meeting .hb-bf__heading span,
.hb-bf .hb-bf__workshop .hb-bf__heading span { color: var(--bf-accent); }
.hb-bf .hb-bf__meeting-portrait { position: relative; z-index: 0; margin: 0; }
.hb-bf .hb-bf__meeting-portrait img { display: block; width: 100%; height: auto; mask-image: radial-gradient(ellipse 74% 80% at 52% 44%, #000 57%, transparent 100%); }
.hb-bf .hb-bf__art-caption { position: relative; z-index: 1; display: block; margin: -8px 6% 0; color: var(--bf-muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.hb-bf .hb-bf__dialogue { margin: 32px 0 24px; padding-left: 24px; border-left: 2px solid var(--bf-accent); color: var(--bf-accent); font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; line-height: 1.4; }
.hb-bf .hb-bf__dialogue p { margin: 0; }
.hb-bf .hb-bf__meeting .hb-bf__text-link { gap: 12px; font-size: 14px; }

/* Машины: кликабельна вся карточка; подписи остаются в HTML. */
.hb-bf .hb-bf__garage .hb-bf__brand { gap: 0; overflow: hidden; padding: 0; border-color: rgba(193, 160, 226, .22); border-radius: 6px; background: rgba(25, 18, 40, .6); transition: border-color .2s, transform .2s; }
.hb-bf .hb-bf__garage .hb-bf__brand:hover { border-color: #ef9acb; transform: translateY(-4px); }
.hb-bf .hb-bf__car-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; mask-image: linear-gradient(180deg, #000 83%, transparent); }
.hb-bf .hb-bf__car-name { display: block; padding: 22px 24px 0; color: var(--bf-text); font-size: 27px; font-weight: 900; }
.hb-bf .hb-bf__brand .hb-bf__car-cta { display: block; padding: 8px 24px 24px; color: var(--bf-accent); font-size: 13px; }

/* Ночная подготовка. */
.hb-bf .hb-bf__workshop { padding-top: 24px; background: transparent; }
.hb-bf .hb-bf__workshop .hb-bf__heading { font-size: clamp(34px, 3.8vw, 54px); letter-spacing: -.035em; }
.hb-bf .hb-bf__mechanism-note { margin: 32px 0; padding-top: 24px; border-top: 1px solid #465067; }
.hb-bf .hb-bf__mechanism-note > p:last-child { margin: 12px 0 0; font-size: 16px; color: var(--bf-muted); }

/* Комикс: отдельные арты, рамки и реплики. Порядок DOM сохраняет ход истории. */
.hb-bf .hb-bf__comic-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, clamp(104px, 12.9vw, 154px)) auto; gap: 22px; padding: 10px 8px; }
.hb-bf .hb-bf__comic-panel { --comic-tilt: 0deg; --comic-enter-x: 0px; position: relative; min-width: 0; margin: 0; overflow: hidden; border: 8px solid #100a1d; outline: 1px solid rgba(188, 123, 216, .35); background: #1e132d; box-shadow: 0 18px 40px rgba(8, 4, 18, .3); transform: rotate(var(--comic-tilt)); scroll-margin-top: 100px; }
.hb-bf .hb-bf__comic-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-bf .hb-bf__comic-panel--solution { --comic-tilt: -1.1deg; --comic-enter-x: -72px; grid-column: 1 / 8; grid-row: 1 / 3; }
.hb-bf .hb-bf__comic-panel--call { --comic-tilt: 1.3deg; --comic-enter-x: 72px; grid-column: 8 / -1; grid-row: 1 / 4; }
.hb-bf .hb-bf__comic-panel--office { --comic-tilt: -.8deg; --comic-enter-x: -72px; grid-column: 1 / 6; grid-row: 3 / 7; }
.hb-bf .hb-bf__comic-panel--product { --comic-tilt: 1deg; --comic-enter-x: 72px; isolation: isolate; display: flex; flex-direction: column; grid-column: 6 / -1; grid-row: 4 / 7; background: radial-gradient(ellipse at 25% 70%, rgba(93, 42, 168, .22), transparent 65%), radial-gradient(ellipse at 90% 20%, rgba(239, 72, 166, .12), transparent 65%), #10091f; }

/* Цветной свет за продуктом: плавный перелив и периодическая диагональная волна. */
.hb-bf .hb-bf__comic-panel--product::before,
.hb-bf .hb-bf__comic-panel--product::after { content: ''; position: absolute; z-index: 0; pointer-events: none; }
.hb-bf .hb-bf__comic-panel--product::before {
    inset: -25%;
    background: radial-gradient(ellipse at 28% 65%, rgba(255, 144, 107, .52), transparent 48%), radial-gradient(ellipse at 70% 42%, rgba(239, 72, 166, .52), transparent 50%), radial-gradient(ellipse at 48% 78%, rgba(126, 80, 255, .6), transparent 46%);
    animation: hb-bf-product-glow 9s ease-in-out infinite;
}
.hb-bf .hb-bf__comic-panel--product::after {
    inset: -40%;
    opacity: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 144, 107, .35) 45%, rgba(239, 72, 166, .48) 50%, rgba(126, 80, 255, .38) 55%, transparent 68%);
    /* Движение непрерывное; мягкая прозрачность меняется независимо. */
    animation: hb-bf-product-wave 8s linear infinite, hb-bf-product-wave-fade 8s ease-in-out infinite;
}
@keyframes hb-bf-product-glow {
    0%, 100% { opacity: .5; transform: translate3d(-10%, 8%, 0); }
    50% { opacity: .95; transform: translate3d(10%, -8%, 0); }
}
@keyframes hb-bf-product-wave {
    0%, 60% { transform: translate3d(-60%, 0, 0); }
    100% { transform: translate3d(60%, 0, 0); }
}
@keyframes hb-bf-product-wave-fade {
    0%, 60% { opacity: 0; }
    72%, 88% { opacity: .9; }
    100% { opacity: 0; }
}
.hb-bf .hb-bf__comic-panel--solution > .hb-bf__comic-image,
.hb-bf .hb-bf__comic-panel--call > .hb-bf__comic-image,
.hb-bf .hb-bf__comic-panel--office > .hb-bf__comic-image { position: absolute; inset: 0; }
.hb-bf .hb-bf__comic-panel--solution > .hb-bf__comic-image { object-position: center; }
.hb-bf .hb-bf__comic-bubble { position: absolute; z-index: 2; top: 22px; left: 22px; max-width: calc(100% - 44px); margin: 0; padding: 16px 22px; border: 3px solid #160c24; border-radius: 20px; background: #fff3df; color: #21112c; font-size: clamp(18px, 2vw, 28px); font-weight: 900; line-height: 1.2; letter-spacing: -.035em; box-shadow: 3px 5px 0 rgba(16, 10, 29, .4); }
.hb-bf .hb-bf__comic-bubble p { margin: 0; }
.hb-bf .hb-bf__comic-bubble::after { content: ''; position: absolute; right: 30px; bottom: -13px; width: 21px; height: 21px; border-right: 3px solid #160c24; border-bottom: 3px solid #160c24; background: #fff3df; transform: rotate(45deg); }
.hb-bf .hb-bf__comic-panel--solution .hb-bf__comic-bubble { max-width: 260px; }
.hb-bf .hb-bf__comic-panel--call .hb-bf__comic-bubble { top: auto; bottom: 26px; max-width: 280px; }
.hb-bf .hb-bf__comic-panel--call .hb-bf__comic-bubble::after { top: -13px; bottom: auto; transform: rotate(225deg); }
.hb-bf .hb-bf__comic-panel--office .hb-bf__comic-bubble { max-width: 280px; }
.hb-bf .hb-bf__comic-product-heading { position: relative; z-index: 1; flex: 0 0 auto; padding: 24px 28px 0; }
.hb-bf .hb-bf__comic-product-heading > p { margin: 0 0 8px; color: var(--bf-accent); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hb-bf .hb-bf__comic-product-heading h3 { margin: 0; font-size: clamp(36px, 4.4vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -.045em; }
.hb-bf .hb-bf__comic-product-image { position: relative; z-index: 1; display: block; flex: 1 1 0; min-height: 0; width: 100%; height: 0; object-fit: contain; padding: 0 12px; }
.hb-bf .hb-bf__comic-product-caption { position: relative; z-index: 1; flex: 0 0 auto; padding: 8px 28px 20px; }
.hb-bf .hb-bf__comic-product-caption .hb-bf__text-link { gap: 12px; font-size: 13px; }
.hb-bf .hb-bf__comic-panel--upgrade { --comic-tilt: .3deg; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-column: 1 / -1; grid-row: 7; margin-top: 14px; background: #20152d; }
.hb-bf .hb-bf__comic-upgrade-art { position: relative; min-width: 0; }
.hb-bf .hb-bf__comic-upgrade-art > .hb-bf__comic-image { position: absolute; inset: 0; }
.hb-bf .hb-bf__comic-upgrade-art .hb-bf__comic-bubble { max-width: min(320px, 58%); font-size: clamp(16px, 1.6vw, 22px); line-height: 1.25; }
.hb-bf .hb-bf__comic-upgrade-copy { min-width: 0; padding: 36px 30px; }
.hb-bf .hb-bf__comic-upgrade-copy .hb-bf__heading { font-size: clamp(34px, 3.6vw, 48px); }
.hb-bf .hb-bf__comic-upgrade-copy .hb-bf__lead { font-size: 16px; }

/* По умолчанию всё видно. Только работающий observer включает появление. */
.hb-bf .hb-bf__comic--animated .hb-bf__comic-panel { transition: opacity .6s ease, transform .85s cubic-bezier(.2, .7, .2, 1); }
.hb-bf .hb-bf__comic--animated .hb-bf__comic-bubble { transition: opacity .35s ease .3s, transform .45s cubic-bezier(.2, .7, .2, 1) .3s; transform-origin: 60% 100%; }
.hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:not(.is-revealed) { opacity: 0; transform: translate3d(var(--comic-enter-x), 48px, 0) rotate(var(--comic-tilt)) scale(.97); }
.hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:not(.is-revealed) .hb-bf__comic-bubble { opacity: 0; transform: translateY(10px) scale(.9); }
.hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:focus-within { opacity: 1; transform: rotate(var(--comic-tilt)); }
.hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:focus-within .hb-bf__comic-bubble { opacity: 1; transform: none; }

/* Развязка: панорама и результат миссии. */
.hb-bf .hb-bf__success { position: relative; isolation: isolate; padding-block: 0; background: #171322; }
.hb-bf .hb-bf__success-art { position: absolute; inset: 0; z-index: -1; }
.hb-bf .hb-bf__success-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hb-bf .hb-bf__success-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,19,34,.92), rgba(23,19,34,.64) 30%, transparent 72%), linear-gradient(180deg, #171322, transparent 16%, transparent 78%, #171322); }
.hb-bf .hb-bf__success-layout { display: flex; align-items: center; min-height: clamp(650px, 56vw, 900px); padding-block: 80px; }
.hb-bf .hb-bf__success-copy { width: 500px; max-width: 48%; }
.hb-bf .hb-bf__success .hb-bf__heading { font-size: clamp(42px, 5vw, 72px); letter-spacing: -.045em; }
.hb-bf .hb-bf__success .hb-bf__heading span { color: #d3e9ad; }
.hb-bf .hb-bf__success .hb-bf__eyebrow { color: #d3e9ad; }
.hb-bf .hb-bf__success-reward { margin: 32px 0 20px; color: var(--bf-accent); font-size: 22px; font-weight: 900; }
.hb-bf .hb-bf__success .hb-bf__text-link { gap: 12px; font-size: 14px; }

/* Последний экран: следующий маршрут принадлежит посетителю. */
.hb-bf .hb-bf__finale { background: linear-gradient(180deg, #171322, transparent 28%), radial-gradient(ellipse at 20% 70%, rgba(174, 94, 229, .32), transparent 65%), radial-gradient(ellipse at 85% 80%, rgba(255, 149, 169, .26), transparent 65%), #171322; text-align: center; }
.hb-bf .hb-bf__finale .hb-bf__heading { font-size: clamp(48px, 7.3vw, 100px); line-height: 1.02; letter-spacing: -.05em; }
.hb-bf .hb-bf__finale .hb-bf__heading span { color: var(--bf-accent); }
.hb-bf .hb-bf__finale .hb-bf__lead { margin-inline: auto; }
.hb-bf .hb-bf__finale .hb-bf__actions { justify-content: center; }

/* Тёплый свет переходит из персикового в розовый и лавандовый. */
.hb-bf .hb-bf__hero .hb-bf__title span,
.hb-bf .hb-bf__garage .hb-bf__heading,
.hb-bf .hb-bf__mission .hb-bf__heading span,
.hb-bf .hb-bf__tip-quote,
.hb-bf .hb-bf__meeting .hb-bf__heading span,
.hb-bf .hb-bf__comic-product-heading h3,
.hb-bf .hb-bf__workshop .hb-bf__heading span,
.hb-bf .hb-bf__finale .hb-bf__heading span { color: #ffc0ba; background: var(--bf-sunset); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hb-bf .hb-bf__hero .hb-bf__button,
.hb-bf .hb-bf__workshop .hb-bf__button,
.hb-bf .hb-bf__finale .hb-bf__button { background: var(--bf-sunset); box-shadow: 0 8px 28px rgba(239, 154, 203, .12); }
.hb-bf .hb-bf__hero .hb-bf__button:hover,
.hb-bf .hb-bf__workshop .hb-bf__button:hover,
.hb-bf .hb-bf__finale .hb-bf__button:hover { background: linear-gradient(115deg, #fff5db, #ffd2ca 40%, #d6bfff); }

@media (prefers-reduced-motion: reduce) {
    .hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-art { filter: grayscale(.72) brightness(.85); }
    .hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-content,
    .hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-frame::after { opacity: 1; pointer-events: auto; }
    .hb-bf .hb-bf__wasted--scroll .hb-bf__wasted-title { transform: none; }
    .hb-bf .hb-bf__comic-panel--product::before { animation: none; opacity: .55; transform: none; }
    .hb-bf .hb-bf__comic-panel--product::after { animation: none; opacity: 0; transform: none; }
    .hb-bf .hb-bf__garage .hb-bf__brand { transition: none; }
    .hb-bf .hb-bf__garage .hb-bf__brand:hover { transform: none; }
    .hb-bf .hb-bf__comic-panel,
    .hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:not(.is-revealed) { opacity: 1; transform: none; transition: none; }
    .hb-bf .hb-bf__comic--animated .hb-bf__comic-bubble,
    .hb-bf .hb-bf__comic--animated .hb-bf__comic-panel:not(.is-revealed) .hb-bf__comic-bubble { opacity: 1; transform: none; transition: none; }
}
