/* --- 1. GLOBALNE --- */
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
html, body { overflow-x: hidden; width: 100%; position: relative; }
body { margin: 0; font-family: 'Open Sans', sans-serif; color: #111; background-color: #fff; line-height: 1.6; }
.u-sheet { max-width: 1440px; margin: 0 auto; padding: 0 20px; position: relative; }
.u-clearfix:after { content: ''; display: table; clear: both; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2rem; line-height: 1.15; }
h2 { font-size: 1.6rem; line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.3; }
h5 { font-size: 1rem; line-height: 1.35; }
h6 { font-size: 0.95rem; line-height: 1.35; }

/* logo w headerze jako SVG */
.u-logo-img {
    max-width: 140px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

    /* SVG logo w hero: rysowanie konturu PO KOLEI + wypełnienie */
    .u-hero-logo-draw {
        max-width: 300px;
        max-height: 170px;
        width: 100%;
        height: auto;
        display: inline-block;
        overflow: visible;
        filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
    }

    .u-hero-logo-draw path {
        stroke: #111;
        stroke-width: 18;
        stroke-linecap: round;
        stroke-linejoin: round;

        fill: rgba(17,17,17,0.92);
        fill-opacity: 0;

        stroke-dasharray: 1;
        stroke-dashoffset: 1;

        animation:
            u-logo-stroke-draw 1100ms ease-out both,
            u-logo-fill-in 360ms ease-out both;

        animation-delay:
            calc(var(--i) * 120ms),
            calc(var(--i) * 120ms + 900ms);
    }

    @keyframes u-logo-stroke-draw {
        from { stroke-dashoffset: 1; opacity: 1; }
        to   { stroke-dashoffset: 0; opacity: 1; }
    }

    @keyframes u-logo-fill-in {
        from { fill-opacity: 0; }
        to   { fill-opacity: 1; }
    }

    @media (prefers-reduced-motion: reduce) {
        .u-hero-logo-draw path {
            animation: none;
            stroke-dasharray: none;
            stroke-dashoffset: 0;
            fill-opacity: 1;
        }
    }

/* animacja logo w hero */
.u-hero-logo-animated {
    max-width: 240px;
    max-height: 140px;
    width: auto;
    height: auto;
    display: inline-block;
    transform-origin: 50% 50%;
    animation:
        u-hero-logo-intro 700ms ease-out both,
        u-hero-logo-float 4.5s ease-in-out 700ms infinite;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

@keyframes u-hero-logo-intro {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes u-hero-logo-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.01); }
}

/* szanuj ustawienia systemowe */
@media (prefers-reduced-motion: reduce) {
    .u-hero-logo-animated { animation: none; }
}

/* płynne przewijanie po anchorach */
html { scroll-behavior: smooth; }
#treningi, #dla-kogo, #o-mnie, #studio, #lokalnie { scroll-margin-top: 88px; }

/* H1 w hero (czytelnie, ale bez “krzyczenia”) */
.u-hero-h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 14px 0 8px;
    text-align: center;
}
.u-hero-subline {
    margin: 0 0 10px;
    text-align: center;
    font-weight: 600;
    color: rgba(17,17,17,0.78);
    font-size: 0.95rem;
}

/* Header: pokazuje się dopiero po zniknięciu banera */
.u-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translate3d(0, -110%, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
}
body.u-header-visible .u-header {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}
.u-header .u-sheet {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* przycisk menu (domyślnie ukryty na desktopie) */
.u-nav-toggle {
    display: none;
}

.u-header-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.u-header-link {
    color: #111;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
}
.u-header-link:hover {
    background: rgba(0,0,0,0.06);
}
.u-header-link.is-active {
    background: rgba(0,0,0,0.10);
}
.u-nav-sep {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.15);
    align-self: center;
    flex-shrink: 0;
}
.u-header-link-account {
    display: inline-flex;
    align-items: center;
}

/* ---- PEEK BAR (widoczny przed scrollem) ---- */
#u-peek-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 9996;
    pointer-events: none;
}
@media (hover: hover) {
    #u-peek-zone {
        pointer-events: auto;
    }
}
body.u-header-visible #u-peek-zone {
    pointer-events: none;
}
.u-peek-btn {
    position: fixed;
    top: 10px;
    right: 14px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 200ms ease;
}
body.u-header-visible .u-peek-btn {
    opacity: 0;
    pointer-events: none;
}
.u-peek-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5), 0 1px 3px rgba(255,255,255,0.7);
}
body.u-nav-open .u-peek-line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.u-nav-open .u-peek-line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

