/* ==========================================================================
   Eden Mountain House — Новогодний розыгрыш
   ========================================================================== */

:root {
  --green-950: #072a20;
  --green-900: #0b3a2c;
  --green: #0f4d3a;
  --green-600: #17694f;
  --green-300: #7fb39e;
  --burgundy: #8e1b22;
  --burgundy-700: #6e1218;
  --burgundy-900: #4d0b10;
  --cream: #f6efe2;
  --cream-2: #ece2cf;
  --cream-3: #e2d4ba;
  --gold: #d9b36a;
  --gold-2: #f3d79a;
  --ink: #2a2220;
  --muted: #6b5f57;
  --error: #b3261e;

  --font-script: "Marck Script", cursive;
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(7, 42, 32, .55);
  --shadow-soft: 0 10px 30px -14px rgba(42, 34, 32, .35);
  --wrap: 1120px;
  --gutter: 16px;
  --edge-h: 22px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--green-900);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Typography ---------- */

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

.h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -.01em;
  text-align: center;
}
.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--muted);
}
.on-dark .lead { color: rgba(246, 239, 226, .82); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--burgundy);
}
.on-dark .kicker { color: var(--gold-2); }

.heading-ornament {
  display: flex; justify-content: center; margin-bottom: 10px; color: var(--gold);
}
.heading-ornament svg { width: 120px; height: 18px; }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--green);
  --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(7, 42, 32, .7), inset 0 -3px 0 rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(7, 42, 32, .75), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--red { --bg: var(--burgundy); }
