* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.home-page {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(166, 166, 166, 1), rgba(166, 166, 166, 1));
  position: relative;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  animation: slideFadeIn 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  transform: translateY(-30px);
}
@keyframes slideFadeIn{
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav .logo {
  width: 150px;
}

nav ul li {
  list-style: none;
  display: inline-block;
  margin-left: 40px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  position: relative;
  transition: transform 0.3s ease;
  display: inline-block;
}
nav ul li a:hover {
    transform: scale(1.1);
}

.content {
  text-align: center;
  z-index: 3;
}

.content h1 {
  font-size: 120px;
  color: #fff;
  font-weight: 600;
  transition: 0.5s;
}
.content h1:hover{
    -webkit-text-stroke: 0.6px #fff;
    color: transparent;
}
.content a {
  text-decoration: none;
  display: inline-block;
  color: #fff;
  font-size: 24px;
  border: 2px solid #fff;
  padding: 14px 70px;
  border-radius: 50px;
  margin-top: 20px;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}
.content a:hover{
    transform: scale(1.05);
}
.background-vid {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
}

@media (min-aspect-ratio: 16/9) {
  .background-vid {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .background-vid {
    width: auto;
    height: 100%;
  }
}
.contact-page nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 6px 8%;
  border-bottom: 4px solid #003366;
  opacity: 1;
  transform: none;
  animation: none;
}

.contact-page nav ul li a {
  color: #222;
}

.contact-page nav ul li a:hover {
  transform: scale(1.1);
  color: #0077cc;
}

.contact-page nav ul li a.active {
  font-weight: bold;
  border-bottom: 2px solid #0077cc;
}

/* === Contact === */
.contact-section {
  display: flex;
  gap: 40px;
  padding: 80px 5%;
  width: 100vw;
  max-width: 100vw;
  margin: 100px 0 60px 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease-in-out forwards;
  opacity: 0;
  box-sizing: border-box;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contact-info {
  flex: 1;
  max-width: 50vw;
  font-size: 20px;
  font-weight: 600;
  color: #222;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Address on top */
.contact-info .address {
  margin-bottom: 32px;
  font-weight: 600;
  color: #333;
  font-size: 36px;
}

/* Buttons container */
.contact-buttons {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  padding: 24px 48px;
  background-color: #003366;
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: inline-block;
}
.contact-buttons .btn.outline {
  background-color: white;
  color: #003366;
  border: 2px solid #003366;
  transition: all 0.3s ease;
}

.contact-buttons .btn.outline:hover {
  background-color: #003366;
  color: white;
}

.contact-buttons .btn:hover {
  background-color: #002244;
}

.contact-details p {
  margin: 18px 0;
  font-size: 32px;
}

.contact-details a {
  color: #003366;
  font-weight: 600;
  font-size: 32px;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.map-container {
  flex: 1;
  height:auto;
  min-height: 700px;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 4px solid #003366;
}

.map-container iframe {
  width: 100%;
  border-color:#002244;
  height: 100%;
  border: 0;
  display: block;
}
.address a{
  color:#003366;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease, color 0.3s ease;
  display: inline-block;
}
.address a:hover{
  transform: scale(1.04);
  color:#005fa3;
}

footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  text-align: center;
  padding: 15px 5%;
  font-size: 14px;
  color: #444;
  border-top: 1px solid #ddd;
  position: relative;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
}

footer a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #005fa3;
}

.kontakt-hero {
  background-image: url('images/kancelaria-backg.jpg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  padding: 0 8%;
  color: white;
}

.kontakt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.kontakt-hero h1 {
  font-size: 56px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  margin: 0;
}

.image-background{
  pointer-events: none;
}

.dropdown-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
}

.dropdown {
  width: 100%;
  border: 2px solid #002244;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.dropdown-button {
  width: 100%;
  padding: 28px 32px;
  background: #f0f0f0;
  color: #003366;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.dropdown-button:hover {
  background-color: #e6f0ff;
}

.dropdown-button::after {
  content: "";
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: solid #003366;
  border-width: 0 3px 3px 0;
  padding: 8px;
  transition: transform 0.3s ease;
}

.dropdown-button:hover::after {
  transform: translateY(-50%) rotate(135deg);
}

.dropdown-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.35s ease;
  padding: 0 28px; /* horizontal padding always */
  background: #ffffff;
  font-size: 20px;
  color: #003366;
  line-height: 1.8;
  border-top: none;
}

.dropdown-content.open {
  opacity: 1;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* === Hamburger Menu Icon === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 0;
  gap: 5px;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.contact-page .hamburger .bar {
  background-color: #222;
}

.home-page .hamburger .bar {
  background-color: #fff;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.more-text {
  font-size: 20px;
  color: grey;
  margin-top: 4px;
  display: inline-block;
  text-decoration: none;
}

.more-text:hover {
  text-decoration: underline;
  color: #555;
}

/* Main h1 changes size */
@media (max-width: 2560px) {
  .content h1 {
    font-size: 112px !important;
	}
}
@media (max-width: 1920px) {
  .content h1 {
    font-size: 98px !important;
  }
}
@media (max-width: 1850px) {
	.content h1 {
		font-size:90px !important;
	}
}
	
@media (max-width: 1750px) {
	.content h1 {
		font-size:86px !important;
	}
}

@media (max-width: 1700px) {
	.content h1 {
		font-size:84px !important;
	}
}

@media (max-width: 1600px) {
	.content h1 {
		font-size:76px !important;
	}
}

@media (max-width: 1440px) {
	.content h1 {
		font-size:68px !important;
	}
}

@media (max-width: 1366px) {
  .content h1 {
    font-size: 60px !important;
  }
}

@media (max-width: 1200px) {
  .content h1 {
    font-size: 45px !important;
  }
}
/* Responsive: stack contact info and map on mobile */
@media (max-width: 900px) {
  .contact-section {
    flex-direction: column;
    padding: 50px 5%;
  }

  .contact-info {
    max-width: 100%;
    margin-bottom: 40px;
    flex: none;
  }

  .map-container {
    max-width: 100%;
    min-height: 300px;
  }

  .contact-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .image-background{
    display:none;
  }
}
/* === Responsive Navigation === */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    transform-origin: top;
    transform: scaleY(0);
  }

  nav ul.show {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
  }

  nav ul li {
    margin: 15px 0;
    font-size: 3rem;
    padding: 0.25rem 0;
    text-align: center;
    display: block;
  }
  .nav-links li a{
    font-size: 1.5rem !important;
  }
  .contact-info .address {
    font-size: 28px;
  }
}

 /* mobile smaller */
