/* HAVA — pojedyncza usługa, styl zgodny ze stroną główną */

.hava-single-service {
    --hava-navy: #21234A;
    --hava-light: #EEEEF6;
    --hava-blue: #BBCBD7;
    --hava-white: #FFFFFF;
    --hava-cream: #FFFFFF;
    --hava-copper: #BBCBD7;
    --hava-slate: #404E66;
    color: var(--hava-slate);
    background: var(--hava-light);
}

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

.hava-single-service h1,
.hava-single-service h2,
.hava-single-service h3 {
    color: var(--hava-navy);
}

.hava-single-service__hero {
    padding: 26px 0 64px;
    background:
        linear-gradient(90deg, rgba(187, 203, 215, .28), rgba(238, 238, 246, 0) 58%),
        var(--hava-light);
}

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

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

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

.hava-service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: clamp(42px, 6vw, 78px);
    align-items: center;
}

.hava-service-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.hava-service-main-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .52);
    border: 1px solid rgba(33, 35, 74, .08);
}

.hava-service-main-icon__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.hava-service-hero-content h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(32px, 3.8vw, 42px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.03;
}

.hava-service-hero-content h1::after,
.hava-service-copy h2::after,
.hava-service-section-header h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin-top: 14px;
    background: var(--hava-blue);
}

.hava-service-lead {
    max-width: 620px;
    margin-top: 17px;
    color: var(--hava-slate);
    font-size: 13px;
    line-height: 1.65;
}

.hava-service-lead > :first-child,
.hava-service-richtext > :first-child { margin-top: 0; }
.hava-service-lead > :last-child,
.hava-service-richtext > :last-child { margin-bottom: 0; }

.hava-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hava-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .045em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.hava-button:hover { transform: translateY(-1px); }
.hava-button--primary { color: #fff; background: var(--hava-navy); }
.hava-button--primary:hover { color: var(--hava-navy); background: var(--hava-blue); }
.hava-button--secondary { color: var(--hava-navy); border-color: rgba(33,35,74,.28); background: rgba(255,255,255,.35); }
.hava-button--secondary:hover { color: var(--hava-navy); background: #fff; border-color: rgba(33,35,74,.45); }

.hava-service-hero-media,
.hava-service-about-media {
    overflow: hidden;
    border-radius: 14px;
}

.hava-service-hero-media {
    aspect-ratio: 1 / .78;
    box-shadow: 0 16px 36px rgba(33,35,74,.09);
}

.hava-service-hero-image,
.hava-service-about-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hava-service-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 320px;
    place-items: center;
    padding: 30px;
    color: var(--hava-slate);
    background: rgba(255,255,255,.55);
    text-align: center;
}

.hava-service-facts {
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.hava-service-facts__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(33,35,74,.09);
    border-radius: 13px;
    background: var(--hava-white);
    box-shadow: 0 10px 28px rgba(33,35,74,.06);
}

.hava-service-fact {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 17px 16px;
}

.hava-service-fact--wide { grid-column: span 2; }
.hava-service-fact + .hava-service-fact { border-left: 1px solid rgba(33,35,74,.08); }

.hava-service-fact__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(187,203,215,.42);
}

.hava-service-fact__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--hava-navy);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hava-service-fact__label {
    display: block;
    margin-bottom: 3px;
    color: rgba(64,78,102,.67);
    font-size: 10px;
}

.hava-service-fact strong,
.hava-service-fact__location-link {
    display: block;
    color: var(--hava-navy);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

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

.hava-service-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
    align-items: center;
    gap: clamp(42px, 7vw, 82px);
}

.hava-service-copy h2,
.hava-service-section-header h2,
.hava-service-final-cta h2 {
    margin: 0;
    font-size: clamp(25px, 2.8vw, 30px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.hava-service-richtext {
    margin-top: 17px;
    font-size: 13px;
    line-height: 1.68;
}

.hava-service-about-media,
.hava-service-about-image { min-height: 360px; }

.hava-service-problems-section {
    padding: 0 0 64px;
    background: var(--hava-light);
}

.hava-service-problems-section--after-about { margin-top: -18px; }

.hava-service-problems-strip {
    padding: 22px 24px;
    border: 1px solid rgba(33,35,74,.08);
    border-radius: 13px;
    background: var(--hava-white);
}

.hava-service-problems-strip__heading { margin-bottom: 18px; }
.hava-service-problems-strip__heading h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 2.4vw, 27px);
    font-weight: 600;
    letter-spacing: -.02em;
}

