.zib-page-loader {
    position: fixed;
    z-index: 20000;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .97);
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility .28s ease;
}

.zib-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.zib-page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.zib-page-loader-logo {
    display: block;
    width: min(190px, 52vw);
    max-height: 96px;
    object-fit: contain;
    animation: zib-logo-pulse 1.2s ease-in-out infinite;
}

.zib-page-loader-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #102f4b;
    font-size: 25px;
    font-weight: 800;
}

.zib-page-loader-fallback[hidden] {
    display: none;
}

.zib-page-loader-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    color: #ff5a1f;
}

.zib-page-loader-progress {
    position: relative;
    width: 118px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf2;
}

.zib-page-loader-progress::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #ff5a1f;
    content: "";
    animation: zib-loader-progress 1.15s ease-in-out infinite;
}

.zib-back-to-top {
    position: fixed;
    z-index: 1190;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: #ff5a1f;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 47, 74, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
    cursor: pointer;
}

.zib-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.zib-back-to-top:hover {
    background: #ed4b12;
}

.zib-back-to-top:focus-visible {
    outline: 3px solid rgba(255, 90, 31, .35);
    outline-offset: 3px;
}

.zib-back-to-top svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

@keyframes zib-logo-pulse {
    0%, 100% { opacity: .72; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes zib-loader-progress {
    from { transform: translateX(-125%); }
    to { transform: translateX(290%); }
}

@media (max-width: 480px) {
    .zib-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .zib-back-to-top svg {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zib-page-loader-logo,
    .zib-page-loader-progress::after {
        animation: none;
    }

    .zib-page-loader,
    .zib-back-to-top {
        transition: none;
    }
}
