:root {
      --bg-primary: #FFFFFF;    /* biały → granatowy */
      --bg-alt: #0B0B30;
      --text-primary: #000000;  /* czarny tekst */
      --text-alt: #FFFFFF;
      --bg-dark: #0B0B30;       /* granat bazowy */
      --font-primary: "Poppins", sans-serif;
  }

    * {
      font-family: var(--font-primary);
      font-style: normal;
  }

  body {
    margin: 0px;
    transition: all 0.3s ease;
    background-image: url('/assets/images/background.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--bg-primary);
  }

  body.dark {
      --bg-primary: #0B0B30;    /* granat tło */
      --bg-alt: #dddddd;
      --text-primary: #FFFFFF;  /* biały tekst */
      --text-alt: #000000;
  }

  body.no-background {
    background-image: none !important;
  }

  /*---SKALA SZAROŚCI---*/

  body.grayscale > * {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
  }

  body.grayscale {
    transition: filter 0.3s ease;
    background-image: none !important;
    background-color: gray;
  }

   /*-------------------*/
   /*---WYSOKI KONTRAST---*/
  html.high-contrast {
    filter: contrast(1.5) brightness(1.1);
    -webkit-filter: contrast(1.5) brightness(1.1);
  }

  body.high-contrast {
    --bg-primary: #000000 !important;
    --bg-alt: #ffffff !important;
    --text-primary: #ffffff !important;
    --text-alt: #000000 !important;
    
    background-image: none !important;
    background-color: var(--bg-primary);
    
    outline: 3px solid #ffff00 !important;
  }

   /*-------------------*/
   /*---NEGATYW---*/

   html.negative {
      filter: invert(100%) hue-rotate(180deg);
      -webkit-filter: invert(100%) hue-rotate(180deg);
    }

    body.negative {
      background-color: var(--bg-primary);
    }

   /*-------------------*/

  /*---JASNE TŁO---*/

   body.light-bg { 
    --bg-primary: #fff; 
    --text-primary: #000; 
  }

  /*-------------------*/

  /*---PODKREŚLONE ODNOŚNIKI---*/
  
  body.underline-links a { 
    text-decoration: underline; 
  }

  /*-------------------*/

  .footer-section {
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
    background: var(--bg-dark);
    color: #fff;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .footer-container {
    margin: 0 auto;
    padding: 0 7vw;
  }

  .footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: clamp(20px, 3vw, 30px);
    min-height: clamp(80px, 12vw, 123px);
  }

  .footer-col-left, .footer-col-right {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
  }

  .footer-col-left {
    display: flex;
    align-items: center;
  }

  .footer-col-right {
    justify-content: flex-end;
  }

  @media (min-width: 992px) {
    .footer-col-left { flex: 0 0 calc(33.3% - 20px); } /* 4/12 */
    .footer-col-right { flex: 0 0 calc(66.7% - 20px); } /* 8/12 */
  }

  /* NAPRAWA 992px-1034px - CENTRUM */
  @media (min-width: 992px) and (max-width: 1034px) {
    .footer-row {
      justify-content: center;
      gap: 2rem !important;
    }
    
    .footer-col-right {
      justify-content: center !important; 
    }
    
    .menu-links {
      justify-content: center !important;
      gap: 1.5rem !important;
    }
    
    .eu-banner {
      justify-content: center !important;
    }
  }


  @media (max-width: 991.98px) {
    .footer-row {
      flex-direction: column; /* Stack pionowy */
      align-items: center; /* Wszystko na środek */
    }
    
    .footer-col-left {
      justify-content: center;
      text-align: center;
      width: 100%;
    }
    
    .logo-wrapper {
      align-items: center;
    }
    
    .contact-info {
      align-items: center;
    }
  }

  .logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .logo-text {
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.1;
    margin: 0;
  }

  .text-dark {
    color: #000 !important;
  }

  .text-white {
    color: #fff !important;
  }

  .logo-img {
    width: 183px;
    max-width: 183px;
    height: auto;
    max-height: 39px;
    object-fit: contain;

    background-color: white;
    padding: 3px;
    border-radius: 5px;
  }

  .menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 4vw, 40px);
    justify-content: flex-start;
  }

  @media (min-width: 992px) {
    .menu-links { justify-content: flex-end; }
  }

  @media (max-width: 991.99px) {
    .menu-links { justify-content: center; }
    .standard-text { padding-right: 0px !important; }
  }

  .menu-link {
    font-weight: 500;
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-decoration: none /* !important*/;
    line-height: 1.2;
  }

  /* .menu-link:hover { opacity: 0.8; } */

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .info-item {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.4;
    color: #fff;
  }

  .info-item a {
    color: inherit !important;
    text-decoration: none !important;
  }

  .eu-banner {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(100px, 20vw, 157px);
  }

  .eu-img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: clamp(20px, 4vw, 40px);
  }

  .bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 4vw, 40px);
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(10px, 2vw, 20px);
  }

  @media (min-width: 768px) {
    .bottom-row { justify-content: space-between; }
  }

  .bottom-link {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #fff !important;
    text-decoration: none /* !important */;
  }

  .bottom-text {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: #fff;
  }

  .bottom-text a { color: inherit !important; }

  .social-icons {
    font-size: 1.5rem;
    padding-right: 0.5vw;
  }

  .social-icons i {
    margin-left: 10px;
  }

  .copyright {
    text-align: center;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    opacity: 0.8;
  }

  .copyright a { 
    color: inherit !important; 
    text-decoration: none;
  }

  #header-menu {
  width: 100vw;
  height: 100px;
  background: var(--bg-primary); /* #fff; */
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  overflow: hidden;
}

