:root {
  color-scheme: dark;
  --background: #0c1117;
  --surface: #111821;
  --surface-hover: #151f2b;
  --border: #253141;
  --border-strong: #334357;
  --text: #edf4fb;
  --muted: #98a6b7;
  --accent: #51d6c2;
  --accent-soft: rgba(81, 214, 194, 0.14);
  --success: #58d68d;
  --danger: #ff7777;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.services-section {
  padding-top: 34px;
}

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

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  outline: none;
}

.service-card:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}

.service-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #0d141c;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-copy strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-copy span {
  color: var(--muted);
}

.service-url {
  overflow: hidden;
  color: #c5d0dd;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(88, 214, 141, 0.25);
  border-radius: 999px;
  background: rgba(88, 214, 141, 0.08);
  color: #bff2d2;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(88, 214, 141, 0.14);
}

.loading-state,
.error-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.error-state {
  color: var(--danger);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1080px);
    padding: 42px 0;
  }

  .page-header {
    padding-bottom: 26px;
  }

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

  .service-card {
    grid-template-columns: auto 1fr;
  }

  .status {
    grid-column: 2;
    width: max-content;
  }
}

@media (max-width: 420px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .status {
    grid-column: auto;
  }
}
