/* ЧП‑2026 «Больше впечатлений в подарок» — статическая версия посадочной.
   Цвета — токены @ytme/uikit; точки перестройки — как в public-frontend:
   ≤1023 планшет, ≤767 телефон, ≤1255 узкий десктоп. */

@font-face { font-family: 'SF Pro Text'; src: url('./assets/fonts/sf-pro-text-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SF Pro Text'; src: url('./assets/fonts/sf-pro-text-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'SF Pro Display'; src: url('./assets/fonts/sf-pro-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: 36, 42, 55;
  --white: 255, 255, 255;
  --black: 0, 0, 0;
  --green: 171, 194, 50;
  --green-hover: 154, 174, 45;
  --green-click: 127, 164, 12;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 16px;
  /* Отступы между блоками плавно растут от 360 до 1440 px (80 → 160 px), без скачков на брейкпоинтах — как в боевой версии */
  --gap: clamp(80px, calc(53.33px + 7.41vw), 160px);
  --head-gap: clamp(24px, calc(16px + 2.22vw), 48px);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --pad: 32px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Атрибут hidden всегда скрывает элемент. Без !important его перебивали правила с display
   (например, сетка каталога: .bf-catalog__grid > .bf-gift { display: grid }) — фильтры и «Показать ещё»
   меняли счётчик, но скрытые карточки оставались на экране. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: rgb(var(--night));
  color: rgb(var(--white));
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgb(var(--white)); outline-offset: 2px; }

.bf-wrap { width: 100%; max-width: 1256px; margin: 0 auto; padding: 0 var(--pad); }

/* overflow-x: clip — как .page-bf в боевой: фоновые плюсы выходят за край экрана и не должны давать горизонтальную прокрутку.
   На body это свойство передаётся окну браузера и работает как hidden: страницу всё равно можно было сдвинуть вбок. */
main { display: flex; flex-direction: column; gap: var(--gap); padding-bottom: calc(var(--gap) * .6); overflow-x: clip; }
/* Ровные переносы на любой ширине (как в боевой): заголовки, подзаголовки и описания делятся на строки
   примерно одной длины (balance). Проверено на заголовках подарков: balance оставляет одиночное последнее слово
   в 4 случаях из 18, pretty — в 14, поэтому pretty только для длинных ответов FAQ. Название тура не трогаем. */
main :is(h1, h2, h3, p, b):not(.bf-tour *, .bf-tc *) { text-wrap: balance; }
.bf-faq p { text-wrap: pretty; }

/* ─── Кнопки ─── */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.bf-btn svg { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.bf-btn_s { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.bf-btn_green { background: rgb(var(--green)); color: rgb(var(--white)); }
.bf-btn_green:hover { background: rgb(var(--green-hover)); }
.bf-btn_green:active { background: rgb(var(--green-click)); }
.bf-btn_arrow:hover svg { transform: translateX(4px); }
.bf-btn_glass {
  border: 1px solid rgba(var(--white), .34); background: rgba(var(--white), .18);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(var(--white), .3); color: rgb(var(--white));
}
.bf-btn_glass:hover { background: rgba(var(--white), .3); transform: translateY(-2px); }

.bf-round {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid rgba(var(--white), .26); background: rgba(var(--white), .12);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  cursor: pointer; transition: background-color .3s var(--ease), transform .5s var(--ease);
}
.bf-round:hover { background: rgba(var(--white), .28); }
.bf-round:active { transform: scale(.94); }
.bf-round svg { width: 20px; height: 20px; }

.bf-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 8px;
  border-radius: 6px; background: rgba(var(--night), .38);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 600; line-height: 17px;
}
.bf-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--green)); }
.bf-chip[hidden] { display: none; }
.bf-chip_place { justify-self: start; }

/* ─── Шапка и подвал ─── */
.bf-top { position: absolute; inset: 0 0 auto; z-index: 10; }
.bf-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
/* Белый логотип на прозрачном фоне — без плашки */
.bf-top__logo { display: inline-flex; }
.bf-top__logo img { height: 36px; width: auto; }
.bf-foot { border-top: 1px solid rgba(var(--white), .1); }
.bf-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: rgba(var(--white), .6); }
.bf-foot a { color: rgba(var(--white), .6); }

/* ─── Заголовки секций и стеклянные карточки ─── */
.bf-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: var(--head-gap); }
.bf-head__kicker { font-size: 13px; font-weight: 600; color: rgba(var(--white), .48); }
.bf-head__title { margin: 0; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: 56px; line-height: 1.05; font-weight: 700; }
.bf-head__text { margin: 0; font-size: 18px; line-height: 26px; color: rgba(var(--white), .72); }
@media (max-width: 1023px) {
  .bf-head { gap: 12px; }
  .bf-head__title { font-size: 32px; line-height: 1.08; }
  .bf-head__text { font-size: 15px; line-height: 22px; }
}

.bf-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px;
  border: 1px solid rgba(var(--white), .18); background: rgba(var(--white), .08);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.bf-card h3 { margin: 0; font-size: 18px; line-height: 24px; }
.bf-card p { margin: 0; font-size: 14px; line-height: 20px; color: rgba(var(--white), .72); }
@media (max-width: 1023px) { .bf-card { padding: 20px; } }

/* Появление при прокрутке: прячем только при работающем JS */
.bf-js .bf-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.bf-js .bf-rv.is-in { opacity: 1; transform: none; }

