* { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    background: #111;
    color: #f2f2f2;
  }

  /* ===== HEADER — na starcie przezroczysty, po zjechaniu w dół robi się szary ===== */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    display: flex;
    justify-content: center;
    padding: 26px 20px;
    background: transparent;
    transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  }
  .site-header.scrolled {
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(6px);
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
  }
  .nav-list > li {
    position: relative;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
    cursor: pointer;
  }
  .nav-list .arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s ease;
  }
  .has-dropdown:hover .arrow { transform: rotate(180deg); }

  /* Rozwijane menu Portfolio -> Podwodne / Nadwodne */
  .dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    /* niewidzialny "łącznik" -- sam padding, bez tła/obramowania -- dzięki niemu
       kursor nie gubi hovera, zjeżdżając w dół do rozwijanego menu */
    padding-top: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .has-dropdown:hover .dropdown-wrap {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown {
    list-style: none;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 150px;
    padding: 10px 0; /* taki sam odstęp od góry i od dołu -- teraz symetrycznie */
  }
  .dropdown li {
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: none;
    white-space: nowrap;
  }
  .dropdown li:hover { background: rgba(255,255,255,0.08); }

  /* ===== SEKCJA POWITALNA (HERO) ===== */
  .hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    opacity: 1;
    transition: opacity 0.6s ease;
  }
  .hero-overlay {
    position: relative;
    text-align: center;
    z-index: 1;
  }
  .hero-overlay h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 3px;
  }
  .hero-overlay p {
    margin-top: 12px;
    color: #ddd;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #ccc;
    animation: bounce 2s infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
  }

  /* ===== SEKCJA KATEGORII — dwie duże "kafle" pod hero ===== */
  .categories {
    --cat-gap: clamp(24px, 4vw, 64px);
    height: 50vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* dziala dla dowolnej liczby kategorii */
    align-content: center;
    justify-content: center;
    gap: var(--cat-gap);
    padding: 0 var(--cat-gap);
    background: #111;
  }
  .category-card {
    position: relative;
    height: clamp(220px, 32vh, 380px);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.25s ease;
  }
  .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    transition: background 0.25s ease;
  }
  .category-card:hover::before { background: rgba(0,0,0,0.2); }
  .category-card.active::before { background: rgba(0,0,0,0.15); border: 2px solid #fff; }
  .category-card span {
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
  }
  @media (max-width: 700px) {
    .categories {
      grid-template-columns: 1fr;
      height: auto;
      padding: 32px 20px;
    }
    .category-card { height: 32vh; }
    .nav-list { gap: 22px; }
    .miejsca-grid { grid-template-columns: 1fr; }
  }

  /* ===== SEKCJA Z GALERIĄ WYBRANEJ KATEGORII ===== */
  .gallery-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
  }
  .gallery-hint {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
  }
  .gallery-title {
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: #ccc;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }
  .miejsca-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .gallery img:hover { transform: scale(1.02); opacity: 0.9; }

  /* ===== STOPKA (FOOTER) ===== */
  .site-footer {
    border-top: 2px solid #333; /* ta sama cienka szara linia co reszta strony */
    padding: 60px 20px 30px;
  }
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }
  .footer-contact h3 {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 14px;
  }
  .footer-contact p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.9;
  }
  .footer-social {
    display: flex;
    gap: 14px;
  }
  .social-icon {
    width: 42px;
    height: 42px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .social-icon svg { width: 18px; height: 18px; fill: currentColor; }
  .social-icon:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
  }
  .footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
  }

  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 30px;
  }
  .lightbox.active { display: flex; }
  .lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
  }
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 10px 16px;
    user-select: none;
    opacity: 0.75;
    transition: opacity 0.15s ease;
  }
  .lightbox-arrow:hover { opacity: 1; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  @media (max-width: 700px) {
    .lightbox-arrow { font-size: 1.6rem; padding: 8px 10px; }
  }


  /* ===== KAFLE MIEJSC (PODKATEGORII) -- pojawiają się po kliknięciu w kategorię ===== */
  .place-card {
    position: relative;
    height: 220px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease;
  }
  .place-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    transition: background 0.2s ease;
  }
  .place-card:hover::before { background: rgba(0,0,0,0.18); }
  .place-card:hover { transform: scale(1.02); }
  .place-name, .place-card-date {
    position: relative;
    z-index: 1;
  }
  .place-name {
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
  }
  .place-card-date {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ddd;
    font-weight: 300;
  }

  /* ===== NAGŁÓWEK PODSTRONY Z GALERIĄ JEDNEGO MIEJSCA ===== */
  .place-page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 160px 20px 20px;
    text-align: center;
  }
  .back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
  }
  .back-link:hover { color: #fff; }
  .place-page-header h1 {
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.8rem;
  }
  .place-subtitle {
    display: block;
    margin-top: 10px;
    color: #888;
    font-size: 0.9rem;
  }
  .place-gallery-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
  }

  /* linki w rozwijanym menu na podstronach mają wypełniać cały klikalny obszar */
  .dropdown li a {
    display: block;
    color: inherit;
    text-decoration: none;
  }
