/* Scroll przy kotwicy uwzględni topbar*/
[id] {
    scroll-margin-top: 100px; /* dopasuj do wysokości topbara */
}

/* === Paleta brandowa === */
:root {
    --brand-primary: #11662D;          /* główny zielony */
    --brand-primary-hover: #0f5b28;    /* ciemniejszy na hover */
    --brand-dark: #122738;             /* tło granatowe */
    --brand-dark-hover: #1a3550;       /* alternatywny ciemny ton (opcjonalny) */
    --brand-light: #ffffff;            /* biały */
    --brand-light-hover: #f4f4f4;      /* jasnoszary hover */
    --brand-text-dark: #122738;        /* ciemny tekst na jasnych tłach */
    --brand-text-light: #ffffff;       /* jasny tekst na ciemnych tłach */
}

/* === Tła globalne === */
.bg-brand-dark {
    background-color: var(--brand-dark) !important;
    color: var(--brand-text-light);
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

/* === Pasek górny landingu (components/topbar-special-navigation) — wygląd jak landing MyFitStudio ===
   Jasne tło jak pierwszy ekran strony, cała zawartość w kontenerze treści (1200 px + 24 px marginesu):
   logo po lewej, menu na środku, po prawej język, „Zaloguj się” jako zwykły link i zaokrąglony zielony
   przycisk. Linia pod paskiem dopiero po przewinięciu (topbar_menu.js → lt-bar--scrolled).
   Pełne menu od 1200 px (5 pozycji + „Więcej”); węższe ekrany: „Zadzwoń”, „Zarejestruj się” (od 576 px)
   i przycisk menu z nakładką na cały ekran. Pasek chowa się przy przewijaniu w dół. */
/* Reading progress over the bar (topbar_menu.js sets scaleX); above the bar and its menu, never hidden. */
.lt-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1004; pointer-events: none; }
.lt-progress span { display: block; height: 100%; background: #11662d; transform: scaleX(0); transform-origin: left center; }
#page-topbar.lt-bar {
    height: 64px;
    background: #fff !important;
    color: #14273a;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    transition: transform 0.35s ease, border-color 0.2s ease;
}
#page-topbar.lt-bar.lt-bar--scrolled { border-bottom-color: #e3e9ef; }
/* Hidden while scrolling down (topbar_menu.js). No will-change: it would break the fixed overlay. */
#page-topbar.lt-bar.lt-bar--hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { #page-topbar.lt-bar { transition: none; } }
.lt-bar__inner { height: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
@media (max-width: 575.98px) { .lt-bar__inner { padding: 0 16px; gap: 12px; } }
.lt-bar__logo { display: flex; align-items: center; flex: none; }
.lt-bar__logo img { width: auto; }
.lt-bar__logo-full { height: 52px; }
.lt-bar__nav { display: none; flex: 1 1 auto; min-width: 0; align-items: stretch; justify-content: center; gap: 28px; height: 100%; }
.lt-bar__nav a, .lt-bar__more-btn {
    display: flex;
    align-items: center;
    color: #14273a;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}
.lt-bar__nav a:hover, .lt-bar__nav a[aria-current="page"], .lt-bar__more-btn:hover, .lt-bar__more-btn.is-active { color: #11662d; }
/* „Więcej” (partnerzy, integracje): wygląda jak pozostałe pozycje, lista to jasna karta pod paskiem. */
.lt-bar__more { display: flex; align-items: stretch; }
.lt-bar__more-btn { gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; }
.lt-bar__more-btn[aria-expanded="true"] { color: #11662d; }
.lt-bar__more-btn:focus-visible { outline: 2px solid #11662d; outline-offset: 2px; border-radius: 4px; }
.lt-bar__more-menu { min-width: 200px; padding: 6px; border: 1px solid #e3e9ef; border-radius: 10px; background: #fff; box-shadow: 0 12px 32px -12px rgba(18, 39, 56, 0.35); }
.lt-bar__more-menu .dropdown-item { padding: 9px 12px; border-radius: 6px; color: #14273a; font-size: 15px; font-weight: 500; }
.lt-bar__more-menu .dropdown-item:hover, .lt-bar__more-menu .dropdown-item:focus { background: #f3f6f9; color: #14273a; }
.lt-bar__more-menu .dropdown-item.active { background: none; color: #11662d; }
.lt-bar__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: none; }
/* Language: the flag of the current language, list of flags on click (light bar, no fill). */
.lt-bar__lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #14273a;
    line-height: 1;
}
.lt-bar__lang-btn:hover, .lt-bar__lang-btn[aria-expanded="true"] { background: #f3f6f9; }
/* Thin outline: the white half of a flag (PL) would otherwise vanish on the white bar. */
.lt-bar__lang img, .lt-menu__langs img { box-shadow: 0 0 0 1px rgba(20, 39, 58, 0.15); }
/* Flags fill their box (object-fit), so the thin outline hugs the flag instead of a white margin. */
.lt-menu__langs img { display: block; width: 28px; height: 20px; object-fit: cover; border-radius: 3px; }
.lt-bar__lang .dropdown-menu { border: 1px solid #e3e9ef; border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(18, 39, 56, 0.35); }
.lt-bar__login, .lt-bar__call { color: #14273a; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.lt-bar__login:hover, .lt-bar__call:hover { color: #14273a; text-decoration: underline; text-underline-offset: 0.2em; }
/* Phone number with a green handset (same look as Michał's number in the home hero). */
.lt-bar__call--phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lt-bar__call--phone:hover { color: #11662d; text-decoration: none; }
.lt-bar__call-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #11662d; color: #fff; font-size: 15px; flex: none; }
@media (max-width: 359.98px) { .lt-bar__call-num { display: none; } }
.lt-bar__login { display: none; }
.lt-bar__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.lt-bar__register:hover { background: #0b4d21; color: #fff; }
.lt-bar__burger {
    position: relative;
    display: flex;
    width: 44px;
    height: 44px;
    flex: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 1.5px solid #e3e9ef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.lt-bar__burger:hover { border-color: #14273a; }
.lt-bar__burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #14273a; transition: transform 0.25s ease; }
.lt-bar__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.lt-bar__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.lt-bar__login:focus-visible, .lt-bar__call:focus-visible, .lt-bar__register:focus-visible, .lt-bar__burger:focus-visible, .lt-bar__lang-btn:focus-visible { outline: 2px solid #11662d; outline-offset: 2px; }
@media (min-width: 1200px) {
    .lt-bar__nav, .lt-bar__login { display: flex; }
    .lt-bar__call, .lt-bar__burger { display: none; }
}
@media (max-width: 575.98px) {
    .lt-bar__register, .lt-bar__lang { display: none; }
    .lt-bar__logo-full { height: 42px; }
}

/* === Przycisk: zielony (główny CTA) === */
.btn-brand-primary {
    background-color: var(--brand-primary);
    color: var(--brand-text-light) !important;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-brand-primary:hover {
    background-color: var(--brand-primary-hover);
    color: var(--brand-text-light) !important;
    transform: translateY(-1px);
}

/* === Przycisk: jasny (sekundarny) === */
.btn-brand-light {
    background-color: var(--brand-light);
    color: var(--brand-text-dark) !important;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-brand-light:hover {
    background-color: var(--brand-light-hover);
    color: var(--brand-text-dark) !important;
    transform: translateY(-1px);
}

/* === Menu mobilne: jasna nakładka na cały ekran pod paskiem (z-index paska Velzon = 1002) === */
.lt-menu.collapse:not(.show) { display: none; }
.lt-menu.collapse.show, .lt-menu.collapsing {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    height: auto !important;
    padding: 64px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: none;
}
.lt-menu__inner { display: flex; flex-direction: column; padding: 12px max(8px, 5vw) 0; }
.lt-menu__link {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e3e9ef;
    color: #14273a;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}
.lt-menu__link:hover, .lt-menu__link[aria-current="page"] { color: #11662d; }
/* "Więcej" in the phone menu (native <details>), like the desktop dropdown. */
.lt-menu__more summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.lt-menu__more summary::-webkit-details-marker { display: none; }
.lt-menu__chevron { margin-left: auto; font-size: 22px; color: #4b6075; transition: transform 0.2s ease; }
.lt-menu__more[open] .lt-menu__chevron { transform: rotate(180deg); }
.lt-menu__link--sub { padding-left: 16px; font-size: 16px; font-weight: 500; }
/* Michał with the phone and WhatsApp at the end of the phone menu. */
.lt-menu__contact { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border-radius: 14px; background: #f3f6f9; }
.lt-menu__contact-face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #11662d; flex: none; }
.lt-menu__contact-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 13px; color: #4b6075; }
.lt-menu__contact-actions { display: flex; gap: 8px; }
.lt-menu__contact-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #11662d; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.lt-menu__contact-btn:hover { background: #0b4d21; color: #fff; }
.lt-menu__contact-btn--wa { padding: 0 12px; background: #fff; color: #11662d; border: 1.5px solid #d5dde5; font-size: 18px; }
.lt-menu__contact-btn--wa:hover { background: #fff; color: #0b4d21; border-color: #11662d; }
.lt-menu__langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; }
.lt-menu__langs a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border: 1.5px solid transparent; border-radius: 8px; }
.lt-menu__langs a.is-active { border-color: #11662d; background: #f3f6f9; }
.lt-menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.lt-menu__register { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 10px; background: var(--brand-primary); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.lt-menu__register:hover { background: #0b4d21; color: #fff; }
.lt-menu__login { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid #d5dde5; border-radius: 10px; color: #14273a; font-size: 16px; font-weight: 600; text-decoration: none; }
.lt-menu__login:hover { border-color: #14273a; color: #14273a; }
/* Strona pod otwartym menu się nie przewija (także na iOS, gdzie samo overflow nie wystarcza). */
html.lt-menu-open, html.lt-menu-open body { overflow: hidden; }
html.lt-menu-open #acw-root { display: none; }
html.lt-menu-open body { position: fixed; top: calc(-1 * var(--lt-menu-scroll-y, 0px)); left: 0; right: 0; width: 100%; }
@media (min-width: 1200px) {
    .lt-menu.collapse.show, .lt-menu.collapsing { display: none; }
}
/* Tablets and narrow desktop windows (768–1199 px): a panel under the bar, only as tall as its content,
   over a dimmed page (owner, 2026-11-27: the full-screen sheet left half of the screen empty). A click
   on the dimmed page closes it (topbar_menu.js). Phones keep the full-screen menu. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .lt-menu.collapse.show, .lt-menu.collapsing {
        inset: 64px 0 auto 0;
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        padding: 4px 24px 24px;
        border-top: 1px solid #e3e9ef;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 24px 48px rgba(20, 39, 58, 0.18);
    }
    .lt-menu__inner { max-width: 1200px; margin: 0 auto; padding: 12px 0 0; }
    html.lt-menu-open body::after {
        content: '';
        position: fixed;
        inset: 64px 0 0 0;
        z-index: 1000;
        background: rgba(20, 39, 58, 0.45);
    }
}

.btn-feature-more {
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.btn-feature-more:hover {
    background-color: var(--brand-primary-hover);
    color: #fff;
    transform: translateY(-2px);
}
/* Narrow phones: with the copy button in the number's capsule the WhatsApp circle stuck out of the grey
   card (owner, 2026-11-27) — smaller photo, and the buttons wrap instead of overflowing. */
.lt-menu__contact-actions { flex-wrap: wrap; }
@media (max-width: 419.98px) {
    .lt-menu__contact { gap: 10px; padding: 12px; }
    .lt-menu__contact-face { width: 44px; height: 44px; }
}
@media (max-width: 419.98px) {
    .lt-menu__contact-actions { gap: 6px; }
    .lt-menu__contact-actions .lt-copy-row--pill > a { padding-left: 12px; padding-right: 40px !important; font-size: 14px; gap: 5px; }
    .lt-menu__contact-actions .lt-copy-row--pill > .lt-copy { right: 6px; width: 28px; height: 28px; }
    .lt-menu__contact-btn--wa { padding: 0 10px; }
}
@media (max-width: 379.98px) {
    .lt-menu__langs { gap: 4px; }
    .lt-menu__langs a { width: 40px; }
}