.menu-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 7vw;/* clamp(15px, 7vw, 100px); */
  margin: 0 auto;
}

/* Logo */
.menu-logo {
  flex-shrink: 0;
}

#menu-logo a,
#menu-logo a:link,
#menu-logo a:visited,
#menu-logo a:hover,
#menu-logo a:active {
    text-decoration: none;
} 

.logo-text {
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0;
  color: var(--text-primary);
}

/* Desktop menu */
.menu-desktop .menu-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.menu-link {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none /* !important */;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

/* Theme button */
.btn-theme {
  width: 52px;
  height: 52px;
  border: 2px solid #dee2e6;
  background: transparent;
  transition: all 0.3s;
}

.theme-icon {
  font-size: 1.25rem;
}

#themeSwitch,
#mobileThemeSwitch {
  border: none !important;
  color: var(--text-primary);
}

#themeSwitch:hover {
  background-color: transparent;
}

/* HAMBURGER */
.hamburger-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
  color: var(--text-primary);
}

.hamburger-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* MOBILE MENU OVERLAY */
#mobile-menu{
  padding-top: 20px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11,11,48,0.98);
  backdrop-filter: blur(20px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #0B0B30;
  padding: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-x: hidden;
}

.mobile-menu-overlay.show .mobile-menu-content {
  /* transform: translateX(0); */
  transform: translateX(7%);
}

.mobile-header h3 {
  color: #fff;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-btn:hover {
  background: rgba(255,255,255,0.1);
}

.menu-logo-mobile {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    justify-content: center;
}

.menu-logo-mobile a {
  text-decoration: none;
}

.mobile-logo-text {
  font-weight: 600;
  font-size: 1.75rem;
  margin: 0;
  color: #FFFFFF;
  text-align: center;
}

.mobile-menu-overlay.show #mobile-logo {
    display: flex !important;
}

/* Mobile links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.mobile-link {
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 2rem;
  text-decoration: none /* !important */;
  border-radius: 12px;
  transition: all 0.2s;
  text-align: center;
}

.mobile-link:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(8px);
}

.mobile-theme button {
  color: #fff !important;
  font-weight: 500;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.3) !important;
}

.mobile-theme button:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* Hide desktop <1260px */
@media (max-width: 1291.98px) {
  .menu-desktop,
  #theme-switch-full {
    display: none !important;
  }
  
  .hamburger-btn {
    display: block !important;
  }
}

/* Show desktop >1260px */
@media (min-width:92px) {
  .hamburger-btn {
    display: none !important;
  }
}