.btn--gold { --bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --fg: var(--burgundy-900); background: var(--bg); }
.btn--ghost {
  --bg: transparent; --fg: var(--green);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(15, 77, 58, .06); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Sections & wavy edges ---------- */

.section {
  --sec-bg: var(--cream);
  position: relative;
  background: var(--sec-bg);
  padding: 72px 0 80px;
}
.section--green {
  --sec-bg: var(--green);
  color: var(--cream);
  background:
    radial-gradient(70% 45% at 50% 45%, rgba(255, 255, 255, .06), transparent 100%),
    var(--sec-bg);
}
.section--red {
  --sec-bg: var(--burgundy);
  color: var(--cream);
  background:
    radial-gradient(70% 45% at 50% 45%, rgba(255, 255, 255, .07), transparent 100%),
    var(--sec-bg);
}
.on-dark .h2 { color: var(--cream); }

/* the wave belongs to the section it extends; it overlaps the neighbour */
.edge {
  position: absolute; left: 0; right: 0; height: var(--edge-h);
  background: var(--sec-bg);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: 140px var(--edge-h); mask-size: 140px var(--edge-h);
}
.edge--bottom {
  top: calc(100% - 1px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0H140V9C122.5 24 105 24 87.5 12 70 2 52.5 2 35 12 17.5 24 0 22 0 9Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0H140V9C122.5 24 105 24 87.5 12 70 2 52.5 2 35 12 17.5 24 0 22 0 9Z'/%3E%3C/svg%3E");
}
.edge--top {
  bottom: calc(100% - 1px);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22H140V13C122.5 -2 105 -2 87.5 10 70 20 52.5 20 35 10 17.5 -2 0 0 0 13Z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22H140V13C122.5 -2 105 -2 87.5 10 70 20 52.5 20 35 10 17.5 -2 0 0 0 13Z'/%3E%3C/svg%3E");
}

/* ---------- Garland (bulbs drawn by main.js) ---------- */

.garland {
  position: absolute; left: 0; right: 0; height: 44px;
  z-index: 3; pointer-events: none;
}
.garland--top { top: -6px; }
.garland--edge { top: calc(-1 * var(--edge-h) + 2px); }
.garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bulb {
  position: absolute; width: 9px; height: 12px; margin: -2px 0 0 -4.5px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c, #ffe08a);
  box-shadow: 0 0 6px 2px var(--c, #ffe08a), 0 0 18px 6px color-mix(in srgb, var(--c, #ffe08a) 45%, transparent);
  animation: twinkle var(--d, 2.6s) ease-in-out var(--delay, 0s) infinite alternate;
}
.bulb::before {
  content: ""; position: absolute; left: 2px; top: -3px; width: 5px; height: 4px;
  border-radius: 1px; background: #4a4a3a;
}
@keyframes twinkle {
  0%   { opacity: 1; filter: brightness(1.15); }
  60%  { opacity: .85; }
  100% { opacity: .35; filter: brightness(.8); }
}

/* ---------- Snow canvas ---------- */

#snow {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 50;
}

/* ---------- Header strip ---------- */

.topbar {
  --sec-bg: var(--burgundy);
  position: relative;
  background:
    radial-gradient(60% 140% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%),
    var(--sec-bg);
  color: var(--cream);
  padding: 22px 0 18px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__nav { display: none; gap: 26px; font-size: 14px; font-weight: 600; }
.topbar__nav a { text-decoration: none; opacity: .88; }
.topbar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topbar .btn { min-height: 40px; padding: 8px 18px; font-size: 13px; }
@media (min-width: 900px) { .topbar__nav { display: flex; } }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.logo__emblem { height: 46px; width: auto; }
.logo__word { height: 30px; width: auto; }
@media (min-width: 600px) { .logo__word { height: 36px; } .logo__emblem { height: 52px; } }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 84px;
  overflow: hidden;
}
.hero__grid {
  display: grid; gap: 36px; align-items: center;
}
.hero__text { text-align: center; position: relative; z-index: 1; }
.hero__emblem { width: 58px; height: auto; margin: 0 auto 14px; }
.hero__place a { text-decoration: none; }
.hero__place a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero__title {
  margin: 14px 0 8px;
  font-size: clamp(54px, 13vw, 96px);
  color: var(--burgundy);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}
.hero__subtitle {
  margin: 0 auto 26px; max-width: 460px;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(18px, 3.6vw, 24px); line-height: 1.25;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--green);
}
.hero__subtitle em { font-style: normal; color: var(--burgundy); }

.dates {
  display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 14px;
  margin: 0 auto 26px; padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .6);
  text-align: left;
}
.dates__num { font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: .95; color: var(--green); }
.dates__num small { display: block; font-size: 15px; font-weight: 800; color: var(--burgundy); letter-spacing: .02em; }
.dates__text { font-size: 13px; line-height: 1.4; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 14px; max-width: 210px; }
.dates__text b { color: var(--ink); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__place {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px; font-size: 13px; color: var(--muted);
}
.hero__place svg { width: 14px; height: 14px; color: var(--burgundy); }

.hero__scene { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.hero__scene > svg { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(7, 42, 32, .35)); }
.scene-window { animation: windowGlow 3.5s ease-in-out infinite alternate; }
@keyframes windowGlow { from { opacity: .75; } to { opacity: 1; } }
.scene-smoke circle { animation: smoke 5s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.scene-smoke circle:nth-child(2) { animation-delay: 1.6s; }
.scene-smoke circle:nth-child(3) { animation-delay: 3.2s; }
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  25% { opacity: .55; }
  100% { opacity: 0; transform: translate(12px, -38px) scale(1.6); }
}
.scene-star { animation: starBlink 3s ease-in-out infinite alternate; }
.scene-star:nth-child(2n) { animation-delay: 1.2s; }
.scene-star:nth-child(3n) { animation-delay: 2.1s; }
@keyframes starBlink { from { opacity: .3; } to { opacity: 1; } }

.deco { position: absolute; pointer-events: none; color: var(--burgundy); opacity: .5; }
.deco--flake { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 110px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero__text { text-align: left; }
  .hero__emblem { margin-left: 0; }
  .hero__subtitle { margin-left: 0; }
  .dates { margin-left: 0; }
  .hero__actions, .hero__place { justify-content: flex-start; }
}

/* ---------- Prizes ---------- */

.prizes { padding-top: 84px; }
.prize-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .prize-grid { grid-template-columns: 1.25fr 1fr; }
}

