.internal-hero-scene,
.internal-scene-header {
    display: none;
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
    .header.header--desktop-hero.internal-legacy-header {
        display: none !important;
    }

    .header.header--desktop-hero.internal-legacy-header::before,
    .header.header--desktop-hero.internal-legacy-header::after {
        content: none !important;
        display: none !important;
    }

    .internal-hero-scene {
        position: relative;
        z-index: 1;
        display: block;
        overflow: hidden;
        isolation: isolate;
        min-height: 200px;
        height: 200px;
        max-height: 200px;
        margin-top: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .internal-hero-scene::before {
        content: '';
        position: absolute;
        inset: 112px 0 0;
        z-index: 1;
        background: linear-gradient(
            180deg,
            rgba(244, 239, 232, 0) 0%,
            rgba(245, 240, 233, 0.04) 12%,
            rgba(246, 241, 234, 0.16) 26%,
            rgba(246, 241, 234, 0.34) 44%,
            rgba(247, 242, 235, 0.62) 70%,
            rgba(247, 242, 235, 0.82) 100%
        );
        pointer-events: none;
    }

    .internal-hero-scene::after {
        content: '';
        position: absolute;
        inset: auto 0 -8px;
        z-index: 2;
        height: 46px;
        background: linear-gradient(
            180deg,
            rgba(247, 242, 235, 0) 0%,
            rgba(247, 242, 235, 0) 18%,
            rgba(247, 242, 235, 0.14) 46%,
            rgba(247, 242, 235, 0.42) 72%,
            rgba(247, 242, 235, 0.96) 100%
        );
        -webkit-backdrop-filter: blur(26px) saturate(108%);
        backdrop-filter: blur(26px) saturate(108%);
        pointer-events: none;
    }

    .internal-scene-header {
        position: absolute;
        inset: -20px 24px auto;
        z-index: 4;
        display: grid;
        gap: 0;
        margin-bottom: 0;
        padding-inline: 0;
        width: auto;
        transform: none;
    }

    .internal-scene-header .hero-scene__topbar {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px 20px;
        padding: 0;
        margin-bottom: 0;
        border: 0;
        border-radius: 0;
        background: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .internal-scene-header .hero-header-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(448px, 520px);
        align-items: end;
        gap: 10px 68px;
        margin-top: -24px;
    }

    .internal-scene-header .hero-brand {
        display: flex;
        align-items: flex-start;
        min-width: 0;
        width: max-content;
        margin-top: 38px;
        margin-left: 38px;
        transform: translateY(16px);
    }

    .internal-scene-header .hero-brand__link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        color: var(--theme-text-strong) !important;
        text-decoration: none !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    .internal-scene-header .hero-brand__link *,
    .internal-scene-header .hero-brand__link *::before,
    .internal-scene-header .hero-brand__link *::after {
        color: inherit !important;
        text-decoration: none !important;
    }

    .internal-scene-header .hero-brand__mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        width: 78px;
        height: 78px;
        flex: 0 0 78px;
        padding: 4px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(247, 249, 252, 0.98) 0%, rgba(201, 212, 227, 0.92) 100%);
        box-shadow:
            0 10px 24px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.75);
        isolation: isolate;
    }

    .internal-scene-header .hero-brand__logo {
        display: block;
        height: 70px;
        width: 70px;
        max-width: 328px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        border: 0;
        background: transparent;
        object-fit: contain;
        position: relative;
        z-index: 1;
    }

    .internal-scene-header .hero-brand__text {
        display: grid;
        gap: 5px;
        min-width: 0;
        width: max-content;
        position: relative;
        padding-bottom: 8px;
    }

    .internal-scene-header .hero-brand__text::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 92px;
        height: 1px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(138, 111, 74, 0.54), rgba(138, 111, 74, 0));
    }

    .internal-scene-header .hero-brand__eyebrow {
        color: rgba(31, 38, 34, 0.62) !important;
        font-size: 12.2px;
        font-weight: 760;
        line-height: 1.18;
        letter-spacing: 0.17em;
        text-transform: uppercase;
    }

    .internal-scene-header .hero-brand__name {
        font-family: 'Cormorant Garamond', serif;
        font-size: 35px;
        font-weight: 700;
        font-synthesis: none;
        line-height: 0.92;
        letter-spacing: -0.015em;
        color: var(--theme-text-strong);
        font-variant-numeric: lining-nums proportional-nums;
        font-feature-settings: "lnum" 1, "pnum" 1;
    }

    .internal-scene-header .hero-brand__wave {
        display: block;
        position: absolute;
        inset: -260% -260%;
        background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 44%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0) 56%,
            rgba(255, 255, 255, 0) 100%);
        transform: translate(180%, -180%) rotate(10deg);
        opacity: 0.6;
        pointer-events: none;
        filter: blur(0.6px);
        z-index: 2;
        animation: logo-wave-shine 3.1s linear infinite;
    }

    .internal-scene-header .hero-header-stack {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        justify-self: end;
        width: min(100%, 404px);
        max-width: 404px;
        gap: 10px;
        align-items: stretch;
        align-content: end;
        align-self: end;
        padding: 0;
        margin-top: 0;
        margin-right: 0;
        min-height: 96px;
        transform: translate3d(116px, -8px, 0);
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .internal-scene-header .hero-header-link,
    .internal-scene-header .hero-header-address {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        min-width: 0;
    }

    .internal-scene-header .hero-header-link,
    .internal-scene-header .hero-header-link:visited,
    .internal-scene-header .hero-header-link:hover,
    .internal-scene-header .hero-header-link:focus-visible,
    .internal-scene-header .hero-header-link *,
    .internal-scene-header .hero-header-link *::before,
    .internal-scene-header .hero-header-link *::after {
        text-decoration: none !important;
    }

    .internal-scene-header .hero-header-link--secondary {
        padding-left: 0;
        border-left: 0;
        opacity: 0.76;
    }

    .internal-scene-header .hero-header-link--secondary .hero-header-sub {
        display: none;
    }

    .internal-scene-header .hero-header-text {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .internal-scene-header .hero-header-link i,
    .internal-scene-header .hero-header-address i {
        flex: 0 0 19px;
        --pokraska-icon-color: var(--apple-accent-deep);
        color: var(--pokraska-icon-color, var(--apple-accent-deep)) !important;
        font-size: 18px;
        width: 19px;
        text-align: center;
        display: inline-block;
        line-height: 1;
        text-shadow: none !important;
    }

    .internal-scene-header .hero-header-link i::before,
    .internal-scene-header .hero-header-address i::before {
        display: block;
        line-height: 1;
    }

    .internal-scene-header .hero-header-main {
        color: var(--theme-text-strong) !important;
        font-size: 17.5px;
        line-height: 1.1;
        font-weight: 760;
        font-variant-numeric: tabular-nums lining-nums;
        font-feature-settings: "tnum" 1, "lnum" 1;
    }

    .internal-scene-header .hero-header-link--primary .hero-header-main {
        font-size: 21.5px;
        line-height: 1.04;
    }

    .internal-scene-header .hero-header-link--secondary .hero-header-main {
        font-size: 16.8px;
    }

    .internal-scene-header .hero-header-sub {
        color: var(--theme-text-strong) !important;
        font-size: 13.5px;
        line-height: 1.24;
        font-weight: 640;
        font-variant-numeric: tabular-nums lining-nums;
        font-feature-settings: "tnum" 1, "lnum" 1;
    }

    .internal-scene-header .hero-header-link--primary .hero-header-sub {
        color: rgba(31, 38, 34, 0.62) !important;
        font-size: 14.2px;
    }

    .internal-scene-header .hero-header-address {
        grid-column: auto;
        justify-self: stretch;
        max-width: none;
        border-top: 0;
        color: var(--theme-text-strong) !important;
        font-size: 13.5px;
        line-height: 1.3;
        font-weight: 600;
        text-align: left;
    }

    .internal-scene-header .hero-header-address i {
        color: var(--apple-accent-deep) !important;
    }

    .internal-scene-header .hero-header-address span {
        color: var(--theme-text) !important;
    }

    .internal-scene-header .hero-scene__nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 9px 18px;
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        border-top: 0;
        align-self: end;
    }

    .internal-scene-header .hero-nav__link,
    .internal-scene-header .hero-nav__link:visited {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        padding: 7px 14px;
        border: 1px solid rgba(var(--theme-accent-rgb), 0.12);
        border-radius: 999px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
            linear-gradient(90deg, rgba(var(--theme-accent-rgb), 0.08), rgba(255, 255, 255, 0));
        color: rgba(31, 38, 34, 0.84);
        font-size: 15.5px;
        font-weight: 800;
        letter-spacing: 0.012em;
        line-height: 1.08;
        white-space: nowrap;
        text-decoration: none !important;
        text-shadow: none;
        box-shadow:
            0 8px 16px rgba(var(--theme-accent-strong-rgb), 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.16);
        transition:
            color 180ms ease,
            border-color 180ms ease,
            background 180ms ease,
            box-shadow 180ms ease,
            opacity 180ms ease,
            transform 180ms ease;
    }

    .internal-scene-header .hero-nav__link::after {
        content: '';
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 0;
        height: 0.75px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(111, 87, 65, 0) 0%, rgba(138, 111, 74, 0.24) 18%, rgba(138, 111, 74, 0.34) 50%, rgba(138, 111, 74, 0.24) 82%, rgba(111, 87, 65, 0) 100%);
        box-shadow: 0 1px 3px rgba(111, 87, 65, 0.05);
        opacity: 0;
        transform: scaleX(0.42);
        transform-origin: center;
        transition: transform 180ms ease, background 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
    }

    .internal-scene-header .hero-nav__link:hover {
        color: var(--apple-accent-deep);
        border-color: rgba(138, 111, 74, 0.18);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
            linear-gradient(90deg, rgba(138, 111, 74, 0.08), rgba(255, 255, 255, 0));
        box-shadow:
            0 10px 20px rgba(111, 87, 65, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.38);
        transform: translateY(-1px);
    }

    .internal-scene-header .hero-nav__link:hover::after {
        opacity: 0.78;
        transform: scaleX(1);
    }

    .internal-scene-header .hero-nav__link--active {
        border: 1px solid transparent;
        background: none;
        border-color: transparent;
        color: var(--apple-accent-deep) !important;
        box-shadow: none;
        text-shadow: none;
        transform: none;
    }

    .internal-scene-header .hero-nav__link--active::after {
        opacity: 0.96;
        transform: scaleX(1);
        background: linear-gradient(90deg, rgba(111, 87, 65, 0) 0%, rgba(138, 111, 74, 0.28) 18%, rgba(138, 111, 74, 0.52) 50%, rgba(138, 111, 74, 0.28) 82%, rgba(111, 87, 65, 0) 100%);
        box-shadow: 0 1px 4px rgba(111, 87, 65, 0.08);
    }

    .internal-hero-stage {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 670px;
        aspect-ratio: 15 / 8;
        overflow: hidden;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        margin: 0;
    }

    .internal-hero-stage::before {
        content: none;
    }

    .internal-hero-stage::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            180deg,
            rgba(246, 240, 232, 0) 0%,
            rgba(246, 240, 232, 0) 62%,
            rgba(246, 240, 232, 0.05) 78%,
            rgba(246, 240, 232, 0.18) 100%
        );
        pointer-events: none;
    }

    .internal-hero-scene .hero-stage__picture {
        position: absolute;
        inset: 0 -12px 0 -2px;
        z-index: 0;
        display: block;
    }

    .internal-hero-scene .hero-stage__picture img {
        width: calc(100% + 14px);
        max-width: none;
        height: 100%;
        object-fit: cover;
        object-position: center 72%;
        transform: scale(1);
        animation: stageDrift 16s ease-in-out infinite;
        animation-delay: var(--hero-stage-drift-delay, 0s);
        animation-fill-mode: both;
        -webkit-mask-image: none;
        mask-image: none;
    }

    body#top .internal-hero-scene + .catalog-page,
    body#top .internal-hero-scene + .services-page,
    body#top .internal-hero-scene + .gallery-page,
    body#top .internal-hero-scene + .prices-page,
    body#top .internal-hero-scene + .payment-docs-page,
    body#top .internal-hero-scene + .privacy-page,
    body#top .internal-hero-scene + .automation-product-page {
        position: relative;
        z-index: 1;
        padding-top: 12px !important;
        background:
            linear-gradient(
                180deg,
                rgba(244, 239, 232, 0.992) 0%,
                rgba(246, 241, 234, 0.996) 52px,
                rgba(247, 242, 235, 0.999) 118px,
                var(--theme-bg) 182px
            ),
            linear-gradient(180deg, var(--theme-bg) 0%, var(--theme-bg-deep) 44%, var(--theme-bg-soft) 100%);
    }

    body#top .internal-hero-scene + .catalog-page::before,
    body#top .internal-hero-scene + .services-page::before,
    body#top .internal-hero-scene + .gallery-page::before,
    body#top .internal-hero-scene + .prices-page::before,
    body#top .internal-hero-scene + .payment-docs-page::before,
    body#top .internal-hero-scene + .privacy-page::before,
    body#top .internal-hero-scene + .automation-product-page::before {
        content: '' !important;
        position: absolute;
        inset: -14px 0 auto;
        z-index: 2;
        height: 44px;
        pointer-events: none;
        background: linear-gradient(
            180deg,
            rgba(244, 239, 232, 0) 0%,
            rgba(245, 240, 233, 0.12) 20%,
            rgba(246, 241, 234, 0.38) 52%,
            rgba(247, 242, 235, 1) 100%
        );
        -webkit-backdrop-filter: blur(18px) saturate(106%);
        backdrop-filter: blur(18px) saturate(106%);
    }

    body#top .internal-hero-scene + .catalog-page > .container,
    body#top .internal-hero-scene + .services-page > .container,
    body#top .internal-hero-scene + .gallery-page > .container,
    body#top .internal-hero-scene + .prices-page > .container,
    body#top .internal-hero-scene + .payment-docs-page > .container,
    body#top .internal-hero-scene + .privacy-page > .container,
    body#top .internal-hero-scene + .automation-product-page > .container {
        position: relative;
        z-index: 3;
        padding-top: 0 !important;
    }
}
