:root {
    --granat: #131b1d;
    --granat-2: #1a2427;
    --granat-3: #223034;
    --linia: rgba(217, 205, 181, .16);
    --linia-2: rgba(255, 255, 255, .08);
    --zloto: #b8a283;
    --zloto-j: #d9cdb5;
    --krem: #f5f3e9;
    --szary: #9aa4b2;
    --zielony: #2fbf71;
    --czerwony: #ff5a5f;
    --pomarancz: #f0a93b;
    --serif: 'Tenor Sans', Georgia, serif;
    --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --pasek: 68px;
    --cien: 0 24px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--granat);
    color: var(--krem);
    font: 15px/1.5 var(--sans);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'tnum' 1;
}
a { color: var(--zloto-j); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.link { background: none; border: 0; padding: 0; color: var(--zloto-j); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- marka ---------- */
.marka { display: flex; flex-direction: column; line-height: 1; }
.marka-nazwa { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .14em; text-transform: uppercase; color: var(--krem); }
.marka-pod { margin-top: 6px; font-size: 10.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--zloto); }
.marka-mala .marka-nazwa { font-size: 20px; }

/* ---------- przyciski ---------- */
.przycisk {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
.przycisk:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.przycisk:disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.4); }
.przycisk-zloty {
    background: linear-gradient(135deg, #ebe3d2 0%, #cbbb9c 45%, #9a876f 100%);
    color: #1d1a14;
    box-shadow: 0 10px 30px rgba(184, 162, 131, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.przycisk-zloty:hover:not(:disabled) { box-shadow: 0 14px 40px rgba(184, 162, 131, .42), inset 0 1px 0 rgba(255, 255, 255, .5); }
.przycisk-obrys { background: transparent; border-color: rgba(217, 205, 181, .5); color: var(--zloto-j); }
.przycisk-obrys:hover:not(:disabled) { background: rgba(217, 205, 181, .1); }
.przycisk-cichy { background: rgba(255, 255, 255, .06); border-color: var(--linia-2); color: var(--krem); }
.przycisk-cichy:hover { background: rgba(255, 255, 255, .1); }
.przycisk-pelny { width: 100%; }
.przycisk-duzy { width: 100%; min-height: 66px; flex-direction: column; gap: 2px; font-size: 17px; border-radius: 14px; }
.przycisk-duzy small { font-size: 13px; font-weight: 500; opacity: .75; }

/* ---------- formularze ---------- */
.pole { display: block; margin-bottom: 16px; }
.pole span { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 243, 233, .6); }
.pole input, .wlasna input {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    color: var(--krem); font: 500 16px var(--sans); outline: none; transition: border-color .2s, background .2s;
}
.pole input:focus, .wlasna input:focus { border-color: var(--zloto); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(184, 162, 131, .15); }
.komunikat { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.komunikat-blad { background: rgba(255, 90, 95, .14); border: 1px solid rgba(255, 90, 95, .4); color: #ffd3d4; }

/* ========== EKRAN WEJSCIA ========== */
.strona-wejscie { min-height: 100vh; }
.wejscie { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.wejscie-tlo {
    position: absolute; inset: -4%; background-size: cover; background-position: center 40%;
    animation: kenburns 38s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.wejscie-cien {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 21, 23, .92) 0%, rgba(14, 21, 23, .72) 42%, rgba(14, 21, 23, .25) 75%, rgba(14, 21, 23, .45) 100%),
        linear-gradient(0deg, rgba(14, 21, 23, .85) 0%, rgba(14, 21, 23, 0) 45%);
}
.wejscie-uklad {
    position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
    display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 60px; align-items: center;
    max-width: 1280px; margin: 0 auto; padding: 48px 48px;
}
.wejscie-uklad-waski { grid-template-columns: 440px; justify-content: center; }
.wejscie-hero { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0 24px; animation: wjazd .9s .1s both; }
.wejscie-hero h1 {
    margin: auto 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.01em;
}
.wejscie-hero h1 em { font-style: italic; color: var(--zloto-j); }
.wejscie-lead { max-width: 560px; margin: 0 0 32px; font-size: 17px; color: rgba(245, 243, 233, .78); }
.wejscie-fakty { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--linia); }
.wejscie-fakty dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zloto); }
.wejscie-fakty dd { margin: 4px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.wejscie-karta {
    padding: 38px 34px; border-radius: 22px;
    background: rgba(22, 31, 34, .62); border: 1px solid rgba(217, 205, 181, .22);
    backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: var(--cien); animation: wjazd .9s .25s both;
}
.wejscie-karta h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 34px; font-weight: 600; }
.wejscie-karta .marka { margin-bottom: 28px; }
.wejscie-opis { margin: 0 0 26px; color: rgba(245, 243, 233, .68); font-size: 14px; }
.wejscie-pomoc { margin: 20px 0 0; text-align: center; font-size: 13px; color: rgba(245, 243, 233, .55); }
@keyframes wjazd { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .wejscie-uklad { grid-template-columns: 1fr; gap: 26px; padding: 28px 20px 32px; align-content: end; }
    .wejscie-uklad-waski { grid-template-columns: 1fr; align-content: center; }
    .wejscie-hero { padding: 0; }
    .wejscie-hero h1 { margin-top: 18vh; font-size: 40px; }
    .wejscie-lead { font-size: 15px; margin-bottom: 20px; }
    .wejscie-fakty { gap: 10px 26px; padding-top: 16px; }
    .wejscie-fakty dd { font-size: 19px; }
    .wejscie-karta { padding: 28px 22px; }
    .wejscie-cien { background: linear-gradient(180deg, rgba(14, 21, 23, .35) 0%, rgba(14, 21, 23, .8) 40%, rgba(14, 21, 23, .96) 70%); }
}

/* ========== PORTAL ========== */
.pasek {
    position: sticky; top: 0; z-index: 1050; height: var(--pasek);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 0 24px; padding-top: env(safe-area-inset-top);
    background: rgba(19, 27, 29, .82); border-bottom: 1px solid var(--linia);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.pasek .marka-nazwa { font-size: 22px; }
.pasek .marka-pod { font-size: 9.5px; margin-top: 5px; }
.pasek-licznik { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.licznik-etykieta { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--zloto); }
.licznik-czas { margin-top: 4px; font: 600 26px var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.licznik-koncowka .licznik-czas { color: var(--czerwony); animation: puls 1s ease-in-out infinite; }
.licznik-koncowka .licznik-etykieta { color: var(--czerwony); }
.licznik-po .licznik-czas { font-family: var(--serif); font-size: 24px; color: var(--zloto-j); }
@keyframes puls { 50% { opacity: .55; } }

.pasek-konto { justify-self: end; position: relative; }
.konto-przycisk { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--linia-2); border-radius: 40px; padding: 5px 14px 5px 5px; cursor: pointer; max-width: 260px; }
.konto-przycisk:hover { border-color: var(--linia); background: rgba(255, 255, 255, .04); }
.konto-inicjaly { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #d9cdb5, #9a876f); color: #1d1a14; font-weight: 700; }
.konto-nazwa { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.konto-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: 280px; padding: 8px;
    background: #1b2629; border: 1px solid var(--linia); border-radius: 16px; box-shadow: var(--cien);
}
.konto-menu-naglowek, .konto-menu-ekspert { padding: 10px 12px 12px; border-bottom: 1px solid var(--linia-2); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.konto-menu-naglowek span, .konto-menu-ekspert span { font-size: 12.5px; color: rgba(245, 243, 233, .55); }
.konto-menu-ekspert a { font-weight: 600; text-decoration: none; }
.konto-menu-link { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: none; border: 0; color: var(--krem); text-decoration: none; cursor: pointer; font-size: 14px; }
.konto-menu-link:hover { background: rgba(255, 255, 255, .06); }

.offline .pasek::after {
    content: 'Brak połączenia - ponawiam…'; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
    background: var(--czerwony); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 0 0 10px 10px;
}

/* ---------- mapa ---------- */
.mapa-sekcja { position: relative; height: clamp(440px, calc(100vh - var(--pasek) - 130px), 820px); background: #10181a; }
.mapa { position: absolute; inset: 0; background: #10181a; }
.mapa-sekcja::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; z-index: 400;
    background: linear-gradient(0deg, var(--granat), rgba(19, 27, 29, 0));
}
.leaflet-container { font-family: var(--sans); background: #10181a; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--cien) !important; border-radius: 12px !important; overflow: hidden; margin: 16px 16px 0 0 !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; background: rgba(19, 27, 29, .82) !important; color: var(--krem) !important; border-bottom-color: var(--linia-2) !important; backdrop-filter: blur(10px); }
.leaflet-control-attribution { background: rgba(19, 27, 29, .6) !important; color: rgba(245, 243, 233, .5) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: rgba(245, 243, 233, .6) !important; }
.leaflet-interactive { transition: fill-opacity .25s, stroke-width .2s; }

.mapa-jezioro { display: none; }
.jezioro-et { transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(245, 243, 233, .82); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); white-space: nowrap; letter-spacing: .04em; pointer-events: none; }

/* etykiety dzialek */
.et-kotwica { background: none; border: 0; }
.et {
    position: relative; transform: translate(-50%, -50%);
    display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 5px 10px 6px; border-radius: 12px; white-space: nowrap; cursor: pointer;
    background: rgba(16, 24, 26, .84); border: 1.5px solid var(--st, var(--krem));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
    transition: transform .2s ease;
}
.et:hover { transform: translate(-50%, -50%) scale(1.08); }
.et b { font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--st, var(--krem)); }
.et span { font-size: 11.5px; font-weight: 600; color: var(--krem); letter-spacing: .01em; }
.et-brak { --st: #f5f3e9; }
.et-inna { --st: #f0a93b; }
.et-moja { --st: #2fbf71; }
.et-przebita { --st: #ff5a5f; }
.et-zakonczona, .et-przegrana { --st: #9aa4b2; }
.et-wygrana { --st: #d9cdb5; }
.mapa-mala .et { padding: 3px 7px 4px; border-radius: 9px; }
.mapa-mala .et b { font-size: 16px; }
.mapa-mala .et span { font-size: 9.5px; }

/* ---------- lista ---------- */
.portal { position: relative; }
.lista-sekcja, .osada-sekcja { max-width: 1320px; margin: 0 auto; padding: 8px 24px 24px; position: relative; z-index: 2; }
.lista-sekcja { margin-top: -54px; }
.lista-naglowek { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lista-naglowek h2, .osada-sekcja h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; }
.lista-info { font-size: 13px; color: rgba(245, 243, 233, .6); }
.lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.poz {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'nr info kwota' 'nr status kwota';
    gap: 4px 16px; align-items: center; text-align: left; width: 100%; padding: 16px 18px; cursor: pointer;
    border-radius: 16px; background: linear-gradient(160deg, rgba(34, 46, 50, .9), rgba(26, 36, 39, .9));
    border: 1px solid var(--linia-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.poz::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st); }
.poz:hover { transform: translateY(-3px); border-color: var(--linia); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.poz.aktywna { border-color: var(--zloto); box-shadow: 0 0 0 1px var(--zloto), 0 16px 40px rgba(0, 0, 0, .35); }
.poz-nr { grid-area: nr; display: flex; flex-direction: column; align-items: center; min-width: 44px; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: .9; color: var(--zloto-j); }
.poz-nr small { font-size: 12px; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(245, 243, 233, .45); font-weight: 500; }
.poz-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.poz-pow { font-weight: 600; }
.poz-opis { font-size: 12.5px; color: rgba(245, 243, 233, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poz-kwota { grid-area: kwota; display: flex; flex-direction: column; align-items: flex-end; }
.poz-kwota small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 243, 233, .5); }
.poz-kwota strong { font-family: var(--serif); font-size: 24px; font-weight: 600; white-space: nowrap; }
.poz-status { grid-area: status; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--st); }
.poz-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st) 22%, transparent); }
.poz-brak { --st: #f5f3e9; }
.poz-inna { --st: #f0a93b; }
.poz-moja { --st: #2fbf71; }
.poz-przebita { --st: #ff5a5f; }
.poz-zakonczona, .poz-przegrana { --st: #9aa4b2; }
.poz-wygrana { --st: #d9cdb5; }
.poz-przebita .poz-status i { animation: puls 1.2s infinite; }

.pusto { color: rgba(245, 243, 233, .55); }
.stopka { margin-top: 34px; font-size: 12.5px; color: rgba(245, 243, 233, .45); }
.stopka strong { color: rgba(245, 243, 233, .75); font-variant-numeric: tabular-nums; }

/* ---------- karta dzialki ---------- */
.karta {
    position: fixed; z-index: 1200; top: calc(var(--pasek) + 14px); right: 14px; bottom: 14px; width: 440px;
    overflow-y: auto; overscroll-behavior: contain; padding: 30px 28px 28px;
    background: rgba(21, 30, 33, .9); border: 1px solid var(--linia); border-radius: 22px; box-shadow: var(--cien);
    backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
    transform: translateX(calc(100% + 30px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.karta-otwarta .karta { transform: none; }
.karta-tlo { display: none; }
.karta-uchwyt { display: none; }
.karta-zamknij {
    position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .07); border: 1px solid var(--linia-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.karta-zamknij:hover { background: rgba(255, 255, 255, .14); }
.k-etykieta { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--zloto); }
.k-naglowek h2 { margin: 2px 0 4px; font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.k-pod { margin: 0 0 14px; color: rgba(245, 243, 233, .65); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 30px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--st) 16%, transparent); color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 45%, transparent); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.chip-brak { --st: #f5f3e9; }
.chip-inna { --st: #f0a93b; }
.chip-moja { --st: #2fbf71; }
.chip-przebita { --st: #ff5a5f; }
.chip-zakonczona, .chip-przegrana { --st: #9aa4b2; }
.chip-wygrana { --st: #d9cdb5; }

.k-licznik { margin: 22px 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--linia-2); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.k-licznik span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 243, 233, .55); }
.k-licznik strong { grid-row: span 2; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-licznik small { font-size: 12.5px; color: rgba(245, 243, 233, .6); }
.k-licznik-koncowka { border-color: rgba(255, 90, 95, .5); background: rgba(255, 90, 95, .08); }
.k-licznik-koncowka strong { color: var(--czerwony); animation: puls 1s infinite; }

.k-ceny { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-cena { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--linia-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.k-cena span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 243, 233, .55); }
.k-cena strong { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.k-cena strong em { font-style: normal; }
.k-cena strong i { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 500; color: rgba(245, 243, 233, .55); }
.k-cena small { font-size: 12.5px; color: rgba(245, 243, 233, .55); }
.k-cena-glowna { grid-column: 1 / -1; padding: 18px 20px; background: linear-gradient(140deg, rgba(184, 162, 131, .16), rgba(184, 162, 131, .04)); border-color: rgba(184, 162, 131, .35); }
.k-cena-glowna strong { font-size: 40px; color: var(--zloto-j); }
.k-cena-glowna strong i { font-size: 14px; }

.k-akcja { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.zgoda { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(240, 169, 59, .1); border: 1px solid rgba(240, 169, 59, .4); cursor: pointer; font-size: 14px; }
.zgoda input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--zloto); }
.wlasna { display: flex; flex-direction: column; gap: 6px; }
.wlasna label { font-size: 13px; color: rgba(245, 243, 233, .65); }
.wlasna-wiersz { display: flex; gap: 8px; align-items: center; position: relative; }
.wlasna-wiersz input { flex: 1; min-width: 0; padding-right: 36px; font-size: 18px; font-weight: 600; }
.wlasna-zl { position: absolute; right: 150px; color: rgba(245, 243, 233, .5); pointer-events: none; }
.wlasna-wiersz .przycisk { flex: none; height: 50px; width: 138px; padding: 0 12px; }
.wlasna-netto { font-size: 12.5px; color: rgba(245, 243, 233, .5); min-height: 1em; }
.k-info { margin: 0; font-size: 13px; color: rgba(245, 243, 233, .6); }
.k-dokumenty { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linia-2); display: flex; flex-direction: column; gap: 8px; }
.kd { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--krem); text-decoration: none; background: rgba(255, 255, 255, .03); border: 1px solid var(--linia-2); font-size: 14px; }
.kd:hover { background: rgba(255, 255, 255, .07); }
.kd span { flex: none; width: 36px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: rgba(184, 162, 131, .15); color: var(--zloto-j); }
.kd-karta { border-color: rgba(184, 162, 131, .3); }

/* ---------- blyski ---------- */
.blysk { animation: blysk 1.6s ease-out; }
.blysk-sukces { animation: blyskS 1.8s ease-out; }
@keyframes blysk { 0% { box-shadow: 0 0 0 0 rgba(217, 205, 181, .9); } 100% { box-shadow: 0 0 0 22px rgba(217, 205, 181, 0); } }
@keyframes blyskS { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .9); } 100% { box-shadow: 0 0 0 26px rgba(47, 191, 113, 0); } }

/* ---------- okno potwierdzenia ---------- */
.okno-tlo { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 13, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.okno-tlo.widoczne { opacity: 1; }
.okno { width: 100%; max-width: 480px; padding: 32px 30px 26px; border-radius: 22px; background: linear-gradient(160deg, #223034, #172124); border: 1px solid rgba(184, 162, 131, .4); box-shadow: var(--cien); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.widoczne .okno { transform: none; }
.okno-etykieta { margin: 0 0 10px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--zloto); }
.okno h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; }
.okno h3 [data-kwota] { color: var(--zloto-j); white-space: nowrap; }
.okno-netto { margin: 6px 0 0; color: rgba(245, 243, 233, .6); }
.okno-ostrzezenie { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(240, 169, 59, .12); border: 1px solid rgba(240, 169, 59, .45); color: #f3e2c4; font-size: 14px; }
.okno-uwaga { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--linia-2); font-size: 14px; color: rgba(245, 243, 233, .75); }
.okno-przyciski { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 22px; }

/* ---------- toasty ---------- */
.toasty { position: fixed; z-index: 3000; top: calc(var(--pasek) + 16px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 18px; border-radius: 14px; background: #1c282b; border: 1px solid var(--linia); box-shadow: var(--cien); font-size: 14px; opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s; border-left: 4px solid var(--zloto); }
.toast.widoczny { opacity: 1; transform: none; }
.toast-ok { border-left-color: var(--zielony); }
.toast-blad { border-left-color: var(--czerwony); }
.toast-ostrzezenie { border-left-color: var(--czerwony); background: #3a1a22; }

/* ---------- responsywnosc ---------- */
@media (max-width: 1180px) {
    .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
    .karta-otwarta .lista-sekcja, .karta-otwarta .osada-sekcja { padding-right: 480px; }
    .karta-otwarta .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .karta-otwarta .lista { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    :root { --pasek: 98px; }
    .pasek { grid-template-columns: 1fr auto; grid-template-areas: 'marka konto' 'licznik licznik'; height: auto; min-height: var(--pasek); padding: 10px 14px 8px; gap: 6px 10px; }
    .pasek-marka { grid-area: marka; }
    .pasek .marka-nazwa { font-size: 18px; }
    .pasek .marka-pod { font-size: 8.5px; letter-spacing: .3em; }
    .pasek-konto { grid-area: konto; }
    .pasek-licznik { grid-area: licznik; flex-direction: row; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--linia-2); }
    .licznik-czas { margin: 0; font-size: 20px; }
    .konto-nazwa { display: none; }
    .konto-przycisk { padding: 4px; }
    .konto-menu { width: min(300px, calc(100vw - 28px)); }

    .mapa-sekcja { height: 58vh; height: 58svh; min-height: 330px; }
    .leaflet-control-zoom { margin: 10px 10px 0 0 !important; }
    .jezioro-et { font-size: 16px; }

    .lista-sekcja { margin-top: 0; padding: 18px 14px 10px; }
    .lista-naglowek { flex-direction: column; gap: 2px; }
    .lista-naglowek h2, .osada-sekcja h2 { font-size: 24px; }
    .lista { grid-template-columns: 1fr; gap: 10px; }
    .poz { padding: 14px 14px 14px 16px; gap: 3px 12px; }
    .poz-nr { font-size: 34px; min-width: 36px; }
    .poz-kwota strong { font-size: 21px; }
    .osada-sekcja { padding: 18px 14px 50px; }

    .karta {
        top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 92vh; max-height: 92dvh;
        border-radius: 22px 22px 0 0; border-bottom: 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
        transform: translateY(105%);
    }
    .karta-uchwyt { display: block; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
    .karta-tlo { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(8, 12, 13, .55); }
    .karta-otwarta { overflow: hidden; }
    .k-naglowek h2 { font-size: 44px; }
    .k-cena-glowna strong { font-size: 34px; }
    .k-cena strong { font-size: 19px; }
    .k-licznik strong { font-size: 22px; }
    .wlasna-wiersz .przycisk { width: 118px; }
    .wlasna-zl { right: 130px; }

    .okno { padding: 26px 20px 20px; }
    .okno h3 { font-size: 25px; }
    .okno-przyciski { grid-template-columns: 1fr; }
    .okno-przyciski [data-potwierdz] { order: -1; min-height: 54px; }
    .toasty { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- poprawki po testach ---------- */
.k-cena strong, .poz-kwota strong, .poz-nr, .et b, .wejscie-fakty dd, .okno h3, .k-naglowek h2 { font-variant-numeric: lining-nums tabular-nums; }
.pasek-marka { display: flex; flex-direction: column; line-height: 1; }
.karta { visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.karta-otwarta .karta { visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.mapa-mala .et { width: 30px; height: 30px; padding: 0; border-radius: 50%; justify-content: center; border-width: 2px; }
.mapa-mala .et b { font-size: 17px; }
.mapa-mala .et span { display: none; }

/* ---------- logo Lokat Ziemskich ---------- */
.logo-lz { display: block; height: auto; }
.hero-gora { display: flex; align-items: center; gap: 22px; }
.hero-gora .logo-lz { width: 170px; }
.hero-osada { padding-left: 22px; border-left: 1px solid rgba(217, 205, 181, .35); font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; color: var(--krem); line-height: 1.1; }
.hero-gora-mala { margin-bottom: 28px; gap: 16px; }
.hero-gora-mala .logo-lz { width: 120px; }
.hero-gora-mala .hero-osada { padding-left: 16px; font-size: 18px; }
.pasek-marka { flex-direction: row !important; align-items: center; gap: 16px; }
.pasek-marka .logo-lz { width: 104px; }
.pasek-kreska { width: 1px; height: 30px; background: rgba(217, 205, 181, .35); }
@media (max-width: 760px) {
    .hero-gora .logo-lz { width: 130px; }
    .hero-osada { font-size: 18px; padding-left: 16px; }
    .hero-gora { gap: 16px; }
    .pasek-marka { gap: 10px; }
    .pasek-marka .logo-lz { width: 76px; }
    .pasek-kreska { height: 22px; }
    .pasek .marka-nazwa { font-size: 15px; letter-spacing: .1em; }
}
.licznik-czas { white-space: nowrap; }
@media (max-width: 900px) {
    .wejscie { overflow: visible; }
    .wejscie-tlo, .wejscie-cien { position: fixed; }
    .wejscie-uklad { align-content: start; }
    .wejscie-hero h1 { margin-top: 14vh; }
}
@media (max-width: 760px) {
    .licznik-etykieta { font-size: 9.5px; letter-spacing: .14em; max-width: 52%; line-height: 1.35; }
}

/* ---------- identyfikacja Osada Tyrkło ---------- */
.marka-nazwa, .wejscie-hero h1, .wejscie-fakty dd, .wejscie-karta h2, .licznik-po .licznik-czas, .lista-naglowek h2, .osada-sekcja h2,
.poz-nr, .poz-kwota strong, .et b, .k-naglowek h2, .k-cena strong, .okno h3, .jezioro-et, .hero-osada { font-weight: 400; }
.wejscie-hero h1 em, .jezioro-et { font-style: normal; }
.wejscie-hero h1 { letter-spacing: .01em; }
.lista-naglowek h2, .osada-sekcja h2 { letter-spacing: .04em; }
.logo-osada { display: block; width: 115px; height: auto; }
.pasek-marka .logo-osada { width: 118px; }
.hero-gora .logo-osada { width: 230px; }
.hero-gora-mala .logo-osada { width: 190px; }

.osada-sekcja { padding-top: 30px; padding-bottom: 60px; }
.osada-kafle { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.kafel { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; cursor: pointer; text-decoration: none; color: var(--krem);
    border-radius: 16px; background: var(--granat-2); border: 1px solid var(--linia-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .2s ease, border-color .2s ease; }
.kafel:hover { transform: translateY(-3px); border-color: var(--linia); }
.kafel-foto { display: block; aspect-ratio: 16 / 9; background: #10181a center / cover no-repeat; }
.kafel-film { position: relative; }
.kafel-film::after { content: ''; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    background: rgba(19, 27, 29, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23f5f3e9'/%3E%3C/svg%3E") center / 30px no-repeat;
    border: 1px solid rgba(217, 205, 181, .6); }
.kafel-tekst { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.kafel-tekst strong { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .02em; }
.kafel-tekst small { font-size: 12.5px; color: rgba(245, 243, 233, .55); }

.k-dogrywka { grid-column: 1 / -1; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--linia-2); }
.k-m2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--linia-2); font-size: 13px; }
.k-m2 span { color: rgba(245, 243, 233, .55); }
.k-m2 strong { font-weight: 600; white-space: nowrap; }
.szybkie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.szybkie .przycisk { min-height: 42px; padding: 0 8px; font-size: 14px; white-space: nowrap; }
.k-info:empty { display: none; }
.k-zasady { margin: 0; padding: 12px 16px; list-style: none; border-radius: 12px; border: 1px solid var(--linia); background: rgba(184, 162, 131, .07); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.k-zasady li { position: relative; padding-left: 14px; }
.k-zasady li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--zloto); }

.podglad { position: fixed; inset: 0; z-index: 2500; display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center;
    padding: 56px 12px 18px; background: rgba(8, 12, 13, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.podglad-otwarty { overflow: hidden; }
.podglad-tresc { grid-column: 2; display: grid; place-items: center; min-height: 0; height: 100%; }
.podglad-tresc img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 10px; box-shadow: var(--cien); }
.podglad-film { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; }
.podglad-film iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.podglad-podpis { grid-column: 1 / -1; margin: 12px 0 0; text-align: center; font-size: 13px; color: rgba(245, 243, 233, .6); }
.podglad-strzalka, .podglad-zamknij { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linia); background: rgba(255, 255, 255, .06); color: var(--krem); font-size: 30px; line-height: 1; cursor: pointer; }
.podglad-strzalka:hover, .podglad-zamknij:hover { background: rgba(255, 255, 255, .14); }
.podglad-wstecz { grid-column: 1; justify-self: start; }
.podglad-dalej { grid-column: 3; justify-self: end; }
.podglad-zamknij { position: absolute; top: 12px; right: 14px; font-size: 26px; }
@media (max-width: 760px) {
    .pasek-marka .logo-osada { width: 86px; }
    .hero-gora .logo-osada { width: 170px; }
    .osada-kafle { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kafel-tekst { padding: 10px 12px 12px; }
    .kafel-tekst strong { font-size: 16px; }
    .podglad { grid-template-columns: 1fr; padding: 56px 8px 14px; }
    .podglad-tresc { grid-column: 1; }
    .podglad-strzalka { position: absolute; bottom: 14px; }
    .podglad-wstecz { left: 14px; }
    .podglad-dalej { right: 14px; }
    .podglad-podpis { margin-bottom: 0; padding: 0 64px; }
}
.k-ceny .k-cena:not(.k-cena-glowna) strong { font-size: 20px; }
.k-ceny .k-cena:not(.k-cena-glowna) strong i { display: block; margin-top: 2px; font-size: 11.5px; }
.k-cena-glowna strong { white-space: nowrap; }
@media (max-width: 760px) {
    .k-ceny .k-cena:not(.k-cena-glowna) { padding: 12px 12px; }
    .k-ceny .k-cena:not(.k-cena-glowna) span { font-size: 10.5px; letter-spacing: .04em; }
    .k-ceny .k-cena:not(.k-cena-glowna) small { font-size: 11.5px; white-space: nowrap; }
    .k-m2 { padding: 10px 12px; }
    .szybkie .przycisk { font-size: 13px; }
}

/* ---------- kontakt, mapa, logowanie (20.11) ---------- */
.kontakt { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; margin-top: 16px; padding: 16px 20px; border-radius: 16px;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--linia-2); }
.kontakt > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kontakt-etykieta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--zloto); }
.kontakt-ekspert strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.kontakt-dane { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.kontakt a { color: var(--krem); text-decoration: none; border-bottom: 1px solid rgba(217, 205, 181, .35); }
.kontakt a:hover { border-bottom-color: var(--zloto-j); }
.kontakt-techniczne { margin-left: auto; text-align: right; font-size: 14px; }
.konto-menu-ekspert a { overflow-wrap: anywhere; }

.mapa-opis { transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--krem); background: rgba(19, 27, 29, .78); border: 1px solid rgba(201, 208, 215, .55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.mapa-opis-marina { transform: translate(-50%, -100%); font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .06em; }
.mapa-opis-dojazd { transform: translate(-50%, 6px); border-color: rgba(245, 243, 233, .6); }
.mapa-mala .mapa-opis { font-size: 10.5px; padding: 3px 8px; }
.mapa-mala .mapa-opis-marina { font-size: 12.5px; }

.komunikat-ok { background: rgba(47, 191, 113, .12); border: 1px solid rgba(47, 191, 113, .4); color: #d4f5e2; }
.wejscie-linki { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; font-size: 14px; }
.wejscie-linki a, .wejscie-pomoc a { color: var(--zloto-j); text-underline-offset: 3px; }
.wejscie-uklad-logowanie { grid-template-columns: minmax(0, 1fr) 430px; grid-template-areas: 'logo karta' 'hero karta'; grid-template-rows: auto 1fr; align-items: start; row-gap: 0; }
.wejscie-uklad-logowanie .hero-gora { grid-area: logo; padding-top: 8px; }
.wejscie-uklad-logowanie .wejscie-karta { grid-area: karta; align-self: center; }
.wejscie-uklad-logowanie .wejscie-hero { grid-area: hero; align-self: end; padding-bottom: 0; }
.wejscie-uklad-logowanie .wejscie-hero h1 { margin-top: 40px; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.08; }
.wejscie-zamknieta { margin: 0 0 22px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--zloto); }
.wejscie-termin { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 22px; border-top: 1px solid var(--linia); }
.wejscie-termin > div { display: flex; flex-direction: column; gap: 4px; }
.wejscie-termin-etykieta { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zloto); }
.wejscie-termin strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.wejscie-licznik { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 900px) {
    .wejscie-uklad-logowanie { grid-template-columns: 1fr; grid-template-areas: 'logo' 'karta' 'hero'; gap: 22px; padding-top: 22px; align-content: start; }
    .wejscie-uklad-logowanie .hero-gora { justify-content: center; padding-top: 0; }
    .wejscie-uklad-logowanie .hero-gora .logo-osada { width: 150px; }
    .wejscie-uklad-logowanie .wejscie-hero h1 { margin-top: 12px; font-size: 30px; }
    .wejscie-termin strong { font-size: 18px; }
}
@media (max-width: 760px) {
    .kontakt { padding: 14px 16px; gap: 12px; }
    .kontakt-techniczne { margin-left: 0; text-align: left; }
}
