:root {
  color-scheme: light;
  --ink: #14211c;
  --muted: #65726b;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #dfe5dc;
  --green: #1f6b4a;
  --blue: #1f5d8f;
  --red: #b33f36;
  --gold: #d9a441;
  --shadow: 0 18px 45px rgba(20, 33, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: rotate(-18deg);
  box-shadow: inset 9px 0 0 rgba(255, 255, 255, 0.35);
}

.top-nav {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  overflow-x: auto;
  white-space: nowrap;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.top-nav a:hover {
  background: #edf2ec;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 64vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) 0 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 850px;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 470px);
  filter: drop-shadow(0 24px 36px rgba(20, 33, 28, 0.16));
}

.search-panel {
  width: min(100%, 610px);
  margin-top: 30px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input,
button {
  font: inherit;
}

input[type="search"] {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f8faf7;
}

button {
  min-height: 45px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--green);
}

.name-section,
.seo-section {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.name-section h2,
.seo-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.name-grid article {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.name-grid h3 {
  margin-bottom: 8px;
}

.name-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.toolbar {
  position: sticky;
  top: 70px;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 13px 0 18px;
  background: linear-gradient(180deg, var(--paper) 78%, rgba(251, 250, 245, 0));
  overflow-x: auto;
}

.filter-button {
  padding: 10px 14px;
  min-width: max-content;
  color: var(--muted);
}

.filter-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 48px;
}

.competition-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 33, 28, 0.06);
}

.competition-card[hidden] {
  display: none;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--green);
}

.competition-card:nth-child(2n) .badge {
  background: #eef4fb;
  color: var(--blue);
}

.competition-card:nth-child(3n) .badge {
  background: #fbf2df;
  color: #8b5b09;
}

.competition-card h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  line-height: 1.05;
}

.summary {
  min-height: 96px;
  color: var(--muted);
}

dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 22px;
}

dl div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.competition-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.seo-section {
  align-items: start;
}

.seo-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-section li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

footer {
  padding: 30px 16px 44px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 4px 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .name-section,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 250px;
  }

  .competition-grid,
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 12px;
    overflow: hidden;
  }

  .top-nav {
    width: calc(100vw - 24px);
  }

  .brand {
    font-size: 0.96rem;
  }

  .hero {
    padding-top: 28px;
  }

  .search-row,
  .competition-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    top: 92px;
  }

  .competition-card {
    min-height: auto;
  }

  .summary {
    min-height: auto;
  }
}
