.main-wrapper {
    .page-hero {
        background: var(--surface);
        border-bottom: 1px solid var(--border);

        > .container {
            padding-block: clamp(48px, 6vw, 88px);
        }

        .kicker {
            align-self: flex-start;
            margin-bottom: 18px;
        }

        h1 {
            font-size: clamp(34px, 4.4vw, 56px);
            color: var(--fg);
            max-width: 22ch;
        }

        .lead {
            margin-top: 18px;
            font-size: var(--fs-lead);
            color: var(--fg-70);
            max-width: 60ch;
        }

        .actions {
            margin-top: 32px;
            display: flex;
            flex-wrap: wrap;
            gap: var(--gap-sm);
        }

        &.split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: min(68vh, 640px);

            > .container {
                position: relative;
                max-width: none;
                margin: 0;
                padding: clamp(48px, 5vw, 96px);
                display: flex;
                flex-direction: column;
                justify-content: center;

                &::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    left: 0;
                    width: 4px;
                    background: var(--accent);
                }
            }
        }

        .visual {
            position: relative;
            min-height: 320px;
            overflow: hidden;
            isolation: isolate;

            img {
                position: absolute;
                inset: 0;
                z-index: -2;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                background: linear-gradient(180deg, rgba(46, 54, 58, 0.15) 0%, rgba(46, 54, 58, 0.78) 100%);
            }
        }

        .stamp {
            position: absolute;
            right: clamp(20px, 3vw, 48px);
            bottom: clamp(12px, 2vw, 28px);
            font-family: var(--font-display);
            font-size: clamp(110px, 16vw, 240px);
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.05em;
            color: #ffffff;
        }

        @media (max-width: 980px) {
            &.split {
                grid-template-columns: minmax(0, 1fr);
                min-height: 0;
            }

            .visual {
                min-height: 240px;
            }
        }

        @media (max-width: 560px) {
            .actions .btn {
                flex: 1 1 100%;
                white-space: normal;
            }
        }
    }

    :is(main.company, main.works, main.contacts) > .page-hero {
        background: var(--hero-bg);
        border-bottom-color: var(--hero-bg);

        h1 {
            color: #ffffff;
        }

        .lead {
            color: rgba(255, 255, 255, 0.85);
        }

        .actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            width: 100%;
            max-width: 540px;

            .btn {
                padding-inline: 14px;
                white-space: normal;
                text-align: center;
            }

            .btn svg {
                flex-shrink: 0;
            }

            .btn-full {
                grid-column: 1 / -1;
            }

            @media (max-width: 480px) {
                grid-template-columns: 1fr;
            }

            .btn-primary {
                background: #ffffff;
                border-color: #ffffff;
                color: var(--hero-bg);

                &:hover, &:active {
                    background: var(--accent);
                    border-color: var(--accent);
                    color: #ffffff;
                }
            }

            .btn-navcta {
                background: var(--accent);
                border-color: var(--accent);
                color: #ffffff;

                &:hover, &:active {
                    background: #ffffff;
                    border-color: #ffffff;
                    color: var(--hero-bg);
                }
            }

            .btn-wa {
                background: transparent;
                border-color: rgba(255, 255, 255, 0.6);
                color: #ffffff;

                svg {
                    fill: none;
                    stroke: currentColor;
                    stroke-width: 1.6;
                    stroke-linejoin: round;
                }

                &:hover, &:active {
                    background: #ffffff;
                    border-color: #ffffff;
                    color: var(--hero-bg);
                }
            }
        }
    }
}
