@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Math&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("./assets/fonts/colfax_regular.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_regular.ttf") format("truetype");
    font-weight: normal; /* Or 400 */
    font-style: normal;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("assets/fonts/colfax_italic.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_italic.ttf") format("truetype");
    font-weight: normal; /* Or 400 */
    font-style: italic;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "Colfax"; /* Choose a name you'll use in CSS */
    src:
      url("./assets/fonts/colfax_bold.otf") format("otf"), /* Modern browsers */
      url("./assets/fonts/colfax_bold.ttf") format("truetype");
    font-weight: medium; /* Or 400 */
    font-style: normal;
    font-display: swap; /* Recommended: Shows fallback font while loading */
}
@font-face {
    font-family: "General Sans Variable"; /* Choose your CSS name */
    src:
      url("assets/fonts/GeneralSans-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap; /* Highly recommended */
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .header-mobile {
    display: none;
}
  
  body {
    font-family: "Montserrat", "Colfax",  "General Sans Variable", "Segoe UI", "Helvetica Neue";
    line-height: 1.6;
    color: #333;
    /* Dodajemy padding-top równy wysokości navbara, aby treść nie chowała się pod nim */
    padding-top: 80px; /* Dostosuj tę wartość do faktycznej wysokości navbara */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: #f8f9fa; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    z-index: 1000;
    height: 80px; /* Ustaw stałą wysokość dla navbara */
    display: flex;
    align-items: center; /* Wyśrodkowanie elementów w pionie */
    transition: all 150ms ease-in-out;
  }

  .navbar.scrolled {
    background-color: #F8F8F7; /* Or 'white' or your desired near-white */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: add shadow when scrolled */
  }
  
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .logo {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #333;
    text-align: center;
  }
  
  .logo-highlight {
    color: #00a9e0; /* Jasnoniebieski kolor z logo */
    font-weight: 600;
  }
  
  .navbar nav ul li {
    margin-left: 25px;
  }
  
  .navbar nav ul:not(.dropdown) {
    list-style: none;
    display: flex;
  }
  
  .navbar nav ul li:not(.dropdown li) {
    margin-left: 25px;
  }

    .no-deco {
    text-decoration: none;
  }

  .link-dropdown-content {
    display: none;
  }

  .link-dropdown-content ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    max-width: 100%;
    white-space: normal;       /* allow wrapping */
    word-wrap: break-word;
  }
  
  .navbar nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  
  .navbar nav ul li a:hover {
    color: #007bff;
  }

  /* Dropdown styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background-color: #f0f0f0;
  min-width: 150px;
  display: none;    /* hidden by default */
  border-radius: 12px;
  padding: 10px 5px;
}

