/* =========================================================
   MIRIDEA · Чёрная пятница 27–29.11.2026
   Работает только пока на <html> есть класс .bf (ставится в <head> до 29.11 23:59 МСК).
   После окончания акции всё скрывается само — файлы можно убрать позже.
   ========================================================= */
.m-bf-bar, .m-bf-sec, .m-promo--bf { display: none; }

/* ---------- Полоса сверху на всех страницах ---------- */
.bf body { padding-top: 40px; }
.bf .header { top: 40px; }
.bf .m-bf-bar { display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: 101; height: 40px; align-items: center; justify-content: center; gap: 14px; padding: 0 44px;
  background: #0b0b0e; color: #fff; font-size: 14px; line-height: 1; overflow: hidden; }
.m-bf-bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(249,60,60,.35), transparent); transform: translateX(-100%); animation: m-bf-shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes m-bf-shine { 60%, 100% { transform: translateX(100%); } }
.m-bf-bar b i { font-style: normal; } .m-bf-bar b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.m-bf-bar b span { background: linear-gradient(90deg, #f93c3c, #ff7a59); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.m-bf-bar em { font-style: normal; color: #c9ccd4; }
.m-bf-bar__t { font-variant-numeric: tabular-nums; font-weight: 700; color: #ffd166; white-space: nowrap; }
.m-bf-bar a { position: relative; z-index: 1; padding: 6px 12px; border-radius: 6px 12px 6px 12px; background: linear-gradient(90deg, #f93c3c, #cd0973); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; transition: opacity .3s; }
.m-bf-bar a:hover { opacity: .85; }
.m-bf-bar__x { position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; color: #8b8f99; font-size: 18px; line-height: 26px; text-align: center; cursor: pointer; }
.m-bf-bar__x:hover { color: #fff; }
.bf.bf-closed body { padding-top: 0; } .bf.bf-closed .header { top: 0; } .bf.bf-closed .m-bf-bar { display: none; }
@media (max-width: 900px) { .m-bf-bar em { display: none; } }
@media (max-width: 560px) { .m-bf-bar b, .m-bf-bar a { white-space: nowrap; } .m-bf-bar b i { display: none; } .m-bf-bar { gap: 8px; padding: 0 34px 0 10px; font-size: 12px; justify-content: flex-start; } .m-bf-bar b { letter-spacing: .02em; } .m-bf-bar__t { display: none; } .m-bf-bar a { padding: 5px 9px; font-size: 11.5px; margin-left: auto; } }

/* Чуть «чёрной пятницы» в оформлении: основные кнопки — чёрные, при наведении переливаются в красный */
html.bf { --m-grad-btn: linear-gradient(110deg, #26272d 0%, #0b0b0e 40%, #cd0973 75%, #f93c3c 100%); }
.bf .btn--primary { box-shadow: 0 10px 24px -12px rgba(249,60,60,.6); }
.bf .btn--primary:hover { box-shadow: 0 14px 30px -10px rgba(249,60,60,.8); }

/* ---------- Слайд на главной ---------- */
.bf .m-promo--bf { display: flex; }
.m-promo--bf { position: relative; border-radius: 28px; background: #0b0b0e; overflow: hidden; }
.m-promo--bf::before { content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(249,60,60,.35), transparent); pointer-events: none; }
.m-promo--bf .block-intro__item { position: relative; z-index: 1; margin: 44px 0 44px 46px; }
.m-promo--bf .block-intro__name { color: #ffd166; font-weight: 400; }
.m-promo--bf .block-intro__title { color: #fff; }
.m-promo--bf .block-intro__titles span { background: linear-gradient(169deg, #ff5a4e 0%, #f93c3c 40%, #cd0973 100%); -webkit-background-clip: text; background-clip: text; }
.m-promo--bf .block-intro__center ul li { color: #c9ccd4; } .m-promo--bf .block-intro__center ul li span { color: #4a4d57; }
.m-promo--bf .m-promo__price { border-color: #f93c3c; background: linear-gradient(90deg, rgba(249,60,60,.14), transparent); }
.m-promo--bf .m-promo__price small { color: #9aa0ad; } .m-promo--bf .m-promo__price b { color: #fff; }
.m-promo--bf .btn--primary { background: linear-gradient(90deg, #f93c3c, #cd0973) !important; }
.m-promo--bf .block-intro__item > .link { color: #fff; } .m-promo--bf .block-intro__item > .link img { filter: invert(1); }
.m-promo--bf .block-intro__pic { position: relative; z-index: 1; margin: 0; align-self: center; }
.m-bf-timer { display: flex; gap: 8px; }
.m-bf-timer div { min-width: 58px; padding: 8px 6px 6px; border-radius: 10px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: center; }
.m-bf-timer b { display: block; font-size: 24px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.m-bf-timer span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #9aa0ad; }
.m-bf-timer__lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9aa0ad; }
@media (max-width: 992px) { .m-promo--bf .block-intro__item { margin: 30px 20px 0; } .m-promo--bf { padding-bottom: 20px; } .m-bf-timer { justify-content: center; } .m-bf-timer__lbl { text-align: center; } }

/* ---------- Блок с акциями на главной ---------- */
.bf .m-bf-sec { display: block; }
.m-bf-sec { position: relative; z-index: 10; margin: 10px 0 60px; scroll-margin-top: 150px; }
.m-bf-sec__in { position: relative; padding: 40px; border-radius: 30px; background: #0b0b0e; color: #c9ccd4; overflow: hidden; }
.m-bf-sec__in::before { content: ""; position: absolute; left: -15%; bottom: -60%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(205,9,115,.3), transparent); pointer-events: none; }
.m-bf-sec__head { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.m-bf-sec h2 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; text-transform: uppercase; color: #fff; }
.m-bf-sec h2 span { background: linear-gradient(90deg, #f93c3c, #ff7a59); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.m-bf-sec__head p { margin: 10px 0 0; font-size: 16px; color: #9aa0ad; }
.m-bf-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-bf-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 14px 26px 14px 26px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background .3s, box-shadow .3s, translate .3s; }
.m-bf-card:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(249,60,60,.55); translate: 0 -3px; }
.m-bf-card__tag { align-self: start; padding: 4px 10px; border-radius: 6px; background: linear-gradient(90deg, #f93c3c, #cd0973); color: #fff; font-size: 13px; font-weight: 800; }
.m-bf-card h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.25; color: #fff; }
.m-bf-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #9aa0ad; }
.m-bf-card__price { margin-top: auto; padding-top: 6px; font-size: 14px; color: #9aa0ad; }
.m-bf-card__price b { font-size: 22px; font-weight: 800; color: #fff; }
.m-bf-card__price s { margin-left: 6px; color: #5f636e; }
.m-bf-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: #ffd166; }
.m-bf-card a:hover { color: #fff; }
.m-bf-sec__foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.m-bf-sec__foot small { max-width: 720px; font-size: 12.5px; line-height: 1.5; color: #6f7380; }
.m-bf-sec__foot .btn { background: linear-gradient(90deg, #f93c3c, #cd0973) !important; min-height: 52px; padding: 5px 34px; }
@media (max-width: 1000px) { .m-bf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .m-bf-sec__in { padding: 24px 16px; border-radius: 22px; } .m-bf-grid { grid-template-columns: 1fr; } .m-bf-sec__foot .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .m-bf-bar::before { animation: none; } }
