/* Статья-кейс «Белорусский фермер» (/articles/belorusski-fermer-works/)
   Дизайн-система: Manrope, #4B328C, #FF9E3D, #211B2D, #443F50, #F7F5FB.
   Изолирована префиксом .bf / .bf- и хранится внутри папки статьи. */

.bf {
  --bf-purple: #4B328C;
  --bf-purple-dark: #37236B;
  --bf-purple-soft: #F7F5FB;
  --bf-purple-tint: #EDE8F8;
  --bf-orange: #FF9E3D;
  --bf-orange-hover: #F08D29;
  --bf-ink: #211B2D;
  --bf-text: #443F50;
  --bf-muted: #6C667A;
  --bf-border: #E4DDF0;
  --bf-white: #FFFFFF;
  font-family: Manrope, Onest, Arial, sans-serif;
  color: var(--bf-text);
  background: var(--bf-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
.bf [id] { scroll-margin-top: 104px; }
.bf-w { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.bf-narrow { max-width: 780px; }

.bf h1, .bf h2, .bf h3, .bf h4 {
  font-family: Manrope, Onest, Arial, sans-serif;
  color: var(--bf-ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.bf h1 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.14; font-weight: 800; margin-bottom: 20px; }
.bf h2 { font-size: clamp(24px, 2.8vw, 35px); line-height: 1.2; font-weight: 800; margin-bottom: 18px; }
.bf h3 { font-size: clamp(19px, 1.65vw, 23px); line-height: 1.3; font-weight: 700; margin-bottom: 12px; }
.bf h4 { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.32; font-weight: 700; margin-bottom: 12px; }

.bf p {
  font-family: Manrope, Onest, Arial, sans-serif;
  font-size: clamp(16px, 1.08vw, 17.5px);
  line-height: 1.66;
  color: var(--bf-text);
  margin: 0 0 16px;
}
.bf p:last-child { margin-bottom: 0; }
.bf strong, .bf b { color: var(--bf-ink); font-weight: 700; }

.bf a { color: var(--bf-purple); text-decoration: none; }
.bf a:focus-visible, .bf button:focus-visible, .bf summary:focus-visible {
  outline: 2px solid var(--bf-purple);
  outline-offset: 3px;
}

/* Sections */
.bf-s { padding: clamp(44px, 5vw, 70px) 0; }
.bf-s-soft { background: var(--bf-purple-soft); }
.bf-s-compact { padding: clamp(32px, 4vw, 50px) 0; }

/* Breadcrumbs */
.bf-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bf-muted);
  margin: 0 0 20px;
}
.bf-bc a { color: var(--bf-muted); text-decoration: none; transition: color .15s; }
.bf-bc a:hover { color: var(--bf-purple); }
.bf-bc-sep { color: #B8AFC9; }

/* Article Hero (editorial, no landing CTA button) */
.bf-hero {
  padding: calc(var(--uh-top, 20px) + var(--uh-h, 80px) + 42px) 0 clamp(38px, 4.5vw, 60px);
  background: linear-gradient(180deg, #FAF8FE 0%, #FFFFFF 48%);
  border-bottom: 1px solid var(--bf-border);
}
.bf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.bf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bf-purple-tint);
  color: var(--bf-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.bf-lead {
  font-size: clamp(16.5px, 1.18vw, 18.5px);
  line-height: 1.62;
  color: var(--bf-text);
  margin: 0 0 14px;
}
.bf-art {
  margin: 0;
}
.bf-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  mix-blend-mode: multiply;
}
.bf-art figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bf-muted);
  text-align: center;
}

/* Buttons - родной стиль кнопок сайта uds-consulting.ru (.ar-btn / .ar-btn-w / .ar-btn-o) */
.bf a.bf-btn, .bf button.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(14px, 1.1vw, 17px) clamp(24px, 2vw, 34px);
  border-radius: 40px;
  font-family: Manrope, Onest, Arial, sans-serif;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid #5b57ce;
  transition: filter .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.bf a.bf-btn-primary, .bf button.bf-btn-primary {
  background: #5b57ce;
  border-color: #5b57ce;
  color: var(--bf-white);
}
.bf a.bf-btn-primary:hover, .bf button.bf-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.bf a.bf-btn-white, .bf button.bf-btn-white {
  background: var(--bf-white);
  border-color: var(--bf-white);
  color: #5b57ce;
}
.bf a.bf-btn-white:hover, .bf button.bf-btn-white:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.bf a.bf-btn-outline-light {
  background: transparent;
  color: var(--bf-white);
  border-color: rgba(255, 255, 255, 0.75);
}
.bf a.bf-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--bf-white);
}

/* Split text + illustration grid */
.bf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.bf-mech-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

