/* ============================================================
   ПАЛИТРА — меняй цвета здесь, они подхватятся везде
   ============================================================ */
:root {
  --bg: #07070b;
  --text: #f4f4f7;
  --muted: #9a9aab;

  --glass: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.1);

  --pink: #ff4d94;
  --violet: #a855f7;
  --cyan: #00d5ff;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 48px);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ФОН: цветные пятна + зернистость
   ============================================================ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob--pink   { background: var(--pink);   top: -18vmax; left: -14vmax; animation: drift 22s var(--ease) infinite alternate; }
.blob--cyan   { background: var(--cyan);   bottom: -22vmax; right: -16vmax; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob--violet { background: var(--violet); top: 32%; left: 42%; opacity: 0.34; animation: drift 30s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vmax, 6vmax, 0) scale(1.25); }
}

/* Зерно поверх фона — убирает «пластиковость» градиента */
.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================================
   КАРТОЧКА
   ============================================================ */
.card {
  width: min(440px, 100%);
  padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 30px) 26px;
  text-align: center;
  background: rgba(15, 15, 22, 0.55);
  border: 1px solid var(--stroke);
  border-radius: 32px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ============================================================
   АВАТАР
   ============================================================ */
.avatar {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}

.avatar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--cyan), var(--pink));
  animation: spin 6s linear infinite;
}

.avatar__ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0d0d14;
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar__img {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar__status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2ee86d;
  border: 3px solid #0d0d14;
  box-shadow: 0 0 0 0 rgba(46, 232, 109, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(46, 232, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 232, 109, 0); }
}

/* ============================================================
   ТЕКСТ ПРОФИЛЯ
   ============================================================ */
.name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: clamp(25px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.verified { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }

.handle {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio {
  margin: 12px auto 26px;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ============================================================
   ГЛАВНАЯ КНОПКА — единственный акцент на странице
   ============================================================ */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #00c2ff, #0077c8);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px -14px rgba(0, 175, 240, 0.65);
  animation: breathe 3.4s ease-in-out infinite;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

/* Дыхание кнопки притягивает взгляд, не отвлекая мельтешением */
@keyframes breathe {
  50% { box-shadow: 0 22px 52px -12px rgba(0, 175, 240, 0.85); }
}

/* Подсветка следует за курсором (координаты пишет script.js) */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

/* Блик, пробегающий слева направо */
.cta::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 26px 58px -12px rgba(0, 175, 240, 0.9);
}

.cta:hover::before, .cta:focus-visible::before { opacity: 1; }
.cta:hover::after,  .cta:focus-visible::after  { left: 115%; }
.cta:active { transform: translateY(-1px) scale(0.99); }

.cta__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta__icon svg { width: 24px; height: 24px; }

.cta__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.cta__title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.cta__sub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.badge {
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.04em;
  border-radius: 6px;
  color: #05384d;
  background: rgba(255, 255, 255, 0.9);
}

.cta__arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.cta:hover .cta__arrow { transform: translateX(5px); }

/* Строка с оффером под кнопкой */
.offer {
  margin-top: 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   ТИЗЕР-ПРОВЬЮ — любопытство без отвлечения от CTA
   ============================================================ */
.teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}

.teaser:hover,
.teaser:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.teaser:active { transform: translateY(0) scale(0.99); }

.teaser__shots {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.teaser__shots img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #12121a;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55);
}

.teaser__shots img + img { margin-left: -14px; }

.teaser__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(7, 7, 11, 0.28);
  color: #fff;
  pointer-events: none;
}

.teaser__lock svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.teaser__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.teaser__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.teaser__sub {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   ВТОРОСТЕПЕННЫЕ СОЦСЕТИ
   ============================================================ */
.socials__label {
  margin-top: 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--accent);
  background: var(--glass);
  border: 1px solid var(--brand-edge);
  isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}

/* Цветное свечение под иконкой. Пульсирует масштабом, а не прозрачностью,
   чтобы анимация не перебивала подсветку при наведении. */
.social::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 21px;
  background: var(--brand);
  filter: blur(13px);
  opacity: 0.4;
  transition: opacity 0.35s;
  animation: halo 4.5s ease-in-out infinite;
}

@keyframes halo { 50% { transform: scale(1.14); } }

.social svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 9px var(--brand-glow));
}

.social:hover,
.social:focus-visible {
  transform: translateY(-3px);
  color: #fff;
  background: var(--brand);
  border-color: transparent;
}

.social:hover::before, .social:focus-visible::before { opacity: 0.95; }
.social:active { transform: translateY(-1px) scale(0.96); }

.social--instagram {
  --brand: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  --brand-glow: rgba(220, 39, 67, 0.6);
  --brand-edge: rgba(220, 39, 67, 0.35);
  --accent: #ff5a92;
}

.social--tiktok {
  --brand: linear-gradient(135deg, #25f4ee, #111 45%, #fe2c55);
  --brand-glow: rgba(37, 244, 238, 0.5);
  --brand-edge: rgba(37, 244, 238, 0.3);
  --accent: #25f4ee;
}

/* Сдвигаем фазу, чтобы иконки пульсировали не в такт */
.social--tiktok::before { animation-delay: -2.2s; }

/* ============================================================
   НИЖНИЕ КНОПКИ И ПОДВАЛ
   ============================================================ */
.actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.chip svg { width: 15px; height: 15px; }

.chip:hover {
  color: var(--text);
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.chip:active { transform: translateY(0); }

.foot {
  margin-top: 20px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(22, 22, 30, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   ПОЯВЛЕНИЕ ЭЛЕМЕНТОВ ПРИ ЗАГРУЗКЕ
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 100ms);
}

@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============================================================
   ДОСТУПНОСТЬ
   ============================================================ */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Совсем узкие экраны */
@media (max-width: 360px) {
  .cta { padding: 14px 15px; gap: 12px; }
  .cta__icon { width: 42px; height: 42px; }
  .cta__title { font-size: 15.5px; }
}
