/* =============================================================================
   lid_kalkulator.css — v3 (zgodne z projektem graficznym)
   Prefix .lk-* dla pełnej izolacji od istniejących reguł motywu.
   ============================================================================= */

/* --- Zmienne --- */
.lk-page {
    --lk-color-primary: #922221;        /* czerwień Audytela (z nagłówka audytel.pl) */
    --lk-color-primary-dark: #6f1a19;   /* ciemniejszy odcień na hover */
    --lk-color-text: #1a1a1a;
    --lk-color-muted: #555;
    --lk-color-bg: #f3f3f3;             /* tło sekcji hero / korzyści — matchuje tło nowej grafiki */
    --lk-color-bg-alt: #ebebeb;         /* tło sekcji proces (delikatnie ciemniejsze, dla kontrastu) */
    --lk-color-bg-card: #fff;
    --lk-color-border: #e5e7eb;
    --lk-color-border-light: #eef0f2;
    --lk-radius: 16px;
    --lk-radius-sm: 10px;
    --lk-radius-pill: 999px;
    --lk-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --lk-shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
    --lk-spacing-section: 90px;
    --lk-container: 1240px;
    --lk-font: inherit;
}

.lk-page,
.lk-page * { box-sizing: border-box; }
.lk-page img { max-width: 100%; height: auto; display: block; }

/* Ukrywamy puste paragrafy wstawiane przez wpautop wokół shortcodów blokowych.
   WordPress automatycznie owija puste linie w <p>, co tworzy duże odstępy. */
.lk-page p:empty,
.lk-page p:has(> br:only-child),
article.lk-article > p:empty,
article.lk-article > p:has(> br:only-child) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Sekcje wypełniają pełną szerokość rodzica.
   Rodzic (.entry-content, main itd) ma padding:0 z innej reguły, więc sekcje
   sięgają do krawędzi okna. Bez 100vw bo to powoduje overflow przy paskach scroll. */
.lk-page .lk-hero,
.lk-page .lk-section,
.lk-page .lk-cta-banner,
.lk-page .lk-kontakt {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
}

/* Zabezpieczenie przed poziomym scrollem na całej stronie */
html, body {
    overflow-x: hidden;
}

/* Anulujemy paddingi/max-width motywu GeneratePress.
   CSS ładuje się tylko na stronach z szablonem lid_kalkulator
   (przez wp_enqueue_style w lid_kalkulator.php), więc te reguły
   wpływają WYŁĄCZNIE na nasze strony - nie psują reszty witryny.

   UWAGA: !important tylko na konkretnych klasach motywu,
   żeby nie nadpisywało moich własnych .lk-container */
.lk-page,
article.lk-article {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}
/* Konkretne klasy GeneratePress - bez selectorów uniwersalnych */
body .site-content,
body .inside-article,
body .one-container .site-content,
body .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}
/* Main element wokół .lk-page (z lid_kalkulator.php) */
main:has(.lk-page) {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Mój .lk-container ZACHOWUJE padding - dziedziczy szerokość 1240px i padding 30px.
   Zwiększona specyficzność (.lk-page przed) żeby przebić przez body .entry-content */
.lk-page .lk-container {
    max-width: var(--lk-container);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}
@media (min-width: 1300px) {
    .lk-page .lk-container { padding: 0 40px; }
}

/* --- Przyciski --- */
.lk-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--lk-radius-pill);
    transition: all .2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}
.lk-btn::after {
    content: "→";
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}
.lk-btn:hover::after { transform: translateX(4px); }

.lk-btn--primary,
.lk-btn-primary {
    background: var(--lk-color-primary);
    color: #fff;
    border-color: var(--lk-color-primary);
}
.lk-btn--primary:hover,
.lk-btn-primary:hover {
    background: var(--lk-color-primary-dark);
    border-color: var(--lk-color-primary-dark);
    color: #fff;
}

