﻿/* HTML styles for the splash screen */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#out {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.avalonia-splash {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa; /* базовый фон */
    position: absolute;
    overflow: hidden;
    box-shadow: none;
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}
/* ---------- БЕЛЫЙ ХЕДЕР ---------- */
.preloader-header {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 2px solid #e9eef3;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.logos-group {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
}

.logo-item img {
    height: 46px;
    width: auto;
    display: block;
}

.logo-item:last-child img {
    height: 48px;
}

.header-phone {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;        /* уменьшенный телефон */
    letter-spacing: 0.3px;
    color: #1e2b3c;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.phone-link:hover {
    color: #c72a2a;
    border-bottom-color: #c72a2a;
}

.phone-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #c72a2a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 2px;
}

.preloader-main {
    flex: 1;
    position: relative;
    background-color: #0b1a2a;
    background-image: url('https://zao-aks.ru/upload/resize_cache/webp/iblock/103/ai3f4llosofd25vb9gn9ea5k54kiq7pr/main_1920.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;  /* для корректного flex-сжатия */
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.68);
    backdrop-filter: brightness(0.85);
    z-index: 1;
}

.loader-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.throbber-wrapper {
    margin-bottom: 24px;
}

.spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
            from 0deg,
            #1e5b9e 0deg 60deg,
            #2e6eb0 60deg 120deg,
            #5f7f9f 120deg 180deg,
            #8a9eb0 180deg 240deg,
            #b0bcc9 240deg 300deg,
            #1e5b9e 300deg 360deg
    );
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.3, 0.9) infinite;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.spinner::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 56px;
    height: 56px;
    background: rgba(10, 25, 40, 0.88);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.spinner::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: rgba(10, 25, 40, 0.5);
    padding: 8px 28px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
}

.loading-text .dots-animation {
    display: inline-block;
    min-width: 24px;
    text-align: left;
}

.progress-tip {
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 400;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 18px;
    width: 260px;
    text-align: center;
}

/* футер */
.footer-note {
    background: #ffffff;
    padding: 6px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #6c7a89;
    border-top: 1px solid #dfe6ed;
    z-index: 10;
    flex-shrink: 0;
}

.footer-note a {
    color: #1e5b9e;
    text-decoration: none;
}

.footer-note a:hover {
    color: #c72a2a;
}

.accent-dot {
    width: 5px;
    height: 5px;
    background-color: #c72a2a;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
}

/* адаптивность */
@media (max-width: 700px) {
    .preloader-header {
        padding: 10px 16px;
    }
    .logos-group {
        gap: 18px;
    }
    .logo-item img {
        height: 38px;
    }
    .logo-item:last-child img {
        height: 40px;
    }
    .phone-link {
        font-size: 1.15rem;
    }
}

@media (max-width: 540px) {
    .preloader-header {
        justify-content: center;
    }
    .logos-group {
        justify-content: center;
    }
    .spinner {
        width: 68px;
        height: 68px;
    }
    .spinner::before {
        top: 10px;
        left: 10px;
        width: 48px;
        height: 48px;
    }
    .loading-text {
        font-size: 1rem;
        padding: 6px 16px;
    }
}

@media (max-width: 420px) {
    .logos-group {
        flex-direction: column;
        gap: 8px;
    }
}
