/* ==========================================================================
   Bryksy v2 – warstwa designu (ładowana po theme.css jako dist/css/v2.css)
   Build: npm run v2   |   watch: npm run v2-watch (lub npm run dev)
   ========================================================================== */

/* ==========================================================================
   Bryksy v2 – design tokens & base
   Uwaga: plik przechodzi przez PostCSS (nie Sass) – tylko komentarze blokowe.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marka: granat Bryksy + pomarańcz jako akcent CTA */
  --bx-navy-950: #0a1433;
  --bx-navy-900: #0f1d4a;
  --bx-navy-800: #15286a;
  --bx-navy-700: #1c3583;
  --bx-navy-600: #2946a6;
  --bx-navy-500: #4262c4;
  --bx-navy-200: #cbd5f1;
  --bx-navy-100: #e5ebf9;
  --bx-navy-50: #f1f4fc;
  --bx-orange-600: #ea5f0c;
  --bx-orange-500: #ff7119;
  --bx-orange-100: #ffeadb;

  /* Neutralne – ciepłe, „papierowe” tło zamiast zimnej szarości */
  --bx-paper: #f6f5f1;
  --bx-sand: #ece8df;
  --bx-white: #ffffff;
  --bx-ink: #121831;
  --bx-ink-2: #3b4157;
  --bx-muted: #6c7287;
  --bx-line: #e5e2d9;
  --bx-line-2: #d5d1c5;
  --bx-success: #1f9d61;

  --bx-radius-xs: 8px;
  --bx-radius-sm: 14px;
  --bx-radius: 20px;
  --bx-radius-lg: 28px;
  --bx-pill: 999px;

  --bx-shadow-xs: 0 1px 2px rgba(15, 29, 74, 0.06);
  --bx-shadow-sm: 0 1px 2px rgba(15, 29, 74, 0.05), 0 4px 14px -4px rgba(15, 29, 74, 0.08);
  --bx-shadow: 0 2px 4px rgba(15, 29, 74, 0.04), 0 16px 36px -14px rgba(15, 29, 74, 0.2);
  --bx-shadow-lg: 0 4px 10px rgba(15, 29, 74, 0.05), 0 36px 72px -28px rgba(15, 29, 74, 0.35);

  --bx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bx-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --bx-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --bx-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bx-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bx-section: clamp(64px, 8vw, 120px);
  --bx-section-sm: clamp(40px, 5vw, 72px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bx-paper);
  color: var(--bx-ink-2);
  font-family: var(--bx-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::-moz-selection {
  background: var(--bx-navy-700);
  color: #fff;
}

::selection {
  background: var(--bx-navy-700);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--bx-orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  -webkit-user-drag: none;
}

.bx-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Typografia – nowe klasy + odświeżenie istniejących (działa na wszystkich podstronach)
   -------------------------------------------------------------------------- */

.bx-eyebrow,
.heading-blue-xs {
  font-family: var(--bx-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bx-navy-600);
}

.bx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.bx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--bx-orange-500);
}

.bx-title {
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--bx-ink);
  margin: 0;
  text-wrap: balance;
}

.bx-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--bx-muted);
}

.bx-head {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.bx-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 860px;
}

.bx-head--center .bx-eyebrow {
  justify-content: center;
}

.bx-head--center .bx-lead {
  margin-inline: auto;
}

.bx-head--light .bx-title {
  color: #fff;
}

.bx-head--light .bx-eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.bx-head--light .bx-lead {
  color: rgba(255, 255, 255, 0.72);
}

.heading-black-3xl,
.heading-black-4xl,
.heading-black-46,
.heading-black-2xl,
.heading-black-24,
.heading-black-20,
.heading-blue-18,
.heading-blue-22,
.heading-blue-24,
.heading-blue-26,
.heading-blue-38,
.heading-blue-48,
.heading-white-38 {
  font-family: var(--bx-font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.heading-black-3xl,
.heading-black-4xl,
.heading-black-46 {
  color: var(--bx-ink);
  font-weight: 700;
  line-height: 1.1;
}

.heading-black-4xl {
  font-size: clamp(26px, 3vw, 42px);
}

.heading-black-3xl {
  font-size: clamp(26px, 2.6vw, 36px);
}

.heading-blue-38 {
  color: var(--bx-navy-700);
  font-weight: 700;
  line-height: 1.15;
}

.text-black-18 {
  color: var(--bx-ink-2);
  font-weight: 400;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Przyciski – pigułki z płynnym wypełnieniem i strzałką
   -------------------------------------------------------------------------- */

.btn-orange,
.btn-blue,
.btn-white,
.btn-white-two,
.btn-white-orange {
  border-radius: var(--bx-pill);
  padding: 15px 28px;
  font-family: var(--bx-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  gap: 10px;
  isolation: isolate;
  transition: color 0.45s var(--bx-ease), border-color 0.45s var(--bx-ease), box-shadow 0.45s var(--bx-ease), transform 0.45s var(--bx-ease);
}

.btn-orange::before,
.btn-blue::before,
.btn-white::before,
.btn-white-two::before,
.btn-white-orange::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--bx-ease) !important;
}

.btn-orange:hover::before,
.btn-blue:hover::before,
.btn-white:hover::before,
.btn-white-two:hover::before,
.btn-white-orange:hover::before {
  transform: translateY(0);
}

.btn-orange {
  box-shadow: 0 10px 24px -12px rgba(255, 113, 25, 0.75);
}

.btn-orange:hover,
.btn-blue:hover {
  box-shadow: 0 14px 30px -14px rgba(15, 29, 74, 0.45);
}

a.btn-orange::after,
a.btn-blue::after,
a.btn-white::after,
a.btn-white-two::after,
a.btn-white-orange::after,
.bx-btn::after {
  content: "";
  position: relative;
  z-index: 10;
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s var(--bx-ease);
}

a.btn-orange:hover::after,
a.btn-blue:hover::after,
a.btn-white:hover::after,
a.btn-white-two:hover::after,
a.btn-white-orange:hover::after,
.bx-btn:hover::after {
  transform: translateX(4px);
}

.see-app {
  border-radius: var(--bx-pill);
  padding: 9px 16px;
  font-family: var(--bx-font-display);
  font-weight: 600;
  font-size: 12px;
  transition: background-color 0.3s var(--bx-ease), color 0.3s var(--bx-ease);
}

/* Nowy przycisk v2 (używany w przeprojektowanych blokach) */

.bx-btn {
  --btn-bg: var(--bx-navy-700);
  --btn-fg: #fff;
  --btn-fill: var(--bx-navy-900);
  --btn-fill-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--bx-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--bx-font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.45s var(--bx-ease), box-shadow 0.45s var(--bx-ease), transform 0.45s var(--bx-ease);
}

.bx-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--bx-ease);
}

.bx-btn:hover {
  color: var(--btn-fill-fg);
}

.bx-btn:hover::before {
  transform: translateY(0);
}

.bx-btn--orange {
  --btn-bg: var(--bx-orange-500);
  --btn-fill: var(--bx-navy-900);
  box-shadow: 0 12px 26px -14px rgba(255, 113, 25, 0.9);
}

.bx-btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--bx-ink);
  --btn-fill: var(--bx-orange-500);
  --btn-fill-fg: #fff;
}

.bx-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bx-ink);
  --btn-fill: var(--bx-ink);
  --btn-fill-fg: #fff;
  box-shadow: inset 0 0 0 1.5px var(--bx-line-2);
}

.bx-btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-fill: #fff;
  --btn-fill-fg: var(--bx-ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bx-btn--sm {
  padding: 12px 20px;
  font-size: 13px;
}

/* Okrągły przycisk ze strzałką (nawigacja sliderów, „go” na kartach) */

.bx-round {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--bx-line-2);
  background: transparent;
  color: var(--bx-ink);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--bx-ease), border-color 0.4s var(--bx-ease), transform 0.4s var(--bx-ease), opacity 0.3s;
}

.bx-round::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  background: var(--bx-ink);
  transform: scale(0);
  transition: transform 0.45s var(--bx-ease);
}

.bx-round:hover {
  color: #fff;
  border-color: var(--bx-ink);
}

.bx-round:hover::before {
  transform: scale(1);
}

.bx-round .bx-icon {
  width: 20px;
  height: 20px;
}

.bx-round.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.bx-round--light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
}

.bx-round--light::before {
  background: #fff;
}

.bx-round--light:hover {
  color: var(--bx-ink);
  border-color: #fff;
}

/* Etykiety / chipy */

.bx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--bx-pill);
  font-family: var(--bx-font-display);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--bx-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bx-shadow-xs);
}

.bx-chip--glass {
  color: #fff;
  background: rgba(10, 20, 51, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.bx-chip--label {
  color: #fff;
  background: var(--label, var(--bx-navy-700));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: 8px 12px;
}

.bx-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bx-success);
  flex: none;
}

.bx-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: bx-ping 2.2s var(--bx-ease) infinite;
}

@keyframes bx-ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Sekcje */

.bx-section {
  padding-block: var(--bx-section);
}

.bx-section--tight {
  padding-block: var(--bx-section-sm);
}

/* --------------------------------------------------------------------------
   System animacji (sterowany przez src/js/v2/motion.js)
   Elementy są ukryte tylko gdy działa JS (html.bx-js) i nie ma preferencji „mniej ruchu”.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.bx-js:not(.bx-reveal-all) [data-reveal] {
    opacity: 0;
    transition:
      opacity 0.9s var(--bx-ease) var(--reveal-delay, 0ms),
      transform 1.1s var(--bx-ease) var(--reveal-delay, 0ms),
      filter 1.1s var(--bx-ease) var(--reveal-delay, 0ms),
      -webkit-clip-path 1.2s var(--bx-ease) var(--reveal-delay, 0ms);
    transition:
      opacity 0.9s var(--bx-ease) var(--reveal-delay, 0ms),
      transform 1.1s var(--bx-ease) var(--reveal-delay, 0ms),
      clip-path 1.2s var(--bx-ease) var(--reveal-delay, 0ms),
      filter 1.1s var(--bx-ease) var(--reveal-delay, 0ms);
    transition:
      opacity 0.9s var(--bx-ease) var(--reveal-delay, 0ms),
      transform 1.1s var(--bx-ease) var(--reveal-delay, 0ms),
      clip-path 1.2s var(--bx-ease) var(--reveal-delay, 0ms),
      filter 1.1s var(--bx-ease) var(--reveal-delay, 0ms),
      -webkit-clip-path 1.2s var(--bx-ease) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="up"],
  html.bx-js:not(.bx-reveal-all) [data-reveal=""] {
    transform: translate3d(0, 28px, 0);
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="left"] {
    transform: translate3d(-36px, 0, 0);
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="right"] {
    transform: translate3d(36px, 0, 0);
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="scale"] {
    transform: scale(0.94);
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="blur"] {
    filter: blur(12px);
    transform: translate3d(0, 16px, 0);
  }

  /* Tytuł „wyjeżdża” spod maski */
  html.bx-js:not(.bx-reveal-all) [data-reveal="title"] {
    -webkit-clip-path: inset(0 0 100% 0);
            clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 0.45em, 0);
  }

  /* Zdjęcie odsłaniane od środka */
  html.bx-js:not(.bx-reveal-all) [data-reveal="clip"] {
    opacity: 1;
    -webkit-clip-path: inset(10% 6% 10% 6% round var(--bx-radius-lg));
            clip-path: inset(10% 6% 10% 6% round var(--bx-radius-lg));
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="clip"] img {
    transform: scale(1.18);
    transition: transform 1.6s var(--bx-ease) var(--reveal-delay, 0ms);
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal].is-in {
    opacity: 1;
    filter: none;
    -webkit-clip-path: inset(-20% -20% -20% -20%);
            clip-path: inset(-20% -20% -20% -20%);
  }

  /* „clip” nie rusza transform – kontener może być pozycjonowany transformacją */
  html.bx-js:not(.bx-reveal-all) [data-reveal]:not([data-reveal="clip"]).is-in {
    transform: none;
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="clip"].is-in {
    -webkit-clip-path: inset(0% 0% 0% 0% round var(--bx-radius-lg));
            clip-path: inset(0% 0% 0% 0% round var(--bx-radius-lg));
  }

  html.bx-js:not(.bx-reveal-all) [data-reveal="clip"].is-in img {
    transform: scale(1);
  }
}

