/* --- ZMIENNE I RESET --- */
:root {
    --primary-gold: #e6c27e;
    --primary-gold-dark: #d4ae66;
    --text-dark: #1a1a1a; /*changable*/
    --bg-dark: #333333;
    --text-gray: #555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-main: "Chiron GoRound TC", sans-serif;
    --container-width: 90%;
    --radius: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --site-header-offset: 0px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Responsywność dla radia na mobile */
/* 5. Responsywność - na mobile zmieniamy układ na jedną kolumnę */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 20px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-gold { background-color: #f4e9d5; }
.btn {
    display: inline-flex;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-gold);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-gold-dark);
    color: var(--white) !important;
}
.btn-outline {
    border-color: var(--primary-gold);
    color: var(--text-dark);
    background: transparent;
    border: 2px solid #ddd;
}
.btn-outline:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-gold-dark);
}
.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}
.subtitle {
    display: block;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
h2 { font-size: 2.5rem; margin-bottom: 30px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
.text-center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mt-40 { margin-top: 40px; }
.site-header {
    background: var(--white);
    position: relative;
    top: auto;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    overflow: visible;
}

.site-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

body.has-fixed-site-header {
    padding-top: var(--site-header-offset, 0px);
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}
.logo {
    font-family: "Montserrat", sans-serif;
    margin: 0 !important;
    line-height: normal;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}
.logo a {
    display: block;
    font-size: 50px;
    letter-spacing: 20px; /*changable*/
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}
.gold-text { color: var(--primary-gold); }
.main-nav { display: block; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.main-nav a:hover { color: var(--primary-gold); }
.mobile-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1002;
}
.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.mobile-toggle.is-active span {
    background-color: var(--primary-gold);
}
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: stretch;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
    height: auto;
    overflow: hidden;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    box-shadow: 10px 10px 40px rgba(0,0,0,0.5);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.hero-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 30% 50%;
    transform: scale(1);
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}
.hero-image:hover .hero-static-img {
    transform: scale(1.05);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    transition: 0.3s;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-gold);
}
.feature-card .icon { font-size: 40px; margin-bottom: 20px; }
.comparison-wrapper {
    margin: 0 auto;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    background: #000;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}
.realization-visual-gallery .comparison-wrapper {
    margin: 0 auto;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    background: #000;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.realization-visual-gallery .img-comp-container {
    height: 100%;
}

.realization-visual-gallery .img-comp-img {
    background: transparent;
}

.realization-visual-gallery .img-comp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.img-comp-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.img-comp-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}
.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
}
.img-comp-before { z-index: 1; }
.img-comp-after { z-index: 2; width: 50%; border-right: 2px solid var(--white); }
.label {
    position: absolute;
    top: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    pointer-events: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
}
.img-comp-after .label { right: 20px; }
.img-comp-before .label { left: 20px; }
.img-comp-slider {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: col-resize;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    touch-action: none;
    transition:
            background-color 0.3s ease,
            box-shadow 0.3s ease;
}
.slider-arrow {
    font-weight: bold;
    pointer-events: none;
    color: var(--white);
    font-size: 18px;
    line-height: 1;
}
.list-grid {
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: none !important; /* Pozwalamy wrapperowi kontrolować wysokość */
}
.cemetery-item {
    background: var(--white);
    border-radius: var(--radius);
    border-left: 5px solid #eee;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    padding: 30px 20px;
    text-align: center;
    justify-content: center;
    min-height: 100px;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: transparent;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: none;
    align-items: center;
}
.contact-details li { margin-bottom: 15px; font-size: 1.1rem; }
.contact-details a { color: var(--primary-gold-dark); font-weight: 700; }
.contact-form-box h3 {
    margin-bottom: 30px;
    color: var(--white);
    text-align: center;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
    color: var(--primary-gold);
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all 0.3s ease;
}
.full-width { width: 100%; }
.site-footer {
    background: var(--text-gray);
    color: #999;
    padding: 30px 0;
    font-size: 13px;
}
.img-base {
    z-index: 1;
}
.img-overlay {
    z-index: 2;
    width: 50%;
    border-right: 2px solid var(--white);
}
.img-overlay img {
    width: 100%;
    max-width: none;
}
.labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}
.label-before {
    right: 20px;
    background: rgba(255, 0, 0, 0.5);
}
.label-after {
    left: 20px;
    background: rgba(29, 78, 63, 0.7);
}
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: blur(2px);
    transform: scale(1.1);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.hero-content-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
}
.hero-content-card h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.hero-content-card p {
    font-size: 1.1rem;
    color: var(--text-dark); /* Ciemniejszy tekst dla lepszego kontrastu na szkle */
    margin-bottom: 30px;
    font-weight: 500;
}
.btn-outline-light {
    border: 2px solid var(--primary-gold);
    color: var(--text-dark);
    font-weight: 700;
}
.btn-outline-light:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}
.top-bar {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
}
.top-bar-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.top-contact {
    display: flex;
    gap: 40px;
}
.top-contact a {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-contact a:hover {
    color: var(--primary-gold);
}
.ts-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.ts-nav a {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}
.ts-nav a svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}
.ts-nav a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}
.oferta-realizacje-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}
.oferta-realizacje-section .container {
    max-width: 90%;
    margin: 0 auto;
}
.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: start;
}
.usluga-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.usluga-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition:
            background-color 0.3s ease,
            box-shadow 0.3s ease,
            transform 0.3s ease;
}
.usluga-icon img,
.usluga-icon svg {
    width: 50%;
    height: 50%;
    object-fit: contain;
}
.usluga-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.realizacje-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
.realizacje-slider-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.realizacje-slider-container .comparison-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
}
.realizacje-slider-container .img-comp-container {
    height: auto;
    aspect-ratio: 4 / 3;
}
.realizacje-slider-container .img-comp-img {
    background: #000;
}
.realizacje-slider-container .img-comp-img img {
    object-fit: contain;
    object-position: center center;
}