.dropdown-link {
  display: block;
  padding: 10px 15px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.dropdown-link:hover {
  color: #555;
}

.faq-toggle {
  background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #212529;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500; /* Slightly bolder */
    margin-bottom: 0.5rem; /* Space before content opens */
    transition: color 0.2s ease-in-out;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown {
  display: block;
}



.home-section1-links {
    display: flex;
    flex-direction: row;
}

a {
    color: rgb(79, 79, 120);
}

li {
    line-height: 1.4;
}

.home-section1-links a {
    font-size: 16px;
    font-weight: 400;
    margin-right: 28px;
    text-decoration: none;
    color: #dadada;
}

.home-section1-links a :last-child{
    margin-right: 0px;
}

.politykaPrywatnosci, article {
    width: 100vw;
    padding: 50px 80px;
    box-sizing: border-box;
    background-color: rgb(251, 248, 248);
}

.home-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px;
    background: rgb(22, 39, 91);
}

.home-footer-icons {
    display: flex;
    flex-direction: row;
    margin-bottom: 45px;
}

.home-footer-icons:nth-child(2){
    margin-bottom: 0px;
}

.home-footer-icon-wrapper {
    height: 46px;
    width: 46px;
    border-radius: 100%;
    padding: 8px;
    box-sizing: border-box;
    background-color: white;
    margin-right: 30px;
}

.home-footer-icons a {
    color: #cfcfcfd5;
    margin-right: 20px;
}

.home-footer2 {
    width: 100vw;
    height: 50px;
    background: rgb(12, 24, 60);
}

@media (max-width: 900px) {
    .politykaPrywatnosci, article {
      padding: 50px 20px;
    }

    .header-mobile {
        display: flex;
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 12;
        /* flex-flow: row wrap;
        justify-content: space-around;
        
        padding-top: 16px;
        padding-left: 8px;
        padding-right: 8px; */
        transition: all 1000ms ease-in-out;
        -webkit-transition: all 1000ms ease-in-out;
        background: rgb(0, 0, 0);
      }

      .header-mobile .logo {
        position: absolute;
        top: 15px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%)
    }
    
      nav {
        background-color: transparent;
        height: 65px;
      }
      
      
      #menuToggle {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        z-index: 10;
        -webkit-user-select: none;
        user-select: none;
      }
      
      #menuToggle input
      {
        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 11;
      }
      
      #menuToggle span:not(.arrow)
      {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: rgb(0, 0, 0);
        border-radius: 3px;
        z-index: 10;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
      }
      
      #menuToggle span:first-child
      {
        transform-origin: 0% 0%;
      }
      
      #menuToggle span:nth-last-child(2)
      {
        transform-origin: 0% 100%;
      }
      
      #menuToggle input:checked ~ span
      {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #dfe1e7;
      }
      #menuToggle input:checked ~ span:nth-last-child(3)
      {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
      }
      
      #menuToggle input:checked ~ span:nth-last-child(2)
      {
        transform: rotate(-45deg) translate(0, -1px);
      }
      
      #menu
      {
        position: absolute;
        width: 70vw;
        height: 100vh;
        box-shadow: 0 0 5px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 125px;
        background: rgb(15, 19, 31);
        -webkit-font-smoothing: antialiased;
        transform-origin: -100% -100%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        border-radius: 32px;
      }
      
      #menu li:not(.link-dropdown-content ul li)
      {
        padding: 10px 0;
      }
      
      #menuToggle input:checked ~ ul
      {
        transform: none;
      }
    
      ul {
        padding: 0;
        list-style-type: none;
      }
    
      .header-mobile a {
        text-decoration: none;
        color: #cecece;
        opacity:1;
        font-size: 2em;
        font-weight: 400;
        transition: 200ms;
      }
      .header-mobile a:hover {
        opacity:0.5;
      }

      .home-section1-navbar {
        display: none;
      }
      .home-footer-icons:nth-child(2) {
        display: flex;
        flex-direction: column;
        margin-bottom: 0px;
      }
      .home-footer-icons a {
          text-align: center;
          margin-right: 0px;
          margin-bottom: 20px;
      }
      .home-footer-icon-wrapper:nth-child(5) {
        margin-right: 0px;
      }
}

