/* Поздравительный лендинг: Telegram Premium в подарок на год */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --tg-blue: #2aabee;
  --tg-blue-dark: #1e96c8;
  --gold: #ffcf4d;
  --bg-1: #0e1621;
  --bg-2: #17212b;
  --text: #f2f6fa;
  --muted: #9db2c4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -100px, #1f3348 0%, var(--bg-1) 60%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.page {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  text-align: center;
}

/* ---- шапка ---- */

.balloons { position: relative; height: 0; }
.balloon {
  position: absolute;
  font-size: 34px;
  opacity: .85;
  animation: floaty 4s ease-in-out infinite;
}
.b1 { left: 4%;  top: 10px; animation-delay: 0s; }
.b2 { right: 6%; top: 40px; animation-delay: 1.2s; font-size: 28px; }
.b3 { left: 16%; top: 150px; animation-delay: 2.1s; font-size: 24px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}

.gift-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
  animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both;
}
.tg-logo {
  width: 116px;
  height: 116px;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(42, 171, 238, .45));
}
.star {
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe08a, var(--gold));
  color: #7a5200;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(255, 207, 77, .5);
}

@keyframes pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.headline {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.headline em, .headline span {
  font-style: normal;
  color: var(--tg-blue);
}

.subtitle {
  font-size: clamp(16px, 4vw, 19px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---- кнопка ---- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 17px 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tg-blue), var(--tg-blue-dark));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(42, 171, 238, .4);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: pulse 2.2s ease-in-out infinite;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(42, 171, 238, .55);
}
.cta-icon { font-size: 22px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(42, 171, 238, .4); }
  50%      { box-shadow: 0 10px 40px rgba(42, 171, 238, .65); }
}

.cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- преимущества ---- */

.perks { margin-top: 56px; }

.perks-title {
  font-size: clamp(20px, 5vw, 26px);
  margin-bottom: 22px;
}

.perks-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.perk {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.perk-ico { font-size: 26px; margin-bottom: 4px; }
.perk b { font-size: 15px; }
.perk small { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---- шаги ---- */

.steps { margin-top: 52px; }

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 28px;
  text-align: left;
}
.steps-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
}
.steps-list li span {
  flex: 0 0 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: rgba(42, 171, 238, .18);
  color: var(--tg-blue);
  font-weight: 700;
}

.cta-bottom { animation: none; }

/* ---- подвал ---- */

.foot {
  margin-top: 48px;
  font-size: 12px;
  color: #5f7385;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .perks-grid { grid-template-columns: 1fr; }
  .cta { width: 100%; min-width: 0; }
}
