/* ═══════════════════════════════════════════════
   НОВОГОДНИЙ ТУР «FELICITÀ!» · DOLPHIN PLANET HOTEL & SPA
   31.12.2026 — 02.01.2027 · адаптация проверенного
   шаблона (390w art-directed mobile composition)
   type: Cormorant (RU) · Blosta Script (Felicità!)
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: "Krylon";
  src: url("assets/fonts/Krylon-Regular.woff2") format("woff2"),
       url("assets/fonts/Krylon-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TAN Pearl";
  src: url("assets/fonts/TAN-PEARL-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Blosta Script";
  src: url("assets/fonts/Blosta-Script.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sloop Script";
  src: url("assets/fonts/Sloop-ScriptThree.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine: #5a1220;
  --olive: #697141;
  --blush: #eedadc;
  --cream: #fbf4e6;
  --ink: #33161d;
  --olive-text: #d7dbbe;
  --olive-head: #e6eacf;
  --pine: #3e5842;       /* таблица стоимости, зелёные акценты */
  --terracotta: #b65136; /* тёплый красный акцент прайса */

  --body: "Krylon", "Cormorant", serif;
  --tan: "TAN Pearl", "Cormorant", serif;
  --blosta: "Blosta Script", "Cormorant", cursive;
  --sloop: "Sloop Script", "Cormorant", cursive;

  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="ru"] {
  --body: "Cormorant", serif;
  --tan: "Cormorant", serif;
  --blosta: "Cormorant", serif;
  --sloop: "Cormorant", serif;
}
html[lang="ru"] .t-script,
html[lang="ru"] .dl-color { font-style: italic; }

/* Cormorant 400 reads too thin on phones — bump the whole RU version */
html[lang="ru"] body { font-weight: 500; }

/* «Felicità!» остаётся латинским дисплейным шрифтом */
html[lang="ru"] .hero-lockup .hl-script { font-family: "Blosta Script", cursive; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--wine);
  color: var(--blush);
  font-size: 18px;
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-sealed { overflow: hidden; height: 100dvh; overscroll-behavior: none; touch-action: none; }

img { max-width: none; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; }

::selection { background: #c9a563; color: var(--wine); }

/* ═══════════════ responsive page column ═══════════════
   The design is a 390px-wide art-directed frame. Phones (≤430px)
   render it full-bleed. Anything wider shows it as a centered
   column, gently scaled up on big screens via zoom. */

body { background: #450d19; }

#page {
  width: 100%;
  background: var(--wine);
}
/* phones (up to 600px): always full-bleed, no side borders.
   Up to 440px the 390-design renders natively; on wider phones the
   whole page is scaled up so it still fills edge to edge. */
@media (min-width: 441px) and (max-width: 520px) { #page { zoom: 1.2; } }
@media (min-width: 521px) and (max-width: 600px) { #page { zoom: 1.4; } }

/* tablets & desktop: framed, centered column */
@media (min-width: 601px) {
  #page {
    max-width: 390px;
    margin: 0 auto;
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.5);
    zoom: 1.2;
  }
}
/* больших шагов масштаба на десктопе нет: колонна остаётся 1.2 на любой ширине ≥601px,
   чтобы текст читался комфортно (~21.6px) — элегантная «пригласительная» колонна,
   а не растянутый телефон (раньше: 800→1.5, 1000→1.8, 1300→2.1 давали 32–38px). */

/* ═══════════════ shared plumbing ═══════════════ */

.sec {
  position: relative;
  width: 100%;
  padding: 200px 24px;
  /* clip sideways like the 390w Figma frame, but let decor bleed vertically
     across section boundaries (garlands, fans, collages) */
  overflow-x: clip;
  overflow-y: visible;
}
.sec-content {
  position: relative;
  z-index: 1;
  max-width: 342px;
  margin: 0 auto;
  width: 100%;
}

/* toile-de-jouy tiled backdrop */
.toile {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--toile-o, 0.1);
  background-image: url("assets/figma/image5.jpg");
  background-repeat: repeat-x;
  background-size: auto var(--toile-h, 120%);
  background-position: var(--toile-x, -82px) 0;
}