.prizes__note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 620px; margin: 26px auto 0; padding: 12px 18px;
  border-radius: 999px; background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(243, 215, 154, .3);
  font-size: 14px; font-weight: 600; color: var(--gold-2); text-align: center;
}
.prizes__note svg { flex: none; width: 16px; height: 16px; }
@media (max-width: 600px) { .prizes__note { border-radius: 16px; font-size: 13px; } }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.place-card {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(243, 215, 154, .3), 0 14px 30px -20px rgba(0, 0, 0, .6);
}
.place-card__medal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 900; font-size: 21px; line-height: 1;
  background: var(--medal, rgba(246, 239, 226, .1)); color: var(--medal-ink, var(--gold-2));
  box-shadow: inset 0 0 0 2px rgba(243, 215, 154, .45);
}
.place-card__medal small { font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.place-card--2 { --medal: linear-gradient(160deg, #fbfcfd, #b7bdc6); --medal-ink: #2f3640; }
.place-card--3 { --medal: linear-gradient(160deg, #f3c9a2, #b5764a); --medal-ink: #3a1f10; }
.place-card__icon { width: 40px; height: 40px; color: var(--gold-2); }
.place-card__text b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 18px; line-height: 1.2; }
.place-card__text span { display: block; margin-top: 2px; font-size: 13px; color: rgba(246, 239, 226, .78); }
@media (max-width: 359px) { .place-card__icon { display: none; } }
@media (max-width: 600px) { .place-card { gap: 10px; padding: 12px 14px; } .place-card__icon { width: 32px; height: 32px; } }

.prize {
  position: relative;
  display: grid; gap: 18px; align-items: center;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(243, 215, 154, .35), var(--shadow);
  overflow: hidden;
}
.prize--main {
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(243, 215, 154, .28), transparent 70%),
    linear-gradient(170deg, var(--burgundy), var(--burgundy-700));
  box-shadow: inset 0 0 0 2px var(--gold), var(--shadow);
  text-align: center; justify-items: center;
  padding: 34px 24px 30px;
}
.prize__badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--burgundy-900);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.prize__img { width: 140px; height: auto; }
.prize--main .prize__img { width: min(220px, 60vw); filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.prize__title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 24px; line-height: 1.15; }
.prize--main .prize__title { font-size: clamp(28px, 5vw, 38px); }
.prize__desc { margin: 4px 0 0; font-size: 14px; color: rgba(246, 239, 226, .8); }
.prize__count {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px;
  font-family: var(--font-head); font-weight: 900; color: var(--gold-2);
}
.prize__count b { font-size: 30px; line-height: 1; }
.prize--cert { grid-template-columns: 96px 1fr; }
.prize--cert .prize__img { width: 96px; }
.prize__sparkle { position: absolute; width: 18px; height: 18px; color: var(--gold-2); opacity: .8; animation: starBlink 2.2s ease-in-out infinite alternate; }

/* ---------- The place: chalet photo as a winter postcard ---------- */

.place { padding: 96px 0 100px; overflow: hidden; }
.place__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .place__grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }

.postcard {
  position: relative;
  margin: 0 8px;
  padding: 14px 14px 58px;
  background: #fffdf8;
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--cream-3), 0 30px 50px -24px rgba(42, 34, 32, .55);
  transform: rotate(-2deg);
}
.postcard.reveal.is-visible { transform: rotate(-2deg); }
@media (min-width: 600px) { .postcard { padding: 18px 18px 70px; margin: 0; } }

.postcard__photo {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 3 / 2;
  background: var(--green-900);
}
.postcard__photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* soft evening grade to sit with the cream/green palette */
  filter: saturate(.9) contrast(1.05) brightness(.96) sepia(.08);
}
.postcard__lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pc-bulb { animation: pcTwinkle 2.4s ease-in-out infinite alternate; }
@keyframes pcTwinkle { from { opacity: 1; } to { opacity: .45; } }
.pc-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame .9s ease-in-out infinite alternate; }
.pc-flame--2 { animation-duration: .6s; animation-delay: -.3s; }
@keyframes flame {
  0% { transform: scale(1, 1) skewX(0deg); }
  50% { transform: scale(.94, 1.12) skewX(-3deg); }
  100% { transform: scale(1.04, .92) skewX(3deg); }
}
.pc-fire__glow { animation: fireGlow 1.6s ease-in-out infinite alternate; }
@keyframes fireGlow { from { opacity: .7; } to { opacity: 1; } }
/* frosted-window edges */
.postcard__frost {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 75% at 50% 45%, transparent 65%, rgba(240, 246, 248, .32) 100%);
  box-shadow: inset 0 0 30px 4px rgba(255, 255, 255, .25);
}
/* gentle snowfall over the photo */
.postcard__snow {
  position: absolute; inset: -200px 0 0; pointer-events: none;
  background-image:
    radial-gradient(2.2px 2.2px at 24px 30px, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 110px 90px, #fff 50%, transparent 52%),
    radial-gradient(2.6px 2.6px at 160px 150px, rgba(255, 255, 255, .9) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 60px 170px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 90px 40px, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 200px 120px, #fff 50%, transparent 52%);
  background-size: 200px 200px, 200px 200px, 200px 200px, 260px 260px, 260px 260px, 260px 260px;
  animation: postcardSnow 14s linear infinite;
  opacity: .9;
}
@keyframes postcardSnow {
  to { background-position: 30px 200px, 30px 200px, 30px 200px, -20px 260px, -20px 260px, -20px 260px; }
}

.garland--postcard { top: -14px; left: -10px; right: -10px; height: 40px; }

.postcard__stamp {
  position: absolute; top: -26px; right: -14px; z-index: 4;
  width: 88px; height: 104px; padding: 12px;
  display: grid; place-items: center;
  background: var(--burgundy);
  --r: 4px;
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25));
  transform: rotate(6deg);
}
.postcard__stamp::before {
  content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(243, 215, 154, .6);
}
.postcard__stamp img { width: 100%; height: auto; }
@media (min-width: 600px) { .postcard__stamp { width: 104px; height: 124px; right: -22px; } }

