* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #071018;
}

.network-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3, 8, 15, 0.32), rgba(3, 8, 15, 0.6)),
    url("./bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.top-buttons {
  position: fixed;
  z-index: 10;
  top: 24px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid rgba(125, 232, 255, 0.62);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(8, 66, 104, 0.92));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(237, 233, 235, 0.9), rgba(2, 19, 30, 0.95));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42), 0 0 28px rgba(55, 223, 255, 0.3);
  outline: none;
}

.nav-button:active {
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .top-buttons {
    top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nav-button {
    min-height: 64px;
    padding: 14px 12px;
    font-size: 1rem;
  }
}

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