#main-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /*TODO: zmienić na fit-content(?) */
    height: auto;
    padding-top: 120px;
  }

  #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  #repulse-circle-div {
    position: absolute;
    z-index: 2;
  }

  .content-overlay {
    position: relative; /*było absolute */
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    z-index: 3;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 20px; */
    padding: 0 7vw;
    box-sizing: border-box;

    justify-content: center; /* Cały kontener wyśrodkowany pionowo */
    align-items: center;     /* Cały kontener wyśrodkowany poziomo */
  }

  #main-info {
    padding-top: 80px;
    padding-bottom: 80px;

    display: flex;
    flex-direction: column;
    gap: 50px;

    justify-content: center;
    align-items: center;
  }

  #main-image img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    display: block;
  }

  #main-header {
    margin-bottom: 20px;
  }

  .title {
    font-weight: 600;
    font-size: 4rem;
    line-height: normal;
    letter-spacing: 0;
    color: var(--text-primary);
  }

  .subtitle {
    font-size: clamp(1.5rem, 5vw, 2.5rem); /* 24px → 40px */
    font-weight: 500;
    margin: 0;
    line-height: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    color: var(--text-alt);
    letter-spacing: 0;
  }

  .standard-text {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: normal;
    letter-spacing: 0;
    color: var(--text-primary);
    padding-right: 10px;
    padding-right: 10vw; /*TODO: warunkowo dla szerokości większej niż mobilna*/
  }

  .project-text {
    font-size: clamp(0.875rem, 3vw, 1rem); /* 14px → 16px */
    font-weight: 400;
    line-height: normal;
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
    word-break: break-word;
    font-style: normal;
    color: var(--text-alt);
  }

  .normal-text {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: normal;
    letter-spacing: 0;
    color: var(--text-primary);
  }

  .semi-bold-text {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: normal;
    letter-spacing: 0;
    color: var(--text-primary);
  }

  .full-width {
    width: 100%;
  }

  .flex-div {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
  }

  .flex-layout {
    display: flex;
    gap: 2rem;
    margin-left: 7vw;
    margin-right: 7vw;
    padding-top: 120px;
    flex-wrap: wrap;
  }

  .flex-div-nowrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .flex-item {
    flex: 1;
    min-width: 0;
  }

  .space-between {
    justify-content: space-between;
  }

  #projects-header {
    width: 100%;
  }

  .projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }

  #projects-info {
    margin-bottom: 80px;
    /* display: flex; */
    gap: 2rem;
    /* justify-content: center; */
    flex-wrap: wrap;
    flex-direction: row;
  }

  .project-item {
    box-sizing: border-box;
    width: 100%;
    max-width: clamp(280px, 40vw, 600px);
    aspect-ratio: 600 / 324;
    background: var(--bg-alt);
    border-radius: 20px;
    padding: clamp(20px, 8%, 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  #ssi-info:focus-visible,
  #ssrp-info:focus-visible {
    background-color: var(--bg-primary);
  }

  #ssi-info:focus-visible .subtitle,
  #ssi-info:focus-visible .project-text,
  #ssrp-info:focus-visible .subtitle,
  #ssrp-info:focus-visible .project-text {
    color: var(--text-primary);
  }

  @media (max-width: 1100px){
    #projects-info{
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem;
    }

    .projects-wrapper{
      justify-content: center;
    }

    #projects-header {
        text-align: center;
    }

    #news-header {
        text-align: center;
    }

    .project-item {
        max-width: 600px;
    }
  }

  /* Desktop: obok siebie */
  @media (min-width: 1100px) {
      .flex-div#main-info {
          flex-direction: row;
          gap: 50px;
      }
      
      #main-image.flex-item,
      #main-description.flex-item {
          flex: 1;
      }
  }

  @media (max-width: 480px) {
    .project-item {
        padding: clamp(15px, 6vw, 30px);
    }
  }

   @media (max-width: 590px) {
    .title {
        font-size: 2.25rem;
    }

    #ssrp-title {
      font-size: 2rem;
    }

    #ssi-title {
      font-size: 2rem;
    }
  }

  /* Mobile: jeden pod drugim */
  @media (max-width: 1099px) {
      .flex-div#main-info {
          flex-direction: column;
          gap: 20px;
      }
      
      #main-image.flex-item,
      #main-description.flex-item {
          flex: none;
          width: 100%;
      }

      #main-info {
          flex-direction: column;
          gap: 20px;
          align-items: center;
          justify-content: center;
          text-align: center;
      }
      
      #main-image,
      #main-description {
          width: 100%;
          /* max-width: 400px; */ /* Opcjonalnie: max szerokość obrazka/tekstu */
      }
      
      #main-image img {
          margin: 0 auto; /* Obrazek wyśrodkowany poziomo */
      }
  }


