/* Hosting Guru — status.24hg.ru design system (2026) */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/hg/fonts/onest-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/hg/fonts/onest-latin-400.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/hg/fonts/onest-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/hg/fonts/onest-latin-500.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/hg/fonts/onest-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/hg/fonts/onest-latin-600.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/hg/fonts/onest-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/hg/fonts/onest-latin-700.woff2") format("woff2");
  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 {
  --hg-navy: #081c42;
  --hg-navy-deep: #05122c;
  --hg-blue: #2563eb;
  --hg-blue-soft: #3b82f6;
  --hg-yellow: #f5c518;
  --hg-yellow-ink: #c49a00;
  --hg-ok: #059669;
  --hg-warn: #d97706;
  --hg-crit: #dc2626;
  --hg-maint: #ea580c;
  --hg-bg: #eef2f8;
  --hg-surface: #ffffff;
  --hg-text: #0f172a;
  --hg-muted: #5b6b82;
  --hg-line: rgba(8, 28, 66, 0.09);
  --hg-shadow: 0 1px 2px rgba(8, 28, 66, 0.04), 0 12px 32px rgba(8, 28, 66, 0.07);
  --hg-radius: 16px;
  --hg-max: 70rem;
  --accent: 37 99 235;
  --accent-content: 37 99 235;
  --font-sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html.hg-status,
html.hg-status body {
  font-family: var(--font-sans) !important;
  background: var(--hg-bg) !important;
  color: var(--hg-text);
  -webkit-font-smoothing: antialiased;
}

html.hg-status .fi,
html.hg-status [class*="font-"],
html.hg-status body {
  font-family: var(--font-sans) !important;
}

.hg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hg-container {
  width: 100%;
  max-width: var(--hg-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .hg-container {
    padding-inline: 1.75rem;
  }
}

/* Header */
.hg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hg-line);
}

.hg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.hg-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--hg-navy);
  transition: opacity 0.2s ease;
}

.hg-wordmark:hover {
  opacity: 0.88;
}

.hg-wordmark:focus-visible {
  outline: 2px solid var(--hg-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.hg-wordmark__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--hg-yellow) 50%, transparent 50%) top left / 50% 50% no-repeat,
    linear-gradient(225deg, var(--hg-blue) 50%, transparent 50%) top right / 50% 50% no-repeat,
    linear-gradient(45deg, var(--hg-navy) 50%, transparent 50%) bottom left / 50% 50% no-repeat,
    linear-gradient(315deg, var(--hg-blue-soft) 50%, transparent 50%) bottom right / 50% 50% no-repeat;
  background-color: var(--hg-navy);
  box-shadow: inset 0 0 0 1px rgba(8, 28, 66, 0.08);
  flex-shrink: 0;
}

.hg-wordmark__brand {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hg-wordmark__guru {
  color: var(--hg-yellow-ink);
}

.hg-wordmark__badge {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hg-navy);
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(8, 28, 66, 0.12);
  border-radius: 999px;
  background: rgba(8, 28, 66, 0.03);
}

.hg-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hg-btn:focus-visible {
  outline: 2px solid var(--hg-blue);
  outline-offset: 2px;
}

.hg-btn--ghost {
  color: var(--hg-navy);
  border: 1px solid var(--hg-line);
  background: transparent;
}

.hg-btn--ghost:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--hg-blue);
  background: rgba(37, 99, 235, 0.04);
}

.hg-btn--primary {
  color: #fff;
  background: var(--hg-blue);
  border: 1px solid transparent;
}

.hg-btn--primary:hover {
  background: #1d4ed8;
}

.hg-link-quiet {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hg-muted);
  text-decoration: none;
}

.hg-link-quiet:hover {
  color: var(--hg-blue);
}

/* Hero */
.hg-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 85% 0%, rgba(37, 99, 235, 0.42), transparent 58%),
    radial-gradient(700px 360px at 0% 100%, rgba(245, 197, 24, 0.16), transparent 55%),
    linear-gradient(155deg, #0a2150 0%, var(--hg-navy) 42%, var(--hg-navy-deep) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.hg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hg-hero__glow {
  position: absolute;
  right: -8%;
  top: -20%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.14), transparent 68%);
  pointer-events: none;
}

.hg-hero__layout {
  position: relative;
  z-index: 1;
}

.hg-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 42rem;
  animation: hg-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hg-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hg-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hg-hero__brand {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

.hg-hero__brand span {
  color: var(--hg-yellow);
}

.hg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.7rem 1.05rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.98rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hg-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--hg-ok);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55);
  animation: hg-pulse 2.2s ease infinite;
}

