/* ─────────────────────────────────────────────── */
/* PODSTAWY GLOBALNE */
/* ─────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0F1C1A;
    background-color: #ffffff;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1120px;
    padding: 0 16px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────── */
/* HEADER */
/* ─────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #eef0f2;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background-color: #14B86E;
    color: #ffffff;
    font-size: 16px;
}

.logo-text {
    color: #0F1C1A;
    font-size: 1.6rem; /* było np. 1.05rem */
    font-weight: 700;
    letter-spacing: 0.12em;
}

.main-nav {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #14B86E;
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ─────────────────────────────────────────────── */
/* HERO */
/* ─────────────────────────────────────────────── */

.hero {
    padding: 56px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faf9 60%, #f0f7f3 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.hero-desc {
    margin: 0 0 16px;
    max-width: 420px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.hero-bullets li::before {
    content: "✔";
    margin-right: 8px;
    color: #14B86E;
}

/* ─────────────────────────────────────────────── */
/* HERO WIDGET */
/* ─────────────────────────────────────────────── */

.hero-widget {
    display: flex;
    justify-content: flex-end;
}

.widget-card {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    padding: 20px 22px;
    background-color: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.widget-card h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.widget-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.widget-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.widget-range-row input[type="range"] {
    flex: 1;
}

.widget-value {
    font-weight: 600;
    min-width: 86px;
    text-align: right;
}

.widget-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #6d747a;
}

/* ─────────────────────────────────────────────── */
/* BUTTONS */
/* ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background-color: #14B86E;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 184, 110, 0.35);
}

.btn-primary:hover {
    background-color: #0F8E53;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #14B86E;
    border: 1px solid #14B86E;
}

.btn-secondary:hover {
    background-color: #14B86E;
    color: #ffffff;
}

/* ─────────────────────────────────────────────── */
/* SEKCJE */
/* ─────────────────────────────────────────────── */

.section {
    padding: 52px 0;
}

.section-light {
    background-color: #f6f7f9;
}

.section-accent {
    background: linear-gradient(135deg, #062A22, #064235);
    color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 0 0 28px;
}

.section-title-light {
    color: #ffffff;
}

.section-subtitle-light {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 24px;
}
section[id]{
    scroll-margin-top: 64px;
}


/* ─────────────────────────────────────────────── */
/* BENEFITY */
/* ─────────────────────────────────────────────── */

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

.benefit-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* ─────────────────────────────────────────────── */
/* JAK TO DZIAŁA */
/* ─────────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-item {
    border-radius: 16px;
    border: 1px solid #e3e5e8;
    padding: 18px 16px 20px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background-color: #14B86E;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.steps-cta {
    margin-top: 24px;
    text-align: center;
}

/* ─────────────────────────────────────────────── */
/* OPINIE */
/* ─────────────────────────────────────────────── */

.opinions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.opinion-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.opinion-text {
    margin: 0 0 10px;
    font-style: italic;
}

.opinion-author {
    margin: 0;
    font-size: 0.9rem;
    color: #555b61;
}

/* ─────────────────────────────────────────────── */
/* BEZPIECZEŃSTWO */
/* ─────────────────────────────────────────────── */

.security {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid #14B86E;
    color: #14B86E;
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────── */
/* FORMULARZ KONTAKTOWY */
/* ─────────────────────────────────────────────── */

.contact-form {
    max-width: 760px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.06);
    padding: 22px 20px 24px;
    border-radius: 18px;
    backdrop-filter: blur(6px);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    flex: 1 1 0;
    min-width: 220px;
}

.form-field-full {
    flex-basis: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cfd3da;
    font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #14B86E;
    box-shadow: 0 0 0 1px rgba(20, 184, 110, 0.2);
}

.form-row-consents {
    flex-direction: column;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
}

.checkbox-label input {
    margin-top: 3px;
}

.form-row-submit {
    justify-content: flex-end;
}

/* ─────────────────────────────────────────────── */
/* STOPKA — WERSJA FINALNA FINIVO */
/* ─────────────────────────────────────────────── */

.site-footer {
    background-color: #061413;
    color: #ffffff;
    padding: 6px 0; /* zmniejszony odstęp góra/dół (było 20px) */
    font-size: 0.85rem;
}

/* cała stopka: lewo ↔ prawo */
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* LEWA STRONA STOPKI:
   [↗ FINIVO] + © 2025 FINIVO */
.footer-left {
    display: flex;
    align-items: center;
    gap: 2px; /* ODSTĘP między logo a © */
}

/* LOGO STOPKI (link) */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 2px; /* ODSTĘP między strzałką a FINIVO */
    text-decoration: none;
}

/* ZIELONA STRZAŁKA */
.footer-logo .logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background-color: #14B86E;
    color: #ffffff;
    font-size: 15px;
}

/* TEKST FINIVO obok strzałki */
.footer-logo .logo-text {
    color: #0F1C1A;
    font-weight: 700;
}

/* © 2025 FINIVO — zero marginesów */
.footer-copy {
    margin: 0;
}

/* PRAWA STRONA STOPKI — linki */
.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a {
    color: #d0d5da;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}


/* ─────────────────────────────────────────────── */
/* RESPONSYWNOŚĆ */
/* ─────────────────────────────────────────────── */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-widget {
        justify-content: flex-start;
    }

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

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

    .security {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 32px;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .benefits-grid,
    .steps-grid,
    .opinions-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 18px 14px 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─────────────────────────────────────────────── */
/* FINIVO CHAT – WARIANT B PREMIUM */
/* ─────────────────────────────────────────────── */

/* Launcher */
#finivo-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #00a86b;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
}

#finivo-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.26);
}

/* Okno czatu */
#finivo-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    max-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: finivoFadeIn .25s ease;
    z-index: 10000;
}

