/* HAVA — wspólny Hero / baner stron katalogowych */
.hava-shared-hero {
    --hava-navy: #21234A;
    --hava-light: #EEEEF6;
    --hava-blue: #BBCBD7;
    --hava-white: #FFFFFF;
    --hava-slate: #404E66;
    display: flex;
    align-items: center;
    padding: 26px 0 58px;
    color: var(--hava-slate);
    background-color: var(--hava-light);
    background-image: linear-gradient(90deg, rgba(187,203,215,.28), rgba(238,238,246,0) 58%);
    background-repeat: no-repeat;
}

.hava-shared-hero--white { background-color: var(--hava-white); }
.hava-shared-hero--blue { background-color: rgba(187,203,215,.52); }
.hava-shared-hero--navy { background-color: var(--hava-navy); }

.hava-shared-hero__container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.hava-shared-hero__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 36px;
    color: rgba(64,78,102,.70);
    font-size: 12px;
    line-height: 1.5;
}

.hava-shared-hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.hava-shared-hero__breadcrumbs a:hover,
.hava-shared-hero__breadcrumbs [aria-current="page"] {
    color: var(--hava-navy);
}

.hava-shared-hero__copy {
    max-width: 760px;
}

.hava-shared-hero--align-center .hava-shared-hero__copy {
    margin-inline: auto;
    text-align: center;
}

.hava-shared-hero__label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    margin: 0 0 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--hava-white);
    background: var(--hava-navy);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hava-shared-hero--align-center .hava-shared-hero__label {
    margin-inline: auto;
}

.hava-shared-hero__title {
    margin: 0;
    color: var(--hava-navy);
    font-size: 55px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.hava-shared-hero__title::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin-top: 14px;
    background: var(--hava-blue);
}

.hava-shared-hero--align-center .hava-shared-hero__title::after {
    margin-inline: auto;
}

.hava-shared-hero__description {
    max-width: 720px;
    margin-top: 17px;
    color: var(--hava-slate);
    font-size: 16px;
    line-height: 1.62;
}

.hava-shared-hero__description > :first-child { margin-top: 0; }
.hava-shared-hero__description > :last-child { margin-bottom: 0; }

.hava-shared-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hava-shared-hero--align-center .hava-shared-hero__actions {
    justify-content: center;
}

.hava-shared-hero__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: .18s ease;
}

.hava-shared-hero__button--primary {
    color: #fff !important;
    background: var(--hava-navy);
}

.hava-shared-hero__button--secondary {
    color: var(--hava-navy) !important;
    border-color: rgba(33,35,74,.30);
    background: rgba(255,255,255,.38);
}

.hava-shared-hero__button:hover { transform: translateY(-1px); }
.hava-shared-hero__button--primary:hover { background: #3B3E70; }
.hava-shared-hero__button--secondary:hover { background: #fff; }

.hava-shared-hero--has-image,
.hava-shared-hero--navy {
    color: rgba(255,255,255,.90);
}

.hava-shared-hero--has-image .hava-shared-hero__breadcrumbs,
.hava-shared-hero--navy .hava-shared-hero__breadcrumbs,
.hava-shared-hero--has-image .hava-shared-hero__title,
.hava-shared-hero--navy .hava-shared-hero__title,
.hava-shared-hero--has-image .hava-shared-hero__description,
.hava-shared-hero--navy .hava-shared-hero__description {
    color: var(--hava-white);
}

.hava-shared-hero--has-image .hava-shared-hero__label,
.hava-shared-hero--navy .hava-shared-hero__label {
    color: var(--hava-navy);
    background: var(--hava-blue);
}

.hava-shared-hero--has-image .hava-shared-hero__title::after,
.hava-shared-hero--navy .hava-shared-hero__title::after {
    background: rgba(255,255,255,.56);
}

.hava-shared-hero--has-image .hava-shared-hero__button--secondary,
.hava-shared-hero--navy .hava-shared-hero__button--secondary {
    color: #fff !important;
    border-color: rgba(255,255,255,.58);
    background: transparent;
}

.hava-shared-hero--has-image .hava-shared-hero__button--secondary:hover,
.hava-shared-hero--navy .hava-shared-hero__button--secondary:hover {
    color: var(--hava-navy) !important;
    background: #fff;
}

/* Pola Hero na ekranach taksonomii */
.hava-term-hero-fields .hava-admin-media-field { margin: 18px 0; }
.hava-term-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.hava-term-hero-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hava-term-hero-grid input,
.hava-term-hero-grid select { width: 100%; }

@media (max-width: 760px) {
    .hava-shared-hero {
        padding: 20px 0 44px;
    }
    .hava-shared-hero__container {
        width: min(100% - 30px, 1160px);
    }
    .hava-shared-hero__breadcrumbs {
        margin-bottom: 26px;
        font-size: 11px;
    }
    .hava-shared-hero__title {
        font-size: 42px;
    }
    .hava-term-hero-grid {
        grid-template-columns: 1fr;
    }
}
