/* ─────────────────────────────────────────────── */
/* 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: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #14B86E;
    color: #ffffff;
    font-size: 26px;
}

.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%;
}

 /* NAV – poprawne osadzenie przycisku */
.main-nav{
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Przycisk w nawigacji */
.main-nav .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    background: #0a8f3c;
    color: #fff !important;
    text-decoration: none !important;

    margin-left: auto; /* zamiast 10px — odsuwa od linków i dociąga w prawo */

    box-shadow: 0 10px 22px rgba(10,143,60,.18);
    white-space: nowrap;
}

.main-nav .btn:hover{
    opacity: .92;
}

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

.hero{
    position: relative;
    overflow: hidden;
    padding: 56px 0 40px;

    /* tło obrazkiem (desktop/tablet) */
    background-image: url("/tlo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    /* fallback */
    background-color: #f7faf9;
}

/* Zamiast wybielania: delikatne wzmocnienie zieleni / kontrastu tła */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 420px at 42% 52%,
      rgba(255,255,255,0.35) 0%,
      rgba(255,255,255,0.00) 65%
    ),
    radial-gradient(900px 520px at 18% 58%,
      rgba(20,184,110,0.18) 0%,
      rgba(20,184,110,0.10) 40%,
      rgba(20,184,110,0.00) 70%
    ),
    radial-gradient(700px 420px at 85% 55%,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.00) 60%
    );
  pointer-events:none;
}

/* treść nad overlayem */
.hero .container,
.hero .hero-inner{
    position: relative;
    z-index: 1;
}

.hero-inner{
    display: grid;
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    gap: 40px;
    align-items: center;
}

/* PRZESUNIĘCIE TEKSTU W PRAWO (bez padding-hacka) */
.hero-text{
    max-width: 460px;
    margin-left: auto;
    padding-left: 0;
    transform: translateX(16px); 
}

/* Na średnich ekranach zmniejszamy przesunięcie, żeby nie wchodziło na telefon */
@media (max-width: 1200px){
    .hero-inner{
        grid-template-columns: minmax(0, 66%) minmax(0, 34%);
        gap: 32px;
    }
    .hero-text{
        transform: translateX(10px);
        max-width: 440px;
    }
}

/* Na tablet/mobile: kolumny pod sobą i zero przesunięć */
@media (max-width: 768px){
    .hero-inner{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hero-text{
        max-width: none;
        margin-left: 0;
        transform: none;
    }
}

.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: 460px;
}

.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);
    backdrop-filter: blur(6px);
}

.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;
}

/* ─────────────────────────────────────────────── */
/* MOBILE: bez tła w HERO */
/* ─────────────────────────────────────────────── */

@media (max-width: 768px){
    .hero{
        background-image: none !important;
        background-color: #ffffff;
    }

    .hero::before{
        background: none !important;
    }

    .hero-inner{
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-text{
        padding-left: 0;
        max-width: none;
    }

    .hero-widget{
        justify-content: stretch;
    }

    .widget-card{
        max-width: none;
    }
}
/* ─────────────────────────────────────────────── */
/* 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;
}

/* FINIVO – zielone suwaki (kwota + raty) jak na youmoney */
#finivo-calculator input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: none;
  background: #e5e7eb; /* szary tor */
}

#finivo-calculator input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;            /* zielony kółek */
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
}

#finivo-calculator input[type="range"]::-moz-range-thumb{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
}

#finivo-calculator input[type="range"]::-moz-range-track{
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* =========================
   BURGER – FINIVO (tylko mobile)
   ========================= */

/* DOMYŚLNIE (DESKTOP) */
.mobile-toggle{
    display: none; /* klucz: burger znika na desktop */
    width: 44px;
    height: 44px;
    background: #0a8f3c; /* zielony finivo */
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    box-shadow: 0 6px 16px rgba(10,143,60,.25);
    transition: .2s ease;
}

.mobile-toggle:hover{
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10,143,60,.35);
}

/* kreski */
.mobile-toggle span{
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after{
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
}

.mobile-toggle span::before{ top: -6px; }
.mobile-toggle span::after{  top:  6px; }

/* MOBILE – krótkie rozwijane menu (dropdown) */
@media (max-width: 992px){

  /* chowamy nav domyślnie */
  .main-nav{
    position: absolute;          /* zamiast fixed */
    top: 64px;                   /* dopasuj do wysokości headera */
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    display: none;               /* klucz: nie zajmuje miejsca */
    flex-direction: column;
    gap: 10px;
    z-index: 999;
  }

  /* po otwarciu */
  .main-nav.is-open{
    display: flex;
  }

  /* linki w menu */
  .main-nav a{
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
  }

  .main-nav a:hover{
    background: rgba(10,143,60,.08);
  }

  /* przycisk CTA wewnątrz menu */
  .main-nav .btn{
    margin: 8px 0 0 0 !important;
    width: 100%;
    justify-content: center;
  }

  /* burger widoczny tylko na mobile */
  .mobile-toggle{
    display: flex;
    z-index: 1000;
  }
}

/* UJEDNOLICONE SUWAKI (kwota + miesiące) */
#kalkulator input[type="range"],
.calculator input[type="range"],
input[type="range"].range,
input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: #d1d5db; /* tło tracka */
}

