@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&family=Poppins:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg: #f5f3ef;
    --surface: #ffffff;
    --surface-soft: #f8f7f4;
    --ink: #111214;
    --muted: #66635d;
    --line: #cfc7ba;
    --line-soft: #e6e0d6;
    --accent: #f39818;
    --accent-deep: #bf1732;
    --panel: #17181a;
}

/* ===================================================
   ANIMATION SYSTEM
   =================================================== */

/* Page entrance */
@keyframes pageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageIn 0.6s ease both;
}

/* Fade-up scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.2, .9, .25, 1),
        transform 0.8s cubic-bezier(.2, .9, .25, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay utilities */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Fade-left / fade-right variants */
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(.2, .9, .25, 1),
        transform 0.8s cubic-bezier(.2, .9, .25, 1);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(.2, .9, .25, 1),
        transform 0.8s cubic-bezier(.2, .9, .25, 1);
}

.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-in variant */
.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(.2, .9, .25, 1),
        transform 0.7s cubic-bezier(.2, .9, .25, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero entrance keyframes */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero children entrance (page-home only) */
.page-home .hero-tag,
.page-home .hero-title-wrap,
.page-home .hero-copy,
.page-home .hero-btn {
    opacity: 0;
}

.page-home.is-loaded .hero-tag {
    animation: heroFadeUp 0.9s cubic-bezier(.2, .9, .25, 1) 0.15s both;
}

.page-home.is-loaded .hero-title-wrap {
    animation: heroFadeUp 1s cubic-bezier(.2, .9, .25, 1) 0.3s both;
}

.page-home.is-loaded .hero-copy {
    animation: heroFadeUp 0.9s cubic-bezier(.2, .9, .25, 1) 0.5s both;
}

.page-home.is-loaded .hero-btn {
    animation: heroFadeUp 0.9s cubic-bezier(.2, .9, .25, 1) 0.65s both;
}

/* Sub-page hero entrance */
@keyframes subHeroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rules-hero__title,
.rules-hero__sub,
.results-hero__title,
.results-hero__sub,
.contact-hero__title,
.contact-hero__sub,
.about-hero__title,
.about-hero__sub,
.reg-hero__title,
.reg-hero__sub {
    opacity: 0;
}

body.is-loaded .rules-hero__title,
body.is-loaded .results-hero__title,
body.is-loaded .contact-hero__title,
body.is-loaded .about-hero__title,
body.is-loaded .reg-hero__title {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.2s both;
}

body.is-loaded .rules-hero__sub,
body.is-loaded .results-hero__sub,
body.is-loaded .contact-hero__sub,
body.is-loaded .about-hero__sub,
body.is-loaded .reg-hero__sub {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.35s both;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }

    .fade-up,
    .fade-left,
    .fade-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .page-home .hero-tag,
    .page-home .hero-title-wrap,
    .page-home .hero-copy,
    .page-home .hero-btn,
    .rules-hero__title,
    .rules-hero__sub,
    .results-hero__title,
    .results-hero__sub,
    .contact-hero__title,
    .contact-hero__sub,
    .about-hero__title,
    .about-hero__sub,
    .reg-hero__title,
    .reg-hero__sub {
        opacity: 1;
        animation: none;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.container {
    margin: 0 auto;
    width: min(90%, 1280px);
}

.btn {
    border: 0;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 17px 28px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary,
.btn--nav {
    background: var(--accent-deep);
    box-shadow: 0 4px 0 var(--ink);
    color: #fff;
}

.btn--nav {
    min-width: 164px;
    padding-inline: 26px;
}

.btn-arrow {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
    margin-left: 10px;
}

.section {
    padding: 48px 0;
}

.navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    z-index: 100;
}

.navbar.is-scrolled,
.navbar.is-menu-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 10px 30px rgba(17, 18, 20, 0.1);
}

.nav-wrapper {
    align-items: center;
    display: flex;
    gap: 24px;
    min-height: 78px;
    position: relative;
}

.logo,
.footer-brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 900;
    gap: 10px;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-logo {
    display: inline-block;
    flex: 0 0 38px;
    height: 38px;
    overflow: hidden;
    position: relative;
    width: 38px;
}

.brand-logo img {
    display: block;
    height: 150%;
    left: 0;
    max-width: none;
    position: absolute;
    top: 0;
    transform: translate(-16%, -23%);
    width: 150%;
}

.logo,
.nav-links a,
.icon-link,
.language-switch,
.language-switch__link,
.menu-toggle span {
    transition: color 0.24s ease, background-color 0.24s ease;
}

.navbar:not(.is-scrolled):not(.is-menu-open) .logo,
.navbar:not(.is-scrolled):not(.is-menu-open) .nav-links a,
.navbar:not(.is-scrolled):not(.is-menu-open) .icon-link,
.navbar:not(.is-scrolled):not(.is-menu-open) .language-switch {
    color: #fff;
}

.navbar:not(.is-scrolled):not(.is-menu-open) .menu-toggle span {
    background: #fff;
}

.navbar:not(.is-scrolled):not(.is-menu-open) .nav-links a:hover,
.navbar:not(.is-scrolled):not(.is-menu-open) .icon-link:hover,
.navbar:not(.is-scrolled):not(.is-menu-open) .language-switch__link:hover {
    color: var(--accent);
}

.navbar:not(.is-scrolled):not(.is-menu-open) .nav-dropdown-menu a {
    color: var(--ink);
}

.navbar:not(.is-scrolled):not(.is-menu-open) .nav-dropdown-menu a:hover {
    color: var(--accent-deep);
}

.nav-panel {
    align-items: center;
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-links a {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.nav-dropdown-toggle svg {
    height: 13px;
    width: 13px;
}

.nav-item--dropdown::after {
    content: '';
    height: 18px;
    left: 50%;
    min-width: 210px;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    width: 100%;
}

.nav-dropdown-menu {
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: 0 16px 40px rgba(17, 18, 20, 0.14);
    left: 50%;
    list-style: none;
    min-width: 210px;
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 18px);
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 2;
}

.nav-dropdown-menu a {
    color: var(--ink);
    display: block;
    padding: 9px 10px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--accent-deep);
}

.nav-item--dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.nav-dropdown-toggle svg {
    transition: transform 0.25s ease;
}

.nav-item--dropdown.is-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-links a:hover,
.footer-links a:hover,
.icon-link:hover {
    color: var(--accent-deep);
}

.nav-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.language-switch {
    align-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 4px;
    height: 34px;
    letter-spacing: 0.08em;
    padding: 3px;
    text-transform: uppercase;
}

.language-switch__link {
    color: inherit;
    line-height: 1;
    padding: 7px 8px;
    text-decoration: none;
}

.language-switch__link.is-active {
    background: var(--ink);
    color: #fff;
}

.language-switch__link:hover {
    color: var(--accent-deep);
}

.navbar:not(.is-scrolled):not(.is-menu-open) .language-switch {
    background: rgba(17, 18, 20, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
}

.navbar:not(.is-scrolled):not(.is-menu-open) .language-switch__link.is-active {
    background: #fff;
    color: var(--ink);
}

.icon-link {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    height: 22px;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease;
    width: 22px;
}

.icon-link svg {
    height: 20px;
    width: 20px;
}

.menu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    margin-left: auto;
    padding: 10px 0 10px 12px;
}

.menu-toggle span {
    background: var(--ink);
    display: block;
    height: 2px;
    margin: 4px 0;
    width: 22px;
}

.hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.9), rgba(14, 15, 16, 0.76)),
        linear-gradient(118deg, rgba(14, 15, 16, 0.96) 0 16%, rgba(14, 15, 16, 0.88) 24%, transparent 38%),
        linear-gradient(12deg, rgba(14, 15, 16, 0.97) 0 12%, transparent 20%),
        url('../img/banner.webp') 62% center / cover no-repeat;
    min-height: 700px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    background: var(--bg);
    bottom: -1px;
    clip-path: polygon(0 40%, 100% 6%, 100% 100%, 0 100%);
    content: '';
    height: 88px;
    left: 0;
    position: absolute;
    right: 0;
}

.hero-inner {
    min-height: 700px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 760px;
    padding: 152px 0 134px;
}

.hero--admin-dashboard .hero-content {
    padding-top: 190px;
    padding-bottom: 96px;
}

.hero-tag {
    background: var(--accent);
    color: var(--ink);
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding: 6px 12px;
    text-transform: uppercase;
}

.hero-title-wrap {
    align-items: flex-start;
    display: flex;
    gap: 16px;
}

.hero-stroke {
    background: var(--accent-deep);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.28);
    flex: 0 0 5px;
    height: 190px;
    margin-top: 8px;
}

.hero h1 {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(3.15rem, 4.85vw, 4.8rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.88;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
    text-transform: uppercase;
}

.hero-title-main,
.hero-title-year {
    display: block;
}

.hero-title-main {
    max-width: 8.5ch;
    white-space: nowrap;
}

.hero-title-year {
    color: var(--accent);
    font-size: 0.74em;
    font-style: italic;
    font-weight: 800;
    line-height: 0.9;
    margin-top: 6px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.38);
    transform: skewX(-7deg);
    transform-origin: left center;
}

