/* ==========================================================================
   Smiling Geckos – style frontu
   Czysty CSS, bez buildu. Kolory zaczerpnięte z logo hodowli.
   ========================================================================== */

@font-face { font-family: "Teko"; src: url("../fonts/Teko-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Teko"; src: url("../fonts/Teko-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Teko"; src: url("../fonts/Teko-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
    --bg: #0f0c0b;
    --bg-2: #161210;
    --card: #1c1715;
    --card-2: #251f1b;
    --line: rgba(255, 236, 220, 0.09);
    --line-2: rgba(255, 236, 220, 0.16);
    --text: #f5eee9;
    --muted: #b3a59d;
    --faint: #7d706a;
    --accent: #ff6b2c;
    --accent-2: #ffa24c;
    --accent-soft: rgba(255, 107, 44, 0.14);
    --leaf: #8dc63f;
    --leaf-soft: rgba(141, 198, 63, 0.14);
    --teal: #2f9c9c;
    --danger: #ff5d5d;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.75);
    --wrap: 1180px;
    --font-display: "Teko", "Arial Narrow", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(255, 107, 44, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(141, 198, 63, 0.07), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
h3 { font-size: 1.9rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5em;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--leaf);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Przyciski ---------- */
.btn {
    --btn-bg: var(--card-2);
    --btn-fg: var(--text);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    padding: 0.8em 1.35em;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 600 0.98rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--accent), #ff8a3d);
    --btn-fg: #1a0d06;
    border-color: transparent;
    box-shadow: 0 10px 30px -12px rgba(255, 107, 44, 0.8);
}
.btn-primary:hover { border-color: transparent; box-shadow: 0 14px 34px -10px rgba(255, 107, 44, 0.9); }
.btn-ghost { --btn-bg: transparent; }
.btn-sm { padding: 0.55em 1em; font-size: 0.88rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Nagłówek ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 12, 11, 0.78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(47, 156, 156, 0.6); }
.brand span { font-family: var(--font-display); font-size: 2rem; line-height: 1; padding-top: 0.15em; }
.brand span b { color: var(--leaf); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav > a,
.nav-drop > summary {
    display: inline-flex; align-items: center; gap: 0.35em;
    padding: 0.55em 0.95em; border-radius: 999px;
    color: var(--muted); font-weight: 600; font-size: 0.95rem; text-decoration: none;
    cursor: pointer; list-style: none;
    transition: color 0.15s, background 0.15s;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.main-nav > a:hover,
.nav-drop > summary:hover,
.main-nav > a.active,
.nav-drop.active > summary { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-drop { position: relative; }
.nav-drop > summary svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-drop[open] > summary svg { transform: rotate(180deg); }
.nav-drop .drop-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: 330px; padding: 0.5rem;
    background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.drop-panel a {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.6rem; border-radius: 12px;
    color: var(--text); text-decoration: none;
}
.drop-panel a:hover { background: var(--card-2); color: var(--text); }
.drop-panel img { width: 64px; height: 44px; object-fit: cover; object-position: left center; border-radius: 8px; }
.drop-panel strong { display: block; font-size: 0.95rem; }
.drop-panel small { color: var(--muted); }

.header-cta { margin-left: 0.5rem; }

.mobile-nav { display: none; }

@media (max-width: 920px) {
    .main-nav, .header-cta { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav > summary {
        list-style: none; cursor: pointer; display: grid; place-items: center;
        width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2);
    }
    .mobile-nav > summary::-webkit-details-marker { display: none; }
    .mobile-nav > summary svg { width: 22px; height: 22px; }
    .mobile-nav .mobile-panel {
        position: absolute; left: 0; right: 0; top: 100%;
        padding: 1rem 1.25rem 1.5rem; background: var(--bg-2);
        border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow);
        display: grid; gap: 0.25rem;
    }
    .mobile-panel a { padding: 0.75rem 0.5rem; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
    .mobile-panel .group-label { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--leaf); }
    .brand span { font-size: 1.7rem; }
}

/* ---------- Komunikaty ---------- */
.flashes { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.flash {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.95rem 1.15rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line-2); background: var(--card);
}
.flash::before { content: "ℹ"; font-weight: 700; }
.flash-success { border-color: rgba(141, 198, 63, 0.45); background: var(--leaf-soft); }
.flash-success::before { content: "✓"; color: var(--leaf); }
.flash-error { border-color: rgba(255, 93, 93, 0.5); background: rgba(255, 93, 93, 0.1); }
.flash-error::before { content: "!"; color: var(--danger); }
.flash-warning { border-color: rgba(255, 162, 76, 0.5); background: var(--accent-soft); }
.flash-warning::before { content: "!"; color: var(--accent-2); }

/* ---------- Strona główna: hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { margin: 0.35em 0 0.3em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; }
.hero-facts strong { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; font-weight: 500; color: var(--text); }
.hero-facts span { color: var(--muted); font-size: 0.88rem; }

.hero-art { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.hero-art::before {
    content: ""; position: absolute; inset: -8%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 107, 44, 0.35), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(141, 198, 63, 0.25), transparent 55%);
    filter: blur(30px);
}
.hero-art img {
    position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { width: min(70%, 320px); order: -1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 80%, transparent); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0.2em 0 0; }
.section-head p { margin: 0.5rem 0 0; color: var(--muted); max-width: 36em; }

/* ---------- Karty gatunków ---------- */
.species-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1100px) { .species-grid { grid-template-columns: repeat(2, 1fr); } }
.species-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
    color: var(--text); text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.species-card:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--sc) 60%, transparent); box-shadow: 0 24px 50px -25px color-mix(in srgb, var(--sc) 80%, transparent); }
.species-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.species-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.species-card:hover .media img { transform: scale(1.05); }
.species-card .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.species-card h3 { margin: 0; font-size: 1.85rem; }
.species-card .latin { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.species-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; }
.pill {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.3em 0.75em; border-radius: 999px;
    font-size: 0.8rem; font-weight: 700;
    background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
}
.pill-live { color: var(--leaf); border-color: rgba(141, 198, 63, 0.35); background: var(--leaf-soft); }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.25); }
.arrow-link { font-weight: 700; color: var(--accent-2); }

