/* ==========================================================================
   Блок «Здоровье отеля» (страница отеля) — тёмная панель, макет 1d.
   Палитра жёстко тёмная и НЕ берётся из токенов светлой темы: панель
   намеренно контрастная врезка посреди светлой страницы отеля.
   ========================================================================== */

.hh {
  position: relative;
  overflow: hidden;
  background: #1C1A17;
  border-radius: 24px;
  padding: 28px 30px 24px;
  box-shadow: 0 24px 60px rgba(28, 26, 23, .28);
  margin: 32px 0 40px;
}

/* Мягкое свечение в правом верхнем углу */
.hh__glow {
  position: absolute;
  top: -40px; right: -30px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(194, 65, 12, .22), transparent 70%);
  pointer-events: none;
}

.hh__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hh__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #E4894F;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hh__title {
  font-family: 'Lora', serif;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
  margin: 0;
  line-height: 1.2;
}

.hh__replay {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #26231F;
  color: #F5EFE7;
  border: 1px solid #3A352E;
  border-radius: 11px;
  padding: 9px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.hh__replay:hover { background: #302C27; border-color: #4A443B; }
.hh__replay:focus-visible { outline: 2px solid #E4894F; outline-offset: 2px; }

.hh__body {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.hh__chart {
  position: relative;
  height: 280px;
  flex: 1;
  min-width: 340px;
}

.hh__kpis {
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hh__kpi {
  background: #26231F;
  border: 1px solid #34302A;
  border-radius: 14px;
  padding: 15px 16px;
}

.hh__kpi-label {
  font-size: 11px;
  color: #A79F94;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hh__kpi-score { display: flex; align-items: baseline; gap: 6px; }
.hh__kpi-score-v { font-family: 'Lora', serif; font-size: 34px; font-weight: 600; color: #fff; }
.hh__star { color: #E6B54A; font-size: 18px; }

.hh__kpi-pos { display: flex; align-items: center; gap: 10px; }
.hh__kpi-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  color: #7CE0A5;
}
.hh__bar {
  flex: 1;
  height: 6px;
  background: #34302A;
  border-radius: 999px;
  overflow: hidden;
}
.hh__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1F8A5B, #7CE0A5);
  border-radius: 999px;
}

.hh__kpi-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}
.hh__kpi-sub { font-size: 11px; color: #A79F94; margin-top: 2px; }

.hh__legend {
  position: relative;
  display: flex;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #34302A;
  flex-wrap: wrap;
  align-items: center;
}
.hh__lg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #C9C1B5;
  font-weight: 600;
}
.hh__sw { width: 12px; height: 12px; border-radius: 3px; }
.hh__sw--pos { background: #3DBE7C; }
.hh__sw--neg { background: #E4894F; }
.hh__sw--line { width: 16px; height: 3px; border-radius: 2px; background: #E6B54A; }
.hh__spacer { flex: 1; }
.hh__src { font-size: 11.5px; color: #6E675C; }

/* --- Адаптив: KPI уходят под график --- */
@media (max-width: 720px) {
  .hh { padding: 22px 18px 20px; border-radius: 18px; }
  .hh__body { gap: 18px; }
  .hh__chart { height: 220px; min-width: 100%; flex: 1 1 100%; }
  .hh__kpis { width: 100%; }
  .hh__title { font-size: 22px; }
}
