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


@font-face {
    font-family: "Manrop";
    src: url("../assets/font/Manrope-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
}


@font-face {
    font-family: "Thunder";
    src: url("../assets/font/Thunder-LC.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}




:root {
    --clr-black: #000000;
    --clr-white: #FFFFFF;
    --clr-red: #D12B2B;
    --clr-paragraph: #E5E5E5;
    --clr-search: #282727;
    --clr-buttons: #151515;
    --clr-slider-bg: rgba(217, 217, 217, 0.3);

    --ff-heading: "Thunder", sans-serif;
    --ff-body: "Manrop", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-black);
    color: var(--clr-paragraph);

    font-family: var(--ff-body);
    font-size: 1.0652rem;
    font-weight: 400;

    line-height: 1.5;


    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;

    cursor: pointer;

    font: inherit;
}

input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    color: var(--clr-white);
    font-weight: 200 800;
}

.container-lg {
    max-width: 1440px;
    padding-inline: 0.75rem;
    margin-inline: auto;
}

.container-md {
    max-width: 1280px;
    padding-inline: 0.75rem;
    margin-inline: auto;
}

.section {
  padding-block: 96px;
}

@media (max-width: 992px) {
    .section {
        padding-block: 72px;
    }
}

@media (max-width: 767px) {
    .section {
        padding-block: 48px;
    }
}

/* NAVIGATION LOADING */

.navigation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
}

.navigation-loading.is-active {
    visibility: visible;
}

.navigation-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background-color: var(--clr-red);
}

.navigation-loading.is-active::before {
    animation: navigation-loading 1s ease-in-out infinite;
}

@keyframes navigation-loading {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(286%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navigation-loading.is-active::before {
        width: 100%;
        animation: none;
    }
}


/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--clr-black);
    transition: opacity 400ms ease, visibility 400ms ease;
}

html.show-preloader {
    overflow: hidden;
}

html.show-preloader .preloader {
    display: flex;
}

.preloader__logo {
    display: block;
    width: 640px;
    max-width: 85%;
    height: auto;
    clip-path: inset(0 100% 0 0);
    animation: preloader-reveal 600ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.preloader.is-exiting .preloader__logo {
    animation: preloader-hide 600ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes preloader-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes preloader-hide {
    from {
        clip-path: inset(0 0 0 0);
    }

    to {
        clip-path: inset(0 0 0 100%);
    }
}


/* TABLET */

@media (max-width: 991px) {
    .preloader__logo {
        width: 560px;
    }
}


/* MOBILE */

@media (max-width: 767px) {
    .preloader__logo {
        width: 440px;
    }
}

/* MOBILE PORTRAIT*/

@media (max-width: 479px) {
    .preloader__logo {
        width: 270px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .preloader {
        transition: none;
    }

    .preloader__logo,
    .preloader.is-exiting .preloader__logo {
        animation: none;
        clip-path: none;
    }
}