@media (max-width: 900px) { .species-grid { grid-template-columns: 1fr; } .species-card .media { aspect-ratio: 21 / 9; } }

/* ---------- Cechy ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 1rem; }
.feature:nth-child(2) .icon { background: var(--leaf-soft); color: var(--leaf); }
.feature:nth-child(3) .icon { background: rgba(47, 156, 156, 0.16); color: #5fc9c9; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.7rem; margin-bottom: 0.3em; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* ---------- Blog: karty ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
    color: var(--text); text-decoration: none; transition: transform 0.25s, border-color 0.25s;
}
.post-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line-2); }
.post-card .media { aspect-ratio: 16 / 10; background: var(--card-2); overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .media.placeholder { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255, 107, 44, 0.2), transparent 60%), var(--card-2); }
.post-card .media.placeholder img { width: 80px; height: 80px; border-radius: 50%; opacity: 0.85; object-fit: cover; }
.post-card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.post-card time, .post-meta { font-size: 0.82rem; color: var(--faint); font-weight: 600; letter-spacing: 0.02em; }
.post-card h3 { font-size: 1.75rem; margin: 0; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.post-card .foot { margin-top: auto; padding-top: 0.8rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--faint); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Pasek CTA ---------- */
.cta-band {
    display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border-radius: calc(var(--radius) + 6px);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(255, 107, 44, 0.25), transparent 70%),
        radial-gradient(500px 200px at 100% 100%, rgba(141, 198, 63, 0.18), transparent 70%),
        var(--card);
    border: 1px solid var(--line-2);
}
.cta-band img { width: 88px; height: 88px; border-radius: 50%; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0.3rem 0 0; color: var(--muted); }
.cta-band .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Nagłówek podstron ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.page-head h1 { margin: 0.3em 0 0.15em; }
.page-head p { color: var(--muted); max-width: 40em; font-size: 1.08rem; }

