/*
Theme Name: Fingrow One-Page
Theme URI: https://fingrow-group.com/
Author: Fingrow Consulting Group
Author URI: https://fingrow-group.com/
Description: Uniwersalny, lekki motyw one-page dla spółek z Grupy Fingrow. Inspirowany stroną BISA Capital. Konfigurowalny przez Customizer (kolory, logo, hero, sekcje). Posiada wbudowany importer treści dla 11 spółek z grupy oraz typ wpisu „Rekomendacje" wykorzystywany przez Fingrow Management.
Version: 1.4.1
Tested up to: 6.6
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary - Fingrow Consulting Group
Text Domain: fingrow-onepage
Tags: one-page, business, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready, threaded-comments, footer-widgets
*/

/* ============================================================
   ZMIENNE GLOBALNE – nadpisywane przez Customizer (inline)
   ============================================================ */
:root {
    /* PALETA – domyślna (Fingrow Group: czerń + złoto) */
    --fg-primary:        #0D0D0D;   /* główny ciemny */
    --fg-primary-soft:   #1A1A1A;
    --fg-accent:         #C8A96E;   /* złoty akcent */
    --fg-accent-dark:    #9A7B3C;
    --fg-bg:             #FFFFFF;
    --fg-bg-soft:        #F8F7F5;
    --fg-bg-dark:        #0D0D0D;
    --fg-text:           #1A1917;
    --fg-text-muted:     #6B6B6B;
    --fg-text-light:     rgba(255,255,255,0.85);
    --fg-border:         rgba(0,0,0,0.08);
    --fg-border-light:   rgba(255,255,255,0.12);

    /* TYPOGRAFIA – nadpisywana przez Customizer */
    --fg-font-display: 'Cormorant Garamond', Georgia, serif;
    --fg-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* RYTM */
    --fg-radius:       4px;
    --fg-radius-lg:    8px;
    --fg-shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
    --fg-shadow-md:    0 8px 24px rgba(0,0,0,0.08);
    --fg-shadow-lg:    0 20px 60px rgba(0,0,0,0.12);

    /* SPACING */
    --fg-section-py:    clamp(64px, 9vw, 120px);
    --fg-container:     1240px;

    /* TRANSITIONS */
    --fg-ease:         cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   RESET I PODSTAWY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--fg-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg-text);
    background: var(--fg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--fg-accent-dark); text-decoration: none; transition: color .2s var(--fg-ease); }
