:root {
    --bg: #f2f9f2;
    --surface: #ffffff;
    --text: #1f3a2a;
    --muted: #5f7468;
    --primary: #2f855a;
    --primary-dark: #276749;
    --border: #d7e6db;
    --shadow: 0 12px 36px rgba(17, 61, 39, 0.10);
    --radius: 16px;
    --radius-lg: 22px;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Tło: dopasowane do całego ekranu; gdy brak gallery-01.jpg widać gradient zamiast „pustki” */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: #1a2e22;
    position: relative;
    isolation: isolate;
    min-height: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    z-index: -2;
    pointer-events: none;
    background-color: #1a2e22;
    /* Nakładka słabsza — zdjęcie widać wyraźniej, bez „wybielania” */
    background-image:
        linear-gradient(
            165deg,
            rgba(232, 245, 233, 0.28) 0%,
            rgba(210, 230, 215, 0.18) 45%,
            rgba(15, 31, 22, 0.42) 100%
        ),
        url('images/gallery-01.webp'),
        linear-gradient(155deg, #c8e6c9 0%, #2e7d4a 42%, #1a3325 78%, #0f1f16 100%);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section {
    padding: 72px 0;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + max(12px, env(safe-area-inset-top, 0px)));
}

.section-soft {
    background: rgba(234, 245, 238, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

h1, h2, h3 {
    margin: 0 0 16px;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

p {
    margin: 0 0 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(215, 230, 219, 0.85);
    box-shadow: 0 4px 24px rgba(17, 61, 39, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: 0;
    padding: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 24px;
    height: 18px;
}

.menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: clamp(44px, 7vw, auto);
    height: clamp(44px, 7vw, 90px);
    object-fit: contain;
    display: block;
}

.brand-text {
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    font-weight: 700;
    color: var(--primary);
}

/* Strona tytułowa (hero): biały tekst + lekki cień, żeby był czytelny na zdjęciu */
.hero-content h1,
.hero-content .lead,
.hero-content .eyebrow {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Galeria i opinie — tytuł + wstęp na tle zdjęcia (bez kart .card) */
#gallery .container > h2,
#gallery .container > .section-intro,
#reviews .container > h2,
#reviews .container > .section-intro {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Komunikaty pod listą opinii (np. „Brak opinii”) — bez karty, na tle strony */
#reviews .reviews-grid > .muted {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Napisy na kafelkach galerii — wyraźniejszy biały tekst */
#gallery .tile-overlay {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Przycisk „Wyświetl więcej” pod opiniami */
#reviews .reviews-more-wrap .btn {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

#reviews .reviews-more-wrap .btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.hero-image {
    min-height: clamp(240px, 42vw, 380px);
    border-radius: var(--radius);
    border: 1px dashed #94a3b8;
    background-color: var(--surface);
    background-image: url('images/hero.webp');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #ffffff;
    font-weight: 700;
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.lead {
    color: #374151;
    font-size: 1.08rem;
    max-width: 60ch;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #38a169 100%);
    box-shadow: 0 10px 24px rgba(47, 133, 90, 0.30);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
}

.placeholder-card,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.placeholder-card {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    border-style: dashed;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-tile {
    min-height: clamp(190px, 24vw, 220px);
    border-radius: var(--radius);
    border: 1px dashed #94a3b8;
    background-color: var(--surface);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 24px rgba(17, 61, 39, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
    cursor: pointer;
}

.tile-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.55) 100%);
}

.gallery-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(17, 61, 39, 0.14);
}

.section-intro {
    color: var(--muted);
    margin-bottom: 24px;
}

.pricing-placeholder {
    background: #fff;
    border: 1px solid #cfe7d8;
    border-radius: 22px;
    padding: 34px;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 18px 44px rgba(47, 133, 90, 0.14);
}

.pricing-placeholder h3 {
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.2px;
    color: #24543b;
}

.pricing-placeholder p {
    text-align: center;
    font-size: 1.04rem;
}

.pricing-placeholder p strong {
    font-size: 1.08rem;
}

.pricing-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 6px 0 16px;
}

.pricing-badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: #e4f4ea;
    color: #24543b;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-badge-link {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pricing-badge-link:hover {
    color: var(--primary-dark);
}

/* Sekcja odległości */
.distances-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.distances-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.02rem;
    background: #f3fbf6;
    border: 1px solid #cfe7d8;
    table-layout: fixed;
}

.distances-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e0efe5;
    vertical-align: middle;
}

.distances-table tr:nth-child(even) td {
    background: #eaf7ef;
}

.distances-table tr:hover td {
    background: #e2f3e8;
}

.distances-table td:first-child {
    width: 76%;
}

.distances-table td:last-child {
    text-align: right;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #276749;
    white-space: nowrap;
}

.distances-table tr:last-child td {
    border-bottom: 0;
}

