/* style.css - Szkolenia JoLash (v1) */

/* --------------------
   Reset / Bazowe style
   -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Futura PT', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1E1E1E;
    background-color: #FFFFFF;
}

/* Root variables - z projektu */

:root {
    /* Colors */
    --unnamed-color-969696: #969696;
    --unnamed-color-f7f7f7: #F7F7F7;
    --unnamed-color-760000: #760000;
    --unnamed-color-46761f: #46761F;
    --unnamed-color-dfdfdf: #DFDFDF;
    --unnamed-color-ffffff: #FFFFFF;
    --unnamed-color-d8d8d8: #D8D8D8;
    --unnamed-color-000000: #000000;
    --unnamed-color-1e1e1e: #1E1E1E;

    /* Font sizes */
    --font-14: 14px;
    --font-16: 16px;
    --font-20: 20px;
    --font-24: 24px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-s: 8px;
    --spacing-m: 16px;
    --spacing-l: 24px;
    --spacing-xl: 32px;
}

/* Links */

a {
    color: inherit;
    text-decoration: none; /* zgodnie z preferencją */
}

a:hover,
a:focus {
    text-decoration: none;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 24px;
}

.section-kicker {
    font-size: var(--font-14);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--unnamed-color-969696);
    margin: 0 0 8px;
}

.section-header h2 {
    font-size: var(--font-24);
    margin: 0 0 8px;
}

.section-subtitle {
    font-size: var(--font-16);
    color: var(--unnamed-color-969696);
    margin: 0;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--unnamed-color-760000);
    font-size: var(--font-14);
    font-weight: bold;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: var(--unnamed-color-760000);
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #5a0000;
}

.btn-outline {
    background-color: #FFFFFF;
    color: var(--unnamed-color-760000);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--unnamed-color-760000);
    color: #FFFFFF;
}

/* --------------------
   Header / Nawigacja
   -------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--unnamed-color-dfdfdf);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
}

/* Nav */

.main-nav {
    display: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 10px 0;
    font-size: var(--font-14);
}

/* Hamburger */

.nav-toggle {
    border: none;
    background: none;
    padding: 8px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: #000000;
    display: block;
}

/* Mobile nav open */

.site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--unnamed-color-dfdfdf);
}

.site-header.nav-open .nav-toggle-bar {
    background-color: var(--unnamed-color-760000);
}

/* --------------------
   HERO
   -------------------- */

.hero {
    background-color: var(--unnamed-color-f7f7f7);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.hero-kicker {
    font-size: var(--font-14);
    text-transform: uppercase;
    color: var(--unnamed-color-969696);
    margin: 0 0 8px;
}

.hero h1 {
    font-size: 26px;
    margin: 0 0 12px;
}

.hero-text {
    font-size: var(--font-16);
    color: var(--unnamed-color-969696);
    margin: 0 0 16px;
}

.hero-image-wrapper {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --------------------
   SZKOLENIA
   -------------------- */

.trainings {
    background-color: #FFFFFF;
}

.trainings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.training-card {
    border-radius: 12px;
    border: 1px solid var(--unnamed-color-dfdfdf);
    overflow: hidden;
    background-color: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
}

.training-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--unnamed-color-760000);
    color: #FFFFFF;
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
}

.training-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.training-body {
    padding: 16px;
}

.training-title {
    margin: 0 0 4px;
    font-size: var(--font-20);
}

.training-subtitle {
    margin: 0 0 8px;
    font-size: var(--font-14);
    color: var(--unnamed-color-969696);
}

.training-description {
    margin: 0 0 16px;
    font-size: var(--font-14);
    color: var(--unnamed-color-1e1e1e);
}

.training-link {
    width: 100%;
}

/* --------------------
   BENEFITS / WARTOŚCI SZKOLEŃ
   -------------------- */

.benefits {
    background-color: var(--unnamed-color-f7f7f7);
}

.benefits .section-header {
    margin-bottom: 24px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background-color: #FFFFFF;
    border: 1px solid var(--unnamed-color-dfdfdf);
}

.benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--unnamed-color-760000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--unnamed-color-760000);
}

.benefit-item h3 {
    margin: 0 0 4px;
    font-size: var(--font-16);
}

.benefit-item p {
    margin: 0;
    font-size: var(--font-14);
    color: var(--unnamed-color-969696);
}

/* Desktop: 3 kolumny */

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --------------------
   OPINIE
   -------------------- */
   
.testimonials {
    background-color: #FFFFFF;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* --------------------
   OPINIE – KARUZELA MOBILE / GRID DESKTOP
   -------------------- */

/* GRID/KARUZELA – MOBILE: karuzela pozioma */
.testimonials-grid {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* ukrycie scrollbara (opcjonalne) */
.testimonials-grid::-webkit-scrollbar {
    display: none;
}

/* każdy slide – jedna karta */
.testimonial-card {
    flex: 0 0 80%;          /* ~80% szerokości ekranu na mobile */
    max-width: 80%;
    scroll-snap-align: start;

    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--unnamed-color-dfdfdf);
    padding: 20px;
}

/* każdy slide – jedna karta */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* imię kursantki */
.testimonial-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    font-family: 'Futura PT', Arial, sans-serif;
}

/* gwiazdki */
.testimonial-stars .star {
    font-size: 18px;
    color: #000000; /* czarne gwiazdki */
    margin-left: 2px;
}

/* treść opinii */
.testimonial-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1E1E1E;
}

/* DESKTOP: wracamy do klasycznego grida */
@media (min-width: 1024px) {
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        overflow: visible;
    }

    .testimonial-card {
        flex: none;
        max-width: 100%;
    }
}

/* ----------------------------------
   OPINIE KURSANTEK – BIAŁE TŁO
   ---------------------------------- */
.reviews {
    background-color: #FFFFFF; /* białe */
    padding-top: 60px;
    padding-bottom: 60px;
}

.reviews .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews .review-item {
    background: #FFFFFF; /* upewniamy się że kafelki mają białe tło */
}


/* --------------------
   STATYSTYKI SZKOLEŃ – SVG
   -------------------- */

.stats {
    background-color: #000000;
    color: #ffffff;
    padding-top: 40px;
    padding-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* MOBILE: 2 kolumny */
    gap: 24px 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 40px;     /* dostosuj pod projekt z XD */
    height: 40px;
    margin-bottom: 8px;
    display: block;
}

.stat-number {
    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 4px;
}

.stat-label {
    font-size: 14px;
    margin: 0;
}

/* DESKTOP: 4 w jednym rzędzie */
@media (min-width: 1024px) {
    .stats {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 15px;
        max-width: 220px;
    }
}




/* Przyciski ← → */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav.prev {
    left: -4px;
}

.gallery-nav.next {
    right: -4px;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* --------------------
   FAQ
   -------------------- */

.faq-list {
    margin-top: 24px;
    border-top: 1px solid var(--unnamed-color-dfdfdf);
}

.faq-item {
    border-bottom: 1px solid var(--unnamed-color-dfdfdf);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 12px 0;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-16);
    cursor: pointer;

    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: 600; /* możesz ustawić 500 / 400 jeśli chcesz lżej */
}


.faq-toggle-icon {
    font-size: 18px;
    margin-left: 8px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    font-size: var(--font-14);
    color: var(--unnamed-color-969696);
    padding-right: 16px;
}

.faq-answer p {
    margin: 0 0 12px;
}

/* FAQ open state */

.faq-item.open .faq-answer {
    max-height: 200px; /* wystarczy dla krótkich odpowiedzi v1 */
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
}

/* --------------------
   KONTAKT
   -------------------- */

.contact-inner {
    margin-top: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.contact-info p {
    margin: 0 0 8px;
    font-size: var(--font-14);
}

.contact-note {
    margin-top: 12px;
    color: var(--unnamed-color-969696);
}

.contact-form {
    background-color: var(--unnamed-color-f7f7f7);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--unnamed-color-dfdfdf);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: var(--font-14);
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--unnamed-color-d8d8d8);
    padding: 8px;
    font-family: inherit;
    font-size: var(--font-14);
}

