/* HAVA — Dolegliwości, Zespół i profile specjalistów.
 * Paleta celowo ograniczona do kolorów używanych na stronie głównej:
 * granat, jasne tło, błękit, biel i tekst slate.
 */

.hava-problems-index,
.hava-team-archive,
.hava-team-single,
.hava-team-section {
    --hava-navy: #21234A;
    --hava-light: #EEEEF6;
    --hava-blue: #BBCBD7;
    --hava-white: #FFFFFF;
    --hava-slate: #404E66;
    color: var(--hava-slate);
}

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

.hava-directory-hero,
.hava-team-profile-hero {
    padding: 26px 0 58px;
    color: var(--hava-slate);
    background:
        linear-gradient(90deg, rgba(187, 203, 215, .28), rgba(238, 238, 246, 0) 58%),
        var(--hava-light);
}

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

.hava-directory-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.hava-directory-breadcrumbs a:hover {
    color: var(--hava-navy);
}

.hava-directory-eyebrow {
    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: 9px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hava-directory-eyebrow--inverse {
    color: var(--hava-navy);
    background: var(--hava-blue);
}

.hava-directory-hero__copy {
    max-width: 730px;
}

.hava-directory-hero__copy h1,
.hava-team-profile-copy h1 {
    margin: 0;
    color: var(--hava-navy);
    font-size: clamp(32px, 3.8vw, 42px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.06;
}

.hava-directory-hero__copy h1::after,
.hava-team-profile-copy h1::after,
.hava-directory-heading h2::after {
    content: "";
    display: block;
    width: 38px;
    height: 1px;
    margin-top: 14px;
    background: var(--hava-blue);
}

.hava-directory-hero__copy > p:last-child,
.hava-directory-hero__text {
    max-width: 660px;
    margin: 17px 0 0;
    color: var(--hava-slate);
    font-size: 13px;
    line-height: 1.65;
}

.hava-directory-hero__text > :first-child,
.hava-directory-heading__description > :first-child,
.hava-team-contact-panel__text > :first-child,
.hava-team-why-panel__text > :first-child {
    margin-top: 0;
}

.hava-directory-hero__text > :last-child,
.hava-directory-heading__description > :last-child,
.hava-team-contact-panel__text > :last-child,
.hava-team-why-panel__text > :last-child {
    margin-bottom: 0;
}

.hava-directory-heading {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.hava-directory-heading .hava-directory-eyebrow {
    margin-inline: auto;
}

.hava-directory-heading h2 {
    margin: 0;
    color: var(--hava-navy);
    font-size: clamp(25px, 2.8vw, 30px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
}

.hava-directory-heading h2::after {
    margin-inline: auto;
}

.hava-directory-heading__description {
    max-width: 600px;
    margin: 12px auto 0;
    color: var(--hava-slate);
    font-size: 12px;
    line-height: 1.6;
}

.hava-problems-list-section,
.hava-team-archive__grid-section {
    padding: 62px 0 74px;
    background: var(--hava-light);
}

.hava-problems-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hava-problem-card {
    position: relative;
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 40px 18px 18px;
    border: 1px solid rgba(33, 35, 74, .08);
    border-radius: 12px;
    color: var(--hava-navy);
    background: var(--hava-white);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hava-problem-card:hover {
    border-color: rgba(33, 35, 74, .18);
    box-shadow: 0 10px 24px rgba(33, 35, 74, .06);
    transform: translateY(-2px);
}

.hava-problem-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.hava-problem-card__meta {
    margin-top: 6px;
    color: rgba(64, 78, 102, .68);
    font-size: 9px;
}

.hava-problem-card__arrow {
    position: absolute;
    right: 17px;
    top: 50%;
    font-size: 17px;
    transform: translateY(-50%);
}

.hava-team-section {
    padding: 62px 0 70px;
}

.hava-team-section--light,
.hava-team-section--beige {
    background: var(--hava-light);
}

.hava-team-section--blue {
    background: rgba(187, 203, 215, .24);
}

.hava-team-section--white {
    background: var(--hava-white);
}

.hava-team-grid {
    display: grid;
    grid-template-columns: repeat(var(--hava-team-columns, 3), minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.hava-team-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(33, 35, 74, .07);
    border-radius: 14px;
    background: var(--hava-white);
    box-shadow: 0 8px 22px rgba(33, 35, 74, .035);
    transition: transform .18s ease, box-shadow .18s ease;
}

.hava-team-card:hover {
    box-shadow: 0 12px 28px rgba(33, 35, 74, .065);
    transform: translateY(-3px);
}

.hava-team-card__image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(187, 203, 215, .28);
}

.hava-team-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hava-team-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 20px;
    color: var(--hava-slate);
    font-size: 11px;
    text-align: center;
}

.hava-team-card__body {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 17px 18px 18px;
}

.hava-team-card__name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.18;
}

.hava-team-card__name a {
    color: var(--hava-navy);
    text-decoration: none;
}

.hava-team-card__profession {
    margin: 6px 0 0;
    color: rgba(64, 78, 102, .72);
    font-size: 10px;
    line-height: 1.4;
}

.hava-team-card__bio {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 10px;
    color: var(--hava-slate);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hava-team-card__bio > :first-child {
    margin-top: 0;
}

.hava-team-card__bio > :last-child {
    margin-bottom: 0;
}

.hava-team-card__meta-group {
    margin-top: 10px;
}

.hava-team-card__meta-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(64, 78, 102, .58);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hava-team-card__chips {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Elementy ponad limit są ukryte już podczas pierwszego renderu.
 * Jawne !important zabezpiecza atrybut [hidden] przed regułą display:inline-flex.
 */
.hava-team-card__chip[hidden] {
    display: none !important;
}

.hava-team-card__chips.is-expanded .hava-team-card__chip--extra {
    display: inline-flex;
}

.hava-team-card__chip,
.hava-team-card__more {
    display: inline-flex;
    max-width: 100%;
    min-height: 23px;
    align-items: center;
    padding: 4px 7px;
    border: 0;
    border-radius: 999px;
    color: var(--hava-navy);
    background: rgba(187, 203, 215, .31);
    font-family: inherit;
    font-size: 8.5px;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.hava-team-card__chip:hover,
.hava-team-card__more:hover {
    color: var(--hava-white);
    background: var(--hava-navy);
}

.hava-team-card__more {
    flex: 0 0 auto;
    font-weight: 600;
    cursor: pointer;
}

.hava-team-card__chips.is-expanded .hava-team-card__more {
    color: var(--hava-white);
    background: var(--hava-navy);
}

.hava-team-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.hava-team-card__book {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--hava-white);
    background: var(--hava-navy);
    font-size: 9px;
    text-decoration: none;
}

.hava-team-card__book:hover {
    color: var(--hava-navy);
    background: var(--hava-blue);
}

.hava-team-card__profile {
    color: var(--hava-navy);
    font-size: 9px;
    text-decoration: none;
}

/* Kontakt + Dlaczego HAVA na /zespol/ */
.hava-team-contact-why {
    padding: 0 0 74px;
    background: var(--hava-light);
}

.hava-team-contact-why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(33, 35, 74, .045);
}

.hava-team-contact-why__grid--contact-left .hava-team-contact-panel {
    order: 1;
}

.hava-team-contact-why__grid--contact-left .hava-team-why-panel {
    order: 2;
}

.hava-team-contact-why__grid--why-left .hava-team-why-panel {
    order: 1;
}

.hava-team-contact-why__grid--why-left .hava-team-contact-panel {
    order: 2;
}

.hava-team-contact-panel,
.hava-team-why-panel {
    min-width: 0;
    padding: clamp(28px, 4vw, 46px);
}

.hava-team-contact-panel {
    background: var(--hava-white);
}

.hava-team-why-panel {
    color: rgba(255, 255, 255, .84);
    background: var(--hava-navy);
}

.hava-team-contact-panel h2,
.hava-team-why-panel h2 {
    margin: 0;
    font-size: clamp(24px, 2.5vw, 29px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.hava-team-contact-panel h2 {
    color: var(--hava-navy);
}

.hava-team-why-panel h2 {
    color: var(--hava-white);
}

.hava-team-contact-panel__text,
.hava-team-why-panel__text {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.65;
}

.hava-team-contact-list {
    display: grid;
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid rgba(33, 35, 74, .10);
}

.hava-team-contact-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(33, 35, 74, .10);
    font-size: 11px;
    line-height: 1.45;
}

.hava-team-contact-item > span {
    color: rgba(64, 78, 102, .60);
}

.hava-team-contact-item a,
.hava-team-contact-item strong {
    color: var(--hava-navy);
    font-weight: 500;
    text-decoration: none;
}

.hava-directory-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--hava-white);
    background: var(--hava-navy);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.hava-directory-button--light {
    color: var(--hava-navy);
    background: var(--hava-white);
}

/* Profil pracownika */
.hava-team-profile-grid {
    display: grid;
    grid-template-columns: minmax(300px, .80fr) minmax(0, 1.20fr);
    align-items: center;
    gap: clamp(36px, 6vw, 70px);
}

.hava-team-profile-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: rgba(187, 203, 215, .30);
}

.hava-team-profile-photo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hava-team-profile-profession {
    margin: 9px 0 0;
    color: rgba(64, 78, 102, .72);
    font-size: 12px;
}

.hava-team-profile-lead {
    max-width: 600px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.65;
}

.hava-team-profile-content-section {
    padding: 58px 0;
    background: var(--hava-light);
}

.hava-team-profile-content {
    max-width: 800px;
    color: var(--hava-slate);
    font-size: 13px;
    line-height: 1.72;
}

.hava-team-profile-links-section {
    padding: 58px 0 68px;
    background: rgba(187, 203, 215, .20);
}

.hava-team-profile-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hava-team-profile-links-card {
    padding: 21px;
    border: 1px solid rgba(33, 35, 74, .07);
    border-radius: 13px;
    background: var(--hava-white);
}

.hava-team-profile-links-card h2 {
    margin: 0 0 13px;
    color: var(--hava-navy);
    font-size: 17px;
}

.hava-team-profile-link-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hava-team-profile-link-list a {
    color: var(--hava-navy);
    font-size: 11px;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .hava-problems-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hava-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hava-team-grid,
    .hava-problems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hava-team-contact-why__grid,
    .hava-team-profile-grid {
        grid-template-columns: 1fr;
    }

    .hava-team-profile-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .hava-directory-container {
        width: min(100% - 30px, 1160px);
    }

    .hava-directory-hero,
    .hava-team-profile-hero {
        padding: 20px 0 44px;
    }

    .hava-directory-breadcrumbs {
        margin-bottom: 26px;
        font-size: 10px;
    }

    .hava-problems-list-section,
    .hava-team-archive__grid-section,
    .hava-team-section {
        padding: 48px 0 56px;
    }

    .hava-team-grid,
    .hava-problems-grid {
        grid-template-columns: 1fr;
    }

    .hava-team-card__image-link,
    .hava-team-profile-photo {
        aspect-ratio: 4 / 3;
    }

    .hava-team-contact-why {
        padding-bottom: 56px;
    }
}

/* === Etap 18 — katalog dolegliwości === */
.hava-problems-search {
    position: relative;
    max-width: 560px;
    margin-top: 28px;
}

.hava-problems-search input {
    width: 100%;
    height: 54px;
    padding: 0 54px 0 18px;
    border: 1px solid rgba(33, 35, 74, .10);
    border-radius: 14px;
    color: var(--hava-navy);
    background: var(--hava-white);
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(33, 35, 74, .04);
}

.hava-problems-search input::placeholder {
    color: rgba(64, 78, 102, .60);
}

.hava-problems-search input:focus {
    outline: none;
    border-color: rgba(33, 35, 74, .22);
    box-shadow: 0 0 0 3px rgba(187, 203, 215, .38);
}

.hava-problems-search__icon {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--hava-navy);
    font-size: 20px;
    line-height: 1;
    transform: translateY(-50%);
    opacity: .72;
    pointer-events: none;
}

.hava-problems-block + .hava-problems-block {
    margin-top: 44px;
}

.hava-directory-heading--with-search-gap {
    margin-top: 2px;
}

.hava-problems-grid--featured {
    margin-bottom: 4px;
}

.hava-problem-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 14px;
    align-items: center;
    min-height: 116px;
    padding: 18px;
}

.hava-problem-card--featured {
    border-color: var(--hava-blue);
    color: var(--hava-white);
    background: var(--hava-blue);
}

.hava-problem-card--featured:hover {
    border-color: var(--hava-blue);
    background: var(--hava-blue);
}

.hava-problem-card--featured .hava-problem-card__name,
.hava-problem-card--featured .hava-problem-card__arrow,
.hava-problem-card--featured .hava-problem-icon {
    color: var(--hava-white);
}

.hava-problem-card--featured .hava-problem-card__meta {
    color: rgba(255, 255, 255, .82);
}

.hava-problem-card--featured .hava-problem-card__icon-wrap {
    background: rgba(255, 255, 255, .16);
}

.hava-problem-card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(187, 203, 215, .22);
}

