:root {
  --primary-color: #2563eb;
  --text-dark: #1f2937;
  --bg-white: #ffffff;
}


.menu {
    padding: 60px 20px;
    background: #f8f8f8; /* delikatne tło */
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
  }
  
  .menu h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.menu h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #e67e22; 
    display: block;
    margin: 15px auto 0;
}
  
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-gap: 20px;
    grid-auto-flow: dense; /* klucz do masonry efektu */
  }
  
  .photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .photo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
  }
  
  .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  .photo-card:hover img {
    transform: scale(1.1);
  }
  
  .wide {
    grid-column: span 2;
  }
  
  .tall {
    grid-row: span 2;
  }
  
  .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 30px 20px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .photo-card:hover .overlay {
    opacity: 1;
  }
  


@keyframes show {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


.btn-secondary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #1d4ed8;
}


#contactModal {
  /* 1. Reset i Pozycjonowanie */
  border: none;
  border-radius: 16px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* 2. KLUCZ DO CENTROWANIA */
  position: fixed;      /* Stała pozycja względem ekranu */
  top: 50%;             /* 50% od góry */
  left: 50%;            /* 50% od lewej */
  margin: 0;            /* Usuwamy domyślne marginesy przeglądarki */
  transform: translate(-50%, -50%); /* Przesunięcie o połowę własnej szerokości/wysokości wstecz */
  
  overflow: hidden;
}




@keyframes showCenter {
  from {
    /* Start: na środku, ale niżej i przeźroczysty */
    transform: translate(-50%, -45%) scale(0.95);
    opacity: 0;
  }
  to {
    /* Koniec: idealny środek */
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

  @media (max-width: 768px) {
    .wide, .tall {
      grid-column: span 1;
      grid-row: span 1;
    }
  }

@media (max-width: 768px) {
    /* Zmniejszamy wysokość całego paska */
    header {
        padding: 5px 0 !important;
        min-height: 60px !important;
    }

    /* Zmniejszamy flagę (logo) - to ona najczęściej rozpycha header */
    .logo img {
        height: 45px !important; /* Wymuszamy małą wysokość */
        width: auto !important;
        margin: 5px 0 !important;
    }

    /* Ustawiamy elementy w jednej linii */
    .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 50px !important;
    }

    /* Hamburger musi być wyśrodkowany do flagi */
    .hamburger {
        margin-top: 0 !important;
        display: flex !important;
    }
}