:root {
  --navy: #101f50;
  --royal: #23499b;
  --yellow: #ffbe2d;
  --red: #c03d3a;
  --ice: #edf2fb;
  --ink: #15264f;
  --muted: #425578;
  --line: #d3ddef;
  --body: Arial, Helvetica, sans-serif;
  --display: "Arial Black", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.6 var(--body); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2978df; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
.wrap { width: min(calc(100% - 4rem), 76rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 8; transform: translateY(-200%); padding: .65rem 1rem; color: var(--navy); background: #fff; }
.skip:focus { transform: none; }

.top { position: sticky; top: 0; z-index: 3; background: #fff; box-shadow: 0 1px 0 #101f5015; }
.nav, .footer { display: flex; justify-content: space-between; align-items: center; gap: 1.55rem; }
.nav { min-height: 5.1rem; }
.brand { display: inline-block; flex: none; }
.nav .brand img { width: clamp(10rem, 19vw, 13.5rem); }
nav { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.75rem); font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .65rem 1.45rem; border-radius: .3rem; text-decoration: none; text-align: center; font-weight: 800; line-height: 1.25; transition: background-color .18s; }
.button-blue { background: var(--royal); color: #fff; }
.button-blue:hover { background: var(--navy); }
.button-yellow { background: var(--yellow); color: var(--navy); }
.button-yellow:hover { background: #ffd571; }
.nav .button { min-height: 2.7rem; }

.feature { --feature-bg: var(--navy); --feature-fade: #101f5090; --feature-clear: #101f5000; position: relative; isolation: isolate; min-height: clamp(32rem, 49vw, 43rem); display: grid; align-items: center; overflow: hidden; background: var(--feature-bg); color: #fff; }
.feature-photo { position: absolute; z-index: -1; inset: 0 0 0 35%; clip-path: polygon(15% 0,100% 0,100% 100%,0 100%); }
.feature-photo video { width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%; }
.feature-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--feature-bg) 13%,var(--feature-fade) 26%,var(--feature-clear) 55%); }
.feature-wrap { padding-block: clamp(2.7rem, 7vw, 5.5rem); }
.feature-copy { max-width: 39rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; width: fit-content; margin-bottom: 1.05rem; font-size: .88rem; font-weight: 800; line-height: 1.35; letter-spacing: .09em; text-transform: uppercase; color: var(--royal); }
.eyebrow::before { content: ""; flex: none; width: 1.6rem; height: .28rem; transform: skewX(-18deg); background: linear-gradient(90deg,var(--red) 0 35%,var(--yellow) 35% 68%,var(--royal) 68%); }
.feature .eyebrow { color: #fff; }
.feature .eyebrow::before { background: linear-gradient(90deg,var(--red) 0 35%,var(--yellow) 35% 68%,#fff 68%); }
h1, h2, .organizer h3 { font: 900 clamp(2.4rem, 5.4vw, 4.75rem)/.98 var(--display); letter-spacing: -.067em; }
h1 { font-size: clamp(3.15rem, 6.1vw, 5.85rem); }
.feature :is(h1, h2) em { color: var(--yellow); font-style: italic; }
.feature-copy > p:not(.eyebrow) { max-width: 23rem; margin: 1.45rem 0 1.4rem; color: #e9eefb; font-size: clamp(1.05rem, 1.5vw, 1.27rem); }

.race-bar { background: var(--yellow); color: var(--navy); }
.facts { display: grid; grid-template-columns: .82fr .83fr 1.2fr; padding-block: 1.25rem; }
.facts > div { padding: .08rem clamp(.6rem,3vw,2.4rem); border-left: 1px solid #101f5059; }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts span, .facts strong { display: block; }
.facts span { font-size: .835rem; font-weight: 800; letter-spacing: .08em; }
.facts strong { margin-top: .2rem; font-size: clamp(1rem,2.2vw,1.65rem); line-height: 1.12; }

.section { padding-block: clamp(3.3rem, 7.2vw, 6.7rem); }
.route, .about, .faq { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5.5vw, 5.5rem); }
.section h2 + p { max-width: 36rem; margin-top: 1.3rem; color: var(--muted); font-size: clamp(1.04rem,1.4vw,1.15rem); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--royal); font-weight: 800; text-underline-offset: .25em; }
.distances { display: grid; gap: .75rem; }
.distances article { display: grid; align-items: center; grid-template-columns: minmax(6.7rem,.63fr) 1fr; min-height: 8.1rem; gap: clamp(.85rem,2vw,1.7rem); padding: 1.25rem; background: var(--navy); color: #fff; border-radius: .4rem; border-left: .35rem solid var(--yellow); }
.distance { font: italic 900 clamp(2.9rem,5vw,5rem)/.88 var(--display); letter-spacing: -.07em; color: var(--yellow); white-space: nowrap; }
.distance span { margin-left: .3rem; font: 800 .88rem/1 var(--body); letter-spacing: .015em; }
.distances article p { color: #e3eaff; }
.distances h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: .28rem; }

.questions { background: var(--ice); }
.showcase { min-height: clamp(28rem, 43vw, 40rem); }
.hero .feature-photo video { object-position: 60% 42%; }
.showcase .feature-copy { max-width: 34rem; }
.showcase h2 { font-size: clamp(2.85rem, 5.3vw, 5.15rem); }
#kit .feature-photo video { object-position: 66% 45%; }
#medalha .feature-photo video { object-position: 66% 60%; }
#premiacao { --feature-bg: #172d64; --feature-fade: #172d6490; --feature-clear: #172d6400; }
#premiacao .feature-photo video { object-position: 51% 43%; }
.kit-list { width: fit-content; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.kit-list li { padding: .25rem 0 .25rem 1.4rem; position: relative; }
.kit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }
.places { display: flex; gap: .55rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.places li { padding: .42rem .95rem; border-radius: .27rem; background: var(--ice); color: var(--royal); font-size: 1.2rem; font-weight: 900; }
.places li:first-child { background: var(--yellow); color: var(--navy); }

.race-panel { background: #fff; }
.race-panel-grid {
  display: grid;
  grid-template: "copy title" auto "copy detail" auto / minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.3rem, 2.8vw, 2.3rem) clamp(2rem, 4vw, 4rem);
}
.race-panel-grid h2 { grid-area: title; align-self: end; text-align: right; }
.race-panel-copy { grid-area: copy; color: var(--muted); font-size: clamp(1.04rem, 1.4vw, 1.15rem); }
.race-panel-copy p + p { margin-top: 1.15rem; }
.modalities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.6rem, 4vw, 2.8rem) 0 0;
  padding: 0;
  list-style: none;
}
.modalities li {
  padding: clamp(1rem, 2.3vw, 1.75rem);
  border: 1px solid var(--line);
  border-top: .28rem solid var(--yellow);
  border-radius: .4rem;
  background: #fff;
}
.modalities h3 {
  margin-bottom: .55rem;
  color: var(--royal);
  font: 900 clamp(1.25rem, 2.2vw, 2rem)/1.1 var(--display);
  letter-spacing: -.04em;
}
.modalities h3 a { text-underline-offset: .18em; }
.modalities p { color: var(--muted); }
.race-panel-tagline { grid-area: detail; align-self: start; text-align: right; }
.race-panel-tagline { color: var(--royal); font: 900 clamp(1.25rem, 2.65vw, 2.15rem)/1.1 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.organizer { border-left: .32rem solid var(--red); padding: 1rem 0 1rem clamp(1.2rem,4vw,2.8rem); }
.organizer h3 { font-size: clamp(2.1rem,4.2vw,3.7rem); }
.organizer h3 + p { margin-top: .85rem; color: var(--muted); }
.faq { align-items: start; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.faq-topics { display: grid; gap: 1.65rem; min-width: 0; }
.faq-topic h3 { padding-bottom: .6rem; border-bottom: 2px solid var(--royal); font-size: 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p, .faq details ol { margin: .6rem 0 0; color: var(--muted); }
.faq details ol { padding-inline-start: 1.4rem; }
.faq details li + li { margin-top: .35rem; }
.faq details a { color: var(--royal); overflow-wrap: anywhere; text-underline-offset: .2em; }
footer { background: var(--navy); color: #fff; }
.footer { min-height: 8rem; padding-block: 1.2rem; gap: .65rem 1.25rem; }
.footer .text-link { margin-top: 0; color: #fff; flex: none; font-size: .875rem; }
.footer-brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.footer-brand p { margin: 0; font-size: .8125rem; font-weight: 700; }
.footer-logo { display: block; width: clamp(7rem, 11vw, 9rem); height: auto; }
.footer-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.05rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.footer-contacts li { min-width: 0; }
.footer-contacts a { display: flex; align-items: center; gap: .4rem; min-height: 2.75rem; overflow-wrap: anywhere; text-underline-offset: .22em; }
.footer-contacts svg {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  .footer { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 850px) {
  .modalities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { width: min(calc(100% - 2.4rem), 76rem); }
  nav { gap: 1rem; }
  .feature-photo { inset-inline-start: 31%; }
  .feature-copy { max-width: 30rem; }
  .distances article { grid-template-columns: minmax(5.8rem,.52fr) 1fr; padding: .9rem; }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 4.8rem; }
  .wrap { width: calc(100% - 2rem); }
  .nav { min-height: 4.25rem; }
  .nav .brand img { width: clamp(8.4rem, 42vw, 11rem); }
  .nav nav { display: none; }
  .feature { display: flex; flex-direction: column; align-items: stretch; min-height: auto; }
  .feature-photo { position: relative; inset: auto; clip-path: none; aspect-ratio: 1.5; }
  .feature-photo video { object-position: 55% 40%; }
  .feature-photo::after { background: linear-gradient(0deg,var(--feature-bg),var(--feature-clear) 26%); }
  .feature-wrap { margin-top: -1.1rem; padding-block: 0 2rem; }
  h1 { font-size: clamp(2.95rem,10vw,4.6rem); }
  .feature-copy > p:not(.eyebrow) { margin-block: 1rem; }
  .facts { grid-template-columns: .88fr .88fr 1.18fr; padding-block: .92rem; }
  .facts span { font-size: .72rem; letter-spacing: .045em; }
  .facts strong { font-size: clamp(.84rem,3.5vw,1.2rem); }
  .route, .about, .faq { grid-template-columns: minmax(0,1fr); gap: 1.7rem; }
  .showcase h2 { font-size: clamp(2.65rem,9.7vw,4.3rem); }
  .race-panel-grid { grid-template: "title" auto "copy" auto "detail" auto / minmax(0, 1fr); }
  .race-panel-grid h2, .race-panel-tagline { text-align: left; }
}
@media (max-width: 420px) {
  .modalities { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
