@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Шрифты ── */
@font-face {
  font-family: 'Blagovest';
  src: url('public/fonts/blagovestfourserifc.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CyrillicOldFace';
  src: url('public/fonts/cyrillicoldface.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FitavJaz';
  src: url('public/fonts/fitavjaz.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nicoletta';
  src: url('public/fonts/Nicoletta Script SHA_1.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Izhitsa';
  src: url('public/fonts/izhitsa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FontOne';
  src: url('public/fonts/FONT (1).TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Body — тёмный фон вне карточки (на широких экранах) ── */
body {
  min-height: 100vh;
  background: #2b1111;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ══════════════════════════════════════
   HERO — главный экран
   z-index слои:
     1  →  белый фон (background-color контейнера)
     2  →  hero-frame.png (декоративная рамка поверх фона)
     3  →  hero-content (весь текст: заголовок, имена, дата)
     4  →  music-btn (кнопка, самый верхний слой)
   ══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(env(safe-area-inset-top) + 6vh);
  padding-bottom: calc(env(safe-area-inset-bottom) + 2vh);
}

/* Декоративная рамка — слой 2 */
.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 2;
}

/* Контент — слой 3 / Safe Area обёртка */
.hero-content {
  position: relative;
  z-index: 3;

  width: 72%;
  max-width: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 2vh;

  text-align: center;

  word-break: keep-all;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* ── Заголовок ── */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* «ПРИГЛАШЕНИЕ» */
.title-main {
  font-family: 'CyrillicOldFace', Georgia, serif;
  font-size: clamp(1.2rem, 5.2vw, 1.9rem);
  color: #1a0f02;
  letter-spacing: 0.08em;
  line-height: 1.05;
  display: block;
  text-align: center;
}

/* «на свадьбу» */
.title-sub {
  font-family: 'Nicoletta', Georgia, serif;
  font-size: clamp(3.1rem, 6vw, 3.6rem);
  color: #1a0f02;
  letter-spacing: 0.04em;
  font-style: normal;
  display: block;
  align-self: center;
  text-align: center;
  margin-top: 0.5vh;
}

/* ── Имена с буквицами ── */
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5vh;
}

.name-line {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

/* Первая буква — красная, заметно крупнее, но гармонично */
.name-initial {
  font-family: 'CyrillicOldFace', Georgia, serif;
  font-size: clamp(4.3rem, 10.5vw, 5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.name-initial--blagovest {
  font-family: 'Blagovest', Georgia, serif;
}

/* Остальные буквы имени — чёрные, крупные, цельно читаются */
.name-rest {
  font-family: 'CyrillicOldFace', Georgia, serif;
  font-size: clamp(2.9rem, 7vw, 3.5rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

/* ── Дата ── */
.hero-date {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(0.9rem, 3.5vw, 1.3rem);
  color: #1a0f02;
  letter-spacing: 0.25em;
  margin-top: 4vh;
}

/* ── Кнопка музыки — слой 4 ── */
.music-btn {
  position: relative;
  z-index: 4;
  pointer-events: auto;

  background: transparent;
  border: 1.5px solid #A71C1B;
  border-radius: 2px;
  cursor: pointer;

  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: #A71C1B;
  letter-spacing: 0.2em;
  white-space: nowrap;

  padding: 0.25rem 1rem;
  margin-top: 0.5vh;
  transition: background 0.25s ease, color 0.25s ease;
}

.music-btn:hover,
.music-btn:focus-visible {
  background: #A71C1B;
  color: #FFFFFF;
  outline: none;
}

.music-btn.playing {
  background: #A71C1B;
  color: #FFFFFF;
}

/* ── Обёртка страницы (центрирует оба блока на десктопе) ── */
.page {
  width: 100%;
  max-width: 480px;
}

/* ── Адаптив: на мобильных снимаем max-width с hero ── */
@media (max-width: 480px) {
  .hero {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════
   БЛОК 2 — Приглашение и Календарь
   ══════════════════════════════════════ */

.block2 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vw 0 5vw;
  gap: 2.5vw;
}

/* ── Текст приглашения ── */
.invite-text {
  width: 72%;
  max-width: 320px;
  text-align: center;
}

.invite-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0.5vw;
}

/* «Д» — большая красная буквица */
.invite-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.0rem, 9.5vw, 4.4rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

/* «орогие,» — крупно, но меньше буквицы */
.invite-greeting-word {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

/* [Имя] и [Имя]! */
.invite-recipient {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  color: #1a0f02;
  margin-top: 0.3vw;
  margin-bottom: 4vw;
}

/* Основной текст приглашения */
.invite-body {
  font-family: 'FontOne', Georgia, serif;
  font-weight: normal;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  line-height: 1.7;
  text-align: center;
}

/* ── Орнаменты-разделители ── */
.ornament-divider {
  width: 72%;
  max-width: 280px;
  height: auto;
  display: block;
  min-height: 24px;
  object-fit: fill;
}

/* ── Обёртка календаря с боковыми колоннами ── */
.calendar-wrapper {
  display: grid;
  grid-template-columns: clamp(32px, 9vw, 44px) 1fr clamp(32px, 9vw, 44px);
  gap: clamp(10px, 3vw, 16px);
  align-items: stretch;
  width: 94%;
  max-width: 440px;
}

.calendar-pillar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* Правая колонна — зеркало левой */
.calendar-pillar--right {
  transform: scaleX(-1);
}

/* ── Календарь ── */
.calendar {
  flex: 1;
  min-width: 0;
}

.calendar-month {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1rem, 3.8vw, 1.5rem);
  color: #1a0f02;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2vw;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

/* Заголовки дней недели */
.cal-header {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.48rem, 1.7vw, 0.7rem);
  font-weight: 700;
  color: #1a0f02;
  text-align: center;
  padding: 2px 0 4px;
  border-bottom: 1px solid rgba(167, 28, 27, 0.25);
}

.cal-header--weekend {
  color: #A71C1B;
}

/* Ячейки дней */
.cal-day {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(0.7rem, 2.3vw, 0.95rem);
  color: #1a0f02;
  text-align: center;
  padding: 3px 0;
  position: relative;
  line-height: 1.5;
}

.cal-day--weekend {
  color: #A71C1B;
}

/* Выделенная дата 30 — поверх сердечка */
.cal-day--highlight {
  color: #FFFFFF;
}

.cal-day--highlight .heart-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cal-day--highlight .cal-day-num {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

/* ── Подпись под календарём ── */
.invite-footer {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  color: #1a0f02;
  text-align: center;
  width: 72%;
  max-width: 320px;
  line-height: 1.4;
}

/* ══════════════════════════════════════
   БЛОК 3 — Локация ЗАГС
   ══════════════════════════════════════ */

.block3 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vw 0 6vw;
  gap: 1.5vw;
}

.block3-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  margin-bottom: 3vw;
}

.block3-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block3-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block3-subtitle {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  font-weight: bold;
  color: #A71C1B;
  letter-spacing: 0.1em;
  text-align: center;
  width: 80%;
  max-width: 320px;
}

.block3-address {
  font-family: 'FontOne', Georgia, serif;
  font-weight: normal;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  text-align: center;
  line-height: 1.7;
}

.block3-building {
  width: 85%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: -3vw;
}

/* ══════════════════════════════════════
   БЛОК 4 — Банкет / Ресторан
   ══════════════════════════════════════ */

.block4 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vw 0 0;
  gap: 1.5vw;
}

.block4-subtitle {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(0.8rem, 2.8vw, 1rem);
  font-weight: bold;
  color: #A71C1B;
  letter-spacing: 0.1em;
  text-align: center;
  width: 80%;
  max-width: 320px;
}

.block4-address {
  font-family: 'FontOne', Georgia, serif;
  font-weight: normal;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  text-align: center;
  line-height: 1.7;
}

.block4-building {
  width: 85%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: -1vw;
  margin-bottom: 4vw;
}

/* ══════════════════════════════════════
   БЛОК 5 — Программа / Тайминг
   ══════════════════════════════════════ */

.block5 {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vw 0 0;
  gap: 5vw;
  overflow: hidden;
}

.block5-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.block5-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block5-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block5-header-large {
  width: clamp(110px, 32vw, 170px);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.block5-item-content {
  width: 56%;
  max-width: 230px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.block5-event {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #1a0f02;
}

.block5-time {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: #A71C1B;
  line-height: 1;
  margin-top: 2vw;
}

.block5-desc {
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  color: #3a2a1a;
  line-height: 1.5;
  margin-top: 0.5vw;
}

.block5-divider {
  width: 54%;
  max-width: 230px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* ── Абсолютные декоративные иллюстрации ── */
.block5-abs {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.block5-abs--matryoshka {
  width: clamp(55px, 17vw, 88px);
  left: 1%;
  top: 10%;
}

.block5-abs--birds {
  width: clamp(72px, 22vw, 115px);
  right: 1%;
  top: 26%;
}

.block5-abs--dinner {
  width: clamp(80px, 24vw, 125px);
  left: 1%;
  top: 54%;
}

.block5-abs--cake {
  width: clamp(80px, 24vw, 125px);
  right: 1%;
  top: 74%;
}

/* ── Рассыпные мелкие элементы ── */
.block5-scatter {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.block5-scatter--1 {
  width: clamp(60px, 19vw, 103px);
  right: 3%;
  top: 4%;
}

.block5-scatter--2 {
  width: clamp(42px, 13.5vw, 69px);
  left: 3%;
  top: 40%;
}

.block5-scatter--3 {
  width: clamp(30px, 9vw, 48px);
  right: 4%;
  top: 60%;
}

.block5-lace {
  width: 100%;
  height: 42px;
  object-fit: cover;
  display: block;
  margin-top: 2vw;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════
   БЛОК 6 — Дресс-код
   ══════════════════════════════════════ */

.block6 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vw 0 6vw;
  gap: 0;
}

.block6-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.block6-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block6-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block6-text {
  font-family: 'FontOne', Georgia, serif;
  font-size: 16.8px;
  color: #3a2a1a;
  text-align: center;
  width: 72%;
  max-width: 320px;
  line-height: 1.7;
}

.block6-couple {
  width: clamp(204px, 60vw, 306px);
  max-height: 306px;
  object-fit: contain;
  display: block;
  margin-top: 3vw;
}

/* ══════════════════════════════════════
   БЛОК 7 — Важно-важное
   ══════════════════════════════════════ */

.block7 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vw 0 7vw;
  gap: 3vw;
}

.block7-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.block7-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block7-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block7-intro {
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  text-align: center;
  width: 72%;
  max-width: 320px;
  line-height: 1.7;
}

.block7-icon {
  width: clamp(70px, 20vw, 100px);
  height: auto;
  object-fit: contain;
  display: block;
}

.block7-item {
  width: 72%;
  max-width: 320px;
  text-align: center;
}

.block7-num {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: #A71C1B;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 1vw;
}

.block7-text {
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  line-height: 1.7;
  text-align: center;
}

/* ══════════════════════════════════════
   БЛОК 8 — Анкета
   ══════════════════════════════════════ */

.block8 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5vw 0 8vw;
  gap: 3vw;
}

.block8-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.block8-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block8-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block8-intro {
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.9vw, 1.02rem);
  color: #3a2a1a;
  text-align: center;
  width: 76%;
  max-width: 340px;
  line-height: 1.7;
}

.block8-form {
  width: 76%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 6vw;
}

.block8-question {
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.block8-q-title {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  color: #1a0f02;
  line-height: 1.4;
  margin-bottom: 0.5vw;
}


/* ── Кастомные радио ── */
.block8-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.9vw, 1rem);
  color: #3a2a1a;
}

.block8-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.block8-radio-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #A71C1B;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.block8-radio input:checked + .block8-radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #A71C1B;
  border-radius: 50%;
}

/* ── Кастомные чекбоксы ── */
.block8-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.85rem, 2.9vw, 1rem);
  color: #3a2a1a;
}

.block8-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.block8-check-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #A71C1B;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
}

.block8-check input:checked + .block8-check-mark {
  background: #A71C1B;
}

.block8-check input:checked + .block8-check-mark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1;
}

/* ── Условные поля ── */
.block8-conditional {
  display: none;
  padding-left: 26px;
}

.block8-conditional.visible {
  display: block;
}

.block8-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #A71C1B;
  outline: none;
  background: transparent;
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.8rem, 2.7vw, 0.95rem);
  color: #3a2a1a;
  padding: 4px 0;
}

.block8-input::placeholder {
  color: #9a8070;
  opacity: 1;
}

/* ── Кнопка отправки ── */
.block8-submit {
  align-self: center;
  background: transparent;
  color: #A71C1B;
  border: 1.5px solid #A71C1B;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  letter-spacing: 0.2em;
  padding: 0.6rem 2.8rem;
  margin-top: 3vw;
  transition: background 0.25s ease, color 0.25s ease;
}

.block8-submit:hover,
.block8-submit:focus-visible {
  background: #A71C1B;
  color: #FFFFFF;
  outline: none;
}

.block8 > .block5-lace {
  margin-top: 8vw;
}

/* ══════════════════════════════════════
   БЛОК 9 — Заключение
   ══════════════════════════════════════ */

.block9 {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vw 0 0;
  gap: 3vw;
}

.block9-title {
  display: flex;
  align-items: flex-end;
  line-height: 1;
}

.block9-initial {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 4.5rem);
  color: #A71C1B;
  line-height: 0.85;
  display: inline-block;
}

.block9-title-rest {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #1a0f02;
  display: inline-block;
  padding-bottom: 0.08em;
}

.block9-through {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  color: #1a0f02;
  text-align: center;
  margin-top: -1vw;
}

.block9-timer {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 2vw, 14px);
  margin-top: 2vw;
}

.block9-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vw;
}

.block9-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.9rem, 9.5vw, 4.2rem);
  color: #A71C1B;
  line-height: 1;
  font-weight: 500;
}

.block9-label {
  font-family: 'FontOne', Georgia, serif;
  font-size: clamp(0.5rem, 1.8vw, 0.7rem);
  color: #3a2a1a;
  letter-spacing: 0.06em;
  text-align: center;
}

.block9-sep {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.9rem, 9.5vw, 4.2rem);
  color: #A71C1B;
  line-height: 1;
  font-weight: 500;
  align-self: flex-start;
}

.block9-heart {
  width: clamp(130px, 42vw, 210px);
  height: clamp(130px, 42vw, 210px);
  object-fit: cover;
  display: block;
  margin-top: -2vw;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C30 78 0 65 0 40A25 25 0 0 1 50 40A25 25 0 0 1 100 40C100 65 70 78 50 90Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C30 78 0 65 0 40A25 25 0 0 1 50 40A25 25 0 0 1 100 40C100 65 70 78 50 90Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.block9-sign {
  font-family: 'Blagovest', Georgia, serif;
  font-size: clamp(1.2rem, 4.2vw, 1.7rem);
  color: #A71C1B;
  text-align: center;
  line-height: 1.5;
  margin-top: 2vw;
}