/* Tylko sekcja #oferta: kontener dopasowuje się do proporcji zdjęcia, bez czarnych pasów */
#oferta .realizacje-slider-container .comparison-wrapper,
#oferta .realizacje-slider-container .img-comp-container {
    aspect-ratio: auto;
    height: auto;
}

#oferta .realizacje-slider-container .img-comp-img.img-base {
    position: relative;
    height: auto;
}

#oferta .realizacje-slider-container .img-comp-img.img-base img {
    height: auto;
    object-fit: contain;
}

#oferta .realizacje-slider-container .img-comp-img.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

#oferta .realizacje-slider-container .img-comp-img.img-overlay img {
    height: 100%;
    object-fit: contain;
}

#oferta .realizacje-slider-container .img-comp-img {
    background: transparent;
}
.realizacje-tekst {
    width: 100%;
}
.realizacje-tekst h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}
.realizacje-tekst p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
}
@media (min-width: 768px) {
}
@media (min-width: 1024px) {
    .uslugi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .realizacje-content {
        flex-direction: row;
        align-items: center;
    }
    .realizacje-slider-container {
        flex: 1;
    }
    .realizacje-tekst {
        flex: 1;
        padding-left: 2rem;
    }
    .realizacje-tekst h2 {
        font-size: 3rem;
    }
}

/* #oferta: slider zwęża się ~2x wolniej niż tekst obok */
@media (min-width: 1025px) {
    #oferta .realizacje-content {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #oferta .realizacje-slider-container {
        flex: 1 1 58%;
        min-width: 0;
    }

    #oferta .realizacje-tekst {
        flex: 1 2 42%;
        min-width: 0;
        padding-left: 1.25rem;
    }
}

@media (max-width: 1024px) {
    #oferta .realizacje-content {
        flex-direction: column;
        align-items: center;
    }

    #oferta .realizacje-slider-container,
    #oferta .realizacje-tekst {
        width: 100%;
        flex: 0 1 auto;
    }

    #oferta .realizacje-tekst {
        padding-left: 0;
    }

    /* Poprawka dla modali, żeby tekst rozciągał się na całą szerokość */
    .c-modal-grid,
    #cemetery-modal .c-modal-grid,
    #pricing-details-modal .c-modal-grid {
        grid-template-columns: 1fr;
    }
}
.usluga-icon:hover {
    background-color: #ebebeb;
    box-shadow: 0 0 20px rgba(230, 194, 126, 0.6);
    transform: translateY(-5px);
}
.img-comp-slider:hover {
    background-color: var(--primary-gold-dark);
}
.img-comp-container:hover .img-comp-slider {
    box-shadow: 0 0 20px rgba(230, 194, 126, 0.8);
}
.img-comp-container:hover .img-comp-slider:hover {
    box-shadow: 0 0 25px rgba(212, 174, 102, 0.9);
}
.services-v2-section {
    background-color: var(--white);
}
.services-v2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.service-v2-card {
    padding: 20px;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: transparent;
}
.service-v2-card:hover {
    background-color: var(--text-gray);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(230, 194, 126, 0.4);
}
.mini-icon-box {
    float: left;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.service-v2-card:hover .mini-icon-box {
    background-color: #ebebeb;
    box-shadow: 0 0 15px rgba(230, 194, 126, 0.6);
}
.mini-icon-box img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}
.service-v2-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}
.service-v2-desc {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
}
.service-v2-content::after {
    content: "";
    display: table;
    clear: both;
}
#typy-uslug {
    background-color: var(--bg-dark);
    color: var(--white);
}
.realizations-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.realization-row {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
}
.realization-row.reverse {
    flex-direction: row-reverse;
}
.realization-visual {
    flex: 1.2;
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}
.realization-visual-gallery {
    flex: 0 1 auto;
    width: clamp(320px, 44vw, 600px);
    min-width: 300px;
    max-width: 600px;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.realization-info {
    flex: 1;
}

/* Przed breakpointem 1024px galeria zwęża się ~4x wolniej niż kolumna z tekstem */
@media screen and (min-width: 1025px) {
    .realization-visual-gallery {
        width: clamp(300px, 42vw, 600px);
        aspect-ratio: 3/4;
    }

    .realization-info {
        flex: 1 4 0;
        min-width: 0;
    }
}

.realization-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}
.realization-info h3::after, .realizacje-tekst h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
}
.realization-row.reverse .realization-info h3::after {
    left: auto;
    right: 0;
    transform: none;
}
.realization-row.reverse .realization-info {
    text-align: right;
}
.realization-info p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 25px;
}
.static-img-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.static-img-hover:hover img {
    transform: scale(1.05);
}
.realizations-footer-links {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 50px;
}
.footer-divider {
    width: 1px;
    height: 50px;
    background-color: #ddd;
}
.pricing-section {
    background-color: var(--bg-dark);
    color: var(--white);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}
