@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-cyrillic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #111114;
  --bg-translucent: rgba(17, 17, 20, 0.82);
  --glow: rgba(65, 184, 131, 0.1);
  --surface: #19191d;
  --surface-2: #1f2025;
  --surface-3: #2a2b31;
  --bar-track: #23242a;
  --border: #2c2d34;
  --border-strong: #3b3c45;
  --text: #f4f4f6;
  --text-2: #c7c8cf;
  --muted: #92939d;
  --green: #41b883;
  --green-strong: #3fd39a;
  --green-soft: rgba(65, 184, 131, 0.12);
  --green-border: rgba(65, 184, 131, 0.3);
  --yellow: #f0b429;
  --yellow-soft: rgba(240, 180, 41, 0.12);
  --yellow-border: rgba(240, 180, 41, 0.3);
  --red: #f46b6b;
  --red-soft: rgba(244, 107, 107, 0.12);
  --red-border: rgba(244, 107, 107, 0.3);
  --radius-lg: 20px;
  --radius: 15px;
  --radius-sm: 9px;
  --font: "Rubik", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f4f7;
    --bg-translucent: rgba(243, 244, 247, 0.86);
    --glow: rgba(15, 157, 88, 0.1);
    --surface: #ffffff;
    --surface-2: #f7f8fa;
    --surface-3: #e5e7ec;
    --bar-track: #eceef2;
    --border: #e1e3e8;
    --border-strong: #cdd0d7;
    --text: #17181c;
    --text-2: #3f414a;
    --muted: #676a74;
    --green: #0b7a45;
    --green-strong: #086b3c;
    --green-soft: rgba(11, 122, 69, 0.08);
    --green-border: rgba(11, 122, 69, 0.22);
    --yellow: #8a5a00;
    --yellow-soft: rgba(138, 90, 0, 0.08);
    --yellow-border: rgba(138, 90, 0, 0.24);
    --red: #b83232;
    --red-soft: rgba(184, 50, 50, 0.08);
    --red-border: rgba(184, 50, 50, 0.22);
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px rgba(17, 24, 39, 0.06);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 540px at 50% -18%, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd,
dt {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

::selection {
  background: var(--green-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 9px 14px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--bg-translucent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover .brand__name {
  color: var(--green-strong);
}

.logo {
  flex: none;
  filter: drop-shadow(0 0 14px rgba(65, 184, 131, 0.18));
}

.brand__name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.brand__divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  margin-inline: 1px;
}

.brand__page {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header__link:hover {
  color: var(--text);
}

.icon-external {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

/* Main / hero */

main.container {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 52px;
}

.hero {
  --hero-accent: var(--muted);
  --hero-tint: rgba(146, 147, 157, 0.1);
  --hero-border: var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--hero-tint);
  filter: blur(8px);
  pointer-events: none;
}

.hero.is-ok {
  --hero-accent: var(--green);
  --hero-tint: var(--green-soft);
  --hero-border: var(--green-border);
}

.hero.is-warn {
  --hero-accent: var(--yellow);
  --hero-tint: var(--yellow-soft);
  --hero-border: var(--yellow-border);
}

.hero.is-bad {
  --hero-accent: var(--red);
  --hero-tint: var(--red-soft);
  --hero-border: var(--red-border);
}

.hero.is-unknown {
  --hero-accent: var(--muted);
  --hero-tint: rgba(146, 147, 157, 0.1);
  --hero-border: var(--border);
}

.hero__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.hero__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  margin-top: 2px;
  border: 1px solid var(--hero-border);
  border-radius: 50%;
  background: var(--hero-tint);
  color: var(--hero-accent);
}

.status-icon {
  width: 28px;
  height: 28px;
}

.hero__copy {
  min-width: 0;
}

.hero__eyebrow {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__desc {
  max-width: 610px;
  margin-top: 7px;
  color: var(--text-2);
  font-size: 14px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero__meta time {
  color: var(--text-2);
}

.dot-sep {
  color: var(--muted);
  opacity: 0.6;
}

.hero__warning {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-size: 11.5px;
}

.hero__refresh {
  margin-top: 8px;
  color: var(--red);
  font-size: 12.5px;
}

.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  gap: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--border);
}

.hero__stat b {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__stat span {
  display: block;
  max-width: 150px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

/* Sections */

.section {
  margin-top: 38px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section__head h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.section__hint {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* Components */

.components {
  display: grid;
  gap: 11px;
}

.component {
  padding: 17px 20px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.component:hover {
  border-color: var(--border-strong);
}

.component.is-warn {
  border-color: var(--yellow-border);
}

.component.is-bad {
  border-color: var(--red-border);
}

.component__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.component__identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(146, 147, 157, 0.1);
}

.component.is-ok .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.component.is-warn .dot {
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}

.component.is-bad .dot {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.component__titles {
  min-width: 0;
}

.component__name {
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.component__desc {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.component__state {
  display: flex;
  flex: none;
  align-items: center;
  gap: 13px;
  padding-top: 1px;
}

.component__latency {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.component__status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.component.is-ok .component__status {
  color: var(--green);
}

.component.is-warn .component__status {
  color: var(--yellow);
}

.component.is-bad .component__status {
  color: var(--red);
}

.component__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  align-items: end;
  gap: 24px;
  margin-top: 15px;
}

.component__bar-wrap {
  min-width: 0;
}

.bar {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 1px;
  height: 26px;
  align-items: stretch;
  border-radius: 4px;
  background: var(--bar-track);
}

.bar__day {
  min-width: 0;
  border-radius: 2.5px;
  background: var(--surface-3);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.bar__day:hover {
  opacity: 1;
  transform: scaleY(1.08);
}

.bar__day.is-ok {
  background: var(--green);
  opacity: 0.82;
}

.bar__day.is-warn {
  background: var(--yellow);
  opacity: 0.9;
}

.bar__day.is-bad {
  background: var(--red);
  opacity: 0.95;
}

.bar__day.is-empty {
  background: transparent;
}

.bar__caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.uptime {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.uptime > div {
  min-width: 0;
}

.uptime dt {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.uptime dd {
  margin-top: 2px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.uptime dd.is-empty {
  color: var(--muted);
}

.component__error {
  margin-top: 10px;
  padding-left: 19px;
  color: var(--red);
  font-size: 12px;
}

.bar-legend {
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Incidents */

.incidents {
  display: grid;
  gap: 9px;
}

.incident {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.incident.is-ongoing {
  border-color: var(--red-border);
}

.incident__marker {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.incident.is-ongoing .incident__marker {
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.incident__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.incident__head h3 {
  font-size: 14.5px;
  letter-spacing: -0.005em;
}

.badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--resolved {
  background: var(--green-soft);
  color: var(--green);
}

.badge--ongoing {
  background: var(--red-soft);
  color: var(--red);
}

.incident__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.incident__meta time {
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.chips li {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
}

.incidents__more {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.incidents__more a,
.about__note a {
  color: var(--text-2);
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}

.incidents__more a:hover,
.about__note a:hover {
  color: var(--green);
  text-decoration-color: var(--green-border);
}

/* Empty state */

.empty {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.empty__icon svg {
  width: 19px;
  height: 19px;
}

.empty h3 {
  font-size: 14px;
}

.empty p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

/* About */

.about {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.about .section__head {
  margin-bottom: 14px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.about__item {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.about__label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.about__value {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.about__value.is-warn {
  color: var(--yellow);
}

.about__value.is-bad {
  color: var(--red);
}

.about__note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.noscript {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.footer__brand span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  color: var(--muted);
  font-size: 11px;
}

/* Error page */

.error-page {
  margin-top: 10px;
}

.error-page .hero__main {
  align-items: flex-start;
}

.error-page .button {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #061d13;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
}

.error-page .button:hover {
  background: var(--green-strong);
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 24px;
  }

  .hero__stats {
    gap: 24px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .hero__stat b {
    font-size: 21px;
  }

  .component__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .uptime {
    gap: 12px;
  }

  .about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
  }

  .header__inner {
    min-height: 58px;
  }

  .brand__page {
    display: none;
  }

  .brand__divider {
    display: none;
  }

  .header__link {
    font-size: 12px;
  }

  main.container {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .hero {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .hero__main {
    gap: 13px;
  }

  .hero__icon {
    width: 44px;
    height: 44px;
  }

  .status-icon {
    width: 23px;
    height: 23px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero__desc {
    font-size: 13px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11.5px;
    gap: 2px;
  }

  .hero__meta .dot-sep {
    display: none;
  }

  .hero__stats {
    gap: 18px;
  }

  .hero__stat b {
    font-size: 19px;
  }

  .hero__stat span {
    max-width: 105px;
    font-size: 10.5px;
  }

  .section {
    margin-top: 28px;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }

  .section__hint {
    text-align: left;
  }

  .component {
    padding: 14px 15px 13px;
  }

  .component__head {
    gap: 10px;
  }

  .component__desc {
    font-size: 11.5px;
  }

  .component__state {
    gap: 8px;
  }

  .component__latency {
    display: none;
  }

  .bar {
    height: 20px;
    gap: 1px;
  }

  .uptime {
    gap: 7px;
  }

  .uptime dt {
    font-size: 9.5px;
  }

  .uptime dd {
    font-size: 11.5px;
  }

  .incident {
    padding: 13px 14px;
  }

  .incident__head {
    flex-direction: column;
    gap: 5px;
  }

  .incident__meta {
    font-size: 11.5px;
  }

  .about {
    padding: 16px 15px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .empty {
    align-items: flex-start;
    padding: 16px;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .footer__copy {
    order: 3;
  }
}

@media (max-width: 380px) {
  .hero__stat b {
    font-size: 17px;
  }

  .component__status {
    font-size: 11.5px;
  }

  .component__name {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
