:root {
  --ink: #22211f;
  --ink-soft: #3e3b37;
  --paper: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #f1efea;
  --surface-warm: #f5efe8;
  --line: rgba(39, 36, 32, .11);
  --line-strong: rgba(39, 36, 32, .19);
  --muted: #77736d;
  --accent: #9a7552;
  --accent-dark: #755438;
  --accent-soft: #eee3d6;
  --green: #2f7651;
  --green-soft: #e7f3eb;
  --red: #a64d47;
  --red-soft: #f8ecea;
  --shadow-sm: 0 8px 30px rgba(42, 36, 29, .06);
  --shadow-md: 0 22px 70px rgba(42, 36, 29, .09);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.62 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
main { min-height: calc(100vh - 150px); }
img { max-width: 100%; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 243, .88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  text-decoration: none;
  font-weight: 850;
  letter-spacing: .17em;
  font-size: 14px;
}
.brand span { font-weight: 450; color: var(--muted); margin-left: 9px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a, .nav-button {
  border: 0;
  background: none;
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}
.site-header nav a:not(.nav-cta), .nav-button { position: relative; }
.site-header nav a:not(.nav-cta)::after, .nav-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--ink);
  transition: right .2s ease;
}
.site-header nav a:hover::after, .nav-button:hover::after { right: 0; }
.nav-cta { border: 1px solid var(--line-strong) !important; padding: 9px 15px; border-radius: 9px; }
.inline-form { display: inline; margin: 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
}
h1 { font-size: clamp(42px, 7vw, 84px); margin-bottom: 22px; }
h2 { font-size: clamp(29px, 4vw, 48px); }
h3 { font-size: 19px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 15px;
}
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 21px); max-width: 690px; color: #504d48; }
.narrow { width: min(760px, calc(100% - 36px)); margin-left: auto !important; margin-right: auto !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 21px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 22px rgba(34, 33, 31, .13); }
.button.primary:hover { background: #080808; box-shadow: 0 11px 30px rgba(34, 33, 31, .19); }
.button.secondary { background: transparent; color: var(--ink); }
.button.soft { background: var(--surface-soft); color: var(--ink); border-color: transparent; }
.button.danger { border-color: rgba(166, 77, 71, .3); color: var(--red); background: transparent; box-shadow: none; }
.button.full { width: 100%; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-with-icon > span { font-size: 18px; font-weight: 400; line-height: 1; }
.back-link { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 38px; }
.back-link:hover { color: var(--ink); }

/* Strona główna */
.hero { width: min(1320px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.12fr .88fr; gap: 50px; align-items: center; min-height: 680px; padding: 70px 0; }
.hero-copy { padding-left: clamp(0px, 3vw, 42px); }
.hero h1 em { font-weight: 400; color: #8b8175; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-art { position: relative; min-height: 520px; }
.photo-card { position: absolute; border: 10px solid #fff; background: linear-gradient(135deg, #2f3940, #aa8b69); box-shadow: var(--shadow-md); }
.photo-one { width: 62%; height: 68%; left: 4%; top: 8%; transform: rotate(-5deg); }
.photo-two { width: 58%; height: 62%; right: 0; bottom: 3%; transform: rotate(7deg); background: linear-gradient(135deg, #d8b796, #5d4539); }
.qr-mock { position: absolute; left: 28%; top: 31%; width: 210px; height: 240px; background: #fff; padding: 24px; box-shadow: 0 16px 50px rgba(0, 0, 0, .22); display: grid; place-items: center; text-align: center; z-index: 3; }
.qr-mock span { width: 140px; height: 140px; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 / 18px 18px; }
.qr-mock b { font-size: 12px; letter-spacing: .14em; }
.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0; }
.steps, .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article, .plans article { background: rgba(255, 255, 255, .64); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; min-height: 230px; }
.steps article span { display: block; font: 34px Georgia; color: var(--accent); margin-bottom: 42px; }
.steps p, .plans p { color: var(--muted); }
.plans article { min-height: 250px; }
.plans article strong { display: block; font: 42px Georgia; margin: 25px 0 4px; }
.plans .featured { background: var(--ink); color: #fff; transform: translateY(-14px); border-color: var(--ink); }
.plans .featured small { color: #d9bb92; text-transform: uppercase; letter-spacing: .12em; }

/* Stopka */
.site-footer { min-height: 78px; border-top: 1px solid var(--line); padding: 25px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.site-footer a { text-underline-offset: 3px; }

/* Logowanie */
.auth-shell { width: min(1180px, calc(100% - 36px)); margin: 55px auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 660px; background: #fff; box-shadow: var(--shadow-md); border-radius: var(--radius-lg); overflow: hidden; }
.auth-shell.compact { display: block; max-width: 540px; min-height: 0; }
.auth-visual { background: linear-gradient(145deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .62)), url('/assets/login-bg.jpg') center / cover, #39352f; display: flex; align-items: flex-end; padding: 46px; color: #fff; }
.auth-visual-copy span { font-weight: 900; letter-spacing: .2em; }
.auth-visual-copy p { font: 36px/1.08 Georgia; max-width: 420px; margin: 18px 0 0; }
.auth-card { padding: clamp(32px, 6vw, 72px); align-self: center; }
.auth-card h1 { font-size: clamp(42px, 5vw, 64px); }
.form-stack { display: grid; gap: 18px; margin-top: 30px; }
.form-stack label, .form-card label, .guest-card label { display: grid; gap: 8px; font-size: 12px; font-weight: 750; letter-spacing: .025em; }
.form-stack input, .form-card input, .guest-card input { width: 100%; height: 54px; border: 1px solid var(--line-strong); background: #fbfaf8; padding: 0 15px; border-radius: 11px; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
.form-stack input:focus, .form-card input:focus, .guest-card input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(154, 117, 82, .10); }
.check { grid-template-columns: 20px 1fr !important; align-items: start !important; font-weight: 400 !important; font-size: 12px !important; }
.check input { width: 18px !important; height: 18px !important; }
.auth-switch { text-align: center; font-size: 13px; margin: 20px 0 0; }

/* Komunikaty */
.alert { width: min(1180px, calc(100% - 40px)); margin: 18px auto; padding: 14px 17px; border-radius: var(--radius-sm); border: 1px solid; }
.client-page > .alert { width: 100%; }
.auth-card .alert, .form-card .alert, .guest-card .alert { width: 100%; }
.alert.success { background: var(--green-soft); border-color: rgba(47, 118, 81, .18); color: #205d3c; }
.alert.error { background: var(--red-soft); border-color: rgba(166, 77, 71, .18); color: #7f332e; }

/* Panel klienta */
.client-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.dashboard-hero { min-height: 240px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding: 20px 4px 48px; border-bottom: 1px solid var(--line); }
.dashboard-hero h1 { font-size: clamp(52px, 7vw, 80px); margin: 0 0 13px; }
.account-line { color: var(--muted); margin: 0; }
.account-line strong { color: var(--ink-soft); font-weight: 600; }
.collection-head { display: flex; align-items: baseline; justify-content: space-between; margin: 38px 2px 18px; color: var(--muted); }
.collection-head p { color: var(--ink); font-weight: 750; margin: 0; }
.collection-head span { font-size: 12px; }
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.album-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px 26px 21px; text-decoration: none; min-height: 310px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.album-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.album-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.paid { background: var(--green-soft); color: var(--green); }
.status.pending { background: #f7ead7; color: #8a5b1d; }
.album-card-body { margin: 38px 0 32px; }
.album-kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 800; margin-bottom: 10px; }
.album-card h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 15px; overflow-wrap: anywhere; }
.album-package { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; margin: 0; }
.album-package span:first-child { text-transform: capitalize; }
.album-package span + span::before { content: "·"; margin-right: 9px; }
.album-card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.album-stats { display: flex; gap: 26px; }
.album-stats span { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 11px; }
.album-stats b { font: 23px Georgia; color: var(--ink); }
.album-open { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 750; }
.album-open i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); font-style: normal; transition: transform .2s, background .2s; }
.album-card:hover .album-open i { transform: translateX(3px); background: var(--accent-soft); }
.empty { width: min(800px, calc(100% - 40px)); margin: 40px auto 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 60px; text-align: center; box-shadow: var(--shadow-sm); }
.empty h2 { margin-bottom: 10px; }
.empty > p:not(.eyebrow) { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.empty-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 25px; margin: 0 auto 24px; }
.empty-dashboard { margin-top: 48px; }

/* Nowy album */
.form-page { max-width: 980px; }
.form-page-head { max-width: 790px; padding: 12px 4px 42px; }
.form-page-head h1 { font-size: clamp(48px, 7vw, 76px); margin-bottom: 18px; }
.form-page-head > p:last-child { max-width: 620px; color: var(--muted); font-size: 17px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 52px); margin: 0 auto; box-shadow: var(--shadow-md); display: grid; gap: 0; }
.event-form { width: 100%; }
.form-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; }
.form-section-title { display: grid; grid-template-columns: 38px 1fr; gap: 18px; margin-bottom: 24px; }
.form-section-title > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.form-section-title h2 { font-family: inherit; font-size: 17px; font-weight: 750; letter-spacing: 0; margin: 2px 0 3px; }
.form-section-title p { color: var(--muted); font-size: 12px; margin: 0; }
.form-row { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.form-card label small { font-weight: 450; color: var(--muted); }
.form-card fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 19px; min-height: 142px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; background: #fbfaf8; transition: border .18s, box-shadow .18s, background .18s, transform .18s; }
.choice:hover > span { transform: translateY(-2px); border-color: var(--line-strong); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(154, 117, 82, .12); }
.choice input:checked + span { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-sm); }
.choice-check { position: absolute; top: 15px; right: 15px; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; }
.choice input:checked + span .choice-check { border: 5px solid var(--ink); }
.choice b { font-size: 14px; margin-bottom: 5px; }
.choice strong { font: 28px Georgia; margin-bottom: 2px; }
.choice small { color: var(--muted); font-size: 11px; }
.choice-grid.templates { grid-template-columns: repeat(4, 1fr); }
.choice-grid.templates .template-choice > span { min-height: 176px; padding: 12px; justify-content: flex-start; gap: 11px; overflow: hidden; }
.template-preview { position: relative; width: 100%; height: 82px; border-radius: 9px; overflow: hidden; background: linear-gradient(145deg, #292521, #8b6647); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.template-preview::before { content: ""; position: absolute; inset: 11px 25%; border: 1px solid rgba(255,255,255,.82); border-radius: 4px; background: rgba(255,255,255,.92); }
.template-preview i { position: absolute; width: 22px; height: 22px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: repeating-linear-gradient(90deg, #171411 0 3px, transparent 3px 5px), repeating-linear-gradient(0deg, #171411 0 3px, transparent 3px 5px); }
.template-preview-urodziny { background: linear-gradient(145deg, #a97684, #e5c0ae); }
.template-preview-wesele { background: linear-gradient(145deg, #4f5f53, #b7a783); }
.template-preview-18 { background: linear-gradient(145deg, #171717, #b58a45); }
.template-label { display: grid; gap: 1px; padding: 0 3px; }
.template-label b { margin: 0; }
.template-label small { font-size: 10px; }
.template-selected { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 5px; padding: 5px 8px 5px 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; box-shadow: 0 4px 12px rgba(17,17,17,.22); }
.template-selected i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-style: normal; font-size: 11px; }
.template-choice input:checked + span { border-color: var(--accent-dark); background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent-dark), 0 10px 25px rgba(82,60,39,.12); }
.template-choice input:checked + span .template-selected { opacity: 1; transform: translateY(0); }
.template-choice input:checked + span .template-preview { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--accent-dark); }
.checkout-row { padding-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.checkout-row > div { display: grid; gap: 2px; }
.checkout-row b { font-size: 13px; }
.checkout-row small { color: var(--muted); font-size: 11px; }
.fine-print { font-size: 11px; color: var(--muted); text-align: center; }

/* Instalacja na telefonie */
.install-app-button { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 10px 17px 10px 10px; background: var(--ink); color: #fff; box-shadow: 0 14px 40px rgba(18,15,12,.24); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.install-app-button[hidden] { display: none; }
.install-app-button:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(18,15,12,.30); }
.install-app-button > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); font-size: 17px; line-height: 1; }
.install-guide[hidden] { display: none; }
.install-guide { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.install-guide-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(20,17,14,.55); backdrop-filter: blur(5px); cursor: default; }
.install-guide > section { position: relative; width: min(470px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.install-guide h2 { margin: 6px 30px 20px 0; font-size: clamp(28px, 6vw, 40px); line-height: 1.06; }
.install-guide ol { margin: 0 0 25px; padding-left: 22px; color: var(--muted); }
.install-guide li { padding: 5px 0 5px 5px; }
.install-guide p[data-browser-instructions] { margin: 0 0 25px; color: var(--muted); }
.install-guide-close { position: absolute; top: 17px; right: 17px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.install-guide-ok { width: 100%; }
.modal-open { overflow: hidden; }

/* Szczegóły albumu */
.event-page { max-width: 1120px; }
.event-hero { padding: 8px 4px 44px; border-bottom: 1px solid var(--line); }
.event-title-line { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.event-plan { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.event-hero h1 { font-size: clamp(52px, 8vw, 88px); margin: 0; max-width: 900px; overflow-wrap: anywhere; }
.payment-card { margin-top: 36px; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: center; }
.payment-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #f7ead7; color: #8a5b1d; font-size: 28px; }
.payment-card .eyebrow { margin-bottom: 6px; }
.payment-card h2 { font-size: 34px; margin-bottom: 8px; }
.payment-card p:last-child { color: var(--muted); margin: 0; }
.event-dashboard { margin-top: 28px; }
.event-overview { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(25px, 5vw, 48px); display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; box-shadow: var(--shadow-sm); }
.qr-wrap { text-align: center; }
.qr-wrap > span { display: block; color: var(--muted); font-size: 10px; margin-top: 12px; }
.qr-css { width: 230px; height: 230px; background: #fff; border: 12px solid #fff; border-radius: 17px; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 12px 38px rgba(32, 27, 22, .10); }
.qr-css img { display: block; width: 100%; height: 100%; border-radius: 8px; }
.share-panel h2 { margin-bottom: 12px; }
.share-panel > p:not(.eyebrow) { color: var(--muted); max-width: 560px; }
.copy-link { min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 10px; }
.copy-link span { min-width: 0; flex: 1; color: var(--ink-soft); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-link button { border: 0; border-radius: 8px; padding: 7px 11px; background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.compact-actions { margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.stat-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.stat-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.stat-grid strong { display: block; font: 42px/1 Georgia; margin-bottom: 8px; }
.stat-grid small { color: var(--muted); font-size: 10px; }
.manage-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(27px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.manage-card .eyebrow { color: #d8b995; margin-bottom: 8px; }
.manage-card h2 { font-size: 34px; margin-bottom: 8px; }
.manage-card p:last-child { color: rgba(255, 255, 255, .62); margin: 0; max-width: 560px; }
.manage-card .button.primary { background: #fff; color: var(--ink); border-color: #fff; }
.manage-card .button.soft { background: rgba(255, 255, 255, .10); color: #fff; }
.danger-zone { margin: 64px 0 0; border-top: 1px solid rgba(166, 77, 71, .20); padding: 25px 2px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.danger-zone h3, .danger-zone p { margin-bottom: 3px; }
.danger-zone p { color: var(--muted); font-size: 12px; }

/* Wejście gościa */
.guest-shell { width: min(1040px, calc(100% - 36px)); margin: 70px auto 100px; display: grid; grid-template-columns: 1fr 440px; gap: clamp(45px, 8vw, 90px); align-items: center; min-height: 590px; }
.event-mark > span { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent-dark); font-weight: 850; }
.event-mark h1 { font-size: clamp(52px, 8vw, 88px); margin: 18px 0 22px; }
.event-mark > p { font-size: 17px; color: var(--muted); max-width: 560px; }
.guest-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.guest-points span, .upload-badges span { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; font-size: 10px; color: var(--muted); }
.guest-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.guest-card-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font: 24px Georgia; margin-bottom: 28px; }
.guest-card h2 { font-size: 35px; margin-bottom: 10px; }
.guest-card label { margin: 27px 0 18px; }
.guest-card .button { margin-top: 4px; }
.guest-card .fine-print { margin: 16px 0 0; }

/* Dodawanie zdjęć */
.upload-shell { width: min(980px, calc(100% - 28px)); margin: 58px auto 100px; }
.upload-head { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.upload-head h1 { font-size: clamp(48px, 8vw, 78px); margin-bottom: 12px; }
.upload-head > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.upload-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.upload-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 5vw, 38px); box-shadow: var(--shadow-md); }
.upload-box-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.upload-box-head h2 { font-family: inherit; font-size: 18px; font-weight: 750; letter-spacing: 0; margin-bottom: 3px; }
.upload-box-head p { color: var(--muted); font-size: 12px; margin: 0; }
.upload-box-head a { color: var(--muted); font-size: 12px; text-decoration: none; }
.picker { width: 100%; min-height: 230px; border: 1px dashed #bfb7ae; border-radius: var(--radius); background: #faf9f7; display: grid; place-items: center; align-content: center; gap: 8px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.picker:hover { border-color: var(--accent); background: var(--surface-warm); transform: translateY(-1px); }
.picker-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; font: 31px/1 Georgia; color: var(--accent-dark); margin-bottom: 6px; }
.picker b { font-size: 16px; }
.picker small { color: var(--muted); }
.selection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 20px 0; }
.selection article { position: relative; background: #eee; border-radius: var(--radius-sm); overflow: hidden; }
.selection img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.selection button { position: absolute; right: 7px; top: 7px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font-size: 20px; }
.selection small { position: absolute; left: 7px; bottom: 7px; background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 5px; }
.upload-status { min-height: 28px; margin-top: 13px; text-align: center; font-weight: 700; font-size: 13px; }
.my-photos { margin-top: 76px; }
.my-photos .section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.my-photos .section-title h2 { margin: 0; }
.my-photos .section-title .eyebrow { margin-bottom: 8px; }
.my-photos .section-title > span { background: var(--ink); color: #fff; min-width: 31px; height: 31px; display: grid; place-items: center; border-radius: 99px; font-size: 11px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-tile { position: relative; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.delete-photo { width: 100%; border: 0; background: #fff; color: var(--red); padding: 9px; cursor: pointer; font-size: 11px; }

/* Galeria */
.gallery-hero { padding: 76px 0 54px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 10%, rgba(238, 227, 214, .72), transparent 32%); }
.gallery-hero-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.gallery-hero h1 { font-size: clamp(52px, 8vw, 88px); margin-bottom: 13px; }
.gallery-hero p:last-child { color: var(--muted); margin: 0; }
.gallery-content { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 33px 0 100px; }
.gallery-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; margin: 0 5px 20px; }
.gallery-note span { color: var(--ink-soft); font-weight: 700; }
.masonry { columns: 4 260px; column-gap: 12px; }
.gallery-photo { display: block; position: relative; margin-bottom: 12px; break-inside: avoid; overflow: hidden; border-radius: 16px; background: #e9e6e0; box-shadow: 0 2px 14px rgba(39, 34, 28, .04); }
.gallery-photo img { display: block; width: 100%; transition: transform .45s ease; }
.gallery-photo:hover img { transform: scale(1.018); }
.gallery-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .58)); opacity: 0; transition: opacity .25s; }
.gallery-photo > span { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; display: grid; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.gallery-photo:hover::after, .gallery-photo:hover > span { opacity: 1; }
.gallery-photo:hover > span { transform: translateY(0); }
.gallery-photo i { font-style: normal; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; opacity: .7; }
.gallery-photo b { font-size: 12px; }
.gallery-empty { margin-top: 70px; }

/* Zaplecze i dokumenty */
.page-head { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-head h1 { font-size: clamp(44px, 6vw, 74px); margin-bottom: 10px; }
.admin-section, .legal { width: min(1180px, calc(100% - 40px)); margin: 0 auto 60px; }
.section-title { display: flex; align-items: center; gap: 13px; }
.section-title > span { background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 99px; }
.admin-table { display: grid; gap: 8px; }
.admin-table article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; }
.admin-table small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.row-actions form { margin: 0; }
.row-actions button { border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 7px 10px; cursor: pointer; }
.row-actions .delete { border-color: rgba(166, 77, 71, .35); color: var(--red); }
.legal { padding: 70px 0; }
.legal h1 { font-size: 64px; }
.legal h2 { font-size: 28px; margin-top: 42px; }
.legal p { max-width: 760px; }
.error-page { margin-top: 70px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 420px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans .featured { transform: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; }
  .album-grid { grid-template-columns: 1fr; }
  .guest-shell { grid-template-columns: 1fr; max-width: 680px; }
  .event-overview { grid-template-columns: 1fr; }
  .payment-card { grid-template-columns: auto 1fr; }
  .payment-card form { grid-column: 2; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice > span { min-height: 112px; }
  .choice-grid.templates { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .manage-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { height: 62px; padding: 0 14px; }
  .brand span { display: none; }
  .site-header nav { gap: 10px; }
  .site-header nav a, .nav-button { font-size: 9px; }
  .install-app-button { right: 12px; bottom: 12px; }
  .install-guide > section { padding: 29px 23px 23px; border-radius: 18px; }
  .nav-cta { padding: 7px 9px; }
  .hero { width: calc(100% - 28px); padding: 45px 0; gap: 20px; }
  .hero-art { min-height: 330px; }
  .qr-mock { width: 150px; height: 175px; padding: 16px; }
  .qr-mock span { width: 100px; height: 100px; }
  .section { padding: 60px 0; }
  .site-footer { display: grid; }
  .auth-shell { width: 100%; margin: 0; box-shadow: none; border-radius: 0; }
  .auth-visual { min-height: 240px; }
  .auth-card { padding: 34px 20px; }
  .client-page { width: calc(100% - 28px); padding: 38px 0 70px; }
  .dashboard-hero { min-height: 0; align-items: flex-start; flex-direction: column; padding-bottom: 30px; }
  .dashboard-hero .button { width: 100%; }
  .dashboard-hero h1 { font-size: 50px; }
  .collection-head span { display: none; }
  .album-card { min-height: 285px; padding: 21px 20px 18px; }
  .album-card-body { margin: 32px 0 26px; }
  .album-card-footer { align-items: flex-end; }
  .album-stats { gap: 14px; }
  .album-stats span { display: grid; gap: 0; }
  .album-open { font-size: 0; }
  .empty { padding: 38px 20px; width: calc(100% - 28px); }
  .form-page-head { padding-bottom: 24px; }
  .form-page-head h1 { font-size: 49px; }
  .back-link { margin-bottom: 27px; }
  .form-card { padding: 22px 18px; border-radius: 20px; }
  .form-section { padding: 29px 0; }
  .form-row { grid-template-columns: 1fr; }
  .checkout-row { align-items: stretch; flex-direction: column; }
  .checkout-row .button { width: 100%; }
  .event-title-line { align-items: flex-start; flex-direction: column; }
  .event-hero h1 { font-size: 52px; }
  .payment-card { grid-template-columns: 1fr; }
  .payment-card form { grid-column: 1; }
  .payment-card .button { width: 100%; }
  .event-overview { padding: 22px 18px; }
  .qr-css { width: 200px; height: 200px; }
  .copy-link span { font-size: 10px; }
  .compact-actions { display: grid; }
  .compact-actions .button { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid article { padding: 20px; }
  .stat-grid article:last-child { grid-column: 1 / -1; }
  .manage-card { padding: 25px 20px; }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .guest-shell { margin-top: 40px; gap: 28px; }
  .event-mark h1 { font-size: 54px; }
  .guest-card { padding: 28px 20px; }
  .upload-shell { margin-top: 38px; }
  .upload-head h1 { font-size: 52px; }
  .upload-box-head { align-items: flex-start; flex-direction: column; }
  .picker { min-height: 205px; padding: 20px; }
  .picker small { text-align: center; }
  .selection { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-hero { padding: 48px 0 34px; }
  .gallery-hero-inner { align-items: flex-start; flex-direction: column; width: calc(100% - 28px); }
  .gallery-hero-inner .button { width: 100%; }
  .gallery-note { align-items: flex-start; flex-direction: column; }
  .gallery-note small { display: none; }
  .gallery-content { width: calc(100% - 20px); padding-top: 16px; }
  .masonry { columns: 2 145px; column-gap: 8px; }
  .gallery-photo { margin-bottom: 8px; border-radius: 11px; }
  .gallery-photo::after, .gallery-photo > span { display: none; }
  .page-head { padding: 45px 0 25px; align-items: flex-start; flex-direction: column; }
  .admin-table article { grid-template-columns: 1fr; }
  .row-actions { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .site-header nav a:first-child { display: none; }
  .album-card-top time { font-size: 10px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article:last-child { grid-column: auto; }
}

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