/* ============================================================
   Spotkanie Rodzinne 2026 – Style główne
   Kolorystyka nawiązująca do zaproszenia drukowanego
   ============================================================ */

:root {
    --color-cream:       #faf8f2;
    --color-cream-dark:  #f0ebe0;
    --color-gold:        #b59656;
    --color-gold-light:  #d4af37;
    --color-green:       #5a7a3a;
    --color-green-light: #7a9e52;
    --color-pink:        #d4789a;
    --color-pink-light:  #f0c4d4;
    --color-rose:        #c45a7a;
    --color-text:        #3a3a3a;
    --color-text-muted:  #6b6b6b;

    --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-script:  'Great Vibes', cursive;
    --font-sans:    'Lato', 'Segoe UI', sans-serif;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --shadow:     0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg:  0 4px 24px rgba(0, 0, 0, 0.1);

    --container:  1100px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-green);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-rose);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.main-content {
    flex: 1;
}

/* ============================================================
   Typografia
   ============================================================ */

.invitation__subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    text-align: center;
}

.invitation__title {
    font-family: var(--font-script);
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 400;
    color: var(--color-green);
    text-align: center;
    line-height: 1.2;
    margin: 0.25rem 0 0.75rem;
}

.script-accent {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-pink);
    text-align: center;
    margin-bottom: 0.75rem;
}

/* ============================================================
   Dividers & dekoracje
   ============================================================ */

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}

.divider--center::before,
.divider--left::before { flex: 1; }
.divider--center::after,
.divider--left::after  { flex: 1; }
.divider--left::before { flex: 0 0 40px; }

.divider__leaf,
.divider__heart {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.divider__leaf {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M12 22C12 22 4 16 4 10C4 6 7 3 12 3C17 3 20 6 20 10C20 16 12 22 12 22Z'/%3E%3C/svg%3E");
}

.divider__heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4789a'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* Kwiaty dekoracyjne (narożniki) */
.floral {
    position: fixed;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    background-size: contain;
    background-repeat: no-repeat;
}

.floral--tl {
    top: 0;
    left: 0;
    background-image: url('../img/floral-tl.svg');
}

.floral--tr {
    top: 0;
    right: 0;
    background-image: url('../img/floral-tr.svg');
}

.floral--br {
    bottom: 0;
    right: 0;
    background-image: url('../img/floral-br.svg');
}

.floral--sm {
    width: 120px;
    height: 120px;
}

/* ============================================================
   Strona publiczna – Zaproszenie
   ============================================================ */

.invitation {
    position: relative;
    padding: 2rem 0 3rem;
    overflow: hidden;
}

.invitation__inner {
    position: relative;
    z-index: 1;
}

.invitation__header {
    padding: 1rem 0 1.5rem;
}

.countdown-timer {
    margin: 0 auto 1.75rem;
    max-width: 680px;
    padding: 1.4rem 1rem;
    border: 1px solid rgba(155, 146, 128, 0.35);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--color-text);
}

.countdown-label {
    display: block;
    font-size: 0.98rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    color: var(--color-green);
}

.countdown-label.countdown-live {
    color: var(--color-red);
    font-size: 1.05rem;
}

.countdown-label.countdown-ended {
    color: var(--color-text);
}

.countdown-values {
    display: inline-flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-live-values span {
    background: rgba(202, 59, 59, 0.12);
    color: var(--color-red);
    border: 1px solid rgba(202, 59, 59, 0.22);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(202, 59, 59, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(202, 59, 59, 0);
    }
}

.countdown-values span {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--color-cream);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--color-text);
}

.countdown-values small {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.countdown-note {
    margin: 0 auto 1rem;
    max-width: 640px;
    font-size: 0.98rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.invitation__intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}

.invitation__intro p:last-child {
    color: var(--color-text-muted);
}

/* Galeria zdjęć nagłówkowa */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.photo-grid__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gold-light);
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

.photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid__item--icon {
    grid-row: span 1;
    background: var(--color-cream-dark);
}

.photo-grid__item--icon img {
    object-fit: contain;
    padding: 0.5rem;
}

/* Pasek informacji */
.info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--color-gold-light);
    border-bottom: 1px solid var(--color-gold-light);
}

.info-bar__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 0 0.5rem;
}

.info-bar__item:not(:last-child) {
    border-right: 1px solid var(--color-gold-light);
}

.info-bar__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--color-green-light);
}

.info-bar__icon svg {
    width: 100%;
    height: 100%;
}

.info-bar__item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--color-text);
}

.info-bar__item span {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Dwie kolumny: program + RSVP */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-green);
    text-align: center;
}

