/* ==========================================================================
   Anmol Digital — Error Pages Compact Premium V1
   Styles public 404 and 500 pages.
   ========================================================================== */

.system-page-final-v1 {
    background: #f2f2ee;
}

.system-page-final-v1 .site-main,
.system-page-final-v1 main {
    overflow: hidden;
}

.system-error {
    min-height: clamp(620px, 78vh, 760px);
    padding:
        clamp(118px, 14vh, 150px)
        0
        clamp(68px, 9vh, 96px);
    display: grid;
    align-items: center;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(0, 0, 0, .045),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f1f1ed
        );
}

.system-error .container-fluid {
    width: min(100% - 40px, 1140px);
    margin-inline: auto;
}

.system-error__panel {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, .74fr) minmax(0, 1.26fr);
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 25px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 28px 76px rgba(0, 0, 0, .10);
}

.system-error__visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(
            circle at 68% 24%,
            rgba(255, 255, 255, .12),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #090909,
            #1c1c1c 58%,
            #080808
        );
}

.system-error__code {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(78px, 10vw, 136px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.10em;
    text-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

.system-error__rings {
    position: absolute;
    inset: 0;
}

.system-error__rings span {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.system-error__rings span:nth-child(1) {
    width: 180px;
    height: 180px;
}

.system-error__rings span:nth-child(2) {
    width: 300px;
    height: 300px;
}

.system-error__rings span:nth-child(3) {
    width: 430px;
    height: 430px;
}

.system-error__content {
    min-width: 0;
    padding: clamp(34px, 5vw, 62px);
    align-self: center;
}

.system-error__content .section-heading__eyebrow {
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #202020,
            #080808
        );
    color: #ffffff;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .12) inset,
        0 10px 22px rgba(0, 0, 0, .15);
}

.system-error__content
    .section-heading__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .10);
}

.system-error__content h1 {
    max-width: 720px;
    margin: 0;
    color: #111111;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.062em;
    text-wrap: balance;
}

.system-error__description {
    max-width: 650px;
    margin: 20px 0 0;
    color: #666666;
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 1.72;
}

.system-error__actions {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.system-error__actions .button {
    min-height: 47px;
    padding-inline: 18px;
    border-radius: 12px;
}

@media (max-width: 820px) {
    .system-error {
        min-height: auto;
        padding-top: 108px;
    }

    .system-error__panel {
        grid-template-columns: 1fr;
    }

    .system-error__visual {
        min-height: 230px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .system-error__rings span:nth-child(1) {
        width: 130px;
        height: 130px;
    }

    .system-error__rings span:nth-child(2) {
        width: 210px;
        height: 210px;
    }

    .system-error__rings span:nth-child(3) {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 560px) {
    .system-error {
        padding: 92px 0 48px;
    }

    .system-error .container-fluid {
        width: min(100% - 22px, 1140px);
    }

    .system-error__panel {
        min-height: 0;
        border-radius: 20px;
    }

    .system-error__visual {
        min-height: 190px;
    }

    .system-error__code {
        font-size: 76px;
    }

    .system-error__content {
        padding: 27px 18px 30px;
        text-align: center;
    }

    .system-error__content
        .section-heading__eyebrow {
        margin-inline: auto;
    }

    .system-error__content h1 {
        font-size: clamp(35px, 10.5vw, 47px);
    }

    .system-error__description {
        margin-top: 17px;
        font-size: 14px;
        line-height: 1.68;
    }

    .system-error__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        margin-top: 23px;
    }

    .system-error__actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-error__panel,
    .system-error__actions .button {
        transition: none !important;
    }
}
