/* Символум — единая дизайн-система. Тёмный мистический трактат: индиго + золото. */

:root {
  --bg: #0f0b22;
  --bg-2: #14102b;
  --bg-card: #1a1438;
  --bg-card-2: #211a44;
  --gold: #c9a84c;
  --gold-light: #e6cf86;
  --gold-dim: #8c7a3f;
  --text: #ece8f7;
  --text-dim: #a79fc6;
  --text-faint: #6d6690;
  --line: rgba(201, 168, 76, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(111, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(201, 168, 76, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Short portal pages keep the shared footer at the viewport bottom. */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body > .site-footer {
  margin-top: auto;
}

button, input, select, textarea { font-family: var(--sans); }

/* UI chrome should behave like controls, not like selectable document text. */
:where(
  h1, h2, h3, h4, h5, h6,
  .site-header, .brand, .nav, .burger,
  .page-head, .hero, .section-head,
  .kicker, .breadcrumbs, .btn, button, label,
  .app-card, .currency-card, .enc-cat, .enc-item,
  .account-card-head, .badge, .more
) {
  -webkit-user-select: none;
  user-select: none;
}

:where(input, textarea, [contenteditable="true"], .article-body, .legal-text) {
  -webkit-user-select: text;
  user-select: text;
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0 1px, transparent 1.5px);
  background-size: 86px 86px; opacity: .08;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: 0.2px; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
}
.muted { color: var(--text-dim); }
.center { text-align: center; }

/* ── Кнопки ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: 0.18s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #1a1206; }
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { cursor: not-allowed; opacity: .52; transform: none; filter: none; }
.btn-danger { color: #ffd8d8; border-color: rgba(220, 92, 92, .45); background: rgba(130, 34, 42, .24); }
.btn-danger:hover { border-color: #dc5c5c; }

/* ── Шапка ───────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100vw;
  backdrop-filter: blur(12px);
  background: rgba(15, 11, 34, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

html.rewarded-ad-active,
html.rewarded-ad-active body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.rewarded-ad-active .site-header,
html.rewarded-ad-active .oh-header {
  visibility: hidden !important;
  pointer-events: none !important;
}
.site-header .wrap {
  width: 100%; display: grid;
  grid-template-columns: 180px 118px minmax(0, 1fr) 190px;
  align-items: center; gap: 18px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.brand > span { white-space: nowrap; }
.brand .logo { width: 30px; height: 30px; }
.brand b { color: var(--gold-light); font-weight: 700; }
.header-context { width: 118px; min-width: 118px; }
.nav { display: contents; }
.nav-links { display: flex; align-items: center; justify-content: flex-start; gap: 22px; min-width: 0; }
.nav-account { width: 190px; display: flex; align-items: center; justify-content: flex-end; min-width: 190px; }
.nav a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: 0.15s; }
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav .btn { margin-left: 8px; }
.nav a.btn-gold { color: #1a1206; }
.nav a.btn-gold:hover { color: #1a1206; }
.account-link { display: flex; align-items: center; gap: 9px; }
.account-link b {
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--gold-light); background: rgba(201,168,76,.08); font-size: 11px;
}
.mobile-account { display: none; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; }

@media (max-width: 860px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto auto; gap: 12px; }
  .header-context { display: none; }
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: 0.25s; margin: 0; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-account { display: none; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin: 10px 0 4px; justify-content: center; }
  .mobile-account {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    min-height: 36px; padding: 7px 13px; border: 1px solid var(--line);
    border-radius: 999px; color: var(--gold-light); font-size: 13px; font-weight: 700;
    background: rgba(201,168,76,.07);
  }
  .burger { display: block; margin-left: 0; }
}

/* ── Hero ───────────────────────────── */
.hero { text-align: center; padding: 80px 0 60px; position: relative; }
.hero .stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }
.hero h1 { max-width: 16ch; margin: 16px auto 18px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); max-width: 60ch; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-home { padding: 52px 0 12px; }
.ux-intro { max-width: 680px; margin: 20px auto; color: #ded8ec; line-height: 1.65; }
.ux-caption { max-width: 620px; margin: 14px auto; color: #c9c0db; line-height: 1.6; font-size: 14px; }
.ux-example { max-width: 680px; margin: 24px auto; padding: 18px 22px; text-align: left; border: 1px solid #75633d; border-radius: 16px; background: #1b1532; color: #e4ddef; line-height: 1.65; }
.ux-example summary, .ux-coming summary { cursor: pointer; color: #ead183; font-weight: 600; }
.ux-example p { margin: 12px 0; }
.ux-card-action { color: #ead183; font-size: 14px; line-height: 1.5; margin: 12px 0; }
.ux-coming { margin-top: 24px; color: #c9c0db; }
.ux-coming p { margin-top: 12px; }
@media(max-width: 760px) { .is-guest-account .account-sidebar { order: -1; } }
.hero-home h1 { max-width: 15ch; }
.store-row span, .store-row a, .store-list span, .store-list a {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.025); color: var(--text-dim); font-size: 12px;
}
.store-row a, .store-list a { color: var(--gold-light); transition: .15s; }
.store-row a:hover, .store-list a:hover { border-color: var(--gold); transform: translateY(-1px); }
.app-hero { padding-bottom: 44px; }
.app-mark { width: 72px; height: 72px; margin: 0 auto 18px; color: var(--accent); filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent)); }
.store-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* ── Секции ───────────────────────────── */
.section { padding: 64px 0; }
#apps.section { padding-top: 12px; }
.section-contrast { background: rgba(20, 16, 43, .82); border-block: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2 { margin: 10px 0 12px; }

/* ── Сетка практик ───────────────────────────── */
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.app-card {
  position: relative; display: flex; flex-direction: column; padding: 20px 18px 18px;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: 0.2s; overflow: hidden;
}
.app-card { min-height: 208px; }
.app-card:not(.is-soon) { cursor: pointer; }
.app-card-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-card:has(.app-card-hit:focus-visible) { border-color: var(--accent, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--gold)) 28%, transparent), var(--shadow); }
.app-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--gold)); opacity: 0.8; }
.app-card:hover { transform: translateY(-4px); border-color: var(--accent, var(--gold)); box-shadow: var(--shadow); }
.app-card.is-soon { cursor: default; }
.app-card.is-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
.app-card.is-soon::before { opacity: .25; }
.app-card.is-soon .glyph,
.app-card.is-soon h3,
.app-card.is-soon .tg { filter: grayscale(.6); opacity: .38; }
.app-card.is-soon .badge { opacity: .52; }
.app-card .glyph { width: 42px; height: 42px; margin-bottom: 11px; color: var(--accent, var(--gold)); }
.app-card h3 { margin-bottom: 5px; font-size: 22px; }
.app-card .tg { color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.app-card .badge {
  position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; padding: 3px 7px; border-radius: 999px;
  background: rgba(201, 168, 76, 0.15); color: var(--gold-light); border: 1px solid var(--line);
}
.app-card .more {
  margin-top: auto; padding-top: 10px;
  color: var(--gold-light); font-family: var(--sans); font-weight: 600; font-size: 13px;
}

/* ── Карточки фич / преимуществ ───────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature {
  padding: 22px; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.feature .glyph { width: 36px; height: 36px; color: var(--gold); margin-bottom: 12px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14px; }
.feature .feature-copy { color: var(--text); font-size: 15px; }

/* Public practice pages: no application bundles or extra web fonts. */
.ux-caption a { color:var(--gold-light); text-decoration:underline; text-underline-offset:3px; }
.practice-card-actions { display:flex; flex-wrap:wrap; gap:4px 16px; align-items:center; margin-top:auto; }
.app-card .practice-card-actions .more { margin-top:0; }
.practice-card-actions > :is(a,span) { color:var(--gold-light); font-size:14px; padding:10px 0; }
.practice-card-actions > a { position:relative; z-index:2; }
.practice-card-actions > a:focus-visible, .practice-text-link:focus-visible, .practice-faq summary:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.practice-heading { max-width:24ch; margin-inline:auto; text-wrap:balance; }
.practice-intro { max-width:72ch; margin:18px auto 0; color:var(--text-dim); }
.practice-example-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:48px; align-items:center; }
.practice-example { padding:32px; background:var(--bg-card); border:1px solid var(--line); border-radius:var(--radius); }
.practice-example h3 { font-size:25px; line-height:1.3; margin:10px 0 16px; }
.practice-example p + p, .access-detail p + p { margin-top:16px; }
.practice-takeaway { border-top:1px solid var(--line); padding-top:18px; color:var(--gold-light); }
.practice-card-art { margin:24px 0 0; }
.practice-card-art img { display:block; width:140px; height:auto; border-radius:12px; border:1px solid var(--line); }
.practice-card-art figcaption { font-size:12px; color:var(--text-dim); margin-top:10px; }
.practice-steps { list-style:none; }
.practice-text-link { display:inline-block; color:var(--gold-light); margin-top:20px; }
.practice-faq { max-width:850px; }
.practice-faq details { border-bottom:1px solid var(--line); padding:18px 0; }
.practice-faq summary { cursor:pointer; font-size:18px; color:var(--text); }
.practice-faq details p { margin-top:14px; color:var(--text-dim); }
@media (max-width:700px) {
  .practice-example-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .practice-example { padding:22px; }
  .practice-heading { font-size:clamp(28px,7vw,40px); overflow-wrap:break-word; }
  .practice-intro { text-align:left; }
}

.split-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.split-story h2 { margin-top: 10px; max-width: 15ch; }
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.step:first-child { padding-top: 0; }
.step b { color: var(--gold); font-family: var(--serif); font-size: 23px; }
.step h3 { font-size: 21px; margin-bottom: 5px; }
.step p { color: var(--text-dim); font-size: 14px; }
.access-banner { padding-top: 24px; }
.access-banner-inner, .web-model { display: flex; gap: 48px; justify-content: space-between; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card)); }
.access-banner-inner > div, .web-model > div { max-width: 720px; }
.access-banner h2, .web-model h2 { margin: 8px 0 10px; }