.species-banner {
    position: relative; overflow: hidden;
    margin-top: 1.5rem; border-radius: calc(var(--radius) + 6px);
    /* Proporcje banera = proporcje zdjęć gatunków (1800×568), więc na laptopie/monitorze nic nie jest ucinane.
       Na węższych ekranach działa min-height i zdjęcie przycina się tylko z boku (od strony tekstu). */
    background: #000 var(--img) var(--focus, 0%) center / cover no-repeat;
    aspect-ratio: 1800 / 568;
    min-height: 260px; display: flex; align-items: flex-end;
    border: 1px solid var(--line);
}
.species-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 25%, rgba(0, 0, 0, 0.85) 70%); }
.species-banner .inner { position: relative; z-index: 1; margin-left: auto; width: min(100%, 560px); padding: 2rem 2.25rem; }
.species-banner h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 0.25em 0 0.1em; }
.species-banner .latin { font-style: italic; color: var(--muted); }
.species-banner.text-left::after { background: linear-gradient(270deg, transparent 25%, rgba(0, 0, 0, 0.85) 70%); }
.species-banner.text-left .inner { margin-left: 0; margin-right: auto; }
@media (max-width: 700px) {
    .species-banner { aspect-ratio: auto; min-height: 0; background-size: 180% auto; background-position: var(--focus, 0%) top; padding-top: 34%; }
    .species-banner.text-left::after { background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.95) 65%); }
    .species-banner::after { background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.95) 65%); }
    .species-banner .inner { padding: 1.25rem 1.4rem; }
}

/* ---------- Oferta ---------- */
.offer-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin: 1.75rem 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.45em;
    padding: 0.5em 1em; border-radius: 999px;
    border: 1px solid var(--line-2); color: var(--muted);
    font-weight: 600; font-size: 0.92rem; text-decoration: none; background: transparent;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip.active { color: #1a0d06; background: var(--text); border-color: var(--text); }
.chip .count { font-size: 0.78rem; opacity: 0.7; }
.chip svg { width: 14px; height: 14px; }

.gecko-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }

.gecko-card {
    --hl: var(--accent);
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius); background: var(--card);
    border: 1px solid var(--line); overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gecko-card:hover { transform: translateY(-4px); border-color: var(--hl); box-shadow: 0 22px 50px -24px var(--hl); }
.gecko-card .photo { position: relative; aspect-ratio: 4 / 3; background: var(--card-2); overflow: hidden; display: block; }
.gecko-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gecko-card:hover .photo img { transform: scale(1.06); }
.gecko-card .photo .zoom {
    position: absolute; right: 0.7rem; bottom: 0.7rem; width: 36px; height: 36px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transition: opacity 0.2s;
}
.gecko-card:hover .photo .zoom, .gecko-card .photo:focus-visible .zoom { opacity: 1; }
.gecko-card .photo .zoom svg { width: 18px; height: 18px; }
.gecko-card .no-photo { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: 0.9rem; }
.gecko-card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.gecko-card h3 { font-size: 1.75rem; margin: 0; line-height: 0.95; }
.gecko-card .facts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fact { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.2em 0.6em; border-radius: 8px; background: var(--card-2); font-size: 0.82rem; color: var(--muted); }
.fact svg { width: 13px; height: 13px; }
.fact.male { color: #7cc4ff; }
.fact.female { color: #ff9ed1; }
.gecko-card .price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 0.4rem; }
.price { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--text); }
.deposit { font-size: 0.8rem; color: var(--muted); text-align: right; line-height: 1.3; }
.deposit b { color: var(--accent-2); }

