.elementor-top-section:has(.elementor-widget-tc404_page),
.elementor-section:has(.elementor-widget-tc404_page),
.elementor-container:has(.elementor-widget-tc404_page),
.elementor-column:has(.elementor-widget-tc404_page),
.elementor-column-wrap:has(.elementor-widget-tc404_page),
.elementor-widget-wrap:has(> .elementor-widget-tc404_page),
.e-con:has(> .elementor-widget-tc404_page),
.e-con-inner:has(> .elementor-widget-tc404_page) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
}

.elementor-widget-tc404_page,
.elementor-widget-tc404_page > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

.tc404-page {
    --tc404-bg: #060d17;
    --tc404-surface: rgba(8, 19, 33, 0.84);
    --tc404-surface-strong: rgba(10, 24, 40, 0.98);
    --tc404-border: rgba(131, 168, 214, 0.18);
    --tc404-text: #f4f8ff;
    --tc404-text-soft: rgba(214, 227, 244, 0.78);
    --tc404-accent: #1f78ff;
    --tc404-accent-strong: #3293ff;
    --tc404-image-offset-top: 22px;
    --tc404-title-weight: 800;
    --tc404-title-size: 56px;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: clamp(12px, 1.4vw, 18px) clamp(20px, 3vw, 36px) clamp(34px, 4vw, 54px);
    border: 0;
    border-radius: 0;
    color: var(--tc404-text);
    font-family: var(--tc-copy, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
    background:
        radial-gradient(circle at 50% 18%, rgba(40, 120, 255, 0.24), transparent 22%),
        radial-gradient(circle at 18% 24%, rgba(31, 120, 255, 0.14), transparent 24%),
        radial-gradient(circle at 84% 64%, rgba(31, 120, 255, 0.12), transparent 26%),
        linear-gradient(180deg, #07111d 0%, #050b14 100%);
    box-shadow: none;
}

.tc404-page::before,
.tc404-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tc404-page::before {
    background:
        linear-gradient(rgba(52, 122, 230, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 122, 230, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 18%, rgba(0, 0, 0, 0.96) 68%, transparent 100%);
    opacity: 0.3;
}

.tc404-page::after {
    background:
        radial-gradient(circle at 50% 30%, rgba(37, 121, 255, 0.22), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 8%);
}

.tc404-page__inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.tc404-page__hero {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.tc404-page__visual {
    width: min(980px, 100%);
    position: relative;
    margin-top: var(--tc404-image-offset-top);
    margin-bottom: 0;
}

.tc404-page__visual::after {
    content: none;
}

.tc404-page__image {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    transform-origin: top center;
    filter: drop-shadow(0 20px 40px rgba(17, 82, 182, 0.28));
}

.tc404-page__visual--fallback {
    display: grid;
    place-items: center;
    min-height: 260px;
}

.tc404-page__fallback-number {
    font-family: var(--tc-copy, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
    font-size: clamp(5rem, 18vw, 11rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.88;
    color: #eff6ff;
    text-shadow: 0 0 28px rgba(69, 141, 255, 0.34);
}

.tc404-page__copy {
    width: min(760px, 100%);
    margin-top: -78px;
}

.tc404-page__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--tc-copy, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
    font-size: clamp(2rem, 4.2vw, var(--tc404-title-size));
    font-weight: var(--tc404-title-weight);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.tc404-page__description {
    margin: 12px auto 0;
    max-width: 64ch;
    color: var(--tc404-text-soft);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.8;
}

.tc404-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.tc404-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.tc404-page__button:hover,
.tc404-page__button:focus-visible {
    transform: translateY(-2px);
}

.tc404-page__button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--tc404-accent) 0%, var(--tc404-accent-strong) 100%);
    box-shadow: 0 16px 36px rgba(18, 87, 201, 0.34);
}

.tc404-page__button--primary:hover,
.tc404-page__button--primary:focus-visible {
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(18, 87, 201, 0.46);
}

.tc404-page__button--secondary {
    color: #f3f7fe;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(172, 199, 235, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tc404-page__button--secondary:hover,
.tc404-page__button--secondary:focus-visible {
    color: #ffffff;
    border-color: rgba(172, 199, 235, 0.34);
    background: rgba(255, 255, 255, 0.05);
}

.tc404-page__button-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.tc404-page__button-icon svg {
    width: 100%;
    height: 100%;
}

.tc404-page__button-arrow {
    font-size: 1.15em;
}

.tc404-page__next {
    margin-top: clamp(24px, 3vw, 36px);
}

.tc404-page__next-title {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: var(--tc-copy, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.tc404-page__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tc404-page__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 132px;
    padding: 24px 22px;
    border: 1px solid var(--tc404-border);
    border-radius: 22px;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(12, 24, 40, 0.92) 0%, rgba(7, 16, 28, 0.94) 100%),
        var(--tc404-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.tc404-page__card:hover,
.tc404-page__card:focus-visible {
    transform: translateY(-4px);
    color: #ffffff;
    border-color: rgba(91, 153, 241, 0.34);
    box-shadow: 0 20px 38px rgba(2, 8, 18, 0.3);
}

.tc404-page__card--static:hover,
.tc404-page__card--static:focus-visible {
    transform: none;
}

.tc404-page__card-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--tc-blue, #1f8cff);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tc404-page__card-icon i,
.tc404-page__card-icon svg {
    width: 38px;
    height: 38px;
    font-size: 38px;
}

.tc404-page__card-icon svg,
.tc404-page__card-icon svg * {
    fill: currentColor;
    stroke: currentColor;
}

.tc404-page__card-copy {
    display: grid;
    gap: 8px;
}

.tc404-page__card-title {
    display: block;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 650;
    line-height: 1.25;
}

.tc404-page__card-text {
    display: block;
    color: var(--tc404-text-soft);
    font-size: 0.98rem;
    line-height: 1.66;
}

.tc404-page__card-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.34rem;
}

@media (max-width: 960px) {
    .tc404-page__cards {
        grid-template-columns: 1fr;
    }

    .tc404-page__card {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .tc404-page {
        width: 100vw;
        max-width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        padding-top: 10px;
        padding-right: 18px;
        padding-left: 18px;
        padding-bottom: 28px;
    }

    .tc404-page__visual {
        margin-top: var(--tc404-image-offset-top);
        margin-bottom: 0;
    }

    .tc404-page__image {
        transform: none;
    }

    .tc404-page__title {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    .tc404-page__description {
        max-width: 30ch;
    }

    .tc404-page__copy {
        margin-top: -34px;
    }

    .tc404-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tc404-page__button {
        width: 100%;
    }

    .tc404-page__card {
        grid-template-columns: auto 1fr;
    }

    .tc404-page__card-arrow {
        display: none;
    }
}