.pricing-grid > .pricing-card:nth-child(1),
.pricing-grid > .pricing-card:nth-child(3) {
    grid-row: 1;
    align-self: stretch;
}
.pricing-grid > .pricing-card:nth-child(2) {
    grid-row: 2;
    grid-column: 2;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    color: var(--text-gray);
}
.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 25px rgba(230, 194, 126, 0.3);
    border-color: var(--primary-gold);
}
.pricing-card.featured {
    border: 2px solid var(--primary-gold);
    z-index: 2;
}
.pricing-card.featured .card-body {
    padding: 60px 30px;
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}
.card-header {
    background-color: var(--text-gray);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
}
.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.featured .card-header {
    background-color: var(--primary-gold-dark);
}
.card-body {
    padding: 40px 30px;
    text-align: center;
    flex-grow: 1;
}
.price {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 20px;
}
.price span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    line-height: 1;
}
.price-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    min-height: 60px;
}
.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background: var(--primary-gold);
    color: var(--white);
    padding: 5px 20px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    width: 100%;
    text-align: center;
}
.cemeteries {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.group-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}
.group-title span {
    color: var(--primary-gold);
    font-size: 1.2rem;
}
.cemetery-item:hover {
    background-color: var(--white);
    border-left-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(230, 194, 126, 0.2);
    color: var(--primary-gold-dark);
    transform: translateY(-3px);
}
.pin {
    width: 8px;
    height: 8px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}
.cemetery-item:hover .pin {
    background-color: var(--primary-gold);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(230, 194, 126, 0.2);
}
#cemeteries-warszawa::before {
    content: "WARSZAWA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0,0,0,0.02); /* Bardzo subtelny napis w tle */
    z-index: 0;
    pointer-events: none;
    letter-spacing: 20px;
}
#cemeteries-okolice::before {
    content: "OKOLICE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0,0,0,0.02); /* Bardzo subtelny napis w tle */
    z-index: 0;
    pointer-events: none;
    letter-spacing: 20px;
}
.cemeteries-container {
    position: relative;
    z-index: 1;
}
#kontakt {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.white-text { color: var(--white); }
.light-text { color: #ccc; margin-bottom: 40px; }
.contact-details-v2 {
    list-style: none;
    padding: 0;
}
.contact-detail {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 194, 126, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}
.contact-detail:hover .contact-icon {
    background: var(--primary-gold);
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 15px rgba(230, 194, 126, 0.5);
}
.contact-text small {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 1px;
}
.contact-text a {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
}
.contact-form-box {
    background: var(--text-gray);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.form-control::placeholder {
    color: #999;
}
.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(230, 194, 126, 0.3);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}
.btn:hover {
    box-shadow: 0 0 20px rgba(230, 194, 126, 0.6);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white) !important;
    transition: background-color 5000000s ease-in-out 0s;
    caret-color: var(--primary-gold);
}
.form-control:-webkit-autofill {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #999 !important;
}
.form-control:focus:-webkit-autofill {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 15px rgba(230, 194, 126, 0.3) !important;
}
.ts-nav-contact {
    display: flex;
    gap: 15px;
    margin-top: 0px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ts-nav-contact a {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ts-nav-contact a svg {
    width: 56px;
    height: 56px;
    display: block;
}
.ts-nav-contact a:hover {
    color: var(--primary-gold);
    background: rgba(230, 194, 126, 0.12);
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 194, 126, 0.35);
}
html {
    margin-top: 0 !important;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}
.c-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.5s;
}
.c-modal.active {
    visibility: visible;
    pointer-events: auto;
}
.c-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity, backdrop-filter;
}
.c-modal.active .c-modal-overlay {
    opacity: 1; /* Płynne ujawnienie blura i koloru */
}
.c-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 110;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.c-modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary-gold);
}
.c-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}
.c-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% 50%;
    min-height: 400px;
}
.c-modal-text {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.c-modal-text h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-gold);
    display: inline-block;
}
.c-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 30px;
}
.c-modal-body p { margin-bottom: 15px; }
.c-modal-content {
    position: relative;
    z-index: 10;
    background: var(--white);
    width: 950px;
    height: 650px;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition:
            transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}
