:root {
  --navy: #04119b;
  --navy-deep: #02096a;
  --green: #016b37;
  --green-bright: #01a45a;
  --ink: #111934;
  --muted: #64708a;
  --line: #e6e9f1;
  --surface: #f6f8fc;
  --white: #fff;
  --shadow: 0 14px 35px rgba(16, 27, 69, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; overflow: hidden; }

.topbar {
  height: 92px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid rgba(4, 17, 155, .08);
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 174px; height: 58px; object-fit: contain; }
.brand-divider { width: 1px; height: 35px; background: var(--line); }
.brand-name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.top-actions, .help-link, .profile { display: flex; align-items: center; }
.top-actions { gap: 28px; }
.help-link { gap: 8px; font-size: 14px; font-weight: 600; color: #46506a; }
.help-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.profile {
  gap: 11px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), #2434d6);
  font-size: 13px;
  font-weight: 700;
}
.profile-copy { display: flex; flex-direction: column; gap: 2px; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { color: var(--muted); font-size: 11px; }
.profile > svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hero {
  min-height: 310px;
  padding: 56px max(24px, calc((100vw - 1200px) / 2));
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 58%, #1024bd 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}

.hero-content { width: min(720px, 67%); position: relative; z-index: 2; }
.eyebrow { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #99e4bf; }
.eyebrow.dark { color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 49px); line-height: 1.1; letter-spacing: -.045em; }
.hero-content > p { margin-bottom: 28px; color: #dce0ff; font-size: 16px; line-height: 1.7; }

.search {
  width: min(650px, 100%);
  height: 62px;
  padding: 7px 7px 7px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 45, .22);
}
.search svg { width: 21px; flex: 0 0 auto; fill: none; stroke: #7c849a; stroke-width: 2; stroke-linecap: round; }
.search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; }
.search input::placeholder { color: #8b93a6; }
.search button {
  height: 48px;
  padding: 0 25px;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.search button:hover { background: #00582d; transform: translateY(-1px); }

.hero-art { position: absolute; width: 390px; height: 280px; right: max(20px, calc((100vw - 1200px) / 2)); bottom: -18px; opacity: .95; }
.hero-art > svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.orb-one { width: 230px; height: 230px; right: -38px; top: 0; }
.orb-two { width: 110px; height: 110px; left: 23px; bottom: 8px; }

.content-wrap { max-width: 1200px; margin: 0 auto; padding: 58px 24px 62px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 8px; font-size: 29px; letter-spacing: -.035em; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 600; }

.filter-row { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #626b80;
  font-size: 12px;
  font-weight: 600;
  transition: .2s ease;
}
.filter:hover, .filter.active { border-color: var(--navy); color: var(--white); background: var(--navy); }

.forms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.form-card {
  min-height: 305px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(25, 34, 72, .03);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.form-card:hover { transform: translateY(-4px); border-color: rgba(4,17,155,.22); box-shadow: var(--shadow); }
.form-card.featured { border-top: 3px solid var(--navy); padding-top: 22px; }
.card-top { min-height: 48px; display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.icon-box { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; }
.icon-box svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-box.blue { color: var(--navy); background: #edf0ff; }
.icon-box.green { color: var(--green); background: #e8f7ef; }
.icon-box.teal { color: #087d77; background: #e6f7f5; }
.icon-box.violet { color: #7046af; background: #f2ecfb; }
.icon-box.amber { color: #a86200; background: #fff4dc; }
.icon-box.rose { color: #bb3a60; background: #fdebf0; }
.icon-box.cyan { color: #00789c; background: #e5f6fb; }
.icon-box.navy { color: #26345f; background: #edf0f6; }
.tag, .status { padding: 6px 8px; border-radius: 99px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.tag { color: var(--navy); background: #eef0ff; text-transform: uppercase; letter-spacing: .05em; }
.status { display: flex; align-items: center; gap: 5px; color: var(--muted); background: #f5f6f9; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--green); background: #eaf8f1; }
.status.deadline { color: #ad6200; background: #fff4df; }
.form-card h3 { margin-bottom: 10px; font-size: 16px; line-height: 1.35; letter-spacing: -.015em; }
.form-card > p { margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.card-meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #eff1f5; color: #8a92a4; font-size: 9px; font-weight: 600; }
.card-link { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: var(--navy); font-size: 12px; font-weight: 700; }
.card-link span { font-size: 19px; transition: transform .2s ease; }
.form-card:hover .card-link span { transform: translateX(4px); }

.support {
  max-width: 1152px;
  margin: 0 auto 64px;
  padding: 27px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  border: 1px solid #dce6e1;
  border-radius: 14px;
  background: #f0f8f4;
}
.support-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--white); }
.support-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-copy h2 { margin-bottom: 5px; font-size: 17px; letter-spacing: -.02em; }
.support-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.support-details { display: flex; flex-direction: column; gap: 6px; padding-right: 8px; color: var(--muted); font-size: 11px; }
.support-details a { color: var(--green); font-weight: 700; }
.support-button { padding: 13px 17px; border-radius: 8px; color: var(--white); background: var(--green); font-size: 11px; font-weight: 700; }

footer {
  min-height: 80px;
  padding: 25px max(24px, calc((100vw - 1152px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: #7b8498;
  font-size: 10px;
}
footer p { margin: 0; }
footer nav { display: flex; gap: 22px; }
footer a:hover, .help-link:hover { color: var(--navy); }

:focus-visible { outline: 3px solid #64bf91; outline-offset: 3px; }

@media (max-width: 980px) {
  .forms-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { right: -65px; opacity: .65; }
  .support { margin-inline: 24px; grid-template-columns: auto 1fr auto; }
  .support-details { grid-column: 2; }
  .support-button { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  .topbar { height: 76px; padding-inline: 18px; }
  .brand { gap: 10px; }
  .brand img { width: 118px; height: 44px; }
  .brand-divider { height: 27px; }
  .brand-name { max-width: 62px; font-size: 12px; line-height: 1.15; }
  .help-link, .profile-copy, .profile > svg { display: none; }
  .top-actions { gap: 0; }
  .hero { min-height: 365px; padding-top: 46px; padding-bottom: 48px; align-items: start; }
  .hero-content { width: 100%; }
  .hero-art { width: 260px; height: 190px; right: -76px; bottom: -24px; opacity: .25; }
  h1 { font-size: 34px; }
  .hero-content > p { font-size: 14px; }
  .search { height: 57px; padding-right: 5px; }
  .search button { height: 47px; padding-inline: 17px; }
  .content-wrap { padding-top: 44px; }
  .section-heading { align-items: start; }
  .form-count { display: none; }
  .forms-grid { grid-template-columns: 1fr; }
  .form-card { min-height: 285px; }
  .support { margin: 0 24px 45px; padding: 24px; grid-template-columns: auto 1fr; }
  .support-details { grid-column: 1 / -1; }
  .support-button { grid-column: 1 / -1; grid-row: auto; text-align: center; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
