.hero-parallax {
    position: relative;
    min-height: 100svh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--dark);
}

/* Tło — przesuwa się wolniej przez JS */
.hero-parallax__bg {
    position: absolute;
    inset: -15%;
    background-size: cover;
    background-position: center 40%;
    will-change: transform;
    z-index: 0;
}

/* Gradient na dole — blend treść ze stroną */
.hero-parallax__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 43, 26, 0.68) 0%, rgba(28, 43, 26, 0.35) 45%, rgba(28, 43, 26, 0.18) 100%),
        linear-gradient(180deg, rgba(28, 43, 26, 0.10) 0%, rgba(28, 43, 26, 0.78) 100%);
    z-index: 1;
}

.hero-parallax__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: calc(var(--header-h) + 2rem);
    max-width: 44rem;
    padding-bottom: clamp(3rem, 8vh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hero-parallax__label {
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 1.25rem;
    transition-delay: 0s;
}

.hero-parallax__title {
    color: var(--white);
    max-width: 8ch;
    margin: 0 0 0.5rem;
    transition-delay: 0.08s;
}

.hero-parallax__typewriter {
    display: inline-flex;
    align-items: baseline;
    min-height: 1.4em;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.6rem);
    font-style: italic;
    color: var(--sky);
    line-height: 1.1;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition-delay: 0.16s;
}

.hero-parallax__typewriter .tw {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
}

.hero-parallax__subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    max-width: 30rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    transition-delay: 0.22s;
}

.hero-parallax__cta {
    align-self: flex-start;
    transition-delay: 0.3s;
}

/* Strzałka scroll hint */
.hero-parallax__scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-parallax__scroll-hint span {
    display: block;
    width: 1.5px;
    height: 2.75rem;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.55));
    margin: 0 auto;
    animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { opacity: 0; transform: translateY(-8px); }
    50%       { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .hero-parallax__content {
        padding-top: calc(var(--header-h) + 3rem);
    }
}

@media (min-width: 992px) {
    .hero-parallax__bg {
        inset: -16% 0;
    }

    .hero-parallax__content {
        padding-bottom: 8rem;
    }

    .hero-parallax__scroll-hint {
        left: auto;
        right: var(--container-px);
        transform: none;
    }
}