.c-modal.active .c-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}
.gallery-wide .c-modal-content {
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    width: 90vw !important;
    height: 85vh !important;
}
.gallery-header {
    padding: 30px 40px 10px;
    background: var(--white);
    z-index: 5;
}
.gallery-header h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.gallery-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 40px 40px;
}
.gallery-scroll-area::-webkit-scrollbar { width: 8px; }
.gallery-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; }
.gallery-scroll-area::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 10px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 2px solid transparent;
}
.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(230, 194, 126, 0.4);
}
.lightbox-top { z-index: 2100; }
.lightbox-content {
    background: var(--white);
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border: 3px solid var(--white);
    border-radius: 4px;
}
.lightbox-overlay { background: rgba(0,0,0,0.95); }
.form-modal-content {
    max-width: 700px;
    background: var(--bg-dark); /* Ciemne tło zgodnie z Twoją prośbą */
    color: var(--white);
}
.form-header h3 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 10px;
}
.gform_wrapper.gravity-theme .gform_body {
    background: transparent !important;
}
.phone-icon{
    height: 30px;
}
.mail-icon{
    height: 25px;
}
.phone-button{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.lightbox-top .c-modal-content {
    width: 800px !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 90vh;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;

}
.lightbox-top .c-modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid var(--white); /* Grubsza biała ramka dla elegancji */
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);

}
.c-modal-text,
.gallery-scroll-area,
.form-modal-inner {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) #f1f1f1;
}
.lightbox-top .c-modal-close {
    background: var(--primary-gold) !important;
    color: var(--white) !important;
    top: -15px;
    right: -15px;
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 28px;
    line-height: 40px;
    border-radius: 50%;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.lightbox-top .c-modal-close:hover {
    background: var(--primary-gold-dark) !important;
    transform: scale(1.1) rotate(90deg);
}
#cemetery-modal .c-modal-content {
    width: 950px;
    height: 650px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#cemetery-modal .c-modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 100%;
    width: 100%;
}
#pricing-details-modal .c-modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 100%;
    width: 100%;
}
#cemetery-modal .c-modal-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#cemetery-modal .c-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#cemetery-modal .c-modal-text {
    padding: 0;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}
#cemetery-modal .c-modal-close {
    background: rgba(255, 255, 255, 0.9);
    top: 20px;
    right: 20px;
}
.c-modal-text::-webkit-scrollbar,
.gallery-scroll-area::-webkit-scrollbar,
.form-modal-inner::-webkit-scrollbar {
    width: 8px;
}
.c-modal-text::-webkit-scrollbar-track,
.gallery-scroll-area::-webkit-scrollbar-track,
.form-modal-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.c-modal-text::-webkit-scrollbar-thumb,
.gallery-scroll-area::-webkit-scrollbar-thumb,
.form-modal-inner::-webkit-scrollbar-thumb {
    background-color: var(--primary-gold);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 80px;
    cursor: pointer;
    z-index: 3000;
    transition: all 0.3s ease;
    padding: 20px;
    user-select: none;
}
.lb-nav:hover {
    color: var(--white);
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 0 15px rgba(230, 194, 126, 0.8);
}
.lb-prev {
    left: 30px;
}
.lb-next {
    right: 30px;
}
.list-grid.is-expanded {
    max-height: 2000px;
}
.cemetery-group {
    position: relative;
    margin-bottom: 50px;
}
.grid-wrapper {
    position: relative !important;
    display: block !important;
    max-height: 140px;
    overflow: hidden !important;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.grid-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #f9f9f9 90%) !important;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s;
}
.expand-container {
    text-align: center;
    margin-top: 20px;
}
.btn-expand {
    background: none;
    border: none;
    color: var(--primary-gold-dark);
    font-weight: 700;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    transition: color 0.3s ease;
}
.btn-expand:hover {
    color: var(--text-dark);
}
.btn-expand svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s ease;
}
.btn-expand.is-active svg {
    transform: rotate(180deg);
}

.grid-wrapper.is-expanded::after {
    opacity: 0 !important;
}
.c-modal-body h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 25px 0 10px 0;
    font-weight: 700;
    text-transform: none;
    border-left: 3px solid var(--primary-gold);
    padding-left: 10px;
}
.c-modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: none;
}
.c-modal-body li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 15px;
}
.c-modal-body li::before {
    content: "•";
    color: var(--primary-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.c-modal-body h4:first-child {
    margin-top: 0;
}
#cemetery-modal #modal-title {
    padding: 50px 50px 10px 50px;
    margin: 0;
}
#cemetery-modal .c-modal-body {
    padding: 20px 50px 120px 50px;
    overflow-y: auto;
    flex: 1;
}
#cemetery-modal .c-modal-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 50px 30px 50px;
    display: flex;
    justify-content: center;
    z-index: 30;
    background: linear-gradient(to top,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}
#cemetery-modal .c-modal-actions .btn {
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(230, 194, 126, 0.4);
    min-width: 250px;
}
.actual-form-container .gform_wrapper {
    display: block !important;
    visibility: visible !important;
}
.gform_ajax_spinner {
    filter: invert(1);
    margin-left: 10px;
}
#order-form-modal .gfield_label {
    color: var(--primary-gold) !important;
}
#order-form-modal .form-modal-content {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
}
#order-form-modal .form-header h3 {
    color: var(--text-dark);
    font-weight: 700;
}
#order-form-modal .form-header p {
    color: var(--text-gray);
}
#order-form-modal .gform_wrapper.gravity-theme .gfield_label {
    color: var(--text-dark) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}
