:root{--bg:#071018;--bg2:#0b1d2b;--panel:rgba(13,29,42,.88);--line:rgba(255,255,255,.12);--text:#f6f8fb;--muted:#b6c0ca;--blue:#1798ff;--gold:#d99a2b;--green:#72b85a;--danger:#e05b5b;--shadow:0 28px 90px rgba(0,0,0,.45);--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 12% 10%,rgba(23,152,255,.22),transparent 30%),radial-gradient(circle at 78% 42%,rgba(217,154,43,.12),transparent 30%),linear-gradient(135deg,#050a10 0%,#071827 50%,#050910 100%)}a{color:inherit;text-decoration:none}.site-nav{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px clamp(18px,5vw,72px);background:rgba(7,16,25,.86);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:.02em}.brand-mark{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue),#0d2b55);border:2px solid rgba(217,154,43,.9);box-shadow:0 10px 32px rgba(0,0,0,.35)}.brand span{transition:.2s}.brand:hover span{color:var(--gold)}.nav-links{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.nav-links a{opacity:.82}.nav-links a:hover,.nav-links a.active{opacity:1;color:var(--gold)}.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}.page{max-width:1540px;margin:0 auto;padding:34px clamp(14px,2.6vw,32px) 48px}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,520px);gap:28px;align-items:center;margin:18px 0 34px}.hero h1{font-size:clamp(44px,6vw,92px);line-height:.92;margin:0 0 18px;letter-spacing:-.06em}.hero h1 span,.blue{color:var(--blue)}.hero p{font-size:clamp(18px,2vw,24px);color:var(--muted);margin:0 0 24px}.eyebrow{color:var(--gold);text-transform:uppercase;font-size:13px;font-weight:900;letter-spacing:.22em;margin-bottom:18px}.hero-card,.panel,.map-card,.side-card,.note-card,.album-card{background:linear-gradient(145deg,rgba(12,32,48,.9),rgba(8,15,22,.9));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-card{padding:28px;display:grid;gap:18px}.hero-card h2{margin:0;font-size:26px}.feature-list{display:grid;gap:14px}.feature{display:flex;gap:12px;align-items:flex-start;color:var(--muted)}.feature strong{display:block;color:var(--text)}.icon{width:40px;height:40px;border-radius:12px;border:1px solid rgba(23,152,255,.45);display:grid;place-items:center;color:var(--blue);font-size:22px;flex:0 0 auto}.actions{display:flex;gap:12px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;border-radius:14px;border:1px solid rgba(255,255,255,.12);font-weight:900;text-transform:uppercase;letter-spacing:.06em;background:linear-gradient(135deg,var(--blue),#0852c7);color:#fff;cursor:pointer}.btn.secondary{background:rgba(255,255,255,.06);color:var(--text)}.btn.gold{background:linear-gradient(135deg,var(--gold),#f2c36f);color:#061019}.section-title{margin:32px 0 18px}.section-title h2{font-size:clamp(32px,4vw,56px);line-height:1;margin:0}.section-title p{color:var(--muted);margin:10px 0 0}.layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:stretch}.map-card{position:relative;min-height:630px;padding:16px;overflow:hidden}#worldMap{width:100%;height:598px;border-radius:16px;overflow:hidden;background:radial-gradient(circle at center,#0d314d 0%,#061522 72%)}.map-tools{position:absolute;left:32px;top:34px;z-index:20;display:flex;flex-direction:column;gap:10px}.tool-btn{width:38px;height:38px;border:0;border-radius:8px;background:#fff;color:#111;font-size:22px;font-weight:900;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:pointer}.tool-btn.small{font-size:16px}.tool-btn.pin{font-size:17px}.tool-btn.active{background:var(--gold);color:#061019}.tool-btn.region-back{display:none;font-size:16px}.tool-btn.region-back.active{display:block;background:var(--gold);color:#061019}.country-region-title{position:absolute;left:50%;top:22px;z-index:18;transform:translateX(-50%) translateY(-8px);max-width:min(70%,560px);padding:8px 16px;border-radius:999px;background:rgba(3,9,14,.58);border:1px solid rgba(217,154,43,.36);box-shadow:0 12px 34px rgba(0,0,0,.28);backdrop-filter:blur(10px);color:#fff;font-size:clamp(16px,2.1vw,28px);line-height:1.1;font-weight:900;letter-spacing:-.02em;text-align:center;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s ease,transform .22s ease}.country-region-title.active{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}.map-card:fullscreen .country-region-title{top:18px;font-size:clamp(18px,2.4vw,32px)}.map-card:-webkit-full-screen .country-region-title{top:18px;font-size:clamp(18px,2.4vw,32px)}.legend{position:absolute;left:32px;bottom:30px;display:grid;gap:13px;padding:15px 17px;background:rgba(3,9,14,.66);border:1px solid rgba(255,255,255,.09);border-radius:10px;backdrop-filter:blur(10px);font-weight:700}.legend-row{display:flex;align-items:center;gap:10px}.swatch{width:18px;height:18px;border-radius:5px}.swatch.visited{background:var(--green)}.swatch.empty{background:#e8eef5}.map-card:fullscreen{width:100vw;height:100vh;min-height:100vh;padding:16px;border-radius:0;background:linear-gradient(145deg,rgba(12,32,48,.98),rgba(8,15,22,.98))}.map-card:fullscreen #worldMap{width:100%;height:calc(100vh - 32px);border-radius:12px}.map-card:-webkit-full-screen{width:100vw;height:100vh;min-height:100vh;padding:16px;border-radius:0;background:linear-gradient(145deg,rgba(12,32,48,.98),rgba(8,15,22,.98))}.map-card:-webkit-full-screen #worldMap{width:100%;height:calc(100vh - 32px);border-radius:12px}
.side-card{min-height:630px;overflow:hidden}.side-head{display:flex;align-items:center;gap:14px;padding:24px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.side-head h2{margin:0;font-size:22px}.continents{display:grid}.continent{border-bottom:1px solid rgba(255,255,255,.08)}.continent-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border:0;background:transparent;color:var(--text);cursor:pointer;text-align:left;font:inherit;font-weight:850;font-size:17px}.continent-btn small{color:var(--gold);font-size:15px}.chev{opacity:.75;font-size:24px;transition:.2s}.continent.open .chev{transform:rotate(180deg)}.country-list{display:none;padding:0 22px 16px}.continent.open .country-list{display:block}.country{display:flex;align-items:center;gap:12px;color:var(--muted);padding:7px 0 7px 8px;font-size:15px}.dot{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(114,184,90,.13)}.country-main{color:var(--text);font-weight:850}.region-row{padding-left:30px;font-size:13px;opacity:.86}.region-row .dot{width:7px;height:7px}.note-card{margin-top:18px;display:flex;gap:18px;align-items:flex-start;padding:22px 24px;color:var(--muted);font-size:17px}.note-card strong{display:block;color:var(--text);margin-bottom:6px}.info-icon{width:42px;height:42px;border-radius:50%;border:3px solid var(--gold);display:grid;place-items:center;color:var(--gold);font-weight:900;font-size:24px;flex:0 0 auto}.country-tooltip{position:fixed;z-index:50;pointer-events:none;transform:translate(-50%,-120%);background:rgba(2,8,14,.92);border:1px solid rgba(255,255,255,.14);border-radius:10px;color:#fff;padding:9px 12px;font-size:14px;font-weight:700;box-shadow:0 14px 35px rgba(0,0,0,.4);display:none}.pin-menu{position:fixed;z-index:120;display:none;min-width:250px;max-width:330px;background:rgba(3,9,14,.96);border:1px solid rgba(217,154,43,.55);border-radius:14px;box-shadow:0 22px 60px rgba(0,0,0,.48);overflow:hidden;backdrop-filter:blur(12px)}.pin-menu.active{display:block}.pin-menu-title{padding:14px 16px;color:#fff;font-weight:900;font-size:15px;border-bottom:1px solid rgba(255,255,255,.10);line-height:1.35}.pin-menu button,.pin-menu a{width:100%;display:flex;align-items:center;gap:10px;padding:13px 16px;border:0;background:transparent;color:#e9f1f5;text-align:left;font:inherit;font-weight:800;cursor:pointer}.pin-menu button:hover,.pin-menu a:hover{background:rgba(217,154,43,.14);color:#fff}.pin-menu .danger:hover{background:rgba(220,70,70,.18)}.gallery-hero{text-align:center;max-width:900px;margin:0 auto 28px}.gallery-hero h1{font-size:clamp(42px,6vw,72px);line-height:.95;margin:0 0 14px}.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.album-card{padding:18px;min-height:220px;display:flex;flex-direction:column;justify-content:space-between}.album-cover{height:120px;border-radius:16px;background:linear-gradient(135deg,rgba(23,152,255,.18),rgba(217,154,43,.13)),repeating-linear-gradient(45deg,rgba(255,255,255,.05),rgba(255,255,255,.05) 8px,transparent 8px,transparent 16px);border:1px dashed rgba(255,255,255,.18);display:grid;place-items:center;color:var(--muted);font-weight:800}.album-card h3{font-size:23px;margin:16px 0 8px}.album-card p{color:var(--muted);margin:0 0 14px}.album-meta{font-size:13px;color:var(--gold);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.photo-placeholder{aspect-ratio:4/3;border-radius:18px;background:linear-gradient(135deg,rgba(23,152,255,.16),rgba(255,255,255,.04));border:1px dashed rgba(255,255,255,.18);display:grid;place-items:center;color:var(--muted);font-weight:800;text-align:center;padding:18px}.panel{padding:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px}.field label{font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--gold)}input,textarea,select{width:100%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:var(--text);border-radius:12px;padding:12px 14px;font:inherit}textarea{min-height:90px;resize:vertical}.footer{padding:34px clamp(18px,5vw,72px);border-top:1px solid rgba(255,255,255,.08);background:#03070b;color:#b7c7ce;text-align:center}@media(max-width:1050px){.hero,.layout{grid-template-columns:1fr}.side-card{min-height:auto}.map-card{min-height:520px}#worldMap{height:500px}.album-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.menu-toggle{display:block}.nav-links{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;gap:0;background:rgba(7,16,25,.96);border-bottom:1px solid rgba(255,255,255,.08)}.nav-links.open{display:flex}.nav-links a{width:100%;padding:17px 24px;text-align:center;border-top:1px solid rgba(255,255,255,.07)}}@media(max-width:650px){.page{padding-top:22px}.hero h1{font-size:42px}.map-card{padding:10px;border-radius:16px}#worldMap{height:390px}.map-tools{left:20px;top:22px}.legend{left:20px;bottom:22px;font-size:13px}.brand span{font-size:14px}.album-grid,.photo-grid,.form-grid{grid-template-columns:1fr}.site-nav{padding:12px 16px}.brand-mark{width:42px;height:42px}}

/* APP v1: albumy, lokalne zdjęcia i dialog pinezki */
.app-dialog{position:fixed;inset:0;z-index:3000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.68);backdrop-filter:blur(10px)}
.app-dialog.active{display:flex}.app-dialog-card{position:relative;width:min(680px,100%);max-height:92vh;overflow:auto;background:linear-gradient(145deg,rgba(12,32,48,.98),rgba(8,15,22,.98));border:1px solid rgba(217,154,43,.35);border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.62);padding:26px}.app-dialog-card h2{margin:0 0 8px;font-size:30px}.app-dialog-card p{color:var(--muted);margin:0 0 18px}.dialog-close{position:absolute;top:14px;right:16px;border:0;background:transparent;color:#fff;font-size:32px;cursor:pointer}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.choice-card{border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.06);color:var(--text);padding:18px;text-align:left;cursor:pointer;font:inherit}.choice-card:hover{border-color:rgba(217,154,43,.75);background:rgba(217,154,43,.10)}.choice-card strong{display:block;font-size:17px;margin-bottom:6px}.choice-card span{color:var(--muted);font-size:14px}.dialog-form{display:grid;gap:12px;margin-top:12px}.dialog-form label{display:grid;gap:6px;color:var(--gold);font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.08em}.album-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.album-actions{display:flex;gap:10px;flex-wrap:wrap}.album-card.active{border-color:rgba(217,154,43,.62)}.memory-photo{position:relative;margin:0;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}.memory-photo img{width:100%;height:220px;object-fit:cover;display:block}.memory-photo figcaption{padding:10px 12px;color:var(--muted);font-size:13px;word-break:break-word}.remove-photo{position:absolute;top:10px;right:10px;border:0;border-radius:999px;background:rgba(3,9,14,.82);color:#fff;padding:7px 10px;font-weight:900;cursor:pointer}.remove-photo:hover{background:var(--danger)}.empty-photo{grid-column:1/-1}.photo-placeholder small{color:var(--muted)}
@media(max-width:700px){.choice-grid{grid-template-columns:1fr}.album-detail-head{display:grid}.memory-photo img{height:190px}}

/* APP v2: dwa tryby dialogu pinezki i czytelna lista albumów */
.choice-card.active{border-color:rgba(217,154,43,.9);background:rgba(217,154,43,.16);box-shadow:0 0 0 2px rgba(217,154,43,.12) inset}
.existing-albums-head{color:var(--gold);font-weight:900;text-transform:uppercase;font-size:12px;letter-spacing:.08em;margin-bottom:2px}
.existing-album-list{display:grid;gap:10px;max-height:280px;overflow:auto;padding-right:4px}
.album-choice{width:100%;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.055);color:var(--text);padding:14px 15px;text-align:left;cursor:pointer;font:inherit;transition:.18s ease}
.album-choice strong{display:block;color:var(--text);font-size:16px;margin-bottom:3px}
.album-choice span{display:block;color:var(--muted);font-size:13px}
.album-choice:hover,.album-choice.active{border-color:rgba(217,154,43,.82);background:rgba(217,154,43,.13)}
.album-choice.active strong{color:#fff}
.empty-album-choice{padding:16px;border:1px dashed rgba(217,154,43,.35);border-radius:15px;color:var(--muted);background:rgba(255,255,255,.04)}
.btn:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.35)}
select option{background:#0b1824;color:#f6f8fb}


/* APP v3: jednoznaczne przełączanie formularzy w dialogu pinezki */
.mode-title{
  color:var(--gold);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:13px;
  margin-bottom:4px;
}
.pin-mode-form[hidden]{display:none!important}
.album-choice,
.album-choice strong,
.album-choice span{
  position:relative;
  opacity:1!important;
  visibility:visible!important;
}
.album-choice strong{color:#f6f8fb!important}
.album-choice span{color:#b6c0ca!important}
.album-choice:hover strong,
.album-choice.active strong{color:#ffffff!important}
.album-choice:hover span,
.album-choice.active span{color:#e5edf2!important}


/* APP v4: usuwanie albumów */
.album-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
.btn.danger{background:rgba(224,91,91,.14);border-color:rgba(224,91,91,.42);color:#ffd7d7}
.btn.danger:hover{background:rgba(224,91,91,.24);color:#fff}
.delete-album{font-size:12px;padding:12px 16px}
