﻿* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 32%, #f2f6fb 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.page {
  padding: 1.25rem 0 5rem;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero {
  background: radial-gradient(circle at 80% 0%, #2965c7, #07265d 45%, #04162f 80%);
  color: #fff;
  padding: 2rem 0;
}
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section-title { margin: 1.5rem 0 0.75rem; font-size: 1.7rem; }
.muted { color: var(--muted); }
.pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(var(--max), 100%);
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem;
}
.bottom-nav-link {
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
  padding: 0.45rem 0.2rem;
  border-radius: 8px;
}
.bottom-nav-link.active {
  background: #dbe8ff;
  color: var(--primary-strong);
  font-weight: 600;
}
@media (max-width: 640px) {
  .container { width: calc(100% - 1rem); }
  .hero { padding: 1.2rem 0; }
}
