:root {
    --premium-hero-header-safe: 5.25rem;
}

.premium-page-hero {
    --hero-filter: brightness(0.72) saturate(0.88) contrast(1.08);
    --hero-image-position: center;
    --hero-mobile-position: var(--hero-image-position);
}

body[class] .premium-page-hero {
    align-items: center !important;
    background: #0b0b0d !important;
    box-sizing: border-box;
    display: flex !important;
    isolation: isolate;
    justify-content: flex-start !important;
    min-height: clamp(46rem, 100svh, 60rem) !important;
    overflow: hidden;
    padding:
        clamp(8.5rem, 12vh, 10rem)
        max(2rem, calc((100vw - 1400px) / 2 + 2rem))
        clamp(3rem, 6vh, 5rem) !important;
    position: relative;
    text-align: left !important;
}

body[class] .premium-page-hero::before {
    background-color: #121215 !important;
    background-image: var(--hero-image) !important;
    background-position: var(--hero-image-position) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    content: '' !important;
    filter: var(--hero-filter) !important;
    height: auto !important;
    inset: var(--premium-hero-header-safe) 0 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
    position: absolute !important;
    transform: scale(1.012) !important;
    transform-origin: center !important;
    width: auto !important;
    z-index: -2 !important;
}

body[class] .premium-page-hero::after {
    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 10, 0.98) 0%,
            rgba(8, 8, 10, 0.91) 34%,
            rgba(8, 8, 10, 0.6) 56%,
            rgba(8, 8, 10, 0.12) 82%
        ),
        linear-gradient(
            180deg,
            rgba(8, 8, 10, 1) 0,
            rgba(8, 8, 10, 0.74) var(--premium-hero-header-safe),
            rgba(8, 8, 10, 0.08) 34%,
            rgba(8, 8, 10, 0.88) 100%
        ) !important;
    content: '' !important;
    inset: 0 !important;
    pointer-events: none;
    position: absolute !important;
    z-index: -1 !important;
}

body[class] .premium-page-hero--right::after {
    background:
        linear-gradient(
            270deg,
            rgba(8, 8, 10, 0.98) 0%,
            rgba(8, 8, 10, 0.91) 34%,
            rgba(8, 8, 10, 0.58) 56%,
            rgba(8, 8, 10, 0.1) 82%
        ),
        linear-gradient(
            180deg,
            rgba(8, 8, 10, 1) 0,
            rgba(8, 8, 10, 0.74) var(--premium-hero-header-safe),
            rgba(8, 8, 10, 0.08) 34%,
            rgba(8, 8, 10, 0.88) 100%
        ) !important;
}

body[class] .premium-page-hero .premium-hero-content {
    box-sizing: border-box;
    margin: 0 !important;
    max-width: min(42rem, 100%) !important;
    padding: 0 !important;
    position: relative;
    text-align: left !important;
    width: 100%;
    z-index: 2;
}

body[class] .premium-page-hero--right .premium-hero-content {
    margin-left: auto !important;
}

.premium-hero-kicker {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(255, 240, 184, 0.94) !important;
    display: flex;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    gap: 0.7rem;
    letter-spacing: 0.15em;
    line-height: 1.4 !important;
    margin: 0 0 1.35rem !important;
    padding: 0 !important;
    text-transform: uppercase;
}

.premium-hero-kicker::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-shine));
    content: '';
    flex: 0 0 2.7rem;
    height: 1px;
}

body[class] .premium-page-hero h1 {
    color: var(--light);
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(3.35rem, 5.15vw, 5.65rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.058em !important;
    line-height: 0.97 !important;
    margin: 0 0 1.4rem !important;
    max-width: 11.5em;
    text-align: left !important;
    text-wrap: balance;
}

body[class] .premium-page-hero h1::before,
body[class] .premium-page-hero h1::after {
    display: none !important;
}

body[class] .premium-page-hero h1 span {
    background: var(--gradient);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[class] .premium-page-hero .premium-hero-lead {
    color: rgba(250, 249, 246, 0.86) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: clamp(1.02rem, 1.32vw, 1.16rem) !important;
    font-weight: 400 !important;
    line-height: 1.66 !important;
    margin: 0 0 1.75rem !important;
    max-width: 37rem;
    text-align: left !important;
}

.premium-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
}

.premium-hero-actions .btn {
    border-radius: 0.55rem !important;
    display: inline-flex;
    justify-content: center;
    margin: 0 !important;
    min-height: 3.45rem;
    padding: 0.95rem 1.45rem !important;
}

.premium-hero-actions .btn-outline,
.premium-hero-actions .btn-secondary {
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 13, 0.46) !important;
    border: 1px solid rgba(255, 244, 184, 0.48) !important;
    color: var(--light) !important;
}

