.page-not-found__section {
    position: relative;
    overflow: hidden;
    padding: 148px 0 96px;
}

.page-not-found__section::before,
.page-not-found__section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.page-not-found__section::before {
    top: 140px;
    left: -28px;
    width: 152px;
    height: 152px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 208, 187, 0.68) 16%, transparent 18%) 0 0 / 18px 18px;
}

.page-not-found__section::after {
    right: 40px;
    bottom: 90px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.76) 8%, transparent 10%) 0 0 / 16px 16px,
        var(--secondary-color);
    box-shadow: 0 32px 80px var(--secondary-color-shadow);
}

.page-not-found__shell {
    position: relative;
    z-index: 1;
    width: min(var(--linix-shell), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.page-not-found__copy {
    max-width: 620px;
}

.page-not-found__eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 28px;
    font-style: italic;
    font-family: "Brush Script MT", "Segoe Script", cursive;
}

.page-not-found__code {
    display: block;
    color: var(--heading-color);
    font-family: var(--linix-font-heading);
    font-size: clamp(88px, 10vw, 156px);
    font-weight: 900;
    line-height: 1.6;
    letter-spacing: -0.06em;
}

.page-not-found__title {
    margin-top: 18px;
    color: var(--heading-color);
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-not-found__description {
    max-width: 560px;
    margin-top: 24px;
    color: var(--linix-light-soft);
}

.page-not-found__description.ckeditor-content {
    color: var(--linix-light-soft);
    font-size: 20px;
    line-height: 1.6;
}

.page-not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.page-not-found__button {
    min-height: 58px;
    padding: 16px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-not-found__button:hover {
    transform: translateY(-2px);
}

.page-not-found__button--primary {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 24px 50px var(--primary-color-shadow-button);
}

.page-not-found__button--secondary {
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--primary-color-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.page-not-found__visual {
    position: relative;
    min-height: 680px;
}

.page-not-found__shape {
    position: absolute;
}

.page-not-found__shape--orange {
    top: 12px;
    right: 108px;
    width: 168px;
    height: 92px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 77, 0.92), rgba(255, 170, 0, 0.84));
    transform: rotate(-14deg);
}

.page-not-found__shape--mint {
    top: 84px;
    right: 36px;
    width: 76px;
    height: 76px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.82) 14%, transparent 16%) 0 0 / 18px 18px;
}

.page-not-found__shape--violet {
    bottom: 48px;
    left: 18px;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color-deep));
    transform: rotate(20deg);
    box-shadow: 0 20px 42px var(--secondary-color-shadow);
}

.page-not-found__card {
    position: absolute;
    top: 46px;
    right: 0;
    width: 100%;
    max-width: 720px;
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--linix-shadow-strong);
    transform: rotate(-3deg);
}

.page-not-found__card-topbar {
    display: flex;
    gap: 10px;
}

.page-not-found__card-topbar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.page-not-found__card-topbar span:nth-child(1) { background: #ff6b6b; }
.page-not-found__card-topbar span:nth-child(2) { background: #fbbf24; }
.page-not-found__card-topbar span:nth-child(3) { background: #34d399; }

.page-not-found__illustration {
    position: relative;
    min-height: 420px;
    margin-top: 22px;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(248, 242, 255, 0.96)),
        radial-gradient(circle at 20% 20%, rgba(255, 191, 71, 0.18), transparent 16%);
}

.page-not-found__monitor {
    position: absolute;
    inset: 46px 54px 52px;
}

.page-not-found__monitor-screen {
    position: relative;
    height: 100%;
    padding: 36px;
    overflow: hidden;
    border: 12px solid #10141b;
    border-radius: 30px;
    background: #ffffff;
}

.page-not-found__monitor-screen strong,
.page-not-found__monitor-screen p {
    position: relative;
    z-index: 1;
}

.page-not-found__monitor-screen strong {
    display: block;
    max-width: 300px;
    color: var(--heading-color);
    font-family: var(--linix-font-heading);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.6;
}

.page-not-found__monitor-screen p {
    max-width: 280px;
    margin-top: 16px;
    color: var(--text-color-soft);
    line-height: 1.6;
}

.page-not-found__monitor-orb {
    position: absolute;
    top: 22px;
    right: 34px;
    width: 156px;
    height: 156px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color-soft), var(--secondary-color));
}

