/* ============================================================
   BARTEK 40 — Strona urodzinowa
   Design: industrialny minimalizm Beton Haus × urodzinowa radość
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg:          #0c0c0c;
  --bg-alt:      #141414;
  --bg-card:     #1c1c1c;
  --border:      #2a2a2a;
  --text:        #f0ede8;
  --text-muted:  #7a7672;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-dim:    rgba(201, 168, 76, 0.12);
  --red:         #c03030;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   24px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-dark {
  background: var(--bg-alt);
}

/* ============================================================
   HERO — slider tło
   ============================================================ */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

#hero .slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 12, 0.25) 0%,
    rgba(12, 12, 12, 0.15) 40%,
    rgba(12, 12, 12, 0.75) 80%,
    rgba(12, 12, 12, 0.95) 100%
  );
}

/* Giant "40" watermark */
.hero-bg-number {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: 'Playfair Display', serif;
  font-size: clamp(200px, 42vw, 520px);
  font-weight: 900;
  color: rgba(201, 168, 76, 0.07);
  line-height: 1;
  user-select: none;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1.5rem clamp(3rem, 8vw, 6rem);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3.5rem, 13vw, 10rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(240, 237, 232, 0.75);
  margin-bottom: 2.5rem;
}

.hero-date-bar span {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(201, 168, 76, 0.5);
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--gold); }

.hero-scroll svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
#odliczanie {
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ============================================================
   ZAPROSZENIE — 2 kolumny
   ============================================================ */
.invite-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.invite-col-text { max-width: 660px; }

.invite-col-img {
  flex-shrink: 0;
}

.invite-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.invite-text p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.invite-text strong {
  color: var(--gold);
  font-weight: 600;
}

.invite-signature {
  margin-top: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
}

/* ============================================================
   SZCZEGÓŁY
   ============================================================ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color var(--transition), transform var(--transition);
}

.detail-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-4px);
}

.detail-card.featured {
  border-color: rgba(201, 168, 76, 0.5);
  background: linear-gradient(135deg, #1c1c1c 0%, #1f1a10 100%);
}

.detail-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.detail-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.detail-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   DOJAZD
   ============================================================ */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 7;
  background: var(--bg-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(60%) invert(90%) contrast(80%);
}

.map-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #0c0c0c;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius);
}

/* ============================================================
   RSVP FORM
   ============================================================ */
#rsvp .container { max-width: 680px; }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.btn-submit {
  background: var(--gold);
  color: #0c0c0c;
  padding: 1.15rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.3);
  color: #70e090;
}

.form-message.error {
  background: rgba(192, 48, 48, 0.12);
  border: 1px solid rgba(192, 48, 48, 0.3);
  color: #f08080;
}

.hidden { display: none !important; }

/* ============================================================
   LICZNIK
   ============================================================ */
#licznik {
  padding: 5rem 0;
  background: var(--bg);
  text-align: center;
}

.counter-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.counter-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  transition: all 0.5s ease;
}

.counter-label {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
}