/* Context section (1 -> 18) */
.bf-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.bf-scale-card {
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  border-radius: 18px;
  padding: 22px 24px;
}
.bf-scale-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin-bottom: 14px;
}
.bf-scale-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.bf-scale-point b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--bf-ink);
  font-variant-numeric: tabular-nums;
}
.bf-scale-point span {
  display: block;
  font-size: 13px;
  color: var(--bf-muted);
  margin-top: 2px;
}
.bf-scale-arrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--bf-orange);
  flex-shrink: 0;
}
.bf-scale-note {
  font-size: 13.5px !important;
  line-height: 1.48 !important;
  color: var(--bf-muted) !important;
  margin: 0 !important;
}

/* Four mechanics */
.bf-mech-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.bf-mech {
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  border-top: 3px solid var(--bf-purple);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 6px 24px rgba(33, 27, 45, 0.04);
}
.bf-mech-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}
.bf-mech-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-purple);
}
.bf-mech-head h3 { margin: 0; }
.bf-mech-body { max-width: 780px; }

.bf-stat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bf-ink);
}
.bf-stat-inline b {
  color: var(--bf-purple);
  font-size: 17px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Documentary promo card (2023 inside Mechanic 2) */
.bf-doc-card {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  border-left: 4px solid var(--bf-purple);
}
.bf-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.bf-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bf-ink);
}
.bf-tag-accent {
  background: #FFF3E5;
  border-color: #FFD3A5;
  color: #6B3A00;
}
.bf-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bf-purple);
  border-bottom: 1.5px solid rgba(75, 50, 140, 0.35);
  padding-bottom: 2px;
  transition: border-color .15s, color .15s;
}
.bf-ext-link:hover {
  color: var(--bf-purple-dark);
  border-color: var(--bf-purple-dark);
}

/* Partner collaboration sub-block (horizontal full-width layout!) */
.bf-partner {
  margin-top: 24px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 18px;
  background: var(--bf-white);
  border: 1.5px solid #D5CBEB;
  box-shadow: 0 10px 30px rgba(75, 50, 140, 0.06);
}
.bf-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFF3E5;
  border: 1px solid #FFD3A5;
  color: #6B3A00;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.bf-partner-copy {
  max-width: 820px;
}
.bf-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.bf-fact-chip {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bf-purple);
}
.bf-shot-wide {
  margin: 22px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
}
.bf-shot-wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #E2DCEB;
  background: var(--bf-white);
}
.bf-shot-wide figcaption {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--bf-muted);
}

/* RFM split with illustration + cards */
.bf-rfm-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-bottom: 22px;
}
.bf-rfm-panel {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bf-rfm-card {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--bf-border);
  background: var(--bf-purple-soft);
}
.bf-rfm-card-main {
  background: linear-gradient(150deg, #F7F5FB 0%, #EDE7FA 100%);
  border: 1.5px solid var(--bf-purple);
}
.bf-rfm-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin-bottom: 8px;
}
.bf-rfm-card-main .bf-rfm-tag { color: var(--bf-purple); }
.bf-rfm-big {
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--bf-ink);
  font-variant-numeric: tabular-nums;
}
.bf-rfm-card-main .bf-rfm-big { color: var(--bf-purple); }
.bf-rfm-sub {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bf-text);
}
.bf-rfm-bar {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: #DFD8EC;
  overflow: hidden;
}
.bf-rfm-fill {
  height: 100%;
  border-radius: 999px;
  background: #8B7EB0;
}
.bf-rfm-card-main .bf-rfm-fill { background: var(--bf-purple); }
.bf-takeaway {
  padding: 18px 22px;
  border-radius: 14px;
  background: #FFF8F0;
  border: 1px solid #F7D8B6;
  border-left: 4px solid var(--bf-orange);
}
.bf-takeaway p { margin: 0; color: var(--bf-ink); }

/* Results KPI Grid */
.bf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 24px;
}
.bf-kpi {
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 8px 24px rgba(33, 27, 45, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-kpi-val {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--bf-purple);
  font-variant-numeric: tabular-nums;
}
.bf-kpi p { font-size: 15.5px; line-height: 1.58; margin: 0; }

/* 3 Niches cards */
.bf-niche-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 22px;
}
.bf-niche {
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  border-radius: 18px;
  padding: 24px 22px;
}
.bf-niche h3 {
  font-size: 18.5px;
  color: var(--bf-purple);
  margin-bottom: 10px;
}
.bf-niche p { font-size: 15.5px; line-height: 1.58; margin: 0; }

