:root {
  --bf-navy: #071a33;
  --bf-navy-2: #0b2342;
  --bf-orange: #ff7a00;
  --bf-orange-2: #ff9a2b;
  --bf-text: #142033;
  --bf-muted: #637083;
  --bf-border: #dfe5ec;
  --bf-soft: #f4f7fb;
  --bf-white: #ffffff;
  --bf-green: #1f8d43;
  --bf-red: #e33131;
  --bf-shadow: 0 16px 36px rgba(13, 31, 56, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bf-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bf-soft);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.bf-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bf-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(16px, 3vw, 42px);
  color: var(--bf-white);
  background: #06162d;
  box-shadow: 0 10px 24px rgba(4, 12, 24, 0.28);
}

.bf-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.bf-brand-logo {
  display: block;
  width: 176px;
  height: auto;
}

.bf-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 30px);
  flex: 1;
}

.bf-nav a {
  color: #f5f8ff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.bf-nav a:hover {
  color: var(--bf-orange-2);
}

.bf-cta,
.bf-button,
.bf-help-box a,
.bf-help-grid a,
.bf-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: var(--bf-white);
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, var(--bf-orange), var(--bf-orange-2));
  cursor: pointer;
}

.bf-cta {
  min-width: max-content;
  font-size: 0.82rem;
}

.bf-hero {
  min-height: 520px;
  color: var(--bf-white);
  background:
    linear-gradient(90deg, rgba(5, 16, 31, 0.94), rgba(5, 16, 31, 0.68) 45%, rgba(5, 16, 31, 0.3)),
    var(--bf-hero-image, url("hero-house.svg")) center / cover no-repeat;
}

.bf-hero-shade {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(3, 12, 25, 0.04), rgba(3, 12, 25, 0.45));
}

.bf-hero-inner {
  max-width: 1180px;
  padding: 62px 0 42px;
}

.bf-kicker {
  margin: 0 0 10px;
  color: #d7e2f1;
  font-weight: 800;
}

.bf-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.4rem, 5.3vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.bf-hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #edf3fb;
  font-size: 1.08rem;
  line-height: 1.58;
}

.bf-search {
  display: flex;
  width: min(690px, 100%);
  margin-top: 34px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bf-white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.bf-search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  color: var(--bf-text);
  font: inherit;
}

.bf-search button {
  width: 52px;
  border: 0;
  border-radius: 6px;
  color: var(--bf-white);
  font-size: 1.25rem;
  background: var(--bf-orange);
  cursor: pointer;
}

.bf-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.bf-popular span {
  font-size: 0.82rem;
  font-weight: 900;
}

.bf-popular a {
  padding: 7px 12px;
  border-radius: 4px;
  color: #f4f8ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
}

.bf-section {
  padding: 34px 0;
}

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

.bf-section-head h2,
.bf-center-head h1,
.bf-content-card h2,
.bf-services h2,
.bf-contact-form h1 {
  margin: 0;
  color: var(--bf-text);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.bf-section-head a {
  color: #0b4aa5;
  font-weight: 900;
  text-decoration: none;
}

.bf-category-grid,
.bf-tool-row,
.bf-article-row,
.bf-calculator-grid,
.bf-help-grid,
.bf-proof-grid,
.bf-contact-stats {
  display: grid;
  gap: 16px;
}

.bf-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bf-tool-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-article-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-category-card,
.bf-tool-card,
.bf-article-card,
.bf-content-card,
.bf-calc-card,
.bf-services article,
.bf-help-grid article,
.bf-sidebar > *,
.bf-contact-form,
.bf-services {
  border: 1px solid var(--bf-border);
  border-radius: 7px;
  background: var(--bf-white);
  box-shadow: 0 6px 14px rgba(20, 32, 51, 0.04);
}

.bf-category-card,
.bf-tool-card,
.bf-article-card,
.bf-calc-card {
  padding: 16px;
}

.bf-category-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bf-article-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bf-category-card:hover,
.bf-article-card:hover {
  border-color: #b8c9dd;
  box-shadow: 0 12px 26px rgba(20, 32, 51, 0.12);
  transform: translateY(-2px);
}

.bf-category-card img,
.bf-article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 5px;
}

