/* ===========================================================
   «Є привід» · стиль «Бантик» (день народження)
   Пудровий крем і малиновий, каліграфія, атласний бант,
   ч/б фото в ковпачку, полароїди, диско-куля.
   =========================================================== */
:root {
  --cream: #FBEDE7;
  --berry: #8E1847;
  --ink: #7A1E45;
  --muted: #A8667F;
  --script: 'Great Vibes', cursive;
  --body: 'Manrope', system-ui, sans-serif;
}

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

.sheet { max-width: 480px; margin: 0 auto; background: var(--cream); position: relative; overflow: hidden; }
.blk { padding: 48px 28px; text-align: center; position: relative; }
.blk p { margin: 0 0 10px; font-size: 15px; }
.script { font-family: var(--script); font-weight: 400; color: var(--berry); line-height: 1; }

.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 30px;
  border: 1px solid var(--berry);
  color: var(--berry);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--berry); color: #fff; }

/* ---------- 1. Обкладинка ---------- */
.hero { padding-top: 44px; }
.bday { font-size: 64px; margin: 0; }
.party { font-family: var(--script); font-size: 30px; color: #C88AA3; margin: -10px 0 0 90px; }
.to { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* Ч/б фото в колі з ковпачком */
.head { position: relative; width: 190px; margin: 26px auto 0; }
.head .ph { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; }
.head .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.head .hat { position: absolute; width: 86px; left: 26px; top: -64px; transform: rotate(-16deg); }
.age { font-size: 120px; margin: 14px 0 0; }
.inv { font-size: 30px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--berry); margin: 4px 0 0; }
.sub { font-size: 15px; color: var(--ink); }

/* Дата в рядок: день тижня | місяць і число | час */
.dateline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; margin: 34px 0 0; }
.dateline .side { border-top: 1px solid var(--berry); border-bottom: 1px solid var(--berry); padding: 6px 0; font-size: 15px; }
.dateline .mid { font-size: 15px; line-height: 1.1; }
.dateline .mid b { display: block; font-weight: 300; font-size: 50px; line-height: 1; color: var(--berry); }

/* Атласний бант */
.bow { display: block; width: 220px; height: auto; margin: 34px auto 0; }

/* ---------- 2. Полароїди ---------- */
.polas { position: relative; height: 300px; margin-top: 14px; }
.pola { position: absolute; width: 56%; background: #fff; padding: 8px 8px 30px; box-shadow: 0 10px 24px rgba(122,30,69,.2); }
.pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pola.a { left: 4%; top: 30px; --r: -7deg; }
.pola.b { right: 4%; top: 0; --r: 6deg; }

/* ---------- 3. Програма ---------- */
.prog { list-style: none; padding: 0; margin: 14px auto 0; max-width: 300px; }
.prog li { padding: 8px 0; }
.prog b { font-weight: 300; font-size: 26px; color: var(--berry); margin-right: 12px; }

/* ---------- 4. Дрес-код ---------- */
.label { font-size: 15px; margin-top: 26px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.dots i { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- 5. Таймер, анкета ---------- */
.count { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.count b { display: block; font-weight: 300; font-size: 40px; line-height: 1; color: var(--berry); }
.count small { font-size: 12px; color: var(--muted); }
.formcard { margin-top: 18px; text-align: left; background: #fff; padding: 22px 18px; box-shadow: 0 10px 26px rgba(122,30,69,.1); }

/* ---------- 6. Фінал з диско-кулею ---------- */
.final { padding-bottom: 0; overflow: hidden; }
.final .script { font-size: 60px; margin: 8px 0 20px; }
.disco { display: block; width: 92%; margin: 0 auto -38%; }
.foot { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding: 14px 20px 24px; background: var(--cream); }

/* Блиск диско-кулі */
.glint { animation: glint 2.6s ease-in-out infinite; }
.glint:nth-child(2n) { animation-delay: -1.3s; }
@keyframes glint { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .glint { animation: none; opacity: .6; } }

/* ---------- Комп'ютер: малинове тло, картка посередині ---------- */
@media (min-width: 900px) {
  body { background: var(--berry); }
  .sheet { margin: 60px auto; box-shadow: 0 30px 80px rgba(40,0,15,.45); }
  .deco { position: fixed; width: 260px; right: 8%; bottom: 10%; opacity: .95; }
  .deco2 { position: fixed; width: 180px; left: 8%; top: 12%; transform: rotate(-18deg); }
}
.deco, .deco2 { display: none; }
@media (min-width: 900px) { .deco, .deco2 { display: block; } }
