@font-face {
    font-family: 'International';
    src: url('../fonts/International.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', Georgia, serif;
    background: #0d0d0d;
    color: #d4d4d4;
    overflow-x: hidden;
}

/* Header z ciemnym kamieniem */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1.2s ease-out;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    margin-bottom: 20px;
}

.brand-name {
    font-family: 'International', Georgia, serif;
    font-size: clamp(2.6rem, 9vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.1;
    margin-bottom: 15px;
    animation: fadeInUp 1.4s ease-out;
    color: #efefef;
    text-shadow:
        2px 2px 0px rgb(255, 255, 255, 0.2),   /* jasna krawędź — efekt kucia */
        8px 8px 2px rgba(1,0,0,0.85),         /* główny cień głębi */
        -2px -2px 0px rgba(0,0,0,0.4);  /* lekki blask */
}

.brand-subtitle {
    font-family: 'International', Georgia, serif;
    font-size: clamp(1.3rem, 3vw, 3.1rem);
    letter-spacing: 0.55em;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 1.6s ease-out;
    color: #c0c0c0;
    text-shadow:
        1px 1px 0px rgb(255, 255, 255, 0.2),   /* jasna krawędź — efekt kucia */
        2px 4px 1px rgba(1,0,0,0.85),         /* główny cień głębi */
        -1px -1px 0px rgba(0,0,0,0.2);  /* lekki blask */
}

.tagline {
    font-size: clamp(0.85rem, 2vw, 2.2rem);
    letter-spacing: 0.15em;
    color: #b8b8b8;
    font-style: normal;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    animation: fadeInUp 1.8s ease-out;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 25px 20px;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #f5f5f5;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    animation: fadeInUp 2s ease-out;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Sekcja O Nas */
.about {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85)),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', 'Forum', Georgia, serif;
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 60px;
    color: #f5f5f5;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #888, transparent);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-areas: "left center right";
    min-height: 500px;
}

.about-side-image {
    overflow: hidden;
}

.about-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-side-image:hover img {
    transform: scale(1.04);
}

.about-image-left { grid-area: left; }
.about-image-right { grid-area: right; }

.about-center {
    grid-area: center;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-center .section-title {
    margin-bottom: 40px;
}

.about-text {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #e7e5e5;
    letter-spacing: 0.05em;
}

.about-text p {
    margin-bottom: 25px;
}

.about-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #d4d4d4;
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 25px;
    margin: 35px 0;
    line-height: 1.8;
}

/* Sekcja Usługi */
.services {
    padding: 100px 20px;
    background: 
        linear-gradient(18deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.55)),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    /* backdrop-filter: blur(5px); */
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #c9c9c9;
    filter: grayscale(1);
}

.service-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    color: #f5f5f5;
}

.service-description {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a8a8a8;
    letter-spacing: 0.05em;
}
.service-link {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--text-muted, #888);
    text-decoration: none;
    margin-top: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
    transition: color 0.35s ease, border-color 0.35s ease;
}

.service-link:hover {
    color: #f5f5f5;
    border-color: rgba(255,255,255,0.55);
}



/* Galeria */
.gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 10px;
}




/* Kontakt */
.contact {
    padding: 100px 20px;
    background: #0d0d0d;
    text-align: center;
}

.contact-info {
    font-family: 'Cinzel', serif;
    margin-top: 50px;
    font-size: 1.1rem;
    line-height: 2.2;
    color: #c9c9c9;
    letter-spacing: 0.1em;
    text-align: center;
}

.contact-info a {
    color: #f5f5f5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}

.contact-info a:hover {
    border-bottom-color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
    font-family: 'Cinzel', serif;
    padding: 40px 20px;
    background: #000;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer a{color:#666}
.footer a:hover{color:#999;}
.footer a:visited{color:#666;}

/* Animacje */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .about {
        padding: 0;
    }

    .about-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "left right"
            "center center";
        min-height: unset;
    }

    .about-side-image {
        height: auto;
    }

    .about-side-image img {
        height: auto;
        object-fit: initial;
    }

    .about-center {
        padding: 60px 24px;
    }

    .brand-name {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: 0.08em;
    }

    /* KAMIENIARSTWO musi się zmieścić — ograniczamy letter-spacing i font-size */
    .brand-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.8rem);
        letter-spacing: 0.18em;
        white-space: nowrap;
    }

    .tagline {
        font-size: clamp(0.7rem, 3.5vw, 1rem);
        letter-spacing: 0.08em;
    }

    /* Kafelki usług — jeden pod drugim, wycentrowane */
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-top: 40px;
    }

    .service-card {
        width: 100%;
        max-width: 340px;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Sekcja Realizacje */
/* Sekcja Realizacje */
.gallery {
    display: block !important; /* WP/Kadence nadpisuje display na flex – wymuszamy block */
    padding: 100px 20px;
    background:
        linear-gradient(18deg, rgba(0,0,0,0.85), rgba(0,0,0,0.55)),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.gallery .container {
    padding: 0 20px;
}

/* Główny slider */
.gallery-main-wrap {
    margin-bottom: 10px;
}

.swiper-main {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0d0d0d;
    position: relative;
}

.swiper-main .swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 26px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #bbb;
    margin: 0;
    pointer-events: none;
    z-index: 2;
}

/* Strzałki */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.14);
    color: #ccc;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    user-select: none;
}