.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span {
    display: flex; align-items: center; justify-content: center; gap: 0.5em;
    padding: 0.7em; border-radius: 12px; border: 1px dashed var(--line-2);
    font-weight: 700; font-size: 0.92rem; color: var(--muted);
    transition: all 0.15s;
}
.pick span::before { content: "+"; font-size: 1.2em; line-height: 1; }
.pick:hover span { color: var(--text); border-color: var(--hl); }
.pick input:checked + span { border-style: solid; border-color: transparent; background: var(--hl); color: #120a06; }
.pick input:checked + span::before { content: "✓"; }
.pick input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.gecko-card.is-picked { border-color: var(--hl); box-shadow: 0 0 0 1px var(--hl), 0 22px 50px -26px var(--hl); }

.gecko-card.reserved .photo img { filter: grayscale(0.85) brightness(0.6); }
.gecko-card.reserved .price { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.ribbon {
    position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1;
    padding: 0.35em 0.8em; border-radius: 999px;
    background: rgba(15, 12, 11, 0.85); border: 1px solid var(--line-2);
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2);
}
.reserved-note { padding: 0.7em; border-radius: 12px; background: var(--card-2); text-align: center; font-size: 0.88rem; color: var(--faint); font-weight: 600; }

.empty {
    padding: 3rem 1.5rem; text-align: center; border-radius: var(--radius);
    border: 1px dashed var(--line-2); color: var(--muted);
}
.empty img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem; opacity: 0.8; }
.empty h3 { color: var(--text); }

/* Pasek "koszyka" rezerwacji */
.cart-bar {
    position: fixed; z-index: 60; left: 50%; bottom: 1.1rem; transform: translate(-50%, 140%);
    width: min(100% - 1.5rem, 720px);
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem 0.7rem 0.7rem 1.3rem; border-radius: 999px;
    background: rgba(28, 23, 21, 0.92); border: 1px solid var(--line-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.9);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.cart-bar { visibility: hidden; }
.cart-bar.visible { transform: translate(-50%, 0); visibility: visible; }
.cart-bar .info { flex: 1; line-height: 1.25; min-width: 0; }
.cart-bar .info strong { display: block; }
.cart-bar .info span { color: var(--muted); font-size: 0.88rem; }
.js .no-js-only { display: none; }
.no-js-submit { margin-top: 2rem; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
    padding: 0; border: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 4, 3, 0.9); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; margin: 0 auto; }
.lightbox figcaption { text-align: center; padding: 0.75rem; font-family: var(--font-display); font-size: 1.6rem; }
.lightbox .close {
    position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-size: 1.4rem; cursor: pointer;
}

/* ---------- Formularze ---------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem);
}
.card h2 { font-size: 2.1rem; }

.field { margin-bottom: 1.15rem; }
.field > label, .field-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field label.required::after { content: " *"; color: var(--accent); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="datetime-local"], input[type="url"],
textarea, select {
    width: 100%;
    padding: 0.8em 1em;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--line-2); border-radius: 12px;
    font: inherit; font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 7em; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .help { margin-top: 0.35rem; font-size: 0.84rem; color: var(--faint); }
.field ul, .form-errors ul { list-style: none; margin: 0.4rem 0 0; padding: 0; color: var(--danger); font-size: 0.86rem; font-weight: 600; }
.has-error input, .has-error textarea, .has-error select { border-color: rgba(255, 93, 93, 0.7); }
.field-checkbox { display: flex; gap: 0.7rem; align-items: flex-start; }
.field-checkbox input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.field-checkbox label { font-weight: 600; }
.field-checkbox .help, .field-checkbox ul { flex-basis: 100%; }
.field-checkbox { flex-wrap: wrap; }
.field-checkbox > div { display: flex; gap: 0.7rem; align-items: flex-start; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Rezerwacja ---------- */
.reserve-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.reserve-layout aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .reserve-layout { grid-template-columns: 1fr; } .reserve-layout aside { position: static; order: -1; } }

