body section.heading.heading-races {
    border-radius: 0 0 35px 35px;
    -webkit-border-radius: 0 0 35px 35px;
    -moz-border-radius: 0 0 35px 35px;
    margin-bottom: -154px;
    position: relative;
    padding-top: 246px;
    min-height: 772px;
    width: 100%;
    background: linear-gradient(to bottom, #bce1f6 0%, #eee989 100%);
}

body section.heading.heading-races .container {
    padding: 0 77px;
}

body section.heading.heading-races .heading-content {
    max-width: 605px;
}

body section.heading.heading-races .heading-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

body section.heading.heading-races .heading-content p {
    text-align: left;
}

body section.heading.heading-races .heading-content .btn {
    max-width: 329px;
    width: 100%;
    margin-right: auto;
}

body section.heading.heading-races .heading-content {
    max-width: 605px;
}


body section.heading.heading-races::after {
    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
    height: 500px;
    width: 1124px;
    right: 0;
    top: 0;
    z-index: 2;
    transform: translate(5.5%, 19.5%);
    background-image: url(../images/zavody-headline-image.png);
}

body section.upcomming-races {
    margin-bottom: 95px;
    position: relative;
}

body section.upcomming-races::before {
    content: "";
    position: absolute;
    background-image: url(../images/snow-section-wave.png);
    background-size: cover;
    background-position: left top;
    background-repeat: repeat-x;
    left: -10px;
    top: -155px;
    height: 330px;
    width: 101vw;
    z-index: 1;
}


@media screen and (max-width: 1550px) and (min-width: 0) {
    body section.heading.heading-races {
        min-height: 680px;
        padding-top: 172px;
    }
}

@media screen and (max-width: 1300px) and (min-width: 0) {
    body section.heading.heading-races {
        padding-top: 150px;
        min-height: 654px;
    }
}

@media screen and (max-width: 1023px) and (min-width: 0) {
    body section.heading.heading-races {
        padding-top: 123px;
        min-height: 630px;
    }
}

@media screen and (max-width: 767px) and (min-width: 0) {
    body section.heading.heading-races {
        min-height: 550px;
    }
}

@media screen and (max-width: 1550px) and (min-width: 0) {
    body section.heading.heading-races::after {
        background-size: contain;
        transform: translate(11.5%, 62.5%);
        height: 323px;
        width: 715px;
    }
}

@media screen and (max-width: 1300px) and (min-width: 0) {
    body section.heading.heading-races::after {
        transform: translate(14.5%, 70%);
        height: 267px;
        width: 605px;
    }
}

@media screen and (max-width: 1023px) and (min-width: 0) {
    body section.heading.heading-races::after {
        transform: translate(14.5%, 120%);
        height: 195px;
        width: 421px;
    }
}

@media screen and (max-width: 767px) and (min-width: 0) {
    body section.heading.heading-races::after {
        transform: translate(46.5%, 132%);
        height: 176px;
        width: 400px;
    }
}


.upcomming-races-container {
    display: grid;
    gap: 30px;
    margin-top: 1rem;
}

.upcomming-race-card {
    background-color: #FFFFFF;
    box-shadow: 0 14px 15px #8DCFE842;
    height: 250px;
    border-radius: 35px;
    display: flex;
}

.upcomming-race-image {
    width: 25%;
    position: relative;
}

.other-tracks-wrapper .upcomming-race-image img.cover {
    display: block;
    border-radius: 35px 35px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upc-races-wrapper .upcomming-race-image {
    width: 25% !important;
    height: 100% !important;
}

@media screen and (max-width: 1024px) and (min-width: 0) {
    .upc-races-wrapper .upcomming-race-image {
        width: 100% !important;
        height: 200px !important;
    }

    section.heading-race-detail .bg-box .logo:not(.logo-special) {
        transform: translate(-50%, -150%) !important;

        &.logo-special {
            transform: translate(-50%, -95%);
        }
    }
}

.upc-races-wrapper .upcomming-race-image img {
    width: 100%;
    height: 100%;

}

.upc-races-wrapper .upcomming-race-image img.cover {
    object-fit: cover;
    border-radius: 35px 0 0 35px;
}

.upcomming-race-image img.logo, .heading.heading-race-detail img.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 45%;
    object-fit: contain;
    z-index: 10;
}

.upcomming-race-text {
    padding: 3rem;
    width: 75%;
    display: flex;
    justify-content: space-between;
}

.upcomming-race-text h3 {
    font-size: 38px;
}

.upcomming-race-text .race-category, .upcomming-race-text .race-date-mobile {
    display: flex;
    margin-block: 0 1rem;
    align-items: center;
    gap: 1rem;
}

.race-date-mobile {
    display: none !important;
}

.upcomming-race-text .buttons {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.upcomming-race-text .buttons .pin {
    font-size: 15px !important;
}

.upcomming-race-text .buttons .common-btn-race {
    max-width: 200px;
    width: 100%;
    border-radius: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: normal;
    padding: 1rem 3rem;
    gap: 1rem;
}

.upcomming-race-text .buttons .date {
    background-color: #F1F1F1;
    color: #032045;
}

.upcomming-race-text .buttons .btn-race {
    background-color: #97C005;
    color: #ffffff;
}

.more-races {
    margin: 5rem 0 12rem 0;
    display: flex;
    justify-content: center;
}

.more-races a {
    padding-inline: 12rem;

}

@media screen and (max-width: 1024px) and (min-width: 0) {
    .upcomming-race-card {
        flex-direction: column;
        height: auto;
        border-radius: 30px;
    }

    .upcomming-race-image {
        width: 100%;
        height: 200px;
    }

    .upcomming-race-card {
        flex-direction: column;
        height: auto;

    }

    .upcomming-race-image {
        width: 100%;
        height: 200px;

    }

    .upcomming-race-card {
        flex-direction: column;
        height: auto;

    }

    .upcomming-race-image {
        width: 100%;
        height: 200px;
    }


    .upcomming-race-image img {
        border-radius: 30px 30px 0 0 !important;
    }

    .upcomming-race-text {
        flex-direction: column;
        width: 100%;
        padding: 3rem;
    }

    .race-date-mobile {
        display: flex !important;
    }

    .upcomming-race-text .buttons {
        flex-direction: row;
    }

    .upcomming-race-text .buttons .common-btn-race {
        padding: 1rem 1.5rem;
    }

    .upcomming-race-text .buttons .date {
        display: none;
    }

    .upcomming-race-text .buttons .btn-race {
        margin-top: 1rem;
        max-width: unset;
    }
}


/*

 TOTO JE DETAIL

*/
section.heading.heading-race-detail {
    border-radius: 0 0 35px 35px;
    -webkit-border-radius: 0 0 35px 35px;
    -moz-border-radius: 0 0 35px 35px;
    min-height: 650px;
    overflow: hidden;
}


.race-detail-content {
    padding: 60px 0 60px 0;
}

.race-detail-content .container {
    padding: 0 324px;
}

.race-detail-content .content p {
    letter-spacing: -0.15px;
    margin-block: 28px;
}

.race-detail-content .content a {
    color: #97C005;
    text-decoration: underline;
}

.race-detail-start {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.race-detail-start p {
    margin-right: 4rem;
}

.race-detail-start img {
    width: 100%;
    max-width: 22px;
}

.content-gallery-race {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-template: auto;
    gap: 30px;
    height: 500px;
}

.content-gallery-race a {
    overflow: hidden;
    border-radius: 15px;
}

.content-gallery-race a:nth-child(1) {
    grid-row: span 2;
}


.content-gallery-race a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.race-prizes {
    width: 100%;
}

.race-detail-tracks {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.race-track-card {
    background: #FFFFFF;
    border: 1px solid #B8B8B8;
    border-radius: 35px;
    padding: 3rem;
}

.race-track-card h3 {
    font-weight: 700;
}

.race-track-card .race-detail-start {
    margin-block: 1.5rem;
}

.race-track-card iframe {
    width: 100%;
    margin-top: 1.5rem;
    border: 0;
    height: 250px;
    border-radius: 15px;
}

.race-track-card.organiser {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.race-track-card.organiser img {
    max-width: 200px;
    width: 100%;
    object-fit: contain
}

.race-detail-other-tracks {
    display: grid;
    gap: 30px;
    margin-bottom: 35rem;

    grid-template-columns: repeat(3, 1fr);
}

.race-other-track-card {
    background: #FFFFFF;
    box-shadow: 0 14px 15px #8DCFE842;
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 35px;
}

.race-other-track-card:hover {
    box-shadow: 0 14px 15px rgba(141, 207, 232, 0.8);
}

.other-track-img {
    border-radius: 35px 35px 0 0;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}


.race-other-track-text {
    padding: 3rem;
    height: 300px;
}

.race-other-track-text p {
    margin-top: 1.5rem;
}

.race-other-track-card .read-more {
    color: #97C005;
    font-weight: 800;
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%
}

.race-other-track-card .read-more::after {
    content: "";
    position: relative;
    background-image: url(../images/arrow-left-green.svg);
    background-size: auto;
    background-position: center center;
    background-repeat: no-repeat;
    right: 0;
    bottom: 0;
    height: 11px;
    width: 18px;
}

.race-other-tracks-info, .race-other-tracks-info .category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    white-space: nowrap;
}

.other-tracks-wrapper h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.race-detail-tracks-container h2 {
    margin-block: 3rem 1rem;
}

@media screen and (max-width: 1550px) and (min-width: 0px) {
    section.race-detail-content .container {
        padding: 0 195px;
    }

    section.heading.heading-race-detail {
        min-height: 450px;
    }
}

@media screen and (max-width: 1300px) and (min-width: 0px) {
    section.race-detail-content .container {
        padding: 0 75px;
    }

    .race-detail-other-tracks {
        grid-template-columns: 1fr
    }

    section.heading.heading-safety-detail {
        min-height: 350px;
    }
}

@media screen and (max-width: 1023px) and (min-width: 0px) {
    section.race-detail-content .container {
        width: 100%;
        padding: 0 2.5%;
    }

    .content-gallery-race {
        grid-template-columns: repeat(3, 1fr);
        height: 100px;
        gap: 1rem;
    }

    .content-gallery-race a {
        column-span: unset;

        grid-row: unset !important;
    }

    .race-detail-tracks .btn.btn-green {
        width: 100% !important;
    }

    .race-detail-tracks-container h2 {
        text-align: center;
    }
}

@media screen and (max-width: 767px) and (min-width: 0px) {
    body section.heading.heading-race-detail {
        border-radius: 0 0 20px 20px;
        -webkit-border-radius: 0 0 20px 20px;
        -moz-border-radius: 0 0 20px 20px;
        min-height: 260px;
    }

    .race-other-track-card, .race-track-card {
        border-radius: 20px;
    }

    .race-other-track-card img {
        max-height: 250px;
        border-radius: 20px 20px 0 0;
    }
}

@media screen and (max-width: 480px) and (min-width: 0px) {
    body section.heading.heading-race-detail {
        border-radius: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        min-height: 235px;
    }
}

.partners-swiper {
    padding-bottom: 10rem;
}

.partners-swiper .swiper-wrapper {
    height: -webkit-fill-available !important;
}

.partners-swiper .swiper-slide {
    opacity: .10 !important;
    height: unset !important;
}

.partners-swiper .swiper-slide .img-box {
    height: 200px !important;
}

.partners-swiper .swiper-slide img {
    width: 100%;
    object-fit: contain !important;
}

.partners-swiper .swiper-slide-next, .partners-swiper .swiper-slide-prev {
    opacity: 0.25 !important;
    transition: opacity 0.3s ease-in-out;
}

.partners-swiper .swiper-slide-active {
    opacity: 1 !important;
    transition: opacity 0.3s ease-in-out;
}

.partners-of-project .container .images-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10rem;
}

@media only screen and (max-width: 991px) {
    .partners-of-project .container .images-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (max-width: 767px) {
    .partners-of-project .container .images-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 479px) {
    .partners-of-project .container .images-container {
        grid-template-columns: 1fr;
    }
}

.partners-of-project .images-container .partner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.partners-of-project .images-container .partner img {
    object-fit: contain;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
}

@media only screen and (max-width: 480px) {
    .partners-of-project .images-container .partner img {
        max-width: 190px;
    }
}

@media screen and (min-width: 2040px) {
    section.heading.heading-races::after {
        right: 25%;
    }

    .upc-races-wrapper {
        margin-bottom: 29rem;
    }
}

.upc-races-wrapper {
    margin-bottom: 10rem;
}

body section.heading-race-detail .bg-box img {
    padding: unset !important;
    object-position: unset !important;
}

.upcomming-race-image {
    height: 200px;
    width: 100%;
}

@media screen and (max-width: 1550px) and (min-width: 1301px) {
    .btn-download-app {
        display: none !important;
    }
}

.swiper .swiper-slide {
    border-radius: 35px;
    opacity: 0.5;
    text-align: center;
    cursor: pointer;
    min-height: 300px;
    background-color: #F1F4F5;
    padding: 27px 47px 40px 47px;
}

.swiper .swiper-slide .img-box {
    height: 93px;
    max-width: 208px;
    width: 100%;
    margin-bottom: 25px;
    display: inline-block;
    overflow: hidden;
}

.swiper .swiper-slide .img-box img {
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
}

.swiper .swiper-slide h3 {
    font-weight: 800;
    margin-bottom: 30px;
}

.swiper .swiper-slide.active {
    opacity: 1;
    margin: 0 auto;
}

.logo-special {
    height: 35% !important;
    transform: translate(-50%, -35%) !important;
}

@media screen and (max-width: 1550px) and (min-width: 769px) {
    .logo-special {
        height: 30% !important;
        transform: translate(-50%, -75%) !important;
    }
}

@media screen and (max-width: 768px) {
    .logo-special {
        height: 12% !important;
        transform: translate(-50%, -270%) !important
    }
}

.race-detail-tracks-container {
    margin-top: 60px;
}
.race-detail-tracks-container h2 {
    margin-bottom: 32px;
}

.race-results-container {
    margin-top: 60px;
}
.race-results-container h2 {
    margin-bottom: 32px;
}

.race-photoreport-container  {
    margin-top: 72px;
}
.race-photoreport-container h2 {
    margin-bottom: 32px;
}