#order-form-modal .gform_wrapper.gravity-theme input[type=text],
#order-form-modal .gform_wrapper.gravity-theme input[type=email],
#order-form-modal .gform_wrapper.gravity-theme input[type=tel],
#order-form-modal .gform_wrapper.gravity-theme input[type=url],
#order-form-modal .gform_wrapper.gravity-theme select,
#order-form-modal .gform_wrapper.gravity-theme textarea {
    background-color: #fcfcfc !important;
    border: 1px solid #d1d1d1 !important;
    color: var(--text-dark) !important;
    padding: 14px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    resize: vertical !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px !important;
    max-height: 300px !important;
    box-sizing: border-box !important;
}
#order-form-modal .gform_wrapper.gravity-theme input:focus,
#order-form-modal .gform_wrapper.gravity-theme textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 3px rgba(230, 194, 126, 0.2) !important;
    outline: none !important;
}
#order-form-modal .gform_wrapper.gravity-theme .gchoice_label {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
}
#order-form-modal .gform_wrapper.gravity-theme legend.gfield_label {
    color: var(--text-dark) !important;
    padding-bottom: 10px !important;
}
#order-form-modal .gform_wrapper.gravity-theme .gform_button {
    background-color: var(--primary-gold) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
}
#order-form-modal .gform_wrapper.gravity-theme .gform_button:hover {
    background-color: var(--primary-gold-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(230, 194, 126, 0.3) !important;
}
#order-form-modal .gfield_description {
    color: #777 !important;
    font-size: 12px !important;
    padding-top: 4px !important;
}
#order-form-modal .gfield_validation_message {
    color: #d93025 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-top: 5px !important;
}
#order-form-modal .c-modal-close {
    background: #f0f0f0;
    color: var(--text-dark);
}
#order-form-modal .c-modal-close:hover {
    background: var(--primary-gold);
    color: #fff;
}
#order-form-modal .gfield_checkbox,
#order-form-modal .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 15px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}
#order-form-modal .gchoice {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    align-content: flex-start !important;
}
#order-form-modal .gfield-choice-input {
    margin-top: 4px !important;
    margin-right: 8px !important;
    flex-shrink: 0;
}
#order-form-modal .gform-field-label--type-inline {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--text-dark) !important;
    cursor: pointer;
    font-weight: 500 !important;
}
#order-form-modal .gfield {
    margin-bottom: 15px !important;
}
#order-form-modal #field_2_16 .gfield_radio .gchoice:last-child {
    grid-column: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}
#order-form-modal .gchoice_other_control {
    margin-top: 8px !important;
    margin-left: 28px !important;
    width: calc(100% - 30px) !important;
    max-width: 250px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    flex-basis: 100% !important;
    height: 36px !important;
    font-size: 13px !important;
}
#order-form-modal .gchoice_other_control:disabled {
    background-color: #f2f2f2 !important;
    color: #bbbbbb !important;
    border-color: #eeeeee !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}
#order-form-modal .gchoice_other_control:not(:disabled) {
    background-color: #ffffff !important;
    border-color: var(--primary-gold) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--primary-gold) !important;
}
#pricing-details-modal .c-modal-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, white 60%, transparent 100%);
    z-index: 100;
}

#pricing-details-modal .c-modal-body {
    padding-bottom: 100px;
}
#pricing-modal-body ul {
    list-style: none;
    padding-left: 0;
}
.price-desc li,
#pricing-modal-body li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.price-desc li::before,
#pricing-modal-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}
#pricing-modal-text-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}
#pricing-modal-title {
    padding: 40px 40px 10px 40px;
    margin: 0;
}
#pricing-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 40px 100px 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) #f1f1f1;
}
#pricing-modal-text-panel .c-modal-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 40px 20px 40px;
    display: flex;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    background: linear-gradient(to top,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0) 100%
    );
}
#pricing-modal-text-panel .c-modal-actions .btn {
    pointer-events: auto;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(230, 194, 126, 0.4);
}
#pricing-modal-body::-webkit-scrollbar {
    width: 6px;
}
#pricing-modal-body::-webkit-scrollbar-thumb {
    background-color: var(--primary-gold);
    border-radius: 10px;
}
.price-special-info {
    color: #bbb;
    font-size: 16px;
}




/* Kontener kart - wyrównujemy elementy do środka w pionie */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center; /* Kluczowe: centruje karty boczne względem środkowej */
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Standardowa karta */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    color: var(--text-gray);

    /* Dodajemy stałą wysokość dla kart bocznych */
    height: 100%;
    min-height: 700px; /* Dostosuj tę wartość do ilości treści */
}

/* Karta wyróżniona (środkowa) */
.pricing-card.featured {
    border: 2px solid var(--primary-gold);
    z-index: 2;
    /* Skalowanie zamiast sztywnej wysokości sprawia, że jest o ~20% większa wizualnie */
    transform: scale(1.15);
    min-height: 750px; /* Może być nieco wyższa bazowo */
}

/* Poprawka dla zachowania na hover, by nie "skakała" za mocno */
.pricing-card.featured:hover {
    transform: scale(1.18) translateY(-10px);
}

/* Wnętrze karty - sprawiamy, by przyciski zawsze były na dole */
.card-body {
    padding: 40px 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex-grow: 1; /* To sprawi, że opis zajmie całą wolną przestrzeń, spychając przyciski na dół */
    text-align: left; /* Listy z punktami wyglądają lepiej wyrównane do lewej */
}

.card-buttons {
    margin-top: auto; /* Gwarantuje, że przyciski zawsze będą na samym dole karty */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- POPRAWKA WYSOKOŚCI PÓL --- */

/* Resetujemy min-height dla zwykłych pól tekstowych, by nie miały 100px (wysokość textarea) */
#order-form-modal .gform_wrapper.gravity-theme input[type=text],
#order-form-modal .gform_wrapper.gravity-theme input[type=email],
#order-form-modal .gform_wrapper.gravity-theme input[type=tel],
#order-form-modal .gform_wrapper.gravity-theme select {
    min-height: 0 !important; /* Usuwa wymuszone 100px */
    height: 45px !important;   /* Standardowa, estetyczna wysokość */
}

