/* =========================================================
   Eni & Barna – esküvői oldal
   ========================================================= */

:root {
  --bg: #f7f4ee;
  --bg-alt: #efe9e0;
  --paper: #fcfaf6;
  --ink: #2d2925;
  --ink-soft: #564f48;
  --muted: #8b8279;
  --line: #ddd3c6;
  --line-strong: #c9bcab;
  --accent: #a07a55;
  --accent-ink: #77583b;
  --danger: #9d3f33;

  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-serif: "EB Garamond", "Garamond", Georgia, serif;

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  /* fejléc magasságok – a JS nem méri, fix értékek */
  --hh-full: 152px;
  --hh-compact: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 899px) {
  :root { --hh-full: 68px; --hh-compact: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Fejléc ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247, 244, 238, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-compact {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(60, 45, 30, .35);
}

.header-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  height: var(--hh-full);
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: height .35s var(--ease);
}
.is-compact .header-inner { height: var(--hh-compact); }

.brand {
  font-family: var(--font-script);
  font-size: 48px; line-height: 1.1;
  text-decoration: none; color: var(--ink);
  white-space: nowrap;
  transition: font-size .35s var(--ease);
}
.brand .amp { font-size: .82em; color: var(--accent); }
.is-compact .brand { font-size: 36px; }

.header-date {
  margin: 0;
  font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
  max-height: 24px; overflow: hidden;
  transition: max-height .35s var(--ease), opacity .25s, margin .35s var(--ease);
  margin-bottom: 10px;
}
.is-compact .header-date { max-height: 0; opacity: 0; margin-bottom: 2px; }

.main-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 34px; list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  position: relative;
  display: inline-block; padding: 4px 0;
  font-size: 17.5px; letter-spacing: .02em;
  color: var(--ink-soft); text-decoration: none;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-tools {
  position: absolute; top: 50%; right: var(--gutter);
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
}

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; letter-spacing: .14em; color: var(--muted);
}
.lang-switch button {
  font: inherit; letter-spacing: inherit;
  background: none; border: 0; cursor: pointer;
  padding: 6px 6px; color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  /* a backdrop-filter miatt a fixed menü a fejléchez igazodna, ezért mobilon tömör háttér */
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-inner { align-items: flex-start; }
  .brand { font-size: 34px; line-height: 1; }
  .is-compact .brand { font-size: 34px; }
  .header-date { font-size: 10.5px; letter-spacing: .2em; margin: 2px 0 0; padding-left: 2px; }
  .is-compact .header-date { max-height: 24px; opacity: 1; margin: 2px 0 0; }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--hh-full); bottom: 0;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 10vh; }
  .main-nav a { font-size: 28px; padding: 6px 0; }
}

/* ---------- Gombok, linkek ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 30px;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.is-disabled { opacity: .45; }
.btn.is-disabled:hover { background: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid var(--line-strong);
  transition: border-color .25s, color .25s;
}
.text-link:hover { color: var(--accent-ink); border-color: var(--accent); }
.text-link .icon-sm { transition: transform .25s var(--ease); }
.text-link:hover .icon-sm { transform: translate(2px, -2px); }

/* ---------- Szekciók ---------- */

main { padding-top: var(--hh-full); }

section[id] { scroll-margin-top: calc(var(--hh-compact) - 1px); }

.section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; margin: 0 auto clamp(40px, 6vw, 64px); max-width: 640px; }
.section-head h2 {
  font-family: var(--font-script);
  font-size: clamp(50px, 7vw, 78px); line-height: 1.15;
  color: var(--ink);
}
.section-intro { margin: 18px 0 0; color: var(--ink-soft); font-style: italic; font-size: 20px; }

.ornament {
  display: block; width: 150px; height: 14px; margin: 10px auto 0;
  fill: none; stroke: var(--accent); stroke-width: 1;
}

.prose { color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.placeholder { font-style: italic; color: var(--muted); }

.eyebrow {
  margin: 0 0 8px;
  font-size: 14px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow-sep { margin: 0 .3em; }

/* ---------- Hero / váltakozó képek ---------- */

.hero {
  position: relative;
  height: clamp(440px, calc(100svh - var(--hh-full) - 90px), 820px);
  overflow: hidden;
  background: var(--bg-alt);
}
@media (max-width: 719px) {
  .hero { height: min(calc(100svh - var(--hh-full) - 64px), 150vw); min-height: 420px; }
}

.hero-stage { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  display: grid;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide--trio { grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); }

.slide-cell { position: relative; overflow: hidden; background: var(--bg-alt); }
.slide-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.slide.is-active .slide-cell img { transform: scale(1); }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  display: flex; justify-content: center; gap: 4px;
}
.hero-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 4px rgba(0, 0, 0, .25);
  transition: background .3s, transform .3s;
}
.hero-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
@media (max-width: 719px) {
  .hero-dots { display: none; } /* mobilon húzással lehet lapozni */
}