.counter-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.counter-loading {
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem 1.5rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

footer p:first-child {
  color: var(--text);
  font-size: 1rem;
}

.footer-heart {
  color: var(--red);
}

/* ============================================================
   ANIMATIONS — fade-in-up on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   ADMIN PANEL — admin.html
   ============================================================ */
.admin-page {
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Login screen */
.login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto 0.75rem;
  display: block;
}

.login-cake {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.login-box h2 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.login-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  text-align: center;
  transition: border-color var(--transition);
}

.login-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.login-error {
  color: #f08080;
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

/* Dashboard */
.admin-dashboard { display: none; flex: 1; flex-direction: column; }
.admin-dashboard.visible { display: flex; }

.admin-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.admin-header h1 {
  font-size: 1.3rem;
  color: var(--white);
  flex: 1;
}

.admin-header h1 span { color: var(--gold); }

.btn-logout {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.btn-logout:hover {
  color: var(--red);
  border-color: var(--red);
}

.admin-body {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-card.highlight {
  border-color: rgba(201, 168, 76, 0.5);
  background: linear-gradient(135deg, #1c1c1c, #1f1a10);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.admin-party-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-party-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.admin-party-text h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.admin-party-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-header h2 {
  font-size: 1.2rem;
  color: var(--white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.admin-table td {
  padding: 1rem;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(201, 168, 76, 0.04); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gold-dim);
  color: var(--gold);
}

.admin-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.admin-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.btn-csv {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-csv:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-refresh {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-refresh:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Demo mode banner */
.demo-banner {
  background: rgba(192, 48, 48, 0.15);
  border: 1px solid rgba(192, 48, 48, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #f08080;
}

.demo-banner strong { color: #f08080; }
.demo-banner a { color: var(--gold); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    aspect-ratio: 4 / 3;
  }

  .map-buttons {
    flex-direction: column;
  }

  .map-buttons .btn {
    justify-content: center;
  }

  .countdown-grid {
    gap: 1rem;
  }

  .countdown-sep { display: none; }

  .admin-body { padding: 1.25rem; }

  .admin-table { font-size: 0.85rem; }
  .admin-table th,
  .admin-table td { padding: 0.65rem 0.75rem; }

  .admin-party-banner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.8rem, 16vw, 4rem); }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   GALERIA — standalone slider
   ============================================================ */
.gallery-slider-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.gallery-slider {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Arrow buttons */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(12, 12, 12, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}

.gallery-btn:hover {
  background: var(--gold);
  color: #0c0c0c;
  border-color: var(--gold);
}

.gallery-btn-prev { left: 1.25rem; }
.gallery-btn-next { right: 1.25rem; }

#galeria .slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

/* ============================================================
   FUNDACJA BIEGUSIEM
   ============================================================ */
.fundacja-card {
  background: linear-gradient(135deg, #1a1a0d 0%, #1c1c1c 60%, #0f1a0f 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.fundacja-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.fundacja-inner {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-start;
  position: relative;
}

.fundacja-logo {
  width: clamp(80px, 12vw, 140px);
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1.1);
}

.fundacja-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.fundacja-text p {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text);
  line-height: 1.75;
}

.fundacja-text strong {
  color: var(--gold);
}

.fundacja-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Responsywność nowych sekcji */
@media (max-width: 900px) {
  .invite-layout {
    grid-template-columns: 1fr;
  }

  .invite-col-img {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .fundacja-inner {
    flex-direction: column;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .fundacja-buttons {
    flex-direction: column;
  }

  .fundacja-buttons .btn {
    justify-content: center;
  }
}

/* ============================================================
   LOGIN GATE
   ============================================================ */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.6s ease;
}
.login-gate.login-fade-out { opacity: 0; pointer-events: none; }

.login-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.login-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: loginBounce 1.6s ease-in-out infinite;
}
@keyframes loginBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.login-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.login-question {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  gap: 0.75rem;
  max-width: 300px;
  margin: 0 auto 1rem;
}

.login-input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.3rem;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.login-input::-webkit-outer-spin-button,
.login-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.login-input:focus { border-color: var(--gold); }

.login-btn {
  padding: 0.85rem 1.4rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.login-btn:hover { background: var(--gold-light); }

.login-error {
  color: #e05555;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: opacity 0.3s;
}
.login-error.hidden { display: none; }

/* ============================================================
   VENUE LOGO (Salonty)
   ============================================================ */
.venue-logo {
  max-width: 130px;
  margin-top: 0.9rem;
  display: block;
  opacity: 0.85;
  filter: brightness(1.15);
}

/* ============================================================
   RSVP — punktualność (tak/nie)
   ============================================================ */
.punctual-btns {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.punctual-option {
  flex: 1;
  cursor: pointer;
}

.punctual-option input[type="radio"] {
  display: none;
}

.punctual-option span {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.punctual-option input[type="radio"]:checked + span {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.punctual-option:hover span {
  border-color: var(--gold);
  color: var(--text);
}