.hava-problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--hava-navy);
}

.hava-problem-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.hava-problem-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.hava-problem-card__name {
    font-size: 18px;
    line-height: 1.2;
}

.hava-problem-card__meta {
    margin-top: 7px;
    font-size: 10px;
}

.hava-problem-card__arrow {
    position: static;
    justify-self: end;
    transform: none;
}

.hava-problems-empty {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.hava-problems-empty p {
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    color: var(--hava-slate);
    background: rgba(187, 203, 215, .20);
    font-size: 13px;
}

@media (max-width: 1120px) {
    .hava-problems-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hava-problems-search {
        max-width: 100%;
    }

    .hava-problems-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hava-problems-grid {
        grid-template-columns: 1fr;
    }

    .hava-problem-card {
        grid-template-columns: 40px minmax(0, 1fr) 16px;
        gap: 12px;
        min-height: auto;
        padding: 16px;
    }

    .hava-problem-card__icon-wrap {
        width: 40px;
        height: 40px;
    }

    .hava-problem-card__name {
        font-size: 16px;
    }
}


.hava-problems-index [hidden] {
    display: none !important;
}

/* === Etap 20 — karty dolegliwości bez ikon + czytelny hover === */
.hava-problem-card {
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 16px;
    padding: 18px 20px;
}

.hava-problem-card:hover,
.hava-problem-card:focus-visible,
.hava-problem-card--featured:hover,
.hava-problem-card--featured:focus-visible {
    border-color: var(--hava-navy);
    color: var(--hava-white) !important;
    background: var(--hava-navy) !important;
    box-shadow: 0 10px 24px rgba(33, 35, 74, .12);
    transform: translateY(-2px);
}

.hava-problem-card:hover .hava-problem-card__name,
.hava-problem-card:hover .hava-problem-card__meta,
.hava-problem-card:hover .hava-problem-card__arrow,
.hava-problem-card:focus-visible .hava-problem-card__name,
.hava-problem-card:focus-visible .hava-problem-card__meta,
.hava-problem-card:focus-visible .hava-problem-card__arrow {
    color: var(--hava-white) !important;
}

.hava-problem-card:hover .hava-problem-card__meta,
.hava-problem-card:focus-visible .hava-problem-card__meta {
    opacity: .82;
}

@media (max-width: 560px) {
    .hava-problem-card {
        grid-template-columns: minmax(0, 1fr) 16px;
        gap: 12px;
        padding: 16px 18px;
    }
}

/* === Etap 21 — przyciski Zespołu === */
.hava-team-card__profile {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--hava-navy) !important;
    background: transparent;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hava-team-card__profile:hover,
.hava-team-card__profile:focus-visible {
    border-color: rgba(33, 35, 74, .14);
    color: var(--hava-navy) !important;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 5px 14px rgba(33, 35, 74, .08);
}

.hava-directory-button {
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.hava-team-contact-panel .hava-directory-button:hover,
.hava-team-contact-panel .hava-directory-button:focus-visible {
    color: var(--hava-white) !important;
    background: #3B3E70;
    box-shadow: 0 6px 16px rgba(33, 35, 74, .14);
}

/* === Etap 21 — dolny baner CTA na /dolegliwosci/ === */
.hava-problems-cta-section {
    padding: 74px 0;
    background: var(--hava-light);
}

.hava-problems-cta {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    border-radius: 16px;
    background-color: var(--hava-navy);
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 30px rgba(33, 35, 74, .08);
}

.hava-problems-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(33, 35, 74, .94) 0%, rgba(33, 35, 74, .84) 46%, rgba(33, 35, 74, .54) 100%);
}

