:root {
  --ink: #241d36; --muted: #6b6185; --lav: #c9b8ff; --pink: #ffc4dc; --mint: #bff0e0;
  --violet: #8f74f0; --rose: #e57fae; --glass: rgba(255,255,255,.55); --line: rgba(143,116,240,.18);
  --grad: linear-gradient(120deg, #8f74f0 0%, #c77fd6 55%, #ec8bb3 100%);
  --radius: 22px; --shadow: 0 20px 60px rgba(79,52,160,.14), 0 2px 6px rgba(79,52,160,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); line-height: 1.6; font-size: 17px;
  background: linear-gradient(165deg, #f3eeff 0%, #fbeef6 45%, #eef8f4 100%); background-attachment: fixed; overflow-x: hidden;
}
a { color: var(--violet); }
img { max-width: 100%; display: block; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .65; animation: drift 20s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 420px; height: 420px; background: var(--lav); top: -120px; left: -120px; }
.bg i:nth-child(2) { width: 360px; height: 360px; background: var(--pink); top: 35%; right: -140px; animation-delay: -7s; }
.bg i:nth-child(3) { width: 380px; height: 380px; background: var(--mint); bottom: -160px; left: 15%; animation-delay: -13s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.15); } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6.4vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--violet); margin-bottom: 14px; }

/* навигация — стеклянная плашка */
.nav { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; max-width: 1120px; padding: 0 20px; }
.nav-in { display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 8px 30px rgba(79,52,160,.10); }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .8; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 16px/1 'Manrope', sans-serif; color: #fff; background: var(--grad); padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(199,127,214,.45), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(199,127,214,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.sm { padding: 11px 18px; font-size: 14px; }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: 0 6px 20px rgba(79,52,160,.10); border: 1px solid rgba(255,255,255,.9); }
.tg-ic { width: 18px; height: 18px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-top: 70px; padding-bottom: 40px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 36px; text-align: center; } .hero p.lead { margin-inline: auto; } .hero .cta-row { justify-content: center; } }

