/**
 * GreenSun Components Styles
 * All UI components, sections, and page-specific styles
 */

    /* CSS navbar-section */
    .navbar-section {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .navbar-section .navbar-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: 65px;
      background-color: var(--neutral-very-light);
      z-index: 999;
      opacity: 1;
      transition: transform 1s ease, opacity 1s ease, box-shadow 0.3s ease;
      will-change: transform, opacity;
      backface-visibility: hidden;
      color: var(--text-primary);
      /* Safari iOS fix for fixed positioning */
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      -webkit-backface-visibility: hidden;
    }

    .navbar-section .navbar-container.scrolled,
    .navbar-section .navbar-container.menu-open {
      background-color: var(--neutral-very-light);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-section .navbar-left {
      display: flex;
      align-items: center;
    }
    .navbar-section .navbar-logo {
      width: 170px;
      height: 50px;
      background-image: url('../media/icons/logo-black.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      transition: background-image 0.3s ease;
      cursor: pointer;
    }
    
    [data-theme="dark"] .navbar-section .navbar-logo {
      background-image: url('../media/icons/logo-white.png');
    }
    
    @media (max-width: 991px) {
      .navbar-section .navbar-logo {
        width: 140px;
      }
    }
    
    @media (max-width: 599px) {
      .navbar-section .navbar-logo {
        width: 130px;
      }
    }
    .navbar-section .navbar-company {
      font-family: var(--font-display);
      font-size: var(--title-large);
      margin-left: 4px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .navbar-section .navbar-center {
      display: flex;
      gap: var(--space-sm);
      padding-left: 24px;
    }
    .navbar-section .navbar-center .nav-link {
      background: none;
      border: none;
      font-family: var(--font-rest);
      font-size: var(--label-large);
      font-weight: 500;
      cursor: pointer;
      padding: var(--space-2xs) var(--space-xs);
      color: inherit;
      transition: color 0.6s ease;
      letter-spacing: 0.01em;
    }
    .navbar-section .navbar-center .nav-link:hover,
    .navbar-section .navbar-center .nav-link.active {
      color: var(--primary-base);
    }

    .navbar-container.disable-auto-hide.hide-navbar {
      transform: none !important;
      opacity: 1 !important;
    }

    .navbar-section .navbar-right {
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .language-switcher {
      position: relative;
      display: inline-block;
    }

    .language-switcher .current-lang {
      display: flex;
      align-items: center;
      gap: 4px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 4px;
      transition: background-color 0.3s ease;
      color: var(--text-primary);
    }

    .language-switcher .current-lang:hover {
      background-color: var(--surface-hover);
    }

    .language-switcher .flag,
    .mobile-language-switcher .flag {
      width: 20px;
      height: 15px;
      border-radius: 2px;
      background-size: cover;
      background-position: center;
    }

    .language-switcher .flag.pl,
    .mobile-language-switcher .flag.pl {
      background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE4IiByeD0iMiIgZmlsbD0iI0ZGRkZGRiIvPgo8cmVjdCB5PSI5IiB3aWR0aD0iMjQiIGhlaWdodD0iOSIgcng9IjAiIGZpbGw9IiNEQzE0M0MiLz4KPC9zdmc+');
    }

    .language-switcher .flag.en,
    .mobile-language-switcher .flag.en {
      background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjE4IiByeD0iMiIgZmlsbD0iI0ZGRkZGRiIvPgo8cGF0aCBkPSJNMCAwSDI0VjEuNEgwVjBaTTAgMi44SDI0VjQuMkgwVjIuOFpNMCA1LjZIMjRWN0gwVjUuNlpNMCA4LjRIMjRWOS44SDBWOC40Wk0wIDExLjJIMjRWMTIuNkgwVjExLjJaTTAgMTRIMjRWMTUuNEgwVjE0Wk0wIDE2LjhIMjRWMThIMFYxNi44WiIgZmlsbD0iI0YwMDAwMCIvPgo8cmVjdCB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9IiMwMDJBNjgiLz4KPHBvbHlnb24gcG9pbnRzPSIyLDEuNSAyLjUsMi41IDMuNSwyLjUgMi44LDMuMSAzLjEsNCAyLDMuNSAwLjksNCAuMiwzLjEgMC41LDIuNSAxLjUsMi41IiBmaWxsPSIjRkZGRkZGIi8+CjxwYWF0aCBkPSJNNSAxLjVMNS41IDIuNUw2LjUgMi41TDUuOCAzLjFMNi4xIDRMNSAzLjVMMy45IDRMNC4yIDMuMUwzLjUgMi41TDQuNSAyLjVMNSAxLjVaIiBmaWxsPSIjRkZGRkZGIi8+Cjxwb2x5Z29uIHBvaW50cz0iOCwxLjUgOC41LDIuNSA5LjUsMi41IDguOCwzLjEgOS4xLDQgOCwzLjUgNi45LDQgNy4yLDMuMSA2LjUsMi41IDcuNSwyLjUiIGZpbGw9IiNGRkZGRkYiLz4KPHBvbHlnb24gcG9pbnRzPSIzLjUsNC41IDQsNS41IDUsNS41IDQuMyw2LjEgNC42LDcgMy41LDYuNSAyLjQsNyAyLjcsNi4xIDIsNS41IDMsNS41IiBmaWxsPSIjRkZGRkZGIi8+CjxwYWF0aCBkPSJNNi41IDQuNUw3IDUuNUw4IDUuNUw3LjMgNi4xTDcuNiA3TDYuNSA2LjVMNS40IDdMNS43IDYuMUw1IDUuNUw2IDUuNUw2LjUgNC41WiIgZmlsbD0iI0ZGRkZGRiIvPgo8L3N2Zz4K');
    }

    .language-switcher .flag.fr,
    .mobile-language-switcher .flag.fr {
      background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgiIGhlaWdodD0iMTgiIGZpbGw9IiMwMDIzOTUiLz4KPHJlY3QgeD0iOCIgd2lkdGg9IjgiIGhlaWdodD0iMTgiIGZpbGw9IiNGRkZGRkYiLz4KPHJlY3QgeD0iMTYiIHdpZHRoPSI4IiBoZWlnaHQ9IjE4IiBmaWxsPSIjRUQyOTM5Ii8+Cjwvc3ZnPg==');
    }

    .language-switcher .dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: var(--surface-primary);
      border: 1px solid #ddd;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      min-width: 120px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }

    .language-switcher .dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .language-switcher .dropdown button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: none;
      background: none;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s ease;
      color: var(--text-primary);
    }

    .language-switcher .dropdown button:hover {
      background-color: var(--surface-hover);
    }

    .language-switcher .dropdown button:first-child {
      border-radius: 4px 4px 0 0;
    }

    .language-switcher .dropdown button:last-child {
      border-radius: 0 0 4px 4px;
    }

    .mobile-nav-controls {
      display: none;
      align-items: center;
      gap: 8px;
    }

    .mobile-language-switcher {
      position: relative;
      display: inline-block;
    }

    .mobile-language-switcher .current-lang {
      display: flex;
      align-items: center;
      gap: 4px;
      background: transparent;
      border: 1px solid var(--border-medium);
      cursor: pointer;
      padding: 6px 8px;
      border-radius: 6px;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 500;
      transition: background-color 0.3s ease;
      height: 30px;
    }

    .mobile-language-switcher .current-lang:hover {
      background-color: var(--surface-hover);
    }

    .mobile-language-switcher .dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: var(--surface-primary);
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
      min-width: 140px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      margin-top: 4px;
    }

    .mobile-language-switcher .dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .mobile-language-switcher .dropdown button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      border: none;
      background: none;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s ease;
      color: var(--text-primary);
    }

    .mobile-language-switcher .dropdown button:hover {
      background-color: var(--surface-hover);
    }

    .mobile-language-switcher .dropdown button:first-child {
      border-radius: 8px 8px 0 0;
    }

    .mobile-language-switcher .dropdown button:last-child {
      border-radius: 0 0 8px 8px;
    }

    /* Theme Toggle Styles */
    .theme-toggle {
      width: 50px;
      height: 28px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
    }

    .theme-toggle:hover {
      background-color: transparent;
    }

    .theme-toggle-track {
      width: 50px;
      height: 28px;
      border-radius: 14px;
      background: var(--neutral-light);
      position: relative;
      transition: all 0.3s ease;
    }

    [data-theme="dark"] .theme-toggle-track {
      background: var(--neutral-dark);
    }

    .theme-toggle-thumb {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--neutral-white);
      position: absolute;
      top: 2px;
      left: 2px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    [data-theme="dark"] .theme-toggle-thumb {
      left: 24px;
      background: var(--neutral-very-dark);
    }

    .theme-icon {
      width: 12px;
      height: 12px;
    }

    .sun-icon {
      color: #fbbf24;
    }

    .moon-icon {
      color: #60a5fa;
      opacity: 0;
      position: absolute;
    }

    [data-theme="dark"] .sun-icon {
      opacity: 0;
    }

    [data-theme="dark"] .moon-icon {
      opacity: 1;
    }

    .navbar-section .navbar-right a,
    .navbar-section .mobile-nav-right a{
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: transparent;
      border-radius: 4px;
      cursor: pointer;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-section .navbar-right a:hover,
    .navbar-section .mobile-nav-right a:hover {
      opacity: 0.7;
      transform: scale(1.1);
    }

    .navbar-section .navbar-right a svg,
    .navbar-section .mobile-nav-right a svg {
      width: 22px;
      height: 22px;
      color: var(--text-primary);
    }

    /* Force white SVG icons in dark mode */
    [data-theme="dark"] .navbar-section .navbar-right a,
    [data-theme="dark"] .navbar-section .mobile-nav-right a {
      color: #ffffff !important;
    }
    
    [data-theme="dark"] .navbar-section .navbar-right a svg,
    [data-theme="dark"] .navbar-section .mobile-nav-right a svg {
      fill: #ffffff !important;
    }

    .navbar-section .hamburger-icon {
      display: none;
      background: none;
      border: none;
      width: 30px;
      height: 30px;
      cursor: pointer;
      position: relative;
      z-index: 110;
    }
    .navbar-section .hamburger-icon::before,
    .navbar-section .hamburger-icon::after,
    .navbar-section .hamburger-icon span {
      content: "";
      position: absolute;
      height: 3px;
      width: 100%;
      border-radius: 10px;
      background-color: var(--text-primary);
      left: 0;
      transition: all 0.3s ease;
    }
    .navbar-section .hamburger-icon::before {
      top: 6px;
    }
    .navbar-section .hamburger-icon::after {
      bottom: 6px;
    }
    .navbar-section .hamburger-icon span {
      top: 50%;
      transform: translateY(-50%);
    }

    .navbar-section .hamburger-icon.active::before {
      transform: rotate(45deg);
      top: 50%;
    }
    .navbar-section .hamburger-icon.active::after {
      transform: rotate(-45deg);
      bottom: auto;
      top: 50%;
    }
    .navbar-section .hamburger-icon.active span {
      opacity: 0;
    }
    .navbar-section .hamburger-icon.close {
      display: block;
      position: absolute;
      top: var(--space-md);
      right: var(--space-md);
    }
    .navbar-section .hamburger-icon.close span {
      top: 50%;
      transform: translateY(-50%);
    }

    .navbar-section .mobile-nav-overlay {
      position: fixed;
      top: 90px; /* wysokość navbaru na desktopie */
      left: 0;
      right: 0;
      bottom: 0;
      height: auto;
      max-height: 0;
      overflow: hidden;
      color: var(--text-primary);
      background-color: var(--neutral-very-light);
      display: flex;
      opacity: 0;
      pointer-events: none;
      transition: transform 0.6s ease, opacity 0.6s ease;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 0 var(--space-md) var(--space-xl) var(--space-md);
      z-index: 100;
      overflow: auto;
    }
    .navbar-section .mobile-nav-overlay.active {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
      max-height: 100vh;
    }
    .navbar-section .mobile-nav-overlay.hiding {
      opacity: 0;
      transform: translateY(-20px);
      pointer-events: none;
    }

    @media (max-width: 991px) {
      .navbar-section .mobile-nav-overlay {
        top: 60px;
      }
    }
    @media (max-width: 599px) {
      .navbar-section .mobile-nav-overlay {
        top: 55px;
      }
    }

    .navbar-section .mobile-nav-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-lg);
      justify-content: center;
      flex: 1;
    }

    .navbar-section .mobile-nav-center .nav-link {
      background: none;
      border: none;
      font-family: var(--font-display);
      font-size: var(--display-medium);
      font-weight: 600;
      cursor: pointer;
      padding: var(--space-2xs) var(--space-xs);
      color: inherit;
      letter-spacing: -0.02em;
    }
    .navbar-section .mobile-nav-center .nav-link:hover,
    .navbar-section .mobile-nav-center .nav-link.active {
      color: var(--primary-base);
    }

    .navbar-section .mobile-nav-right a {
      width: 45px;
      height: 45px;
      background-color: transparent;
      border: none;
      cursor: pointer;
      border-radius: 8px;
      transition: background-color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .navbar-section .mobile-nav-right a:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }

    .navbar-section .mobile-nav-right a svg {
      width: 28px;
      height: 28px;
      fill: var(--text-primary);
    }

    /* Force white mobile SVG icons in dark mode */
    [data-theme="dark"] .navbar-section .mobile-nav-right a svg {
      fill: #ffffff !important;
    }


    .navbar-section .mobile-nav-right {
      display: flex;
      gap: var(--space-sm);
      justify-content: center;
      margin-bottom: var(--space-xl);
      gap: 30px;
    }

    @media (max-width: 991px) {
      .navbar-section .navbar-container {
        height: 60px;
      }
      .navbar-section .navbar-center,
      .navbar-section .navbar-right {
        display: none;
      }
      .navbar-section .hamburger-icon {
        display: block;
      }
      .navbar-section .mobile-nav-controls {
        display: flex !important;
      }
    }
    @media (max-width: 599px) {
      .navbar-section .navbar-container {
        height: 55px;
      }
    }

    body.no-scroll {
      overflow: hidden;
      /* iOS Safari fix for preventing scroll */
      position: fixed;
      width: 100%;
      height: 100%;
      -webkit-overflow-scrolling: touch;
    }

    .navbar-section .navbar-container.hide-navbar {
      transform: translateY(-100%);
      opacity: 0;
      transition: transform 1s ease, opacity 1s ease;
    }

    .navbar-section .navbar-container.start-show-navbar {
      transform: translateY(-10px);
      opacity: 0;
      transition: transform 1s ease, opacity 1.2s ease;
    }

    .navbar-section .navbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1325px;
      margin: 0 auto;
      height: 100%;
      padding: 0 20px;
      width: 100%;
    }

    .navbar-section .delay-0 { animation-delay: 0s; }
    .navbar-section .delay-1 { animation-delay: 0.15s; }
    .navbar-section .delay-2 { animation-delay: 0.30s; }

  /* CSS navbar-section */

    /* CSS slider-section */

    .slider-section {
      position: relative;
      width: 100%;
      height: 100vh;
      padding-top: 60px;
      overflow: hidden;
      display: flex;
      /* Same background color as navbar */
      background-color: var(--neutral-very-light);
      /* box-shadow: inset 0 -10px 12px 1px rgba(0, 0, 0, 0.15); */

    }

    .card-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 1);
      z-index: 2;
      animation: fadeToTransparent 3s ease-out forwards;
      pointer-events: none;
      border-radius: 24px;
    }

    @keyframes fadeToTransparent {
      0% {
        background-color: rgba(0, 0, 0, 1);
      }
      100% {
        background-color: rgba(0, 0, 0, 0.3);
      }
    }

    .slider-container {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      margin: 0 30px;
    }

    .scroll-indicator-container {
      height: 30px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10;
      padding-bottom: 10px;
    }

    .scroll-indicator {
      position: absolute;
      bottom: 0.5rem;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0.6;
      animation: bounce 3s infinite;
      z-index: 10;
      color: var(--neutral-base);
    }

    @keyframes bounce {
      0%, 100% {
        transform: translateX(-50%) translateY(0);
      }
      50% {
        transform: translateX(-50%) translateY(4px);
      }
    }
    @media (max-width: 599px) {
      .slider-container {
        margin: 0px 10px;
      }

      .scroll-indicator {
        display: none;
      }
    }

    .slider-section .video-background {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      overflow: hidden;
    }

    .slider-section .video-background video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .slider-section .card {
      height: 90%;
      position: relative;
      overflow: hidden;
      display: flex;
      width: 100%;
      margin-top: 10px;
      border-radius: 24px;
      transition: box-shadow 1s ease, background-color 1s ease;
      background-color: transparent;
    }

    .slider-section .card.fade-bg {
      background-color: transparent;
    }

    .card-shadow-visible {
      box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.25);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      background-color: #00000043;
    }

    @media (max-width: 991px) {
      .slider-section .card {
        margin: 0px 20px;
        margin-top: 10px;
      }
    }
    
    @media (max-width: 599px) {
      .slider-section .card {
        margin: 0px 10px;
        margin-top: 10px;
      }
    }

    .slider-section .center-cta {
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 2rem;
      width: 100%;
      color: #ffffff;
      position: relative;
      z-index: 3; /* Above overlay (z-index: 2) and video (z-index: 0) */
    }

    [data-theme="light"] .slider-section .center-cta {
      color: #ffffff;
    }
    
    [data-theme="dark"] .slider-section .center-cta {
      color: #ffffff;
    }

    .slider-section .center-cta h2 {
      font-size: var(--display-medium);
      line-height: var(--line-height-display-medium);
      margin-bottom: var(--space-md);
      margin-top: 100px;
    }

    @media (max-width: 599px) {
      .slider-section .center-cta h2 {
        margin-top: 20px;
      }
    }

    .slider-section .center-cta p {
      font-size: var(--body-large);
      line-height: var(--line-height-body-large);
      margin-bottom: var(--space-md);
    }

    .slider-section .center-cta a {
      display: inline-block;
      background: transparent;
      border: 2px solid transparent;
      color: var(--neutral-white);
      font-family: var(--font-rest);
      font-size: var(--label-large);
      font-weight: 600;
      letter-spacing: 0.01em;
      text-decoration: none;
      padding: var(--space-sm) var(--space-xl);
      border-radius: 8px;
      transition: color 0.3s ease;
      position: relative;
      overflow: hidden;
      z-index: 1;
    }

    .slider-section .center-cta a::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 8px;
      border: 2px solid white;
      pointer-events: none;
      z-index: -1;
    }

    .slider-section .center-cta a::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 0;
      background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%);
      border-radius: 6px;
      transition: width 0.4s ease;
      z-index: -1;
    }

    .slider-section .center-cta a:hover {
      color: white;
    }

    .slider-section .center-cta a:hover::after {
      width: 100%;
    }

    @media (max-width: 599px) {
      .slider-section .intro-logo-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      min-width: 400px;
      min-height: 120px;

    }


    .slider-section .logo-square {
      width: 100px;
      height: 100px;
      min-width: 100px;
      min-height: 100px;
      background-color: var(--primary-base);
      border-radius: 50%;
      flex-shrink: 0;
      margin: 0;
      }
    }


    /* .slider-section .typing-text .line1 {
      font-size: var(--display-medium) !important;
      font-weight: 700;
      color: var(--neutral-light);
      display: inline-block;
      overflow: hidden;
      white-space: nowrap;
      width: 0;
      animation: typing1 1.5s steps(30, end) 1s forwards;
    }

    @keyframes typing1 {
      to { width: 245px; }
    }

    @media (max-width: 991px) {
      @keyframes typing1 {
      to { width: 195px; }
    }
    }

    @media (max-width: 599px) {
      @keyframes typing1 {
      to { width: 175px; }
    }
    } */

  
  .fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .animated-data .content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

