.error-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: #352b36;
    background:
        radial-gradient(ellipse at 14% 32%, rgba(178, 0, 144, .07), transparent 28rem),
        radial-gradient(ellipse at 88% 74%, rgba(222, 192, 127, .13), transparent 30rem),
        #faf8fb;
}

.error-page-main {
    display: grid;
    flex: 1;
    place-items: center;
    padding: clamp(38px, 7vw, 84px) 24px;
}

.error-card {
    display: grid;
    width: min(100%, 1060px);
    min-height: 430px;
    grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #eee6ef;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 70px rgba(67, 44, 68, .1);
}

.error-illustration {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 4px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .12), transparent 45%),
        linear-gradient(145deg, #593951, #382a3e);
}

.error-illustration::before,
.error-illustration::after {
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.error-illustration::after {
    width: 360px;
    height: 360px;
    border-color: rgba(255, 255, 255, .08);
}

.error-orbit {
    position: absolute;
    z-index: 1;
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e6cf9e;
    box-shadow: 0 0 20px rgba(230, 207, 158, .65);
}

.error-orbit-one {
    top: 25%;
    left: 24%;
}

.error-orbit-two {
    right: 19%;
    bottom: 25%;
    width: 6px;
    height: 6px;
}

.error-illustration-number {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(92px, 11vw, 142px);
    font-weight: 800;
    letter-spacing: -.1em;
    line-height: 1;
    text-shadow: 0 12px 24px rgba(24, 12, 28, .18);
}

.error-illustration-mark {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 88px;
    height: 88px;
    margin: 0 8px 0 1px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 27px;
    color: #4d354d;
    background: linear-gradient(145deg, #f0e2c4, #dfc38e);
    box-shadow: 0 12px 30px rgba(23, 12, 26, .2);
    font-size: 34px;
    transform: rotate(-8deg);
}

.error-copy {
    padding: clamp(32px, 5vw, 68px);
}

.error-kicker {
    margin: 0 0 16px;
    color: #967ca0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.error-kicker span {
    margin: 0 5px;
    color: #d4c4d7;
}

.error-copy h1 {
    max-width: 470px;
    margin: 0;
    color: #3d2e40;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.16;
}

.error-description {
    max-width: 450px;
    margin: 18px 0 0;
    color: #817582;
    font-size: 15px;
    line-height: 1.75;
}

.error-actions {
    display: flex;
    margin-top: 28px;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.error-home-button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #563951;
    border-radius: 10px;
    color: #fff !important;
    background: #563951;
    box-shadow: 0 8px 18px rgba(86, 57, 81, .2);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.error-home-button:hover,
.error-home-button:focus-visible {
    border-color: #402a42;
    color: #fff !important;
    background: #402a42;
    box-shadow: 0 10px 22px rgba(64, 42, 66, .24);
    transform: translateY(-1px);
}

.error-home-button:focus-visible,
.error-support-link:focus-visible {
    outline: 3px solid rgba(138, 95, 32, .35);
    outline-offset: 3px;
}

.error-support-link {
    color: #614964;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.error-support-link:hover {
    color: #8a5f20;
    text-decoration: underline;
}

.error-help-note {
    display: flex;
    max-width: 450px;
    margin: 34px 0 0;
    padding-top: 17px;
    align-items: flex-start;
    gap: 9px;
    border-top: 1px solid #f0eaf1;
    color: #9a909d;
    font-size: 11px;
    line-height: 1.6;
}

.error-help-note i {
    margin-top: 3px;
    color: #a18aa3;
}

@media (max-width: 760px) {
    .error-page-main {
        padding: 28px 16px 42px;
    }

    .error-card {
        max-width: 560px;
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .error-illustration {
        min-height: 225px;
    }

    .error-illustration::before {
        width: 170px;
        height: 170px;
    }

    .error-illustration::after {
        width: 235px;
        height: 235px;
    }

    .error-illustration-number {
        font-size: 88px;
    }

    .error-illustration-mark {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 26px;
    }

    .error-copy {
        padding: 30px 25px 32px;
    }

    .error-copy h1 {
        font-size: 31px;
    }

    .error-description {
        font-size: 14px;
    }

    .error-help-note {
        margin-top: 25px;
    }
}

@media (max-width: 390px) {
    .error-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .error-home-button {
        width: 100%;
    }
}