.hero-copy {
    border-left: 2px solid rgba(255, 255, 255, 0.82);
    margin-top: 24px;
    max-width: 620px;
    padding-left: 12px;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.hero-btn {
    font-size: 0.78rem;
    margin-top: 28px;
    min-width: 144px;
    padding: 14px 24px;
}

.page-main {
    position: relative;
}

.section--summary {
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

/* ===================================================
   RACE PACK BANNER
   =================================================== */
.racepack-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    margin-top: 14px;
}

.racepack-banner:hover {
    box-shadow: 0 8px 28px rgba(17, 18, 20, 0.08);
}

.racepack-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 34px;
}

.racepack-banner__tag {
    background: var(--accent);
    color: var(--ink);
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    padding: 4px 10px;
    text-transform: uppercase;
    width: fit-content;
}

.racepack-banner__title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.racepack-banner__desc {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 12px;
    max-width: 420px;
}

.racepack-banner__btn {
    font-size: 0.72rem;
    margin-top: 22px;
    padding: 12px 22px;
    width: fit-content;
}

.racepack-banner__image {
    overflow: hidden;
    position: relative;
}

.racepack-banner__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(.2, .9, .25, 1);
    width: 100%;
}

.racepack-banner:hover .racepack-banner__image img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .racepack-banner {
        grid-template-columns: 1fr;
    }

    .racepack-banner__content {
        padding: 24px 20px;
    }

    .racepack-banner__image {
        max-height: 280px;
        order: -1;
    }
}

/* ===================================================
   COUNTDOWN BANNER
   =================================================== */
@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@keyframes countdownShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes digitPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.countdown-banner {
    margin-bottom: 18px;
}