/* ---------- Bevezető ---------- */

.intro {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 9vw, 112px);
}
.intro-lead {
  font-style: italic; font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-soft);
  margin-bottom: 18px;
}
.names { display: flex; flex-direction: column; align-items: center; }
.names .name {
  font-family: var(--font-script);
  font-size: clamp(60px, 10vw, 104px); line-height: 1.12;
}
.names .and {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft);
  margin: 2px 0 6px;
}
.intro .ornament { margin: 26px auto 24px; }
.intro-date {
  font-size: clamp(15px, 1.8vw, 17px); letter-spacing: .26em; text-transform: uppercase;
  margin-bottom: 6px;
}
.intro-place { font-style: italic; color: var(--ink-soft); margin-bottom: 4px; }
.countdown { color: var(--accent-ink); font-size: 17px; margin-bottom: 34px; min-height: 1.6em; }

/* ---------- Történetünk ---------- */

.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  max-width: 980px; margin: 0 auto;
}
.story-card { text-align: center; }
.arch {
  margin: 0 auto 32px; max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 10px var(--bg), 0 0 0 11px var(--line);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.story-card h3 {
  font-size: clamp(28px, 3vw, 34px); line-height: 1.2; margin-bottom: 16px;
}
.story-card .prose { max-width: 440px; margin: 0 auto; text-align: left; }

@media (max-width: 759px) {
  .story-grid { grid-template-columns: 1fr; gap: 72px; }
  .arch { max-width: 340px; }
}

/* ---------- Helyszín ---------- */

.venue {
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: clamp(36px, 6vw, 80px);
  max-width: var(--maxw); margin: 0 auto;
}
.venue + .venue { margin-top: clamp(72px, 10vw, 120px); }
.venue--flip .venue-media { order: 2; }

.venue-media {
  position: relative; margin: 0;
}
.venue-media::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--accent);
  transform: translate(16px, 16px);
  opacity: .55;
}
.venue--flip .venue-media::before { transform: translate(-16px, 16px); }
.venue-media img {
  position: relative;
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
}

.venue-text h3 {
  font-size: clamp(34px, 4vw, 46px); line-height: 1.12; margin-bottom: 18px;
}
.venue-text .prose { margin-bottom: 26px; }

@media (max-width: 859px) {
  .venue { grid-template-columns: 1fr; }
  .venue--flip .venue-media { order: 0; }
  .venue-media { margin-right: 16px; }
  .venue--flip .venue-media { margin: 0 0 0 16px; }
}

/* ---------- Programterv ---------- */

.timeline {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 660px;
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  column-gap: 26px;
  align-items: center;
  min-height: 84px;
}
.timeline time {
  text-align: right;
  font-size: 27px; letter-spacing: .02em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}
.tl-dot {
  position: relative; align-self: stretch;
  display: grid; place-items: center;
}
.tl-dot::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line-strong);
}
.timeline li:first-child .tl-dot::before { top: 50%; }
.timeline li:last-child .tl-dot::before { bottom: 50%; }
.tl-dot svg {
  position: relative;
  width: 54px; height: 54px; padding: 14px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
  fill: none; stroke: var(--accent-ink); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
.tl-body { display: flex; flex-direction: column; line-height: 1.3; }
.tl-title { font-size: 22px; }
.tl-note { font-size: 16px; font-style: italic; color: var(--ink-soft); margin-top: 3px; }
.tl-note:empty { display: none; }

@media (max-width: 599px) {
  .timeline li { grid-template-columns: 58px 50px 1fr; column-gap: 14px; min-height: 76px; }
  .timeline time { font-size: 20px; }
  .tl-dot svg { width: 48px; height: 48px; padding: 12px; }
  .tl-title { font-size: 19.5px; }
  .tl-note { font-size: 15px; }
}

/* ---------- Információk (lenyíló) ---------- */

.accordion {
  max-width: 780px; margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}
.accordion details { border-bottom: 1px solid var(--line-strong); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-size: clamp(21px, 2.4vw, 25px); line-height: 1.3;
  transition: color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent-ink); }
