:root {
  --font-family-base: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: #faf9f6;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --text: #10131d;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #e5e7eb;
  --accent: #ffb800;
  --accent-soft: #fff2c2;
  --dark: #10131d;
  --success-bg: #e8f8ee;
  --success-text: #17864b;
  --warning-bg: #fff4ce;
  --warning-text: #9b6a00;
  --danger-bg: #feecec;
  --danger-text: #bd2b2b;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 26px rgba(16, 19, 29, 0.07);
  --shadow-hover: 0 14px 34px rgba(16, 19, 29, 0.11);
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bf-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(255, 184, 0, .35); outline-offset: 3px; }

.bf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bf-main { flex: 1; }
.bf-container {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

#bf-header {
  flex: 0 0 var(--header-height);
  height: var(--header-height);
}

.bf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  width: 100%;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, .92);
}
.bf-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(360px, auto);
  align-items: center;
  gap: 20px;
}
.bf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bf-logo img {
  width: 150px;
  aspect-ratio: 1166 / 458;
  height: auto;
  object-fit: contain;
}
.bf-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}
.bf-nav a {
  position: relative;
  padding: 26px 0 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.bf-nav a[aria-current="page"] { color: var(--text); }
.bf-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
}
.bf-auth {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bf-balance {
  min-width: 128px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.bf-profile {
  position: relative;
}
.bf-profile__button {
  min-width: 118px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.bf-skeleton {
  width: 128px;
  flex: 0 0 128px;
  position: relative;
  overflow: hidden;
  color: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.bf-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: bf-skeleton 1.2s ease-in-out infinite;
}
.bf-skeleton--profile {
  border-radius: 16px;
  background: var(--surface);
}
@keyframes bf-skeleton {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-skeleton::after { animation: none; }
}
.bf-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}
.bf-profile__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  display: none;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-profile.is-open .bf-profile__menu { display: block; }
.bf-profile__menu a,
.bf-profile__menu button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}
.bf-profile__menu a:hover,
.bf-profile__menu button:hover { background: var(--surface-soft); color: var(--text); }

.bf-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bf-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(16, 19, 29, .14); }
.bf-btn.is-disabled,
.bf-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: .48;
  box-shadow: none;
}
.bf-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.bf-btn--accent { background: var(--accent); color: var(--text); }
.bf-btn--sm { min-height: 40px; padding-inline: 16px; border-radius: 13px; font-size: 14px; }
.bf-auth > .bf-btn--sm {
  flex: 0 0 auto;
  white-space: nowrap;
}
.bf-btn--wide { width: 100%; }

