body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    overflow: auto;
  }
  body {
    margin: 0;
    height: 100vh;
    background: url("img/aboutBG.JPEG");
    background-size: cover;
  }
  
  
  .main {
    background-color: transparent;
    color: white;
  }
  
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
  }
  
  .profile-img {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
  }
  
  .main-menu_icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    z-index: 10;
  }
  
  .main-menu_icon span {
    display: block;
    height: 0.2rem;
    background: white;
    border-radius: 1rem;
    transition: 0.4s;
  }
  
  .main-menu_icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .main-menu_icon.open span:nth-child(2) {
    opacity: 0;
  }
  .main-menu_icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    z-index: 2;
    border-bottom-left-radius: 2dvh;
    border-bottom-right-radius: 2dvh;
  }
  .navbar-menu.open {
    max-height: 50vh;
  }
  
  .menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  .menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0.3rem 0;
  }
  .menu-links a:hover {
    color: #ffcc00ab;
  }
  .third-child {
    color: #ffffff !important;
  }
  .second-child, .third-child, .fourth-child, .fifth-child {
    margin-top: 1.8vh !important;
  }
  .menu-links hr {
    width: 80%;
    border: none;
    border-top: 1px solid #ffffff4d;
    margin: 0.5rem auto;
  }
  .menu-links .copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
  }
  .copyright span {
    color: #007BFF !important;
  }
  
  /* PADDING OD GÓRY POD NAVBAR */
  main {
    padding-top: 80px;
  }
  
  .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    background: transparent;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .image-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 4/3;
    border-radius: 12px;
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.5),
      0 8px 15px rgba(0, 0, 0, 0.3);
  }
  
  .background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    animation: fadeInOverlay 1.7s ease forwards;
    animation-delay: 0.7s;
  }
  @keyframes fadeInOverlay {
    to {
      background-color: rgba(0, 0, 0, 0.6);
    }
  }
  
  .title {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90%;
    max-width: 90%;
    height: fit-content;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 0.8s ease forwards;
    animation-delay: 2.5s;
  }
  @keyframes fadeInText {
    to {
      opacity: 1;
    }
  }
  
  @media (max-width: 768px) {
    .navbar {
      padding: 0.8rem;
    }
  
    .profile-img {
      width: 2.5rem;
      height: 2.5rem;
    }
  
    .main-menu_icon {
      width: 1.6rem;
      height: 1.6rem;
      gap: 0.3rem;
    }
  
    .main-menu_icon span {
      height: 0.15rem;
    }
  
    .menu-links a {
      font-size: 1rem;
    }
  
    .menu-links .copyright,
    .copyright span {
      font-size: 0.7rem;
    }
  
    .title {
      font-size: 2rem;
    }
  
    main {
      padding-top: 70px;
    }
  
    .container {
      padding-top: 0.5rem;
      padding-bottom: 40px;
    }
  }