/*-------------------------------*/

.footer-section,
#header-menu {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
}

.mobile-menu-overlay {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  left: 0 !important;
  margin: 0 !important;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

html {
  scrollbar-gutter: stable !important;
  overflow-x: clip !important;
}

/*--------KONTAKT----------*/
.main-layout {
    position: relative;
    width: 100%;
    min-height: 100vh; /*TODO: zmienić na fit-content(?) */
    height: auto;
    padding-top: 120px;
}

.contact-form {
      max-width: 400px;
      /* margin: 0 auto; */
      font-size: 0.75rem;
      color: var(--text-primary);
    }

    .form-row {
        display: flex;
        gap: 15px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      margin-bottom: 10px;
      width: 100%;
    }

    .form-group label {
      margin-bottom: 2px;
      font-weight: 600;
    }

    .form-control,
    .form-textarea {
      padding: 6px 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 0.75rem;
    }

    .form-textarea {
      min-height: 90px;
      resize: vertical;
    }

    .btn-submit {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 4px;
      background-color: #05082f; /* ciemny granat jak na projekcie */
      color: #fff;
      font-weight: 600;
      cursor: pointer;
    }

    .btn-submit:hover {
      background-color: #02051f;
    }

    @media (max-width: 480px) {
      .form-row {
        flex-direction: column;
      }
    }

    #contact-layout {
        display: flex;
        gap: 2rem;

        margin-left: 7vw;
        margin-right: 7vw !important;
        padding-top: 120px;
    }

    #contact-form,
    #contact-description,
    #sfr-contact,
    #fg-contact {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 250px;
        /* padding: 1rem; */
        gap: 1rem;
    }

    @media (max-width: 767px) {
        #contact-layout {
                flex-direction: column;
                gap: 1.5rem;
            }

        #contact-description,
        #contact-form {
                padding-left: 2vw;
                padding-right: 2vw;
            }

        #contact-description {
          text-align: center;
        }

        #contact-form,
        #contact-description,
        #contact-info {
            align-items: center;
        }
        #sfr-contact::after {
            display: none;
        }
    }

    #contact-info {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        position: relative;
        justify-content: space-between;
        margin: 0 auto;
        align-items: center;
    }

    #sfr-contact {
        position: relative;
    }

    #fg-contact {
        word-break: break-word;
    }

    .vertical-divider {
        width: 2px;
        height: 60%;
        background-color: #ccc;
    }


    #sfr-contact,
    #fg-contact {
        flex: 1;
    }

    /* Szeroki ekran: obok siebie */
    @media (min-width: 768px) {
        #contact-info {
            flex-direction: row;
        }
    
        #sfr-contact,
        #fg-contact {
                width: 50%;
            }
    }

    .text-primary {
      color: var(--text-primary);
    }

    .text-40 {
        font-size: clamp(1.5rem, 2.5rem, 2.5rem);
        color: var(--text-primary);
    }
    .text-32 {
        font-size: clamp(1rem, 2rem, 2rem);
        color: var(--text-primary);
    }

    .text-24 {
        font-size: clamp(1.25rem, 2rem, 1.5rem);
        color: var(--text-primary);
    }

    .text-16 {
        font-size: clamp(0.875rem, 1rem, 1rem);
        color: var(--text-primary);
    }

    .text-align-start {
        text-align: start !important;
    }

    .flex {
        display: flex;
    }

    .center-align {
        align-items: center;
    }

    .center-text {
        text-align: center;
    }

    .break-word {
      word-wrap: break-word; 
      overflow-wrap: break-word;
    }

    .contact-icon {
        margin-right: 23px;
    }

    #sfr-contact,
    #fg-contact {
        max-width: 496px;
        gap: 40px;
    }

    /*--ssi--*/
    #main-ssi{
        margin: 0 auto;
        overflow-x: hidden;
    }

    #ssi-title {
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: start;
    }

    #ssi-path-image {
        max-width: 100%;
    }

    #main-ssi p {
        overflow-wrap: break-word;
        hyphens: auto;
        word-break: break-word;
    }

    /* Usuń <br> - zastąp margin */
    #main-ssi p {
        margin-bottom: 1rem;
    }

    #main-ssi br {
        display: none;
    }

    #featured-ssi {
        padding-left: clamp(15px, 7vw, 100px);
        padding-right: clamp(15px, 7vw, 100px);
        text-align: justify;
    }
    
    .main-padding {
        padding-left: clamp(15px, 7vw, 100px);
        padding-right: clamp(15px, 7vw, 100px);
        text-align: justify
    }

    #featured-ssi > div {
        width: 100%;
        max-width: 100%;
    }

    #main-ssi img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 2rem auto;
        border-radius: 20px;
    }

    /* --- SSI/SSRP: siatka 6 boxów --- */
  .ssi-boxes-grid, 
  .ssrp-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 2.5rem 0;
  }

  .ssi-box,
  .ssrp-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 16px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
  }

  .ssi-box:hover,
  .ssi-box:focus-visible,
  .ssrp-box:hover,
  .ssrp-box:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .ssi-box-icon, 
  .ssrp-box-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background-color: #0161FD;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .ssi-icon,
  .ssrp-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
  }
  
  .ssi-icon-placeholder::before,
  .ssrp-icon-placeholder::before {
    content: "?";
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
  }

  .ssi-box-label,
  .ssrp-box-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
  }

  /* Tablet: 2 kolumny */
  @media (max-width: 900px) {
    .ssi-boxes-grid,
    .ssrp-boxes-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Mobile: 1 kolumna */
  @media (max-width: 480px) {
    .ssi-boxes-grid,
    .ssrp-boxes-grid {
      grid-template-columns: 1fr;
    }
  }

     /*--ssrp--*/
    #main-ssrp{
        margin: 0 auto;
        overflow-x: hidden;
        display: block;
    }

    #ssrp-title {
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: start;
    }

    #ssrp-path-image {
        max-width: 100%;
    }

    #main-ssrp p {
        overflow-wrap: break-word;
        hyphens: auto;
        word-break: break-word;
    }

    #main-ssrp p {
        margin-bottom: 1rem;
    }

    #main-ssrp br {
        display: none;
    }

    #featured-ssrp {
        padding-left: clamp(15px, 7vw, 100px);
        padding-right: clamp(15px, 7vw, 100px);
        text-align: justify;
    }
    
    #featured-ssrp > div {
        width: 100%;
        max-width: 100%;
    }

    #main-ssrp img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 2rem auto;
        border-radius: 20px;
    }

    #featured-ssrp > div {
        width: 100%;
        max-width: 100%;
    }

    /*---baza usług---*/
    .services-section {
        padding: 40px 0;
    }

    #featured {
      word-wrap: break-word; 
      overflow-wrap: break-word;
    }

    .services-container {
            display: grid;
            grid-template-columns: repeat(2, 564px);
            gap: 40px 60px;
            align-items: start;
            margin: 0 auto;
            justify-content: center;
            max-width: 860px;
            align-items: stretch;
    }

    .services-column {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        display: flex;
        align-items: center;
        text-decoration: none;
        background: var(--bg-primary);
        border-radius: 20px;
        padding: 20px;
        text-align: center;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        color: var(--text-primary);
        box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
    }

    .service-icon-div {
      border-radius: 20px;
      width: 100px;
      height: 100px;
      background-color: #0161FD;
      justify-content: center;
      align-items: center;
      display: flex;
      margin-right: 15px;
    }

    .service-icon {
        flex-shrink: 0; /* ikona nie kurczy się */
        font-size: 2.5rem;
        color: white; 
        width: 48px;
        text-align: center;
    }

    .service-text {
        flex: 1; 
        text-align: start;
    }

    .service-item img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .service-item h5 {
        font-size: 1rem;
        color: #333;
        margin: 0;
    }

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .center-image img {
        max-width: 250px;
        display: block;
        margin: 0 auto;
        border-radius: 12px;
    }

    @media (max-width: 768px) {
        .services-container {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }

    @media (max-width: 300px) {
      .service-item {
        display: block;
      }
    }

    label.text-40 {
        display: block;
        margin-bottom: 0.5rem;
    }

    input#usluga.form-control {
        width: 100%;
        box-sizing: border-box;
        border: 2px solid #e0e0e0;
        border-radius: 20px;
        height: 60px;
        font-size: 1rem;
    }

    #service-main-section {
        margin-bottom: 100px;
    }

    .top-bottom-40 {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #suggestions {
        border-radius: 20px;
        background-color: var(--bg-primary);
        border: 1px solid transparent;
        overflow: hidden;
    }

    .list-group-item {
        width: 100%;
        background-color: transparent;
        text-align: start;
        display: flex;
    }

    #suggestions > button {
        border: 1px solid #B6B6B6
    }

    /*---ekosystem---*/
    .gap-40 {
        gap: 40px;
    }

    .height-fit-content {
      height: fit-content;
    }