/* ─── Главный экран ─── */
.bf-hero {
  --px: 0; --py: 0;
  position: relative; isolation: isolate; height: max(100svh, 760px); overflow: hidden;
  touch-action: pan-y; /* вертикальная прокрутка — браузеру, горизонтальный свайп — карусели */
  background: rgb(var(--night));
}
.bf-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgb(var(--night)) 0%, rgba(var(--night), .97) 6%, rgba(var(--night), .9) 13%, rgba(var(--night), .76) 21%,
    rgba(var(--night), .56) 30%, rgba(var(--night), .34) 39%, rgba(var(--night), .2) 48%, rgba(var(--night), .45) 100%);
}
/* на 2px короче героя — иначе на экранах с дробным DPR полоска фото просвечивает на стыке */
.bf-hero__scene { position: absolute; inset: 0 0 2px; overflow: hidden; }
.bf-hero__layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s; }
.bf-hero__layer.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }
.bf-hero__layer img {
  position: absolute; inset: -4%; width: 108%; max-width: none; height: 108%; object-fit: cover;
  filter: brightness(.5) saturate(.8);
  translate: calc(var(--px) * -14px) calc(var(--py) * -10px); transition: translate .8s var(--ease);
}
.bf-hero__layer.is-on img { animation: bf-kb 9s ease-out both; }
@keyframes bf-kb { from { transform: scale(1.12); } to { transform: scale(1); } }

.bf-hero__ui {
  position: relative; z-index: 3; height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding-top: clamp(96px, 14vh, 140px); padding-bottom: 32px;
}
@media (max-width: 1023px) { .bf-hero__ui { padding-top: 88px; padding-bottom: 24px; } }
.bf-hero__top { display: grid; gap: 12px; max-width: 860px; }
.bf-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bf-hero__caps {
  display: inline-flex; align-items: center; min-height: 28px; padding: 8px 10px; border-radius: 6px;
  border: 1px solid rgba(var(--white), .4); background: rgba(var(--black), .55);
  font-size: 11px; font-weight: 700; line-height: 12px; letter-spacing: .03em; text-transform: uppercase;
}
.bf-hero__title { margin: 0; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: 42px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.bf-hero__lead { margin: 0; font-size: 18px; line-height: 28px; color: rgba(var(--white), .72); }
/* главная мысль — лаймовым акцентом; на планшете и телефоне подзаголовок укорочен до неё */
.bf-hero__lead-accent { font-weight: 700; color: rgb(var(--green)); }
@media (max-width: 1023px) {
  .bf-hero__title { font-size: 26px; line-height: 1.08; }
  .bf-hero__lead { font-size: 16px; line-height: 24px; }
  .bf-hero__lead-rest { display: none; }
}

.bf-hero__stage { position: relative; min-height: 96px; }
.bf-hero__gift {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center;
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s 1.2s;
}
/* Две строки, пока помещается: ширина от длины названия (символ ≈ 0.54em, берём 0.44em),
   на узких экранах срабатывает 100% и появляется третья строка */
.bf-hero__gift span {
  display: block; max-width: min(100%, calc(var(--len, 24) * .44em));
  font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: clamp(36px, 4.6vw + 20px, 76px);
  line-height: .92; font-weight: 700; letter-spacing: -.04em; text-wrap: balance;
  text-shadow: 0 2px 40px rgba(var(--night), .35); transform: translateY(32px); transition: transform 1.2s var(--ease);
}
@media (max-width: 1023px) { .bf-hero__gift span { line-height: .95; } }
.bf-hero__gift.is-on { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; }
.bf-hero__gift.is-on span { transform: none; }

.bf-hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 1023px) { .bf-hero__bottom { grid-template-columns: 1fr; } }
.bf-hero__info { display: grid; gap: 12px; max-width: 520px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.bf-hero__info.is-swap { opacity: 0; transform: translateY(16px); }
.bf-hero__unique { margin: 0; font-size: 16px; line-height: 24px; color: rgba(var(--white), .82); }
.bf-hero__when { margin: 0; font-size: 14px; line-height: 20px; color: rgba(var(--white), .6); }
.bf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 1023px) {
  .bf-hero__unique { display: none; }
  .bf-hero__actions > * { flex: 1 1 auto; }
}