a:hover { color: var(--fg-accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fg-font-display);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--fg-primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

.container {
    width: 100%;
    max-width: var(--fg-container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
}

/* Sekcja standard */
.section {
    padding: var(--fg-section-py) 0;
    position: relative;
}
.section--alt { background: var(--fg-bg-soft); }
.section--dark { background: var(--fg-primary); color: var(--fg-text-light); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section__eyebrow {
    display: inline-block;
    font-family: var(--fg-font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fg-accent-dark);
    margin-bottom: 16px;
    position: relative;
    padding-left: 36px;
}
.section__eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 24px; height: 1px;
    background: var(--fg-accent);
}
.section--dark .section__eyebrow { color: var(--fg-accent); }
.section--dark .section__eyebrow::before { background: var(--fg-accent); }

.section__title {
    margin: 0 0 24px;
    max-width: 800px;
}
.section__lead {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--fg-text-muted);
    max-width: 760px;
    margin-bottom: 48px;
}
.section--dark .section__lead { color: rgba(255,255,255,0.75); }

/* ============================================================
   BUTTONY
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--fg-font-body);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: var(--fg-radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .25s var(--fg-ease);
    line-height: 1;
}
.btn--primary {
    background: var(--fg-accent);
    color: var(--fg-primary);
    border-color: var(--fg-accent);
}
.btn--primary:hover {
    background: var(--fg-accent-dark);
    color: #fff;
    border-color: var(--fg-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--fg-shadow-md);
}
.btn--ghost {
    background: transparent;
    color: var(--fg-primary);
    border-color: var(--fg-primary);
}
.btn--ghost:hover {
    background: var(--fg-primary);
    color: #fff;
}
.btn--light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn--light:hover {
    background: var(--fg-accent);
    color: var(--fg-primary);
    border-color: var(--fg-accent);
}
.btn__arrow { transition: transform .25s var(--fg-ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(255,255,255,0);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--fg-ease), border-color .3s var(--fg-ease), backdrop-filter .3s var(--fg-ease);
    padding: 18px 0;
}
.site-header.is-scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--fg-border);
    box-shadow: var(--fg-shadow-sm);
}

/* KRYTYCZNE: gdy mobile menu jest otwarte, header NIE może mieć
   backdrop-filter ani filter ani transform — bo tworzą one nowy
   containing block dla position:fixed w środku (czyli .primary-nav
   przestaje się rozciągać do viewport i utyka w bounding-boxie headera).
   Dlatego wymuszamy 'none' z wyższą specyficznością. */
.site-header.is-mobile-open,
.site-header.is-mobile-open.is-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: color .3s var(--fg-ease);
    max-height: 48px;
}
.site-logo img { max-height: 48px; width: auto; }
.site-logo__text {
    font-family: var(--fg-font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.site-header.is-scrolled .site-logo,
.site-header.is-scrolled .site-logo__text { color: var(--fg-primary); }

/* Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.primary-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s var(--fg-ease);
}
.primary-nav a:hover { color: var(--fg-accent); }
.site-header.is-scrolled .primary-nav a { color: var(--fg-primary); }
.site-header.is-scrolled .primary-nav a:hover { color: var(--fg-accent-dark); }

.nav-cta {
    margin-left: 16px;
    padding: 12px 22px !important;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: var(--fg-radius);
    transition: all .25s var(--fg-ease);
}
.nav-cta:hover {
    background: var(--fg-accent) !important;
    color: var(--fg-primary) !important;
    border-color: var(--fg-accent) !important;
}
.site-header.is-scrolled .nav-cta {
    border-color: var(--fg-primary);
}

/* Hamburger */
/* ============================================================
   HAMBURGER (mobile menu toggle)
   ============================================================ */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999;
    border-radius: var(--fg-radius);
    transition: background .2s ease;
    margin: 0;
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}
.site-header--light .nav-toggle:hover,
.site-header.is-scrolled .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
.nav-toggle:focus-visible {
    outline: 2px solid var(--fg-accent);
    outline-offset: 2px;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
    margin: 0 auto;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: '';
    background-color: #fff;
    height: 2px;
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.4,0,.2,1), top .3s cubic-bezier(.4,0,.2,1) .15s, background-color .2s;
}
.nav-toggle__bars { background-color: transparent; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute;
    left: 0;
    right: 0;
    display: block;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { top: 14px; }
.nav-toggle__bars > span {
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: opacity .2s, transform .3s cubic-bezier(.4,0,.2,1);
    display: block;
}

/* Hamburger color in different header styles */
.site-header--light .nav-toggle__bars::before,
.site-header--light .nav-toggle__bars::after,
.site-header--light .nav-toggle__bars > span,
.site-header.is-scrolled .nav-toggle__bars::before,
.site-header.is-scrolled .nav-toggle__bars::after,
.site-header.is-scrolled .nav-toggle__bars > span {
    background-color: var(--fg-primary);
}

/* X transformation when open */
.nav-toggle.is-active .nav-toggle__bars::before {
    top: 7px;
    transform: rotate(45deg);
    transition: top .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1) .15s;
}
.nav-toggle.is-active .nav-toggle__bars::after {
    top: 7px;
    transform: rotate(-45deg);
    transition: top .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1) .15s;
}
.nav-toggle.is-active .nav-toggle__bars > span {
    opacity: 0;
    transform: scaleX(0);
}
/* When menu is open, hamburger always shows on light background → use dark color */
.site-header.is-mobile-open .nav-toggle__bars::before,
.site-header.is-mobile-open .nav-toggle__bars::after,
.site-header.is-mobile-open .nav-toggle__bars > span {
    background-color: #fff;
}

@media (max-width: 1024px) {
    .primary-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        /* Dynamic viewport height (handles mobile browser chrome) */
        height: 100dvh;
        background: var(--fg-primary);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 32px 40px;
        gap: 0;
        border-top: 0;
        transform: translateX(100%);
        opacity: 1;
        pointer-events: none;
        visibility: hidden;
        transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear .35s;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 9998;
    }
    .site-header.is-mobile-open .primary-nav,
    .primary-nav.is-mobile-open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        transition: transform .35s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
    }
    .primary-nav::before {
        /* Subtle decorative accent */
        content: '';
        position: absolute;
        top: 80px;
        left: 32px;
        width: 40px;
        height: 2px;
        background: var(--fg-accent);
    }
    .primary-nav__list {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .primary-nav__list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
    }
    .primary-nav__list a,
    .primary-nav a {
        color: rgba(255, 255, 255, 0.92) !important;
        padding: 22px 4px !important;
        font-family: var(--fg-font-display);
        font-size: 26px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        display: block;
        text-align: left;
        border: 0 !important;
        transition: color .2s, padding-left .2s;
    }
    .primary-nav__list a:hover,
    .primary-nav a:hover {
        color: var(--fg-accent) !important;
        padding-left: 12px !important;
    }
    .nav-cta {
        margin: 28px 0 0 !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 16px !important;
        font-size: 14px !important;
        font-family: var(--fg-font-body) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        border: 1.5px solid var(--fg-accent) !important;
        color: var(--fg-accent) !important;
        background: transparent !important;
    }
    .nav-cta:hover {
        background: var(--fg-accent) !important;
        color: var(--fg-primary) !important;
    }
    .lang-switcher {
        margin: 24px 0 0 !important;
        padding: 24px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        justify-content: center;
        gap: 14px !important;
    }
    .lang-switcher a {
        color: rgba(255, 255, 255, 0.85) !important;
        font-size: 14px !important;
    }
    .nav-toggle { display: inline-flex; }
}