.bf-section { padding: 56px 0; }
.bf-section--compact { padding: 38px 0; }
.bf-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #5c4100;
  font-size: 14px;
  font-weight: 700;
}
.bf-h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 700;
}
.bf-h1 mark { background: none; color: var(--accent); }
.bf-h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
}
.bf-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.bf-hero {
  padding: 52px 0 34px;
  overflow: hidden;
}
.bf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: 42px;
}
.bf-hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.bf-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  max-width: 560px;
}
.bf-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.bf-benefit::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.bf-collage {
  position: relative;
  min-height: 500px;
}
.bf-collage__card {
  position: absolute;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
}
.bf-collage__card img { width: 100%; height: 100%; object-fit: cover; }
.bf-collage__card span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.bf-collage__main { left: 30%; top: 13%; width: 44%; height: 68%; z-index: 3; }
.bf-collage__a { left: 4%; top: 4%; width: 31%; height: 36%; transform: rotate(-7deg); }
.bf-collage__b { right: 2%; top: 9%; width: 31%; height: 37%; transform: rotate(7deg); }
.bf-collage__c { left: 9%; bottom: 7%; width: 34%; height: 39%; transform: rotate(6deg); }
.bf-collage__d { right: 4%; bottom: 7%; width: 34%; height: 38%; transform: rotate(-5deg); }
.bf-collage__caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%);
}
.bf-collage__caption b { color: #d99100; }

.bf-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bf-price-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-price-card--pro {
  background: linear-gradient(145deg, #fff8dc, #fffdf5 72%);
  border-color: #f7dc80;
}
.bf-price-card h3 { margin: 0 0 14px; font-size: 20px; }
.bf-price {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 700;
}
.bf-price small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.bf-price-card p,
.bf-price-card li { color: var(--muted); font-weight: 500; }
.bf-price-card ul { padding-left: 18px; margin: 10px 0 24px; }
.bf-price-card .bf-btn { margin-top: auto; }

.bf-bonus {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid #f2d671;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.bf-bonus strong { display: block; font-size: 20px; }
.bf-bonus span { color: var(--muted); font-weight: 500; }

.bf-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bf-step {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-step__num {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
}
.bf-step h3 { margin: 34px 0 10px; font-size: 21px; letter-spacing: -.02em; }
.bf-step p { margin: 0; color: var(--muted); font-weight: 500; }

.bf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.bf-chip {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}
.bf-chip.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.bf-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bf-scenario {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 374px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  appearance: none;
}
.bf-scenario:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.bf-scenario img {
  width: 100%;
  height: calc(100% - 62px);
  min-height: 312px;
  object-fit: cover;
  transition: transform .22s ease;
}
.bf-scenario:hover img { transform: scale(1.025); }
.bf-scenario__body {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: var(--surface);
}
.bf-scenario__title { font-size: 18px; line-height: 1.22; font-weight: 700; }
.bf-scenario__try { color: rgba(16, 19, 29, .34); font-size: 13px; font-weight: 700; }
.bf-scenario__arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .84);
  color: var(--text);
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  box-shadow: 0 8px 22px rgba(16, 19, 29, .14);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.bf-scenario__arrow svg {
  width: 19px;
  height: 19px;
}
.bf-scenario:hover .bf-scenario__arrow,
.bf-scenario:focus-visible .bf-scenario__arrow {
  opacity: 1;
  transform: translateY(0);
}
.bf-scenario:hover .bf-scenario__arrow {
  background: rgba(255, 255, 255, .92);
}
.bf-more { display: flex; justify-content: center; margin-top: 30px; }

#examples,
#scenarios,
.scenarios-section {
  scroll-margin-top: 110px;
}

@media (hover: none) {
  .bf-scenario__arrow {
    opacity: 1;
    transform: none;
  }
}

.bf-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bf-faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(16, 19, 29, .04);
}
.bf-faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after { content: "+"; font-size: 22px; }
.bf-faq details[open] summary::after { content: "−"; }
.bf-faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-weight: 500; }

.bf-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 35%, rgba(255, 184, 0, .22), transparent 34%),
    var(--dark);
  color: #fff;
}
.bf-cta h2 { margin: 0 0 8px; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; }
.bf-cta p { margin: 0; color: rgba(255,255,255,.72); font-weight: 500; }