/* ── Тарифы ───────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 720px; margin: 0 auto; }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
}
.plan.hl { border-color: var(--gold); background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card)); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 26px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #1a1206; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin-bottom: 8px; }
.plan .price { font-family: var(--serif); font-size: 44px; color: var(--gold-light); }
.plan .price small { font-size: 17px; color: var(--text-dim); font-family: var(--sans); }
.plan .note { color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 4px; }
.plan ul { list-style: none; margin: 18px 0 22px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--text-dim); font-size: 14px; }
.plan li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.plan .btn { width: 100%; justify-content: center; }
.trial-note { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 18px; }
.access-head h1 { max-width: 18ch; margin-inline: auto; }
.access-head .muted { max-width: 65ch; margin-inline: auto; }
.access-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.access-principles > div { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.access-principles b { color: var(--gold); font-family: var(--serif); font-size: 24px; }
.access-principles h3 { margin: 12px 0 7px; }
.access-principles p { color: var(--text-dim); font-size: 14px; }
.currency-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.access-balance .currency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.currency-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-card); transition: .18s; }
.currency-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.currency-card.is-soon { cursor: default; filter: grayscale(.55); opacity: .45; }
.currency-card.is-soon:hover { transform: none; border-color: var(--line-soft); }
.currency-card .glyph { width: 44px; height: 44px; color: var(--accent); }
.currency-card h3 { font-size: 20px; }
.currency-card strong { color: var(--accent); font-size: 13px; }
.currency-card p { color: var(--text-dim); font-size: 13px; margin-top: 5px; }

/* ── Формы / аккаунт ───────────────────────────── */
.panel {
  max-width: 440px; margin: 50px auto; padding: 34px 30px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.panel h1 { font-size: 30px; margin-bottom: 6px; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}
.field input:focus { outline: none; border-color: var(--gold); }
.field-help { display: inline-block; margin-top: 6px; color: var(--gold-light); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); margin: 14px 0; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.check a { color: var(--gold-light); text-decoration: underline; }
.form-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.form-alt a { color: var(--gold-light); }
.form-alt a.btn-gold { color: #1a1206; }
.oauth-result-panel .form-alt { margin-top: 20px; text-align: left; }
.oauth-result-panel .form-alt .btn { min-width: 210px; justify-content: center; }
.stub-flag { background: rgba(201,168,76,0.10); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--gold-light); margin: 14px 0; }

.auth-page { min-height: calc(100vh - 66px); padding: 22px 0 44px; }
.auth-panel { max-width: 510px; }
.auth-panel-wide { max-width: 620px; }
.auth-panel > .muted { margin-top: 7px; }
.oauth-stack { display: grid; gap: 9px; margin: 24px 0 20px; }
.btn-provider {
  width: 100%; justify-content: space-between; border-color: var(--line);
  color: var(--text); background: rgba(255,255,255,.035); border-radius: 13px;
}
.btn-provider small { color: var(--text-faint); font: 500 11px var(--sans); }
/* Yandex ID secondary light button; sign geometry from the official design guide:
   https://yandex.ru/dev/id/doc/ru/codes/buttons-design . OAuth stays server-side. */
.btn.btn-yandex {
  width: 100%; min-height: 56px; padding: 15px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: #000; border: 1px solid #000; border-radius: 12px;
  font: 500 16px/24px var(--sans); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .16s ease;
}
.btn.btn-yandex:hover:not(:disabled) {
  background: #fff; color: #000; border-color: #000; transform: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.btn.btn-yandex:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.btn.btn-yandex:active:not(:disabled) { box-shadow: none; }
.btn.btn-yandex:disabled { opacity: .5; cursor: not-allowed; }
.btn-yandex-icon { display: block; flex: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .btn.btn-yandex { transition: none; } }
.vkid-oauth-widget { width: 100%; min-height: 44px; }
.vkid-oauth-widget > div { width: 100%; }
.vkid-oauth-widget iframe { max-width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.email-code-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.email-code-row .btn { padding-inline: 17px; border-radius: 12px; white-space: nowrap; }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }
.auth-notice, .auth-legal-note {
  margin: 16px 0; padding: 12px 14px; border-left: 2px solid var(--gold);
  border-radius: 8px; color: var(--text-dim); background: rgba(201,168,76,.07); font-size: 12px;
}
.auth-legal-note { margin: 20px 0 0; }
.form-status { min-height: 22px; margin: 8px 0; color: var(--text-dim); font-size: 13px; }
.form-status.is-error { color: #ffadad; }
.form-status.is-success { color: #a9dfb3; }
.allowed-mail { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--text-dim); font-size: 12px; }
.allowed-mail summary { cursor: pointer; color: var(--gold-light); }
.allowed-mail p { margin-top: 8px; overflow-wrap: anywhere; }

.account-page { padding-bottom: 24px; }
.account-logout-notice { margin-bottom: 12px; padding: 12px 15px; border: 1px solid rgba(118,204,151,.42); border-radius: 13px; color: #d8f4e1; background: rgba(49,126,78,.18); font-size: 13px; line-height: 1.45; }
.account-logout-notice strong { color: #f2fff6; }
.is-guest-account .account-balance { grid-template-columns: minmax(110px,.55fr) minmax(290px,1.45fr); }
.is-guest-account .account-balance .rewarded-wallet { grid-column: 2; }
.guest-identities-intro { margin: -2px 0 16px; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.guest-link-bonus { padding: 5px 8px; border: 1px solid rgba(226,196,111,.35); border-radius: 999px; color: var(--gold-light); background: rgba(201,168,76,.08); white-space: nowrap; }
.guest-session-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 11px; line-height: 1.5; }
.guest-existing-account { display: block; margin-top: 16px; color: var(--gold-light); font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) {
  .is-guest-account .account-balance { grid-template-columns: 1fr; }
  .is-guest-account .account-balance .rewarded-wallet { grid-column: 1; }
}
.account-overview { padding: 22px 0 14px; }
.account-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(35,28,67,.94), rgba(27,22,55,.92));
  box-shadow: 0 12px 36px rgba(3,2,12,.18);
}
.account-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.account-avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px;
  border: 1px solid var(--line); border-radius: 15px; color: var(--gold-light);
  background: rgba(201,168,76,.08);
}
.account-avatar svg { width: 30px; height: 30px; }
.account-identity .kicker { margin-bottom: 3px; }
.account-identity h1 { overflow-wrap: anywhere; font-size: clamp(27px, 3vw, 34px); }
.account-identity .muted { margin-top: 3px; font-size: 12px; }
.account-identity > div { min-width:0; }
.account-id { margin-top:10px; max-width:380px; }
.account-id-label { display:block; color:var(--text-dim); font-size:11px; }
.account-copy-id { display:inline-flex; max-width:100%; padding:4px 2px; border:0; color:var(--text-dim); background:none; cursor:pointer; align-items:center; gap:7px; text-align:left; }
.account-copy-id code { display:block; min-width:0; overflow:hidden; color:inherit; font:11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow:ellipsis; }
.account-copy-id::after { width:14px; flex-shrink:0; color:var(--gold); content:''; font:700 12px/1 var(--sans); }
.account-copy-id.is-copied::after { content:'✓'; }
.account-copy-id.is-copy-error::after { content:'!'; }
.account-copy-id:hover,.account-copy-id:focus-visible { color:var(--gold-light); outline:1px solid var(--gold); outline-offset:3px; border-radius:3px; }
.account-id-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.account-balance {
  display: grid; grid-template-columns: minmax(100px, .5fr) minmax(220px, 1fr) minmax(240px, 1fr);
  grid-template-rows: auto auto auto; flex: 1 1 680px; gap: 2px 12px; align-items: center;
  min-width: 0; padding-left: 22px; border-left: 1px solid var(--line);
}
.account-balance > span { color: var(--text-faint); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.account-balance > span { grid-column: 1; grid-row: 1; }
.account-balance > .account-balance-value { display: flex; grid-column: 1; grid-row: 2; align-items: baseline; gap: 7px; }
.account-balance strong { color: var(--gold-light); font: 600 36px/1.05 var(--serif); }
.account-balance small { color: var(--text-dim); font-size: 13px; }
.account-balance > p { grid-column: 1; grid-row: 3; margin-top: 2px; color: var(--text-faint); font-size: 11px; }
.daily-gift-wallet,
.rewarded-wallet { display: grid; gap: 6px; margin-top: 14px; }
.daily-gift-wallet { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
.rewarded-wallet { grid-column: 3; grid-row: 1 / 4; margin-top: 0; }
.daily-gift-wallet .daily-gift-button,
.rewarded-wallet .rewarded-button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; height: 46px; min-height: 46px; padding: 0 12px 0 16px;
  border-radius: 14px; white-space: nowrap; text-align: left;
}
.daily-gift-wallet .daily-gift-button { color: #181123; background: linear-gradient(110deg, var(--gold), var(--gold-light)); }
.rewarded-wallet .rewarded-button { border: 1px solid rgba(226,196,111,.46); color: var(--text); background: rgba(10,7,25,.26); box-shadow: none; }
.rewarded-wallet .rewarded-button:hover:not(:disabled) { border-color: var(--gold-light); background: rgba(201,168,76,.09); }
.wallet-action-value {
  display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 28px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap;
}
.daily-gift-button .wallet-action-value { color: #21182b; background: rgba(255,255,255,.26); }
.rewarded-button .wallet-action-value { color: var(--gold-light); background: rgba(201,168,76,.12); }
.daily-gift-wallet .daily-gift-button:disabled,
.rewarded-wallet .rewarded-button:disabled { cursor: default; opacity: .64; box-shadow: none; }
.daily-gift-wallet > p,
.rewarded-wallet-meta > p {
  overflow: hidden; min-height: 16px; margin: 0; color: var(--text-dim); font-size: 11px; line-height: 16px;
  text-overflow: ellipsis; white-space: nowrap;
}
.rewarded-wallet-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; min-width: 0; }
.rewarded-limit { flex: 0 0 auto; color: var(--text-dim); font-size: 11px; line-height: 16px; white-space: nowrap; }
.rewarded-limit b { color: var(--gold-light); font-weight: 800; }
.rewarded-wallet-meta > p { min-width: 0; text-align: right; }
.daily-gift-wallet > p.is-error,
.rewarded-wallet-meta > p.is-error { color: var(--danger); }
.daily-gift-wallet > p.is-success,
.rewarded-wallet-meta > p.is-success { color: var(--success); }
.daily-gift-wallet.is-busy .daily-gift-button,
.rewarded-wallet.is-busy .rewarded-button { cursor: wait; opacity: .72; }

.account-section { padding: 0 0 34px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.account-primary { display: grid; gap: 18px; min-width: 0; }
.account-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(28,23,57,.9); }
.account-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.account-card-head .kicker { margin-bottom: 4px; }
.account-card-head h2 { font-size: 25px; }
.account-card-head > span { color: var(--text-faint); font-size: 12px; }
.account-practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.payment-receipt { display: grid; gap: 7px; margin: -2px 0 14px; }
.payment-receipt label { color: var(--text-dim); font-size: 12px; font-weight: 700; }
.payment-receipt input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--bg-2); font-size: 14px; }
.payment-receipt input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.payment-receipt p { color: var(--text-dim); font-size: 11px; }
.payment-receipt strong { color: var(--text); }
.payment-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.payment-package {
  display: flex; width: 100%; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 18px; border: 1px solid rgba(201,168,76,.26); border-radius: 18px;
  color: var(--text); background: linear-gradient(135deg, rgba(35,28,72,.98), rgba(23,18,51,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035); text-align: left;
}
.payment-package:hover:not(:disabled) { border-color: var(--gold); background: linear-gradient(135deg, rgba(45,36,87,.98), rgba(29,23,61,.98)); transform: translateY(-1px); }
.payment-package:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.payment-package:disabled { opacity: .72; }
.payment-package > span { display: grid; gap: 2px; }
.payment-package b { color: #fff; font-size: 15px; }
.payment-package small { color: var(--text-dim); font-size: 11px; font-weight: 500; }
.payment-package strong { color: #f2d77f; font-size: 16px; white-space: nowrap; }
.payment-terms-note { margin-top: 12px; color: var(--text-faint); font-size: 11px; line-height: 1.5; }
.payment-terms-trigger {
  padding: 0; border: 0; color: var(--gold-light); background: transparent;
  font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(242,215,127,.4);
  text-underline-offset: 4px; cursor: pointer;
}
.payment-terms-trigger:hover { color: #fff0b5; }
.payment-terms-trigger:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 3px; }
.purchase-terms-panel { display: grid; width: min(100%, 920px); max-height: min(88vh, 900px); padding: 0; overflow: hidden; }
.purchase-terms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); }
.purchase-terms-head .kicker { margin-bottom: 5px; }
.purchase-terms-head h2 { font-size: 28px; }
.purchase-terms-close { flex: 0 0 auto; width: 34px; height: 34px; border: 0; color: var(--text-dim); background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.purchase-terms-close:hover { color: var(--gold-light); }
.purchase-terms-close:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 8px; }
.purchase-terms-scroll { overflow: auto; overscroll-behavior: contain; padding: 22px 24px 26px; }
.purchase-terms-content { display: grid; gap: 22px; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.purchase-terms-content > .purchase-terms-date { margin-bottom: -10px; color: var(--text-faint); font-size: 11px; }
.purchase-terms-content section { display: grid; gap: 8px; }
.purchase-terms-content h3 { color: var(--text); font: 700 19px var(--serif); }
.purchase-terms-content a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.purchase-price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.purchase-price-groups details { border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(11,8,27,.28); }
.purchase-price-groups summary { padding: 10px 12px; color: var(--gold-light); font-weight: 800; cursor: pointer; }
.purchase-price-groups ul { display: grid; gap: 6px; padding: 0 12px 12px; list-style: none; }
.purchase-price-groups li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.04); padding-top: 6px; }
.purchase-price-groups li b { flex: 0 0 auto; color: var(--text); font-size: 12px; }
.purchase-operator-details { padding: 14px; border: 1px solid rgba(201,168,76,.25); border-radius: 12px; background: rgba(201,168,76,.055); }
.delete-balance-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-dim); font-size: 12px; line-height: 1.5; cursor: pointer; }
.delete-balance-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); }
.delete-balance-consent:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 4px; }
.legal-doc > .purchase-terms-content { margin-top: 14px; }
.account-practices a, .account-practices .is-soon {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  min-height: 72px; padding: 12px 13px; border: 1px solid var(--line-soft); border-radius: 13px;
  color: var(--text-dim); background: rgba(12,9,30,.2); transition: .18s;
}
.account-practices a:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.account-practices .is-soon { filter: grayscale(.55); opacity: .42; }
.account-practices .glyph { width: 30px; height: 30px; color: var(--accent); }
.account-practices a > span, .account-practices .is-soon > span { display: grid; min-width: 0; }
.account-practices b { color: var(--text); font-size: 14px; }
.account-practices small { overflow: hidden; margin-top: 2px; color: var(--text-faint); font-size: 10.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.account-practices i { color: var(--accent); font-size: 15px; font-style: normal; opacity: .8; }
.empty-state { padding: 18px; border-radius: 12px; color: var(--text-faint); background: rgba(12,9,30,.24); font-size: 13px; text-align: center; }
.transaction-list { list-style: none; display: grid; gap: 1px; }
.transaction-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.transaction-list span { display: grid; }
.transaction-list small { color: var(--text-faint); }
.transaction-list .positive { color: #a9dfb3; }
.transaction-list .negative { color: #ffadad; }
.account-settings form > .field { margin: 0 0 10px; }
.account-settings form > .form-status:empty { display: none; min-height: 0; margin: 0; }
.account-settings form > .form-status:not(:empty) { min-height: 18px; margin: 6px 0; }
.account-settings form > .btn { width: 100%; justify-content: center; }
.account-session { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.account-session > div { display: grid; gap: 3px; }
.account-session b { font-size: 13px; }
.account-session span { color: var(--text-faint); font-size: 11px; }
.account-session .btn { width: 100%; justify-content: center; }
.identity-list { display: grid; gap: 8px; }
.identity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(11,8,27,.34); }
.identity-row > span { display: grid; gap: 2px; }
.identity-row small { color: var(--text-faint); font-size: 10.5px; }
.identity-row i { color: var(--gold-light); font-size: 17px; font-style: normal; }
.identity-row em { color: var(--text-faint); font-size: 11px; font-style: normal; }
.identity-row .btn-compact { width: auto; min-height: 32px; padding: 6px 11px; font-size: 11px; }
.account-link-success { padding: 9px 11px; border: 1px solid rgba(217,183,74,.4); border-radius: 10px; color: var(--gold-light); font-size: 12px; }
.dialog-open { overflow: hidden; }
.site-dialog[hidden] { display: none; }
.site-dialog { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; }
.site-dialog-backdrop { position: absolute; inset: 0; background: rgba(5,3,15,.78); backdrop-filter: blur(7px); }
.site-dialog-panel { position: relative; width: min(100%, 470px); padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #21183f, #17112e); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.site-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border: 1px solid rgba(255,130,130,.45); border-radius: 14px; color: #ffaaa7; background: rgba(122,35,50,.22); font: 700 22px var(--serif); }
.site-dialog-copy .kicker { margin-bottom: 6px; color: #ffaaa7; }
.site-dialog-copy h2 { font-size: 29px; }
.site-dialog-copy > p:last-child { margin-top: 10px; color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.site-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.site-dialog-actions .btn { width: 100%; justify-content: center; }
.danger-zone { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.danger-zone summary { cursor: pointer; color: #ffadad; font-size: 13px; }
.danger-zone form { display: grid; gap: 10px; margin-top: 16px; }
.danger-zone form > .field,
.danger-zone form > .form-status { margin: 0; }
.danger-zone form > .form-status:empty { display: none; }

/* ── Энциклопедия ───────────────────────────── */
.enc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.enc-cat { display: block; padding: 24px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: 0.18s; }
.enc-cat:hover { border-color: var(--accent, var(--gold)); transform: translateY(-3px); }
.enc-cat h3,
.enc-cat .more { color: var(--gold-light); }
.enc-cat h3 { margin-bottom: 8px; }
.enc-list { display: grid; gap: 12px; }
.enc-item { display: block; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 12px; transition: 0.15s; }
.enc-item:hover { border-color: var(--gold); }
.enc-item h3 { font-size: 19px; margin-bottom: 4px; }
.enc-item p { color: var(--text-dim); font-size: 14px; }
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-dim); }
.article-body { max-width: 70ch; }
.article-body p { margin: 16px 0; color: var(--text); }
.article-body .article-lead { font-size: 19px; color: var(--gold-light); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: var(--text-faint); font-size: 13px; }
.article-toc { margin: 28px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.article-toc ol { display: grid; gap: 9px; margin: 12px 0 0; padding-left: 22px; }
.article-toc a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(229,198,118,.35); text-underline-offset: 3px; }
.article-section { scroll-margin-top: 110px; margin-top: 38px; }
.article-section h2,
.article-sources h2,
.article-related h2 { margin-bottom: 12px; font-size: clamp(25px, 4vw, 34px); }
.article-section ul { display: grid; gap: 10px; margin: 16px 0; padding-left: 24px; color: var(--text); }
.article-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.article-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.article-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; background: rgba(15,11,34,.5); }
.article-table-wrap th,
.article-table-wrap td { padding: 13px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.article-table-wrap th { color: var(--gold-light); font-size: 13px; letter-spacing: .04em; }
.article-table-wrap tr:last-child td { border-bottom: 0; }
.article-note { margin: 20px 0; padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--bg-card); }
.article-note strong { color: var(--gold-light); }
.article-note p { margin: 8px 0 0; }
.article-sources,
.article-related { margin-top: 42px; }
.article-sources ol { display: grid; gap: 10px; padding-left: 22px; color: var(--text-dim); }
.article-sources a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.article-related-grid { display: grid; gap: 12px; }
.soft-paywall { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); text-align: center; }

/* ── Демо-разбор ───────────────────────────── */
.demo-wrap { max-width: 720px; }
.demo-box { margin-top: 24px; padding: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.demo-out { margin-top: 16px; padding: 18px; background: var(--bg-2); border-left: 3px solid var(--gold); border-radius: 10px; color: var(--text); min-height: 40px; white-space: pre-wrap; }
.demo-out[hidden] { display: none; }
.input-label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.reading-control { width: 100%; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-family: var(--sans); font-size: 15px; resize: vertical; color-scheme: dark; }
.reading-control:focus { outline: none; border-color: var(--accent, var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--gold)) 12%, transparent); }
.demo-intro { color: var(--text-dim); margin-bottom: 18px; }
.demo-submit { margin-top: 14px; }
.unavailable-note { max-width: 820px; display: grid; grid-template-columns: 74px 1fr; gap: 26px; align-items: center; }
.unavailable-note > .glyph { width: 74px; height: 74px; color: var(--accent); }
.unavailable-note h2 { margin: 6px 0 10px; }
.access-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.access-detail h2 { margin: 8px 0 10px; color: var(--accent); }
.access-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.access-card h3 { margin-bottom: 12px; }
.access-card p { margin-top: 14px; color: var(--text-faint); font-size: 12px; }
.store-list { display: flex; gap: 7px; flex-wrap: wrap; }
.ad-slot { min-height: 110px; margin-top: 24px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(0,0,0,.12); }
.ad-slot > span { display: block; margin-bottom: 8px; color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; }

/* ── Полные веб-приложения / PWA ───────────────────────────── */
.webapp-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}
.webapp-launch h2 { margin: 8px 0 14px; }
.webapp-launch .muted { max-width: 68ch; }
.webapp-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.webapp-points span {
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 12px;
}
.webapp-preview {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    var(--bg-card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.webapp-preview .glyph { width: 88px; height: 88px; color: var(--accent); margin-bottom: 22px; }
.webapp-preview strong { font-family: var(--serif); font-size: 30px; }
.webapp-preview span { color: var(--text-faint); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

.workspace-page { height: 100dvh; overflow: hidden; background: #080711; }
.workspace-bar {
  height: calc(62px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 9, 26, .94);
  backdrop-filter: blur(18px);
}
.workspace-back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
}
.workspace-title { min-width: 0; line-height: 1.1; }
.workspace-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.workspace-title span { color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; }
.workspace-install {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  font: 600 12px var(--sans);
  cursor: pointer;
}
.workspace-main { height: calc(100dvh - 62px - env(safe-area-inset-top)); display: block; }
.workspace-side {
  display: none;
}
.workspace-side h1 { margin: 8px 0 4px; font-size: clamp(36px, 5vw, 66px); }
.workspace-side > p:not(.kicker) { color: var(--text-dim); }
.workspace-side ul { margin: 22px 0; padding-left: 20px; color: var(--text); }
.workspace-side li { margin: 8px 0; }
.workspace-side .workspace-local { margin: 22px 0; padding: 14px; border-left: 2px solid var(--accent); font-size: 13px; }
.workspace-device {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #090812;
  box-shadow: none;
}
.workspace-device iframe { width: 100%; height: 100%; display: block; border: 0; background: #090812; }

.install-sheet[hidden] { display: none; }
.install-sheet { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: end center; }
.install-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, .72); }
.install-sheet-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 28px calc(28px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: var(--bg-card);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, .55);
}
.install-sheet-card h2 { margin: 7px 32px 14px 0; }
.install-sheet-card ol { padding-left: 22px; color: var(--text); }
.install-sheet-card li { margin: 11px 0; }
.install-sheet-card > p:last-child { margin-top: 16px; color: var(--text-dim); }
.install-sheet-close { position: absolute; top: 16px; right: 18px; border: 0; background: none; color: var(--text); font-size: 30px; cursor: pointer; }

/* ── Подвал ───────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 60px; padding: 46px 0 30px; color: var(--text-dim); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-faint); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text-dim); padding: 4px 0; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-soon { display: block; padding: 4px 0; color: var(--text-faint); opacity: .55; }
.legal-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

@media (max-width: 920px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-story, .access-detail { grid-template-columns: 1fr; gap: 36px; }
  .split-story h2 { max-width: 20ch; }
  .webapp-launch { grid-template-columns: 1fr 220px; gap: 30px; }
  .account-practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 701px) and (max-width: 1150px) {
  .account-summary { align-items: stretch; flex-direction: column; gap: 14px; }
  .account-balance {
    flex: 0 0 auto;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .site-dialog { align-items: end; padding: 10px; }
  .site-dialog-panel { padding: 20px 18px 18px; border-radius: 20px 20px 14px 14px; }
  .site-dialog-copy h2 { font-size: 25px; }
  .site-dialog-actions { grid-template-columns: 1fr; }
  .site-dialog-actions [data-dialog-confirm] { grid-row: 1; }
  .purchase-terms-dialog { align-items: stretch; padding: 8px; }
  .purchase-terms-panel { max-height: calc(100dvh - 16px); padding: 0; border-radius: 16px; }
  .purchase-terms-head { padding: 18px 16px 14px; }
  .purchase-terms-head h2 { font-size: 23px; }
  .purchase-terms-scroll { padding: 18px 16px 22px; }
  .purchase-price-groups { grid-template-columns: 1fr; }
  .wrap { padding-inline: 14px; }
  .site-header .wrap { height: 58px; gap: 12px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand .logo { width: 27px; height: 27px; }
  .burger { width: 42px; height: 42px; padding: 8px; }
  .nav { inset-block-start: 58px; }

  .hero { padding: 24px 0 18px; }
  .hero-home { padding: 26px 0 8px; }
  .hero-home .kicker { display: none; }
  .hero-home h1 { max-width: 100%; margin: 0 auto 10px; font-size: 29px; line-height: 1.04; }
  .hero p.lead { max-width: 34ch; margin-bottom: 0; font-size: 13px; line-height: 1.45; }
  .hero .cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .cta .btn { justify-content: center; min-width: 0; padding: 11px 8px; font-size: 12.5px; white-space: nowrap; }

  .section { padding: 36px 0; }
  #apps.section { padding-top: 12px; }
  #apps .section-head { margin-bottom: 18px; }
  #apps .section-head h2 { margin: 7px 0 8px; font-size: 28px; }
  #apps .section-head .muted { font-size: 13px; line-height: 1.5; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .app-card { min-height: 158px; padding: 14px 12px 12px; border-radius: 14px; }
  .app-card .glyph { width: 32px; height: 32px; margin-bottom: 7px; }
  .app-card h3 { margin-bottom: 4px; font-size: 18px; }
  .app-card .tg { font-size: 11.5px; line-height: 1.35; }
  .app-card .more { padding-top: 8px; font-size: 11.5px; }
  .app-card .badge { top: 9px; right: 9px; padding: 2px 5px; font-size: 8px; letter-spacing: .4px; }
  .app-card .ux-card-action { font-size:12px; line-height:1.4; margin:10px 0 6px; }
  .app-card .practice-card-actions { flex-wrap:nowrap; justify-content:space-between; gap:6px; }
  .app-card .practice-card-actions > :is(a,span) { display:flex; align-items:center; min-height:44px; padding:8px 0; font-size:11.5px; white-space:nowrap; }
  #apps .app-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 4.5px); justify-self: center; }

  .split-story { gap: 14px; }
  .split-story h2 { max-width: 15ch; margin-top: 7px; font-size: 27px; }
  .steps { gap: 0; }
  .step { grid-template-columns: 38px 1fr; gap: 9px; padding: 13px 0; }
  .step b { font-size: 17px; }
  .step h3 { margin-bottom: 3px; font-size: 18px; }
  .step p { font-size: 12.5px; line-height: 1.4; }

  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 28px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .feature { padding: 14px 12px; border-radius: 14px; }
  .feature .glyph { width: 27px; height: 27px; margin-bottom: 8px; }
  .feature h3 { margin-bottom: 4px; font-size: 16px; }
  .feature p { font-size: 11.5px; line-height: 1.45; }

  .approach-section { padding-bottom: 18px; }
  .access-banner { padding: 16px 0 0; }
  .access-banner > .wrap { width: 100%; padding-inline: 16px; }
  .access-banner-inner { width: 100%; }
  .access-banner-inner, .web-model { align-items: flex-start; flex-direction: column; padding: 18px 16px; gap: 14px; border-radius: 16px; }
  .access-banner h2, .web-model h2 { margin: 6px 0 7px; font-size: 26px; }
  .access-banner .muted, .web-model .muted { font-size: 13px; line-height: 1.5; }
  .access-banner .btn, .web-model .btn { padding: 12px 20px; font-size: 13px; }

  .access-principles, .currency-grid { grid-template-columns: 1fr; }
  .page-head { padding: 26px 0 8px; }
  .page-head .kicker { margin-bottom: 5px; font-size: 10px; }
  .page-head h1 { margin-bottom: 7px; font-size: 30px; line-height: 1.04; }
  .page-head .muted { max-width: 35ch; margin-inline: auto; font-size: 12.5px; line-height: 1.45; }

  .enc-grid { grid-template-columns: 1fr; gap: 8px; }
  .enc-cat { min-height: 0; padding: 13px 14px; border-radius: 13px; }
  .enc-cat h3 { margin: 0; font-size: 18px; line-height: 1.2; }
  .enc-cat > p { display: none; }
  .enc-cat .more { margin-top: 5px !important; font-size: 11.5px !important; }

  .access-explainer { padding: 14px 0 22px; }
  .access-principles { gap: 8px; }
  .access-principles > div {
    display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 9px;
    align-items: center; min-height: 62px;
    padding: 12px 13px; border-radius: 13px;
  }
  .access-principles b { font-size: 15px; line-height: 1; }
  .access-principles h3 { margin: 0; font-size: 16px; line-height: 1; transform: translateY(3px); }
  .access-principles p { font-size: 11.5px; line-height: 1.4; }
  .access-balance { padding: 26px 0; }
  .access-balance .section-head { margin-bottom: 12px; }
  .access-balance .section-head h2 { margin-top: 5px; font-size: 23px; }
  .access-balance .currency-grid { grid-template-columns: 1fr; gap: 8px; }
  .access-balance .currency-card { grid-template-columns: 32px 1fr; align-items: center; gap: 10px; min-height: 70px; padding: 12px 13px; border-radius: 13px; }
  .access-balance .currency-card .glyph { width: 30px; height: 30px; }
  .access-balance .currency-card h3 { margin: 0; font-size: 17px; line-height: 1; transform: translateY(3px); }
  .access-balance .currency-card strong { font-size: 11px; }
  .access-balance .currency-card p { display: none; }
  .access-footer { padding: 22px 0 8px; }
  .access-footer .web-model { width: 100%; }
  .unavailable-note { grid-template-columns: 1fr; }
  .site-footer { margin-top: 28px; padding: 28px 0 20px; font-size: 13px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-cols > div:first-child, .footer-cols > div:nth-child(2) { grid-column: 1 / -1; }
  .footer-cols > div:nth-child(2) { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
  .footer-cols > div:nth-child(2) h4 { grid-column: 1 / -1; }
  .footer-cols h4 { margin-bottom: 7px; font-size: 11px; letter-spacing: 1.2px; }
  .footer-cols a { padding: 3px 0; }
  .legal-note { margin-top: 22px; padding-top: 16px; font-size: 11px; line-height: 1.55; }
  .webapp-launch { grid-template-columns: 1fr; }
  .webapp-preview { display: none; }
  .workspace-main { display: block; height: calc(100dvh - 62px - env(safe-area-inset-top)); }
  .workspace-side { display: none; }
  .workspace-device { height: 100%; border: 0; border-radius: 0; }
  .email-code-row { grid-template-columns: 1fr; }
  .email-code-row .btn { justify-content: center; }
  .account-overview { padding: 20px 0 12px; }
  .account-summary { align-items: stretch; flex-direction: column; gap: 18px; padding: 18px 16px; border-radius: 18px; }
  .account-identity { gap: 12px; }
  .account-avatar { width: 46px; height: 46px; border-radius: 14px; }
  .account-avatar svg { width: 28px; height: 28px; }
  .account-identity h1 { font-size: 28px; }
  .account-identity .muted { overflow-wrap: anywhere; font-size: 11.5px; }
  .account-balance { display: block; flex: 0 0 auto; min-width: 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .account-balance strong { font-size: 36px; }
  .daily-gift-wallet, .rewarded-wallet { margin-top: 12px; }
  .rewarded-wallet-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .rewarded-limit { display: block; font-size: 12px; }
  .rewarded-wallet-meta > p { width: 100%; text-align: left; white-space: normal; }
  .account-section { padding-bottom: 20px; }
  .account-layout { grid-template-columns: 1fr; gap: 12px; }
  .account-primary { gap: 12px; }
  .account-card { padding: 16px; border-radius: 16px; }
  .account-card-head { margin-bottom: 12px; }
  .account-card-head h2 { font-size: 22px; }
  .account-practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .payment-packages { grid-template-columns: 1fr; }
  .account-practices a { grid-template-columns: 27px minmax(0, 1fr); min-height: 58px; gap: 9px; padding: 10px; }
  .account-practices .glyph { width: 26px; height: 26px; }
  .account-practices small, .account-practices i { display: none; }
  .panel { padding: 28px 20px; margin-block: 28px; }
}

.footer-brand {
  width: 168px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 24px;
  text-align: center;
}

.footer-brand > span {
  display: block;
  width: 100%;
  text-align: center;
}

.footer-brand .footer-brand-logo {
  width: 168px;
  height: 168px;
  color: var(--gold);
}

@media (max-width: 350px) {
  .hero .cta { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 158px; }
  #apps .app-card:last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .account-practice-grid { grid-template-columns: 1fr; }
}

/* ── Прочее ───────────────────────────── */
.page-head { padding: 56px 0 10px; text-align: center; }
.page-head h1 { margin-bottom: 12px; }
.legal-doc { max-width: 760px; margin: 30px auto 0; font-size: 16px; line-height: 1.7; }
.legal-doc h2 { font-size: 24px; line-height: 1.25; margin: 28px 0 10px; }
.legal-doc h3 { font-size: 19px; line-height: 1.3; margin: 22px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text-dim); margin: 10px 0; font-size: inherit; line-height: inherit; }
.legal-doc ul { padding-left: 22px; }

@media (max-width: 700px) {
  .legal-doc { margin-top: 16px; font-size: 15px; line-height: 1.65; }
  .legal-doc h2 { font-size: 21px; margin-top: 24px; }
  .legal-doc h3 { font-size: 18px; }
}
.notfound { text-align: center; padding: 100px 0; }
.notfound .big { font-family: var(--serif); font-size: 96px; color: var(--gold); }

@media (max-width: 700px) {
  .page-head { padding: 26px 0 8px; }
  .page-head h1 {
    max-width: 100%;
    margin: 0 auto 7px;
    font-size: clamp(25px, 8vw, 30px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
  }
}