/* Telegram-блок по образцу Екатеринбурга (.sp-tg.ty-tg) */
.bf-tg-sec {
  padding: clamp(16px, 2.4vw, 32px) 0 clamp(24px, 3vw, 40px);
}
.bf .sp-tg {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  min-height: 256px;
  border-radius: 28px;
  background: linear-gradient(120deg, #f3f0ff, #fdf1e4);
  padding: 34px 40px;
  display: flex;
  align-items: center;
}
.bf .sp-tg-i {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}
.bf .sp-tg-t {
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.bf .sp-tg-t h2 {
  margin: 0 0 10px !important;
  font-size: clamp(22px, 2.3vw, 28px) !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  color: #2b2150 !important;
  text-align: left;
}
.bf .sp-tg-t p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: #3d335e;
}
@media (max-width: 700px) {
  .bf .sp-tg {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px 0;
    border-radius: 22px;
  }
  .bf .sp-tg-i {
    position: static;
    order: 2;
    width: calc(100% + 44px);
    max-width: none;
    height: auto;
    margin: 14px -22px 0;
  }
  .bf .sp-tg-t {
    max-width: none;
    padding-bottom: 6px;
  }
  .bf .sp-tg-t h2 {
    font-size: 22px !important;
  }
}

/* Read more / Спокойная редакционная перелинковка в самом низу */
.bf-more {
  padding: clamp(28px, 3vw, 44px) 0 clamp(44px, 4.5vw, 64px);
  border-top: 1px solid var(--bf-border);
  margin-top: clamp(16px, 2vw, 28px);
}
.bf h2.bf-more-title {
  font-size: clamp(18px, 1.45vw, 20px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: var(--bf-muted);
  margin: 0 0 18px;
}
.bf-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bf-more-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bf-white);
  border: 1px solid var(--bf-border);
  text-decoration: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.bf-more-card:hover {
  border-color: #C9BBE6;
  background: var(--bf-purple-soft);
}
.bf-more-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bf-muted);
}
.bf-more-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--bf-ink);
  transition: color .15s ease;
}
.bf-more-card:hover .bf-more-name {
  color: #5b57ce;
}
.bf-more-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bf-muted);
  margin: 0;
}

/* Mid CTA (Demo with illustration) */
.bf-demo {
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  border-left: 5px solid var(--bf-purple);
  border-radius: 24px;
  padding: clamp(26px, 3.6vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
}
.bf-checklist {
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bf-checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.52;
  color: var(--bf-text);
}
.bf-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bf-purple) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center/11px no-repeat;
}
.bf-demo-act {
  margin-top: 22px;
}

/* FAQ */
.bf-faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 22px;
}
.bf-faq-item {
  background: var(--bf-purple-soft);
  border: 1px solid var(--bf-border);
  border-radius: 16px;
  padding: 0;
  transition: border-color .15s;
}
.bf-faq-item[open] {
  background: var(--bf-white);
  border-color: #C9BBE6;
  box-shadow: 0 6px 20px rgba(33, 27, 45, 0.04);
}
.bf-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.38;
  color: var(--bf-ink);
  position: relative;
}
.bf-faq-item summary::-webkit-details-marker { display: none; }
.bf-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  color: var(--bf-purple);
}
.bf-faq-item[open] summary::after { content: "\2212"; }
.bf-faq-ans {
  padding: 0 22px 18px;
}
.bf-faq-ans p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bf-text);
  margin: 0;
}

/* Final CTA - градиент как в .ar-cta на всём сайте */
.bf-final {
  background: linear-gradient(120deg, #3d335e, #5b57ce);
  color: var(--bf-white);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: center;
  box-shadow: 0 18px 46px rgba(61, 51, 94, 0.24);
}
.bf-final h2 { color: var(--bf-white); margin-bottom: 14px; }
.bf-final p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.bf-final-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.bf-final-btns .bf-btn { width: 100%; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .bf-hero-grid,
  .bf-context-grid,
  .bf-split,
  .bf-mech-split,
  .bf-rfm-intro,
  .bf-demo,
  .bf-final { grid-template-columns: 1fr; }
  .bf-niche-grid,
  .bf-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bf-w { padding: 0 18px; }
  .bf-hero { padding-top: calc(var(--uh-top, 14px) + var(--uh-h, 68px) + 28px); }
  .bf-rfm-panel, .bf-kpi-grid { grid-template-columns: 1fr; }
  .bf-demo-act .bf-btn { width: 100%; }
  .bf-mech { padding: 20px 18px; }
  .bf-stat-inline { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .bf-partner { padding: 18px 16px; }
  .bf-shot-wide { padding: 8px; }
  .bf-doc-card { padding: 18px 16px; }
  .bf-faq-item summary { padding: 16px 46px 16px 16px; }
  .bf-faq-ans { padding: 0 16px 16px; }
  .bf-final { padding: 26px 20px; border-radius: 20px; }
  .bf-demo { padding: 24px 18px; border-radius: 20px; }
  .bf-more-card { padding: 16px; }
}