.hava-problems-cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 290px;
    max-width: 650px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 54px);
}

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

.hava-problems-cta__title {
    max-width: 590px;
    margin: 0;
    color: var(--hava-white);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.hava-problems-cta__description {
    max-width: 590px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    line-height: 1.65;
}

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

.hava-problems-cta__button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    color: var(--hava-navy) !important;
    background: var(--hava-white);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.hava-problems-cta__button:hover,
.hava-problems-cta__button:focus-visible {
    color: var(--hava-white) !important;
    background: #3B3E70;
    border-color: #3B3E70;
}

.hava-problems-cta__button--secondary {
    color: var(--hava-white) !important;
    background: transparent;
}

.hava-problems-cta__button--secondary:hover,
.hava-problems-cta__button--secondary:focus-visible {
    color: var(--hava-navy) !important;
    background: var(--hava-white);
    border-color: var(--hava-white);
}

@media (max-width: 640px) {
    .hava-problems-cta,
    .hava-problems-cta__content {
        min-height: 260px;
    }

    .hava-problems-cta::before {
        background: rgba(33, 35, 74, .84);
    }

    .hava-problems-cta__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hava-problems-cta__button {
        width: 100%;
    }
}

/* === Etap 23 — Hero strony Zespół === */
.hava-team-archive__hero {
    display: flex;
    align-items: center;
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.hava-team-archive__hero--align-center .hava-directory-hero__copy {
    margin-inline: auto;
    text-align: center;
}

.hava-team-archive__hero--align-center .hava-directory-hero__copy h1::after {
    margin-inline: auto;
}

.hava-team-archive__hero--align-center .hava-team-hero-actions {
    justify-content: center;
}

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

.hava-team-archive__hero--has-image .hava-directory-breadcrumbs,
.hava-team-archive__hero--navy .hava-directory-breadcrumbs,
.hava-team-archive__hero--has-image .hava-directory-hero__copy h1,
.hava-team-archive__hero--navy .hava-directory-hero__copy h1,
.hava-team-archive__hero--has-image .hava-directory-hero__text,
.hava-team-archive__hero--navy .hava-directory-hero__text {
    color: var(--hava-white);
}

.hava-team-archive__hero--has-image .hava-directory-eyebrow,
.hava-team-archive__hero--navy .hava-directory-eyebrow {
    color: var(--hava-navy);
    background: var(--hava-blue);
}

.hava-team-archive__hero--has-image .hava-directory-hero__copy h1::after,
.hava-team-archive__hero--navy .hava-directory-hero__copy h1::after {
    background: rgba(255,255,255,.55);
}

.hava-team-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hava-team-hero-actions .hava-directory-button {
    margin-top: 0;
}

.hava-directory-button--outline {
    color: var(--hava-navy) !important;
    border: 1px solid rgba(33,35,74,.38);
    background: transparent !important;
}

.hava-team-archive__hero--has-image .hava-directory-button--outline,
.hava-team-archive__hero--navy .hava-directory-button--outline {
    color: var(--hava-white) !important;
    border-color: rgba(255,255,255,.65);
}

/* Spójny hover głównych przycisków HAVA. */
.hava-team-card__book:hover,
.hava-team-card__book:focus-visible,
.hava-directory-button:not(.hava-directory-button--light):not(.hava-directory-button--outline):hover,
.hava-directory-button:not(.hava-directory-button--light):not(.hava-directory-button--outline):focus-visible {
    color: var(--hava-white) !important;
    background: #3B3E70 !important;
}

/* === Etap 23 — pełniejsza sekcja „Dlaczego HAVA” === */
.hava-team-why-panel {
    display: flex;
    flex-direction: column;
}

.hava-team-why-features {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.hava-team-why-feature {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.13);
}

.hava-team-why-feature:last-child {
    border-bottom: 1px solid rgba(255,255,255,.13);
}

.hava-team-why-feature__number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--hava-navy);
    background: var(--hava-blue);
    font-size: 9px;
    font-weight: 600;
}