/* Cała sekcja: rozmiar i centrowanie */
.hero-section {
    height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
    font-size: 3rem;
  }
  
  /* Wszystkie dzieci w hero-section: animacja początkowa */
  .hero-section > * {
    opacity: 0;
    transform: translateY(5vh);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* Gdy element się pokaże na ekranie */
  .hero-section > *.visible {
    opacity: 1;
    transform: translateY(0);
  }   
  
  @media (min-width: 768px) {
    .container {
      flex-direction: row;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .image-box {
      width: 45%;
    }
  
    .title {
      font-size: 4rem;
    }
  }
  
  /* Styl tylko dla tabletów (pion i poziom) */
  @media (min-width: 600px) and (max-width: 1024px) {
    .title {
      font-size: 2rem;
    }
  }
  @media (min-width: 830px) and (max-width: 900px) {
    .title {
      font-size: 2rem;
    }
  }
  



  
/* Oś czasu responsywna */
*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    color: #888;
    background-color: #f5f5f5;
  }
  
  ol, ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  h1, h2 {
    font-weight: 600;
    margin: 0 0 0.5em 0;
  }
  
  /* Docelowe style timeline */
  
  .timeLiteCards-container {
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
  }
  
  .timeLiteCards-container::after {
    content: '';
    display: table;
    clear: both;
  }
  
  #timeLiteCards-timeline {
    position: relative;
    padding: 2em 0;
    margin: 2em auto;
  }
  
  #timeLiteCards-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
  }
  
  /* Na duże ekrany oś po środku */
  @media only screen and (min-width: 1170px) {
    #timeLiteCards-timeline {
      margin-top: 3em;
      margin-bottom: 3em;
    }
    #timeLiteCards-timeline::before {
      left: 50%;
      margin-left: -2px;
    }
  }
  
  .timeLiteCards-timeline-block {
    position: relative;
    margin: 2em 0;
    clear: both;
  }
  
  .timeLiteCards-timeline-block:first-child {
    margin-top: 0;
  }
  
  .timeLiteCards-timeline-block:last-child {
    margin-bottom: 0;
  }
  
  /* Większy odstęp na duże ekrany */
  @media only screen and (min-width: 1170px) {
    .timeLiteCards-timeline-block {
      margin: 4em 0;
    }
  }
  
  /* Kółko na osi czasu */
  .timeLiteCards-timeline-img {
    background: #56A2DB;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white,
                inset 0 2px 0 rgba(0, 0, 0, 0.08),
                0 3px 0 4px rgba(0, 0, 0, 0.05);
  }
  
  /* Na małe ekrany przesunięcie kółka */
  @media only screen and (max-width: 1170px) {
    .timeLiteCards-timeline-img {
      margin-left: 10px;
      margin-top: 10px;
    }
  }
  
  /* Na duże ekrany kółko na środku osi */
  @media only screen and (min-width: 1170px) {
    .timeLiteCards-timeline-img {
      width: 20px;
      height: 20px;
      left: 50%;
      margin-left: -10px;
      margin-top: 20px;
    }
  }
  
  /* Blok z treścią */
  .timeLiteCards-timeline-content {
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 1rem;
    padding: 1em;
    box-shadow: 0 2px 7px rgba(0,0,0,0.15);
    font-size: 0.7125rem;
    color: #303e49;
    line-height: 1.6;
  }
  
  /* Strzałka przy treści */
  .timeLiteCards-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid white;
  }
  
  /* Styl nagłówka i paragrafów */
  .timeLiteCards-timeline-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5em;
  }
  
  .timeLiteCards-timeline-content p {
    font-weight: 300;
    margin: 1em 0 0 0;
    font-size: 0.9rem;
  }
  
  /* Na duże ekrany pozycjonowanie treści naprzemienne */
  @media only screen and (min-width: 1170px) {
    .timeLiteCards-timeline-content {
      margin-left: 0;
      padding: 1.6em;
      width: 45%;
    }
    .timeLiteCards-timeline-content::before {
      top: 24px;
      left: 100%;
      border-color: transparent;
      border-left-color: white;
    }
    /* Parzyste elementy po prawej */
    .timeLiteCards-timeline-block:nth-child(even) .timeLiteCards-timeline-content {
      float: right;
    }
    .timeLiteCards-timeline-block:nth-child(even) .timeLiteCards-timeline-content::before {
      top: 24px;
      left: auto;
      right: 100%;
      border-color: transparent;
      border-right-color: white;
    }
  }
  
  /* Stopka */
  footer {
    color: #555;
    font-size: 12px;
    margin-top: 2em;
    text-align: center;
  }
  
  footer a {
    color: #008FEA;
    text-decoration: none;
  }
  .main-contact__form {
    width: 85%;
    margin: 0 auto 4vh auto;
    background: #ffffff;
    opacity: 1;
    padding: 5vh 4%;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
    color: black;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .main-contact__form h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #222;
  }
  
  .main-contact__form p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
  }
  #hrefNav {
    color: white;
    text-decoration: none;
    position: absolute;
    margin-left: 5em;
    text-shadow: 2px 1px 10px white;
  }
   .social-links {
    text-align: center;       /* wyśrodkowanie */
    margin-top: 20px;
  }
  .social-links a {
    color: black;              /* kolor ikon */
    text-decoration: none;     /* bez podkreśleń */
    margin: 0 10px;            /* odstęp między ikonami */
  }
  .social-links a:hover {
    color: gray;               /* opcjonalny efekt hover */
  }

.gallery-container {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto; /* wyśrodkowanie + dolny margines */
}

  .gallery-container img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 1s ease, transform 1s ease;
    opacity: 0;
  }

  .gallery-container img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }

  .gallery-container img.prev,
  .gallery-container img.next {
    opacity: 0.3;
    transform: scale(0.8);
    z-index: 1;
  }