.gallery-arrow:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.38);
    color: #f0f0f0;
}

.swiper-button-prev-custom { left: 14px; }
.swiper-button-next-custom { right: 14px; }

/* Miniatury */
.swiper-thumbs {
    margin-top: 10px;
}

.swiper-thumbs .swiper-slide {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.35s;
    opacity: 1;
}

.swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
    filter: brightness(0.65) saturate(0.75);
}

.swiper-thumbs .swiper-slide:hover img {
    transform: scale(1.08);
    filter: brightness(0.95) saturate(1);
}

.swiper-thumbs .swiper-slide-thumb-active {
    border-color: rgba(255,255,255,0.32);
}

.swiper-thumbs .swiper-slide-thumb-active img {
    transform: scale(1.08);
    filter: brightness(0.95) saturate(1);
}


@supports (-webkit-touch-callout: none) {
    .gallery,
    .services,
    .about,
    .hero,
    .gallery-hero,
    .page-hero {
        background-attachment: scroll;
    }
}

/* Kontakt — layout z mapą */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
    text-align: left;
}

.contact-form-col .contact-info {
    margin-top: 0;
    margin-bottom: 40px;
}

.contact-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 16px;
    outline: none;
}

.contact-input:focus {
    border-color: rgba(255,255,255,0.35);
}

textarea.contact-input {
    min-height: 140px;
    resize: vertical;
}

.contact-submit {
font-family: 'Cinzel', serif;
    display: inline-block;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #f5f5f5;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

.contact-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.contact-map-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-map-col iframe {
    width: 100%;
    height: 420px;
    display: block;
    border: 1px solid rgba(255,255,255,0.08);
}

.contact-map-col .contact-info {
    margin-top: 0;
}

@media (max-width: 768px) {
    .swiper-main {
        aspect-ratio: 4/3;
    }

    .gallery-caption {
        font-size: 0.65rem;
        left: 14px;
        bottom: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        display: grid;
        align-items: unset;
    }

    .service-card {
        width: 100%;
        max-width: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map-col {
        min-height: 300px;
        position: relative;
    }
}

/* CF7 — flex na formularzu (nie na wrapperze), żeby order działał */
.wpcf7 form.wpcf7-form {
    display: flex;
    flex-direction: column;
}

/* Powiadomienie nad formularzem — bazowe */
.wpcf7-response-output {
    order: -1;
    margin: 0 0 20px 0 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.04);
    color: #d4d4d4 !important;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 16px 20px !important;
    text-align: center;
}

/* Sukces — zielona ramka */
.wpcf7-mail-sent-ok.wpcf7-response-output {
    border-color: rgba(80, 180, 80, 0.7) !important;
    background: rgba(60, 140, 60, 0.08);
    color: #a8e6a8 !important;
}

/* Błąd walidacji — żółta ramka */
.wpcf7-validation-errors.wpcf7-response-output,
.wpcf7-not-valid.wpcf7-response-output {
    border-color: rgba(210, 180, 40, 0.7) !important;
    background: rgba(160, 130, 20, 0.08);
    color: #e8d87a !important;
}

/* Błąd wysyłki / spam — czerwona ramka */
.wpcf7-mail-sent-ng.wpcf7-response-output,
.wpcf7-spam-blocked.wpcf7-response-output {
    border-color: rgba(200, 60, 60, 0.7) !important;
    background: rgba(140, 40, 40, 0.08);
    color: #e8a0a0 !important;
}

/* CF7 — pola tekstowe: Georgia zamiast Cinzel, czytelniejsze */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d8d8d8;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 16px;
    outline: none;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: rgba(255,255,255,0.35);
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    font-family: Georgia, serif;
    color: #777;
    letter-spacing: 0.06em;
}

/* CF7 — przycisk Wyślij */
.wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    padding: 18px 45px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.4);
    color: #f5f5f5;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 8px;
    box-sizing: border-box;
}

.wpcf7 input[type="submit"]:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   GALLERY PAGE — gallery-page.php
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --stone: #1a1a1a;
    --stone-dark: #0d0d0d;
    --stone-mid: #242424;
    --text-primary: #f5f5f5;
    --text-secondary: #c9c9c9;
    --text-muted: #888;
    --border-subtle: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.28);
    --accent-line: rgba(255,255,255,0.2);
    --transition: 0.35s ease;
}

