* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    color: #111;
    overflow-x: hidden;
  }
  ::selection {
    background: #ffdd57; 
    color: black; 
  }
  .main {
    background: url('img/backgroundcontact.JPEG') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-attachment: fixed;
  }
  
  @media (max-width: 480px) {
    .main {
      background: url('img/backgroundcontactPhone.JPEG') no-repeat center center;
    }
  }
  
  
  @media (max-width: 1024px) {
    .main {
      background-attachment: scroll; /* Zamiast fixed, scroll na urządzenia mobilne */
      background-position: center center !important; /* Dopasowanie tła */
    }
  }
  
  @media (max-width: 768px) {
    .main {
      background-position: center center !important;
      background-size: cover;
    }
  }
  
  
  .main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
  }
  
  .navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .profile-img {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
  }
  
  .main-menu_icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    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;
    border-bottom-left-radius: 2dvh;
    border-bottom-right-radius: 2dvh;
  }
  
  .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;
  }
  
  .second-child {
    color: #ffcc00 !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 {
    font-size: 0.8rem;
    color: rgb(12, 186, 255) !important;
  }
  
  .main-contact__hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 10vh 2%;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  .main-contact__hero h1,
  .main-contact__hero p {
    margin-top: 1vh;
    position: relative;
    z-index: 1;
    text-shadow: 0px 5px 10px rgb(0, 0, 0);
  }
  
  .main-contact__hero h1 {
    font-size: 4vh;
    margin-bottom: 0.5vh;
    margin-top: 7vh;
    font-weight: 650;
  }
  
  .main-contact__hero p {
    font-size: 2.5vh;
    font-style: italic;
    font-weight: 400;
  }
  
  .main-contact__content {
    position: relative;
    z-index: 2;
    padding: 4vh 2%;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .main-contact__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2vh 2%;
    justify-content: center;
    margin-bottom: 4vh;
  }
  
  .main-contact__card {
    background: #fff;
    opacity: 0.95;
    border-radius: 1rem;
    flex: 1 1 200px;
    max-width: 240px;
    padding: 2vh 2%;
    text-align: center;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .main-contact__icon {
    font-size: 4vh;
    color: #14005a;
    margin-bottom: 1vh;
  }
  
  .main-contact__form {
    background: #fff;
    opacity: 0.95;
    padding: 3vh 2%;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.1);
    margin-bottom: 4vh;
  }
  
  .main-contact__forml {
    position: relative;
    margin-bottom: 3vh;
  }
  
  .main-contact__form input,
  .main-contact__form textarea {
    width: 100%;
    padding: 2vh 2% 1vh;
    border: 0.2rem solid #ddd;
    border-radius: 0.75rem;
    background: transparent;
    font-size: 2vh;
    transition: border-color 0.3s ease;
  }
  
  .main-contact__form label {
    position: absolute;
    top: 1.5vh;
    left: 1.5vh;
    font-size: 2vh;
    color: #555555;
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease;
  }
  
  .main-contact__form input:focus,
  .main-contact__form textarea:focus {
    outline: none;
    border-color: #007BFF;
  }
  
  .main-contact__form input:focus + label,
  .main-contact__form input:not(:placeholder-shown) + label,
  .main-contact__form textarea:focus + label,
  .main-contact__form textarea:not(:placeholder-shown) + label {
    transform: translateY(-4vh);
    font-size: 1.5vh;
    color: #007BFF;
  }
  
  .main-contact__button {
    display: block;
    width: 100%;
    padding: 2vh 0;
    border: none;
    border-radius: 0.75rem;
    background: #007BFF;
    color: #fff;
    font-size: 2vh;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .main-contact__button:hover {
    background: #040020;
    transform: translateY(-1vh);
  }
  
  .main-contact__status {
    margin-top: 2vh;
    font-size: 1.8vh;
    text-align: center;
  }
  
  .main-contact__map iframe {
    width: 100%;
    height: 50vh;
    border: 0;
    border-radius: 1.2rem;
  }
  .main-contact__card a {
    text-decoration: none;
    color: black;
  }
  
  .main-contact__card--text {
    position: relative;
    display: inline-block; /* Umożliwia dopasowanie szerokości do tekstu */
  }
  
  /* Linia pod tekstem */
  .main-contact__card--text::after {
    content: "";
    position: absolute;
    height: 0.07rem !important;
    background-color: black;
    left: 0;
    bottom: 0;
    width: 0; /* Początkowa szerokość na 0 */
    transform-origin: bottom left;
    animation: underlineGrow 2.5s ease forwards;
    animation-delay: 1s;
  }
  
  /* Kluczowa animacja */
  @keyframes underlineGrow {
    0% {
      width: 0; /* Początkowa szerokość na 0 */
    }
    50% {
      width: 100%; /* Linia rośnie do pełnej szerokości tekstu */
    }
    100% {
      width: 0; /* Linia rośnie do pełnej szerokości tekstu */
    }
  }
  
  
  @media (max-width: 768px) {
  
  }
  
  
  @media (max-width: 768px) {
    .main {
      background-attachment: scroll;
    }
    .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;
    }
  
    .main-contact__hero {
      padding: 10vh 5%;
    }
  
    .main-contact__hero h1 {
      font-size: 4vh;
      margin-top: 6vh;
      margin-bottom: 2vh;
    }
  
    .main-contact__hero p {
      font-size: 2.5vh;
    }
  
    .main-contact__cards {
      gap: 3vh 3%;
    }
  
    .main-contact__card {
      max-width: 90%;
      padding: 3vh 5%;
      font-size: 2vh;
    }
  
    .main-contact__icon {
      font-size: 5vh;
      margin-bottom: 2vh;
    }
  
    .main-contact__form {
      padding: 5vh 5%;
    }
  
    .main-contact__form input,
    .main-contact__form textarea {
      padding: 2.5vh 3%;
      font-size: 2.2vh;
    }
  
    .main-contact__form label {
      font-size: 2vh;
    }
  
    .main-contact__form input:focus + label,
    .main-contact__form input:not(:placeholder-shown) + label,
    .main-contact__form textarea:focus + label,
    .main-contact__form textarea:not(:placeholder-shown) + label {
      transform: translateY(-3.5vh);
      font-size: 1.7vh;
    }
  
    .main-contact__button {
      font-size: 2.2vh;
      padding: 2.5vh 0;
    }
  
    .main-contact__status {
      font-size: 2vh;
    }
  
    .main-contact__map iframe {
      height: 40vh;
    }
  }
  
  @media (max-width: 768px) {
    .main {
      background-attachment: scroll !important;
    }
  }
  /* Strzałki na środku wysokości galerii */
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    z-index: 10;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
  }
  
  .nav:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #007BFF;
  }
  
  .nav:active {
    background: rgba(255, 255, 255, 0.7);
  }
  
  .nav.left {
    left: 1rem;
  }
  
  .nav.right {
    right: 1rem;
  }
  
  /* Mniejsze strzałki na mobilkach */
  @media (max-width: 768px) {
    .nav {
      font-size: 2.2rem;
      padding: 0.3rem 0.7rem;
    }
  }
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    z-index: 10;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
  }
  
  .nav:hover {
    background: rgba(255,255,255,0.5);
    color: #007BFF;
  }
  
  .nav:active {
    background: rgba(255,255,255,0.7);
  }
  
  .nav.left {
    left: 1rem;
  }
  
  .nav.right {
    right: 1rem;
  }
  
  @media (max-width: 768px) {
    .nav {
      font-size: 2rem;
      padding: 0.3rem 0.7rem;
    }
  }
  @media (min-width: 1025px) {
    .main-contact__form {
      max-width: 70%;
      margin-left: auto;
      margin-right: auto;
    }
  }
  #hrefNav {
    color: white;
    text-decoration: none;
    position: absolute;
    margin-left: 5em;
    text-shadow: 2px 1px 10px white;
  } 






  .slider {
  width: 90%;
  max-width: 700px;
  aspect-ratio: 3 / 2;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  background: #000;
}

.slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 10px;
  box-sizing: border-box;
}

.slider-nav button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.slider-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .slider {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .slider {
    aspect-ratio: 1 / 1;
  }

  .slider-nav button {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}