.bf-category-card h3,
.bf-tool-card h3,
.bf-article-card h3,
.bf-calc-card h2,
.bf-help-grid h3 {
  margin: 14px 0 8px;
  color: var(--bf-text);
  font-size: 1rem;
  line-height: 1.28;
}

.bf-category-card p,
.bf-tool-card p,
.bf-article-card p,
.bf-calc-card p,
.bf-help-grid p,
.bf-help-box p {
  margin: 0;
  color: var(--bf-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bf-tool-card a,
.bf-article-card a,
.bf-article-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #0b4aa5;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.bf-tool-icon,
.bf-calc-icon {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--bf-navy);
  border-radius: 7px;
  background:
    linear-gradient(45deg, transparent 45%, var(--bf-navy) 46%, var(--bf-navy) 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--bf-navy) 46%, var(--bf-navy) 54%, transparent 55%);
}

.bf-article-card span {
  display: block;
  margin-top: 12px;
  color: #5f6d7e;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-proof {
  margin-top: 20px;
  color: var(--bf-white);
  background: var(--bf-navy);
}

.bf-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 30px 0;
}

.bf-proof strong,
.bf-proof span {
  display: block;
}

.bf-proof strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.bf-proof span {
  color: #d3dfef;
  font-size: 0.88rem;
}

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

.bf-shop-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 7px;
  padding: 34px;
  color: var(--bf-white);
}

.bf-shop-panel h2 {
  margin: 0;
  font-size: 1.9rem;
}

.bf-shop-panel p {
  max-width: 420px;
  color: #f4f8ff;
}

.bf-shop-panel ul {
  margin: 18px 0;
  padding-left: 18px;
}

.bf-shop-panel img {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 45%;
  max-height: 220px;
}

.bf-shop-dark {
  background: linear-gradient(135deg, #071a33, #112f54);
}

.bf-shop-orange {
  background: linear-gradient(135deg, #ff7a00, #f59f45);
}

.bf-button-light {
  color: var(--bf-orange);
  background: var(--bf-white);
}

.bf-page {
  padding: 34px 0 58px;
}

.bf-page-narrow {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.bf-article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.bf-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.bf-index,
.bf-help-box {
  padding: 18px;
}

.bf-index strong {
  display: block;
  margin-bottom: 12px;
}

.bf-index a {
  display: block;
  padding: 8px 0;
  color: #40506a;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.bf-help-box a {
  margin-top: 14px;
  width: 100%;
}

.bf-article-main {
  display: grid;
  gap: 18px;
}

.bf-breadcrumb,
.bf-meta {
  color: var(--bf-muted);
  font-size: 0.84rem;
  text-align: center;
}

.bf-article-main > h1 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.bf-subtitle {
  margin: 0;
  color: #33435a;
  text-align: center;
}

.bf-wide-image {
  width: 100%;
  aspect-ratio: 16 / 5.6;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: var(--bf-shadow);
}

.bf-content-card {
  padding: 24px;
}

.bf-content-card > p {
  color: var(--bf-muted);
}

.bf-page-custom-content {
  margin-top: 24px;
}

.bf-page-custom-content .bf-content-card {
  line-height: 1.7;
}

.bf-article-search-result {
  margin-bottom: 18px;
  border-color: #b8c9dd;
  background: #f7fbff;
}

.bf-article-search-result span {
  display: block;
  margin-bottom: 6px;
  color: #0b4aa5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-ratgeber-list {
  margin-bottom: 18px;
}

.bf-ratgeber-list .bf-article-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-wp-content {
  line-height: 1.7;
}

.bf-wp-content h2,
.bf-wp-content h3 {
  margin-top: 28px;
}

.bf-mini-calculator {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.bf-mini-calculator label,
.bf-contact-form input,
.bf-contact-form select,
.bf-contact-form textarea {
  color: #49586b;
  font-size: 0.84rem;
  font-weight: 800;
}

.bf-mini-calculator input,
.bf-mini-calculator select,
.bf-contact-form input,
.bf-contact-form select,
.bf-contact-form textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--bf-border);
  border-radius: 5px;
  font: inherit;
  background: var(--bf-white);
}

#battenResult {
  display: grid;
  align-self: end;
  min-height: 74px;
  padding: 12px;
  border-radius: 6px;
  background: #f6fbf6;
}

#battenResult strong {
  color: var(--bf-green);
  font-size: 2rem;
  line-height: 1;
}