.hava-service-problem-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hava-service-problem-list a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(33,35,74,.14);
    border-radius: 999px;
    color: var(--hava-navy);
    background: rgba(187,203,215,.28);
    font-size: 11px;
    text-decoration: none;
    transition: .18s ease;
}

.hava-service-problem-list a:hover {
    color: #fff;
    border-color: var(--hava-navy);
    background: var(--hava-navy);
}

.hava-service-when {
    color: #fff;
    background: var(--hava-navy);
}

.hava-service-section-header {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.hava-service-section-header .hava-service-eyebrow { margin-bottom: 10px; }
.hava-service-section-header h2::after { margin-inline: auto; }

.hava-service-when h2,
.hava-service-when .hava-service-text-item p { color: #fff; }

.hava-service-when .hava-service-eyebrow,
.hava-service-final-cta .hava-service-eyebrow {
    color: var(--hava-navy);
    background: var(--hava-blue);
}
.hava-service-when .hava-service-text-item h3 { color: var(--hava-blue); }

.hava-service-text-grid,
.hava-service-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hava-service-text-item,
.hava-service-step {
    min-width: 0;
    padding: 0 22px;
}

.hava-service-text-item + .hava-service-text-item { border-left: 1px solid rgba(255,255,255,.16); }
.hava-service-step + .hava-service-step { border-left: 1px solid rgba(33,35,74,.10); }

.hava-service-text-item h3,
.hava-service-step h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.hava-service-text-item p,
.hava-service-step p,
.hava-service-text-item div,
.hava-service-step div {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
}

.hava-service-step__number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: var(--hava-navy);
    background: var(--hava-blue);
    font-size: 11px;
    font-weight: 700;
}

.hava-related-services { background: var(--hava-light); }
.hava-related-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hava-related-service-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(33,35,74,.08);
    border-radius: 13px;
    background: var(--hava-white);
}

.hava-related-service-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.2;
}
.hava-related-service-card h3 a { color: inherit; text-decoration: none; }
.hava-related-service-card__description { margin-bottom: 18px; font-size: 12px; line-height: 1.65; }
.hava-related-service-card__description > :first-child { margin-top: 0; }
.hava-related-service-card__description > :last-child { margin-bottom: 0; }
.hava-related-service-card__link { margin-top: auto; color: var(--hava-navy); font-size: 11px; font-weight: 600; text-decoration: none; }

.hava-service-final-cta {
    padding: 58px 0;
    color: #fff;
    background: var(--hava-navy);
}

