/* ===========================================================
   «Є привід» · стиль «Квіточка» (дитячий день народження)
   Рожеве тло, великі квіти, каракулі олівцем, фото у квітці.
   =========================================================== */
:root {
  --pink: #FCE1EE;
  --cream: #FFF8EC;
  --red: #D7263D;
  --blue: #4472B4;
  --rose: #EDB9D6;
  --ink: #C0233A;
  --muted: #B07A86;
  --hand: 'Neucha', 'Comic Sans MS', cursive;
  --body: 'Neucha', '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); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

/* Великі квіти й каракулі на тлі (видно на комп'ютері) */
.bg { display: none; }

.sheet { max-width: 520px; margin: 0 auto; background: var(--cream); position: relative; overflow: hidden; }
.blk { padding: 50px 26px; text-align: center; position: relative; }
.blk p { margin: 0 0 10px; }
.pink { background: var(--pink); }
.h { font-family: var(--hand); font-weight: 400; color: var(--red); font-size: 36px; line-height: 1.1; margin: 0 0 12px; }

/* Олівцевий фільтр для каракуль */
.crayon { filter: url(#crayon); }
/* Каракулі розкидані по блоку */
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.doodles > * { position: absolute; }
.blk > *:not(.doodles) { position: relative; z-index: 1; }

/* Хвиляста межа між рожевим і кремовим */
.wave { display: block; width: 100%; height: 40px; margin: -1px 0; }

.btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 26px;
  border: 2px solid var(--red);
  border-radius: 30px 26px 32px 24px / 24px 30px 26px 32px;
  color: var(--red);
  background: #fff;
  font-family: var(--hand);
  font-size: 20px;
  text-decoration: none;
  transform: rotate(-1.5deg);
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: var(--red); color: #fff; transform: rotate(0); }

/* ---------- 1. Обкладинка ---------- */
.hero { padding-top: 40px; padding-bottom: 30px; }
.to { font-size: 18px; color: var(--muted); }
.name { font-family: var(--hand); font-weight: 400; font-size: clamp(56px, 15vw, 76px); line-height: 1; margin: 6px 0 0; color: var(--red); }
.age { font-family: var(--hand); font-size: clamp(110px, 30vw, 150px); line-height: .85; color: var(--red); margin: 0; }
.ageword { font-family: var(--hand); font-size: clamp(46px, 12vw, 60px); line-height: 1; color: var(--red); margin-bottom: 10px; }
/* Фото у формі квітки */
.flower { position: relative; width: min(84%, 360px); margin: 10px auto 0; }
.flower svg.shape { display: block; width: 100%; height: auto; overflow: visible; }
.flower .hat { position: absolute; width: 22%; left: 22%; top: -8%; transform: rotate(-22deg); }

/* ---------- 2. Звернення і тиждень ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); max-width: 360px; margin: 18px auto 6px; }
.week b { font-weight: 400; font-size: 13px; color: #E2A6B6; text-transform: uppercase; }
.week span { position: relative; font-size: 24px; height: 46px; line-height: 46px; }
.week .on svg { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); }
.week .on em { position: relative; font-style: normal; color: var(--red); }
.month { font-size: 24px; margin-top: 18px; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- 3. Програма ---------- */
.prog { list-style: none; padding: 0; margin: 14px auto 0; max-width: 320px; text-align: left; }
.prog li { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 2px dashed rgba(215,38,61,.2); }
.prog li:last-child { border-bottom: 0; }
.prog .t { font-size: 26px; min-width: 64px; color: var(--blue); }

/* ---------- 4. Локація ---------- */
.venue { font-size: 26px; margin: 0; }

/* ---------- 5. Побажання з хмаринкою ---------- */
.wl { color: var(--red); text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; }
.talk { position: relative; display: grid; grid-template-columns: 42% 1fr; align-items: end; gap: 4px; margin-top: 24px; }
.talk .pic img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 48% 52% 46% 54% / 40% 42% 58% 60%; border: 5px solid #fff; }
.cloud { position: relative; background: #fff; padding: 20px 18px; border-radius: 60px 70px 64px 58px / 50px 56px 60px 54px; font-size: 15px; line-height: 1.35; margin-bottom: 60%; box-shadow: 0 6px 0 rgba(237,185,214,.6); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 18px; height: 18px; left: -6px; bottom: -14px; }
.cloud::after { width: 10px; height: 10px; left: -20px; bottom: -28px; }

/* ---------- 6. Таймер і анкета ---------- */
.count { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.count b { display: block; font-weight: 400; font-size: 44px; line-height: 1; color: var(--blue); }
.count small { font-size: 13px; color: var(--muted); }
.formcard { margin-top: 18px; text-align: left; background: #fff; padding: 22px 18px; border-radius: 28px; box-shadow: 0 8px 0 rgba(237,185,214,.55); }

.foot { text-align: center; font-size: 14px; color: var(--muted); padding: 24px 20px 40px; }

/* Повільне обертання квітів */
.spin { animation: spin 40s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ---------- Комп'ютер ---------- */
@media (min-width: 900px) {
  .bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; }
  .bg svg { position: absolute; }
  .sheet { max-width: 520px; margin: 60px auto; border-radius: 30px; outline: 1px solid rgba(215,38,61,.5); outline-offset: 22px; box-shadow: 0 20px 60px rgba(215,38,61,.12); }
}
