*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    --clr-subtelny: #595959;
    --clr-primary: #1a1a1a;
    --clr-accent: #A10510; /* Zmienione na głębokie bordo dla luksusowego efektu */
    --clr-bg: #ffffff;
    --clr-text: #333333;
    --clr-light: #f8f9fa;
    --ff-main: 'Montserrat', sans-serif;
    --fz-h1: clamp(2.25rem, 5vw + 1rem, 3.5rem);
    --fz-h2: clamp(1.75rem, 4vw + 1rem, 2.5rem);
    --fz-h3: clamp(1.5rem, 3vw + 1rem, 2rem);
    --fz-h4: clamp(1.25rem, 2vw + 1rem, 1.5rem);
    --fz-h5: clamp(1.1rem, 1vw + 1rem, 1.25rem);
    --fz-h6: clamp(1rem, 0.5vw + 1rem, 1.1rem);
    --fz-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
    --container-w: 1600px;
    --gutter: 2rem;
    --trans: all 0.3s ease-in-out;
}

body {
    font-family: var(--ff-main);
    font-size: var(--fz-body);
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

h1 { font-size: var(--fz-h1); }
h2 { font-size: var(--fz-h2); }
h3 { font-size: var(--fz-h3); }
h4 { font-size: var(--fz-h4); }
h5 { font-size: var(--fz-h5); }
h6 { font-size: var(--fz-h6); text-transform: uppercase; letter-spacing: 1px; }

p { margin-bottom: 1.5rem; }

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--trans); }

button { font-family: inherit; border: none; background: none; cursor: pointer; transition: var(--trans); }

address { font-style: normal; }

ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

::selection {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
}

:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 4px;
}

/* ==========================================================================
   LIST INTENCYJNY - STYLIZACJA (letter.css) [cite: 2026-02-18]
   ========================================================================== */

.letter-page {
    background-color: #fdfdfd; /* Subtelny odcień papieru */
    padding: clamp(4rem, 12vh, 8rem) 0;
}

.letter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.letter-body {
    margin-top: 4rem;
    font-size: 1.05rem;
    line-height: 2;
    color: #334155;
    font-weight: 300;
}

.letter-date {
    text-align: right;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.letter-accent {
    margin: 4rem 0;
    padding-left: 2rem;
    border-left: 1px solid #eee;
}

.letter-accent p {
    font-style: italic;
    color: #1e293b;
}

.letter-footer {
    margin-top: 5rem;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    color: var(--clr-primary);
}

.letter-action {
    margin-top: 6rem;
    text-align: center;
}

.letter-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.4s ease;
}

.letter-btn:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .letter-container {
        padding: 0 1.5rem;
    }
    .letter-body {
        font-size: 0.95rem;
        text-align: justify;
    }
    .hero-accent-line {
        margin: 1.5rem 0 !important;
    }
}
/* --- Cookie Consent Banner --- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f9fa; /* Jasne, neutralne tło */
    border-top: 1px solid #e2e8f0;
    padding: 15px 0;
    z-index: 9999;
    display: none; /* Ukryte domyślnie, pokaże je JS */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.cookie-content p {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.cookie-content a {
    color: #1a1a1a;
    text-decoration: underline;
}

.btn-cookie {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cookie:hover {
    opacity: 0.8;
}

/* RWD */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Klasa do podpisów pod zdjęciami - stylistyka PROJEKT RC */
.egger-legal-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;               /* Mały, techniczny druk */
    color: #888;                   /* Subtelny szary, nie odciąga uwagi od zdjęcia */
    text-transform: uppercase;     /* Wielkie litery - jak w Twojej stopce */
    letter-spacing: 1.5px;         /* Eleganckie rozstrzelenie liter */
    font-weight: 300;              /* Lekka, nowoczesna odmiana fontu */
    margin-top: 10px;              /* Odstęp od zdjęcia powyżej */
    margin-bottom: 25px;           /* Odstęp od treści poniżej */
    display: block;                /* Zapewnia, że napis będzie w nowej linii */
}
/* 1. DOMYŚLNIE: Ukryty na desktopie */
.mobile-cta-phone {
    display: none;
}

/* 2. TYLKO DLA MOBILE (i małych tabletów) */
@media (max-width: 768px) {
    .mobile-cta-phone {
        display: flex; /* Zmieniamy na flex, aby wyświetlić przycisk */
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 55px;
        height: 55px;
        background-color: #A10510;
        color: #ffffff;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        font-size: 1.4rem;
        box-shadow: 0 4px 15px rgba(161, 5, 16, 0.4);
        z-index: 9999;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    /* Efekt kliknięcia */
    .mobile-cta-phone:active {
        transform: scale(0.9);
        background-color: #7a030c;
    }
}
/* --- STYLIZACJA LOADERA (TRANSITION OVERLAY) --- */
.loader-overlay {
    position: fixed;
    inset: 0; /* Pokrywa cały ekran */
    background: var(--clr-bg, #ffffff);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Domyślnie ukryty, czekający na sygnał z JS */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Klasa dodawana przez scripts.js po kliknięciu w link */
.loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Kręcące się kółko (Spinner) */
.loader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    border-top-color: var(--clr-accent, #A10510); /* Twoje bordo */
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