.acc-icon { position: relative; width: 16px; height: 16px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.3px; background: currentColor;
  transition: transform .3s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
details[open] .acc-icon::after { transform: rotate(0); }
.acc-body { padding: 0 4px 28px; max-width: 680px; }

/* sima nyitás ott, ahol a böngésző tudja */
@supports (interpolate-size: allow-keywords) {
  .accordion { interpolate-size: allow-keywords; }
  .accordion details::details-content {
    height: 0; overflow: clip;
    transition: height .35s var(--ease), content-visibility .35s allow-discrete;
  }
  .accordion details[open]::details-content { height: auto; }
}

/* ---------- Regisztráció ---------- */

.rsvp-card {
  max-width: 680px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(26px, 5vw, 52px);
  box-shadow: 0 30px 60px -40px rgba(70, 50, 30, .35);
}

.progress {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.progress::before, .progress::after {
  content: ""; position: absolute; top: 15px; left: calc(100% / 6); height: 1px;
}
.progress::before { right: calc(100% / 6); background: var(--line-strong); }
.progress::after {
  width: calc((100% - 100% / 3) * var(--p, 0));
  background: var(--ink);
  transition: width .5s var(--ease);
}
.progress-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  color: var(--muted);
  transition: color .3s, opacity .3s;
}
.progress-num {
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-feature-settings: "lnum";
  background: var(--paper);
  border: 1px solid var(--line-strong);
  transition: background .3s, border-color .3s, color .3s;
}
.progress-num svg {
  display: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.progress-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.progress-step.is-current { color: var(--ink); }
.progress-step.is-current .progress-num { border-color: var(--ink); color: var(--ink); }
.progress-step.is-done { color: var(--ink-soft); }
.progress-step.is-done .progress-num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.progress-step.is-done .progress-num span { display: none; }
.progress-step.is-done .progress-num svg { display: block; }
.progress-step.is-skipped { opacity: .4; }

@media (max-width: 479px) {
  .progress-label { font-size: 11.5px; letter-spacing: .1em; }
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step:not([hidden]) { animation: step-in .45s var(--ease); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step-title {
  padding: 0; margin-bottom: 28px;
  font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2;
  outline: none;
}

.field { margin-bottom: 28px; }
.label { display: block; font-size: 19px; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.req { color: var(--accent); margin-left: 4px; }
.hint { font-size: 16px; font-style: italic; color: var(--ink-soft); margin: -4px 0 10px; line-height: 1.45; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit; font-size: 18px; color: var(--ink);
  background: #fffdf9;
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a39a90; opacity: 1; }
input:focus, textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(160, 122, 85, .18);
}

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: #fffdf9;
  font-size: 18px; line-height: 1.3;
  transition: background .2s, border-color .2s, color .2s;
}
.choice:hover span { border-color: var(--ink-soft); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 479px) {
  .field[data-field="attending"] .choices,
  .field[data-field="cake"] .choices { grid-template-columns: 1fr; }
}

.error-msg { display: none; color: var(--danger); font-size: 16px; margin: 8px 0 0; }
.has-error .error-msg { display: block; }
.has-error input[type="text"], .has-error input[type="email"] { border-color: var(--danger); }
.has-error .choice span { border-color: var(--danger); }

.companions { display: grid; gap: 10px; }
.companion-row { display: flex; gap: 8px; align-items: center; }
.companion-row input { flex: 1; }
.companion-remove {
  flex: none; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 2px;
  color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.companion-remove:hover { color: var(--danger); border-color: var(--line); }
.add-btn {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.add-btn:hover { color: var(--ink); }
.add-btn .icon { width: 16px; height: 16px; }

.reveal:not([hidden]) { animation: step-in .35s var(--ease); }

#rsvp-form[data-attending="no"] .only-yes { display: none !important; }
#rsvp-form:not([data-attending="no"]) .only-no { display: none !important; }

.step-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line);
}
.step-actions .btn:only-child { margin-left: auto; }
.req-note { margin: 0; font-size: 15px; font-style: italic; color: var(--ink-soft); }

.form-error {
  color: var(--danger); background: #f7e9e5;
  border-left: 2px solid var(--danger);
  padding: 12px 16px; font-size: 17px;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp-done { text-align: center; padding: 16px 0 8px; animation: step-in .5s var(--ease); }
.rsvp-done .ornament { margin: 0 auto 24px; }
.rsvp-done h3 {
  font-family: var(--font-script);
  font-size: clamp(42px, 6vw, 58px); line-height: 1.2; margin-bottom: 14px;
  outline: none;
}
.rsvp-done p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 28px; }
.demo-note {
  font-size: 15px; font-style: italic;
  border: 1px dashed var(--line-strong); padding: 10px 14px;
}

/* ---------- Kapcsolat ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 760px; margin: 0 auto;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 24px 40px;
  text-align: center;
}
.contact-name {
  font-family: var(--font-script);
  font-size: 58px; line-height: 1.2; margin-bottom: 18px;
}
.contact-card .btn { gap: 10px; padding-left: 22px; padding-right: 22px; }
@media (max-width: 599px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Lábléc ---------- */

.site-footer {
  text-align: center;
  padding: 72px var(--gutter) 64px;
  background: var(--ink); color: #e9e2d8;
}
.footer-brand { font-family: var(--font-script); font-size: 52px; line-height: 1.2; margin-bottom: 6px; }
.footer-brand .amp { color: #c9a37d; font-size: .82em; }
.footer-date { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: #bfb5a8; margin-bottom: 18px; }
.footer-text { font-style: italic; color: #d6cdc1; margin: 0; }

/* ---------- Kevesebb mozgás ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .slide-cell img { transform: none !important; }
}