/* TRACK – Chrome/Safari */
#kalkulator input[type="range"]::-webkit-slider-runnable-track,
.calculator input[type="range"]::-webkit-slider-runnable-track,
input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
}

/* THUMB – Chrome/Safari */
#kalkulator input[type="range"]::-webkit-slider-thumb,
.calculator input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a8f3c;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(10,143,60,.25);
  margin-top: -6px; /* wycentrowanie na tracku */
}

/* Firefox */
#kalkulator input[type="range"]::-moz-range-track,
.calculator input[type="range"]::-moz-range-track,
input[type="range"]::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
}
#kalkulator input[type="range"]::-moz-range-thumb,
.calculator input[type="range"]::-moz-range-thumb,
input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a8f3c;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(10,143,60,.25);
}

/* UJEDNOLICONE SUWAKI (kwota + miesiące) */
#kalkulator input[type="range"],
.calculator input[type="range"],
input[type="range"].range,
input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: #d1d5db; /* tło tracka */
}

/* TRACK – Chrome/Safari */
#kalkulator input[type="range"]::-webkit-slider-runnable-track,
.calculator input[type="range"]::-webkit-slider-runnable-track,
input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
}

/* THUMB – Chrome/Safari */
#kalkulator input[type="range"]::-webkit-slider-thumb,
.calculator input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a8f3c;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(10,143,60,.25);
  margin-top: -6px; /* wycentrowanie na tracku */
}

/* Firefox */
#kalkulator input[type="range"]::-moz-range-track,
.calculator input[type="range"]::-moz-range-track,
input[type="range"]::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
}
#kalkulator input[type="range"]::-moz-range-thumb,
.calculator input[type="range"]::-moz-range-thumb,
input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a8f3c;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(10,143,60,.25);
}

html.menu-open, body.menu-open{
  overflow: hidden;
}

/* ─────────────────────────────────────────────── */
/* TABLET FIX – HERO + CHAT LAUNCHER */
/* dokleić na sam koniec styles.css */
/* ─────────────────────────────────────────────── */

/* Tablet i mniejsze laptopy – stabilny HERO */
@media (max-width: 1024px){

  /* Na tablecie wyłączamy tło HERO (żeby nie ucinało telefonu i nie robiło kolizji) */
  .hero{
    background-image: none !important;
    background-color: #ffffff !important;
  }
  .hero::before{
    background: none !important;
  }

  /* HERO w jednej kolumnie (tekst -> kalkulator pod spodem) */
  .hero-inner{
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: start !important;
  }

  /* Reset przesunięć z desktopu */
  .hero-text{
    max-width: 720px !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  /* Minimalne dostrojenie typografii na tablet */
  .hero-text h1{
    font-size: 2.1rem !important;
    line-height: 1.12 !important;
  }

  /* Kalkulator na pełną szerokość */
  .hero-widget{
    justify-content: stretch !important;
  }
  .widget-card{
    max-width: none !important;
  }

  /* CHAT LAUNCHER – żeby nie nachodził na treść w HERO */
  #finivo-chat-launcher{
    right: 16px !important;
    bottom: 16px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 28px !important;
    max-width: 220px;
  }
}

/* Drobne dopięcie dla mniejszych tabletów */
@media (max-width: 820px){
  .hero-text h1{
    font-size: 2.0rem !important;
  }
}

/* ─────────────────────────────────────────────── */
/* FIX iOS: oba suwaki (kwota + raty) identyczne */
/* doklej na sam koniec styles.css */
/* ─────────────────────────────────────────────── */

#amountRange,
#termRange{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: #dddddd; /* szary tor */
}

/* TRACK – Chrome/Safari */
#amountRange::-webkit-slider-runnable-track,
#termRange::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: #17bf6e; /* zielony tor jak na kwocie */
}

/* THUMB – Chrome/Safari */
#amountRange::-webkit-slider-thumb,
#termRange::-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;
}

/* Firefox */
#amountRange::-moz-range-track,
#termRange::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: #17bf6e;
}

#amountRange::-moz-range-thumb,
#termRange::-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;
}

@media (max-width: 600px){
  #finivo-chat-launcher{
    right: 12px !important;
    bottom: 12px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
}

/* ─────────────────────────────────────────────── */
/* HEADER – lepsze odstępy na mobile */
/* ─────────────────────────────────────────────── */

@media (max-width: 768px){

  .header-inner{
    padding-left: 18px;   /* oddech dla logo */
    padding-right: 18px;  /* oddech dla burgera */
  }

  /* dodatkowy wizualny balans */
  .logo{
    margin-left: 2px;
  }

  .mobile-toggle{
    margin-right: 2px;
  }

}

.finivo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.finivo-modal.active {
    display: block;
}

.finivo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
}

.finivo-modal__box {
    position: relative;
    max-width: 520px;
    margin: 12vh auto;
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
}

.finivo-modal__text {
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}

.finivo-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #14B86E;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}