.distances-card {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Mobile responsive distances table */
@media (max-width: 600px) {
    .distances-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .distances-table {
        min-width: 500px;
        font-size: 0.95rem;
    }

    .distances-table td {
        padding: 12px 12px;
        white-space: nowrap;
    }

    .distances-table td:first-child {
        font-size: 0.94rem;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .distances-table {
        min-width: 420px;
    }
}

.distances-head {
    padding: 20px 20px 0;
}

.distances-head .section-intro {
    margin-bottom: 14px;
    text-align: center;
}

.distances-head h2 {
    text-align: center;
}

.distances-card .distances-wrap {
    margin-top: auto;
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid #cfe7d8;
}

/* Podstrona regulaminu */
.legal-page.section {
    padding-top: clamp(48px, 7vw, 72px);
    padding-bottom: clamp(48px, 7vw, 72px);
}

.legal-page-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

.legal-page h1 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.2;
    margin: 0 0 14px;
    padding: 0 2px;
}

.legal-page-lead {
    text-align: center;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.legal-page-lead code {
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(232, 245, 233, 0.9);
    border: 1px solid var(--border);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.legal-content {
    margin-top: 8px;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-placeholder {
    font-size: clamp(0.93rem, 2.8vw, 0.98rem);
    line-height: 1.62;
    color: var(--text);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    min-width: 0;
}

.legal-placeholder table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.legal-placeholder pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    border-radius: 10px;
    background: rgba(232, 245, 233, 0.45);
    border: 1px solid var(--border);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0 0 18px;
    white-space: pre-wrap;
    word-break: break-word;
}

.legal-placeholder p {
    margin: 0 0 18px;
}

.legal-placeholder p:last-child {
    margin-bottom: 0;
}

.legal-back {
    margin-top: 28px;
    text-align: center;
    padding: 0 2px;
}

.legal-back .btn {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .distances-table td {
        padding: 12px 10px;
    }

    .distances-table td:first-child {
        font-size: 0.96rem;
    }

    .legal-page-lead {
        text-align: left;
        margin-bottom: 18px;
    }

    .legal-page h1 {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .legal-page.section {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .legal-page-lead code {
        display: inline-block;
        max-width: 100%;
        vertical-align: baseline;
        margin-top: 4px;
    }

    .legal-placeholder p {
        margin-bottom: 14px;
    }

    .legal-back {
        margin-top: 22px;
    }
}

@media (max-width: 520px) {
    .distances-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .distances-table {
        min-width: 270px;
        font-size: 0.95rem;
    }

    .legal-back .btn {
        width: 100%;
    }

    .legal-content {
        border-radius: var(--radius-lg);
    }
}

.main-nav a[aria-current='page'] {
    color: var(--primary-dark);
    text-decoration: none;
}

@media (min-width: 701px) {
    .main-nav a {
        position: relative;
        padding: 6px 2px 8px;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: #2f855a;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.25s ease;
        pointer-events: none;
    }

    .main-nav a:hover::after,
    .main-nav a:focus-visible::after,
    .main-nav a[aria-current='page']::after {
        transform: scaleX(1);
    }
}

.pricing-notice {
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f3fbf6;
    border: 1px solid #cfe7d8;
}

.pricing-notice p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.pricing-notice p:last-child {
    margin-bottom: 0;
}

.pricing-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.pricing-group {
    background: #ffffff;
    border: 1px solid #cfe7d8;
    border-radius: 14px;
    padding: 14px;
}

.pricing-group h4 {
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
    color: #24543b;
    font-size: 1.1rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 1.03rem;
    background: #f3fbf6;
    border: 1px solid #cfe7d8;
    border-radius: 14px;
    overflow: hidden;
}

.pricing-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e0efe5;
}

.pricing-table tr:nth-child(even) td {
    background: #eaf7ef;
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: #276749;
}

.pricing-table tr:last-child td {
    border-bottom: 0;
}

.pricing-footnote {
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}

.card {
    padding: 20px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 61, 39, 0.14);
    border-color: #c9e5d4;
}

.review-form {
    margin-top: 16px;
}

.rating-stars {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-btn {
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: #f59e0b;
    cursor: pointer;
    padding: 0 2px;
}

.star-btn.is-active {
    transform: translateY(-1px);
}

.email-login-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.email-login-form label {
    display: block;
    font-weight: 600;
}

.email-login-form input[type='text'],
.email-login-form input[type='email'] {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.review-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
}

input[type='number'],
textarea,
input[type='file'] {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.reviews-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.reviews-summary {
    margin: 14px 0 16px;
}

.reviews-summary p {
    margin-bottom: 6px;
}

.reviews-toolbar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reviews-sort-label {
    font-weight: 700;
}

.reviews-sort-select {
    min-width: 220px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    font: inherit;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.review-photo {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

.review-comment {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    line-height: 1.55 !important;
    margin: 12px 0 8px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.card.review-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.reviews-grid {
    display: grid !important;
}

.review-card > * {
    min-width: 0 !important;
}

.reviews-more-wrap {
    margin-top: 18px;
    text-align: center;
}

.review-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.stars {
    color: #f59e0b;
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

.form-message {
    min-height: 24px;
    margin-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.map-embed-wrap {
    margin: 8px 0 12px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #cfe7d8;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.map-embed-wrap iframe {
    display: block;
    width: 100%;
    min-height: clamp(220px, 36vw, 320px);
    border: 0;
}

.site-footer {
    padding: 26px 0;
    padding-bottom: max(26px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(215, 230, 219, 0.9);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.lightbox.hidden {
    display: none;
}

.lightbox-image {
    max-width: min(94vw, 1400px);
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Baner zgody na cookies — wysuwa się od dołu ekranu */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 280;
    transform: translateY(110%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding-top: 8px;
    pointer-events: none;
    visibility: hidden;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.cookie-consent.is-leaving {
    transform: translateY(110%);
    pointer-events: none;
}

.cookie-consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(207, 231, 216, 0.95);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -14px 44px rgba(17, 61, 39, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cookie-consent-text {
    flex: 1 1 260px;
    min-width: 0;
}

.cookie-consent-title {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.cookie-consent-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-consent-actions {
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    min-width: 140px;
}

body.cookie-banner-open {
    padding-bottom: var(--cookie-banner-pad, 0px);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition-duration: 0.01ms;
    }

    .gallery-tile,
    .card,
    .reveal-on-scroll {
        transition-duration: 0.01ms;
    }
}

@media (max-width: 520px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* Tablet / średnie ekrany: opinie 2 kolumny zamiast 3 */
@media (max-width: 1100px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        background-attachment: scroll, scroll, scroll;
    }
}

/* iOS / małe ekrany: fixed background bywa problematyczny — normalny scroll obrazu */
@media (max-width: 900px) {
    body::before {
        background-attachment: scroll, scroll, scroll;
    }

    .hero-grid,
    .reviews-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Galeria: 2 kolumny na tablecie (601–900px); wężej — jedna kolumna poniżej */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section {
        padding: 56px 0;
    }

    .nav-wrap {
        min-height: 64px;
        gap: 14px;
    }

    .main-nav {
        justify-content: flex-end;
        gap: 12px;
    }

    .pricing-placeholder {
        padding: 22px;
        border-radius: var(--radius-lg);
    }

    .pricing-premium-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        border-radius: var(--radius-lg);
    }
}

/* Wąski telefon: galeria jedna kolumna, większe miniatury */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-tile {
        min-height: 200px;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 700px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .nav-wrap {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 10px 12px;
        min-height: auto;
        padding: 10px 0 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 1;
        grid-row: 1;
        min-width: 44px;
        min-height: 44px;
        padding: 11px;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 4px;
        padding: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.96);
        border: none;
        border-top: 1px solid rgba(207, 231, 216, 0.95);
        border-bottom: 1px solid rgba(207, 231, 216, 0.95);
        box-shadow: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 14px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px));
        border-radius: 0;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text);
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(215, 230, 219, 0.7);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a:hover {
        color: var(--primary-dark);
        background: rgba(232, 245, 233, 0.5);
    }

    .hero-grid {
        gap: 18px;
    }

    .lead {
        font-size: 1rem;
        max-width: 100%;
    }

    .section-intro,
    .pricing-notice p {
        font-size: 0.98rem;
    }

    .pricing-placeholder {
        border-radius: 16px;
        padding: 18px;
    }

    .pricing-group {
        padding: 10px;
    }

    .pricing-table {
        font-size: 0.97rem;
    }

    .pricing-table td {
        padding: 11px 9px;
    }

    .card {
        padding: 16px;
    }

    .reviews-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-sort-select {
        min-width: 100%;
    }
}

@media (max-width: 520px) {
    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: clamp(1.65rem, 7.5vw, 2rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.35rem, 6.5vw, 1.65rem);
        line-height: 1.2;
    }

    .section-intro {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
        padding: 14px 18px;
        border-radius: 14px;
    }

    .btn-primary {
        box-shadow: 0 8px 20px rgba(47, 133, 90, 0.25);
    }

    .card,
    .reviews-summary,
    .reviews-toolbar,
    .review-auth,
    .review-form {
        border-radius: var(--radius-lg);
    }

    .pricing-meta {
        gap: 8px;
    }

    .pricing-badge {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .map-embed-wrap {
        border-radius: 14px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .reviews-sort-select {
        min-height: 48px;
        font-size: 1rem;
    }

    .site-footer {
        text-align: center;
        font-size: 0.92rem;
    }
}

@media (min-width: 521px) and (max-width: 700px) {
    .hero-grid {
        gap: 22px;
    }
}