#battenResult span {
  color: #536270;
  font-size: 0.8rem;
  font-weight: 900;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 6px;
  font-size: 0.9rem;
}

th {
  color: var(--bf-white);
  background: #2a3f5c;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--bf-border);
  text-align: center;
}

.bf-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.bf-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--bf-white);
  font-weight: 900;
  background: var(--bf-orange);
}

.bf-step strong {
  display: block;
  margin-bottom: 6px;
}

.bf-step p {
  margin: 0;
  color: var(--bf-muted);
  line-height: 1.45;
}

.bf-step img {
  width: 220px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 5px;
}

.bf-error-box {
  padding: 20px;
  border: 1px solid #ffaaa3;
  border-radius: 7px;
  background: #fff4f2;
}

.bf-error-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.bf-error-box ul {
  margin: 0;
  padding-left: 20px;
}

.bf-error-box li {
  margin: 8px 0;
  font-weight: 800;
}

.bf-help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-help-grid article {
  padding: 18px;
}

.bf-help-grid a {
  min-height: 38px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.bf-center-head {
  padding: 34px 0 20px;
  text-align: center;
}

.bf-center-head p {
  color: var(--bf-muted);
}

.bf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.bf-tabs button,
.bf-load-more button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--bf-border);
  border-radius: 5px;
  color: #4a586c;
  font-weight: 900;
  background: var(--bf-white);
}

.bf-tabs button.is-active {
  color: var(--bf-white);
  border-color: var(--bf-navy);
  background: var(--bf-navy);
}

.bf-calculator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bf-calc-card {
  min-height: 185px;
}

.bf-load-more {
  display: grid;
  place-items: center;
  margin-top: 28px;
}

.bf-calculator-page {
  width: min(1160px, calc(100% - 32px));
}

.bf-calculator-picker .bf-calc-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.bf-calculator-picker .bf-calc-card[hidden] {
  display: none;
}

.bf-calc-card button,
.bf-result-actions button {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--bf-border);
  border-radius: 5px;
  color: #0b4aa5;
  font-weight: 900;
  background: var(--bf-white);
  cursor: pointer;
}

.bf-calc-card button.is-active,
.bf-calc-card button:hover,
.bf-result-actions button {
  color: var(--bf-white);
  border-color: var(--bf-orange);
  background: var(--bf-orange);
}

.bf-live-calculators {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.bf-calculator-tool {
  display: none;
  padding: 26px;
  border: 1px solid var(--bf-border);
  border-radius: 8px;
  background: var(--bf-white);
  box-shadow: var(--bf-shadow);
}

.bf-calculator-tool.is-active {
  display: block;
}

.bf-tool-copy {
  margin-bottom: 18px;
}

.bf-tool-copy span {
  color: var(--bf-orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-tool-copy h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.bf-tool-copy p {
  max-width: 740px;
  margin: 0;
  color: var(--bf-muted);
  line-height: 1.55;
}

.bf-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 20px;
  align-items: start;
}

.bf-tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--bf-border);
  border-radius: 7px;
  background: #f8fafc;
}

.bf-batten-form {
  grid-template-columns: 1fr;
}

.bf-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce4ed;
  border-radius: 6px;
  background: var(--bf-white);
}

.bf-form-section h3,
.bf-surface-head {
  grid-column: 1 / -1;
}

.bf-form-section h3,
.bf-surface-head h3 {
  margin: 0;
  font-size: 1rem;
}

.bf-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bf-surface-head button,
.bf-surface-card button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bf-border);
  border-radius: 5px;
  color: #0b4aa5;
  font-weight: 900;
  background: #f7f9fc;
  cursor: pointer;
}

.bf-surface-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 6px;
  background: #f8fafc;
}

.bf-surface-card strong {
  grid-column: 1 / -1;
}

.bf-tool-form label {
  display: grid;
  gap: 8px;
  color: #46566d;
  font-size: 0.84rem;
  font-weight: 900;
}

.bf-tool-form input,
.bf-tool-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  color: var(--bf-text);
  font: inherit;
  background: var(--bf-white);
}