.lk-btn--ghost,
.lk-btn-secondary {
    background: transparent;
    color: var(--lk-color-text);
    border-color: var(--lk-color-text);
}
.lk-btn--ghost:hover,
.lk-btn-secondary:hover {
    background: var(--lk-color-text);
    color: #fff;
}

.lk-btn--white {
    background: #fff;
    color: var(--lk-color-text);
    border-color: #fff;
}
.lk-btn--white::after { color: var(--lk-color-primary); }
.lk-btn--white:hover {
    background: #f3f3f3;
    border-color: #f3f3f3;
}

/* =============================================================================
   HERO — układ z grafiką wypełniającą całą prawą kolumnę
   ============================================================================= */
.lk-hero {
    background: var(--lk-color-bg);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 640px;
}
.lk-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    min-height: 640px;
    position: relative;
}

/* Bez zdjęcia — content w pełnej szerokości, max 900px, padding pionowy */
.lk-hero__grid:not(:has(.lk-hero__media)) {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0 60px;
}
.lk-hero__grid:not(:has(.lk-hero__media)) .lk-hero__content {
    max-width: 900px;
    margin: 0 auto;
}

/* Lewa kolumna - tekst, padding pionowy żeby content miał oddech */
.lk-hero__content {
    min-width: 0;
    padding: 30px 0 30px 0;
    align-self: center;
}

.lk-hero__title {
    font-size: 42px;
    line-height: 1.15;
    color: var(--lk-color-text);
    margin: 0 0 24px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.lk-hero__lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--lk-color-muted);
    margin-bottom: 32px;
}
.lk-hero__lead p { margin: 0 0 12px; }
.lk-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Prawa kolumna - grafika wyświetlana W CAŁOŚCI (object-fit: contain).
   Dla grafik pionowych 1000x1500 prawa kolumna jest wąska i wysoka.
   contain = grafika zachowuje proporcje, widać ją całą, bez przycinania. */
.lk-hero__media {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
}
.lk-hero__media img {
    /* Plain / flat — bez zaokrąglenia ani cienia.
       Grafika cała widoczna, dosunięta do prawej krawędzi kolumny. */
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Statystyki — białe kafelki z efektem glass.
   Ikona po lewej w okrągłym tle, liczba i opis po prawej w pionie (grid 2-kolumnowy). */
.lk-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
}
.lk-stat {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}
.lk-stat__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(232, 234, 237, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    grid-row: 1 / span 2;
}
.lk-stat__icon img {
    width: 18px;
    height: 18px;
    margin: 0;
}
.lk-stat__num {
    grid-column: 2;
    grid-row: 1;
    font-size: 19px;
    font-weight: 700;
    color: var(--lk-color-text);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lk-stat__label {
    grid-column: 2;
    grid-row: 2;
    font-size: 11.5px;
    color: var(--lk-color-muted);
    line-height: 1.25;
    margin-top: 2px;
    overflow: hidden;
}

/* =============================================================================
   SEKCJE GENERYCZNE
   ============================================================================= */
.lk-section {
    padding: var(--lk-spacing-section) 0;
}
.lk-section--znaczenie { background: #fff; }
.lk-section--korzysci  { background: var(--lk-color-bg); }
.lk-section--wyroznia  { background: #fff; }

.lk-section__title {
    font-size: 30px;
    line-height: 1.25;
    color: var(--lk-color-text);
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.lk-section__subtitle {
    font-size: 16px;
    color: var(--lk-color-muted);
    margin: 0 0 36px 0;
    line-height: 1.6;
}
.lk-section__body p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--lk-color-muted);
    margin: 0 0 14px;
}

/* ---- ZNACZENIE: layout 1+2 (lewy: tytuł+opis | prawy: 2 karty obok siebie).
   Shortcode lk_section dla wariantu "znaczenie" generuje 2 osobne diwy:
   .lk-section__intro (lewa kolumna) i .lk-section__cards (prawa kolumna).
   Dzięki temu CSS jest prosty i nie ma problemów z pustymi paragrafami z wpautop. */
.lk-page .lk-section--znaczenie .lk-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 50px;
    align-items: start;
}
.lk-section--znaczenie .lk-section__intro {
    /* Lewa kolumna - tytuł, podtytuł, opis */
}
.lk-section--znaczenie .lk-section__intro .lk-section__title {
    margin-bottom: 16px;
}
.lk-section--znaczenie .lk-section__intro .lk-section__subtitle {
    margin: 0 0 16px 0;
}
.lk-section--znaczenie .lk-section__body {
    /* Wewnątrz intro - sam tekst opisu, bez magii */
}
.lk-section--znaczenie .lk-section__body p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--lk-color-muted);
}
.lk-section--znaczenie .lk-section__cards {
    /* Prawa kolumna - karty */
}
.lk-section--znaczenie .lk-section__cards .lk-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
}

