:root {
  color-scheme: dark;
  --bg: #111411;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f5ed;
  --muted: #a9b0a2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #8fd16a;
  --accent-2: #65c8d0;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(143, 209, 106, 0.18), transparent 34rem),
    linear-gradient(145deg, #111411 0%, #181d19 42%, #101819 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.clock {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding-bottom: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.clock strong {
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
}

.controls {
  position: sticky;
  top: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 17, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search span {
  color: var(--accent-2);
  font-size: 1.4rem;
  line-height: 1;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.search input::placeholder {
  color: #7e8779;
}

.open-all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 82px;
  padding: 18px 22px;
  border: 1px solid rgba(143, 209, 106, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 209, 106, 0.28), rgba(101, 200, 208, 0.15)),
    rgba(143, 209, 106, 0.16);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(18px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.open-all-icon {
  order: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent);
  font-size: 1.3rem;
}

.open-all span:not(.open-all-icon) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.open-all strong {
  font-size: 1.18rem;
  line-height: 1.1;
}

.open-all small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.open-all:hover,
.open-all:focus-visible {
  border-color: rgba(143, 209, 106, 0.78);
  background:
    linear-gradient(135deg, rgba(143, 209, 106, 0.38), rgba(101, 200, 208, 0.2)),
    rgba(143, 209, 106, 0.2);
  transform: translateY(-2px);
}

.open-all:focus-visible {
  outline: 3px solid rgba(101, 200, 208, 0.38);
  outline-offset: 3px;
}

.open-all:disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #7e8779;
  cursor: not-allowed;
  transform: none;
}

.open-status {
  min-height: 1.2em;
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
    var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.service-card[hidden] {
  display: none;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(143, 209, 106, 0.64);
  background:
    linear-gradient(135deg, rgba(143, 209, 106, 0.18), rgba(101, 200, 208, 0.1)),
    var(--panel-strong);
  transform: translateY(-3px);
}

.service-card:focus-visible {
  outline: 3px solid rgba(101, 200, 208, 0.38);
  outline-offset: 3px;
}

.service-card img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.service-card span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.service-card strong {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.1;
}

.service-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.25;
}

.empty-state {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 28px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .clock {
    justify-items: start;
    padding-bottom: 0;
  }

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

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

  .service-card {
    min-height: 92px;
    padding: 18px;
  }
}
