/* ===========================================================
   «Є привід» · стиль «Сад»
   Олива, тонкі високі капітелі, рвані білі краї, ботанічні лінії.
   =========================================================== */
:root {
  --paper: #F1F0EB;
  --olive: #5D6852;
  --olive-2: #4D5845;
  --ink: #3B2E27;
  --green: #3F4B37;
  --muted: #7C786F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
}

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

.backdrop { display: none; }
.sheet { max-width: 560px; margin: 0 auto; background: var(--paper); position: relative; overflow: hidden; }
.blk { padding: 56px 28px; text-align: center; position: relative; }
.blk p { margin: 0 0 12px; font-size: 15px; }

/* Великий тонкий заголовок + підпис */
.big { font-family: var(--serif); font-weight: 300; text-transform: uppercase; font-size: clamp(54px, 16vw, 78px); line-height: .9; letter-spacing: .01em; margin: 0; color: var(--ink); }
.big + .sub { font-size: 16px; margin-top: 6px; color: var(--ink); }

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 30px;
  background: var(--olive);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--olive-2); transform: translateY(-1px); }

/* Рвані краї (форму задає JS через clip-path) */
.torn { position: relative; }

/* Ботанічні гілочки-ескізи в кутах */
.sprig { position: absolute; width: 140px; height: 200px; pointer-events: none; opacity: .5; }
.sprig path { fill: none; stroke: #8C8E80; stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- 1. Обкладинка ---------- */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; }
.hero .ph { position: relative; aspect-ratio: 3 / 4.6; overflow: hidden; }
.hero .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,18,.55), rgba(20,25,18,.05) 50%, rgba(20,25,18,.25)); }
.hero .txt { position: absolute; left: 0; right: 0; top: 6%; z-index: 2; padding: 0 20px; }
.hero .big { color: #fff; font-size: clamp(60px, 18vw, 96px); }
.hero .names { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 9vw, 46px); margin-top: 14px; }
.hero .names i { font-style: italic; }
.hero .date { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 9.5vw, 48px); letter-spacing: .02em; }
.hero .to { font-size: 13px; letter-spacing: .1em; margin-top: 16px; opacity: .9; }

/* ---------- 2. Звернення, орнамент, таймер ---------- */
.lead { font-size: 22px; margin: 0 0 16px; color: #1F1B19; }
.ornament { display: block; width: 260px; height: 40px; margin: 26px auto; }
.ornament path { fill: none; stroke: #8A97A6; stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ornament .heart { fill: none; }
.count { display: flex; justify-content: center; margin-top: 10px; }
.count .u { padding: 0 14px; border-left: 1px solid rgba(59,46,39,.3); }
.count .u:first-child { border-left: 0; }
.count b { display: block; font-family: var(--serif); font-weight: 400; color: var(--green); font-size: 44px; line-height: 1; }
.count small { font-size: 15px; color: var(--ink); }

/* ---------- 3. Локація на фото ---------- */
.place .ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.place .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.place .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,18,.1), rgba(20,25,18,.5)); }
.place .txt { position: absolute; left: 0; right: 0; bottom: 7%; z-index: 2; color: #fff; text-align: center; padding: 0 20px; }
.place .big { color: #fff; }
.place .sub { color: #fff; font-size: 17px; }
.place .addr { font-size: 14px; margin-top: 8px; opacity: .9; }

/* ---------- 4. Таймінг ---------- */
.timing { display: grid; grid-template-columns: auto 1px 1fr; column-gap: 22px; row-gap: 26px; align-items: center; margin: 30px auto 0; max-width: 380px; text-align: left; }
.timing .line { grid-column: 2; background: rgba(59,46,39,.35); width: 1px; height: 100%; }
.timing .t { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: 38px; color: var(--green); line-height: 1; }
.timing .n { grid-column: 3; font-size: 16px; color: var(--ink); text-align: center; }

/* ---------- 5. Дрес-код на оливі ---------- */
.olive { background: var(--olive); color: #fff; }
.olive .big { color: #fff; }
.olive .sub { color: rgba(255,255,255,.8); font-size: 18px; }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 340px; margin: 26px auto 0; }
.dots i { display: block; aspect-ratio: 1; border-radius: 50%; }
/* Другий ряд: ті самі кольори як шовк */
.dots i.silk { background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.75), rgba(255,255,255,0) 38%), radial-gradient(circle at 75% 80%, rgba(0,0,0,.35), rgba(0,0,0,0) 45%), linear-gradient(135deg, rgba(255,255,255,.2), rgba(0,0,0,.2)); }

/* ---------- 6. Галерея ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 4 / 3; }

/* ---------- 7. Анкета ---------- */
.formcard { margin-top: 20px; text-align: left; background: #fff; padding: 22px 18px; }

.foot { text-align: center; padding: 20px 20px 50px; }
.foot .names { font-family: var(--serif); font-weight: 300; font-size: 36px; }
.foot small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-top: 6px; }

/* ---------- Комп'ютер ---------- */
@media (min-width: 900px) {
  .backdrop { display: block; position: fixed; inset: -40px; background: var(--bg) center / cover no-repeat; filter: blur(14px) brightness(.7) saturate(.8); z-index: -1; }
  body { background: #4A5243; }
  .sheet { max-width: 1100px; margin: 50px auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
  .blk { padding: 80px 90px; }
  .blk p { font-size: 16px; }
  .big { font-size: 88px; }

  .hero .ph { aspect-ratio: 16 / 8.4; }
  .hero .txt { top: 10%; }
  .hero .ph img { object-position: 50% 30%; }
  .hero .big { font-size: 120px; }

  /* Розворот: фото й текст поруч */
  .two { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .two > * { min-width: 0; }
  .two .place .ph { aspect-ratio: auto; height: 100%; min-height: 620px; }
  .place .ph { aspect-ratio: 16 / 9; }
  .place .ph img { object-position: 50% 62%; }

  .timing { max-width: 460px; }
  .dots { max-width: 460px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery img:nth-child(3n+1) { grid-column: auto; aspect-ratio: 3 / 4; }
  .formcard { max-width: 560px; margin-left: auto; margin-right: auto; }
  .count .u { padding: 0 26px; }
  .count b { font-size: 60px; }
}
