/* ===========================================================
   «Є привід» · стиль «Піжамна вечірка» (день народження)
   Шавлієвий зелений, вершки, смужка з рюшами, аркуш у клітинку,
   скотч, скріпки, рукописні великі літери.
   =========================================================== */
:root {
  --cream: #FBF6EC;
  --sage: #8E9A6C;
  --sage-2: #77845A;
  --sage-soft: #E3E7D3;
  --ink: #6E7A4E;
  --muted: #9AA083;
  --caps: 'Amatic SC', 'Arial Narrow', sans-serif;
  --script: 'Bad Script', 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.55; -webkit-font-smoothing: antialiased; }

.sheet { max-width: 520px; margin: 0 auto; background: var(--cream); position: relative; overflow: hidden; }
.blk { padding: 46px 26px; text-align: center; position: relative; }
.blk p { margin: 0 0 10px; font-size: 15px; }
.caps { font-family: var(--caps); font-weight: 700; text-transform: uppercase; color: var(--sage); line-height: .9; margin: 0; }
.script { font-family: var(--script); color: var(--sage); }
.up { text-transform: uppercase; font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* Смужка з рюшами (вгорі/внизу сторінки) */
.ruffle {
  height: 74px;
  background: repeating-linear-gradient(90deg, #D9C7AE 0 9px, #FBF6EC 9px 18px);
  -webkit-mask: radial-gradient(14px 12px at 14px 100%, transparent 98%, #000) 0 0 / 28px 100%;
          mask: radial-gradient(14px 12px at 14px 100%, transparent 98%, #000) 0 0 / 28px 100%;
}
.ruffle.down { transform: scaleY(-1); }

/* Скотч і скріпка */
.tape { position: absolute; width: 70px; height: 22px; background: rgba(214,201,170,.75); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.clip { position: absolute; width: 18px; height: 46px; }

/* Кнопка-«пігулка» шавлієвого кольору */
.btn {
  display: block;
  width: min(100%, 300px);
  margin: 10px auto 0;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--sage-2); transform: translateY(-1px); }

/* ---------- 1. Обкладинка ---------- */
.hero { padding-top: 26px; }
.hero .kick { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.hero .big { font-size: clamp(66px, 19vw, 96px); margin-top: 10px; }
.hero .script { font-size: 40px; margin: -6px 0 0 30%; transform: rotate(-4deg); }
.to { font-size: 13px; color: var(--muted); margin-top: 6px; }
/* Дата на клаптику паперу в клітинку */
.datenote { position: relative; display: inline-block; margin: 22px 0 6px; padding: 14px 34px 12px; background: #fff linear-gradient(rgba(142,154,108,.18) 1px, transparent 1px) 0 0 / 100% 14px; font-family: var(--caps); font-weight: 700; font-size: 46px; color: var(--sage-2); transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.datenote .tape { left: -26px; top: -6px; transform: rotate(-30deg); }
.datenote .tape.r { left: auto; right: -26px; top: auto; bottom: -6px; transform: rotate(-30deg); }
.hero .ph { margin: 18px -26px 0; }
.hero .ph img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

/* ---------- 2. Вік і календар ---------- */
.soon { text-align: left; font-family: var(--caps); font-weight: 700; font-size: 32px; color: var(--sage); line-height: 1; }
.soon span { display: block; padding-left: 30px; }
.agebox { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 10px; }
.agebox .pic img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 6px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.agebox .num { font-family: var(--caps); font-weight: 700; font-size: 170px; line-height: .8; background: linear-gradient(135deg, #A9B38A, #E7E9D8 42%, #8E9A6C 60%, #C9CFB2); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 6px rgba(80,90,50,.18)); }
.agebox .yrs { font-family: var(--caps); font-weight: 700; font-size: 44px; color: var(--sage); line-height: 1; }
.calcard { position: relative; width: 240px; margin: 26px auto 0; background: #fff; border-radius: 10px; padding: 0 14px 12px; box-shadow: 0 8px 20px rgba(0,0,0,.07); --r: -2deg; transform: rotate(var(--r)); }
.calcard .mh { margin: 0 -14px 6px; background: #F3EAD7; border-radius: 10px 10px 0 0; font-family: var(--caps); font-weight: 700; font-size: 26px; color: var(--sage-2); padding: 4px 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--ink); }
.cal-h { font-weight: 600; font-size: 10px; text-transform: uppercase; }
.cal-d, .cal-e { height: 24px; line-height: 24px; position: relative; }
.cal-on em { position: relative; font-style: normal; font-weight: 700; }
.cal-on svg { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); }

/* ---------- 3. «Вас чекає» на аркуші в клітинку ---------- */
.notes { padding: 0; }
.notes .stripe { height: 30px; background: repeating-linear-gradient(90deg, var(--sage-soft) 0 14px, var(--cream) 14px 28px); }
.paper { position: relative; margin: 18px 22px 30px; padding: 30px 22px 24px; text-align: left; background: #fff linear-gradient(90deg, rgba(142,154,108,.15) 1px, transparent 1px) 0 0 / 18px 18px, #fff linear-gradient(rgba(142,154,108,.15) 1px, transparent 1px) 0 0 / 18px 18px; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.paper .lbl { font-family: var(--script); font-size: 15px; color: var(--muted); }
.paper .caps { font-size: 54px; margin: 4px 0 8px; }
.paper ul { margin: 0; padding-left: 18px; }
.paper li { font-family: var(--caps); font-weight: 700; font-size: 24px; line-height: 1.15; margin: 4px 0; text-transform: uppercase; }
.paper .end { font-family: var(--script); font-size: 22px; text-align: right; margin-top: 6px; }
.paper .pin { position: absolute; left: 50%; top: -12px; width: 22px; height: 30px; transform: translateX(-50%); }
.mask { display: block; width: 190px; margin: -10px auto 0; }

/* ---------- 4. Місце і час ---------- */
.mt { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.mt .caps { font-size: 60px; }
.mt .script { font-size: 34px; transform: rotate(-4deg); }
.timecard { position: relative; width: min(100%, 300px); margin: 20px auto 16px; padding: 18px 18px 14px; background: #F4EFE4; box-shadow: 0 6px 16px rgba(0,0,0,.06); --r: 1.5deg; transform: rotate(var(--r)); }
.timecard b { display: block; font-family: var(--caps); font-weight: 700; font-size: 60px; line-height: .9; color: var(--sage-2); }
.timecard .clip { right: 22px; top: -18px; }
.small { font-size: 12px; color: var(--muted); }

/* ---------- 5. Дрес-код на шавлієвому ---------- */
.sage { background: var(--sage); color: #fff; }
.sage .caps { color: #fff; font-size: 64px; }
.sage p { color: #F4F6EC; }
.polas { position: relative; height: 230px; margin-top: 16px; }
.pola { position: absolute; width: 48%; background: #fff; padding: 7px 7px 24px; box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.pola img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pola.a { left: 2%; top: 14px; --r: -6deg; }
.pola.b { right: 2%; top: 0; --r: 5deg; }

/* ---------- 6. Подарунки ---------- */
.gifts .caps { font-size: 60px; margin-bottom: 8px; }

/* ---------- 7. Таймер і анкета ---------- */
.count { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.count b { display: block; font-family: var(--caps); font-weight: 700; font-size: 54px; line-height: .9; color: var(--sage-2); }
.count small { font-size: 12px; color: var(--muted); }
.formcard { margin-top: 18px; text-align: left; background: #fff; padding: 22px 18px; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.06); }

/* ---------- 8. Фінал ---------- */
.bye { font-size: 72px; text-align: right; }
.bye span { display: block; padding-right: 30px; }
.final .ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 16px 20px 22px; }

/* ---------- Комп'ютер ---------- */
@media (min-width: 900px) {
  body { background: #EFE8DA; }
  .sheet { margin: 50px auto; box-shadow: 0 30px 80px rgba(80,70,40,.2); }
  .side { display: block !important; position: fixed; }
}
.side { display: none; }