/* Zachowujemy wysokość tylko dla obszarów tekstowych (wiadomość) */
#order-form-modal .gform_wrapper.gravity-theme textarea {
    min-height: 120px !important;
}

/* --- POPRAWKA POLA WYBORU (RADIO) I "POZOSTAŁE" --- */

/* Kontener dla opcji radio - pozwalamy na zawijanie */
#order-form-modal .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    align-items: start !important;
}

/* Specyficzne ustawienie dla elementu "Inne / Pozostałe" */
#order-form-modal .gchoice {
    display: flex !important;
    flex-wrap: wrap !important; /* Pozwala polu tekstowemu spaść niżej */
    align-items: center !important;
}

/* Stylizacja pola tekstowego "Inne" (Other) */
#order-form-modal .gchoice_other_control {
    flex-basis: 100% !important; /* Wymusza przejście do nowej linii */
    margin-left: 0 !important;   /* Resetujemy margines lewy */
    margin-top: 10px !important; /* Odstęp od kółka radio */
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 0 !important;
}

/* Wyrównanie kółka radio i etykiety, żeby były obok siebie na górze */
#order-form-modal .gfield-choice-input {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#order-form-modal .gform-field-label--type-inline {
    margin-bottom: 0 !important;
    display: inline-block !important;
}

/* --- POPRAWKA POLA DATY (JEŚLI UŻYWASZ DATEPICKERA GF) --- */
#order-form-modal .gfield_time_header,
#order-form-modal .gfield_date_header {
    display: none !important; /* Ukrywa zbędne nagłówki wewnątrz pól daty */
}

/* Jeśli to pole daty z ikonką kalendarza */
#order-form-modal .ginput_container_date {
    display: flex !important;
    align-items: center;
}

#order-form-modal img.ui-datepicker-trigger {
    width: 20px;
    height: 20px;
    margin-left: -30px; /* Ikona wewnątrz pola */
    z-index: 10;
    cursor: pointer;
}

/* 1. Ustawiamy główny kontener na 3 kolumny */
#order-form-modal .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    position: relative !important; /* Ważne dla pozycjonowania pola 'Inne' */
    padding-bottom: 60px !important; /* Robimy miejsce na dole na pole tekstowe */
}

/* 2. Standardowe opcje radio - upewniamy się, że są w swoich komórkach */
#order-form-modal .gchoice {
    display: flex !important;
    align-items: center !important;
}

/* 3. Wyjmujemy pole tekstowe "Inne" z siatki komórki i pozycjonujemy je pod spodem */
#order-form-modal .gchoice_other_control {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important; /* Rozciąga się na całą szerokość modala */
    max-width: 100% !important;
    margin: 0 !important;
    height: 40px !important;
    min-height: 0 !important;
}

/* 4. Specyficzna poprawka dla Gravity Forms - usuwamy marginesy, które mogą przesuwać radio */
#order-form-modal .gchoice_other {
    display: flex !important;
    align-items: center !important;
}

/* 5. Responsywność - na mobile zmieniamy układ na jedną kolumnę */


/* Dodatkowo: poprawka dla pól daty i tekstowych (zbyt wysokie) */
#order-form-modal .gform_wrapper.gravity-theme input[type=text]:not(.gchoice_other_control),
#order-form-modal .gform_wrapper.gravity-theme input[type=email],
#order-form-modal .gform_wrapper.gravity-theme input[type=tel],
#order-form-modal .gform_wrapper.gravity-theme input[type=date],
#order-form-modal .gform_wrapper.gravity-theme select {
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
}
#realization_3_before{
    transform: scale(1.25);
    object-position: -22px 45px;
}
#realization_3_after{
    transform: scale(1.25);
    object-position: -8px center;
}
@media screen and (min-width: 1025px) {
    .main-nav {
        display: block !important;
        position: static !important;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 30px;
        padding: 0;
    }
}


/* ==========================================================================
   STRUKTURA RESPONSIVE (BREAKPOINTS) - T3 CHAT TEMPLATE
   ========================================================================== */

/* 1. DUŻE EKRANY / DESKTOP (Domyślne style - już je masz w kodzie)
   Zakres: Powyżej 1201px
   -------------------------------------------------------------------------- */