.hava-team-why-feature h3 {
    margin: 0;
    color: var(--hava-white);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.hava-team-why-feature div > p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 10.5px;
    line-height: 1.55;
}

/* === Etap 23 — Dolegliwości w języku wizualnym sekcji usług z homepage === */
.hava-problems-index .hava-problems-list-section {
    background: rgba(187,203,215,.38);
}

.hava-problems-index .hava-problems-block--all {
    padding-top: 4px;
}

.hava-problems-home-style-heading {
    max-width: 860px;
    margin-bottom: 38px;
}

.hava-problems-home-style-heading h2 {
    font-size: clamp(32px, 3.7vw, 42px);
    line-height: 1.05;
}

.hava-problems-home-style-heading h2::after {
    display: none;
}

.hava-problems-home-style-heading .hava-directory-eyebrow {
    margin: 14px auto 0;
    padding: 5px 13px;
    font-size: 9px;
}

.hava-problems-home-style-heading .hava-directory-heading__description {
    margin-top: 14px;
    font-size: 13px;
}

.hava-problems-index .hava-problem-card:not(.hava-problem-card--featured) {
    min-height: 122px;
    padding: 22px 24px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(33,35,74,.035);
}

@media (max-width: 700px) {
    .hava-problems-home-style-heading h2 {
        font-size: 31px;
    }
}