.bf-hero__stack { display: flex; gap: 12px; align-items: end; }
@media (max-width: 1023px) { .bf-hero__stack { display: none; } }
.bf-mini {
  position: relative; isolation: isolate; width: 180px; height: 248px; padding: 12px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  border: 1px solid rgba(var(--white), .3); border-radius: 16px; overflow: hidden; text-align: left;
  background: rgb(var(--night)); cursor: pointer; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.bf-mini:nth-child(2) { height: 216px; opacity: .85; }
.bf-mini:nth-child(3) { height: 184px; opacity: .7; }
.bf-mini:hover, .bf-mini:focus-visible { transform: translateY(-8px); opacity: 1; }
.bf-mini img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bf-mini:hover img { transform: scale(1.08); }
.bf-mini::after { content: ''; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(to top, rgba(var(--night), .9), transparent); }
.bf-mini small { font-size: 12px; color: rgba(var(--white), .72); }
.bf-mini b { font-size: 14px; line-height: 20px; }

.bf-hero__ctrl { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
@media (max-width: 1023px) { .bf-hero__ctrl { gap: 12px; margin-top: 16px; } }
.bf-hero__segs { flex: 1; min-width: 0; display: flex; gap: 4px; }
.bf-hero__segs button { position: relative; flex: 1; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 1023px) { .bf-hero__segs button { height: 32px; } }
.bf-hero__segs button::before, .bf-hero__segs i { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; border-radius: 2px; }
.bf-hero__segs button::before { background: rgba(var(--white), .22); }
.bf-hero__segs i { background: rgb(var(--white)); transform-origin: left; transform: scaleX(0); }
.bf-hero__segs .is-done i { transform: scaleX(1); }
.bf-hero__segs .is-on i { animation: bf-fill var(--dur, 7s) linear forwards; }
.bf-hero.is-paused .bf-hero__segs .is-on i { animation-play-state: paused; }
@keyframes bf-fill { to { transform: scaleX(1); } }
.bf-hero__count { flex: none; min-width: 64px; text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── Типы подарков ─── */
.bf-kinds__list { display: flex; gap: 12px; height: clamp(420px, 62vh, 620px); }
@media (max-width: 1023px) { .bf-kinds__list { flex-direction: column; height: auto; } }
.bf-kinds__item {
  position: relative; isolation: isolate; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; border: 0; border-radius: 16px; overflow: hidden; text-align: left; cursor: pointer;
  background: rgb(var(--night)); transition: flex-grow .8s var(--ease);
}
@media (max-width: 1023px) { .bf-kinds__item { min-height: 280px; padding: 20px; } }
.bf-kinds__item:hover, .bf-kinds__item:focus-visible { flex-grow: 2.4; }
.bf-kinds__item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: transform 1.4s var(--ease); }
.bf-kinds__item:hover img { transform: scale(1.06); }
.bf-kinds__item::after { content: ''; position: absolute; inset: 30% 0 0; z-index: -1; background: linear-gradient(to top, rgba(var(--night), .92), transparent); }
.bf-kinds__item small { font-size: 14px; color: rgba(var(--white), .72); }
.bf-kinds__item h3 { margin: 8px 0; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: 32px; line-height: 1.08; font-weight: 700; }
.bf-kinds__item p { margin: 0; max-width: 360px; font-size: 15px; line-height: 22px; color: rgba(var(--white), .8); }
@media (max-width: 1023px) { .bf-kinds__item h3 { font-size: 24px; } }
/* Десктоп: в покое подпись и заголовок у всех карточек на одном уровне.
   Заголовок всегда в одну строку (без переноса — и текст не прыгает, пока карточка расширяется),
   а скрытое описание не занимает места — раскрывается по наведению и мягко поднимает заголовок. */
@media (min-width: 1024px) {
  .bf-kinds__item h3 { white-space: nowrap; }
  .bf-kinds__item p {
    max-height: 0; overflow: hidden; opacity: 0; transform: translateY(12px);
    transition: max-height .6s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
  }
  .bf-kinds__item:hover p, .bf-kinds__item:focus-visible p { max-height: 7em; opacity: 1; transform: none; }
}

/* ─── Карточка подарка: шапка + тур на одной стеклянной плашке ─── */
.bf-gift {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border-radius: 20px;
  border: 1px solid rgba(var(--white), .18); background: rgba(var(--white), .08);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(var(--white), .16);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .5s var(--ease);
}
.bf-gift:hover {
  border-color: rgba(var(--white), .28); background: rgba(var(--white), .1);
  box-shadow: inset 0 1px 0 rgba(var(--white), .16), 0 32px 64px -24px rgba(var(--black), .6);
}
.bf-gift[hidden] { display: none; }
/* Плашка «+ Впечатление в подарок» — всегда в одну строку и по ширине содержимого;
   тип подарка прижат вправо и не рвётся по буквам: если не помещается — целиком уходит на строку ниже.
   Название и даты всегда на всю ширину. */
.bf-gift__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 12px; }
.bf-gift__badge {
  display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 6px 6px 7px; border-radius: 6px;
  background: rgb(var(--white)); color: rgb(18, 18, 18); font-size: 13px; font-weight: 600; line-height: 17px; white-space: nowrap;
}
.bf-gift__badge { flex: none; }
.bf-gift__badge svg { flex: none; width: 16px; height: 16px; }
.bf-gift__type { margin-left: auto; white-space: nowrap; font-size: 13px; line-height: 17px; color: rgba(var(--white), .6); }
.bf-gift__title { flex: 1 0 100%; margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; }
.bf-gift__when { flex: 1 0 100%; margin: 0; font-size: 13px; line-height: 17px; color: rgba(var(--white), .6); }

.bf-tour { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: rgb(var(--white)); color: rgb(18, 18, 18); text-decoration: none; }
.bf-tour__img { position: relative; display: block; aspect-ratio: 760 / 520; background: rgba(var(--night), .12); overflow: hidden; }
.bf-tour__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bf-tour:hover .bf-tour__img img { transform: scale(1.05); }
.bf-tour__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.bf-tour__body small { font-size: 13px; line-height: 17px; color: rgba(18, 18, 18, .56); }
.bf-tour__body b { font-size: 16px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bf-tour__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgb(var(--green-click)); }
.bf-tour__more svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.bf-tour:hover .bf-tour__more svg { transform: translateX(4px); }

/* ─── Карточка тура как на сайте (TourCard DS 3.0 = SERP Item/Vertical.vue), разметка — static/tour-card.js ───
   Размеры, шрифты и цвета сняты с карточки сайта: фото 276:258 (телефон 343:290), белая часть 12/16/16,
   рейтинг 13/20, название 15/24 в две строки, описание 13/20 в две строки, цена 18/22, даты — плашки 12/18. */
.bf-tc {
  --tc-night: 36, 42, 55; --tc-grey: 153, 153, 169; --tc-grey2: 130, 130, 150; --tc-line: 219, 223, 233;
  --tc-green: 154, 174, 45; --tc-red: 248, 69, 101;
  flex: 1; display: flex; flex-direction: column; min-width: 0; border-radius: 12px;
  color: rgb(var(--tc-night)); text-decoration: none; letter-spacing: -.02em;
}
.bf-tc__visual {
  position: relative; display: flex; flex-direction: column; flex: none; padding: 12px;
  aspect-ratio: 276 / 258; border-radius: 12px 12px 0 0; overflow: hidden; background: rgba(var(--white), .08);
}
@media (max-width: 767px) { .bf-tc__visual { aspect-ratio: 343 / 290; } }
.bf-tc__visual::before, .bf-tc__visual::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; pointer-events: none; }
.bf-tc__visual::before {
  top: 0; height: 62.76%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 25.68%, rgba(0, 0, 0, .45) 38.74%, rgba(0, 0, 0, .3) 49.21%, rgba(0, 0, 0, .1546) 56.82%, rgba(0, 0, 0, 0) 66.22%);
}
.bf-tc__visual::after {
  bottom: 0; height: 37.24%;
  background: linear-gradient(178.61deg, rgba(0, 0, 0, 0) 1.18%, rgba(0, 0, 0, .45) 35.08%, rgba(0, 0, 0, .8) 57.66%, rgba(0, 0, 0, .8) 98.14%);
}
.bf-tc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bf-tc__tags { position: relative; z-index: 2; flex: 1; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; }
.bf-tc__tag {
  margin: 0 4px 4px 0; padding: 2px 6px; border-radius: 6px; background: rgb(var(--white)); color: rgb(18, 18, 18);
  font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: -.26px;
}
.bf-tc__tag_new { background: rgb(var(--tc-green)); color: rgb(var(--white)); }
.bf-tc__expert { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; }
.bf-tc__expert img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.bf-tc__expert span {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: rgb(var(--white)); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: -.26px;
}
.bf-tc__content {
  position: relative; flex: 1; display: flex; flex-direction: column; padding: 12px 16px 16px;
  border-radius: 0 0 12px 12px; background: rgb(var(--white));
}
.bf-tc__discount {
  position: absolute; z-index: 3; top: -32px; right: 16px; width: 48px; height: 32px; padding: 10px 6px;
  border-radius: 6px 6px 0 0; background: rgb(var(--tc-red)); color: rgb(var(--white));
  font-size: 11px; line-height: 12px; font-weight: 700; letter-spacing: .22px; text-align: center; text-transform: uppercase;
}
.bf-tc__rating { display: flex; align-items: flex-start; gap: 0; min-width: 0; margin-bottom: 6px; font-size: 13px; line-height: 20px; letter-spacing: -.26px; }
.bf-tc__rating svg { flex: none; width: 16px; height: 16px; margin: 2px 4px 0 0; color: rgb(var(--tc-green)); }
.bf-tc__rating-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bf-tc__score { margin-right: 2px; }
.bf-tc__muted { color: rgb(var(--tc-grey)); }
.bf-tc__new { color: rgb(var(--tc-green)); }
.bf-tc__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;
  font-size: 15px; line-height: 24px; font-weight: 600; letter-spacing: -.3px;
}
.bf-tc__desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: rgb(var(--tc-grey2)); font-size: 13px; line-height: 20px; letter-spacing: -.26px;
}
.bf-tc__bottom { display: grid; gap: 6px; margin-top: auto; padding-top: 16px; }
.bf-tc__price { display: flex; align-items: flex-end; flex-wrap: wrap; white-space: nowrap; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: -.26px; color: rgb(var(--tc-grey)); }
.bf-tc__price b { color: rgb(var(--tc-night)); font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -.36px; }
.bf-tc__price s { margin-left: 8px; }
.bf-tc__price i { margin: 0 4px; font-style: normal; color: rgb(var(--tc-line)); }
.bf-tc__dates { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-tc__date {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0 6px; border-radius: 5px;
  border: 1px solid rgb(var(--tc-line)); background: rgb(var(--white)); color: rgb(var(--tc-grey2));
  font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: -.24px; white-space: nowrap;
}
.bf-tc__date > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bf-tc__date_more { border-color: rgb(238, 238, 242); background: rgb(238, 238, 242); }
.bf-tc__spaces { display: inline-flex; align-items: center; gap: 2px; color: rgb(var(--tc-red)); }
.bf-tc__spaces svg { width: 12px; height: 12px; }
.bf-tc:focus-visible { outline: 2px solid rgb(var(--green)); outline-offset: 4px; }

/* ─── Подборка: горизонтальная лента ─── */
.bf-selection__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  /* лента с горизонтальной прокруткой обрезает и по вертикали: запас сверху/снизу под подъём и тень карточки
     при наведении, отрицательные поля возвращают блок на прежнее место */
  /* тень при наведении (0 32px 64px -24px) уходит на 72px вниз — снизу запас 88px */
  padding: 24px max(var(--pad), calc((100vw - 1256px) / 2 + var(--pad))) 88px;
  margin: -24px 0 -80px;
}
.bf-selection__track::-webkit-scrollbar { display: none; }
.bf-selection__card { flex: none; width: min(380px, 82vw); scroll-snap-align: start; }
/* Карточки подборки одной высоты: «тур» и «подпись подарка» — общие строки сетки (subgrid), как в каталоге.
   Без этого двухстрочное название подарка отнимало высоту у карточки тура над ним. */