/* Pasek postępu przewijania */

.bx-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100000;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bx-orange-500), #ffb37a);
  transform-origin: 0 50%;
  transform: scaleX(var(--bx-progress, 0));
}

/* Kursor-etykieta „Zobacz” nad kartami (tylko mysz) */

.bx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: var(--bx-orange-500);
  color: #fff;
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform 0.35s var(--bx-ease);
  box-shadow: 0 12px 30px -10px rgba(255, 113, 25, 0.7);
}

.bx-cursor.is-active {
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(1);
}

@media (hover: none), (pointer: coarse) {
  .bx-cursor {
    display: none;
  }
}

/* Ukrywanie wizualne (dostępność) */

.bx-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Nagłówek – tylko warstwa wizualna. Markup (components/cmp-header.php) jest
   powiązany z nav.js, więc klasy i ID zostają takie same jak w v1.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Geometria: v1 rezerwował nad nagłówkiem pas na pasek ogłoszeń i pozycjonował
   logo/menu absolutnie. W v2 ogłoszenie jest pływającym kafelkiem (teaser.scss),
   więc nagłówek ma zwykłą, zwartą wysokość.
   -------------------------------------------------------------------------- */

:root {
  --bx-header-h: 88px;
  --bx-sticky-h: 76px;
}

@media (max-width: 639px) {
  :root {
    --bx-header-h: 72px;
    --bx-sticky-h: 64px;
  }
}

#nav.nav-desktop,
#nav.nav-desktop.nav-banner-active {
  min-height: 0;
  padding-top: 0;
}

#nav > .container {
  display: flex;
  align-items: center;
  height: var(--bx-header-h);
}

#nav .header-cont {
  position: relative;
  top: auto !important;
}

#main-box,
#main-box.no-baner {
  margin-top: 0 !important;
}

#nav-sticky {
  min-height: 0 !important;
  height: var(--bx-sticky-h) !important;
  padding-top: 0 !important;
}

/* Logo + menu */

.nav-desktop .header-cont,
#nav-sticky .header-cont {
  font-family: var(--bx-font-display);
}

.list a {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--bx-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 0;
  transition: color 0.3s var(--bx-ease);
}

.list a::before {
  height: 2px !important;
  bottom: 0 !important;
  border-radius: 2px;
  background: var(--bx-orange-500) !important;
  width: 100% !important;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--bx-ease) !important;
}

.list a:hover {
  color: var(--bx-navy-700);
}

.list a:hover::before {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.list .current_page_item > a,
.list .current-menu-item > a {
  color: var(--bx-navy-700) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.list .current_page_item > a::before,
.list .current-menu-item > a::before {
  background: var(--bx-orange-500) !important;
  transform: scaleX(1);
}

.list li:first-child::before,
.list li:nth-child(2)::before {
  opacity: 0.55;
  transition: transform 0.35s var(--bx-ease), opacity 0.3s;
}

.list li:first-child:hover::before,
.list li:nth-child(2):hover::before {
  opacity: 1;
}

.menu-key-btn {
  padding: 10px 18px;
  font-family: var(--bx-font-display);
  background: linear-gradient(135deg, var(--bx-navy-700) 0%, var(--bx-navy-900) 100%);
  box-shadow: 0 8px 20px -10px rgba(15, 29, 74, 0.6);
}

.header-panel .header-panel_elm {
  border-color: var(--bx-line);
}

.header-panel .header-panel_elm img {
  transition: transform 0.35s var(--bx-ease);
}

.header-panel .header-panel_elm:hover img {
  transform: scale(1.1);
}

.favorite-number {
  background: var(--bx-orange-500) !important;
  color: #fff !important;
  font-family: var(--bx-font-display);
  font-weight: 700;
}

.header-panel_menu svg rect {
  transition: transform 0.35s var(--bx-ease);
  transform-origin: right center;
}

.header-panel_menu:hover svg rect:nth-child(2) {
  transform: scaleX(1.55);
}

/* Przyklejony nagłówek: szkło + cień */

#nav-sticky {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--bx-line), 0 18px 40px -28px rgba(15, 29, 74, 0.45);
  transition: top 0.5s var(--bx-ease);
}

/* --------------------------------------------------------------------------
   Mega menu (Mieszkania / Lokale) – pływający panel przyklejony do nagłówka.
   nav.js przełącza display:flex, a animacja startuje przy każdym pokazaniu.
   Cień o zasięgu 100vmax przyciemnia stronę pod panelem; clip-path obcina go
   powyżej panelu, więc nagłówek zostaje jasny.
   -------------------------------------------------------------------------- */

.flats-see-more,
.flats-see-more2,
.local-see-more,
.local2-see-more {
  left: max(16px, calc(50% - 620px)) !important;
  right: auto !important;
  width: min(1240px, calc(100% - 32px)) !important;
  margin-top: 10px;
  padding: 32px 4px 34px !important;
  justify-content: space-between !important;
  gap: 0 !important;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-radius-lg);
  background: #fff;
  box-shadow: 0 30px 70px -24px rgba(15, 29, 74, 0.4), 0 0 0 100vmax rgba(10, 20, 51, 0.24);
  -webkit-clip-path: inset(-22px -100vmax -100vmax -100vmax);
          clip-path: inset(-22px -100vmax -100vmax -100vmax);
  animation: bx-drop 0.45s var(--bx-ease);
}

.flats-see-more,
.local-see-more {
  top: var(--bx-header-h) !important;
}

.flats-see-more2,
.local2-see-more {
  position: fixed !important;
  top: var(--bx-sticky-h) !important;
}

/* „Mostek” – kursor może przejść z pozycji menu do panelu bez jego zamknięcia */

.flats-see-more::before,
.flats-see-more2::before,
.local-see-more::before,
.local2-see-more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}

@keyframes bx-drop {
  from { opacity: 0; transform: translateY(-8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.flats-see-more_cont,
.flats-see-more2_cont,
.local-see-more_cont,
.local2-see-more_cont {
  flex: 1 1 0;
  min-width: 0;
  gap: 18px !important;
  padding: 0 32px;
}

.flats-see-more_cont + .flats-see-more_cont,
.flats-see-more2_cont + .flats-see-more_cont,
.local-see-more_cont + .local-see-more_cont,
.local2-see-more_cont + .local2-see-more_cont {
  border-left: 1px solid var(--bx-line);
}

.flats-see-more h4,
.flats-see-more2 h4,
.local-see-more h4,
.local2-see-more h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  color: var(--bx-muted);
}

.flats-see-more h4::before,
.flats-see-more2 h4::before,
.local-see-more h4::before,
.local2-see-more h4::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--bx-orange-500);
}

.flats-see-more_cracow,
.flats-see-more2_cracow,
.local-see-more_cracow,
.local2-see-more_cracow {
  max-width: none !important;
  gap: 8px 16px !important;
}

.flats-see-more h3,
.flats-see-more2 h3,
.local-see-more h3,
.local2-see-more h3 {
  font-family: var(--bx-font-display);
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  color: var(--bx-ink);
  transition: color 0.3s;
}

.flats-see-more p,
.flats-see-more2 p,
.local-see-more p,
.local2-see-more p {
  margin-top: 2px;
  font-size: 13px !important;
  line-height: 1.4;
  color: var(--bx-muted);
}

.investment-item-seemore {
  gap: 14px !important;
  padding: 8px;
  margin: -8px;
  border-radius: 18px;
  transition: background-color 0.3s var(--bx-ease);
}

.investment-item-seemore:hover {
  background: var(--bx-navy-50);
}

.investment-item-seemore:hover h3 {
  color: var(--bx-navy-700);
}

.investment-item-seemore .investment-thumbnail,
.investment-item-seemore .investment-thumbnail img {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  min-height: 76px !important;
  border-radius: 14px !important;
}

.investment-item-seemore .investment-thumbnail {
  overflow: hidden;
  flex: none;
}

.investment-item-seemore .investment-thumbnail img {
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.8s var(--bx-ease);
}

.investment-item-seemore:hover .investment-thumbnail img {
  transform: scale(1.08);
}

.flats-see-more .city-link,
.flats-see-more2 .city-link,
.local-see-more .city-link,
.local2-see-more .city-link {
  align-self: flex-start;
  margin-top: 6px !important;
  padding: 11px 18px;
  border-radius: var(--bx-pill);
  background: var(--bx-paper);
  font-family: var(--bx-font-display);
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bx-navy-700);
  transition: background-color 0.3s, color 0.3s;
}

.flats-see-more .city-link:hover,
.flats-see-more2 .city-link:hover,
.local-see-more .city-link:hover,
.local2-see-more .city-link:hover {
  background: var(--bx-navy-700);
  color: #fff;
}

