/*@import "./normalize.css";*/
@import "./_sidebar.css";
@import "./mount-header.css";
@import "./buttons.css";
@import "./universal-slider-controls.css";
@import "./mountview-swiper.css";
@import "./animations.css";
@import "./funds/mgrn.css";
@import "./charts.css";
/*
Theme Name: Mount TFI
Template: hello-elementor
Version: 2.5 - Final & Fully Restored
Author: hyperocks
*/

/* ===================================================================
   TABLE OF CONTENTS
   ===================================================================
   1.  Global & Body Settings
   2.  Lenis Smooth Scroll
   3.  Unified Scrollbar Styles
   4.  Header
   5.  Sidebar & Overlay
       5.1. Main Containers
       5.2. Header & Close Button
       5.3. Dropdown Menu (POPRAWIONE)
       5.4. Document List
   6.  Page Components
       6.1. Hero Section (Layout)
       6.2. Poprawka dla kontenerów o pełnej szerokości
       6.3. Hero Section Elements (Logo & Headings)
       6.4. Hero Section Data Bar & Separator
       6.5. General Headlines & Typography
       6.6. Fund Cards
       6.7. Team Members & Swiper
       6.8. Other Components (Buttons, Images etc.)
       6.9. GSAP Animation Prep Styles
   7.  Utilities & Debug
   8.  Responsive Media Queries
=================================================================== */

/* Font Loading Fallbacks */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: local("Work Sans ExtraLight"), local("WorkSans-ExtraLight");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Work Sans Light"), local("WorkSans-Light");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Work Sans Regular"), local("WorkSans-Regular");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Work Sans SemiBold"), local("WorkSans-SemiBold");
}

@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Libre Baskerville Italic"), local("LibreBaskerville-Italic");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Space Grotesk Light"), local("SpaceGrotesk-Light");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Space Grotesk Regular"), local("SpaceGrotesk-Regular");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Space Grotesk Medium"), local("SpaceGrotesk-Medium");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Space Grotesk SemiBold"), local("SpaceGrotesk-SemiBold");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Space Grotesk Bold"), local("SpaceGrotesk-Bold");
}

:root {
  --color-dark: #121212;
  --color-darkbodycopy: #0f1e29;
  --color-text: #0f1e29;
  --color-green-bright: #61b28e;
  --color-green-super-bright: #32bf82;
  --color-green-dark: #4d8d71;
  --color-bg-light-1: #ebeae7;
  --color-bg-light-2: #e1dfdb;
  --color-bg-dark-1: #1b343d;
  --color-bg-dark-2: #0f2929;
  --color-black: #000000;
  --color-white: #ffffff;

  /* Global Padding Variables - Editable */
  /* Left and Right Padding All /Sections/Containers*/
  --fluid-side-padding-min: 1.25rem; /* 20px */
  --fluid-side-padding-max: 14rem; /* 80px */

  /* Top and Bottom Padding All Containers*/
  --section-xxl-padding-min: 9.375rem; /* 150px */
  --section-xxl-padding-max: 10rem; /* 160px */

  --section-xl-padding-min: 6.875rem; /* 110px */
  --section-xl-padding-max: 7.5rem; /* 120px */

  --section-l-padding-min: 5.625rem; /* 90px */
  --section-l-padding-max: 6.25rem; /* 100px */

  --section-m-padding-min: 5rem; /* 80px */
  --section-m-padding-max: 5rem; /* 80px */

  --section-s-padding-min: 3.75rem; /* 60px */
  --section-s-padding-max: 3.75rem; /* 60px */

  --section-xs-padding-min: 2.5rem; /* 40px */
  --section-xs-padding-max: 2.5rem; /* 40px */

  --section-xxs-padding-min: 1.5rem; /* 24px */
  --section-xxs-padding-max: 1.5rem; /* 24px */

  --section-header-padding-min: 1.25rem; /* 20px */
  --section-header-padding-max: 1.25rem; /* 20px */

  /* Hero Sections Height Variable */
  --section-hero-height: 100vh; /* 100% the screen height */

  /* Offset Padding for Overlay Headers */
  --section-offset-header: 80px; /* Adjust to the overlay header's negative margin */

  /* Width For Narrow Sections*/
  --section-narrow: 62.5rem; /* 1000px */
  --section-narrow-xs: 45rem; /* 720px */
}
/* variables (edit here)*/

/* CSS Template (do not edit below) */