/* Prevent body scroll when menu is open */
body.has-mobile-menu {
    overflow: hidden;
    /* preserve scrollbar gutter to avoid layout shift */
    padding-right: var(--fg-scrollbar-gutter, 0);
}

/* ============================================================
   HERO – warianty
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 120px 0 80px;
}
.hero--minimal { background: var(--fg-primary); }
.hero--gradient {
    background: linear-gradient(135deg, var(--fg-primary) 0%, var(--fg-primary-soft) 60%, var(--fg-accent-dark) 130%);
}
.hero--image {
    background-color: var(--fg-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero--split { background: var(--fg-bg-soft); color: var(--fg-text); }

/* Hero image background layer – działa dla wszystkich wariantów oprócz 'split' */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,0.45) 0%, rgba(13,13,13,0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Domyślnie chowamy overlay dla wariantów, które nie mają tła obrazkowego */
.hero--minimal .hero__overlay,
.hero--gradient .hero__overlay,
.hero--split .hero__overlay { display: none; }

/* Ale gdy hero MA obrazek (klasa --has-image), pokazujemy overlay zawsze */
.hero--has-image .hero__overlay { display: block !important; }

/* Gdy hero ma obrazek + gradient: gradient staje się delikatnym kolorystycznym overlayem */
.hero--gradient.hero--has-image {
    background: var(--fg-primary); /* fallback gdy obrazek się nie załaduje */
}
.hero--gradient.hero--has-image .hero__overlay {
    background: linear-gradient(135deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.5) 60%, rgba(200,169,110,0.4) 130%);
}

/* Minimal + obrazek = silny ciemny overlay (czysta typografia na zdjęciu) */
.hero--minimal.hero--has-image .hero__overlay {
    background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.78) 100%);
}

.hero__pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 80px,
        rgba(200,169,110,0.04) 80px,
        rgba(200,169,110,0.04) 81px
    );
    pointer-events: none;
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-accent);
    margin-bottom: 28px;
}
.hero__eyebrow::before {
    content: '';
    width: 36px; height: 1px;
    background: var(--fg-accent);
}
.hero--split .hero__eyebrow { color: var(--fg-accent-dark); }

.hero__title {
    font-family: var(--fg-font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 28px;
    color: #fff;
    max-width: 18ch;
}
.hero--split .hero__title { color: var(--fg-primary); }

.hero__title em {
    font-style: normal;
    color: inherit;
    font-weight: inherit;
}

/* Włącz wyróżnienia kursywą + akcent tylko gdy admin tego chce */
body.has-hero-emphasis .hero__title em {
    font-style: italic;
    color: var(--fg-accent);
    font-weight: 300;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
    max-width: 560px;
    color: rgba(255,255,255,0.82);
    margin: 0 0 40px;
}
.hero--split .hero__subtitle { color: var(--fg-text-muted); }

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    animation: heroBounce 2.4s var(--fg-ease) infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* Hero split – układ 2 kolumny */
.hero--split .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero--split .hero__media {
    aspect-ratio: 4/5;
    background: var(--fg-primary);
    background-size: cover;
    background-position: center;
    border-radius: var(--fg-radius-lg);
}
@media (max-width: 900px) {
    .hero--split .hero__inner { grid-template-columns: 1fr; }
    .hero--split .hero__media { aspect-ratio: 16/10; order: -1; }
}

/* ============================================================
   SEKCJA: O SPÓŁCE
   ============================================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about__text > p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--fg-primary);
    margin-bottom: 24px;
}
.about__highlights {
    margin-top: 40px;
    display: grid;
    gap: 24px;
}
.about__highlight {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--fg-bg);
    border-left: 3px solid var(--fg-accent);
    border-radius: 0 var(--fg-radius) var(--fg-radius) 0;
    box-shadow: var(--fg-shadow-sm);
}
.about__highlight-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--fg-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-accent-dark);
}
.about__highlight h4 {
    font-family: var(--fg-font-body);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--fg-primary);
}
.about__highlight p { font-size: .95rem; line-height: 1.6; margin: 0; color: var(--fg-text-muted); }

@media (max-width: 900px) {
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   SEKCJA: OFERTA
   ============================================================ */
.offer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--fg-border);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-lg);
    overflow: hidden;
    margin-top: 32px;
}
.section--dark .offer__grid {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.08);
}
.offer__item {
    background: var(--fg-bg);
    padding: 40px 32px;
    transition: background .25s var(--fg-ease), transform .25s var(--fg-ease);
    position: relative;
}
.section--dark .offer__item { background: var(--fg-primary); }
.offer__item:hover {
    background: var(--fg-bg-soft);
    transform: translateY(-2px);
}
.section--dark .offer__item:hover { background: var(--fg-primary-soft); }

