/* ===========================================================
   «Є привід» · стиль «Галерея»
   Класичні великі літери, бордо на теплому кремовому, сердечка.
   =========================================================== */
:root {
  --paper: #F1E8E1;
  --red: #8E0F1A;
  --deep: #5E0710;
  --ink: #2E1A1C;
  --muted: #7B6567;
  --serif: 'Forum', 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Тло: на комп'ютері розмите затемнене фото пари за аркушем */
.backdrop { display: none; }

.sheet { background: var(--paper); max-width: 560px; margin: 0 auto; position: relative; overflow: hidden; }

.blk { padding: 58px 28px; text-align: center; position: relative; }
.blk p { margin: 0 0 12px; font-size: 15px; }
.muted { color: var(--muted); }

/* Заголовок великими класичними літерами */
.h {
  font-family: var(--serif);
  color: var(--red);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 8.4vw, 40px);
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 18px;
}

/* Рядок із трьох сердечок-розділювачів */
.hearts3 { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 22px 0; color: var(--red); }
.hearts3 svg:nth-child(2) { width: 22px; height: 22px; }
.hearts3 svg { width: 15px; height: 15px; }

/* Кнопка: бордова плашка з легким градієнтом */
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 30px;
  background: linear-gradient(180deg, #A3141F, #7A0B15);
  color: #fff;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 17px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(142,15,26,.3); }

/* ---------- 1. Обкладинка: ім'я, серце з датою, ім'я ---------- */
.hero { padding-top: 56px; padding-bottom: 46px; }
.to { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.name {
  font-family: var(--serif);
  color: var(--red);
  text-transform: uppercase;
  font-size: clamp(42px, 13vw, 66px);
  line-height: 1;
  margin: 0;
  font-weight: 400;
}
.bigheart { position: relative; width: min(88%, 380px); margin: 6px auto; aspect-ratio: 1 / .92; }
.bigheart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Дата поверх серця */
.bigheart .date {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 8%;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 54px);
  line-height: .92;
  text-shadow: 0 2px 18px rgba(60,0,8,.45);
}
.hero .sub { margin-top: 16px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- 2. Звернення та календар ---------- */
.calhead { display: flex; justify-content: space-between; font-family: var(--serif); color: var(--red); font-size: 26px; text-transform: uppercase; margin: 28px auto 6px; max-width: 330px; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 330px;
  margin: 0 auto;
  font-family: var(--serif);
  color: var(--red);
  font-size: 19px;
}
.cal-h { font-family: var(--serif); text-transform: uppercase; font-size: 15px; font-weight: 400; padding: 8px 0; }
.cal-d, .cal-e { height: 40px; line-height: 40px; position: relative; }
.cal-on em { position: relative; z-index: 1; font-style: normal; }
.cal-on svg { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -48%); }

/* ---------- 3. Історія: фото в рамці з сердечками ---------- */
.framed { position: relative; width: min(84%, 360px); margin: 26px auto 8px; --r: -2.5deg; transform: rotate(var(--r)); }
.framed img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 14px 34px rgba(46,26,28,.22); border: 6px solid #fff; }
.framed .hh { position: absolute; color: var(--red); }
.framed .hh svg { width: 100%; height: 100%; }
.framed .a { width: 30px; height: 30px; left: -12px; top: -14px; }
.framed .b { width: 20px; height: 20px; left: 18px; top: -22px; }
.framed .c { width: 26px; height: 26px; right: -10px; bottom: -12px; }
.blk .quote { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--red); margin-top: 18px; }

/* На телефоні колонки йдуть одна під одною з відступом */
.two > .col + .col { margin-top: 46px; }

/* ---------- 4. Програма дня ---------- */
.prog { list-style: none; padding: 0; margin: 10px auto 0; max-width: 400px; text-align: left; }
.prog li { display: grid; grid-template-columns: 70px 22px 1fr; align-items: baseline; padding: 12px 0; }
.prog .t { font-family: var(--serif); font-size: 24px; color: var(--red); }
.prog .ht { color: var(--red); }
.prog .ht svg { width: 13px; height: 13px; }
.prog b { display: block; font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--red); font-size: 21px; line-height: 1.15; }
.prog small { display: block; font-size: 14px; color: var(--ink); opacity: .8; margin-top: 3px; }

/* ---------- 5. Локація ---------- */
.place .addr { font-size: 15px; }

/* ---------- 6. Дрес-код: сердечка-кольори ---------- */
.swatch { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.swatch svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.12)); }

/* ---------- 7. Контакти ---------- */
.round { display: inline-flex; gap: 20px; margin-top: 12px; }
.round a {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #B5202C, #7A0B15);
  color: #fff;
  box-shadow: 0 6px 16px rgba(142,15,26,.3);
}
.round svg { width: 24px; height: 24px; }

/* ---------- 8. Анкета ---------- */
.formcard { margin-top: 18px; text-align: left; background: #F8F2EE; border: 1px solid rgba(142,15,26,.18); padding: 22px 18px; }

/* ---------- 9. Фінал: таймер і фото в овалі ---------- */
.count { display: flex; justify-content: center; gap: 20px; margin: 6px 0 4px; }
.count .u b { display: block; font-family: var(--serif); font-weight: 400; color: var(--red); font-size: 44px; line-height: 1; }
.count .u small { font-size: 13px; color: var(--ink); }
.oval { position: relative; width: min(70%, 280px); margin: 34px auto 0; }
.oval img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 50%; border: 3px solid var(--red); padding: 6px; background: var(--paper); }
.oval .hh { position: absolute; color: var(--red); }
.oval .hh svg { width: 100%; height: 100%; }

.foot { text-align: center; padding: 26px 20px 34px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Плавна поява */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }

/* ---------- Комп'ютер: фото пари на тлі, аркуш із двома колонками ---------- */
@media (min-width: 900px) {
  .backdrop {
    display: block;
    position: fixed;
    inset: -40px;
    background: var(--bg) center / cover no-repeat;
    filter: blur(14px) brightness(.45) saturate(.9);
    z-index: -1;
  }
  body { background: #2A1517; }
  .sheet { max-width: 1060px; margin: 50px auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); border-radius: 22px; }
  .blk { padding: 80px 84px; }
  .blk p { font-size: 16px; }
  .h { font-size: 46px; }

  /* Обкладинка на всю ширину: імена обабіч серця */
  .hero { display: grid; grid-template-columns: 1fr 400px 1fr; align-items: center; gap: 20px; padding: 90px 60px 70px; }
  .hero .to { grid-column: 1 / -1; }
  .hero .n1 { text-align: right; }
  .hero .n2 { text-align: left; }
  .bigheart { width: 400px; }
  .bigheart .date { font-size: 50px; }
  .wishes p { max-width: 620px; margin-left: auto; margin-right: auto; }
  .hero .sub { grid-column: 1 / -1; }
  .name { font-size: 64px; }

  /* Дві колонки: текст і календар, історія і фото тощо */
  .two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: center; }
  .two > .col { min-width: 0; }
  .two > .col + .col { margin-top: 0; }
  .two .calhead { margin-top: 0; }

  .prog { max-width: 520px; }
  .formcard { max-width: 560px; margin-left: auto; margin-right: auto; }
  .count { gap: 36px; }
  .count .u b { font-size: 60px; }
}

/* Кольори спільних блоків (вішлист, розсадка) */
:root { --b-acc: #8E0F1A; --b-ink: #2E1A1C; --b-card: #F8F2EE; }