/*---usługi---*/
.services-list h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
}
.custom-list {
  list-style: none;
  padding-left: 0;
  counter-reset: custom-counter;
  gap: 20px;
  display: grid;
}
.custom-list li {
  counter-increment: custom-counter;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  padding: 15px 20px 15px 50px;
  border-radius: 8px;
  font-size: 1rem;
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.custom-list li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #007bff;
  color: #fff;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.875rem;
}
.custom-list li:hover {
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#wyniki div{
  background-color: var(--bg-primary);
  padding: 2vw;
  border-radius: 20px;
}

.providers-wrap {
  border: 2px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  background: #fdfdfd;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: grid;
  gap: 20px;
}
.providers-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 10px;
}
.provider-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.provider-card strong {
  font-size: 1.1rem;
  color: #333;
}
.badge.success {
  background-color: #0161FD;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
}
.badge.muted {
  background-color: #ccc;
  color: #333;
  padding: 5px 8px;
  border-radius: 20px;
}
.provider-actions a {
  display: inline-block;
  margin-right: 10px;
  color: #007bff;
}

.service-list-item {
  border-radius: 20px;
  gap: 10px;
  box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.25);
  background-color: var(--bg-primary);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-list-item a {
  text-decoration: none/*  !important */;
  color: var(--text-primary);
}

