/* Sunroll — стиль юридичних сторінок у дусі апки: полароїди на скотчі, плівка,
   градієнтні «орби» з кольоровою тінню, плаваюча слив'яна навігація-пілюля. */
:root {
  --cream: #FDF6EE;
  --sand: #F6E9DA;
  --plum: #4A2E4B;
  --plum-2: #6B3F6E;
  --film: #2B1B2C;
  --muted: rgba(74, 46, 75, 0.74);
  --faint: rgba(74, 46, 75, 0.5);
  --line: rgba(74, 46, 75, 0.12);
  --accent: #D8573A;
  --gold: #F2B544;
  --tape: rgba(244, 224, 170, 0.92);
  --sunset: linear-gradient(135deg, #FFB259, #FF7A59 50%, #E8467C);
  --shadow: 0 8px 22px rgba(74, 46, 75, 0.08);
  --orb-shadow: 0 10px 22px rgba(255, 122, 89, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  padding-bottom: 120px;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(255, 178, 89, 0.22), transparent 70%),
    radial-gradient(480px 360px at 0% 38%, rgba(232, 70, 124, 0.10), transparent 70%),
    radial-gradient(520px 360px at 100% 78%, rgba(242, 181, 68, 0.16), transparent 70%),
    var(--cream);
  color: var(--plum);
  font: 400 16px/1.65 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 800; color: var(--plum); }
em { font-family: 'Caveat', cursive; font-size: 1.15em; font-style: normal; font-weight: 600; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ── Шапка: лого; навігація «пливе» знизу, як у апці ── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 6px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--plum); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 6px 16px rgba(255, 122, 89, 0.35); transform: rotate(-4deg); }
.brand span { font: 400 28px/1 'Shrikhand', serif; }

.pills {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: var(--plum);
  box-shadow: 0 14px 34px rgba(74, 46, 75, 0.38);
  max-width: calc(100vw - 24px);
}
.pills a {
  padding: 12px 18px;
  border-radius: 999px;
  color: #E9D6E4;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.pills a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.pills a[aria-current] { background: var(--sunset); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 89, 0.45); }

/* ── Заголовок: смугасте сонце за горизонтом ── */
.hero { position: relative; padding: 70px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 520px;
  height: 260px;
  margin-left: -260px;
  border-radius: 260px 260px 0 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 24px, var(--cream) 24px 32px),
    linear-gradient(180deg, #FFC36B, #FF7A59 55%, #E8467C);
  opacity: 0.4;
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--plum); }
.hero h1 { position: relative; font: 400 clamp(38px, 8vw, 64px)/1.12 'Shrikhand', serif; text-shadow: 0 3px 0 rgba(255, 255, 255, 0.7); }
.hero .stamp {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  padding: 4px 20px 6px;
  background: var(--gold);
  border-radius: 999px;
  font: 700 22px/1.3 'Caveat', cursive;
  color: var(--plum);
  transform: rotate(-2deg);
  box-shadow: 0 8px 18px rgba(242, 181, 68, 0.45);
}

/* ── «In short»: плівка + полароїди-записки на скотчі ── */
.short { margin: 0 0 8px; padding-top: 44px; }
.short > h2, .section-title { font: 700 34px/1.1 'Caveat', cursive; margin: 0 4px 20px; color: var(--plum); }
.short > p { margin: 20px 4px 0; color: var(--muted); font-weight: 600; }

.notes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  padding: 44px 22px 30px;
  border-radius: 6px;
  background: var(--film);
  transform: rotate(-0.6deg);
  box-shadow: 0 16px 34px rgba(43, 27, 44, 0.28);
}
.notes::before, .notes::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, #D9CCD4 0 14px, transparent 14px 28px);
  -webkit-mask: linear-gradient(#000, #000);
  opacity: 0.9;
}
.notes::before { top: 14px; }
.notes::after { bottom: 12px; }
.note {
  position: relative;
  padding: 24px 20px 22px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.note:nth-child(3n + 1) { transform: rotate(-1.8deg); }
.note:nth-child(3n + 2) { transform: rotate(1.2deg); }
.note:nth-child(3n) { transform: rotate(-0.6deg); }
.note::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 90px;
  height: 24px;
  margin-left: -45px;
  background: var(--tape);
  transform: rotate(-3deg);
}
.note b { display: block; font: 400 22px/1.25 'Shrikhand', serif; color: var(--plum); margin-bottom: 4px; }
.note p { color: var(--muted); font: 600 22px/1.2 'Caveat', cursive; }

