:root {
    /* Wymiary - Format A4 ze spadami */
    --width-gross: 216mm; /* A4 + spady */
    --height-gross: 303mm; /* A4 + spady */
    
    /* Bezpieczny obszar */
    --padding-safe: 15mm;
    
    /* Kolory Premium */
    --bg-cream: #f9f7f2; /* Jaśniejszy, bardziej elegancki krem */
    --text-dark: #1a2216; /* Głęboka zieleń/czerń */
    --text-muted: #4A5546;
    --sage-accent: #8FA884; /* Bardziej nasycona szałwia */
    --sage-light: #E8EDE6;
    --gold-accent: #C5B388;
    --gold-shimmer: linear-gradient(45deg, #C5B388, #E5D5AA, #C5B388);

    /* Typografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Comfortaa', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact !important; 
    print-color-adjust: exact !important;
}

body {
    background-color: #222;
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
    min-height: 100vh;
}

.page {
    width: var(--width-gross);
    height: var(--height-gross);
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    padding: var(--padding-safe);
}

/* Background Shapes - Bardziej subtelne i płynne */
.bg-shape {
    position: absolute;
    filter: blur(80px); /* Większy blur dla miękkości */
    z-index: 0;
    opacity: 0.4;
}
.shape-1 {
    width: 300mm; height: 300mm;
    background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
    top: -100mm; right: -100mm;
}
.shape-2 {
    width: 200mm; height: 200mm;
    background: radial-gradient(circle, var(--sage-accent) 0%, transparent 60%);
    bottom: -60mm; left: -60mm;
    opacity: 0.15;
}
.shape-3 {
    width: 350mm; height: 350mm;
    background: radial-gradient(circle, var(--sage-light) 0%, transparent 60%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

/* Content Layouts */
.content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- FRONT PAGE --- */
.front-layout {
    justify-content: space-between;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 280px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08)); 
}

.tagline {
    font-size: 13pt;
    letter-spacing: 2px;
    color: var(--gold-accent); /* Złoty akcent */
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.tagline::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-accent);
    margin: 10px auto 0;
}

/* Nowa, asymetryczna siatka zdjęć */
.image-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 200px 180px; /* Wysokości wierszy */
    gap: 15px;
    margin: 10px 0 40px;
}

.img-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px; /* Minimalizm */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
}

/* Pierwsze zdjęcie - Duże po lewej */
.img-box:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* Zajmuje całą wysokość po lewej */
    border-top-left-radius: 80px; /* Ozdobny łuk */
}

/* Drugie zdjęcie - Prawe górne */
.img-box:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Trzecie zdjęcie - Prawe dolne */
.img-box:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    border-bottom-right-radius: 60px; /* Ozdobny łuk */
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-text-block {
    text-align: center;
    margin-top: auto;
    padding: 0 10mm;
}

.main-text-block h2 {
    font-family: var(--font-heading);
    font-size: 26pt; /* Duży, elegancki nagłówek */
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    font-style: italic;
}

.text-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: justify; /* Justowanie dla elegancji */
    text-align-last: center; /* Ostatnia linia wyśrodkowana */
}

.main-text-block p {
    font-size: 11pt;
    line-height: 1.8;
    color: var(--text-muted);
}

.highlight {
    color: var(--sage-accent);
    font-weight: 700;
    border-bottom: 1px solid var(--sage-light); /* Subtelne podkreślenie */
}

.footer-url {
    text-align: center;
    font-weight: 700;
    font-size: 11pt;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-top: 30px;
    opacity: 0.6;
}

/* --- BACK PAGE --- */
.back-layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
}

.back-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 20px;
}
.back-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold-accent);
}

.back-header h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 22pt;
    line-height: 1.3;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 11pt;
    color: var(--sage-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Środkowa sekcja z obrazem i tekstem nachodzącym na siebie */
.middle-section {
    position: relative;
    display: flex;
    align-items: center; /* Centrowanie w pionie */
    justify-content: center;
}

.back-image-container {
    width: 85%;
    height: 400px; /* Wysoki obraz */
    margin-right: auto; /* Przesunięcie w lewo */
    border-radius: 100px 10px 100px 10px; /* Organiczny kształt */
    overflow: hidden;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.back-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-text-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism baza */
    backdrop-filter: blur(15px); /* Rozmycie tła */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    z-index: 2;
    text-align: left;
}

.floating-text-card p {
    font-size: 10.5pt;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.floating-text-card .highlight-box {
    margin-top: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--gold-accent);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 12pt;
    color: var(--text-dark);
}

/* Sekcja dolna - Call to Action */
.bottom-section {
    text-align: center;
    margin-top: auto;
}

.closing-statement {
    font-family: var(--font-heading);
    font-size: 14pt;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.cta-box {
    background: #fff;
    border-radius: 20px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--sage-light);
}

.cta-pitch {
    text-align: left;
    flex: 1;
}

.cta-pitch span {
    display: block;
    font-size: 11pt;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cta-pitch small {
    font-size: 9pt;
    color: var(--text-muted);
}

.qr-code-frame {
    width: 32mm;
    height: 32mm;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--gold-accent);
    border-radius: 8px;
    flex-shrink: 0;
}

.qr-code-frame img {
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: multiply;
}

/* PRINT SETUP */
@media print {
    body {
        margin: 0;
        padding: 0;
        background: none;
        display: block;
    }
    .page {
        margin: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }
    @page {
        size: 216mm 303mm; /* A4 ze spadami */
        margin: 0;
    }
}
