:root{
  --bg1:#0b1020;
  --bg2:#0e1a2b;
  --line:#23304a;
  --text:#e8eefc;
  --muted:#a9b6d3;

  --good:#1db954;
  --warn:#ffb020;
  --bad:#ff3b5c;
  --info:#66a3ff;

  --shadow: 0 12px 32px rgba(0,0,0,.35);
  --radius:16px;
}

*{ box-sizing: border-box; }
body{
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 10% 15%, rgba(102,163,255,.25), transparent 60%),
    radial-gradient(900px 450px at 90% 20%, rgba(255,59,92,.18), transparent 60%),
    radial-gradient(900px 450px at 50% 105%, rgba(29,185,84,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
  min-height: 100vh;
  padding: 18px;
}

.wrap{ max-width: 1100px; margin: 0 auto; }

.card{
  background: linear-gradient(180deg, rgba(17,28,51,.95) 0%, rgba(15,23,42,.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background: radial-gradient(600px 240px at 20% 0%, rgba(102,163,255,.10), transparent 55%);
  opacity: .9;
}

h1{
  font-size: 18px;
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.note{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items: end;
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

label.muted{
  color: var(--muted);
  font-size: 12px;
  display:flex;
  gap: 6px;
  align-items:center;
  white-space: nowrap;
}

input, select{
  padding:10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14px;
  background: rgba(11,19,40,.65);
  color: var(--text);
  outline: none;
  transition: transform .05s ease, border-color .15s ease;
}
input:focus, select:focus{
  border-color: rgba(102,163,255,.75);
  box-shadow: 0 0 0 3px rgba(102,163,255,.18);
}
input:active, select:active{ transform: scale(.99); }

.muted{ color: var(--muted); font-size: 12px; }
.status.ok{ color: rgba(29,185,84,.95); }
.status.err{ color: rgba(255,59,92,.95); }

.legend{
  display:flex; gap:8px; flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(11,19,40,.55);
  font-size: 12px;
  color: var(--text);
}
.dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 3px rgba(102,163,255,.16);
}
.dot.good{ background: var(--good); box-shadow: 0 0 0 3px rgba(29,185,84,.16); }
.dot.bad{ background: var(--bad); box-shadow: 0 0 0 3px rgba(255,59,92,.16); }
.dot.warn{ background: var(--warn); box-shadow: 0 0 0 3px rgba(255,176,32,.16); }

.news{
  position: relative;
  z-index: 1;
  padding-left: 14px;
}
.news::before{
  content:"";
  position:absolute;
  left:0; top: 10px; bottom: 10px;
  width: 5px;
  border-radius: 999px;
  background: rgba(102,163,255,.55);
}

.type-vuzstanoveno .news::before{ background: rgba(29,185,84,.9); }
.type-ogranicheno .news::before{ background: rgba(255,176,32,.9); }
.type-vremenno .news::before{ background: rgba(255,59,92,.9); }

.closure{
  border-color: rgba(255,59,92,.22);
  background: linear-gradient(180deg, rgba(30,12,18,.55) 0%, rgba(15,23,42,.92) 100%);
}
.recovered{
  border-color: rgba(29,185,84,.22);
  background: linear-gradient(180deg, rgba(10,28,18,.55) 0%, rgba(15,23,42,.92) 100%);
}

.news-title{
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px 0;
}
.meta{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(11,19,40,.55);
  color: var(--text);
  font-size: 12px;
}
.tag.good{ border-color: rgba(29,185,84,.25); }
.tag.bad{ border-color: rgba(255,59,92,.25); }
.tag.warn{ border-color: rgba(255,176,32,.25); }

.txt{
  margin-top: 8px;
  line-height: 1.45;
  white-space: pre-wrap;
  color: rgba(232,238,252,.92);
}

.datebox{ width: 150px; }
.w90{ width: 90px; }
.w260{ width: 260px; }
.smallTop{ margin-top: 10px; opacity: .95; }

.divider{
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 10px 0 0 0;
  position: relative;
  z-index: 1;
}

/* Мобилен акордеон "Филтри" */
.filters{
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.filters summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,19,40,.55);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  width: 100%;
  justify-content: space-between;
}
.filters summary::-webkit-details-marker{ display:none; }

.filters .chev{
  width: 10px; height: 10px;
  border-right: 2px solid rgba(232,238,252,.75);
  border-bottom: 2px solid rgba(232,238,252,.75);
  transform: rotate(45deg);
  transition: transform .15s ease;
  margin-right: 2px;
  flex: 0 0 auto;
}
.filters[open] .chev{ transform: rotate(-135deg); }

.filtersBody{ padding-top: 8px; }

@media (min-width: 821px){
  .filters summary{ display:none; }
  .filtersBody{ padding-top: 0; }
}

.site-footer{
  color: rgba(169,182,211,.9);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}