.service-list-item a:hover {
  text-decoration: none /* !important */;
}

.display-block {
  display: block !important;
}

.iob-name {
  width: calc(100% - 175px);
}

@media (max-width: 600px) {
  .service-list-item {
    flex-direction: column;
    text-align: center;
  }

  .iob-name {
    width: 100%;
  }
}

.instytucja-link {
  align-items: center;
}
/*------*/
/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-section {
    margin-top: 2.5rem;
    margin-bottom: 4rem;
}

.accordion-flush .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 0.75rem;
}

.accordion-flush .accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.1rem 3.5rem 1.1rem 1.5rem;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease, color 0.25s ease,
                box-shadow 0.25s ease, border-color 0.25s ease,
                border-radius 0.25s ease;
    /* Reset button styles */
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.4;
}

.accordion-button::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230161FD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-button.open::after {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
}

.accordion-button.open {
    background: #0B0B30;
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 20px rgba(1, 97, 253, 0.25);
    /* border-color: #0161FD; */
    border-bottom-color: transparent;
}

.accordion-button:hover:not(.open) {
    /* border-color: #0161FD; */
    box-shadow: 4px 4px 16px rgba(1, 97, 253, 0.18);
}

/* Panel z odpowiedzią */
.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border: 2px solid transparent;
    border-top: none;
    border-radius: 0 0 16px 16px;
}