@supports (grid-template-rows: subgrid) {
  .bf-selection__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(380px, 82vw); grid-template-rows: 1fr auto; column-gap: 16px; row-gap: 0; justify-content: start; }
  .bf-selection__track > .bf-gift { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 4px; }
}

/* Закреплённая лента (десктоп): секция выше экрана на длину ленты, внутри — sticky‑кадр 100vh;
   при прокрутке лента едет влево, карточки слегка поворачиваются. Включает script.js,
   только если лента помещается по высоте экрана. */
.bf-selection { position: relative; }
.bf-selection.is-pinned .bf-selection__frame {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.bf-selection.is-pinned .bf-selection__track {
  width: max-content; overflow: visible; scroll-snap-type: none; padding-top: 24px; padding-bottom: 48px; margin: 0; will-change: transform;
  transform-origin: 0 0;
}
.bf-selection.is-pinned .bf-selection__card { transition: none; will-change: transform; }

/* Лёгкий 3D‑наклон карточки за курсором (только мышь) */
.bf-gift.is-tilt { transition: transform .5s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .5s var(--ease); }

/* ─── Как это работает ─── */
.bf-steps__tagline {
  margin: 0 0 var(--gap); max-width: 980px; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif;
  font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; text-wrap: balance;
}
.bf-js .bf-steps__tagline span { opacity: .22; transition: opacity .6s var(--ease), color .6s var(--ease); }
.bf-steps__tagline span.is-lit { opacity: 1; }
.bf-steps__tagline span.is-accent.is-lit, html:not(.bf-js) .bf-steps__tagline span.is-accent { color: rgb(var(--green)); }
.bf-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* цифра и текст в одну строку: цифра слева на высоту заголовка с описанием — карточка компактнее */
.bf-steps__list .bf-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 24px; row-gap: 8px; }
@media (max-width: 1023px) { .bf-steps__list { grid-template-columns: 1fr; } .bf-steps__list .bf-card { column-gap: 16px; } }
.bf-steps__num { grid-row: span 2; min-width: .62em; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: 80px; line-height: .8; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(var(--white), .35); }
@media (max-width: 1023px) { .bf-steps__num { font-size: 56px; } }
.bf-steps__why { margin-top: var(--gap); }
.bf-steps__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1255px) { .bf-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bf-steps__grid { grid-template-columns: 1fr; } }
/* акцент: заголовки первой и третьей карточки — лаймовым, как акцентные слова слогана выше */
.bf-steps__grid > .bf-card:nth-child(1) h3, .bf-steps__grid > .bf-card:nth-child(3) h3 { color: rgb(var(--green)); }