.flats-see-more .city-link:hover img,
.flats-see-more2 .city-link:hover img,
.local-see-more .city-link:hover img,
.local2-see-more .city-link:hover img {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   Menu burgera – niebieskie (kolor marki), odsłaniane okręgiem od ikony menu
   -------------------------------------------------------------------------- */

.nav-desktop-open,
.nav-desktop-open2 {
  background:
    radial-gradient(900px 620px at 100% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(800px 700px at 0% 100%, rgba(255, 113, 25, 0.10), transparent 60%),
    linear-gradient(160deg, #2443a0 0%, var(--bx-navy-700) 55%, #1a3079 100%) !important;
  color: #fff;
  transform: none !important;
  visibility: hidden;
  -webkit-clip-path: circle(0px at calc(100% - 44px) 44px);
          clip-path: circle(0px at calc(100% - 44px) 44px);
  transition: visibility 0s linear 0.7s, -webkit-clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1) !important;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.7s !important;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.7s, -webkit-clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1) !important;
}

.nav-desktop-open.active,
.nav-desktop-open2.active {
  visibility: visible;
  -webkit-clip-path: circle(150vmax at calc(100% - 44px) 44px);
          clip-path: circle(150vmax at calc(100% - 44px) 44px);
  transition: visibility 0s, -webkit-clip-path 0.9s var(--bx-ease) !important;
  transition: clip-path 0.9s var(--bx-ease), visibility 0s !important;
  transition: clip-path 0.9s var(--bx-ease), visibility 0s, -webkit-clip-path 0.9s var(--bx-ease) !important;
}

html .nav-desktop-open .nav-desktop-open_top,
html .nav-desktop-open2 .nav-desktop-open_top {
  margin-top: 0 !important;
  height: var(--bx-header-h);
  justify-content: flex-start !important;
  gap: 4px;
}

html .nav-desktop-open .nav-desktop-open_top .header-cont__img,
html .nav-desktop-open2 .nav-desktop-open_top .header-cont__img {
  margin-right: auto !important;
}

html .nav-desktop-open .nav-desktop-open_top .header-panel_elm,
html .nav-desktop-open2 .nav-desktop-open_top .header-panel_elm {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
}

html .nav-desktop-open .nav-desktop-open_top .header-panel_elm img,
html .nav-desktop-open2 .nav-desktop-open_top .header-panel_elm img {
  width: 24px;
  transition: transform 0.35s var(--bx-ease);
}

html .nav-desktop-open .nav-desktop-open_top .header-panel_elm:hover img,
html .nav-desktop-open2 .nav-desktop-open_top .header-panel_elm:hover img {
  transform: scale(1.1);
}

.nav-desktop-open .header-panel_menu,
.nav-desktop-open2 .header-panel_menu {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: 10px;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s var(--bx-ease), background-color 0.3s, color 0.3s;
}

.nav-desktop-open .header-panel_menu:hover,
.nav-desktop-open2 .header-panel_menu:hover {
  transform: rotate(90deg);
  background: #fff;
  color: var(--bx-navy-700);
}

.nav-desktop-open .header-panel_menu svg,
.nav-desktop-open2 .header-panel_menu svg {
  width: 16px !important;
  margin: 0 !important;
}

html .nav-desktop-open .gtranslate_wrapper,
html .nav-desktop-open2 .gtranslate_wrapper,
html .nav-desktop-open .gtranslate_wrapper a,
html .nav-desktop-open2 .gtranslate_wrapper a {
  color: #fff !important;
}

/* Nagłówki kolumn jako etykiety, linki duże */

html .nav-desktop-open .brysky-title,
html .nav-desktop-open2 .brysky-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px !important;
  font-family: var(--bx-font-display);
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62) !important;
}

html .nav-desktop-open .brysky-title::before,
html .nav-desktop-open2 .brysky-title::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--bx-orange-500);
}

html .nav-desktop-open .nav-desktop-open_bot .list-open li a,
html .nav-desktop-open2 .nav-desktop-open_bot .list-open li a {
  display: inline-block;
  padding: 3px 0;
  color: #fff !important;
  font-family: var(--bx-font-display);
  font-size: clamp(18px, 1.6vw, 24px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  transition: color 0.3s, transform 0.45s var(--bx-ease) !important;
}

html .nav-desktop-open .nav-desktop-open_bot .list-open li a:hover,
html .nav-desktop-open2 .nav-desktop-open_bot .list-open li a:hover {
  color: #ffb37a !important;
  transform: translateX(8px);
}

html .nav-desktop-open .nav-desktop-open_bot .list-open .current_page_item > a,
html .nav-desktop-open2 .nav-desktop-open_bot .list-open .current_page_item > a {
  color: #ffb37a !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html .nav-desktop-open .list-open .current_page_item > a::before,
html .nav-desktop-open2 .list-open .current_page_item > a::before {
  display: none !important;
}

html .nav-desktop-open .btn-white-orange,
html .nav-desktop-open2 .btn-white-orange {
  align-self: flex-start;
}

html .nav-desktop-open .social-icons .heading-blue-18,
html .nav-desktop-open2 .social-icons .heading-blue-18 {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62) !important;
}

html .nav-desktop-open .social-icons_box a,
html .nav-desktop-open2 .social-icons_box a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s var(--bx-ease), background-color 0.3s;
}

html .nav-desktop-open .social-icons_box a:hover,
html .nav-desktop-open2 .social-icons_box a:hover {
  transform: translateY(-3px);
  background: var(--bx-orange-500);
}

html .nav-desktop-open .social-icons_box img,
html .nav-desktop-open2 .social-icons_box img {
  width: 18px !important;
  height: 18px;
  filter: none !important;
}

/* Kafle inwestycji w menu */

html .nav-desktop-open .investment-item,
html .nav-desktop-open2 .investment-item {
  border-radius: var(--bx-radius) !important;
  box-shadow: 0 20px 40px -24px rgba(5, 12, 40, 0.6);
  transition: transform 0.5s var(--bx-ease), box-shadow 0.5s var(--bx-ease), opacity 0.6s var(--bx-ease) !important;
}

html .nav-desktop-open .investment-item:hover,
html .nav-desktop-open2 .investment-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 28px 50px -24px rgba(5, 12, 40, 0.7);
}

html .nav-desktop-open .investment-item h3,
html .nav-desktop-open2 .investment-item h3 {
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
}

html .nav-desktop-open .investments-link,
html .nav-desktop-open2 .investments-link {
  font-family: var(--bx-font-display);
  font-weight: 700;
  color: #fff !important;
}

html .nav-desktop-open .investments-link:hover,
html .nav-desktop-open2 .investments-link:hover {
  color: #ffb37a !important;
}

html .nav-desktop-open .investments-link img,
html .nav-desktop-open2 .investments-link img {
  filter: brightness(0) invert(1);
}

/* Wersja mobilna menu */

html .nav-desktop-open .button-search-fol a,
html .nav-desktop-open2 .button-search-fol a {
  height: 52px;
  border-radius: var(--bx-pill);
  background: #fff;
  color: var(--bx-navy-700);
  font-family: var(--bx-font-display);
  font-weight: 600;
}

html .nav-desktop-open .list-inwestment-mobile h5,
html .nav-desktop-open2 .list-inwestment-mobile h5 {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html .nav-desktop-open .list-inwestment-mobile_box__head,
html .nav-desktop-open2 .list-inwestment-mobile_box__head,
html .nav-desktop-open .list-inwestment-mobile h4,
html .nav-desktop-open2 .list-inwestment-mobile h4,
html .nav-desktop-open .mobie-list-sub-items h3,
html .nav-desktop-open2 .mobie-list-sub-items h3,
html .nav-desktop-open .menu-finishflats,
html .nav-desktop-open2 .menu-finishflats {
  color: #fff !important;
  font-family: var(--bx-font-display);
  font-weight: 600;
}

html .nav-desktop-open .mobie-list-sub-items p,
html .nav-desktop-open2 .mobie-list-sub-items p {
  color: rgba(255, 255, 255, 0.65) !important;
}

html .nav-desktop-open .mobile-socials,
html .nav-desktop-open2 .mobile-socials {
  background: rgba(255, 255, 255, 0.06);
}

html .nav-desktop-open .mobile-socials .mobile-social-btn,
html .nav-desktop-open2 .mobile-socials .mobile-social-btn {
  border-radius: var(--bx-pill);
  height: 50px;
  background: var(--bx-orange-500);
}

html .nav-desktop-open .mobile-socials .social-icons_box img,
html .nav-desktop-open2 .mobile-socials .social-icons_box img {
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nav-desktop-open .list-open li,
  .nav-desktop-open2 .list-open li,
  .nav-desktop-open .investment-item,
  .nav-desktop-open2 .investment-item,
  .nav-desktop-open .brysky-title,
  .nav-desktop-open2 .brysky-title {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--bx-ease), transform 0.7s var(--bx-ease);
  }

  .nav-desktop-open.active .list-open li,
  .nav-desktop-open2.active .list-open li,
  .nav-desktop-open.active .investment-item,
  .nav-desktop-open2.active .investment-item,
  .nav-desktop-open.active .brysky-title,
  .nav-desktop-open2.active .brysky-title {
    opacity: 1;
    transform: none;
  }

  .nav-desktop-open.active .brysky-title, .nav-desktop-open2.active .brysky-title { transition-delay: 0.25s; }
  .nav-desktop-open.active .list-open li:nth-child(1), .nav-desktop-open2.active .list-open li:nth-child(1) { transition-delay: 0.3s; }
  .nav-desktop-open.active .list-open li:nth-child(2), .nav-desktop-open2.active .list-open li:nth-child(2) { transition-delay: 0.34s; }
  .nav-desktop-open.active .list-open li:nth-child(3), .nav-desktop-open2.active .list-open li:nth-child(3) { transition-delay: 0.38s; }
  .nav-desktop-open.active .list-open li:nth-child(4), .nav-desktop-open2.active .list-open li:nth-child(4) { transition-delay: 0.42s; }
  .nav-desktop-open.active .list-open li:nth-child(5), .nav-desktop-open2.active .list-open li:nth-child(5) { transition-delay: 0.46s; }
  .nav-desktop-open.active .list-open li:nth-child(6), .nav-desktop-open2.active .list-open li:nth-child(6) { transition-delay: 0.5s; }
  .nav-desktop-open.active .list-open li:nth-child(7), .nav-desktop-open2.active .list-open li:nth-child(7) { transition-delay: 0.54s; }
  .nav-desktop-open.active .list-open li:nth-child(n+8), .nav-desktop-open2.active .list-open li:nth-child(n+8) { transition-delay: 0.58s; }
  .nav-desktop-open.active .investment-item, .nav-desktop-open2.active .investment-item { transition-delay: 0.45s; }
}

/* Szybki kontakt + dolna nawigacja mobilna */

.fast-contact_open img,
.fast-contact_content__item img {
  border-radius: 50%;
  box-shadow: 0 14px 30px -12px rgba(15, 29, 74, 0.55);
  transition: transform 0.4s var(--bx-ease);
}

.fast-contact_open img:hover,
.fast-contact_content__item img:hover {
  transform: scale(1.08);
}

.fast-contact_open {
  animation: none !important;
}

.mobile-bottom-nav {
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: auto !important;
  padding: 6px 8px !important;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 40px -14px rgba(15, 29, 74, 0.45) !important;
}

.mobile-bottom-nav a {
  min-height: 50px !important;
  justify-content: center !important;
  gap: 3px !important;
}

.mobile-bottom-nav a img {
  width: 22px;
  height: 22px;
}

