/* The timed sale (Black Friday → Cyber Monday, владелец 2026-11-27): the look the
   owner picked in the prototype round (ui-sale, look 1 «Чёрная пятница»), black with
   yellow; new prices stay the site's green. Loaded only while the sale runs. */
:root { --bf-ink: #0B0B0F; --bf-yellow: #FFD43B; }

/* The bar sits inside the sticky header, so anchors land under both. */
html { scroll-padding-top: 116px; }
@media (min-width: 900px) { .cabinet-side { top: 112px; } }

/* ---------- the bar on top of every page ---------- */
.bf-bar { display: block; background: var(--bf-ink); color: #fff; text-decoration: none !important; font-family: 'Poppins', sans-serif; }
.bf-bar:hover { color: #fff; }
.bf-bar-in { max-width: 1140px; margin: 0 auto; padding: 7px 16px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.bf-bar-tag { font-weight: 800; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--bf-yellow); white-space: nowrap; }
.bf-bar-tag.short { display: none; }
.bf-bar-text { font-size: 14px; font-weight: 500; white-space: nowrap; }
.bf-bar-text b { font-weight: 800; color: var(--bf-yellow); }
.bf-bar-timer { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bf-bar-ends { font-size: 12px; opacity: .85; margin-right: 3px; }
.bf-t { display: inline-flex; align-items: baseline; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); }
.bf-t b { font-weight: 800; font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--bf-yellow); }
.bf-t small { font-size: 10px; font-weight: 600; margin-left: 1px; opacity: .85; }
.bf-bar-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 999px; background: var(--bf-yellow); color: var(--bf-ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.bf-bar-btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .bf-bar-in { justify-content: space-between; gap: 8px; padding: 6px 12px; }
  .bf-bar-tag.long, .bf-bar-text, .bf-bar .bf-bar-ends, .bf-bar-btn span { display: none; }
  .bf-bar-tag.short { display: inline; font-size: 12px; letter-spacing: .04em; }
  .bf-t { padding: 2px 4px; }
  .bf-t b { font-size: 13px; }
  .bf-bar-btn { padding: 4px 7px; }
}

/* ---------- a package card on sale ---------- */
#orderFlow .plan.bf::before { background: var(--bf-ink); }
#orderFlow .plan.bf { padding-bottom: 11px; }
/* A plain card in a row with sale cards is taller than its content: its price sits in the middle of the room. */
.plan-grid:has(.bf) .plan:not(.bf) .plan-price { margin-top: auto; margin-bottom: auto; }
.plan.bf .bf-was { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: auto; line-height: 1; }
.plan.bf .bf-old { font: 600 12px/1 'Poppins', sans-serif; color: #8496AB; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.plan.bf .bf-off { font: 800 11px/1 'Poppins', sans-serif; padding: 3px 5px; border-radius: 5px; background: var(--bf-ink); color: var(--bf-yellow); white-space: nowrap; }
#orderFlow .plan.bf .plan-price { margin-top: 6px; font-size: 16px; }
.plan.bf .bf-timer { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin-top: 8px; padding: 3px 7px; border-radius: 999px; background: var(--bf-ink); color: var(--bf-yellow); font: 700 10.5px/1.15 'Poppins', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan.bf .bf-timer svg { width: 11px; height: 11px; flex: none; }
@media (max-width: 480px) {
  .plan.bf .bf-old { font-size: 11px; }
  .plan.bf .bf-off { font-size: 10px; padding: 2px 4px; }
  #orderFlow .plan.bf .plan-price { font-size: 15px; }
  .plan.bf .bf-timer { font-size: 9.5px; padding: 3px 5px; gap: 2px; }
  .plan.bf .bf-timer svg { width: 10px; height: 10px; }
}

/* ---------- the quality step and the pay step ---------- */
.bf-inline { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--bf-ink); color: #fff; font-size: 13px; line-height: 1.35; }
.bf-inline[hidden] { display: none; }
.bf-inline-txt { flex: 1; min-width: 0; }
.bf-inline b { font-weight: 700; color: var(--bf-yellow); }
.bf-inline .bf-clock { flex: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font: 700 12.5px/1 'Poppins', sans-serif; font-variant-numeric: tabular-nums; color: var(--bf-yellow); }
.bf-inline .bf-clock svg { width: 12px; height: 12px; }
.speed-card .bf-tag { display: inline-block; margin-left: 7px; padding: 3px 6px; border-radius: 5px; background: var(--bf-ink); color: var(--bf-yellow); font: 800 10.5px/1 'Poppins', sans-serif; vertical-align: 1px; }
.speed-card-price.bf-p { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.speed-card-price .bf-old { font: 600 12px/1.1 'Poppins', sans-serif; color: #8496AB; text-decoration: line-through; }
.ow-pill-price .bf-old { font-weight: 600; color: #8496AB; text-decoration: line-through; margin-right: 5px; }
.fp .pbar-off.bf-pbar-off { background: var(--bf-ink); color: var(--bf-yellow); }
.fp .pbar-off.bf-pbar-off[hidden] { display: none; }
.bf-saved { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bf-ink); color: #fff; font-size: 13px; line-height: 1.4; }
.bf-saved[hidden] { display: none; }

/* ---------- the home page: the deals, the marks on the tiles and the service menu ---------- */
.bf-deals-sec { padding: 26px 0 6px; }
.bf-deals { border-radius: 18px; padding: 22px; background: var(--bf-ink); color: #fff; }
.bf-deals-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; }
.bf-deals-kicker { margin: 0; font: 800 12px/1 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--bf-yellow); }
.bf-deals h2 { margin: 7px 0 4px; font: 800 28px/1.15 'Poppins', sans-serif; color: #fff; }
.bf-deals-sub { margin: 0; font-size: 15px; color: #C9CDD6; }
.bf-deals-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; }
.bf-deals-timer .bf-t b { font-size: 18px; }
.bf-deals-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bf-deal { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 13px 12px 12px; border-radius: 12px; background: #17171D; border: 1px solid #2A2A33; color: #fff; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.bf-deal:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.6); color: #fff; }
.bf-deal-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.bf-deal-ic svg { width: 16px; height: 16px; }
.bf-deal-ic.instagram { background: linear-gradient(135deg, #7C3AED, #DD2A7B, #F59E0B); }
.bf-deal-ic.youtube { background: #FF0000; }
.bf-deal-ic.tiktok { background: #14161F; border: 1px solid #3A3A44; }
.bf-deal-ic.facebook { background: #1877F2; }
.bf-deal-name { font: 700 14.5px/1.25 'Poppins', sans-serif; }
.bf-deal-rule { font-size: 12.5px; color: #B9BEC9; }
.bf-deal-max { position: absolute; top: 11px; right: 11px; padding: 3px 6px; border-radius: 6px; background: var(--bf-yellow); color: var(--bf-ink); font: 800 12px/1 'Poppins', sans-serif; }
@media (max-width: 1000px) { .bf-deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bf-deals { padding: 16px; }
  .bf-deals h2 { font-size: 22px; }
  .bf-deals-sub { font-size: 14px; }
  .bf-deals-timer { align-items: flex-start; }
  .bf-deals-grid { grid-template-columns: 1fr; gap: 8px; }
  .bf-deal { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "ic name max" "ic rule max"; column-gap: 10px; row-gap: 1px; align-items: center; padding: 10px 12px; }
  .bf-deal-ic { grid-area: ic; margin: 0; }
  .bf-deal-name { grid-area: name; }
  .bf-deal-rule { grid-area: rule; }
  .bf-deal-max { grid-area: max; position: static; }
}
.bf-chip { display: inline-block; padding: 2px 6px; border-radius: 5px; background: var(--bf-ink); color: var(--bf-yellow); font: 800 11px/1.25 'Poppins', sans-serif; white-space: nowrap; }
.cta-btn .bf-chip { margin-left: auto; margin-right: 6px; }
.cta-btn .bf-chip + .cta-arr { margin-left: 0; }
.sn-chip .bf-chip { margin-left: 5px; padding: 1px 4px; font-size: 9.5px; vertical-align: 1px; }
