:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111513;
  color: #edf1ee;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #111513;
  background-size: 32px 32px;
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #303833;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  display: block;
  border: 1px solid #415047;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand p,
.section-header p,
footer {
  color: #99a59e;
}

.brand p {
  margin-top: 3px;
  font-size: 13px;
}

.summary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b8c2bc;
  font-size: 13px;
}

.summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55b989;
  box-shadow: 0 0 0 3px rgba(85, 185, 137, 0.13);
}

main {
  padding-block: 44px 56px;
}

.catalog {
  display: grid;
  gap: 52px;
}

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

h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.section-header p {
  font-size: 13px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service {
  min-width: 0;
  min-height: 178px;
  padding: 18px;
  border: 1px solid #303833;
  border-radius: 7px;
  background: rgba(25, 31, 28, 0.94);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.service:hover {
  transform: translateY(-2px);
  border-color: #5b7265;
  background: #1d2521;
}

.service:focus-visible {
  outline: 2px solid #68c89a;
  outline-offset: 3px;
}

.service-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
}

.service-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #435249;
  border-radius: 6px;
  background: #242d28;
  color: #b9dac8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

h3 {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.kind {
  display: block;
  margin-top: 2px;
  color: #849089;
  font-size: 11px;
}

.arrow {
  color: #76847c;
  font-size: 18px;
}

.service > p {
  min-height: 42px;
  margin: 20px 0;
  color: #abb5af;
  font-size: 13px;
  line-height: 1.55;
}

.metadata {
  display: flex;
  align-items: center;
  gap: 8px;
}

.state,
.access {
  font-size: 11px;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7e8983;
  content: "";
}

.state--available::before {
  background: #55b989;
}

.state--setup::before {
  background: #dfb054;
}

.access {
  margin-left: auto;
  color: #8e9a93;
}

.error {
  padding: 18px;
  border: 1px solid #754d4d;
  border-radius: 6px;
  background: #2c1d1d;
  color: #f0c3c3;
}

footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #303833;
  font-size: 12px;
}

@media (max-width: 820px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  main {
    padding-block: 32px 42px;
  }

  .catalog {
    gap: 40px;
  }

  .section-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .service {
    min-height: 0;
  }

  footer {
    justify-content: center;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service {
    transition: none;
  }
}
