

:root {

  --bg: #101214;
  --bg-2: #15181c;
  --surface: #1d2126;
  --surface-2: #23272e;
  --line: #2a2f36;
  --line-2: #363c45;
  --text: #f2f4f6;
  --muted: #8b9bb0;
  --muted-2: #647184;
  --accent: #b6f34c;
  --accent-dim: #9dd63a;
  --accent-ink: #10140a;
  --ok: #7ee081;
  --warn: #ffcf5c;
  --err: #ff8a8a;

  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;

  --font-display: "Neue Machina", "Tektur", sans-serif;
  --font-ui: "Golos Text", sans-serif;
  --font-mono: "PT Mono", ui-monospace, monospace;

  --h1: clamp(2.375rem, 4.4vw + 1rem, 4.5rem);
  --h2: clamp(2rem, 2.2vw + 1rem, 2.75rem);
  --h3: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;

  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(182, 243, 76, .05), transparent 60%),
    linear-gradient(180deg, rgba(16, 18, 20, .4), var(--bg) 70%);
}

main { flex: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: var(--h1); line-height: .96; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: var(--h2); line-height: 1.04; letter-spacing: -.01em; }
h3 { font-size: var(--h3); line-height: 1.15; font-weight: 500; }

p { line-height: 1.6; }

a { color: var(--accent); text-decoration: none; transition: color .18s; }
a:hover { color: var(--accent-dim); }

img, svg { max-width: 100%; }

.container { width: min(1200px, 100% - 44px); margin-inline: auto; }
.container.narrow { max-width: 820px; }

.center { text-align: center; }
.mt24 { margin-top: 24px; }

.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

::selection { background: rgba(182, 243, 76, .28); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 500; font-size: .98rem;
  padding: 11px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform .15s, background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-dim); color: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-soft:hover { border-color: var(--line-2); color: var(--text); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-balance { gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.btn-balance .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 18, 20, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }

.logo { display: flex; align-items: center; gap: 11px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent); display: block; }
.logo-mark svg { display: block; }
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.24rem;
  letter-spacing: -.01em; line-height: 1;
}

.nav-links { display: flex; gap: 24px; margin-left: 6px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--text); }

.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; padding: 8px 22px 18px;
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.mobile-menu a { padding: 12px 4px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }

.flash {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm);
  font-size: .95rem; border: 1px solid;
}
.flash-ok { background: rgba(126, 224, 129, .08); border-color: rgba(126, 224, 129, .35); color: #b7edb9; }
.flash-err { background: rgba(255, 138, 138, .08); border-color: rgba(255, 138, 138, .35); color: #ffc0c0; }

.hero { padding: 46px 0 20px; }
.hero-inner { max-width: 760px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .82rem; font-weight: 500; letter-spacing: 0;
  color: var(--accent-dim); border: 1px solid rgba(182, 243, 76, .3);
  background: rgba(182, 243, 76, .06); border-radius: 999px; padding: 6px 14px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 620px; line-height: 1.55; }

.search {
  margin: 26px 0 14px; display: flex; gap: 10px; max-width: 620px;
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .18s;
}
.search-field svg { flex: none; color: var(--muted-2); pointer-events: none; }
.search input {
  flex: 1; min-width: 0; width: 100%; padding: 14px 0; border: none; background: transparent;
  color: var(--text); font-family: var(--font-ui); font-size: 1rem;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; }
.search-field:focus-within { border-color: var(--accent); }

.section { padding: 40px 0; }
.section.tight { padding: 22px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: .96rem; margin-top: 6px; }
.eyebrow {
  display: block; font-family: var(--font-ui); font-size: .84rem; font-weight: 600;
  letter-spacing: 0; color: var(--accent-dim); margin-bottom: 10px;
}
.link-arrow { font-weight: 500; font-size: .95rem; color: var(--muted); }
.link-arrow:hover { color: var(--accent); }

.page-head { padding: 44px 0 6px; }
.page-head.slim { padding: 30px 0 0; }
.page-sub { color: var(--muted); margin-top: 12px; max-width: 660px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s, background .18s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); transition: border-color .18s, transform .18s;
}
.cat-tile:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); }
.cat-tile .ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent); }
.cat-tile .ico svg { width: 24px; height: 24px; }
.chip-ico { display: inline-flex; color: var(--accent); }
.chip-ico svg { width: 17px; height: 17px; }
.head-ico { display: inline-flex; vertical-align: -6px; margin-right: 9px; color: var(--accent); }
.head-ico svg { width: 24px; height: 24px; }
.cat-tile b { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; }
.cat-tile span { display: block; color: var(--muted); font-size: .82rem; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pgrid.six { grid-template-columns: repeat(3, 1fr); }

.pcard {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; color: var(--text);
  transition: border-color .18s, transform .18s;
}
.pcard:hover { border-color: var(--line-2); transform: translateY(-3px); color: var(--text); }

.pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard-cover {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2);
  overflow: hidden;
}
.pcard-cover svg { width: 30px; height: 30px; display: block; }
.pcard-cover.big { width: 68px; height: 68px; border-radius: 14px; }
.pcard-cover.big svg { width: 44px; height: 44px; }
.pcard-name { font-family: var(--font-ui); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.pcard-short { color: var(--muted); font-size: .88rem; line-height: 1.45; flex: 1; }

.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px;
}
.tag.stock { color: var(--accent-dim); }
.tag.stock .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.pcard-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.4rem; }
.pcard-price small { font-family: var(--font-ui); font-weight: 400; font-size: .72rem; color: var(--muted); display: block; letter-spacing: 0; }
.pcard .btn { padding: 9px 16px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; position: relative;
}
.step-num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: .82rem; color: var(--accent-ink); background: var(--accent);
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: .9rem; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px;
}
.feat .ico {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent);
}
.feat h3 { font-size: 1.04rem; margin-bottom: 7px; }
.feat p { color: var(--muted); font-size: .9rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
}
.review p { font-size: .94rem; line-height: 1.55; }
.review-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--accent-dim); }
.review-by b { font-size: .9rem; font-weight: 500; }
.review-by span { display: block; color: var(--muted); font-size: .78rem; }

