.twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.twocol img {
    max-width: 100%;
}

.text404 {
    font-size: 180px; 
    width: 100%;  
    font-weight: bold;  
    color: #1C274C;
}

.accept-popup-wrapper {
    position: fixed;
    bottom: 1rem;
    left:0;
    right:0;
}

.accept-popup {
    padding:1rem;
    margin: auto;
    width: 1024px;
    max-width: 80vw;
    background: white;
    border-radius: 14px;
    box-shadow: 0px 4px 44.7px 4px #27222D14;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .twocol {
        display: grid;
        grid-template-columns: 1fr;
    }

    .text404 {
        font-size: 140px;
    }

    .accept-popup {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 567px) {
    .header__search {
        display: none;
    }
}


.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Белый фон с 50% прозрачности. 
       Для темного фона замените 255,255,255 на 0,0,0 */
    background-color: rgba(255, 255, 255, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Поверх остального контента в блоке */
    border-radius: inherit; /* Наследует скругление углов родителя */
    backdrop-filter: blur(2px); /* Опционально: легкое размытие контента */
}

/* Сам спиннер */
.spinner-circle {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 40, 213, 0.2); /* Светлая подложка цвета #6C28D5 */
    border-top: 4px solid #6C28D5; /* Основной цвет */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle.spinner-sm {
    width: 1.4em;  /* Размер зависит от размера шрифта кнопки */
    height: 1.4em;
    border-width: 2px; /* Более тонкие линии для аккуратности */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}