/* ============================================================
   Гостюй — «Уютное небо» (под маскота logo_1)
   Тёмный индиго · пурпурно-оранжевое свечение · облака и искры
   Baloo 2 (заголовки, округлые) · Nunito (текст)
   ============================================================ */

:root {
  --bg-0: #16112f;
  --bg-1: #1e1640;
  --bg-2: #2b1850;
  --ink: #f2eeff;
  --ink-soft: #b6abdc;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --brd: rgba(173, 150, 255, 0.18);
  --brd-2: rgba(173, 150, 255, 0.32);

  --orange: #ff8a4c;
  --orange-2: #ff6a2c;
  --cyan: #5be1e6;
  --purple: #b15cff;
  --ok: #5fe0a4;

  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 78% -8%, #3a1d5e 0%, transparent 55%),
    radial-gradient(900px 600px at 8% 12%, #232a6b 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 60%, var(--bg-2) 100%);
  background-attachment: fixed;
}

/* ---------- небо: свечения, звёзды, искры ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow--purple { width: 520px; height: 520px; background: #8a3df0; top: -140px; left: -90px; }
.glow--cyan   { width: 440px; height: 440px; background: #2bb6d8; top: 38%; right: -120px; opacity: 0.4; }
.glow--orange { width: 380px; height: 380px; background: #ff7a3d; bottom: -120px; left: 28%; opacity: 0.35; }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.4px 1.4px at 70% 20%, rgba(190, 230, 255, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 45% 65%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 85% 55%, rgba(255, 235, 200, 0.8), transparent),
    radial-gradient(1.3px 1.3px at 12% 80%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.4px 1.4px at 60% 88%, rgba(200, 220, 255, 0.7), transparent);
  opacity: 0.7;
}
.spark {
  position: absolute; width: 14px; height: 14px;
  background: radial-gradient(circle at 50% 50%, #eaf6ff, #8fd0ff);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 6px rgba(140, 210, 255, 0.85));
  animation: twinkle 3.4s ease-in-out infinite;
}
.spark--1 { top: 16%; left: 24%; animation-delay: 0s; }
.spark--2 { top: 26%; left: 64%; width: 18px; height: 18px; animation-delay: 0.8s; }
.spark--3 { top: 62%; left: 80%; animation-delay: 1.6s; }
.spark--4 { top: 72%; left: 16%; width: 11px; height: 11px; animation-delay: 2.2s; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(22, 17, 47, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brd);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 18px rgba(177, 92, 255, 0.5); }
.brand__name { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 23px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  position: relative; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: right 0.28s ease;
}
.nav__links a:hover::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px;
  text-decoration: none; cursor: pointer; color: var(--ink);
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--brd-2);
  background: var(--glass-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--primary {
  border: 0; color: #2a1406;
  background: linear-gradient(135deg, #ffb066, var(--orange) 55%, var(--orange-2));
  box-shadow: 0 12px 30px -8px rgba(255, 122, 60, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255, 122, 60, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { transform: translateY(-2px); background: var(--glass-2); box-shadow: 0 0 0 1px var(--brd-2), 0 14px 34px -18px rgba(177, 92, 255, 0.6); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- typography ---------- */
h1, h2 { font-family: 'Baloo 2', cursive; font-weight: 800; line-height: 1.08; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
h3 { font-family: 'Baloo 2', cursive; font-weight: 700; }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--purple) 50%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.badge {
  display: inline-block; font-weight: 700; font-size: 14px;
  padding: 7px 15px; border-radius: 999px; color: var(--ink);
  background: var(--glass-2); border: 1px solid var(--brd-2);
}

/* ---------- sections ---------- */
section { max-width: var(--maxw); margin: 0 auto; padding: 78px 24px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 72px;
}
.hero__art { position: relative; display: grid; place-items: center; }
.hero__halo {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 92, 255, 0.45), rgba(91, 225, 230, 0.18) 45%, transparent 68%);
  filter: blur(8px); animation: pulse 6s ease-in-out infinite;
}
.hero__mascot {
  position: relative; width: 100%; max-width: 430px; border-radius: 26px;
  box-shadow: 0 30px 70px -24px rgba(120, 60, 220, 0.7);
  animation: float 6s ease-in-out infinite;
}
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 13.5px; color: var(--ink);
  padding: 9px 14px; border-radius: 14px;
  background: rgba(30, 22, 64, 0.72); border: 1px solid var(--brd-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  animation: float 5.5s ease-in-out infinite;
}
.chip small { font-weight: 700; color: var(--ink-soft); }
.chip--book { top: 8%; left: -6%; animation-delay: 0.3s; }
.chip--money { bottom: 14%; right: -8%; color: var(--ok); animation-delay: 1.1s; }
.chip--money small { color: var(--ink-soft); }
.chip--warn { bottom: 2%; left: 6%; color: var(--orange); animation-delay: 1.8s; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero__text h1 { margin: 14px 0 16px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.hero__trust { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.stars-row { color: #ffd36a; letter-spacing: 2px; }

/* ---------- glass card base ---------- */
.card, .plan, .logo-chip, .cookie-banner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--glass);
  border: 1px solid var(--brd);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* ---------- integrations ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 18px; }
.logo-chip {
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 18px;
  padding: 12px 22px; border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.logo-chip:hover { transform: translateY(-3px); border-color: var(--brd-2); box-shadow: 0 16px 34px -18px rgba(177, 92, 255, 0.7); }
.muted-note { color: var(--ink-soft); max-width: 46em; font-size: 1.02rem; }
.muted-note b { color: var(--ink); }

/* ---------- features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.card { padding: 26px 24px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--brd-2); box-shadow: 0 26px 50px -28px rgba(177, 92, 255, 0.65); }
.card__icon {
  display: grid; place-content: center; width: 56px; height: 56px; font-size: 27px;
  border-radius: 17px; margin-bottom: 14px;
}
.ic--blue   { background: rgba(91, 150, 255, 0.18); box-shadow: 0 0 24px -6px rgba(91, 150, 255, 0.6); }
.ic--red    { background: rgba(255, 110, 110, 0.16); box-shadow: 0 0 24px -6px rgba(255, 110, 110, 0.55); }
.ic--green  { background: rgba(95, 224, 164, 0.16); box-shadow: 0 0 24px -6px rgba(95, 224, 164, 0.5); }
.ic--purple { background: rgba(177, 92, 255, 0.18); box-shadow: 0 0 24px -6px rgba(177, 92, 255, 0.6); }
.ic--orange { background: rgba(255, 138, 76, 0.18); box-shadow: 0 0 24px -6px rgba(255, 138, 76, 0.6); }
.ic--cyan   { background: rgba(91, 225, 230, 0.16); box-shadow: 0 0 24px -6px rgba(91, 225, 230, 0.55); }
.card h3 { font-size: 1.34rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- how ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.step { padding-top: 6px; }
.step__num {
  display: grid; place-content: center; width: 58px; height: 58px; margin-bottom: 14px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.7rem; color: #2a1406;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb066, var(--orange-2));
  box-shadow: 0 14px 30px -12px rgba(255, 122, 60, 0.7);
}
.step h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ---------- pricing ---------- */
.pricing__sub { color: var(--ink-soft); max-width: 52em; margin-bottom: 30px; font-size: 1.04rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; padding: 28px 22px; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.plan:hover { transform: translateY(-5px); border-color: var(--brd-2); box-shadow: 0 26px 50px -28px rgba(177, 92, 255, 0.6); }
.plan h3 { font-size: 1.5rem; margin-bottom: 8px; }
.plan__price { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 2rem; color: var(--ink); margin-bottom: 16px; }
.plan__price span { display: block; font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.plan__price--sm { font-size: 1.4rem; }
.plan ul { list-style: none; margin-bottom: 22px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); font-size: 0.96rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.plan li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #11241c;
  display: grid; place-content: center; background: var(--ok);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(177, 92, 255, 0.22), rgba(91, 225, 230, 0.08)),
    var(--glass-2);
  box-shadow: 0 0 0 1.5px var(--brd-2), 0 30px 60px -28px rgba(177, 92, 255, 0.8);
}
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-weight: 800; font-size: 12px; letter-spacing: 0.04em; color: #2a1406;
  background: linear-gradient(135deg, #ffd36a, var(--orange)); padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 60, 0.7);
}

/* ---------- final cta ---------- */
.cta-final { max-width: 100%; padding: 0; }
.cta-final__inner {
  max-width: var(--maxw); margin: 24px auto 70px; padding: 60px 24px; text-align: center;
  border-radius: 30px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 280px at 50% -10%, rgba(255, 211, 106, 0.35), transparent 60%),
    linear-gradient(135deg, #6a2bd0, #b15cff 55%, #ff7a3d);
  box-shadow: 0 40px 80px -36px rgba(177, 92, 255, 0.7);
}
.cta-final__mascot { width: 92px; height: 92px; border-radius: 22px; margin-bottom: 12px; box-shadow: 0 0 30px rgba(255, 255, 255, 0.35); }
.cta-final h2 { color: #fff; }
.cta-final p { margin: 8px 0 24px; color: rgba(255, 255, 255, 0.9); }
.cta-final .btn--primary { background: #fff; color: #5a2bb0; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45); }

/* ---------- footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px 56px; border-top: 1px solid var(--brd); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 21px; }
.footer__brand img { width: 32px; height: 32px; border-radius: 10px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; border-top: 1px solid var(--brd); }
.footer__legal a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.footer__legal a:hover { color: var(--cyan); }
.footer__copy { color: var(--ink-soft); font-size: 13px; opacity: 0.8; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1; min-width: 240px; font-size: 13.5px; color: var(--ink-soft); }
.cookie-banner__text a { color: var(--cyan); }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 0.7; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .hero__mascot, .hero__halo, .chip, .spark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { order: -1; max-width: 420px; margin: 0 auto; }
  .grid, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .grid, .plans { grid-template-columns: 1fr; }
  section { padding: 60px 20px; }
  .chip--book { left: 0; }
  .chip--money { right: 0; }
}