.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 500; font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 15px; height: 15px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); }
.faq-plus::before { width: 15px; height: 2px; }
.faq-plus::after { width: 2px; height: 15px; transition: transform .22s; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-body { padding: 0 20px 18px; color: var(--muted); font-size: .93rem; }

.support-band {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px;
}
.support-band h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 10px; }
.support-band p { color: var(--muted); }
.support-actions { display: flex; flex-direction: column; gap: 10px; justify-content: center; }

.crumbs { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--text); font-weight: 500; }

.product-layout { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }

.product-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.product-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px;
  margin-bottom: 16px;
}
.panel h3 { font-size: 1.1rem; margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: .95rem; }
.panel + .panel { margin-top: 0; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { display: flex; gap: 10px; color: var(--muted); font-size: .93rem; }
.info-list li b { color: var(--text); font-weight: 500; }

.buy-panel {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 22px; position: sticky; top: 82px;
}
.buy-panel h3 { font-size: 1.06rem; margin-bottom: 12px; }
.buy-panel h3:not(:first-child) { margin-top: 20px; }

.variants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant-box {
  display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .15s, background .15s;
}
.variant-title { font-weight: 500; font-size: .9rem; }
.variant-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); font-size: .84rem; }
.variant-box:hover { border-color: var(--line-2); }
.variant input:checked + .variant-box { border-color: var(--accent); background: rgba(182, 243, 76, .06); }
.variant input:checked + .variant-box .variant-price { color: var(--accent-dim); }
.variant input:focus-visible + .variant-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.buy-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 20px 0 8px; padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.buy-total span { color: var(--muted); font-size: .9rem; }
.buy-total b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.25rem); }

.fee-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); padding: 4px 2px; }
.fee-row .mono { color: var(--text); }

.warn-box {
  display: flex; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255, 207, 92, .07); border: 1px solid rgba(255, 207, 92, .3);
  color: #ffe0a0; font-size: .86rem; line-height: 1.45;
}
.warn-box svg { flex-shrink: 0; color: var(--warn); }

.buy-hint { margin-top: 12px; color: var(--muted); font-size: .87rem; text-align: center; }
.buy-hint .mono { color: var(--text); }

.form-field { margin-bottom: 15px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 500; font-size: .9rem; }
.form-field small { color: var(--muted); font-size: .8rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--font-ui); font-size: .95rem;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
textarea { resize: vertical; }

input[name^="f_"] { font-family: var(--font-mono); }

.auth-section { display: flex; justify-content: center; padding: 60px 22px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 34px 30px;
}
.auth-card h1 { font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: .92rem; }

.agree { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 18px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.agree input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.agree a { color: var(--accent-dim); }

.profile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.profile-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .95rem; }
.profile-meta .mono { color: var(--text); }
.link-muted { color: var(--muted); text-decoration: underline; }
.link-muted:hover { color: var(--err); }

.cab-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.cab-nav a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.cab-nav a:hover { color: var(--text); border-color: var(--line-2); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card-label { display: block; font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 14px; }
.card-text { color: var(--muted); font-size: .92rem; }
.card.span2 { grid-column: 1 / -1; }

.balance-card { display: flex; flex-direction: column; }
.balance-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 700; margin-bottom: 16px; line-height: 1; }
.balance-value span { color: var(--muted); font-size: .5em; }

.tg-status { font-weight: 500; margin-bottom: 8px; }
.tg-status.ok { color: var(--accent-dim); }
.code-chip { display: block; margin-top: 10px; padding: 10px 13px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .9rem; color: var(--accent-dim); word-break: break-all; }

.order-item { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; background: var(--bg-2); }
.order-item:last-child { margin-bottom: 0; }
.order-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-title { font-weight: 500; font-size: .98rem; }
.order-title .num { color: var(--muted); }
.order-sub { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.order-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }

.timeline { list-style: none; margin: 16px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line); }
.timeline li { position: relative; padding: 12px 0 2px 22px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--surface); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li.cur::before { background: var(--accent); }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-status { font-weight: 500; font-size: .9rem; }
.tl-time { font-family: var(--font-mono); font-size: .76rem; color: var(--muted-2); }
.tl-actor { font-size: .76rem; color: var(--muted); }
.tl-note { color: var(--muted); font-size: .86rem; margin-top: 3px; }

.clarify-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 207, 92, .06); border: 1px solid rgba(255, 207, 92, .28); }
.clarify-box .q { color: #ffe0a0; font-size: .92rem; margin-bottom: 10px; }
.clarify-box form { display: flex; gap: 8px; flex-wrap: wrap; }
.clarify-box input { flex: 1; min-width: 200px; }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main b { font-size: .92rem; font-weight: 500; }
.row-main span { color: var(--muted); font-size: .8rem; }
.row-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.row-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .95rem; }

.saved-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved-item:last-child { border-bottom: 0; }
.saved-item .data { color: var(--muted); font-size: .82rem; margin-top: 2px; font-family: var(--font-mono); }
.saved-item form { display: inline; }
.icon-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: .8rem; }
.icon-btn:hover { border-color: var(--err); color: var(--err); }

.badge {
  font-family: var(--font-ui); font-size: .76rem; font-weight: 500; letter-spacing: 0;
  padding: 4px 9px; border-radius: 6px; border: 1px solid; white-space: nowrap;
}
.st-pending { color: var(--warn); border-color: rgba(255, 207, 92, .4); background: rgba(255, 207, 92, .08); }
.st-progress { color: #9ad2ff; border-color: rgba(154, 210, 255, .4); background: rgba(154, 210, 255, .08); }
.st-clarify { color: #ffcf5c; border-color: rgba(255, 207, 92, .45); background: rgba(255, 207, 92, .1); }
.st-done { color: var(--accent-dim); border-color: rgba(182, 243, 76, .4); background: rgba(182, 243, 76, .08); }
.st-cancel { color: var(--err); border-color: rgba(255, 138, 138, .4); background: rgba(255, 138, 138, .08); }

.topup-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.topup-form h3 { margin: 20px 0 12px; font-size: 1.06rem; }
.topup-form h3:first-child { margin-top: 0; }

.presets { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.preset { padding: 8px 15px; border-radius: 999px; cursor: pointer; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .88rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); }
.preset:hover { border-color: var(--accent); }

.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-box { display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: center; padding: 13px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .15s, background .15s; }
.method-box b { font-size: .92rem; font-weight: 500; }
.method-box span { color: var(--muted); font-size: .76rem; }
.method-box:hover { border-color: var(--line-2); }
.method input:checked + .method-box { border-color: var(--accent); background: rgba(182, 243, 76, .06); }

.requisites { margin-top: 14px; padding: 15px 16px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); }
.requisites.hidden { display: none; }
.req-label { display: block; font-size: .84rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.requisites code { font-family: var(--font-mono); color: var(--accent-dim); font-size: .92rem; word-break: break-all; }

.topup-side { display: flex; flex-direction: column; gap: 16px; }
.mini-steps { padding-left: 18px; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; gap: 7px; }

.legal { max-width: 820px; }
.legal-intro { color: var(--muted); font-size: 1.02rem; margin: 8px 0 30px; line-height: 1.6; }
.legal h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal .updated { color: var(--muted-2); font-size: .84rem; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); }

.footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-ui); font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col span { color: var(--muted); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@keyframes revealUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(240%) skewX(-18deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

.reveal { opacity: 0; }
.reveal.in { animation: revealUp .6s cubic-bezier(.22,.61,.36,1) both; }
.hero-inner > * { animation: revealUp .6s cubic-bezier(.22,.61,.36,1) both; }
.hero-inner > *:nth-child(2) { animation-delay: .06s; }
.hero-inner > *:nth-child(3) { animation-delay: .12s; }
.hero-inner > *:nth-child(4) { animation-delay: .18s; }

.pcard, .cat-tile { transition: border-color .18s, transform .18s, box-shadow .18s; }
.pcard:hover { box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.pcard-cover svg, .cat-tile .ico svg { transition: transform .2s ease; }
.pcard:hover .pcard-cover svg, .cat-tile:hover .ico svg { transform: scale(1.08); }

.tag.stock .dot { animation: pulseDot 2.4s ease-in-out infinite; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-130%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: sheen .8s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; }
}

@media (max-width: 1080px) {
  .pgrid, .pgrid.six { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .product-layout, .topup-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .support-band { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-actions .btn-desktop { display: none; }
  .burger { display: block; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .pgrid, .pgrid.six, .cat-grid, .steps, .methods, .variants { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: flex-start; }
  .row-side { width: 100%; justify-content: space-between; }
  .feat-grid, .reviews { grid-template-columns: 1fr; }
}