.finivo-chat-hidden {
    display: none;
}

/* Nagłówek */
.finivo-chat-header {
    background: #008f5b;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finivo-chat-title {
    font-size: 15px;
    font-weight: 700;
}

.finivo-chat-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

/* Obszar wiadomości */
.finivo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    background: #f4f4f4;
}

/* Wiadomości */
.finivo-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.finivo-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cccccc;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.finivo-chat-message-agent .finivo-chat-avatar {
    background-image: url('https://i.imgur.com/5ZQ1ZqD.png');
}

.finivo-chat-message-user .finivo-chat-avatar {
    background-image: url('https://i.imgur.com/dvWJQqb.png');
}

.finivo-chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    animation: finivoBubble .2s ease;
}

.finivo-chat-message-agent .finivo-chat-bubble {
    background: #ffffff;
    border: 1px solid #e6e6e6;
}

.finivo-chat-message-user {
    justify-content: flex-end;
}

.finivo-chat-message-user .finivo-chat-bubble {
    background: #00a86b;
    color: white;
}

/* Formularz */
.finivo-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
}

#finivo-chat-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cccccc;
    font-size: 14px;
}

.finivo-chat-form button {
    background: #00a86b;
    border: none;
    padding: 0 16px;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.finivo-chat-form button:hover {
    background: #008f5b;
}

/* Typing indicator */
#finivo-typing-indicator {
    display: none;
    padding: 6px 12px 10px;
    font-size: 13px;
    color: #555;
    font-style: italic;
}

/* Animacje */
@keyframes finivoFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes finivoBubble {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Mobile */
@media (max-width: 600px) {
    #finivo-chat-widget {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: 70vh;
    }

    #finivo-chat-launcher {
        bottom: 16px;
        right: 12px;
    }
}

/* ───────────────────────────────────────── */
/* FIX: CLICK THROUGH FOR FINIVO CHAT WIDGET */
/* ───────────────────────────────────────── */

body {
    overflow: visible !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* Chat widget ponad wszystkim */
#finivo-chat-widget {
    position: fixed !important;
    z-index: 999999999 !important;
    pointer-events: auto !important;
}

