/* Чёрная пятница 2026 (до 28.11.2026 00:00 МСК). Подключается из chunks/bf/strip.tpl */
:root {
    --bf-bg: #181818;
    --bf-mint: #cdeee2;
    --bf-grad: linear-gradient(90deg, #1fc79a 0%, #27c2c6 55%, #2cb6e6 100%);
    --bf-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --bf-strip-h: 44px;
}

/* ---------- Полоса над шапкой ---------- */
.bf-strip {
    position: relative;
    z-index: 1031;
    height: var(--bf-strip-h);
    background: var(--bf-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 16px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}
.bf-strip:hover { color: #fff; }
.bf-strip__pre,
.bf-strip__text { font-family: var(--bf-mono); font-size: 13px; letter-spacing: .06em; }
.bf-strip__title {
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.bf-strip__pct {
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: 22px;
    background: var(--bf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 8px;
}
.bf-strip__btn {
    font-family: var(--bf-mono);
    font-size: 12px;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 6px;
    padding: 4px 10px;
    transition: background .2s, color .2s;
}
.bf-strip:hover .bf-strip__btn { background: #fff; color: var(--bf-bg); }

/* Шапка фиксированная: пока полоса видна, опускаем шапку под неё (top двигает bf.js) */
html.bf-on .header { top: var(--bf-top, var(--bf-strip-h)) !important; }

@media (max-width: 991.98px) {
    .bf-strip { gap: 12px; justify-content: space-between; }
    .bf-strip__pre, .bf-strip__text .bf-hide-sm { display: none; }
    .bf-strip__title { font-size: 15px; }
    .bf-strip__pct { font-size: 15px; margin-left: 4px; }
    .bf-strip__text { font-size: 11px; letter-spacing: .02em; }
    .bf-strip__btn { font-size: 11px; padding: 3px 8px; }
}
@media (max-width: 420px) {
    .bf-strip__btn { display: none; }
}

/* ---------- Большой баннер ---------- */
.bf-banner-wrap { padding: 32px 0; }
.bf-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .9fr 1fr;
    align-items: stretch;
    min-height: 400px;
    background: var(--bf-bg);
    color: #fff;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
}
.bf-banner:hover { color: #fff; }
.bf-banner__left {
    position: relative;
    z-index: 2;
    padding: 40px 0 36px 44px;
    display: flex;
    flex-direction: column;
}
.bf-banner__pre { font-family: var(--bf-mono); font-size: 20px; letter-spacing: .08em; }
.bf-banner__title {
    position: relative;
    margin: 10px 0 0;
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 4vw, 56px);
    line-height: .92;
    text-transform: uppercase;
    color: #fff;
}
.bf-banner__paw {
    position: absolute;
    top: -18px;
    right: -64px;
    width: 64px;
    opacity: 1;
    mix-blend-mode: lighten;
}
.bf-banner__date {
    margin-top: 20px;
    font-family: var(--bf-mono);
    font-style: italic;
    font-size: 19px;
    color: var(--bf-mint);
    letter-spacing: .04em;
}
.bf-banner__list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    font-family: var(--bf-mono);
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: .03em;
}
.bf-banner__list li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.bf-banner__list li::before { content: "•"; position: absolute; left: 0; }
.bf-banner__list b { color: #fff; font-weight: 700; }
.bf-banner__fine {
    margin-top: auto;
    padding-top: 18px;
    max-width: 380px;
    font-family: var(--bf-mono);
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .55);
    letter-spacing: .03em;
}
.bf-banner__photo {
    position: relative;
    z-index: 1;
    align-self: end;
    justify-self: center;
    width: 100%;
    max-width: 440px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.bf-banner__photo img {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.bf-banner__right {
    position: relative;
    z-index: 2;
    padding: 40px 44px 36px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.bf-banner__upto { font-family: var(--bf-mono); font-size: 22px; letter-spacing: .08em; margin-left: 6px; }
.bf-banner__pct {
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: clamp(90px, 10vw, 150px);
    line-height: .9;
    background: var(--bf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 6px;
}
.bf-banner__timer {
    margin-top: 22px;
    font-family: var(--bf-mono);
    font-size: 14px;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .7);
}
.bf-banner__timer b { color: #fff; font-size: 20px; font-weight: 700; margin-left: 4px; }
.bf-banner__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: #2fd3a0;
    color: #111;
    font-family: var(--bf-mono);
    font-size: 16px;
    letter-spacing: .04em;
    transition: transform .2s, background .2s;
}
.bf-banner:hover .bf-banner__cta { background: #45e2b2; transform: translateY(-1px); }

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bf-banner { grid-template-columns: 1.15fr .75fr 1fr; }
    .bf-banner__photo img { height: 88%; }
}
@media (max-width: 991.98px) {
    .bf-banner-wrap { padding: 20px 0; }
    .bf-banner {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px;
    }
    .bf-banner__left { padding: 30px 24px 0; align-items: center; text-align: center; }
    .bf-banner__pre { font-size: 17px; }
    .bf-banner__title { font-size: clamp(34px, 10vw, 52px); }
    .bf-banner__paw { display: none; }
    .bf-banner__date { font-size: 16px; margin-top: 14px; }
    .bf-banner__list { font-size: 14px; text-align: left; }
    .bf-banner__fine { margin-top: 6px; text-align: center; }
    .bf-banner__right { order: 2; padding: 22px 24px 0; align-items: center; }
    .bf-banner__upto { font-size: 18px; margin: 0; }
    .bf-banner__pct { font-size: clamp(88px, 28vw, 130px); }
    .bf-banner__timer { margin-top: 12px; }
    .bf-banner__cta { margin-top: 18px; min-width: 0; width: 100%; max-width: 320px; height: 50px; }
    .bf-banner__photo { order: 3; max-width: none; height: 380px; margin-top: 10px; }
}

/* ---------- Цены на карточках и странице тура ---------- */
html.bf-on .tc2-discount-badge {
    background: var(--bf-bg);
    color: #3fe0b0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
html.bf-on .tc2-discount-badge::before { content: "Чёрная пятница "; color: #fff; font-weight: 700; }
html.bf-on .price-card__badge { background: var(--bf-bg) !important; color: #3fe0b0 !important; }

.bf-note { display: none; }
.price-card.has-discount .bf-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bf-bg);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}
.bf-note__tag {
    flex: none;
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
    background: var(--bf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Первый экран главной (chunks/blocks/slider.tpl) ---------- */
.slider-section:has(.bf-cover) { background: var(--bf-bg); }
.slider-section:has(.bf-cover) .slider-preload { display: none; }
#tour-carousel .f-carousel__slide.bf-cover {
    background: var(--bf-bg);
    align-items: stretch;
    overflow: hidden;
}
#tour-carousel .f-carousel__slide.bf-cover::before { display: none; }
.bf-cover__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    height: 100%;
    padding-top: 110px;
    color: #fff;
}
.bf-cover__text { position: relative; z-index: 3; max-width: 600px; }
.bf-cover__pre { font-family: var(--bf-mono); font-size: 20px; letter-spacing: .08em; }
.bf-cover__title {
    margin: 12px 0 0;
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: clamp(44px, 5.4vw, 92px);
    line-height: .9;
    text-transform: uppercase;
    color: #fff;
}
.bf-cover__lead {
    margin: 26px 0 0;
    font-family: var(--bf-mono);
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: .02em;
    color: var(--bf-mint);
}
.bf-cover__lead b { color: #fff; }
.bf-cover__sub {
    margin: 12px 0 0;
    font-family: var(--bf-mono);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .72);
}
.bf-cover__search {
    margin-top: 28px;
    max-width: 520px;
    font-size: 17px;
    border: 0;
    box-shadow: 0 0 0 3px rgba(47, 211, 160, .0);
    transition: box-shadow .2s;
}
.bf-cover__search:focus { box-shadow: 0 0 0 3px rgba(47, 211, 160, .55); }
.bf-cover__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    margin-top: 18px;
    font-family: var(--bf-mono);
    font-size: 14px;
    letter-spacing: .04em;
}
.bf-cover__timer { color: rgba(255, 255, 255, .7); }
.bf-cover__timer b { color: #fff; font-size: 18px; margin-left: 4px; }
.bf-cover__all { color: #2fd3a0; text-decoration: none; }
.bf-cover__all:hover { color: #45e2b2; text-decoration: underline; }

.bf-cover__visual {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6vh;
}
.bf-cover__upto { position: relative; z-index: 1; font-family: var(--bf-mono); font-size: 24px; letter-spacing: .1em; }
.bf-cover__pct {
    position: relative;
    z-index: 1;
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: clamp(90px, 10.5vw, 210px);
    white-space: nowrap;
    line-height: .9;
    background: var(--bf-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bf-cover__photo {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 72%;
    width: auto;
    max-width: none;
    -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
}

@media (max-width: 991.98px) {
    .bf-cover__inner {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 0;
        padding-top: 120px;
        text-align: center;
    }
    .bf-cover__text { max-width: none; margin: 0 auto; }
    .bf-cover__pre { font-size: 16px; }
    .bf-cover__title { font-size: clamp(40px, 11vw, 64px); }
    .bf-cover__lead { font-size: 15px; margin-top: 16px; }
    .bf-cover__sub { font-size: 13px; }
    .bf-cover__search { margin: 18px auto 0; text-align: center; }
    .bf-cover__meta { justify-content: center; font-size: 12px; margin-top: 12px; }
    .bf-cover__timer b { font-size: 15px; }
    .bf-cover__visual { padding-top: 14px; min-height: 260px; }
    .bf-cover__upto { font-size: 16px; }
    .bf-cover__pct { font-size: clamp(90px, 30vw, 150px); }
    .bf-cover__photo { height: 100%; max-height: 330px; }
}
/* на мобильном старый сдвиг первого экрана вверх не нужен */
@media (max-width: 768px) {
    #tour-carousel .f-carousel__cover.bf-cover .f-carousel__slide-content,
    #tour-carousel .bf-cover .bf-cover__inner { transform: none; }
}
/* экран акции виден сразу, не дожидаясь инициализации карусели (она стартует после всех defer-скриптов) */
#tour-carousel:has(.bf-cover) { opacity: 1; }
@media (min-width: 992px) {
    #tour-carousel .bf-cover__inner { padding-left: 84px; padding-right: 84px; max-width: 1440px; }
}
@media (max-width: 991.98px) {
    .bf-cover__visual { min-height: 0; }
    .bf-cover__photo { position: relative; left: auto; transform: none; height: 300px; max-height: none; margin-top: -24px; }
}

/* ---------- Цена в шапке тура: плашка «Чёрная пятница» (hero.tpl, класс hero-price--bf) ---------- */
.hero-price__label { display: none; }
.hero-price--bf.has-discount .hero-price__label {
    display: block;
    font-family: CoFo, sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: -2px;
}
.hero-price--bf.has-discount .hero-price__box {
    background: var(--bf-bg);
    padding: 8px 20px 8px 16px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hero-price--bf.has-discount .hero-price__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.hero-price--bf.has-discount .hero-price__was {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    line-height: 1.1;
}
.hero-price--bf.has-discount .hero-price__badge {
    background: none;
    padding: 0;
    color: #2fd3a0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}
.hero-price--bf.has-discount .hero-price__now {
    background: none !important;
    -webkit-text-fill-color: #fff;
    color: #fff;
    font-size: 46px;
    line-height: 1;
}
@media (max-width: 575.98px) {
    .hero-price--bf.has-discount .hero-price__box { padding: 7px 14px 7px 12px; gap: 12px; }
    .hero-price--bf.has-discount .hero-price__now { font-size: 38px; }
    .hero-price--bf.has-discount .hero-price__was { font-size: 14px; }
    .hero-price--bf.has-discount .hero-price__badge { font-size: 15px; }
}

/* ---------- Таймер в полосе ---------- */
.bf-strip__timer {
    font-family: var(--bf-mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .75);
}
.bf-strip__timer b {
    color: #2fd3a0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .bf-strip__pre { display: none; }
}
@media (max-width: 991.98px) {
    .bf-strip__timer { font-size: 12px; }
    .bf-strip__timer b { margin-left: 0; }
}
@media (max-width: 420px) {
    .bf-strip { gap: 8px; padding: 0 12px; }
    .bf-strip__title { font-size: 14px; }
    .bf-strip__pct { font-size: 14px; }
    .bf-strip__timer { font-size: 11px; }
}
@media (max-width: 991.98px) {
    .bf-strip .bf-hide-sm { display: none; }
}
@media (max-width: 420px) {
    .bf-strip { gap: 7px; padding: 0 10px; justify-content: center; }
    .bf-strip__title { font-size: 12px; }
    .bf-strip__pct { font-size: 13px; }
}