/* 2. MAŁE LAPTOPY / DUŻE TABLETY (Landscape)
   Zakres: 993px - 1200px
   Zastosowanie: Korekta szerokości kontenerów, lekkie zmniejszenie odstępów.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .logo a {
        font-size: 40px;
        letter-spacing: 14px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .main-nav ul {
        gap: 22px;
    }

    .services-v2-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 1024px) {
    .list-grid {
        grid-template-columns: 1fr; /* Jedna kolumna na tabletach */
        max-height: none !important;
    }
    .grid-wrapper {
        max-height: 380px; /* Trzy rzędy widoczne domyślnie */
    }

    /* Poprawka dla modali, żeby tekst rozciągał się na całą szerokość */
    .c-modal-grid,
    #cemetery-modal .c-modal-grid,
    #pricing-details-modal .c-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. TABLETY (Landscape / IPad Pro)
   Zakres: 769px - 1024px
   Zastosowanie: Moment, w którym nawigacja zmienia się w hamburgera,
   zmiana układu Hero i siatek z 3-4 kolumn na 2 kolumny.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .hero-content-card {
        border-radius: var(--radius);
        text-align: center;
        align-items: center;
    }
    .hero-image {
        display: none;
    }
    #order-form-modal .gfield_checkbox,
    #order-form-modal .gfield_radio {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #cemetery-modal .c-modal-actions {
        padding: 20px;
        background: white;
    }
    #cemetery-modal .c-modal-body {
        padding-bottom: 100px;
    }
    .c-modal-content, .gallery-wide .c-modal-content {
        width: 95vw !important;
        height: 80vh !important;
    }
    .lightbox-top .c-modal-content {
        width: 95vw !important;
    }
    .ts-nav-contact {
        justify-content: center;
        border-top: none;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-info {
        text-align: center;
    }
    .contact-detail {
        justify-content: center;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-15px);
    }
    .realization-row, .realization-row.reverse {
        flex-direction: column;
        text-align: center !important;
        gap: 30px;
    }
    .realization-info,
    .realization-row.reverse .realization-info {
        text-align: center !important;
    }
    .realization-visual-gallery {
        width: min(100%, 420px);
        aspect-ratio: 3 / 4;
        max-height: none;
    }
    .realization-visual-gallery .comparison-wrapper,
    .realization-visual-gallery .img-comp-container {
        aspect-ratio: 3 / 4;
    }
    .realization-info h3::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
    .realization-row.reverse .realization-info h3::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    .realizations-footer-links {
        flex-direction: column;
        gap: 20px;
    }
    .footer-divider {
        display: none;
    }
    .services-v2-grid {
        grid-template-columns: 1fr; /* Na mobile jedna kolumna */
        gap: 20px;
    }

    .service-v2-card {
        padding: 15px 10px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: stretch;
    }
    .pricing-grid > .pricing-card:nth-child(1),
    .pricing-grid > .pricing-card:nth-child(3) {
        grid-row: auto;
    }
    .pricing-grid > .pricing-card:nth-child(2) {
        grid-row: auto;
        grid-column: auto;
    }
    .pricing-card, .pricing-card.featured {
        min-height: auto;
        transform: none !important;
        height: auto;
    }
    .site-header {
        padding: 12px 0;
    }
    .header-flex {
        min-height: 64px;
    }
    .logo a {
        font-size: 34px;
        letter-spacing: 10px;
    }
    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 20px;
        right: 20px;
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 1001;
    }
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }
    .main-nav li,
    .main-nav a,
    .main-nav .btn {
        width: 100%;
    }
    .main-nav a {
        min-height: 48px;
        text-align: center;
    }
    .main-nav a:not(.btn) {
        border-radius: 999px;
        background: var(--bg-light);
        padding: 12px 16px;
    }
    .main-nav a:not(.btn):hover {
        color: var(--primary-gold-dark);
        background: #f4e9d5;
    }

    .hero-grid, .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-content h1 { font-size: 2rem; }

    .contact-wrapper { padding: 30px 20px; }
    .realizacje-slider-container .img-comp-container {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    #realization_3_before,
    #realization_3_after {
        transform: none !important;
        object-position: center center !important;
    }
    #pricing-modal-text-panel .c-modal-actions {
        padding: 20px;
        background: white; /* Pełne białe tło na mobile dla czytelności */
    }
    .list-grid {
        grid-template-columns: 1fr;
        max-height: none !important;
    }
    .grid-wrapper {
        max-height: 380px; /* Trzy rzędy na mobile */
    }
    .cemetery-item {
        font-size: 16px;
    }
    .lb-nav {
        font-size: 50px;
        padding: 10px;
    }
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }
    .lightbox-top .c-modal-close {
        /* Na telefonach przesuwamy "X" do środka zdjęcia,
           żeby nie wyszedł poza krawędź ekranu smartfona */
        top: 10px;
        right: 10px;
    }
    .gallery-wide .c-modal-content { width: 95vw; height: 90vh; }
    .gallery-header h3 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .c-modal-grid { grid-template-columns: 1fr; }
    .c-modal-image { display: none !important; }
    .c-modal-text { padding: 30px; }
    .cemetery-item:hover {
        transform: translateY(-5px); /* Na mobile lepiej unosić do góry niż w bok */
    }

    .mail-top {
        display: none; /* Ukrywamy maila na małych telefonach dla oszczędności miejsca */
    }
    .top-bar-flex {
        gap: 10px;
        text-align: center;
        row-gap: 8px;
    }

    .top-contact {
        justify-content: center;
        min-width: 0;
    }

    .top-contact a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ts-nav-contact {
        flex-wrap: wrap;
    }

    .contact-text a {
        font-size: clamp(1.05rem, 5.5vw, 1.6rem);
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


/* 4. MAŁE TABLETY / DUŻE TELEFONY (Portrait)
   Zakres: 481px - 768px
   Zastosowanie: Uproszczenie układów, zmiana wielkości fontów h1/h2,
   dostosowanie sliderów "Przed/Po".
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
            .uslugi-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 0.65rem;
                margin-bottom: 2rem;
            }

            .usluga-icon {
                width: 72px;
                height: 72px;
            }

    .usluga-title {
        font-size: clamp(0.62rem, 2.9vw, 0.72rem);
        line-height: 1.15;
    }
    .hero-grid, .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; flex-direction: column; }
    .hero-content h1 { font-size: 2rem; }

    .hero-grid {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-content-card {
        width: 100%;
        max-width: 100%;
        padding: 28px 18px;
        border-radius: var(--radius);
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        margin: 0 auto;
    }

    .hero-content-card h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.25;
    }

    .hero-content-card p {
        font-size: clamp(0.95rem, 3.8vw, 1.05rem);
        line-height: 1.5;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .phone-button {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .contact-wrapper { padding: 30px 20px; }
    .realizacje-slider-container .img-comp-container {
        height: auto;
        aspect-ratio: 4 / 3;
    }
    #pricing-modal-text-panel .c-modal-actions {
        padding: 20px;
        background: white; /* Pełne białe tło na mobile dla czytelności */
    }
    .list-grid {
        grid-template-columns: 1fr;
        max-height: none !important;
    }
    .grid-wrapper {
        max-height: 380px; /* Trzy rzędy na mobile */
    }
    .cemetery-item {
        font-size: 16px;
    }
    .lb-nav {
        font-size: 50px;
        padding: 10px;
    }
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }
    .lightbox-top .c-modal-close {
        /* Na telefonach przesuwamy "X" do środka zdjęcia,
           żeby nie wyszedł poza krawędź ekranu smartfona */
        top: 10px;
        right: 10px;
    }
    .gallery-wide .c-modal-content { width: 95vw; height: 90vh; }
    .gallery-header h3 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .c-modal-grid { grid-template-columns: 1fr; }
    .c-modal-image { display: none !important; }
    .c-modal-text { padding: 30px; }
    .cemetery-item:hover {
        transform: translateY(-5px); /* Na mobile lepiej unosić do góry niż w bok */
    }
    .top-bar{
        font-size: 12px !important;
    }
    .top-bar img{
        max-width: 15px;
    }
    .top-bar-flex {
        gap: 10px;
        text-align: center;
    }

    .top-contact {
        gap: 15px;
    }
    .top-contact a {
        gap: 5px;
    }

    .mail-top {
        display: none; /* Ukrywamy maila na małych telefonach dla oszczędności miejsca */
    }
    #order-form-modal .gfield_checkbox,
    #order-form-modal .gfield_radio {
        grid-template-columns: 1fr !important; /* Jedna kolumna na telefonie */
    }
}
@media (max-width: 600px) {
    #order-form-modal .gfield_checkbox,
    #order-form-modal .gfield_radio {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    #order-form-modal .gfield_radio {
        grid-template-columns: 1fr !important;
        padding-bottom: 50px !important; /* Mniej miejsca na mobile */
    }

    /* Na mobile opcja "Pozostałe" jest ostatnia, więc pole tekstowe naturalnie siądzie pod nią */
    #order-form-modal .gchoice_other_control {
        position: relative !important; /* Wracamy do normalnego przepływu na mobile */
        margin-top: 10px !important;
    }
}

