@font-face {
    font-family: "DIN MX";
    src: url("../assets/fonts/din-regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "DIN MX";
    src: url("../assets/fonts/din-bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --mx-red: #f20d16;
    --mx-black: #080808;
    --mx-ink: #171717;
    --mx-muted: #636363;
    --content-width: 1060px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--mx-ink);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
.btn-mx,
.section-title {
    font-family: "DIN MX", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.content-width {
    max-width: var(--content-width);
}

.content-narrow {
    max-width: 850px;
}

.site-header {
    position: relative;
    z-index: 5;
    min-height: 72px;
    background: var(--mx-black);
}

.site-header .container {
    width: 100%;
    max-width: none;
    min-height: 72px;
    position: relative;
    justify-content: center;
}

.site-header .navbar-toggler {
    right: 24px !important;
    margin-right: 0 !important;
}

.site-header .navbar-brand {
    position: absolute;
    z-index: 4;
    bottom: -47px;
    left: 50%;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
}

.site-header .navbar-brand img {
    width: 372px;
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

.offcanvas {
    --bs-offcanvas-width: 330px;
}

.offcanvas-header {
    min-height: 82px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2f2f2f;
}

.offcanvas-title {
    margin: 0;
    line-height: 1;
}

.offcanvas-logo {
    display: inline-flex;
    align-items: center;
}

.offcanvas-logo img {
    width: 190px;
    height: auto;
}

.menu-link {
    display: block;
    padding: 1rem 0;
    color: #fff;
    border-bottom: 1px solid #2f2f2f;
    font-family: "DIN MX", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-link:hover {
    color: var(--mx-red);
}

.menu-language {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.45);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.menu-language a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.menu-language a.active,
.menu-language a:hover {
    color: #fff;
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: visible;
    color: #fff;
    background: #111;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
}

.hero-background::before {
    position: absolute;
    inset: -4%;
    content: "";
    background: url("../assets/home/hero-motocross.jpg") center 36% / cover no-repeat;
    transform: scale(1.02);
    transform-origin: 58% 45%;
    animation: hero-track-motion 16s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-background::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to bottom, rgb(0 0 0 / 4%), rgb(0 0 0 / 16%));
    pointer-events: none;
}

@keyframes hero-track-motion {
    from {
        transform: scale(1.02) translate3d(-.7%, -.3%, 0);
    }

    to {
        transform: scale(1.075) translate3d(1.2%, .55%, 0);
    }
}

.hero-content {
    position: relative;
    min-height: 690px;
    padding-top: 160px;
}

.hero h1 {
    margin-bottom: 1.35rem;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.05rem);
    text-shadow: 0 3px 8px rgb(0 0 0 / 65%);
}

.hero-content a img {
    width: 170px;
}

.hero-phones {
    position: absolute;
    z-index: 2;
    bottom: -250px;
    left: 50%;
    width: min(710px, 78vw);
    transform: translateX(-50%);
}

.intro-section {
    padding: 315px 1rem 76px;
}

.intro-section h2 {
    max-width: 820px;
    margin: 0 auto 1.5rem;
    font-size: clamp(1.7rem, 3vw, 2.85rem);
    line-height: .98;
}

.intro-section p,
.section-subtitle {
    color: #000;
    font-weight: bold;
}

.download-section,
.circuits-section,
.news-section,
.features-section {
    padding: 50px 0;
}

.section-title {
    margin-bottom: .2rem;
    font-size: clamp(1.7rem, 2.65vw, 2.4rem);
}

.section-title span {
    color: var(--mx-red);
}

.text-lowercase-first {
    text-transform: none;
}

.section-kicker {
    margin-top: -.15rem;
    margin-bottom: 1.35rem;
    color: #111;
    font-family: "DIN MX", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.download-tile {
    display: block;
    height: 100%;
    overflow: hidden;
    background: #111;
}

.download-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.download-tile:hover img {
    opacity: .88;
    transform: scale(1.02);
}

.circuit-grid {
    margin-top: 2rem;
}

.circuit-card,
.all-circuits {
    position: relative;
    display: flex;
    min-height: 220px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 1.3rem;
    color: #fff;
    background: var(--mx-black);
    text-align: center;
    text-decoration: none;
}

.circuit-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 5%)),
        var(--circuit-image),
        url("../assets/home/hero-motocross.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform .3s ease;
}

.circuit-card:hover::before {
    transform: scale(1.04);
}

.circuit-name {
    position: relative;
    z-index: 1;
    font-family: "DIN MX", Arial, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.circuit-new {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: .45rem 1.5rem .4rem .65rem;
    background: var(--mx-red);
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
    font-family: "DIN MX", Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.all-circuits {
    flex-direction: column;
    align-items: center;
    background: var(--mx-red);
    transition: background-color .2s ease;
}

.all-circuits:hover {
    color: #fff;
    background: #c90911;
}

.all-circuits span {
    font-size: 5.4rem;
    font-weight: 700;
    line-height: .7;
}

.all-circuits strong {
    margin-top: 1.2rem;
    font-family: "DIN MX", Arial, sans-serif;
    text-transform: uppercase;
}

.circuit-map {
    width: 100%;
    height: 490px;
    margin-top: .5rem;
    background: #ddd;
}

.promo-banner {
    padding-top: 45px;
    padding-bottom: 45px;
}

.promo-banner img {
    display: block;
    width: 100%;
}

.news-section {
    padding-top: 60px;
    padding-bottom: 75px;
}

.news-card {
    display: block;
    height: 100%;
    color: var(--mx-ink);
    text-decoration: none;
}

.news-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #ddd;
}

.news-card-body {
    padding-top: 1rem;
}

.news-card h3 {
    min-height: 2.4em;
    margin-bottom: .65rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .94rem;
    text-transform: none;
}

.news-card p {
    color: var(--mx-muted);
    font-size: .84rem;
}

.news-card span {
    color: var(--mx-red);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.register-section {
    display: flex;
    min-height: 545px;
    align-items: center;
    padding: 80px 1rem;
    color: #fff;
    background: url("../assets/home/register-circuit.jpg") center / cover no-repeat;
}

.register-section h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2.45rem, 4vw, 3.35rem);
    line-height: .95;
}

.register-section p {
    margin: 0 !important;
    font-size: 1.1rem;
    line-height: 1.42;
}

.register-section p.big{
    font-size: 2.3rem;
    margin-bottom:1.45rem !important;
}

.register-section small {
    display: block;
    margin-top: .9rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.btn-mx {
    min-width: 280px;
    padding: .85rem 2rem;
    color: #fff;
    border: 0;
    border-radius: 4px;
    background: var(--mx-red);
    font-size: clamp(0.95rem, 2.5vw, 1.85rem);;
}

.btn-mx:hover {
    color: #fff;
    background: #c90911;
}

.features-section {
    padding-top: 92px;
    padding-bottom: 92px;
}

.features-section h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: none;
    text-align: center;
}

.features-section p,
.features-section li {
    color: #3f3f3f;
    font-size: 1.05rem;
    line-height: 1.72;
}

.features-section p.big{
    font-size:1.2em;
    text-align: center;
}

.features-section ul {
    margin: 2rem 0;
}

.features-section .btn {
    margin-top: 1.75rem;
}

.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 75px 0 85px;
    color: #fff;
    background: #2e3749;
}

.testimonials-section::before {
    position: absolute;
    inset: -35px auto auto -90px;
    width: 500px;
    height: 585px;
    content: "";
    background: url("../assets/home/testimonial-watermark-clean.png") center / contain no-repeat;
    opacity: .26;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-section h2 {
    margin-bottom: 2.5rem;
    color: #fff;
    font-size: clamp(1.7rem, 2.65vw, 2.2rem);
}

.testimonials-section .carousel {
    max-width: 820px;
    margin: 0 auto;
}

.testimonial-visual {
    position: relative;
    width: min(500px, 70vw);
    min-height: 230px;
    margin: 0 auto 1rem;
    background: var(--testimonial-strip) center / contain no-repeat;
}

.testimonial-visual img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 175px;
    height: 175px;
    border: 5px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    transform: translateX(-50%);
}

.testimonials-section h3 {
    margin-bottom: 0;
    color: #fff;
    font-size: 1.35rem;
}

.testimonial-role {
    color: var(--mx-red);
    font-weight: 700;
}

.testimonial-quote {
    max-width: 620px;
    margin: 1rem auto 0;
    color: #fff;
    font-size: .86rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.site-footer {
    padding: 55px 0;
    color: #fff;
    background: var(--mx-black);
}

.footer-container {
    max-width: 1280px;
}

.footer-links {
    display: grid;
    max-width: 390px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 1.3rem;
    column-gap: 2rem;
    row-gap: .5rem;
}

.footer-links a,
.footer-email {
    color: #FFF;
    font-size: .75rem;
    text-decoration: none;
}

.footer-links a {
    text-align: left;
}

.footer-links a:hover,
.footer-email:hover {
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: .5rem;
}

.social-links img {
    width: 50px;
    height: 50px;
    filter: grayscale(1) brightness(2);
}

.footer-creators span {
    display: block;
    margin-bottom: .8rem;
    color: #fff;
    font-size: .72rem;
    text-transform: uppercase;
}

.footer-creators img {
    display: inline-block;
    margin: .35rem .55rem;
    object-fit: contain;
}

.footer-logo-melon {
    max-width: 72px;
    max-height: 98px;
}

.footer-logo-gocode {
    max-width: 150px;
    max-height: 84px;
}

@media (max-width: 767.98px) {
    .site-header {
        min-height: 68px;
    }

    .site-header .navbar-brand {
        bottom: -18px;
    }

    .site-header .navbar-brand img {
        width: 260px;
    }

    .hero,
    .hero-content {
        min-height: 540px;
    }

    .hero {
        background: #111;
    }

    .hero-background::before {
        background-position: 58% center;
        animation-duration: 19s;
    }

    .hero-content {
        padding-top: 112px;
    }

    .hero-content a img {
        width: 138px;
    }

    .hero-phones {
        bottom: -135px;
        width: min(500px, 112vw);
    }

    .intro-section {
        padding-top: 205px;
        padding-bottom: 45px;
    }

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

    .intro-section h2 {
        font-size: 1.8rem;
    }

    .section-title,
    .testimonials-section h2 {
        font-size: 1.7rem;
    }

    .download-section,
    .circuits-section,
    .news-section,
    .features-section {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .circuit-card,
    .all-circuits {
        min-height: 180px;
        padding: .8rem;
    }

    .circuit-name {
        font-size: .84rem;
    }

    .all-circuits span {
        font-size: 4rem;
    }

    .all-circuits strong {
        margin-top: .8rem;
        font-size: .78rem;
    }

    .circuit-map {
        height: 390px;
    }

    .register-section {
        min-height: 450px;
        background-position: 58% center;
    }

    .register-section h2 {
        font-size: 2.35rem;
    }

    .register-section p {
        font-size: 1rem;
    }

    .features-section h2 {
        font-size: 1.35rem;
    }

    .features-section p,
    .features-section li {
        font-size: .98rem;
    }

    .testimonials-section::before {
        inset: 40px auto auto -105px;
        width: 330px;
        height: 385px;
    }

    .btn-mx {
        min-width: min(280px, 100%);
    }

    .footer-links {
        max-width: 350px;
        margin-right: auto;
        margin-left: auto;
        column-gap: 1.25rem;
    }

    .footer-links a {
        text-align: center;
    }
}

@media (max-width: 359.98px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
