* {
  box-sizing: border-box;
}

:root {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.065);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --primary: #22c55e;
  --accent: #38bdf8;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg), #0f172a);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.hero,
.summary,
.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 54px;
}

.tag {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.16rem;
}

.summary {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.summary article,
.section,
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary article {
  padding: 24px;
}

.summary strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.summary span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  margin-bottom: 40px;
  padding: 34px;
}

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

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #052e16;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-links a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.empty {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .summary,
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .summary,
  .section {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding: 54px 0 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4.3rem);
  }

  .summary,
  .grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 24px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

.filters {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.filters input,
.filters select,
.filters button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.filters input,
.filters select {
  width: 100%;
  padding: 0 14px;
}

.filters input::placeholder {
  color: rgba(168, 179, 199, 0.72);
}

.filters button {
  padding: 0 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #eff6ff;
  font-weight: 900;
}

.result-count {
  margin: -8px 0 18px;
  color: var(--muted);
  font-weight: 900;
}

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