:root {
  --paper: #fffdf8;
  --paper-2: #fbf4ec;
  --ink: #232220;
  --muted: #706b64;
  --rose: #e3a2a7;
  --citron: #d8d86b;
  --moss: #556052;
  --clay: #bd8170;
  --line: rgba(35, 34, 32, 0.14);
  --panel: rgba(255, 250, 242, 0.76);
  --shadow: 0 26px 80px rgba(35, 34, 32, 0.12);
  --cat-dark: #2e3434;
  --cat-mid: #5b6261;
  --cat-light: #f6efe4;
  --cat-eye: #f1d04f;
  --heart: #df9aa1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(227, 162, 167, 0.18), transparent 34rem),
    linear-gradient(225deg, rgba(216, 216, 107, 0.13), transparent 32rem),
    linear-gradient(180deg, var(--paper), #fffaf3 48%, var(--paper-2));
  font-family: "Golos Text", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.ambient-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-hearts span {
  position: absolute;
  bottom: -56px;
  width: 24px;
  height: 22px;
  background: var(--heart);
  clip-path: polygon(50% 95%, 9% 56%, 4% 47%, 0 35%, 4% 20%, 15% 8%, 31% 4%, 43% 10%, 50% 22%, 57% 10%, 69% 4%, 85% 8%, 96% 20%, 100% 35%, 96% 47%, 91% 56%);
  opacity: 0;
  animation: float-heart 10s linear infinite;
}

.ambient-hearts span:nth-child(1) { left: 7%; animation-delay: 0s; }
.ambient-hearts span:nth-child(2) { left: 22%; animation-delay: 2s; }
.ambient-hearts span:nth-child(3) { left: 40%; animation-delay: 4s; }
.ambient-hearts span:nth-child(4) { left: 63%; animation-delay: 1s; }
.ambient-hearts span:nth-child(5) { left: 80%; animation-delay: 5s; }
.ambient-hearts span:nth-child(6) { left: 92%; animation-delay: 7s; }

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 240, 232, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 14px 48px rgba(35, 34, 32, 0.08);
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(227, 162, 167, 0.42);
  border-radius: 14px;
  background: rgba(227, 162, 167, 0.22);
  text-decoration: none;
}

.mark span {
  width: 20px;
  height: 18px;
  background: var(--rose);
  clip-path: polygon(50% 95%, 9% 56%, 4% 47%, 0 35%, 4% 20%, 15% 8%, 31% 4%, 43% 10%, 50% 22%, 57% 10%, 69% 4%, 85% 8%, 96% 20%, 100% 35%, 96% 47%, 91% 56%);
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(216, 216, 107, 0.28);
  color: var(--ink);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0 56px;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 18px;
  align-items: center;
}

.hero-copy {
  max-width: 900px;
}

.label {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Oranienbaum", Georgia, serif;
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(5rem, 14vw, 12rem);
}

h2 {
  font-size: clamp(3.4rem, 7vw, 7rem);
}

h3 {
  margin: 16px 0 0;
  font-size: 1.02rem;
}

.lead,
.section-copy p,
.gifts p,
.contacts p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.info-panel figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.info-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-lane {
  position: relative;
  height: 120px;
  margin-top: -4px;
  overflow: hidden;
  z-index: 1;
}

.cat-card {
  position: absolute;
  display: grid;
  place-items: center;
  right: 0;
  bottom: 0;
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 1;
  animation: kitten-walk-section 28s linear infinite;
}

.kitten-gif {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.countdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(112px, 150px));
  gap: 0;
  align-items: stretch;
  margin-top: -8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 18px 56px rgba(35, 34, 32, 0.09);
  backdrop-filter: blur(18px);
}

.countdown p,
.countdown div {
  margin: 0;
  min-height: 94px;
  display: grid;
  align-content: center;
}

