/* ============================================================
   WEDDING SITE · Александр & Ульяна · 24.07.2026
   style.css
   ============================================================ */

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --cream:      #FAF6F0;
  --cream2:     #F0E8E0;
  --gold:       #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark:  #A88035;
  --rose:       #C48B83;
  --rose-light: #F2D0CB;
  --rose-dark:  #9C5E57;
  --green:      #4A6355;
  --dark:       #2C2220;
  --dark2:      #3A2E2C;
  --mid:        #6B5550;
  --muted:      #9C8880;
  --white:      #FFFFFF;

  --serif:  'Cormorant Garant', Georgia, serif;
  --sans:   'Montserrat', sans-serif;

  --dur:    0.35s;
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 12px 50px rgba(44,34,32,0.09);
  --r:      20px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.75;
}
img { display:block; max-width:100%; height:auto; }
a   { text-decoration:none; color:inherit; }
ul  { list-style:none; }

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────── */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem,5vw,3.4rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--dark);
}
.section-title.light { color: var(--white); }
.section-sub {
  font-size: .85rem;
  color: var(--mid);
  font-weight: 300;
  letter-spacing: .04em;
  margin-top: 14px;
  max-width: 500px;
  margin-left:auto; margin-right:auto;
}

/* ─── CONTAINER ──────────────────────────────────────────── */
.container { max-width:1100px; margin:0 auto; padding:0 28px; }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  text-align:center;
  margin-bottom: 64px;
}

/* ─── ORNAMENT LINE ──────────────────────────────────────── */
.ornament-line {
  position: relative;
  height: 20px;
  margin-bottom: 20px;
}
.ornament-line::before,
.ornament-line::after {
  content:'';
  position:absolute;
  top:50%;
  width: 40%;
  height:1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}
.ornament-line::before { left:0; }
.ornament-line::after  { right:0; transform:scaleX(-1); }
.ornament-line::before,
.ornament-line.center::before { left:5%; }
.ornament-line.center::before  { left:5%; background:linear-gradient(to right,transparent,var(--gold-light)); }
.ornament-line.center::after   { right:5%; }
.ornament-line.light::before,
.ornament-line.light::after {
  background:linear-gradient(to right,transparent,rgba(201,168,76,.4));
}

/* Middle gem */
.ornament-line .gem,
.section-header .ornament-line::before {
  /* uses pseudo for the lines */
}

/* ─── SCROLL REVEAL SYSTEM ───────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity:1;
  transform:translate(0);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:50px;
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:1.5px;
  text-transform:uppercase;
  cursor:pointer;
  transition:all var(--dur) var(--ease);
  border:none;
}
.btn svg { width:16px; height:16px; flex-shrink:0; }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(201,168,76,.38);
}
.btn-outline {
  background:transparent;
  color:var(--mid);
  border:1.5px solid rgba(107,85,80,.25);
}
.btn-outline:hover {
  border-color:var(--gold);
  color:var(--gold);
  transform:translateY(-2px);
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  transition:all .35s var(--ease);
}
.nav-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 44px;
  transition:all .35s var(--ease);
}
#navbar.scrolled .nav-inner {
  padding:16px 44px;
  background: rgba(250,246,240,.96);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 2px 30px rgba(44,34,32,.07);
}
.nav-logo {
  font-family:var(--serif);
  font-size:1.8rem;
  font-weight:400;
  color:rgba(255,255,255,.95);
  letter-spacing:3px;
  transition:color .35s;
}
#navbar.scrolled .nav-logo { color:var(--rose-dark); }

.nav-links {
  display:flex;
  gap:32px;
}
.nav-links a {
  font-size:.7rem;
  font-weight:500;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(255,255,255,.88);
  transition:color .25s;
}
#navbar.scrolled .nav-links a { color:var(--mid); }
.nav-links a:hover,
#navbar.scrolled .nav-links a:hover { color:var(--gold); }

.nav-cta {
  padding:9px 22px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50px;
}
#navbar.scrolled .nav-cta {
  border-color:var(--gold);
  color:var(--gold) !important;
}
.nav-cta:hover,
#navbar.scrolled .nav-cta:hover {
  background:var(--gold) !important;
  color:var(--white) !important;
  border-color:var(--gold) !important;
}

/* ─── HAMBURGER ──────────────────────────────────────────── */
.hamburger {
  display:none;
  flex-direction:column;
  gap:6px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
}
.hamburger span {
  display:block;
  width:26px; height:2px;
  background:rgba(255,255,255,.9);
  border-radius:2px;
  transition:all .3s var(--ease);
  transform-origin:center;
}
#navbar.scrolled .hamburger span { background:var(--dark); }
.hamburger.open span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  position:fixed;
  top:0; right:-100%;
  width:min(340px, 88vw);
  height:100vh;
  background:var(--white);
  z-index:200;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:60px 44px;
  transition:right .45s cubic-bezier(.16,1,.3,1);
  box-shadow:-10px 0 60px rgba(0,0,0,.12);
}
.mobile-menu.open { right:0; }
.mobile-logo {
  font-family:var(--serif);
  font-size:2.4rem;
  font-weight:400;
  color:var(--rose-dark);
  letter-spacing:4px;
  margin-bottom:44px;
  text-align:center;
}
.mobile-menu ul { display:flex; flex-direction:column; gap:24px; }
.m-link {
  font-family:var(--serif);
  font-size:2rem;
  font-weight:400;
  color:var(--dark);
  display:block;
  transition:color .2s;
  letter-spacing:.5px;
}
.m-link:hover { color:var(--gold); }
.mobile-close {
  position:absolute;
  top:24px; right:28px;
  font-size:2rem; line-height:1;
  background:none; border:none;
  cursor:pointer;
  color:var(--mid);
  transition:color .2s;
}
.mobile-close:hover { color:var(--rose); }