body.u-header-visible {
    padding-top: 72px;
}

/* --- 2. ANIMACJE PRZY SKROLOWANIU --- */
.u-svg-draw {
    position: absolute; fill: none; stroke: #ccd3db; stroke-width: 0.8;
    stroke-dasharray: 1000; stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s ease-in-out;
    pointer-events: none; z-index: 5;
}
.u-animated .u-svg-draw { stroke-dashoffset: 0; }

.u-draw-hero { width: 600px; height: 600px; left: -100px; top: -50px; opacity: 0.5; }
.u-draw-classic { width: 500px; height: 500px; left: 50%; transform: translateX(-50%); top: 0px; opacity: 0.6; }
.u-draw-ania { width: 300px; height: 100px; right: 50px; bottom: 100px; stroke: #858e99; }

/* Animacja cienia O Mnie */
.u-image-organic {
    width: 100%; height: 580px; border-radius: 150px 30px 150px 30px !important;
    background-size: cover; background-position: center; position: relative; z-index: 2;
    box-shadow: 0 0 0 rgba(0,0,0,0); transition: box-shadow 2s ease-out;
}
.u-animated .u-image-organic { box-shadow: 20px 20px 0 #ccd3db; }

/* --- 3. LAYOUT I BANER --- */
.u-section-2 { background-color: #f2f2f2; padding: 80px 0; position: relative; overflow: hidden; }
.u-layout-row { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; gap: 30px; }
.u-layout-cell { flex: 1; min-width: 360px; display: flex; flex-direction: column; }
.u-row-reverse { flex-direction: row-reverse; }

.u-hero-circle-bg {
    background-color: #ffffff; width: 500px; height: 500px; border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; z-index: 2;
}
.u-text-1 { font-family: 'Raleway', sans-serif; font-size: 2.8rem; line-height: 1.1; font-weight: 700; margin: 0; text-align: center; }
.u-text-1 small { font-size: 1.8rem; font-weight: 400; color: #555; display: block; margin-top: 10px; }
.u-quote { font-style: italic; font-size: 1.2rem; margin-top: 30px; color: #333; text-align: center; line-height: 1.2; }
.u-author { font-weight: 700; text-transform: uppercase; margin-top: 10px; text-align: center; font-size: 0.9rem; }
.u-line { width: 60px; height: 4px; background: #000; margin: 0 auto 0px; }

/* NOWE: hero jako <img> zamiast background-image */
.u-image-main-banner-img{
    width: 100%;
    height: 700px;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
}

/* --- 4. PAKIETY --- */
.u-section-3 { padding: 80px 0; }
.u-section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; line-height: 1.1; }
.u-repeater { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.u-repeater-item { flex: 0 0 calc(33.33% - 40px); min-width: 300px; display: flex; gap: 20px; align-items: center; }
.u-icon-box { width: 70px; height: 70px; background-color: #ccd3db; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
.u-svg-icon { width: 35px; height: 35px; fill: #333; }
.u-text-box h5 { font-size: 1.4rem; font-weight: 700; margin: 0; font-family: 'Roboto Condensed', sans-serif; line-height: 1.1; }
.u-link-more { cursor: pointer; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid #000; font-size: 0.8rem; display: block; width: max-content; margin-top: 10px; transition: 0.3s; }

/* --- 5. MODAL SYSTEM --- */
.u-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 10000; }
.u-modal-overlay.active { display: flex; }
.u-modal-content { background: #fff; width: 95%; max-width: 850px; padding: 60px; border-radius: 15px; position: relative; text-align: center; max-height: 90vh; overflow-y: auto; }
.u-modal-close-wrap { position: sticky; top: -60px; margin: -60px -60px 0; padding: 16px 20px 12px; display: flex; justify-content: flex-end; background: #fff; z-index: 10; }
.u-modal-close { font-size: 42px; cursor: pointer; color: #555; line-height: 1; transition: color 0.2s; }
.u-modal-body-text { font-size: 1.2rem; line-height: 1.6; color: #444; margin: 30px 0; text-align: left; white-space: pre-wrap; }
.u-modal-price-tag { font-weight: 700; font-size: 1.3rem; color: #000; background: #e0e5eb; padding: 15px; border-radius: 5px; }

/* Zdjęcie w modalu */
.u-modal-photo{
    margin: 18px 0 0;
}

.u-modal-photo-img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}
/* --- 6. SEKCJE GRAFICZNE --- */
.u-section-4, .u-section-5, .u-section-6 { padding: 70px 0; overflow: hidden; position: relative; }

/* --- 6.x: sekcja 6 – zdjęcie tylko na mobile (w środku szarego boksu) --- */
.u-section6-media{
    display: none; /* desktop: nie pokazujemy */
}

.u-section6-img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.u-image-circle { border-radius: 50% !important; width: 450px; height: 450px; margin: 0 auto; background-size: cover; position: relative; z-index: 2; }
.u-img-classic { background-image: url("/img/pilates-klaszyczny-dla-kazdego.webp"); }
.u-img-ania { background-image: url("/img/ania-toczewska.webp"); }
.u-boxed-content { background-color: #e0e5eb; padding: 60px; border-radius: 10px; position: relative; z-index: 2; }
.u-lead-text { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 20px; }

/* --- 7. KONTAKT I CHECKLISTA --- */
.u-checklist { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.u-checklist li:before { content: '✓'; margin-right: 10px; font-weight: 900; }
.u-section-9 { padding: 80px 0; }
.u-section-9 .u-palette-5-dark-1 { background: #454545; color: #fff; padding: 30px; border-radius: 10px 0 0 10px; }
.u-section-9 .u-white { background: #fff; border: 1px solid #eee; border-radius: 0 10px 10px 0; }

/* ======= MOJE STUDIO: podział 50/50 + bez gapu (jedna definicja) ======= */
.u-section-9 .u-layout-row{
    gap: 0px;
    align-items: stretch;
}

.u-section-9 .u-layout-row > .u-layout-cell{
    flex: 0 0 50%;
    min-width: 0;
}

/* ======= MOJE STUDIO: prawa kolumna = samo video (bez paddingu i bez bordera) ======= */
.u-section-9 .u-white.u-studio-video-cell{
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.u-section-9 .u-white.u-studio-video-cell .u-container-layout{
    padding: 0;
}

/* ======= MOJE STUDIO: video (jedna definicja, spójna) ======= */
.u-studio-video{
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #000;

    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ======= JAK DOJECHAĆ: mapa + dane ======= */
.u-section-dojazd{
    padding: 70px 0;
}

.u-dojazd-title{
    margin-bottom: 28px;
}

.u-dojazd-grid{
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 30px;
    align-items: stretch;
}

.u-dojazd-map{
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f2f2f2;
    min-height: 420px;
}

.u-dojazd-iframe{
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.u-dojazd-box{
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.u-dojazd-box .u-btn-black{
    margin-top: 10px;
    text-align: center;
}

.u-btn-black { display: inline-block; background: #000; color: #fff !important; padding: 15px 40px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; }
.u-btn-white { display: inline-block !important; background: #fff !important; color: #000 !important; padding: 15px 40px; text-decoration: none; font-weight: 700; border: 1px solid #000; cursor: pointer; margin-top: 20px; }

.u-footer { padding: 40px 0; background: #333; color: #fff; text-align: center; }

.u-footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.u-footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.u-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- STICKY CTA (dolny pasek rezerwacji) --- */
.u-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 9998;
    display: flex;
    justify-content: center;
    pointer-events: none;

    transform: translate3d(0, 140%, 0);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
}

/* delikatne przyciemnienie tła za stickym — poprawia czytelność na białym */
.u-sticky-cta::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 140px;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.16) 0%,
            rgba(0,0,0,0.08) 35%,
            rgba(0,0,0,0.00) 100%
    );
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.u-sticky-cta.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
}

.u-sticky-cta.is-visible::before {
    opacity: 1;
}

.u-sticky-cta-inner {
    width: min(980px, calc(100% - 40px));
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;

    box-shadow:
            0 18px 50px rgba(0,0,0,0.20),
            0 2px 0 rgba(255,255,255,0.65) inset;

    pointer-events: auto;
    isolation: isolate;
}

/* akcent (linia) — zostawiamy, ale odsuwamy od „notcha” */
.u-sticky-cta-inner::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111 0%, #ccd3db 55%, #111 100%);
    opacity: 0.9;
    z-index: 1;
}

/* „wystające” półkole / notch w środku */
/* „wystające” półkole / notch w środku */
.u-sticky-cta-notch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(0,0,0,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
    z-index: 2;
}

/* Logo na środku — wychodzi bardziej ponad pasek (wyżej niż było) */
.u-sticky-cta-logo {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;

    width: 79px;
    height: 79px;
    margin-top: -55px;

    border-radius: 999px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.14);
    box-shadow:
            0 16px 34px rgba(0,0,0,0.18),
            0 2px 0 rgba(255,255,255,0.7) inset;

    text-decoration: none;
}

.u-sticky-cta-logo-img{
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}

/* Przyciski lewo/prawo */
.u-sticky-cta-action{
    appearance: none;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;

    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
    z-index: 3;
}

.u-sticky-cta-action--solid{
    background: #111;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.u-sticky-cta-action--solid:hover{
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.26);
}

.u-sticky-cta-action--ghost{
    background: rgba(255,255,255,0.75);
    color: #111;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.u-sticky-cta-action--ghost:hover{
    background: rgba(255,255,255,0.92);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.u-sticky-cta-action:active{
    transform: translateY(0);
}

.u-sticky-cta-action:focus-visible{
    outline: 3px solid rgba(204, 211, 219, 0.95);
    outline-offset: 3px;
}

.u-sticky-cta-action-icon{
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.u-sticky-cta-action-text{
    display: inline-block;
}

/* Desktop: teksty obok przycisków */
.u-sticky-cta-side{
    display: inline-flex;
    align-items: center;
    gap: 30px;
    z-index: 3;
}

.u-sticky-cta-side-lead{
    font-weight: 900;
    letter-spacing: 0.01em;
    color: rgba(17,17,17,0.86);
    white-space: nowrap;
}

/* wyrównanie: do środka */
.u-sticky-cta-inner > :first-child{ justify-self: center; }
.u-sticky-cta-inner > :last-child{ justify-self: center; }

/* --- 8. MOBILE --- */
@media (max-width: 560px) {

    .u-sticky-cta-side-lead{ display: none; }

    .u-sticky-cta-side{
        gap: 12px;
    }

    .u-sticky-cta::before {
        height: 120px;
    }

    .u-sticky-cta-inner {
        width: calc(100% - 24px);
        padding: 12px 8px;
        gap: 10px;
        border-radius: 16px;
    }

    .u-sticky-cta-notch::after{
        top: -26px;
        width: 60px;
        height: 76px;
    }

    .u-sticky-cta-logo{
        width: 76px;
        height: 76px;
        margin-top: -48px;
        margin-left: 4px;
    }

    .u-sticky-cta-logo-img{
        width: 56px;
        height: 56px;
    }

    .u-sticky-cta-action{
        padding: 11px 12px;
        gap: 8px;
    }

    .u-sticky-cta-action-text{
        font-size: 0.95rem;
    }
}


.u-booking-content {
    max-width: 520px;
}

.u-booking-label {
    display: block;
    font-weight: 600;
    margin: 12px 0 6px;
}

.u-booking-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    background: #fff;
    color: #111;
}

/* Normalizacja date input */
.u-date-input {
    background-color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 15px;
    line-height: 1.2;
}

/* Pseudo-placeholder: tylko Safari (żeby nie mieszać Chrome) */
body.is-safari .u-date-input {
    -webkit-appearance: none;
    appearance: none;
}

/* gdy brak wartości, chowamy natywny zapis daty i pokazujemy tekst */
body.is-safari .u-date-input:not(.has-value)::-webkit-datetime-edit {
    color: transparent;
}

body.is-safari .u-date-input:not(.has-value)::before {
    content: attr(data-placeholder);
    color: rgba(17,17,17,0.55);

    /* żeby nie zawijało na 2 linie */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    display: block;
    line-height: 1.2;
}

/* gdy jest wartość, pokazujemy datę normalnie */
body.is-safari .u-date-input.has-value::-webkit-datetime-edit {
    color: #111;
}

.u-booking-slots {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.u-booking-alt-note {
    margin: 10px 0 0;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(204, 211, 219, 0.35);
    border: 1px solid rgba(0,0,0,0.08);
    color: #111;
    font-weight: 600;
    line-height: 1.35;
}

.u-booking-slot {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, color 140ms ease;
}

.u-booking-slot:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.10);
}

.u-booking-slot.is-selected {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 14px 26px rgba(0,0,0,0.18);
}

.u-booking-slot:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.u-booking-form {
    margin-top: 12px;
}

.u-booking-form .u-btn-black {
    border-radius: 10px;
}

.u-booking-account-content {
    max-width: 430px;
}

.u-booking-account-content .u-btn-black {
    width: 100%;
    margin-top: 8px;
    border-radius: 10px;
}

.u-booking-account-code-wrap {
    margin-top: 10px;
}

.u-booking-account-message {
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #444;
}

.u-booking-account-message.is-error {
    color: #9b1c1c;
}

.u-booking-account-message.is-success {
    color: #135a2e;
}

.u-booking-message {
    margin-top: 10px;
    font-weight: 600;
}

.u-booking-body {
        position: relative;
        min-height: 220px;
        overflow: hidden;
        isolation: isolate;
    }

    .u-booking-thanks {
        position: absolute;
        inset: 0;
        z-index: 50;

        background: #ffffff;
        opacity: 1;

        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);

        display: grid;
        place-items: center;
        text-align: center;
        padding: 16px;

        border-radius: 10px;

        pointer-events: auto;
    }

.u-thanks-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #f4f4f4;
    display: grid;
    place-items: center;
}

.u-thanks-icon svg {
    width: 40px;
    height: 40px;
    fill: #111;
}

/* Sekcja "Pilates Michałowice / Reguły" – tekst + zdjęcie */
.u-local-grid{
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
}

.u-local-text p{
    margin-top: 0;
}

.u-local-media{
    width: 100%;
}

.u-local-img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

/* --- Przerywnik między sekcjami (mobile only) --- */
.u-section-divider{
    display: none; /* desktop: ukryty */
}


/* --- 8. MOBILE --- */
@media (max-width: 991px) {

    /* Przyciemnienie strony pod rozwiniętym menu (kliknięcie w tło zamknie menu dzięki Twojemu JS) */
    body::before{
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 9990; /* poniżej headera (9999), powyżej treści */
    }

    .u-nav-backdrop{
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 9990; /* poniżej headera (9999), powyżej reszty */
    }

    body.u-nav-open::before{
        opacity: 1;
        pointer-events: auto;
    }

    /* upewniamy się, że dropdown menu jest ponad przyciemnieniem */
    .u-header{
        z-index: 9999;
    }

    /* Mobile: sekcja Studio ma już 1-kolumnowy układ przez .u-layout-row -> column,
           więc tylko dopieszczamy spacing video */
    /* Full width na mobile: Studio + Dojazd (bez zaokrągleń) */
    .u-section-9 .u-sheet,
    .u-section-dojazd .u-sheet{
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .u-section-9 .u-palette-5-dark-1,
    .u-section-9 .u-white{
        border-radius: 0;
        padding: 28px 16px;
    }

    /* nadpisanie: prawa kolumna z video ma być bez paddingu/borderu także na mobile */
    .u-section-9 .u-white.u-studio-video-cell{
        padding: 0;
        border: 0;
        background: transparent;
        border-radius: 0;
    }

    .u-studio-video{
        border-radius: 0;
    }

    .u-dojazd-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .u-dojazd-map{
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        min-height: 360px;
    }

    .u-dojazd-iframe{
        height: 360px;
    }

    .u-dojazd-box{
        margin: 15px;
        padding: 24px 16px;
    }

    .u-studio-video-wrap{
        border-radius: 16px;
        margin: 0 0 16px;
        box-shadow: 0 14px 28px rgba(0,0,0,0.10);
    }

    .u-section-divider{
        display: block;
        background: #fff;              /* biała przerwa */
        padding: 46px 0;               /* “oddech” między szarymi blokami */
        position: relative;
        overflow: hidden;
    }

    .u-section-divider .u-sheet{
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        min-height: 110px;
    }

    .u-draw-divider{
        width: 220px;
        height: 220px;
        left: -80px;
        top: -60px;
        opacity: 0.55;
    }

    .u-draw-divider-2{
        width: 160px;
        height: 160px;
        right: -60px;
        bottom: -70px;
        opacity: 0.45;
    }

    .u-local-grid{
        grid-template-columns: 1fr;
    }

    .u-local-media{
        order: 2;
    }

    .u-layout-row { flex-direction: column !important; text-align: center; }
    .u-padding-right { padding-right: 0; }

    .u-logo-img {
        max-width: 120px;
        max-height: 52px;
    }

    .u-hero-logo-draw {
        max-width: 220px;
        max-height: 130px;
    }

    .u-hero-logo-animated {
        max-width: 200px;
        max-height: 120px;
    }

    .u-hero-logo-draw {
        max-width: 240px;
        max-height: 140px;
    }

    .u-hero-circle-bg { width: 90vw; height: 90vw; border-radius: 50%; padding: 40px; }
    .u-image-circle-mobile { border-radius: 50% !important; width: 90vw; height: 90vw; margin: 0 auto; }

    /* dopasowanie height na mobile dla hero img */
    .u-image-main-banner-img{ height: 90vw; }

    .u-image-circle, .u-image-organic { width: 85vw; height: 85vw; margin-bottom: 30px; }
    .u-repeater-item { flex: 100%; flex-direction: row; gap: 15px; text-align: left; }
    .u-icon-box { width: 60px; height: 60px; }
    .u-section-title, h1, h2, h3 { line-height: 1.1 !important; }
    .u-checklist { grid-template-columns: 1fr; text-align: left; }
    .u-modal-content { width: 100%; height: 100%; border-radius: 0; padding: 100px 25px 40px; max-height: 100vh; }
    .u-modal-close-wrap { top: -100px; margin: -100px -25px 0; }

    .u-svg-draw { display: block; transform: scale(1.2); opacity: 0.3; }
    .u-draw-classic { top: 0; left: 50%; transform: translateX(-50%) scale(1.2); }

    .u-header .u-sheet { min-height: 64px; }

    /* mobile układ: logo + przycisk, a menu w dropdownie */
    .u-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 40px;
        padding: 0;
        background: none;
        border: none;
    }

    .u-nav-toggle:focus-visible{
        outline: 3px solid rgba(204, 211, 219, 0.95);
        outline-offset: 3px;
    }

    /* “delikatny hamburger” z DWOMA liniami */
    .u-nav-toggle-icon{
        width: 18px;
        height: 14px;
        position: relative;
        display: inline-block;
    }

    .u-nav-toggle-line{
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(17,17,17,0.88);
        border-radius: 999px;
        transform-origin: center;
        transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
    }

    .u-nav-toggle-line:nth-child(1){ top: 3px; }
    .u-nav-toggle-line:nth-child(2){ top: 9px; }

    /* stan otwarty: robi się “X” (bez trzeciej kreski) */
    body.u-nav-open .u-nav-toggle-line:nth-child(1){
        top: 6px;
        transform: rotate(45deg);
    }

    body.u-nav-open .u-nav-toggle-line:nth-child(2){
        top: 6px;
        transform: rotate(-45deg);
    }

    .u-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        margin-top: 10px;
        padding: 10px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.10);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    body.u-nav-open .u-header-nav { display: flex; }

    .u-nav-sep {
        width: 100%;
        height: 1px;
        background: rgba(0,0,0,0.10);
        align-self: stretch;
    }

    .u-header-link {
        font-size: 1rem;
        padding: 12px 12px;
        border-radius: 12px;
        text-align: left;
        width: 100%;
    }

    #treningi, #dla-kogo, #o-mnie, #studio, #lokalnie { scroll-margin-top: 78px; }

    .u-hero-h1 {
        font-size: 1.15rem;
        margin: 12px 0 8px;
    }
    .u-hero-subline {
        font-size: 0.9rem;
    }

    /* sekcja "Czy pilates jest dla Ciebie?" na full width (jak lokalnie) */
    .u-section-6{
        background: #e0e5eb;
    }

    .u-section-6 .u-sheet{
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .u-section-6 .u-boxed-content{
        background: transparent;
        border-radius: 0;
        padding: 28px 16px;
    }

    /* zdjęcie w sekcji 6: pokazujemy TYLKO na mobile, w środku boksu */
    .u-section6-media{
        display: block;
        margin: 18px 0 10px;
    }

    .u-section6-img{
        border-radius: 18px;
    }

    /* ======= MOBILE: zdjęcie pod sekcją - full width, bez marginesów i bez radius ======= */
    .u-section-6-photo .u-sheet {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .u-section-6-photo {
        padding: 0;
    }

    .u-fullbleed-img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
    }

    /* ======= MOBILE: sekcja lokalnie na pełną szerokość (szary podkład) ======= */
    .u-section-10 {
        background: #e0e5eb;
    }

    .u-section-10 .u-sheet {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .u-section-10 .u-boxed-content {
        background: transparent;
        border-radius: 0;
        padding: 28px 16px;
    }

    .u-sheet { padding-left: 14px; padding-right: 14px; }

    .u-boxed-content { padding: 28px 18px; }
}