.hg-status-dot--warn {
  background: var(--hg-warn);
  animation: none;
}
.hg-status-dot--crit {
  background: var(--hg-crit);
  animation: none;
}
.hg-status-dot--maint {
  background: var(--hg-maint);
  animation: none;
}

@keyframes hg-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.hg-hero__support {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
}

.hg-hero .hg-about-title {
  display: none;
}

.hg-hero .prose,
.hg-hero .prose p {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.hg-hero .prose a {
  color: #fff !important;
  text-underline-offset: 3px;
}

/* Main */
.hg-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.hg-main__stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hg-panel {
  background: transparent;
}

.hg-section-head {
  margin-bottom: 0.85rem;
  padding-inline: 0.15rem;
}

.hg-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--hg-navy);
}

.hg-section-lead {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--hg-muted);
  line-height: 1.45;
}

/* Catalog */
.hg-catalog {
  background: var(--hg-surface);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
  overflow: hidden;
}

.hg-catalog > ul > .hg-group:first-child .hg-group__toggle {
  background: linear-gradient(180deg, rgba(8, 28, 66, 0.015), transparent);
}

.hg-catalog > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-group + .hg-group {
  border-top: 1px solid var(--hg-line);
}

.hg-group__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.hg-group__toggle:hover {
  background: rgba(8, 28, 66, 0.025);
}

.hg-group__toggle:focus-visible {
  outline: 2px solid var(--hg-blue);
  outline-offset: -2px;
}

.hg-group__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hg-navy);
}

.hg-group__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hg-group__chevron {
  width: 1rem;
  height: 1rem;
  color: var(--hg-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hg-group__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hg-line);
}

.hg-service {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem 0.95rem 1.15rem;
  transition: background 0.18s ease;
}

.hg-service:hover {
  background: rgba(37, 99, 235, 0.03);
}

.hg-service + .hg-service {
  border-top: 1px solid var(--hg-line);
}

.hg-service__left {
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.hg-service__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(8, 28, 66, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: grid;
  place-items: center;
  color: var(--hg-blue);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hg-service:hover .hg-service__icon {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
}

.hg-service__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.hg-service__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hg-text);
}

.hg-service__name a {
  color: inherit;
  text-decoration: none;
}

.hg-service__name a:hover {
  color: var(--hg-blue);
}

.hg-service__desc {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--hg-muted);
}

.hg-service__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.2rem;
}

.hg-service__status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
}

.hg-status-ok {
  color: var(--hg-ok);
}
.hg-status-warn {
  color: var(--hg-warn);
}
.hg-status-crit {
  color: var(--hg-crit);
}
.hg-status-maint {
  color: var(--hg-maint);
}
.hg-status-unknown {
  color: var(--hg-muted);
}

/* Metrics */
.hg-metrics {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .hg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hg-metric {
  background: var(--hg-surface);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
  padding: 1.1rem 1.15rem 1.2rem;
}

.hg-metric h3 {
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  color: var(--hg-navy) !important;
}

.hg-metric [role="tablist"] {
  background: rgba(8, 28, 66, 0.04) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  ring: none;
}

/* Timeline / incidents */
.hg-timeline h2 {
  font-size: 1.05rem !important;
  font-weight: 650 !important;
  color: var(--hg-navy) !important;
}

.hg-incident {
  background: var(--hg-surface);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
  overflow: hidden;
}

.hg-incident a {
  color: var(--hg-navy);
}

.hg-incident a:hover {
  color: var(--hg-blue);
}

/* Footer */
.hg-footer {
  margin-top: auto;
  border-top: 1px solid var(--hg-line);
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 2.25rem 0 2rem;
}

.hg-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--hg-muted);
}

.hg-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hg-footer__logo {
  font-size: 1rem;
}

.hg-footer__tag {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.hg-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hg-footer__links a {
  color: var(--hg-navy);
  text-decoration: none;
  font-weight: 600;
}

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

.hg-footer__tz {
  font-size: 0.75rem;
}

.hg-footer__copy {
  opacity: 0.85;
}

/* Hero yellow accent readable on navy */
.hg-hero .hg-hero__brand span,
.hg-hero .hg-wordmark__guru {
  color: var(--hg-yellow);
}

/* Hide default Cachet chrome that fights the redesign */
.hg-page .shadow-sm.ring-1 {
  box-shadow: var(--hg-shadow) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hg-hero__inner,
  .hg-status-dot,
  .hg-service,
  .hg-btn {
    animation: none !important;
    transition: none !important;
  }
}
