/* Перезагрузка жизни — dark neon, mobile first. No frameworks, system fonts only. */
:root {
  --bg: #121826;
  --panel: #1A2235;
  --tile: #243049;
  --text: #E8ECF4;
  --muted: #7F8AA3;
  --input: #7FD4FF;
  --pink: #FF3D7F;
  --yellow: #FFC531;
  --green: #2ED3A0;
  --blue: #4EA8F5;
  --purple: #9B5CF6;
  --accent: var(--pink);
  --accent-2: var(--purple);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --buy: linear-gradient(135deg, #FF3D7F 0%, #FF3D7F 35%, #9B5CF6 100%);
  color-scheme: dark;
}
.theme-budget { --accent: var(--green); --accent-2: var(--blue); }
.theme-wheel { --accent: var(--purple); --accent-2: var(--pink); }
.theme-habits { --accent: var(--pink); --accent-2: var(--yellow); }
.theme-planner { --accent: var(--blue); --accent-2: var(--purple); }
.theme-health { --accent: var(--yellow); --accent-2: var(--green); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(600px 400px at 85% -80px, rgba(155, 92, 246, .22), transparent 70%),
    radial-gradient(500px 380px at -10% 120px, rgba(255, 61, 127, .16), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.55 var(--font);
  overflow-x: clip; /* not hidden: hidden on html/body breaks position: sticky */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--input); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
:focus-visible { outline: 3px solid var(--input); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.page-narrow { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.section { padding-top: 48px; padding-bottom: 8px; }
.muted { color: var(--muted); }

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.h1 { margin: 0 0 14px; font-size: clamp(28px, 7.4vw, 52px); line-height: 1.08; font-weight: 850; letter-spacing: -.02em; }
.h2 { margin: 0 0 20px; font-size: clamp(24px, 5.6vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 750; }
.lead { margin: 0 0 20px; color: #C9D1E0; font-size: clamp(17px, 2.4vw, 20px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 14px;
  background: var(--tile); color: var(--text);
  font: 750 16px/1.2 var(--font);
  text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-buy {
  background: var(--buy); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 61, 127, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-xl { min-height: 60px; padding: 16px 28px; font-size: 19px; border-radius: 16px; width: 100%; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.btn-ghost { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-ghost:hover { background: rgba(46, 211, 160, .1); color: var(--green); }
.btn-cta {
  min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 12px;
  background: var(--yellow); color: var(--bg);
  box-shadow: 0 0 22px -4px rgba(255, 197, 49, .7);
  white-space: nowrap;
}
.btn-cta:hover { color: var(--bg); }
.link-btn {
  display: inline-block; padding: 6px 0; border: 0; background: none;
  color: var(--input); font: 600 15px var(--font); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .btn-buy { animation: glow 2.6s ease-in-out infinite; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(255, 61, 127, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
  50% { box-shadow: 0 12px 42px -6px rgba(255, 61, 127, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 24, 38, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 48, 73, .9);
}
.header-row { display: flex; align-items: center; gap: 10px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 16px; line-height: 1.1; margin-right: auto; }
.logo b { color: var(--accent); font-weight: 800; }
.logo-mark { display: grid; grid-template-columns: 9px 9px; gap: 3px; flex: none; }
.logo-mark i { width: 9px; height: 9px; border-radius: 2px; }
.logo-mark i:nth-child(1) { background: var(--pink); }
.logo-mark i:nth-child(2) { background: var(--yellow); }
.logo-mark i:nth-child(3) { background: var(--green); }
.logo-mark i:nth-child(4) { background: var(--blue); }
.nav-btn {
  order: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 40px; border-radius: 12px; background: var(--tile); cursor: pointer;
}
.nav-btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-btn-icon, .nav-btn-icon::before, .nav-btn-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s; }
.nav-btn-icon::before, .nav-btn-icon::after { content: ""; position: absolute; left: 0; }
.nav-btn-icon::before { top: -6px; }
.nav-btn-icon::after { top: 6px; }
.nav-toggle:checked + .nav-btn .nav-btn-icon { background: transparent; }
.nav-toggle:checked + .nav-btn .nav-btn-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .nav-btn .nav-btn-icon::after { transform: translateY(-6px) rotate(-45deg); }
.btn-cta { order: 1; }
.nav { order: 3; display: none; width: 100%; padding: 6px 0 14px; }
.nav-toggle:checked ~ .nav { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.nav-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--muted)); box-shadow: 0 0 10px var(--c, transparent); }
.nav-budget { --c: var(--green); }
.nav-wheel { --c: var(--purple); }
.nav-habits { --c: var(--pink); }
.nav-planner { --c: var(--blue); }
.nav-health { --c: var(--yellow); }
.nav-link.is-active { border-color: var(--c); color: #fff; }
@media (max-width: 479px) {
  .header-row { gap: 8px; }
  .logo-text { font-size: 15px; line-height: 1.05; }
  .logo-text b { display: block; }
  .btn-cta { padding: 8px 11px; font-size: 13px; }
}
@media (min-width: 900px) {
  .header-row { flex-wrap: nowrap; gap: 16px; min-height: 66px; }
  .logo { margin-right: 0; }
  .nav-btn { display: none; }
  .nav { display: flex; order: 1; width: auto; padding: 4px; gap: 2px; margin: 0 auto;
    background: rgba(26, 34, 53, .7); border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px; }
  .nav-link { padding: 8px 14px; background: none; font-size: 14px; font-weight: 650; color: #C9D1E0; border-radius: 999px; gap: 8px; }
  .nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-link.is-active { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
  .nav-dot { width: 7px; height: 7px; }
  .btn-cta { order: 2; }
}

/* ---------- price & timer ---------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.price-old { color: var(--muted); font-size: 18px; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
.price-now { color: #fff; font-size: 30px; font-weight: 850; letter-spacing: -.01em; }
.price-pct {
  align-self: center; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--bg); font-weight: 850; font-size: 15px;
  box-shadow: 0 0 18px -4px rgba(255, 197, 49, .8);
}
.price-big .price-now { font-size: clamp(38px, 10vw, 52px); text-shadow: 0 0 28px rgba(255, 61, 127, .45); }
.price-big .price-old { font-size: 20px; }
.timer {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 61, 127, .55); background: rgba(255, 61, 127, .1);
  color: #FFB3CB; font-size: 14px; font-weight: 650;
}
.timer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.timer-clock { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bundle-math { margin: 0 0 8px; color: #C9D1E0; font-size: 17px; }
.bundle-math s { color: var(--muted); text-decoration-color: var(--pink); }
.bundle-math b { color: var(--yellow); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 12px; }
.hero-actions { display: grid; gap: 10px; margin: 0 0 16px; }
.hero-alt { color: var(--input); font-weight: 650; text-align: center; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #C9D1E0; font-size: 15px; }
.trust li { position: relative; padding-left: 26px; }
.trust li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46, 211, 160, .18); color: var(--green); font-size: 12px; font-weight: 900; line-height: 18px; text-align: center;
}
.hero-visual { min-width: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 56px; gap: 48px; }
  .hero-actions { grid-template-columns: auto; justify-items: start; }
  .btn-xl { width: auto; }
  .hero-alt { text-align: left; }
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  --c: var(--pink);
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--tile); border-top: 3px solid var(--c); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -24px var(--c); }
.card-budget { --c: var(--green); }
.card-wheel { --c: var(--purple); }
.card-habits { --c: var(--pink); }
.card-planner { --c: var(--blue); }
.card-health { --c: var(--yellow); }
.card-bundle { --c: var(--yellow); background: linear-gradient(160deg, rgba(255, 61, 127, .16), rgba(155, 92, 246, .16)), var(--panel); }
.card-link { flex: 1; display: block; padding: 18px 18px 8px; color: var(--text); text-decoration: none; }
.card-link:hover { color: var(--text); }
.card-chip { display: inline-block; margin-bottom: 10px; padding: 2px 9px; border-radius: 999px; background: var(--c); color: var(--bg); font-size: 13px; font-weight: 850; }
.card-title { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.card-text { margin: 0 0 8px; color: #B8C1D3; font-size: 15px; }
.card-more { color: var(--c); font-weight: 700; font-size: 15px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 18px; }
.card-price s { color: var(--muted); font-size: 14px; }
.card-price b { font-size: 20px; }

/* ---------- features / steps ---------- */
.features { display: grid; gap: 12px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } .features-4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--tile); }
.feature p { margin: 0; color: #B8C1D3; font-size: 15px; }
.feature-n { display: block; margin-bottom: 8px; color: var(--accent); font-size: 28px; font-weight: 900; line-height: 1; text-shadow: 0 0 18px var(--accent); }
.pains { display: grid; gap: 12px; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--tile); border-top: 3px solid var(--accent); }
.pain p { margin: 0; color: #B8C1D3; font-size: 15px; }
.pain-note { margin: 20px 0 0; max-width: 680px; color: var(--text); font-size: clamp(17px, 2.4vw, 20px); font-weight: 700; line-height: 1.4; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
/* 5 steps: three on the first row, two wider ones on the second */
@media (min-width: 760px) { .steps { grid-template-columns: repeat(6, 1fr); } .step { grid-column: span 2; } .step:nth-child(n+4) { grid-column: span 3; } }
.step { position: relative; padding: 18px 18px 18px 70px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--tile); counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px;
  background: var(--buy); color: #fff; font-weight: 900; font-size: 18px; line-height: 38px; text-align: center;
  box-shadow: 0 6px 20px -8px var(--pink);
}
.step p { margin: 0; color: #B8C1D3; font-size: 15px; }

/* ---------- shots ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
/* desktop: the main screen full width, the other two side by side */
@media (min-width: 900px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 18px; overflow: visible; }
  .shot:first-child { grid-column: 1 / -1; }
}
.shot { margin: 0; scroll-snap-align: start; }
.shot img {
  width: 100%; border-radius: 14px; border: 1px solid var(--tile); background: var(--panel);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 40px -28px var(--accent);
}
.shot-zoom { display: block; border-radius: 14px; cursor: zoom-in; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- bundle offer ---------- */
.bundle-box, .final {
  padding: 26px 20px; border-radius: 22px; text-align: center;
  border: 2px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, var(--pink), var(--purple), var(--blue)) border-box;
  box-shadow: 0 0 60px -30px var(--pink);
}
.bundle-box .price, .final .price { justify-content: center; }
.bundle-box .muted { max-width: 560px; margin: 0 auto 16px; }
.final .h2 { margin-bottom: 12px; }
@media (min-width: 900px) { .bundle-box, .final { padding: 40px; } }

/* ---------- lead form ---------- */
.lead-box { display: grid; gap: 16px; padding: 22px 18px; border-radius: 22px; border: 2px dashed rgba(46, 211, 160, .55); background: rgba(46, 211, 160, .05); }
.lead-box .kicker { color: var(--green); }
.lead-box .h2 { margin-bottom: 8px; }
.lead-box .muted { margin: 0; }
.lead-form { display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) { .lead-box { grid-template-columns: 1.1fr .9fr; padding: 32px; align-items: center; } }

/* ---------- forms ---------- */
.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--tile); background: var(--bg); color: var(--input);
  font: 600 17px var(--font); /* >=16px: no iOS zoom on focus */
}
.input::placeholder { color: #56627C; }
.input:focus { outline: none; border-color: var(--input); box-shadow: 0 0 0 3px rgba(127, 212, 255, .2); }
.field { display: block; }
.field-label { display: block; margin-bottom: 6px; color: #C9D1E0; font-size: 14px; font-weight: 650; }
.field-error { margin: 6px 0 0; color: #FF8FB1; font-size: 14px; font-weight: 650; }
.check { display: flex; align-items: flex-start; gap: 10px; color: #C9D1E0; font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pink); }
.check a { color: inherit; text-decoration: underline; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 15px; font-weight: 650; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: #FF8FB1; }
.resend-form { display: grid; gap: 10px; margin: 0 0 12px; }
@media (min-width: 640px) { .resend-form { grid-template-columns: 1fr auto; } .resend-form .btn-block { width: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 14px; background: var(--panel); border: 1px solid var(--tile); }
.faq-item summary {
  position: relative; padding: 16px 48px 16px 18px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px;
  background: var(--tile); color: var(--accent); font-size: 20px; line-height: 26px; text-align: center; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: #B8C1D3; }
.faq-a p { margin: 0; }

/* ---------- sticky buy bar (mobile) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(26, 34, 53, .96); border-top: 1px solid var(--tile);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sticky-buy .btn { flex: none; min-width: 140px; }
.sticky-price s { color: var(--muted); font-size: 14px; margin-right: 4px; }
.sticky-price b { font-size: 22px; }
.modal-open .sticky-buy { display: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; padding: 36px 0 calc(96px + env(safe-area-inset-bottom)); background: #0E1320; border-top: 1px solid var(--tile); }
@media (min-width: 900px) { .site-footer { padding-bottom: 32px; } }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-title { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--input); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--tile); color: var(--muted); font-size: 13px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 11, 20, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; gap: 12px;
  padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--panel); border: 1px solid var(--tile); border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(255, 61, 127, .45);
}
@media (prefers-reduced-motion: no-preference) { .modal:not([hidden]) .modal-card { animation: sheet-up .22s ease-out; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 600px) {
  .modal { align-items: center; padding: 16px; }
  .modal-card { border-radius: 22px; border-bottom: 1px solid var(--tile); padding: 28px; }
}
.modal-x {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--tile); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-kicker { margin: 0; padding-right: 40px; color: var(--green); font-size: 13px; font-weight: 700; }
.modal-title { margin: 0; padding-right: 40px; font-size: 22px; line-height: 1.2; }
.price-modal { margin: 0; }
.price-modal .price-now { font-size: 30px; }
.buy-legal { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.buy-hint {
  margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 197, 49, .08); border: 1px solid rgba(255, 197, 49, .3);
  color: #F3D98A; font-size: 13px; line-height: 1.45;
}

/* ---------- online wheel of life (wheel.js) ---------- */
.wheel-intro { margin: -8px 0 18px; }
.wheel-tool { display: grid; gap: 18px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--tile); }
.wheel-chart { min-width: 0; aspect-ratio: 480 / 392; } /* = SVG viewBox: no layout shift when wheel.js draws */
.wheel-chart svg, .wheel-chart img { display: block; width: 100%; height: auto; }
.wheel-side { display: grid; gap: 16px; align-content: start; }
.wheel-sliders { display: grid; gap: 10px; }
.wheel-row label { display: flex; justify-content: space-between; gap: 10px; color: var(--c); font-weight: 750; font-size: 15px; }
.wheel-row output { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; font-weight: 850; }
.wheel-row input { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--c); cursor: pointer; }
.wheel-result { padding: 14px 16px; border-radius: 14px; background: var(--tile); }
.wheel-result p { margin: 0; }
.wheel-result p + p, .wheel-score + p { margin-top: 4px; }
.wheel-result b { font-weight: 850; }
.wheel-hint { color: #C9D1E0; font-size: 15px; }
.wheel-cta { line-height: 1.3; }
@media (min-width: 900px) {
  .wheel-tool { grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 24px; align-items: center; }
}

/* ---------- misc pages ---------- */
.notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 197, 49, .5); background: rgba(255, 197, 49, .08); color: #F3D98A; font-weight: 650; }
.thanks { text-align: center; }
.thanks-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(46, 211, 160, .15); color: var(--green); font-size: 38px; font-weight: 900; line-height: 72px;
  box-shadow: 0 0 40px -6px rgba(46, 211, 160, .7);
}
.copy-links { margin: 24px 0; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--tile); text-align: left; }
.copy-links ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.poll { margin: 20px 0; }
.thanks-help { margin-top: 28px; color: #C9D1E0; }
.legal h2 { margin-top: 26px; }
.legal p { color: #C9D1E0; }
.contact-card { display: grid; gap: 4px; padding: 18px 20px; margin: 0 0 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--tile); }
.contact-card p { margin: 0 0 8px; }

/* ---------- tweaks ---------- */
.bundle-math b, .bundle-math s { white-space: nowrap; }
.card-foot .btn-small:not(.btn-buy) { background: var(--c); color: var(--bg); box-shadow: 0 6px 18px -8px var(--c); }
@media (min-width: 640px) and (max-width: 1179px) { .nav-toggle:checked ~ .nav { grid-template-columns: repeat(2, 1fr); } }

/* Cookie notice */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  max-width: 640px; margin: 0 auto; padding: 12px 12px 12px 16px;
  background: rgba(26, 34, 53, .97); border: 1px solid var(--tile); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.4; color: #C9D1E0;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1 1 auto; }
.cookie-notice a { color: inherit; text-decoration: underline; }
.cookie-notice .btn { flex: none; padding: 10px 18px; }
@media (max-width: 899px) {
  .cookie-notice { left: 10px; right: 10px; font-size: 13px; gap: 10px; }
  /* над мобильной панелью «Купить», а не поверх неё */
  body:has(.sticky-buy) .cookie-notice { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .modal-open .cookie-notice { display: none; }
}

/* ---------- phone mockups (hero): real table screenshots in a CSS phone ---------- */
.phone {
  --c: var(--accent);
  position: relative; width: var(--pw, 230px); aspect-ratio: 9 / 18.6; padding: 7px;
  border-radius: calc(var(--pw, 230px) * .16);
  background: linear-gradient(150deg, #3A4766 0%, #161D30 36%, #0B0F1A 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .13), inset 0 0 0 4px #0B0F1A,
    0 40px 70px -34px rgba(0, 0, 0, .95), 0 0 64px -16px var(--c);
}
.phone::before { /* island */
  content: ""; position: absolute; z-index: 2; top: calc(7px + 1.6%); left: 50%; width: 30%; height: 3.4%;
  transform: translateX(-50%); border-radius: 999px;
  background: radial-gradient(circle at 78% 50%, #26324D 0 14%, transparent 16%), #05070D;
}
.phone::after { /* side button */
  content: ""; position: absolute; right: -2px; top: 24%; width: 3px; height: 11%; border-radius: 0 3px 3px 0; background: #2A3550;
}
.phone-screen {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw, 230px) * .135); background: var(--bg);
}
.phone-screen::before { content: ""; flex: none; height: 7.5%; background: #0E1320; } /* status bar under the island */
.phone-screen::after { /* glass glare */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 34%);
}
.phone-screen img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.phone-budget { --c: var(--green); }
.phone-wheel { --c: var(--purple); }
.phone-habits { --c: var(--pink); }
.phone-planner { --c: var(--blue); }
.phone-health { --c: var(--yellow); }

.hero-phone { --pw: 216px; position: relative; display: grid; justify-items: center; padding: 6px 0 8px; }
.hero-chip {
  position: absolute; z-index: 3; left: calc(50% - var(--pw) / 2 - 38px); bottom: 12%; width: 88px; padding: 9px;
  border-radius: 22px; background: rgba(26, 34, 53, .8); border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 34px -14px var(--accent);
}
.phone-fan {
  --pw: 164px; position: relative; height: calc(var(--pw) * 2.07 + 30px); margin: 0 auto; width: 100%; max-width: 520px;
}
.phone-fan .phone { position: absolute; left: 50%; top: 0; margin-left: calc(var(--pw) / -2); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.phone-fan .fan-0 { z-index: 1; transform: translateX(-52%) translateY(22px) rotate(-9deg) scale(.86); }
.phone-fan .fan-1 { z-index: 2; }
.phone-fan .fan-2 { z-index: 1; transform: translateX(52%) translateY(22px) rotate(9deg) scale(.86); }
.phone-fan .fan-0 img, .phone-fan .fan-2 img { filter: brightness(.82); }
.phone-fan .hero-chip { left: 0; bottom: 4%; width: 76px; }
@media (min-width: 400px) { .phone-fan { --pw: 180px; } }
@media (min-width: 900px) {
  .hero-phone { --pw: 286px; }
  .phone-fan { --pw: 236px; }
  .phone-fan .hero-chip { left: 2%; bottom: 10%; width: 88px; }
}
@media (hover: hover) {
  .phone-fan:hover .fan-0 { transform: translateX(-60%) translateY(14px) rotate(-12deg) scale(.86); }
  .phone-fan:hover .fan-2 { transform: translateX(60%) translateY(14px) rotate(12deg) scale(.86); }
}

/* ---------- decorative mini-visuals drawn in code (partials/viz.php) ---------- */
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.card-link { position: relative; }
.card-viz {
  position: absolute; top: 14px; right: 14px; width: 62px; height: 62px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); transition: transform .3s ease;
}
.card-title { padding-right: 66px; }
.card:hover .card-viz { transform: rotate(-6deg) scale(1.08); }
.bundle-viz { width: 72px; height: 72px; margin: 0 auto 12px; filter: drop-shadow(0 0 16px rgba(255, 61, 127, .35)); }
/* section headers: a tiny neon bar chart in table colors */
.section > .h2::before {
  content: ""; display: block; width: 30px; height: 16px; margin-bottom: 10px;
  background:
    linear-gradient(var(--pink) 0 0) 0 100% / 4px 55% no-repeat,
    linear-gradient(var(--yellow) 0 0) 6.5px 100% / 4px 100% no-repeat,
    linear-gradient(var(--green) 0 0) 13px 100% / 4px 72% no-repeat,
    linear-gradient(var(--blue) 0 0) 19.5px 100% / 4px 40% no-repeat,
    linear-gradient(var(--purple) 0 0) 26px 100% / 4px 86% no-repeat;
  filter: drop-shadow(0 0 6px rgba(155, 92, 246, .45));
}

/* ---------- habit grid demo (partials/habit-demo.php + habit-demo.js) ---------- */
.hd-band { padding-top: 24px; }
.hd-wrap { margin: 0 0 18px; }
.hd {
  position: relative; max-width: 560px; margin: 0 auto; padding: 14px 12px 12px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(36, 48, 73, .45), rgba(26, 34, 53, .95)), var(--panel);
  border: 1px solid var(--tile); box-shadow: 0 30px 60px -40px #000, 0 0 70px -34px var(--pink);
  transition: opacity .45s ease;
}
.hd.is-fade { opacity: .2; }
.hd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 2px 10px; color: var(--muted); font-size: 13px; }
.hd-month { margin-right: auto; color: var(--text); font-size: 15px; font-weight: 800; }
.hd-stat b { color: var(--yellow); font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; }
.hd-fire b { color: var(--pink); }
.hd-grid { display: grid; grid-template-columns: 70px repeat(var(--days), minmax(0, 1fr)); gap: 3px; align-items: center; }
.hd-day { border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; transition: background .2s, color .2s; }
.hd-day.is-today { background: var(--yellow); color: var(--bg); }
.hd-name { overflow: hidden; padding-right: 4px; color: var(--c); font-size: 11px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.hd-cell { position: relative; display: block; aspect-ratio: 1; border-radius: 4px; background: var(--tile); box-shadow: inset 0 0 0 1px #33405E; }
.hd-cell.is-on { background: var(--c); box-shadow: 0 0 10px -3px var(--c); }
.hd-cell.is-on::after {
  content: ""; position: absolute; left: 37%; top: 20%; width: 26%; height: 46%;
  border: solid rgba(18, 24, 38, .85); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hd-finger {
  position: absolute; z-index: 2; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 8px 18px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(.3, .7, .3, 1), opacity .3s;
}
.hd-finger.is-on { opacity: .85; }
@media (min-width: 520px) {
  .hd { padding: 18px 18px 16px; }
  .hd-grid { grid-template-columns: 96px repeat(var(--days), minmax(0, 1fr)); gap: 4px; }
  .hd-name { font-size: 13px; }
  .hd-day { font-size: 11px; line-height: 20px; }
}

/* ---------- motion (all of it optional) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-phone .phone { animation: float 6s ease-in-out infinite; }
  .hero-chip { animation: float 6s ease-in-out -3s infinite; }
  .phone-fan .phone { animation: float 7s ease-in-out infinite; }
  .phone-fan .fan-0 { animation-delay: -2.3s; }
  .phone-fan .fan-2 { animation-delay: -4.6s; }
  .viz-pulse { animation: vizpulse 2.8s ease-in-out infinite; }
  .hd-cell.is-pop { animation: hdpop .36s ease-out; }
  .hd-finger.is-tap { animation: hdtap .3s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-finger { display: none; }
  .phone-fan .phone { transition: none; }
}
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes vizpulse { 50% { opacity: .55; } }
@keyframes hdpop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: none; } }
@keyframes hdtap { 50% { scale: .72; } }