/* Domyślny grid kart — minmax(0,1fr) zabezpiecza przed rozpychaniem przez szeroką treść.
   !important wymuszony żeby przebić ewentualne reguły motywu rodzica
   (w razie gdyby selektory motywu miały wyższą specyficzność). */
.lk-page .lk-grid {
    display: grid !important;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}
.lk-page .lk-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lk-page .lk-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.lk-page .lk-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.lk-page .lk-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

/* FAILSAFE: WordPress wpautop wsadza <p> wokół shortcodów - one rozwalają grid.
   Robimy <p> w gridach "przezroczyste" przez display:contents - znikają z layoutu,
   ale ich dzieci (karty) stają się bezpośrednimi dziećmi gridu. */
.lk-page .lk-grid > p {
    display: contents;
}
/* Ukrywamy puste paragrafy (z samymi białymi znakami / <br>) */
.lk-page .lk-grid > p:empty,
.lk-page .lk-grid > br {
    display: none;
}

/* =============================================================================
   KARTY
   ============================================================================= */
.lk-card {
    background: var(--lk-color-bg-card);
    padding: 28px;
    border-radius: var(--lk-radius);
    box-shadow: var(--lk-shadow);
    border: 1px solid var(--lk-color-border-light);
    transition: box-shadow .2s ease, transform .2s ease;
    min-width: 0;
    overflow: hidden;
}
.lk-card:hover {
    box-shadow: var(--lk-shadow-hover);
    transform: translateY(-2px);
}
.lk-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lk-color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.lk-card__icon img {
    width: 24px;
    height: 24px;
    margin: 0;
}
.lk-card__title {
    font-size: 18px;
    line-height: 1.3;
    color: var(--lk-color-text);
    margin: 0 0 12px 0;
    font-weight: 700;
}
.lk-card__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--lk-color-muted);
}
.lk-card__body p { margin: 0 0 8px; }
.lk-card__body p:last-child { margin-bottom: 0; }

/* ---- KORZYŚCI: ikona po lewej, tekst po prawej ---- */
.lk-section--korzysci .lk-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px 28px;
}
.lk-section--korzysci .lk-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    grid-row: 1 / span 2;
}
.lk-section--korzysci .lk-card__icon img {
    width: 28px;
    height: 28px;
}
.lk-section--korzysci .lk-card__title {
    grid-column: 2;
    font-size: 15px;
    margin-bottom: 6px;
}
.lk-section--korzysci .lk-card__body {
    grid-column: 2;
    font-size: 14px;
}

/* ---- WYRÓŻNIA: czerwone okrągłe ikony ---- */
.lk-section--wyroznia .lk-card {
    text-align: left;
    padding: 28px 22px;
}
.lk-section--wyroznia .lk-card__icon {
    width: 52px;
    height: 52px;
    background: var(--lk-color-primary);
    margin-bottom: 18px;
}
.lk-section--wyroznia .lk-card__icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.lk-section--wyroznia .lk-card__title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 12px;
}
.lk-section--wyroznia .lk-card__body {
    font-size: 13px;
    line-height: 1.6;
}