/* ─── Каталог ─── */
.bf-catalog { scroll-margin-top: 24px; }
.bf-catalog__filters { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 32px; }

/* ─── Компактная панель фильтров ───
   Ряды фильтров стоят на месте. Когда они ушли вверх, а карточки каталога ещё на экране, сверху выезжает
   стеклянная полоса в одну строку: «Подарок: …» и «Направление: …» (класс is-visible из script.js).
   Варианты — выпадающий список под кнопкой; на телефоне — шторка снизу с затемнением.
   Стекло — на ::before: backdrop-filter у самой панели сделал бы её точкой отсчёта для fixed‑шторки. */
.bf-cbar {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding: 12px 0;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.bf-cbar.is-visible { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.bf-cbar::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  border-bottom: 1px solid rgba(var(--white), .12); background: rgba(var(--night), .78);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.bf-cbar__in { display: flex; gap: 8px; }
.bf-cbar__item { position: relative; min-width: 0; }
.bf-cbar__btn {
  display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 0 10px 0 16px;
  border-radius: 10px; border: 1px solid rgba(var(--white), .2); background: rgba(var(--white), .08);
  color: rgb(var(--white)); font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bf-cbar__btn:hover { background: rgba(var(--white), .16); }
.bf-cbar__btn:focus-visible { outline: 2px solid rgb(var(--green)); outline-offset: 2px; }
.bf-cbar__k { flex: none; color: rgba(var(--white), .6); font-weight: 400; }
/* на телефоне — короткие названия («Куда:»), чтобы в кнопке помещалось выбранное значение */
.bf-cbar__ks { display: none; }
@media (max-width: 767px) { .bf-cbar__kl { display: none; } .bf-cbar__ks { display: inline; } }
.bf-cbar__v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bf-cbar__chev { flex: none; width: 18px; height: 18px; transition: transform .3s var(--ease); }
.bf-cbar__btn[aria-expanded='true'] .bf-cbar__chev { transform: rotate(180deg); }
/* выбран не «Все» — кнопка белая, как активный фильтр в рядах */
.bf-cbar__btn.is-active { background: rgb(var(--white)); border-color: rgb(var(--white)); color: rgb(18, 18, 18); }
.bf-cbar__btn.is-active .bf-cbar__k { color: rgba(18, 18, 18, .56); }

.bf-cbar__menu {
  position: absolute; z-index: 2; top: calc(100% + 8px); left: 0; min-width: 240px; max-height: min(60vh, 420px);
  overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 14px;
  border: 1px solid rgba(var(--white), .16); background: rgba(var(--night), .94);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 48px -16px rgba(var(--black), .6);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.bf-cbar__menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.bf-cbar__head { display: none; }
.bf-cbar__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: none; color: rgb(var(--white)); font: inherit; font-size: 15px; line-height: 20px;
  text-align: left; white-space: nowrap; cursor: pointer;
}
.bf-cbar__opt:hover, .bf-cbar__opt:focus-visible { background: rgba(var(--white), .08); outline: none; }
.bf-cbar__opt svg { flex: none; width: 18px; height: 18px; color: rgb(var(--green)); opacity: 0; }
.bf-cbar__opt[aria-checked='true'] { font-weight: 600; }
.bf-cbar__opt[aria-checked='true'] svg { opacity: 1; }
.bf-cbar__backdrop { display: none; }

/* Телефон: обе кнопки делят строку поровну, варианты — шторка снизу с крупными пунктами */
@media (max-width: 767px) {
  .bf-cbar__item { flex: 1 1 0; }
  .bf-cbar__btn { width: 100%; padding: 0 8px 0 12px; }
  .bf-cbar__btn .bf-cbar__v { flex: 1; }
  .bf-cbar__menu {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; min-width: 0; max-height: 75vh;
    padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; border-bottom: 0;
    opacity: 1; transform: translateY(100%);
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .bf-cbar__menu.is-open { transform: none; transition: transform .35s var(--ease); }
  .bf-cbar__head { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; background: inherit; }
  .bf-cbar__head b { font-size: 18px; line-height: 24px; font-weight: 700; }
  .bf-cbar__close {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(var(--white), .2);
    background: rgba(var(--white), .08); color: rgb(var(--white)); cursor: pointer;
  }
  .bf-cbar__close svg { width: 18px; height: 18px; }
  .bf-cbar__opt { min-height: 48px; font-size: 16px; }
  .bf-cbar__backdrop {
    display: block; position: fixed; z-index: 39; inset: 0; background: rgba(var(--black), .5);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .bf-cbar__backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-cbar, .bf-cbar__menu, .bf-cbar__backdrop, .bf-cbar__chev { transition: none !important; }
}
/* nowrap обязателен: колонка с wrap растягивается по ширине ленты кнопок и раздувает страницу на телефоне */
@media (max-width: 1023px) { .bf-catalog__filters { flex-direction: column; flex-wrap: nowrap; } }
.bf-catalog__group { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1023px) {
  .bf-catalog__group { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
  .bf-catalog__group::-webkit-scrollbar { display: none; }
  .bf-catalog__group > * { flex: none; }
}
.bf-fbtn {
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(var(--white), .2);
  background: rgba(var(--white), .08); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.bf-fbtn { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s ease; }
.bf-fbtn:hover { background: rgba(var(--white), .16); }
.bf-fbtn:active { transform: scale(.97); }

/* Каталог: новые карточки выплывают снизу, оставшиеся плавно переезжают на новые места (FLIP в script.js) */
.bf-gift.is-enter { opacity: 0; transform: translateY(16px); }
.bf-gift.is-entering { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bf-gift.is-moving { transition: transform .5s var(--ease); }
.bf-fbtn[aria-pressed='true'] { background: rgb(var(--white)); border-color: rgb(var(--white)); color: rgb(18, 18, 18); }
.bf-catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
@media (max-width: 1023px) { .bf-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .bf-catalog__grid { grid-template-columns: 1fr; } }
/* Карточки туров одной высоты во всём каталоге (как в боевой): «тур» и «подпись подарка» — общие строки сетки.
   Строки чередуются «тур / подпись»; строки туров — 1fr, при авто-высоте сетки все равны самой высокой карточке,
   и двухстрочное название подарка больше не отнимает высоту у тура над ним. */
@supports (grid-template-rows: subgrid) {
  .bf-catalog__grid { grid-auto-rows: 1fr auto; }
  .bf-catalog__grid > .bf-gift { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 4px; }
}
.bf-catalog__more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.bf-catalog__more[hidden], .bf-catalog__more [hidden] { display: none; }
@media (max-width: 1023px) { .bf-catalog__more { margin-top: 32px; } .bf-catalog__more .bf-btn { width: 100%; } }
.bf-catalog__count { margin: 0; font-size: 14px; line-height: 20px; color: rgba(var(--white), .6); }
.bf-catalog__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 48px 0; color: rgba(var(--white), .72); }
.bf-catalog__empty[hidden] { display: none; }
.bf-catalog__empty p { margin: 0; }

/* ─── Условия и FAQ ─── */
.bf-terms { scroll-margin-top: 24px; }
.bf-terms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .bf-terms__grid { grid-template-columns: 1fr; } }
.bf-terms__item { flex-direction: row; gap: 16px; }
.bf-terms__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bf-terms__item h3 { font-size: 16px; line-height: 24px; }
.bf-terms__icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid rgba(var(--white), .14); background: rgba(var(--white), .1);
}
.bf-terms__icon svg { width: 24px; height: 24px; }
/* FAQ по центру страницы: подпись, заголовок и список */
.bf-terms__faq-head { margin-top: var(--gap); margin-inline: auto; align-items: center; text-align: center; }

.bf-faq { display: grid; gap: 8px; max-width: 880px; margin-inline: auto; }
.bf-faq__item {
  border-radius: 12px; border: 1px solid rgba(var(--white), .1); background: rgba(var(--white), .06);
  transition: background-color .3s var(--ease);
}
.bf-faq__item:hover { background: rgba(var(--white), .08); }
.bf-faq__item[open] { background: rgba(var(--white), .1); }
.bf-faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px;
  list-style: none; cursor: pointer; border-radius: 12px; font-size: 18px; line-height: 26px; font-weight: 600;
}
.bf-faq__item summary::-webkit-details-marker { display: none; }
.bf-faq__item summary i {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; background: rgba(var(--white), .1);
  transition: transform .5s var(--ease);
}
.bf-faq__item summary i::before, .bf-faq__item summary i::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%);
}
.bf-faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.bf-faq__item[open] summary i { transform: rotate(45deg); }
.bf-faq__item p { margin: 0; padding: 0 24px 24px; max-width: 680px; font-size: 16px; line-height: 24px; color: rgba(var(--white), .72); }
@media (max-width: 1023px) { .bf-faq__item summary { padding: 16px 20px; font-size: 16px; line-height: 22px; } .bf-faq__item p { padding: 0 20px 20px; } }

/* ─── Финальный призыв ─── */
.bf-final__box {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 16px; min-height: 520px; padding: 48px; border-radius: 24px; overflow: hidden;
}
@media (max-width: 1023px) { .bf-final__box { min-height: 460px; padding: 24px; border-radius: 16px; } }
/* фото выше рамки на 20% — запас под параллакс при прокрутке */
.bf-final__box img {
  position: absolute; inset: -10% 0 auto; z-index: -2; width: 100%; max-width: none; height: 120%; object-fit: cover;
  filter: brightness(.55) saturate(.9); will-change: transform;
}
.bf-final__box::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--night), .85) 0%, rgba(var(--night), .5) 50%, rgba(var(--night), .1) 85%);
}
@media (max-width: 1023px) {
  .bf-final__box::after { background: linear-gradient(to top, rgba(var(--night), .92) 0%, rgba(var(--night), .4) 60%, rgba(var(--night), .1) 100%); }
}
.bf-final__box h2 { margin: 0; max-width: 760px; font-family: 'SF Pro Display', 'SF Pro Text', sans-serif; font-size: 64px; line-height: 1.02; font-weight: 700; }
.bf-final__box p { margin: 0; max-width: 560px; font-size: 18px; line-height: 28px; color: rgba(var(--white), .82); }
@media (max-width: 1023px) { .bf-final__box h2 { font-size: 32px; } .bf-final__box p { font-size: 15px; line-height: 22px; } }