.fade-in-ready .fade-in-item {
  opacity: 1;
  transform: translateY(0);
}

.dots.fade-in-item {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}
  
  .fix {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .animated-data {
    height: 25%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .stats {
  width: 100%;
  max-width: 1600px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* gap: 6rem; */
  padding: 2rem 0;
  padding-right: 10px;
  text-align: center;
}
@media (max-width: 991px) {
  .stats {
    /* padding-right: 20px; */
  }
}
@media (max-width: 599px) {
  .stats {
    padding: 0;
    padding-right: 0px;
  }
  .stat.to-fix {
    padding-left: 0px;
  }
}

.slider-section .stats .content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
@media (max-width: 599px) {
  .slider-section .stats .content {
    flex-direction: column;
    gap: 0.2rem;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

    .stat .count {
      font-size: var(--display-medium);
      font-weight: bold;
      color: var(--text-primary);
      transition: all 0.3s ease;
    }

    .count-wrap {
      display: flex;
      align-items: baseline;
      gap: 1px;
    }

    .unit {
      font-size: var(--display-medium);
      color: var(--text-primary);
      font-weight: bold;
    }

.stat p {
  font-size: var(--body-large);
  color: var(--neutral-base);
  margin-top: 0.5rem;
}

.svg-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-base);
  color: var(--neutral-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}
@media (max-width: 599px) {
  .stat {
    align-items: center;
  }
  .stat .count {
    font-size: var(--display-small);
  }
  .stat p {
    font-size: var(--body-medium);
    margin-top: 0;
  }
  .unit {
    font-size: var(--display-small);
  } 
  .svg-icon {
    width: 50px;
    height: 50px;
  }

}

  /* CSS slider-section */

  /* ===== SEKCJA O NAS ===== */
  .about-section {
    padding: var(--space-6xl) var(--space-lg);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
  }

  .about-content h2 {
    font-size: var(--display-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-display-medium);
    position: relative;
  }

  .about-content h2::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 240px;
    height: 240px;
    background-color: #F5F5F5;
    -webkit-mask-image: url('../media/green-leaf.svg');
    mask-image: url('../media/green-leaf.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.8;
    z-index: -1;
  }

  [data-theme="dark"] .about-content h2::before {
    background-color: var(--neutral-very-light);
    opacity: 0.6;
  }

  .about-content p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: var(--line-height-body-large);
    margin-bottom: var(--space-md);
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

  .about-stat {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 197, 92, 0.03) 0%, rgba(45, 227, 185, 0.06) 100%);
    border: 1px solid rgba(31, 197, 92, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
  }

  .about-stat:nth-child(1) { animation-delay: 0s; }
  .about-stat:nth-child(2) { animation-delay: 0.2s; }
  .about-stat:nth-child(3) { animation-delay: 0.4s; }
  .about-stat:nth-child(4) { animation-delay: 0.6s; }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .about-stat:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.12);
    border-color: rgba(31, 197, 92, 0.15);
  }

  [data-theme="dark"] .about-stat {
    background: linear-gradient(135deg, rgba(31, 197, 92, 0.08) 0%, rgba(45, 227, 185, 0.12) 100%);
    border-color: rgba(31, 197, 92, 0.15);
  }

  [data-theme="dark"] .about-stat:hover {
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.2);
    border-color: rgba(31, 197, 92, 0.25);
  }

  .about-stat-number {
    font-size: var(--display-small);
    font-weight: bold;
    margin-bottom: var(--space-xs);
    background: linear-gradient(180deg, #1fc55c 0%, #2de3b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
  }

  .about-stat-label {
    font-size: var(--body-medium);
    color: var(--neutral-base);
  }

  .about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-image-grid {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-svg-image {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  @media (max-width: 991px) {
    .about-container {
      grid-template-columns: 1fr;
      gap: var(--space-xl);
    }

    .about-stats {
      grid-template-columns: repeat(2, 1fr);
    }

    .about-svg-image {
      max-width: 400px;
    }

    .about-content h2 {
      text-align: center;
    }

    .about-content h2::before {
      width: 260px;
      height: 260px;
      top: -100px;
      left: -40px;
    }

    .about-content p {
      text-align: center;
    }

  }

  @media (max-width: 599px) {
    .about-section {
      padding: var(--space-4xl) var(--space-md);
    }

    .about-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-md);
      height: 190px;
    }

    .about-svg-image {
      max-width: 300px;
    }

    .about-content h2::before {
      width: 180px;
      height: 180px;
      top: -50px;
      left: -25px;
    }

    .about-stat {
      padding: var(--space-sm) var(--space-xs);
    }

    @media (hover: none) {
      .about-stat:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(31, 197, 92, 0.08);
      }

      [data-theme="dark"] .about-stat:hover {
        border-color: rgba(31, 197, 92, 0.15);
      }
    }
  }

  /* ===== SEKCJA USŁUGI ===== */
  .services-section {
    padding: var(--space-6xl) var(--space-lg);
    background: var(--neutral-very-light);
    overflow: hidden;
    position: relative;
  }

  .services-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    -webkit-mask-image: url('../media/logo-greensun.svg');
    mask-image: url('../media/logo-greensun.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: white;
    z-index: 0;
    pointer-events: none;
  }

  [data-theme="dark"] .services-section::before {
    background-color: black;
  }

  .services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .services-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
  }

  .services-header h2 {
    font-size: var(--display-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-display-medium);
  }

  .services-header p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: var(--line-height-body-large);
    margin-bottom: var(--space-md);
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
  }

  .service-card {
    background: rgba(255, 255, 255, 0.4);
    padding: var(--space-xl);
    padding-bottom: 120px;
    border-radius: 24px;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 520px;
  }

  @media (max-width: 991px) {
    .service-card {
      height: 480px;
    }
  }

  @media (max-width: 599px) {
    .service-card {
      height: 450px;
    }
  }

  .service-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.12);
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }


  [data-theme="dark"] .service-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  [data-theme="dark"] .service-card:hover {
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.2);
  }

  .service-card:nth-child(1) { animation-delay: 0s; }
  .service-card:nth-child(2) { animation-delay: 0.15s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.45s; }
  .service-card:nth-child(5) { animation-delay: 0.6s; }
  .service-card:nth-child(6) { animation-delay: 0.75s; }

  .service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 1;
  }

  .service-card.expanded .service-icon {
    opacity: 0;
    transform: scale(0.8);
  }

  .service-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: white;
  }

  [data-theme="dark"] .service-icon svg {
    fill: none;
    stroke: white;
  }

  .service-card h3 {
    font-size: var(--headline-large);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease 0.1s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    transform-origin: top center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .service-card.expanded h3 {
    /* Scale entire element instead of changing font-size */
    /* This preserves exact line breaks - words don't jump */
    transform: translateY(calc(var(--space-xl) * -2)) scale(0.72);
    margin-bottom: var(--space-lg);
    opacity: 0.95;
  }

  @media (max-width: 991px) {
    .service-card.expanded h3 {
      transform: translateY(calc(var(--space-xl) * -2.5)) scale(0.78);
    }
  }

  @media (max-width: 599px) {
    .service-card.expanded h3 {
      transform: translateY(calc(var(--space-xl) * -2.8)) scale(0.82);
    }
  }

  .service-card p {
    font-size: var(--body-medium);
    color: var(--neutral-base);
    line-height: var(--line-height-body-medium);
    margin-bottom: var(--space-lg);
    transition: opacity 0.4s ease,
                transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
  }

  .service-card.expanded p {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .service-expand {
    background: transparent;
    border: 2px solid transparent;
    color: var(--primary-base);
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    font-size: var(--label-large);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 195px;
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 10;
  }

  .service-expand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
  }

  .service-expand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%);
    border-radius: 6px;
    transition: width 0.4s ease;
    z-index: -1;
  }

  .service-expand:hover {
    color: white;
  }

  .service-expand:hover::after {
    width: 100%;
  }

  /* Mobile/Tablet: Fill background when card is expanded */
  @media (hover: none) {
    .service-card.expanded .service-expand {
      color: white !important;
    }

    .service-card.expanded .service-expand::after {
      width: 100% !important;
    }

    /* Unfill when collapsed (default state) */
    .service-card:not(.expanded) .service-expand {
      color: var(--primary-base) !important;
    }

    .service-card:not(.expanded) .service-expand::after {
      width: 0 !important;
    }
  }

  .service-details {
    position: absolute;
    top: 50%;
    left: var(--space-xl);
    right: var(--space-xl);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s ease 0.2s,
                transform 0.5s ease 0.2s;
    pointer-events: none;
  }

  .service-details.expanded {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  .service-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
  }

  .service-details li {
    padding: var(--space-xs) 0;
    font-size: var(--body-medium);
    color: var(--neutral-base);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .service-details.expanded li {
    opacity: 1;
    transform: translateY(0);
  }

  .service-details.expanded li:nth-child(1) {
    transition-delay: 0.3s;
  }

  .service-details.expanded li:nth-child(2) {
    transition-delay: 0.4s;
  }

  .service-details.expanded li:nth-child(3) {
    transition-delay: 0.5s;
  }

  .service-details.expanded li:nth-child(4) {
    transition-delay: 0.6s;
  }

  .service-details.expanded li:nth-child(5) {
    transition-delay: 0.7s;
  }

  .service-details li::before {
    content: '✓';
    color: var(--success);
    margin-right: var(--space-xs);
  }

  @media (max-width: 599px) {
    @media (hover: none) {
      .service-card:hover {
        transform: none;
        box-shadow: none;
      }
    }
  }

  /* ===== GALERIA ===== */
  .gallery-section {
    padding: var(--space-6xl) var(--space-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
  }

  .gallery-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .gallery-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
  }

  .gallery-header h2 {
    font-size: var(--display-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-display-medium);
    position: relative;
  }

  .gallery-header h2::after {
    content: '';
    position: absolute;
    top: -125px;
    right: 70px;
    width: 240px;
    height: 240px;
    background-color: #F5F5F5;
    -webkit-mask-image: url('../media/green-leaf.svg');
    mask-image: url('../media/green-leaf.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.8;
    z-index: -1;
    transform: scaleX(-1);
  }

  [data-theme="dark"] .gallery-header h2::after {
    background-color: var(--neutral-very-light);
    opacity: 0.6;
  }


  .gallery-header p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: var(--line-height-body-large);
    margin-bottom: var(--space-md);
  }

  /* Carousel Container */
  .carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Carousel Tiles */
  .carousel-tile {
    height: 400px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease,
                box-shadow 0.5s ease,
                transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 120px;
    opacity: 0.6;
    flex-shrink: 0;
    will-change: width, opacity;
  }

  .carousel-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 5%, rgba(0, 0, 0, 0.5) 15%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
  }

  .carousel-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.3));
    z-index: 0;
  }

  /* Active tile (main display) */
  .carousel-tile.active {
    width: 600px;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }

  .carousel-tile.active::before {
    opacity: 1;
  }

  .carousel-tile.active::after {
    opacity: 0;
  }

  /* Inactive tiles (side previews) */
  .carousel-tile:not(.active):hover {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  /* Caption overlay */
  .carousel-tile-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .carousel-tile.active .carousel-tile-caption {
    opacity: 1;
    transform: translateY(0);
  }

  .carousel-tile-title {
    font-size: var(--headline-small);
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--neutral-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-tile-subtitle {
    font-size: var(--body-large);
    opacity: 0.95;
    color: var(--neutral-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide mobile line breaks on desktop */
  .carousel-tile-subtitle .mobile-br {
    display: none;
  }


  /* Dots Navigation */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    /* margin-top: 2rem; */
  }

  .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .carousel-dot.active {
    background: var(--primary-base);
    width: 32px;
    border-radius: 6px;
  }

  .carousel-dot:hover {
    background: var(--primary-base);
    opacity: 0.7;
  }

  /* Padding tiles - hidden on desktop, visible on mobile */
  .carousel-padding-tile {
    display: none;
  }

  /* Dark Mode - Gallery Section */
  [data-theme="dark"] .gallery-section {
    background: linear-gradient(135deg, #0f0f10 0%, #000000 100%);
  }

  [data-theme="dark"] .gallery-header h2 {
    color: var(--text-primary);
  }

  [data-theme="dark"] .gallery-header p {
    color: var(--text-secondary);
  }

  [data-theme="dark"] .carousel-tile-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  }

  [data-theme="dark"] .carousel-tile-title {
    color: #ffffff;
  }

  [data-theme="dark"] .carousel-tile-subtitle {
    color: #e5e5e6;
  }

  [data-theme="dark"] .carousel-dot {
    background: #3e3e40;
  }

  [data-theme="dark"] .carousel-dot.active {
    background: var(--primary-base);
  }

  [data-theme="dark"] .carousel-dot:hover {
    background: var(--primary-base);
  }

  @media (max-width: 1024px) {
    .gallery-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
      overflow: visible;
    }

    .carousel-container {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      overflow-y: visible;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      padding: 2rem 1.5rem;
    }

    .gallery-header h2::after {
      width: 180px;
      height: 180px;
      top: -75px;
      right: -15px;
    }

    /* Create centering effect with pseudo-elements instead of padding */
    .carousel-container::before,
    .carousel-container::after {
      content: '';
      flex: 0 0 calc(50vw - 152px);
      min-width: calc(50vw - 152px);
    }

    .carousel-container::-webkit-scrollbar {
      display: none;
    }

    .carousel-tile {
      flex: 0 0 304px;
      min-width: 304px;
      max-width: 304px;
      width: 304px;
      scroll-snap-align: center;
      scroll-snap-stop: always;
      opacity: 0.6;
      transform: scale(1);
      transition: opacity 0.3s ease,
                  transform 0.3s ease;
    }

    .carousel-tile.active {
      opacity: 1;
      transform: scale(1);
      transition: opacity 0.3s ease,
                  transform 0.3s ease;
    }

    .carousel-padding-tile {
      display: block;
      flex: 0 0 20px;
      min-width: 20px;
      max-width: 20px;
      width: 20px;
      height: 400px;
      opacity: 0;
      pointer-events: none;
    }

    .carousel-nav {
      display: none;
    }
  }

  @media (max-width: 599px) {
    .gallery-section {
      padding: var(--space-5xl) 0;
    }

    .gallery-header h2 {
      padding: 0 var(--space-md);
    }

    .gallery-header h2::after {
      width: 180px;
      height: 180px;
      top: -75px;
      right: -15px;
    }

    .gallery-header p {
      padding: 0 var(--space-md);
    }

    .carousel-container {
      gap: 0rem;
    }

    .carousel-tile {
      height: 400px;
      transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                  margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: width;
    }

    .carousel-tile.tile-hidden-left,
    .carousel-tile.tile-hidden-right {
      width: 304px;
      opacity: 0;
    }

    .carousel-tile.tile-side-left,
    .carousel-tile.tile-side-right {
      width: 304px;
    }

    .carousel-tile.active {
      width: calc(100vw - 136px);
      max-width: 304px;
      height: 400px;
    }

    .carousel-tile.transitioning-to-active {
      width: calc(100vw - 136px);
      max-width: 304px;
    }

    .carousel-tile.transitioning-to-side {
      width: 304px;
    }

    .carousel-tile-caption {
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    @media (max-width: 599px) {
      .carousel-tile {
        margin: 0 0.4rem;
      }
    }
  }

  /* ===== DLACZEGO MY ===== */
  .why-us-section {
    padding: var(--space-6xl) var(--space-lg);
    background: var(--neutral-very-light);
    overflow: hidden;
    position: relative;
  }

  .why-us-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    -webkit-mask-image: url('../media/logo-greensun.svg');
    mask-image: url('../media/logo-greensun.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: white;
    z-index: 0;
    pointer-events: none;
  }

  [data-theme="dark"] .why-us-section::before {
    background-color: black;
  }

  .why-us-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  .why-us-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
  }

  .why-us-header h2 {
    font-size: var(--display-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-display-medium);
  }

  .why-us-header p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: var(--line-height-body-large);
    margin-bottom: var(--space-md);
  }

  .why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
  }

  .why-us-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: var(--space-xl);
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 420px;
  }

  .why-us-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.12);
  }

  .why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%) border-box;
    -webkit-mask: linear-gradient(#ffffff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }


  [data-theme="dark"] .why-us-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  [data-theme="dark"] .why-us-card:hover {
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.2);
  }

  .why-us-card:nth-child(1) { animation-delay: 0s; }
  .why-us-card:nth-child(2) { animation-delay: 0.15s; }
  .why-us-card:nth-child(3) { animation-delay: 0.3s; }
  .why-us-card:nth-child(4) { animation-delay: 0.45s; }
  .why-us-card:nth-child(5) { animation-delay: 0.6s; }
  .why-us-card:nth-child(6) { animation-delay: 0.75s; }

  .why-us-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-diagonal-1-to-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
  }

  .why-us-icon svg {
    width: 32px;
    height: 32px;
    color: white;
  }

  .why-us-card h3 {
    font-size: var(--title-large);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    font-weight: 600;
  }

  .why-us-card p {
    font-size: var(--body-medium);
    line-height: var(--line-height-body-medium);
    color: var(--neutral-base);
  }

  @media (max-width: 991px) {
    .why-us-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-lg);
    }

    .why-us-card {
      height: 360px;
    }
  }

  @media (max-width: 599px) {
    .why-us-grid {
      grid-template-columns: 1fr;
    }

    .why-us-card {
      padding: var(--space-xl);
      height: 340px;
    }

    @media (hover: none) {
      .why-us-card:hover {
        transform: none;
        box-shadow: none;
      }
    }
  }


  /* ===== FORMULARZ KONTAKTOWY ===== */
  .contact-section {
    padding: var(--space-6xl) 10px;
    background: var(--bg-secondary);
    overflow: hidden;
  }

  /* Light theme - white background for section, form gets current bg color */
  [data-theme="light"] .contact-section {
    background: var(--neutral-white);
  }

  .contact-container {
    max-width: 800px;
    margin: 0 auto;
  }

  .contact-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
  }

  .contact-header h2 {
    font-size: var(--display-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-display-medium);
  }

  .contact-header p {
    font-size: var(--body-large);
    color: var(--text-secondary);
    line-height: var(--line-height-body-large);
    margin-bottom: var(--space-md);
  }

  .contact-form {
    background: var(--bg-primary);
    padding: var(--space-5xl);
    border-radius: 24px;
  }

  /* Light theme - form gets the previous section background color */
  [data-theme="light"] .contact-form {
    background: var(--bg-secondary);
  }

  .form-group {
    margin-bottom: var(--space-lg);
  }

  .form-group label {
    display: block;
    font-size: var(--label-large);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 500;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: var(--body-medium);
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--surface-primary);
    color: var(--text-primary);
  }

  .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--primary-base);
  }

  .form-group select:hover {
    border-color: var(--primary-light);
  }

  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }

  /* Prevent auto-zoom on mobile devices when focusing inputs */
  @media (max-width: 599px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
      font-size: 16px;
    }
  }

  /* Subject Switcher Styles */
  .subject-switcher {
    position: relative;
    width: 100%;
  }

  .subject-switcher .current-subject {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--surface-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }

  .subject-switcher .current-subject:hover {
    border-color: var(--primary-light);
  }

  .subject-switcher .current-subject:focus {
    outline: none;
    border-color: var(--primary-base);
  }

  .subject-switcher .current-subject svg {
    width: 16px;
    height: 16px;
    color: var(--neutral-base);
    transition: transform 0.3s ease;
  }

  .subject-switcher.active .current-subject svg {
    transform: rotate(180deg);
  }

  .subject-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface-primary);
    border: 2px solid var(--border-medium);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 250px;
    overflow-y: auto;
  }

  .subject-switcher.active .subject-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .subject-dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    transition: background-color 0.3s ease;
    color: var(--text-primary);
  }

  .subject-dropdown button:hover {
    background-color: var(--surface-hover);
  }

  .subject-dropdown button:first-child {
    border-radius: 0;
  }

  .subject-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .checkbox-group {
    margin: var(--space-lg) 0;
  }

  .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
  }

  .checkbox-item input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
  }

  .checkbox-item label {
    font-size: var(--body-small);
    color: var(--neutral-base);
    margin: 0;
    line-height: 1.4;
  }

  .submit-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--primary-base);
    padding: var(--space-md) var(--space-5xl);
    border-radius: 8px;
    font-family: var(--font-rest);
    font-size: var(--label-large);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
  }

  .submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%);
    border-radius: 6px;
    transition: width 0.4s ease;
    z-index: -1;
  }

  .submit-btn:hover {
    color: white;
  }

  .submit-btn:hover::after {
    width: 100%;
  }

  .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .submit-btn:disabled::after {
    width: 0;
  }

  @media (max-width: 599px) {
    .contact-form {
      padding: var(--space-xl);
    }
    
    .form-row {
      grid-template-columns: 1fr;
    }
  }

  /* ===== STOPKA ===== */
  .footer-section {
    background: #161619;
    color: #cbcbcc;
    padding: var(--space-5xl) var(--space-lg) var(--space-xl);
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-5xl);
    margin-bottom: var(--space-5xl);
  }

  .footer-brand-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
  }

  .footer-brand-logo {
    width: 250px;
    height: 60px;
    background-image: url('../media/icons/logo-white.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .footer-brand h3 {
    font-size: var(--headline-large);
    color: #ffffff;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .footer-brand p {
    font-size: var(--body-medium);
    line-height: var(--line-height-body-medium);
    margin-bottom: var(--space-lg);
  }

  .footer-social {
    display: flex;
    gap: var(--space-sm);
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }

  .footer-social a:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
  }

  .footer-social a svg {
    width: 20px;
    height: 20px;
    color: var(--neutral-black);
  }

  .footer-column h4 {
    font-size: var(--title-large);
    color: #ffffff;
    margin-bottom: var(--space-md);
  }

  .footer-column ul {
    list-style: none;
    padding: 0;
  }

  .footer-column li {
    margin-bottom: var(--space-xs);
  }

  .footer-column a {
    color: #cbcbcc;
    text-decoration: none;
    font-size: var(--body-medium);
    transition: color 0.3s ease;
  }

  .footer-column a:hover {
    color: var(--primary-light);
  }

  .footer-bottom {
    border-top: 1px solid var(--neutral-dark);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--body-small);
  }

  .footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
  }

  .footer-bottom a:hover {
    color: var(--neutral-white);
  }

  /* Ensure footer links stay consistent in dark mode */
  [data-theme="dark"] .footer-bottom a {
    color: #e8f8ed;
  }

  [data-theme="dark"] .footer-bottom a:hover {
    color: var(--neutral-white);
  }

  @media (max-width: 991px) {
    .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-xl);
    }
  }

  @media (max-width: 599px) {
    .footer-content {
      grid-template-columns: 1fr;
      gap: var(--space-lg);
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: var(--space-sm);
      text-align: center;
    }
  }

  /* ===== BANER COOKIES ===== */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tertiary-base);
    color: var(--neutral-light);
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .cookie-banner.visible {
    transform: translateY(0);
  }

  .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .cookie-text {
    font-size: var(--body-small);
    flex: 1;
  }

  .cookie-text a {
    color: var(--primary-light);
    text-decoration: none;
  }

  .cookie-text a:hover {
    text-decoration: underline;
  }

  .cookie-actions {
    display: flex;
    gap: var(--space-sm);
  }

  .cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: 6px;
    font-size: var(--label-medium);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .cookie-btn.accept {
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%);
    color: white;
  }

  .cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 197, 92, 0.3);
  }

  .cookie-btn.decline {
    background: transparent;
    color: var(--neutral-light);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .cookie-btn.decline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
  }

  .cookie-btn.decline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #1fc55c 0%, #2de3b9 100%);
    border-radius: 4px;
    transition: width 0.4s ease;
    z-index: -1;
  }

  .cookie-btn.decline:hover {
    color: white;
  }

  .cookie-btn.decline:hover::after {
    width: 100%;
  }

  @media (max-width: 599px) {
    .cookie-content {
      flex-direction: column;
      text-align: center;
    }
  }

  /* ===== ANIMACJE SCROLL ===== */
  .fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .scale-in.visible {
    opacity: 1;
    transform: scale(1);
  }

  #a-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  /* ===== GREENSUN GRADIENT UTILITIES ===== */
  
  /* SVG Icon with gradient fill */
  .svg-icon {
    background: var(--gs-grad);
  }
  
  /* Service icon background gradient */
  .service-icon {
    background: var(--gs-grad);
  }
  
  /* Why us icon background gradient */
  .why-us-icon {
    background: var(--gs-grad);
  }

    /* Legal Modal Styles */
    .legal-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 10000;
      opacity: 0;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(4px);
    }

    .legal-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: var(--space-lg);
    }

    .legal-modal.show {
      opacity: 1;
    }

    .legal-modal-content {
      background: var(--surface-primary);
      border-radius: 16px;
      width: 95%;
      max-width: 900px;
      max-height: 90vh;
      position: relative;
      transform: scale(0.9) translateY(20px);
      transition: transform 0.3s ease;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      display: flex;
      flex-direction: column;
    }

    .legal-modal.show .legal-modal-content {
      transform: scale(1) translateY(0);
    }

    .legal-modal-close {
      position: absolute;
      top: var(--space-lg);
      right: var(--space-lg);
      background: var(--neutral-light);
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
      color: var(--text-primary);
      transition: all 0.3s ease;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-bottom: 0.5%;
    }

    .legal-modal-close:hover {
      background: var(--primary-base);
      color: white;
      transform: rotate(90deg);
    }

    [data-theme="dark"] .legal-modal-close {
      background: var(--neutral-dark);
    }

    .legal-modal-body {
      padding: var(--space-4xl);
      overflow-y: auto;
      max-height: calc(90vh - 80px);
      scrollbar-width: thin;
      scrollbar-color: var(--primary-base) var(--neutral-very-light);
    }

    .legal-modal-body::-webkit-scrollbar {
      width: 8px;
    }

    .legal-modal-body::-webkit-scrollbar-track {
      background: var(--neutral-very-light);
      border-radius: 4px;
    }

    .legal-modal-body::-webkit-scrollbar-thumb {
      background: var(--primary-base);
      border-radius: 4px;
    }

    .legal-modal-body::-webkit-scrollbar-thumb:hover {
      background: var(--primary-dark);
    }

    .legal-modal-title {
      font-family: var(--font-main);
      font-size: var(--h2-large);
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: var(--space-3xl);
      padding-right: var(--space-4xl);
    }

    .legal-modal-text {
      font-family: var(--font-rest);
      color: var(--text-secondary);
      line-height: 1.7;
    }

    .legal-modal-text h2 {
      font-family: var(--font-main);
      font-size: var(--h3-large);
      font-weight: 600;
      color: var(--text-primary);
      margin-top: var(--space-3xl);
      margin-bottom: var(--space-lg);
    }

    .legal-modal-text h2:first-child {
      margin-top: 0;
    }

    .legal-modal-text h3 {
      font-family: var(--font-main);
      font-size: var(--h4-large);
      font-weight: 500;
      color: var(--text-secondary);
      margin-top: var(--space-xl);
      margin-bottom: var(--space-md);
    }

    .legal-modal-text p {
      font-size: var(--body-large);
      margin-bottom: var(--space-md);
    }

    .legal-modal-text ul {
      list-style-type: disc;
      margin-left: var(--space-xl);
      margin-bottom: var(--space-md);
    }

    .legal-modal-text li {
      font-size: var(--body-large);
      margin-bottom: var(--space-sm);
    }

    .legal-modal-text strong {
      font-weight: 600;
      color: var(--text-primary);
    }

    .legal-contact-info {
      background: var(--bg-secondary);
      padding: var(--space-lg);
      border-radius: 8px;
      margin: var(--space-lg) 0;
    }

    .legal-contact-info p {
      margin-bottom: var(--space-sm);
    }

    .legal-contact-info p:last-child {
      margin-bottom: 0;
    }

    /* Mobile Responsive */
    @media (max-width: 991px) {
      .legal-modal-title {
        font-size: var(--h3-large);
        margin-bottom: var(--space-xl);
      }

      .legal-modal-body {
        padding: var(--space-xl);
      }

      .legal-modal-text h2 {
        font-size: var(--h4-large);
      }

      .legal-modal-text h3 {
        font-size: var(--h5-large);
      }
    }

    @media (max-width: 599px) {
      .legal-modal.active {
        padding: var(--space-md);
      }

      .legal-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
      }

      .legal-modal-title {
        font-size: var(--h4-large);
        margin-bottom: var(--space-lg);
        padding-right: var(--space-3xl);
      }

      .legal-modal-body {
        padding: var(--space-lg);
        max-height: calc(95vh - 40px);
      }

      .legal-modal-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 36px;
        height: 36px;
        font-size: 24px;
        padding-bottom: 1%;
      }

      .legal-modal-text h2 {
        font-size: var(--h5-large);
        margin-top: var(--space-xl);
      }

      .legal-modal-text h3 {
        font-size: var(--h6-large);
      }
    }
