/* 🏋️ Калькулятор процента жира — форма и шкала (оранжевая фитнес-тема) */

.calc-intro {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
  color: #222;
}

/* 🎛 Поля ввода и селекты */
.calc-block input,
.calc-block select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ecc9a6;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f57c00' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.calc-block input:hover,
.calc-block select:hover {
  border-color: #eda04f;
}

.calc-block input:focus,
.calc-block select:focus {
  outline: none;
  border-color: #f57c00;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}

.field-hint {
  display: block;
  color: #888;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}

/* Поле обхвата бёдер видно только для женщин */
.hip-field {
  display: none;
}

.hip-field.visible {
  display: block;
}

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #f57c00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.calc-block button:hover {
  background: #e65100;
}

.calc-block button:active {
  background: #bf360c;
}

/* 🎴 Карточка результата */
.result-block h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #222;
}

.result-output {
  background: #fff;
  border: 1px solid #f5dcc3;
  border-radius: 12px;
}

.bf-placeholder {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0;
}

.bf-error {
  color: #b71c1c;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0;
}

/* 🔢 Крупное значение процента жира и бейдж категории */
.bf-score-wrap {
  text-align: center;
}

.bf-score {
  font-size: 2.6rem;
  font-weight: bold;
  text-align: center;
  margin: 10px 0 6px;
  color: #222;
}

.bf-score .unit {
  font-size: 1rem;
  font-weight: normal;
  color: #888;
}

.bf-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
}

.bf-badge.minimal {
  background: #78909c;
}

.bf-badge.athlete {
  background: #2e7d32;
}

.bf-badge.fitness {
  background: #43a047;
}

.bf-badge.average {
  background: #f9a825;
  color: #333;
}

.bf-badge.obese {
  background: #e53935;
}

.bf-verdict {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin: 10px 0 4px;
  line-height: 1.5;
}

/* 🌡 Шкала: серый → зелёный → жёлтый → красный (0–50%) */
.bf-gauge {
  position: relative;
  height: 16px;
  border-radius: 10px;
  margin: 20px 0 4px;
  background: linear-gradient(90deg, #78909c 0%, #78909c 14%, #2e7d32 14%, #43a047 34%, #f9a825 50%, #fb8c00 64%, #e53935 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bf-marker {
  position: absolute;
  top: -7px;
  width: 10px;
  height: 30px;
  border-radius: 4px;
  background: #222;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  transition: left 0.6s ease;
}

.bf-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* 🧱 Карточки жировой и сухой массы */
.bf-masses {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
}

.bf-mass-card {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid #f5dcc3;
  font-size: 13px;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

.bf-mass-card strong {
  display: block;
  font-size: 1.15rem;
  color: #e65100;
  margin-top: 2px;
}

.bf-band-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid #f5dcc3;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.bf-band-note strong {
  color: #e65100;
}

/* 📋 Таблица категорий */
.bf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

.bf-table th,
.bf-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f5dcc3;
  text-align: left;
  vertical-align: top;
}

.bf-table th {
  background: #fff8f0;
  font-size: 13px;
}

.bf-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.bf-table tr.current {
  background: #fff3e0;
}

.bf-table tr.current td {
  font-weight: bold;
  color: #e65100;
}

.bf-note {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}
