@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f0e7;--paper:#fffdfa;--text:#2d2824;--muted:#786d63;--gold:#b78850;--gold2:#996b38;--line:#e9ddd0;--yes:#2f8e58;--yesbg:#eaf7ef;--no:#c44d4d;--nobg:#fff0f0;--maybe:#7560ae;--maybebg:#f1edfc;--shadow:0 16px 42px rgba(65,45,24,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:'Manrope','Segoe UI',Arial,sans-serif;line-height:1.65}a{color:inherit}.serif{font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:-.025em}.wrap{width:min(1120px,calc(100% - 30px));margin:auto}.hero{height:760px;position:relative;display:flex;align-items:flex-end;color:#fff;background-position:center;background-size:cover;overflow:hidden}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(var(--hero-overlay-rgb,20,15,10),.05),rgba(var(--hero-overlay-rgb,20,15,10),.72))}.hero-in{position:relative;z-index:2;padding:100px 0 60px}.eyebrow,.small{font-size:13px;letter-spacing:.2em;text-transform:uppercase;font-weight:800}.hero h1{font-size:clamp(58px,9vw,112px);line-height:.9;margin:12px 0}.hero-label{font-size:22px;font-weight:800}.hero-text{font-size:clamp(18px,2.1vw,24px);max-width:800px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer;text-decoration:none}.btn.primary{background:var(--gold);color:#fff}.btn.secondary{background:#fff;color:var(--text);border-color:var(--line)}.btn.danger{background:#fff7f7;color:#a33f3f;border-color:#efcaca}.section{padding:68px 0}.intro{text-align:center;max-width:880px;margin:auto}.intro h2,.section-title{font-size:clamp(44px,6vw,72px);line-height:.98;margin:8px 0 16px}.intro p{font-size:20px;color:var(--muted)}.places{display:grid;grid-template-columns:1fr 1fr;gap:22px}.place,.panel,.admin-card,.invite{background:var(--paper);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow)}.place{padding:28px;text-align:center;display:flex;flex-direction:column}.place h3{font-size:42px;margin:8px 0}.place p{color:var(--muted)}.mapbtn{margin-top:auto}.rsvp{padding:28px}.guest{text-align:center;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:18px}.guest-name{font-size:58px;line-height:1;margin-top:6px}.question{text-align:center;font-size:clamp(34px,4vw,50px);margin:14px 0}.options{display:grid;gap:11px}.option{border:1px solid var(--line);border-radius:17px;padding:16px;background:var(--surface,#fff);color:var(--text);text-align:center;font-weight:800;cursor:pointer}.option.selected{border-color:var(--gold);background:var(--selected,#fff9f0)}.companions{margin-top:20px}.person-choice{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);padding:13px;margin-top:9px}.person-choice input{width:20px;height:20px}.field{display:block;font-weight:800;margin:15px 0 7px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;background:var(--surface,#fff);font:inherit;color:var(--text)}textarea{min-height:115px}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:15px}.status,.error{padding:13px 15px;border-radius:15px;margin:12px 0;font-weight:700}.status{background:var(--yesbg);color:var(--yes)}.error{background:var(--nobg);color:var(--no)}
/* admin */.admin-body{background:linear-gradient(#fbf7f1,#f2eadf)}.admin-shell{width:min(1280px,calc(100% - 26px));margin:26px auto 50px}.admin-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.admin-top h1{font-size:58px;line-height:1;margin:4px 0}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 15px;font-weight:800;cursor:pointer}.tab.active{background:var(--text);color:#fff}.tabpage{display:none}.tabpage.active{display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.stat{background:#fff;border:1px solid var(--line);border-radius:21px;padding:17px;box-shadow:var(--shadow)}.stat span{display:block;color:var(--muted);font-size:14px}.stat b{display:block;font-size:34px;margin-top:6px}.admin-card{padding:18px;margin-top:15px}.toolbar{position:sticky;top:8px;z-index:30;display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:10px;background:rgba(255,253,250,.95);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:22px;padding:12px;box-shadow:var(--shadow);margin:15px 0}.invite-list{display:grid;gap:13px}.invite{padding:17px}.invite-head{display:flex;justify-content:space-between;gap:12px}.invite-name{font-size:26px;font-weight:900}.badge{display:inline-flex;padding:7px 11px;border-radius:999px;font-weight:800;font-size:13px}.badge.yes{background:var(--yesbg);color:var(--yes)}.badge.no{background:var(--nobg);color:var(--no)}.badge.maybe{background:var(--maybebg);color:var(--maybe)}.badge.pending{background:#f2eee8;color:#82776e}.people{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:9px;margin-top:13px}.person{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;padding:11px;background:#fff}.person-icon{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-weight:900}.person.yes .person-icon{background:var(--yesbg);color:var(--yes)}.person.no .person-icon{background:var(--nobg);color:var(--no)}.person.maybe .person-icon,.person.pending .person-icon{background:#f1eee9;color:#887f76}.person small{display:block;color:var(--muted)}details{margin-top:13px;border-top:1px solid var(--line);padding-top:12px}summary{font-weight:900;cursor:pointer}.row{display:grid;grid-template-columns:1.2fr .8fr auto;gap:9px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:15px;margin-top:9px}.addbar{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.addpill{border:1px dashed var(--gold);background:#fff9f0;color:var(--gold2);font-weight:800;border-radius:999px;padding:8px 12px;cursor:pointer}.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.content-section{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px}.content-section h3{font-size:28px;margin:0 0 10px}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.loginbox{width:min(500px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow)}.loginbox h1{font-size:56px;line-height:1;margin:8px 0}.image-preview{width:100%;aspect-ratio:16/8;border-radius:18px;object-fit:cover;border:1px solid var(--line)}@media(max-width:900px){.places,.stats,.toolbar,.content-grid,.row{grid-template-columns:1fr}.admin-top{flex-direction:column}}
/* Premium appearance profiles */
.heading-compact .hero h1{font-size:clamp(50px,7.5vw,94px)}
.heading-compact .intro h2,.heading-compact .section-title{font-size:clamp(39px,5vw,62px)}
.heading-compact .guest-name{font-size:50px}
.heading-compact .question{font-size:clamp(30px,3.5vw,44px)}
.heading-standard .hero h1{font-size:clamp(58px,9vw,112px)}
.heading-standard .intro h2,.heading-standard .section-title{font-size:clamp(44px,6vw,72px)}
.heading-standard .guest-name{font-size:58px}
.heading-standard .question{font-size:clamp(34px,4vw,50px)}
.heading-grand .hero h1{font-size:clamp(64px,10vw,126px)}
.heading-grand .intro h2,.heading-grand .section-title{font-size:clamp(48px,6.6vw,80px)}
.heading-grand .guest-name{font-size:64px}
.heading-grand .question{font-size:clamp(37px,4.5vw,56px)}
.body-compact{font-size:15px}.body-compact .hero-text{font-size:clamp(17px,1.9vw,22px)}.body-compact .intro p{font-size:18px}
.body-standard{font-size:16px}.body-standard .hero-text{font-size:clamp(18px,2.1vw,24px)}.body-standard .intro p{font-size:20px}
.body-comfortable{font-size:17px}.body-comfortable .hero-text{font-size:clamp(19px,2.3vw,26px)}.body-comfortable .intro p{font-size:21px}
.theme-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.theme-choice{position:relative;display:block;border:1px solid var(--line);border-radius:18px;padding:12px;background:#fff;cursor:pointer}
.theme-choice input{position:absolute;opacity:0;pointer-events:none}
.theme-choice:has(input:checked){outline:3px solid rgba(183,136,80,.24);border-color:var(--gold)}
.theme-swatch{height:78px;border-radius:12px;margin-bottom:10px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid rgba(0,0,0,.06)}
.theme-swatch span{display:block}
.theme-choice b{display:block}.theme-choice small{display:block;color:#766d64;line-height:1.35;margin-top:4px}
.guide{background:#fffaf2;border:1px solid #ead8bb;border-radius:18px;padding:15px;margin:12px 0;color:#66513a}
.guide strong{color:#3e3023}
.appearance-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.step{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px}.step b{display:block}.step span{font-size:13px;color:#766d64}
.preview-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}
@media(max-width:1050px){.theme-grid{grid-template-columns:1fr 1fr}.appearance-steps{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.theme-grid,.appearance-steps{grid-template-columns:1fr}.heading-grand .hero h1{font-size:clamp(58px,17vw,88px)}}

/* V5.2 — czytelniejsza typografia */
.admin-top h1{font-size:clamp(40px,5vw,58px)!important;line-height:1.02!important}
.intro h2,.section-title{max-width:980px;margin-left:auto;margin-right:auto}
.place-date{font-weight:800;color:var(--text)!important;margin:2px 0 4px}
.route-note{font-size:12px!important;color:var(--muted)!important;margin:8px 0 0!important}
.demo-explainer{max-width:980px;margin:0 auto;background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:25px;box-shadow:var(--shadow);text-align:center}
.demo-explainer h2{font-size:clamp(34px,5vw,54px);line-height:1.05;margin:6px 0 12px}
.demo-features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px;text-align:left}
.demo-feature{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff)}
.demo-feature b{display:block;margin-bottom:4px}
.invite-placeholder{text-align:center;padding:18px 10px 8px}
.invite-placeholder-icon{width:54px;height:54px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:var(--selected,#fff9f0);border:1px solid var(--line);font-size:24px}
.invite-placeholder h3{font-size:clamp(30px,4vw,44px);line-height:1.08;margin:8px auto 10px;max-width:720px}
.invite-placeholder p{max-width:720px;margin:0 auto 14px;color:var(--muted);font-size:17px}
.invite-example{max-width:650px;margin:18px auto 0;padding:16px;border:1px dashed var(--gold);border-radius:18px;background:var(--selected,#fff9f0)}
.wedding-footer{padding:34px 16px 24px;text-align:center;border-top:1px solid var(--line);color:var(--muted)}
.wedding-footer strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:27px;color:var(--text);margin-bottom:4px}
@media(max-width:760px){
  .demo-features{grid-template-columns:1fr}
  .intro h2,.section-title{font-size:clamp(38px,12vw,58px)!important}
  .place h3{font-size:clamp(32px,9vw,42px)!important}
  .admin-top h1{font-size:40px!important}
}

/* V5.4 — stabilna wysokość zdjęcia. Brak vh/dvh = brak powiększania podczas chowania paska przeglądarki */
@media(max-width:900px){.hero{height:690px}}
@media(max-width:600px){
 .hero{height:640px;min-height:0!important}
 .hero-in{padding:80px 0 42px}
 .image-preview{aspect-ratio:16/9}
}

/* V5.7 mobile hardening */
html,body{width:100%;max-width:100%;overflow-x:hidden!important}
*,*::before,*::after{box-sizing:border-box;min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
.wrap{width:calc(100% - 24px)!important;max-width:1120px!important}
@media(max-width:600px){.hero{height:620px!important;min-height:0!important}.hero-in{padding:58px 0 34px!important}.hero h1{font-size:clamp(50px,13vw,68px)!important;line-height:.94!important}.hero-text{font-size:16px!important;line-height:1.5!important}.demo-features,.places,.people{grid-template-columns:1fr!important}.section{padding:44px 0!important}.place,.rsvp,.demo-explainer{padding:18px!important}}


/* V6.29 — jedna przestrzeń: strona + panel */
.admin-subtitle{
  margin:8px 0 0;
  max-width:680px;
  color:var(--muted);
  font-size:14px;
}
.workspace-switch{
  display:inline-flex;
  gap:4px;
  padding:4px;
  margin:18px 0 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 24px rgba(65,45,24,.06);
}
.workspace-toggle{
  border:0;
  background:transparent;
  color:var(--muted);
  border-radius:999px;
  padding:11px 18px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.workspace-toggle.active{
  background:var(--text);
  color:#fff;
}
.workspace-view{display:none}
.workspace-view.active{display:block}
.preview-workspace{padding-top:12px}
.preview-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  padding:18px 20px;
  margin-bottom:14px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}
.preview-toolbar h2{
  margin:3px 0 4px;
  font-size:38px;
  line-height:1;
}
.preview-toolbar p{
  margin:0;
  max-width:680px;
  color:var(--muted);
  font-size:13px;
}
.preview-size.active{
  background:var(--text);
  color:#fff;
  border-color:var(--text);
}
.preview-stage{
  display:flex;
  justify-content:center;
  min-height:720px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:26px;
  background:#e8ded2;
  overflow:hidden;
}
.preview-device{
  width:100%;
  min-height:720px;
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  box-shadow:0 20px 55px rgba(35,25,18,.18);
  transition:width .25s ease,border-radius .25s ease;
}
.preview-stage.phone .preview-device{
  width:min(430px,100%);
  border-radius:30px;
}
.preview-device iframe{
  display:block;
  width:100%;
  height:78vh;
  min-height:720px;
  border:0;
  background:#fff;
}
.mobile-admin-nav{display:none}

@media(min-width:901px){
  .admin-shell{width:min(1380px,calc(100% - 34px))}
}

@media(max-width:900px){
  .admin-top-actions{width:100%}
  .admin-top-actions .btn{flex:1}
  .preview-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .preview-stage{padding:8px;min-height:650px}
  .preview-device,.preview-device iframe{min-height:650px}
}

@media(max-width:700px){
  .admin-body{padding-bottom:78px}
  .admin-shell{width:calc(100% - 20px);margin:14px auto 28px}
  .admin-top h1{font-size:42px!important}
  .admin-subtitle{font-size:13px;line-height:1.5}
  .admin-top-actions .btn:first-child{display:none}
  .workspace-switch{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .workspace-toggle{padding:11px 8px}
  .tabs{display:none!important}
  .preview-toolbar{padding:16px}
  .preview-toolbar h2{font-size:34px}
  .preview-toolbar .actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .preview-toolbar .actions .btn{width:100%;padding:10px 8px;font-size:12px}
  .preview-toolbar .actions .btn:last-child{grid-column:1/-1}
  .preview-stage{border-radius:18px;padding:0;background:#ddd2c6}
  .preview-stage.desktop .preview-device,
  .preview-stage.phone .preview-device{width:100%;border-radius:16px}
  .preview-device iframe{height:calc(100vh - 210px);min-height:590px}
  .mobile-admin-nav{
    position:fixed;
    z-index:9995;
    left:8px;
    right:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:3px;
    padding:6px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    background:rgba(35,29,25,.96);
    box-shadow:0 14px 38px rgba(0,0,0,.24);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }
  .mobile-admin-nav button{
    min-height:51px;
    border:0;
    border-radius:12px;
    background:transparent;
    color:rgba(255,255,255,.68);
    font:inherit;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
  }
  .mobile-admin-nav button span{
    display:block;
    margin-bottom:2px;
    font-size:17px;
    line-height:1;
  }
  .mobile-admin-nav button.active{
    background:#fff;
    color:var(--text);
  }
}