.mobile-bottom-nav a p {
  font-size: 11px !important;
  font-weight: 600;
  color: var(--bx-ink-2);
}

/* Kafle inwestycji w niebieskim menu mają białe tło – tekst w środku musi być ciemny */

html .nav-desktop-open .investment-item,
html .nav-desktop-open2 .investment-item {
  color: var(--bx-ink-2);
}

html .nav-desktop-open .investment-item p,
html .nav-desktop-open2 .investment-item p {
  color: var(--bx-muted);
}

html .nav-desktop-open .investment-item h3,
html .nav-desktop-open2 .investment-item h3 {
  color: var(--bx-ink);
}

html .nav-desktop-open .investment-item .heading-blue-26,
html .nav-desktop-open2 .investment-item .heading-blue-26 {
  color: var(--bx-navy-700);
}

/* ==========================================================================
   Stopka – components/cmp-footer.php
   ========================================================================== */

.bx-footer {
  position: relative;
  margin-top: var(--bx-section-sm);
  padding: clamp(20px, 3vw, 40px) 0 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, #2443a0 0%, var(--bx-navy-700) 50%, #1a3079 100%);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}

.bx-footer a {
  color: inherit;
}

/* Kolumny */

.bx-footer__grid {
  display: grid;
  gap: 40px 32px;
  padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 4.5vw, 56px);
}

@media (min-width: 768px) {
  .bx-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .bx-footer__grid {
    grid-template-columns: 1.3fr 1.3fr 0.8fr 1fr;
    gap: 48px;
  }
}

.bx-footer__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--bx-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.bx-footer__logo img {
  width: 150px;
  height: auto;
}

.bx-footer__about,
.bx-footer__about p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.bx-footer__about p + p {
  margin-top: 12px;
}

.bx-footer__social {
  margin-top: 28px;
}

.bx-footer__social .bx-footer__label {
  margin-bottom: 12px;
}

.bx-footer__social-list {
  display: flex;
  gap: 10px;
}

.bx-footer__social-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background-color 0.35s var(--bx-ease), border-color 0.35s, transform 0.45s var(--bx-ease);
}

.bx-footer__social-list a:hover {
  background: var(--bx-orange-500);
  border-color: var(--bx-orange-500);
  transform: translateY(-3px);
}

.bx-footer__social-list .bx-icon {
  width: 18px;
  height: 18px;
}

.bx-footer__offices {
  display: grid;
  gap: 14px;
  align-content: start;
}

.bx-footer__office {
  padding: 22px 24px;
  border-radius: var(--bx-radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.4s var(--bx-ease), border-color 0.4s;
}

.bx-footer__office:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.bx-footer__office .bx-footer__label {
  margin-bottom: 8px;
}

.bx-footer__office h3 {
  margin: 0 0 8px;
  font-family: var(--bx-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.bx-footer__office-text {
  font-size: 14px;
  line-height: 1.7;
}

.bx-footer__office-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--bx-orange-500), var(--bx-orange-500)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.4s var(--bx-ease);
}

.bx-footer__office-text a:hover {
  background-size: 0 1.5px;
}

.bx-footer__menu {
  display: grid;
  gap: 4px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

/* .menu-item ma globalnie flex + wyśrodkowanie i czarny tekst (header.scss v1) */

.bx-footer .menu-item {
  display: block;
  text-align: left !important;
  color: inherit;
  font-weight: 500;
}

/* aktywna strona w menu stopki (globalne .current_page_item z v1 dodaje gradient i podkreślenie) */

.bx-footer .current_page_item > a,
.bx-footer .current-menu-item > a {
  color: #ffb37a !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.bx-footer .current_page_item > a::before,
.bx-footer .current-menu-item > a::before {
  display: none !important;
}

.bx-footer__menu a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s, transform 0.4s var(--bx-ease);
}

.bx-footer__menu a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Pasek dolny */

.bx-footer__bottom {
  padding-bottom: 32px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.bx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bx-footer__legal a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}

.bx-footer__legal a:hover {
  color: #fff;
}

.bx-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.bx-footer__credit img {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.bx-footer__credit:hover img {
  opacity: 1;
}

@media (max-width: 767px) {
  .bx-footer {
    padding-bottom: 84px;
  }
}

/* ==========================================================================
   Hero – blocks/slider-investments
   ========================================================================== */

.bx-hero {
  padding-top: 8px;
  padding-bottom: 0;
}

.bx-hero__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 1024px) {
  .bx-hero__grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 20px;
    height: clamp(560px, calc(100svh - 190px), 780px);
  }

  .bx-hero--solo .bx-hero__grid {
    grid-template-columns: 1fr;
  }
}

/* Treść i pasek slidera są w normalnym przepływie i dociśnięte do dołu karty,
   więc układ jest poprawny niezależnie od tego, które elementy istnieją
   (chipy, tytuł, pasek – zależnie od danych inwestycji). */

.bx-hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(24px, 3vw, 40px);
  min-height: min(68svh, 580px);
  padding: clamp(20px, 3.4vw, 52px) clamp(20px, 3.4vw, 52px) clamp(28px, 3.4vw, 52px);
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-navy-900);
  isolation: isolate;
  color: #fff;
}

.bx-hero__main.has-controls {
  padding-bottom: clamp(16px, 2.2vw, 32px);
}

@media (min-width: 1024px) {
  .bx-hero__main {
    min-height: 0;
    height: 100%;
  }
}

/* Specyficzność .bx-hero … – CSS Swipera jest wstrzykiwany przez JS po v2.css */

.bx-hero .bx-hero__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Slajdy zostają w układzie Swipera (efekt fade sam je nakłada) */

.bx-hero .bx-hero__swiper .swiper-wrapper,
.bx-hero .bx-hero__slide {
  height: 100%;
}

.bx-hero .bx-hero__swiper {
  z-index: -2;
  margin: 0;
}

.bx-hero__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1.12);
  transition: transform 7s linear;
}

/* Ken Burns: aktywny slajd powoli się przybliża */

.bx-hero__slide.swiper-slide-active .bx-hero__img {
  transform: scale(1.0);
}

.bx-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 20, 51, 0.35) 0%, rgba(10, 20, 51, 0) 28%),
    linear-gradient(0deg, rgba(10, 20, 51, 0.88) 0%, rgba(10, 20, 51, 0.45) 34%, rgba(10, 20, 51, 0) 62%);
}

.bx-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.bx-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bx-hero__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}

.bx-hero__title a {
  color: inherit;
}

.bx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.bx-hero__controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bx-hero__counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.6);
}

.bx-hero__current {
  color: #fff;
}

.bx-hero__sep {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.bx-hero__bars {
  flex: 1;
  display: flex;
  gap: 6px;
}

.bx-hero__bar {
  position: relative;
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bx-hero__bar::before,
.bx-hero__bar i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
}

.bx-hero__bar::before {
  background: rgba(255, 255, 255, 0.28);
}

.bx-hero__bar i {
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.bx-hero__bar.is-done i {
  transform: scaleX(1);
}

.bx-hero__bar.is-active i {
  animation: bx-bar var(--bx-hero-delay, 5500ms) linear forwards;
}

.bx-hero.is-paused .bx-hero__bar.is-active i {
  animation-play-state: paused;
}

@keyframes bx-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.bx-hero__arrows {
  display: flex;
  gap: 8px;
}

@media (max-width: 639px) {
  .bx-hero__arrows,
  .bx-hero__counter {
    display: none;
  }

  .bx-hero__cta .bx-btn--ghost-light {
    display: none;
  }
}

/* Kafelki po prawej */

.bx-hero__side {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -16px;
  padding-inline: 16px;
}

.bx-hero__side::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .bx-hero__side {
    grid-auto-columns: minmax(46%, 1fr);
  }
}

@media (min-width: 1024px) {
  .bx-hero__side {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-auto-rows: minmax(0, 1fr);
    gap: 20px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

.bx-tile {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  scroll-snap-align: start;
  background: var(--bx-navy-900);
}

@media (min-width: 1024px) {
  .bx-tile {
    min-height: 0;
  }
}

.bx-tile__media,
.bx-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.bx-tile__media {
  z-index: -2;
}

.bx-tile__media img {
  transition: transform 1.2s var(--bx-ease);
}

.bx-tile:hover .bx-tile__media img {
  transform: scale(1.07);
}

.bx-tile__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 20, 51, 0.82) 0%, rgba(10, 20, 51, 0.15) 50%, rgba(10, 20, 51, 0) 70%);
  transition: opacity 0.6s var(--bx-ease);
}

.bx-tile__label {
  position: absolute;
  top: 18px;
  left: 18px;
}

.bx-tile__body {
  position: absolute;
  left: 22px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.bx-tile__city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.bx-tile__title {
  display: block;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.bx-tile__go {
  width: 46px;
  height: 46px;
  transition: transform 0.5s var(--bx-ease), color 0.4s var(--bx-ease), border-color 0.4s var(--bx-ease);
}

.bx-tile:hover .bx-tile__go {
  color: var(--bx-ink);
  border-color: #fff;
  transform: rotate(45deg);
}

.bx-tile:hover .bx-tile__go::before {
  transform: scale(1);
}

/* ==========================================================================
   Oferta inwestycji – blocks/slider-investments-ofert
   ========================================================================== */

.bx-offer {
  overflow: hidden;
}

.bx-offer__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.bx-offer__head .bx-head {
  max-width: 820px;
}

.bx-offer__nav {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

@media (max-width: 767px) {
  .bx-offer__nav {
    display: none;
  }
}

/* Slajdy wychodzą poza kontener w prawo – „zaproszenie” do przewijania */

.bx-offer__viewport {
  overflow: visible;
}

.bx-offer__swiper.swiper-container {
  overflow: visible !important;
  margin: 0;
}

.bx-offer__swiper .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.bx-offer__swiper .swiper-wrapper .swiper-slide {
  width: min(82vw, 420px);
  max-width: none;
  height: auto;
}

@media (min-width: 1536px) {
  .bx-offer__swiper .swiper-wrapper .swiper-slide {
    width: 440px;
  }
}

.bx-offer__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 56px);
}

/* Karta inwestycji – używana też w innych miejscach */

.bx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--bx-radius-lg);
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-sm);
  overflow: hidden;
  transition: transform 0.6s var(--bx-ease), box-shadow 0.6s var(--bx-ease);
}

.bx-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bx-shadow-lg);
}

.bx-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.bx-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bx-sand);
}

.bx-card__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 1.2s var(--bx-ease);
}

.bx-card:hover .bx-card__media img {
  transform: scale(1.06);
}

.bx-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.bx-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 22px;
}

.bx-card__title {
  margin: 0;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(21px, 1.6vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bx-ink);
}

.bx-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bx-muted);
}

.bx-card__meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bx-card__meta .bx-icon {
  margin-top: 1px;
  color: var(--bx-navy-600);
}

.bx-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--bx-line);
}

.bx-card__price span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bx-muted);
}