@media (max-width: 768px) {
  .content h1 {
    font-size: 36px;
    padding: 0 10px;
    line-height: 1.2;
  }

  .content a {
    font-size: 18px;
    padding: 12px 40px;
    border-radius: 30px;
  }

  .content {
    margin: 0 15px;
  }
}
/* === Smaller phones (<= 480px) === */
@media (max-width: 480px) {
	.contact-info .address {
    font-size: 22px;
    line-height: 1.4;
  }

  .contact-details p,
  .contact-details a {
    font-size: 18px;
  }

  .content h1 {
    font-size: 20px;
    padding: 0 8px;
    line-height: 1.1;
  }

  .content a {
    font-size: 18px;
    padding: 10px 28px;
    border-radius: 32px;
  }

  .contact-buttons .btn {
    font-size: 20px;
    padding: 16px 24px;
  }

  .contact-details p,
  .contact-details a {
    font-size: 20px;
  }

  .dropdown-button {
    font-size: 22px;
    padding: 20px 24px;
  }

  .dropdown-content {
    font-size: 18px;
  }
	.kontakt-hero {
    height: 140px !important;
    padding: 0 4% !important;
  }

  .kontakt-hero h1 {
    font-size: 36px !important;
  }
}
/* === Very small phones (<= 360px) === */
@media (max-width: 360px) {
  .content h1 {
    font-size: 28px;
  }

  .contact-buttons {
    gap: 12px;
  }

  .contact-buttons .btn {
    padding: 12px 18px;
    font-size: 16px;
  }

  .dropdown-button {
    font-size: 18px;
    padding: 16px 20px;
  }
}
@media (max-width: 768px) {
  .kontakt-hero {
    height: 200px;
    padding: 0 5%;
  }

  .kontakt-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .kontakt-hero {
    height: 160px;
    padding: 0 4%;
  }

  .kontakt-hero h1 {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  .kontakt-hero {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
  }

  .contact-section {
    margin-top: 20px !important;
  }
}

@media (max-width: 480px) {
  .kontakt-hero {
    margin-bottom: 0 !important;
    padding-bottom: 16px !important;
  }

  .contact-section {
    margin-top: 16px !important;
  }
}
@media (max-width: 768px) {
  nav ul li a {
    font-size: 18px !important;
  }

  nav ul li {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  nav ul li a {
    font-size: 16px !important;
  }

  nav ul li {
    font-size: 16px;
  }
}
 /* Hamburger optymalization mobile */
@media (max-width: 768px) {
  .home-page {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
  }

  nav {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100%;
  }
	.content{
		margin-top: 80px;
	}
	
	.background-vid {
    position: fixed !important;
    top: 0;
    left: -50px;
    object-fit: cover; /* jeśli to video tag */
    z-index: 0;
  }
}
@media (max-width: 768px) {
  .home-page nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
	padding: 10px 20px !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
@media (max-width: 768px) {
  .content h1 {
    white-space: nowrap !important;       /* no wrapping */
    max-width: 100vw !important;          /* max width = viewport */
    overflow: hidden !important;
	font-size: clamp(14px, 4.2vw, 24px)!important;
	text-overflow: ellipsis !important;
  }

  .content {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}