.bf-footer {
  padding: 18px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.bf-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bf-footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.bf-footer img {
  width: 112px;
  flex: 0 0 auto;
}
.bf-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.bf-footer__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.bf-footer a,
.bf-footer__button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bf-footer a:hover,
.bf-footer__button:hover {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.bf-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.bf-doc-link {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(16, 19, 29, .05);
}
.bf-doc-link span {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.bf-doc-link small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
}
.bf-doc-link:hover {
  border-color: rgba(255, 184, 0, .55);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 19, 29, .08);
}

.bf-page-head {
  padding: 48px 0 24px;
}
.bf-page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.bf-page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; font-weight: 600; }
.bf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-cabinet-summary {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 0;
  padding: 24px;
}
.bf-user-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bf-user-line .bf-avatar { width: 56px; height: 56px; font-size: 26px; }
.bf-user-line h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.bf-user-line p,
.bf-cabinet-summary p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.bf-cabinet-balance { border-left: 1px solid var(--border); padding-left: 28px; }
.bf-cabinet-balance strong { display: block; font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.bf-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.bf-info-card { padding: 24px; min-height: 150px; }
.bf-info-card h2,
.bf-history h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; }
.bf-info-card p { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.bf-history { margin-top: 18px; padding: 24px; }
.bf-table-wrap { overflow-x: auto; }
.bf-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.bf-table th {
  padding: 18px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bf-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.bf-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.bf-status--success { color: var(--success-text); background: var(--success-bg); }
.bf-status--processing { color: var(--warning-text); background: var(--warning-bg); }
.bf-status--error { color: var(--danger-text); background: var(--danger-bg); }
.bf-empty {
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-weight: 600;
}
.bf-auth-card {
  max-width: 620px;
  padding: 30px;
}
.bf-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 24px 0;
  color: var(--muted);
  font-weight: 600;
}
.bf-check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.bf-check a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bf-auth-hint {
  margin: -6px 0 0;
  color: #9f6b00;
  font-size: 14px;
  font-weight: 700;
}
.bf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 19, 29, .55);
}
.bf-modal.is-open { display: grid; }
.bf-modal__box {
  width: min(100%, 560px);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
}
.bf-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.bf-modal__head h2 { margin: 0; font-size: 28px; }
.bf-modal__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 26px;
}
.bf-modal__body { padding: 28px; }
.bf-amount {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 18px;
  font-size: 26px;
  font-weight: 700;
}
.bf-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 22px;
}
.bf-payment-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.bf-payment-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bf-doc {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 34px;
}
.bf-doc h1 { margin: 0 0 16px; font-size: 36px; letter-spacing: -.035em; }
.bf-doc h2 { margin: 28px 0 10px; font-size: 23px; }
.bf-doc p,
.bf-doc li { color: var(--muted); font-weight: 500; }
.bf-doc-note {
  margin-bottom: 26px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: #5c4100;
  font-weight: 700;
}
.bf-style-main {
  padding: 56px 0 72px;
}
.bf-style-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  gap: 48px;
  align-items: center;
}
.bf-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.bf-back-link:hover { color: var(--text); }
.bf-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.bf-style-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.bf-style-points span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.bf-style-preview {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
}
.bf-style-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.bf-style-preview figcaption {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.bf-style-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}
.bf-style-step {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-style-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
}
.bf-style-step h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
}
.bf-style-step p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.bf-style-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 50%, rgba(255, 184, 0, .28), transparent 28%),
    var(--dark);
  color: #fff;
}
.bf-style-cta h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -.025em;
}
.bf-style-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
}
.bf-style-list-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.bf-cookie {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(100% - 48px, 920px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 184, 0, .16), transparent 36%),
    rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(16, 19, 29, .14);
  backdrop-filter: blur(18px);
}
.bf-cookie__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #9a6b00;
  font-size: 18px;
  font-weight: 800;
}
.bf-cookie__text {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.bf-cookie__text strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: -.02em;
}
.bf-cookie p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}
.bf-cookie a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bf-cookie__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.bf-cookie__actions .bf-btn {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 15px;
}
.bf-cookie .bf-btn { flex: 0 0 auto; }

.bf-btn--danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(189, 43, 43, .16);
  box-shadow: none;
}

.bf-admin-page {
  padding: 44px 0 72px;
}

.bf-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.bf-admin-kicker {
  margin: 0 0 8px;
  color: #9b6a00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bf-admin-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.bf-admin-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.bf-admin-hero__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.bf-admin-status {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.bf-admin-status.is-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(189, 43, 43, .18);
}

.bf-admin-status.is-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(23, 134, 75, .18);
}

.bf-admin-periods {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 19, 29, .05);
}

.bf-admin-period {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bf-admin-period:hover,
.bf-admin-period.is-active {
  background: var(--dark);
  color: #fff;
}

.bf-admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bf-stat-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.bf-stat-card span,
.bf-stat-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.bf-stat-card span {
  margin-bottom: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bf-stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.04em;
}

.bf-stat-card small {
  font-size: 13px;
  line-height: 1.35;
}

.bf-admin-stats {
  display: grid;
  gap: 20px;
}

.bf-admin-stat-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.bf-admin-chart-panel,
.bf-admin-table-panel {
  padding: 22px;
}

.bf-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.bf-admin-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.bf-admin-section-head > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bf-admin-daily {
  display: grid;
  gap: 10px;
}

.bf-daily-row {
  display: grid;
  grid-template-columns: 104px minmax(120px, 1fr) 48px minmax(170px, .45fr);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.bf-daily-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bf-daily-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffd66b);
}