.bx-card__price strong {
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(22px, 1.7vw, 26px);
  letter-spacing: -0.03em;
  color: var(--bx-navy-700);
  white-space: nowrap;
}

.bx-card__price small {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--bx-navy-600);
}

.bx-card__go {
  width: 48px;
  height: 48px;
  transition: transform 0.5s var(--bx-ease), color 0.4s var(--bx-ease), border-color 0.4s var(--bx-ease);
}

.bx-card:hover .bx-card__go {
  color: #fff;
  border-color: var(--bx-orange-500);
  transform: rotate(45deg);
}

.bx-card:hover .bx-card__go::before {
  background: var(--bx-orange-500);
  transform: scale(1);
}

/* ==========================================================================
   Promocje – blocks/promo-banner
   ========================================================================== */

.bx-promo .bx-promo__swiper {
  margin: 0;
}

.bx-promo__frame {
  position: relative;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, var(--bx-navy-900) 0%, var(--bx-navy-800) 55%, var(--bx-navy-700) 100%);
  box-shadow: var(--bx-shadow-lg);
}

.bx-promo__glow {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: -260px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 113, 25, 0.28), rgba(255, 113, 25, 0));
  animation: bx-glow 14s var(--bx-ease-in-out) infinite alternate;
  pointer-events: none;
}

@keyframes bx-glow {
  to { transform: translate3d(220px, 140px, 0) scale(1.15); }
}

.bx-promo__slide {
  display: grid;
  align-items: center;
  gap: 28px;
  padding: clamp(20px, 3vw, 40px);
  height: auto;
}

@media (min-width: 1024px) {
  .bx-promo__slide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    gap: clamp(32px, 4vw, 64px);
    padding: clamp(32px, 3.4vw, 52px);
  }
}

.bx-promo__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-inline: clamp(4px, 1vw, 16px);
}

/* Naklejka na jasnym krążku – czytelna niezależnie od koloru grafiki */

.bx-promo__sticker {
  display: grid;
  place-items: center;
  width: clamp(120px, 11vw, 168px);
  aspect-ratio: 1;
  margin-bottom: 6px;
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #f4f0e7 70%, #e9e3d6 100%);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.55), inset 0 -6px 14px rgba(15, 29, 74, 0.08);
  animation: bx-float 6s var(--bx-ease-in-out) infinite;
}

.bx-promo__sticker img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

@keyframes bx-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.bx-promo__kicker {
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb37a;
}

/* Treść z edytora ma style inline dopasowane do v1 – w v2 decyduje typografia motywu */

.bx-promo__copy *,
.bx-promo__copy p {
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
}

.bx-promo__copy,
.bx-promo__copy p {
  margin: 0;
  font-family: var(--bx-font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.bx-promo__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--bx-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bx-promo__media img,
.bx-promo__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 0;
}

.bx-promo__media img {
  transform: scale(1.08);
  transition: transform 6s var(--bx-ease-soft);
}

.bx-promo__slide.swiper-slide-active .bx-promo__media img {
  transform: scale(1);
}

/* Wejście treści aktywnego slajdu */

.bx-promo__slide .bx-promo__kicker,
.bx-promo__slide .bx-promo__copy,
.bx-promo__slide .bx-btn {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--bx-ease), transform 0.9s var(--bx-ease);
}

.bx-promo__slide.swiper-slide-active .bx-promo__kicker,
.bx-promo__slide.swiper-slide-active .bx-promo__copy,
.bx-promo__slide.swiper-slide-active .bx-btn {
  opacity: 1;
  transform: none;
}

.bx-promo__slide.swiper-slide-active .bx-promo__copy {
  transition-delay: 0.12s;
}

.bx-promo__slide.swiper-slide-active .bx-btn {
  transition-delay: 0.24s;
}

/* Zakładki z postępem */

.bx-promo__tabs {
  display: flex;
  gap: 4px;
  padding: 0 clamp(20px, 3.4vw, 52px) clamp(20px, 2.6vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
}

.bx-promo__tabs::-webkit-scrollbar {
  display: none;
}

.bx-promo__tab {
  position: relative;
  flex: 1 0 auto;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 4px 14px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--bx-ease);
}

.bx-promo__tab::before,
.bx-promo__tab i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
}

.bx-promo__tab::before {
  background: rgba(255, 255, 255, 0.18);
}

.bx-promo__tab i {
  background: var(--bx-orange-500);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.bx-promo__tab:hover,
.bx-promo__tab.is-active {
  color: #fff;
}

.bx-promo__tab.is-active i {
  animation: bx-bar var(--bx-promo-delay, 6500ms) linear forwards;
}

.bx-promo.is-paused .bx-promo__tab.is-active i {
  animation-play-state: paused;
}

.bx-promo__tab-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #ffb37a;
}

/* ==========================================================================
   Wyszukiwarka – blocks/search-ofert (tylko wygląd; markup i JS bez zmian)
   ========================================================================== */

.search-cont {
  position: relative;
  border-radius: var(--bx-radius-lg) !important;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px) !important;
  margin-block: var(--bx-section-sm) !important;
  box-shadow: var(--bx-shadow);
  overflow: hidden;
  isolation: isolate;
}

.search-cont::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bx-navy-700), var(--bx-navy-500) 50%, var(--bx-orange-500));
}

.search-cont .search-cont-text .heading-blue-xs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.search-cont .search-cont-text .heading-blue-xs::before,
.search-cont .search-cont-text .heading-blue-xs::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--bx-orange-500);
}

.search-cont .search-cont-text .heading-black-3xl {
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.035em;
}

/* Przełącznik mieszkanie / lokal – segmented control */

.search-cont .setup-filter-buttons {
  display: inline-flex;
  gap: 4px;
  max-height: none;
  margin-top: 22px;
  padding: 5px;
  border-radius: var(--bx-pill);
  background: var(--bx-paper);
  box-shadow: inset 0 0 0 1px var(--bx-line);
}

.search-cont .setup-filter-buttons a {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 11px 22px !important;
  border: 0 !important;
  border-radius: var(--bx-pill) !important;
  background: transparent !important;
  color: var(--bx-ink-2) !important;
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.35s var(--bx-ease), color 0.35s var(--bx-ease), box-shadow 0.35s;
}

.search-cont .setup-filter-buttons a:hover {
  color: var(--bx-navy-700) !important;
}

.search-cont .setup-filter-buttons a.active {
  background: var(--bx-navy-700) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -10px rgba(28, 53, 131, 0.8);
}

/* Pola */

.search-cont label {
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--bx-ink);
}

.search-cont #location,
.search-cont .investment-list,
.search-cont .price-selected,
.search-cont .area-selected {
  border: 1px solid var(--bx-line-2) !important;
  border-radius: var(--bx-radius-sm) !important;
  background-color: var(--bx-white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-cont #location,
.search-cont .investment-list {
  min-height: 52px;
  font-size: 15px;
  color: var(--bx-ink);
}

.search-cont #location:hover,
.search-cont .investment-list:hover,
.search-cont .price-selected:hover,
.search-cont .area-selected:hover {
  border-color: var(--bx-navy-200) !important;
}

.search-cont #location:focus,
.search-cont .investment-list:focus {
  outline: none;
  border-color: var(--bx-navy-600) !important;
  box-shadow: 0 0 0 4px var(--bx-navy-100);
}

.search-cont .price-selected div,
.search-cont .area-selected div {
  background: var(--bx-line) !important;
}

/* Pokoje / ekspozycja / budynek – przyciski w grupie */

.search-cont .checkbox-group {
  gap: 6px;
}

.search-cont .checkbox-group label {
  width: 52px;
  height: 52px;
  padding: 0;
  align-items: center;
  border: 1px solid var(--bx-line-2) !important;
  border-radius: var(--bx-radius-sm) !important;
  font-size: 15px;
  transition: background-color 0.3s var(--bx-ease), color 0.3s, border-color 0.3s, transform 0.3s var(--bx-ease);
}

.search-cont .checkbox-group input[type="checkbox"]:not(:checked) + label:hover {
  background: var(--bx-navy-50) !important;
  border-color: var(--bx-navy-200) !important;
  color: var(--bx-navy-700) !important;
}

.search-cont .checkbox-group input[type="checkbox"]:checked + label {
  background: var(--bx-navy-700) !important;
  border-color: var(--bx-navy-700) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Szybkie filtry (taras, balkon…) */

.search-cont .additional-filter {
  padding: 9px 16px !important;
  border-radius: var(--bx-pill) !important;
  background: var(--bx-paper) !important;
  box-shadow: inset 0 0 0 1px var(--bx-line);
  color: var(--bx-ink-2) !important;
  font-size: 13px !important;
  font-weight: 500;
  transition: background-color 0.3s var(--bx-ease), color 0.3s, box-shadow 0.3s !important;
}

.search-cont .additional-filter:hover {
  background: var(--bx-navy-50) !important;
  box-shadow: inset 0 0 0 1px var(--bx-navy-200);
  color: var(--bx-navy-700) !important;
}

.search-cont .additional-filter.active {
  background: var(--bx-navy-700) !important;
  box-shadow: none;
  color: #fff !important;
}

/* Suwaki zakresu */

.search-cont input[type="range"] {
  accent-color: var(--bx-navy-700);
}

.search-cont .filter-cont-text,
.search-cont .filter-cont p {
  font-family: var(--bx-font-display);
  font-weight: 600;
  color: var(--bx-navy-700);
}

.search-cont .filter-cont img {
  transition: transform 0.4s var(--bx-ease);
}

.search-cont .filter-cont:hover img {
  transform: rotate(90deg);
}

.search-cont .cta-search .btn-orange {
  white-space: nowrap;
  padding: 17px 30px;
  font-size: 15px;
}

/* Rozwijane zaawansowane filtry – płynniej */

.search-form_cont2,
.search-form_cont3 {
  transition: opacity 0.5s var(--bx-ease), height 0.5s var(--bx-ease) !important;
}

/* ==========================================================================
   „Dlaczego Bryksy?” – blocks/question-blocks
   ========================================================================== */

.bx-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

/* Najpierw tytuł i nawigacja, potem zdjęcie – na każdej szerokości */

.bx-why__aside {
  order: -1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .bx-why__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    align-items: center;
    gap: clamp(40px, 5vw, 96px);
  }

}

.bx-why__aside .bx-title {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* Nawigacja */

.bx-why__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 0 16px 6px;
}

.bx-why__nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .bx-why__nav {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--bx-line);
  }
}

.bx-why .question-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: -moz-max-content;
  min-width: max-content;
  padding: 12px 18px;
  border: 1px solid var(--bx-line-2);
  border-radius: var(--bx-pill);
  background: transparent;
  color: var(--bx-ink-2);
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  transition: color 0.35s var(--bx-ease), background-color 0.35s var(--bx-ease), border-color 0.35s var(--bx-ease), padding 0.5s var(--bx-ease);
}