/* absolute decor helpers (Figma coordinates, anchored to a 390px
   design column centered on wider screens) */
.deco, .deco-img, .deco-crop, .torn-strip, .ladies {
  pointer-events: none;
  user-select: none;
}
.deco {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.deco-rot { flex: none; }
.deco-rot > img { position: relative; }
.deco-img { position: absolute; z-index: 2; }
.deco-crop { position: absolute; overflow: hidden; z-index: 2; }
.deco-crop > img { position: absolute; }
.crop { position: relative; overflow: hidden; }
.crop > img { position: absolute; }

/* torn paper strip that bites into the following section */
.torn-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25px;
  height: 26px;
  z-index: 1; /* below the floral/garland decor that crosses the same boundary */
  background: var(--blush);
  -webkit-mask-image: url("assets/figma/torn-mask.svg");
  mask-image: url("assets/figma/torn-mask.svg");
  -webkit-mask-size: 100% 26px;
  mask-size: 100% 26px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* кремовый вариант — программа (вино) «рвётся» в кремовый прайс */
.torn-strip-wine { background: var(--cream); }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════ type lockups ═══════════════ */

/* “The Invitation” — TAN small word + Sloop script word */
.sec-title {
  font-weight: 400;
  letter-spacing: 0.64px;
  line-height: 71px;
}
.sec-title .t-script {
  font-family: var(--sloop);
  font-size: 59px;
  letter-spacing: 0;
}
html[lang="ru"] .sec-title .t-script { font-size: 44px; }

.sec-lede {
  font-family: var(--tan);
  font-size: 20px;
  line-height: 45px;
  font-weight: 400;
}
.sec-lede.small { font-size: 18px; }

.tan-heading {
  font-family: var(--tan);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.52px;
  line-height: 44.2px;
}

.para-stack { display: flex; flex-direction: column; gap: 26px; }
.para-stack.gap28 { gap: 28px; }
.lh12 p { line-height: 1.2; }
.lh14 p { line-height: 1.4; }

/* «Новогодний тур FELICITÀ!» lockup */
.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 400;
  text-align: center;
}
.hero-lockup .hl-small {
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.85;
  padding-left: 5px; /* визуально компенсирует letter-spacing справа */
}
.hero-lockup .hl-script {
  font-family: var(--blosta);
  font-size: 74px;
  letter-spacing: 0.6px;
  line-height: 1.25;
  white-space: nowrap;
  padding-right: 8px; /* росчерк Blosta уезжает вправо */
  margin-top: 22px; /* зазор, чтобы верхняя петля росчерка «F» проходила мимо капс-строки */
}

/* ═══════════════ HEADER ═══════════════ */

.site-header {
  position: absolute; /* живёт только над hero — при прокрутке уходит вместе со страницей */
  top: 0;
  left: 50%;
  width: 100%;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  padding-top: max(14px, env(safe-area-inset-top));
  color: var(--blush);
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: transform 0.7s var(--ease-lux), opacity 0.7s;
}
body:not(.is-sealed) .site-header { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 601px) { .site-header { max-width: 390px; } }

