
.out-index--404 {
    background: linear-gradient(160deg, #e8f0f8 0%, #f5f9fd 35%, #fff 70%);
}

.out-index--404 .page-404 {
    min-height: calc(100vh - 120px);
}

/* === Блок контенту 404 === */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.page-404__inner {
    text-align: center;
    max-width: 520px;
}

.page-404__code {
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    line-height: 1;
    color: #004687;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0, 70, 135, 0.2);
    margin-bottom: 0.1em;
    animation: page-404-pulse 2s ease-in-out infinite;
}

@keyframes page-404-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.92; transform: scale(1.02); }
}

.page-404__title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.page-404__text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
}

.page-404__uri {
    font-size: 0.85rem;
    color: #777;
    word-break: break-all;
    background: rgba(0, 70, 135, 0.06);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 70, 135, 0.12);
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.page-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.page-404__btn--primary {
    background: #004687;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 70, 135, 0.35);
}

.page-404__btn--primary:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 70, 135, 0.4);
}

.page-404__btn--secondary {
    background: #fff;
    color: #004687;
    border: 2px solid #004687;
}

.page-404__btn--secondary:hover {
    background: rgba(0, 70, 135, 0.08);
    transform: translateY(-2px);
}

.page-404__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.page-404__icon svg {
    width: 100%;
    height: 100%;
    fill: #004687;
    opacity: 0.7;
}
