:root {
  --navy: #1b1b4b;
  --navy-deep: #12122f;
  --green: #8cc63f;
  --green-hot: #9fd64f;
  --orange: #f7941e;
  --orange-hot: #ffaa3d;
  --sky: #00aeef;
  --gold: #f7941e;
  --gold-hot: #ffaa3d;
  --ink: #1b1b4b;
  --muted: #5c6578;
  --page: #f4f8f1;
  --paper: #ffffff;
  --line: #d7e3d0;
  --shadow: 0 14px 40px rgba(27, 27, 75, 0.08);
  --radius: 8px;
  --max: 1140px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 108px;
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.95rem;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

.nav-cta {
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 10px;
  padding: 0;
}

.logo img {
  width: auto;
  height: 112px;
  max-width: min(520px, 62vw);
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  background: transparent;
  border-radius: 10px;
  padding: 0.2rem 0.35rem;
}

.powered-by span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.powered-by img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.powered-by-lg {
  width: 100%;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
}

.powered-by-lg img {
  height: 56px;
  max-width: 260px;
}

.footer-register {
  text-align: center;
}

.footer-register .footer-logo {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--orange);
  color: #fff;
}

.btn-gold:hover {
  background: var(--orange-hot);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-wide {
  width: 100%;
  border-radius: 10px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero {
  color: #fff;
  padding: 0;
}

.hero-banner {
  position: relative;
  min-height: min(78vh, 760px);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      90deg,
      rgba(12, 18, 36, 0.82) 0%,
      rgba(12, 18, 36, 0.55) 42%,
      rgba(12, 18, 36, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(12, 18, 36, 0.15), rgba(12, 18, 36, 0.72));
}

.hero-copy {
  padding: 4.2rem 0 3rem;
  overflow-wrap: break-word;
}

.kicker {
  display: inline-block;
  border: 1px solid var(--green);
  color: #fff;
  background: rgba(140, 198, 63, 0.2);
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 1rem;
  max-width: 100%;
  line-height: 1.4;
}

.kicker.event-date {
  border-color: var(--orange);
  background: rgba(247, 148, 30, 0.32);
  font-size: clamp(0.88rem, 2.4vw, 1.05rem);
  letter-spacing: 0.03em;
}

.hero-themes {
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.82rem, 2.1vw, 0.98rem);
  margin: 0 0 0.95rem;
  max-width: 40rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h1 span {
  display: block;
  margin-top: 0.12em;
  color: var(--green);
  font-style: italic;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  text-transform: none;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.lede {
  max-width: 46ch;
  opacity: 0.92;
  margin-bottom: 1.4rem;
  overflow-wrap: break-word;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(243, 192, 0, 0.7);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  min-width: 0;
  flex: 1 1 150px;
}

.chip dt {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--green);
}

.chip dd {
  font-weight: 800;
}

.chip-date {
  border-color: var(--orange);
  background: rgba(247, 148, 30, 0.22);
  flex: 1 1 180px;
}

.chip-date dt {
  color: var(--orange);
}

.lockup-frame {
  background: transparent;
  border-radius: 18px;
  padding: 0.4rem;
  display: grid;
  place-items: center;
}

.footer-logo {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 0.7rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.4rem 0.5rem;
}

.site-footer .powered-by {
  background: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
}

.slogan {
  background: #e7f4d8;
  color: var(--navy);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  padding: 0.95rem 1rem;
  line-height: 1.4;
}

.cta-bar {
  background: var(--green);
  color: var(--navy);
  text-align: center;
  padding: 1.1rem;
}

.lockup-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

section {
  padding: 4.2rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head p {
  color: var(--muted);
}

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: stretch;
}

.about-copy {
  padding: 2rem 1.85rem 1.85rem;
  overflow-wrap: break-word;
}

.about-visual {
  margin: 0;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 1.4rem 1.6rem;
}

.about-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-creed {
  list-style: none;
  margin: 1rem 0 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  line-height: 1.5;
}

.about-creed li + li {
  margin-top: 0.15rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.accent-card {
  border-top: 5px solid var(--green);
}

.races-wrap {
  background: linear-gradient(180deg, #eaf5df 0%, #f6fbf0 100%);
  color: var(--navy);
}

.races-wrap h2,
.races-wrap .section-head p {
  color: var(--navy);
}

.races-wrap .section-head p {
  font-weight: 800;
}

.races-wrap .section-head {
  margin-bottom: 1.15rem;
}

.race-kit {
  text-align: center;
  margin: 0 auto 1.6rem;
  padding: 1rem 1.2rem 1.15rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 27, 75, 0.06);
}

.race-kit-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--orange);
  margin-bottom: 0.55rem;
}

.race-kit-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  line-height: 1.4;
}