/* логотип Dolphin Planet по центру шапки (вместо звёздочки) */
.header-logo {
  display: block;
  margin: 0 auto;
  width: 118px;
  height: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

/* ─── music toggle ─── */
.music-toggle {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 600;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blush);
  background: rgba(69, 13, 25, 0.55);
  border: 1px solid rgba(238, 218, 220, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s;
}
body:not(.is-sealed) .music-toggle {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.music-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.music-toggle .wave,
.music-toggle .slash {
  transition: opacity 0.25s ease;
}
.music-toggle .slash { opacity: 0; }
.music-toggle.is-off .slash { opacity: 1; }
.music-toggle.is-off .wave { opacity: 0; }

/* ═══════════════ 1 · HERO ═══════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 22px 230px; /* запас снизу, чтобы текст не уходил под гирлянду приглашения */
  background: var(--wine);
  overflow: hidden;
}
.hero .toile { height: 989px; inset: auto 0 auto 0; top: 0; }

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 346px;
  width: 100%;
  padding-bottom: 8.8px;
}
.hero-date {
  font-size: 15px;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-date span { display: block; }
.hero-date .hero-sub {
  font-style: italic;
  font-size: 16px;
  opacity: 0.9;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8.7px;
  text-align: center;
}
.hero-copy p { font-size: 18px; line-height: 1.2; }

/* ═══════════════ 2 · INVITATION ═══════════════ */

.sec-invitation {
  background: var(--olive);
  color: var(--olive-text);
}
.sec-invitation .sec-title,
.sec-invitation .sec-lede { color: var(--olive-head); }
.sec-invitation .sec-content > * + * { margin-top: 12px; }
.sec-invitation .para-stack { margin-top: 12px; }
.sec-invitation p { font-size: 18px; }
.sec-invitation .plea {
  font-family: var(--tan);
  font-size: 18px;
  line-height: 1.4;
  color: var(--olive-head);
}

.inv-garland {
  left: 50%;
  top: -242px; /* новогодний арт: видимые ряды 25–521/590 — верх в ~17px под абзацем, низ в ~18px над заголовком */
  transform: translateX(calc(-50% - 0.5px));
  width: 833px;
  height: 480px;
  object-fit: contain;
  z-index: 2;
}

/* ═══════════════ 3 · SCHEDULE ═══════════════ */

.sec-schedule {
  background: var(--wine);
  color: var(--blush);
  padding: 120px 24px;
}
.schedule-stack { display: flex; flex-direction: column; gap: 44px; align-items: flex-start; }
.sch-sub { font-size: 20px; line-height: 1.2; }
.schedule-days {
  display: flex;
  flex-direction: column;
  gap: 58px;
  width: 100%;
}
.tl-day { display: flex; flex-direction: column; gap: 26px; }
.tl-day-head { display: flex; flex-direction: column; gap: 6px; }
.sch-day {
  font-family: var(--tan);
  font-size: 21px;
  letter-spacing: 0.63px;
  line-height: 35.7px;
}
.sch-day-note {
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--olive-text);
  opacity: 0.95;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 49px;
  bottom: 7.4px;
  width: 1px;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.88) 15.9%, #fff 48.1%, rgba(255,255,255,0.83) 86.1%, rgba(255,255,255,0) 100%);
}
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 54px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "✦";
  position: absolute;
  left: -28px;
  top: 6px;
  font-size: 12px;
  line-height: 1;
  color: var(--blush);
}
.timeline-time {
  font-family: var(--tan);
  font-size: 24px;
  letter-spacing: 0.48px;
  line-height: 27.6px;
}
.timeline-heading {
  font-size: 14px;
  letter-spacing: 3.08px;
  text-transform: uppercase;
  line-height: 20px;
  color: var(--olive-text);
  opacity: 0.9;
}
.timeline-text {
  font-size: 17px;
  line-height: 1.25;
  max-width: 560px;
  opacity: 0.95;
  padding-top: 2px;
}
.sch-note {
  font-size: 17px;
  line-height: 1.2;
  max-width: 560px;
  padding-top: 24px;
}

.sch-garland {
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  width: 500px;
  height: 268px;
  z-index: 2;
}

/* ═══════════════ 4 · DRESS CODE ═══════════════ */

.sec-dress {
  background: var(--blush);
  color: var(--ink);
}
.dress-stack { display: flex; flex-direction: column; gap: 54px; align-items: flex-start; }