.postmark {
  position: absolute; left: 14px; bottom: 8px; z-index: 3;
  width: 92px; height: 92px; color: rgba(142, 27, 34, .55);
  transform: rotate(-14deg);
  font-family: var(--font-body);
}
.postmark svg { width: 100%; height: 100%; }
@media (min-width: 600px) { .postmark { width: 112px; height: 112px; left: 22px; bottom: 6px; } }

.postcard__caption {
  position: absolute; right: 22px; bottom: 12px;
  font-size: clamp(30px, 6vw, 42px); color: var(--burgundy);
}

.place__text .h2 { text-align: left; color: var(--green); }
.place__text { text-align: left; }
.place__lead { margin: 0 0 24px; font-size: 16px; color: var(--muted); }
.features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.features b { display: block; font-size: 15px; color: var(--ink); }
.features__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--gold-2);
}
.features__icon svg { width: 22px; height: 22px; }
.place__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Steps (stamp cards) ---------- */

.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.stamp {
  --stamp-bg: var(--burgundy);
  position: relative;
  padding: 26px 24px 24px;
  color: var(--cream);
  background: var(--stamp-bg);
  /* perforated postage-stamp edge: grid of holes + solid centre */
  --r: 6px;
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 12px 14px rgba(42, 34, 32, .25));
  transform: rotate(var(--rot, -1.5deg));
  transition: transform .3s ease;
}
.stamp:hover { transform: rotate(0deg) translateY(-4px); }
.stamp:nth-child(2) { --stamp-bg: var(--green); --rot: 1.2deg; }
.stamp:nth-child(3) { --stamp-bg: var(--burgundy-700); --rot: -.8deg; }
.stamp__inner {
  height: 100%;
  border: 1.5px dashed rgba(246, 239, 226, .5);
  border-radius: 6px;
  padding: 18px 18px 20px;
}
.stamp__num { font-family: var(--font-script); font-size: 46px; line-height: 1; color: var(--gold-2); }
.stamp__title { margin: 6px 0 8px; font-family: var(--font-head); font-weight: 900; font-size: 21px; line-height: 1.2; }
.stamp__text { margin: 0; font-size: 14px; color: rgba(246, 239, 226, .85); }
.stamp__icon { position: absolute; right: 30px; top: 30px; width: 40px; height: 40px; color: var(--gold-2); opacity: .9; }

.note {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 34px auto 0; max-width: 560px; padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  font-size: 14px; color: var(--ink); text-align: left;
}
.note svg { flex: none; width: 26px; height: 26px; color: var(--burgundy); }

/* ---------- Entry form ---------- */

.entry { padding-top: 90px; }
.entry__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .entry__grid { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; } }

.entry__aside { text-align: center; }
.entry__aside .h2 { text-align: inherit; }
.entry__aside .lead { margin-left: auto; margin-right: auto; text-align: inherit; }
.entry__gift { width: 210px; margin: 0 auto; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .35)); }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 380px; margin-inline: auto; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(246, 239, 226, .88); }
.trust svg { flex: none; width: 20px; height: 20px; color: var(--gold-2); margin-top: 1px; }
@media (min-width: 900px) {
  .entry__aside { text-align: left; }
  .entry__aside .lead { margin-left: 0; }
  .entry__gift { margin: 0 0 8px; }
  .trust { margin-inline: 0; }
}

.form-card {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(243, 215, 154, .25), var(--shadow);
}
@media (min-width: 600px) { .form-card { padding: 36px 34px 30px; } }
.form-card__ribbon {
  position: absolute; top: -26px; right: 18px; width: 64px; height: 64px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
}
.form-card__title { margin: 0 0 4px; font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--green); }
.form-card__sub { margin: 0 0 22px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label, .field .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input[type="text"],
.field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--cream-3); border-radius: var(--radius-sm);
  background: #fffdf8;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: #a99c8d; }