/* === Etap 24 — równe odstępy wokół CTA dolegliwości === */
@media (max-width: 640px) {
    .hava-problems-cta-section {
        padding: 48px 0;
    }
}


/* === Etap 29 — wspólna skala wizualna: Zespół + Dolegliwości === */

/* Hero obu podstron ma tę samą bazową wysokość co Hero strony Usługi. */
.hava-problems-index .hava-directory-hero,
.hava-team-archive .hava-team-archive__hero {
    display: flex;
    min-height: 360px;
    align-items: center;
}

/* H1 pozostaje w tej samej skali co strona Usługi / homepage. */
.hava-problems-index .hava-directory-hero__copy h1,
.hava-team-archive .hava-directory-hero__copy h1 {
    font-size: clamp(36px, 3.8vw, 42px);
    line-height: 1.06;
}

/* Teksty prowadzące są większe niż w poprzednich etapach. */
.hava-problems-index .hava-directory-hero__copy > p:last-child,
.hava-problems-index .hava-directory-hero__text,
.hava-team-archive .hava-directory-hero__text {
    font-size: 14px;
    line-height: 1.62;
}

/* Główne H2 podstron w skali sekcji strony głównej. */
.hava-team-archive .hava-directory-heading h2 {
    font-size: clamp(31px, 3vw, 36px);
    line-height: 1.08;
}

