.vds-hero {
    position: relative;
    z-index: 2;
    isolation: isolate;
    min-height: max(44rem, calc(100svh - 5rem));
    overflow: visible;
    background: #dfe8ef;
    color: #fff;
    font-family: var(--vds-font-family);
}

.vds-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vds-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vds-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(8, 21, 46, 0.22) 0%,
            rgba(8, 21, 46, 0.38) 48%,
            rgba(8, 21, 46, 0.3) 100%
        ),
        radial-gradient(
            circle at center,
            rgba(8, 21, 46, 0.08) 0%,
            rgba(8, 21, 46, 0.24) 100%
        );
}

.vds-hero__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: inherit;
    padding: clamp(3rem, 7vh, 5rem) clamp(1rem, 4vw, 3rem);
    text-align: center;
}

.vds-hero__eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.7rem;
    font-weight: var(--vds-medium-weight, 500);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-shadow: 0 1px 1rem rgba(8, 21, 46, 0.35);
}

.vds-hero__title {
    margin: 0;
    width: min(100%, 72rem);
    font-size: clamp(2.25rem, 4.5vw, 4.5rem);
    font-weight: var(--vds-display-weight, 500);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 0.15rem 1.5rem rgba(8, 21, 46, 0.32);
}

.vds-hero__subtitle {
    margin: 1rem 0 0;
    font-size: clamp(1.35rem, 2.2vw, 2.15rem);
    font-weight: var(--vds-heading-weight, 300);
    line-height: 1.25;
    letter-spacing: -0.04em;
    text-shadow: 0 0.1rem 1rem rgba(8, 21, 46, 0.4);
}

.vds-hero .vds-home-search {
    width: min(78rem, 100%);
    min-height: 0;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    padding: 0;
    background: transparent;
    text-align: left;
}

.vds-hero .vds-home-search__inner {
    width: 100%;
    transform: none;
}

.vds-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.3rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid currentColor;
    color: inherit;
    font-size: 0.8rem;
    font-weight: var(--vds-medium-weight, 500);
    letter-spacing: 0.015em;
    text-decoration: none;
    text-transform: uppercase;
}

.vds-hero__link::after {
    content: "→";
    font-size: 1.2rem;
    line-height: 0.7;
}

.vds-hero__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@media (max-width: 1023px) {
    .vds-hero {
        min-height: max(42rem, calc(100svh - 4.5rem));
    }

    .vds-hero__content {
        padding: 3.5rem 1.5rem;
    }

    .vds-hero__title {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
}

@media (max-width: 767px) {
    .vds-hero {
        min-height: max(46rem, calc(100svh - 4rem));
    }

    .vds-hero__image {
        object-position: 58% center;
    }

    .vds-hero__media::after {
        background: linear-gradient(
            180deg,
            rgba(8, 21, 46, 0.28) 0%,
            rgba(8, 21, 46, 0.48) 55%,
            rgba(8, 21, 46, 0.36) 100%
        );
    }

    .vds-hero__content {
        justify-content: flex-start;
        padding: 4.5rem 1rem 2rem;
    }

    .vds-hero__title {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .vds-hero__subtitle {
        max-width: 18ch;
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .vds-hero .vds-home-search {
        margin-top: 2rem;
    }
}

/* Fraza SEO pozostaje w jednym H1; dwa poziomy typografii porządkują hero. */
.vds-hero .vds-hero__title-name {
    display: block;
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: var(--vds-display-weight, 500);
    line-height: 1.02;
    text-transform: uppercase;
}
.vds-hero .vds-hero__title-topic {
    display: block;
    margin-top: .6rem;
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-transform: none;
    text-wrap: balance;
}
.vds-hero .vds-hero__title-separator {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 767px) {
    .vds-hero .vds-hero__title-name { font-size: clamp(2.65rem, 10vw, 4rem); }
    .vds-hero .vds-hero__title-topic { margin-top: .65rem; font-size: clamp(1.45rem, 6vw, 2rem); }
    .vds-hero__subtitle { margin-top: .8rem; }
}