.form-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--unnamed-color-969696);
}

.contact-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----------------------------------
   STOPKA – GÓRNA CZĘŚĆ (KOLUMNY + SOCIAL)
   ---------------------------------- */

.site-footer {
    margin-top: 60px;
}

.footer-main {
    background-color: #FFFFFF;
    padding: 40px 0 50px;
}

.footer-top-line {
    width: 100%;
    height: 2px;
    background-color: #000000;
    margin-bottom: 32px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 3 kolumny z linkami */
.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 40px;
}

.footer-column {
    font-size: 14px;
}

.footer-heading {
    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 10px;
}

.footer-heading-secondary {
    margin-top: 24px;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-list a {
    text-decoration: none;
    color: #000000;
}

.footer-list a:hover {
    text-decoration: underline;
}

/* kontakt z ikonkami */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact .icon-location,
.footer-contact .icon-phone-thin,
.footer-contact .icon-envelope-o {
    font-size: 16px;
    margin-top: 2px;
}

/* SOCIAL MEDIA W STOPCE */
.footer-social {
    /* na mobile: nad kolumnami */
}

/* SOCIAL MEDIA – mniejsze tło, większe ikony */

.footer-social-grid {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Szare tło – zmniejszone o połowę */
.footer-social-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;   /* było 120px → połowa */
    height: 60px;  /* było 120px → połowa */

    background-color: #F7F7F7;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

/* Ikona – 30% większa (z 48px → 62px) */
.footer-social-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-social-item:hover {
    transform: translateY(-4px);
}

/* MOBILE – social nadal wyśrodkowane */
@media (max-width: 767px) {
    .footer-social-grid {
        justify-content: center;
    }
}


/* ----------------------------------
   STOPKA – DOLNA CZĘŚĆ (COPY + RODO)
   ---------------------------------- */

.footer-bottom {
    background-color: #F7F7F7;
    padding: 24px 0 40px;
    font-size: 13px;
}

.footer-copy {
    margin: 0 0 16px;
}

.footer-bottom-line {
    width: 100%;
    height: 1px;
    background-color: #DFDFDF;
    margin-bottom: 16px;
}

.footer-legal {
    margin: 0;
    line-height: 1.6;
    color: #1E1E1E;
}

/* ----------------------------------
   RESPONSYWNOŚĆ
   ---------------------------------- */

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .footer-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex: 1 1 auto;
    }

    .footer-social {
        flex: 0 0 auto;
        margin-left: 40px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .footer-social {
        order: 0; /* ikony nad kolumnami - jak w widoku mobile z XD */
    }

    .footer-columns {
        order: 1;
        grid-template-columns: 1fr;
    }
}


/* --------------------
   MEDIA QUERIES
   -------------------- */

@media (min-width: 768px) {

    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image-wrapper {
        flex: 1;
    }

    .trainings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {

    .header-inner {
        padding: 10px 0;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .main-nav ul {
        display: flex;
        gap: 20px;
    }

    .main-nav a {
        padding: 8px 0;
        font-size: var(--font-14);
    }

    .trainings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TOPBAR */
.topbar {
    width: 100%;
    background-color: #000;
    color: #fff;
    height: 36px;
    display: flex;
    align-items: center;
}

.topbar-inner {
    width: 100%;
    max-width: 1200px; /* zgodnie z containerem */
    margin: 0 auto;
    padding: 0 16px;
    
    display: flex;
    align-items: center;
    justify-content: center; /* MOBILE */
}

.topbar a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

/* DESKTOP: wyrównanie do prawej */
@media (min-width: 768px) {
    .topbar-inner {
        justify-content: flex-end !important;
    }
}



/* --------------------
   VIDEO SECTION
   -------------------- */

.video-section {
    background-color: #000000;
    padding: 24px 0;
    color: #ffffff;
}

/* MOBILE FIRST */
.video-section-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.video-text h2 {
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 16px;
}

/* Film – mobile: pełna szerokość, wysokość ok. 285px */
.video-wrapper {
    width: 100%;
    height: 285px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* DESKTOP – układ 1/3 + 2/3 */
@media (min-width: 1024px) {

    .video-section-inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 40px;
    }

    .video-text {
        flex: 1; /* 1/3 */
    }

    .video-text h2 {
        font-size: 28px;
    }

    .video-wrapper {
        flex: 2; /* 2/3 */
        height: 400px; /* wyższe na PC */
    }
}


/* Sekcja „Chcesz zostać Instruktorem…” – tylko desktop */
@media (max-width: 1023px) {
    #wez-udzial {
        display: none;
    }
}

/* GLOBALNE CTA "ZAMÓW SZYBKĄ WYCENĘ" – wspólna baza */
.training-fast-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Futura PT', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    background-color: #760000 !important;
    color: #FFFFFF !important;
    border: 1px solid #760000 !important;

    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* efekt hover – wspólny dla obu widoków */
.training-fast-cta:hover,
.training-fast-cta:focus {
    background-color: #5a0000;
    color: #FFFFFF;
}

/* MOBILE: sticky full-width na dole ekranu */
@media (max-width: 1023px) {
    .training-fast-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        padding: 14px 24px;
        border-radius: 0;

        text-align: center;
        z-index: 999; /* nad treścią, ale pod nawigacją mobilną */
    }
}

/* DESKTOP: zaokrąglona pigułka wycentrowana na dole */
@media (min-width: 1024px) {
    .training-fast-cta {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);

        padding: 12px 32px;
        border-radius: 999px;
        z-index: 999;
    }
}


.become-instructor-cta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.become-instructor-cta h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.become-instructor-cta p {
    margin-bottom: 12px;
    max-width: 480px;
}

/* Breadcrumbs – ścieżka nawigacji na stronach szkoleń */

.breadcrumb {
    border-bottom: 1px solid #e5e5e5;
    background-color: #fafafa;
    font-size: 0.875rem;
}

.breadcrumb .container {
    padding-top: 10px;
    padding-bottom: 10px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #666666;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #333333;
}

.breadcrumb-item a:hover {
    color: #000000;
}

.breadcrumb-item.is-current span[aria-current="page"] {
    font-weight: 500;
    color: #000000;
}

.breadcrumb-separator {
    margin: 0 4px;
    color: #b3b3b3;
}

/* Na bardzo małych ekranach zawijamy wiersze, ale bez kombinacji */
@media (max-width: 575px) {
    .breadcrumb .container {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Wspólna wysokość całej karuzeli */
.gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 24px;
    height: 420px;
}

/* Pojedynczy slajd */
.gallery-carousel {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    height: 100%;
    align-items: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 80%;
    max-width: 80%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
    scroll-snap-align: start;
    cursor: pointer;
}

/* Desktop: mniejsze slide'y */
@media (min-width: 1024px) {
    .gallery-slide {
        flex: 0 0 30%;
        max-width: 30%;
    }
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* MOBILE – niższa galeria */
@media (max-width: 768px) {
    .gallery-carousel-wrapper {
        height: 280px;
    }
}

/* LIGHTBOX – podgląd zdjęć z galerii */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.lightbox.is-open {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

/* Przycisk zamknięcia */
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Zablokowanie scrolla pod spodem podczas podglądu */
body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .lightbox-inner {
        padding: 12px;
    }

    .lightbox-close {
        top: 8px;
        right: 16px;
        font-size: 24px;
    }
}

/* BLOKADA SCROLLA STRONY POD SPODEM */
body.modal-open {
    overflow: hidden;
}

/* MODAL – pełnoekranowy overlay jako flex-kontener */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TŁO */
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
}

/* WNĘTRZE POPUPU */
.modal-inner {
    position: relative;
    z-index: 10;
    max-width: 640px;              /* szerokość na desktopie */
    width: calc(100% - 32px);      /* marginesy po bokach */
    max-height: 90vh;              /* nie więcej niż wysokość okna - trochę */
    background: #ffffff;
    border-radius: 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    overflow: hidden;              /* zaokrąglenie widoczne z każdej strony */
}

/* PRZYCISK X */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

/* WŁAŚCIWA ZAWARTOŚĆ – SCROLLOWANA WEWNĄTRZ OKNA */
.modal-content {
    padding: 32px;
    padding-top: 48px;             /* przestrzeń pod X */
    flex: 1 1 auto;
    overflow-y: auto;              /* scroll wewnątrz popupu */
}

/* MOBILE */
@media (max-width: 768px) {
    .modal-inner {
        max-width: 100%;
        width: calc(100% - 24px);
        max-height: 90vh;
    }

    .modal-content {
        padding: 24px;
        padding-top: 48px;
    }

    .modal-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
    }
}


/* Sticky CTA – musi być nad wszystkim i klikalny */
.desktop-sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;          /* powyżej headera, mapy itd. */
    display: none;
    cursor: pointer;        /* wymusza "łapkę" */
    pointer-events: auto;
}