.offer__icon {
    width: 56px; height: 56px;
    color: var(--fg-accent-dark);
    margin-bottom: 20px;
    stroke-width: 1.4;
}
.section--dark .offer__icon { color: var(--fg-accent); }
.offer__title {
    font-family: var(--fg-font-body);
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--fg-primary);
}
.section--dark .offer__title { color: #fff; }
.offer__text {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--fg-text-muted);
    margin: 0;
}
.section--dark .offer__text { color: rgba(255,255,255,0.7); }
.offer__list { list-style: none; padding: 0; margin: 16px 0 0; }
.offer__list li {
    position: relative;
    padding-left: 22px;
    font-size: .92rem;
    color: var(--fg-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}
.offer__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 12px; height: 1px;
    background: var(--fg-accent);
}
.section--dark .offer__list li { color: rgba(255,255,255,0.7); }

/* ============================================================
   SEKCJA: REKOMENDACJE (Fingrow Management)
   ============================================================ */
.recommendations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 32px;
}
.recommendation-card {
    background: var(--fg-bg);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .25s var(--fg-ease), box-shadow .25s var(--fg-ease);
}
.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fg-shadow-md);
}
.recommendation-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.recommendation-card__logo {
    width: 64px; height: 64px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: var(--fg-radius);
    background: var(--fg-bg-soft);
    padding: 8px;
}
.recommendation-card__meta { flex: 1; }
.recommendation-card__company {
    font-family: var(--fg-font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-primary);
    margin: 0 0 4px;
}
.recommendation-card__author {
    font-size: .85rem;
    color: var(--fg-text-muted);
}
.recommendation-card__quote {
    font-family: var(--fg-font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--fg-text);
    margin: 0;
    position: relative;
    padding-left: 22px;
}
.recommendation-card__quote::before {
    content: '\201C';
    position: absolute;
    left: -6px; top: -12px;
    font-size: 2.6rem;
    color: var(--fg-accent);
    line-height: 1;
    font-family: var(--fg-font-display);
}
.recommendation-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--fg-border);
    font-size: .82rem;
    color: var(--fg-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recommendation-card__date {
    font-variant-numeric: tabular-nums;
}
.recommendation-card__link {
    color: var(--fg-accent-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .76rem;
}

/* ============================================================
   SEKCJA: KONTAKT
   ============================================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
    margin-top: 32px;
}
@media (max-width: 900px) {
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
/* === Kontakt: blok info (układ z fingrow-group) === */
.contact-info-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
}
.contact-info-block + .contact-info-block {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.section--dark .contact-info-block + .contact-info-block {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.contact-info-block__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.12);
    color: var(--fg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.section--dark .contact-info-block__icon {
    background: rgba(200, 169, 110, 0.15);
}

.contact-info-block__body {
    flex: 1;
    min-width: 0;
}

.contact-info-block__label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-accent);
    font-family: var(--fg-font-body);
}

.contact-info-block__value {
    display: block;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--fg-primary);
    text-decoration: none;
    word-break: break-word;
}
.section--dark .contact-info-block__value { color: #fff; }
.contact-info-block__value:is(a):hover {
    color: var(--fg-accent);
}

/* Legacy classes – pozostawione dla kompatybilności wstecznej */
.contact__info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.contact__info-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: rgba(200, 169, 110, 0.12);
    color: var(--fg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section--dark .contact__info-icon {
    background: rgba(200,169,110,0.15);
    color: var(--fg-accent);
}
.contact__info-label {
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-accent);
    margin-bottom: 4px;
}
.contact__info-value {
    font-size: 1.05rem;
    color: var(--fg-primary);
    line-height: 1.5;
}
.section--dark .contact__info-value { color: #fff; }
.contact__info-value a { color: inherit; }
.contact__info-value a:hover { color: var(--fg-accent); }

/* Formularz */
.contact-form {
    background: var(--fg-bg);
    padding: 40px;
    border-radius: var(--fg-radius-lg);
    border: 1px solid var(--fg-border);
    box-shadow: var(--fg-shadow-sm);
}
.section--dark .contact-form {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 24px; }
}
.contact-form__field { margin-bottom: 20px; }
.contact-form__label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-text-muted);
    margin-bottom: 8px;
}
.section--dark .contact-form__label { color: rgba(255,255,255,0.6); }
.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--fg-font-body);
    font-size: 1rem;
    color: var(--fg-text);
    background: var(--fg-bg);
    border: 1.5px solid var(--fg-border);
    border-radius: var(--fg-radius);
    transition: border-color .2s var(--fg-ease), background .2s var(--fg-ease);
}
.section--dark .contact-form__input,
.section--dark .contact-form__textarea {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--fg-accent);
    background: var(--fg-bg);
}
.section--dark .contact-form__input:focus,
.section--dark .contact-form__textarea:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--fg-accent);
}
.contact-form__textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form__consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .85rem;
    color: var(--fg-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}
