.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 1px 3px var(--card-shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.card > img {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
}
.card .name {
  grid-column: span 2;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.3;
  align-self: end;
}
.card .branch {
  grid-column: span 2;
  margin-top: 1px;
  align-self: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .branch > span + span::before {
  content: "·";
  margin-inline: 3px;
}
.card .indicator {
  margin-block: 12px 2px;
  grid-column: span 3;
  font-size: 13px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card .indicator.bad {
  color: var(--accent-warning);
}
.card .indicator::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: currentColor;
}
.card .graph {
  grid-column: span 3;
  height: 36px;
  margin-block: 12px 10px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
}
.card .graph > div {
  flex-grow: 1;
  min-height: 1px;
  border-radius: 1.5px;
  height: calc(100% * var(--size));
  background-color: color-mix(in oklab, var(--accent-warning), var(--accent-danger) calc(100% * var(--size)));
}
.card .complaints {
  grid-column: span 2;
  justify-self: start;
}
.card em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  margin-inline: 0.5ch 1.5ch;
}
.card [data-last] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.card [data-last] svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}
.card [data-last]:has(span:empty) {
  display: none;
}
section.sector h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-align: left;
}
section.sector header {
  position: relative;
  display: flex;
  font-size: 14px;
  color: var(--text-secondary);
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  margin-bottom: 32px;
}
section.sector header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  background-color: var(--border);
  box-shadow: -50vw 0 var(--border), 50vw 0 var(--border);
}
section.sector header > span {
  display: flex;
  align-items: center;
}
section.sector header > span:last-child {
  order: 1;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-warning);
  background: rgb(from var(--accent-warning) r g b / 12%);
  border-radius: 100vmax;
}
section.sector header::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}
section.sector .back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 300ms;
}
section.sector .back::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  rotate: 45deg;
}
section.sector .back:has(a:hover) {
  color: var(--text-primary);
}
section.sector .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