@media (min-width: 992px) {
    .desktop-sticky-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-inline: 32px;
        padding-block: 12px;
        border-radius: 999px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    }
}

/* Mobile CTA też jawnie klikalne */
.training-fast-cta {
    cursor: pointer;
    pointer-events: auto;
}

/* Gdy modal jest otwarty – chowamy sticky CTA,
   żeby nie nachodziło na popup */
body.modal-open .desktop-sticky-cta {
    display: none;
}

/* Jeżeli chcesz, możesz też schować mobilne CTA */
body.modal-open .training-fast-cta {
    display: none;
}

#quote-modal .modal-close { pointer-events: auto; }
#quote-modal .modal-backdrop { pointer-events: auto; }
#quote-modal .modal-inner, 
#quote-modal .modal-content { pointer-events: auto; }

/* ===========================================
   MOBILE FIX: reCAPTCHA + ActiveCampaign form
   =========================================== */

/* 
   PROBLEM: reCAPTCHA checkbox nie reaguje na tap na mobile.
   PRZYCZYNA: 
   1. overflow-y:auto na .modal-content przechwytuje touch events
   2. clip-path może blokować interakcje na iOS
   3. iframe reCAPTCHA potrzebuje bezpośredniego dostępu do touch events
*/

@media (max-width: 768px) {
    /* 1. Modal-inner przejmuje scrollowanie ZAMIAST modal-content */
    #quote-modal .modal-inner {
        overflow: visible;           /* KLUCZOWE: nadpisuje overflow:hidden z bazowego stylu */
        overflow-y: auto !important; /* scroll tylko w pionie */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* 2. Modal-content NIE scrolluje - pozwala iframe działać */
    #quote-modal .modal-content {
        overflow: visible !important;
        -webkit-overflow-scrolling: auto;
        /* Formularz musi mieć pełną wysokość, nie być ściskany */
        flex: none;
    }

    /* 3. Formularz ActiveCampaign - wyłączamy transformacje */
    #quote-modal #_form_37_,
    #quote-modal [id^="_form_"] {
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* 4. Element reCAPTCHA - pełna kontrola nad touch */
    #quote-modal .g-recaptcha {
        position: relative !important;
        z-index: 99999 !important;
        touch-action: manipulation !important; /* lepsze dla checkboxów */
        pointer-events: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        isolation: isolate;
        /* Minimalna wysokość żeby iframe się zmieścił */
        min-height: 78px;
    }
    
    /* 5. Iframe reCAPTCHA - musi mieć własny stacking context */
    #quote-modal .g-recaptcha > div,
    #quote-modal .g-recaptcha iframe {
        position: relative !important;
        z-index: 99999 !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
    }

    /* 6. Popup reCAPTCHA (challenge "wybierz obrazki") */
    #quote-modal iframe[title="recaptcha challenge expires in two minutes"] {
        z-index: 2147483647 !important;
    }
}