.section--dark .contact-form__consent { color: rgba(255,255,255,0.6); }
.contact-form__consent input { margin-top: 4px; }

.contact-form__notice {
    padding: 14px 18px;
    border-radius: var(--fg-radius);
    margin-bottom: 20px;
    font-size: .92rem;
}
.contact-form__notice--success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.3);
    color: #157a3a;
}
.contact-form__notice--error {
    background: rgba(220,38,38,0.06);
    border: 1px solid rgba(220,38,38,0.3);
    color: #b91c1c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--fg-primary);
    color: var(--fg-text-light);
    padding: 72px 0 28px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(260px, 1.4fr);
    gap: 56px;
    margin-bottom: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .site-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

.site-footer__col--brand { padding-right: 8px; }
.site-footer__col--info { padding-left: 8px; }

/* ============================================================
   LOGO W STOPCE — twardo wymuszone wymiary
   Ważne: używamy konkretnej `height` (nie auto), żeby przeglądarka
   mogła policzyć szerokość z proporcji obrazka. width: auto sam z
   height: auto = 0×0, gdy nasze inne reguły zerują HTML atrybuty.
   ============================================================ */
.site-footer .site-logo,
.site-footer__brand .site-logo,
.site-footer .site-logo--footer {
    display: inline-block !important;
    max-width: 220px !important;
    margin: 0 0 18px !important;
    line-height: 0;
}
.site-footer .site-logo a,
.site-footer .custom-logo-link {
    display: inline-block !important;
    line-height: 0;
}

/* Faktyczny <img> / <svg> w stopce – nadrzędne nad wszystkim innym */
.site-footer .site-logo img,
.site-footer .site-logo svg,
.site-footer .site-logo .custom-logo,
.site-footer .site-logo .site-logo__vertical-img,
.site-footer .custom-logo-link img,
.site-footer .custom-logo-link svg,
.site-footer__brand img,
.site-footer__brand svg {
    display: block !important;
    height: 64px !important;       /* fixed height – z proporcji wyliczy się width */
    width: auto !important;
    max-width: 220px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    margin: 0 !important;
    /* Anulujemy ewentualne filtry odziedziczone */
    filter: none;
}

/* Logo pionowe w stopce — może być wyższe (zwykle zawiera tekst pod znakiem) */
.site-footer .site-logo__vertical-img,
.site-footer__brand .site-logo__vertical-img {
    height: 80px !important;
    max-height: 80px !important;
    max-width: 180px !important;
}

/* Na małych ekranach footer logo trochę mniejsze */
@media (max-width: 600px) {
    .site-footer .site-logo img,
    .site-footer .site-logo svg,
    .site-footer .site-logo .custom-logo {
        height: 54px !important;
        max-height: 54px !important;
        max-width: 200px !important;
    }
    .site-footer .site-logo__vertical-img {
        height: 70px !important;
        max-height: 70px !important;
    }
}

/* Dedykowane logo stopki – też trzymamy w ryzach */
.site-footer__logo-img {
    display: block !important;
    height: 64px !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 64px !important;
    object-fit: contain !important;
}

/* Inwersja kolorów dla ciemnego logo w stopce
   (gdy klient nie wgrał osobnej jasnej wersji) */
.site-logo--invert img,
.site-logo--invert svg,
.site-logo--invert .custom-logo {
    filter: brightness(0) invert(1) !important;
    /* brightness(0) zmienia kolor na czarny, invert(1) odwraca na biały.
       Razem: każda kolorystyka logo → czysta biel.
       Działa świetnie dla 1-kolorowych logo; może wyglądać dziwnie dla
       gradientowych lub kolorowych — wtedy klient powinien wgrać osobną
       wersję w „Logo do stopki". */
}

/* Gdy klient wybrał „nigdy nie zmieniaj" – nadpisanie */
.site-logo--footer-dedicated img,
.site-logo--footer-dedicated svg {
    filter: none !important;
}

.site-footer__brand-text {
    font-family: var(--fg-font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
    display: block;
}
.site-footer__desc {
    font-size: .92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
    margin: 0 0 20px;
}
.site-footer__heading {
    font-family: var(--fg-font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-accent);
    margin: 0 0 22px;
}
.site-footer__col--info .site-footer__heading {
    font-family: var(--fg-font-display);
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    font-weight: 500;
}

.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li {
    margin-bottom: 10px;
    font-size: .94rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.7);
}
.site-footer__list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer__list a:hover { color: var(--fg-accent); }

.site-footer__list--info li { color: rgba(255,255,255,0.75); }
.site-footer__meta-label {
    color: rgba(255,255,255,0.45);
    margin-right: 4px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .85rem;
    color: rgba(255,255,255,0.5);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a {
    color: var(--fg-accent);
    text-decoration: none;
    transition: color .2s;
}
.site-footer__bottom a:hover { color: #fff; }
.site-footer__group { text-align: right; }

@media (max-width: 600px) {
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
    .site-footer__group { text-align: left; }
}

.site-footer__social {
    display: flex;
    gap: 10px;
}
.site-footer__social a {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all .25s var(--fg-ease);
}
.site-footer__social a:hover {
    background: var(--fg-accent);
    border-color: var(--fg-accent);
    color: var(--fg-primary);
}

/* ============================================================
   FADE-IN ANIMACJE
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--fg-ease), transform .8s var(--fg-ease);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}
:focus-visible {
    outline: 2px solid var(--fg-accent);
    outline-offset: 3px;
}

/* ============================================================
   ADDITIONAL UTILITIES — section heads, hero parts, blog
   ============================================================ */

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.section--dark .section__head .section__title { color: #fff; }
.section--dark .section__head .section__lead  { color: rgba(255,255,255,.78); }

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav__list a {
    color: rgba(255,255,255,.9);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color .2s;
    letter-spacing: .01em;
}

.primary-nav__list a:hover { color: var(--fg-accent); }

.site-header.is-scrolled .primary-nav__list a { color: rgba(0,0,0,.78); }
.site-header.is-scrolled .primary-nav__list a:hover { color: var(--fg-accent); }

.nav-cta {
    margin-left: 8px;
    padding: 10px 22px !important;
    font-size: 13px !important;
}

.hero__content {
    max-width: 820px;
}

.hero--split .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero--split .hero__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--fg-radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

@media (max-width: 900px) {
    .hero--split .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero--split .hero__visual { order: -1; max-width: 460px; margin: 0 auto; }
}

.container--narrow { max-width: 820px !important; }

/* Posts grid (blog fallback) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin: 40px 0;
}
.post-card { background: #fff; border: 1px solid #ececec; border-radius: var(--fg-radius-lg); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__title { font-family: var(--fg-font-display); font-size: 22px; margin: 0 0 12px; line-height: 1.25; }
.post-card__title a { color: var(--fg-primary); text-decoration: none; }
.post-card__excerpt { color: rgba(0,0,0,.65); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.post-card__more { color: var(--fg-accent); font-weight: 600; text-decoration: none; font-size: 14px; }

.single-page__content, .single-post__content {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(0,0,0,.78);
}
.single-page__content h2, .single-post__content h2 {
    font-family: var(--fg-font-display);
    font-size: 28px;
    margin: 40px 0 16px;
}
.single-post__thumb { margin: 0 0 32px; border-radius: var(--fg-radius-lg); overflow: hidden; }
.single-post__thumb img { width: 100%; height: auto; display: block; }

/* Empty states */
.recommendations__empty {
    text-align: center;
    color: rgba(0,0,0,.55);
    font-style: italic;
    padding: 40px 0;
}
.section--dark .recommendations__empty { color: rgba(255,255,255,.55); }

/* Body when mobile menu open: prevent scroll */
/* Body scroll lock when mobile menu open – defined above */

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ============================================================
   HEADER STYLE VARIANTS – transparent / light / dark
   ============================================================ */

/* LOGO – uniwersalny constraint (poziome + pionowe + SVG/PNG/JPG) */
.site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    max-width: var(--fg-logo-mw, 280px);
}
.site-logo .custom-logo-link,
.site-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-width: 100%;
    text-decoration: none;
}

/* Horizontal logo – maksymalnie agresywne wymuszenie wymiarów.
   Selektory celują w .site-header (przodek) + img.custom-logo (sam element),
   żeby nawet jeśli WP wstawi swoje style, te wygrały. */
.site-header .custom-logo,
.site-header .site-logo img,
.site-header .site-logo svg,
.site-header img.custom-logo,
.site-header .custom-logo-link img,
.site-header .custom-logo-link svg {
    display: block !important;
    height: var(--fg-logo-h, 40px) !important;
    width: auto !important;
    max-width: var(--fg-logo-mw, 280px) !important;
    max-height: var(--fg-logo-h, 40px) !important;
    object-fit: contain !important;
    transition: height .2s ease, max-height .2s ease;
}

.site-header.is-scrolled .custom-logo,
.site-header.is-scrolled .site-logo img,
.site-header.is-scrolled .site-logo svg,
.site-header.is-scrolled img.custom-logo,
.site-header.is-scrolled .custom-logo-link img,
.site-header.is-scrolled .custom-logo-link svg {
    height: var(--fg-logo-h-scroll, 36px) !important;
    max-height: var(--fg-logo-h-scroll, 36px) !important;
}

/* VERTICAL logo – wymuszenie analogiczne */
.site-header .site-logo__vertical-img,
.site-header .site-logo__vertical .custom-logo-link img,
.site-header .site-logo__vertical .custom-logo-link svg {
    display: block !important;
    height: var(--fg-logo-v-h, 56px) !important;
    width: auto !important;
    max-width: var(--fg-logo-v-mw, 140px) !important;
    max-height: var(--fg-logo-v-h, 56px) !important;
    object-fit: contain !important;
    transition: height .2s ease, max-height .2s ease;
}
.site-header.is-scrolled .site-logo__vertical-img,
.site-header.is-scrolled .site-logo__vertical .custom-logo-link img,
.site-header.is-scrolled .site-logo__vertical .custom-logo-link svg {
    height: var(--fg-logo-v-h-scroll, 44px) !important;
    max-height: var(--fg-logo-v-h-scroll, 44px) !important;
}

/* Horizontal vs Vertical visibility switch */
.site-logo__horizontal { display: inline-flex; align-items: center; line-height: 0; }
.site-logo__vertical   { display: none; align-items: center; line-height: 0; }

@media (max-width: 780px) {
    .site-logo__horizontal { display: none; }
    .site-logo__vertical   { display: inline-flex; }
}

/* Footer logo – mniejsze niż w headerze */
.site-logo--footer {
    display: inline-flex;
    margin-bottom: 14px;
    line-height: 0;
}
.site-logo--footer .site-logo__vertical-img,
.site-logo--footer img,
.site-logo--footer svg {
    height: auto !important;
    max-height: 64px !important;
    width: auto !important;
    max-width: 180px;
}

/* TRANSPARENT — over hero, becomes light/cream when scrolled */
.site-header--transparent {
    background: transparent;
    border-bottom: 0;
}
.site-header--transparent .site-logo__text,
.site-header--transparent .primary-nav__list a { color: rgba(255, 255, 255, 0.95); }
.site-header--transparent.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-header--transparent.is-scrolled .site-logo__text,
.site-header--transparent.is-scrolled .primary-nav__list a { color: rgba(0, 0, 0, 0.85); }

/* LIGHT — always white bg, dark logo/text */
.site-header--light {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header--light .site-logo__text { color: var(--fg-primary); }
.site-header--light .primary-nav__list a { color: rgba(0, 0, 0, 0.78); }
.site-header--light .primary-nav__list a:hover { color: var(--fg-accent); }
.site-header--light .nav-toggle__bars,
.site-header--light .nav-toggle__bars::before,
.site-header--light .nav-toggle__bars::after { background: var(--fg-primary); }

/* DARK — solid primary bg, light logo/text */
.site-header--dark {
    background: var(--fg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header--dark .site-logo__text { color: #fff; }
.site-header--dark .primary-nav__list a { color: rgba(255, 255, 255, 0.85); }
.site-header--dark .primary-nav__list a:hover { color: var(--fg-accent); }
.site-header--dark.is-scrolled {
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}

/* When using non-transparent headers, hero needs top padding for header height */
body.header-style-light .hero,
body.header-style-dark .hero {
    padding-top: calc(80px + 4rem);
}

/* ============================================================
   LANGUAGE SWITCHER (Polylang)
   ============================================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0 0 0 20px;
    padding: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 18px;
}
.site-header--light .lang-switcher { border-left-color: rgba(0, 0, 0, 0.1); }

.lang-switcher li { margin: 0; }
.lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: var(--fg-radius);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity .15s, background .15s;
}
.lang-switcher a:hover { opacity: 1; }
.lang-switcher .current-lang a,
.lang-switcher li.current-lang > a {
    opacity: 1;
    color: var(--fg-accent);
}
.lang-switcher img {
    width: 16px;
    height: 11px;
    border-radius: 1px;
    display: block;
}

.lang-switcher--flags_only a { padding: 6px; }
.lang-switcher--flags_only a span:not(.flag) { display: none; }

.lang-switcher--dropdown {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.site-header--light .lang-switcher--dropdown { border-left-color: rgba(0, 0, 0, 0.1); }
.lang-switcher--dropdown select {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    padding: 6px 26px 6px 10px;
    border-radius: var(--fg-radius);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* ============================================================
   RECOMMENDATIONS CAROUSEL (image scans)
   ============================================================ */
.rec-carousel {
    position: relative;
    margin: 0 -16px;
    padding: 0 16px;
}

.rec-carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--fg-accent) transparent;
    padding: 12px 0 24px;
    -webkit-overflow-scrolling: touch;
}
.rec-carousel__track::-webkit-scrollbar { height: 6px; }
.rec-carousel__track::-webkit-scrollbar-thumb { background: var(--fg-accent); border-radius: 3px; }
.rec-carousel__track::-webkit-scrollbar-track { background: transparent; }

.rec-slide {
    flex: 0 0 auto;
    width: clamp(240px, 32vw, 360px);
    margin: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}
.rec-slide:hover { transform: translateY(-4px); }

.rec-slide__btn {
    position: relative;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
    width: 100%;
    border-radius: var(--fg-radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    transition: box-shadow .3s;
}
.rec-slide__btn:hover {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}
.rec-slide__btn:focus-visible {
    outline: 3px solid var(--fg-accent);
    outline-offset: 4px;
}

.rec-slide__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414; /* A4 */
    object-fit: cover;
    background: #fff;
}

.rec-slide__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .25s, transform .25s;
}
.rec-slide__btn:hover .rec-slide__zoom,
.rec-slide__btn:focus-visible .rec-slide__zoom {
    opacity: 1;
    transform: scale(1);
}

.rec-slide__caption {
    margin: 16px 4px 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}
.rec-slide__caption strong {
    display: block;
    font-weight: 600;
    color: currentColor;
    margin-bottom: 4px;
}
.rec-slide__caption span {
    font-size: 12px;
    opacity: 0.65;
}

.rec-slide--empty .rec-slide__placeholder {
    aspect-ratio: 1 / 1.414;
    background: rgba(0, 0, 0, 0.04);
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: var(--fg-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.section--dark .rec-slide--empty .rec-slide__placeholder {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
}

/* Nav buttons */
.rec-carousel__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fg-accent);
    color: var(--fg-primary);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transform: translateY(-50%);
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.rec-carousel__nav:hover {
    background: var(--fg-accent-dark);
    transform: translateY(-50%) scale(1.05);
}
.rec-carousel__nav:focus-visible {
    outline: 3px solid var(--fg-primary);
    outline-offset: 3px;
}
.rec-carousel__nav--prev {
    left: -8px;
}
.rec-carousel__nav--prev svg {
    transform: rotate(180deg);
}
.rec-carousel__nav--next {
    right: -8px;
}

@media (max-width: 700px) {
    .rec-carousel__nav { width: 40px; height: 40px; }
    .rec-carousel__nav--prev { left: 0; }
    .rec-carousel__nav--next { right: 0; }
}

/* Dots */
.rec-carousel__dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 18px;
}
.rec-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: currentColor;
    opacity: 0.25;
    padding: 0;
    cursor: pointer;
    transition: opacity .15s, width .2s, background .15s;
}
.rec-carousel__dot:hover { opacity: 0.5; }
.rec-carousel__dot.is-active {
    opacity: 1;
    background: var(--fg-accent);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   LIGHTBOX (overlay viewer for scans)
   ============================================================ */
.rec-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    overflow: auto;
    animation: rec-lb-in .25s ease;
}
@keyframes rec-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.rec-lightbox[hidden] { display: none !important; }
body.has-rec-lightbox { overflow: hidden; }

.rec-lightbox__figure {
    margin: 0;
    max-width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rec-lightbox__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.rec-lightbox__caption {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}
.rec-lightbox__caption strong {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}
.rec-lightbox__caption span {
    color: var(--fg-accent);
    font-size: 13px;
}
.rec-lightbox__caption blockquote {
    margin: 12px auto 0;
    max-width: 600px;
    font-family: var(--fg-font-display);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    border-left: 2px solid var(--fg-accent);
    padding-left: 16px;
    text-align: left;
}
.rec-lightbox__caption a {
    color: var(--fg-accent);
    text-decoration: underline;
    margin-top: 8px;
    display: inline-block;
}

.rec-lightbox__close,
.rec-lightbox__nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background .15s, transform .15s;
}
.rec-lightbox__close:hover,
.rec-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.rec-lightbox__close {
    top: 20px;
    right: 20px;
}
.rec-lightbox__nav--prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.rec-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.rec-lightbox__nav--prev svg { transform: rotate(180deg); }
.rec-lightbox__nav--next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.rec-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 700px) {
    .rec-lightbox { padding: 60px 16px; }
    .rec-lightbox__nav--prev { left: 8px; }
    .rec-lightbox__nav--next { right: 8px; }
    .rec-lightbox__close { top: 12px; right: 12px; }
}

/* === Ukryj pozycję "Kontakt" w menu (gdy włączono w Customizerze) === */
body.has-contact-hidden .primary-nav__list a[href$="#kontakt"],
body.has-contact-hidden .site-footer__list a[href$="#kontakt"] {
    display: none !important;
}
body.has-contact-hidden .primary-nav__list a[href$="#kontakt"],
body.has-contact-hidden .site-footer__list a[href$="#kontakt"] {
    display: none !important;
}
/* Cały <li> z linkiem do #kontakt */
body.has-contact-hidden .primary-nav__list li:has(> a[href$="#kontakt"]),
body.has-contact-hidden .site-footer__list li:has(> a[href$="#kontakt"]) {
    display: none !important;
}
