.bfh-homepage {
  --bfh-primary: #0b4f8a;
  --bfh-dark: #0a2037;
  --bfh-muted: #64748b;
  --bfh-border: #e5eaf0;
  --bfh-soft: #f5f8fb;
  --bfh-radius: 18px;
}

.bfh-section { padding: 64px 0; position: relative; }
.bfh-section .container { position: relative; z-index: 2; }
.bfh-section-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.bfh-section-heading h1,
.bfh-section-heading h2 { color: var(--bfh-dark); margin: 8px 0 12px; line-height: 1.15; }
.bfh-section-heading h1 { font-size: clamp(34px, 5vw, 58px); }
.bfh-section-heading h2 { font-size: clamp(28px, 3vw, 42px); }
.bfh-section-heading p { color: var(--bfh-muted); font-size: 16px; margin-bottom: 0; }
.bfh-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--bfh-primary); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.bfh-eyebrow:before { content: ''; width: 28px; height: 2px; background: currentColor; display: inline-block; }

.bfh-hero { min-height: 650px; display: flex; align-items: center; background: linear-gradient(90deg, #091f38, #123b63); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.bfh-hero .bfh-section-heading { text-align: left; margin-left: 0; margin-bottom: 24px; }
.bfh-hero .bfh-section-heading h1,
.bfh-hero .bfh-section-heading p { color: #fff; }
.bfh-hero .bfh-eyebrow { color: #9ed0ff; }
.bfh-hero-bullets { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.bfh-hero-bullets li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.bfh-hero-bullets i { margin-top: 4px; color: #66d69e; }
.bfh-hero-product { text-align: center; }
.bfh-hero-product-img { max-height: 460px; width: auto; filter: drop-shadow(0 28px 40px rgba(0,0,0,.28)); }
.bfh-button { border-radius: 999px; }

.bfh-advantages { padding: 0; margin-top: -42px; z-index: 3; }
.bfh-advantage-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: var(--bfh-radius); box-shadow: 0 18px 45px rgba(8,31,54,.14); overflow: hidden; }
.bfh-advantage-item { padding: 24px 18px; border-right: 1px solid var(--bfh-border); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.bfh-advantage-item:last-child { border-right: 0; }
.bfh-advantage-item i { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(11,79,138,.09); color: var(--bfh-primary); font-size: 18px; }
.bfh-advantage-item strong { color: var(--bfh-dark); font-size: 16px; }
.bfh-advantage-item span { color: var(--bfh-muted); font-size: 14px; line-height: 1.45; }

.bfh-categories,
.bfh-standards,
.bfh-news { background: #fff; }
.bfh-featured-products,
.bfh-applications,
.bfh-docs-cta { background: var(--bfh-soft); }

.bfh-slide-inner { padding: 10px; height: 100%; }
.bfh-category-card,
.bfh-product-card,
.bfh-post-card,
.bfh-standard-card,
.bfh-app-card,
.bfh-partner-logo,
.bfh-quote-card { background: #fff; border: 1px solid var(--bfh-border); border-radius: var(--bfh-radius); box-shadow: 0 10px 28px rgba(8,31,54,.06); height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bfh-category-card:hover,
.bfh-product-card:hover,
.bfh-post-card:hover,
.bfh-standard-card:hover,
.bfh-app-card:hover,
.bfh-partner-logo:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(8,31,54,.12); border-color: rgba(11,79,138,.25); }

.bfh-category-card a { display: block; padding: 18px; color: inherit; text-align: center; }
.bfh-category-card h3 { margin: 16px 0 6px; font-size: 18px; color: var(--bfh-dark); }
.bfh-category-card span { color: var(--bfh-muted); font-size: 14px; }
.bfh-category-img { width: 100%; height: 210px; object-fit: contain; }
.bfh-category-placeholder { height: 210px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--bfh-soft); color: var(--bfh-primary); font-size: 46px; }

.bfh-product-image,
.bfh-post-image { display: block; overflow: hidden; border-radius: var(--bfh-radius) var(--bfh-radius) 0 0; background: var(--bfh-soft); }
.bfh-product-image img,
.bfh-post-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .25s ease; }
.bfh-product-card:hover img,
.bfh-post-card:hover img { transform: scale(1.04); }
.bfh-product-body,
.bfh-post-body { padding: 20px; }
.bfh-product-body h3,
.bfh-post-body h3 { font-size: 18px; line-height: 1.35; margin: 0 0 10px; color: var(--bfh-dark); }
.bfh-product-body p,
.bfh-post-body p { color: var(--bfh-muted); margin-bottom: 14px; }
.bfh-product-price { color: var(--bfh-muted); margin-bottom: 10px; }
.bfh-product-price span { color: #d43c2f; font-weight: 700; }
.bfh-text-link { color: var(--bfh-primary); font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }

.bfh-standard-card { padding: 26px; }
.bfh-standard-code { width: 72px; height: 72px; border-radius: 18px; background: var(--bfh-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.bfh-standard-card h3,
.bfh-app-card h3 { color: var(--bfh-dark); font-size: 20px; margin-bottom: 10px; }
.bfh-standard-card p,
.bfh-app-card p { color: var(--bfh-muted); }

.bfh-app-card { padding: 26px; }
.bfh-app-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(11,79,138,.09); color: var(--bfh-primary); font-size: 24px; margin-bottom: 18px; }
.bfh-app-icon-img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 18px; }

.bfh-partner-logo { min-height: 124px; padding: 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; }
.bfh-partner-logo-img { max-height: 62px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s ease, opacity .2s ease; }
.bfh-partner-logo:hover .bfh-partner-logo-img { filter: grayscale(0); opacity: 1; }
.bfh-partner-logo span { color: var(--bfh-dark); font-weight: 700; font-size: 14px; }

.bfh-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bfh-heading-row .bfh-section-heading { text-align: left; margin: 0; }
.bfh-post-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--bfh-muted); font-size: 13px; margin-bottom: 10px; }
.bfh-post-meta span { color: var(--bfh-primary); font-weight: 700; }

.bfh-doc-list { display: grid; gap: 14px; }
.bfh-doc-item { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--bfh-border); border-radius: 16px; }
.bfh-doc-item i { color: var(--bfh-primary); font-size: 24px; margin-top: 4px; }
.bfh-doc-item h3 { font-size: 17px; margin: 0 0 5px; color: var(--bfh-dark); }
.bfh-doc-item p { color: var(--bfh-muted); margin: 0; }
.bfh-quote-card { padding: 32px; background: var(--bfh-dark); color: #fff; border: 0; }
.bfh-quote-card h2,
.bfh-quote-card p { color: #fff; }
.bfh-quote-img { max-height: 180px; width: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 16px 28px rgba(0,0,0,.26)); }
.bfh-hotline { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin: 18px 0 24px; color: #fff; }
.bfh-hotline i { color: #66d69e; }

.bfh-popup { display: none; position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.bfh-popup.is-visible { display: flex; }
.bfh-popup-overlay { position: absolute; inset: 0; background: rgba(5,15,28,.72); }
.bfh-popup-dialog { position: relative; z-index: 2; width: min(620px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.bfh-popup-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; color: var(--bfh-muted); }
.bfh-popup-open { overflow: hidden; }

.bfh-slider-fallback { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bfh-slider-fallback .bfh-slide-inner { padding: 0; }
.bfh-partner-slider.bfh-slider-fallback { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bfh-news-slider.bfh-slider-fallback { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 849px) {
  .bfh-section { padding: 48px 0; }
  .bfh-hero { min-height: auto; padding-top: 70px; padding-bottom: 80px; }
  .bfh-advantage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfh-advantage-item { border-bottom: 1px solid var(--bfh-border); }
  .bfh-heading-row { display: block; }
  .bfh-heading-row .button { margin-top: 18px; }
  .bfh-slider-fallback,
  .bfh-news-slider.bfh-slider-fallback { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfh-partner-slider.bfh-slider-fallback { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 549px) {
  .bfh-section-heading { text-align: left; }
  .bfh-advantage-strip,
  .bfh-slider-fallback,
  .bfh-news-slider.bfh-slider-fallback,
  .bfh-partner-slider.bfh-slider-fallback { grid-template-columns: 1fr; }
  .bfh-advantage-item { border-right: 0; }
  .bfh-category-img,
  .bfh-category-placeholder { height: 180px; }
}