@media (max-width: 992px) {
  .header-mobile {
      display: flex;
      width: 100vw;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 12;
      /* flex-flow: row wrap;
      justify-content: space-around;
      
      padding-top: 16px;
      padding-left: 8px;
      padding-right: 8px; */
      transition: all 1000ms ease-in-out;
      -webkit-transition: all 1000ms ease-in-out;
      background-color: white;
    }

    .header-mobile img {
      position: absolute;
      top: 15px;
      left: 50%;
      -webkit-transform: translateX(-50%);
      transform: translateX(-50%)
  }
  
    nav {
      background-color: transparent;
      height: 65px;
    }
    
    
    #menuToggle {
      display: flex;
      flex-direction: column;
      position: relative;
      top: 25px;
      left: 25px;
      z-index: 10;
      -webkit-user-select: none;
      user-select: none;
    }
    
    #menuToggle input
    {
      display: flex;
      width: 40px;
      height: 32px;
      position: absolute;
      cursor: pointer;
      opacity: 0;
      z-index: 11;
    }
    
    #menuToggle span
    {
      display: flex;
      width: 29px;
      height: 2px;
      margin-bottom: 5px;
      position: relative;
      background: rgb(0, 0, 0);
      border-radius: 3px;
      z-index: 10;
      transform-origin: 5px 0px;
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  opacity 0.55s ease;
    }
    
    #menuToggle span:first-child
    {
      transform-origin: 0% 0%;
    }
    
    #menuToggle span:nth-last-child(2)
    {
      transform-origin: 0% 100%;
    }
    
    #menuToggle input:checked ~ span
    {
      opacity: 1;
      transform: rotate(45deg) translate(-3px, -1px);
      background: #2c2c2e;
    }
    #menuToggle input:checked ~ span:nth-last-child(3)
    {
      opacity: 0;
      transform: rotate(0deg) scale(0.2, 0.2);
    }
    
    #menuToggle input:checked ~ span:nth-last-child(2)
    {
      transform: rotate(-45deg) translate(0, -1px);
    }
    
    #menu
    {
      position: absolute;
      width: 70vw;
      height: 100vh;
      box-shadow: 0 0 5px #85888C;
      margin: -50px 0 0 -50px;
      padding: 50px;
      padding-top: 125px;
      background: rgb(165, 182, 232);
      -webkit-font-smoothing: antialiased;
      transform-origin: -100% -100%;
      transform: translate(-100%, 0);
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
      border-radius: 32px;
      overflow-y: auto;    /* vertical scroll when content overflows */
        overflow-x: hidden;
    }
    
    #menu li
    {
      padding: 10px 0;
      transition-delay: 2s;
    }
    
    #menuToggle input:checked ~ ul
    {
      transform: none;
    }
  
    ul {
      padding: 0;
      list-style-type: none;
    }
  
    .header-mobile a {
      text-decoration: none;
      color: #3a3a3a;
      opacity:1;
      font-size: 2em;
      font-weight: 400;
      transition: 200ms;
    }
    .header-mobile a:hover {
      opacity:0.5;
    }

    .navbar {
      display: none;
    }
}


footer {
  background-color: #2c3e50; /* Dark, elegant background */
  color: #ecf0f1; /* Light text color for contrast */
  padding: 40px 0 20px 0; /* Generous padding */
}

.footer-content {
  max-width: 1100px; /* Max width for content */
  margin: 0 auto; /* Center content */
  padding: 0 20px; /* Padding on sides */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 20px; /* Spacing between items when they wrap */
}

/* Logo Styling */
.footer-logo a {
  font-size: 1.8em;
  font-weight: bold;
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-logo a:hover {
  color: #3498db; /* Accent color on hover */
}

/* Navigation Links Styling */
.footer-nav a {
  color: #bdc3c7; /* Slightly muted link color */
  text-decoration: none;
  margin: 0 15px; /* Spacing between links */
  font-size: 1em;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  text-decoration: underline;
  text-decoration-color: transparent; /* Hide underline initially */
}

.footer-nav a:hover {
  color: #ecf0f1; /* Brighter on hover */
  text-decoration-color: #ecf0f1; /* Show underline on hover */
}

/* Social Icon Link Styling */
.footer-social a {
  color: #bdc3c7; /* Initial color for the icon */
  text-decoration: none;
  display: inline-block; /* For proper alignment and sizing */
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ecf0f1; /* Brighter icon color on hover */
}

.footer-social a svg {
  width: 24px;
  height: 24px;
  fill: currentColor; /* SVG inherits color from parent 'a' tag */
  vertical-align: middle; /* Aligns icon nicely */
}

/* Footer Bottom Bar */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #34495e; /* Subtle separator line */
  font-size: 0.85em;
  color: #95a5a6; /* Muted text color for copyright */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items */
    text-align: center;
  }

  .footer-nav {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Stack nav links vertically */
    gap: 10px; /* Space between stacked nav links */
    height: auto;
  }

  .footer-nav a {
    margin: 5px 0; /* Adjust margin for vertical layout */
  }

  .footer-logo {
    margin-bottom: 10px;
  }
}