/* ─── Фирменный знак «плюс» (как в боевой версии: PlusMark.vue + useBFPlusParallax) ─── */
.bf-plus { display: block; }

/* В плашке «+ Впечатление в подарок» — сплошной зелёный плюс */
.bf-gift__badge .bf-gift__plus { width: 14px; height: 14px; margin-right: 2px; color: rgb(var(--green)); }

/* Фоновый ритм: крупные контурные плюсы за секциями, сдвигаются и поворачиваются при прокрутке (script.js) */
.bf-plus-host { position: relative; isolation: isolate; }
.bf-plus-host > :not(.bf-plus-bg) { position: relative; z-index: 1; }
.bf-plus-bg { position: absolute; z-index: 0; pointer-events: none; color: rgb(var(--white)); opacity: .08; will-change: transform; }

.bf-kinds__plus { width: min(520px, 44vw); right: -8%; top: 40px; }
.bf-steps__plus-t { width: min(440px, 38vw); right: 4%; top: 0; }
/* размер — как у плюса в блоке условий акции (зеркально, у правого края) */
.bf-steps__plus-d { width: min(600px, 50vw); right: -14%; bottom: -120px; }
.bf-terms__plus { width: min(600px, 50vw); left: -14%; top: 10%; }
@media (max-width: 1023px) {
  .bf-kinds__plus, .bf-steps__plus-d { display: none; }
  .bf-steps__plus-t { width: 60vw; right: -20%; }
  .bf-terms__plus { width: 80vw; left: -40%; }
}

