:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-alt: #fff0e2;
  --text: #2b2118;
  --text-2: #7a6a5c;
  --muted: #a8988a;
  --border: #f0e2d3;
  --primary: #ff6b3d;
  --primary-dark: #e8552a;
  --primary-soft: #ffe3d8;
  --violet: #6c63ff;
  --violet-2: #b05cff;
  --green: #1f9d5c;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
  --shadow-lg: 0 30px 60px rgba(43, 33, 24, 0.18);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }

.dev-banner {
  background: #fff3bf; color: #6b5300; font-size: 14px; text-align: center; padding: 8px 16px;
  border-bottom: 1px solid #f2df8a;
}
.dev-banner code { background: #ffffff99; padding: 1px 6px; border-radius: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 17px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 61, 0.35);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn--big { min-height: 60px; font-size: 19px; }
.btn--block { width: 100%; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-buttons--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: #16120e; color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 18, 14, 0.25);
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 600; opacity: .8; }
.store b { font-size: 19px; font-weight: 800; }
.store--primary { background: var(--primary); box-shadow: 0 10px 24px rgba(255, 107, 61, 0.35); }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; }
.logo img { border-radius: 10px; }
.topbar__nav { display: none; gap: 24px; margin-left: auto; }
.topbar__nav a { text-decoration: none; color: var(--text-2); font-weight: 700; font-size: 15px; }
.topbar__nav a:hover { color: var(--text); }
.topbar .btn--small { margin-left: auto; }