.bx-why .question-link::before,
.bx-why .question-link::after {
  display: none;
}

.bx-why .question-link:hover {
  text-decoration: none;
  color: var(--bx-navy-700);
}

.bx-why .question-link.active {
  background: var(--bx-navy-700);
  border-color: var(--bx-navy-700);
  color: #fff;
}

@media (min-width: 1024px) {
  .bx-why .question-link {
    min-width: 0;
    padding: 22px 4px;
    border: 0;
    border-bottom: 1px solid var(--bx-line);
    border-radius: 0;
    font-size: clamp(17px, 1.35vw, 21px);
    color: var(--bx-muted);
  }

  /* Pasek „wypełnienia” pod aktywną pozycją */
  .bx-why .question-link::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--bx-orange-500);
    transform-origin: 0 50%;
    transform: scaleX(0);
    transition: transform 0.7s var(--bx-ease);
  }

  .bx-why .question-link:hover {
    color: var(--bx-ink);
    padding-left: 10px;
  }

  .bx-why .question-link.active {
    background: transparent;
    color: var(--bx-ink);
    padding-left: 10px;
  }

  .bx-why .question-link.active::after {
    transform: scaleX(1);
  }
}

.bx-why__num {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bx-orange-500);
}

.bx-why .question-link.active .bx-why__num {
  color: #ffb37a;
}

@media (min-width: 1024px) {
  .bx-why .question-link.active .bx-why__num {
    color: var(--bx-orange-500);
  }
}

.bx-why__arrow {
  display: none;
  margin-left: auto;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--bx-ease), transform 0.5s var(--bx-ease);
}

@media (min-width: 1024px) {
  .bx-why__arrow {
    display: block;
  }

  .bx-why .question-link:hover .bx-why__arrow,
  .bx-why .question-link.active .bx-why__arrow {
    opacity: 1;
    transform: none;
  }
}

/* Scena: zdjęcie + karta */

.bx-why__stage {
  position: relative;
  min-width: 0;
}

.bx-why__item {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.bx-why__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-sand);
}

@media (min-width: 1024px) {
  .bx-why__media {
    aspect-ratio: 5 / 4;
    border-radius: var(--bx-radius-lg) var(--bx-radius-lg) 120px var(--bx-radius-lg);
  }
}

.bx-why__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.bx-why__card {
  position: relative;
  margin: -64px 14px 0;
  padding: clamp(22px, 2.6vw, 40px);
  border-radius: var(--bx-radius);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--bx-shadow);
}

@media (min-width: 1024px) {
  .bx-why__card {
    position: absolute;
    left: -56px;
    bottom: 40px;
    width: min(520px, 72%);
    margin: 0;
  }
}

.bx-why__card-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--bx-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bx-orange-500);
}

.bx-why__card h3 {
  margin: 0 0 12px;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--bx-navy-700);
}

.bx-why__card-text,
.bx-why__card-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bx-ink-2);
}

.bx-why__card-text p + p {
  margin-top: 10px;
}

/* Animacja przełączenia (desktop: jQuery show()/hide() – animacja startuje przy pokazaniu) */

@media (prefers-reduced-motion: no-preference) {
  .bx-why__item .bx-why__media {
    animation: bx-why-media 1s var(--bx-ease) both;
  }

  .bx-why__item .bx-why__media img {
    animation: bx-why-img 1.6s var(--bx-ease) both;
  }

  .bx-why__item .bx-why__card {
    animation: bx-why-card 0.9s var(--bx-ease) 0.15s both;
  }

  #question-content.swiper-promo3 .bx-why__media,
  #question-content.swiper-promo3 .bx-why__media img,
  #question-content.swiper-promo3 .bx-why__card {
    animation: none;
  }
}

@keyframes bx-why-media {
  from { -webkit-clip-path: inset(0 0 0 100% round var(--bx-radius-lg)); clip-path: inset(0 0 0 100% round var(--bx-radius-lg)); }
  to { -webkit-clip-path: inset(0 0 0 0 round var(--bx-radius-lg)); clip-path: inset(0 0 0 0 round var(--bx-radius-lg)); }
}

@keyframes bx-why-img {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes bx-why-card {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Mobile: Swiper (klasa swiper-promo3 dodawana przez theme.js ≤ 768px) */

#question-content.swiper-promo3 {
  overflow: hidden;
  border-radius: var(--bx-radius-lg);
}

#question-content.swiper-promo3 .question-cont {
  display: grid !important;
  height: auto;
}

/* ==========================================================================
   Realizacje – blocks/realizations-block (rozwijane panele)
   ========================================================================== */

.bx-real__head,
.bx-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.bx-real__head .bx-head,
.bx-news__head .bx-head {
  max-width: 760px;
}

.bx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  padding-bottom: 4px;
  font-family: var(--bx-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--bx-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.5s var(--bx-ease), color 0.3s;
}

.bx-link-arrow .bx-icon {
  transition: transform 0.45s var(--bx-ease);
}

.bx-link-arrow:hover {
  color: var(--bx-navy-700);
  background-size: 0 1.5px;
  background-position: 100% 100%;
}

.bx-link-arrow:hover .bx-icon {
  transform: translateX(5px);
}

/* Układ: telefon – karty w poziomym scrollu, komputer – panele */

.bx-real__panels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -16px;
  padding-inline: 16px;
}

.bx-real__panels::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .bx-real__panels {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 1024px) {
  .bx-real__panels {
    display: flex;
    gap: 12px;
    height: clamp(480px, 40vw, 640px);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

.bx-panel {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--bx-navy-900);
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .bx-panel {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: auto;
    transition: flex-grow 0.9s cubic-bezier(0.65, 0, 0.2, 1);
  }

  .bx-panel.is-active {
    flex-grow: 3.6;
  }
}

.bx-panel__media,
.bx-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bx-panel__media {
  z-index: -2;
}

.bx-panel__media img {
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--bx-ease-soft), transform 2.6s var(--bx-ease-soft);
}

.bx-panel__media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.bx-panel.is-active .bx-panel__media img.is-active {
  transform: scale(1.04);
}

.bx-panel__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 20, 51, 0.88) 0%, rgba(10, 20, 51, 0.25) 45%, rgba(10, 20, 51, 0.05) 70%);
  transition: background-color 0.8s var(--bx-ease);
}

@media (min-width: 1024px) {
  .bx-panel:not(.is-active) .bx-panel__shade {
    background-color: rgba(10, 20, 51, 0.38);
  }
}

/* Pionowa etykieta (tylko zwinięte panele na komputerze) */

.bx-panel__rail {
  display: none;
}

@media (min-width: 1024px) {
  .bx-panel__rail {
    position: absolute;
    inset: 24px 0 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.4s var(--bx-ease) 0.35s;
  }

  .bx-panel.is-active .bx-panel__rail {
    opacity: 0;
    transition-delay: 0s;
  }
}

.bx-panel__num {
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffb37a;
}

.bx-panel__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 80%;
  overflow: hidden;
  font-family: var(--bx-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Treść aktywnego panelu */

.bx-panel__content {
  position: absolute;
  inset: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .bx-panel__content {
    inset: 28px 32px 32px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s var(--bx-ease), transform 0.5s var(--bx-ease);
  }

  .bx-panel.is-active .bx-panel__content {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--bx-ease) 0.4s, transform 0.8s var(--bx-ease) 0.4s;
  }
}

.bx-panel__top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bx-panel__count {
  flex: none;
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.bx-panel__count i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.bx-panel .bx-real__dots {
  flex: 1;
  display: flex;
  gap: 4px;
  max-width: 220px;
}

.bx-real__dots i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.3s;
}

.bx-real__dots i.is-active {
  background: #fff;
}

.bx-panel__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.bx-panel__city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.bx-panel__name {
  display: block;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.bx-panel__name span,
.bx-panel__name em {
  font-weight: 300;
  font-style: normal;
  opacity: 0.85;
}

.bx-panel__cta {
  display: none;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 13px 20px;
  border-radius: var(--bx-pill);
  background: #fff;
  color: var(--bx-ink);
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.35s var(--bx-ease), color 0.35s var(--bx-ease);
}

@media (min-width: 1024px) {
  .bx-panel__cta {
    display: inline-flex;
  }
}

.bx-panel__cta .bx-icon {
  transition: transform 0.45s var(--bx-ease);
}

.bx-panel:hover .bx-panel__cta {
  background: var(--bx-orange-500);
  color: #fff;
}

.bx-panel:hover .bx-panel__cta .bx-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   Aktualności – blocks/news-block
   ========================================================================== */

.bx-news {
  background: var(--bx-white);
  border-radius: clamp(28px, 4vw, 56px);
  margin-inline: clamp(0px, 1vw, 16px);
}

.bx-news__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .bx-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bx-post--feature {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .bx-news__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .bx-post--feature {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

.bx-post {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--bx-radius-lg);
  background: var(--bx-paper);
  overflow: hidden;
  transition: transform 0.6s var(--bx-ease), box-shadow 0.6s var(--bx-ease);
}

.bx-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--bx-shadow);
}

.bx-post__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.bx-post__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bx-sand);
}

.bx-post__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 1.2s var(--bx-ease);
}

.bx-post:hover .bx-post__media img {
  transform: scale(1.05);
}

.bx-post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 24px;
}

.bx-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bx-muted);
}

.bx-post__tag {
  padding: 5px 10px;
  border-radius: var(--bx-pill);
  background: var(--bx-navy-100);
  color: var(--bx-navy-700);
  font-size: 12px;
  font-weight: 600;
}

.bx-post__title {
  margin: 0;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--bx-ink);
  text-wrap: balance;
}

.bx-post__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bx-muted);
}

.bx-post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--bx-navy-700);
}

.bx-post__more .bx-icon {
  transition: transform 0.45s var(--bx-ease);
}

.bx-post:hover .bx-post__more .bx-icon {
  transform: translateX(5px);
}

/* Duży wpis */

.bx-post--feature .bx-post__title {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

@media (min-width: 1024px) {
  .bx-post--feature .bx-post__media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 320px;
  }

  /* Mniejsze wpisy: zdjęcie po lewej, tekst po prawej */
  .bx-post:not(.bx-post--feature) {
    flex-direction: row;
  }

  .bx-post:not(.bx-post--feature) .bx-post__media {
    flex: 0 0 44%;
    aspect-ratio: auto;
  }
}

/* ==========================================================================
   Kafle CTA – blocks/banner-info
   Jasna wersja: zdjęcie bez ciemnej nakładki, treść na białym panelu.
   ========================================================================== */

.bx-duo__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .bx-duo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bx-duo__card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(380px, 32vw, 480px);
  padding: clamp(12px, 1.4vw, 18px);
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--bx-sand);
}

.bx-duo__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}

.bx-duo__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: brightness(1.08) saturate(1.08);
  transition: transform 1.4s var(--bx-ease);
}