/* 5. SMARTFONY (Small Mobile)
   Zakres: 0px - 480px
   Zastosowanie: Przyciski na całą szerokość, minimalizacja logo,
   układ jednokolumnowy, redukcja paddingów sekcji.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    .logo a {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .main-nav {
        left: 10px;
        right: 10px;
    }
    .top-bar{
        font-size: 8px !important;
    }
    .usluga-icon {
        width: 62px;
        height: 62px;
    }

    .usluga-title {
        font-size: clamp(0.62rem, 2.9vw, 0.72rem);
        line-height: 1.15;
    }

}

/* Tryb Landscape na telefonach (opcjonalnie, jeśli np. slider tego wymaga) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Poprawki dla telefonów trzymanych poziomo */
}

/* #cennik: stały stopień nachodzenia kart na desktopie (>1024px) */
@media screen and (min-width: 1025px) {
    #cennik .pricing-grid {
        --pricing-overlap: 2%;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        overflow: visible;
        padding-top: 40px;    /* Miejsce na wystającą górę środkowej karty */
        padding-bottom: 40px;
    }

    #cennik .pricing-card {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
    }

    #cennik .pricing-card:not(.featured) {
        margin-top: 40px;
        margin-bottom: 40px;
        z-index: 1;
    }

    #cennik .pricing-card.featured {
        height: auto;
        min-height: calc(100% + 80px);
        transform: none !important;
        z-index: 3;
        align-self: flex-start;
        margin-top: 0;    /* Nie ma marginesów, więc zajmuje pełną wysokość */
        margin-bottom: 0;
    }

    #cennik .pricing-card.featured:hover {
        transform: translateY(-10px) !important;
    }

    #cennik .pricing-grid > .pricing-card:first-child {
        margin-right: calc(var(--pricing-overlap) * -1);
        z-index: 1;
    }

    #cennik .pricing-grid > .pricing-card.featured {
        z-index: 3;
    }

    #cennik .pricing-grid > .pricing-card:last-child {
        margin-left: calc(var(--pricing-overlap) * -1);
        z-index: 1;
    }
}