/* Krzyżyk zawsze klikalny */
.finivo-chat-close {
    pointer-events: auto !important;
    z-index: 1000000000 !important;
    position: relative !important;
}

/* Launcher też wysoko */
#finivo-chat-launcher {
    z-index: 999999998 !important;
    pointer-events: auto !important;
}

/* Naprawa overflow/flex */
.hero,
.hero-inner,
.widget-card,
.section,
.container,
main,
header,
footer {
    overflow: visible !important;
}

/* Zapewnia, że nic nie blokuje kliknięć */
body > *:not(#finivo-chat-widget):not(#finivo-chat-launcher) {
    pointer-events: auto !important;
}
/* FIX: krzyżyk nie łapie kliknięć, bo header je przechwytuje */

/* nagłówek ma przepuszczać kliknięcia */
.finivo-chat-header {
    pointer-events: none !important;
}

/* krzyżyk ma łapać kliknięcia zawsze */
.finivo-chat-close {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999999999 !important;
}
/* FIX: Krzyżyk chatu jest zasłaniany – przepuszczamy klik */
.finivo-chat-header {
    pointer-events: none;
}

.finivo-chat-close {
    pointer-events: auto !important;
    z-index: 999999 !important;
}
/* ————————————————————————————————
   FIX: Krzyżyk chatu był zasłaniany przez header
   ———————————————————————————————— */
.finivo-chat-header {
    pointer-events: none !important;
}

.finivo-chat-close {
    pointer-events: auto !important;
    position: relative;
    z-index: 999999 !important;
}

/* Komunikaty formularza – centrowanie i styl */
.form-message {
    margin-top: 20px;
    text-align: center; /* WYŚRODKOWANIE */
    font-size: 16px;
    font-weight: 500;
    color: #ffffff; /* neutralny, jasny tekst */
}

.form-success {
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    color: #d4ffd4;        /* pastelowy zielony */
    border: 1px solid #39ff86;
}

.form-error {
    background: rgba(255, 0, 0, 0.12);
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    color: #ffb3b3;
    border: 1px solid #ff4a4a;
}

/* ----------------------------- */
/* ANIMACJA KOMUNIKATU (FADE-IN) */
/* ----------------------------- */

#form-msg {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* po aktywacji */
#form-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* fade-out przed zniknięciem */
#form-msg.hide {
    opacity: 0;
    transform: translateY(10px);
}

/* wersja mobilna – lepsze odstępy i centrowanie komunikatu */
@media (max-width: 768px) {
    #form-msg {
        font-size: 15px;
        padding: 14px 18px;
        margin-top: 18px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-field input {
        font-size: 16px;
        padding: 12px;
    }

    .form-row-submit {
        justify-content: center;
    }
}

/* ------------------------------------------ */
/* ANIMOWANY CHECKMARK — KOMUNIKAT SUKCESU   */
/* ------------------------------------------ */

.form-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-check {
    width: 32px;
    height: 32px;
    stroke: #14B86E;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animowane rysowanie okręgu i "ptaszka" */
.success-check-circle,
.success-check-mark {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: drawStroke 0.6s ease-out forwards;
}

.success-check-mark {
    animation-delay: 0.25s;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Tekst obok ikonki */
.form-success-text {
    font-weight: 500;
}

/* ─────────────────────────────────────────────── */
/* FINIVO KALKULATOR  */
/* ─────────────────────────────────────────────── */

#finivo-calculator {
    padding: 28px 26px !important;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* TYTUŁ */
#finivo-calculator h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1f1f;
}

/* ------------------------------------------- */
/* KWOTA GŁÓWNA (minus, wartość, plus) */
/* ------------------------------------------- */

.calc-amount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8f9;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.calc-amount-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #dfe4ea;
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    color: #333;
}

.calc-amount-btn:hover {
    background: #f2f2f2;
    border-color: #cdd3d8;
}