.menu-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.42);
  z-index:150;
  opacity:0;
  pointer-events:none;
  transition:opacity .4s;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.menu-overlay.open { opacity:1; pointer-events:all; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
}
.hero-bg {
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-photo {
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 30%;
  filter:brightness(.65);
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(
    to bottom,
    rgba(44,34,32,.28) 0%,
    rgba(44,34,32,.18) 45%,
    rgba(44,34,32,.55) 100%
  );
}

/* Corner decorations */
.hero-corner {
  position:absolute;
  width:110px; height:110px;
  z-index:2;
  pointer-events:none;
}
.hero-corner.tl { top:22px; left:22px; }
.hero-corner.tr { top:22px; right:22px; transform:scaleX(-1); }

/* Hero content */
.hero-content {
  position:relative;
  z-index:3;
  text-align:center;
  color:var(--white);
  padding:0 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:44px;
}

/* Badge */
.hero-badge { animation:fadeUp .9s var(--ease) .3s both; }
.badge-ring {
  position:relative;
  width:165px; height:165px;
  display:flex; align-items:center; justify-content:center;
}
.badge-ring-svg {
  position:absolute;
  width:100%; height:100%;
  animation:spin 28s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.badge-inner {
  display:flex; flex-direction:column; align-items:center;
  gap:2px; z-index:1;
}
.badge-day {
  font-family:var(--serif);
  font-size:3.2rem; font-weight:300; line-height:1;
  letter-spacing:-2px;
}
.badge-month,
.badge-year {
  font-size:.72rem;
  letter-spacing:4px;
  text-transform:uppercase;
  font-weight:300;
}
.badge-year { opacity:.75; }

/* Names */
.hero-text { animation:fadeUp .9s var(--ease) .55s both; max-width:660px; }
.hero-invite {
  font-size:.78rem;
  letter-spacing:4px;
  text-transform:uppercase;
  font-weight:300;
  opacity:.85;
  margin-bottom:18px;
}
.hero-names {
  font-family:var(--serif);
  font-size:clamp(3.8rem,11vw,7.5rem);
  font-weight:300;
  line-height:.92;
  letter-spacing:-2px;
  margin-bottom:18px;
}
.hero-amp {
  display:block;
  font-style:italic;
  color: var(--gold-light);
  font-size:.55em;
  line-height:1.5;
}
.hero-sub {
  font-family:var(--serif);
  font-style:italic;
  font-size:1.15rem;
  font-weight:300;
  opacity:.88;
  letter-spacing:2px;
}

/* Scroll hint */
.scroll-hint {
  animation:fadeUp .9s var(--ease) .85s both;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(255,255,255,.65);
  animation-name:fadeUp, bounce-hint;
  animation-duration:.9s, 2.2s;
  animation-delay:.85s, 1.8s;
  animation-timing-function:var(--ease), ease-in-out;
  animation-fill-mode:both, none;
  animation-iteration-count:1, infinite;
}
.scroll-hint span { font-size:.65rem; letter-spacing:3px; text-transform:uppercase; }
.scroll-hint svg  { width:22px; height:22px; }

@keyframes bounce-hint {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(7px); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(34px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ─── COUNTDOWN ──────────────────────────────────────────── */
.countdown-section {
  background:var(--dark);
  padding:64px 0;
}
.cd-label {
  text-align:center;
  font-size:.72rem;
  letter-spacing:4px;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
  font-weight:300;
  margin-bottom:32px;
}
.cd-grid {
  display:flex;
  align-items:center;
  justify-content:center;
}
.cd-item {
  display:flex; flex-direction:column; align-items:center;
  padding:0 28px;
}
.cd-num {
  font-family:var(--serif);
  font-size:clamp(2.4rem,7vw,4.8rem);
  font-weight:300;
  color:var(--white);
  line-height:1;
  letter-spacing:-2px;
  min-width:2ch;
  text-align:center;
}
.cd-unit {
  font-size:.62rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(255,255,255,.38);
  margin-top:8px;
  font-weight:300;
}
.cd-sep {
  font-family:var(--serif);
  font-size:clamp(2rem,5vw,4rem);
  color:var(--gold);
  line-height:.85;
  margin-bottom:28px;
  opacity:.55;
}

/* ─── COUPLE SECTION ─────────────────────────────────────── */
.couple-section { padding:120px 0; }
.couple-inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

/* Photo frame */
.couple-frame { position:relative; }
.couple-frame-img {
  border-radius:var(--r);
  overflow:hidden;
  aspect-ratio:3/4;
  box-shadow:var(--shadow);
  background:linear-gradient(135deg,var(--cream2),var(--rose-light));
}
.couple-frame-img img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .7s var(--ease);
}
.couple-frame:hover .couple-frame-img img { transform:scale(1.04); }
.couple-frame-img.no-photo { min-height:400px; }

/* Corner accents */
.frame-corner {
  position:absolute;
  width:55px; height:55px;
  border-color:var(--gold-light);
  border-style:solid;
}
.fc-tl { top:-12px; left:-12px; border-width:2px 0 0 2px; }
.fc-br { bottom:-12px; right:-12px; border-width:0 2px 2px 0; }

/* Text side */
.couple-text { padding:20px 0; }
.couple-text .ornament-line { margin-bottom:20px; }
.couple-text .section-title { margin-bottom:22px; }
.couple-quote {
  font-family:var(--serif);
  font-style:italic;
  font-size:1.15rem;
  font-weight:300;
  line-height:1.85;
  color:var(--mid);
  margin-bottom:36px;
}
.couple-names-row {
  display:flex; align-items:center; gap:14px;
  font-family:var(--serif);
  font-size:1.5rem; font-weight:400;
  color:var(--dark);
}
.names-amp { font-style:italic; color:var(--gold); }

/* ─── CALENDAR SECTION ───────────────────────────────────── */
.calendar-section {
  padding:120px 0;
  background:linear-gradient(135deg,#F5EDE8 0%,var(--cream) 50%,#EFE8E5 100%);
}
.calendar-layout {
  display:grid;
  grid-template-columns:1fr auto;
  gap:80px;
  align-items:center;
}

/* Calendar card */
.cal-card {
  background:var(--white);
  border-radius:24px;
  padding:40px;
  box-shadow:var(--shadow);
  max-width:480px;
  width:100%;
  margin:0 auto;
}
.cal-month-row {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:28px;
  padding-bottom:22px;
  border-bottom:1px solid var(--cream2);
}
.cal-month-name {
  font-family:var(--serif);
  font-size:2rem; font-weight:400;
  color:var(--dark);
}
.cal-year-label {
  font-size:.8rem;
  letter-spacing:3px;
  color:var(--muted);
  font-weight:300;
}
.cal-weekdays {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin-bottom:10px;
}
.cal-weekdays div {
  text-align:center;
  font-size:.62rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
  padding:8px 0;
}
.cal-days {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:3px;
}
.cal-day {
  aspect-ratio:1;
  display:flex; align-items:center; justify-content:center;
  font-size:.85rem;
  font-weight:300;
  color:var(--mid);
  border-radius:50%;
  cursor:default;
  transition:background .2s;
}
.cal-day.empty  { visibility:hidden; }
.cal-day.sat,
.cal-day.sun    { color:var(--rose); }
.cal-day.wedding-day {
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold-dark) 100%);
  color:var(--white);
  font-weight:600;
  font-size:.95rem;
  box-shadow:0 4px 18px rgba(201,168,76,.42);
  animation:pulse-gold 2.2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%,100% { box-shadow:0 4px 18px rgba(201,168,76,.4); }
  50%      { box-shadow:0 4px 28px rgba(201,168,76,.7); }
}

/* Heart block */
.heart-block {
  display:flex; flex-direction:column; align-items:center;
  gap:20px;
}
.heart-svg {
  width:130px; height:118px;
  animation:heartbeat 2.8s ease-in-out infinite;
  filter:drop-shadow(0 5px 18px rgba(196,139,131,.3));
}
@keyframes heartbeat {
  0%,100% { transform:scale(1); }
  14%     { transform:scale(1.09); }
  28%     { transform:scale(1); }
  42%     { transform:scale(1.06); }
  70%     { transform:scale(1); }
}
.heart-date-text { text-align:center; }
.hd-main {
  display:block;
  font-family:var(--serif);
  font-size:2rem; font-weight:400;
  color:var(--dark); line-height:1;
}
.hd-year {
  display:block;
  font-size:.72rem;
  letter-spacing:4px;
  text-transform:uppercase;
  color:var(--muted);
  margin-top:8px; font-weight:300;
}

/* ─── LOCATION ───────────────────────────────────────────── */
.location-section { padding:120px 0; }
.location-card {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:var(--white);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

/* Map visual */
.loc-visual {
  position:relative;
  min-height:440px;
  overflow:hidden;
}
.venue-photo {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:1;
}
.venue-photo-main {
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:center 60%;
  z-index:1;
  border-radius:inherit;
}
.loc-map-placeholder {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  z-index:0;
}
.loc-map-bg {
  position:absolute; inset:0;
  background:linear-gradient(135deg,#dde8dd 0%,#c8d8c4 50%,#b8ccb4 100%);
}
/* subtle grid overlay */
.loc-map-bg::after {
  content:'';
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(0deg,transparent,transparent 39px,rgba(255,255,255,.12) 40px),
    repeating-linear-gradient(90deg,transparent,transparent 39px,rgba(255,255,255,.12) 40px);
}
.loc-pin-wrap {
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:var(--green);
}
.loc-pin-icon {
  width:52px; height:52px;
  stroke:var(--green); stroke-width:1.4;
  fill:rgba(74,99,85,.12);
  filter:drop-shadow(0 4px 12px rgba(74,99,85,.25));
}
.loc-pin-wrap span {
  font-family:var(--serif);
  font-size:1.6rem; font-weight:400;
  color:var(--green);
  background:rgba(255,255,255,.7);
  padding:4px 18px;
  border-radius:50px;
  backdrop-filter:blur(4px);
}

/* Info panel */
.loc-info {
  padding:50px 44px;
  display:flex; flex-direction:column; gap:22px;
  justify-content:center;
}
.venue-name {
  font-family:var(--serif);
  font-size:2.6rem; font-weight:400;
  color:var(--dark); line-height:1.05;
}
.venue-addr {
  display:flex; align-items:flex-start; gap:10px;
  color:var(--mid); font-size:.875rem; font-weight:300; line-height:1.5;
}
.venue-addr svg {
  width:18px; height:18px; flex-shrink:0;
  margin-top:1px;
  stroke:var(--rose); stroke-width:1.5;
  fill:rgba(196,139,131,.1);
}
.loc-btns { display:flex; flex-direction:column; gap:12px; margin-top:8px; }

/* ─── SCHEDULE ───────────────────────────────────────────── */
.schedule-section {
  padding:120px 0;
  background:linear-gradient(160deg,var(--dark) 0%,var(--dark2) 100%);
}
.timeline {
  max-width:640px;
  margin:0 auto;
  position:relative;
}
.timeline::before {
  content:'';
  position:absolute;
  left:50%; transform:translateX(-50%);
  top:30px; bottom:30px;
  width:1px;
  background:linear-gradient(to bottom,transparent,rgba(201,168,76,.35),transparent);
}

.tl-item {
  display:grid;
  grid-template-columns:1fr 40px 1fr;
  align-items:center;
  margin-bottom:44px;
}
.tl-item.tl-last { margin-bottom:0; }

.tl-time {
  font-family:var(--serif);
  font-size:2rem; font-weight:300;
  color:var(--gold);
  text-align:right;
  padding-right:28px;
  letter-spacing:-1px;
  line-height:1;
}

.tl-node {
  display:flex; align-items:center; justify-content:center;
  z-index:1; position:relative;
}
.tl-dot {
  width:14px; height:14px;
  border-radius:50%;
  background:var(--gold);
  border:3px solid var(--dark);
  outline:1px solid rgba(201,168,76,.45);
  flex-shrink:0;
}

.tl-body { padding-left:28px; }
.tl-body h3 {
  font-family:var(--serif);
  font-size:1.3rem; font-weight:400;
  color:var(--white);
  letter-spacing:.3px;
  line-height:1.2;
  margin-bottom:4px;
}
.tl-body p {
  font-size:.8rem; font-weight:300;
  color:rgba(255,255,255,.45);
  letter-spacing:.5px;
}

/* ─── DRESSCODE ──────────────────────────────────────────── */
.dresscode-section { padding:120px 0; }
.dresscode-grid {
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  gap:60px;
  background:var(--white);
  border-radius:24px;
  padding:64px 56px;
  box-shadow:var(--shadow);
  align-items:start;
}
.dc-icon {
  margin-bottom:18px;
}
.dc-icon svg { width:40px; height:60px; }
.dc-block h3 {
  font-family:var(--serif);
  font-size:1.6rem; font-weight:400;
  color:var(--dark);
  margin-bottom:20px;
}
.color-row {
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:22px;
}
.swatch {
  width:42px; height:42px;
  border-radius:50%;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
  transition:transform .2s;
  cursor:default;
}
.swatch:hover { transform:scale(1.12); }
.dc-block p {
  font-size:.875rem;
  color:var(--mid);
  line-height:1.85;
  font-weight:300;
}
.dc-divider {
  background:linear-gradient(to bottom,transparent,var(--cream2),transparent);
  align-self:stretch;
}

/* ─── WISHES ─────────────────────────────────────────────── */
.wishes-section {
  padding:120px 0;
  background:linear-gradient(135deg,#F5EDE8 0%,var(--cream) 60%,#EDE8F0 100%);
  position:relative;
}
.wishes-section::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 15% 85%,rgba(196,139,131,.05) 0%,transparent 55%),
    radial-gradient(ellipse at 85% 15%,rgba(201,168,76,.05) 0%,transparent 55%);
  pointer-events:none;
}
.wishes-card {
  max-width:780px;
  margin:0 auto;
  background:var(--white);
  border-radius:24px;
  padding:64px 70px;
  box-shadow:var(--shadow);
  position:relative;
}
.wishes-q {
  font-family:var(--serif);
  font-size:7rem;
  color:var(--rose-light);
  font-style:italic;
  line-height:.4;
  position:absolute;
  user-select:none;
}
.wishes-q.open  { top:32px;  left:36px; }
.wishes-q.close { bottom:18px; right:36px; }

.wishes-body { position:relative; z-index:1; }
.wishes-body p {
  font-family:var(--serif);
  font-size:1.05rem; font-weight:300;
  line-height:1.95;
  color:var(--mid);
  margin-bottom:18px;
}
.wishes-body p:last-child { margin-bottom:0; }
.wishes-greeting {
  font-size:1.2rem !important;
  font-weight:400 !important;
  color:var(--dark) !important;
}
.wishes-sig {
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--cream2);
  text-align:right;
  font-family:var(--serif);
  font-style:italic;
  color:var(--mid);
  position:relative; z-index:1;
  line-height:1.6;
}
.wishes-sig strong {
  display:block;
  font-size:1.35rem; font-weight:400;
  color:var(--dark);
  font-style:normal;
  margin-top:4px;
}

/* ─── RSVP SECTION ───────────────────────────────────────── */
.rsvp-section { padding:120px 0; }
.form-wrap {
  max-width:700px;
  margin:0 auto;
  background:var(--white);
  border-radius:24px;
  padding:64px 60px;
  box-shadow:var(--shadow);
}

/* Form groups */
.fg { margin-bottom:28px; }
.fg:last-child { margin-bottom:0; }
.fg label {
  display:block;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--mid);
  margin-bottom:10px;
}
.req { color:var(--rose); }
.fg input[type="text"],
.fg input[type="tel"],
.fg textarea {
  width:100%;
  padding:14px 18px;
  border:1.5px solid var(--cream2);
  border-radius:12px;
  font-family:var(--sans);
  font-size:.9rem; font-weight:300;
  color:var(--dark);
  background:var(--cream);
  outline:none;
  transition:all var(--dur);
  resize:none;
}
.fg input:focus,
.fg textarea:focus {
  border-color:var(--gold);
  background:var(--white);
  box-shadow:0 0 0 4px rgba(201,168,76,.1);
}
.fg input.err,
.fg textarea.err { border-color:var(--rose); }
.ferr {
  font-size:.75rem;
  color:var(--rose);
  margin-top:6px;
  display:none; font-weight:300;
}
.ferr.show { display:block; }

/* Radio */
.radio-group { display:flex; flex-direction:column; gap:10px; }
.radio-opt {
  display:flex; align-items:center; gap:12px;
  cursor:pointer;
  padding:13px 18px;
  border:1.5px solid var(--cream2);
  border-radius:12px;
  transition:all var(--dur);
}
.radio-opt:hover { border-color:var(--gold-light); background:rgba(201,168,76,.035); }
.radio-opt input { display:none; }
.radio-box {
  width:20px; height:20px;
  border-radius:50%;
  border:2px solid var(--cream2);
  flex-shrink:0;
  transition:all var(--dur);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.radio-opt input:checked ~ .radio-box {
  border-color:var(--gold);
  background:var(--gold);
}
.radio-opt input:checked ~ .radio-box::after {
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background:var(--white);
  display:block;
}
.radio-opt:has(input:checked) { border-color:var(--gold-light); background:rgba(201,168,76,.05); }
.radio-opt span:last-child { font-size:.875rem; color:var(--mid); font-weight:300; transition:color var(--dur); }
.radio-opt:has(input:checked) span:last-child { color:var(--dark); font-weight:500; }

/* Checkboxes */
.check-group {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.check-opt {
  display:flex; align-items:center; gap:10px;
  cursor:pointer;
  padding:12px 16px;
  border:1.5px solid var(--cream2);
  border-radius:12px;
  transition:all var(--dur);
}
.check-opt:hover { border-color:var(--gold-light); background:rgba(201,168,76,.035); }
.check-opt input { display:none; }
.check-box {
  width:20px; height:20px;
  border-radius:6px;
  border:2px solid var(--cream2);
  flex-shrink:0;
  transition:all var(--dur);
  display:flex; align-items:center; justify-content:center;
}
.check-opt input:checked ~ .check-box {
  border-color:var(--gold);
  background:var(--gold);
}
.check-opt input:checked ~ .check-box::after {
  content:'';
  width:5px; height:9px;
  border:2px solid var(--white);
  border-top:none; border-left:none;
  transform:rotate(45deg) translateY(-1px);
  display:block;
}
.check-opt:has(input:checked) { border-color:var(--gold-light); background:rgba(201,168,76,.05); }
.check-opt span:last-child { font-size:.85rem; color:var(--mid); font-weight:300; }

/* Submit button */
.btn-submit {
  display:flex; align-items:center; justify-content:center;
  width:100%;
  padding:18px;
  margin-top:36px;
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold-dark) 100%);
  color:var(--white);
  border:none; border-radius:14px;
  font-family:var(--sans);
  font-size:.82rem; font-weight:600;
  letter-spacing:2px; text-transform:uppercase;
  cursor:pointer;
  transition:all var(--dur) var(--ease);
}
.btn-submit:hover {
  transform:translateY(-2px);
  box-shadow:0 10px 32px rgba(201,168,76,.38);
}
.btn-submit:disabled { opacity:.7; cursor:wait; transform:none; }

/* Spinner animation */
.btn-spin { display:none; align-items:center; gap:10px; }
.btn-spin svg {
  width:18px; height:18px;
  animation:spin .9s linear infinite;
}
.btn-submit.loading .btn-text { display:none; }
.btn-submit.loading .btn-spin { display:flex; }

/* Success */
.form-success { display:none; text-align:center; padding:48px 20px; }
.form-success.show { display:block; }
.success-svg { width:72px; height:72px; margin:0 auto 28px; }
.sc-circle {
  stroke-dasharray:170;
  stroke-dashoffset:170;
}
.sc-check {
  stroke-dasharray:60;
  stroke-dashoffset:60;
}
.form-success.show .sc-circle {
  animation:draw .8s var(--ease) .15s forwards;
}
.form-success.show .sc-check {
  animation:draw .4s var(--ease) .75s forwards;
}
@keyframes draw { to { stroke-dashoffset:0; } }
.form-success h3 {
  font-family:var(--serif);
  font-size:2.2rem; font-weight:400;
  color:var(--dark); margin-bottom:14px;
}
.form-success p {
  font-size:.9rem; color:var(--mid); font-weight:300; line-height:1.7;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background:var(--dark);
  text-align:center;
  padding:80px 28px 56px;
  color:rgba(255,255,255,.55);
}
.footer-ornament { display:flex; justify-content:center; margin-bottom:36px; }
.footer-ornament svg { width:300px; height:24px; }

.footer-names {
  font-family:var(--serif);
  font-size:clamp(2.4rem,6vw,3.8rem);
  font-weight:300;
  color:var(--white);
  letter-spacing:2px;
  margin-bottom:14px;
}
.footer-names span { font-style:italic; color:var(--gold); }
.footer-date {
  font-size:.72rem;
  letter-spacing:7px;
  color:rgba(255,255,255,.32);
  margin-bottom:52px;
}
.footer-contacts {
  border-top:1px solid rgba(255,255,255,.07);
  padding-top:36px;
}
.footer-contact-label {
  font-size:.7rem;
  letter-spacing:3px;
  text-transform:uppercase;
  margin-bottom:12px;
  opacity:.4;
}
.footer-phone {
  font-family:var(--serif);
  font-size:1.5rem;
  color:rgba(255,255,255,.7);
  transition:color .2s;
}
.footer-phone:hover { color:var(--gold); }
.footer-heart {
  margin-top:44px;
  display:flex; justify-content:center;
}
.footer-heart svg {
  width:28px; height:26px;
  animation:heartbeat 3.2s ease-in-out infinite;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 940px) {
  .nav-links  { display:none; }
  .hamburger  { display:flex; }

  .couple-inner          { grid-template-columns:1fr; gap:48px; }
  .couple-frame          { max-width:380px; margin:0 auto; }
  .couple-text           { text-align:center; }
  .couple-text .ornament-line { display:none; }
  .couple-names-row      { justify-content:center; }

  .calendar-layout       { grid-template-columns:1fr; gap:48px; justify-items:center; }

  .location-card         { grid-template-columns:1fr; }
  .loc-visual            { min-height:280px; }
  .loc-info              { padding:36px 36px 48px; }
  .loc-btns .btn         { width:100%; justify-content:center; }

  .dresscode-grid        { grid-template-columns:1fr; padding:48px 36px; }
  .dc-divider            { width:100%; height:1px; background:linear-gradient(to right,transparent,var(--cream2),transparent); }

  .wishes-card           { padding:48px 36px; }
  .wishes-q              { font-size:5rem; }
  .wishes-q.open         { top:22px; left:22px; }
  .wishes-q.close        { bottom:10px; right:22px; }

  .form-wrap             { padding:48px 36px; }
  .check-group           { grid-template-columns:1fr; }

  .timeline::before      { left:30px; transform:none; }
  .tl-item               { grid-template-columns:70px 30px 1fr; }
  .tl-time               { font-size:1.5rem; padding-right:18px; }
  .tl-body               { padding-left:18px; }
}

@media (max-width: 600px) {
  .nav-inner, #navbar.scrolled .nav-inner { padding:18px 22px; }

  .hero-names { font-size:clamp(3rem,15vw,4.8rem); }

  .couple-section, .calendar-section, .location-section,
  .schedule-section, .dresscode-section, .wishes-section,
  .rsvp-section { padding:80px 0; }

  .section-header { margin-bottom:44px; }

  .cal-card { padding:24px 18px; }

  .cd-item { padding:0 10px; }
  .cd-sep  { display:none; }

  .tl-item         { grid-template-columns:64px 28px 1fr; }
  .tl-time         { font-size:1.2rem; padding-right:14px; }
  .tl-body h3      { font-size:1.1rem; }

  .dresscode-grid  { padding:36px 22px; gap:36px; }
  .wishes-card     { padding:36px 22px; }
  .form-wrap       { padding:36px 20px; border-radius:16px; }
}
