/* Сайт Onyx (site.html, класс .site на <html>). На Mini App не влияет.
   Страницы рисует site.js; экраны кабинета — те же, что в Mini App, здесь им задаётся рамка. */

.site { scroll-padding-top: 84px; }
.site body { display: flex; flex-direction: column; min-height: 100vh; font-size: 16px; }
.site a { color: inherit; text-decoration: none; }
.site .wrap { width: 100%; max-width: 1232px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.site #tabs { display: none !important; }
.site .toast { top: 84px; }
.site .arr { display: inline-grid; }
.site .arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.site a:hover > .arr svg, .site button:hover > .arr svg { transform: translateX(3px); }
.site .muted { color: var(--muted); }

/* кнопки-ссылки */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, opacity .2s; }
.cta:active { transform: scale(.98); }
.cta[disabled] { opacity: .5; pointer-events: none; }
.cta.light { background: #f5f5f7; color: #0b0b0c; }
.cta.light:hover { background: #fff; }
.cta.ghost { border-color: rgba(255,255,255,.22); color: #f5f5f7; }
.cta.ghost:hover { border-color: rgba(255,255,255,.6); }
.cta.dark { background: var(--accent); color: var(--on-accent); }
.cta.dark:hover { opacity: .86; }
.cta.outline { border-color: var(--line); }
.cta.outline:hover { border-color: var(--text); }
.cta.sm { padding: 10px 18px; font-size: 14px; }
.cta.wide { width: 100%; }
.cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }
.calm .rv { opacity: 1; transform: none; transition: none; }

/* ───── шапка ───── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s, color .25s; }
.top-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .gem { width: 30px; height: 30px; }
.logo b { font: 700 20px Unbounded, sans-serif; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on { background: var(--bg2); }
.user { display: flex; align-items: center; gap: 10px; }
.ubtn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px 5px 5px; font-weight: 700; font-size: 14px; transition: border-color .2s; }
.ubtn:hover { border-color: var(--text); }
.ubtn i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 13px Unbounded, sans-serif; font-style: normal; }
.ubtn em, .side em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.tbtn { width: 40px; height: 40px; flex: 0 0 auto; margin-right: -16px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: grid; place-items: center; padding: 0; color: inherit; transition: border-color .2s, transform .3s; }
.tbtn:hover { border-color: currentColor; transform: rotate(18deg); }
.tbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn .sun, :root[data-theme="dark"] .tbtn .moon { display: none; }
:root[data-theme="dark"] .tbtn .sun { display: block; }
.top.over:not(.open) .tbtn { border-color: rgba(255,255,255,.25); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; position: relative; color: inherit; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, top .2s; }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }
.top.open .burger i:first-child { top: 19px; transform: rotate(45deg); } .top.open .burger i:last-child { top: 19px; transform: rotate(-45deg); }
/* над тёмным первым экраном шапка прозрачная */
.top.over:not(.open) { background: transparent; border-color: transparent; color: #f5f5f7; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.over:not(.open) .nav a { color: #b4b4bb; } .top.over:not(.open) .nav a:hover { color: #fff; }
.top.over:not(.open) .ubtn { border-color: rgba(255,255,255,.25); } .top.over:not(.open) .ubtn i, .top.over:not(.open) .cta.dark { background: #f5f5f7; color: #0b0b0c; }

/* ───── каркас ───── */
.shell { flex: 1 0 auto; min-height: 72vh; }
.site #app { max-width: none; margin: 0; padding: 0; }
.shell[data-layout="acct"] { width: 100%; max-width: 1232px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; align-content: start; }
.shell[data-layout="acct"] #app { max-width: 720px; width: 100%; padding: 0; }
.shell[data-layout="wide"] .side { display: none; }
.shell[data-page="home"] { margin-top: -69px; }
.site .splash { height: 60vh; }

/* ───── первый экран ───── */
.hero2 { position: relative; overflow: hidden; background: #09090a; color: #f5f5f7; padding: 148px 0 84px; }
.hero2-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(120,120,135,.30), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(90,90,100,.22), transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 60% 30%, #000 35%, transparent 85%); mask-image: radial-gradient(120% 100% at 60% 30%, #000 35%, transparent 85%); }
.hero2-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 32px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: #c9c9cf; transition: border-color .2s; }
a.pill:hover { border-color: rgba(255,255,255,.4); }
.pill b { color: #fff; }
.hero2 h1 { font: 700 clamp(30px, 3.7vw, 52px)/1.1 Unbounded, sans-serif; letter-spacing: -.02em; margin: 26px 0 22px; }
.hero2 h1 em { display: block; font-style: normal; color: transparent; background: linear-gradient(100deg, #fff 10%, #8b8b94 60%, #e9e9ee 100%); -webkit-background-clip: text; background-clip: text; }
.hero2 p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #a4a4ab; max-width: 34em; margin: 0; }
.hero2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 56px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.facts div { flex: 1 1 150px; padding: 22px 24px 0 0; }
.facts dt { font: 700 26px Unbounded, sans-serif; white-space: nowrap; }
.facts dd { margin: 6px 0 0; color: #8a8a91; font-size: 14px; }
.hero2-gem { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero2-gem .glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%); filter: blur(30px); }
.hero-gem { width: min(100%, 460px); height: auto; aspect-ratio: 1; position: relative; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(2.5deg); } }
.calm .hero-gem { animation: none; }

/* бегущая строка сервисов */
.mq { overflow: hidden; padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; width: max-content; animation: mq 70s linear infinite; }
.mq-row.rev { animation-direction: reverse; }
.mq-set { display: flex; gap: 12px; padding-right: 12px; }
.mq span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--muted); }
@keyframes mq { to { transform: translateX(-50%); } }
.calm .mq-row { animation: none; }

/* ───── секции главной ───── */
.sec { padding: 96px 0 0; }
.home > .sec:last-child { padding-bottom: 96px; }
.sec-h { max-width: 720px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sec-h h2 { font: 700 clamp(26px, 3.2vw, 40px)/1.12 Unbounded, sans-serif; letter-spacing: -.015em; margin: 0; }
.sec-h p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.sec-more { margin-top: 32px; display: flex; justify-content: center; }

.sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scard { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); border-radius: 22px; padding: 20px; min-height: 196px; box-shadow: var(--shadow); transition: opacity .6s, transform .35s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .3s; }
.scard.in:hover { transform: translateY(-4px); border-color: var(--text); box-shadow: 0 18px 40px rgba(0,0,0,.10); }
.scard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.scard .mono { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
.scard .rate { font-size: 13px; font-weight: 700; color: var(--muted); }
.scard > b { font-size: 17px; line-height: 1.25; }
.scard p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-bot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.scard-bot strong { color: var(--text); font-size: 16px; }
.scard .arr { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); place-items: center; color: var(--text); transition: background .2s, color .2s; }
.scard:hover .arr { background: var(--accent); color: var(--on-accent); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bcard { position: relative; grid-column: span 2; border-radius: 26px; padding: 26px; min-height: 230px; background: var(--bg2); display: flex; flex-direction: column; transition: opacity .6s, transform .35s cubic-bezier(.2,.8,.2,1), background .25s; }
.bcard.b0 { grid-column: span 4; background: #0e0e10; color: #f5f5f7; background-image: radial-gradient(90% 120% at 100% 0%, #34343a, transparent 60%); }
.bcard.in:hover { transform: translateY(-4px); }
.bcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bcard-h b { font: 700 22px Unbounded, sans-serif; }
.bcard-h span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bcard p { color: var(--muted); margin: 10px 0 20px; font-size: 15px; max-width: 30em; }
.bcard.b0 p, .bcard.b0 .bcard-h span { color: #a4a4ab; }
.bcard-m { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; padding-right: 48px; }
.bcard.b0 .mono { background: #f5f5f7; color: #0b0b0c; }
.bcard > .arr { position: absolute; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); place-items: center; color: var(--text); }
.bcard.b0 > .arr { background: #f5f5f7; color: #0b0b0c; }

.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps4 li { padding: 28px 28px 0 0; position: relative; }
.steps4 li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.steps4 i { font: 700 13px Unbounded, sans-serif; font-style: normal; color: var(--muted); }
.steps4 b { display: block; font: 700 18px Unbounded, sans-serif; margin: 12px 0 10px; }
.steps4 p { margin: 0; color: var(--muted); font-size: 15px; }

.perks6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--card); }
.perk b { font-size: 18px; }
.perk p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.rgrid { columns: 3 300px; column-gap: 16px; }
.rgrid.two { columns: 2 280px; }
.rtile { break-inside: avoid; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: var(--card); box-shadow: var(--shadow); }
.rtile .stars { letter-spacing: 2px; font-size: 15px; } .rtile .stars i { font-style: normal; color: var(--line); }
.rtile blockquote { margin: 12px 0 16px; font-size: 16px; line-height: 1.5; }
.rtile figcaption { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.rtile figcaption b { color: var(--text); font-size: 14px; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--bg2); position: relative; transition: transform .25s, background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 2px; background: var(--text); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .25s; }
.faq details[open] summary i::after { transform: none; }
.faq p { margin: 0 0 24px; color: var(--muted); max-width: 44em; line-height: 1.6; }

.band { position: relative; overflow: hidden; border-radius: 36px; background: #0b0b0c radial-gradient(80% 140% at 90% 50%, #3a3a40, transparent 60%); color: #f5f5f7; padding: 64px 56px; }
.band h2 { font: 700 clamp(28px, 3.4vw, 44px) Unbounded, sans-serif; margin: 0 0 12px; position: relative; }
.band p { color: #a4a4ab; max-width: 30em; margin: 0; font-size: 17px; position: relative; }
.band .hero2-cta { position: relative; }
.band-gem { position: absolute; width: 340px; height: 340px; right: -30px; top: 50%; margin-top: -170px; opacity: .9; }

/* ───── каталог ───── */
.catalog { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 96px; align-items: start; }
.cat-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.cat-menu { display: grid; gap: 2px; }
.cat-menu button, .side nav a { display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; text-align: left; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .15s, color .15s; }
.cat-menu button:hover, .side nav a:hover { color: var(--text); background: var(--bg2); }
.cat-menu button.on, .side nav a.on { background: var(--accent); color: var(--on-accent); }
.cat-menu span { font-size: 13px; opacity: .7; }
.cat-promo { border-radius: 16px; background: var(--bg2); padding: 14px 16px; font-size: 13px; color: var(--muted); }
.cat-promo b { display: block; font: 700 20px Unbounded, sans-serif; color: var(--text); margin-bottom: 2px; }
.cat-h { margin-bottom: 28px; }
.cat-h h1 { font: 700 clamp(28px, 3.2vw, 40px)/1.12 Unbounded, sans-serif; margin: 0; }
.cat-h p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.steam-b { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 22px; padding: 22px 26px; background: #0e0e10 radial-gradient(60% 200% at 100% 50%, #34343a, transparent 70%); color: #f5f5f7; }
.steam-b b { font: 700 19px Unbounded, sans-serif; display: block; color: #fff; margin-bottom: 4px; } .steam-b span { color: #a4a4ab; font-size: 14px; }
.site .empty { grid-column: 1 / -1; }
.empty.big { padding: 120px 16px; display: grid; justify-items: center; gap: 8px; }
.empty.big b { font-size: 24px; } .empty.big .cta { margin-top: 18px; }
.revpage { padding-top: 36px; padding-bottom: 96px; }

/* ───── страница сервиса ───── */
.spage { padding-top: 24px; padding-bottom: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); } .crumbs i { font-style: normal; opacity: .5; } .crumbs span { color: var(--text); }
.spage-in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.shead { display: flex; gap: 20px; align-items: center; }
.shead .mono.big { width: 76px; height: 76px; border-radius: 22px; font-size: 30px; }
.shead h1 { font: 700 clamp(28px, 3.4vw, 42px)/1.1 Unbounded, sans-serif; margin: 0; }
.shead-m { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shead-m span { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.sdesc { font-size: 18px; color: var(--muted); margin: 22px 0 0; max-width: 40em; line-height: 1.55; }
.sub-h { font: 700 20px Unbounded, sans-serif; margin: 44px 0 16px; }
.tlist { display: grid; gap: 12px; }
.tlist.chips { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tcard { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 20px 22px; transition: border-color .15s, box-shadow .15s; }
.tcard:hover { border-color: var(--muted); }
.tcard.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.tcard-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tcard-h b { font-size: 18px; display: block; } .tcard-h span { color: var(--muted); font-size: 14px; }
.tprice { text-align: right; white-space: nowrap; }
.tprice strong { font-size: 19px; } .tprice small { color: var(--muted); font-size: 13px; margin-left: 4px; } .tprice s { display: block; color: var(--muted); font-size: 13px; }
.chips .tcard-h { flex-direction: column; gap: 8px; } .chips .tprice { text-align: left; }
.tcard ul { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; font-size: 14px; color: var(--muted); }
.tcard li { padding-left: 18px; position: relative; }
.tcard li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.spage-side { position: sticky; top: 92px; }
.buy { border: 1px solid var(--line); border-radius: 26px; padding: 24px; background: var(--card); box-shadow: 0 20px 50px rgba(0,0,0,.08); display: grid; gap: 18px; }
:root[data-theme="dark"] .buy { box-shadow: none; }
.buy-h { display: flex; gap: 14px; align-items: center; }
.buy-h b { display: block; font-size: 17px; } .buy-h span { color: var(--muted); font-size: 14px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border-radius: 14px; padding: 4px; }
.seg2 button { border: 0; background: transparent; border-radius: 10px; padding: 10px 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg2 button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
:root[data-theme="dark"] .seg2 button.on { background: #2a2a2e; }
.buy-f span { font-size: 13px; font-weight: 600; color: var(--muted); }
.buy-f .field { margin-top: 8px; }
.buy-note { margin: 0; font-size: 14px; color: var(--muted); background: var(--bg2); border-radius: 14px; padding: 14px 16px; }
.buy-sum { display: grid; gap: 10px; font-size: 15px; }
.buy-sum div { display: flex; justify-content: space-between; gap: 12px; } .buy-sum span { color: var(--muted); }
.buy-sum .disc b { color: var(--ok); }
.buy-sum .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; align-items: baseline; }
.buy-sum .total span { color: var(--text); font-weight: 700; } .buy-sum .total b { font: 700 24px Unbounded, sans-serif; }
.buy-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.buy-trust li { padding-left: 20px; position: relative; }
.buy-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--text); font-weight: 700; }

/* ───── вход ───── */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { position: relative; width: 100%; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 28px; padding: 32px 28px 28px; animation: sheetUp .3s cubic-bezier(.2,.8,.2,1) backwards; }
.modal .x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg2); font-size: 20px; line-height: 1; }
.modal > .gem { width: 56px; height: 56px; }
.modal h3 { font: 700 22px Unbounded, sans-serif; margin: 18px 0 8px; }
.lbox p { color: var(--muted); margin: 0 0 20px; }
.lcode { display: flex; justify-content: space-between; align-items: baseline; background: var(--bg2); border-radius: 16px; padding: 14px 18px; }
.lcode span { color: var(--muted); font-size: 14px; } .lcode b { font: 700 28px Unbounded, sans-serif; letter-spacing: .12em; }
.lbox ol { margin: 16px 0 20px; padding-left: 20px; color: var(--muted); font-size: 15px; } .lbox ol li { margin-top: 6px; } .lbox ol b { color: var(--text); }
.lwait { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.lwait .spinner { width: 16px; height: 16px; }
.ldev { margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.ldev button { border: 0; background: transparent; text-decoration: underline; padding: 0 8px 0 0; font-size: 13px; }

/* ───── кабинет: боковое меню + экраны из Mini App ───── */
.side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-u { display: flex; gap: 12px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); }
.side-u i { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 17px Unbounded, sans-serif; font-style: normal; }
.side-u b { display: block; } .side-u span { font-size: 13px; color: var(--muted); }
.side nav { display: grid; gap: 2px; }
.side-out { border: 0; background: transparent; text-align: left; padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 15px; border-radius: 12px; }
.side-out:hover { color: var(--bad); background: var(--bg2); }
.site .backlink { display: inline-flex; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; padding: 0 0 6px; }
.site .backlink:hover { color: var(--text); }
.site .hello { margin-top: 0; font-size: 28px; }
.site .head { padding-top: 6px; } .site .head h1 { font-size: 28px; }
.site .seg { top: 84px; }
.site .bar, .site .composer { position: sticky; bottom: 0; left: auto; right: auto; margin: 16px -4px 0; padding-left: 4px; padding-right: 4px; }
.site .bar .btn, .site .composer .inner { max-width: none; }
.site .chat { padding: 8px 6px 12px; min-height: 280px; max-height: calc(100vh - 380px); overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--bg2); }
.site .order:hover, .site .menu button:hover { border-color: var(--muted); }
.site .sheet-bg { align-items: center; padding: 16px; }
.site .sheet { max-width: 480px; border-radius: 24px; padding-bottom: 18px; }

/* ───── подвал ───── */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: auto; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand p { margin: 14px 0 0; max-width: 22em; font-size: 15px; }
.foot-in > div:not(.foot-brand) { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-in > div > b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-in > div:not(.foot-brand) a { color: var(--muted); } .foot-in > div:not(.foot-brand) a:hover { color: var(--text); }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot:empty { display: none; }

/* ───── планшет и телефон ───── */
@media (max-width: 1060px) {
  .sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spage-in { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .steps4 { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .perks6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { gap: 12px; height: 60px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 12px 16px; flex-direction: column; }
  .top.open .nav { display: flex; }
  .nav a { font-size: 17px; padding: 12px 8px; color: var(--text); }
  .tbtn { margin-left: auto; margin-right: 0; } .burger { display: block; }
  .ubtn span { display: none; } .ubtn { padding: 4px; }
  .shell[data-page="home"] { margin-top: -61px; }
  .hero2 { padding: 108px 0 56px; }
  .hero2-in { grid-template-columns: 1fr; }
  .hero2-gem { order: -1; min-height: 0; justify-items: end; margin: -20px -40px -90px 0; opacity: .9; }
  .hero-gem { width: 210px; } .hero2-gem .glow { display: none; }
  .facts { margin-top: 40px; } .facts dt { font-size: 21px; }
  .sec { padding-top: 64px; } .home > .sec:last-child { padding-bottom: 64px; } .sec-h { margin-bottom: 28px; }
  .sgrid, .sgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scard { padding: 16px; min-height: 0; border-radius: 18px; } .scard p { display: none; } .scard > b { margin-bottom: 12px; font-size: 15px; } .scard .arr { display: none; }
  .bento { grid-template-columns: 1fr; } .bcard, .bcard.b0 { grid-column: auto; min-height: 0; }
  .steps4, .perks6 { grid-template-columns: 1fr; }
  .steps4 { border-top: 0; border-left: 1px solid var(--line); row-gap: 28px; } .steps4 li { padding: 0 0 0 24px; } .steps4 li::before { top: 4px; left: -5px; }
  .band { padding: 40px 24px; border-radius: 28px; } .band-gem { width: 200px; height: 200px; margin-top: -150px; right: -60px; opacity: .5; }
  .catalog { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .cat-side { position: static; } .cat-menu { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .cat-menu::-webkit-scrollbar { display: none; }
  .cat-menu button { flex: 0 0 auto; gap: 8px; background: var(--bg2); border-radius: 999px; padding: 9px 16px; }
  .spage-in { grid-template-columns: 1fr; } .spage-side { position: static; } .shead .mono.big { width: 60px; height: 60px; font-size: 24px; }
  .shell[data-layout="acct"] { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 64px; gap: 20px; }
  .side { min-width: 0; }
  .side { position: static; } .side-u, .side .cat-promo, .side-out { display: none; }
  .side nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: 0 0 auto; gap: 8px; background: var(--bg2); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 40px; } .foot-brand { grid-column: 1 / -1; }
}