.dress-lockup {
  position: relative;
  height: 74.2px;
  min-width: 257px;
}
.dl-title {
  display: block;
  font-family: var(--tan);
  font-size: 32px;
  letter-spacing: 0.64px;
  line-height: 36.48px;
  color: var(--wine);
  white-space: nowrap;
}
.dl-color {
  position: absolute;
  left: 111px;
  top: 0.2px;
  font-family: var(--blosta);
  font-size: 64px;
  line-height: 73.6px;
  color: #7d1b2e;
  white-space: nowrap;
}

.dress-intro { max-width: 342px; gap: 24px; }
.dress-intro p { font-size: 18px; }

.palette-block { display: flex; flex-direction: column; gap: 24px; width: 100%; }

.palette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.palette-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% - 24px) / 3); /* 3 per row inside the content column */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-lux), transform 0.9s var(--ease-lux);
}
.palette-card.is-visible { opacity: 1; transform: translateY(0); }
.palette-swatch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.palette-name {
  font-size: 22px;
  letter-spacing: -0.22px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

/* guest style collage — hangs off the bottom edge of the section */
.ladies {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -121.4px;
  width: 478.33px;
  height: 376px; /* 1024x805 source */
  z-index: 2;
}
/* extra room so the taller collage clears the palette above it */
.sec-dress { padding-bottom: 300px; }

/* ═══════════════ 5 · PRACTICAL ═══════════════ */

.sec-practical {
  background: var(--blush);
  color: var(--ink);
  padding: 140px 24px;
}
.practical-stack { display: flex; flex-direction: column; gap: 36px; }
.sec-practical .tan-heading { color: var(--wine); }

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
}
.icon-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.icon-item.center { align-items: center; }
.icon-item img {
  flex: none;
  object-fit: contain;
  border-radius: 50%;
}
.icon-item p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  flex: 1;
}

/* ═══════════════ 4a · ВКЛЮЧЕНО В СТОИМОСТЬ ═══════════════ */

.sec-included {
  background: var(--cream);
  color: var(--ink);
  /* top padding вмещает нижнюю половину гирлянды (131px) + зазор до заголовка */
  padding: 160px 24px 90px;
}
/* гирлянда над стыком вино→крем — тот же приём, что .inv-garland в оригинале */
.incl-garland {
  left: 50%;
  top: -120px; /* новогодний арт: подобрано, чтобы не задевать «Мы будем скучать…» и заголовок ниже */
  transform: translateX(-50%);
  width: 542px;
  height: 300px;
  object-fit: contain;
  z-index: 2;
}
.included-stack { display: flex; flex-direction: column; gap: 40px; }
.inc-title {
  font-family: var(--tan);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.3;
  color: var(--pine);
}
.inc-group { display: flex; flex-direction: column; gap: 16px; }
.inc-group-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.inc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inc-list li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.35;
}
.inc-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 11px;
  color: var(--pine);
}

/* ═══════════════ 5 · СТОИМОСТЬ ТУРА ═══════════════ */

.sec-pricing {
  background: var(--cream);
  color: var(--ink);
  padding: 40px 20px 150px;
}
.pricing-stack { display: flex; flex-direction: column; gap: 34px; }

.pr-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid rgba(90, 18, 32, 0.25);
}
.pr-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: rgba(90, 18, 32, 0.75);
}
.pr-title {
  font-family: var(--tan);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wine);
}
.pr-dates { font-size: 16px; color: var(--ink); }
.pr-nights {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--terracotta);
}

/* прайс-лист в духе винтажного меню: без плашек и зебры —
   тонкие линейки, точечные пунктиры-«поводки», вино и чернила на бумаге */