.accordion-collapse.show {
    max-height: 2000px;
    box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    border-top: none;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-body {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem 1.5rem;
    line-height: 1.7;
    border-radius: 0 0 14px 14px;
}

.accordion-body p:last-child,
.accordion-body ul:last-child {
    margin-bottom: 0;
}

.accordion-body ul {
    padding-left: 1.25rem;
}

.accordion-body li {
    margin-bottom: 0.4rem;
}

/* ── Dark mode ────────────────────────────────────────── */
body.dark .accordion-button {
    background: #13134a;
    color: #ffffff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}

body.dark .accordion-button.open {
    background: #0161FD;
    color: #ffffff;
    border-color: #0161FD;
    box-shadow: 0 4px 20px rgba(1, 97, 253, 0.4);
}

body.dark .accordion-body {
    background: #13134a;
    color: #ffffff;
}

body.dark .accordion-collapse.show {
    border-color: #0161FD;
}

/* ── Wysoki kontrast ─────────────────────────────────── */
body.high-contrast .accordion-button {
    border: 2px solid #ffff00 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.high-contrast .accordion-button.open {
    background: #000 !important;
    border-color: #ffff00 !important;
    border-bottom-color: transparent !important;
}

body.high-contrast .accordion-collapse.show {
    border-color: #ffff00 !important;
}

body.high-contrast .accordion-body {
    background: #000 !important;
    color: #fff !important;
}

/* ── Pomocnicze ──────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Aktualności – karty news ──────────────────────── */
#news-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#show-all-news {
  width: 50%;
  align-content: center;
  text-align: right;
  text-decoration: none;
}

#show-all-news a {
  text-decoration: none;
  font-size: clamp(1rem, 1.25rem, 1.25rem);
  color: var(--text-primary)
}

@media (max-width: 1132px) {
  #news-header-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  #show-all-news {
    width: auto;
    text-align: center;
  }
}

#news-info {
  padding-bottom: 80px;
}

.news {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
  background: var(--bg-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news__image {
  overflow: hidden;
  background-color: var(--bg-primary);
  width: 100%;
  flex-shrink: 0;
  display: block;
  border-radius: 20px 20px 0 0;
  aspect-ratio: 382 / 437;
  height: 300px;
}

.news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.news__content {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.dark .news__content {
  background: var(--bg-primary);
}

/*-------------*/
/* blog */
.blog-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 20px;
    }

    .post-info {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }

    .post-date {
        padding: 0 30px;
        color: #6E6E6E;
    }

    .post-author {
        color: #6E6E6E;
    }

    .post-content {
        margin-bottom: 40px;
    }

    .post-category-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .post-category {
        padding: 4px 12px;
        border: 2px solid #0161FD;
        border-radius: 40px;
        width: fit-content;
        color: #0161FD;
        text-align: center;
    }
    
/*-------------*/
/*-----Baza wiedzy-----*/
.category-filter {
        background: var(--bg-primary);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        margin-top: 40px;
    }

    .filter-buttons {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
    }

    .filter-buttons .btn {
        border: 2px solid #2E2356;
        color: #2E2356;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        background-color: white;
    }

    .filter-buttons .btn:hover {
        background: #2E2356;
        color: white;
        transform: translateY(-2px);
    }

    .filter-buttons .btn.active {
        background: #2E2356;
        color: white;
    }

    .article {
        width: 280px;
        height: fit-content;
        max-width: 280px;
        min-height: 400px;
        overflow: hidden;
        /* gap: 20px */;
        border-radius: 20px;
        box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.25);
        background-color: var(--bg-primary);
    }

    .article img {
        width: 280px;
        height: 200px;
        max-width: 280px;
        max-height: 200px;
        border-radius: 20px;
        object-fit: cover;
        object-position: center;
    }

    .article-info-section {
        margin: 10px 20px;
        display: flex;
        justify-content: space-between;
    }

    .article-title-section {
        margin: 10px 20px;
        word-wrap: break-word;
    }

    .article-title-section a {
        text-decoration: none !important;
        color: var(--text-primary);
    }

    @media (max-width: 768px) {
        .filter-buttons .btn {
            display: inline;
            width: 100%;
            text-align: left;
            margin-bottom: 8px;
        }
    }

    .post-category-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .post-category {
        padding: 2px 6px;
        border: 2px solid #0161FD;
        border-radius: 40px;
        width: fit-content;
        color: #0161FD;
        text-align: center;
        font-size: 0.6rem;
    }

    .post-date {
        padding: 0 20px;
        color: #6E6E6E;
        font-size: 0.6rem;
    }

    .single-page {
        margin-bottom: 40px;
    }
    /*-------------*/