.card--rsvp {
    text-align: center;
}

.card__floral-top {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: url('../img/floral-mini.svg') center/contain no-repeat;
}

/* Timeline programu */
.timeline {
    list-style: none;
}

.timeline__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
}

.timeline__time {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    min-width: 58px;
    text-align: center;
}

.timeline__time--0 { background: #e8f0dc; color: var(--color-green); }
.timeline__time--1 { background: #fce4ec; color: #ad1457; }
.timeline__time--2 { background: #fff8e1; color: #f57f17; }
.timeline__time--3 { background: #e3f2fd; color: #1565c0; }
.timeline__time--4 { background: #f3e5f5; color: #7b1fa2; }

.timeline__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.timeline__icon--home    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.timeline__icon--coffee  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M18 8h1V6h-1M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8m16 0V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v2'/%3E%3C/svg%3E"); }
.timeline__icon--leaf    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34L5.71 22l1.06-2.44C8.14 18.07 10 17 12 17s3.86 1.07 5.23 2.56L18.29 22l1.89-.66C18.1 16.17 16 10 17 8z'/%3E%3C/svg%3E"); }
.timeline__icon--church  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M18 12.22V9l-6-4.5L6 9v3.22L2 14v8h9v-6h2v6h9v-8l-4-1.78z'/%3E%3C/svg%3E"); }
.timeline__icon--heart   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4789a'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.timeline__icon--prayer  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M12 2C9.24 2 7 4.24 7 7c0 2.85 2.92 7.21 5 9.88 2.11-2.69 5-7 5-9.88 0-2.76-2.24-5-5-5zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5S13.38 11.5 12 11.5z'/%3E%3C/svg%3E"); }
.timeline__icon--food    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a9e52'%3E%3Cpath d='M8.1 13.34l2.83-2.83L3.91 3.5a4.008 4.008 0 0 0 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-1.59 1.59-2.09 3.74-1.38 5.27L3.7 19.87l1.41 1.41L12 14.41l6.88 6.88 1.41-1.41L13.41 13l1.47-1.47z'/%3E%3C/svg%3E"); }
.timeline__icon--fire    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e65100'%3E%3Cpath d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73 0-2.15.74-4.8.74-4.8C7.5 2.5 4 6.16 4 10.5 4 14.91 7.59 19 12 19s8-4.09 8-8.5C20 6.16 16.5 2.5 13.5.67zM11.71 19c-1.78-.59-2.64-2.34-2.64-4 0-1.48.67-2.77 1.67-3.66.23-.2.55-.2.78 0 1 .89 1.67 2.18 1.67 3.66 0 1.66-.86 3.41-2.48 4z'/%3E%3C/svg%3E"); }

.timeline__label {
    font-size: 0.95rem;
}

/* RSVP lista */
.rsvp-list {
    list-style: none;
    margin-top: 1rem;
}

.rsvp-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted var(--color-gold-light);
}

.rsvp-list li:last-child {
    border-bottom: none;
}

.rsvp-list strong {
    display: block;
    color: var(--color-rose);
    font-size: 1.1rem;
}

.rsvp-list a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* CTA logowania */
.login-cta {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

/* ============================================================
   Przyciski
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green));
    color: #fff;
    border-color: var(--color-green);
    box-shadow: 0 3px 12px rgba(90, 122, 58, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-green), #4a6a2a);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(90, 122, 58, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}

.btn--outline:hover {
    background: var(--color-green);
    color: #fff;
}

.btn--lg {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.btn--sm {
    font-size: 0.78rem;
    padding: 0.45rem 1rem;
}

.btn--full {
    width: 100%;
}

/* ============================================================
   Strona logowania
   ============================================================ */

.page-login .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

.login-page {
    position: relative;
    width: 100%;
    padding: 2rem 1rem;
}

.login-card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.login-card__back {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.login-card__back:hover {
    color: var(--color-green);
}

.login-card__title {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--color-green);
    text-align: center;
}

.login-card__hint {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

.login-form {
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-green);
    margin-bottom: 0.35rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-green-light);
    box-shadow: 0 0 0 3px rgba(122, 158, 82, 0.15);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================================
   Panel prywatny – nagłówek i nawigacja
   ============================================================ */

.private-header {
    background: #fff;
    border-bottom: 1px solid var(--color-gold-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.private-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 1rem;
}

.private-header__brand {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.private-header__brand-script {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--color-green);
}

.private-header__brand-year {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

.private-header__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.private-header__greeting {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.private-nav {
    border-top: 1px solid var(--color-cream-dark);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.private-nav .container {
    display: flex;
    gap: 0;
    padding: 0;
}

.private-nav__link {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 0.75rem 1.25rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.private-nav__link:hover {
    color: var(--color-green);
    background: var(--color-cream);
}

.private-nav__link.is-active {
    color: var(--color-green);
    border-bottom-color: var(--color-green-light);
    background: var(--color-cream);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-green);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   Panel prywatny – treść
   ============================================================ */

.private-page {
    padding: 2rem 0 3rem;
}

.private-page__header {
    margin-bottom: 2rem;
    text-align: center;
}

.private-page__title {
    font-family: var(--font-script);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--color-green);
    margin-bottom: 0.25rem;
}

.private-page__subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.content-placeholder {
    max-width: 800px;
    margin: 0 auto;
}

.archive-entry {
    background: #fff;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.archive-entry h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-green);
    margin-bottom: 0.25rem;
}

.archive-entry__meta {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.placeholder-box {
    background: var(--color-cream-dark);
    border: 2px dashed var(--color-gold-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

.placeholder-box code {
    background: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Galeria zdjęć */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-grid__item {
    background: #fff;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-grid__item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.gallery-grid__item figcaption {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Galeria albumów (foldery ze zdjecia2/) */
.album-back {
    text-align: left;
    margin-bottom: 1rem;
}

.album-back a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-green);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
}

.album-card {
    display: block;
    background: #fff;
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--color-text);
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.album-card__cover {
    aspect-ratio: 4/3;
    max-height: 130px;
    background: var(--color-cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.album-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card__placeholder {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.album-card__body {
    padding: 0.6rem 0.7rem;
}

.album-card__title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--color-green);
    margin-bottom: 0.15rem;
}

.album-card__meta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--color-gold);
}

/* Lightbox – powiększenie zdjęcia na część ekranu (nie na cały ekran) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 15, 0.78);
}

.lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(50vw, 700px);
    max-width: 92vw;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: calc(85vh - 1.5rem);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: -0.9rem;
    right: -0.9rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: none;
    background: var(--color-green);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.lightbox__close:hover {
    background: var(--color-rose);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-green);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.lightbox__nav:hover {
    background: #fff;
    color: var(--color-rose);
}

.lightbox__nav--prev {
    left: -1.2rem;
}

.lightbox__nav--next {
    right: -1.2rem;
}

body.lightbox-open {
    overflow: hidden;
}

/* Tabela gości */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}

.guest-table th,
.guest-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-cream-dark);
}

.guest-table th {
    background: var(--color-green);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.guest-table tr:last-child td {
    border-bottom: none;
}

.guest-table tr:hover td {
    background: var(--color-cream);
}

.badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.badge--confirmed {
    background: #e8f0dc;
    color: var(--color-green);
}

.badge--pending {
    background: #fff8e1;
    color: #f57f17;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.card--full {
    grid-column: 1 / -1;
}

.card--info .card__title {
    text-align: left;
    font-size: 1.15rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green-light);
    font-weight: 700;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 0.35rem 0;
}

.map-placeholder {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gold-light);
    aspect-ratio: 16/9;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   Stopka
   ============================================================ */

.site-footer {
    background: #fff;
    border-top: 1px solid var(--color-gold-light);
    padding: 1rem 0;
    margin-top: auto;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.site-footer__link {
    font-weight: 700;
    color: var(--color-green);
}

/* ============================================================
   Responsywność (Mobile First)
   ============================================================ */

@media (max-width: 768px) {
    .floral {
        width: 100px;
        height: 100px;
        opacity: 0.35;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 360px;
    }

    .info-bar {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-bar__item {
        padding: 0.75rem 0;
        border-right: none !important;
        border-bottom: 1px solid var(--color-gold-light);
    }

    .info-bar__item:last-child {
        border-bottom: none;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .private-header__greeting {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .private-nav {
        display: none;
    }

    .private-nav.is-open {
        display: block;
    }

    .private-nav .container {
        flex-direction: column;
    }

    .private-nav__link {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .private-nav__link.is-active {
        border-left-color: var(--color-green-light);
        border-bottom-color: transparent;
    }

    .guest-table {
        font-size: 0.85rem;
    }

    .guest-table th,
    .guest-table td {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .invitation {
        padding: 1.25rem 0 2rem;
    }

    .card {
        padding: 1.15rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .lightbox__panel {
        width: 92vw;
        max-height: 80vh;
    }

    .lightbox__nav--prev {
        left: 0.25rem;
    }

    .lightbox__nav--next {
        right: 0.25rem;
    }
}
