/* ==========================
   ERROR PAGES
   ========================== */
.error-page-content {
    display: flex;
    align-items: stretch;
}

.error-page {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(207, 86, 0, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(24, 27, 33, 0.65), rgba(15, 17, 21, 0.95));
}

.error-page::before,
.error-page::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(207, 86, 0, 0.18);
    transform: rotate(45deg);
    pointer-events: none;
}

.error-page::before {
    top: -150px;
    left: -90px;
}

.error-page::after {
    right: -90px;
    bottom: -150px;
}

.error-page-container {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100% - 40px));
    padding: 70px 0;
}

.error-code {
    color: rgba(207, 86, 0, 0.2);
    font-size: clamp(100px, 20vw, 190px);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: 0.02em;
    user-select: none;
}

.error-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 20px auto 24px;
    place-items: center;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 18px;
    background: rgba(207, 86, 0, 0.1);
    box-shadow: var(--glow-shadow);
    font-size: 30px;
}

.error-title {
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
}

.error-message {
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

@media (max-width: 520px) {
    .error-page-container {
        padding: 50px 0;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }
}