/* ❤️ Калькулятор артериального давления — форма и шкала (красная тема) */

.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 #e0b4b4;
  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: #d88;
}

.calc-block input:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 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: #e53935;
  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: #c62828;
}

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

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

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

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

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

/* 🔢 Крупное число давления и бейдж категории */
.bp-score-wrap {
  text-align: center;
}

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

.bp-score .slash {
  color: #ccc;
  font-weight: normal;
}

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

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

.bp-badge.optimal {
  background: #2e7d32;
}

.bp-badge.normal {
  background: #43a047;
}

.bp-badge.highnormal {
  background: #f9a825;
  color: #333;
}

.bp-badge.grade1 {
  background: #fb8c00;
}

.bp-badge.grade2 {
  background: #e53935;
}

.bp-badge.grade3 {
  background: #8e0000;
}

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

/* 🌡 Шкала: зелёный → красный */
.bp-gauge {
  position: relative;
  height: 16px;
  border-radius: 10px;
  margin: 20px 0 4px;
  background: linear-gradient(90deg, #2e7d32 0%, #43a047 17%, #f9a825 33%, #fb8c00 50%, #e53935 67%, #b71c1c 83%, #7f0000 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

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

/* 💓 Пульсовое давление */
.bp-pulse {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdf3f3;
  border: 1px solid #f5d4d4;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

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

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

.bp-table th {
  background: #fdf3f3;
  font-size: 13px;
}

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

.bp-table tr.current {
  background: #fff0f0;
}

.bp-table tr.current td {
  font-weight: bold;
  color: #b71c1c;
}

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

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

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

.bp-ref-table th {
  background: #fdf3f3;
}