.calc-amount-display {
    font-size: 1.45rem;
    font-weight: 700;
    min-width: 150px;
    text-align: center;
    color: #1f1f1f;
}

/* ------------------------------------------- */
/* SLIDER */
/* ------------------------------------------- */

.widget-range-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 4px;
}

.calc-min,
.calc-max {
    font-size: 0.85rem;
    color: #b7bdc8;
}

#amountRange {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #dddddd;
    border-radius: 4px;
    outline: none;
}

/* suwak – tor */
#amountRange::-webkit-slider-runnable-track {
    height: 6px;
    background: #17bf6e;
    border-radius: 6px;
}

#amountRange::-moz-range-track {
    height: 6px;
    background: #17bf6e;
    border-radius: 6px;
}

/* suwak – gałka */
#amountRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #17bf6e;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    cursor: pointer;
    margin-top: -8px;
}

#amountRange::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #17bf6e;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    cursor: pointer;
}

/* ------------------------------------------- */
/* PODSUMOWANIE KOSZTÓW */
/* ------------------------------------------- */

.calc-summary {
    margin-top: 18px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.95rem;
    color: #3a3f47;
}

.calc-row-total {
    font-weight: 700;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ------------------------------------------- */
/* CTA – przycisk ZŁÓŻ WNIOSEK */
/* ------------------------------------------- */

#finivo-calculator .btn-primary {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* ------------------------------------------- */
/* INFORMACJE / LINKI */
/* ------------------------------------------- */

.widget-note {
    margin-top: 12px;
    font-size: 0.78rem !important;
    text-align: center;
    color: #8a9098 !important;
}

.calc-links {
    margin-top: 12px;
    text-align: center;
    font-size: 0.82rem;
}

.calc-links a {
    color: #7c828f;
    text-decoration: underline;
    display: block;
    margin-top: 4px;
}

.calc-links a:hover {
    color: #000;
}

/* ------------------------------------------- */
/* RESPONSYWNOŚĆ */
/* ------------------------------------------- */

@media (max-width: 480px) {
    .calc-amount-box {
        padding: 12px 14px;
    }

    .calc-amount-display {
        font-size: 1.3rem;
    }

    .calc-amount-btn {
        width: 36px;
        height: 36px;
    }

    #finivo-calculator {
        padding: 22px 20px !important;
    }

    .widget-range-row {
        gap: 10px;
    }

    .calc-links {
        font-size: 0.75rem;
    }
}

/* ============================= */
/*   FAQ – Akordeon   */
/* ============================= */

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e6e8ec;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item.open {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 16px 18px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: #0F1C1A;
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    font-size: 22px;
    color: #14B86E;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* KLUCZOWA POPRAWKA — ZAMKNIĘTE FAQ STARTUJE Z max-height: 0 */
.faq-answer {
    max-height: 0 !important;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.25s ease, padding 0.2s ease;
}

/* OTWARTE FAQ */
.faq-item.open .faq-answer {
    max-height: 500px !important;  /* działa na mobile */
    padding: 12px 18px 18px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #37414a;
}

/* =============================== */
/* FIX: iOS Safari chat input bug  */
/* =============================== */

@supports (-webkit-touch-callout: none) {

    /* wymusza stałą wysokość inputa */
    #finivo-chat-input {
        font-size: 16px !important; /* iOS nie powiększy pola */
        min-height: 44px !important;
        max-height: 44px !important;
        line-height: 44px !important;
        box-sizing: border-box;
    }

    /* naprawa kontenera formularza */
    .finivo-chat-form {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        align-items: center !important;
    }

    /* naprawa przycisku */
    .finivo-chat-form button {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        display: flex;
        align-items: center;
    }

    /* blokujemy rozpychanie całego widgetu */
    #finivo-chat-widget {
        max-height: 70vh !important;
        overscroll-behavior: contain;
    }
}

.hp-field{
  position:absolute;
  left:-9999px;
  opacity:0;
  height:0;
  width:0;
  pointer-events:none;
}