.countdown-banner__inner {
    align-items: center;
    background:
        linear-gradient(135deg, var(--panel) 0%, #1f2125 50%, var(--panel) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    justify-content: center;
    padding: 22px 28px;
    position: relative;
    overflow: hidden;
}

/* Shimmer overlay */
.countdown-banner__inner::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: countdownShimmer 6s ease-in-out infinite;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

/* Accent top border */
.countdown-banner__inner::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.countdown-banner__head {
    align-items: center;
    display: flex;
    gap: 8px;
}

.countdown-banner__flash {
    font-size: 1.25rem;
    line-height: 1;
}

.countdown-banner__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.countdown-timer {
    align-items: flex-end;
    display: flex;
    gap: 6px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.countdown-unit__label {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    order: -1;
    text-transform: uppercase;
}

.countdown-digits {
    display: flex;
    gap: 4px;
}

.countdown-digit {
    align-items: center;
    background: linear-gradient(180deg, #2a2c30 0%, #1c1d20 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    line-height: 1;
    min-width: 40px;
    transition: transform 0.2s cubic-bezier(.2, .9, .25, 1);
}

.countdown-digit.pop {
    animation: digitPop 0.3s ease;
}

.countdown-sep {
    color: var(--accent);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    padding-bottom: 8px;
    animation: countdownPulse 1s ease-in-out infinite;
}

/* Expired state */
.countdown-banner.is-expired .countdown-banner__title {
    color: var(--accent);
}

.countdown-banner.is-expired .countdown-digit {
    background: linear-gradient(180deg, rgba(191, 23, 50, 0.3) 0%, rgba(191, 23, 50, 0.15) 100%);
    border-color: rgba(191, 23, 50, 0.3);
}

.countdown-banner.is-expired .countdown-sep {
    animation: none;
    opacity: 0.4;
}


.summary-grid {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 330px);
}

.summary-card,
.includes-panel,
.page-panel,
.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
}

.summary-card {
    min-height: 142px;
    padding: 24px 28px;
    position: relative;
}

.summary-card__corner {
    background: #f1e6d4;
    display: block;
    height: 34px;
    position: absolute;
    right: 0;
    top: 0;
    width: 34px;
}

.summary-card__head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.summary-card__head h2,
.section-label h2,
.section-kicker span,
.panel-head h2,
.page-heading h1,
.cta-copy h2,
.info-card h2 {
    font-family: 'Montserrat', Arial, sans-serif;
}

.summary-card__head h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.summary-card__head p {
    color: #6c6458;
    font-size: 0.95rem;
    font-weight: 500;
}

.summary-icon {
    align-items: center;
    background: var(--panel);
    color: var(--accent);
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.summary-icon svg,
.include-item svg,
.location-pill svg {
    height: 16px;
    width: 16px;
}

.location-pill {
    align-items: center;
    background: var(--panel);
    color: #fff;
    display: inline-flex;
    gap: 8px;
    margin-top: 26px;
    padding: 8px 12px;
}

.location-pill span {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.location-pill svg {
    color: var(--accent);
}

.fee-group {
    background: var(--accent-deep);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 20px;
}

.fee-group__label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
}

.fee-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fee-card-mini {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    transition: background 0.2s ease;
}

.fee-card-mini:hover {
    background: rgba(255, 255, 255, 0.12);
}

.fee-card-mini__category {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fee-card-mini__values {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fee-card-mini__old {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: line-through;
}

.fee-card-mini__new {
    color: var(--accent);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.sponsor-label,
.page-eyebrow,
.info-card__label,
.table th {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.includes-panel {
    margin-top: 14px;
    padding: 18px 14px 14px;
}

.section-label,
.section-kicker {
    align-items: center;
    display: flex;
    gap: 12px;
}

.section-label {
    margin-bottom: 16px;
}

.section-label span {
    background: var(--accent);
    display: block;
    height: 24px;
    width: 9px;
}

.section-label h2,
.section-kicker span,
.page-eyebrow,
.panel-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.include-item {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    display: flex;
    gap: 12px;
    min-height: 70px;
    padding: 16px 18px;
}

.include-item svg {
    color: var(--accent-deep);
    flex: 0 0 18px;
}

.include-item span {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sponsor-band {
    background: #e9e6df;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding: 64px 0 60px;
}

.sponsor-row {
    display: grid;
    gap: 38px 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sponsor-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sponsor-label {
    color: #7a7369;
    font-size: 0.82rem;
}

.sponsor-list {
    align-items: center;
    border-top: 1px solid #d4cbbd;
    color: #706c67;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 34px;
    min-height: 112px;
    padding-top: 22px;
}

.sponsor-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    filter: grayscale(1) brightness(0.7);
    opacity: 0.45;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    cursor: default;
}

.sponsor-text:hover {
    opacity: 1;
    transform: scale(1.12);
}

.sponsor-logo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 80px;
    justify-content: center;
    width: 120px;
}

.sponsor-logo img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.sponsor-logo img:hover {
   
    opacity: 1;
    transform: scale(1.12);
}

.section--checkpoint {
    padding-top: 42px;
}

.checkpoint-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-dot {
    background: #f0a454;
    border-radius: 50%;
    display: block;
    height: 9px;
    width: 9px;
}

.section-kicker span:last-child {
    font-size: 1.02rem;
}

.checkpoint-heading p,
.panel-head p,
.page-heading p:last-child {
    color: #91551e;
    font-size: 0.92rem;
}

.cp-tabs {
    display: inline-flex;
    flex-wrap: wrap;
}

.cp-tabs button {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    min-height: 32px;
    min-width: 54px;
    padding: 7px 12px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cp-tabs button+button {
    border-left: 0;
}

.cp-tabs button.active,
.cp-tabs button:hover {
    background: var(--panel);
    color: #fff;
}

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow-x: auto;
}

.table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 14px;
    text-align: left;
}

.table th {
    background: var(--panel);
    color: #fff;
    font-size: 0.64rem;
}

.table td {
    color: #222325;
    font-size: 0.92rem;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.place {
    color: #b36817;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.lead-badge {
    background: #f5d8b8;
    color: #a85d18;
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-left: 8px;
    padding: 2px 6px;
    text-transform: uppercase;
    vertical-align: middle;
}

.time-lead {
    color: var(--accent-deep);
    font-weight: 700;
}

.tracking-panel {
    margin-top: 48px;
    margin-bottom: 24px;
}

.tracking-live-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tracking-live-card {
    min-width: 0;
}

.tracking-section-head {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
    min-height: 60px;
}

.tracking-section-head p {
    color: #91551e;
    font-size: 0.88rem;
    margin-top: 5px;
}

.tracking-section-head .cp-tabs {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.tracking-live-table {
    min-width: 520px;
}

.tracking-live-table th:first-child,
.tracking-live-table td:first-child {
    text-align: center;
    width: 70px;
}

.tracking-live-table th:nth-child(3),
.tracking-live-table td:nth-child(3) {
    width: 110px;
}

.tracking-live-table th:last-child,
.tracking-live-table td:last-child {
    text-align: right;
    width: 112px;
}

.tracking-live-table .place {
    font-size: 0.98rem;
}

.lead-badge--scan {
    background: rgba(46, 160, 67, 0.12);
    color: #1a7f37;
    margin-left: 0;
}

/* ===================================================
   RACE CATEGORY / MAP SECTION — UK Trail Run 2026
   =================================================== */

/* Section wrapper — rich deep burgundy-to-dark gradient from accent-deep */
.race-category-panel {
    background: linear-gradient(160deg, #1a0508 0%, #2d0f15 40%, #3a1520 70%, #2a1010 100%);
    color: #fff;
    padding: 0 0 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow from top-center for depth */
.race-category-panel::before {
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(191,23,50,0.25) 0%, transparent 70%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

/* Right accent strip */
.race-category-panel::after {
    background: var(--accent);
    content: "";
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    z-index: 1;
}
/* ---- RACE CATEGORIES SELECTOR ---- */
.race-cat-selector {
    padding: 48px 0 36px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.race-cat-selector__badge {
    background: var(--accent);
    color: var(--ink);
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 7px 18px;
    text-transform: uppercase;
}

.race-cat-selector__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.8rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-top: 14px;
    text-transform: uppercase;
}

.race-cat-selector__title em {
    color: var(--accent);
    font-style: italic;
}

/* Tab row */
.race-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

/* Individual tab button */
.race-cat-tab {
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.1em;
    padding: 14px 32px 14px 40px;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.race-cat-tab:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

/* Active tab — crimson/red accent matching UK Trail Run theme */
.race-cat-tab.is-active {
    background: linear-gradient(135deg, #bf1732 0%, #e01e3c 100%);
    color: #fff;
}

/* Diamond icon inside tab */
.race-cat-tab__diamond {
    border: 2px solid currentColor;
    display: inline-block;
    flex-shrink: 0;
    height: 16px;
    transform: rotate(45deg);
    width: 16px;
}

.race-cat-tab.is-active .race-cat-tab__diamond {
    background: rgba(255,255,255,0.35);
    border-color: #fff;
}

/* Category Header Bar */
.race-cat-header {
    padding: 32px 0 0;
    position: relative;
    z-index: 1;
}

.race-cat-header__inner {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.race-cat-title {
    color: var(--accent);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-transform: uppercase;
}

.race-cat-subtitle {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 4px;
    text-transform: uppercase;
}

.race-cat-brand {
    align-items: center;
    display: flex;
    gap: 10px;
}

.race-cat-brand__text {
    color: rgba(255,255,255,0.7);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: right;
    text-transform: uppercase;
}

.race-cat-brand__logo {
    background: var(--panel);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    overflow: hidden;
    width: 52px;
}

.race-cat-brand__logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

/* Gold accent line below header */
.race-cat-header__line {
    background: linear-gradient(90deg, var(--accent) 0%, #e8b848 50%, var(--accent) 100%);
    height: 3px;
    margin-top: 18px;
    width: 100%;
}

/* ---- MAP WRAPPER ---- */
.race-map-wrapper {
    margin-top: 28px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.race-map-border {
    border: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
    width: min(760px, 100%);
}

/* Leaflet Map */
.tracking-map {
    background: #17181a;
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

/* Map loading overlay */
.map-loading-overlay {
    align-items: center;
    background: rgba(23,24,26,0.95);
    bottom: 0;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    left: 0;
    letter-spacing: 0.1em;
    pointer-events: none;
    position: absolute;
    right: 0;
    text-transform: uppercase;
    top: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.map-loading-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.map-loading-spinner {
    animation: mapSpin 0.8s linear infinite;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    height: 32px;
    width: 32px;
}

/* ---- HOVER OVERLAY (State 2) ---- */
.race-map-hover-overlay {
    align-items: center;
    background: rgba(17,18,20,0.75);
    bottom: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.35s ease;
    z-index: 20;
}

.race-map-border:hover .race-map-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* When elevation is expanded, hide hover overlay */
.race-map-wrapper.is-expanded .race-map-hover-overlay {
    display: none;
}

.race-map-hover-overlay__icon {
    align-items: center;
    background: var(--accent);
    display: flex;
    height: 60px;
    justify-content: center;
    width: 60px;
}

.race-map-hover-overlay__icon svg {
    color: var(--ink);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.race-map-hover-overlay__text {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.race-map-hover-overlay__text strong {
    color: var(--accent);
}

/* ---- CLOSE DETAIL BUTTON (State 3) ---- */
.race-map-close-btn {
    align-items: center;
    background: var(--accent-deep);
    border: none;
    color: #fff;
    cursor: pointer;
    display: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    gap: 6px;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    position: absolute;
    right: 8px;
    text-transform: uppercase;
    top: 8px;
    z-index: 30;
}

.race-map-close-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.race-map-close-btn:hover {
    background: #9b1229;
}

.race-map-wrapper.is-expanded .race-map-close-btn {
    display: flex;
}

/* ---- ELEVATION PANEL (revealed on click — State 3) ---- */
.race-elevation-panel {
    background: #fff;
    border: 3px solid var(--accent);
    border-top: none;
    padding: 16px 20px 14px;
    width: min(760px, 100%);
}

.race-elevation-panel__title {
    color: var(--accent-deep);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.race-elevation-chart-wrap {
    height: 160px;
    position: relative;
}

.race-elevation-chart-wrap canvas {
    height: 100% !important;
    width: 100% !important;
}

/* ---- STATS BAR ---- */
.race-stats-bar {
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.race-stat-item {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 18px 16px;
}

.race-stat-item:last-child {
    border-right: none;
}

.race-stat-item__label {
    align-items: center;
    color: rgba(255,255,255,0.55);
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    gap: 6px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.race-stat-item__label svg {
    color: var(--accent);
    fill: none;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.race-stat-item__value {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-top: 8px;
    text-transform: uppercase;
}

.race-stat-item__note {
    color: var(--accent);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ---- RACE FACILITY ---- */
.race-facility {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.race-facility__title {
    align-items: center;
    color: #fff;
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.race-facility__title svg {
    color: var(--accent);
    fill: currentColor;
    flex-shrink: 0;
}

.race-facility__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.race-facility__chip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    text-transform: uppercase;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.race-facility__chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}

.section--cta {
    padding-bottom: 70px;
}

.cta-panel {
    align-items: center;
    background: var(--panel);
    clip-path: polygon(0 18px, 100% 0, 100% 100%, 0 100%);
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 188px;
    overflow: hidden;
    padding: 40px 34px 36px;
    position: relative;
}

.cta-panel::before {
    background: var(--accent);
    content: '';
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.cta-copy,
.cta-panel .btn {
    position: relative;
    z-index: 1;
}

.cta-copy h2 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    letter-spacing: 0;
    line-height: 0.95;
    text-transform: uppercase;
}

.cta-copy h2 span,
.cta-copy h2 strong {
    display: block;
}

.cta-copy h2 strong {
    color: var(--accent);
    font-weight: 900;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.86);
    margin-top: 14px;
    max-width: 520px;
}

.page-shell {
    min-height: calc(100vh - 158px);
    padding: 140px 0 76px;
}

.page-heading {
    margin-bottom: 32px;
    max-width: 820px;
}

.page-eyebrow,
.info-card__label {
    color: var(--accent-deep);
    margin-bottom: 10px;
}

.page-heading h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: 0;
    line-height: 1.04;
    margin-bottom: 12px;
}

.page-heading p:last-child,
.detail-list li,
.info-card p:nth-of-type(2) {
    color: var(--muted);
}

.page-panel {
    padding: 28px;
}

.panel-head {
    margin-bottom: 18px;
}

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

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

.info-card {
    min-height: 250px;
    padding: 26px;
}

.info-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 14px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    border-top: 1px solid var(--line-soft);
    padding: 12px 0 0;
}

.detail-list li+li {
    margin-top: 12px;
}

/* ===========================================================
   RACE RULES PAGE
   =========================================================== */
.rules-hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.88), rgba(14, 15, 16, 0.72)),
        url('../img/banner.webp') center / cover no-repeat;
    padding: 140px 0 64px;
    text-align: center;
}

.rules-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.rules-hero__sub,
.results-hero__sub,
.contact-hero__sub,
.about-hero__sub,
.reg-hero__sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 18px auto 0;
    max-width: 560px;
}

.rules-section {
    max-width: 880px;
    padding: 48px 0 72px;
}

/* --- Accordion --- */
.accordion {
    border: 1px solid var(--line);
    background: var(--surface);
    margin-bottom: 10px;
    transition: box-shadow 0.25s ease;
}

.accordion:hover {
    box-shadow: 0 2px 12px rgba(17, 18, 20, 0.06);
}

.accordion__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.06em;
    padding: 20px 24px;
    text-align: left;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
}

.accordion__toggle:hover {
    background: var(--surface-soft);
}

.accordion__letter {
    color: var(--accent-deep);
    flex: 0 0 auto;
    font-weight: 900;
    min-width: 28px;
}

.accordion__chevron {
    flex: 0 0 20px;
    height: 20px;
    margin-left: auto;
    stroke: var(--muted);
    transition: transform 0.3s ease;
    width: 20px;
}

.accordion.is-open .accordion__chevron {
    transform: rotate(180deg);
}

.accordion__body {
    border-top: 1px solid var(--line-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.accordion.is-open .accordion__body {
    padding: 20px 24px 24px;
}

.accordion__body ul {
    list-style: none;
    padding: 0;
}

.accordion__body>ul>li {
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 12px 0;
    padding-left: 18px;
    position: relative;
}

.accordion__body>ul>li:last-child {
    border-bottom: 0;
}

.accordion__body>ul>li::before {
    background: var(--accent);
    content: '';
    height: 6px;
    left: 0;
    position: absolute;
    top: 20px;
    width: 6px;
}

/* Nested sub-lists */
.accordion__body ul ul {
    list-style: none;
    margin: 10px 0 4px;
    padding-left: 16px;
}

.accordion__body ul ul li {
    border-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 4px 0 4px 14px;
    position: relative;
}

.accordion__body ul ul li::before {
    background: none;
    border-left: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    content: '';
    height: 8px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 8px;
}

@media (max-width: 700px) {
    .rules-hero {
        padding: 110px 0 48px;
    }

    .rules-section {
        padding: 32px 0 56px;
    }

    .accordion__toggle {
        font-size: 0.72rem;
        padding: 16px 16px;
    }

    .accordion__body {
        padding: 0 16px;
    }

    .accordion.is-open .accordion__body {
        padding: 16px 16px 20px;
    }
}

/* ===========================================================
   RACE RESULTS PAGE
   =========================================================== */
.results-hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.88), rgba(14, 15, 16, 0.72)),
        url('../img/banner.webp') center / cover no-repeat;
    padding: 140px 0 64px;
    text-align: center;
}

.results-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.results-wrapper {
    max-width: 1100px;
    padding-bottom: 72px;
    padding-top: 48px;
}

.results-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 28px 28px 20px;
}

/* --- Search --- */
.results-search {
    margin-bottom: 20px;
    position: relative;
}

.results-search__input {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-soft);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.92rem;
    outline: none;
    padding: 12px 14px 12px 42px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.results-search__input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(243, 152, 24, 0.12);
}

.results-search__input::placeholder {
    color: #b3aea5;
}

.results-search__icon {
    height: 18px;
    left: 14px;
    position: absolute;
    stroke: var(--muted);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
}

/* --- Distance Tabs --- */
.results-tabs {
    border-bottom: 2px solid var(--line);
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    overflow-x: auto;
}

.results-tab {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.results-tab:hover {
    color: var(--ink);
}

.results-tab.is-active {
    border-bottom-color: var(--accent-deep);
    color: var(--accent-deep);
}

/* --- Filters --- */
.results-filters {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.results-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.results-filter__label {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.results-filter__select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
    border: 1.5px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.88rem;
    outline: none;
    padding: 10px 32px 10px 12px;
    transition: border-color 0.2s ease;
}

.results-filter__select:focus {
    border-color: var(--accent);
}

.results-filter__reset {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 10px 22px;
    white-space: nowrap;
}

/* --- Total --- */
.results-total {
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.84rem;
    padding-bottom: 12px;
    text-align: center;
}

/* --- Table --- */
.results-table {
    border-collapse: collapse;
    font-size: 0.88rem;
    width: 100%;
}

.results-table thead th {
    background: var(--surface-soft);
    border-bottom: 2px solid var(--line);
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
}

.results-table tbody tr {
    border-bottom: 1px solid var(--line-soft);
    transition: background-color 0.15s ease;
}

.results-table tbody tr:hover {
    background: rgba(243, 152, 24, 0.03);
}

.results-table tbody td {
    color: var(--ink);
    padding: 11px 14px;
    white-space: nowrap;
}

/* --- Status Badges --- */
.status-badge {
    border-radius: 3px;
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    text-transform: uppercase;
}

.status-badge--finished {
    background: rgba(46, 160, 67, 0.1);
    color: #1a7f37;
}

.status-badge--lead {
    background: #f5d8b8;
    color: #a85d18;
    font-size: 0.62rem;
    margin-left: 6px;
    padding: 2px 6px;
    vertical-align: middle;
}

.status-badge--dnf {
    background: rgba(210, 105, 30, 0.1);
    color: #b35c00;
}

.status-badge--dns {
    background: rgba(130, 130, 130, 0.1);
    color: #666;
}

/* --- Live Tracking Management --- */
.tracking-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.tracking-refresh {
    align-items: center;
    display: inline-flex;
    font-size: 0.84rem;
    gap: 8px;
    padding: 10px 18px;
}

.tracking-refresh svg {
    display: block;
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 16px;
}

.tracking-grid {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 32px;
}

.tracking-block {
    min-width: 0;
}

.tracking-block__head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    min-height: 42px;
}

.tracking-block__title {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.tracking-cp-select {
    flex: 0 0 auto;
    min-height: 38px;
    min-width: 92px;
    padding: 8px 32px 8px 12px;
}

.tracking-table {
    min-width: 480px;
    table-layout: fixed;
}

.tracking-table thead th,
.tracking-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}

.tracking-table thead th:first-child,
.tracking-table tbody td:first-child {
    text-align: center;
    width: 58px;
}

.tracking-table tbody td:first-child {
    color: var(--accent-deep);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 800;
}

.tracking-table thead th:nth-child(2),
.tracking-table tbody td:nth-child(2) {
    width: 42%;
}

.tracking-table thead th:nth-child(3),
.tracking-table tbody td:nth-child(3) {
    width: 23%;
}

.tracking-table thead th:last-child,
.tracking-table tbody td:last-child {
    text-align: right;
    width: 22%;
}

.tracking-table--checkpoint thead th:first-child,
.tracking-table--checkpoint tbody td:first-child {
    width: 76px;
}

.tracking-runner {
    font-weight: 500;
    white-space: normal;
}

.tracking-manual {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    min-height: 40px;
    width: 100%;
}

/* --- Pagination --- */
.results-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-top: 18px;
}

.results-pagination__info {
    color: var(--muted);
    font-size: 0.82rem;
}

.results-pagination__pages {
    display: flex;
    gap: 4px;
}

.results-page-btn {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 36px;
    padding: 6px 12px;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.results-page-btn:hover:not(:disabled) {
    background: var(--surface);
    border-color: var(--accent);
}

.results-page-btn.is-active {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
}

.results-page-btn:disabled {
    cursor: default;
    opacity: 0.45;
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .tracking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .results-filters {
        flex-direction: column;
    }

    .results-filter-group {
        flex: auto;
        min-width: 100%;
    }
}

@media (max-width: 700px) {
    .results-hero {
        padding: 110px 0 48px;
    }

    .results-panel {
        padding: 18px 14px 14px;
    }

    .results-tab {
        font-size: 0.7rem;
        padding: 8px 14px;
    }

    .results-table {
        font-size: 0.78rem;
    }

    .results-table thead th,
    .results-table tbody td {
        padding: 9px 8px;
    }

    .tracking-actions {
        justify-content: stretch;
    }

    .tracking-refresh {
        justify-content: center;
        width: 100%;
    }

    .tracking-block__head {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
    }

    .tracking-cp-select {
        width: 100%;
    }

    .tracking-table thead th,
    .tracking-table tbody td {
        padding: 10px 9px;
    }
}

/* ===========================================================
   ABOUT US PAGE
   =========================================================== */
.about-hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.88), rgba(14, 15, 16, 0.72)),
        url('../img/banner.webp') center / cover no-repeat;
    padding: 140px 0 64px;
    text-align: center;
}

.about-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.about-wrapper {
    max-width: 820px;
    padding-bottom: 72px;
    padding-top: 48px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 40px 36px;
}

.about-card__heading {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin-bottom: 16px;
    margin-top: 8px;
}

.about-card__heading:first-child {
    margin-top: 0;
}

.about-card__subheading {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 10px;
    margin-top: 28px;
}

.about-card p {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.72;
    margin-bottom: 12px;
}

.about-card p strong {
    font-weight: 700;
}

.about-card__cta {
    background: var(--surface-soft);
    border-left: 3px solid var(--accent);
    margin: 20px 0 24px;
    padding: 14px 18px;
}

.about-list {
    list-style: none;
    margin: 12px 0 20px;
    padding: 0;
}

.about-list li {
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 8px 0 8px 22px;
    position: relative;
}

.about-list li::before {
    background: var(--accent);
    content: '';
    height: 7px;
    left: 0;
    position: absolute;
    top: 16px;
    width: 7px;
}

.about-card__image {
    border: 1px solid var(--line-soft);
    margin: 28px 0 32px;
    overflow: hidden;
}

.about-card__image img {
    display: block;
    height: auto;
    transition: transform 0.5s ease;
    width: 100%;
}

.about-card__image:hover img {
    transform: scale(1.03);
}

@media (max-width: 700px) {
    .about-hero {
        padding: 110px 0 48px;
    }

    .about-card {
        padding: 24px 18px;
    }

    .about-card__heading {
        font-size: 1.25rem;
    }
}

/* ===========================================================
   CONTACT PAGE
   =========================================================== */
.page-shell--flush {
    padding: 0;
}

.contact-hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.88), rgba(14, 15, 16, 0.72)),
        url('../img/banner.webp') center / cover no-repeat;
    padding: 140px 0 64px;
    text-align: center;
}

.contact-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.contact-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 72px;
    padding-top: 48px;
}

/* --- Form Card --- */
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 36px 32px;
}

.contact-form__title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin-bottom: 8px;
}

.contact-form__desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.contact-form__row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.contact-form__field label {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-soft);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.92rem;
    outline: none;
    padding: 12px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    width: 100%;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: #b3aea5;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(243, 152, 24, 0.12);
}

.contact-form__field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form__hint {
    color: var(--muted);
    font-size: 0.76rem;
}

.contact-form__submit {
    margin-top: 6px;
    width: 100%;
}

/* --- Form Success --- */
.contact-form__success {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    animation: regFadeIn 0.5s ease both;
}

.contact-form__success svg {
    color: #3cb043;
    height: 48px;
    margin-bottom: 16px;
    stroke: #3cb043;
    width: 48px;
}

.contact-form__success h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-form__success p {
    color: var(--muted);
    max-width: 360px;
}

/* --- Info Cards Column --- */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 28px 24px;
    text-align: center;
}

.contact-info-card__icon {
    align-items: center;
    background: rgba(191, 23, 50, 0.08);
    border-radius: 50%;
    color: var(--accent-deep);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    margin-bottom: 14px;
    width: 44px;
}

.contact-info-card__icon svg {
    height: 22px;
    width: 22px;
}

.contact-info-card h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-info-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.contact-info-card__link {
    color: var(--accent-deep);
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-card__link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Map --- */
.contact-map-wrap {
    border: 1px solid var(--line-soft);
    margin-top: 16px;
    overflow: hidden;
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
}

/* --- Responsive --- */
@media (max-width: 860px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .contact-hero {
        padding: 110px 0 48px;
    }

    .contact-form-card {
        padding: 24px 18px;
    }

    .contact-info-card {
        padding: 22px 18px;
    }
}

/* ===========================================================
   REGISTRATION FORM PAGE
   =========================================================== */
.reg-hero {
    background:
        linear-gradient(0deg, rgba(14, 15, 16, 0.88), rgba(14, 15, 16, 0.72)),
        url('../img/banner.webp') center / cover no-repeat;
    padding: 140px 0 64px;
    text-align: center;
}

.reg-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.reg-wrapper {
    max-width: 820px;
    padding-bottom: 56px;
}

.reg-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0;
    position: relative;
}

/* --- Progress Steps --- */
.reg-progress {
    align-items: center;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 28px 32px;
}

.reg-step {
    align-items: center;
    display: flex;
    gap: 10px;
    opacity: 0.38;
    transition: opacity 0.35s ease;
}

.reg-step.active {
    opacity: 1;
}

.reg-step.done {
    opacity: 0.7;
}

.reg-step__number {
    align-items: center;
    background: var(--line);
    color: #fff;
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    transition: background-color 0.35s ease;
    width: 30px;
}

.reg-step.active .reg-step__number {
    background: var(--accent-deep);
}

.reg-step.done .reg-step__number {
    background: var(--accent);
}

.reg-step__label {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reg-step__line {
    background: var(--line-soft);
    display: block;
    flex: 0 0 40px;
    height: 2px;
    margin: 0 14px;
}

/* --- Form --- */
.reg-form {
    position: relative;
}

.reg-fieldset {
    border: 0;
    display: none;
    padding: 32px 36px 36px;
    animation: regFadeIn 0.4s ease both;
}

.reg-fieldset--active {
    display: block;
}

@keyframes regFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reg-legend {
    align-items: flex-end;
    color: var(--ink);
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.03em;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.reg-legend svg {
    color: var(--accent-deep);
    height: 22px;
    width: 22px;
    margin-top: 26px;
}

.reg-row {
    display: grid;
    gap: 18px 24px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 18px;
}

.reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reg-field--full {
    grid-column: 1 / -1;
    margin-bottom: 18px;
}

.reg-label {
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.req {
    color: var(--accent-deep);
}

.reg-input {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface-soft);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95rem;
    outline: none;
    padding: 13px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    width: 100%;
}

.reg-input::placeholder {
    color: #b3aea5;
}

.reg-input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(243, 152, 24, 0.12);
}

.reg-input.is-invalid {
    border-color: var(--accent-deep);
    box-shadow: 0 0 0 3px rgba(191, 23, 50, 0.08);
}

.reg-textarea {
    min-height: 90px;
    resize: vertical;
}

select.reg-input {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236c6458' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    cursor: pointer;
    padding-right: 40px;
}

.reg-error {
    color: var(--accent-deep);
    font-size: 0.76rem;
    font-weight: 500;
    min-height: 0;
    overflow: hidden;
    transition: min-height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.reg-error.is-visible {
    min-height: 18px;
    opacity: 1;
}

/* --- Checkbox --- */
.reg-check {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding: 16px 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    transition: border-color 0.25s ease;
}

.reg-check:hover {
    border-color: var(--accent);
}

.reg-check input {
    display: none;
}

.reg-check__box {
    align-items: center;
    border: 2px solid var(--line);
    display: inline-flex;
    flex: 0 0 20px;
    height: 20px;
    justify-content: center;
    margin-top: 2px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 20px;
}

.reg-check__box::after {
    color: #fff;
    content: '\2713';
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.reg-check input:checked~.reg-check__box {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.reg-check input:checked~.reg-check__box::after {
    opacity: 1;
}

.reg-check span:last-child {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.reg-check a {
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Summary Panel --- */
.reg-summary {
    background: var(--surface-soft);
    border: 1px solid var(--line-soft);
    margin: 24px 0 20px;
    padding: 0;
}

.reg-summary__head {
    align-items: center;
    background: var(--panel);
    color: #fff;
    display: flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.1em;
    padding: 14px 20px;
    text-transform: uppercase;
}

.reg-summary__head svg {
    height: 16px;
    width: 16px;
    color: var(--accent);
}

.reg-summary__row {
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    font-size: 0.92rem;
    justify-content: space-between;
    padding: 14px 20px;
}

.reg-summary__row:last-child {
    border-bottom: 0;
}

.reg-summary__row--total {
    background: #fdf6ee;
    border-top: 2px solid var(--accent);
}

.reg-summary__row--total strong {
    color: var(--accent-deep);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
}

/* --- Navigation Buttons --- */
.reg-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.reg-btn {
    min-width: 152px;
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--line);
    box-shadow: none;
    color: var(--ink);
}

.btn--outline:hover {
    background: var(--surface-soft);
    border-color: var(--accent);
}

.btn-arrow-back {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
    margin-right: 10px;
}

.reg-btn--submit {
    gap: 8px;
    min-width: 200px;
}

.reg-btn__icon {
    height: 18px;
    width: 18px;
}

/* --- Success State --- */
.reg-success {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 64px 36px;
    text-align: center;
    animation: regFadeIn 0.5s ease both;
}

.reg-success__icon {
    align-items: center;
    background: #e8fbe8;
    border: 3px solid #3cb043;
    border-radius: 50%;
    color: #3cb043;
    display: flex;
    height: 72px;
    justify-content: center;
    margin-bottom: 24px;
    width: 72px;
}

.reg-success__icon svg {
    height: 36px;
    stroke: #3cb043;
    width: 36px;
}

.reg-success h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.reg-success p {
    color: var(--muted);
    max-width: 480px;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .reg-hero {
        padding: 110px 0 48px;
    }

    .reg-progress {
        flex-wrap: wrap;
        gap: 12px 0;
        padding: 20px 18px;
    }

    .reg-step__label {
        font-size: 0.62rem;
    }

    .reg-step__line {
        flex: 0 0 24px;
        margin: 0 6px;
    }

    .reg-fieldset {
        padding: 24px 18px 28px;
    }

    .reg-row {
        grid-template-columns: 1fr;
    }

    .reg-summary__row--total strong {
        font-size: 1rem;
    }

    .reg-btn {
        min-width: 120px;
        padding: 14px 18px;
    }
}

.footer {
    background: #121315;
    border-top: 3px solid var(--accent);
    color: #fff;
    padding: 28px 0;
}

.footer-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: space-between;
}

.footer-brand {
    color: #fff;
    font-size: 1rem;
}

.footer-brand .brand-logo {
    flex-basis: 34px;
    height: 34px;
    width: 34px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-links a,
.footer-meta {
    color: rgba(255, 255, 255, 0.84);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-meta {
    margin-left: auto;
}

/* Back to Top */
.back-to-top {
    align-items: center;
    background: var(--accent-deep);
    border: 0;
    border-radius: 50%;
    bottom: 32px;
    box-shadow: 0 4px 16px rgba(17, 18, 20, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 32px;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.2s ease;
    width: 48px;
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.back-to-top svg {
    height: 22px;
    width: 22px;
}

@media (max-width: 1080px) {

    .summary-grid,
    .sponsor-row,
    .info-grid,
    .tracking-live-grid {
        grid-template-columns: 1fr;
    }

    .info-grid--two {
        grid-template-columns: 1fr;
    }

    .checkpoint-heading,
    .tracking-section-head,
    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .tracking-section-head {
        min-height: 0;
    }

    .footer-meta {
        margin-left: 0;
    }
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-panel {
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: 0 16px 40px rgba(17, 18, 20, 0.12);
        display: none;
        flex-direction: column;
        gap: 18px;
        left: 0;
        padding: 20px;
        position: absolute;
        right: 0;
        top: calc(100% + 12px);
    }

    .nav-panel.active {
        display: flex;
    }

    .page-home .navbar:not(.is-scrolled) .nav-panel.active .nav-links a,
    .page-home .navbar:not(.is-scrolled) .nav-panel.active .icon-link,
    .page-home .navbar:not(.is-scrolled) .nav-panel.active .language-switch {
        color: var(--ink);
    }

    .nav-links,
    .nav-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-item--dropdown {
        width: 100%;
    }

    .nav-item--dropdown::after {
        display: none;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .nav-dropdown-menu {
        background: var(--surface-soft);
        border-color: var(--line-soft);
        box-shadow: none;
        left: auto;
        margin-top: 10px;
        min-width: 0;
        opacity: 1;
        padding: 10px 12px;
        pointer-events: auto;
        position: static;
        top: auto;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .nav-item--dropdown.is-open .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu {
        display: none;
    }

    .nav-item--dropdown.is-open .nav-dropdown-menu {
        display: block;
    }

    .nav-links a {
        display: block;
    }

    .nav-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .nav-actions {
        gap: 12px;
    }

    .icon-link {
        height: 42px;
        justify-content: flex-start;
        width: auto;
    }

    .language-switch {
        align-self: flex-start;
        height: 42px;
    }

    .hero,
    .hero-inner {
        min-height: 620px;
    }

    .hero-content {
        max-width: 620px;
        padding-bottom: 170px;
        padding-top: 90px;
    }

    .hero::after {
        height: 78px;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 34px 0;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 144px;
        padding-top: 72px;
    }

    .hero-title-wrap {
        gap: 14px;
    }

    .hero-stroke {
        flex-basis: 5px;
        height: 150px;
        margin-top: 8px;
    }

    .hero h1 {
        font-size: 2.78rem;
    }

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

    .hero::after {
        clip-path: polygon(0 48%, 100% 10%, 100% 100%, 0 100%);
        height: 68px;
    }

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

    .tracking-section-head .cp-tabs {
        width: 100%;
    }

    .tracking-section-head .cp-tabs button {
        flex: 1;
        min-width: 0;
    }

    .summary-card,
    .includes-panel,
    .page-panel,
    .info-card,
    .cta-panel {
        padding: 20px;
    }

    .sponsor-text {
        font-size: 1.2rem;
    }

    .sponsor-list {
        min-height: 0;
    }

    .sponsor-logo {
        width: 100px;
        height: 68px;
    }

    .sponsor-logo img {
        height: 70px;
        max-width: 95px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(92%, 1280px);
    }

    .logo,
    .footer-brand {
        font-size: 0.95rem;
    }

    .brand-logo {
        flex-basis: 32px;
        height: 32px;
        width: 32px;
    }

    .hero-tag {
        font-size: 0.52rem;
        padding: 6px 10px;
    }

    .hero h1 {
        font-size: 2.12rem;
    }

    .hero-stroke {
        flex-basis: 4px;
        height: 118px;
        margin-top: 6px;
    }

    .hero-copy {
        margin-top: 18px;
        max-width: 300px;
        padding-left: 8px;
    }

    .hero-copy p,
    .cta-copy p,
    .page-heading p:last-child {
        font-size: 0.82rem;
    }

    .summary-card__head h2,
    .page-heading h1,
    .info-card h2 {
        font-size: 1.45rem;
    }

    .fee-card__price {
        font-size: 2.8rem;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===========================================================
   REGISTRATION EXTRA FORM
   =========================================================== */

.registration-section{
    padding:clamp(30px, 5vw, 48px) 0 clamp(56px, 7vw, 72px);
}

.registration-form{
    background:var(--surface);
    border:1px solid var(--line);
    margin:0 auto;
    max-width:980px;
    overflow:hidden;
    padding:clamp(20px, 4vw, 32px);
    width:100%;
}

.registration-status{
    align-items:flex-start;
    background:#f2fff3;
    border:1px solid rgba(60, 176, 67, 0.35);
    box-shadow:0 12px 30px rgba(17, 18, 20, 0.08);
    color:var(--ink);
    display:flex;
    gap:16px;
    margin:0 auto 22px;
    max-width:980px;
    outline:none;
    padding:20px 22px;
    width:100%;
}

.registration-status__icon{
    align-items:center;
    background:#3cb043;
    color:#fff;
    display:flex;
    flex:0 0 auto;
    height:42px;
    justify-content:center;
    width:42px;
}

.registration-status__icon svg{
    height:24px;
    stroke:currentColor;
    stroke-width:2.4;
    width:24px;
}

.registration-status__body{
    min-width:0;
}

.registration-status strong{
    color:#207a28;
    display:block;
    font-family:'Montserrat', Arial, sans-serif;
    font-size:1rem;
    font-weight:900;
    letter-spacing:0.04em;
    line-height:1.25;
    text-transform:uppercase;
}

.registration-status p{
    color:var(--muted);
    font-size:0.92rem;
    line-height:1.55;
    margin-top:4px;
}

.is-registration-modal-open{
    overflow:hidden;
}

.registration-modal{
    align-items:center;
    background:rgba(17, 18, 20, 0.58);
    bottom:0;
    display:flex;
    justify-content:center;
    left:0;
    opacity:0;
    padding:22px;
    position:fixed;
    right:0;
    top:0;
    transition:opacity 0.18s ease;
    z-index:999;
}

.registration-modal[hidden]{
    display:none;
}

.registration-modal.is-open{
    opacity:1;
}

.registration-modal__card{
    align-items:center;
    background:#fff;
    box-shadow:0 24px 80px rgba(17, 18, 20, 0.28);
    display:flex;
    flex-direction:column;
    max-width:430px;
    opacity:0;
    padding:34px 30px 30px;
    text-align:center;
    transform:translateY(16px) scale(0.96);
    transition:opacity 0.2s ease, transform 0.2s ease;
    width:min(100%, 430px);
}

.registration-modal.is-open .registration-modal__card{
    opacity:1;
    transform:translateY(0) scale(1);
}

.registration-modal__icon{
    align-items:center;
    background:#e8fbe8;
    border:3px solid #3cb043;
    border-radius:50%;
    color:#3cb043;
    display:flex;
    height:74px;
    justify-content:center;
    margin-bottom:20px;
    width:74px;
}

.registration-modal__icon svg{
    height:38px;
    stroke:currentColor;
    stroke-width:2.4;
    width:38px;
}

.registration-modal h2{
    color:var(--ink);
    font-family:'Montserrat', Arial, sans-serif;
    font-size:1.45rem;
    font-weight:900;
    letter-spacing:0.02em;
    line-height:1.15;
    margin-bottom:10px;
    text-transform:uppercase;
}

.registration-modal p{
    color:var(--muted);
    font-size:0.94rem;
    line-height:1.62;
    margin-bottom:22px;
    max-width:340px;
}

.registration-modal__button{
    min-width:132px;
    padding:14px 24px;
}

.registration-modal__card--loading{
    max-width:360px;
    padding:30px 26px;
}

.registration-modal__card--loading strong{
    color:var(--ink);
    font-family:'Montserrat', Arial, sans-serif;
    font-size:1rem;
    font-weight:900;
    letter-spacing:0.04em;
    margin-top:16px;
    text-transform:uppercase;
}

.registration-modal__card--loading p{
    font-size:0.86rem;
    margin:8px 0 0;
}

.registration-spinner{
    animation:registrationSpin 0.8s linear infinite;
    border:4px solid rgba(191, 23, 50, 0.16);
    border-top-color:var(--accent-deep);
    border-radius:50%;
    display:block;
    height:48px;
    width:48px;
}

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

.form-grid{
    align-items:start;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.form-group.full-width{
    grid-column:1 / -1;
}

.form-group label{
    color:var(--ink);
    font-family:'Montserrat', Arial, sans-serif;
    font-size:0.72rem;
    font-weight:700;
    letter-spacing:0.08em;
    text-transform:uppercase;
}

.form-group input,
.form-group select,
.form-group textarea{
    appearance:none;
    -webkit-appearance:none;

    max-width:100%;
    min-width:0;
    width:100%;

    background:var(--surface-soft);

    border:1.5px solid var(--line);

    color:var(--ink);

    font-family:'Roboto', Arial, sans-serif;
    font-size:0.95rem;

    min-height:52px;

    outline:none;

    padding:14px 16px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    background:#fff;

    border-color:var(--accent);

    box-shadow:
        0 0 0 3px rgba(243, 152, 24, 0.12);
}

.form-group textarea{
    resize:vertical;
    min-height:120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder{
    color:#b3aea5;
}

.form-group small{
    color:var(--muted);
    font-size:0.74rem;
}

/* SELECT */

.form-group select{
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236c6458' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-position:right 14px center;

    background-repeat:no-repeat;

    background-size:18px;

    padding-right:44px;

    cursor:pointer;
}

/* PAYMENT INFO */

.payment-info{
    margin-top:28px;

    background:var(--surface-soft);

    border:1px solid var(--line-soft);

    padding:24px;
    overflow-wrap:anywhere;
}

.payment-info h4{
    color:var(--accent-deep);

    font-family:'Montserrat', Arial, sans-serif;

    font-size:0.9rem;

    font-weight:800;

    letter-spacing:0.06em;

    margin-bottom:10px;

    text-transform:uppercase;
}

.payment-info p{
    color:var(--ink);

    font-size:0.92rem;

    line-height:1.7;
}

.payment-info small{
    color:var(--muted);

    font-size:0.78rem;
}

/* AGREEMENT */

.agreement{
    margin-top:28px;
}

.agreement label{
    display:flex;
    align-items:flex-start;
    gap:12px;

    color:var(--muted);

    line-height:1.6;
    min-width:0;
}

.agreement input[type="checkbox"]{
    flex:0 0 auto;
    height:18px;
    margin-top:4px;
    width:18px;
}

/* BUTTON */

.btn-register{
    margin-top:26px;
    min-height:54px;
    text-align:center;
    white-space:normal;
    width:100%;
}

.btn-register:disabled{
    cursor:wait;
    opacity:0.78;
    transform:none;
}

/* FILE INPUT */

.registration-form input[type="file"]{
    background:var(--surface-soft);
    cursor:pointer;
    line-height:1.35;
    overflow:hidden;
    padding:11px 12px;
    text-overflow:ellipsis;
}

.registration-form input[type="file"]::file-selector-button{
    background:var(--accent-deep);

    border:none;

    color:#fff;

    cursor:pointer;

    font-family:'Montserrat', Arial, sans-serif;

    font-size:0.7rem;

    font-weight:700;

    letter-spacing:0.06em;

    margin-right:14px;

    padding:10px 16px;

    text-transform:uppercase;

    transition:0.25s ease;
}

.registration-form input[type="file"]::file-selector-button:hover{
    background:var(--accent);
    color:var(--ink);
}

/* RESPONSIVE */

@media(max-width:768px){

    .page-registration .about-hero{
        padding:112px 0 44px;
    }

    .page-registration .about-hero__title{
        font-size:clamp(2rem, 11vw, 3rem);
        line-height:1.02;
        overflow-wrap:anywhere;
    }

    .page-registration .about-hero__sub{
        font-size:0.9rem;
        max-width:330px;
    }

    .registration-section{
        padding:30px 0 56px;
    }

    .registration-form{
        padding:22px 18px;
    }

    .registration-status{
        gap:14px;
        padding:18px;
    }

    .registration-modal__card{
        padding:30px 24px 26px;
    }

    .form-grid{
        gap:16px;
        grid-template-columns:1fr;
    }

    .form-group.full-width{
        grid-column:auto;
    }

    .payment-info{
        margin-top:22px;
        padding:20px 18px;
    }

    .agreement{
        margin-top:22px;
    }

    .btn-register{
        margin-top:22px;
    }

}

@media(max-width:480px){

    .page-registration .container{
        width:min(94%, 1280px);
    }

    .page-registration .about-hero{
        padding:104px 0 38px;
    }

    .page-registration .about-hero__title{
        font-size:clamp(1.85rem, 10.5vw, 2.35rem);
    }

    .page-registration .about-hero__sub{
        font-size:0.84rem;
        line-height:1.55;
    }

    .registration-form{
        padding:18px 14px;
    }

    .registration-status{
        flex-direction:column;
        margin-bottom:18px;
        padding:16px 14px;
    }

    .registration-status__icon{
        height:38px;
        width:38px;
    }

    .registration-status strong{
        font-size:0.86rem;
    }

    .registration-status p{
        font-size:0.84rem;
    }

    .registration-modal{
        padding:16px;
    }

    .registration-modal__card{
        padding:28px 20px 24px;
    }

    .registration-modal__icon{
        height:66px;
        margin-bottom:18px;
        width:66px;
    }

    .registration-modal__icon svg{
        height:34px;
        width:34px;
    }

    .registration-modal h2{
        font-size:1.18rem;
    }

    .registration-modal p{
        font-size:0.86rem;
    }

    .form-group{
        gap:7px;
    }

    .form-group label{
        font-size:0.68rem;
        letter-spacing:0.06em;
        line-height:1.35;
    }

    .form-group input,
    .form-group select,
    .form-group textarea{
        font-size:16px;
        padding:13px 12px;
    }

    .form-group select{
        background-position:right 12px center;
        padding-right:40px;
    }

    .registration-form input[type="file"]::file-selector-button{
        display:block;
        margin:0 0 10px;
        width:100%;
    }

    .file-preview img{
        height:auto;
        width:min(100%, 180px);
    }

    .payment-info{
        padding:18px 14px;
    }

    .payment-info h4{
        font-size:0.78rem;
        line-height:1.35;
    }

    .payment-info p,
    .agreement label{
        font-size:0.86rem;
    }

    .payment-info small{
        font-size:0.74rem;
    }

}

/* ===========================================================
   JERSEY
   =========================================================== */

.jersey-grid{
    display:flex;

    gap:24px;

    justify-content:center;

    margin-top:50px;

    flex-wrap:wrap;
}

.jersey-card{
    text-align:center;
}

.jersey-card img{
    width:260px;

    cursor:pointer;

    transition:0.3s ease;
}

.jersey-card img:hover{
    transform:scale(1.03);
}

.jersey-card span{
    color:#fff;

    display:block;

    font-size:0.8rem;

    font-weight:700;

    letter-spacing:0.08em;

    margin-top:14px;

    text-transform:uppercase;
}

/* ===========================================================
   MODAL
   =========================================================== */

.jersey-modal{
    align-items:center;

    background:rgba(0,0,0,0.9);

    display:none;

    height:100%;

    justify-content:center;

    left:0;

    position:fixed;

    top:0;

    width:100%;

    z-index:9999;
}

.jersey-modal img{
    max-width:90%;

    max-height:90%;

    transition:0.3s ease;
}

.jersey-close{
    color:#fff;

    cursor:pointer;

    font-size:50px;

    position:absolute;

    right:40px;

    top:20px;
}

/* ===================================================
   COUNTDOWN RESPONSIVE
   =================================================== */
@media (max-width: 640px) {
    .countdown-banner__inner {
        flex-direction: column;
        gap: 14px;
        padding: 18px 16px;
    }

    .countdown-banner__title {
        font-size: 0.95rem;
    }

    .countdown-digit {
        font-size: 1.25rem;
        height: 42px;
        min-width: 32px;
    }

    .countdown-sep {
        font-size: 1.1rem;
        padding-bottom: 6px;
    }

    .countdown-unit__label {
        font-size: 0.5rem;
    }
}

/* ===================================================
   MERCHANDISE PAGE
   =================================================== */
.merch-page {
    background: var(--bg);
    overflow: hidden;
}

.merch-hero {
    background:
        /* linear-gradient(0deg, rgba(14, 15, 16, 0.9), rgba(14, 15, 16, 0.72)), */
        linear-gradient(118deg, rgba(14, 15, 16, 0.98) 0 24%, rgba(14, 15, 16, 0.88) 32%, transparent 54%),
        url('../img/banner2.webp') center / cover no-repeat;
    align-items: center;
    display: flex;
    min-height: 680px;
    overflow: hidden;
    padding: 138px 0 104px;
    position: relative;
}

.merch-hero::after {
    background: var(--bg);
    bottom: -1px;
    clip-path: polygon(0 44%, 100% 8%, 100% 100%, 0 100%);
    content: '';
    height: 86px;
    left: 0;
    position: absolute;
    right: 0;
}

.merch-hero__inner {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    position: relative;
    z-index: 1;
}

.merch-hero__content {
    max-width: 730px;
}

.merch-hero__tag {
    background: var(--accent);
    color: var(--ink);
    display: inline-block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    padding: 6px 14px;
    text-transform: uppercase;
}

.merch-hero__title {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.36);
}

.merch-hero__title span,
.merch-hero__title strong {
    display: block;
}

.merch-hero__title strong {
    color: var(--accent);
    font-style: italic;
    font-weight: 900;
    transform: skewX(-7deg);
    transform-origin: left center;
}

.merch-hero__lead {
    border-left: 2px solid rgba(255, 255, 255, 0.78);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
    margin-top: 24px;
    max-width: 640px;
    padding-left: 14px;
}

.merch-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.merch-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.merch-link:hover {
    color: var(--accent);
}

.merch-hero__facts {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin-top: 34px;
    max-width: 680px;
}

.merch-hero__facts li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    min-height: 84px;
    padding: 16px 14px;
}

.merch-hero__facts strong,
.merch-hero__facts span {
    display: block;
}

.merch-hero__facts strong {
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.merch-hero__facts span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 4px;
}

.merch-hero__visual {
    min-height: 470px;
    position: relative;
}

.merch-hero__visual::before {
    background:
        linear-gradient(135deg, rgba(243, 152, 24, 0.96), rgba(191, 23, 50, 0.96)),
        var(--accent);
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
    content: '';
    inset: 44px 8px 26px 34px;
    position: absolute;
}

.merch-hero__jersey {
    background: #fbfaf7;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.26);
    color: var(--ink);
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: absolute;
    transition: transform 0.32s cubic-bezier(.2, .9, .25, 1), box-shadow 0.32s ease;
    width: clamp(178px, 18vw, 260px);
}

.merch-hero__jersey--front {
    left: 2%;
    top: 0;
    z-index: 2;
}

.merch-hero__jersey--back {
    bottom: 8px;
    right: 0;
    z-index: 1;
}

.merch-hero__jersey:hover {
    box-shadow: 0 34px 68px rgba(0, 0, 0, 0.34);
    transform: translateY(-5px);
}

.merch-hero__jersey img {
    aspect-ratio: 4 / 5;
    display: block;
    height: auto;
    object-fit: contain;
    padding: 18px;
    width: 100%;
}

.merch-hero__jersey span {
    background: var(--panel);
    bottom: 12px;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    left: 12px;
    letter-spacing: 0.1em;
    padding: 6px 10px;
    position: absolute;
    text-transform: uppercase;
}

.merch-hero__stamp {
    align-items: center;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', Arial, sans-serif;
    height: 116px;
    justify-content: center;
    left: 44%;
    padding: 16px;
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%) rotate(-8deg);
    width: 116px;
    z-index: 3;
}

.merch-hero__stamp span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.merch-hero__stamp strong {
    color: var(--accent);
    font-size: 2rem;
    font-style: italic;
    font-weight: 900;
    line-height: 1;
}

/* --- Preview Section --- */
.merch-preview {
    padding: 48px 0 42px;
    position: relative;
    z-index: 2;
}

.merch-section-head {
    margin-bottom: 28px;
    max-width: 760px;
}

.merch-section-head__eyebrow {
    color: var(--accent-deep);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.merch-section-head h2,
.merch-fit h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.96;
    text-transform: uppercase;
}

.merch-section-head > p:last-child,
.merch-fit p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.58;
    margin-top: 12px;
    max-width: 680px;
}

.merch-showcase {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merch-card {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.merch-card:hover {
    box-shadow: 0 12px 36px rgba(17, 18, 20, 0.12);
    transform: translateY(-2px);
}

.merch-card--feature {
    display: grid;
    grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1fr);
    min-height: 390px;
}

.merch-card__media {
    background: var(--surface-soft);
    border: 0;
    border-right: 1px solid var(--line-soft);
    color: inherit;
    cursor: pointer;
    display: block;
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.merch-card__media img {
    aspect-ratio: 4 / 5;
    display: block;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(.2, .9, .25, 1);
}

.merch-card__media:hover img {
    transform: scale(1.035);
}

.merch-card__badge {
    background: var(--panel);
    bottom: 12px;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    left: 12px;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    position: absolute;
    text-transform: uppercase;
}

.merch-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.merch-card__kicker {
    color: var(--accent-deep);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.merch-card__body h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    text-transform: uppercase;
}

.merch-card__body p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.54;
    margin-top: 12px;
}

.merch-pack-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

.merch-card--compact .merch-card__media {
    border-bottom: 1px solid var(--line-soft);
    border-right: 0;
    min-height: 230px;
}

.merch-card--compact .merch-card__media img {
    aspect-ratio: 1 / 1;
    padding: 18px;
}

.merch-card--compact .merch-card__body {
    justify-content: flex-start;
    min-height: 176px;
    padding: 22px 20px;
}

.merch-card--compact .merch-card__body h3 {
    font-size: 1rem;
    line-height: 1.15;
}

.merch-fit {
    background: #e9e6df;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-top: 34px;
    padding: 46px 0;
}

.merch-fit__inner {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
}

.merch-size-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.merch-size-list span {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    display: inline-flex;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 900;
    height: 64px;
    justify-content: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Details Section --- */
.merch-details {
    padding: 44px 0 0;
}

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

.merch-detail-item {
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    gap: 14px;
    padding: 22px 20px;
    transition: box-shadow 0.25s ease;
}

.merch-detail-item:hover {
    box-shadow: 0 4px 16px rgba(17, 18, 20, 0.06);
}

.merch-detail-item svg {
    color: var(--accent-deep);
    flex: 0 0 22px;
    height: 22px;
    margin-top: 2px;
    width: 22px;
}

.merch-detail-item strong {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.merch-detail-item p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* --- CTA Section --- */
.merch-cta {
    padding-bottom: 72px;
    padding-top: 48px;
}

/* --- Modal --- */
body.is-merch-modal-open {
    overflow: hidden;
}

.merch-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    padding: 28px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.merch-modal[hidden] {
    display: none;
}

.merch-modal__frame {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin: 0;
    max-width: min(94vw, 920px);
}

.merch-modal img {
    /* background: #fff; */
    /* border: 1px solid rgba(255, 255, 255, 0.16); */
    max-height: 82vh;
    max-width: 100%;
    object-fit: contain;
}

.merch-modal__close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 34px;
    height: 48px;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 32px;
    top: 24px;
    width: 48px;
}

.merch-modal__close:hover {
    background: var(--accent-deep);
}

#merchModalCaption {
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Hero entrance animation --- */
.merch-hero__title,
.merch-hero__tag,
.merch-hero__lead,
.merch-hero__actions,
.merch-hero__facts,
.merch-hero__visual {
    opacity: 0;
}

body.is-loaded .merch-hero__tag {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.15s both;
}

body.is-loaded .merch-hero__title {
    animation: subHeroIn 1s cubic-bezier(.2, .9, .25, 1) 0.25s both;
}

body.is-loaded .merch-hero__lead {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.4s both;
}

body.is-loaded .merch-hero__actions {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.55s both;
}

body.is-loaded .merch-hero__facts {
    animation: subHeroIn 0.9s cubic-bezier(.2, .9, .25, 1) 0.7s both;
}

body.is-loaded .merch-hero__visual {
    animation: subHeroIn 1s cubic-bezier(.2, .9, .25, 1) 0.35s both;
}

/* --- Responsive --- */
@media (max-width: 1180px) {
    .merch-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    }

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

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

@media (max-width: 900px) {
    .merch-hero {
        min-height: 0;
        padding: 116px 0 96px;
    }

    .merch-hero__inner,
    .merch-fit__inner {
        grid-template-columns: 1fr;
    }

    .merch-hero__visual {
        margin-inline: auto;
        max-width: 520px;
        min-height: 430px;
        width: 100%;
    }

    .merch-showcase {
        grid-template-columns: 1fr;
    }

    .merch-card--feature {
        grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr);
        min-height: 340px;
    }
}

@media (max-width: 700px) {
    .merch-hero__facts,
    .merch-pack-grid,
    .merch-details__grid {
        grid-template-columns: 1fr;
    }

    .merch-card--feature {
        grid-template-columns: 1fr;
    }

    .merch-card__media {
        border-bottom: 1px solid var(--line-soft);
        border-right: 0;
        min-height: 300px;
    }

    .merch-card--compact .merch-card__body {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .merch-hero {
        padding: 104px 0 86px;
    }

    .merch-hero__title {
        font-size: 2.45rem;
    }

    .merch-hero__lead {
        font-size: 0.9rem;
    }

    .merch-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .merch-hero__actions .btn,
    .merch-link {
        width: 100%;
    }

    .merch-link {
        justify-content: center;
        text-align: center;
    }

    .merch-hero__visual {
        min-height: 350px;
    }

    .merch-hero__visual::before {
        inset: 38px 0 28px 18px;
    }

    .merch-hero__jersey {
        width: 174px;
    }

    .merch-hero__stamp {
        height: 94px;
        width: 94px;
    }

    .merch-hero__stamp strong {
        font-size: 1.55rem;
    }

    .merch-preview {
        padding-top: 34px;
    }

    .merch-card__body {
        padding: 22px 18px;
    }

    .merch-size-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .merch-modal {
        padding: 18px;
    }

    .merch-modal__close {
        right: 18px;
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .merch-card,
    .merch-card__media img,
    .merch-hero__jersey {
        transition: none;
    }

    .merch-hero__title,
    .merch-hero__tag,
    .merch-hero__lead,
    .merch-hero__actions,
    .merch-hero__facts,
    .merch-hero__visual {
        animation: none;
        opacity: 1;
    }
}

/* =========================================
   GPX MAP + ELEVATION — CORE OVERRIDES
========================================= */

/* Map fills tracking-map container */
#map {
    height: 100%;
    min-height: 520px;
    width: 100%;
    z-index: 1;
}

.leaflet-container {
    background: #17181a;
    font-family: 'Roboto', Arial, sans-serif;
}

.leaflet-control-zoom {
    border: none !important;
}

.leaflet-control-zoom a {
    background: rgba(255,255,255,0.92) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    color: #222 !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: #fff !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
}

.leaflet-overlay-pane svg path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   RACE CATEGORY SECTION RESPONSIVE
========================================= */

@media (max-width: 980px) {
    .race-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .race-cat-title {
        font-size: 1.6rem;
    }

    .race-cat-selector__title {
        font-size: 2.1rem;
    }

    .race-cat-tab {
        font-size: 0.7rem;
        padding: 12px 24px 12px 32px;
    }

    #map {
        min-height: 400px;
    }

    .tracking-map {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .race-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .race-cat-selector__title {
        font-size: 1.5rem;
    }

    .race-cat-selector {
        padding: 32px 0 24px;
    }

    .race-cat-tab {
        clip-path: none;
        font-size: 0.64rem;
        padding: 10px 18px;
    }

    .race-cat-tab__diamond {
        height: 12px;
        width: 12px;
    }

    .race-stat-item__value {
        font-size: 0.88rem;
    }

    .race-cat-title {
        font-size: 1.3rem;
    }

    .race-cat-brand__logo {
        height: 40px;
        width: 40px;
    }

    #map {
        min-height: 300px;
    }

    .tracking-map {
        height: 300px;
    }

    .race-elevation-chart-wrap {
        height: 120px;
    }

    .race-map-hover-overlay__icon {
        height: 48px;
        width: 48px;
    }

    .race-map-hover-overlay__text {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .race-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .race-stat-item {
        padding: 14px 12px;
    }

    .race-category-panel {
        padding-bottom: 40px;
    }
}