/* 💙 Калькулятор ИМТ — форма и шкала (синяя тема здоровья) */

.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 {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #b8d4ea;
  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 input:hover {
  border-color: #7ab3dd;
}

.calc-block input:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

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

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #0077cc;
  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: #005fa3;
}

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

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

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

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

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

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

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

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

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

.bmi-badge.under {
  background: #78909c;
}

.bmi-badge.normal {
  background: #2e7d32;
}

.bmi-badge.over {
  background: #f9a825;
  color: #333;
}

.bmi-badge.ob1 {
  background: #fb8c00;
}

.bmi-badge.ob2 {
  background: #e53935;
}

.bmi-badge.ob3 {
  background: #8e0000;
}

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

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

.bmi-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;
}

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

/* ⚖️ Идеальный диапазон веса */
.bmi-ideal {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f7ff;
  border: 1px solid #d4e6f7;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.bmi-ideal strong {
  color: #0077cc;
}

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

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

.bmi-table th {
  background: #f0f7ff;
  font-size: 13px;
}

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

.bmi-table tr.current {
  background: #f0f7ff;
}

.bmi-table tr.current td {
  font-weight: bold;
  color: #005fa3;
}

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

/* 📖 Справочная таблица в описании */
.bmi-ref-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.bmi-ref-table th,
.bmi-ref-table td {
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
  text-align: left;
}

.bmi-ref-table th {
  background: #f0f7ff;
}