.race-kit-items span:not(:last-child)::after {
  content: "+";
  margin: 0 0.55rem;
  font-weight: 700;
}

.race-kit-items span:nth-child(1)::after {
  color: var(--orange);
}

.race-kit-items span:nth-child(2)::after {
  color: var(--green);
}

.race-kit-items span:nth-child(3)::after {
  color: var(--sky);
}

.race-kit-items span:nth-child(4)::after {
  color: var(--orange);
}

.races {
  gap: 1.2rem;
}

.race-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.35rem 1.4rem;
  border: 0;
  box-shadow: 0 18px 40px rgba(27, 27, 75, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.race-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
}

.race-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(27, 27, 75, 0.14);
}

.race-10::before {
  background: var(--orange);
}

.race-6::before {
  background: var(--green);
}

.race-3::before {
  background: var(--sky);
}

.race-10 .runner-icon {
  color: var(--orange);
  background: #fff4e6;
}

.race-6 .runner-icon {
  color: var(--green);
  background: #f3fbe6;
}

.race-3 .runner-icon {
  color: var(--sky);
  background: #e6f7fd;
}

.race-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--page);
  color: var(--navy);
}

.race-for {
  color: var(--muted);
  margin: 0.15rem 0 0.85rem;
  min-height: 3em;
}

.race-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.race-meta li {
  background: var(--page);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

.runner-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.runner-icon svg {
  width: 72px;
  height: 72px;
  display: block;
  overflow: visible;
}

.distance {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.time {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
}

.races,
.themes,
.sponsors {
  display: grid;
  gap: 1.2rem;
}

.races,
.themes {
  grid-template-columns: repeat(3, 1fr);
}

.themes h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0.4rem 0 0.65rem;
  text-transform: none;
}

.fee {
  color: var(--muted);
  font-size: 0.85rem;
}

.sponsors {
  grid-template-columns: repeat(3, 1fr);
}

.sponsor {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
}

.sponsor.featured {
  grid-column: 1 / -1;
  min-height: 120px;
}

.sponsor-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--sky);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.partner-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.partner-card {
  background: #fff;
  padding: 1.35rem 1.1rem 1.5rem;
}

.tech-partner {
  min-height: 200px;
}

.partner-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 168px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  margin-top: 0.65rem;
}

.sponsor-slot {
  width: min(180px, 80%);
  height: 88px;
  margin-top: 0.5rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 720px;
  margin: 0 auto;
}

.contact-value {
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  overflow-wrap: anywhere;
}

.contact-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: var(--orange);
  opacity: 0.85;
  text-decoration: none;
}

.footer-contact {
  margin: 0;
}

.footer-register .footer-contact {
  margin: 0.85rem 0 1rem;
}

.footer-contact p {
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.site-footer .contact-link:hover {
  color: var(--gold);
  opacity: 0.85;
  text-decoration: none;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #e6e9f2;
  border-top: 3px solid var(--green);
  padding: 2.4rem 0 1.4rem;
  background: var(--navy);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("hero-banner.png") center 42% / cover no-repeat;
  opacity: 0.32;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      165deg,
      rgba(18, 18, 47, 0.9) 0%,
      rgba(27, 27, 75, 0.86) 42%,
      rgba(27, 27, 75, 0.78) 68%,
      rgba(140, 198, 63, 0.32) 86%,
      rgba(247, 148, 30, 0.22) 100%
    );
}

