: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 12px 32px rgba(16, 19, 29, 0.08);
  --shadow-hover: 0 18px 42px rgba(16, 19, 29, 0.13);
  --header-height: 84px;
}

* { 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 {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  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: 230px 1fr 330px;
  align-items: center;
  gap: 24px;
}
.bf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bf-logo img {
  width: 168px;
  height: auto;
  object-fit: contain;
}
.bf-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
}
.bf-nav a {
  position: relative;
  padding: 30px 0 28px;
  color: var(--muted);
  font-weight: 600;
  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: 18px;
  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-height: 48px;
  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: 18px;
  white-space: nowrap;
}
.bf-profile {
  position: relative;
}
.bf-profile__button {
  height: 48px;
  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-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: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  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--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: 44px; padding-inline: 18px; border-radius: 14px; }
.bf-btn--wide { width: 100%; }

.bf-section { padding: 72px 0; }
.bf-section--compact { padding: 48px 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: 22px 0 22px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
}
.bf-h1 mark { background: none; color: var(--accent); }
.bf-h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 700;
}
.bf-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.bf-hero {
  padding: 68px 0 48px;
  overflow: hidden;
}
.bf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: 52px;
}
.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: 560px;
}
.bf-collage__card {
  position: absolute;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 28px;
  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: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  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 18px; font-size: 22px; }
.bf-price {
  margin: 0 0 16px;
  font-size: 42px;
  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: 230px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.bf-step__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
}
.bf-step h3 { margin: 46px 0 10px; font-size: 24px; 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: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 20px;
  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: 28px;
}
.bf-scenario {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bf-scenario:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.bf-scenario img {
  width: 100%;
  height: calc(100% - 76px);
  min-height: 360px;
  object-fit: cover;
  transition: transform .22s ease;
}
.bf-scenario:hover img { transform: scale(1.025); }
.bf-scenario__body {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
}
.bf-scenario__title { font-size: 22px; line-height: 1.18; font-weight: 700; }
.bf-scenario__try { color: rgba(16, 19, 29, .42); font-size: 15px; font-weight: 700; }
.bf-scenario__arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}
.bf-more { display: flex; justify-content: center; margin-top: 30px; }

.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: 36px;
  border-radius: 26px;
  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(28px, 3vw, 42px); letter-spacing: -.03em; }
.bf-cta p { margin: 0; color: rgba(255,255,255,.72); font-weight: 500; }

.bf-footer {
  padding: 42px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.bf-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 72px;
}
.bf-footer img { width: 150px; margin-bottom: 14px; }
.bf-footer p { margin: 0; color: var(--faint); font-size: 14px; font-weight: 500; }
.bf-footer h3 { margin: 0 0 14px; font-size: 15px; }
.bf-footer a { display: block; margin: 10px 0; color: var(--muted); font-weight: 600; }

.bf-page-head {
  padding: 64px 0 28px;
}
.bf-page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.bf-page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; 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: 28px;
}
.bf-user-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bf-user-line .bf-avatar { width: 64px; height: 64px; font-size: 30px; }
.bf-user-line h2 { margin: 0; font-size: 30px; 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: 42px; line-height: 1; letter-spacing: -.04em; }
.bf-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.bf-info-card { padding: 28px; min-height: 170px; }
.bf-info-card h2,
.bf-history h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.025em; }
.bf-info-card p { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.bf-history { margin-top: 22px; padding: 28px; }
.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-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-doc {
  max-width: 960px;
  margin: 0 auto 72px;
  padding: 42px;
}
.bf-doc h1 { margin: 0 0 18px; font-size: 42px; letter-spacing: -.035em; }
.bf-doc h2 { margin: 34px 0 12px; font-size: 26px; }
.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;
}

@media (max-width: 1100px) {
  .bf-header__inner { grid-template-columns: 190px 1fr auto; }
  .bf-logo img { width: 145px; }
  .bf-nav { gap: 24px; }
  .bf-hero__grid { grid-template-columns: 1fr; }
  .bf-collage { min-height: 520px; }
  .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: 760px) {
  :root { --header-height: 68px; }
  .bf-container { width: min(100% - 32px, 1360px); }
  .bf-header__inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .bf-logo img { width: 112px; }
  .bf-nav { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 8px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-card); }
  .bf-nav a { padding: 12px 6px; text-align: center; border-radius: 16px; font-size: 14px; }
  .bf-nav a[aria-current="page"] { background: var(--accent-soft); }
  .bf-nav a[aria-current="page"]::after { display: none; }
  .bf-auth .bf-profile__name { display: none; }
  .bf-balance { min-height: 42px; padding: 0 14px; font-size: 15px; }
  .bf-profile__button { height: 42px; padding-inline: 8px; }
  .bf-profile__button svg { display: none; }
  .bf-hero { padding-top: 42px; }
  .bf-h1 { font-size: 40px; }
  .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: 360px; }
  .bf-scenario img { min-height: 290px; }
  .bf-bonus,
  .bf-cta,
  .bf-footer__inner { grid-template-columns: 1fr; }
  .bf-bonus { align-items: stretch; }
  .bf-footer { padding-bottom: 100px; }
  .bf-doc { padding: 26px; margin-bottom: 90px; }
  .bf-doc h1 { font-size: 32px; }
}

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