.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.85rem; align-items: center; }
.summary-item img, .summary-item .thumb-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--card-2); }
.summary-item strong { display: block; line-height: 1.2; }
.summary-item small { color: var(--muted); }
.summary-item .amount { text-align: right; font-weight: 700; white-space: nowrap; }
.summary-item .amount small { display: block; font-weight: 600; color: var(--accent-2); }
.totals { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.35rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .big { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.totals .deposit-total { color: var(--accent-2); font-weight: 700; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0.9rem; }
.steps li { position: relative; padding-left: 2.6rem; color: var(--muted); font-size: 0.95rem; }
.steps li strong { color: var(--text); display: block; }
.steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2);
    font-weight: 800; font-size: 0.85rem; color: var(--text);
}
.steps li.done::before { content: "✓"; background: var(--leaf); color: #10200a; border-color: transparent; }
.steps li.current::before { background: var(--accent); color: #1a0d06; border-color: transparent; }

.status-hero { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line-2); margin-bottom: 1.5rem; }
.status-hero .icon { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.status-hero h2 { margin: 0; font-size: 2.2rem; }
.status-hero p { margin: 0.2rem 0 0; color: var(--muted); }
.status-pending { background: var(--accent-soft); }
.status-pending .icon { background: var(--accent); color: #1a0d06; }
.status-accepted { background: var(--leaf-soft); }
.status-accepted .icon { background: var(--leaf); color: #10200a; }
.status-declined { background: rgba(255, 93, 93, 0.1); }
.status-declined .icon { background: var(--danger); color: #2a0606; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.25rem; margin: 0; }
.dl dt { color: var(--faint); font-weight: 600; font-size: 0.9rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 0.1rem; } .dl dd { margin-bottom: 0.6rem; } }

/* ---------- Artykuł / treści ---------- */
.prose { font-size: 1.07rem; color: #e9e0da; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.7em; }
.prose li::marker { color: var(--accent-2); font-weight: 700; }

.article-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin: 0.35em 0 0.25em; }
.back-link { display: inline-flex; gap: 0.4em; align-items: center; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back-link:hover { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card-2); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery.single { grid-template-columns: 1fr; }
.gallery.single a { aspect-ratio: auto; }

.comments { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.85rem; }
.comment { display: grid; grid-template-columns: 42px 1fr; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a0d06; background: linear-gradient(135deg, var(--accent-2), var(--leaf)); text-transform: uppercase; }
.comment header { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; }
.comment header time { font-size: 0.8rem; color: var(--faint); }
.comment p { margin: 0.25rem 0 0; color: #e2d8d1; overflow-wrap: anywhere; }

.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px; padding: 0 0.8rem; display: grid; place-items: center;
    border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-weight: 700;
}
.pagination a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.pagination .current { background: var(--text); color: #1a0d06; border-color: var(--text); }
.pagination .disabled { opacity: 0.35; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-tile { display: grid; gap: 0.4rem; padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
a.contact-tile:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-3px); }
.contact-tile .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); margin-bottom: 0.5rem; }
.contact-tile .icon svg { width: 22px; height: 22px; }
.contact-tile strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-tile span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h4 { font-size: 1.5rem; color: var(--text); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--muted); font-size: 0.93rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.1rem 0; font-size: 0.85rem; color: var(--faint); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Strony błędów ---------- */
.error-page { text-align: center; padding: 5rem 0; }
.error-page img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.5rem; }
.error-page .code { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--accent); }

/* ---------- Baner zgody na cookies ---------- */
.cookie-bar {
    position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
    max-width: 640px; margin-inline: auto;
    display: flex; gap: 1rem 1.25rem; align-items: center; flex-wrap: wrap;
    padding: 1rem 1.2rem; border-radius: var(--radius);
    background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    color: var(--muted); font-size: 0.92rem;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.cookie-bar a { color: var(--accent-2); }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--text); }
.prose > h2:first-child { margin-top: 0; }