.price-table {
  border-top: 1px solid rgba(90, 18, 32, 0.4);
  border-bottom: 1px solid rgba(90, 18, 32, 0.4);
  padding: 4px 2px 14px;
  position: relative;
}
.price-table::before,
.price-table::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(90, 18, 32, 0.18);
}
.price-table::before { top: 3px; }
.price-table::after { bottom: 3px; }
.pt-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 10px;
  color: rgba(51, 22, 29, 0.62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 1px dotted rgba(51, 22, 29, 0.3);
}
.pt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 13px 2px 4px;
}
.pt-row + .pt-row { border-top: 1px dotted rgba(51, 22, 29, 0.0); }
.pt-fill {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted rgba(51, 22, 29, 0.35);
  transform: translateY(-5px);
}
.pt-cat { font-size: 17px; line-height: 1.3; color: var(--ink); }
.pt-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-family: var(--tan);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--wine);
}
.pt-price small {
  font-family: var(--body);
  font-style: italic;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.6;
  color: var(--ink);
}

/* дополнительное место */
.extra-block { display: flex; flex-direction: column; gap: 14px; }
.pr-sub {
  font-family: var(--tan);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: var(--wine);
}
.extra-table {
  border-top: 1px solid rgba(90, 18, 32, 0.3);
  border-bottom: 1px solid rgba(90, 18, 32, 0.3);
  padding: 2px 2px 6px;
}
.et-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 2px 3px;
  font-size: 16.5px;
  color: var(--ink);
}
.et-row span:last-child {
  font-family: var(--tan);
  font-weight: 600;
  white-space: nowrap;
  color: var(--wine);
}
.et-note { font-size: 13.5px; opacity: 0.75; line-height: 1.35; }

.extra-card {
  border-top: 1px dotted rgba(182, 81, 54, 0.45);
  padding: 14px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.extra-card + .extra-card { margin-top: 2px; }
.ec-age {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
}
.ec-text { font-size: 15.5px; line-height: 1.45; }

/* условия бронирования */
.booking-terms {
  border: 1px solid rgba(90, 18, 32, 0.25);
  outline: 1px solid rgba(90, 18, 32, 0.12);
  outline-offset: 3px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bt-title {
  font-family: var(--tan);
  font-size: 20px;
  font-weight: 400;
  color: var(--wine);
}
.booking-terms p { font-size: 15px; line-height: 1.45; }
.booking-terms .bt-strong { font-weight: 600; color: var(--wine); }

/* ═══════════════ 7 · БРОНИРОВАНИЕ (форма) ═══════════════ */

.sec-rsvp {
  background: var(--cream);
  color: var(--wine);
  padding: 140px 24px;
}
.rsvp-stack { display: flex; flex-direction: column; gap: 36px; }
.rsvp-heading { display: flex; flex-direction: column; gap: 12px; }
.rsvp-title {
  font-family: var(--tan);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.64px;
  line-height: 36.48px;
}
.rsvp-body { display: flex; flex-direction: column; gap: 28px; }
.rsvp-warning { font-size: 18px; line-height: 1.4; }

/* ─── rsvp form ─── */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 22px;
  padding-top: 38px;
  border-top: 1px solid rgba(90, 18, 32, 0.25);
}
.rf-title {
  font-family: var(--tan);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}
.rf-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-label {
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}
.rf-input {
  font-family: inherit;
  font-size: 18px;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(90, 18, 32, 0.4);
  border-radius: 0;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color 0.3s;
}
.rf-input:focus { border-bottom-color: var(--wine); }
.rf-field.rf-missing .rf-label { opacity: 1; color: var(--wine); }
.rf-field.rf-missing .rf-input { border-bottom-color: var(--wine); }
.rf-choices { display: flex; gap: 10px; }
.rf-choice { position: relative; }
.rf-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rf-choice span {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid rgba(90, 18, 32, 0.45);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.rf-choice input:checked + span {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--blush);
}
.rf-choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.rf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rf-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--blush);
  background: var(--wine);
  padding: 15px 34px;
  border-radius: 999px;
  transition: opacity 0.3s;
}
.rf-flag {
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(251, 244, 230, 0.35);
}
.rf-submit:disabled { opacity: 0.55; cursor: default; }
.rf-status {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  min-height: 22px;
}
.rsvp-form.rf-done .rf-field,
.rsvp-form.rf-done .rf-submit { display: none; }
.rsvp-form.rf-done .rf-status {
  font-family: var(--tan);
  font-size: 20px;
}

