:root {
  --bg: #07060d; --panel: rgba(22, 20, 36, .72); --panel2: rgba(31, 28, 50, .8); --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #f4f2ff; --muted: #a7a3c2; --dim: #6f6b8c;
  --violet: #8b5cf6; --pink: #ec4899; --amber: #f59e0b; --cyan: #22d3ee; --ok: #34d399; --bad: #fb7185;
  --grad: linear-gradient(135deg, #7c5cff 0%, #b14dff 50%, #ec4899 100%);
  --r: 22px; --r2: 14px; --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* фон: мягкое северное сияние */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 28s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #6d28d9; top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #be185d; top: 10vmax; right: -25vmax; animation-delay: -9s; opacity: .25; }
.aurora i:nth-child(3) { background: #0e7490; bottom: -35vmax; left: 20vmax; animation-delay: -18s; opacity: .18; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

/* шапка */
header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px) saturate(1.4); background: rgba(7, 6, 13, .55); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line2), 0 6px 20px rgba(139, 92, 246, .35); }
nav.main { display: flex; gap: 2px; margin-left: 18px; }
nav.main a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; transition: .15s; }
nav.main a.on, nav.main a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.spacer { flex: 1; }
.credits { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.credits::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.lang button { background: none; border: 0; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: var(--dim); font-weight: 700; font-size: 13px; }
.lang button.on { background: rgba(255, 255, 255, .1); color: var(--text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line2); }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-size: 18px; }
.profile { position: relative; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.ph-ava { display: flex; align-items: center; justify-content: center; background: var(--grad); font-weight: 800; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px; background: rgba(22, 19, 38, .98); border: 1px solid var(--line2); box-shadow: var(--shadow); z-index: 30; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu .who span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.menu-item:hover { color: var(--text); }
.menu-item svg { width: 18px; height: 18px; flex: none; }
.menu-item:hover { background: rgba(255, 255, 255, .07); }

/* кнопки, поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .05); cursor: pointer; text-decoration: none; font-weight: 700; transition: transform .1s, background .15s, box-shadow .2s, filter .15s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .1); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 24px rgba(160, 80, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 12px 32px rgba(160, 80, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.big { padding: 16px 28px; font-size: 17px; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.white { background: #fff; color: #18122b; border: 0; }
.btn.white:hover { background: #f1eefc; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
label.f { display: block; margin: 26px 0 10px; font-weight: 700; font-size: 15px; letter-spacing: .01em; }
label.f small { font-weight: 500; color: var(--dim); margin-left: 6px; }
.hint { color: var(--dim); font-size: 14px; margin: -4px 0 10px; }
input[type=text], input[type=number], textarea, select { width: 100%; padding: 14px 16px; border-radius: var(--r2); border: 1px solid var(--line2); background: rgba(9, 8, 18, .6); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: rgba(139, 92, 246, .8); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
textarea { min-height: 120px; resize: vertical; }
textarea.lyrics { min-height: 360px; line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; user-select: none; font-weight: 600; font-size: 15px; transition: .15s; }
.chip:hover { border-color: rgba(255, 255, 255, .3); }
.chip.on { border-color: transparent; background: linear-gradient(rgba(25, 18, 45, .9), rgba(25, 18, 45, .9)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 6px 20px rgba(139, 92, 246, .25); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* страницы */
main { padding: 34px 0 120px; min-height: calc(100vh - 140px); }
h1 { font-family: var(--display); font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(16px); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.narrow { max-width: 780px; margin: 0 auto; }

/* мастер */
.stepper { display: flex; gap: 8px; margin: 14px 0 22px; }
.stepper div { flex: 1; }
.stepper i { display: block; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); }
.stepper div.on i { background: var(--grad); }
.stepper span { display: block; font-size: 13px; color: var(--dim); margin-top: 7px; font-weight: 600; }
.stepper div.on span { color: var(--text); }
.actionbar { position: sticky; bottom: 16px; margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 14px 14px 22px; border-radius: 999px; background: rgba(16, 14, 28, .85); border: 1px solid var(--line2); backdrop-filter: blur(18px); box-shadow: var(--shadow); z-index: 5; }
.actionbar .sum { font-weight: 700; }
.actionbar .sum small { display: block; font-weight: 500; color: var(--dim); font-size: 13px; }

/* лендинг */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 600; color: var(--muted); }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; margin: 20px 0 18px; letter-spacing: -.03em; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero .row { gap: 12px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--dim); }
.player { position: relative; border-radius: 30px; padding: 26px; background: linear-gradient(160deg, rgba(139, 92, 246, .25), rgba(236, 72, 153, .12) 60%, rgba(245, 158, 11, .1)); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.player .art { aspect-ratio: 1; border-radius: 22px; background: radial-gradient(circle at 30% 25%, #f472b6, transparent 55%), radial-gradient(circle at 75% 70%, #a78bfa, transparent 55%), #1c1530; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; position: relative; }
.player .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player .art .tag { position: relative; font-family: var(--display); font-size: 22px; font-weight: 700; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin: 20px 4px 12px; }
.eq i { flex: 1; height: 100%; border-radius: 4px; background: var(--grad); animation: eq 1.1s ease-in-out infinite alternate; transform-origin: bottom; }
.eq i:nth-child(odd) { animation-duration: .8s; } .eq i:nth-child(3n) { animation-duration: 1.4s; } .eq i:nth-child(4n) { animation-delay: -.5s; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.player .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); font-size: 17px; }
.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.steps3 .card { position: relative; padding-top: 58px; }
.steps3 .card::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 22px; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); font-size: 15px; }
.steps3 h3, .feat h3 { font-size: 19px; margin-bottom: 6px; }
.feats { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.feat .ico { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); margin-bottom: 16px; }
.cta { text-align: center; padding: 50px 24px; border-radius: 30px; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(236, 72, 153, .22)); border: 1px solid var(--line2); }
.cta h2 { font-size: clamp(26px, 4vw, 38px); }
.faq details { padding: 18px 22px; border-radius: var(--r2); background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* песни и клипы */
.item { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.item .cover { aspect-ratio: 1; border-radius: 16px; object-fit: cover; width: 100%; background: radial-gradient(circle at 30% 25%, rgba(244, 114, 182, .7), transparent 55%), radial-gradient(circle at 75% 70%, rgba(167, 139, 250, .7), transparent 55%), #1c1530; }
.item .cover.wide { aspect-ratio: 16/9; }
.item video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16/9; }
.item h3 { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item audio { width: 100%; height: 40px; }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); transition: width .8s; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.badge.ok { color: var(--ok); } .badge.bad { color: var(--bad); } .badge.wait { color: var(--amber); }
.badge.wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.empty { text-align: center; padding: 60px 24px; }
.empty .ico { font-size: 44px; margin-bottom: 8px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 1.5px dashed var(--line2); display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; padding: 8px; transition: .15s; }
.ph:hover { border-color: rgba(139, 92, 246, .7); color: var(--text); }
.ph b { font-size: 26px; font-weight: 400; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); cursor: pointer; z-index: 1; }
.drop { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; transition: .15s; }
.drop:hover { border-color: rgba(139, 92, 246, .7); }
.drop .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(139, 92, 246, .18); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opt { padding: 16px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); cursor: pointer; transition: .15s; }
.opt:hover { border-color: rgba(255, 255, 255, .3); }
.opt.on { background: linear-gradient(rgba(25, 18, 45, .92), rgba(25, 18, 45, .92)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.opt b { display: block; font-size: 16px; }
.opt span { font-size: 14px; color: var(--muted); }
.opt .e { font-size: 26px; margin-bottom: 8px; display: block; }
details.lyr summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.lyrics { white-space: pre-wrap; color: #d9d6ea; font-size: 15px; }

/* баланс и цены */
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pack { text-align: center; padding: 26px 16px; cursor: pointer; transition: transform .15s, border-color .15s; position: relative; }
.pack:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .6); }
.pack .n { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1; }
.pack .u { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.pack .p { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 800; }
.pack.best { background: linear-gradient(rgba(25, 18, 45, .9), rgba(25, 18, 45, .9)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.pack.best::after { content: attr(data-tag); position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--grad); white-space: nowrap; }
.big-balance { font-family: var(--display); font-size: 44px; font-weight: 800; }

/* окна и уведомления */
.modal { position: fixed; inset: 0; background: rgba(4, 3, 10, .7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal .card { width: 100%; max-width: 460px; box-shadow: var(--shadow); background: rgba(22, 19, 38, .96); text-align: center; padding: 30px 26px; }
.modal .card.wide { max-width: 640px; }
.modal h2 { margin-bottom: 8px; }
.modal .methods, .modal .stack { display: grid; gap: 10px; margin: 20px 0; }
.modal .ico { font-size: 44px; margin-bottom: 6px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: rgba(22, 19, 38, .97); border: 1px solid var(--line2); padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow); z-index: 60; max-width: calc(100% - 32px); font-weight: 600; animation: fade .2s; }
.toast.bad { border-color: rgba(251, 113, 133, .6); }
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: s .8s linear infinite; flex: none; }
@keyframes s { to { transform: rotate(360deg); } }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

/* поделиться */
.share { max-width: 540px; margin: 0 auto; padding: 40px 20px 70px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.share-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.share h1 { margin: 8px 0 0; }
.share audio { width: 100%; }
.share details { text-align: left; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .player { max-width: 420px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.main { display: none; }
  h1 { font-size: 27px; }
  .feats { grid-template-columns: 1fr; }
  .actionbar { border-radius: 22px; bottom: 12px; padding: 12px 14px; }
  .actionbar .btn { flex: 1; }
  header.top .wrap { gap: 10px; }
  .brand span { display: none; }
}


/* окно оплаты: на компьютере — карточка по центру, на телефоне — шторка снизу */
.modal .card.sheet { max-width: 440px; text-align: left; padding: 22px; border-radius: 26px; background: rgba(20, 17, 34, .98); }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.sheet-head h3 { flex: 1; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sheet .x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; font-size: 15px; }
.sheet .x:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stats div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.stats span { display: block; font-size: 12px; color: var(--dim); font-weight: 600; }
.stats b { font-family: var(--display); font-size: 22px; }
.stats .accent { background: rgba(236, 72, 153, .1); border-color: rgba(236, 72, 153, .35); }
.stats .accent b { color: #f9a8d4; }
.plist { display: grid; gap: 8px; margin-bottom: 18px; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: left; transition: .15s; }
.prow:hover { border-color: rgba(255, 255, 255, .3); }
.prow.on { background: linear-gradient(rgba(28, 20, 48, .95), rgba(28, 20, 48, .95)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line2); position: relative; }
.prow.on .radio { border-color: transparent; background: var(--grad); }
.prow.on .radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.pc { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--grad); }
.pp { font-weight: 800; white-space: nowrap; }
.btn.wide { width: 100%; }
.sheet-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.paysum { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 14px; }
.paysum span { color: var(--muted); font-weight: 600; }
.paysum b { font-family: var(--display); font-size: 24px; }
.sheet .methods { display: grid; gap: 10px; margin: 0; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); text-decoration: none; transition: .15s; min-height: 68px; }
.mrow:hover { border-color: rgba(139, 92, 246, .7); background: rgba(139, 92, 246, .1); }
.mico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mt { flex: 1; display: flex; flex-direction: column; }
.mt small { color: var(--dim); font-size: 13px; }
.arr { color: var(--dim); font-size: 18px; }
.mrow.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 720px) {
  .modal:has(.sheet) { align-items: flex-end; padding: 0; }
  .modal .card.sheet { max-width: none; border-radius: 26px 26px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}

/* страница «Баланс»: компактная колонка, обычные размеры шрифта */
.bal-page { max-width: 520px; }
.bal-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(236, 72, 153, .1)); }
.bal-card span { color: var(--muted); font-size: 14px; font-weight: 600; }
.bal-page .big-balance { font-size: 28px; line-height: 1.2; }
.bal-page h2.sub { font-family: inherit; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 26px 0 10px; }
.bal-page .plist { margin-bottom: 0; }
.pack-row { font-size: 16px; }
.pack-row .arr { margin-left: 2px; }
.buy-other { display: flex; gap: 10px; }
.buy-other input { flex: 1; min-width: 0; }
.buy-other .btn { flex: none; }
@media (max-width: 720px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .page-head { margin-bottom: 16px; }
  .bal-page .big-balance { font-size: 24px; }
}

/* пункты «Песни/Клипы/Баланс» в меню аккаунта — только на телефоне */
a.menu-item { text-decoration: none; }
.menu-item.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
@media (min-width: 721px) { .menu .mob { display: none; } }
[hidden] { display: none !important; }

/* мастера на телефоне: компактная панель кнопок в одну строку, плотнее поля и варианты */
@media (max-width: 720px) {
  main { padding-top: 20px; }
  .narrow h1 { margin-bottom: 4px; }
  .stepper { margin: 10px 0 14px; }
  .stepper span { font-size: 12px; margin-top: 5px; }
  .card { padding: 16px; border-radius: 20px; }
  label.f { margin: 18px 0 8px; font-size: 14px; }
  .chips { gap: 7px; }
  .chip { padding: 7px 12px; font-size: 14px; }
  input[type=text], input[type=number], textarea, select { padding: 12px 14px; font-size: 16px; }
  textarea { min-height: 100px; }
  textarea.lyrics { min-height: 260px; }
  .opts { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .opt { padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .opt .e { font-size: 20px; margin: 0; display: inline; }
  .opt b { display: inline; font-size: 15px; }
  .opt span:not(.e) { font-size: 13px; width: 100%; }
  .actionbar { flex-wrap: nowrap; gap: 8px; padding: 8px; border-radius: 18px; margin-top: 16px; }
  .actionbar > span:empty { display: none; }
  .actionbar:has(.sum) { flex-wrap: wrap; }
  .actionbar .sum { width: 100%; padding: 2px 6px 0; font-size: 14px; }
  .actionbar .sum small { display: block; margin-top: 2px; font-size: 12px; }
  .actionbar > .row { flex: 1; flex-wrap: nowrap; gap: 8px; }
  .actionbar .btn, .actionbar .btn.big { flex: 1 1 auto; padding: 11px 12px; font-size: 14px; min-width: 0; white-space: nowrap; }
  .actionbar .btn.primary { flex-grow: 2; }
  .actionbar .btn:not(.primary) { flex-grow: 0; }
}

/* первый шаг песни: большая кнопка «Написать текст» и под ней тихая ссылка «У меня есть свой текст» */
.start-bar { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.start-bar .btn.big { width: 100%; max-width: 420px; padding: 17px 28px; font-size: 17px; }
.own-link { background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--text); opacity: .5; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.own-link:hover { opacity: .85; }

/* экран «Создаём песню» */
.gen { max-width: 520px; }
.gen-card { text-align: center; padding: 30px 24px; }
.gen-card .eq { height: 54px; margin: 0 auto 18px; max-width: 260px; }
.gen-card h2 { font-size: 22px; margin-bottom: 4px; }
.gen-card #genStage { min-height: 1.5em; margin: 0 0 20px; }
.gen-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--grad); box-shadow: 0 0 18px rgba(236, 72, 153, .5); }
.gen-pct { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.gen-note { margin: 18px 0 0; }
.gen-card .ico { font-size: 44px; margin-bottom: 6px; }
.gen-done { text-align: center; font-size: 24px; margin: 6px 0 16px; }
.gen-result .item { margin: 0 auto; }
a.own-link { display: inline-block; text-decoration: underline; }

/* карточка готовой песни: плеер + иконки «скачать/поделиться», большая «Создать клип по песне» */
.player-row { display: flex; align-items: center; gap: 8px; }
.player-row audio { flex: 1; min-width: 0; }
.icon-act { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; transition: .15s; }
.icon-act:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.icon-act svg { width: 18px; height: 18px; }
.item .btn.wide { width: 100%; }
.item .btn.big { padding: 14px 20px; font-size: 16px; }

/* текст песни в карточке: иконка рядом с плеером открывает аккуратную панель */
.icon-act.on { color: var(--text); background: rgba(139, 92, 246, .25); border-color: rgba(139, 92, 246, .6); }
.lyr-panel { max-height: 320px; overflow-y: auto; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lyr-panel .lyrics { margin: 0; font-size: 14px; line-height: 1.65; }
details.lyr { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
details.lyr summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.lyr summary::-webkit-details-marker { display: none; }
details.lyr summary::after { content: "⌄"; font-size: 16px; transition: transform .15s; }
details.lyr[open] summary::after { transform: rotate(180deg); }
details.lyr[open] .lyrics { margin: 10px 0 2px; font-size: 14px; line-height: 1.65; }

.menu-credits { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(139, 92, 246, .2); color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* мастер клипа: нумерованные разделы, переключатели-сегменты, список песен вместо выпадающего списка */
.sec-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-weight: 800; font-size: 16px; }
.card > .sec-h:first-child { margin-top: 0; }
.sec-h .num { width: 24px; height: 24px; flex: none; border-radius: 8px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-family: var(--display); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: .15s; }
.seg button small { font-size: 12px; font-weight: 600; color: var(--dim); }
.seg button.on { background: rgba(139, 92, 246, .28); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .6); }
.seg button.on small { color: var(--muted); }
#qual { margin-bottom: 0; }
.song-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.song-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer; text-align: left; transition: .15s; }
.song-pick:hover { border-color: rgba(255, 255, 255, .3); }
.song-pick.on { background: linear-gradient(rgba(28, 20, 48, .95), rgba(28, 20, 48, .95)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.song-pick img, .song-pick .sp-ph { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; }
.song-pick .sp-ph { display: flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, .18); font-size: 18px; }
.sp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-t small { color: var(--dim); font-size: 12px; }
.song-pick.on .radio { border-color: transparent; background: var(--grad); }
.song-pick.on .radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.song-list .own-link { justify-self: start; padding-left: 2px; }
.drop-t { display: flex; flex-direction: column; min-width: 0; }
.drop-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-t small { color: var(--dim); font-size: 13px; }
.looks { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
@media (max-width: 720px) {
  .sec-h { margin: 20px 0 10px; font-size: 15px; }
  .drop { padding: 12px; gap: 12px; border-radius: 14px; }
  .drop .ico { width: 40px; height: 40px; font-size: 18px; }
  .photos { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ph { border-radius: 12px; font-size: 12px; padding: 4px; }
  .ph b { font-size: 20px; }
  .ph button { width: 22px; height: 22px; top: 4px; right: 4px; font-size: 11px; }
  .clip-wiz .actionbar > .btn { flex: 1; }
}
@media (max-width: 720px) {
  .looks .opt { flex-wrap: nowrap; }
  .looks .opt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
  header.top .wrap { padding-right: 24px; }
}

/* три стиля клипа — плитки в ряд: эмодзи сверху, подпись снизу */
.looks { grid-template-columns: repeat(3, 1fr); }
.looks .opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px 8px; }
.looks .opt .e { margin: 0; font-size: 26px; }
@media (max-width: 720px) {
  .looks { grid-template-columns: repeat(3, 1fr); }
  .looks .opt { flex-direction: column; flex-wrap: nowrap; padding: 12px 6px; gap: 4px; }
  .looks .opt .e { font-size: 22px; display: block; }
  .looks .opt b { font-size: 14px; }
}

/* кнопки с svg-иконками */
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.small svg { width: 16px; height: 16px; }

/* ---- лендинг: инструмент, а не статья ---- */
.hero2 { text-align: center; padding: 56px 0 30px; position: relative; }
.hero2::before { content: ""; position: absolute; left: 50%; top: 40px; width: min(720px, 90vw); height: 320px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(150, 90, 255, .28), transparent); filter: blur(30px); z-index: -1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 14px; font-weight: 600; }
.pill svg { width: 16px; height: 16px; color: #c4a5ff; }
.hero2 h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -.03em; margin: 22px 0 16px; }
.hero2 .lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 34px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.tool { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; text-decoration: none; text-align: left; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)) border-box; border: 1px solid transparent; position: relative; transition: transform .15s, box-shadow .2s, background .2s; }
.tool::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(236, 72, 153, .06)); pointer-events: none; }
.tool:hover { transform: translateY(-2px); background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; box-shadow: 0 18px 40px rgba(124, 92, 255, .22); }
.tool-ico { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 22px rgba(160, 80, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tool-ico svg { width: 26px; height: 26px; }
.tool-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-t b { font-size: 18px; }
.tool-t small { color: var(--muted); font-size: 14px; }
.tool-go { width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); color: var(--text); transition: .15s; }
.tool-go svg { width: 18px; height: 18px; }
.tool:hover .tool-go { background: #fff; color: #140f24; }
.hero-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--dim); font-size: 14px; font-weight: 600; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }
h2.center { text-align: center; font-size: clamp(22px, 3vw, 30px); margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.step-ico { position: relative; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .35); color: #c9b5ff; margin-bottom: 10px; }
.step-ico svg { width: 24px; height: 24px; }
.step-ico i { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step b { font-size: 17px; }
.step small { color: var(--muted); font-size: 14px; }
.fchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 0; max-width: 900px; }
.fchips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; }
.fchips svg { width: 16px; height: 16px; color: #c4a5ff; }
.cta2 { text-align: center; padding: 44px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, rgba(124, 92, 255, .28), rgba(236, 72, 153, .08) 60%, transparent), var(--panel); border: 1px solid var(--line2); }
.cta2 h2 { font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 22px; }
@media (max-width: 720px) {
  .hero2 { padding: 28px 0 10px; }
  .hero2 h1 { font-size: 34px; margin: 18px 0 12px; }
  .hero2 .lead { font-size: 16px; margin-bottom: 24px; }
  .tools { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tool { padding: 14px; gap: 14px; border-radius: 18px; }
  .tool-ico { width: 48px; height: 48px; border-radius: 14px; }
  .tool-t b { font-size: 17px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .step { flex-direction: row; text-align: left; align-items: center; gap: 14px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; }
  .step .step-ico { grid-row: span 2; margin: 0; width: 46px; height: 46px; }
  .section { padding: 40px 0; }
  .fchips { gap: 8px; }
  .fchips span { font-size: 13px; padding: 8px 12px; }
  .cta2 { padding: 30px 18px; }
}
@media (max-width: 720px) { .step { row-gap: 2px; column-gap: 14px; } }

/* уведомление: ширина по тексту, на телефоне — почти во всю ширину, текст не рвётся по словам */
.toast { width: max-content; max-width: min(460px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; line-height: 1.4; text-align: left; }
.toast .spin { flex: none; }
@media (max-width: 720px) { .toast { bottom: calc(16px + env(safe-area-inset-bottom)); font-size: 15px; padding: 12px 16px; } }
