:root {
  color-scheme: light;
  --page: #F4F4F2;
  --card: #FFFFFF;
  --ink: #1F1F1F;
  --muted: #8A8A8A;
  --silver: #D9D9D6;
  --silver-light: #E8E8E6;
  --silver-dark: #C9C9C6;
  --warm: #C8A27A;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.masthead {
  text-align: center;
  padding: 22px 0 34px;
  position: relative;
}

.garland {
  height: 23px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 23px);
  margin: 0 auto 15px;
  max-width: 520px;
  border-top: 1px solid rgba(200, 162, 122, .22);
}
.garland i {
  width: 7px;
  height: 7px;
  display: block;
  flex: 0 0 7px;
  margin-top: -1px;
  border-radius: 50%;
  background: #F3D9A4;
  box-shadow: 0 0 7px rgba(243, 217, 164, .65), 0 0 15px rgba(243, 217, 164, .24);
  animation: glow 3.2s ease-in-out infinite alternate;
}
.garland i:nth-child(3n) { animation-delay: -1.7s; }
.garland i:nth-child(3n + 1) { animation-delay: -.8s; }

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 68px);
  line-height: .96;
  font-weight: 500;
  letter-spacing: -.035em;
}
h1 em { font-weight: 500; }
.star {
  color: var(--warm);
  display: inline-block;
  vertical-align: top;
  font-family: "Inter", sans-serif;
  font-size: .28em;
  margin: 8px 0 0 7px;
}
.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .075em;
}
.subtitle span { color: var(--warm); padding: 0 5px; }
.silver-line {
  width: min(100%, 380px);
  height: 1px;
  margin: 23px auto 0;
  background: linear-gradient(90deg, transparent, var(--silver) 20%, var(--silver-dark) 50%, var(--silver) 80%, transparent);
}

.wish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 36px;
}
.card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.photo-wrap {
  overflow: hidden;
  margin: 10px 10px 0;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #EFEFED;
}
.photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .photo-wrap img { transform: scale(1.03); }
.card-copy { padding: 13px 17px 18px; }
.number {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--warm);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .1em;
}
.card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 500;
}
.card p {
  margin: 6px 0 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
}
.buy-link {
  color: var(--warm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.buy-link span { display: inline-block; margin-left: 3px; transition: transform .2s ease; }
.buy-link:hover span { transform: translateX(3px); }
.buy-link:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; border-radius: 2px; }

.footer {
  padding: 4px 0 30px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.footer span { color: var(--warm); }

.snow {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.snow i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #D9D9D6 70%);
  opacity: .48;
  animation: snowfall var(--time) linear var(--delay) infinite;
}

@keyframes snowfall {
  0% { transform: translate3d(0, -5vh, 0); opacity: 0; }
  12% { opacity: .48; }
  88% { opacity: .48; }
  100% { transform: translate3d(12px, 108vh, 0); opacity: 0; }
}
@keyframes glow {
  from { opacity: .55; box-shadow: 0 0 4px rgba(243, 217, 164, .42); }
  to { opacity: 1; box-shadow: 0 0 9px rgba(243, 217, 164, .78), 0 0 18px rgba(243, 217, 164, .3); }
}

@media (min-width: 700px) {
  .page-shell { width: min(100% - 48px, 1200px); }
  .masthead { padding: 25px 0 42px; }
  .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card-copy { padding: 15px 19px 20px; }
}
@media (min-width: 1100px) {
  .wish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .snow { display: none; }
}

/* Крупные фото без серой рамки для небольших товаров */
.card:nth-child(1) .photo-wrap,
.card:nth-child(5) .photo-wrap,
.card:nth-child(15) .photo-wrap { background: #FFFFFF; }
.card:nth-child(1) .photo-wrap img { mix-blend-mode: multiply; transform: scale(2.15); }
.card:nth-child(5) .photo-wrap img { mix-blend-mode: multiply; transform: scale(1.35); }
.card:nth-child(15) .photo-wrap img { mix-blend-mode: multiply; transform: scale(2.15); }
.card:nth-child(1):hover .photo-wrap img { transform: scale(2.22); }
.card:nth-child(5):hover .photo-wrap img { transform: scale(1.40); }
.card:nth-child(15):hover .photo-wrap img { transform: scale(2.22); }
