 * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
      color: #333;
      background-color: #faf7f9;
      line-height: 1.6;
    }

    html { scroll-behavior: smooth; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    .strona {
      margin: 0 auto;
      background: #fff;
      box-shadow: 0 0 40px rgba(0,0,0,0.06);
      max-width: 1500px;
    }
    .hero {
      position: relative;
      height: 80vh;
      min-height: 480px;
      background-image: url("tlo.jpeg");
      background-size: cover;
      background-position: center;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .hero::before {
        content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.25));
    }
    .hero-content {
        position: relative;
      padding: 2rem;
    }
    .hero-subtitle {
      letter-spacing: 0.25em;
      text-transform: uppercase;
      font-size: 0.9rem;
      margin-bottom: 1rem;
      opacity: 0.9;
    }
    .hero-names {
        font-family: "Georgia", "Times New Roman", serif;
        font-size: 3rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    .hero-divider {
        width: 80px;
        height: 2px;
        background: #fff;
        margin: 1.5rem auto;
        opacity: 0.8;
    }
    .hero-date {
        font-size: 1rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        opacity: 0.9;
    }

    .fa-house {
    font-size: 1.2rem; 
    }
    
    .navbar {
        background: #fff0f5;
        border-bottom: 1px solid #f0d6e4;
        position: sticky;
        top:0;
        z-index: 1000;
        justify-content: center;
        text-align: center;
    }
    .navbar a {
        display: inline-block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #b08a9b;
    }

    section {
        padding: 4rem 2rem;
    }
    .section-narrow {
      max-width: 900px;
      margin: 0 auto;
    }
    .section-title {
      text-align: center;
      font-family: "Georgia", serif;
      font-size: 2rem;
      margin-bottom: 0.5rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .section-subtitle {
      text-align: center;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      color: #b08a9b;
      margin-bottom: 2.5rem;
    }
    
    .intro {
      background: #fdf7fb;
    }
    .intro-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 3rem;
      align-items: center;
      justify-content: center;
      margin-bottom: 3rem;
    }
    .person {
      text-align: center;
    }
    .person-avatar {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      overflow: hidden;
      margin: 0 auto 1rem;
      border: 4px solid #f0d6e4;
    }
    .person-name {
      font-family: "Georgia", serif;
      font-size: 1.3rem;
      margin-bottom: 0.25rem;
    }
    .person-role {
      font-size: 0.8rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #b08a9b;
    }
    .countdown-box {
      text-align: center;
      padding: 1rem;
      border-radius: 12px;
      background: #fff;
      border: 1px solid #f0d6e4;
      margin: 0 auto;
      max-width: 800px;
    }
    .countdown-label {
      font-size: 0.8rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #b08a9b;
      margin-bottom: 1rem;
    }
    .countdown-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.75rem;
    }
    .countdown-item {
      padding: 0.75rem 0.5rem;
      border-radius: 8px;
      background: #fdf1f7;
    }
    .countdown-number {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }
    .countdown-unit {
      font-size: 0.7rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #b08a9b;
    }
    
    .events {
      background: #fff7fb;
    }
    .event-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
    }
    .event-card {
      background: #fff;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    }
    .event-body {
      padding: 1.5rem;
    }
    .event-title {
      font-family: "Georgia", serif;
      font-size: 1.3rem;
      margin-bottom: 0.25rem;
    }
    .event-meta {
      font-size: 0.8rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #b08a9b;
      margin-bottom: 0.75rem;
    }
    .event-text {
      font-size: 0.9rem;
      color: #555;
    }

    .map-box {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #f0d6e4;
      height: 360px;
      position: relative;
    }
    .map-box iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }
    
    .form-box {
        background: #fff;
        padding: 2.5rem;
        border-radius: 12px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid #f0d6e4;
        max-width: 600px;
        margin: 0 auto;
    }

    .rsvp-form {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .rsvp-form label {
        font-size: 0.85rem;
        color: #b08a9b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 8px;
        margin-top: 15px;
        display: block;
    }

    .rsvp-form input[type="text"],
    .rsvp-form select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #f0d6e4;
        border-radius: 6px;
        font-family: inherit; 
        font-size: 1rem;
        background-color: #fdf7fb; 
        color: #333;
        transition: all 0.3s ease;
        outline: none;
    }


    .rsvp-form input:focus,
    .rsvp-form select:focus {
        border-color: #b08a9b;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(176, 138, 155, 0.1);
    }


    .rsvp-form h3 {
        font-family: "Georgia", serif;
        color: #333;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        font-size: 1.2rem;
        text-align: center;
    }

    .add-guest-btn {
        background: transparent;
        border: 1px dashed #b08a9b;
        color: #b08a9b;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.9rem;
        margin-top: 10px;
        transition: 0.3s;
        width: 100%;
    }

    .add-guest-btn:hover {
        background: #fdf1f7;
        border-style: solid;
    }

    .submit-btn {
        background-color: #b08a9b; 
        color: white;
        padding: 16px;
        border: none;
        border-radius: 30px;
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        cursor: pointer;
        margin-top: 2rem;
        transition: background-color 0.3s, transform 0.2s;
        box-shadow: 0 4px 15px rgba(176, 138, 155, 0.3);
    }

    .submit-btn:hover {
        background-color: #967082; 
        transform: translateY(-2px);
    }
    .guest-entry {
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 15px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }
    .gallery-item {
      border-radius: 12px;
      overflow: hidden;
    }

    .footer {
      position: relative;
      height: 260px;
      background-image: url("tlo.jpeg");
      background-size: cover;
      background-position: center;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .footer::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.2));
    }
    .footer-content {
      position: relative;
      padding: 1.5rem;
    }
    .footer-sub {
        font-size: 1.4rem;
        letter-spacing: 0.2em;
    }

    .remove-guest-btn {
    background: transparent;
    border: 1px solid #ff6b6b; 
    color: #ff6b6b; 
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.2s;
}

  .remove-guest-btn:hover {
    background-color: #ff6b6b;
    color: white;
  }

  .guest hr {
    opacity: 0.5;
  }
    
  .lightbox {
      display: none; 
      position: fixed;
      z-index: 2000; 
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.95); 
      justify-content: center;
      align-items: center;
  }
  .lightbox-content {
      max-width: 90%;
      max-height: 90vh; 
      box-shadow: 0 0 20px rgba(255,255,255,0.1);
      animation: zoomIn 0.3s; 
  }
  @keyframes zoomIn {
      from {transform: scale(0.8); opacity: 0;}
      to {transform: scale(1); opacity: 1;}
  }
  .close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: #f1f1f1;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
      z-index: 2001;
  }
  .close:hover {
      color: #b08a9b;
  }
  .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      width: auto;
      padding: 16px;
      margin-top: -50px;
      color: white;
      font-weight: bold;
      font-size: 30px;
      transition: 0.6s ease;
      user-select: none;
      border-radius: 0 3px 3px 0;
  }
  .next {
      right: 0;
      border-radius: 3px 0 0 3px;
  }
  .prev {
      left: 0;
      border-radius: 3px 0 0 3px;
  }
  .prev:hover, .next:hover {
      background-color: rgba(0, 0, 0, 0.8);
  }
  .gallery-item img {
      cursor: pointer;
      transition: transform 0.2s;
  }
  .gallery-item img:hover {
      transform: scale(1.02); 
    }

  .welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3000; 
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .welcome-box {
    background: #fff;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #f0d6e4;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.5s ease;
  }

  .welcome-overlay.show {
    opacity: 1;
  }
  .welcome-overlay.show .welcome-box {
    transform: translateY(0);
  }

  .welcome-box h2 {
    font-family: "Georgia", serif;
    color: #333;
    margin-bottom: 15px;
  }

  .welcome-box p {
    color: #555;
    margin-bottom: 5px;
    font-size: 1rem;
  }

  .close-text {
    margin-top: 15px;
    color: #999;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
  }

  .close-text:hover {
    color: #b08a9b;
  }

  @media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 300px;
        background-position: center center;
    }
    .hero-names { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-card { grid-template-columns: 1fr; text-align: center; }
    .profile-photo { margin: 0 auto; }
  }