:root {
  --bg-deep:   #050f17;
  --bg-mid:    #0f212e;
  --bg-soft:   #1a2c38;
  --green:     #00e701;
  --green-d:   #00b400;
  --blue:      #1f7ed4;
  --tg-light:  #2AABEE;
  --tg-dark:   #229ED9;
  --card:      #ffffff;
  --text:      #1a2c38;
  --muted:     #6b7d8e;
  --divider:   #eef2f5;
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at 50% -10%, var(--bg-soft) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ─── Фоновые слои ─────────────────────────────────────────────────────── */

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

/* Водяные знаки логотипа — разный размер, угол, дрейф */
.wm {
  position: absolute;
  opacity: .045;
  filter: grayscale(1) brightness(1.6);
  user-select: none;
  will-change: transform;
}
.wm-1 { width: 460px; top: -120px; left: -140px; transform: rotate(-12deg); animation: drift1 22s ease-in-out infinite; }
.wm-2 { width: 280px; top: 30%;    right: -90px; transform: rotate(18deg);  animation: drift2 26s ease-in-out infinite; opacity: .035; }
.wm-3 { width: 200px; bottom: 8%;  left: 6%;     transform: rotate(-6deg);  animation: drift1 30s ease-in-out infinite reverse; opacity: .04; }
.wm-4 { width: 360px; bottom: -120px; right: -120px; transform: rotate(8deg); animation: drift2 24s ease-in-out infinite; opacity: .05; }

@keyframes drift1 { 0%,100% { transform: rotate(-12deg) translate(0,0); } 50% { transform: rotate(-9deg) translate(30px, 20px); } }
@keyframes drift2 { 0%,100% { transform: rotate(18deg)  translate(0,0); } 50% { transform: rotate(15deg) translate(-30px, -20px); } }

/* Волнистые линии поверх */
.curves {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, .05);
  stroke-width: 1;
  animation: shift 18s ease-in-out infinite;
}
@keyframes shift {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* Точечная сетка в углу */
.dots {
  position: absolute;
  width: 240px; height: 240px;
  bottom: 8%; left: 4%;
  background-image: radial-gradient(rgba(0, 231, 1, .12) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse, #000 30%, transparent 70%);
}

/* ─── Карточка ─────────────────────────────────────────────────────────── */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 410px;
  background: var(--card);
  border-radius: 26px;
  padding: 38px 28px 32px;
  text-align: center;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .04);
  animation: cardIn .65s cubic-bezier(.22, 1, .36, 1) both;
}

/* Тонкая зелёная полоса сверху */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.badge {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--green-d);
  background: rgba(0, 231, 1, .1);
  padding: 4px 8px 4px 6px;
  border-radius: 6px;
}
.badge svg { width: 11px; height: 11px; }

/* Аватар: статичное градиентное кольцо + пульсация подсветки */
.avatar-ring {
  display: inline-block;
  position: relative;
  margin-bottom: 18px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 135deg, var(--green), var(--blue), var(--green));
  animation: glow 2.6s ease-in-out infinite;
}

@keyframes glow {
  0%,100% { box-shadow: 0 0 22px -4px rgba(0, 231, 1, .35); }
  50%     { box-shadow: 0 0 38px -2px rgba(0, 231, 1, .6); }
}

.avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: block;
  background: var(--bg-mid);
  object-fit: cover;
}

.subscribers {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

/* ─── Список преимуществ + анимированные иконки ─────────────────────────── */

.points { list-style: none; text-align: left; margin-bottom: 24px; }

.points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  font-size: 15px;
  color: #2a3f50;
  border-bottom: 1px solid var(--divider);
}
.points li:last-child { border-bottom: 0; }

.ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4f8fb, #e9eff4);
  color: var(--text);
}
.ico svg { width: 22px; height: 22px; }

