/* Сбои по регионам: /regions/, /regions/<slug>/ и блок на главной. Базовые стили - dr-groups.css и dr-cards.css */
.dr-monitor .card.drr-card>img{border-radius:0}
.dr-monitor .card.warn{background:#fffbeb;border-color:rgba(217,119,6,.22);--graph:#d97706;--em:#b45309}
.dr-monitor .card.warn::before{content:"";position:absolute;top:0;left:0;bottom:0;width:2px;background:#d97706}
.dr-monitor .card.warn .indicator{color:#b45309}
.dr-monitor .card.warn .indicator::before{box-shadow:0 0 6px rgba(217,119,6,.4);animation:dr-pulse-w 1.75s ease-in infinite}
@keyframes dr-pulse-w{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(217,119,6,.7)}30%{transform:scale(.75);box-shadow:0 0 0 0 rgba(217,119,6,.7)}100%{transform:scale(1);box-shadow:0 0 0 6px rgba(217,119,6,0)}}

/* главная */
.drr-home{max-width:1100px;margin:0 auto 2.5rem;font-family:Roboto,Arial,sans-serif;text-align:center}
.drr-home h2{font-size:2.4rem;font-weight:700;margin:0 0 1.6rem;color:#111827}
.drr-home .dr-monitor{margin-bottom:1.2rem}
.drr-all{display:inline-flex;align-items:center;gap:6px;padding:10px 22px;border:1px dashed #e5484d;border-radius:10px;color:#e5484d;font-weight:700;font-size:15px;text-decoration:none;background:#fff}
.drr-all:hover{background:#fff5f5;color:#e5484d}

/* шапка региона */
.drr-hero{display:grid;grid-template-columns:72px minmax(0,1fr);gap:18px;align-items:start;margin:1rem 0 1.2rem}
.drr-hero>img{width:72px;height:72px;object-fit:contain}
.drr-hero h1{font-size:2.6rem;line-height:1.2;margin:0 0 .4rem;font-weight:700;color:#003663}
.drr-banner{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-radius:12px;border:1px solid #bbf7d0;background:#f0fdf4;margin:0 0 1.4rem;font-size:14px;line-height:1.5;color:#14532d}
.drr-banner i{flex:none;width:10px;height:10px;margin-top:5px;border-radius:50%;background:#16a34a}
.drr-banner b{display:block;font-size:15px}
.drr-banner.warn{border-color:#fde68a;background:#fffbeb;color:#78350f}
.drr-banner.warn i{background:#d97706;animation:dr-pulse-w 1.75s ease-in infinite}
.drr-banner.down{border-color:#fecdd3;background:#fff1f2;color:#881337}
.drr-banner.down i{background:#f43f5e;animation:drg-pulse 1.75s ease-in infinite}
.drr-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.drr-stats .warn b{color:#b45309}

/* график */
.drr-chartbox{border:1px solid var(--drg-line);border-radius:12px;background:#fff;padding:12px 14px 8px;margin-bottom:.6rem}
.drr-chart{display:block;width:100%;height:220px}
.drr-chart .g{stroke:#eef0f3;stroke-width:1}
.drr-chart .ax{font-size:11px;fill:#94a3b8;font-family:Roboto,Arial,sans-serif}
.drr-chart .b{fill:#94a3b8}
.drr-chart .b.hi{fill:#f43f5e}
.drr-chart .b:hover{fill:#003663}
.drr-chart .n{fill:none;stroke:#16a34a;stroke-width:2;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.drr-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--drg-muted);margin:0 0 1rem}
.drr-legend span::before{content:"";display:inline-block;width:12px;height:10px;margin-right:6px;vertical-align:-1px;background:#94a3b8;border-radius:2px}
.drr-legend .hi::before{background:#f43f5e}
.drr-legend .n::before{height:0;border-top:2px dashed #16a34a;vertical-align:3px;background:none}

/* сервисы региона */
.drr-svc{display:grid;gap:6px;margin-bottom:1rem}
.drr-svc a{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(80px,32%) 92px;gap:12px;align-items:center;padding:8px 12px;border:1px solid var(--drg-line);border-radius:10px;background:#fff;color:var(--drg-text);text-decoration:none;font-size:14px}
.drr-svc a:hover{border-color:#94a3b8}
.drr-svc img{width:28px;height:28px;object-fit:contain;border-radius:6px}
.drr-svc img.nologo{opacity:.5}
.drr-svc .nm{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.drr-svc .bar{height:8px;border-radius:99px;background:#f1f5f9;overflow:hidden}
.drr-svc .bar i{display:block;height:100%;background:#f43f5e;border-radius:99px}
.drr-svc .n{text-align:right;font-size:13px;color:var(--drg-muted);white-space:nowrap}
.drr-svc .n b{color:#1e293b}

.drr-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:1rem}
.drr-box{border:1px solid var(--drg-line);border-radius:12px;background:#fff;padding:12px 16px}
.drr-box h3{font-size:15px;font-weight:700;margin:0 0 .6rem}
.drr-rows{list-style:none;margin:0;padding:0}
.drr-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:5px 0;border-top:1px solid #f1f5f9;font-size:14px}
.drr-rows li:first-child{border-top:0}
.drr-rows li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drr-rows li b{font-weight:600;color:#1e293b}
.drr-rows li em{font-style:normal;color:var(--drg-muted);font-size:12.5px;margin-left:6px}

.drr-feed{border:1px solid var(--drg-line);border-radius:12px;background:#fff;margin-bottom:1rem;overflow:hidden}
.drr-feed div{display:grid;grid-template-columns:52px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:8px 14px;border-top:1px solid #f1f5f9;font-size:13.5px;align-items:center}
.drr-feed div:first-child{border-top:0}
.drr-feed time{color:var(--drg-muted);font-variant-numeric:tabular-nums}
.drr-feed a,.drr-feed span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drr-feed a{color:#003663;font-weight:500;text-decoration:none}
.drr-feed span{color:#374151}
.drr-feed .t{color:var(--drg-muted)}

.drr-text{font-size:14.5px;line-height:1.6;color:#374151;max-width:860px}
.drr-text h3{font-size:16px;font-weight:700;margin:1.2rem 0 .3rem;color:#111827}
.drr-text ul{margin:.3rem 0 .6rem 1.2rem;padding:0}
.drr-text p{margin:.3rem 0 .6rem}

.drr-pills a.warn{background:#fffbeb;border-color:#fde68a}
.drr-pills a.warn i{background:#d97706;animation:dr-pulse-w 1.75s ease-in infinite}
.drr-pills a.down{background:#fff5f5;border-color:#fbd5d7}
.drr-pills a img{flex:none;width:20px;height:20px;object-fit:contain}
.drr-pills a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:640px){
  .drr-hero{grid-template-columns:52px minmax(0,1fr);gap:12px}
  .drr-hero>img{width:52px;height:52px}
  .drr-hero h1{font-size:2.1rem}
  .drr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .drr-chart{height:170px}
  .drr-svc a{grid-template-columns:24px minmax(0,1fr) 78px;gap:8px;padding:8px 10px}
  .drr-svc .bar{display:none}
  .drr-cols{grid-template-columns:minmax(0,1fr)}
  .drr-feed div{grid-template-columns:44px minmax(0,1fr) minmax(0,.9fr);gap:8px;padding:8px 10px;font-size:13px}
  .drr-feed .t{display:none}
  .drr-pills a img{display:none}
  .drr-home h2{font-size:2rem}
}
@media (prefers-reduced-motion:reduce){
  .dr-monitor .card.warn .indicator::before,.drr-banner i,.drr-pills a i{animation:none!important}
}
/* главная: 5 карточек на компьютере, 6 на планшете и телефоне */
.drr-home .dr-monitor{grid-template-columns:repeat(5,minmax(0,1fr))}
.drr-home .dr-monitor .card:nth-child(6){display:none}
@media (max-width:900px){.drr-home .dr-monitor{grid-template-columns:repeat(3,minmax(0,1fr))}.drr-home .dr-monitor .card:nth-child(6){display:grid}}
@media (max-width:450px){.drr-home .dr-monitor{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* подписи графика */
.drr-plot{position:relative;padding-left:26px}
.drr-ymax{position:absolute;left:0;top:-4px;font-size:11px;color:#94a3b8}
.drr-x{position:relative;height:18px;margin-top:4px}
.drr-x span{position:absolute;transform:translateX(-50%);font-size:11.5px;color:#94a3b8;white-space:nowrap}
.dr-monitor .card.drr-card .name{white-space:normal;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:640px){.drr-x span:nth-child(even){display:none}}
/* карта сбоев */
.drm{border:1px solid var(--drg-line,#dfe3e8);border-radius:12px;background:#fff;padding:12px 14px;margin-bottom:1rem}
.drm-svg{position:relative;width:100%;aspect-ratio:1000/545;background:#f8fafc;border-radius:8px}
.drm-svg svg{display:block;width:100%;height:auto}
.drm-r path,.drm-r circle{stroke:#fff;stroke-width:.7;cursor:pointer;transition:fill .15s}
.drm-r circle{stroke-width:1.4}
.drm-r .c0,.drm-legend .c0 i{fill:#e5e7eb;background:#e5e7eb}
.drm-r .c1,.drm-legend .c1 i{fill:#cdebd6;background:#cdebd6}
.drm-r .c2,.drm-legend .c2 i{fill:#4ade80;background:#4ade80}
.drm-r .c3,.drm-legend .c3 i{fill:#fcdf8a;background:#fcdf8a}
.drm-r .c4,.drm-legend .c4 i{fill:#f8a86a;background:#f8a86a}
.drm-r .c5,.drm-legend .c5 i{fill:#e11d48;background:#e11d48}
.drm-r path:hover,.drm-r circle:hover{filter:brightness(.88)}
.drm-r .cur{stroke:#003663;stroke-width:2.2}
.drm-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 20px;align-items:flex-start;margin-top:10px}
.drm-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#6b7280}
.drm-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-2px}
.drm-info{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:13.5px;color:#374151;min-height:20px}
.drm-info>b{font-size:14.5px;color:#111827}
.drm-info a{color:#e5484d;font-weight:600;text-decoration:none}
.drm-st i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}
.drm-st.c0 i{background:#9ca3af}.drm-st.c1 i,.drm-st.c2 i{background:#16a34a}.drm-st.c3 i{background:#ca8a04}.drm-st.c4 i{background:#ea580c}.drm-st.c5 i{background:#e11d48}
.drm-note{font-size:12.5px;color:#6b7280;margin:8px 0 0}
@media (max-width:640px){.drm{padding:8px}.drm-legend{font-size:11.5px;gap:4px 10px}.drm-info{font-size:13px}}
.drr-home .drm{margin:0 0 14px}
.drm-title{font-size:18px;font-weight:700;color:#111827;margin:4px 0 10px;text-align:left}
