/* ── Обёртка калькулятора ── */
.bfc-wrap {
  padding: 1rem 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Карточка ── */
.bfc-card {
  background: #fffbf7;
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2.2rem;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 4px 60px rgba(160,100,60,0.10);
}

/* ── Заголовок карточки ── */
.bfc-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #a08060;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

/* ── Спидометр ── */
.bfc-gauge-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
}
.bfc-gauge-svg {
  width: 360px;
  height: 196px;
  overflow: visible;
}

/* ── Большой процент ── */
.bfc-result-num {
  font-family: 'DM Serif Display', serif;
  font-size: 5.5rem;
  font-weight: 400;
  color: #1e0e02;
  text-align: center;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.bfc-result-num sup {
  font-size: 2rem;
  color: #b07040;
  font-family: 'DM Serif Display', serif;
  vertical-align: super;
}

/* ── Категория ── */
.bfc-result-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #b07040;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ── Разделитель ── */
.bfc-divider {
  height: 0.5px;
  background: linear-gradient(90deg, transparent, #dcc8b0, transparent);
  margin-bottom: 1.8rem;
}

/* ── Метрики (жир кг / сухая кг) ── */
.bfc-metrics {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  margin-bottom: 1.6rem;
}
.bfc-metric { text-align: center; }
.bfc-metric-val {
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: #1e0e02;
  line-height: 1;
}
.bfc-metric-val span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #a08060;
  font-weight: 400;
  margin-left: 2px;
}
.bfc-metric-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #7a6050;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Текст нормы ── */
.bfc-norm-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6a5040;
  text-align: center;
  line-height: 1.7;
  border-top: 0.5px solid #e8d8c8;
  padding-top: 1.2rem;
}
.bfc-norm-text strong {
  font-weight: 600;
  color: #3a2010;
}

/* ── Блок результата скрыт до расчёта ── */
.bfc-result-block {
  width: 100%;
  display: none !important;
}
.bfc-result-block.bfc-visible {
  display: block !important;
}

.bfc-form-panel.bfc-hidden {
  display: none;
}

/* ── Кнопка назад — отступ от текста ── */
.bfc-btn-back {
  margin-top: 1.5rem;
}

/* ── Пояснение второго метода ── */
.bfc-method2-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #a08060;
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ── Форма ── */
.bfc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bfc-field {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(164px, 1fr);
  gap: 0.8rem 1rem;
  align-items: center;
}
.bfc-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #7a6050;
  line-height: 1.45;
}
.bfc-field > .bfc-label,
.bfc-field > .bfc-radio-group,
.bfc-field > .bfc-input {
  min-width: 0;
}
.bfc-field-gender {
  align-items: start;
}
.bfc-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1e0e02;
  background: #f7f2ec;
  border: 1px solid #ddd0c0;
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.bfc-input:focus {
  border-color: #b07040;
}
.bfc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
}
.bfc-radio {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #3a2010;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.bfc-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fffbf7;
  background: #b07040;
  border: none;
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.bfc-btn:hover {
  background: #8a5530;
}

@media (max-width: 640px) {
  .bfc-field {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}
.bfc-btn-back {
  background: transparent;
  color: #b07040;
  border: 1px solid #ddd0c0;
  margin-top: 1.2rem;
}
.bfc-btn-back:hover {
  background: #f7f2ec;
}
.bfc-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #c0392b;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* ── Метка метода ── */
.bfc-result-method-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #a08060;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* ── Основной результат ── */
.bfc-result-primary {
  text-align: center;
}

/* ── Второй результат ── */
.bfc-result-secondary {
  text-align: center;
  padding: 0.5rem 0 0.8rem;
}
.bfc-result-num-secondary {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #5a4030;
  line-height: 1;
}
.bfc-result-num-secondary sup {
  font-size: 1.2rem;
  color: #b07040;
  vertical-align: super;
}
.bfc-result-cat-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #b07040;
  text-transform: uppercase;
  margin-top: 0.2rem;
}