/* ---------- Первый экран ---------- */
.hero { padding: 28px 0 40px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 800; color: var(--primary-dark);
  background: var(--primary-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--light { color: #fff; background: rgba(255, 255, 255, 0.18); }
.hero h1 { font-size: clamp(36px, 9vw, 62px); }
.lead { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 560px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--text-2); font-weight: 700; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  list-style: none; padding: 0; margin: 28px 0 0; max-width: 520px;
}
.hero__stats li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 12px 6px; text-align: center; display: flex; flex-direction: column;
}
.hero__stats b { font-size: 22px; font-weight: 900; }
.hero__stats span { font-size: 12px; color: var(--text-2); font-weight: 700; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.blob {
  position: absolute; inset: 6% 6%; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 30% 30%, #ffd5c4, #ffb08f 55%, #ff9a73);
  filter: blur(2px); opacity: .55;
}
.float {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: #fff; font-size: 34px;
  box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite;
}
.float--1 { top: 8%; left: 6%; }
.float--2 { top: 30%; right: 4%; animation-delay: -1.2s; }
.float--3 { bottom: 22%; left: 2%; animation-delay: -2.4s; }
.float--4 { bottom: 6%; right: 12%; animation-delay: -3.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ---------- Телефон ---------- */
.phone {
  position: relative; width: min(290px, 74vw); aspect-ratio: 1206 / 2622;
  border-radius: 44px; padding: 10px; background: #16120e;
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone--tilt { transform: rotate(-3deg); }
.phone--sm { width: min(230px, 62vw); border-radius: 36px; padding: 8px; }
.phone--sm img { border-radius: 28px; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--surface-alt); }
.section--violet { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; }
.section__title { font-size: clamp(30px, 6.5vw, 44px); }
.section__title--light { color: #fff; }
.section__lead { margin-top: 12px; font-size: 18px; color: var(--text-2); max-width: 640px; }
.section__lead--light { color: rgba(255, 255, 255, 0.9); }

/* Боли */
.pains { display: grid; gap: 14px; margin-top: 28px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 6px;
}
.pain__emoji { grid-row: span 2; font-size: 34px; line-height: 1; }
.pain h3 { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.pain p { color: var(--green); font-weight: 800; font-size: 15px; }

/* Демо */
.try { display: grid; gap: 20px; margin-top: 28px; align-items: start; }
.try__controls {
  background: var(--surface); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow);
}
.try__label { font-weight: 800; margin-bottom: 10px; }
.try__label:not(:first-child) { margin-top: 18px; }
.try__controls .btn { margin-top: 22px; }
.try__hint { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-checked='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }

.game-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; animation: pop .35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.game-card--empty {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 32px; text-align: center; color: var(--text-2); font-weight: 700; animation: none;
}
.game-card--empty .game-card__emoji { font-size: 64px; }
.game-card__head { padding: 26px 24px 20px; text-align: center; }
.game-card__emoji { font-size: 72px; line-height: 1; }
.game-card__cat {
  display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px; background: #ffffffaa;
}
.game-card__title { margin-top: 10px; font-size: 28px; }
.game-card__goal { margin-top: 8px; color: var(--text-2); font-size: 17px; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.pill { background: var(--surface-alt); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.game-card__body { padding: 4px 24px 24px; }
.game-card__body h4 { margin: 18px 0 10px; font-size: 18px; font-weight: 900; }
.materials { margin: 0; padding-left: 20px; color: var(--text-2); }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.steps-list li::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cat, var(--primary)); color: #fff; font-weight: 900; font-size: 15px;
}
.tip { margin-top: 16px; background: var(--primary-soft); border-radius: 16px; padding: 14px 16px; font-size: 15px; }
.locked {
  margin-top: 16px; position: relative; border-radius: 18px; padding: 18px; text-align: center;
  background: repeating-linear-gradient(0deg, #f5ece3 0 14px, #fbf4ec 14px 28px);
}
.locked p { font-weight: 800; margin-bottom: 12px; }
.game-card__again { margin-top: 18px; display: flex; gap: 10px; }
.game-card__again .btn { flex: 1; padding: 0 14px; }
.btn--ghost { background: var(--surface-alt); color: var(--text); box-shadow: none; }
.btn--ghost:hover { background: var(--primary-soft); }

/* Шаги */
.steps { display: grid; gap: 40px; margin-top: 36px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step__num {
  margin-top: -22px; position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 900; font-size: 20px; border: 4px solid var(--bg);
}
.step h3 { margin-top: 12px; font-size: 22px; }
.step p { margin-top: 8px; color: var(--text-2); max-width: 320px; }

/* Паспорт */
.split { display: grid; gap: 36px; align-items: center; }
.split__visual { display: flex; justify-content: center; }
.sticker-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sticker-row span {
  width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 30px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.sticker-row span:nth-child(odd) { transform: rotate(-7deg); }
.sticker-row span:nth-child(even) { transform: rotate(6deg); }

/* Направления */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.cat { border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.cat__emoji { font-size: 30px; }
.cat b { display: block; font-size: 16px; line-height: 1.2; }
.cat small { color: var(--text-2); font-weight: 700; font-size: 13px; }

/* Сезон */
.seasons { display: grid; gap: 14px; margin-top: 28px; }
.season {
  border-radius: var(--radius); padding: 22px; color: #fff; display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow);
}
.season__emoji { font-size: 44px; }
.season h3 { font-size: 22px; }
.season p { opacity: .92; margin-top: 4px; font-weight: 700; }

/* Польза */
.benefits { display: grid; gap: 14px; margin-top: 28px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.benefit > span { font-size: 32px; }
.benefit h3 { margin-top: 10px; font-size: 19px; }
.benefit p { margin-top: 6px; color: var(--text-2); font-size: 16px; }

/* Цены */
.prices { display: grid; gap: 16px; margin-top: 28px; max-width: 860px; }
.price { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.price--pro { border: 2.5px solid var(--primary); box-shadow: var(--shadow); }
.price__badge {
  position: absolute; top: -14px; left: 24px; background: var(--green); color: #fff;
  padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 800;
}
.price h3 { font-size: 22px; }
.price__value { margin-top: 8px; font-size: 38px; font-weight: 900; }
.price__value small { font-size: 18px; color: var(--text-2); font-weight: 700; }
.price__sub { color: var(--text-2); font-size: 15px; font-weight: 700; }
.price ul { margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.price li { padding-left: 30px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 800; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 26px; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

/* Скачать */
.download { text-align: center; background: radial-gradient(circle at 50% 0%, #ffe3d8, var(--bg) 70%); }
.download__inner { display: flex; flex-direction: column; align-items: center; }
.download__icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); margin-bottom: 22px; }
.download .section__lead { margin-left: auto; margin-right: auto; }
.qrs { display: none; gap: 28px; justify-content: center; margin-top: 36px; }
.qr { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.qr__code { width: 180px; height: 180px; }
.qr__code svg { width: 100%; height: 100%; display: block; }
.qr figcaption { margin-top: 10px; display: flex; flex-direction: column; font-size: 14px; color: var(--text-2); }
.qr figcaption b { color: var(--text); font-size: 16px; }

.footer { padding: 28px 0 110px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.footer__inner { display: flex; flex-direction: column; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { text-decoration: none; font-weight: 700; }

/* Липкая кнопка на телефоне */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }

/* ---------- Реквизиты в подвале (legal.js) ---------- */
.req { display: grid; gap: 2px; }
.req b { color: var(--text); }
.req__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
mark.todo { background: #fff3bf; color: #6b5300; border-radius: 6px; padding: 0 5px; font-weight: 700; }

/* ---------- Окно о cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 560px; margin: 0 auto; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; font-size: 15px;
}
.cookie p { color: var(--text-2); }
.cookie a { color: var(--text); }
.cookie__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__btns .btn { flex: 1 1 140px; min-height: 46px; font-size: 15px; box-shadow: none; }
.cookie .btn--ghost { background: var(--surface-alt); color: var(--text); }
.cookie .btn--ghost:hover { background: var(--primary-soft); }
.footer__req { margin-top: 18px; display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.footer__req a { font-weight: 700; color: var(--text-2); }
.footer__cookie { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }

/* ---------- Планшет и компьютер ---------- */
@media (min-width: 720px) {
  .pains { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr 1fr; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 980px) {
  body { font-size: 18px; }
  .topbar__nav { display: flex; }
  .topbar .btn--small { margin-left: 8px; }
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .phone { width: 300px; }
  .phone--sm { width: 240px; }
  .pains { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .seasons { grid-template-columns: repeat(3, 1fr); }
  .try { grid-template-columns: 380px 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .section { padding: 96px 0; }
  .qrs { display: flex; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Ссылки на покупку на сайте */
.price__alt { display: block; margin-top: 12px; text-align: center; font-weight: 800; color: var(--text-2); font-size: 15px; }
.topbar__login { font-weight: 800; font-size: 15px; color: var(--text-2); text-decoration: none; margin-left: auto; margin-right: 12px; }
@media (min-width: 980px) { .topbar__login { margin-left: 8px; margin-right: 0; } }

/* ---------- Живое приложение в телефоне ---------- */
.live__grid { display: grid; gap: 36px; align-items: center; }
.live__steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.live__steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; counter-increment: s; }
.live__steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 900;
}
.live__steps li::before { grid-row: span 2; }
.live__steps b { grid-column: 2; font-size: 18px; align-self: end; }
.live__steps span { grid-column: 2; color: var(--text-2); font-size: 15px; }
.live__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.linkbtn-plain { background: none; border: 0; padding: 4px; font: inherit; font-weight: 800; color: var(--text-2); text-decoration: underline; cursor: pointer; }
.live__visual { display: grid; justify-items: center; gap: 14px; }
.live__full { font-weight: 800; font-size: 15px; color: var(--text-2); }

.live-phone {
  width: min(360px, 86vw); padding: 12px; border-radius: 56px; background: #16120e;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a332c;
}
.live-phone__screen {
  position: relative; aspect-ratio: 390 / 844; border-radius: 44px; overflow: hidden; background: var(--bg);
  --s: 1;
}
.live-phone__status {
  position: absolute; inset: 0 0 auto 0; height: 50px; z-index: 2; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0; font-weight: 800; font-size: 15px;
}
.live-phone__icons { font-size: 10px; letter-spacing: 1px; }
.live-phone__island { position: absolute; left: 50%; top: 11px; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #000; }
.live-phone__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Приложение рисуется в размере iPhone (390 точек) и уменьшается под рамку */
.live-phone__app {
  position: absolute; left: 0; top: calc(50px * var(--s)); width: 390px; height: calc((844px - 50px)); border: 0;
  transform: scale(var(--s)); transform-origin: 0 0; background: var(--bg); opacity: 0; transition: opacity .3s;
}
.live-phone__app.is-ready { opacity: 1; }
.live-phone__status { height: calc(50px * var(--s)); }
@media (min-width: 980px) {
  .live__grid { grid-template-columns: 1fr auto; gap: 64px; }
}
