/* BXM theme contract. New sections should consume these tokens directly.
 * Existing homepage selectors are adapted below; photos are never inverted. */
:root {
 --bxm-theme-bg:#fff; --bxm-theme-surface:#f3f5f6; --bxm-theme-raised:#fff;
 --bxm-theme-text:#242d33; --bxm-theme-muted:#596670; --bxm-theme-line:#c9d2db;
 --bxm-theme-accent:#286bd2; --bxm-theme-radius:12px; --bxm-theme-pill:999px;
}
html[data-bxm-theme="dark"] {
 --bxm-theme-bg:#101316; --bxm-theme-surface:#181d22; --bxm-theme-raised:#222a33;
 --bxm-theme-text:#edf2f6; --bxm-theme-muted:#b3bec9; --bxm-theme-line:#37424e;
 --bxm-theme-accent:#82b4ff; color-scheme:dark; background:var(--bxm-theme-bg);
}
.bxm-home-header .bxm-theme-switch {
 display:none; place-items:center; position:relative; flex:0 0 64px;
 width:64px; height:44px; padding:0; border:0; border-radius:var(--bxm-theme-pill);
 color:#101316; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent;
}
html[data-bxm-theme] .bxm-home-header .bxm-theme-switch { display:inline-grid; }
.bxm-theme-switch__track { display:block; position:relative; width:62px; height:36px; border:2px solid currentColor; border-radius:var(--bxm-theme-pill); }
.bxm-theme-switch__disc { position:absolute; width:24px; height:24px; right:4px; top:4px; border-radius:50%; background:currentColor; transition:transform 220ms ease,opacity 160ms ease; }
.bxm-theme-switch__moon { position:absolute; width:25px; height:25px; left:4px; top:3px; fill:currentColor; opacity:0; transform:translateX(20px); transition:transform 220ms ease,opacity 160ms ease; }
.bxm-home-header .bxm-theme-switch:focus-visible { outline:3px solid var(--bxm-theme-accent); outline-offset:3px; }
.bxm-theme-switch:hover .bxm-theme-switch__track { box-shadow:0 0 0 4px #3274d214; }
.bxm-home-header__brand .bxm-theme-logo-dark { display:none; }
html[data-bxm-theme="dark"] .bxm-theme-switch { color:#fff; }
html[data-bxm-theme="dark"] .bxm-theme-switch__disc { opacity:0; transform:translateX(-24px); }
html[data-bxm-theme="dark"] .bxm-theme-switch__moon { opacity:1; transform:none; }
html[data-bxm-theme="dark"] .bxm-theme-logo-light { display:none; }
html[data-bxm-theme="dark"] .bxm-home-header__brand .bxm-theme-logo-dark { display:block; }
@media(min-width:1201px) {
 .bxm-home-header__main-wrap { grid-template-columns:clamp(245px,20vw,365px) minmax(0,1fr) auto auto; gap:clamp(14px,1.3vw,24px); }
 .bxm-home-header__navigation { gap:clamp(20px,1.35vw,28px); }
 .bxm-home-header__main-actions { gap:10px; }
}
@media(min-width:1201px) and (max-width:1899px) {
 .bxm-home-header__search summary > span { display:none; }
 .bxm-home-header__languages { position:absolute;right:0;top:-60px;height:26px; }
 .bxm-home-header__utility-access { padding-right:122px; }
}
@media(max-width:1200px) {
 .bxm-home-header__brand { order:0; width:min(52vw,340px); }
 .bxm-home-header .bxm-theme-switch { order:1; margin-left:auto; }
 .bxm-home-header__toggle { order:2; }
 .bxm-home-header__main-wrap { gap:12px; }
}
@media(max-width:480px) {
 .bxm-home-header__toggle-label { display:none; }
 .bxm-home-header__toggle { width:44px; min-width:44px; justify-content:center; }
 .bxm-home-header .bxm-theme-switch { flex-basis:58px; width:58px; }
 .bxm-theme-switch__track { width:56px; }
 .bxm-home-header__brand { width:min(51vw,245px); }
}
@media(prefers-reduced-motion:reduce) { .bxm-theme-switch * { transition:none!important; } }

/* Header and opening content. */
html[data-bxm-theme="dark"] body { background:var(--bxm-theme-bg); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-home-header,.bxm-home-prelude,.bxm-home-legacy-intro,.bxm-home-modern-section) {
 --header-blue:var(--bxm-theme-accent); --header-line:var(--bxm-theme-line);
 --bxm-blue:var(--bxm-theme-accent); --bxm-blue-deep:#a3c9ff;
 --bxm-ink:var(--bxm-theme-text); --bxm-copy:var(--bxm-theme-muted);
 --bxm-line:var(--bxm-theme-line); --bxm-soft:var(--bxm-theme-surface);
 color:var(--bxm-theme-text); border-color:var(--bxm-theme-line);
}
html[data-bxm-theme="dark"] :is(.bxm-home-header,.bxm-home-header__main,.bxm-home-header__navigation,.bxm-home-header__search summary,.bxm-home-header__search form,.bxm-home-modern-section,.bxm-home-legacy-intro) { background:var(--bxm-theme-bg); }
html[data-bxm-theme="dark"] :is(.bxm-home-header__utility,.bxm-home-prelude) { background:var(--bxm-theme-surface); color:var(--bxm-theme-muted); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] .bxm-home-header__utility-top { background:#252d35; }
html[data-bxm-theme="dark"] .bxm-home-header__utility a { color:var(--bxm-theme-muted)!important; }
html[data-bxm-theme="dark"] :is(.bxm-home-header__navigation a,.bxm-home-header__search summary,.bxm-home-prelude__title,.bxm-home-header__toggle) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-home-prelude__title-accent,.bxm-home-prelude__aside > p,.bxm-home-prelude__scroll) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] .bxm-home-header__toggle-lines i { background:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-home-header__toggle { background:transparent; }
html[data-bxm-theme="dark"] .bxm-home-header__search button { background:#286bd2; border-color:#286bd2; }
html[data-bxm-theme="dark"] .bxm-home-header__search[open] summary svg { background:var(--bxm-theme-raised); }
html[data-bxm-theme="dark"] .bxm-home-header__search :is(form,input) { border-color:var(--bxm-theme-line); background:var(--bxm-theme-raised); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] a.bxm-action:not(.bxm-action--primary):not(.bxm-guide-chapter__primary) { color:var(--bxm-theme-text)!important; }
html[data-bxm-theme="dark"] .bxm-ambient__tracks { stroke:#44505c; }
html[data-bxm-theme="dark"] #mobslider.bxm-mobile-slider,
html[data-bxm-theme="dark"] #mobslider .bxm-mobile-slider__surface { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #mobslider .bxm-mobile-slider__title { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #mobslider :is(.bxm-mobile-slider__title-accent,.bxm-mobile-slider__copy,.bxm-mobile-slider__services) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] #mobslider .bxm-mobile-slider__eyebrow { color:var(--bxm-theme-accent); }

/* Retained photographic hero: adapt its captions, never the photographs. */
html[data-bxm-theme="dark"] #slider .bxm-lite-slider { background:var(--bxm-theme-bg); }
html[data-bxm-theme="dark"] #slider :is(.bxm-lite-slider__yacht-title,.bxm-lite-slider__yacht-subtitle,.bxm-lite-slider__responsive-title,.bxm-lite-slider__responsive-subtitle) { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__slide:has(.bxm-lite-slider__cms-title)::after { content:""; position:absolute; inset:0; background:#101316df; pointer-events:none; z-index:1; }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__slide:has(.bxm-lite-slider__cms-title) .bxm-lite-slider__stage { z-index:2; }
html[data-bxm-theme="dark"] #slider :is(.bxm-lite-slider__cms-title,.bxm-lite-slider__cms-copy) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__cta { background:var(--bxm-theme-raised); border-color:var(--bxm-theme-muted); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__cta:is(:hover,:focus-visible) { background:var(--bxm-theme-accent); color:var(--bxm-theme-bg); border-color:var(--bxm-theme-accent); outline-color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] #slider :is(.bxm-lite-slider__arrow,.bxm-lite-slider__pause) { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); border:1px solid var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #slider :is(.bxm-lite-slider__arrow,.bxm-lite-slider__pause):hover { background:var(--bxm-theme-raised); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__dot { background:var(--bxm-theme-raised); border-color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__dot.is-active { background:var(--bxm-theme-accent); border-color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #slider .bxm-lite-slider__timebar { background:var(--bxm-theme-accent); }
/* The legacy separator contains a white diagonal texture. Preserve its
 * spacing, but let it merge with the next section in the dark theme. */
html[data-bxm-theme="dark"] #bxm-pasek { background:var(--bxm-theme-surface); border-color:var(--bxm-theme-surface); }

/* Editorial content, process and metrics. */
html[data-bxm-theme="dark"] .bxm-home-legacy-intro #bxm-sekcja-1 { border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #bxm-sekcja-1 #tworzenie-stron-haslo { color:var(--bxm-theme-text)!important; }
html[data-bxm-theme="dark"] #bxm-sekcja-1 #tworzenie-stron-cd { color:var(--bxm-theme-muted)!important; }
html[data-bxm-theme="dark"] #wiedza.bxm-home-knowledge { background:var(--bxm-theme-bg); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #wiedza :is(.bxm-home-knowledge__header h2,.bxm-home-knowledge__topic h3) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] #wiedza :is(.bxm-home-knowledge__summary > p,.bxm-home-knowledge__topic > p:last-child) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] #wiedza :is(.bxm-home-knowledge__headline .bxm-home-modern__eyebrow,.bxm-home-knowledge__topic .bxm-home-knowledge__label,.bxm-home-knowledge__index,.bxm-home-knowledge__icon) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] #wiedza .bxm-home-modern__link { color:var(--bxm-theme-text)!important; }
html[data-bxm-theme="dark"] #wiedza .bxm-home-modern__link:is(:hover,:focus-visible) { color:var(--bxm-theme-accent)!important; }
html[data-bxm-theme="dark"] #wiedza .bxm-home-knowledge__topics { border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #wiedza .bxm-home-knowledge__topic:not(:first-child)::before { background:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] :is(.bxm-home-offer__list,.bxm-home-knowledge__summary > p,.bxm-home-knowledge__topic > p:not(.bxm-home-knowledge__label)) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] :is(.bxm-home-process,.bxm-home-knowledge,.bxm-home-knowledge__topic,.bxm-home-process__item) { background:var(--bxm-theme-bg); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] :is(.bxm-home-knowledge__topic h3,.bxm-home-knowledge__headline h2) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-home-knowledge__label,.bxm-home-knowledge__index,.bxm-home-modern__eyebrow) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] :is(.bxm-home-knowledge__icon,.bxm-home-offer__icon) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] :is(.bxm-home-knowledge__icon svg,.bxm-home-offer__icon svg) { stroke:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] #sekcjakolorystyka1.bxm-home-experience { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(#bxm-experience-title,.bxm-home-experience__metric h3) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-home-experience__lead,.bxm-home-experience__copy) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] :is(.bxm-home-experience__eyebrow,.bxm-home-experience__number) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-home-experience__icon { stroke:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-home-experience__metric { border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] #formulae .bxm-brand-story__edge { background:var(--bxm-theme-bg); }

/* Real project photographs retain their natural colors and paper backgrounds. */
html[data-bxm-theme="dark"] :is(.bxm-projects,.bxm-reviews,#bxm-strona-3a) { background:var(--bxm-theme-bg); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-projects__heading h2,.bxm-projects__info h3,.bxm-projects__caption h3,.bxm-projects__count strong,.bxm-projects__all,.bxm-reviews__heading h2,.bxm-reviews__quote blockquote p,.bxm-reviews__quote figcaption) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-projects__lead,.bxm-projects__heading > p,.bxm-projects__caption p,.bxm-projects__info p,.bxm-projects__count,.bxm-projects__hint,.bxm-reviews__heading > p,.bxm-reviews__quote figcaption small,.bxm-reviews__count) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] :is(.bxm-projects__eyebrow,.bxm-projects__link,.bxm-reviews a,.bxm-reviews__stars,.bxm-reviews__quote-mark) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-projects__visit { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-reviews__inner { border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] :is(.bxm-projects__control,.bxm-projects__zoom,.bxm-reviews__controls button) { background:var(--bxm-theme-surface); border-color:var(--bxm-theme-line); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-projects__dialog[open] { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-projects__dialog-head,.bxm-projects__dialog-head button) { background:var(--bxm-theme-raised); color:var(--bxm-theme-text); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] :is(.bxm-projects__dialog-head p,.bxm-projects__image-status) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] .bxm-projects__dialog-head a { color:var(--bxm-theme-accent); }

/* Contact keeps its aligned layout, blue actions and rounded fields. */
html[data-bxm-theme="dark"] #formularz_kontaktowy_pc.bxm-contact-v55 { background:var(--bxm-theme-surface); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-contact-v55 :is(label,h2,legend) { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-contact-v55 :is(input,select,textarea) { color:var(--bxm-theme-text); border-color:var(--bxm-theme-line); background:var(--bxm-theme-bg); }
html[data-bxm-theme="dark"] .bxm-contact-v55 :is(input,textarea)::placeholder { color:#a0adba; opacity:1; }
html[data-bxm-theme="dark"] .bxm-contact-v55 :is(input,select,textarea):focus { outline-color:#82b4ff45; border-color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] :is(.bxm-contact-v55__details > p:not(.bxm-projects__eyebrow),.bxm-contact-v55__brief summary small,.bxm-contact-v55__features legend small,.bxm-contact-v55__downloads small,.bxm-contact-v55__send > small) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] :is(.bxm-contact-v55__brief,.bxm-contact-v55__extra) { border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] .bxm-contact-v55__extra { background:var(--bxm-theme-raised); }
html[data-bxm-theme="dark"] .bxm-contact-v55__features label { background:var(--bxm-theme-surface); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] .bxm-contact-v55__features label:has(:checked) { background:#203956; border-color:var(--bxm-theme-accent); color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] :is(.bxm-contact-v55__brief > summary,.bxm-contact-v55__extra > summary,.bxm-contact-v55__mail,.bxm-contact-v55__send small a) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-v55-button:not(.bxm-v55-button--primary) { color:var(--bxm-theme-text); border-color:var(--bxm-theme-line); }
html[data-bxm-theme="dark"] .bxm-v55-button:not(.bxm-v55-button--primary):hover { background:var(--bxm-theme-raised); }
html[data-bxm-theme="dark"] .bxm-contact-v55__status { background:var(--bxm-theme-raised); }
html[data-bxm-theme="dark"] .bxm-footer-v55 { background:#0c2635; }
/* This source is already white lettering on a flat blue strip. Map only that
 * strip to monochrome and blend black away, preserving the original marks. */
html[data-bxm-theme="dark"] .bxm-footer-v55__marks img { filter:grayscale(1) contrast(4); mix-blend-mode:screen; }
html[data-bxm-theme="dark"] #bxm-sekcja-3:has(> #bxm-sekcja-center-1 > .container > .row) {
 --bxm-contact-ink:var(--bxm-theme-text); --bxm-contact-copy:var(--bxm-theme-muted);
 --bxm-contact-blue:var(--bxm-theme-accent); --bxm-contact-blue-dark:#a3c9ff;
 background:var(--bxm-theme-bg); color:var(--bxm-theme-text); border-color:var(--bxm-theme-line);
}

/* The silver guide remains silver. Only its speech surfaces change. */
html[data-bxm-theme="dark"] .bxm-robot-guide { --guide-surface:#1c2a3a; --guide-line:#405973; color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-robot-guide[data-surface="yellow"] { --guide-surface:#302d22; --guide-line:#635b3e; }
html[data-bxm-theme="dark"] .bxm-robot-guide[data-surface="silver"] { --guide-surface:#252c33; --guide-line:#485461; }
html[data-bxm-theme="dark"] .bxm-robot-guide .bxm-robot-guide__title { color:var(--bxm-theme-text); }
html[data-bxm-theme="dark"] .bxm-robot-guide :is(p.bxm-robot-guide__message,.bxm-robot-guide__bubble-head > span,.bxm-robot-guide__bubble-head > button,.bxm-robot-guide__bubble-foot > span,.bxm-robot-guide__settings button,p.bxm-robot-guide__settings-label) { color:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] .bxm-robot-guide :is(.bxm-robot-guide__primary,.bxm-robot-guide__bubble-foot > button,.bxm-robot-guide__settings .bxm-robot-guide__back) { color:var(--bxm-theme-accent); }
html[data-bxm-theme="dark"] .bxm-robot-guide :is(.bxm-robot-guide__presets,[data-guide-hide]) { border-color:var(--guide-line); }
html[data-bxm-theme="dark"] .bxm-guide-chapter { --chapter-surface:#27271f; --chapter-line:#514f39; --chapter-ink:var(--bxm-theme-text); --chapter-muted:var(--bxm-theme-muted); }
html[data-bxm-theme="dark"] .bxm-guide-chapter :is(.bxm-guide-chapter__signature,.bxm-guide-chapter__step,p.bxm-guide-chapter__label,button.bxm-guide-chapter__control) { color:var(--bxm-theme-muted); border-color:var(--chapter-line); }
