/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--clr-orange);
}

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

.preloader-logo-wrapper {
    position: relative;
    z-index: 2;
    width: clamp(180px, 30vw, 425px);
    aspect-ratio: 1;
}

.preloader-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}

.preloader-counter {
    position: absolute;
    right: 48px;
    bottom: 32px;
    z-index: 3;
    color: var(--clr-white);
    font-family: var(--ff-heading);
    font-size: clamp(64px, 8vw, 120px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.preloader-transition {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: var(--clr-black);
    opacity: 0;
    pointer-events: none;
}


/* TABLET */

@media (max-width: 1040px) {
    .preloader-counter {
        right: 24px;
        bottom: 24px;
    }
}


/* MOBILE */

@media (max-width: 767px) {
    .preloader-counter {
        right: 16px;
        bottom: 16px;
    }
}