.hava-team-archive .hava-directory-heading__description,
.hava-problems-index .hava-directory-heading__description,
.hava-problems-home-style-heading .hava-directory-heading__description {
    font-size: 14px;
    line-height: 1.6;
}

/* Karty dolegliwości są czytelniejsze i bliższe skalą kartom homepage. */
.hava-problems-index .hava-problem-card__name {
    font-size: 16px;
    line-height: 1.22;
}

.hava-problems-index .hava-problem-card__meta {
    font-size: 10px;
}

/* Karty zespołu: lekko większy tekst, bez zmiany konstrukcji karty. */
.hava-team-archive .hava-team-card__bio {
    font-size: 12px;
    line-height: 1.52;
}

.hava-team-archive .hava-team-card__book,
.hava-team-archive .hava-team-card__profile {
    font-size: 10px;
}

/* Przyciski Hero / Kontakt w tej samej wysokości co na stronie Usługi. */
.hava-directory-button,
.hava-problems-cta__button {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 10px;
}

/* Dolny CTA Dolegliwości i panel Kontakt/Dlaczego HAVA dostają
 * skalę nagłówków bliższą homepage. */
.hava-problems-cta__title {
    font-size: clamp(29px, 3vw, 34px);
}

.hava-problems-cta__description {
    font-size: 14px;
}

.hava-team-contact-panel h2,
.hava-team-why-panel h2 {
    font-size: clamp(27px, 2.8vw, 32px);
}

