:root {
  --bg: #edf4f8;
  --paper: #ffffff;
  --ink: #102a43;
  --blue: #007ac9;
  --blue-deep: #005f99;
  --border: #cfe0eb;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.site-frame {
  width: min(1320px, calc(100% - 24px));
  margin: 10px auto;
}

.top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  padding: 0 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, #0083d4 0%, var(--blue) 46%, var(--blue-deep) 100%);
  color: white;
  box-shadow: 0 16px 38px rgba(0, 95, 153, 0.12);
}

.home-link {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .top-banner {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 18px 20px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 16px 22px;
  }
}

@media (max-width: 640px) {
  .site-frame {
    width: min(100% - 12px, 1320px);
    margin-top: 6px;
  }

  .top-banner {
    min-height: 0;
    padding: 16px;
    gap: 16px;
  }
}