/* Плюс в конце слогана: контурный серый → сплошной зелёный с поворотом, когда загораются акцентные слова */
.bf-steps__plus {
  display: inline-block; width: .78em; height: .78em; margin-left: .08em; vertical-align: -.12em;
  color: rgba(var(--white), .22); transition: color .6s var(--ease), transform .8s var(--ease);
}
.bf-steps__plus path { fill: none; stroke: currentColor; }
.bf-steps__plus.is-on, html:not(.bf-js) .bf-steps__plus { color: rgb(var(--green)); transform: rotate(90deg); }
.bf-steps__plus.is-on path, html:not(.bf-js) .bf-steps__plus path { fill: currentColor; stroke: none; }

/* ─── Подарки от партнёров (как PartnerGifts.vue) ─── */
.bf-partners { scroll-margin-top: 80px; }
/* Десктоп (от 1200px) — четыре компактные карточки в одну строку, уже — по две, телефон — по одной
   (ниже 1200px в четыре колонки карточки слишком узкие: подарок Trippy занимает пять строк).
   Видно только логотип и подарок; категория, описание, промокод и ссылка — в раскрывающемся блоке по стрелке.
   align-items: start — раскрытая карточка растёт одна, соседние не растягиваются. */
.bf-partners__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 16px; }
@media (max-width: 1199px) { .bf-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bf-partners__grid { grid-template-columns: minmax(0, 1fr); } }
.bf-partners__grid > .bf-partners__card { min-width: 0; gap: 12px; padding: 20px; }
.bf-partners__card > * { min-width: 0; }
.bf-partners__logo { height: 48px; display: flex; align-items: center; }
.bf-partners__logo img { display: block; width: auto; max-width: 100%; max-height: 48px; object-fit: contain; object-position: left center; }
.bf-partners__gift {
  display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; border-radius: 12px;
  background: rgba(var(--green), .14); border: 1px solid rgba(var(--green), .35);
}
.bf-partners__gift b { font-size: 16px; line-height: 20px; letter-spacing: -.2px; overflow-wrap: break-word; }
/* свёрнутые карточки одной высоты: подарок занимает не больше трёх строк в любой раскладке */
.bf-partners__gift b { min-height: 60px; }
.bf-partners__gift-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: rgba(var(--white), .48); }
.bf-partners__plus { width: 14px; height: 14px; color: rgb(var(--green)); }
/* стрелка «Подробнее»: нажимается вся строка, кружок со стрелкой поворачивается при раскрытии */
.bf-partners__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 0 0;
  border: 0; background: none; color: rgba(var(--white), .72); font: inherit; font-size: 14px; line-height: 20px; font-weight: 600;
  text-align: left; cursor: pointer; transition: color .3s var(--ease);
}
.bf-partners__toggle i {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(var(--white), .26); background: rgba(var(--white), .08);
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.bf-partners__toggle svg { width: 18px; height: 18px; }
.bf-partners__toggle:hover { color: rgb(var(--white)); }
.bf-partners__toggle:hover i { background: rgba(var(--white), .18); }
.bf-partners__toggle:focus-visible { outline: 2px solid rgb(var(--green)); outline-offset: 4px; border-radius: 8px; }
.bf-partners__card.is-open .bf-partners__toggle i { transform: rotate(180deg); }
/* раскрывающийся блок: высота анимируется через grid-template-rows 0fr → 1fr; закрытый — недоступен с клавиатуры */
.bf-partners__more {
  display: grid; grid-template-rows: 0fr; visibility: hidden; margin-top: -12px;
  transition: grid-template-rows .5s var(--ease), margin-top .5s var(--ease), visibility 0s .5s;
}
.bf-partners__card.is-open .bf-partners__more {
  grid-template-rows: 1fr; visibility: visible; margin-top: 0;
  transition: grid-template-rows .5s var(--ease), margin-top .5s var(--ease), visibility 0s;
}
.bf-partners__more-in { display: grid; align-content: start; gap: 12px; min-height: 0; overflow: hidden; }
.bf-partners__cat {
  justify-self: start; padding: 4px 8px; border-radius: 6px; background: rgba(var(--white), .1);
  font-size: 12px; line-height: 16px; font-weight: 600; color: rgba(var(--white), .72);
}
.bf-card .bf-partners__desc { margin: 0; font-size: 14px; line-height: 20px; color: rgba(var(--white), .72); }
.bf-partners__note { margin-top: -4px; font-size: 12px; line-height: 16px; color: rgba(var(--white), .48); }
.bf-partners__code {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-height: 36px; padding: 6px 10px;
  border-radius: 8px; border: 1px dashed rgba(var(--white), .4); background: none; color: rgb(var(--white));
  font: 600 14px/18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; text-align: left; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.bf-partners__code i {
  font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 600; font-style: normal; letter-spacing: 0;
  white-space: nowrap; color: rgb(var(--green));
}
.bf-partners__code:hover { background: rgba(var(--white), .08); border-color: rgba(var(--white), .6); }
.bf-partners__code.is-copied { border-style: solid; border-color: rgb(var(--green)); }
.bf-partners__code_muted { cursor: default; font-family: inherit; font-size: 13px; line-height: 18px; letter-spacing: 0; color: rgba(var(--white), .72); }
.bf-partners__code_muted:hover { background: none; border-color: rgba(var(--white), .4); }
.bf-partners__btn { width: 100%; min-width: 0; min-height: 48px; padding: 0 16px; font-size: 15px; white-space: normal; }
@media (prefers-reduced-motion: reduce) { .bf-partners__more, .bf-partners__toggle i { transition: none; } }

/* ─── Лёгкий режим (класс ставится в <head>: экономия трафика, 2G, ≤ 2 ГБ памяти) ───
   Стекло карточек остаётся всегда — это часть фирменного вида. Раньше лёгкий режим его выключал,
   а браузер при первом заходе часто считает сеть «3g», и пользователи видели карточки без стекла.
   Выключаем только движение: медленное приближение фото главного экрана, параллакс и наклон (script.js). */
html.bf-lite .bf-hero__layer.is-on img { animation: none; }
html.bf-lite .bf-plus-bg,
html.bf-lite .bf-final__box img { will-change: auto; }

/* ─── Уменьшенное движение ─── */
@media (prefers-reduced-motion: reduce) {
  .bf-js .bf-rv { opacity: 1; transform: none; transition: none; }
  .bf-hero__layer.is-on img { animation: none; }
  .bf-hero__layer img { translate: none; transition: none; }
  .bf-hero__segs .is-on i { animation: none; transform: scaleX(1); }
  .bf-hero__info, .bf-kinds__item, .bf-kinds__item img, .bf-kinds__item p, .bf-gift, .bf-tour__img img, .bf-faq__item summary i, .bf-mini, .bf-mini img { transition: none; }
  .bf-kinds__item p, .bf-kinds__item:hover img { transform: none; }
  .bf-js .bf-steps__tagline span { opacity: 1; transition: none; }
  .bf-steps__tagline span.is-accent { color: rgb(var(--green)); }
  .bf-gift.is-enter { opacity: 1; transform: none; }
  .bf-steps__plus { transition: none; }
  .bf-gift.is-entering, .bf-gift.is-moving { transition: none; }
}