.hava-team-contact-panel__text,
.hava-team-why-panel__text {
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 580px) {
    .hava-problems-index .hava-directory-hero,
    .hava-team-archive .hava-team-archive__hero {
        min-height: 300px !important;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hava-problems-index .hava-directory-hero__copy h1,
    .hava-team-archive .hava-directory-hero__copy h1 {
        font-size: 36px;
    }

    .hava-team-archive .hava-directory-heading h2,
    .hava-problems-home-style-heading h2 {
        font-size: 31px;
    }
}

/* === Etap 30 — typografia Zespół + Dolegliwości jak na stronie głównej === */
.hava-problems-index,
.hava-team-archive,
.hava-problems-index p,
.hava-team-archive p,
.hava-problems-index .hava-directory-heading__description,
.hava-team-archive .hava-directory-heading__description,
.hava-problems-index .hava-directory-hero__copy > p:last-child,
.hava-team-archive .hava-directory-hero__text,
.hava-team-contact-panel__text,
.hava-team-why-panel__text,
.hava-problems-cta__description {
    font-size: 16px;
}

.hava-problems-index .hava-directory-hero__copy h1,
.hava-team-archive .hava-directory-hero__copy h1 {
    font-size: 55px;
    line-height: 1.05;
}

/* Karty Zespołu */
.hava-team-card__name {
    font-size: 20px;
}

.hava-team-card__profession {
    font-size: 16px;
    line-height: 1.45;
}

.hava-team-card__bio {
    font-size: 16px;
    line-height: 1.5;
}

.hava-team-card__meta-label {
    font-size: 11px;
}

.hava-team-card__chip,
.hava-team-card__more {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 14px;
}

.hava-team-card__book,
.hava-team-card__profile,
.hava-directory-button,
.hava-problems-cta__button {
    font-size: 15px;
}

.hava-team-card__book,
.hava-directory-button,
.hava-problems-cta__button {
    min-height: 44px;
    padding: 11px 18px;
}

/* Dolegliwości */
.hava-problem-card__name,
.hava-problems-index .hava-problem-card__name {
    font-size: 18px;
}

.hava-problem-card__meta,
.hava-problems-index .hava-problem-card__meta {
    font-size: 14px;
}

@media (max-width: 580px) {
    .hava-problems-index .hava-directory-hero__copy h1,
    .hava-team-archive .hava-directory-hero__copy h1 {
        font-size: 42px;
    }

    .hava-problems-index,
    .hava-team-archive,
    .hava-problems-index p,
    .hava-team-archive p,
    .hava-team-card__profession,
    .hava-team-card__bio,
    .hava-team-contact-panel__text,
    .hava-team-why-panel__text,
    .hava-problems-cta__description {
        font-size: 16px;
    }

    .hava-team-card__name {
        font-size: 20px;
    }

    .hava-team-card__chip,
    .hava-team-card__more {
        font-size: 14px;
    }

    .hava-team-card__book,
    .hava-team-card__profile,
    .hava-directory-button,
    .hava-problems-cta__button {
        font-size: 15px;
    }
}


/* === Etap 31 — przyciski na kartach pracowników ===
 * Wcześniejsze, bardziej szczegółowe selektory nadpisywały wartość 15 px.
 * Tutaj wymuszamy docelową wielkość obu przycisków.
 */
.hava-team-card .hava-team-card__book,
.hava-team-card .hava-team-card__profile,
.hava-team-archive .hava-team-card .hava-team-card__book,
.hava-team-archive .hava-team-card .hava-team-card__profile,
.hava-team-section .hava-team-card .hava-team-card__book,
.hava-team-section .hava-team-card .hava-team-card__profile {
    font-size: 15px !important;
    line-height: 1.2;
}

.hava-team-card .hava-team-card__book,
.hava-team-archive .hava-team-card .hava-team-card__book,
.hava-team-section .hava-team-card .hava-team-card__book {
    min-height: 44px;
    padding: 11px 18px;
}

.hava-team-card .hava-team-card__profile,
.hava-team-archive .hava-team-card .hava-team-card__profile,
.hava-team-section .hava-team-card .hava-team-card__profile {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 9px 10px;
}
