:root {
  --ink: #2b2540;
  --muted: #7b7194;
  --lav: #b9abff;
  --lav-d: #7d6cf2;
  --pink: #ffb8d2;
  --peach: #ffd2bf;
  --mint: #a9e7d6;
  --sky: #bcdcff;
  --glass: rgba(255, 255, 255, .46);
  --glass-strong: rgba(255, 255, 255, .66);
  --stroke: rgba(255, 255, 255, .75);
  --shadow: 0 10px 34px rgba(110, 90, 200, .14);
  --r: 22px;
  --card-w: 62px;
  --card-h: 100px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f2edff 0%, #fdeef5 45%, #eaf6f4 100%);
  overflow-x: hidden;
}
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 320px; height: 320px; background: var(--lav); top: -90px; left: -80px; }
.b2 { width: 280px; height: 280px; background: var(--pink); top: 30%; right: -110px; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: var(--mint); bottom: -120px; left: 10%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }

#app { max-width: 480px; margin: 0 auto; padding: 18px 16px 110px; }
.screen { display: none; animation: fade .35s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; margin: 8px 0 8px; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; margin-top: 22px; }
.title { font-size: 34px; line-height: 1.05; text-align: center; }
.title em { font-style: italic; background: linear-gradient(90deg, var(--lav-d), #e5739f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 4px 0 14px; }
[data-screen="home"] > .muted { text-align: center; }
.center-text { text-align: center; }
.fine { color: var(--muted); font-size: 11.5px; line-height: 1.45; text-align: center; margin-top: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--lav-d); margin: 4px 0 2px; text-align: center; }
.err { color: #d0577f; font-size: 13.5px; min-height: 18px; }
.hidden { display: none !important; }
.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* стекло */
.glass, .tile, .glass-btn, .field, .chip, .spread {
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:active { transform: scale(.97); }
.glass-btn { display: block; width: 100%; padding: 14px 18px; border-radius: 16px; font-weight: 600; transition: transform .15s, background .2s; }
.glass-btn.small { width: auto; margin: 14px auto 0; padding: 10px 18px; font-size: 14px; border-radius: 999px; }
.cta {
  display: block; width: 100%; padding: 16px; border-radius: 18px; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(120deg, #8f7cf7, #c88ff0 55%, #f39abf);
  box-shadow: 0 10px 28px rgba(140, 110, 240, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .5);
}
.cta.floating { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 448px; margin: 0 auto; z-index: 20; width: auto; }

textarea, input { font: inherit; color: var(--ink); width: 100%; border-radius: 16px; padding: 13px 15px; outline: none; resize: none; }
textarea.glass, input.glass { margin-bottom: 10px; }
.panel { border-radius: var(--r); padding: 6px; }
.panel textarea { background: transparent; border: 0; padding: 10px; }
textarea::placeholder, input::placeholder { color: #a79fbd; }

/* кошка */
.cat-wrap { width: 150px; height: 150px; margin: 4px auto 0; }
.cat-wrap.small { width: 104px; height: 104px; }
.cat-wrap svg { width: 100%; height: 100%; }
.cat-eye { animation: blink 5s infinite; transform-origin: center 100px; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.cat-tail { animation: tail 3s ease-in-out infinite; transform-origin: 140px 170px; }
@keyframes tail { 50% { transform: rotate(-9deg); } }

/* плитки */
.tile { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 15px; border-radius: var(--r); margin: 10px 0; transition: transform .15s; }
.tile b { display: block; font-size: 15px; }
.tile small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tile-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--glass-strong); border: 1px solid var(--stroke); }
.tile.hero { padding: 18px; background: linear-gradient(120deg, rgba(185, 171, 255, .55), rgba(255, 184, 210, .5)); }
.tile.hero b { font-size: 17px; }
.tile .arrow { margin-left: auto; font-size: 20px; color: var(--lav-d); }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles2 .tile { flex-direction: column; align-items: flex-start; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 button { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; }

/* чипы и расклады */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.chip { border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 500; text-align: left; box-shadow: none; }
.chip.accent { background: linear-gradient(120deg, rgba(185, 171, 255, .5), rgba(255, 210, 191, .5)); }
.spreads { display: grid; gap: 8px; }
.spread { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 18px; text-align: left; box-shadow: none; transition: all .2s; }
.spread .n { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 700; background: var(--glass-strong); color: var(--lav-d); }
.spread b { display: block; font-size: 14.5px; }
.spread small { color: var(--muted); font-size: 12px; }
.spread .lock { margin-left: auto; font-size: 12px; color: var(--lav-d); white-space: nowrap; }
.spread.on { background: rgba(255, 255, 255, .78); border-color: var(--lav); box-shadow: 0 0 0 2px var(--lav), var(--shadow); }

/* скриншоты */
.drop { display: block; text-align: center; padding: 18px; border-radius: var(--r); border-style: dashed; cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.th { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(43, 37, 64, .6); color: #fff; font-size: 13px; line-height: 1; }

/* карты */
.card {
  width: var(--card-w); height: var(--card-h); border-radius: 10px; flex: none; position: relative;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.card .face { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.card .back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .85) 0 9%, transparent 10%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 4px, transparent 4px 9px),
    linear-gradient(150deg, #a996ff, #f3a6c8);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 14px rgba(120, 95, 210, .25);
}
.card .back::after { content: '☾✦☽'; position: absolute; inset: auto 0 8px; text-align: center; font-size: 9px; color: rgba(255, 255, 255, .9); letter-spacing: 1px; }
.card .front {
  transform: rotateY(180deg); background: linear-gradient(170deg, #fff, #f5efff);
  border: 2px solid #fff; box-shadow: 0 6px 16px rgba(120, 95, 210, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px;
}
.card .front .sym { font-size: 26px; }
.card .front .nm { font-size: 9.5px; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.card.rev .front .sym { transform: rotate(180deg); }
.card.flipped { transform: rotateY(180deg); }
.suit-cups .front { background: linear-gradient(170deg, #fff, #ffe6f0); }
.suit-wands .front { background: linear-gradient(170deg, #fff, #ffeadf); }
.suit-swords .front { background: linear-gradient(170deg, #fff, #e5f0ff); }
.suit-pents .front { background: linear-gradient(170deg, #fff, #e3f7ef); }
.suit-major .front { background: linear-gradient(170deg, #fff, #ece6ff); }

/* стол */
.q-line { text-align: center; font-family: 'Playfair Display', serif; font-size: 18px; margin: 4px 0 14px; }
.slots { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.slot { width: 74px; text-align: center; }
.slot .hole { width: 74px; height: 118px; border-radius: 12px; border: 1.5px dashed rgba(125, 108, 242, .45); background: rgba(255, 255, 255, .3); display: grid; place-items: center; }
.slot .hole .card { --card-w: 70px; --card-h: 114px; animation: drop .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes drop { from { transform: translateY(80px) scale(.8); opacity: 0; } }
.slot small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.2; }
.slots.count-5 .slot, .slots.count-5 .slot .hole { width: 60px; }
.slots.count-5 .slot .hole { height: 98px; }
.slots.count-5 .slot .hole .card { --card-w: 56px; --card-h: 92px; }
.slots.ready .hole .card.flipped { box-shadow: 0 0 0 3px rgba(185, 171, 255, .6); border-radius: 12px; }
.slots.glow .hole .card { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 12px rgba(185, 140, 255, .9)); } }

.shuffle-zone { padding-top: 10px; }
.stack { position: relative; width: 120px; height: 150px; margin: 10px auto 16px; }
.stack .card { position: absolute; left: 50%; top: 50%; margin: -60px 0 0 -37px; --card-w: 74px; --card-h: 120px; }
.stack.riffle .card:nth-child(odd) { animation: riffL 1.1s ease-in-out infinite; }
.stack.riffle .card:nth-child(even) { animation: riffR 1.1s ease-in-out infinite; }
@keyframes riffL { 0%, 100% { transform: translateX(0) rotate(0); } 40% { transform: translateX(-58px) rotate(-12deg); } 70% { transform: translateX(-6px) rotate(-2deg); } }
@keyframes riffR { 0%, 100% { transform: translateX(0) rotate(0); } 40% { transform: translateX(58px) rotate(12deg); } 70% { transform: translateX(6px) rotate(2deg); } }

.fan-zone { animation: fade .4s ease; }
.fan {
  display: flex; overflow-x: auto; overflow-y: visible; padding: 26px 30px 18px 52px; margin: 0 -16px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fan::-webkit-scrollbar { display: none; }
.fan .card { margin-left: -36px; scroll-snap-align: center; transform: rotate(var(--tilt)) translateY(var(--lift)); transition: transform .25s, opacity .3s; animation: deal .5s backwards; animation-delay: calc(var(--i) * 8ms); }
@keyframes deal { from { opacity: 0; transform: translateY(-40px) rotate(0); } }
.fan .card:hover { transform: rotate(var(--tilt)) translateY(-14px); }
.fan .card.taken { opacity: 0; pointer-events: none; transform: translateY(-60px) scale(.8); }

/* результат */
.q-title { text-align: center; font-size: 21px; margin-bottom: 14px; }
.res-cards { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.res-cards .card { --card-w: 58px; --card-h: 94px; }
.block { border-radius: var(--r); padding: 15px 16px; margin: 10px 0; }
.block h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--lav-d); }
.block p { margin: 0; line-height: 1.55; font-size: 15px; }
.block .card-line { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 184, 210, .6); margin-left: 6px; vertical-align: middle; }
.block.verdict { background: linear-gradient(130deg, rgba(185, 171, 255, .5), rgba(255, 210, 191, .5)); }
.block.verdict p { font-size: 16px; }
.block ul { margin: 0; padding-left: 18px; line-height: 1.55; }
.reply { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass-strong); margin-top: 8px; font-size: 14.5px; }
.reply span { flex: 1; }
.reply button { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(185, 171, 255, .35); }
.follow h4 { display: flex; align-items: center; gap: 6px; }
.follow .chips { padding: 6px 0 0; }
.follow .chip { width: 100%; padding: 12px 14px; font-size: 14px; }
.upsell { border-radius: var(--r); padding: 16px; margin-top: 14px; text-align: center; }
.upsell p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.answer { border-radius: var(--r); padding: 16px; white-space: pre-wrap; line-height: 1.6; font-size: 15px; }

.field { display: block; border-radius: 18px; padding: 10px 14px; margin-bottom: 10px; }
.field span { display: block; font-size: 12px; color: var(--muted); }
.field input { padding: 6px 0; background: transparent; border: 0; }
.perks { list-style: none; padding: 8px 16px; border-radius: var(--r); margin: 12px 0 16px; }
.perks li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .7); font-size: 14.5px; }
.perks li:last-child { border: 0; }

/* каталог раскладов */
.topics { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px; padding-left: 16px; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics .chip { white-space: nowrap; flex: none; }
.chip.on { background: linear-gradient(120deg, #8f7cf7, #c88ff0); color: #fff; border-color: transparent; }
.scards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scard {
  position: relative; text-align: left; padding: 14px 14px 12px; border-radius: 20px; min-height: 128px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9); transition: all .2s;
}
.scard b { display: block; font-size: 14.5px; line-height: 1.25; padding-right: 4px; }
.scard small { color: var(--muted); font-size: 12px; }
.scard.on { background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 2px var(--lav), var(--shadow); }
.scard .mini-deck { position: absolute; right: 10px; bottom: 10px; display: flex; }
.scard .mini-deck i { width: 18px; height: 28px; border-radius: 4px; margin-left: -8px; background: linear-gradient(150deg, #a996ff, #f3a6c8); border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(120, 95, 210, .25); }
.scard .mini-deck i:nth-child(odd) { transform: rotate(-8deg); }
.scard .mini-deck i:nth-child(even) { transform: rotate(7deg); }
.scard .lock { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgba(43, 37, 64, .78); color: #fff; }
#spreadPositions { margin: 10px 0 0; }
.ctx-toggle { display: block; width: 100%; text-align: left; margin: 14px 0 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .3); border: 1.5px dashed rgba(125, 108, 242, .4); font-weight: 600; font-size: 14px; color: var(--lav-d); }
.ctx-toggle small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ctx-toggle.open { border-style: solid; }
.drop-mini { display: inline-block; margin: 0 6px 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; cursor: pointer; }
#ctxBox .thumbs { padding: 0 6px; }
.soon { display: flex; flex-direction: column; border-radius: 18px; padding: 12px 14px; margin-top: 12px; opacity: .75; }
.soon small { color: var(--muted); font-size: 12px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pt { border-radius: 16px; padding: 10px 8px; text-align: center; }
.pt small { display: block; font-size: 11px; color: var(--muted); }
.pt b { display: block; font-family: 'Playfair Display', serif; font-size: 24px; color: var(--lav-d); }
.pt span { font-size: 11.5px; font-weight: 600; }
#psychToCards { margin-top: 12px; }

/* оплата */
.offer { position: relative; border-radius: var(--r); padding: 16px; margin: 12px 0; cursor: pointer; transition: all .2s; }
.offer.on { background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 2px var(--lav), var(--shadow); }
.offer.best.on { background: linear-gradient(130deg, rgba(225, 216, 255, .9), rgba(255, 225, 236, .9)); }
.offer .badge { position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 700; color: #fff; padding: 4px 10px; border-radius: 999px; background: linear-gradient(120deg, #8f7cf7, #f39abf); }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.offer-head b { font-size: 16px; }
.offer .pr { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; white-space: nowrap; }
.muted-s { color: var(--muted); font-size: 12.5px; }
.offer .perks { margin: 8px 0 0; padding: 0; background: none; border: 0; box-shadow: none; }
.offer .perks li { font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .8); }
.cur { display: flex; padding: 4px; border-radius: 999px; margin: 6px 0 10px; }
.cur button { flex: 1; padding: 9px; border-radius: 999px; font-size: 14px; font-weight: 600; background: transparent; }
.cur button.on { background: #fff; box-shadow: 0 2px 10px rgba(120, 95, 210, .18); }
#paidBtn { display: none; }

.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(125, 108, 242, .2); border-top-color: var(--lav-d); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; transition: all .3s; background: rgba(43, 37, 64, .88); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 14px; max-width: 86vw; text-align: center; z-index: 30; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* схемы: натальная карта, матрица, нумерология */
.chart-box { border-radius: var(--r); padding: 10px; margin: 10px 0; }
.chart-svg { width: 100%; height: auto; display: block; font-family: 'Manrope', 'Segoe UI Symbol', 'Noto Sans Symbols 2', sans-serif; }
.g-sign { font-size: 14px; fill: #5b4d7a; }
.g-house { font-size: 8.5px; fill: #9a8fb8; font-weight: 600; }
.g-house.on, .g-axis.on { fill: var(--lav-d); font-weight: 800; }
.g-axis { font-size: 8px; fill: #7d6cf2; font-weight: 700; }
.g-planet { font-size: 15px; fill: var(--ink); }
.g-planet.on { font-weight: 700; }
.g-center { font-size: 8px; fill: var(--muted); }
.m-sq, .m-sq2 { fill: rgba(255,255,255,.35); stroke: #b9abff; stroke-width: 1.4; }
.m-sq2 { stroke: #ffb8d2; }
.m-line { stroke: #cbbfff; stroke-width: 1.1; }
.m-line.thin { stroke: #ffd2e2; }
.m-line.love { stroke: #ef7ea6; stroke-dasharray: 3 3; }
.m-ring { fill: none; stroke: rgba(185,171,255,.35); stroke-dasharray: 2 4; }
.m-pt { fill: #fff; stroke: #b9abff; stroke-width: 1.6; }
.m-pt.rod { stroke: #ffb8d2; }
.m-pt.center { fill: #efe9ff; stroke: #7d6cf2; }
.m-pt.heart { fill: #ffe4ee; stroke: #ef7ea6; }
.m-pt.on { fill: #ffb8d2; stroke: #7d6cf2; stroke-width: 2.4; }
.m-num { font-size: 12px; font-weight: 700; fill: var(--ink); }
.m-num.big { font-size: 14px; }
.legend { border-radius: 16px; padding: 6px 10px; margin-top: 8px; }
.lg-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 6px 2px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.6); }
.lg-row:last-child { border-bottom: 0; }
.lg-row .lg-g { font-weight: 700; color: var(--lav-d); text-align: center; }
.lg-row .lg-v { color: var(--muted); text-align: right; font-size: 12px; }
.lg-row.on { background: rgba(255,184,210,.35); border-radius: 10px; }
.num-row { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0; }
.num-ball { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: var(--glass-strong); border: 1px solid var(--stroke); }
.num-ball b { font-family: 'Playfair Display', serif; font-size: 26px; }
.num-ball small { font-size: 11px; color: var(--muted); }
.num-ball.on { background: linear-gradient(130deg, rgba(185,171,255,.6), rgba(255,184,210,.6)); }
.num-plus { color: var(--lav-d); font-weight: 700; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; margin: 8px 0; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 4px 4px 10px; }
.check input { width: auto; }
.city-box { position: relative; }
.city-list { position: absolute; left: 0; right: 0; top: calc(100% - 6px); z-index: 5; border-radius: 16px; padding: 4px; background: rgba(255,255,255,.95); }
.city-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; font: inherit; border-radius: 12px; }
.city-list button small { color: var(--muted); }
.hidden { display: none !important; }

/* главная: статус подписки и баннер */
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 -6px; }
.brand { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--lav-d); }
.sub-pill { border: 1px solid var(--stroke); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(120deg, #9d8cf8, #ef8fb5); box-shadow: 0 6px 18px rgba(157, 140, 248, .35); }
.sub-pill.active { color: var(--lav-d); background: var(--glass-strong); box-shadow: var(--shadow); }
.sub-banner { position: relative; display: block; width: 100%; text-align: left; font: inherit; color: #fff; border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r); padding: 15px 16px 13px; margin: 2px 0 12px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #ffc2d9 0%, rgba(255,194,217,0) 55%), linear-gradient(125deg, #8f7cf7, #b48cf0 55%, #e98bb6);
  box-shadow: 0 12px 30px rgba(143, 124, 247, .35), inset 0 1px 0 rgba(255,255,255,.5); }
.sub-banner[hidden] { display: none; }
.sub-banner::after { content: '✦'; position: absolute; right: 14px; top: 8px; font-size: 40px; opacity: .18; }
.sb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sb-head b { font-family: 'Playfair Display', serif; font-size: 19px; }
.sb-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.sb-price small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.sb-perks { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 10px; }
.sb-perks i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.sb-foot { display: flex; align-items: center; justify-content: space-between; }
.sb-foot small { font-size: 11.5px; opacity: .9; }
.sb-cta { background: #fff; color: var(--lav-d); font-weight: 800; font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.sb-badge { display: inline-block; font-size: 11px; font-weight: 800; background: #fff; color: #e5739f; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.sb-badge[hidden] { display: none; }
.seg button { white-space: nowrap; font-size: 12.5px; }

/* пейволл: польза + три тарифа */
.perks-box { border-radius: var(--r); padding: 12px 14px; margin: 8px 0 12px; }
.perks-box .perks { margin: 0; }
.vs { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed rgba(125,108,242,.3); font-size: 13px; line-height: 1.45; color: var(--muted); }
.vs b { color: var(--ink); }
.offer.mini { padding-top: 11px; padding-bottom: 11px; opacity: .9; }
.offer.mini b { font-size: 14px; }
.sb-note { display: block; font-size: 12px; opacity: .92; margin-top: 3px; }
.perks-box .perks li { padding: 6px 0; font-size: 13.5px; line-height: 1.35; }
[data-screen="paywall"] .cat-wrap.small { width: 70px; height: 70px; margin-bottom: 0; }

/* промокод и цены в двух валютах */
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--lav-d); padding: 6px 10px; }
.promo-input { text-align: center; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.offer .pr { text-align: right; line-height: 1.1; }
.offer .pr small { display: block; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); }
.pay-in { font-size: 12px; color: var(--muted); margin: 12px 4px -2px; }

/* билет «Есть промокод?» */
.ticket { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink);
  margin: 0 0 12px; padding: 12px 14px; border-radius: 18px; border: 1.5px dashed #f2a65a;
  background: linear-gradient(120deg, rgba(255, 233, 196, .85), rgba(255, 214, 228, .8)); box-shadow: 0 8px 22px rgba(242, 166, 90, .18); }
.ticket[hidden] { display: none; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #f6eefc; }
.ticket::before { left: -8px; } .ticket::after { right: -8px; }
.tk-ic { font-size: 24px; animation: tk-wiggle 2.6s ease-in-out infinite; }
@keyframes tk-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.tk-txt { flex: 1; }
.tk-txt b { display: block; font-size: 15px; }
.tk-txt small { display: block; font-size: 12px; color: #8a6a55; margin-top: 1px; }
.tk-go { background: #fff; color: #d9822b; font-weight: 800; font-size: 13px; padding: 7px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(242, 166, 90, .25); }
@media (prefers-reduced-motion: reduce) { .tk-ic { animation: none; } }

.gift-pill { border: 1.5px dashed #f2a65a; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: #c56f1c;
  background: linear-gradient(120deg, rgba(255, 233, 196, .95), rgba(255, 214, 228, .9)); }
.gift-pill[hidden], .brand[hidden] { display: none; }

/* строка промокода над оплатой */
.promo-row { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; margin: 10px 0 0; border-radius: 16px;
  border: 1.5px dashed #f2a65a; background: linear-gradient(120deg, rgba(255, 239, 214, .85), rgba(255, 224, 236, .8)); }
.promo-row .pr-ic { font-size: 18px; }
.promo-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 4px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promo-row input::placeholder { font-weight: 500; letter-spacing: 0; text-transform: none; color: #a8836a; }
.promo-row button { border: 0; border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 13.5px; font-weight: 800; color: #fff; background: linear-gradient(120deg, #f2a65a, #ef8fb5); }
.promo-row.used { opacity: .65; }
.promo-row.used button { background: #d9cfe0; }
#payEmail { margin-top: 10px; }
#payPromoErr:empty { display: none; }
.title { font-size: min(34px, 8.2vw); }
.title .nw { white-space: nowrap; }
