/* ==== Свадебный сайт — стили ==== */
:root {
  --wine: #6E2932;
  --wine-hover: #85293A;
  --ink: #33262A;
  --ink-soft: #412A2E;
  --paper: #FBF7F1;
  --sand: #EFE7DC;
  --tint: #F3EBE0;
  --cream: #F6EDE2;
  --rose: #DDB9B1;
  --rose-2: #C79B95;
  --muted: #8A7468;
  --muted-2: #A5907F;
  --accent: #B98A85;
  --line: #E4D9CA;
  --line-2: #EFE7DC;
  --serif: 'Cormorant Garamond', serif;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--sand); }
body { font-family: Manrope, system-ui, sans-serif; color: var(--ink); }
a { color: var(--wine); text-decoration: none; }
a:hover { color: #943042; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
::selection { background: #EADFCF; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.app { min-height: 100vh; display: flex; justify-content: center; background: var(--sand); }
.phone { width: 100%; max-width: 430px; background: var(--paper); box-shadow: 0 0 80px rgba(74,20,32,.10); position: relative; overflow: hidden; }
.fade { animation: fadeUp .5s ease both; }

/* ---- общие типографские хелперы ---- */
.eyebrow { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--serif); }

/* ---- HERO ---- */
.hero { position: relative; padding: 22px 30px 34px; background: var(--wine); color: var(--cream); }
.hero-inner { display: flex; flex-direction: column; gap: 22px; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #E3C9C1; }
.photo-frame { border: 1px solid #A3626A; padding: 4px; }
.photo-box { aspect-ratio: 4 / 5; overflow: hidden; background: #82333C; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.hero-titles { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.hero-eyebrow { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--rose); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.15; letter-spacing: .02em; white-space: nowrap; }
.hero-title .amp { font-style: italic; color: var(--rose); }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #E3C9C1; }
.hero-date .rule { width: 22px; height: 1px; background: #A3626A; }
.countdown { display: flex; gap: 8px; justify-content: center; }
.cd-cell { flex: 1; max-width: 84px; border: 1px solid #A3626A; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.cd-value { font-family: var(--serif); font-size: 26px; line-height: 1; }
.cd-label { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }

/* ---- INTRO ---- */
.intro { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.divider { align-self: center; width: 1px; height: 46px; background: linear-gradient(var(--sand), var(--accent)); }
.intro-lead { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink-soft); }
.intro-sub { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* ---- SECTIONS ---- */
.section { padding: 34px 30px 40px; }
.section--top { padding: 0 30px 44px; }
.section--tint { background: var(--tint); }
.section-inner { display: flex; flex-direction: column; gap: 22px; }
.section--top .section-inner { border-top: 1px solid var(--line); padding-top: 30px; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-title { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--wine); }
.section-text { margin: 0; font-size: 13px; line-height: 1.8; color: #6E5A50; }

/* ---- SCHEDULE ---- */
.schedule { display: flex; flex-direction: column; gap: 2px; }
.sched-row { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.sched-time { font-family: var(--serif); font-size: 20px; color: var(--wine); }
.sched-body { display: flex; flex-direction: column; gap: 3px; }
.sched-title { font-size: 14px; font-weight: 500; }
.sched-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.sched-foot { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); font-style: italic; }

/* ---- DRESS CODE ---- */
.palette { display: flex; gap: 6px; }
.swatch { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.swatch-dot { width: 100%; aspect-ratio: 1; border-radius: 999px; border: 1px solid rgba(74,20,32,.12); }
.swatch-name { font-size: 9px; letter-spacing: .08em; color: var(--muted); text-align: center; }
.dress-imgs { display: flex; gap: 8px; }
.dress-img { flex: 1; aspect-ratio: 3 / 4; overflow: hidden; background: #E9DECD; }
.dress-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dress-ref { flex: 1; aspect-ratio: 3 / 4; background: #E9DECD; border: 1px solid #DFD1BC; display: flex; align-items: center; justify-content: center; text-align: center; }
.dress-ref span { font-family: ui-monospace, Menlo, monospace; font-size: 10px; color: #9C8577; padding: 0 12px; line-height: 1.6; }

/* ---- DIRECTIONS ---- */
.place-card { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.place-name { font-family: var(--serif); font-size: 24px; color: var(--ink-soft); }
.place-addr { font-size: 13px; line-height: 1.7; color: var(--muted); }
.map { position: relative; aspect-ratio: 16 / 11; background: #F1EAE0; border: 1px solid var(--line); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.8); }
.btn-outline { display: block; text-align: center; padding: 13px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.route { display: flex; flex-direction: column; gap: 10px; }
.route-row { display: flex; gap: 10px; align-items: baseline; }
.route-mode { font-size: 10px; letter-spacing: .16em; color: var(--accent); min-width: 62px; text-transform: uppercase; }
.route-text { font-size: 12px; line-height: 1.7; color: #6E5A50; }

/* ---- GIFTS ---- */
.gift-lead { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.gift-sub { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ---- CTA ---- */
.cta { padding: 44px 30px 52px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cta-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: breathe 3.2s ease-in-out infinite; }
.cta-title { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 400; color: var(--wine); line-height: 1.15; }
.cta-sub { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 300px; }
.cta-organizer { font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }

/* ---- BUTTONS ---- */
.btn-primary { margin-top: 6px; width: 100%; padding: 18px; background: var(--wine); color: var(--cream); border: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; transition: background .2s ease; }
.btn-primary:hover { background: var(--wine-hover); }

/* ==== WIZARD ==== */
.wizard { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.wizard-head { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 18px 30px 14px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line-2); }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; }
.wizard-back { background: none; border: none; padding: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.wizard-count { font-size: 11px; letter-spacing: .18em; color: var(--muted-2); }
.progress { height: 1px; background: #EADFCF; }
.progress-bar { height: 1px; background: var(--wine); transition: width .45s cubic-bezier(.3,.8,.3,1); }
.wizard-body { flex: 1; padding: 34px 30px 120px; display: flex; flex-direction: column; gap: 26px; }
.step-head { display: flex; flex-direction: column; gap: 10px; }
.step-title { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.12; color: var(--wine); }
.step-hint { margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.wizard-foot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20; width: 100%; max-width: 430px; padding: 16px 30px 22px; background: linear-gradient(rgba(251,247,241,0), var(--paper) 34%); display: flex; flex-direction: column; gap: 10px; }
.btn-next { width: 100%; padding: 18px; border: none; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; transition: all .25s ease; background: #EADFCF; color: var(--muted-2); pointer-events: none; }
.btn-next.is-ready { background: var(--wine); color: var(--cream); pointer-events: auto; }
.btn-skip { background: none; border: none; padding: 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* ---- OPTION CARDS ---- */
.opt-card { text-align: left; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; transition: all .2s ease; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.opt-card.is-active { background: #F3E7E6; border: 1px solid var(--wine); color: var(--wine); }
.opt-label { font-family: var(--serif); font-size: 21px; }
.opt-note { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---- CHIPS ---- */
.chip { padding: 12px 16px; border-radius: 999px; font-size: 13px; transition: all .2s ease; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.chip.is-active { background: var(--wine); color: var(--cream); border: 1px solid var(--wine); }
.chip-wide { width: 100%; text-align: center; }

/* ---- FORM FIELDS ---- */
.field { padding: 15px 16px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--ink); outline: none; }
.field--area { padding: 16px; line-height: 1.7; resize: none; }
.field-hint { font-size: 11px; color: var(--muted-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.field-label { font-size: 14px; font-weight: 500; }
.field-sub { font-size: 11px; color: var(--muted-2); }

/* ---- TAG BOX (имена гостей) ---- */
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); min-height: 52px; cursor: text; }
.tagbox:focus-within { border-color: var(--wine); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--wine); color: var(--cream); font-size: 13px; cursor: pointer; }
.tag .x { color: var(--rose); font-size: 14px; line-height: 1; }
.tag-field { flex: 1; min-width: 90px; border: none; outline: none; background: transparent; font-size: 14px; padding: 6px 0; color: var(--ink); }

/* ---- COUNTER ---- */
.counter { display: flex; align-items: center; gap: 4px; }
.counter-btn { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); color: var(--wine); font-size: 18px; }
.counter-val { min-width: 34px; text-align: center; font-family: var(--serif); font-size: 24px; }

/* ---- SONG ---- */
.song-row { display: flex; gap: 8px; }
.song-input { flex: 1; min-width: 0; padding: 17px 16px; font-size: 15px; }
.song-add { flex: none; width: 56px; border: 1px solid var(--line); background: var(--paper); color: #C9B8A6; font-size: 18px; transition: all .2s ease; }
.song-add.is-on { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.song-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.song-tag { padding: 11px 14px; border-radius: 999px; border: 1px solid var(--wine); background: var(--wine); color: var(--cream); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.song-tag .x { color: var(--rose); font-size: 15px; line-height: 1; }
.playlist { display: flex; flex-direction: column; gap: 1px; }
.pl-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); align-items: center; }
.pl-num { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.pl-title { font-size: 13px; color: var(--ink-soft); }
.pl-by { font-size: 10px; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; }

/* ---- INFO BOX ---- */
.info-box { border: 1px solid #EADFCF; background: #F6EFE5; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.info-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.info-text { font-size: 12px; line-height: 1.75; color: #6E5A50; }
.ticket-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--wine); }

/* ---- SEATING ---- */
.hall { border: 1px solid var(--line-2); background: #F6EFE5; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.hall-map { position: relative; width: 100%; aspect-ratio: 1 / 1.12; }
.presidium { position: absolute; left: 22%; right: 22%; top: 0; height: 9%; border: 1px solid var(--rose-2); background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #94414C; }
.windows { position: absolute; top: 1%; width: 12%; height: 26%; display: flex; align-items: center; justify-content: center; border-top: 1px dashed #DCC9B4; border-bottom: 1px dashed #DCC9B4; }
.windows.l { left: 4%; border-left: 1px dashed #DCC9B4; }
.windows.r { right: 4%; border-right: 1px dashed #DCC9B4; }
.windows span { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #BCA793; white-space: nowrap; }
.windows.l span { transform: rotate(-90deg); }
.windows.r span { transform: rotate(90deg); }
.dancefloor { position: absolute; left: 34%; right: 34%; top: 24%; height: 22%; border-radius: 999px; border: 1px dashed #DCC9B4; display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: #BCA793; text-align: center; }
.table-pos { position: absolute; }
.table-btn { width: 100%; aspect-ratio: 1; border-radius: 999px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all .2s ease; background: var(--paper); color: var(--wine); border: 1px dashed #D9C9B5; }
.table-btn.is-active { background: var(--wine); color: var(--cream); border: 1px solid var(--wine); }
.table-name { font-family: var(--serif); font-size: 17px; line-height: 1; }
.table-free { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.table-btn.is-full { opacity: .55; border-style: solid; }
.hall-foot { text-align: center; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); border-top: 1px dashed var(--line); padding-top: 12px; }
.seat-tip { position: absolute; z-index: 10; left: 0; top: 0; transform: translate(-50%, -108%); background: var(--wine); color: var(--cream); font-size: 10px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; max-width: 160px; text-align: center; pointer-events: none; opacity: 0; transition: opacity .15s ease; box-shadow: 0 6px 18px rgba(74,20,32,.25); }
.seat-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--wine); border-bottom: 0; }
.seat-tip.show { opacity: 1; }
.seat-tip b { display: block; font-family: var(--serif); font-size: 12px; margin-bottom: 3px; }

/* ==== DONE ==== */
.done { min-height: 100vh; padding: 46px 30px 54px; display: flex; flex-direction: column; gap: 28px; background: var(--wine); color: var(--cream); }
.done-head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--rose); }
.done-title { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.1; }
.done-sub { margin: 0; font-size: 13px; line-height: 1.8; color: var(--rose); max-width: 290px; }
.pass { background: var(--paper); color: var(--ink); padding: 24px 22px; }
.pass-inner { display: flex; flex-direction: column; gap: 18px; }
.pass-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 16px; }
.pass-col { display: flex; flex-direction: column; gap: 4px; }
.pass-col.right { text-align: right; }
.pass-label { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.pass-value { font-family: var(--serif); font-size: 24px; color: var(--wine); }
.pass-body { display: flex; gap: 18px; align-items: center; }
.qr { width: 104px; height: 104px; flex: none; padding: 6px; background: var(--paper); border: 1px solid var(--line); }
.summary { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #6E5A50; }
.sum-item { display: flex; flex-direction: column; }
.sum-label { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sum-value { line-height: 1.5; }
.pass-foot { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.support { background: var(--paper); color: var(--ink); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.support-head { font-family: var(--serif); font-size: 22px; color: var(--wine); }
.support-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.support-card { display: flex; flex-direction: column; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; }
.support-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.support-k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.support-v { font-family: var(--serif); font-size: 20px; color: var(--wine); text-align: right; }
a.support-v { text-decoration: none; }
.done-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-cream { display: block; text-align: center; padding: 17px; background: var(--cream); color: var(--wine); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.btn-link { background: none; border: none; padding: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.signature { text-align: center; font-family: 'Bad Script', cursive; font-size: 22px; color: var(--rose); line-height: 1.6; }