/* Section/Container Padding - Fluid Variants */
.section-xxl {
  padding-top: clamp(
    var(--section-xxl-padding-min),
    1.087vw + 9.13rem,
    var(--section-xxl-padding-max)
  );
  padding-bottom: clamp(
    var(--section-xxl-padding-min),
    1.087vw + 9.13rem,
    var(--section-xxl-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    7.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.317rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-xl {
  padding-top: clamp(
    var(--section-xl-padding-min),
    1.087vw + 6.63rem,
    var(--section-xl-padding-max)
  );
  padding-bottom: clamp(
    var(--section-xl-padding-min),
    1.087vw + 6.63rem,
    var(--section-xl-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-l {
  padding-top: clamp(
    var(--section-l-padding-min),
    1.087vw + 5.38rem,
    var(--section-l-padding-max)
  );
  padding-bottom: clamp(
    var(--section-l-padding-min),
    1.087vw + 5.38rem,
    var(--section-l-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-m {
  padding-top: clamp(
    var(--section-m-padding-min),
    0vw + 5rem,
    var(--section-m-padding-max)
  );
  padding-bottom: clamp(
    var(--section-m-padding-min),
    0vw + 5rem,
    var(--section-m-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-s {
  padding-top: clamp(
    var(--section-s-padding-min),
    0vw + 3.75rem,
    var(--section-s-padding-max)
  );
  padding-bottom: clamp(
    var(--section-s-padding-min),
    0vw + 3.75rem,
    var(--section-s-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-xs {
  padding-top: clamp(
    var(--section-xs-padding-min),
    0vw + 2.5rem,
    var(--section-xs-padding-max)
  );
  padding-bottom: clamp(
    var(--section-xs-padding-min),
    0vw + 2.5rem,
    var(--section-xs-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-xxs {
  padding-top: clamp(
    var(--section-xxs-padding-min),
    0vw + 1.5rem,
    var(--section-xxs-padding-max)
  );
  padding-bottom: clamp(
    var(--section-xxs-padding-min),
    0vw + 1.5rem,
    var(--section-xxs-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

.section-header {
  padding-top: clamp(
    var(--section-header-padding-min),
    0vw + 1.25rem,
    var(--section-header-padding-max)
  );
  padding-bottom: clamp(
    var(--section-header-padding-min),
    0vw + 1.25rem,
    var(--section-header-padding-max)
  );
  padding-left: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
  padding-right: clamp(
    var(--fluid-side-padding-min),
    6.522vw + -0.217rem,
    var(--fluid-side-padding-max)
  ) !important;
}

/* Hero Container/Sections Height */
.section-hero {
  min-height: var(--section-hero-height) !important;
}

.section-hero .e-con-inner {
  justify-content: center !important;
}

/* Full Width Sections - No Side Padding */

.section-full div {
  max-width: 100% !important;
}

/* Narrow Sections */
.section-narrow .e-con-inner {
  max-width: var(--section-narrow) !important;
}

.section-narrow-xs .e-con-inner {
  max-width: var(--section-narrow-xs) !important;
}

/* Offset Padding for Overlay Headers */
.section-offset {
  padding-top: calc(
    var(--section-offset-header) + var(--section-xxl-padding-min)
  );
}
/*=== Szerokosci tekstów === */
.t-w25 {
  width: 25ch;
}
.t-w30 {
  width: 30ch;
}
.t-w35 {
  width: 35ch;
}
.t-w40 {
  width: 40ch;
}
.t-w45 {
  width: 45ch;
}
.t-w50 {
  width: 50ch;
}
/*=== wyrównanie tekstu === */
.t-center {
  text-align: center;
}
.t-left {
  text-align: left;
}
.t-right {
  text-align: right;
}
/* ===================================================================
   1. Global & Body Settings
=================================================================== */
body {
  font-size: 100%;
  --color-dark: #121212;
  --color-darkbodycopy: #0f1e29;
  --color-text: #0f1e29;
  --color-green-bright: #61b28e;
  --color-green-super-bright: #32bf82;
  --color-green-dark: #4d8d71;
  --color-bg-light-1: #ebeae7;
  --color-bg-light-2: #e1dfdb;
  --color-bg-dark-1: #1b343d;
  --color-bg-dark-2: #0f2929;
  --color-black: #000000;
  --color-white: #ffffff;
}

/* ===================================================================
   CUSTOM CURSOR STYLES
=================================================================== */
.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-radius: 50%;
  border: 1px solid var(--color-green-dark);
  transition: transform 0.15s ease;
  transform-origin: center center;
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-dot {
  width: 2px;
  height: 2px;
  background-color: var(--color-green-dark);
  border-radius: 50%;
  transition: background-color 0.15s ease;
}

/* Hover state styling - simplified */
.custom-cursor.cursor-hover,
.custom-cursor.cursor-hover-small {
  transform: scale(1.2);
  background: rgba(0, 0, 0, 0.328);
  border-color: var(--color-green-bright);
}

.custom-cursor.cursor-hover .cursor-dot,
.custom-cursor.cursor-hover-small .cursor-dot {
  background-color: #ffffff00;
  width: 4px;
  height: 4px;
}

/* Disable on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* ===================================================================
   2. Lenis Smooth Scroll
=================================================================== */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden !important;
  height: 100% !important;
}
body.sidebar-open {
  /*overflow: hidden !important;*/
  /* touch-action: none; - usuwamy to, bo blokuje scrollowanie w sidebarze */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===================================================================
   3. Unified Scrollbar Styles
=================================================================== */
html.lenis::-webkit-scrollbar,
.docs-lista::-webkit-scrollbar {
  width: 8px;
  background-color: rgba(18, 18, 18, 0.05);
}
html.lenis::-webkit-scrollbar-track,
.docs-lista::-webkit-scrollbar-track {
  background: transparent;
}
html.lenis::-webkit-scrollbar-thumb,
.docs-lista::-webkit-scrollbar-thumb {
  background-color: var(--color-green-dark);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html.lenis::-webkit-scrollbar-thumb:hover,
.docs-lista::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-green-bright);
}

/* Dodatkowe style dla scrollbar na całej stronie */
html::-webkit-scrollbar {
  width: 16px;
  background-color: var(--color-dark);
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: var(--color-green-dark);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-green-bright);
}

/* === GLOBAL BLACK SCROLLBAR === */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.docs-lista::-webkit-scrollbar {
  width: 16px;
  background: var(--color-green-);
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.docs-lista::-webkit-scrollbar-track {
  background: var(--color-bg-light-1) !important;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.docs-lista::-webkit-scrollbar-thumb {
  background: var(--color-green-dark) !important;
  border-radius: 6px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.docs-lista::-webkit-scrollbar-thumb:hover {
  background: var(--color-green-dark) !important;
}

/* ===================================================================
   X. Other Funds Styles 
=================================================================== */
.more-fund-manager-title {
  margin-bottom: 0 !important;
}
.more-fund-manager-title > p {
  margin-bottom: 0 !important;
}
.more-fund-manager-name > h3 {
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1vw + 0.1rem, 1.1rem);
  color: var(--color-darkbodycopy);
  padding-top: 5px;
  text-wrap: nowrap;
}

/* ===================================================================
   4. Header
=================================================================== */
.menu-header {
  position: sticky !important;
  top: 0;
  z-index: 999 !important;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.05);
  will-change: transform;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===================================================================
   6. Page Components
=================================================================== */

/* 6.1. Hero Section (Layout) */
.hero-section {
  padding-block: clamp(4rem, 10vw, 10rem);
  padding-inline: clamp(1rem, 6vw, 5rem);
  position: relative;
  z-index: 3;
}

/* 6.2. Poprawka dla kontenerów o pełnej szerokości */
.elementor-element-fa7fd4a {
  overflow-x: hidden !important;
}

/* 6.3. Hero Section Elements (Logo & Headings) */
.hero-logo {
  max-width: 180px;
  margin: 0 auto 2rem;
}

.hero-heading > .elementor-widget-container > p {
  color: var(--color-white);
  font-family: "Work Sans", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
  margin: 0;
  padding: 0;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* 6.5. General Headlines & Typography */
h1.headline-animate,
h2.headline-animate,
h3.headline-animate {
  font-size: clamp(1.5rem, 1.3773rem + 0.5455vw, 2.4rem) !important;
  line-height: 1.3 !important;
  font-weight: 300 !important;
  font-family: "Work Sans", sans-serif !important;
}
h1.headline-animate em,
h2.headline-animate em,
h3.headline-animate em {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: #4d8d71;
  font-weight: 400;
}
.fluid-text p {
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  max-width: 65ch;
  margin-bottom: 1.25em;
  line-height: 1.4;
  color: #333;
  font-weight: 300;
}

/* 6.6. Fund Cards */
/*
.our-funds-container {
  align-content: center;
  align-items: center;
  background-color: #000000;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0px;
  height: min-content;
  justify-content: flex-start;
  overflow: visible;
  padding: 90px 64px 64px;
  position: relative;
  width: 100%;
  z-index: 2;
}*/
.our-funds-padding {
  align-content: center;
  align-items: center;
  display: flex;
  flex: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 48px;
  height: min-content;
  justify-content: center;
  overflow: visible;
  padding: 128px 0 128px;
  position: relative;
  width: 90vw;
}
.fund-card-container {
  display: grid;
  flex: none;
  gap: 1rem;
  grid-auto-rows: min-content;
  grid-template-columns: repeat(4, minmax(50px, 1fr));
  grid-template-rows: repeat(2, min-content);
  height: min-content;
  justify-content: center;
  overflow: visible;
  padding: 0;
  position: relative;
  width: 100%;
}
.fund-card {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;

  position: relative;
  background: var(--color-bg-light-2);
  padding: 38px;
  border-radius: 21px !important;
  flex: 1 1 22%;

  gap: 1rem;
  height: 380px;
  width: 100%;
  transform: scale(1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease,
    background 0.6s ease, scale 0.4s ease;

  transform-origin: center;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  overflow: hidden;
  will-change: transform, box-shadow, background;
  color: inherit;
}

.fund-card:hover {
  transform: scale(1.05) translate(0, 0) !important;
  transform-origin: center center !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  background-color: #1b343d !important;
  color: #fff !important;
  border: 1px solid var(--color-green-dark) !important;
  /*background: linear-gradient(
    306deg,
    rgba(77, 141, 113, 0.97) 0%,
    rgba(41.99, 99.5, 74.34, 0.94) 100%
  );*/
  color: #fff !important;
  border: 1px solid var(--color-green-dark) !important;
}

.more-fund-manager-arrow svg {
  transition: transform 0.4s ease, stroke 0.3s ease, fill 0.3s ease,
    scale 0.5s ease;
  stroke: currentColor;
  fill: currentColor;
  scale: 0.8;
}

.fund-card:hover .more-fund-desc {
  color: var(--color-white) !important;
}

.fund-card:hover .more-fund-manager-arrow {
  color: var(--color-white) !important;
}

.fund-card:hover .more-fund-manager-arrow svg {
  stroke: var(--color-white) !important;
}

.fund-card:hover .more-fund-manager-arrow .elementor-icon svg {
  stroke: var(--color-white) !important;
}

.fund-card:hover .more-fund-manager-arrow svg path {
  stroke: var(--color-white) !important;
}

.fund-card:hover .more-fund-logo img {
  filter: brightness(0) invert(1) !important;
}

/* Płynne animacje dla elementów fund-card */
.more-fund-manager-arrow {
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more-fund-manager-arrow svg {
  transition: stroke 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    fill 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more-fund-manager-arrow .elementor-icon svg {
  transition: stroke 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    fill 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more-fund-manager-arrow svg path {
  transition: stroke 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    fill 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more-fund-logo img {
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.more-fund-desc {
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Opcjonalnie: delikatne podbicie zdjęcia zarządzającego */
.fund-card:hover .more-fund-manager img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.more-fund-manager img {
  transition: transform 0.3s ease;
}
.more-fund-logo {
  max-width: 100px;
}
.fund-desc {
  font-size: clamp(0.8rem, 1vw, 1.2rem);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  color: var(--color-darkbodycopy);
  line-height: 1.4;
  width: 35ch;
}
.fund-manager-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fund-label {
  font-family: "Work Sans", sans-serif;
  font-weight: 300;

  color: var(--color-black);
}
.fund-label em {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: var(--color-green-dark);
}

.fund-label.fund-label-white {
  color: var(--color-white);
}
.fund-label.fund-label-white em {
  color: var(--color-green-bright);
}

/* Teksty animacja fade-up */
.fund-card p,
.fund-card h1,
.fund-card h2,
.fund-card h3,
.fund-card h4,
.fund-card h5,
.fund-card h6,
.fund-card span {
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

.fund-card:hover p,
.fund-card:hover h1,
.fund-card:hover h2,
.fund-card:hover h3,
.fund-card:hover h4,
.fund-card:hover h5,
.fund-card:hover h6,
.fund-card:hover span {
  opacity: 1;
  color: #fff !important;
}

@media (min-width: 1366px) and (max-width: 1690px) {
  .more-fund-manager-arrow {
    visibility: hidden;
  }
}
/* Widescreen: 2400px and up */
@media (min-width: 2400px) {
  /*body::after {
    content: "Widescreen";
  }*/
}

/* Desktop: 1366px to 2399px */
@media (min-width: 1366px) and (max-width: 2399px) {
  /*body::after {
    content: "Desktop";
  }*/
  .fund-card {
    height: 350px;
    padding: 22px;
  }
}

/* Laptop: 1024px to 1365px */
@media (min-width: 1024px) and (max-width: 1365px) {
  /*body::after {
    content: "Laptop";
  }*/
  .fund-card {
    height: 250px;
    padding: 18px;
  }
  .fund-desc {
    font-size: 1rem;
    width: 55ch;
  }
}

/* Tablet: 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  /*body::after {
    content: "Tablet";
  }*/
  .fund-card {
    height: 280px;
    padding: 24px !important;
  }
  .fund-desc {
    width: 55ch;
  }
}

/* Mobile: 0px to 767px */
@media (max-width: 767px) {
  /*body::after {
    content: "Mobile";
  }*/
  .fund-card {
    height: 280px;
    padding: 18px;
  }
  .fund-desc {
    font-size: 1rem;
    width: 70ch;
  }
  .more-fund-manager-arrow {
    margin-bottom: -10px !important;
    padding-right: 18px !important;
  }
}
/* 6.7. Team Members & Swiper */
.team-member:hover .team-member-name {
  color: var(--color-green-dark) !important;
  transition: color 0.5s ease;
}
.swiper-slide.dimmed {
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

/* === Images=== */
.hero-person__img img {
  border-radius: 16px;
  overflow: hidden;
}

/* 6.9. GSAP Animation Prep Styles */
.animated-feature-section .fluid-text,
.animated-feature-section .icon-block,
.animated-why-section .elementor-widget-image,
.animated-why-section .fluid-text-white-private-debt,
.animated-why-section .elementor-widget-icon-box,
.animated-how-section .headline-animate,
.animated-how-section .icon-block {
  opacity: 0;
  visibility: hidden;
}

.headline-animate h1,
.headline-animate h2,
.headline-animate h3 {
  opacity: 1;
}
.headline-animate .line {
  overflow: hidden;
  padding-bottom: 0.1em;
}

.hero-person .hero-img {
  position: relative;
  overflow: hidden;
  visibility: hidden;
}
.reveal-curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-light-2);
  z-index: 3;
  transform-origin: bottom;
}
.hero-person .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  opacity: 0;
}
.hero-person-content > * {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.animated-docs-section .docs-header-content,
.animated-docs-section .docs-grid {
  opacity: 0;
  visibility: hidden;
}

/* ===================================================================
   7. Utilities & Debug
=================================================================== */
.section-fluid {
  padding-block: clamp(2rem, 8vw, 8rem);
  padding-inline: clamp(1rem, 5vw, 4rem);
  max-width: 80rem;
  margin-inline: auto;
}
.sidebar-trigger-category {
  cursor: pointer;
}
#viewport-debug {
  position: fixed;
  bottom: 0;
  left: 0;
  background: var(--color-black);
  color: #0f0;
  font-size: 12px;
  font-family: monospace;
  padding: 4px 8px;
  z-index: 999999;
  pointer-events: none;
}

/* ===================================================================
   8. Responsive Media Queries
=================================================================== */

/* --- Sidebar --- */
@media (min-width: 768px) {
  #sidebar-panel-dokumenty {
    max-width: 80vw;
    width: 80vw;
  }
}
@media (min-width: 1024px) {
  #sidebar-panel-dokumenty {
    max-width: 50vw;
    width: 50vw;
  }
}
@media (min-width: 1366px) {
  #sidebar-panel-dokumenty {
    max-width: 30vw;
    width: 30vw;
  }
}
@media (min-width: 2400px) {
  #sidebar-panel-dokumenty {
    max-width: 20vw;
    width: 20vw;
  }
}

/* --- Inne komponenty --- */
@media (max-width: 1024px) {
  .fund-card {
    flex: 1 1 48%;
  }
  h1.headline-animate,
  h2.headline-animate,
  h3.headline-animate {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  .icon-grid-equal-height .icon-block {
    height: 140px;
  }
}

@media (max-width: 767px) {
  .fund-card {
    flex: 1 1 80%;
  }
  .hero-heading > .elementor-widget-container > p {
    font-size: 1.1rem;
  }
  h1.headline-animate,
  h2.headline-animate,
  h3.headline-animate {
    font-size: 1.45rem;
    line-height: 1.3;
  }
  .hero-heading > .elementor-widget-container > p {
    max-width: 50ch;
  }

  .has-separator::after {
    display: none;
  }
  .elementor-element-7b28cf3 .elementor-widget-container {
    text-align: center;
  }
}

/* --- Równe wysokości dla Icon Boxów --- */
.icon-grid-equal-height {
  align-items: stretch;
}
.icon-grid-equal-height .icon-block {
  height: 100%;
}
.icon-grid-equal-height .icon-block .elementor-widget-container,
.icon-grid-equal-height .icon-block .elementor-icon-box-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.icon-grid-equal-height .icon-block .elementor-icon-box-content {
  flex-grow: 1;
}

/* === FLUID TEXT UTILITY (light & dark) === */
.fluid-text-light {
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  max-width: 65ch;
  margin-bottom: 1.25em;
  line-height: 1.4;
  color: var(--color-bg-light-1) !important;
  font-weight: 300;
}
.fluid-text-dark {
  font-size: clamp(1.1rem, 1.25vw, 1.3rem);
  max-width: 65ch;
  margin-bottom: 1.25em;
  line-height: 1.4;
  color: var(--color-text, #0f1e29);
  font-weight: 300;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .fluid-text-light,
  .fluid-text-dark {
    font-size: 1.05rem;
  }
}

.fluid-text-light p,
.fluid-text-dark p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* === FLUID TEXT WIDTH MODIFIERS === */
.fluid-text-light.no-max-width,
.fluid-text-dark.no-max-width {
  max-width: none !important;
}

.fluid-text-light.max-width-wide,
.fluid-text-dark.max-width-wide {
  max-width: 85ch !important;
}

.fluid-text-light.max-width-narrow,
.fluid-text-dark.max-width-narrow {
  max-width: 35ch !important;
}

.fluid-text-light.max-width-medium,
.fluid-text-dark.max-width-medium {
  max-width: 55ch !important;
}

/* === NOWE KLASY ANIMACJI PARAGRAFÓW === */
.animate-block-paragraph {
  /* Animacja całego bloku - obsługiwana przez GSAP */
}

.animate-split-lines-paragraph {
  /* Animacja split lines - obsługiwana przez GSAP */
}

/* === PAGE TITLE UTILITY (light & dark) === */
h1.page-title-light,
h2.page-title-light,
h3.page-title-light,
h1.page-title-dark,
h2.page-title-dark,
h3.page-title-dark {
  max-width: 65ch !important;
  /*font-size: clamp(2.5rem, 1.5rem + 3vw, 5rem);*/
  /*font-size: 2.2vw;*/
  font-size: clamp(2.5rem, 2.9vw, 3.4rem) !important;
  font-family: "Work Sans", sans-serif !important;
  font-weight: 200 !important;
  line-height: 1.1 !important;
  margin-bottom: 0.5em !important;
  padding-bottom: 0.1em !important;
  letter-spacing: -0.01em !important;
  background: none !important;
  box-shadow: none !important;
  white-space: normal;
  word-break: normal;
}
h1.section-headline-light,
h2.section-headline-light,
h3.section-headline-light,
h1.section-headline-dark,
h2.section-headline-dark,
h3.section-headline-dark {
  font-weight: 300 !important;
  font-size: clamp(1.2rem, 1.4vw, 2.2rem);
  line-height: 1.3;
  max-width: 50ch;
}
h1.page-title-dark.scrub-text,
h2.page-title-dark.scrub-text,
h3.page-title-dark.scrub-text {
  font-size: clamp(2.4rem, 3.4vw, 4.2rem) !important;
  font-family: "Work Sans", sans-serif !important;
  font-weight: 400 !important;
}

h1.page-title-light,
h2.page-title-light,
h3.page-title-light {
  color: var(--color-white, #fff) !important;
}

h1.page-title-dark,
h2.page-title-dark,
h3.page-title-dark {
  color: var(--color-text, #0f1e29) !important;
}

h1.page-title-light em,
h2.page-title-light em,
h3.page-title-light em,
h1.page-title-dark em,
h2.page-title-dark em,
h3.page-title-dark em {
  font-style: italic !important;
  color: var(--color-green-bright, #61b28e) !important;
  font-family: "Libre Baskerville", serif !important;
  font-weight: 400 !important;
  display: inline;
  white-space: normal;
  word-break: normal;
}

@media (max-width: 767px) {
  h1.page-title-light,
  h2.page-title-light,
  h3.page-title-light,
  h1.page-title-dark,
  h2.page-title-dark,
  h3.page-title-dark {
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding-bottom: 0.05em !important;
  }
}

h1.section-headline-light.right-column-medium,
h2.section-headline-light.right-column-medium,
h3.section-headline-light.right-column-medium,
h1.section-headline-dark.right-column-medium,
h2.section-headline-dark.right-column-medium,
h3.section-headline-dark.right-column-medium {
  font-size: clamp(1.8rem, 1.8vw, 2.2rem) !important;
}

/* === SECTION HEADLINE UTILITY (light & dark) === */
h1.section-headline-light,
h2.section-headline-light,
h3.section-headline-light {
  /*font-size: clamp(2.8rem, 3.3773rem + 0.8455vw, 2.8rem);*/
  font-size: clamp(2.1rem, 2.2vw, 2.8rem);
  /*  font-size: clamp(1.8rem, 1.8vw, 2.2rem);*/
  /*font-size: clamp(2rem, 2.4vw, 3.2rem);*/
  line-height: 1.1;
  font-weight: 300;
  font-family: "Work Sans", sans-serif;
  color: var(--color-white, #fff);
  max-width: 65ch;
  white-space: normal;
  word-break: normal;
  box-sizing: border-box;
  margin-block-end: 1rem;
  margin-block-start: 0.5rem;
}
h1.section-headline-light em,
h2.section-headline-light em,
h3.section-headline-light em {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: var(--color-green-bright, #61b28e);
  font-weight: 300;
  display: inline;
  white-space: normal;
  word-break: normal;
}

.elementor-widget-html h1.section-headline-dark,
.elementor-widget-heading h1.section-headline-dark,
h1.section-headline-dark,
.elementor-widget-html h2.section-headline-dark,
.elementor-widget-heading h2.section-headline-dark,
h2.section-headline-dark,
.elementor-widget-html h3.section-headline-dark,
.elementor-widget-heading h3.section-headline-dark,
h3.section-headline-dark {
  /*font-size: clamp(2rem, 2.4773rem + 0.5455vw, 3.2rem);*/
  /*font-size: clamp(1.8rem, 2.4773rem + 0.5455vw, 3.2rem);*/
  font-size: clamp(2.1rem, 2.2vw, 2.8rem);
  line-height: 1.2;
  font-weight: 300;
  font-family: "Work Sans", sans-serif;
  color: var(--color-text, #0f1e29);
  /*max-width: 35ch;*/
  box-sizing: border-box;
  margin-block-end: 1rem;
  margin-block-start: 0.5rem;
  white-space: normal;
  word-break: normal;
}

h1.section-headline-dark em,
h2.section-headline-dark em,
h3.section-headline-dark em {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: var(--color-green-dark, #4d8d71);
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline;
  white-space: normal;
  word-break: normal;
}

/* === HEADLINE WIDTH MODIFIERS === */

h1.section-headline-light.align-center,
h2.section-headline-light.align-center,
h3.section-headline-light.align-center,
h1.section-headline-dark.align-center,
h2.section-headline-dark.align-center,
h3.section-headline-dark.align-center {
  text-align: center;
}

h1.section-headline-light.no-max-width,
h2.section-headline-light.no-max-width,
h3.section-headline-light.no-max-width,
h1.section-headline-dark.no-max-width,
h2.section-headline-dark.no-max-width,
h3.section-headline-dark.no-max-width {
  max-width: none !important;
}

h1.section-headline-light.max-width-wide,
h2.section-headline-light.max-width-wide,
h3.section-headline-light.max-width-wide,
h1.section-headline-dark.max-width-wide,
h2.section-headline-dark.max-width-wide,
h3.section-headline-dark.max-width-wide {
  max-width: 65ch !important;
}

h1.section-headline-light.smax-width-narrow,
h2.section-headline-light.smax-width-narrow,
h3.section-headline-light.smax-width-narrow,
h1.section-headline-dark.smax-width-narrow,
h2.section-headline-dark.smax-width-narrow,
h3.section-headline-dark.smax-width-narrow {
  max-width: 30ch !important;
}

h1.section-headline-light.super-max-width-narrow,
h2.section-headline-light.super-max-width-narrow,
h3.section-headline-light.super-max-width-narrow,
h1.section-headline-dark.super-max-width-narrow,
h2.section-headline-dark.super-max-width-narrow,
h3.section-headline-dark.super-max-width-narrow {
  max-width: 25ch !important;
}

h1.section-headline-light.max-width-narrow,
h2.section-headline-light.max-width-narrow,
h3.section-headline-light.max-width-narrow,
h1.section-headline-dark.max-width-narrow,
h2.section-headline-dark.max-width-narrow,
h3.section-headline-dark.max-width-narrow {
  max-width: 35ch !important;
}

h1.section-headline-light.max-width-narrow-2,
h2.section-headline-light.max-width-narrow-2,
h3.section-headline-light.max-width-narrow-2,
h1.section-headline-dark.max-width-narrow-2,
h2.section-headline-dark.max-width-narrow-2,
h3.section-headline-dark.max-width-narrow-2 {
  max-width: 38ch !important;
}

h1.section-headline-light.max-width-narrow-3,
h2.section-headline-light.max-width-narrow-3,
h3.section-headline-light.max-width-narrow-3,
h1.section-headline-dark.max-width-narrow-3,
h2.section-headline-dark.max-width-narrow-3,
h3.section-headline-dark.max-width-narrow-3 {
  max-width: 45ch !important;
}
h1.section-headline-light.max-width-narrow-4,
h2.section-headline-light.max-width-narrow-4,
h3.section-headline-light.max-width-narrow-4,
h1.section-headline-dark.max-width-narrow-4,
h2.section-headline-dark.max-width-narrow-4,
h3.section-headline-dark.max-width-narrow-4 {
  max-width: 50ch !important;
}

h1.section-headline-light.max-width-medium,
h2.section-headline-light.max-width-medium,
h3.section-headline-light.max-width-medium,
h1.section-headline-dark.max-width-medium,
h2.section-headline-dark.max-width-medium,
h3.section-headline-dark.max-width-medium {
  max-width: 55ch !important;
}

/* === LABEL ANIMATE WIDTH MODIFIERS === */
h1.label-animate.align-center,
h2.label-animate.align-center,
h3.label-animate.align-center {
  text-align: center;
}

h1.label-animate.no-max-width,
h2.label-animate.no-max-width,
h3.label-animate.no-max-width {
  max-width: none !important;
}

h1.label-animate.max-width-wide,
h2.label-animate.max-width-wide,
h3.label-animate.max-width-wide {
  max-width: 65ch !important;
}

h1.label-animate.max-width-narrow,
h2.label-animate.max-width-narrow,
h3.label-animate.max-width-narrow {
  max-width: 35ch !important;
}

h1.label-animate.max-width-medium,
h2.label-animate.max-width-medium,
h3.label-animate.max-width-medium {
  max-width: 55ch !important;
}

/* === PAGE TITLE WIDTH MODIFIERS === */
h1.page-title-light.align-center,
h2.page-title-light.align-center,
h3.page-title-light.align-center,
h1.page-title-dark.align-center,
h2.page-title-dark.align-center,
h3.page-title-dark.align-center {
  text-align: center;
}

h1.page-title-light.no-max-width,
h2.page-title-light.no-max-width,
h3.page-title-light.no-max-width,
h1.page-title-dark.no-max-width,
h2.page-title-dark.no-max-width,
h3.page-title-dark.no-max-width {
  max-width: none !important;
}
h1.align-center,
h2.align-center,
h3.align-center,
h1.page-title-dark.align-center,
h2.page-title-dark.align-center,
h3.page-title-dark.align-center {
  text-align: center;
}

h1.page-title-light.max-width-wide,
h2.page-title-light.max-width-wide,
h3.page-title-light.max-width-wide,
h1.page-title-dark.max-width-wide,
h2.page-title-dark.max-width-wide,
h3.page-title-dark.max-width-wide {
  max-width: 85ch !important;
}

h1.page-title-light.max-width-narrow,
h2.page-title-light.max-width-narrow,
h3.page-title-light.max-width-narrow,
h1.page-title-dark.max-width-narrow,
h2.page-title-dark.max-width-narrow,
h3.page-title-dark.max-width-narrow {
  max-width: 35ch !important;
}

h1.page-title-light.super-max-width-narrow,
h2.page-title-light.super-max-width-narrow,
h3.page-title-light.super-max-width-narrow,
h1.page-title-dark.super-max-width-narrow,
h2.page-title-dark.super-max-width-narrow,
h3.page-title-dark.super-max-width-narrow {
  max-width: 25ch !important;
}

h1.page-title-light.max-width-medium,
h2.page-title-light.max-width-medium,
h3.page-title-light.max-width-medium,
h1.page-title-dark.max-width-medium,
h2.page-title-dark.max-width-medium,
h3.page-title-dark.max-width-medium {
  max-width: 55ch !important;
}

/* === LABEL ANIMATE STYLES === */
h1.label-animate,
h2.label-animate,
h3.label-animate {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 400;
  font-family: "Work Sans", sans-serif;
  color: var(--color-text, #0f1e29);
  max-width: 65ch;
  white-space: normal;
  word-break: normal;
  box-sizing: border-box;
  margin-block-end: 1rem;
  margin-block-start: 0.5rem;
}

h1.label-animate em,
h2.label-animate em,
h3.label-animate em {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: var(--color-green-dark, #4d8d71);
  font-weight: 400;
  display: inline;
  white-space: normal;
  word-break: normal;
}

/* === LOGO ANIMATION STYLES === */
.logo-mount-white {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  color: var(--color-white);
}

.logo-mount-white:hover {
  transform: rotateY(8deg) scale(1.02);
  color: var(--color-white);
  opacity: 0.6;
}

.logo-mount-white svg {
  display: block;
  height: auto;
  max-width: 100%;
}
#logo-animated svg path:first-of-type {
  transition: stroke 0.3s ease;
}
/* Ensure the M path has proper contrast for stroke animation */

.logo-mount-white svg path {
  transition: stroke 0.3s ease;
}
@media screen and (max-width: 1024px) {
  #logo-animated svg {
    width: 150px; /* Change this to your desired width */
  }
}
@media screen and (max-width: 1366px) {
  #logo-animated svg {
    width: 140px; /* Change this to your desired width */
  }
}

/* === MOUNT VIEW SLIDER SPECIFIC STYLES === */
/* Przeniesione do /assets/css/mountview-swiper.css */
.about-section {
  position: relative;
  padding-top: 80px;
  overflow: visible !important;
  z-index: 2;
}

.about-inner {
}

.about-left {
}

.about-right {
  flex: 2; /* przykładowa wysokość dla testu scrollu */
}
/* === Chart Section === */
.ps-4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.ps-4 p {
  font-size: 18px;
}
.ps-4 h2 {
  font-size: 24px;
}
.work-sans {
  font-size: 16px !important;
}
.th {
  font-size: 16px;
}
.col-4 {
  display: flex ;
  justify-content: flex-end ;
}
@media (min-width: 1024px) {
  .tytul {
    font-family: "Work Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
  }
  .ps-4 {
    font-size: 14px;
  }
  .ps-4 p {
    font-size: 14px;
  }
  .ps-4 h2 {
  }
  .th {
    font-size: 16px;
  }
}
/* === EM-FAKE CLASS FOR SPLITTYPE COMPATIBILITY === */
.em-fake {
  font-style: italic;
  font-family: "Libre Baskerville", serif;
  color: var(--color-green-dark, #4d8d71);
  font-weight: 400;
  display: inline;
  white-space: normal;
  word-break: normal;
}

/* Wariant dla jasnych nagłówków */
h1.page-title-light .em-fake,
h2.page-title-light .em-fake,
h3.page-title-light .em-fake,
h1.section-headline-light .em-fake,
h2.section-headline-light .em-fake,
h3.section-headline-light .em-fake {
  color: var(--color-green-bright, #61b28e) !important;
}

/* Wariant dla fund-label */
.fund-label .em-fake {
  color: var(--color-green-dark, #4d8d71);
}

.fund-label.fund-label-white .em-fake {
  color: var(--color-green-bright, #61b28e);
}

/* Wariant dla headline-animate */
h1.headline-animate .em-fake,
h2.headline-animate .em-fake,
h3.headline-animate .em-fake {
  color: #4d8d71;
}
.icon-block {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* === ELEMENTOR BUTTON OVERRIDE === */

/* Wyłącz nadpisywanie stylów przycisków przez Elementor */
.elementor-button,
.elementor-button-wrapper .elementor-button,
.elementor-widget-button .elementor-button {
  /* Reset Elementor button styles dla naszych slider controls */
  background: initial !important;
  border: initial !important;
  border-radius: initial !important;
  box-shadow: initial !important;
  color: initial !important;
  font-family: initial !important;
  font-size: initial !important;
  font-weight: initial !important;
  line-height: initial !important;
  padding: initial !important;
  text-decoration: initial !important;
  transition: initial !important;
}

/* Zachowaj nasze custom styles dla arrow buttons */
.arrow-btn {
  /* Nasze style mają wyższy priorytet */
  background: transparent;
  border: 2px solid var(--color-green-dark, #4d8d71);
  border-radius: 50%;
  color: var(--color-green-dark, #4d8d71);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SWIPER STYLES ELEMENTOR NEWS === */

.text-color-dark {
  color: var(--color-dark) !important;
}
.text-color-darkbodycopy {
  color: var(--color-darkbodycopy) !important;
}
.text-color-text {
  color: var(--color-text) !important;
}
.text-color-green-bright {
  color: var(--color-green-bright) !important;
}
.text-color-green-super-bright {
  color: var(--color-green-super-bright) !important;
}
.text-color-green-dark {
  color: var(--color-green-dark) !important;
}
.text-color-bg-light-1 {
  color: var(--color-bg-light-1) !important;
}
.text-color-bg-light-2 {
  color: var(--color-bg-light-2) !important;
}
.text-color-black {
  color: var(--color-black) !important;
}
.text-color-white {
  color: var(--color-white) !important;
}
/* =================================================================
   Animation FOUC (Flash of Unstyled Content) Fix
   ================================================================= */

/* Ta reguła ukrywa elementy DOPIERO, gdy nasz skrypt JS
   doda do <body> klasę 'animations-ready'. To jest najbezpieczniejsze
   podejście, które zapobiega "znikaniu" treści, jeśli JS
   z jakiegoś powodu nie zadziała. */

body.animations-ready [class*="animate-"],
body.animations-ready .hero-section .scroller,
body.animations-ready .about-hero-section .scroller,
body.animations-ready .mda-hero-section .scroller {
  opacity: 0;
}

/* ===================================================================
   ELEMENTOR POPUP SCROLLING FIXES - PRESERVE ORIGINAL STYLING
   
   NOTE: For better performance, consider loading this CSS only on pages with popups:
   - /test-modal/
   - /mount-globalnego-rynku-nieruchomosci-fiz/
   - Any page with .elementor-popup-modal, .dialog-widget, or .elementor-lightbox
=================================================================== */

/* Ensure modal containers can scroll */
.elementor-popup-modal,
.dialog-widget,
.elementor-lightbox {
  overflow: auto !important;
  overflow-x: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
}

/* CRITICAL: Ensure modal content can scroll properly - PRESERVE ORIGINAL STYLING */
.elementor-popup-modal .dialog-widget-content,
.dialog-widget .dialog-widget-content,
.elementor-lightbox .dialog-widget-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
  position: relative !important;
  margin: 0 !important;
  /* REMOVED: background: transparent !important; - preserve original background */
  /* REMOVED: border-radius: 0 !important; - preserve original border-radius */
  /* REMOVED: box-shadow: none !important; - preserve original box-shadow */
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
}

/* Ensure popup content containers don't interfere with scrolling */
.elementor-popup-modal .elementor-widget-container,
.dialog-widget .elementor-widget-container,
.elementor-lightbox .elementor-widget-container {
  overflow: visible !important;
  position: relative !important;
}

/* Lock body scroll when popup is open */
body:has(.elementor-popup-modal[style*="display: block"]),
body:has(.dialog-widget[style*="display: block"]),
body:has(.elementor-lightbox[style*="display: block"]),
body.elementor-popup-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Ensure the popup itself can scroll */
.elementor-popup-modal[style*="display: block"],
.dialog-widget[style*="display: block"],
.elementor-lightbox[style*="display: block"] {
  overflow: auto !important;
  overflow-x: hidden !important;
}

/* Fix for popup scroll lock classes */
html.popup-scroll-locked,
body.popup-scroll-locked {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
}

/* Additional fixes for modal content scrolling */
.elementor-popup-modal .elementor-widget,
.dialog-widget .elementor-widget,
.elementor-lightbox .elementor-widget {
  overflow: visible !important;
}

/* Ensure modal backdrop doesn't interfere */
.elementor-popup-modal .dialog-widget-overlay,
.dialog-widget .dialog-widget-overlay,
.elementor-lightbox .dialog-widget-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 999998 !important;
}

/* CRITICAL: Ensure modal content can scroll */
.elementor-popup-modal .elementor-widget-wrap,
.dialog-widget .elementor-widget-wrap,
.elementor-lightbox .elementor-widget-wrap {
  overflow: visible !important;
}

.elementor-popup-modal .elementor-section,
.dialog-widget .elementor-section,
.elementor-lightbox .elementor-section {
  overflow: visible !important;
}

.elementor-popup-modal .elementor-container,
.dialog-widget .elementor-container,
.elementor-lightbox .elementor-container {
  overflow: visible !important;
}

/* SPECIFIC ELEMENTOR STRUCTURE FIXES */
.elementor-popup-modal .elementor,
.dialog-widget .elementor,
.elementor-lightbox .elementor {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.elementor-popup-modal .elementor-inner,
.dialog-widget .elementor-inner,
.elementor-lightbox .elementor-inner {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.elementor-popup-modal .elementor-row,
.dialog-widget .elementor-row,
.elementor-lightbox .elementor-row {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.elementor-popup-modal .elementor-column,
.dialog-widget .elementor-column,
.elementor-lightbox .elementor-column {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* OVERRIDE ANY HIDDEN OVERFLOW - HIGHEST PRIORITY */
.elementor-popup-modal *,
.dialog-widget *,
.elementor-lightbox * {
  overflow: visible !important;
}

/* BUT ALLOW SCROLLING ON THE MAIN CONTENT CONTAINER - PRESERVE ORIGINAL STYLING */
.elementor-popup-modal .dialog-widget-content,
.dialog-widget .dialog-widget-content,
.elementor-lightbox .dialog-widget-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
  position: relative !important;
  margin: 0 !important;
  /* REMOVED: background: transparent !important; - preserve original background */
  /* REMOVED: border-radius: 0 !important; - preserve original border-radius */
  /* REMOVED: box-shadow: none !important; - preserve original box-shadow */
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  display: block !important;
}

/* CRITICAL: Force scrolling on modal content - PRESERVE ORIGINAL STYLING */
.elementor-popup-modal .dialog-widget-content,
.dialog-widget .dialog-widget-content,
.elementor-lightbox .dialog-widget-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
  position: relative !important;
  margin: 0 !important;
  /* REMOVED: background: transparent !important; - preserve original background */
  /* REMOVED: border-radius: 0 !important; - preserve original border-radius */
  /* REMOVED: box-shadow: none !important; - preserve original box-shadow */
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  display: block !important;
}

/* AGGRESSIVE OVERRIDE - FORCE SCROLLING - PRESERVE ORIGINAL STYLING */
.elementor-popup-modal .dialog-widget-content,
.dialog-widget .dialog-widget-content,
.elementor-lightbox .dialog-widget-content,
.elementor-popup-modal .elementor-popup-modal-content,
.dialog-widget .elementor-popup-modal-content,
.elementor-lightbox .elementor-popup-modal-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
  position: relative !important;
  margin: 0 !important;
  /* REMOVED: background: transparent !important; - preserve original background */
  /* REMOVED: border-radius: 0 !important; - preserve original border-radius */
  /* REMOVED: box-shadow: none !important; - preserve original box-shadow */
  height: 100% !important;
  min-height: 100% !important;
  width: 100% !important;
  display: block !important;
  scroll-behavior: auto !important;
}

/* FORCE ALL ELEMENTOR ELEMENTS TO BE VISIBLE */
.elementor-popup-modal .elementor *,
.dialog-widget .elementor *,
.elementor-lightbox .elementor * {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
}

/* FORCE SCROLLING ON ANY CONTENT CONTAINER - PRESERVE ORIGINAL STYLING */
.elementor-popup-modal [class*="content"],
.dialog-widget [class*="content"],
.elementor-lightbox [class*="content"] {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 100vh !important;
  /* REMOVED: background: transparent !important; - preserve original background */
  margin: 0 !important;
  /* REMOVED: border-radius: 0 !important; - preserve original border-radius */
  /* REMOVED: box-shadow: none !important; - preserve original box-shadow */
}

/* Mobile-specific fixes - PRESERVE ORIGINAL STYLING */
@media (max-width: 767px) {
  .elementor-popup-modal .dialog-widget-content,
  .dialog-widget .dialog-widget-content,
  .elementor-lightbox .dialog-widget-content {
    margin: 0 !important;
    max-height: 100vh !important;
    width: 100% !important;
  }
}
