.emergency-category-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(14, 53, 88, .07);
}
.emergency-category-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #c9dce6;
  background: #f7fafc;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.emergency-category-nav a:hover,
.emergency-category-nav a[aria-current="page"] {
  border-color: #168b9b;
  background: #e5f5f4;
  color: #0d6572;
}
.emergency-category-nav i { color: #168b9b; font-size: 18px; }
.emergency-category-nav b {
  position: absolute;
  top: -7px;
  right: 5px;
  padding: 2px 6px;
  background: #ffd500;
  color: #123b59;
  font-size: 9px;
  letter-spacing: .08em;
}
.emergency-place-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.emergency-place-meta span,
.emergency-place-meta b {
  display: inline-flex;
  padding: 3px 7px;
  background: #e1eef4;
  color: #174a68;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.emergency-place-meta b { background: #ffd500; color: #123b59; }
.emergency-place-card { border-left: 5px solid #197789; }
.emergency-place-card.type-doctor { border-left-color: #197789; }
.emergency-place-card.type-doctor .emergency-place-icon { background: #dff2f4; }
.emergency-place-card.type-pharmacy { border-left-color: #16805f; }
.emergency-place-card.type-pharmacy .emergency-place-icon { background: #dff3e9; }
.emergency-place-card.type-hospital { border-left-color: #cf2940; }
.emergency-place-card.type-hospital .emergency-place-icon { background: #fde5e9; }
.emergency-place-card.is-animal { border-left: 5px solid #e0b500; background: #fffdf2; }
.emergency-place-card.is-animal .emergency-place-icon { background: #fff0a6; }
.medical-view-pharmacy .emergency-category-nav a[aria-current="page"] { border-color: #16805f; background: #e4f5ec; color: #11664e; }
.medical-view-pharmacy .emergency-category-nav a[aria-current="page"] i { color: #16805f; }
.medical-view-hospital .emergency-category-nav a[aria-current="page"] { border-color: #cf2940; background: #fff0f2; color: #a91e32; }
.medical-view-hospital .emergency-category-nav a[aria-current="page"] i { color: #cf2940; }
.medical-view-animal .emergency-category-nav a[aria-current="page"] { border-color: #e0b500; background: #fff8cf; color: #5d4b00; }
.medical-view-animal .emergency-category-nav a[aria-current="page"] i { color: #8a7000; }
.emergency-place-source { display: block; margin-top: 8px; color: #728795; font-size: 10px; }
.emergency-map-marker {
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #123b59, 0 5px 13px rgba(14,53,88,.42);
  font-size: 21px;
}
.emergency-map-marker i { display: block; color: inherit; font-size: 21px; line-height: 1; }
.emergency-map-marker.doctor { background: #197789; color: #fff; }
.emergency-map-marker.pharmacy { background: #16805f; color: #fff; }
.emergency-map-marker.hospital { background: #cf2940; color: #fff; }
.emergency-map-marker.animal { background: #ffd500; color: #123b59; }
.page-emergency #contacts { margin-top: 14px; padding: 16px 18px; }
.page-emergency #contacts .emergency-heading h2 { font-size: clamp(22px, 2.2vw, 28px); }
.page-emergency #contacts .emergency-heading span { margin-top: 2px; font-size: 12px; }
.page-emergency #contacts .emergency-number-grid { gap: 8px; margin-top: 12px; }
.page-emergency #contacts .emergency-number-card { grid-template-columns: 36px 1fr auto; gap: 10px; min-height: 54px; padding: 8px 10px; }
.page-emergency #contacts .emergency-number-card > span { font-size: 22px; }
.page-emergency #contacts .emergency-number-card small { font-size: 11px; }
.page-emergency #contacts .emergency-number-card strong { font-size: 21px; line-height: 1.05; }
.page-emergency #contacts .emergency-number-card p { margin-top: 1px; font-size: 11px; }
.page-emergency #contacts .emergency-number-card > b { padding: 7px 9px; font-size: 10px; }
.page-emergency #contacts .emergency-number-card.is-small strong { font-size: 19px; }
.emergency-map-popup .animal-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 6px;
  background: #ffd500;
  color: #123b59;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.page-emergency .portal-info-breadcrumb {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  margin: 0 0 7px;
  padding: 6px 11px;
  overflow: hidden;
  border: 1px solid #d4e0e5;
  background: #fff;
  color: #587083;
  font-size: 12px;
  box-shadow: none;
}
.page-emergency .portal-info-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #0b668b;
  font-weight: 850;
  text-decoration: none;
}
.page-emergency .portal-info-breadcrumb > i { flex: none; color: #718794; font-size: 8px; }
.page-emergency .portal-info-breadcrumb > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emergency-guides { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.emergency-guides > header { margin-bottom: 13px; }
.emergency-guides > header small { color: #13838d; font-weight: 900; letter-spacing: .12em; }
.emergency-guides > header h2 { margin: 4px 0 0; font-size: 24px; }
.emergency-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.emergency-guide-grid a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 74px; padding: 12px; border: 1px solid #c9dce6; background: #f7fafc; color: var(--navy); text-decoration: none; }
.emergency-guide-grid a > i { display: grid; place-items: center; width: 38px; height: 38px; background: #e3f2f3; color: #168b9b; }
.emergency-guide-grid strong,.emergency-guide-grid small { display: block; }
.emergency-guide-grid small { margin-top: 3px; color: #617889; }
.emergency-guide-grid a > b { color: #168b9b; font-size: 18px; }
@media (max-width: 980px) {
  .emergency-category-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emergency-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .emergency-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .emergency-category-nav a { justify-content: flex-start; min-height: 38px; font-size: 12px; }
  .page-emergency .portal-info-breadcrumb { gap: 7px; padding: 6px 8px; font-size: 11px; }
  .page-emergency .portal-info-breadcrumb .portal-info-middle,
  .page-emergency .portal-info-breadcrumb .portal-info-middle + i { display: none; }
}
