.not-found-page .not-found-hero .breadcrumb-2__wrapper {
    padding-bottom: 44px;
}

/* Static 404.php does not include the global site CTA; keep that parity on 404/access pages only. */
.not-found-page .site-cta-section {
    display: none !important;
}

.not-found-page .not-found-hero .breadcrumb-2__content-box {
    align-items: flex-end;
}

.not-found-page .not-found-hero .breadcrumb-2__heading {
    width: 58%;
}

.not-found-page .not-found-hero .content {
    width: 42%;
}

.not-found-page .not-found-hero .content .decs {
    width: 92%;
    max-width: 720px;
    color: rgba(17, 17, 17, .62);
}

.not-found-main.section-space-top {
    padding-top: 60px;
}

.not-found-main.section-space-bottom {
    padding-bottom: 110px;
}

.not-found-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 16px;
    align-items: stretch;
}

.not-found-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 520px;
    border-radius: 38px;
    border: 1px solid rgba(17, 17, 17, .075);
    background: #fff;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.not-found-panel::before {
    content: "";
    position: absolute;
    inset: auto -12% -38% -10%;
    height: 62%;
    z-index: -2;
    background: radial-gradient(circle at 20% 10%, rgba(219, 82, 5, .20), transparent 42%), linear-gradient(120deg, rgba(219, 82, 5, .12), rgba(17, 17, 17, .04));
    border-radius: 50% 50% 0 0;
}

.not-found-panel::after {
    content: "";
    position: absolute;
    right: 36px;
    top: 34px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: repeating-linear-gradient(90deg, rgba(17, 17, 17, .08) 0 1px, transparent 1px 12px);
    opacity: .55;
}

.not-found-label {
    position: absolute;
    left: 34px;
    top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-height: 34px;
    border-radius: 999px;
    background: #fae7dd;
    color: #db5205;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    padding: 0 14px;
}

.not-found-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #db5205;
    box-shadow: 0 0 0 6px rgba(219, 82, 5, .12);
}

.not-found-code {
    display: block;
    color: #111;
    font-family: var(--font_BDOGrotesk);
    font-size: clamp(112px, 13vw, 230px);
    font-weight: 600;
    line-height: .78;
    letter-spacing: -.04em;
    margin: 0 0 30px;
}

.not-found-panel h2 {
    max-width: 780px;
    color: #222;
    font-family: var(--font_BDOGrotesk);
    font-size: clamp(38px, 4vw, 72px);
    font-weight: 600;
    line-height: 1.02;
    margin: 0 0 18px;
}

.not-found-panel p {
    max-width: 760px;
    color: rgba(17, 17, 17, .62);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.65;
    margin: 0;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.not-found-button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .06);
    color: #111;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    padding: 0 22px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.not-found-button:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

.not-found-button--primary {
    background: #db5205;
    color: #fff;
}

.not-found-button--primary:hover {
    background: #111;
    color: #fff;
}

.not-found-button i {
    font-size: 13px;
    transition: transform .25s ease;
}

.not-found-button:hover i {
    transform: translateX(3px);
}

.not-found-routes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.not-found-routes a {
    position: relative;
    min-height: 124px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(17, 17, 17, .075);
    background: #fff;
    color: #111;
    text-decoration: none;
    padding: 24px;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.not-found-routes a::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 3px;
    background: #db5205;
    transform: scaleX(.12);
    transform-origin: left;
    opacity: .7;
    transition: transform .25s ease, opacity .25s ease;
}

.not-found-routes a:hover {
    border-color: rgba(219, 82, 5, .24);
    background: #fff;
    transform: translateY(-2px);
}

.not-found-routes a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.not-found-routes i {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 18px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.not-found-routes a:hover i {
    background: #db5205;
    color: #fff;
    transform: rotate(-6deg);
}

.not-found-routes span {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.not-found-routes strong {
    color: #222;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.not-found-routes small {
    max-width: 350px;
    color: rgba(17, 17, 17, .58);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}
