/* =====================================================================
   PARTYstation — преленд. Мобильный-первый, игровой, конверсионный.
   ===================================================================== */

/* ---------- Переменные темы ---------- */
:root {
  --violet:       #6D28D9;
  --violet-dark:  #4C1D95;
  --violet-deep:  #2E1065;
  --violet-light: #8B5CF6;
  --magenta:      #C026D3;
  --pink:         #EC4899;

  --bg:     #FBF7FF;
  --ink:    #1E1033;
  --muted:  #6B6080;
  --card:   #FFFFFF;

  --hero-grad: linear-gradient(148deg, #6D28D9 0%, #9333EA 44%, #C026D3 100%);
  --cta-grad:  linear-gradient(135deg, #FF4D9D 0%, #FF7A1A 100%);

  --shadow-sm: 0 8px 22px -8px rgba(76, 29, 149, .28);
  --shadow-md: 0 22px 46px -16px rgba(76, 29, 149, .38);
  --shadow-cta: 0 14px 30px -8px rgba(255, 77, 157, .55);

  --radius:    22px;
  --radius-lg: 30px;
  --container: 1080px;
}

/* ---------- Сброс / база ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Фокус для клавиатуры (доступность) */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Декоративный фон ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.blob--1 { width: 440px; height: 440px; background: #E9D5FF; top: -130px;  right: -90px; opacity: .55; }
.blob--2 { width: 380px; height: 380px; background: #FCE7F3; bottom: 8%;   left: -130px; opacity: .6; }
.blob--3 { width: 300px; height: 300px; background: #FEF3C7; top: 42%;     right: 4%;   opacity: .4; }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 5; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 4px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--hero-grad);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 17px; height: 17px; fill: #fff; margin-left: 2px; }
.brand__name {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.16rem; letter-spacing: -.01em; color: var(--violet-deep);
}

/* ---------- Кнопки / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  border: none; cursor: pointer; text-align: center;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn--cta {
  position: relative; overflow: hidden;
  background: var(--cta-grad); color: #fff;
  padding: 16px 32px; font-size: 1.12rem;
  box-shadow: var(--shadow-cta);
  animation: pulseGlow 2.8s ease-in-out infinite;
  text-shadow: 0 1px 2px rgba(150, 30, 70, .25);
}
.btn--cta span { transition: transform .18s ease; }
.btn--cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 22px 42px -10px rgba(255, 77, 157, .75);
  animation-play-state: paused;
}
.btn--cta:hover span { transform: translateX(4px); }
.btn--cta:active { transform: translateY(0) scale(.99); }
.btn--lg { padding: 19px 42px; font-size: 1.22rem; }

/* блик, пробегающий по кнопке */
.btn--cta::before {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}

/* ---------- HERO ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-grad); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 48% at 86% 14%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(34% 44% at 8% 86%, rgba(251, 191, 36, .20), transparent 70%);
}
.hero__grid { display: grid; gap: 36px; padding-top: 16px; padding-bottom: 60px; }
.hero__content { max-width: 580px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: .85rem;
  backdrop-filter: blur(6px);
}
.hero__title {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  line-height: 1.06; letter-spacing: -.02em;
  font-size: clamp(2.1rem, 8.2vw, 3.5rem);
  margin-top: 18px;
  text-shadow: 0 2px 22px rgba(46, 16, 101, .4);
}
.hero__sub {
  font-size: clamp(1.02rem, 2.7vw, 1.18rem);
  margin-top: 16px; max-width: 480px;
  color: rgba(255, 255, 255, .92);
}
.hero__actions { margin-top: 26px; }

/* строка доверия + аватары */
.trust { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 700; }
.hero .trust { color: rgba(255, 255, 255, .96); }
.avatars { display: inline-flex; }
.avatars > span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.avatars > span:first-child { margin-left: 0; }
.avatars > span:nth-child(1) { background: linear-gradient(135deg, #FF6BAE, #FF9248); }
.avatars > span:nth-child(2) { background: linear-gradient(135deg, #A78BFA, #6D28D9); }
.avatars > span:nth-child(3) { background: linear-gradient(135deg, #F472B6, #DB2777); }
.avatars > span:nth-child(4) { background: linear-gradient(135deg, #FBBF24, #F97316); }
.avatars > span:nth-child(5) { background: linear-gradient(135deg, #C084FC, #9333EA); }

/* визуал героя — телефон с креативом */
.hero__visual { position: relative; display: grid; place-items: center; padding: 14px 0; }
.phone {
  position: relative;
  width: min(286px, 76vw); aspect-ratio: 9 / 19;
  border-radius: 40px; padding: 9px;
  background: linear-gradient(160deg, #ffffff, #ECE1FF);
  box-shadow:
    0 44px 84px -22px rgba(46, 16, 101, .62),
    inset 0 0 0 2px rgba(255, 255, 255, .55);
  animation: floaty 6s ease-in-out infinite;
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 16px; border-radius: 0 0 14px 14px;
  background: #2E1065; z-index: 3; opacity: .85;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, #A855F7, #EC4899 55%, #F97316);
}
.phone__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* парящие эмодзи-акценты */
.floaty { position: absolute; font-size: 2rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .22)); z-index: 2; }
.floaty--a { top: 2%;  left: -3%;  animation: floaty 5s   ease-in-out infinite; }
.floaty--b { top: 16%; right: -5%; animation: floaty 6.5s ease-in-out infinite .4s; }
.floaty--c { bottom: 15%; left: -7%; animation: floaty 5.5s ease-in-out infinite .8s; }
.floaty--d { bottom: 3%; right: 5%;  animation: floaty 7s   ease-in-out infinite .2s; }

/* ---------- Секции (общее) ---------- */
.section { padding: 56px 0; }
.section__title {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  text-align: center; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  color: var(--violet-deep);
}

/* ---------- Ситуации (когда пригодится) ---------- */
.situations { padding: 30px 0 6px; }
.situations__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.sit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid rgba(124, 58, 237, .14);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--violet-deep);
}

/* ---------- Карточки преимуществ ---------- */
.benefits__grid { display: grid; gap: 18px; margin-top: 34px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  font-size: 1.7rem; margin-bottom: 14px;
  background: linear-gradient(135deg, #F3E8FF, #FCE7F3);
}
.card__title { font-weight: 800; font-size: 1.18rem; color: var(--violet-deep); }
.card__text  { color: var(--muted); margin-top: 6px; }

/* ---------- Шаги ---------- */
.steps { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .05)); }
.steps__grid { display: grid; gap: 18px; margin-top: 34px; }
.step {
  position: relative;
  background: var(--card); border-radius: var(--radius);
  padding: 26px 22px 22px;
  border: 1px solid rgba(124, 58, 237, .08);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  font-family: 'Unbounded', sans-serif; font-weight: 800; color: #fff;
  background: var(--hero-grad); box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.step--win .step__num { background: var(--cta-grad); }
.step__title { font-weight: 800; color: var(--violet-deep); }
.step__text  { color: var(--muted); margin-top: 4px; }

/* ---------- Финальный CTA (градиентная плашка) ---------- */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--hero-grad); color: #fff;
  text-align: center; padding: 64px 0 72px;
}
.final-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(34% 50% at 16% 22%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(32% 46% at 88% 80%, rgba(251, 191, 36, .22), transparent 70%);
}
.final-cta__inner { position: relative; max-width: 660px; margin: 0 auto; }
.final-cta__title {
  font-family: 'Unbounded', sans-serif; font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  text-shadow: 0 2px 20px rgba(46, 16, 101, .4);
}
.final-cta__text { color: rgba(255, 255, 255, .92); margin-top: 10px; font-size: 1.12rem; }
.final-cta .btn--cta { margin-top: 26px; }
.final-cta .trust { color: #fff; margin-top: 18px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--violet-deep); color: rgba(255, 255, 255, .85); padding: 26px 0; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: space-between;
  font-size: .9rem;
}
.site-footer__legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-mark {
  background: rgba(255, 255, 255, .16);
  padding: 3px 9px; border-radius: 7px;
  font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.site-footer__age { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 1rem; }

/* ---------- Анимации ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUpScale {
  from { opacity: 0; transform: translateY(22px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 14px 30px -8px rgba(255, 77, 157, .5); }
  50%      { box-shadow: 0 18px 46px -8px rgba(255, 77, 157, .85); }
}
@keyframes shine {
  0%   { left: -130%; }
  55%, 100% { left: 150%; }
}

/* каскадный вход героя */
.hero__content > * { opacity: 0; animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .25s; }
.hero__content > *:nth-child(4) { animation-delay: .35s; }
.hero__content > *:nth-child(5) { animation-delay: .45s; }
.hero__visual { opacity: 0; animation: fadeUpScale .85s cubic-bezier(.2, .7, .2, 1) .3s both; }

/* ---------- Адаптив: планшет / десктоп ---------- */
@media (min-width: 760px) {
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center; gap: 40px;
    padding-top: 44px; padding-bottom: 92px;
  }
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__grid    { grid-template-columns: repeat(2, 1fr); }
  .section        { padding: 82px 0; }
  .hero__visual   { padding: 0; }
}

@media (min-width: 980px) {
  .phone { width: 312px; }
}

@media (min-width: 1000px) {
  .steps__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Уважение к настройке «уменьшить движение» ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__content > *, .hero__visual { opacity: 1; }
}