.hava-service-final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.hava-service-final-cta__inner > div:first-child { max-width: 620px; }
.hava-service-final-cta h2 { margin-top: 8px; color: #fff; }
.hava-service-final-cta p:last-child { margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: 13px; }
.hava-service-final-cta .hava-service-actions { flex: 0 0 auto; margin-top: 0; }
.hava-service-final-cta .hava-button--primary { color: var(--hava-navy); background: #fff; }
.hava-service-final-cta .hava-button--secondary { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }

.hava-service-faq-section { background: var(--hava-light); }
.hava-service-faq--standalone { max-width: 820px; margin-inline: auto; }
.hava-service-faq-list { border-top: 1px solid rgba(33,35,74,.14); }
.hava-service-faq-item { border-bottom: 1px solid rgba(33,35,74,.14); }
.hava-service-faq-item summary {
    position: relative;
    padding: 18px 38px 18px 0;
    color: var(--hava-navy);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.hava-service-faq-item summary::-webkit-details-marker { display: none; }
.hava-service-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 3px;
    top: 50%;
    color: var(--hava-copper);
    font-size: 19px;
    transform: translateY(-50%);
}
.hava-service-faq-item[open] summary::after { content: "−"; }
.hava-service-faq-answer { padding: 0 24px 16px 0; font-size: 12px; line-height: 1.7; }

@media (max-width: 980px) {
    .hava-service-hero-grid,
    .hava-service-about-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .hava-service-facts__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hava-service-fact--wide { grid-column: span 2; }
    .hava-service-fact + .hava-service-fact { border-left: 0; }
    .hava-service-text-grid,
    .hava-service-steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px 0; }
    .hava-service-text-item:nth-child(3),
    .hava-service-step:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
    .hava-service-container { width: min(100% - 30px, 1160px); }
    .hava-single-service__hero { padding: 20px 0 48px; }
    .hava-service-breadcrumbs { margin-bottom: 28px; font-size: 11px; }
    .hava-service-hero-grid,
    .hava-service-about-grid { grid-template-columns: 1fr; }
    .hava-service-hero-media { aspect-ratio: 4 / 3; }
    .hava-service-facts { margin-top: 16px; }
    .hava-service-facts__grid { grid-template-columns: 1fr; }
    .hava-service-fact--wide { grid-column: auto; }
    .hava-service-fact + .hava-service-fact { border-top: 1px solid rgba(33,35,74,.08); }
    .hava-service-section { padding: 54px 0; }
    .hava-service-about-media,
    .hava-service-about-image { min-height: 280px; }
    .hava-service-problems-section { padding-bottom: 48px; }
    .hava-service-problems-section--after-about { margin-top: 0; }
    .hava-service-text-grid,
    .hava-service-steps { grid-template-columns: 1fr; gap: 0; }
    .hava-service-text-item,
    .hava-service-step { padding: 20px 0; }
    .hava-service-text-item + .hava-service-text-item,
    .hava-service-step + .hava-service-step { border-left: 0; border-top: 1px solid rgba(33,35,74,.10); }
    .hava-service-when .hava-service-text-item + .hava-service-text-item { border-top-color: rgba(255,255,255,.16); }
    .hava-related-services__grid { grid-template-columns: 1fr; }
    .hava-service-final-cta__inner { align-items: flex-start; flex-direction: column; }
    .hava-service-final-cta .hava-service-actions { width: 100%; }
}

/* === Etap 21 — powiązane usługi: stały kolor linku === */
.hava-related-service-card__link,
.hava-related-service-card__link:visited,
.hava-related-service-card__link:hover,
.hava-related-service-card__link:focus-visible,
.hava-related-service-card:hover .hava-related-service-card__link {
    color: var(--hava-navy) !important;
}

/* === Etap 23 — główne przyciski „Umów wizytę” === */
.hava-single-service .hava-button--primary,
.hava-single-service .hava-button--primary:link,
.hava-single-service .hava-button--primary:visited {
    color: #fff !important;
    background: var(--hava-navy);
}

.hava-single-service .hava-button--primary:hover,
.hava-single-service .hava-button--primary:focus-visible,
.hava-single-service .hava-button--primary:active {
    color: #fff !important;
    background: #3B3E70 !important;
    border-color: #3B3E70 !important;
}

/* W granatowym końcowym CTA przycisk pozostaje jasny, ale reaguje na hover. */
.hava-service-final-cta .hava-button--primary,
.hava-service-final-cta .hava-button--primary:link,
.hava-service-final-cta .hava-button--primary:visited {
    color: var(--hava-navy) !important;
    background: #fff !important;
}

.hava-service-final-cta .hava-button--primary:hover,
.hava-service-final-cta .hava-button--primary:focus-visible {
    color: var(--hava-navy) !important;
    background: var(--hava-blue) !important;
    border-color: var(--hava-blue) !important;
}


/* === Etap 37 — mobilne zwijanie długiej listy dolegliwości w usłudze === */
.hava-service-problems-more {
    display: none;
}

@media (max-width: 760px) {
    .hava-service-problem-item--mobile-extra {
        display: none !important;
    }

    .hava-service-problems-strip.is-expanded .hava-service-problem-item--mobile-extra {
        display: inline-flex !important;
    }

    .hava-service-problems-more {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
        padding: 9px 17px;
        border: 1px dashed rgba(33, 35, 74, .72);
        border-radius: 999px;
        color: var(--hava-navy);
        background: transparent;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        transition: color .18s ease, border-color .18s ease, background .18s ease;
    }

    .hava-service-problems-more:hover,
    .hava-service-problems-more:focus-visible {
        border-color: var(--hava-navy);
        outline: none;
        color: #fff;
        background: var(--hava-navy);
    }
}
