:root {
  --red: #e31b2f;
  --red-dark: #9c1020;
  --ink: #111318;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f7f7f5;
  --white: #ffffff;
  --blue: #2870c7;
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sponsor-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.86), rgba(7, 9, 13, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.sponsor-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.sponsor-header nav a:hover,
.sponsor-header nav button:hover {
  color: var(--white);
}

.sponsor-header nav button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 15, 20, 0.96);
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.dropdown-menu.empty {
  min-height: 40px;
}

.dropdown-menu a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sponsor-hero {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 6vw, 88px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.96), rgba(8, 10, 14, 0.78)),
    url("sponsor.png") 68% center / cover;
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.95;
}

.sponsor-hero p:last-child {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.55;
}

.sponsor-browser {
  padding: clamp(44px, 6vw, 78px) clamp(18px, 6vw, 88px);
  background: #f1f2f2;
}

.year-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.year-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 78px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.year-controls button:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 27, 47, 0.42);
}

.year-controls button.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.year-panel {
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(17, 19, 24, 0.1);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfa;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.96;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
}

.category-grid section {
  min-height: 280px;
  padding: 24px;
  background: var(--white);
}

.category-grid h3 {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 20px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.logo-card img {
  display: block;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
  filter: saturate(0.95);
}

.logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 27, 47, 0.3);
  background: var(--white);
}

.logo-card:hover img {
  filter: saturate(1.08);
}

.sponsor-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin: 0 clamp(18px, 6vw, 88px) clamp(44px, 6vw, 78px);
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid #d9dde1;
  color: var(--ink);
  background: #e9ecef;
}

.sponsor-cta .kicker {
  color: var(--red);
}

.sponsor-cta h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.sponsor-cta p:last-child {
  max-width: 680px;
  margin: 22px 0 0;
  color: #515862;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.55;
}

.sponsor-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--red);
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.sponsor-cta a:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 88px) 36px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(227, 27, 47, 0.08), rgba(7, 9, 13, 0) 34%),
    linear-gradient(180deg, #11151d 0%, #07090d 74%),
    #07090d;
}

.footer::before {
  position: absolute;
  top: 0;
  left: clamp(18px, 6vw, 88px);
  width: 72px;
  height: 3px;
  content: "";
  background: var(--red);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--white);
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 2px solid rgba(227, 27, 47, 0.65);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--red);
}

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

  .sponsor-header nav {
    display: none;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