/* Телефон — лёгкий наклон + мигающая точка */
.ico-phone svg          { animation: phoneTilt 4s ease-in-out infinite; transform-origin: center; }
.ico-phone .ico-blink   { animation: blink 1.6s ease-in-out infinite; fill: var(--green); }
@keyframes phoneTilt { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes blink     { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Конверт — галочка прорисовывается */
.ico-task .ico-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: draw 3s ease-in-out infinite;
}
@keyframes draw {
  0%        { stroke-dashoffset: 12; }
  40%, 80%  { stroke-dashoffset: 0; }
  100%      { stroke-dashoffset: 12; }
}

/* Монета — 3D-флип */
.ico-coin svg { animation: flip 4s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes flip {
  0%, 40%, 100% { transform: rotateY(0deg); }
  60%, 80%      { transform: rotateY(360deg); }
}

/* Часы — вращающаяся минутная стрелка */
.ico-clock .ico-minute {
  transform-origin: 12px 12px;
  animation: tick 6s linear infinite;
}
@keyframes tick { to { transform: rotate(360deg); } }

/* ─── CTA-кнопка с пульсацией и иконкой Telegram ────────────────────────── */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--tg-light) 0%, var(--tg-dark) 100%);
  color: #fff;
  /* Чёрная окантовка текста через 4-направленную тень */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  padding: 17px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 28px -6px rgba(34, 158, 217, .6);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  overflow: hidden;
}

/* Шиммер-блик */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 3.4s ease-in-out infinite;
}

/* Пульсирующее кольцо вокруг кнопки */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid var(--tg-light);
  animation: pulseRing 1.8s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
}

@keyframes shimmer  { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }
@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: .7; }
  80%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.cta:hover  { transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(34, 158, 217, .8); filter: brightness(1.05); }
.cta:active { transform: translateY(0); }

.cta-icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  flex-shrink: 0;
  animation: iconBob 1.8s ease-in-out infinite;
}
.cta-icon svg { width: 14px; height: 14px; }
@keyframes iconBob { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* ─── Адаптив ──────────────────────────────────────────────────────────── */

/* Планшет */
@media (max-width: 768px) {
  .wm-1 { width: 340px; top: -90px; left: -110px; }
  .wm-2 { width: 220px; right: -60px; }
  .wm-3 { width: 160px; }
  .wm-4 { width: 280px; right: -90px; bottom: -90px; }
  .dots { width: 180px; height: 180px; }
}

/* Мобильный */
@media (max-width: 480px) {
  body { padding: 16px 12px; }

  .card     { padding: 30px 20px 26px; border-radius: 22px; }
  .title    { font-size: 21px; margin-bottom: 14px; }
  .subscribers { font-size: 14px; }

  .badge       { font-size: 9px; padding: 3px 7px 3px 5px; top: 12px; right: 12px; }
  .badge svg   { width: 10px; height: 10px; }

  .points       { margin-bottom: 22px; }
  .points li    { font-size: 14px; padding: 7px 2px; gap: 10px; }
  .ico          { width: 34px; height: 34px; border-radius: 9px; }
  .ico svg      { width: 19px; height: 19px; }

  .avatar       { width: 88px; height: 88px; }

  .cta          { padding: 15px 20px; font-size: 15px; }
  .cta-icon     { width: 24px; height: 24px; }
  .cta-icon svg { width: 13px; height: 13px; }

  /* Фон: масштабируем все слои чтобы выглядели гармонично */
  .wm-1 { width: 240px; top: -70px; left: -80px; }
  .wm-2 { width: 160px; top: 22%; right: -55px; }
  .wm-3 { width: 110px; bottom: 12%; left: 4%; }
  .wm-4 { width: 200px; right: -75px; bottom: -75px; }

  .dots {
    width: 140px; height: 140px;
    bottom: 4%; left: 0;
    background-size: 11px 11px;
  }

  .curves { stroke-width: .8; }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
  .card  { padding: 26px 18px 24px; }
  .title { font-size: 19px; }
  .cta   { padding: 14px 18px; font-size: 14px; }
}

/* Доступность: уважаем настройку "уменьшенная анимация" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