.field input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(23, 105, 79, .15); }
.field.is-invalid input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.input-code { font-family: var(--font-head); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border-radius: 6px;
  border: 1.5px solid var(--cream-3); background: #fffdf8;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2.5px solid var(--cream); border-bottom: 2.5px solid var(--cream);
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.check a { color: var(--green); font-weight: 600; }
.check--inline { margin: -4px 0 16px; color: var(--ink); }
.field.is-invalid .check input { border-color: var(--error); }
.field .check { display: flex; margin-bottom: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.consents { margin: 20px 0 18px; padding-top: 18px; border-top: 1px dashed var(--cream-3); }
.consents .field { margin-bottom: 4px; }

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

.form-foot { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.form-foot svg { width: 14px; height: 14px; color: var(--green-600); }
.form-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fbe6e3; color: var(--error); font-size: 13.5px; font-weight: 600; }
.form-alert:empty { display: none; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(246, 239, 226, .35); border-top-color: var(--cream); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success { text-align: center; padding: 10px 0 4px; }
.success__icon { width: 92px; height: 92px; margin: 0 auto 12px; }
.success__title { margin: 0; font-family: var(--font-script); font-size: 48px; color: var(--burgundy); line-height: 1.1; }
.success__text { margin: 8px auto 18px; max-width: 360px; font-size: 15px; color: var(--muted); }
.ticket {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--green); color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.ticket span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.ticket b { font-family: var(--font-head); font-weight: 900; font-size: 26px; letter-spacing: .1em; }
.success .btn { margin-top: 20px; }

/* ---------- Countdown ---------- */

.countdown { text-align: center; }
.timer { display: flex; justify-content: center; gap: 10px; margin: 8px 0 26px; }
@media (min-width: 600px) { .timer { gap: 18px; } }
.timer__cell {
  width: 74px; padding: 14px 0 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px rgba(243, 215, 154, .35);
}
@media (min-width: 600px) { .timer__cell { width: 104px; padding: 18px 0 12px; } }
.timer__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 34px; line-height: 1; color: var(--cream); font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .timer__num { font-size: 50px; } }
.timer__label { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.countdown__when { margin: 0 0 22px; font-size: 15px; color: rgba(246, 239, 226, .85); }
.countdown__when b { color: var(--cream); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 14px;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 106, .35);
  transition: background .2s ease;
}
.faq details[open] { background: #f1e7d5; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px; color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 14px; }
.faq__icon {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--green-300);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px;
  background: var(--green); border-radius: 2px; transition: transform .25s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__body { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }
.faq__body p { margin: 0; }

/* ---------- Contacts & footer ---------- */

.contacts { text-align: center; padding-bottom: 60px; }
.contacts__grid { display: grid; gap: 14px; max-width: 860px; margin: 0 auto 36px; }
@media (min-width: 700px) { .contacts__grid { grid-template-columns: repeat(3, 1fr); } }
.contact {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 16px; border-radius: 16px;
  background: rgba(0, 0, 0, .14); box-shadow: inset 0 0 0 1px rgba(243, 215, 154, .25);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
a.contact:hover { background: rgba(0, 0, 0, .22); transform: translateY(-2px); }
.contact svg { width: 28px; height: 28px; color: var(--gold-2); }
.contact__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.contact__value { font-weight: 700; font-size: 15px; }

.footer-card {
  position: relative;
  max-width: 520px; margin: 0 auto;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--green-600), var(--green));
  box-shadow: inset 0 0 0 2px rgba(243, 215, 154, .45), var(--shadow);
  color: var(--cream);
}
.footer-card__logo { display: block; width: 170px; margin: 4px auto 0; }
.footer-card__logo img { width: 100%; height: auto; }
.footer-card__text { margin: 12px 0 14px; font-size: 13px; color: rgba(246, 239, 226, .85); }
.socials { display: flex; justify-content: center; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); color: var(--green);
  transition: transform .2s ease;
}
.socials a:hover { transform: translateY(-2px) scale(1.05); }
.socials svg { width: 22px; height: 22px; }
.legal { margin: 26px 0 0; font-size: 12px; color: rgba(246, 239, 226, .65); }
.legal a { color: rgba(246, 239, 226, .85); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.stamp.reveal.is-visible { transform: rotate(var(--rot, -1.5deg)); }

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