.map-block {
  gap: 24px;
  flex-wrap: wrap;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e1e1;
}

/* Статистика справа */
.map-stats {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-width: 260px;
}

.map-stats h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

/* Элементы списка */
.map-stats .list-group-item {
  border: none;
  background-color: #f9fafb;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.map-stats .list-group-item:hover {
  background-color: #f0f4f8;
}
.info-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.info-block {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-block img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.info-block h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.info-block ul {
  list-style: none;
  padding: 0;
}

.info-block ul li {
  margin: 8px 0;
}

.info-block a {
  color: #007bff;
  text-decoration: none;
}

.info-block a:hover {
  text-decoration: underline;
}
/* Основной фон всей страницы */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f3f5f9;
  color: #333;
}

/* Кнопки переключения карты */
button.btn-outline-primary {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
  transition: 0.3s ease;
}

button.btn-outline-primary:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-1px);
}

/* Карта */
.map-block {
  gap: 24px;
  flex-wrap: wrap;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

/* Статистика */
.map-stats {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  min-width: 260px;
  transition: all 0.3s ease;
}

.map-stats h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
}

.map-stats .list-group-item {
  border: none;
  background-color: #f9fafb;
  margin-bottom: 8px;
  border-radius: 10px;
  font-size: 14px;
  color: #374151;
  padding: 10px 14px;
  transition: background-color 0.2s ease;
}

.map-stats .list-group-item:hover {
  background-color: #e5f1ff;
}

/* Инфо-блоки */
.info-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 48px;
  margin-bottom: 60px;
}

.info-block {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 300px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.info-block img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.info-block h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111827;
}

.info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-block ul li {
  margin: 10px 0;
}

.info-block a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-block a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.transplant-stats {
  background-color: #f4f9fc;
  border-radius: 24px;
  padding: 40px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.transplant-stats-2col {
  background: #f4f9fc;
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  max-width: 1000px;
  margin: 0 auto;
}

.stats-title {
  font-size: 28px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 10px;
}

.stats-subtitle {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 30px;
}

/* Сетка в 2 столбца */
.stats-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.stat-card h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a202c;
}

.stat-card p {
  margin: 2px 0;
  font-size: 14px;
  color: #4a5568;
}
.custom-info-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1400px;
  padding: 0 20px;
  justify-items: center;
}

.custom-info-block {
  width: 100%;
  min-height: 250px;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.custom-info-block:hover {
  transform: translateY(-5px);
}

.custom-info-block img {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.custom-info-block h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0a2540;
  min-height: 44px;
}

.custom-info-block ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
}

.custom-info-block ul li {
  margin: 5px 0;
}

.custom-info-block ul li a {
  color: #007bff;
  text-decoration: none;
}

.custom-info-block ul li a:hover {
  text-decoration: underline;
}

.custom-info-block {
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.custom-info-block:hover {
  transform: translateY(-4px);
}

.custom-info-block img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.custom-info-block h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0a2540;
  min-height: 44px;
}

.custom-info-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-info-block ul li {
  margin: 4px 0;
}

.custom-info-block ul li a {
  color: #007bff;
  font-size: 14px;
  text-decoration: none;
}

.custom-info-block ul li a:hover {
  text-decoration: underline;
}
/* ============ КОНТЕЙНЕР: карта + сайдбар ============ */
.map-and-stats{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:24px;
  padding:18px 18px 20px;
  border:0;
  border-radius:16px;
  box-shadow:0 10px 28px rgba(2,6,23,.06);
  background:transparent;
  align-items: stretch;
}

/* адаптив */
@media (max-width: 1200px){
  .map-and-stats{ grid-template-columns:1fr; }
}

/* ============ ЛЕВАЯ ЧАСТЬ (карта) ============ */
.map-side{ display:flex; flex-direction:column; gap:12px; }