/* =============================================================================
   PROCES — pionowy timeline (lewy blok = tytuł, prawy = kroki)
   ============================================================================= */
.lk-process {
    background: var(--lk-color-bg-alt);
}
.lk-page .lk-process .lk-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 60px;
    align-items: start;
}
.lk-page .lk-process .lk-section__title {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 8px;
}
.lk-page .lk-process .lk-section__subtitle {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
}
.lk-page .lk-process .lk-process__list {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.lk-process__list {
    list-style: none;
    counter-reset: lk-step;
    padding: 0;
    margin: 0;
    position: relative;
}
.lk-process__list::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: #d8dbdf;
    z-index: 0;
}
.lk-process__item {
    counter-increment: lk-step;
    position: relative;
    padding: 0 0 28px 60px;
    min-height: 60px;
}
.lk-process__item:last-child { padding-bottom: 0; }
.lk-process__item::before {
    content: counter(lk-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lk-color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--lk-color-bg-alt);
}
.lk-process__title {
    font-size: 17px;
    line-height: 1.3;
    color: var(--lk-color-text);
    margin: 8px 0 8px 0;
    font-weight: 700;
}
.lk-process__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--lk-color-muted);
}
.lk-process__body p { margin: 0; }

/* =============================================================================
   CTA BANNER — czerwony z marginesami bocznymi
   ============================================================================= */
.lk-cta-banner {
    background-color: var(--lk-color-primary);
    background-image: linear-gradient(135deg, rgba(146,34,33,0.95) 0%, rgba(111,26,25,0.95) 100%);
    color: #fff;
    padding: 56px 0;
    margin: 0;
    border-radius: 0;
}
.lk-cta-banner__inner {
    max-width: var(--lk-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr auto;
    gap: 40px;
    align-items: center;
}
.lk-cta-banner__title {
    font-size: 24px;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 24px 0;
    font-weight: 700;
}
.lk-cta-banner__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
}
.lk-cta-banner__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
}
.lk-cta-banner__item::before {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.lk-cta-banner__actions {
    display: flex;
    align-items: center;
}

/* =============================================================================
   KONTAKT
   ============================================================================= */
.lk-kontakt { background: #fff; }
.lk-page .lk-kontakt .lk-container {
    /* Wymuszamy ograniczenie szerokości żeby formularz nie uciekał za prawą krawędź */
    max-width: var(--lk-container);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}
.lk-page .lk-kontakt__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: start;
}
.lk-kontakt__left .lk-section__title {
    font-size: 28px;
    margin-bottom: 20px;
}
.lk-kontakt__opis {
    font-size: 15px;
    line-height: 1.7;
    color: var(--lk-color-muted);
    margin-bottom: 32px;
}
.lk-kontakt__opis p { margin: 0 0 12px; }
.lk-kontakt__opis p:last-child { margin-bottom: 0; }

.lk-kontakt__osoba {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-top: 24px;
}
.lk-kontakt__foto {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.lk-kontakt__osoba-info { line-height: 1.4; }
.lk-kontakt__intro {
    font-size: 13px;
    color: var(--lk-color-muted);
    margin: 0 0 2px;
}
.lk-kontakt__imie {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--lk-color-text);
}
.lk-kontakt__tel { margin: 2px 0 0; }
.lk-kontakt__tel a {
    color: var(--lk-color-muted);
    text-decoration: none;
    font-size: 14px;
}
.lk-kontakt__tel a:hover { color: var(--lk-color-primary); }

.lk-kontakt__right {
    padding: 32px 36px;
    border-radius: var(--lk-radius);
    border: 1px solid var(--lk-color-border-light);
    background: #fff;
    box-shadow: var(--lk-shadow);
    min-width: 0;
    overflow: hidden;
}
/* Reset CF7 wrappera - bez tła, paddingu, ramki (mamy własną na .lk-kontakt__right) */
.lk-kontakt__right .wpcf7,
.lk-kontakt__right .wpcf7-form,
.lk-kontakt__right form {
    max-width: 100% !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}
.lk-kontakt__right .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
/* Pola tekstowe / email / tel / textarea - pełna szerokość, ładne paddingi i ramka */
.lk-kontakt__right input[type="text"],
.lk-kontakt__right input[type="email"],
.lk-kontakt__right input[type="tel"],
.lk-kontakt__right input[type="number"],
.lk-kontakt__right input[type="url"],
.lk-kontakt__right textarea,
.lk-kontakt__right select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    margin: 4px 0 14px 0 !important;
    border: 1px solid var(--lk-color-border-light) !important;
    border-radius: var(--lk-radius-sm, 10px) !important;
    background: #fff !important;
    font-size: 14px;
    font-family: inherit;
    color: var(--lk-color-text);
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.lk-kontakt__right input:focus,
.lk-kontakt__right textarea:focus,
.lk-kontakt__right select:focus {
    border-color: var(--lk-color-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(146, 34, 33, 0.1) !important;
}
.lk-kontakt__right textarea {
    min-height: 100px;
    resize: vertical;
}

/* Pb-landing-box (legacy wrapper z istniejącego formularza CF7) - reset zewnętrzny */
.lk-kontakt__right .pb-landing-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--lk-color-text);
    font-size: 14px;
    line-height: 1.5;
}
.lk-kontakt__right .pb-landing-box * {
    box-sizing: border-box;
}
/* Etykiety pól (tekst "Imię i nazwisko*" przed inputem) - traktujemy jako label */
.lk-kontakt__right .pb-landing-box {
    /* Tekst przed <br> jest traktowany jako label - dodajemy mu styl */
}
.lk-kontakt__right .pb-landing-box label {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--lk-color-text);
    font-size: 14px;
}

