/* =====================================================
   404 PAGE
   Max-width: 1440px · desktop side-padding: 56px
   Mobile side-padding: 16px
   ===================================================== */

/* ── Section ── */
.err404 {
    position: relative;
    width: 100%;
    min-height: 651px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ── Clip-path wrapper (desktop: chamfered corners + white bg) ── */
.err404__wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: #fff;
    padding: 44px 56px 40px;
    display: flex;
    flex-direction: column;
    width: 1440px;
    max-width: 100%;
}

/* ── Background image ── */
.err404__bg {
    position: absolute;
    inset: 44px 56px 40px;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
}

    .err404__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* ── Inner container ── */
.err404__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
}

/* ── Content panel ── */
.err404__panel {
    width: 501px;
    max-width: 100%;
    padding: 40px;
    background: #264abc;
    display: flex;
    flex-direction: column;
    gap: 40px;
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    margin-left: 80px;
    margin-bottom: 40px;
}

/* ── Heading + body wrapper (24 px internal gap) ── */
.err404__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.err404__title {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.err404__body {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

/* ── CTA button (outlined · white border) ── */
.err404__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease;
}

    .err404__btn:hover {
        background: #FFF;
        color: #264ABC;
    }

/* Arrow animation – same two-arrow diagonal slide as wwd-service-btn */
.err404__btn-arrow {
    display: inline-flex;
    align-items: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.err404__btn-a {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 16px;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.err404__btn-a--2 {
    transform: translate(calc(-50% - 19px), calc(-50% + 19px)) rotate(-45deg);
}

.err404__btn:hover .err404__btn-a:not(.err404__btn-a--2) {
    transform: translate(calc(-50% + 19px), calc(-50% - 19px)) rotate(-45deg);
}

.err404__btn:hover .err404__btn-a--2 {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ── Responsive (mobile + tablet shared breakpoint) ── */
@media (max-width: 1023px) {
    .err404 {
        min-height: 744px;
    }

    .err404__bg {
        inset: 0;
        clip-path: none;
    }

    .err404__wrap {
        padding: 0;
    }

    .err404__inner {
        padding: 16px;
    }

    .err404__panel {
        width: 100%;
        padding: 40px;
        height: 308px;
        margin: 0;
        gap: 34px;
    }

    .err404__text {
        gap: 12px;
    }

    .err404__title {
        font-size: 24px;
    }
}