.bx-duo__card:hover .bx-duo__media img {
  transform: scale(1.05);
}

/* Bardzo delikatne rozjaśnienie od dołu – panel lepiej „siedzi” na zdjęciu */

.bx-duo__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%);
}

.bx-duo__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 520px);
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--bx-radius);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 50px -28px rgba(15, 29, 74, 0.45);
  transition: transform 0.6s var(--bx-ease), box-shadow 0.6s var(--bx-ease);
}

.bx-duo__card:hover .bx-duo__body {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -28px rgba(15, 29, 74, 0.55);
}

.bx-duo__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bx-orange-600);
}

.bx-duo__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--bx-font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--bx-ink);
}

.bx-duo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.bx-select {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  color: var(--bx-ink);
}

/* #investment-select – ID, bo v1 (banner-info.scss) stylizuje to pole selektorem ID */

.bx-select select,
.bx-select #investment-select {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 20px;
  border: 0;
  border-radius: var(--bx-pill);
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: var(--bx-paper);
  box-shadow: inset 0 0 0 1.5px var(--bx-line-2);
  color: var(--bx-ink);
  font-family: var(--bx-font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.3s var(--bx-ease), background-color 0.3s;
}

.bx-select select:hover,
.bx-select select:focus,
.bx-select #investment-select:hover,
.bx-select #investment-select:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--bx-navy-600), 0 0 0 4px var(--bx-navy-100);
  outline: none;
}

.bx-select .bx-icon {
  position: absolute;
  right: 18px;
  pointer-events: none;
  color: var(--bx-navy-700);
}

/* ==========================================================================
   Pozostałe bloki treści (SEO, nagłówki podstron, teksty)
   ========================================================================== */

/* Tekst SEO z „Pokaż więcej” */

.seo-text-wrapper {
  padding-block: 8px 24px;
}

.seo-text-wrapper .seo-text,
.seo-text-wrapper .seo-text-img {
  position: relative;
  max-width: 920px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bx-ink-2);
}

.seo-text-wrapper .seo-text h2,
.seo-text-wrapper .seo-text h3 {
  font-family: var(--bx-font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bx-ink);
}

.seo-text-wrapper .seo-text.collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(0deg, var(--bx-paper), rgba(246, 245, 241, 0));
  pointer-events: none;
}

.seo-text-wrapper .seo-text.expanded::after {
  display: none;
}

.seo-toggle,
.seo-toggle-img {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--bx-pill);
  background: var(--bx-white) !important;
  box-shadow: inset 0 0 0 1.5px var(--bx-line-2) !important;
  color: var(--bx-ink) !important;
  font-family: var(--bx-font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s, color 0.3s;
}

.seo-toggle:hover,
.seo-toggle-img:hover {
  box-shadow: inset 0 0 0 1.5px var(--bx-ink) !important;
}

/* ==========================================================================
   Bloki podstron: nagłówek, tekst+zdjęcie, nagrody, wartości, zespół, ikony,
   kafle, baner, oferty pracy, FAQ, galeria, logotypy
   ========================================================================== */

/* Nagłówek podstrony */

.bx-pagehead {
  padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 2vw, 24px);
}

.bx-pagehead .bx-title {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.045em;
}

.bx-pagehead .bx-head {
  margin-bottom: 0;
}

#breadcrumbs ul {
  font-size: 12.5px;
  gap: 8px;
}

#breadcrumbs ul li:last-child a {
  color: var(--bx-navy-700);
  font-weight: 600;
}

/* Tekst + zdjęcie (blocks/text-block – markup v1, nowy wygląd) */

.block-text .block-text-des {
  border-radius: var(--bx-radius-lg) !important;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--bx-shadow);
  padding: clamp(24px, 3.4vw, 52px) !important;
}

.block-text .block-text-des .heading-blue-38 {
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.035em;
  color: var(--bx-ink);
}

.block-text .block-text-des .text-black-18,
.block-text .block-text-des .text-black-18 p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bx-ink-2);
}

.block-text .block-text-des .text-black-18 p + p {
  margin-top: 14px;
}

.block-text .block-text-img img,
.block-text .block-text-video iframe {
  border-radius: var(--bx-radius-lg) !important;
}

.text-block-one .block-text-img img,
.text-block-eight .block-text-img img {
  border-top-right-radius: 140px !important;
}

.text-block-two .block-text-img img,
.text-block-three .block-text-img img:first-child,
.text-block-four .block-text-img img,
.text-block-five .block-text-img img,
.text-block-six .block-text-img img,
.text-block-seven .block-text-img img {
  border-bottom-left-radius: 140px !important;
}

@media (max-width: 1023px) {
  .block-text .block-text-img img {
    border-radius: var(--bx-radius-lg) !important;
  }
}

/* Nagrody */

.bx-awards__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 72%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: -16px;
  padding: 4px 16px 24px;
}

.bx-awards__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .bx-awards__list {
    grid-auto-columns: minmax(260px, 40%);
  }
}

@media (min-width: 1280px) {
  .bx-awards__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

.bx-award {
  display: flex;
  flex-direction: column;
  border-radius: var(--bx-radius-lg);
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-sm);
  overflow: hidden;
  scroll-snap-align: start;
  color: inherit;
  transition: transform 0.6s var(--bx-ease), box-shadow 0.6s var(--bx-ease);
}

.bx-award:hover {
  transform: translateY(-6px);
  box-shadow: var(--bx-shadow);
}

.bx-award__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bx-sand), #f7f4ee);
}

.bx-award__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 1.2s var(--bx-ease);
}

.bx-award:hover .bx-award__media img {
  transform: scale(1.06);
}

.bx-award__body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}

.bx-award__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bx-orange-100);
  color: var(--bx-orange-600);
}

.bx-award__icon .bx-icon {
  width: 22px;
  height: 22px;
}

.bx-award__text {
  font-family: var(--bx-font-display);
  font-size: 15px;
  line-height: 1.35;
  color: var(--bx-muted);
}

.bx-award__text strong,
.bx-award__text b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bx-ink);
}

/* Wartości */

.bx-values {
  overflow: hidden;
}

.bx-values__track {
  padding-inline: max(16px, calc((100vw - 1440px) / 2 + 16px));
}

.bx-values__swiper {
  overflow: visible !important;
}

.bx-value {
  position: relative;
  aspect-ratio: 3 / 2;
  height: auto !important;
  border-radius: var(--bx-radius);
  overflow: hidden;
  background: var(--bx-white);
  transition: transform 0.6s var(--bx-ease), box-shadow 0.6s var(--bx-ease);
}

.bx-value:hover {
  transform: translateY(-6px);
  box-shadow: var(--bx-shadow);
}

.bx-value__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: opacity 0.6s var(--bx-ease), transform 1s var(--bx-ease);
}

.bx-value__img--hover {
  opacity: 0;
  transform: scale(1.04);
}

.bx-value--swap:hover .bx-value__img--hover {
  opacity: 1;
  transform: none;
}

.bx-value__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 20, 51, 0.75), rgba(10, 20, 51, 0) 60%);
}

.bx-value__name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Zespół */

.bx-team__grid {
  display: grid;
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .bx-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bx-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

.bx-person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-sand);
}

.bx-person__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: grayscale(0.9) contrast(1.02);
  transform: scale(1.02);
  transition: filter 0.9s var(--bx-ease), transform 1.2s var(--bx-ease);
}

.bx-person:hover .bx-person__photo img {
  filter: grayscale(0);
  transform: scale(1.06);
}

.bx-person__name {
  margin: 22px 0 10px;
  font-family: var(--bx-font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bx-ink);
}

.bx-person__bio,
.bx-person__bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--bx-ink-2);
}

.bx-person__bio p:first-child,
.bx-person__bio strong {
  color: var(--bx-navy-700);
  font-weight: 600;
}

.bx-person__bio p + p {
  margin-top: 12px;
}

/* Ikony */

.bx-icons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .bx-icons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bx-icons__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

.bx-icons__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--bx-radius);
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-xs);
  transition: transform 0.5s var(--bx-ease), box-shadow 0.5s var(--bx-ease);
}

.bx-icons__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--bx-shadow);
}

.bx-icons__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bx-navy-50);
  transition: background-color 0.4s var(--bx-ease), transform 0.5s var(--bx-ease);
}

.bx-icons__item:hover .bx-icons__icon {
  background: var(--bx-orange-100);
  transform: rotate(-6deg);
}

.bx-icons__icon img {
  width: 30px;
  height: 30px;
  -o-object-fit: contain;
     object-fit: contain;
}

.bx-icons__label {
  font-family: var(--bx-font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bx-ink);
}

/* Numerowane kafle w sliderze */

.bx-steps {
  overflow: hidden;
}

.bx-steps__swiper {
  overflow: visible !important;
}

.bx-step {
  height: auto !important;
  padding: 12px 12px 24px;
  border-radius: var(--bx-radius-lg);
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-sm);
}

.bx-step__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--bx-radius);
  overflow: hidden;
  background: var(--bx-sand);
}

.bx-step__media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 1.2s var(--bx-ease);
}

.bx-step:hover .bx-step__media img {
  transform: scale(1.06);
}

.bx-step__num {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--bx-font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.bx-step__title {
  margin: 20px 12px 8px;
  font-family: var(--bx-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bx-ink);
}

.bx-step__text,
.bx-step__text p {
  margin: 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bx-muted);
}

/* Kafle informacyjne */

.bx-boxes {
  overflow: hidden;
}

.bx-boxes__swiper {
  overflow: visible !important;
}

.bx-box {
  position: relative;
  aspect-ratio: 4 / 5;
  height: auto !important;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--bx-navy-900);
}

.bx-box__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 1.4s var(--bx-ease);
}

.bx-box:hover .bx-box__img,
.bx-box:focus-within .bx-box__img {
  transform: scale(1.06);
}

.bx-box__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 20, 51, 0.9) 0%, rgba(10, 20, 51, 0.25) 50%, rgba(10, 20, 51, 0) 70%);
  transition: background-color 0.6s var(--bx-ease);
}

.bx-box--hover:hover .bx-box__shade,
.bx-box--hover:focus-within .bx-box__shade {
  background-color: rgba(10, 20, 51, 0.55);
}

.bx-box__body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.bx-box__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--bx-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffb37a;
}

.bx-box__title,
.bx-box__title p {
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.bx-box__more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--bx-ease), opacity 0.5s var(--bx-ease);
}

.bx-box__more > * {
  min-height: 0;
}

.bx-box--hover:hover .bx-box__more,
.bx-box--hover:focus-within .bx-box__more {
  grid-template-rows: 1fr;
  opacity: 1;
}

.bx-box__more {
  overflow: hidden;
}

.bx-box__text {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.bx-box__more .bx-btn {
  margin-top: 16px;
  justify-self: start;
}

@media (hover: none) {
  .bx-box__more {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}

/* Baner tekst + zdjęcie */

.bx-split__card {
  display: grid;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-sm);
}

@media (min-width: 1024px) {
  .bx-split__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 460px;
  }
}