/* Checkboxy i akceptacje */
.lk-kontakt__right .pb-landing-box .checkbox,
.lk-kontakt__right .checkbox {
    margin: 12px 0 8px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--lk-color-muted);
}
.lk-kontakt__right input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: auto !important;
    margin-bottom: 0 !important;
}
.lk-kontakt__right .wpcf7-list-item {
    display: block;
    margin: 6px 0 !important;
    font-size: 12.5px;
    line-height: 1.45;
}
.lk-kontakt__right .wpcf7-list-item label {
    cursor: pointer;
    font-weight: 400;
    color: var(--lk-color-muted);
}
.lk-kontakt__right .wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0 !important;
}

/* Przycisk WYŚLIJ */
.lk-kontakt__right input[type="submit"],
.lk-kontakt__right .wpcf7-submit {
    display: inline-block !important;
    background: var(--lk-color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--lk-radius-pill) !important;
    padding: 14px 36px !important;
    margin: 16px auto 0 auto !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    width: auto !important;
    min-width: 140px;
    transition: background .2s ease;
    box-shadow: none !important;
}
.lk-kontakt__right input[type="submit"]:hover,
.lk-kontakt__right .wpcf7-submit:hover {
    background: var(--lk-color-primary-dark) !important;
}
/* Centrowanie przycisku */
.lk-kontakt__right .pb-landing-box {
    text-align: left;
}
.lk-kontakt__right .pb-landing-box br + [submit],
.lk-kontakt__right .wpcf7-form > p:has(.wpcf7-submit),
.lk-kontakt__right .pb-landing-box [type="submit"] {
    margin-top: 16px;
}