.bf-daily-row strong {
  color: var(--text);
  text-align: right;
}

.bf-daily-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-admin-table {
  overflow-x: auto;
}

.bf-admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.bf-admin-table th,
.bf-admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

.bf-admin-table th {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bf-admin-table td strong,
.bf-admin-table td small {
  display: block;
}

.bf-admin-table td strong {
  color: var(--text);
  font-size: 14px;
}

.bf-admin-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bf-admin-mini-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bf-admin-mini-status.is-done,
.bf-admin-mini-status.is-paid {
  background: var(--success-bg);
  color: var(--success-text);
}

.bf-admin-mini-status.is-error,
.bf-admin-mini-status.is-canceled {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.bf-admin-mini-status.is-pending,
.bf-admin-mini-status.is-queued,
.bf-admin-mini-status.is-running,
.bf-admin-mini-status.is-processing {
  background: var(--accent-soft);
  color: #9b6a00;
}

.bf-admin-subtables {
  display: grid;
  gap: 18px;
}

.bf-scenario-admin {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(560px, 1.18fr);
  gap: 20px;
  align-items: start;
}

.bf-admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.bf-scenario-admin__list {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow: auto;
  padding: 14px;
}

.bf-admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.bf-admin-search span,
.bf-scenario-editor label > span,
.bf-admin-prompt > span,
.bf-admin-categories legend {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.bf-admin-search input,
.bf-admin-search select,
.bf-scenario-editor input,
.bf-scenario-editor select,
.bf-scenario-editor textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font: inherit;
}

.bf-scenario-editor textarea {
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

.bf-admin-list {
  display: grid;
  gap: 8px;
}

.bf-admin-row {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.bf-admin-row:hover,
.bf-admin-row.is-active {
  background: var(--accent-soft);
  border-color: rgba(255, 184, 0, .45);
}

.bf-admin-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

.bf-admin-row strong,
.bf-admin-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-admin-row strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.bf-admin-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.bf-scenario-editor {
  padding: 22px;
}

.bf-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.bf-editor-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: -.03em;
}

.bf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.bf-toggle input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.bf-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bf-admin-upload {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.bf-admin-preview {
  min-height: 164px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.bf-admin-preview img {
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
}

.bf-admin-file {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.bf-admin-file input {
  margin-top: 10px;
}

.bf-admin-file small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bf-admin-categories {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.bf-admin-categories > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bf-admin-chip {
  position: relative;
}

.bf-admin-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bf-admin-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bf-admin-chip input:focus-visible + span {
  outline: 3px solid rgba(255, 184, 0, .35);
  outline-offset: 2px;
}

.bf-admin-chip input:checked + span {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.bf-admin-prompt {
  display: block;
}

.bf-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1100px) {
  .bf-header__inner { grid-template-columns: 170px minmax(0, 1fr) minmax(260px, auto); }
  .bf-logo img { width: 132px; }
  .bf-nav { gap: 24px; }
  .bf-auth > .bf-balance:first-child { min-width: 72px; font-size: 0; }
  .bf-auth > .bf-balance:first-child::before {
    content: "40\00a0₽";
    font-size: 15px;
  }
  .bf-hero__grid { grid-template-columns: 1fr; }
  .bf-collage { min-height: 460px; }
  .bf-style-hero { grid-template-columns: 1fr; }
  .bf-style-preview { max-width: 560px; }
  .bf-pricing,
  .bf-steps,
  .bf-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-cabinet-summary { grid-template-columns: 1fr; gap: 22px; }
  .bf-cabinet-balance { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 22px; }
}

@media (max-width: 980px) {
  .bf-admin-hero {
    display: grid;
    align-items: start;
  }
  .bf-admin-hero__actions {
    justify-content: flex-start;
  }
  .bf-scenario-admin {
    grid-template-columns: 1fr;
  }
  .bf-scenario-admin__list {
    position: static;
    max-height: none;
  }
  .bf-admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bf-admin-stat-layout {
    grid-template-columns: 1fr;
  }
  .bf-admin-grid,
  .bf-admin-upload {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .bf-container { width: min(100% - 32px, 1360px); }
  .bf-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .bf-logo img { width: 108px; }
  .bf-nav { justify-content: center; gap: 16px; overflow-x: auto; }
  .bf-nav a { padding: 22px 0 19px; font-size: 13px; }
  .bf-nav a[aria-current="page"]::after { bottom: 11px; width: 24px; }
  .bf-auth { gap: 8px; }
  .bf-auth .bf-profile__name { display: none; }
  .bf-balance { min-height: 42px; padding: 0 14px; font-size: 15px; }
  .bf-auth > .bf-balance:first-child {
    min-width: 58px;
    padding-inline: 10px;
  }
  .bf-auth > .bf-btn--sm {
    min-width: 72px;
    width: auto;
    height: 42px;
    padding: 0 12px;
    overflow: visible;
    color: var(--white);
    font-size: 0;
    white-space: nowrap;
  }
  .bf-auth > .bf-btn--sm::before {
    content: "Войти";
    color: var(--white);
    font-size: 13px;
    line-height: 1;
  }
  .bf-profile__button { min-width: 42px; height: 42px; padding-inline: 8px; }
  .bf-profile__button svg { display: none; }
  .bf-hero { padding-top: 34px; }
  .bf-h1 { font-size: 36px; }
  .bf-lead { font-size: 17px; }
  .bf-hero__actions .bf-btn { width: 100%; }
  .bf-benefits { grid-template-columns: 1fr; }
  .bf-collage { min-height: 420px; transform: scale(.95); transform-origin: center top; }
  .bf-pricing,
  .bf-steps,
  .bf-scenarios,
  .bf-faq,
  .bf-cabinet-grid { grid-template-columns: 1fr; }
  .bf-scenario { min-height: 330px; }
  .bf-scenario img { min-height: 268px; }
  .bf-scenario__body { min-height: 62px; padding: 12px 16px; }
  .bf-scenario__title { font-size: 17px; }
  .bf-scenario__arrow {
    right: 14px;
    top: 14px;
    width: 40px;
    height: 40px;
  }
  .bf-bonus,
  .bf-cta { grid-template-columns: 1fr; }
  .bf-style-main { padding: 34px 0 52px; }
  .bf-style-hero { gap: 28px; }
  .bf-style-points,
  .bf-style-details,
  .bf-style-cta { grid-template-columns: 1fr; }
  .bf-style-preview { max-width: none; border-radius: 22px; }
  .bf-style-preview img { aspect-ratio: 4 / 4.8; }
  .bf-style-cta { align-items: stretch; }
  .bf-bonus { align-items: stretch; }
  .bf-footer { padding: 18px 0 22px; }
  .bf-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .bf-footer__brand {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .bf-footer img { width: 104px; }
  .bf-footer p { white-space: normal; text-align: right; }
  .bf-footer__meta {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .bf-footer a,
  .bf-footer__button {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 13px;
    background: var(--soft);
  }
  .bf-doc-grid { grid-template-columns: 1fr; }
  .bf-doc { padding: 24px; margin-bottom: 36px; }
  .bf-doc h1 { font-size: 32px; }
  .bf-cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    transform: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 16px;
  }
  .bf-cookie__icon { width: 38px; height: 38px; }
  .bf-cookie__actions { flex-direction: column; }
  .bf-cookie .bf-btn { width: 100%; }
}

@media (max-width: 620px) {
  .bf-admin-page {
    padding: 28px 0 48px;
  }
  .bf-admin-periods {
    width: 100%;
    border-radius: 22px;
  }
  .bf-admin-period {
    flex: 1 1 calc(50% - 8px);
  }
  .bf-admin-stat-grid,
  .bf-admin-stat-layout {
    grid-template-columns: 1fr;
  }
  .bf-stat-card {
    min-height: 124px;
  }
  .bf-admin-chart-panel,
  .bf-admin-table-panel {
    padding: 16px;
  }
  .bf-admin-section-head {
    display: grid;
  }
  .bf-daily-row {
    grid-template-columns: 88px minmax(80px, 1fr) 32px;
  }
  .bf-daily-row small {
    grid-column: 1 / -1;
  }
  .bf-admin-hero__actions .bf-btn,
  .bf-admin-actions .bf-btn {
    width: 100%;
  }
  .bf-scenario-editor {
    padding: 16px;
  }
  .bf-editor-head {
    display: grid;
  }
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body[data-page="home"] .bf-container {
    width: min(100% - 32px, 1360px);
  }

  body[data-page="home"] .bf-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body[data-page="home"] .bf-logo img {
    width: 118px;
  }

  body[data-page="home"] .bf-nav {
    display: none;
  }

  body[data-page="home"] .bf-auth {
    min-width: 0;
  }

  body[data-page="home"] .bf-auth > .bf-balance:first-child {
    min-width: 64px;
    min-height: 42px;
    padding-inline: 12px;
  }

  body[data-page="home"] .bf-auth > .bf-btn--sm {
    min-width: 72px;
    width: auto;
    height: 42px;
    padding-inline: 12px;
    border-radius: 14px;
    font-size: 0;
  }

  body[data-page="home"] .bf-section {
    padding: 44px 0;
  }

  body[data-page="home"] .bf-hero {
    padding: 28px 0 18px;
  }

  body[data-page="home"] .bf-hero__grid {
    gap: 18px;
  }

  body[data-page="home"] .bf-eyebrow {
    max-width: 100%;
    padding: 7px 12px;
    font-size: 13px;
  }

  body[data-page="home"] .bf-h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: 1.08;
    letter-spacing: -.042em;
  }

  body[data-page="home"] .bf-h2 {
    margin-bottom: 18px;
    font-size: clamp(26px, 7.4vw, 31px);
  }

  body[data-page="home"] .bf-lead {
    max-width: none;
    font-size: 16px;
    line-height: 1.45;
  }

  body[data-page="home"] .bf-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  body[data-page="home"] .bf-hero__actions .bf-btn {
    width: 100%;
    min-height: 54px;
  }

  body[data-page="home"] .bf-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
  }

  body[data-page="home"] .bf-benefit {
    align-items: flex-start;
    min-height: 44px;
    font-size: 12px;
    line-height: 1.3;
  }

  body[data-page="home"] .bf-benefit::before {
    flex: 0 0 auto;
    margin-top: 5px;
  }

  body[data-page="home"] .bf-collage {
    min-height: 312px;
    margin-top: 2px;
    transform: none;
  }

  body[data-page="home"] .bf-collage__card {
    border-width: 4px;
    border-radius: 18px;
  }

  body[data-page="home"] .bf-collage__card span {
    left: 10px;
    bottom: 9px;
    padding: 5px 8px;
    font-size: 11px;
  }

  body[data-page="home"] .bf-collage__main {
    left: 28%;
    top: 16%;
    width: 45%;
    height: 64%;
  }

  body[data-page="home"] .bf-collage__a {
    left: 1%;
    top: 5%;
    width: 34%;
    height: 36%;
  }

  body[data-page="home"] .bf-collage__b {
    right: 0;
    top: 8%;
    width: 34%;
    height: 36%;
  }

  body[data-page="home"] .bf-collage__c {
    left: 5%;
    bottom: 11%;
    width: 35%;
    height: 36%;
  }

  body[data-page="home"] .bf-collage__d {
    right: 4%;
    bottom: 10%;
    width: 35%;
    height: 36%;
  }

  body[data-page="home"] .bf-collage__caption {
    bottom: 2px;
    width: max-content;
    max-width: 76%;
    padding: 7px 10px;
    border-radius: 14px;
    background: var(--accent-soft);
    font-size: 12px;
    text-align: center;
  }

  body[data-page="home"] .bf-pricing {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="home"] .bf-price-card {
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  body[data-page="home"] .bf-price-card:nth-child(3) {
    grid-column: auto;
  }

  body[data-page="home"] .bf-price-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
  }

  body[data-page="home"] .bf-price-card h3 .bf-eyebrow {
    margin-top: 8px;
    padding: 5px 9px;
    font-size: 11px;
  }

  body[data-page="home"] .bf-price {
    margin-bottom: 10px;
    font-size: 29px;
  }

  body[data-page="home"] .bf-price small {
    display: inline;
    font-size: 12px;
  }

  body[data-page="home"] .bf-price-card p,
  body[data-page="home"] .bf-price-card li {
    font-size: 13px;
    line-height: 1.38;
  }

  body[data-page="home"] .bf-price-card ul {
    margin: 8px 0 16px;
    padding-left: 15px;
  }

  body[data-page="home"] .bf-price-card .bf-btn {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
  }

  body[data-page="home"] .bf-bonus {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  body[data-page="home"] .bf-bonus strong {
    font-size: 17px;
  }

  body[data-page="home"] .bf-bonus span {
    display: block;
    font-size: 13px;
    line-height: 1.35;
  }

  body[data-page="home"] .bf-bonus .bf-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 14px;
  }

  body[data-page="home"] .bf-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0;
    margin-inline: 0;
    scroll-snap-type: none;
  }

  body[data-page="home"] .bf-steps::-webkit-scrollbar,
  body[data-page="home"] .bf-tabs::-webkit-scrollbar {
    display: none;
  }

  body[data-page="home"] .bf-step {
    flex: none;
    min-height: 154px;
    padding: 18px;
    scroll-snap-align: none;
  }

  body[data-page="home"] .bf-step__num {
    width: 32px;
    height: 32px;
  }

  body[data-page="home"] .bf-step h3 {
    margin: 22px 0 8px;
    font-size: 18px;
  }

  body[data-page="home"] .bf-step p {
    font-size: 14px;
    line-height: 1.42;
  }

  body[data-page="home"] .bf-tabs {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 8px;
    margin: 0 -16px 18px;
    scrollbar-width: none;
  }

  body[data-page="home"] .bf-chip {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 16px;
    font-size: 14px;
  }

  body[data-page="home"] .bf-scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="home"] .bf-scenario {
    min-height: 0;
    border-radius: 18px;
  }

  body[data-page="home"] .bf-scenario img {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 6;
  }

  body[data-page="home"] .bf-scenario__body {
    min-height: 54px;
    padding: 10px 12px;
  }

  body[data-page="home"] .bf-scenario__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.18;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body[data-page="home"] .bf-scenario__try {
    display: none;
  }

  body[data-page="home"] .bf-scenario__arrow {
    display: none;
  }

  body[data-page="home"] .bf-more {
    margin-top: 20px;
  }

  body[data-page="home"] .bf-more .bf-btn {
    width: 100%;
  }

  body[data-page="home"] .bf-faq {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="home"] .bf-faq summary {
    min-height: 52px;
    padding-inline: 16px;
    font-size: 15px;
  }

  body[data-page="home"] .bf-faq p {
    padding-inline: 16px;
    font-size: 14px;
  }

  body[data-page="home"] .bf-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  body[data-page="home"] .bf-cta .bf-btn {
    width: 100%;
  }

  body[data-page="home"] .bf-auth > .bf-btn--sm,
  .bf-auth > .bf-btn--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    max-width: 92px;
    height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    color: var(--white);
    font-size: 0;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
  }

  body[data-page="home"] .bf-auth > .bf-btn--sm::before,
  .bf-auth > .bf-btn--sm::before {
    content: "Войти";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }

  body[data-page="home"] .bf-steps {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-inline: 0 !important;
    scroll-snap-type: none !important;
  }

  body[data-page="home"] .bf-step {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    scroll-snap-align: none !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  body[data-page="home"] .bf-step {
    min-height: 0;
  }
}

@media (max-width: 370px) {
  body[data-page="home"] .bf-container {
    width: min(100% - 24px, 1360px);
  }

  body[data-page="home"] .bf-h1 {
    font-size: 33px;
  }

  body[data-page="home"] .bf-pricing {
    gap: 8px;
  }

  body[data-page="home"] .bf-price-card {
    padding: 14px;
  }

  body[data-page="home"] .bf-price-card p,
  body[data-page="home"] .bf-price-card li {
    font-size: 12px;
  }

  body[data-page="home"] .bf-tabs {
    padding-inline: 12px;
    margin-inline: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Final mobile layout: one compact shell instead of page-specific overrides. */
.bf-mobile-menu__toggle,
.bf-mobile-menu { display: none; }

@media (max-width: 767px) {
  :root { --header-height: 68px; }

  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body.bf-menu-open { overflow: hidden; }
  #bf-header { height: var(--header-height); min-height: var(--header-height); }
  .bf-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    min-height: var(--header-height);
    background: rgba(250, 249, 246, .97);
    box-shadow: 0 8px 24px rgba(16, 19, 29, .06);
  }
  .bf-header__inner {
    width: min(100% - 32px, 1360px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }
  .bf-logo { min-width: 0; }
  .bf-logo img { display: block; width: 132px; max-width: 100%; }
  .bf-nav { display: none !important; }
  .bf-auth { min-width: 0; gap: 8px; }
  .bf-auth > .bf-balance { min-width: 0; height: 42px; padding: 0 13px; font-size: 15px; white-space: nowrap; }
  .bf-auth > .bf-btn--sm,
  .bf-auth > .bf-profile { display: none; }

  .bf-mobile-menu__toggle {
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: var(--dark);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .bf-mobile-menu__toggle span:not(.bf-sr-only) { display: block; width: 19px; height: 2px; border-radius: 2px; background: #fff; }
  .bf-mobile-menu__toggle:focus-visible { outline: 3px solid rgba(255, 184, 0, .4); outline-offset: 2px; }
  .bf-mobile-menu[hidden] { display: none; }
  .bf-mobile-menu {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 49;
    display: block;
    background: rgba(16, 19, 29, .22);
  }
  .bf-mobile-menu__panel {
    width: min(100% - 32px, 420px);
    margin: 12px auto 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(16, 19, 29, .15);
  }
  .bf-mobile-menu__nav,
  .bf-mobile-menu__actions { display: grid; gap: 4px; }
  .bf-mobile-menu__actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
  .bf-mobile-menu a,
  .bf-mobile-menu button {
    display: flex;
    min-height: 48px;
    width: 100%;
    padding: 0 15px;
    align-items: center;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--text);
    font: 600 16px/1.25 var(--font-family-base);
    text-decoration: none;
    text-align: left;
  }
  .bf-mobile-menu a[aria-current="page"] { background: var(--accent-soft); }
  .bf-mobile-menu a:hover,
  .bf-mobile-menu button:hover { background: var(--surface-soft); }
  .bf-mobile-menu__login { background: var(--dark) !important; color: #fff !important; justify-content: center; text-align: center !important; }

  body[data-page="home"] .bf-container,
  body[data-page="generate"] .bf-container,
  body[data-page="cabinet"] .bf-container { width: min(100% - 32px, 1360px); }
  .bf-section { padding: 40px 0; }
  .bf-hero { padding: 28px 0 18px; }
  .bf-h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.08; }
  .bf-h2 { font-size: clamp(26px, 7.5vw, 31px); line-height: 1.12; }
  .bf-lead { font-size: 16px; line-height: 1.45; }
  .bf-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bf-pricing, .bf-steps, .bf-faq, .bf-cabinet-grid { grid-template-columns: 1fr; gap: 12px; }
  .bf-price-card, .bf-step { min-height: 0; padding: 16px; border-radius: 20px; }
  .bf-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bf-tabs::-webkit-scrollbar { display: none; }
  .bf-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bf-scenario { min-height: 0; border-radius: 18px; }
  .bf-scenario img { height: auto; min-height: 0; aspect-ratio: 5 / 6; object-fit: cover; }
  .bf-scenario__title { padding: 12px; font-size: 14px; line-height: 1.2; }
  .bf-scenario__try, .bf-scenario__arrow { display: none !important; }
  .bf-cta { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .bf-footer { padding: 22px 0; }
  .bf-footer__inner { align-items: center; gap: 12px; }
  .bf-footer__brand img { width: 132px; }
  .bf-footer__meta { gap: 10px 14px; font-size: 12px; }
}

@media (max-width: 390px) {
  .bf-header__inner { width: min(100% - 24px, 1360px); }
  .bf-logo img { width: 118px; }
  .bf-auth > .bf-balance { max-width: 76px; overflow: hidden; }
  .bf-container { width: min(100% - 24px, 1360px); }
}