.bx-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 64px);
}

.bx-split__title {
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--bx-ink);
}

.bx-split__text,
.bx-split__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--bx-ink-2);
}

.bx-split__media {
  position: relative;
  min-height: 280px;
}

.bx-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Akordeon (oferty pracy, FAQ) */

.bx-accordion {
  display: grid;
  gap: 10px;
}

.bx-accordion__item {
  border-radius: var(--bx-radius);
  background: var(--bx-white);
  box-shadow: var(--bx-shadow-xs);
  transition: box-shadow 0.4s var(--bx-ease);
}

.bx-accordion__item.is-open {
  box-shadow: var(--bx-shadow);
}

.bx-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--bx-ink);
}

.bx-accordion__q,
.bx-job__name {
  flex: 1;
  font-family: var(--bx-font-display);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.bx-accordion__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bx-paper);
  color: var(--bx-navy-700);
  transition: transform 0.5s var(--bx-ease), background-color 0.4s, color 0.4s;
}

.bx-accordion__item.is-open .bx-accordion__icon {
  transform: rotate(135deg);
  background: var(--bx-orange-500);
  color: #fff;
}

.bx-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--bx-ease);
}

.bx-accordion__item.is-open .bx-accordion__panel {
  grid-template-rows: 1fr;
}

.bx-accordion__inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--bx-ink-2);
  opacity: 0;
  transition: opacity 0.4s var(--bx-ease), padding 0.55s var(--bx-ease);
}

.bx-accordion__item.is-open .bx-accordion__inner {
  padding-bottom: 24px;
  opacity: 1;
}

.bx-accordion__inner p + p,
.bx-accordion__inner ul {
  margin-top: 10px;
}

.bx-accordion__inner ul {
  padding-left: 18px;
  list-style: disc;
}

.bx-jobs__list {
  max-width: 980px;
  margin-inline: auto;
}

.bx-job__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--bx-pill);
  background: var(--bx-navy-50);
  color: var(--bx-navy-700);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 639px) {
  .bx-job__city {
    display: none;
  }
}

.bx-job .bx-accordion__inner .bx-btn {
  margin-top: 16px;
}

/* FAQ */

.bx-faq__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.bx-faq__layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .bx-faq__layout {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr);
    align-items: start;
    gap: 40px;
  }

  .bx-faq__tabs {
    position: sticky;
    top: 120px;
  }
}

.bx-faq__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (min-width: 1024px) {
  .bx-faq__tabs {
    flex-direction: column;
    overflow: visible;
  }
}

.bx-faq__tab {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 16px 18px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-radius);
  background: var(--bx-white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.35s, background-color 0.35s, box-shadow 0.35s, transform 0.4s var(--bx-ease);
}

.bx-faq__tab:hover {
  border-color: var(--bx-navy-200);
  transform: translateX(3px);
}

.bx-faq__tab.is-active {
  border-color: var(--bx-navy-700);
  background: var(--bx-navy-700);
  box-shadow: 0 14px 28px -16px rgba(28, 53, 131, 0.8);
}

.bx-faq__tab-icon img {
  width: 36px;
  height: 36px;
  -o-object-fit: contain;
     object-fit: contain;
}

.bx-faq__tab.is-active .bx-faq__tab-icon img {
  filter: brightness(0) invert(1);
}

.bx-faq__tab-title {
  display: block;
  font-family: var(--bx-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--bx-ink);
}

.bx-faq__tab-des {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--bx-muted);
}

.bx-faq__tab.is-active .bx-faq__tab-title {
  color: #fff;
}

.bx-faq__tab.is-active .bx-faq__tab-des {
  color: rgba(255, 255, 255, 0.72);
}

.bx-faq__panel.is-active {
  animation: bx-fade-up 0.6s var(--bx-ease);
}

@keyframes bx-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Galeria */

.bx-gallery {
  overflow: hidden;
}

.bx-gallery__swiper {
  position: relative;
  overflow: visible !important;
}

.bx-gallery__slide {
  width: min(78vw, 820px) !important;
  aspect-ratio: 16 / 10;
  height: auto !important;
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.6s var(--bx-ease);
}

.bx-gallery__slide.swiper-slide-active,
.bx-gallery__slide.swiper-slide-next {
  opacity: 1;
}

.bx-gallery__slide a,
.bx-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.bx-gallery__slide img {
  transition: transform 1.2s var(--bx-ease);
}

.bx-gallery__slide:hover img {
  transform: scale(1.04);
}

.bx-gallery .swiper-button-prev,
.bx-gallery .swiper-button-next {
  width: 52px;
  height: 52px;
  margin-top: -26px;
  background: rgba(10, 20, 51, 0.35);
}

.bx-gallery .swiper-button-prev::after,
.bx-gallery .swiper-button-next::after {
  display: none;
}

.bx-gallery .swiper-button-prev {
  left: 16px;
}

.bx-gallery .swiper-button-next {
  right: 16px;
}

/* Logotypy */

.bx-logos__item {
  display: grid !important;
  place-items: center;
  height: 120px !important;
  padding: 20px;
  border-radius: var(--bx-radius);
  background: var(--bx-white);
}

.bx-logos__item img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s, opacity 0.4s;
}

.bx-logos__item:hover img {
  filter: none;
  opacity: 1;
}

/* Lista inwestycji (archive-investments.php) */

.archive-investments_head .heading-black-3xl {
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.04em;
  margin-top: 6px;
}

.archive-investments_head > span {
  display: block;
  max-width: 70ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bx-muted);
}

.archive-investments_all {
  gap: 24px !important;
}

.archive-investments_all .investment-box.bx-card {
  max-width: none;
  min-height: 0;
  justify-self: stretch;
}

.archive-investments_all .investments-map {
  border-radius: var(--bx-radius-lg);
  overflow: hidden;
  background: var(--bx-sand) !important;
  min-height: 420px;
}

.archive-investments_all .investments-map_text {
  border-radius: 0 var(--bx-radius) var(--bx-radius) 0 !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--bx-shadow-sm);
}

/* ==========================================================================
   Pływający kafelek ogłoszenia – blocks/banner-top (logika: src/js/v2/teaser.js)
   ========================================================================== */

.bx-teaser {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9990;
  pointer-events: none;
}

.bx-teaser__card {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 136px 1fr;
  width: 420px;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 29, 74, 0.06), 0 40px 80px -30px rgba(15, 29, 74, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(calc(-100% - 40px), 0, 0) rotate(-4deg);
  transform-origin: 0 100%;
  transition:
    transform 0.7s cubic-bezier(0.7, 0, 0.84, 0),
    opacity 0.4s ease 0.2s,
    visibility 0s linear 0.7s;
}

.bx-teaser.is-open .bx-teaser__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    transform 1s cubic-bezier(0.16, 1.2, 0.3, 1),
    opacity 0.4s ease,
    visibility 0s;
}

.bx-teaser__media {
  position: relative;
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--bx-navy-900);
}

.bx-teaser__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transform: scale(1.12);
  transition: transform 6s var(--bx-ease-soft);
}

.bx-teaser.is-open .bx-teaser__media img {
  transform: scale(1);
}

.bx-teaser__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 20, 51, 0.35), rgba(10, 20, 51, 0) 50%);
}

.bx-teaser__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 48px 20px 20px;
}

.bx-teaser__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--bx-font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bx-orange-600);
}

.bx-teaser__eyebrow .bx-dot,
.bx-teaser__pill .bx-dot {
  background: var(--bx-orange-500);
}

.bx-teaser__title {
  margin: 0 0 4px;
  font-family: var(--bx-font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--bx-ink);
  text-wrap: balance;
}

/* Wejście treści po wysunięciu karty */

.bx-teaser__body > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--bx-ease), transform 0.6s var(--bx-ease);
}

.bx-teaser.is-open .bx-teaser__body > * {
  opacity: 1;
  transform: none;
}

.bx-teaser.is-open .bx-teaser__body > :nth-child(1) { transition-delay: 0.35s; }

.bx-teaser.is-open .bx-teaser__body > :nth-child(2) { transition-delay: 0.45s; }

.bx-teaser.is-open .bx-teaser__body > :nth-child(3) { transition-delay: 0.55s; }

.bx-teaser__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bx-paper);
  color: var(--bx-ink);
  cursor: pointer;
  transition: transform 0.45s var(--bx-ease), background-color 0.3s, color 0.3s;
}

.bx-teaser__close:hover {
  transform: rotate(90deg);
  background: var(--bx-ink);
  color: #fff;
}

.bx-teaser__close .bx-icon {
  width: 16px;
  height: 16px;
}

/* Pasek czasu – po jego wypełnieniu kafelek zwija się do pigułki */

.bx-teaser__timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--bx-orange-500);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.bx-teaser.is-open:not(.is-manual) .bx-teaser__timer {
  animation: bx-bar 14s linear 1s forwards;
}

.bx-teaser.is-hover .bx-teaser__timer {
  animation-play-state: paused;
}

.bx-teaser.is-manual .bx-teaser__timer {
  display: none;
}

/* Pigułka po zwinięciu */

.bx-teaser__pill {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 0;
  border-radius: var(--bx-pill);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 2px rgba(15, 29, 74, 0.08), 0 18px 40px -16px rgba(15, 29, 74, 0.5);
  color: var(--bx-ink);
  font-family: var(--bx-font-display);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-24px, 0, 0) scale(0.9);
  transition: transform 0.4s var(--bx-ease), opacity 0.3s ease, visibility 0s linear 0.4s;
}

.bx-teaser.is-min .bx-teaser__pill {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: transform 0.7s cubic-bezier(0.16, 1.2, 0.3, 1) 0.35s, opacity 0.4s ease 0.35s, visibility 0s 0.35s;
}

.bx-teaser__pill:hover {
  transform: translateY(-3px);
}

.bx-teaser__pill-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--bx-navy-900);
}

.bx-teaser__pill-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.bx-teaser__pill-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Gdy otwarte jest menu burgera (nav.js dodaje body.no-scroll) – kafelek znika */

body.no-scroll .bx-teaser {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

/* Telefon: nad dolną nawigacją, na całą szerokość */

@media (max-width: 767px) {
  .bx-teaser {
    left: 12px;
    right: 12px;
    bottom: 88px;
  }

  .bx-teaser__card {
    width: 100%;
    grid-template-columns: 104px 1fr;
    border-radius: 20px;
    transform: translate3d(0, calc(100% + 120px), 0);
  }

  .bx-teaser__body {
    gap: 6px;
    padding: 14px 44px 16px 16px;
  }

  .bx-teaser__title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .bx-teaser__close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bx-teaser__card,
  .bx-teaser.is-open .bx-teaser__card,
  .bx-teaser__pill,
  .bx-teaser.is-min .bx-teaser__pill {
    transition-duration: 0.01s !important;
  }
}
