/* loading.css */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    padding: 50px;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Затемнение экрана */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.overlay.active {
    display: flex;
}

.spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner::before,
.spinner::after,
.spinner .ring {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: auto;
    border-radius: 50%;
    border: 4px solid transparent;
    box-sizing: border-box;
}

.spinner .ring {
    width: 60px;
    height: 60px;
    border-top-color: #17416f;
    animation: spin 1s linear infinite;
    z-index: 3;
}

.spinner::before {
    width: 46px;
    height: 46px;
    border-bottom-color: #c60440;
    animation: spinReverse 1.5s linear infinite;
    z-index: 2;
}

.spinner::after {
    width: 32px;
    height: 32px;
    border-left-color: #17416f;
    animation: spin 2s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}




/* Кнопка "Вверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;                 /* справа снизу */
    
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #e0e6ed;   /* светлый фон */
    color: #17416f;              /* стрелочка тёмно-синяя */
    
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;

    display: flex;               /* центрируем стрелку */
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, background-color .3s;
    z-index: 1500;
}

.scroll-top:hover {
    background-color: #d4dbe4;   /* чуть темнее при ховере */
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}