/* 28.11.2026 Чёрная пятница пакетов (до 30.11 23:59 МСК) — большой блок первым экраном на главной и на /pakety/.
   Игорь: «должно кричать, вау-эффект, в нашем чёрно-фиолетовом стиле, ярко, блестяще».
   lite (по умолчанию для слабых устройств) — без вечных анимаций и размытия; full — блик, бегущая строка, искры, пульс.
   После дедлайна класс bf-over на <html> прячет блок целиком. */
.bfm { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #07050d;
  padding: 0 0 34px; border-bottom: 1px solid rgba(190, 140, 255, .28); }
.bf-over .bfm { display: none !important; }
.bfm-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 85% 10%, rgba(154, 85, 240, .75), transparent 70%),
    radial-gradient(60% 50% at 0% 70%, rgba(255, 79, 216, .38), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(110, 120, 255, .35), transparent 70%),
    linear-gradient(180deg, #0b0716 0%, #07050d 100%); }
.bfm-bg img { position: absolute; right: -18%; top: 34px; width: 92%; max-width: 760px; height: auto; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.bfm-spark { position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent 60%), radial-gradient(1.2px 1.2px at 28% 64%, #f3d8ff, transparent 60%),
    radial-gradient(1.8px 1.8px at 46% 18%, #fff, transparent 60%), radial-gradient(1.2px 1.2px at 63% 46%, #e6c8ff, transparent 60%),
    radial-gradient(1.6px 1.6px at 78% 76%, #fff, transparent 60%), radial-gradient(1.3px 1.3px at 90% 30%, #ffd1f3, transparent 60%),
    radial-gradient(1.1px 1.1px at 8% 88%, #fff, transparent 60%), radial-gradient(1.4px 1.4px at 54% 90%, #f3d8ff, transparent 60%); }

/* бегущая строка */
.bfm-ticker { position: relative; overflow: hidden; white-space: nowrap; padding: 9px 0;
  background: linear-gradient(90deg, #6d2ff0, #b33cf2 45%, #ff4fd8); box-shadow: 0 8px 40px -8px rgba(255, 79, 216, .6);
  font: 800 13px/1 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.bfm-tick-in { display: inline-block; padding-left: 16px; }
.bfm-tick-in span { margin-right: 26px; }
.bfm-tick-in i { font-style: normal; margin-right: 26px; opacity: .85; }

.bfm-in { position: relative; display: grid; gap: 18px; padding-top: 26px; }
.bfm-head { position: relative; display: grid; gap: 8px; }
.bfm-kick { margin: 0; font: 700 12.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #d9c2ff; }
.bfm-title { margin: 0; font: 900 clamp(54px, 15.5vw, 150px)/.9 Inter, system-ui, sans-serif; letter-spacing: -.035em; text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 0%, #f1e6ff 30%, #c79bff 48%, #ff8ae2 62%, #ffffff 80%, #f1e6ff 100%);
  background-size: 220% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(180, 90, 255, .55)); }
.bfm-title span { display: block; }
.bfm-sub { margin: 4px 0 0; max-width: 34ch; font: 500 17px/1.45 Inter, system-ui, sans-serif; color: #e8defa; }
.bfm-sub b { color: #fff; }
.bfm-sticker { position: absolute; right: 0; top: -6px; z-index: 2; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  transform: rotate(-12deg); text-align: center; font: 800 13px/1 Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em;
  background: radial-gradient(circle at 30% 25%, #ff9ae8, #ff4fd8 40%, #9a55f0 100%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 14px 40px -6px rgba(255, 79, 216, .9), 0 0 60px rgba(255, 79, 216, .55); }
.bfm-sticker b { display: block; margin-top: 3px; font-size: 30px; letter-spacing: -.03em; }

/* таймер */
.bfm-timer { display: grid; gap: 8px; }
.bfm-timer-cap { font: 700 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb9ee; }
.bfm-timer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; }
.bfm-t { display: grid; justify-items: center; padding: 10px 4px 8px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(220, 180, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -12px rgba(154, 85, 240, .9); }
.bfm-t b { font: 800 32px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(214, 160, 255, .9); }
.bfm-t small { margin-top: 4px; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #cdb8f2; }

/* цены */
.bfm-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bfm-prices a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; color: #fff; text-decoration: none;
  background: rgba(20, 12, 40, .62); border: 1px solid rgba(200, 160, 255, .28); }
.bfm-prices .nm { font: 600 16px/1.25 Inter, system-ui, sans-serif; }
.bfm-prices .nm em { display: block; margin-top: 3px; font: 600 12.5px/1.2 Inter, system-ui, sans-serif; font-style: normal; color: #ffc4f0; }
.bfm-prices s { font: 600 15px/1 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .5); text-decoration-thickness: 2px; text-decoration-color: #ff4fd8; }
.bfm-prices b { font: 900 28px/1 Inter, system-ui, sans-serif; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #ffd0f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfm-prices .hot a { background: linear-gradient(120deg, rgba(154, 85, 240, .55), rgba(255, 79, 216, .38)); border-color: rgba(255, 190, 245, .8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 16px 44px -14px rgba(255, 79, 216, .95); }
.bfm-prices .hot b { font-size: 34px; background: linear-gradient(90deg, #fff, #fff); -webkit-background-clip: text; background-clip: text; }

/* кнопка */
.bfm-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 26px;
  border-radius: 999px; text-decoration: none; color: #fff; font: 800 18px/1.1 Inter, system-ui, sans-serif;
  background: linear-gradient(90deg, #8a3cf5, #c447f0 50%, #ff4fd8); box-shadow: 0 16px 44px -10px rgba(255, 79, 216, .95), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.bfm-cta span { font-size: 22px; }
.bfm-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); opacity: 0; }
.bfm-fine { margin: 0; font: 500 13.5px/1.45 Inter, system-ui, sans-serif; color: #cbbbe8; }
.bfm-fine b { color: #fff; }

@media (min-width: 760px) {
  .bfm { padding-bottom: 48px; }
  .bfm-in { grid-template-columns: 1.15fr 1fr; column-gap: 48px; row-gap: 22px; padding-top: 44px; align-items: start; }
  .bfm-head { grid-column: 1 / -1; }
  .bfm-sticker { width: 150px; height: 150px; right: 4%; top: 10px; font-size: 16px; }
  .bfm-sticker b { font-size: 44px; }
  .bfm-sub { font-size: 20px; max-width: 46ch; }
  .bfm-timer { align-self: start; }
  .bfm-t b { font-size: 44px; }
  .bfm-prices { grid-row: span 3; }
  .bfm-prices a { padding: 16px 20px; }
  .bfm-prices b { font-size: 34px; }
  .bfm-prices .hot b { font-size: 44px; }
  .bfm-cta { justify-self: start; min-width: 340px; font-size: 20px; }
  .bfm-bg img { right: -6%; top: 10px; width: 62%; opacity: .6; }
}

/* full: движение (мощные устройства, без prefers-reduced-motion) */
.full .bfm-title { animation: bfmShine 5.5s ease-in-out infinite; }
@keyframes bfmShine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.full .bfm-tick-in { animation: bfmTick 26s linear infinite; }
@keyframes bfmTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.full .bfm-spark { animation: bfmTw 3.2s ease-in-out infinite alternate; }
@keyframes bfmTw { from { opacity: .35; } to { opacity: .95; } }
.full .bfm-sticker { animation: bfmWob 3.6s ease-in-out infinite; }
@keyframes bfmWob { 0%, 100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.06); } }
.full .bfm-cta { animation: bfmPulse 2.4s ease-in-out infinite; }
@keyframes bfmPulse { 0%, 100% { box-shadow: 0 16px 44px -10px rgba(255, 79, 216, .95), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
  50% { box-shadow: 0 18px 60px -6px rgba(255, 79, 216, 1), 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 40px rgba(196, 71, 240, .6); } }
.full .bfm-cta::after { animation: bfmSweep 3.2s ease-in-out infinite; }
@keyframes bfmSweep { 0% { left: -40%; opacity: 0; } 15% { opacity: 1; } 45%, 100% { left: 130%; opacity: 0; } }
.full .bfm-bg img { animation: bfmFloat 9s ease-in-out infinite alternate; }
@keyframes bfmFloat { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .bfm *, .bfm *::after { animation: none !important; } }

/* /pakety/: пока идёт акция, плашка, таймер и строка цен первого экрана не дублируют большой блок */
html:not(.bf-over) .pk-hero .pk-bf, html:not(.bf-over) .pk-hero .pk-timer, html:not(.bf-over) .pk-hero .pk-strip { display: none; }

/* 28.11: «Решили добавить бонусы» — пункты появляются сами по датам (claims P36) */
.bfm-gifts { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 79, 216, .16), rgba(154, 85, 240, .2)); border: 1px dashed rgba(255, 190, 245, .7); }
.bfm-gifts[hidden], .bfm-gifts li[hidden] { display: none; }
.bfm-gifts-cap { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 14px/1.2 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ffd0f4; }
.bfm-new { padding: 4px 9px; border-radius: 999px; background: #ff4fd8; color: #fff; font-size: 11px; letter-spacing: .12em;
  box-shadow: 0 0 18px rgba(255, 79, 216, .8); }
.bfm-gifts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bfm-gifts li { font: 500 15px/1.45 Inter, system-ui, sans-serif; color: #f1e6ff; }
.bfm-gifts li b { color: #fff; }
.full .bfm-new { animation: bfmNew 1.8s ease-in-out infinite; }
@keyframes bfmNew { 0%, 100% { box-shadow: 0 0 10px rgba(255, 79, 216, .6); } 50% { box-shadow: 0 0 22px rgba(255, 79, 216, 1); } }
@media (min-width: 760px) { .bfm-gifts li { font-size: 16px; } }