/* компактная панель-шапка над картой */
.map-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:10px 12px;
  border:1px solid #eef2f7; border-radius:12px; background:#fff;
}
.map-title-wrap{ display:flex; align-items:center; gap:12px; }
.map-title-icon{ color:#2563eb; display:inline-flex; align-items:center; justify-content:center; }
.map-title{ margin:0; line-height:1.2; font-weight:800; letter-spacing:.2px; }
.map-subtitle{ font-size:.85rem; color:#64748b; margin-top:2px; }

/* табы Donors/Recipients */
.map-tabs{ display:flex; gap:8px; }
.map-tabs .tab{
  appearance:none; cursor:pointer;
  border:1px solid #e5e7eb; background:#fff; color:#0f172a;
  padding:.45rem .9rem; border-radius:999px; font-weight:700; font-size:.95rem;
  transition:box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.map-tabs .tab:hover{ box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.map-tabs .tab.active{
  background:#2563eb; color:#fff; border-color:#2563eb;
}

/* карта (соотношение 16:9) */
.ratio-16x9{ position:relative; width:100%; padding-bottom:56.25%; border-radius:12px; overflow:hidden; background:#edf2f7; }
.map-frame{ position:absolute; inset:0; width:100%; height:100%; border:none; }
.is-hidden{ display:none; }

/* ============ ПРАВАЯ ЧАСТЬ (сайдбар) ============ */
.stats-side{ position:relative; }
@media (min-width: 1201px){
  .stats-side{
    position: sticky;
    top: 72px;             /* прижали к верху */
    align-self: stretch;   /* тянется по высоте карты */
    display: flex;
    min-height: 0;
  }
}

/* панель статистики — дашборд */
.stats-panel{
  display: grid;
  grid-template-rows: auto 1fr auto;  /* шапка | карточки | источник */
  height: 100%;                       /* занимает всю высоту сайдбара */
  background: linear-gradient(180deg,#f9fbff 0%, #f4f7fc 100%);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(2,6,23,.08);
  border: 1px solid #e3e9f2;
  min-height: 0;
}

/* шапка правого блока */
.stats-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom:16px;
}
.stats-kicker{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.12em;
  color:#7c8aa0; font-weight:800;
}
.stats-title{ margin:.1rem 0 0; font-weight:800; letter-spacing:.2px; font-size:1.08rem; }
.stats-meta{ display:flex; align-items:center; gap:8px; color:#64748b; font-size:.85rem; white-space:nowrap; }
.stats-meta .dot{
  width:8px; height:8px; border-radius:50%;
  background:radial-gradient(#22c55e, #16a34a);
  box-shadow:0 0 0 3px rgba(34,197,94,.15);
}

/* сетка карточек органов — 4x1 в столбик */
.stats-grid{
  display:grid;
  grid-template-columns: 1fr;          /* один столбец */
  grid-template-rows: repeat(4, 1fr);  /* четыре равные строки */
  gap:16px;
  align-content: stretch;
  align-items: stretch;
  min-height: 0;
}

/* мини-карточки органов — аккуратная компоновка */
.mini-card{
  height: 100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
  transition:transform .12s ease, box-shadow .12s ease;
}
.mini-card:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}

/* верх карточки: иконка + заголовок */
.stat-top{
  display:grid;
  grid-template-columns: 32px 1fr;
  align-items:center;
  gap:12px;
  margin:0;
}
.stat-top img{ width:28px; height:28px; opacity:.9; }
.stat-top strong{
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.1;
}

/* строки Adults / Children */
.stat-lines{
  margin-top:2px;
  display:grid;
  gap:0;
}
.stat-lines > div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:6px 0;
  border-top:1px dashed #e9eef7;
}
.stat-lines > div:first-child{ border-top:none; }
.stat-lines b{
  font-weight:800;
  color:#0f172a;
  font-variant-numeric: tabular-nums;  /* ровные цифры */
  letter-spacing:.2px;
}

/* источник — всегда внизу */
.stats-source{
  margin-top:0;
  text-align:right;
  color:#64748b;
  font-size:.82rem;
}
.stats-source a{ color:#2563eb; text-decoration:none; }
.stats-source a:hover{ text-decoration:underline; }

/* адаптив: на узких экранах возвращаем 2x2 */
@media (max-width: 1200px){
  .stats-grid{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}

/* ===== Сетка карточек ===== */
/* ===== Сетка карточек ===== */
.all-info-blocks{
  display:grid;
  grid-template-columns: repeat(4, 1fr);  /* теперь 4 карточки в ряд */
  gap:28px;
  align-items:stretch;
  width:100%;
  margin:36px 0;
  box-sizing:border-box;
}

/* адаптив */
@media (max-width: 1200px){
  .all-info-blocks{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .all-info-blocks{ grid-template-columns: 1fr; }
}


/* адаптив */
@media (max-width: 1200px){
  .all-info-blocks{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  .all-info-blocks{ grid-template-columns: 1fr; }
}

/* ===== Карточка ===== */
.info-card{
  height:100%;
  min-height:320px;                  /* увеличили высоту */
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #eaf0f6;
  border-radius:18px;
  padding:28px 22px;                 /* больше внутренние отступы */
  box-shadow:0 12px 32px rgba(2,6,23,.08);
  transition:transform .15s ease, box-shadow .15s ease;
}
.info-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(2,6,23,.12);
}

/* Иконка */
.info-card__icon{
  width:64px; height:64px;
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(120% 120% at 20% 10%, #eef5ff 0%, #f7fbff 60%, #ffffff 100%);
  border:1px solid #e6eef9;
  box-shadow:0 4px 12px rgba(37,99,235,.08) inset;
  margin-bottom:14px;
}
.info-card__icon img{ width:36px; height:36px; object-fit:contain; }

/* Заголовок */
.info-card__title{
  margin:0 0 10px;
  font-weight:800;
  letter-spacing:.2px;
  line-height:1.3;
  font-size:1.15rem;                /* чуть больше */
}

/* Ссылки */
.info-card__links{
  margin:0; padding:0; list-style:none;
  display:flex; flex-direction:column;
  gap:8px;
  margin-top:8px;
  flex-grow:1;
}
.info-card__links li{
  display:flex; align-items:center; gap:8px;
  padding:5px 8px;
  border-radius:8px;
  transition:background .15s ease;
}
.info-card__links li::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:#cdd9ee;
  flex:none;
}
.info-card__links a{
  color:#2563eb;
  text-decoration:none;
  font-weight:600;
}
.info-card__links li:hover{ background:#f3f7ff; }
.info-card__links li:hover a{ text-decoration:underline; }