.site-footer .wrap {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.footer-links p {
  margin: 0.2rem 0;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  text-transform: none;
}

.footer-title {
  font-size: clamp(1.28rem, 2.5vw, 1.55rem);
  margin-bottom: 0.55rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.88rem;
}

.legal a {
  color: var(--green);
  font-weight: 700;
}

.legal + .legal {
  border-top: 0;
  padding-top: 0.35rem;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 2.8rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

.page-hero .lede {
  opacity: 0.85;
  margin-bottom: 0;
}

.form-shell {
  padding: 2.4rem 0 4rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.error {
  color: #b42318;
  font-size: 0.86rem;
  min-height: 1.05rem;
  margin-top: 0.2rem;
}

.success,
.notice {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.success {
  display: none;
  background: #e8f6ee;
  border: 1px solid #b7e0c4;
  color: #14532d;
}

.success.show {
  display: block;
}

.notice {
  background: #fff4e5;
  border: 1px solid #f5c9a0;
  color: #7a3e0c;
}

.notice.closed {
  background: #fdecec;
  border-color: #f3c1c1;
  color: #8a1f1f;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.check input {
  width: auto;
  margin-top: 0.25rem;
}

.upgraded-form-shell {
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
}

.registration-sidebar {
  position: sticky;
  top: 126px;
}

.registration-sidebar .fee {
  margin-top: 1rem;
  font-weight: 800;
  color: var(--orange);
}

.tshirt-preview,
.tshirt-art {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.tshirt-preview img,
.tshirt-art img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.tshirt-preview p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.registration-form {
  padding: 0;
  overflow: hidden;
}

.form-section {
  padding: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.form-section-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-section-head span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 900;
}

.form-section-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.15rem;
}

.form-section-head p {
  color: var(--muted);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.choice-grid,
.size-selector,
.binary-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.race-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.choice-card,
.size-selector button,
.binary-choice button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.choice-card {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  text-align: left;
  padding: 1rem;
}

.choice-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.size-selector button,
.binary-choice button {
  min-width: 64px;
  padding: 0.75rem 0.9rem;
}

.choice-card.is-selected,
.size-selector button.is-selected,
.binary-choice button.is-selected {
  border-color: var(--orange);
  background: #fff4e6;
  box-shadow: inset 0 0 0 2px var(--orange);
}

.choice-card.is-selected::after,
.size-selector button.is-selected::after {
  content: " selected";
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
}

.tshirt-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.submit-registration {
  margin: 1.35rem;
  width: calc(100% - 2.7rem);
  min-height: 54px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.confirmation {
  margin: 1.35rem;
}

.confirmation h2 {
  color: #14532d;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.confirmation-id {
  display: inline-block;
  margin: 0.8rem 0;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #b7e0c4;
  font-weight: 900;
  color: var(--navy);
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}

.confirmation-grid div {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 0.65rem;
}

.confirmation-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.confirmation-grid dd {
  font-weight: 900;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    z-index: 2;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    padding: 0.75rem 0.6rem;
    min-height: 44px;
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-bottom: 0;
    background: var(--page);
    border-radius: 8px;
  }

  .nav-cta {
    width: 100%;
  }

  .races,
  .themes,
  .sponsors {
    grid-template-columns: 1fr 1fr;
  }

  .sponsor.featured,
  .partner-row {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.is-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 72px;
    flex-wrap: wrap;
  }

  .brand .powered-by {
    display: none;
  }

  .logo img {
    height: 78px;
    max-width: min(380px, 74vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer::before {
    opacity: 0.2;
  }

  .site-footer::after {
    background:
      linear-gradient(
        180deg,
        rgba(18, 18, 47, 0.92) 0%,
        rgba(27, 27, 75, 0.9) 55%,
        rgba(140, 198, 63, 0.28) 100%
      );
  }

  .hero-banner,
  .hero-overlay {
    min-height: 520px;
  }

  .hero-copy {
    padding: 2.4rem 0 1.8rem;
  }

  .kicker {
    font-size: 0.72rem;
    max-width: 100%;
  }

  .chip {
    min-width: calc(50% - 0.5rem);
    flex: 1 1 140px;
  }

  .slogan {
    font-size: 1.05rem;
    font-style: normal;
    padding: 0.9rem 1rem;
    line-height: 1.35;
  }

  section {
    padding: 2.8rem 0;
  }

  .stat-row {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .form-shell,
  .races,
  .themes,
  .sponsors,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .upgraded-form-shell,
  .form-grid,
  .race-choice-grid,
  .tshirt-layout {
    grid-template-columns: 1fr;
  }

  .registration-sidebar {
    position: static;
  }

  .form-section {
    padding: 1.1rem;
  }

  .confirmation-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
    padding: 1.15rem 1.2rem 0.4rem;
  }

  .about-copy {
    padding: 0.6rem 1.35rem 1.5rem;
  }

  .sponsor.featured {
    grid-column: auto;
  }

  .partner-row {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    max-height: 200px;
  }

  .form-shell {
    padding-bottom: 2.4rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.4rem));
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-banner,
  .hero-overlay {
    min-height: 460px;
  }
}
