/* рСКФ (CKD-EPI). Дополняет calc-phenoage.css + tool-hypertension.css + tool-fib4.css.
   Шкала (.fib-scale*), пилюля (.fib-pill*), чип (.fib-stage), выноска (.fib-plain*) — из tool-fib4.css. */

/* Число результата + единица мелкой припиской справа (на базовой линии) */
.egfr-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
#egfr-bigval { font-size: clamp(64px, 13vw, 104px); line-height: 1; }
.egfr-unit {
  font-family: var(--v2-font); font-weight: 600; font-size: 14px;
  letter-spacing: .01em; color: rgba(255, 255, 255, .6); white-space: nowrap;
}

/* Пилюли результата — одинакового размера (ширина и высота).
   Селектор .egfr-pills .egfr-pill (0,2,0) перебивает .pa-delta-pill / .fib-stage. */
.egfr-pills { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.egfr-pills .egfr-pill {
  width: min(380px, 92%);
  box-sizing: border-box;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 22px; text-align: center; line-height: 1.25;
  margin: 0;
  font-size: 13.5px;
}

/* Селект под общий стиль полей */
.pa-field__select {
  flex: 1; width: 100%;
  padding: 13px 40px 13px 16px;
  font-size: 15.5px; font-family: var(--v2-font); font-weight: 500;
  color: var(--v2-ink); background: transparent; border: none; outline: none;
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-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' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2370738f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.pa-field__select::-ms-expand { display: none; }

/* ── Значения по формулам ── */
.egfr-formulas { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.egfr-formula {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--v2-border, #e6e8f0); background: var(--v2-surface-2, #f7f9fc);
}
.egfr-formula--primary {
  border-color: #0ea5a5; background: rgba(22, 200, 200, .07);
}
.egfr-formula__name {
  font-family: var(--v2-font); font-weight: 600; font-size: 13.5px; color: var(--v2-ink-2);
  display: flex; align-items: center; gap: 8px;
}
.egfr-formula__tag {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: #0e7c7c; background: rgba(22, 200, 200, .16);
  padding: 2px 8px; border-radius: 99px;
}
.egfr-formula__val {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 22px; color: var(--v2-ink); white-space: nowrap; letter-spacing: -.02em;
}
.egfr-formula__val span {
  font-family: var(--v2-font); font-weight: 500; font-size: 11px; color: var(--v2-ink-3); margin-left: 4px;
}

/* ── Панель «На основе полученной информации» ── */
.egfr-report {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 8px;
}
.egfr-report__item {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--v2-border, #e6e8f0); background: var(--v2-surface, #fff);
}
.egfr-report__lbl {
  font-family: var(--v2-font); font-weight: 600; font-size: 10.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--v2-ink-3); margin-bottom: 5px;
}
.egfr-report__val {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 15px; color: var(--v2-ink); line-height: 1.25;
}
.egfr-report__val--alert { color: #c23b22; }
@media (max-width: 520px) {
  .egfr-report { grid-template-columns: 1fr; }
  .egfr-formula__val { font-size: 19px; }
}

/* ── Сообщение об ошибке ввода ── */
#egfr-error-msg.is-visible {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fee2e2; border: 0; border-left: 4px solid #dc2626; color: #991b1b;
  border-radius: 12px; padding: 14px 18px;
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 6px 20px rgba(220, 38, 38, .18); animation: fib-err-pop .45s ease;
}
#egfr-error-msg.is-visible::before {
  content: '⚠'; font-size: 18px; line-height: 1.2; flex-shrink: 0; color: #dc2626;
}