/* ─── HEADER ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.header-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0.9);
}

.header-brand {
    font-family: 'International', Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    color: var(--text-primary);
    font-weight: 300;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
}

/* ─── HERO GALERII ──────────────────────────────────────────────── */
.gallery-hero {
    position: relative;
    padding: 80px 40px 60px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.gallery-hero-inner {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color var(--transition);
}

.back-link::before {
    content: '←';
    font-size: 1rem;
}

.back-link:hover { color: var(--text-secondary); }

.gallery-hero h1 {
    font-family: 'International', Georgia, serif;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.8);
    margin-bottom: 16px;
}

.gallery-hero-line {
    width: 60px;
    height: 1px;
    background: var(--accent-line);
    margin: 20px auto 24px;
    border: none;
}

.gallery-hero p {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ─── NAWIGACJA KATEGORII ───────────────────────────────────────── */
.category-nav {
    background: var(--stone-dark);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 64px;
    z-index: 90;
}

.category-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 0;
}

.cat-tab {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    padding: 20px 28px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.cat-tab:hover { color: var(--text-secondary); }

.cat-tab.active {
    color: var(--text-primary);
    border-bottom-color: rgba(255,255,255,0.4);
}

/* ─── GŁÓWNA TREŚĆ GALERII ──────────────────────────────────────── */
.gallery-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

/* ─── PANELE KATEGORII ──────────────────────────────────────────── */
.cat-panel {
    display: none;
    animation: fadeUp 0.45s ease forwards;
}

.cat-panel.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── POD-ZAKŁADKI NAGROBKÓW ────────────────────────────────────── */
.sub-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 48px;
    border: 1px solid var(--border-subtle);
    padding: 2px;
    width: fit-content;
}

.sub-tab {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    padding: 12px 22px;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
}

.sub-tab:hover { color: var(--text-secondary); }

.sub-tab.active {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
}

.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* ─── COMING SOON ───────────────────────────────────────────────── */
.coming-soon {
    padding: 80px 0;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.coming-soon-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.coming-soon p {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ─── ETYKIETY SEKCJI ───────────────────────────────────────────── */
.section-label {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.count-badge {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    margin-left: 12px;
    vertical-align: middle;
}

/* ─── SIATKI ZDJĘĆ ──────────────────────────────────────────────── */
.grid-nagrobki {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

/* ─── MINIATURY ─────────────────────────────────────────────────── */
.thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--stone-mid);
    border: 1px solid var(--border-subtle);
}

.thumb-square   { aspect-ratio: 1 / 1; }
.thumb-portrait { aspect-ratio: 3 / 4; }

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
                filter 0.4s ease;
    filter: brightness(0.82) saturate(0.8);
}

.thumb:hover img {
    transform: scale(1.06);
    filter: brightness(0.98) saturate(0.95);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 40%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.thumb:hover .thumb-overlay { opacity: 0.6; }

.thumb-num {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.55);
    pointer-events: none;
    z-index: 2;
}

/* ─── LIGHTBOX ──────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.96);
}

.lightbox.open { display: flex; }

.lb-backdrop {
    position: absolute;
    inset: 0;
    cursor: zoom-out;
}

.lb-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.lb-img-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-img-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    display: block;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lb-img-wrap img.loaded { opacity: 1; }

.lb-close {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 10;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    line-height: 1;
}

.lb-close:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
    color: var(--text-primary);
}

.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text-secondary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    user-select: none;
}

.lb-arrow:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.38);
    color: var(--text-primary);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-caption {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    pointer-events: none;
}

.lb-counter {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}

/* ─── RESPONSIVE — GALERIA ──────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-nagrobki { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
    .site-header { padding: 0 20px; }
    .header-nav { display: none; }
    .gallery-hero { padding: 60px 20px 48px; }
    .category-nav-inner { padding: 0 12px; overflow-x: auto; }
    .cat-tab { padding: 16px 16px; font-size: 0.65rem; }
    .gallery-main { padding: 40px 20px 80px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-nagrobki { grid-template-columns: repeat(2, 1fr); }
    .sub-tabs { width: 100%; }
    .sub-tab { flex: 1; text-align: center; padding: 12px 10px; font-size: 0.6rem; }
    .lb-inner { padding: 60px 54px; }
    .lb-arrow { width: 38px; height: 38px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE TEMPLATE — page.php
   ═══════════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    padding: 80px 40px 60px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
        url('../img/texture-stone.webp') center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'International', Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.8);
    margin-bottom: 16px;
}

.page-body-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 100px;
}

.page-body {
    font-family: 'Cinzel', serif;
    color: #d4d4d4;
    line-height: 1.9;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #f5f5f5;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin: 48px 0 20px;
}

.page-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: #e8e8e8;
    margin: 32px 0 14px;
}

.page-body a {
    color: #f5f5f5;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s ease;
}

.page-body a:hover {
    border-bottom-color: rgba(255,255,255,0.7);
}

.page-body strong {
    color: #f5f5f5;
}

.page-body ul,
.page-body ol {
    padding-left: 1.4em;
    margin-bottom: 20px;
}

.page-body li {
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .page-hero { padding: 60px 20px 48px; }
    .page-body-wrap { padding: 48px 20px 80px; }
}