.countdown p {
  padding: 0 22px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown div {
  justify-items: center;
  border-left: 1px solid rgba(35, 34, 32, 0.12);
}

.countdown strong {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.split.reverse .section-copy {
  order: 2;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(216, 216, 107, 0.26);
  font-weight: 800;
  text-decoration: none;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-panel.dark {
  color: #fffaf2;
  background: var(--ink);
}

.info-panel figure {
  height: 380px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.info-panel dl {
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 14px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(112, 107, 100, 0.2);
}

.info-panel dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-panel dt {
  color: var(--clay);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-panel.dark dt {
  color: var(--citron);
}

.info-panel dd {
  margin: 0;
  font-weight: 800;
}

.info-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.info-panel.dark small {
  color: rgba(255, 250, 242, 0.68);
}

.route-head {
  max-width: 780px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.route-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.7);
  box-shadow: 0 14px 44px rgba(35, 34, 32, 0.08);
}

.route-grid strong {
  color: var(--clay);
  font-size: 0.8rem;
}

.route-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-top: 12px;
  border: 1px dashed rgba(85, 96, 82, 0.38);
  border-radius: 16px;
  color: var(--moss);
  background:
    linear-gradient(135deg, rgba(216, 216, 107, 0.18), rgba(227, 162, 167, 0.16)),
    repeating-linear-gradient(0deg, rgba(35, 34, 32, 0.04) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(35, 34, 32, 0.04) 0 1px, transparent 1px 18px);
  font-weight: 800;
}

.gifts,
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.wish-menu,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.76);
  box-shadow: var(--shadow);
}

.wish-menu {
  padding: 28px;
}

.wish-menu span {
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wish-menu p {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  gap: 14px;
}

.contact-grid article {
  padding: 24px;
}

.contact-grid span {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

.contact-grid a {
  display: flex;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(245, 240, 232, 0.72);
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.contact-grid a::after {
  content: ">";
  color: var(--clay);
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.pixel-cat,
.pixel-cat span,
.pixel-heart {
  position: absolute;
}

.pixel-cat {
  left: 50%;
  bottom: 18px;
  width: 230px;
  height: 176px;
  transform: translateX(-50%);
  animation: cat-bob 2.8s steps(2, end) infinite;
}

.pixel-heart {
  top: 24px;
  left: 50%;
  width: 26px;
  height: 24px;
  background: var(--rose);
  clip-path: polygon(50% 95%, 9% 56%, 4% 47%, 0 35%, 4% 20%, 15% 8%, 31% 4%, 43% 10%, 50% 22%, 57% 10%, 69% 4%, 85% 8%, 96% 20%, 100% 35%, 96% 47%, 91% 56%);
  transform: translateX(-50%);
  animation: pixel-heart 1.8s steps(2, end) infinite;
}

.cat-ear,
.cat-head,
.cat-eye,
.cat-nose,
.cat-cheek,
.cat-body,
.cat-chest,
.cat-leg,
.cat-paw {
  z-index: 2;
}

.cat-head {
  left: 90px;
  top: 48px;
  width: 108px;
  height: 78px;
  background: var(--cat-dark);
  box-shadow: -20px 22px 0 var(--cat-dark), 80px 30px 0 -13px var(--cat-dark), 0 10px 0 var(--cat-mid) inset;
}

.cat-ear {
  top: 28px;
  width: 32px;
  height: 32px;
  background: var(--cat-dark);
}

.cat-ear.left { left: 98px; box-shadow: 9px 9px 0 var(--cat-mid); }
.cat-ear.right { right: 28px; box-shadow: -9px 9px 0 var(--cat-mid); }

.cat-eye {
  top: 80px;
  width: 17px;
  height: 17px;
  background: var(--cat-eye);
  animation: cat-blink 5.2s steps(1, end) infinite;
}

.cat-eye.left { left: 118px; }
.cat-eye.right { right: 48px; }

.cat-nose {
  left: 150px;
  top: 100px;
  width: 11px;
  height: 9px;
  background: #e3d2bf;
}

.cat-cheek {
  left: 148px;
  top: 110px;
  width: 32px;
  height: 16px;
  background: var(--cat-light);
}

.cat-body {
  left: 48px;
  bottom: 28px;
  width: 118px;
  height: 66px;
  background: var(--cat-dark);
  box-shadow: 22px -16px 0 var(--cat-dark), 72px -4px 0 var(--cat-dark), 0 9px 0 var(--cat-mid) inset;
}

.cat-chest {
  left: 144px;
  bottom: 74px;
  width: 48px;
  height: 50px;
  background: var(--cat-light);
  box-shadow: 20px 34px 0 -7px var(--cat-light);
}

.cat-leg {
  bottom: 16px;
  width: 20px;
  height: 42px;
  background: var(--cat-dark);
  animation: cat-step 2.8s steps(2, end) infinite;
}

.cat-leg.left { left: 80px; }
.cat-leg.right { left: 178px; background: var(--cat-light); animation-delay: 1.4s; }

.cat-paw {
  bottom: 8px;
  width: 30px;
  height: 16px;
  background: var(--cat-light);
  animation: cat-step 2.8s steps(2, end) infinite;
}

.cat-paw.left { left: 74px; }
.cat-paw.right { left: 172px; animation-delay: 1.4s; }

.cat-tail {
  left: 24px;
  bottom: 86px;
  width: 26px;
  height: 84px;
  background: var(--cat-dark);
  transform-origin: 50% 100%;
  animation: tail-wave 1.4s steps(3, end) infinite;
  z-index: 1;
  box-shadow: 13px -20px 0 var(--cat-dark), 31px -20px 0 var(--cat-dark);
}

.cat-tail-tip {
  left: 66px;
  bottom: 148px;
  width: 20px;
  height: 20px;
  background: var(--cat-dark);
  animation: tail-tip-wave 1.4s steps(3, end) infinite;
  z-index: 1;
}

.cat-shadow {
  left: 40px;
  right: 18px;
  bottom: 0;
  height: 14px;
  background: rgba(35, 34, 32, 0.18);
}

@keyframes float-heart {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12%, 82% { opacity: 0.34; }
  100% { opacity: 0; transform: translate3d(20px, -112vh, 0); }
}

@keyframes cat-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes tail-wave {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(7deg) translateX(4px); }
}

@keyframes tail-tip-wave {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(8px) translateY(8px); }
}

@keyframes cat-step {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes cat-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.18); }
}

@keyframes pixel-heart {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}

@keyframes kitten-walk-section {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-30vw, -3px, 0);
  }
  50% {
    transform: translate3d(-62vw, 0, 0);
  }
  75% {
    transform: translate3d(-94vw, -3px, 0);
  }
  100% {
    transform: translate3d(-126vw, 0, 0);
  }
}

@media (max-width: 900px) {
  .hero,
  .split,
  .gifts,
  .contacts {
    grid-template-columns: 1fr;
  }

  .split.reverse .section-copy {
    order: 0;
  }

  .cat-lane {
    height: 112px;
    margin-top: -4px;
  }

  .countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
  }

  .countdown p {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(35, 34, 32, 0.12);
  }

  .countdown div {
    min-height: 86px;
    border-left: 0;
  }

  .countdown div + div {
    border-left: 1px solid rgba(35, 34, 32, 0.12);
  }

  .route-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    top: 10px;
    width: min(100% - 20px, 1180px);
  }

  .nav a {
    padding: 10px 9px;
    font-size: 0.76rem;
  }

  h1 {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  h2 {
    font-size: 3.5rem;
  }

  .cat-card {
    width: 96px;
    height: 96px;
    right: 0;
    bottom: 0;
  }

  .cat-lane {
    height: 100px;
    margin-top: -2px;
  }

  .info-panel figure {
    height: 280px;
  }

  .info-panel dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