/* ─── контакты под формой ─── */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(90, 18, 32, 0.25);
}
.cb-label {
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
}
.cb-phone {
  font-family: var(--tan);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--wine);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid rgba(90, 18, 32, 0.3);
  padding-bottom: 2px;
}
.cb-address {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding-top: 8px;
}

/* ═══════════════ FOOTER ═══════════════ */

.site-footer {
  position: relative;
  width: 100%;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 13.4px;
  overflow-x: clip;
  overflow-y: visible;
  color: #faf3e5;
  text-align: center;
}
.footer-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(47, 31, 8, 0.7), rgba(47, 31, 8, 0.7)), url("assets/figma/footer-bg-xmas.webp");
  background-size: cover;
  background-position: center;
}
.footer-logo {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  width: 168px;
  height: auto;
}
.footer-date {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-date span { display: block; }
.footer-date .footer-address {
  font-size: 15px;
  font-style: italic;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════
   INTRO — loader + frame-by-frame envelope
   ═══════════════════════════════════════════════ */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* на телефонах 100vh — «малый» вьюпорт: при спрятанной адресной строке снизу
     проглядывала страница. Стек фолбэков накрывает самый большой вьюпорт. */
  height: 100vh;
  height: -webkit-fill-available;
  height: 100lvh;
  z-index: 1000;
  background: #6a0620; /* фиксированный фон интро; края плёнки растушёваны маской на .intro-canvas */
  overflow: hidden;
  transition: opacity 1s ease 0.2s, transform 1.3s var(--ease-lux), visibility 0s linear 1.4s;
}
.intro.is-gone {
  opacity: 0;
  transform: scale(1.14);
  visibility: hidden;
  pointer-events: none;
}

/* header inside intro (matches site header 1:1) */
.intro-header {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  padding-top: max(14px, env(safe-area-inset-top));
  color: var(--blush);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.intro.is-ready .intro-header { opacity: 1; }
@media (min-width: 601px) { .intro-header { max-width: 390px; } }

/* envelope frames drawn to canvas — 635×476 at top 54, per Figma */
.intro-stage {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 635px;
  height: 476px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.9s ease 0.15s;
}
.intro.is-ready .intro-stage { opacity: 1; }
.intro-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* растушёвка краёв плёнки — прямоугольник кадра бесшовно растворяется в фоне интро */
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 47%, #000 68%, transparent 99%);
  mask-image: radial-gradient(ellipse 62% 60% at 50% 47%, #000 68%, transparent 99%);
}
@media (min-width: 700px) and (min-height: 760px) {
  .intro-stage { width: 780px; height: 585px; }
  .intro-hint { top: 576px !important; }
}

.intro-hint {
  position: absolute;
  top: 479px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: rgba(238, 218, 220, 0.57);
  opacity: 0;
  pointer-events: none;
}
.intro.is-ready .intro-hint { animation: hint-breathe 2.8s ease-in-out 0.4s infinite; }
.intro.is-playing .intro-hint { animation: none; opacity: 0; transition: opacity 0.4s; }
@keyframes hint-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* loading veil — breathing peony */
.intro-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #6a0620; /* в пару к фону .intro */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.intro-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-peony {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
  animation: peony-breathe 2.2s ease-in-out infinite;
}
@keyframes peony-breathe {
  0%, 100% { transform: scale(0.9) rotate(-2deg); opacity: 0.7; }
  50% { transform: scale(1.06) rotate(2deg); opacity: 1; }
}

/* gentle zoom into the page once the envelope has faded */
#page.zoom-in main {
  animation: page-zoom 1.5s var(--ease-lux) both;
  transform-origin: 50% 12%;
}
@keyframes page-zoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

/* ═══════════════ misc ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .palette-card { opacity: 1; transform: none; }
}
