#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: clamp(14px, 3vw, 32px);
    background: #f8f9fc;
}

.preloader-skeleton { width: min(1200px, 100%); }

.preloader-shimmer {
    display: block;
    overflow: hidden;
    background: linear-gradient(100deg, #e9edf4 25%, #f7f8fb 42%, #e9edf4 62%);
    background-size: 200% 100%;
    animation: preloader-shimmer 1.35s ease-in-out infinite;
}

.preloader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 70px;
    padding: 0 2px 18px;
    border-bottom: 1px solid #e9edf3;
}

.preloader-brand {
    width: 172px;
    height: 31px;
    flex: 0 0 172px;
    border-radius: 8px;
}

.preloader-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2.2vw, 30px);
    flex: 1;
}

.preloader-nav span { width: 54px; height: 9px; border-radius: 6px; }
.preloader-nav span:nth-child(2) { width: 66px; }
.preloader-nav span:nth-child(4) { width: 46px; }
.preloader-nav span:nth-child(5) { width: 58px; }
.preloader-header-action { width: 92px; height: 38px; border-radius: 10px; }

.preloader-home-hero,
.preloader-auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    min-height: 490px;
    padding: 42px 2px;
}

.preloader-hero-copy,
.preloader-auth-intro,
.preloader-auth-fields {
    display: grid;
    gap: 18px;
    align-content: center;
}

.preloader-hero-kicker { width: 130px; height: 13px; border-radius: 7px; }
.preloader-hero-title { width: min(540px, 92%); height: 50px; border-radius: 12px; }
.preloader-hero-title-short { width: min(410px, 75%); }
.preloader-hero-line { width: min(470px, 90%); height: 13px; border-radius: 7px; }
.preloader-hero-line-short { width: min(350px, 72%); }
.preloader-hero-actions { display: flex; gap: 12px; margin-top: 8px; }
.preloader-hero-button { width: 145px; height: 46px; border-radius: 12px; }

.preloader-hero-art {
    position: relative;
    min-height: 330px;
    border-radius: 32px;
    background: linear-gradient(145deg, #f0f2fa, #fff4f0);
}

.preloader-hero-art:before,
.preloader-hero-art:after {
    position: absolute;
    display: block;
    content: "";
    background: linear-gradient(100deg, #e9edf4 25%, #f7f8fb 42%, #e9edf4 62%);
    background-size: 200% 100%;
    animation: preloader-shimmer 1.35s ease-in-out infinite;
}

.preloader-hero-art:before { width: 190px; height: 190px; right: 12%; top: 18%; border-radius: 50%; }
.preloader-hero-art:after { width: 40%; height: 48%; left: 15%; bottom: 12%; border-radius: 24px; }

.preloader-home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.preloader-home-card { height: 138px; padding: 22px; border: 1px solid #e9edf3; border-radius: 18px; background: #fff; }
.preloader-home-card .preloader-card-icon { width: 38px; height: 38px; border-radius: 11px; }
.preloader-home-card .preloader-card-title { width: 72%; height: 12px; margin: 12px 0; border-radius: 7px; }
.preloader-home-card .preloader-card-line { width: 52%; height: 10px; border-radius: 7px; }

.preloader-auth-card {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #e9edf3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(20, 35, 70, .06);
}

.preloader-auth-title { width: 52%; height: 26px; margin-bottom: 4px; border-radius: 8px; }
.preloader-social { height: 44px; border: 1px solid #e9edf3; border-radius: 10px; background: #fff; }
.preloader-divider { width: 100%; height: 8px; margin: 5px 0; border-radius: 4px; }
.preloader-field { height: 47px; border-radius: 10px; }
.preloader-auth-button { height: 48px; margin-top: 2px; border-radius: 12px; }

.preloader-page-content { display: grid; gap: 22px; padding: 50px 2px; }
.preloader-page-title { width: min(360px, 55%); height: 38px; border-radius: 10px; }
.preloader-page-line { width: min(680px, 92%); height: 13px; border-radius: 7px; }
.preloader-page-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 14px; }
.preloader-page-panel { height: 190px; border: 1px solid #e9edf3; border-radius: 18px; background: #fff; }
.preloader-page-panel .preloader-panel-title { width: 42%; height: 15px; margin: 22px 22px 16px; border-radius: 8px; }
.preloader-page-panel .preloader-panel-line { width: 75%; height: 11px; margin: 0 22px 14px; border-radius: 7px; }

@keyframes preloader-shimmer {
    to { background-position-x: -200%; }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-shimmer,
    #preloader .preloader-hero-art:before,
    #preloader .preloader-hero-art:after { animation: none; }
}

@media (max-width: 767px) {
    #preloader { padding: 14px; }
    .preloader-header { min-height: 58px; gap: 12px; }
    .preloader-brand { width: 138px; height: 27px; flex-basis: 138px; }
    .preloader-nav { display: none; }
    .preloader-header-action { width: 42px; height: 38px; }
    .preloader-home-hero,
    .preloader-auth-layout { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 34px 0 24px; }
    .preloader-hero-copy { gap: 14px; }
    .preloader-hero-title { height: 36px; }
    .preloader-hero-art { display: none; }
    .preloader-home-cards { grid-template-columns: 1fr; gap: 12px; }
    .preloader-home-card { height: 92px; padding: 15px; }
    .preloader-auth-intro { display: none; }
    .preloader-auth-card { gap: 13px; padding: 22px 18px; }
    .preloader-field { height: 45px; }
    .preloader-page-content { gap: 17px; padding: 32px 0; }
    .preloader-page-panels { grid-template-columns: 1fr; }
}