.premium-hero-actions .btn-outline:hover,
.premium-hero-actions .btn-outline:focus-visible,
.premium-hero-actions .btn-secondary:hover,
.premium-hero-actions .btn-secondary:focus-visible {
    border-color: var(--gold-shine) !important;
    box-shadow: 0 0.8rem 2.2rem rgba(201, 162, 39, 0.18) !important;
    color: var(--gold-pale) !important;
    transform: translateY(-0.2rem);
}

.premium-hero-trust {
    animation: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255, 244, 184, 0.26);
    display: grid !important;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.65rem !important;
    max-width: 40rem;
    padding-top: 1.3rem;
}

.premium-hero-trust-item {
    border-right: 0 !important;
    box-sizing: border-box;
    min-width: 0;
    padding: 0 1rem;
    text-align: left !important;
}

.premium-hero-trust-item:first-child {
    padding-left: 0;
}

.premium-hero-trust-item + .premium-hero-trust-item {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.premium-hero-trust-item strong,
.premium-hero-trust-item span {
    display: block;
}

.premium-hero-trust-item strong {
    color: var(--gold-shine);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.premium-hero-trust-item span {
    color: rgba(250, 249, 246, 0.68);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.2rem;
}

.page-wedding .premium-page-hero {
    --hero-filter: brightness(0.8) saturate(0.8) contrast(1.08);
    --hero-image: url('assets/site/wedding-hero-luxury.webp');
    --hero-image-position: center 22%;
    --hero-mobile-position: 66% 18%;
}

.home-page .premium-page-hero {
    --hero-filter: brightness(0.62) saturate(0.86) contrast(1.08);
    --hero-image: url('hero-bg.webp');
    --hero-image-position: center 42%;
    --hero-mobile-position: 58% 35%;
}

.page-reality .premium-page-hero {
    --hero-filter: brightness(0.72) saturate(0.78) contrast(1.08);
    --hero-image: url('assets/site/reality.webp');
    --hero-image-position: 64% center;
    --hero-mobile-position: 60% center;
}

.page-event .premium-page-hero {
    --hero-filter: brightness(0.7) saturate(0.9) contrast(1.1);
    --hero-image: url('assets/site/concert.webp');
    --hero-image-position: 58% 42%;
    --hero-mobile-position: 58% center;
}

.page-fotobudka .premium-page-hero {
    --hero-filter: brightness(0.7) saturate(0.82) contrast(1.1);
    --hero-image: url('fotobudka-bg.jpg');
    --hero-image-position: 72% center;
    --hero-mobile-position: 72% center;
}

.page-360 .premium-page-hero {
    --hero-filter: brightness(0.74) saturate(0.92) contrast(1.08);
    --hero-image: url('assets/360budka/hero.webp');
    --hero-image-position: 70% 18%;
    --hero-mobile-position: 58% 14%;
}

.page-reels .premium-page-hero {
    --hero-filter: brightness(0.88) saturate(0.86) contrast(1.06);
    --hero-image: url('assets/site/reels-hero-back-v2.webp');
    --hero-image-position: 72% center;
    --hero-mobile-position: 70% center;
}

.page-conference .premium-page-hero {
    --hero-filter: brightness(0.7) saturate(0.76) contrast(1.1);
    --hero-image: url('assets/site/conference.webp');
    --hero-image-position: 26% center;
    --hero-mobile-position: 30% center;
}

.page-podcast .premium-page-hero {
    --hero-filter: brightness(0.7) saturate(0.7) contrast(1.1);
    --hero-image: url('assets/site/podcast.webp');
    --hero-image-position: 28% center;
    --hero-mobile-position: 38% center;
}

.page-promo .premium-page-hero {
    --hero-filter: brightness(0.66) saturate(0.8) contrast(1.14);
    --hero-image: url('assets/site/promo.webp');
    --hero-image-position: 60% center;
    --hero-mobile-position: 58% center;
}

.page-portfolio .premium-page-hero {
    --hero-filter: brightness(0.86) saturate(0.78) contrast(1.08);
    --hero-image: url('assets/site/portfolio-hero-back-v2.webp');
    --hero-image-position: 72% center;
    --hero-mobile-position: 70% center;
}

.page-contact .premium-page-hero {
    --hero-filter: brightness(0.88) saturate(0.82) contrast(1.06);
    --hero-image: url('assets/site/contact-hero-back-v2.webp');
    --hero-image-position: 72% center;
    --hero-mobile-position: 70% center;
}

.page-newborn .premium-page-hero {
    --hero-filter: brightness(0.72) saturate(0.78) contrast(1.06);
    --hero-image: url('assets/site/newborn-family.webp');
    --hero-image-position: center;
    --hero-mobile-position: center;
}

.page-shop .premium-page-hero {
    --hero-filter: brightness(0.8) saturate(0.78) contrast(1.06);
    --hero-image: url('assets/site/event-detail.webp');
    --hero-image-position: 72% center;
    --hero-mobile-position: 70% center;
}

.page-blog .premium-page-hero {
    --hero-filter: brightness(0.86) saturate(0.8) contrast(1.08);
    --hero-image: url('assets/site/blog-hero-back-v2.webp');
    --hero-image-position: 72% center;
    --hero-mobile-position: 70% center;
}

.page-calculator .premium-page-hero {
    --hero-filter: brightness(0.7) saturate(0.68) contrast(1.1);
    --hero-image: url('assets/site/documents.webp');
    --hero-image-position: 76% center;
    --hero-mobile-position: 66% center;
}

@media (max-width: 760px) {
    :root {
        --premium-hero-header-safe: 4.8rem;
    }

    body[class] .premium-page-hero {
        align-items: flex-end !important;
        justify-content: flex-start !important;
        min-height: 100svh !important;
        padding: 7.2rem 1.25rem 1.65rem !important;
    }

    body[class] .premium-page-hero::before {
        background-position: var(--hero-mobile-position) !important;
        transform: scale(1.008) !important;
    }

    body[class] .premium-page-hero::after,
    body[class] .premium-page-hero--right::after {
        background:
            linear-gradient(
                180deg,
                rgba(8, 8, 10, 0.98) 0,
                rgba(8, 8, 10, 0.72) var(--premium-hero-header-safe),
                rgba(8, 8, 10, 0.12) 30%,
                rgba(8, 8, 10, 0.64) 48%,
                rgba(8, 8, 10, 0.98) 70%
            ),
            linear-gradient(90deg, rgba(8, 8, 10, 0.64), rgba(8, 8, 10, 0.08)) !important;
    }

    body[class] .premium-page-hero--right .premium-hero-content {
        margin-left: 0 !important;
    }

    .premium-hero-kicker {
        font-size: 0.63rem !important;
        gap: 0.55rem;
        letter-spacing: 0.115em;
        margin-bottom: 0.85rem !important;
    }

    .premium-hero-kicker::before {
        flex-basis: 1.8rem;
    }

    body[class] .premium-page-hero h1 {
        font-size: clamp(2.55rem, 11.5vw, 3.7rem) !important;
        line-height: 0.98 !important;
        margin-bottom: 0.9rem !important;
        max-width: 11em;
    }

    body[class] .premium-page-hero .premium-hero-lead {
        font-size: 0.96rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.1rem !important;
        max-width: 34rem;
    }

    .premium-hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
    }

    .premium-hero-actions .btn {
        min-height: 3.15rem;
        width: 100%;
    }

    .premium-hero-trust {
        margin-top: 1.05rem;
        padding-top: 0.85rem;
    }

    .premium-hero-trust-item {
        padding: 0 0.58rem;
    }

    .premium-hero-trust-item strong {
        font-size: 0.76rem;
    }

    .premium-hero-trust-item span {
        font-size: 0.67rem;
        line-height: 1.28;
    }
}

@media (max-width: 390px), (max-height: 740px) and (max-width: 760px) {
    body[class] .premium-page-hero {
        min-height: max(100svh, 43rem) !important;
        padding-bottom: 1.2rem !important;
    }

    body[class] .premium-page-hero h1 {
        font-size: clamp(2.25rem, 10.7vw, 3rem) !important;
    }

    body[class] .premium-page-hero .premium-hero-lead {
        font-size: 0.9rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[class] .premium-page-hero::before {
        transform: none !important;
    }

    .premium-page-hero :is(
        .premium-hero-kicker,
        h1,
        .premium-hero-lead,
        .premium-hero-actions,
        .premium-hero-trust
    ) {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