/* Komunikaty walidacji CF7 */
.lk-kontakt__right .wpcf7-not-valid-tip {
    color: var(--lk-color-primary);
    font-size: 12.5px;
    margin-top: -10px;
    margin-bottom: 8px;
    display: block;
}
.lk-kontakt__right .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px 16px !important;
    border-radius: var(--lk-radius-sm, 10px) !important;
    font-size: 13px !important;
}
.lk-kontakt__form-title {
    font-size: 17px;
    margin: 0 0 20px 0;
    color: var(--lk-color-text);
    font-weight: 700;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lk-color-border-light);
}

/* =============================================================================
   RESPONSIVE
   UWAGA: niektóre główne reguły gridów są zdefiniowane z prefiksem .lk-page
   i !important (np. .lk-page .lk-grid--cols-5). Żeby media query je nadpisało
   musi mieć ten sam prefiks i też używać !important. Inaczej desktop wygrywa.
   ============================================================================= */

/* --- Tablety duże (1100px) --- */
@media (max-width: 1100px) {
    .lk-page .lk-process .lk-container,
    .lk-page .lk-section--znaczenie .lk-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lk-page .lk-grid--cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lk-page .lk-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* --- Tablety / małe laptopy (992px) --- */
@media (max-width: 992px) {
    .lk-page .lk-hero__grid,
    .lk-page .lk-cta-banner__inner,
    .lk-page .lk-kontakt__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lk-page .lk-grid--cols-3,
    .lk-page .lk-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lk-page .lk-grid--cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lk-section__title { font-size: 26px; }
    .lk-hero__title { font-size: 32px; }
    .lk-cta-banner { margin: 0; padding: 40px 0; }

    /* Hero bez grafiki przy ścianach */
    .lk-hero__grid:not(:has(.lk-hero__media)) {
        padding: 30px 0 40px;
    }
}

/* --- Telefony (768px) — wszystko w jednej kolumnie, pod sobą --- */
@media (max-width: 768px) {
    :root,
    .lk-page {
        --lk-spacing-section: 50px;
    }

    /* Sekcje — mniejszy padding */
    .lk-section { padding: 50px 0 !important; }
    .lk-hero { padding: 24px 0 40px !important; min-height: auto !important; }

    /* Container — mniejszy padding boczny */
    .lk-page .lk-container { padding: 0 20px !important; }
    .lk-page .lk-kontakt .lk-container { padding: 0 20px !important; }

    /* HERO — kolumny pod sobą, grafika pod tekstem */
    .lk-page .lk-hero__grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        min-height: auto !important;
    }
    .lk-hero__content {
        padding: 8px 0 0 0;
    }
    .lk-hero__title { font-size: 26px; line-height: 1.2; margin-bottom: 18px; }
    .lk-hero__lead { font-size: 15px; margin-bottom: 24px; }
    .lk-hero__cta { gap: 12px; margin-bottom: 28px; }
    .lk-hero__cta .lk-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
    .lk-hero__media {
        min-height: auto;
        max-height: 320px;
    }
    .lk-hero__media img {
        max-height: 320px;
        width: 100%;
    }

    /* Statystyki hero — jedna pod drugą */
    .lk-hero__stats {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-top: 24px;
    }
    .lk-stat {
        padding: 12px 14px;
    }
    .lk-stat__num { font-size: 17px; }

    /* Wszystkie gridy kart — pod sobą.
       !important + .lk-page wymagane, bo główne reguły gridu mają ten sam prefiks. */
    .lk-page .lk-grid--cols-2,
    .lk-page .lk-grid--cols-3,
    .lk-page .lk-grid--cols-4,
    .lk-page .lk-grid--cols-5 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Sekcja "znaczenie" — wymuszone, bo desktop ma 2-kolumnowy układ z .lk-page */
    .lk-page .lk-section--znaczenie .lk-container {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .lk-page .lk-section--znaczenie .lk-section__cards .lk-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tytuły sekcji */
    .lk-section__title { font-size: 24px; line-height: 1.25; }
    .lk-section__subtitle { font-size: 15px; margin-bottom: 24px; }

    /* Karty */
    .lk-card { padding: 22px; }
    .lk-section--korzysci .lk-card {
        padding: 20px 22px;
        gap: 16px;
    }
    .lk-section--korzysci .lk-card__icon {
        width: 48px;
        height: 48px;
    }
    .lk-section--korzysci .lk-card__icon img {
        width: 24px;
        height: 24px;
    }
    .lk-section--wyroznia .lk-card {
        padding: 24px 22px;
    }

    /* PROCES — kolumna i lewa kolumna nad timeline'em */
    .lk-page .lk-process .lk-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .lk-page .lk-process .lk-section__title,
    .lk-page .lk-process .lk-section__subtitle,
    .lk-page .lk-process .lk-process__list {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .lk-process__item { padding-left: 56px; padding-bottom: 24px; }
    .lk-process__item::before { width: 40px; height: 40px; font-size: 16px; }
    .lk-process__list::before { left: 19px; }
    .lk-process__title { font-size: 16px; }
    .lk-process__body { font-size: 14px; }

    /* CTA BANNER — kolumny pod sobą, lista 1 kolumna */
    .lk-page .lk-cta-banner__inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .lk-cta-banner { padding: 36px 0 !important; }
    .lk-cta-banner__title { font-size: 21px; margin-bottom: 20px; }
    .lk-cta-banner__list {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .lk-cta-banner__item { font-size: 14px; }
    .lk-cta-banner__actions .lk-btn {
        width: 100%;
        justify-content: center;
    }

    /* KONTAKT — kolumny pod sobą */
    .lk-page .lk-kontakt__grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .lk-kontakt__left .lk-section__title { font-size: 22px; }
    .lk-kontakt__right { padding: 24px 20px; }
    .lk-kontakt__osoba { gap: 14px; }
    .lk-kontakt__foto { width: 56px; height: 56px; }
}

/* --- Małe telefony (480px) — drobne korekty fontów --- */
@media (max-width: 480px) {
    .lk-hero__title { font-size: 22px; }
    .lk-section__title { font-size: 21px; }
    .lk-cta-banner__title { font-size: 19px; }
    .lk-hero__media { max-height: 260px; }
    .lk-hero__media img { max-height: 260px; }
}

/* =============================================================================
   TYPOGRAFIA — łamanie tekstu (wdowy, sieroty)
   ============================================================================= */

/* text-wrap: pretty — przeglądarka optymalizuje łamanie tak,
   żeby unikać "wdów" (1-2 słów w ostatnim wierszu akapitu).
   Działa w Chrome 117+, Safari 17.5+, Firefox 121+ (czyli ~95% ruchu w 2026).
   Starsze przeglądarki ignorują regułę bez błędu - dostają standardowe łamanie. */
.lk-page p,
.lk-page .lk-hero__lead,
.lk-page .lk-section__body,
.lk-page .lk-section__body p,
.lk-page .lk-card__body,
.lk-page .lk-card__body p,
.lk-page .lk-process__body,
.lk-page .lk-process__body p,
.lk-page .lk-kontakt__opis,
.lk-page .lk-kontakt__opis p,
.lk-page .lk-section__subtitle {
    text-wrap: pretty;
}

/* text-wrap: balance — dla krótkich elementów (nagłówki, tytuły, statystyki).
   Wyrównuje długość wszystkich linii, dzięki czemu unika się
   "wdowy" w 2-wierszowym tytule (gdzie 2. linia ma 1 słowo). */
.lk-page .lk-hero__title,
.lk-page .lk-section__title,
.lk-page .lk-card__title,
.lk-page .lk-process__title,
.lk-page .lk-cta-banner__title,
.lk-page .lk-cta-banner__item,
.lk-page .lk-stat__label,
.lk-page .lk-kontakt__form-title {
    text-wrap: balance;
}

/* Wyrównanie do lewej (nie zmieniamy - tak jak na stronach internetowych)
   - artykuł contentwriter.pl wprost odradza justowania bez dzielenia wyrazów,
   bo tworzy duże przerwy między słowami. */

/* =============================================================================
   YOAST FAQ — accordion (białe karty + chevron v/^)
   Działa razem z JS w functions.php który toggle'uje klasę .faq-closed
   na elementach .schema-faq-section po kliknięciu w .schema-faq-question.
   ============================================================================= */

/* Auto-nagłówek "Najczęściej zadawane pytania" przez :has().
   Pojawia się TYLKO jeśli wewnątrz .schema-faq jest jakaś sekcja FAQ -
   gdy strona nie ma FAQ, nagłówek się nie pokazuje. */
.lk-page .schema-faq {
    max-width: var(--lk-container);
    margin: 40px auto 60px auto;
    padding: 0 30px;
}
.lk-page .schema-faq:has(.schema-faq-section)::before {
    content: "Najczęściej zadawane pytania";
    display: block;
    font-size: 30px;
    line-height: 1.25;
    color: var(--lk-color-text);
    margin: 0 0 36px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-wrap: balance;
}

/* Pojedyncza sekcja FAQ - karta jak inne .lk-card */
.lk-page .schema-faq-section {
    background: var(--lk-color-bg-card);
    border: 1px solid var(--lk-color-border-light);
    border-radius: var(--lk-radius-sm);
    box-shadow: var(--lk-shadow);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.lk-page .schema-faq-section:hover {
    box-shadow: var(--lk-shadow-hover);
}

/* Pytanie - klikalne, hover na czerwono */
.lk-page .schema-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.4;
    color: var(--lk-color-text);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    margin: 0;
    transition: color .2s ease;
}
.lk-page .schema-faq-question:hover {
    color: var(--lk-color-primary);
}

/* Czerwone kółko po prawej z chevronem.
   Domyślnie (rozwinięte) - chevron obrócony "^" (góra)
   Stan .faq-closed       - chevron "v" (dół, zaprasza do kliknięcia) */
.lk-page .schema-faq-question::after {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--lk-color-primary);
    /* SVG chevron skierowany w DÓŁ (v) - obracamy transformem dla stanu otwartego */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: background-color .2s ease, transform .25s ease;
    /* Domyślnie (rozwinięte) - obracamy "v" na "^" */
    transform: rotate(180deg);
}
.lk-page .schema-faq-question:hover::after {
    background-color: var(--lk-color-primary-dark);
}
/* Stan zamknięty - chevron wraca do pozycji "v" (rozwiń) */
.lk-page .schema-faq-section.faq-closed .schema-faq-question::after {
    transform: rotate(0deg);
}

/* Odpowiedź - smooth max-height na zwijaniu */
.lk-page .schema-faq-answer {
    padding: 0 22px 18px 22px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--lk-color-muted);
    font-weight: 400;
    max-height: 1000px;
    transition: max-height .35s ease, padding .25s ease, opacity .2s ease;
    opacity: 1;
    text-wrap: pretty;
}
.lk-page .schema-faq-answer p { margin: 0 0 10px; }
.lk-page .schema-faq-answer p:last-child { margin-bottom: 0; }

/* Stan zamknięty - chowamy odpowiedź */
.lk-page .schema-faq-section.faq-closed .schema-faq-answer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .lk-page .schema-faq {
        padding: 0 20px;
        margin: 30px auto 40px auto;
    }
    .lk-page .schema-faq:has(.schema-faq-section)::before {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .lk-page .schema-faq-question {
        padding: 14px 18px;
        font-size: 15px;
    }
    .lk-page .schema-faq-answer {
        padding: 0 18px 14px 18px;
        font-size: 14px;
    }
    .lk-page .schema-faq-section.faq-closed .schema-faq-answer {
        padding: 0 18px;
    }
}
