.custom-error-page {
    width: 100%;
    margin: 0;
}

.custom-error-page .error-content {
    box-sizing: border-box;
    width: 100%;
    height: 33vw;
    min-height: 500px;
    margin: 20px 0 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 5px 5px 12px var(--gray);
    gap: 25px;
}

.custom-error-page .error-content h1 {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 0;
    -webkit-background-clip: text;
    font-size: clamp(40px, 10vw, 120px);
    font-weight: bold;
    line-height: 10vw;
    text-align: center;
    letter-spacing: 20px;
    color: transparent;
}

.custom-error-page .error-content h1::before {
    content: attr(data-text);
    position: absolute;
    z-index: -1;
    top: 5px;
    left: 5px;
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, 0.4);
    transform: translate(2px, 2px);
    filter: blur(4px);
}

.custom-error-page .error-content h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(255, 193, 7, 1) 0%, rgba(238, 120, 28, 1) 43%, rgba(220, 53, 69, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.custom-error-page .error-content p.title {
    max-width: 800px;
    margin-bottom: 0;
    font-size: clamp(18px, 4vw, 40px);
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.custom-error-page .error-content p.text {
    max-width: 870px;
    margin-bottom: 0;
    font-size: clamp(16px, 2vw, 30px);
    text-align: center;
    color: var(--gray);
}

.custom-error-page .error-content .buttons {
    max-width: 800px;
    gap: 30px;
}

.custom-error-page .error-content .buttons a {
    box-sizing: border-box;
    min-height: 50px;
    padding: 5px 20px;
    border: 1px solid var(--cyan);
    border-radius: 22px;
    font-size: clamp(16px, 1vw, 27px);
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.custom-error-page .error-content .buttons .to-home,
.custom-error-page .error-content .buttons .to-mail:hover {
    background-color: var(--cyan);
    color: white;
}

.custom-error-page .error-content .buttons .to-home:hover {
    background-color: white;
    color: var(--cyan);
}

@media screen and (max-width: 860px) {
    .custom-error-page .error-content {
        height: auto;
        min-height: 0;
    }
}

@media screen and (max-width: 768px) {
    .custom-error-page .error-content h1::before {
        top: 2px;
        left: 2px;
    }
}

@media screen and (max-width: 564px) {
    .custom-error-page .error-content .buttons {
        flex-direction: column;
        width: 100%;
        max-width: none;
        gap: 15px;
    }

    .custom-error-page .error-content .buttons a {
        width: 100%;
    }
}
