/* ===== Reset / Podstawy ===== */
html, body {
  background-color: #efefef;
  font-family: Play, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  scroll-behavior: smooth;
}

/* ===== Layout ===== */
main {
  max-width: 1530px;
  margin: 110px auto 40px;
  background: #ffffff;
  padding: 20px 20px;
  border-radius: 7px;
}
@media (max-width: 768px) {
  main {
    margin: 110px 20px 30px 20px; /* góra 50px, boki 20px, dół 40px */
    padding: 20px;
    border-radius: 7px;
  }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.navbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 45px;
  display: block;
}

/* ===== Menu desktop ===== */
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu a {
  font-size: 18px;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  color: #00508c;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #e30613;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 10001;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: #00508c;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger:focus-visible {
  outline: 2px solid #00508c;
}

/* Animacja x */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Menu mobilne ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 10000;
    pointer-events: none;
  }
  .nav-menu.active {
    right: 0;
    pointer-events: auto;
  }
  .nav-menu a {
    font-size: 22px;
    margin: 15px 0;
  }
}

/* ===== Scroll top ===== */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 10%;
  background: #00508c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  z-index: 9999;
  animation: fadeInOut linear both;
  animation-timeline: scroll();
  animation-range: 0vh 70vh;
}
.scroll-top:hover {
  background: #003a66;
}
.scroll-top::before {
  content: "";
  width: 13px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg);
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
@media (max-width: 991px) {
  .scroll-top {
    display: none;
  }
}

/* ===== Scrollbar ===== */
body::-webkit-scrollbar {
  width: 16px;
  }
body::-webkit-scrollbar-track {
  background: #fff;
  }
body::-webkit-scrollbar-thumb {
  background-color: #00508c;
  border-radius: 20px;
  border: 3px solid #fff;
  }