/* ── Секції: картки-«повідомлення» з градієнтним орбом ── */
.tickets { margin: 44px 0 28px; display: grid; gap: 18px; }
.ticket {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px 24px 22px;
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ticket:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74, 46, 75, 0.13); }
.ticket .no {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  font: 400 24px/1 'Shrikhand', serif;
  box-shadow: var(--orb-shadow);
}
.ticket:nth-child(even) .no { background: linear-gradient(135deg, #6B3F6E, #4A2E4B); box-shadow: 0 10px 22px rgba(74, 46, 75, 0.35); }
.ticket:nth-child(3n) .no { background: linear-gradient(135deg, #F8CE6B, #F2B544); color: var(--plum); box-shadow: 0 10px 22px rgba(242, 181, 68, 0.45); }
.ticket .body { min-width: 0; flex: 1; padding-top: 2px; }
.ticket h2 { font: 400 24px/1.2 'Shrikhand', serif; margin-bottom: 8px; color: var(--plum); }
.ticket p, .ticket li { color: var(--muted); font-size: 15.5px; }
.ticket p + p, .ticket p + ul, .ticket ul + p, .ticket p + dl, .ticket dl + p { margin-top: 10px; }
.ticket ul { list-style: none; display: grid; gap: 7px; }
.ticket li { position: relative; padding-left: 22px; }
.ticket li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 3px 7px rgba(255, 122, 89, 0.4);
}

/* «Що збираємо»: ключ — значення, ключі як чіпси апки. */
.facts { display: grid; gap: 0; margin-top: 6px; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; padding: 11px 0; border-top: 1.5px dashed var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt {
  justify-self: start;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-weight: 800;
  font-size: 13px;
}
.facts div:nth-child(4n + 1) dt { background: var(--gold); }
.facts dd { color: var(--muted); font-size: 14.5px; }

/* Кроки видалення — полароїди зі скотчем і рукописним підписом. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin: 12px 0 18px; }
.step { position: relative; background: #fff; padding: 14px 14px 20px; border-radius: 6px; box-shadow: 0 12px 26px rgba(74, 46, 75, 0.16); }
.step::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 86px;
  height: 24px;
  margin-left: -43px;
  background: var(--tape);
  transform: rotate(3deg);
}
.step:nth-child(odd) { transform: rotate(-1.8deg); }
.step:nth-child(even) { transform: rotate(1.4deg); }
.step .frame { height: 124px; display: grid; place-items: center; background: var(--sunset); color: #fff; font: 400 64px/1 'Shrikhand', serif; text-shadow: 0 4px 0 rgba(74, 46, 75, 0.25); }
.step:nth-child(2) .frame { background: linear-gradient(135deg, #8A4F8D, #4A2E4B); }
.step:nth-child(3) .frame { background: linear-gradient(135deg, #F8CE6B, #FF9A59); }
.step p { margin-top: 14px; font: 700 25px/1.15 'Caveat', cursive; text-align: center; color: var(--plum); }

/* Контакт — слив'яна пілюля із золотою кнопкою. */
.contact {
  margin: 30px 0 56px;
  padding: 14px 14px 14px 30px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 14px 30px rgba(74, 46, 75, 0.3);
}
.contact span { font: 700 26px/1.2 'Caveat', cursive; color: #F1DDEB; }
.contact a { padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--plum); font-weight: 800; box-shadow: 0 6px 16px rgba(242, 181, 68, 0.45); }
.contact a:hover { text-decoration: none; filter: brightness(1.05); }

/* ── Футер ── */
.foot { border-top: 1.5px dashed var(--line); padding: 26px 0 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); font-weight: 700; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 44px; }
  .hero::before { width: 340px; height: 170px; margin-left: -170px; }
  .ticket { gap: 14px; padding: 20px 18px 20px 16px; border-radius: 26px; }
  .ticket .no { width: 44px; height: 44px; font-size: 19px; }
  .ticket h2 { font-size: 21px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .pills a { padding: 11px 14px; font-size: 13px; }
  .contact { border-radius: 30px; padding: 18px; }
  .step .frame { height: 96px; font-size: 52px; }
  .step p { font-size: 22px; }
  .notes { padding: 40px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket, .pills a { transition: none; }
}
