/* ============ Подари ребёнку Рождество - общий стиль ============ */
:root {
  --pine-950: #072715;
  --pine-900: #0b3a21;
  --pine-800: #0f4a2b;
  --pine-700: #145c36;
  --green-600: #1c7a45;
  --green-500: #26955a;
  --green-400: #3fb06f;
  --green-100: #e6f4ea;
  --green-50: #f3faf5;
  --gold: #e7aa3c;
  --gold-dark: #b97d14;
  --berry: #d1433f;
  --text: #17301f;
  --muted: #5b7062;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(3, 25, 12, .28);
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Lobster", "Nunito", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--pine-900);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(circle at 15% 30%, rgba(63, 176, 111, .25), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(63, 176, 111, .18), transparent 45%),
    linear-gradient(180deg, var(--pine-700) 0%, var(--pine-800) 45%, var(--pine-950) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green-600); }

/* Снег рисуется поверх всего, но не мешает нажатиям */
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* Гирлянда сверху */
.garland {
  position: relative;
  height: 34px;
  overflow: hidden;
  z-index: 2;
}
.garland::before {
  content: "";
  position: absolute;
  left: -5%; right: -5%; top: -26px;
  height: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.garland ul {
  list-style: none;
  margin: 0; padding: 0 4px;
  display: flex;
  justify-content: space-between;
}
.garland li {
  width: 10px; height: 16px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(231, 170, 60, .7);
  animation: twinkle 2.4s ease-in-out infinite;
}
.garland li:nth-child(3n+1) { background: #ffffff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .7); animation-delay: .8s; }
.garland li:nth-child(3n+2) { background: var(--berry); box-shadow: 0 0 10px 2px rgba(209, 67, 63, .7); animation-delay: 1.6s; }
.garland li:nth-child(odd) { margin-top: 14px; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px 40px;
}
.wrap--wide { max-width: 1080px; }

/* ---------- Шапка ---------- */
.hero {
  text-align: center;
  color: #fff;
  padding: 6px 6px 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(34px, 9.5vw, 56px);
  line-height: 1.1;
  margin: 12px 0 8px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}
.hero h1 .star { color: var(--gold); }
.hero p {
  margin: 0 auto;
  max-width: 34em;
  font-size: 17px;
  opacity: .92;
}

/* ---------- Карточки ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin: 0 0 16px;
  position: relative;
}
.card h2 {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--pine-700);
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.card h3 {
  margin: 18px 0 10px;
  color: var(--pine-700);
  font-size: 19px;
}
.card p { margin: 0 0 10px; }
.lead { font-size: 18px; font-weight: 700; color: var(--pine-800); }

.banner {
  padding: 8px;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
}

/* Список «Вы можете» */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ways li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: var(--green-50);
  border: 1px solid #d5ecdc;
}
.ways .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-500);
  color: #fff;
}
.ways .ico svg { width: 24px; height: 24px; }
.ways b { color: var(--pine-800); }
.ways small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Блок с адресом / номером и кнопкой «Скопировать» */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.copy-value {
  font-weight: 800;
  color: var(--pine-900);
  font-size: 17px;
  text-decoration: none;
  word-break: break-word;
}
a.copy-value { border-bottom: 2px dotted var(--green-400); }

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 6px 16px rgba(28, 122, 69, .35);
}
.btn--primary:hover { background: var(--green-600); }
.btn--wb { background: linear-gradient(180deg, #a73afd, #7b1fd6); color: #fff; box-shadow: 0 6px 16px rgba(123, 31, 214, .3); }
.btn--ghost {
  background: var(--green-100);
  color: var(--pine-700);
  min-height: 38px;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 10px;
}
.btn--ghost.is-done { background: var(--green-500); color: #fff; }
.btn--block { width: 100%; }

.pay {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pine-700), var(--green-600));
  color: #fff;
}
.pay h3 { color: #fff; margin: 0 0 6px; }
.pay .copy-value { color: #fff; font-size: 22px; letter-spacing: .02em; }
.pay a.copy-value { border-bottom-color: rgba(255, 255, 255, .5); }
.pay .btn--ghost { background: rgba(255, 255, 255, .18); color: #fff; }
.pay .btn--ghost.is-done { background: #fff; color: var(--pine-700); }
.pay .bank { margin: 6px 0 0; opacity: .95; }

/* Большая кнопка-подарок */
.gift-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 18px 18px 22px;
  overflow: hidden;
}
.gift-cta img {
  width: min(250px, 70%);
  height: auto;
  margin: -4px auto 4px;
  filter: drop-shadow(0 12px 18px rgba(11, 58, 33, .25));
  animation: wiggle 3.5s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.gift-cta .btn { width: 100%; font-size: 18px; min-height: 56px; }
.gift-cta p { margin: 0 0 14px; color: var(--muted); }
@keyframes wiggle {
  0%, 80%, 100% { transform: rotate(0); }
  84% { transform: rotate(-5deg); }
  88% { transform: rotate(5deg); }
  92% { transform: rotate(-3deg); }
  96% { transform: rotate(2deg); }
}

/* ---------- Страница подарков ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 6px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
}
.back svg { width: 20px; height: 20px; }

.howto { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.howto li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}
.howto li::before {
  content: counter(step);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.address-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px dashed var(--gold);
}
.address-box small { display: block; color: var(--gold-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 28px;
  margin: 26px 4px 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .45), transparent);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--photos { grid-template-columns: repeat(3, 1fr); } }

.kid {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kid__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--green-100);
}
.kid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.kid__num {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--pine-700);
  font-weight: 800;
  font-size: 14px;
}
.kid__body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.kid__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  position: relative;
}
.avatar::after {
  /* маленькая звёздочка */
  content: "★";
  position: absolute;
  right: -3px; top: -5px;
  font-size: 16px;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.kid__name { margin: 0; font-size: 19px; line-height: 1.2; color: var(--pine-900); }
.kid__meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.kid__wish {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--green-50);
  border-left: 4px solid var(--green-400);
  font-size: 15.5px;
}
.kid__wish-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green-600); margin-bottom: 2px; }
.kid__wish--empty { border-left-color: var(--gold); background: #fff8e8; color: var(--muted); }
.kid__actions { display: grid; gap: 8px; margin-top: auto; }
.kid__note { margin: 0; font-size: 14px; color: var(--muted); }
.article {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.article b { color: var(--pine-900); font-size: 16px; letter-spacing: .03em; }

/* ---------- Подвал ---------- */
.trees {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 90px;
  margin-top: 10px;
}
.footer {
  position: relative;
  z-index: 1;
  background: var(--pine-950);
  color: rgba(255, 255, 255, .75);
  text-align: center;
  font-size: 14px;
  padding: 6px 16px 28px;
}
.footer b { color: #fff; }

/* Всплывающее «Скопировано» */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 30px);
  opacity: 0;
  background: var(--pine-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
  pointer-events: none;
  max-width: calc(100% - 28px);
  text-align: center;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .card { padding: 28px 28px; }
  .wrap { padding: 0 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#ozon-reminder {
  box-sizing: border-box;
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 0;
  border-radius: 20px;
  background: white;
  color: var(--pine-950);
  box-shadow: 0 16px 60px #07271540;
}
#ozon-reminder::backdrop { background: #072715bd; }
#ozon-reminder h2 { margin: 0; font-size: 1.5rem; }
#ozon-reminder p { margin: .75rem 0 1.25rem; line-height: 1.5; }
#reminder-message a { color: var(--pine-700); white-space: nowrap; }
#ozon-reminder form { margin: .6rem 0 0; }
#ozon-reminder .btn { min-height: 46px; }
html:has(#ozon-reminder[open]) { overflow: hidden; }

.fund {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 39rem;
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  text-align: left;
  border-radius: 18px;
  background: white;
  color: var(--pine-950);
}
.fund img { width: 10rem; max-width: 100%; height: auto; }
.fund p { margin: .35rem 0; }
.fund h2 { margin: .25rem 0; font-size: 1.2rem; line-height: 1.3; }
.fund a { display: inline-block; color: var(--pine-700); white-space: nowrap; }
@media (max-width: 540px) {
  .fund { flex-direction: column; gap: .5rem; text-align: center; }
}