.bf-tool-result {
  padding: 20px;
  border: 1px solid #ccd7e4;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
}

.bf-tool-result h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.bf-result-list {
  display: grid;
  gap: 10px;
}

.bf-result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 5px;
  background: var(--bf-white);
}

.bf-result-list span {
  color: var(--bf-muted);
  font-weight: 800;
}

.bf-result-list strong {
  color: var(--bf-navy);
  text-align: right;
}

.bf-result-warnings,
.bf-result-ok {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 5px;
  line-height: 1.45;
}

.bf-result-warnings {
  border: 1px solid #ffb9ad;
  color: #8f1f16;
  background: #fff4f1;
}

.bf-result-warnings li {
  margin: 5px 0;
}

.bf-result-ok {
  color: #206334;
  background: #effaf2;
}

.bf-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bf-result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 5px;
  color: var(--bf-white);
  font-weight: 900;
  text-decoration: none;
  background: var(--bf-navy);
}

.bf-calculator-notes {
  margin-top: 24px;
}

.bf-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.bf-note-grid div {
  padding: 16px;
  border-radius: 6px;
  background: #f7f9fc;
}

.bf-note-grid strong,
.bf-note-grid span {
  display: block;
}

.bf-note-grid span {
  margin-top: 6px;
  color: var(--bf-muted);
}

.bf-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bf-contact-form {
  padding: 34px;
  color: var(--bf-white);
  background: linear-gradient(135deg, #071a33, #09284d);
}

.bf-contact-form h1 {
  color: var(--bf-white);
}

.bf-contact-form p {
  color: #d8e4f3;
}

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

.bf-contact-form textarea {
  min-height: 126px;
  padding: 12px;
  resize: vertical;
}

.bf-contact-form button {
  width: 100%;
  margin-top: 12px;
}

.bf-contact-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  color: #d9e8d9;
  font-size: 0.84rem;
  font-weight: 800;
}

.bf-services {
  padding: 28px;
}

.bf-services article {
  margin-top: 12px;
  padding: 18px;
}

.bf-services strong,
.bf-services span {
  display: block;
}

.bf-services span {
  margin-top: 5px;
  color: var(--bf-muted);
  line-height: 1.45;
}

.bf-contact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 22px;
  border: 1px solid var(--bf-border);
  border-radius: 7px;
  background: var(--bf-white);
}

.bf-contact-stats strong,
.bf-contact-stats span {
  display: block;
}

.bf-contact-stats span {
  color: var(--bf-muted);
}

.bf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 3vw, 42px);
  color: #dbe7f6;
  background: var(--bf-navy);
}

.bf-footer span:first-child {
  color: var(--bf-white);
  font-weight: 900;
}

.bf-footer a {
  color: var(--bf-orange-2);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .bf-header,
  .bf-section-head,
  .bf-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .bf-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .bf-category-grid,
  .bf-tool-row,
  .bf-article-row,
  .bf-calculator-grid,
  .bf-proof-grid,
  .bf-contact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-duo,
  .bf-article-layout,
  .bf-contact-hero,
  .bf-tool-layout {
    grid-template-columns: 1fr;
  }

  .bf-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bf-hero,
  .bf-hero-shade {
    min-height: auto;
  }

  .bf-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .bf-category-grid,
  .bf-tool-row,
  .bf-article-row,
  .bf-calculator-grid,
  .bf-proof-grid,
  .bf-contact-stats,
  .bf-mini-calculator,
  .bf-help-grid,
  .bf-sidebar,
  .bf-form-grid {
    grid-template-columns: 1fr;
  }

  .bf-tool-form,
  .bf-form-section,
  .bf-surface-card,
  .bf-note-grid {
    grid-template-columns: 1fr;
  }

  .bf-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .bf-step img {
    grid-column: 2;
    width: 100%;
  }

  .bf-shop-panel img {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}

@media print {
  .bf-header,
  .bf-footer,
  .bf-calculator-picker,
  .bf-tabs,
  .bf-result-actions,
  .bf-calculator-notes {
    display: none !important;
  }

  .bf-calculator-tool {
    display: none !important;
    box-shadow: none;
  }

  .bf-calculator-tool.is-active {
    display: block !important;
  }
}
