/* ════════════════════════════════════════════════════════════
   Varianta D — Kreslená Šumava
   Ručně kreslená Šumava, která se sama kreslí. Stránka je jeden
   den: od svítání nad Borovou Ladou po noc pod hvězdami. Od dveří
   chalupy vede tečkovaná stezka se včelkou přes celý web.
   Písmo: Bricolage Grotesque (všechno) + Caveat (ručně psané).
   ════════════════════════════════════════════════════════════ */

:root {
  --ink:    #1f3b2c;   /* smrkový inkoust */
  --ink-2:  #4b6354;
  --river:  #2f7fbf;   /* Vltava */
  --berry:  #c2416c;   /* maliny — „se berou!“ a „a“ mezi jmény */
  --sun:    #f5b82e;
  --paper:  #ffffff;
  --moon:   #f3ecdb;
  --leaf:   #9fcd96;

  --f-dis:  "Bricolage Grotesque", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --lane: max(var(--pad), calc(150px - max(0px, (100vw - var(--wrap)) / 2)));
  --sec: clamp(80px, 9vw, 130px);
  --ease: cubic-bezier(.2,.8,.2,1);
  --pop: cubic-bezier(.3,1.6,.5,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: #eaf5e2; color: var(--ink); font: 400 17px/1.65 var(--f-dis); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--f-dis); font-weight: 800; line-height: .98; letter-spacing: -.025em; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--sun); padding: 12px 20px; font-weight: 700; }
.skip-link:focus { left: 0; }

.wrap { position: relative; z-index: 3; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--lane) var(--pad); }

/* ── kresby (kresba.js) ────────────────────────────────── */
.doodle { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .doodle.is-ready .dl { stroke-dasharray: 1 1; stroke-dashoffset: 1.001; transition: stroke-dashoffset 1s var(--ease); }
.js .doodle.is-drawn .dl { stroke-dashoffset: 0; }
.js .doodle.is-ready .fill { fill-opacity: 0; transition: fill-opacity .7s ease var(--after, 1s); }
.js .doodle.is-drawn .fill { fill-opacity: 1; }
.js .doodle.is-ready .bloom { transform: scale(0); transform-box: fill-box; transform-origin: 50% 70%; transition: transform .7s var(--pop) calc(var(--after, 1s) + var(--bd, 0s)); }
.js .doodle.is-drawn .bloom { transform: none; }
.js .doodle.is-ready text { opacity: 0; transition: opacity .6s ease var(--after, 1s); }
.js .doodle.is-drawn text { opacity: 1; }
.hand { font-family: var(--f-hand); font-weight: 700; font-size: 34px; fill: var(--ink); stroke: none; }
.hand--sm { font-size: 26px; font-weight: 500; }

/* ── tlačítka a karty („samolepky“) ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 16px/1.1 var(--f-dis); padding: 14px 24px;
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; cursor: pointer; color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--sun   { background: var(--sun); }
.btn--paper { background: var(--paper); }
.btn--sm    { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; padding: 17px; font-size: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.card { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }

/* ── nav — plovoucí samolepka ──────────────────────────── */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 100; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px)); height: 60px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 8px 0 24px; }
.brand { font: 800 22px/1 var(--f-dis); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.brand span { font: 700 28px/1 var(--f-hand); color: var(--river); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 4px 0; }
.nav__links a:hover, .nav__links a.is-active { text-decoration: underline wavy var(--river) 2px; text-underline-offset: 6px; }
.nav__cta { padding: 9px 18px; font-size: 15px; box-shadow: 2px 2px 0 var(--ink); }
.nav__cta:hover { box-shadow: 3px 3px 0 var(--ink); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 2.5px solid var(--ink); background: var(--sun); border-radius: 50%; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.burger span:first-child { top: 15px; }
.burger span:last-child  { bottom: 15px; }

.menu { position: fixed; inset: 0; z-index: 200; background: var(--sun); overflow-y: auto; padding: 20px var(--pad) 40px; }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu__close { width: 46px; height: 46px; border: 2.5px solid var(--ink); background: var(--paper); border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.menu__links { display: flex; flex-direction: column; padding-top: 24px; }
.menu__links a:not(.btn) { font: 800 44px/1.2 var(--f-dis); letter-spacing: -.03em; text-decoration: none; }
.menu__links .btn { margin-top: 32px; align-self: flex-start; background: var(--paper); }

/* ── stezka se včelkou ─────────────────────────────────── */
main { position: relative; }
.trail { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; overflow: visible; }
.trail__line { fill: none; stroke: url(#trail-grad); stroke-width: 3.5; stroke-dasharray: 1.5 11; stroke-linecap: round; }
.trail__stop { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .5s var(--pop); }
.trail__stop.is-on { transform: none; }
.trail__petal { stroke: var(--ink); stroke-width: 1.8; }
.trail__mid { fill: var(--sun); stroke: var(--ink); stroke-width: 1.8; }
.trail__bee { opacity: 0; transition: opacity .3s ease; }
.trail__bee.is-on { opacity: 1; }
.trail__bee path { fill: none; stroke: #1f3b2c; stroke-width: 2; }
.trail__body { fill: var(--sun); stroke: #1f3b2c; stroke-width: 2; }
.trail__eye { fill: #1f3b2c; }
.wing { fill: rgba(255,255,255,.85); stroke: #1f3b2c; stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .wing { animation: flap .16s ease-in-out infinite alternate; }
}
@keyframes flap { to { transform: scaleY(.55); } }

/* ── hero: svítání nad Borovou Ladou ───────────────────── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 104px var(--pad) clamp(250px, 24vw, 360px);
  background: linear-gradient(#ffe6b3 0%, #fff1d6 40%, #eaf5e2 100%);
}
.hero__inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.land { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; z-index: 1; }
.land .river { stroke: var(--river); stroke-width: 6; opacity: .85; }
.land .lynx-note { fill: var(--ink-2); }

.sun { position: absolute; top: 96px; right: 7%; width: clamp(88px, 10vw, 150px); z-index: 1; stroke-width: 3; }
.sun__rays { transform-box: fill-box; transform-origin: center; }
.cloud { position: absolute; z-index: 1; width: 190px; stroke-width: 2.5; }
.cloud--1 { top: 22%; left: 5%; }
.cloud--2 { top: 14%; right: 24%; width: 140px; }
@media (prefers-reduced-motion: no-preference) {
  .sun.is-drawn .sun__rays { animation: spin 50s linear 2.5s infinite; }
  .cloud--1 { animation: drift 16s ease-in-out infinite alternate; }
  .cloud--2 { animation: drift 20s ease-in-out -6s infinite alternate-reverse; }
  .bee { animation: none; }
  .jar__bee { animation: bob 2.4s ease-in-out infinite alternate; }
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-28px); } to { transform: translateX(28px); } }
@keyframes bob   { to { transform: translateY(-8px); } }
.js .land.is-ready .bee, .js .land.is-ready .lynx-note { opacity: 0; transition: opacity .6s ease var(--after, 2s); }
.js .land.is-drawn .bee, .js .land.is-drawn .lynx-note { opacity: 1; }
.bee ellipse:not(.wing), .bee path { stroke: #1f3b2c; stroke-width: 2; }

.hero__kicker { font: 700 clamp(32px, 3.2vw, 44px)/1 var(--f-hand); color: var(--berry); transform: rotate(-4deg); }
.title {
  position: relative; margin-top: 10px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .16em;
  font-size: clamp(56px, 9.4vw, 140px); line-height: .95; letter-spacing: -.045em;
}
.title__a { font: 700 1.1em/1 var(--f-hand); color: var(--berry); letter-spacing: 0; transform: rotate(-8deg) translateY(-.04em); display: inline-block; }
.title__swoosh { position: absolute; left: 6%; right: 6%; bottom: -.2em; width: 88%; height: .28em; stroke: var(--sun); stroke-width: 9; z-index: -1; }

.hero__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 34px; }
.sticker {
  display: inline-block; padding: 8px 18px; background: var(--sun);
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700; font-size: 18px; transform: rotate(-3deg);
}
.count { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.count b { font-weight: 800; font-variant-numeric: tabular-nums; }
.count__num { position: relative; display: inline-block; padding: 0 .1em; }
.count__num b { font-size: 1.5em; }
.count__ring { position: absolute; left: -16px; right: -16px; top: -10px; bottom: -8px; width: calc(100% + 32px); height: calc(100% + 18px); stroke: var(--river); stroke-width: 2.5; }
.count.is-married .count__rest { display: none; }
.count.is-married .count__date { font: 700 34px/1 var(--f-hand); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ── sekce: den od rána do noci ────────────────────────── */
.sec { position: relative; padding-block: var(--sec); scroll-margin-top: 80px; }
.sec--1 { background: linear-gradient(#eaf5e2, #e2f1f6); }
.sec--2 { background: linear-gradient(#e2f1f6, #eaf4ea); }
.sec--3 { background: linear-gradient(#eaf4ea, #f2f2dd); }
.sec--4 { background: linear-gradient(#f2f2dd, #f9ecd8); }
.sec--5 { background: linear-gradient(#f9ecd8, #fbe3d2); }
.sec--6 { background: linear-gradient(#fbe3d2, #f6dcdd); }
.sec--7 { background: linear-gradient(#f6dcdd, #e8d8ec); }
.sec--8 { background: linear-gradient(#e8d8ec, #cdbfe3); }

.h2 { font-size: clamp(42px, 5.4vw, 78px); line-height: .95; letter-spacing: -.035em; text-wrap: balance; max-width: 13ch; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.body { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.h2 + .body, .address + .body { margin-top: 20px; }
.hint { margin-top: 18px; font: 500 22px/1.2 var(--f-hand); color: var(--ink-2); text-align: center; }

.art { width: 100%; height: auto; }

/* pozvánka */
.split { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.art--tree { max-width: 320px; justify-self: center; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 40px; margin-top: 32px; }
.facts dt { font: 700 24px/1 var(--f-hand); color: var(--river); }
.facts dd { margin-top: 6px; font-weight: 600; font-size: 18px; line-height: 1.3; }

/* program */
.program { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.note { position: relative; margin-top: 56px; padding: 26px 24px 24px; }
.note__tent { position: absolute; top: -52px; right: 18px; width: 92px; }
.note h3 { font-size: 24px; }
.note p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.day__item { display: grid; grid-template-columns: 56px 84px 1fr; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 2px dashed rgba(31,59,44,.18); }
.ico { width: 52px; height: 52px; stroke-width: 2.4; }
.day__item time { font: 700 32px/1 var(--f-hand); color: var(--river); }
.day__what { font-weight: 600; font-size: 19px; line-height: 1.25; }
.day__what small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.day__item--hi { margin: 14px -20px; padding: 18px 20px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-.8deg); }
.day__item--hi .ico { width: 60px; height: 60px; }
.day__item--hi time { font-size: 42px; }
.day__item--hi .day__what { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

/* místo */
.place { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.address { margin-top: 22px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.map { position: relative; margin-top: 30px; }
.map__card { overflow: hidden; transform: rotate(1.2deg); }
.map__frame { display: block; width: 100%; aspect-ratio: 4/3; border: 0; }
.map__compass { position: absolute; top: -44px; right: -18px; width: 92px; z-index: 2; }
.map__note { position: absolute; top: -48px; left: 10px; font: 700 32px/1 var(--f-hand); color: var(--river); transform: rotate(-6deg); }
.map__arrow { position: absolute; top: -18px; left: 150px; width: 110px; z-index: 2; stroke: var(--river); stroke-width: 3; }
.map figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-2); }

/* ubytování */
.stay { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.stay__art { width: 150px; height: auto; margin-bottom: 12px; }
.stay__who { font: 700 25px/1 var(--f-hand); color: var(--river); }
.stay h3 { margin-top: 6px; font-size: 28px; }
.stay .body { margin-top: 10px; }

/* dress code — šumavská louka */
.dress__head { max-width: 760px; }
.meadow { margin-top: 48px; }
.flowers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.swatch-btn { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 18px; }
.flower { width: 100%; max-width: 150px; height: auto; stroke-width: 2.4; transform-origin: 50% 100%; transition: transform .35s var(--pop); }
.swatch-btn:hover .flower, .swatch-btn:focus-visible .flower { transform: rotate(-6deg) scale(1.06); }
.swatch__name { margin-top: 10px; font: 700 32px/1 var(--f-hand); }
.swatch__sub { font-size: 14px; color: var(--ink-2); }

/* dary — medová sklenice */
.gift { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.art--jar { max-width: 280px; justify-self: center; }
.jar__label { font-size: 40px; text-anchor: middle; }
.js .art--jar.is-ready .honey { transform: translateY(72%); transition: transform 1.8s var(--ease) var(--after, 1s); }
.js .art--jar.is-drawn .honey { transform: none; }
.jar__bee { transform-box: fill-box; }
.gift__card { margin-top: 32px; padding: 28px 28px 26px; max-width: 520px; }
.gift__label { font: 700 24px/1 var(--f-hand); color: var(--river); }
.gift__account { margin: 6px 0 4px; font-size: clamp(28px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.02em; word-break: break-word; }
.gift__owner { margin-bottom: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.gift__row { display: flex; gap: 18px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 2px dashed rgba(31,59,44,.2); }
.gift__row p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.qr { width: 148px; height: 148px; flex: none; border-radius: 8px; image-rendering: pixelated; }

/* galerie — polaroidy */
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 36px 26px; margin-top: 56px; }
.polaroid {
  position: relative; display: block; width: 216px; padding: 12px 12px 54px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--ink);
  transition: transform .3s var(--pop);
}
button.polaroid { cursor: zoom-in; font: inherit; text-align: center; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(247,223,142,.85); border: 1.5px solid rgba(31,59,44,.25); }
.polaroid .pic { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid__cap { position: absolute; left: 0; right: 0; bottom: 12px; font: 700 24px/1 var(--f-hand); text-align: center; }
.polaroid--1 { width: 330px; transform: rotate(-3deg); }
.polaroid--1 .pic { aspect-ratio: 4/3; }
.polaroid--2 { transform: rotate(2.5deg); margin-top: 30px; }
.polaroid--3 { transform: rotate(-1.5deg); }
.polaroid--4 { transform: rotate(3deg); margin-top: 20px; }
button.polaroid:hover { transform: rotate(0) scale(1.03); }
.ph {
  display: grid; place-items: center; padding: 14px; min-height: 120px;
  background: repeating-linear-gradient(-45deg, #f4f1e6 0 10px, #fbf9f1 10px 20px);
  border: 2px dashed rgba(31,59,44,.35); color: var(--ink-2); font: 500 22px/1.1 var(--f-hand);
}
.polaroid .ph { aspect-ratio: 1; }

/* rsvp */
.rsvp { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.art--plane { max-width: 300px; margin-top: 36px; }
.form-card { padding: clamp(24px, 3.4vw, 40px); }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 130px; gap: 16px; }
.field label, .field legend { font-size: 15px; font-weight: 700; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--f-dis); color: var(--ink);
  padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #fbfdf8;
  transition: box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--river); }
.field input[aria-invalid="true"] { border-color: #c2364f; box-shadow: 4px 4px 0 #f2b8c9; }
.field textarea { resize: vertical; }
.field.is-off { opacity: .4; }

.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fbfdf8; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label { padding: 10px 12px; text-align: center; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 700; transition: background-color .2s ease; }
.segmented input:checked + label { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.segmented input:focus-visible + label { outline: 3px solid var(--river); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { padding: 12px 16px; border-radius: 14px; background: #fde4ea; border: 2px solid #c2364f; color: #7d1830; font-size: 15px; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px; }
.done h3 { font-size: 40px; }
.done__check { width: 76px; height: 76px; fill: none; stroke: #2e8b57; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.done__check * { stroke-dasharray: 1 1; stroke-dashoffset: 1.001; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .done__check * { animation: ink .8s var(--ease) forwards; }
  .done:not([hidden]) .done__check path { animation-delay: .5s; }
}
@media (prefers-reduced-motion: reduce) { .done__check * { stroke-dashoffset: 0; } }
@keyframes ink { to { stroke-dashoffset: 0; } }

/* západ slunce */
.dusk { position: relative; height: clamp(120px, 14vw, 200px); background: linear-gradient(#cdbfe3, #f6b8a4); overflow: hidden; }
.dusk__art { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #2b2f5e; stroke-width: 2; }

/* noc */
.sec--night, .footer { --ink: var(--moon); --ink-2: #cfcbe3; color: var(--moon); }
.sec--night { background: url("hvezdy.svg") center / cover, linear-gradient(#2b2f5e, #1e2147); }
.sec--night .btn, .footer .btn { color: #1f3b2c; border-color: #1f3b2c; box-shadow: 4px 4px 0 var(--moon); }
.upload { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.art--camera { max-width: 160px; margin-top: 28px; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: clamp(40px, 5vw, 60px) 24px; border: 2.5px dashed rgba(243,236,219,.6); border-radius: 26px;
  background: rgba(255,255,255,.05); transition: background-color .15s ease;
}
.drop.is-locked { opacity: .7; }
.drop.is-dragover { background: rgba(255,255,255,.12); }
.drop__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1f3b2c; font: 800 32px/1 var(--f-dis); border: 2.5px solid #1f3b2c; }
.drop__title { font-size: 26px; font-weight: 800; }
.drop__hint { font-size: 15px; color: var(--ink-2); }
.drop .link { font: 700 22px/1 var(--f-hand); color: var(--sun); }
.drop__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.drop__name { font: 400 16px var(--f-dis); padding: 12px 16px; border: 2px solid var(--moon); border-radius: 999px; min-width: 220px; background: transparent; color: var(--moon); }
.drop__list { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; text-align: left; }
.drop__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; background: rgba(255,255,255,.08); border-radius: 12px; font-size: 14px; }
.drop__list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st--ok { color: #a8e0b0; font-weight: 700; }
.st--err { color: #ffb3c1; font-weight: 700; }

/* patička */
.footer { position: relative; padding-bottom: 48px; background: url("hvezdy.svg") center / cover, linear-gradient(#1e2147, #12152e); }
.footer__art { display: block; width: 100%; height: clamp(150px, 18vw, 260px); stroke-width: 2; }
.footer__inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 12px; }
.footer__bye { flex-basis: 100%; font: 700 clamp(32px, 3.4vw, 44px)/1 var(--f-hand); color: var(--sun); transform: rotate(-2deg); transform-origin: left; }
.footer__names { font-size: clamp(40px, 6vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.footer__names span { font: 700 1.05em/1 var(--f-hand); color: var(--sun); }
.footer__meta { font-size: 15px; line-height: 1.6; color: var(--ink-2); text-align: right; }

/* lightbox, toast */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(20,30,24,.94); display: grid; place-items: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 10px solid #fff; border-radius: 4px; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid #1f3b2c; background: var(--sun); color: #1f3b2c; font: 800 28px/1 var(--f-dis); cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; background: var(--sun); color: #1f3b2c; padding: 12px 22px; border: 2.5px solid #1f3b2c; border-radius: 999px; box-shadow: 4px 4px 0 #1f3b2c; font-weight: 700; pointer-events: none; transition: transform .3s var(--pop), opacity .3s ease, visibility .3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .split, .program, .place, .gift, .rsvp, .upload { grid-template-columns: 1fr; }
  .art--tree { max-width: 240px; justify-self: start; }
  .art--jar { max-width: 220px; justify-self: start; }
  .stay { grid-template-columns: 1fr; }
  .map { margin-top: 64px; }
}

@media (max-width: 700px) {
  :root { --lane: 46px; }
  body { font-size: 16px; }
  .nav { height: 56px; top: 10px; }
  .hero { padding-top: 96px; padding-bottom: 236px; }
  .land { width: 260%; left: -68%; }
  .land .hand-note { display: none; }
  .sun { top: 82px; right: 4%; width: 74px; }
  .cloud--1 { top: 13%; left: -30px; width: 130px; }
  .cloud--2 { display: none; }
  .title { font-size: 19vw; flex-direction: column; align-items: center; gap: 0; }
  .title__a { font-size: .8em; margin: -.12em 0 -.16em; }
  .hero__row { margin-top: 26px; gap: 14px; }
  .facts { grid-template-columns: 1fr; }
  .day__item { grid-template-columns: 44px 1fr; gap: 4px 14px; }
  .day__item .ico { grid-row: span 2; width: 42px; height: 42px; }
  .day__item time { font-size: 26px; }
  .day__item--hi { margin-inline: -10px; padding: 16px 12px; }
  .day__item--hi .ico { width: 48px; height: 48px; }
  .day__item--hi time { font-size: 32px; }
  .day__item--hi .day__what { font-size: 24px; }
  .map__note { left: 0; }
  .map__arrow { left: 120px; width: 80px; }
  .map__compass { width: 70px; right: -6px; top: -34px; }
  .flowers { grid-template-columns: repeat(3, 1fr); gap: 30px 8px; }
  .swatch__name { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .gift__card { padding: 24px 20px; }
  .gift__row { flex-direction: column; align-items: flex-start; }
  .gallery { gap: 30px; }
  .polaroid, .polaroid--1 { width: min(100%, 300px); }
  .polaroid--2, .polaroid--4 { margin-top: 0; }
  .footer__meta { text-align: left; }
  .lightbox { padding: 56px 12px; }
}

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