﻿.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.error-card {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.error-image-wrap {
    display: flex;
    justify-content: center;
}

.error-image {
    max-width: 150px;
    width: 100%;
    height: auto;
    display: block;
}

.error-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #172033;
}

.error-message {
    max-width: 560px;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #5b6475;
}

.error-description {
    max-width: 560px;
    margin: 0 auto 26px;
    font-size: 15px;
    line-height: 1.5;
    color: #8a3342;
    background: #fff3f5;
    border: 1px solid #ffd6dd;
    border-radius: 14px;
    padding: 12px 16px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: 200px;
    border-radius: 999px;
    background: rgba(28, 35, 64, 0.88);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .error-button:hover,
    .error-button:focus {
        background: #1c2340;
        color: #ffffff;
        text-decoration: none;
    }

    .error-button:active {
        transform: translateY(0);
    }

@media (max-width: 768px) {
    .error-page {
        padding: 36px 16px;
        /*        align-items: flex-start;*/
    }

    .error-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .error-image {
        max-width: 190px;
    }

    .error-title {
        font-size: 25px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-button {
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 30px 18px;
    }

    .error-image {
        max-width: 160px;
    }

    .error-title {
        font-size: 22px;
    }

    .error-message {
        font-size: 15px;
    }
}