.page-not-found__monitor-window,
.page-not-found__monitor-window--small {
    position: absolute;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

.page-not-found__monitor-window {
    right: 42px;
    bottom: 42px;
    width: 188px;
    height: 144px;
}

.page-not-found__monitor-window::before,
.page-not-found__monitor-window::after,
.page-not-found__monitor-window--small::before,
.page-not-found__monitor-window--small::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.page-not-found__monitor-window::before {
    top: 28px;
    left: 24px;
    width: 96px;
    height: 16px;
    background: #ffb84d;
}

.page-not-found__monitor-window::after {
    left: 24px;
    bottom: 30px;
    width: 128px;
    height: 10px;
    background: #e2e8f0;
    box-shadow: 0 18px 0 #e2e8f0;
}

.page-not-found__monitor-window--small {
    top: 42px;
    right: 180px;
    width: 104px;
    height: 104px;
}

.page-not-found__monitor-window--small::before {
    inset: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.page-not-found__monitor-window--small::after {
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.88);
}

.page-not-found__monitor-stand {
    width: 260px;
    height: 106px;
    margin: -4px auto 0;
    border-bottom-right-radius: 36px;
    border-bottom-left-radius: 36px;
    background: linear-gradient(180deg, rgba(223, 223, 223, 0.95) 0%, rgba(177, 177, 177, 0.92) 100%);
    clip-path: polygon(42% 0, 58% 0, 72% 100%, 28% 100%);
}

.page-not-found__badge,
.page-not-found__bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.page-not-found__badge {
    left: 36px;
    bottom: 30px;
    min-height: 54px;
    padding: 12px 22px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    background: var(--secondary-color);
}

.page-not-found__bubble {
    top: 28px;
    left: 44px;
    width: 104px;
    height: 104px;
    color: var(--heading-color);
    font-family: var(--linix-font-heading);
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #dce9ff);
}

.page-not-found__card-footer {
    margin-top: 24px;
}

.page-not-found__line {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
}

.page-not-found__line--short {
    width: 62%;
    margin-top: 12px;
    background: linear-gradient(90deg, #7dd3fc, var(--primary-color));
}

.page-not-found__thumb {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 220px;
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
    transform: rotate(7deg);
}

.page-not-found__thumb img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .page-not-found__section {
        padding: 124px 0 72px;
    }

    .page-not-found__shell {
        grid-template-columns: 1fr;
    }

    .page-not-found__copy {
        max-width: 100%;
    }

    .page-not-found__visual {
        min-height: 540px;
    }

    .page-not-found__card {
        position: relative;
        max-width: 100%;
        transform: none;
    }

    .page-not-found__monitor {
        inset: 36px 26px 40px;
    }

    .page-not-found__monitor-window--small,
    .page-not-found__thumb {
        display: none;
    }
}

@media (max-width: 767px) {
    .page-not-found__shell {
        width: min(var(--linix-shell), calc(100% - 24px));
        gap: 32px;
    }

    .page-not-found__eyebrow {
        font-size: 24px;
    }

    .page-not-found__description.ckeditor-content {
        font-size: 17px;
    }

    .page-not-found__actions {
        flex-direction: column;
    }

    .page-not-found__button {
        width: 100%;
    }

    .page-not-found__visual {
        min-height: 420px;
    }

    .page-not-found__card {
        padding: 18px;
        border-radius: 24px;
    }

    .page-not-found__illustration {
        min-height: 300px;
    }

    .page-not-found__monitor-screen {
        padding: 24px;
        border-width: 8px;
        border-radius: 24px;
    }

    .page-not-found__monitor-screen strong {
        font-size: 26px;
    }

    .page-not-found__monitor-screen p {
        font-size: 15px;
    }

    .page-not-found__monitor-window,
    .page-not-found__badge,
    .page-not-found__bubble {
        display: none;
    }

    .page-not-found__monitor {
        inset: 24px 18px 32px;
    }
}
