.bc-page { padding-bottom: clamp(42px, 6vw, 86px); }
.bc-page .crumbs { margin-block: 20px; }
.bc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
  margin-bottom: clamp(16px, 2vw, 28px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8eee5;
  color: var(--deep);
}
.bc-hero > div { align-self: center; padding: clamp(24px, 3.4vw, 50px); }
.bc-hero h1 { margin: 0 0 12px; font-size: clamp(2.15rem, 4.4vw, 4.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.062em; }
.bc-hero p { max-width: 53ch; color: #43584a; font-size: clamp(.95rem, 1.28vw, 1.13rem); line-height: 1.53; }
.bc-hero > img { width: 100%; height: 100%; min-height: 0; max-height: 254px; object-fit: cover; object-position: 50% 50%; }
.bc-form { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 2vw, 28px); }
.bc-inputs, .bc-output, .bc-stack { display: grid; align-content: start; min-width: 0; gap: clamp(16px, 2vw, 26px); }
.bc-card, .bc-summary { min-width: 0; border-radius: var(--radius); padding: clamp(20px, 2.4vw, 36px); }
.bc-card { display: grid; gap: 18px; border: 1px solid var(--line); background: white; }
.bc-card h2, .bc-summary h2 { font-size: clamp(1.38rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -.043em; line-height: 1.16; }
.bc-fieldset { display: block; min-width: 0; padding: 0; margin: 0; border: none; }
.bc-fieldset legend { padding: 0; margin: 0 0 8px; }
.bc-fieldset legend, .bc-field > span:first-child { color: var(--ink); font-size: .88rem; font-weight: 750; line-height: 1.35; }
.bc-segments { display: grid; padding: 4px; gap: 4px; border-radius: 9px; background: var(--linen); }
.bc-materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-choice { position: relative; min-width: 0; }
.bc-choice input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; clip-path: inset(50%); overflow: hidden; }
.bc-choice span { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 42px; padding: 7px 4px; border-radius: 6px; cursor: pointer; font-size: clamp(.78rem, 1.1vw, .935rem); font-weight: 730; line-height: 1.22; text-align: center; }
.bc-choice input:checked + span { background: var(--deep); color: #fff; }
.bc-choice input:not(:checked) + span:hover { background: var(--sage); }
.bc-choice input:focus-visible + span { outline: 3px solid #63917b; outline-offset: 2px; }
.bc-pair, .bc-triple { display: grid; align-items: start; gap: 14px; }
.bc-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-model-selects { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.bc-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-field { display: grid; align-items: start; align-content: start; gap: 7px; min-width: 0; }
.bc-field > span:first-child small { margin-left: .2em; color: var(--muted); font-size: .78rem; font-weight: 550; }
.bc-field input, .bc-field select, .bc-field textarea {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #c6d1c7;
  border-radius: 7px;
  color: var(--ink);
  background-color: white;
  font: inherit;
  font-size: .93rem;
  line-height: 1.4;
}
.bc-field select { text-overflow: ellipsis; }
.bc-field textarea { resize: vertical; }
.bc-field input:focus, .bc-field select:focus, .bc-field textarea:focus { border-color: var(--green); outline: 2px solid #68947d80; outline-offset: 1px; }
.bc-field [aria-invalid="true"] { border-color: #9c3d36; }
.bc-with-unit { position: relative; display: block; min-width: 0; }
.bc-with-unit input { padding-right: 42px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bc-with-unit > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); font-size: .86rem; font-weight: 580; pointer-events: none; }
.bc-error { color: #90362e; font-size: .81rem; line-height: 1.38; }
.bc-hint, .bc-select-fallback p { max-width: 64ch; color: var(--muted); font-size: .91rem; line-height: 1.52; }
.bc-select-fallback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.bc-select-fallback p { flex: 1 1 165px; }
.bc-form[data-enhanced] .bc-select-fallback { display: none; }
.bc-model-preview { display: flex; align-items: center; min-width: 0; gap: 14px; padding: 12px 14px; border-radius: 9px; background: #f3f5ef; }
.bc-model-preview img { flex: none; width: 72px; height: 56px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.bc-model-preview p { margin: 0 0 2px; font-size: .94rem; font-weight: 770; }
.bc-model-preview a, .bc-policy { justify-self: start; color: var(--green); font-size: .82rem; font-weight: 660; text-decoration: underline; text-underline-offset: .18em; }
.bc-model-preview a:hover, .bc-policy:hover { color: var(--ink); }
.bc-stack { gap: 14px; }
.bc-geometry:has([name="mode"][value="area"]:checked) .bc-length-mode,
.bc-geometry:has([name="mode"][value="walls"]:checked) .bc-area-mode { display: none; }
.bc-recalculate { justify-self: start; }
.bc-summary { background: var(--deep); color: #f8faf5; }
.bc-summary h2 { color: #e8f0e5; }
.bc-main-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; margin: 20px 0 0; color: #ffce90; line-height: 1; }
.bc-main-number strong { font-size: clamp(2.9rem, 5.2vw, 5rem); font-variant-numeric: tabular-nums; font-weight: 780; letter-spacing: -.06em; overflow-wrap: anywhere; }
.bc-main-number span { font-size: 1.25rem; font-weight: 700; }
.bc-summary-label { margin-top: 6px; color: #eff3ea; font-size: .95rem; }
.bc-summary dl { display: grid; gap: 9px; margin: 22px 0 0; }
.bc-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.bc-summary dt { color: #d3e2d6; font-size: .9rem; }
.bc-summary dd { margin: 0; color: white; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bc-summary dl .bc-total { margin-top: 3px; border-top: 1px solid #668474; padding-top: 13px; }
.bc-summary .bc-total dt { color: white; font-weight: 700; }
.bc-summary .bc-total dd { font-size: clamp(1.05rem, 1.7vw, 1.42rem); }
.bc-summary-note { margin-top: 14px; color: #c6d7cd; font-size: .78rem; line-height: 1.48; }
.bc-order { gap: 12px; }
.bc-contact-fields { display: grid; gap: 12px; }
.bc-consent { display: flex; align-items: start; gap: 9px; color: var(--ink); font-size: .82rem; line-height: 1.41; }
.bc-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--green); }
.bc-policy { margin-left: 25px; }
.bc-submit { width: 100%; margin-top: 3px; }
.bc-test-note { color: #664a2f; font-size: .8rem; }
.bc-form-alert { margin-block: 8px 16px; }
@media (max-width: 930px) {
  .bc-form { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 14px; }
  .bc-card, .bc-summary { padding: 20px; }
  .bc-model-selects { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bc-form { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .bc-inputs, .bc-output { gap: 15px; }
  .bc-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); }
  .bc-hero > div { padding: 20px; }
  .bc-hero h1 { font-size: clamp(1.8rem, 6vw, 2.7rem); }
  .bc-model-selects { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .bc-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-field input, .bc-field select, .bc-field textarea { font-size: 1rem; }
}
@media (max-width: 480px) {
  .bc-hero { grid-template-columns: minmax(0, 1fr); }
  .bc-hero > div { padding: 20px 18px 22px; }
  .bc-hero > img { display: none; }
  .bc-hero h1 { margin-bottom: 8px; }
  .bc-page .crumbs { margin-block: 14px; font-size: .8rem; }
  .bc-card, .bc-summary { padding: 19px 15px; border-radius: 12px; }
  .bc-card { gap: 15px; }
  .bc-model-selects, .bc-triple, .bc-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .bc-pair { gap: 10px; }
  .bc-field > span:first-child { font-size: .81rem; }
  .bc-segments { gap: 1px; }
  .bc-choice span { padding-inline: 1px; }
  .bc-main-number { margin-top: 15px; }
  .bc-with-unit input { padding-right: 32px; }
}
@media (forced-colors: active) {
  .bc-choice input:checked + span { outline: 2px solid Highlight; }
}
.bc-openings { border: 1px solid var(--line); border-radius: 9px; background: #f7f8f4; }
.bc-openings summary { padding: 11px 13px; color: var(--green); font-size: .87rem; font-weight: 720; cursor: pointer; }
.bc-opening-body { display: grid; gap: 12px; padding: 0 13px 13px; }
#calc-opening-rows { display: grid; gap: 12px; }
.bc-opening-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 8px; }
.bc-opening-row .bc-field { gap: 4px; }
.bc-opening-row .bc-field > span { font-size: .78rem; }
.bc-opening-row input { min-height: 40px; padding: 7px 8px; }
.bc-remove-opening { border: 0; border-radius: 5px; background: transparent; color: var(--muted); min-width: 32px; min-height: 40px; font-size: 1.3rem; }
.bc-remove-opening:hover { color: #8d2922; background: #f5e9e4; }
.bc-opening-add { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: var(--green); font-size: .86rem; font-weight: 720; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.bc-opening-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; }
.bc-opening-total strong { margin-left: 4px; }
.bc-opening-total .button { min-height: 36px; padding: 6px 11px; font-size: .82rem; }
.bc-opening-total .button:disabled { opacity: .55; cursor: default; }
@media (max-width: 480px) {
  .bc-opening-body { padding-inline: 9px; }
  .bc-opening-row { gap: 4px; }
  .bc-opening-row .bc-field > span { font-size: .7rem; }
  .bc-remove-opening { min-width: 24px; }
}
