@font-face {
  font-family: Golos;
  src: url("/assets/golos.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f5f3;
  --surface: #ffffff;
  --ink: #19232c;
  --muted: #52605e;
  --line: #cfd9d5;
  --blue: #243fda;
  --blue-dark: #172ba8;
  --blue-soft: #e5eaff;
  --lime: #d9ef79;
  --coral: #b8324a;
  --rust: #8c4707;
  --green: #196449;
  --round: 7px;
  font-family: Golos, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, select { font: inherit; color: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
p, h1, h2 { margin: 0; }
svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }
output, .avatar, .group-score { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.frame { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.toolbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.toolbar-line { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 770; text-decoration: none; white-space: nowrap; }
.mark { display: inline-block; position: relative; width: 28px; height: 25px; color: var(--blue); }
.mark::before, .mark::after {
  content: "";
  width: 8px;
  position: absolute;
  bottom: 4px;
  background: currentColor;
  transform: skewX(-24deg);
  border-radius: 1px;
}
.mark::before { height: 13px; left: 4px; }
.mark::after { height: 20px; left: 15px; }
.account { min-width: 0; display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 590; }
#profile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-weight: 730; }
.icon-button { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--round); border: 1px solid transparent; background: transparent; }
.icon-button:hover { background: var(--paper); border-color: var(--line); }

.dashboard { padding-block: 29px 66px; animation: enter 320ms ease both; }
.section-top, .subheading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-top { align-items: end; margin-bottom: 22px; }
.period-caption { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 6px; min-height: 17px; }
h1 { font-size: 53px; font-weight: 820; line-height: 1.04; }
h2 { font-size: 21px; font-weight: 750; line-height: 1.18; }
.segmented { display: flex; padding: 3px; margin: 0; border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); min-width: 0; }
.segmented label { position: relative; min-width: 0; }
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; min-height: 38px; padding: 0 13px; white-space: nowrap; font-size: 14px; font-weight: 650; border-radius: 4px; cursor: pointer; }
.segmented input:hover:not(:checked) + span { background: var(--paper); }
.segmented input:checked + span { color: white; background: var(--blue); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.metrics { display: grid; grid-template-columns: 1fr 1fr 1.04fr; border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); }
.metrics section { padding: 17px 22px 16px; min-width: 0; }
.metrics section + section { border-left: 1px solid var(--line); }
.metrics h2 { font-size: 14px; font-weight: 680; margin-bottom: 2px; }
.metrics output { display: block; font-weight: 820; font-size: 40px; line-height: 1.23; overflow-wrap: anywhere; }
.metrics p { color: var(--muted); font-size: 13px; margin-top: 1px; }
.metrics .featured { background: var(--blue); color: white; border-color: var(--blue); border-radius: 0 6px 6px 0; }
.metrics .featured output { color: var(--lime); }
.metrics .featured p { color: #f0f3ff; }

.analysis { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); margin-top: 24px; padding-block: 17px 18px; border-block: 1px solid var(--line); }
.trend-panel { min-width: 0; padding-right: 24px; }
.group-panel { padding-left: 24px; border-left: 1px solid var(--line); min-width: 0; }
.group-panel h2 { margin-bottom: 14px; }
.legend { color: var(--muted); display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; white-space: nowrap; }
.legend-swatch { width: 9px; height: 9px; background: var(--coral); border-radius: 2px; }
.trend {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: end;
  gap: clamp(2px, .5%, 6px);
  height: 140px;
  padding: 0 2px;
  margin-top: 14px;
  border-bottom: 1px solid #a5b5ae;
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #dee6e1 calc(25% - 1px) 25%);
}
.bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-self: stretch;
  padding: 0;
  min-width: 0;
  border: none;
  background: transparent;
}
.bar-fill { display: flex; flex-direction: column; justify-content: end; min-height: 2px; height: var(--level); background: var(--blue); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.bar-empty .bar-fill { background: #9eaea8; }
.bar-negative { height: var(--severity); background: var(--coral); border-radius: 1px 1px 0 0; }
.trend[data-motion="on"] .bar-fill { animation: rise 320ms ease-out both; }
.bar:hover .bar-fill, .bar[aria-pressed="true"] .bar-fill { background: var(--blue-dark); box-shadow: 0 0 0 1px var(--blue-dark); }
.bar[aria-pressed="true"] { background: var(--blue-soft); }
.bar:focus-visible { z-index: 1; outline-offset: 1px; }
.trend-description { margin-top: 8px; color: var(--muted); min-height: 19px; font-size: 13px; }
.sources { margin-top: 15px; display: flex; gap: 10px 16px; flex-wrap: wrap; }
.source-choice { min-height: 35px; padding: 5px 9px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); font-size: 13px; }
.source-choice:hover, .source-choice[aria-pressed="true"] { background: var(--blue-soft); border-color: #adbaf4; }
.source { display: inline-flex; align-items: center; font-size: 13px; gap: 6px; font-weight: 640; }
.source::before { display: inline-block; content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.source[data-platform="2gis"]::before { background: #148061; }
.source[data-platform="yandex"]::before { background: var(--coral); }
.source-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.group-header, .group-row { display: grid; grid-template-columns: minmax(0, 1fr) 53px 59px; gap: 8px; text-align: left; align-items: center; }
.group-header { padding: 0 7px 7px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.group-header span:not(:first-child), .group-score { text-align: right; }
.group-row { width: 100%; min-height: 41px; padding: 7px; border: none; background: transparent; border-bottom: 1px solid var(--line); font-size: 14px; }
.group-row:hover, .group-row[aria-pressed="true"] { background: var(--blue-soft); }
.group-name { font-weight: 630; overflow-wrap: anywhere; }
.group-offices { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.feed { margin-top: 22px; }
.feed-title { align-items: baseline; margin-bottom: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 15px; }
.filters label { min-width: 124px; flex: 1 1 138px; display: grid; gap: 5px; }
.filters label > span { color: var(--muted); font-size: 13px; font-weight: 650; }
.filters .office-filter { flex: 1.7 1 225px; }
select, .secondary, .primary { min-height: 42px; border-radius: var(--round); font-weight: 660; }
select { max-width: 100%; width: 100%; padding: 0 9px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.secondary, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.secondary:hover:not(:disabled) { background: var(--blue-soft); border-color: #adbaf4; }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.review-header, .review-button { display: grid; grid-template-columns: minmax(0, 1.12fr) 74px minmax(0, 1.64fr) 84px; gap: 15px; align-items: start; text-align: left; }
.review-header { padding: 10px 13px; background: #e7ede9; color: var(--muted); border-radius: var(--round) var(--round) 0 0; font-weight: 660; font-size: 13px; }
.review-list { margin: 0; padding: 0; list-style: none; background: var(--surface); }
.review-list li { border-bottom: 1px solid var(--line); }
.review-button { width: 100%; padding: 11px 13px; border: none; background: transparent; line-height: 1.34; font-size: 14px; }
.review-button:hover { background: var(--blue-soft); }
.review-button:focus-visible { outline-offset: -3px; }
.review-place > strong { display: block; font-weight: 690; overflow-wrap: anywhere; margin-bottom: 4px; }
.review-body { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.review-date { white-space: nowrap; }
.badge { width: max-content; border-radius: 4px; padding: 2px 6px; background: #e8edeb; font-size: 13px; font-weight: 730; white-space: nowrap; }
.badge[data-level="high"] { color: var(--green); background: #e2f4e9; }
.badge[data-level="mid"] { color: var(--rust); background: #fff1cf; }
.badge[data-level="low"] { color: #98263b; background: #fce3e8; }
.muted { color: var(--muted); font-size: 14px; }
.empty, .workspace-message { padding: 15px 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.workspace-message { color: #98263b; }
.pager { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

#detail { width: min(616px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 8px; padding: 21px; background: var(--surface); color: var(--ink); }
#detail[open] { animation: enter 190ms ease-out both; }
#detail::backdrop { background: rgb(20 37 48 / .57); }
.detail-top { display: flex; justify-content: space-between; gap: 12px; }
.detail-top h2 { margin: 6px 0; overflow-wrap: anywhere; }
.detail-meta { margin: 18px 0 12px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
.detail-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 18px; font-size: 16px; line-height: 1.65; }
#detail-address { overflow-wrap: anywhere; }

.login { min-height: 100dvh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 24px; background: var(--blue); color: white; }
.login-content { position: relative; z-index: 1; width: min(100%, 480px); padding: 25px 0; animation: enter 360ms ease both; }
.login .mark { color: var(--lime); }
.login h1 { font-size: 72px; margin: 18px 0 23px; }
.login-button { background: white; border-color: white; color: var(--blue-dark); min-height: 52px; padding: 12px 17px; }
.login-button:hover { background: var(--lime); border-color: var(--lime); }
.login-button:focus-visible { outline-color: white; }
.login-button[aria-disabled="true"] { opacity: .65; pointer-events: none; }
.login-message { min-height: 22px; margin-top: 12px; color: #f0f3ff; font-size: 14px; max-width: 420px; }
.login-art { position: absolute; inset: auto max(-50px,calc((100% - 1040px)/2)) 0 auto; width: min(590px, 66vw); height: 58%; display: flex; gap: 4%; align-items: end; opacity: .24; pointer-events: none; }
.login-art i { flex: 1; height: 25%; background: #aabafa; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: rise 460ms ease-out both; }
.login-art i:nth-child(2n) { height: 41%; }
.login-art i:nth-child(3n) { height: 54%; animation-delay: 60ms; }
.login-art i:nth-child(4n) { height: 72%; animation-delay: 90ms; }
.login-art i:nth-child(5n) { height: 83%; animation-delay: 120ms; }
.login-art i:nth-child(8n) { height: 100%; animation-delay: 145ms; }
.boot { margin: 38px; color: var(--muted); font-size: 16px; }

@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { transform: scaleY(.23); opacity: .65; } to { transform: scaleY(1); opacity: 1; } }

@media (max-width: 970px) {
  .frame { width: calc(100% - 42px); }
  .analysis { grid-template-columns: minmax(0, 1.32fr) minmax(240px, 1fr); }
  .trend-panel { padding-right: 15px; }
  .group-panel { padding-left: 15px; }
  .metrics section { padding-inline: 15px; }
  .review-header, .review-button { gap: 9px; }
}
@media (max-width: 690px) {
  .frame { width: calc(100% - 28px); }
  .dashboard { padding-block: 21px 44px; }
  .toolbar-line { min-height: 55px; }
  .section-top { align-items: start; flex-direction: column; margin-bottom: 14px; }
  h1 { font-size: 41px; }
  h2 { font-size: 19px; }
  .metrics section { padding: 11px 9px; }
  .metrics h2 { font-size: 12px; }
  .metrics p { font-size: 11px; }
  .metrics output { font-size: 25px; }
  .analysis { display: block; margin-top: 17px; padding-block: 14px; }
  .trend-panel { padding: 0; }
  .group-panel { margin-top: 14px; padding: 14px 0 0; border-left: none; border-top: 1px solid var(--line); }
  .trend { height: 111px; gap: 2px; }
  .group-panel h2 { margin-bottom: 10px; }
  .filters label, .filters .office-filter { min-width: 0; flex-basis: calc(50% - 5px); flex-grow: 0; }
  .review-header { display: none; }
  .review-button { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-inline: 9px; }
  .review-list { border-top: 1px solid var(--line); }
  .review-body { grid-column: 1 / -1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .review-date { grid-column: 1 / -1; }
  .login h1 { font-size: 52px; }
}
@media (max-width: 370px) {
  .account { gap: 6px; }
  .brand { font-size: 15px; gap: 5px; }
  .avatar { display: none; }
  .metrics output { font-size: 22px; }
  .metrics h2 { min-height: 27px; }
  .subheading { flex-wrap: wrap; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