/* 3D-сцена: кошка + парящие карты */
.scene { position: relative; height: 520px; perspective: 1100px; }
.scene .halo { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(201,184,255,.9), rgba(255,196,220,.35) 55%, transparent 72%); filter: blur(10px); }
.scene .cat { position: absolute; left: 50%; bottom: 20px; width: 300px; transform: translateX(-50%); filter: drop-shadow(0 30px 40px rgba(45,37,64,.35)); }
.tcard { position: absolute; width: 132px; height: 212px; border-radius: 16px; transform-style: preserve-3d;
  background: linear-gradient(160deg, #fffaf0, #f3e6ff); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 50px rgba(79,52,160,.28), inset 0 0 0 6px rgba(255,255,255,.55), inset 0 0 0 7px rgba(143,116,240,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 10px; text-align: center;
  animation: float 7s ease-in-out infinite; }
.tcard .num { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--violet); }
.tcard .sym { font-size: 46px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); }
.tcard .nm { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tcard::after { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.7) 45%, transparent 60%); opacity: .6; }
.tcard.c1 { left: 2%; top: 40px; --r: -16deg; transform: rotateY(18deg) rotateZ(var(--r)); }
.tcard.c2 { right: 4%; top: 10px; --r: 12deg; transform: rotateY(-20deg) rotateZ(var(--r)); animation-delay: -2.5s; }
.tcard.c3 { right: 0; top: 260px; --r: 6deg; width: 112px; height: 180px; transform: rotateY(-28deg) rotateZ(var(--r)); animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -16px; } }
.spark { position: absolute; color: #fff; font-size: 22px; text-shadow: 0 0 12px #c9b8ff; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; transform: scale(.7); } }
@media (max-width: 860px) { .scene { height: 400px; } .scene .cat { width: 230px; } .tcard { width: 100px; height: 160px; } .tcard .sym { font-size: 34px; } .tcard.c3 { top: 200px; width: 88px; height: 140px; } }
@media (prefers-reduced-motion: reduce) { .tcard, .bg i, .spark { animation: none; } }

/* секции */
section.block { padding-top: 70px; padding-bottom: 70px; }
.center { text-align: center; }
.glass { background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.pain { padding: 26px; font-size: 18px; position: relative; }
.pain .bubble { display: inline-block; background: #fff; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 600; box-shadow: 0 6px 16px rgba(79,52,160,.08); margin-bottom: 12px; }
.pain .read { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.step { padding: 28px; }
.step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 18px 'Playfair Display', serif; color: #fff; background: var(--grad); margin-bottom: 16px; box-shadow: 0 10px 20px rgba(199,127,214,.4); }

/* пример расклада — чат */
.chat { max-width: 640px; margin: 0 auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 16px; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.luna { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 6px 16px rgba(79,52,160,.08); }
.msg .who { display: block; font-size: 12px; font-weight: 800; color: var(--violet); margin-bottom: 4px; }
.mini-cards { display: flex; gap: 8px; margin: 8px 0; }
.mini-cards span { flex: 1; background: linear-gradient(160deg,#fffaf0,#f3e6ff); border-radius: 10px; padding: 8px 6px; font-size: 12px; text-align: center; border: 1px solid var(--line); font-weight: 700; }

.feat { padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.feat .ic { font-size: 28px; }
.feat h3 { font-size: 19px; margin-bottom: 4px; font-family: 'Manrope', sans-serif; font-weight: 800; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

.price { padding: 28px; }
.price .amt { font: 600 34px 'Playfair Display', serif; margin: 6px 0; }
.price.hl { background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(243,230,255,.85)); outline: 2px solid rgba(143,116,240,.35); }

details.faq { padding: 18px 22px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--violet); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.final { padding: 56px 28px; text-align: center; margin: 40px 0 70px; }

/* статьи и карты */
.crumbs { font-size: 14px; color: var(--muted); margin: 34px 0 10px; }
.crumbs a { color: var(--muted); }
article.post { padding: 10px 0 40px; }
article.post h1 { font-size: clamp(34px, 5vw, 54px); }
article.post h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.6em; }
article.post h3 { margin-top: 1.3em; }
article.post p, article.post li { font-size: 18px; }
article.post blockquote { margin: 1.2em 0; padding: 16px 20px; border-left: 4px solid var(--violet); background: rgba(255,255,255,.6); border-radius: 0 14px 14px 0; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.cta-box { padding: 26px; margin: 34px 0; display: flex; gap: 18px; align-items: center; }
.cta-box svg { width: 72px; height: 72px; flex: none; }
.cta-box h3 { margin: 0 0 6px; font-size: 22px; }
.cta-box p { margin: 0 0 14px; color: var(--muted); font-size: 16px !important; }
@media (max-width: 600px) { .cta-box { flex-direction: column; text-align: center; } }
.yn { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(79,52,160,.08); }
.card-hero { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin-bottom: 20px; }
.card-hero .tcard { position: relative; animation: none; transform: rotate(-4deg); width: 160px; height: 256px; }
@media (max-width: 600px) { .card-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.list a { padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.list a:hover { outline: 2px solid rgba(143,116,240,.35); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.posts a { padding: 24px; text-decoration: none; color: var(--ink); display: block; transition: transform .2s; }
.posts a:hover { transform: translateY(-3px); }
.posts h3 { font-size: 22px; }
.posts p { color: var(--muted); font-size: 15px; margin: 0; }

/* инструменты */
.tool { padding: 30px; text-align: center; max-width: 720px; margin: 0 auto; }
.tool input { width: 100%; max-width: 520px; padding: 16px 20px; border-radius: 999px; border: 1px solid var(--line); font: 500 17px 'Manrope', sans-serif; background: #fff; outline: none; }
.tool input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(143,116,240,.15); }
.deck { display: flex; justify-content: center; gap: 12px; margin: 26px 0; flex-wrap: wrap; perspective: 900px; }
.deck button { width: 92px; height: 148px; border-radius: 14px; border: 0; cursor: pointer; background: linear-gradient(160deg, #3a2f5c, #251d3d);
  box-shadow: 0 16px 30px rgba(36,29,54,.35), inset 0 0 0 5px rgba(255,255,255,.08); color: #ffe2a8; font-size: 30px; transition: transform .25s; }
.deck button:hover { transform: translateY(-8px) rotateX(8deg); }
.result { display: none; margin-top: 10px; }
.result.on { display: block; animation: rise .5s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.result .tcard { position: relative; margin: 0 auto 18px; animation: flip .7s ease; }
.result .tcard.rev { transform: rotate(180deg); }
@keyframes flip { from { transform: rotateY(90deg); } }

footer { padding: 40px 0 60px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-direction: column; gap: 6px; }
