:root {
  --ink: #2a123d;
  --ink-deep: #190a2a;
  --violet: #3b1859;
  --orange: #ff8a2a;
  --yellow: #ffd36a;
  --cream: #fff7e8;
  --white: #ffffff;
  --mint: #a9f0cf;
  --shadow: rgba(24, 8, 44, 0.28);
  --radius: 8px;
  --font-display: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
  --font-body: Verdana, Geneva, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14px 18px, rgba(255, 211, 106, 0.18) 1px, transparent 2px),
    radial-gradient(circle at 70px 50px, rgba(255, 255, 255, 0.12) 1px, transparent 2px);
  background-size: 96px 96px;
  opacity: 0.8;
}

.page {
  position: relative;
  min-height: calc(100vh - 56px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 138, 42, 0.22), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 211, 106, 0.18), transparent 28%),
    linear-gradient(160deg, var(--ink-deep) 0%, var(--violet) 56%, #24113a 100%);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
}

.hero {
  padding: 58px 0 28px;
}

.brand-kicker,
.mini-logo,
.thanks {
  font-family: var(--font-display);
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 211, 106, 0.64);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.12);
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 18vw, 6.9rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: 0 8px 0 rgba(255, 138, 42, 0.35), 0 18px 38px var(--shadow);
}

.lead {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--cream);
  font-size: clamp(1rem, 4.6vw, 1.32rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 16px 22px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 0 rgba(31, 9, 50, 0.42), 0 22px 34px rgba(15, 6, 28, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  touch-action: manipulation;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 0 rgba(31, 9, 50, 0.42), 0 25px 38px rgba(15, 6, 28, 0.32);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 7px 0 rgba(31, 9, 50, 0.42), 0 14px 24px rgba(15, 6, 28, 0.24);
}

.button-primary {
  width: min(100%, 300px);
  margin-top: 34px;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
}

.notice {
  max-width: 510px;
  margin: 38px auto 0;
  padding: 18px 20px;
  border: 2px dashed rgba(255, 211, 106, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.5;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 18px;
  background: #12071f;
  color: rgba(255, 247, 232, 0.78);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.qr-page {
  min-height: 100vh;
  padding-block: 20px;
}

.qr-panel {
  max-width: 460px;
  padding: 30px 18px;
  border: 2px solid rgba(255, 211, 106, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 247, 232, 0.1);
  box-shadow: 0 24px 70px rgba(13, 4, 27, 0.42);
}

.mini-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 20px;
  color: var(--yellow);
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-deep);
  font-size: 0.78rem;
  box-shadow: inset 0 -5px 0 rgba(114, 40, 0, 0.22);
}

.qr-panel h1 {
  font-size: clamp(2.75rem, 15vw, 4.9rem);
}

.contact-actions {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.button-max {
  background: linear-gradient(180deg, #fff1a9, var(--yellow));
}

.button-telegram {
  background: linear-gradient(180deg, #bff7ff, #78d7ff);
}

.thanks {
  margin: 28px 0 0;
  color: var(--yellow);
  font-size: 1.08rem;
  font-weight: 900;
}

.decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.decor-pumpkin {
  width: 118px;
  height: 90px;
  left: max(14px, 8vw);
  bottom: 80px;
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(ellipse at 36% 48%, transparent 0 14px, rgba(122, 39, 5, 0.2) 15px 17px, transparent 18px),
    linear-gradient(90deg, transparent 16%, rgba(255, 224, 102, 0.2) 17% 19%, transparent 20% 49%, rgba(111, 37, 5, 0.18) 50% 53%, transparent 54% 81%, rgba(255, 224, 102, 0.18) 82% 84%, transparent 85%),
    var(--orange);
  box-shadow: inset 0 -13px 0 rgba(132, 41, 2, 0.18), 0 16px 34px rgba(19, 5, 29, 0.28);
  transform: rotate(-8deg);
}

.decor-pumpkin::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 22px;
  left: 50%;
  top: -15px;
  border-radius: 8px 8px 2px 2px;
  background: #74c36d;
  transform: translateX(-50%) rotate(8deg);
}

.decor-pumpkin::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  height: 10px;
  border-radius: 0 0 20px 20px;
  background: rgba(43, 16, 61, 0.8);
}

.decor-bat {
  width: 112px;
  height: 44px;
  right: max(16px, 10vw);
  top: 86px;
  background:
    radial-gradient(circle at 50% 44%, var(--ink-deep) 0 16px, transparent 17px),
    radial-gradient(ellipse at 26% 58%, var(--ink-deep) 0 34px, transparent 35px),
    radial-gradient(ellipse at 74% 58%, var(--ink-deep) 0 34px, transparent 35px);
  opacity: 0.88;
  transform: rotate(9deg);
}

.decor-bat::before,
.decor-bat::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.decor-bat::before {
  left: 48px;
}

.decor-bat::after {
  right: 48px;
}

.decor-candy {
  width: 96px;
  height: 34px;
  right: 12vw;
  bottom: 104px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--white) 0 12px, var(--yellow) 12px 24px, var(--orange) 24px 36px);
  box-shadow: 0 14px 30px rgba(19, 5, 29, 0.28);
  transform: rotate(14deg);
}

.decor-candy::before,
.decor-candy::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.decor-candy::before {
  left: -21px;
}

.decor-candy::after {
  right: -21px;
  transform: rotate(180deg);
}

.decor-star {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 2rem;
  text-shadow: 0 0 18px rgba(255, 211, 106, 0.7);
}

.star-one {
  left: 14vw;
  top: 116px;
}

.star-two {
  right: 24vw;
  bottom: 176px;
  color: var(--mint);
}

.qr-pumpkin {
  left: -40px;
  bottom: 18px;
  transform: scale(0.78) rotate(-8deg);
}

.qr-bat {
  right: -34px;
  top: 32px;
  transform: scale(0.72) rotate(9deg);
}

.qr-star-one {
  left: 26px;
  top: 120px;
}

.qr-star-two {
  right: 26px;
  bottom: 128px;
  color: var(--mint);
}

@media (min-width: 680px) {
  .page {
    padding: 54px 34px;
  }

  .hero {
    padding-top: 72px;
  }

  .button {
    width: auto;
    min-width: 260px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .qr-panel {
    padding: 42px 34px;
  }
}

@media (max-width: 420px) {
  .decor-pumpkin,
  .decor-candy {
    opacity: 0.58;
  }

  .decor-bat {
    opacity: 0.5;
  }

  .home-page .decor-pumpkin {
    left: -34px;
    bottom: 76px;
    transform: scale(0.72) rotate(-8deg);
  }

  .home-page .decor-candy {
    right: -38px;
    bottom: 146px;
    transform: scale(0.72) rotate(14deg);
  }

  .home-page .decor-bat {
    right: -42px;
    top: 54px;
    transform: scale(0.68) rotate(9deg);
  }

  .notice {
    margin-top: 30px;
  }
}
