/* COBRA · сайт. Токены = переменные Figma «COBRA · Сайт» (коллекции Color и Layout). */
:root {
  --c-bg-page: #141414; --c-bg-inset: #0e0e0e;
  --c-surface-default: #1a1a1a; --c-surface-raised: #202020; --c-surface-hover: #272727; --c-surface-selected: #2f2f2f;
  --c-border-default: #272727; --c-border-strong: #393939;
  --c-text-primary: #ededed; --c-text-secondary: #a3a3a3; --c-text-tertiary: #8c8c8c; --c-text-on-accent: #141414;
  --c-accent: #ff9500; --c-accent-hover: #ffa733; --c-accent-pressed: #e88600; --c-accent-soft: #3d2c15;
  --c-success: #3dd68c; --c-success-soft: #20382c; --c-info: #5aa9ff; --c-info-soft: #24313f;
  --c-danger: #ff6b6b; --c-danger-soft: #3f2727;
  --c-purple: #a98bff; --c-purple-soft: #312c3f; --c-yellow: #ffcc4d; --c-yellow-soft: #3f3622;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
  --container: 1200px; --header: 64px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* Движение: расстояния — переменными, чтобы prefers-reduced-motion обнулял сдвиги и оставлял прозрачность */
  --rise: 14px; --nudge: 8px; --lift: -2px; --pop: .97;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
@media (min-width: 900px) { :root { --header: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--c-bg-page); color: var(--c-text-primary);
  font: 400 16px/1.5 "Onest", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
html { scrollbar-color: var(--c-border-strong) var(--c-bg-page); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--c-accent); color: var(--c-text-on-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.wrap { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-brand { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-md);
  font-weight: 500; font-size: 14px; line-height: 20px; white-space: nowrap;
  transition: background-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(var(--pop)); }
.btn-l { min-height: 52px; padding: 0 24px; font-size: 16px; gap: 10px; }
.btn-primary { background: var(--c-accent); color: var(--c-text-on-accent); }
.btn-primary:active:not(:disabled) { background: var(--c-accent-pressed); }
.btn-secondary { background: var(--c-surface-raised); box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.btn-ghost { color: var(--c-text-secondary); }
.btn-ghost.is-on { color: var(--c-success); }
.btn:disabled { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { background: var(--c-accent-hover); }
  .btn-secondary:hover:not(:disabled) { background: var(--c-surface-hover); box-shadow: inset 0 0 0 1px #4a4a4a; }
  .btn-ghost:hover:not(:disabled) { background: var(--c-surface-raised); color: var(--c-text-primary); }
}
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); color: var(--c-text-secondary); transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.icon-btn:active { transform: scale(var(--pop)); }
.icon-btn[aria-current="page"] { color: var(--c-text-primary); background: var(--c-surface-raised); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--c-surface-raised); color: var(--c-text-primary); } }
.count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--c-accent); color: var(--c-text-on-accent); font: 600 12px/18px "Onest", sans-serif; text-align: center;
  box-shadow: 0 0 0 2px var(--c-bg-page);
}
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Шапка */
.header { position: sticky; top: 0; z-index: 20; min-height: calc(var(--header) + 1px); background: var(--c-bg-page); border-bottom: 1px solid var(--c-border-default); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); }
.logo { display: block; height: 22px; width: 86px; flex: none; }
.logo svg { width: 100%; height: 100%; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-md); color: var(--c-text-secondary); font-weight: 500; font-size: 14px; transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav a[aria-current="page"] { background: var(--c-surface-raised); color: var(--c-text-primary); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--c-text-primary); } }
.left { display: flex; align-items: center; gap: 40px; min-width: 0; }
.right { display: flex; align-items: center; gap: 8px; }
.online { display: none; white-space: nowrap; align-items: center; gap: 8px; padding-right: 8px; color: var(--c-text-secondary); font-weight: 500; font-size: 14px; }
.online b { color: var(--c-text-primary); font-weight: 600; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c-success); animation: ping 2.6s var(--ease) infinite; }
.signin-label { display: none; }
.menu-btn { display: grid; }
@media (max-width: 899px) { .signin { width: 44px; min-height: 44px; padding: 0; } }
@media (min-width: 900px) {
  .logo { height: 24px; width: 94px; }
  .nav, .online { display: flex; }
  .signin-label { display: inline; }
  .menu-btn { display: none; }
}
.drawer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .25s var(--ease), visibility 0s .25s; }
.drawer-in { overflow: hidden; }
.drawer nav { display: grid; padding: 4px 0 12px; border-top: 1px solid var(--c-border-default); }
.drawer a { display: block; padding: 12px 0; font-weight: 500; color: var(--c-text-secondary); opacity: 0; transform: translateY(calc(var(--nudge) * -1)); transition: opacity .2s var(--ease), transform .25s var(--ease), color .15s; }
.drawer a[aria-current="page"] { color: var(--c-text-primary); }
.header.open .drawer { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s var(--ease); }
.header.open .drawer a { opacity: 1; transform: none; }
.header.open .drawer a:nth-child(2) { transition-delay: .03s; } .header.open .drawer a:nth-child(3) { transition-delay: .06s; }
.header.open .drawer a:nth-child(4) { transition-delay: .09s; } .header.open .drawer a:nth-child(5) { transition-delay: .12s; }
@media (min-width: 900px) { .drawer { display: none; } }

/* Игрок в шапке и меню аккаунта */
.me { position: relative; }
.user { gap: 8px; padding-inline: 6px 10px; max-width: 240px; }
.user .signin-label { overflow: hidden; text-overflow: ellipsis; }
.user .chev { width: 16px; height: 16px; color: var(--c-text-tertiary); transition: transform .2s var(--ease); }
.user[aria-expanded="true"] .chev { transform: rotate(180deg); }
.user[aria-current="page"] { box-shadow: inset 0 0 0 1px #4a4a4a; }
@media (max-width: 899px) { .user { width: 44px; min-height: 44px; padding: 0; } .user .chev { display: none; } }
.ava { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; overflow: hidden; border-radius: 7px; background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; font-size: 14px; line-height: 1; text-transform: uppercase; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava.has-img { background: var(--c-surface-hover); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 248px; padding: 6px;
  background: var(--c-surface-raised); border: 1px solid var(--c-border-strong); border-radius: var(--radius-lg);
  opacity: 0; visibility: hidden; transform: translateY(calc(var(--nudge) * -.5)) scale(.98); transform-origin: top right;
  transition: opacity .15s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .22s var(--ease); }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--c-border-default); }
.menu-head .ava { width: 36px; height: 36px; border-radius: 9px; font-size: 16px; }
.menu-who { min-width: 0; }
.menu-who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who small { display: block; color: var(--c-text-secondary); font-size: 13px; }
.menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--radius-md); color: var(--c-text-secondary); font-weight: 500; font-size: 14px; transition: background-color .12s var(--ease), color .12s var(--ease); }
.menu [role="menuitem"] .ico { width: 18px; height: 18px; }
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--c-surface-hover); color: var(--c-text-primary); outline: none; }
.menu .danger:hover, .menu .danger:focus-visible { background: var(--c-danger-soft); color: var(--c-danger); }

/* ---------- Секции */
.section { padding-block: 0 96px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head p { color: var(--c-text-secondary); margin-top: 8px; max-width: 62ch; }
h2 { font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 900px) { h2 { font-size: 32px; line-height: 40px; } }
@media (max-width: 599px) { .section { padding-bottom: 64px; } .section-head { margin-bottom: 24px; } }

/* ---------- Герой */
.hero { display: grid; gap: 32px; padding-block: 32px 64px; }
.hero h1 { font-weight: 700; font-size: 44px; line-height: 48px; letter-spacing: -.02em; text-wrap: balance; }
.hero .lead { margin-top: 16px; color: var(--c-text-secondary); font-size: 16px; line-height: 24px; max-width: 46ch; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 599px) { .actions .btn { flex: 1 1 100%; } .hero h1 { font-size: 40px; line-height: 44px; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 520px; align-items: center; gap: 48px; padding-block: 80px 96px; }
  .hero h1 { font-size: 64px; line-height: 68px; }
  .hero .lead { font-size: 18px; line-height: 28px; }
}

/* ---------- Панель серверов */
.panel { background: var(--c-surface-default); border: 1px solid var(--c-border-default); border-radius: var(--radius-xl); padding: 4px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 4px; }
.panel-head h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.panel-head span { display: flex; align-items: center; gap: 8px; color: var(--c-text-secondary); font-size: 14px; font-weight: 500; white-space: nowrap; }
.srv {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
  padding: 8px 12px 8px 8px; border-radius: var(--radius-md); text-align: left;
  transition: background-color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.srv:active { transform: scale(.99); }
.srv img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.srv-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-count { min-width: 76px; text-align: right; color: var(--c-text-secondary); font-weight: 600; font-size: 16px; white-space: nowrap; }
.srv .meter { display: none; }
.srv[aria-pressed="true"] { background: var(--c-surface-raised); box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.srv.off { color: var(--c-text-tertiary); }
.srv.off .srv-count { font-weight: 500; font-size: 14px; color: var(--c-text-tertiary); }
.srv.off img { opacity: .4; }
@media (hover: hover) and (pointer: fine) { .srv:hover { background: var(--c-surface-raised); } }
@media (min-width: 420px) { .srv { grid-template-columns: 36px minmax(0, 1fr) auto auto; } .srv .meter { display: flex; } }
.meter { display: flex; gap: 2px; }
.meter i { width: 4px; height: 14px; border-radius: 1px; background: var(--c-surface-hover); }
.meter i.on { background: var(--c-success); }
.meter.full i.on { background: var(--c-yellow); }
.panel-note { padding: 8px 12px 10px; color: var(--c-text-tertiary); font-size: 13px; }

/* ---------- Магазин */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filters + .filters { margin-bottom: 32px; }
.filters:empty { display: none; }
.filters-label { width: 100%; color: var(--c-text-tertiary); font-weight: 500; font-size: 14px; }
@media (min-width: 600px) { .filters-label { width: 72px; } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-md);
  background: var(--c-surface-default); box-shadow: inset 0 0 0 1px var(--c-border-default);
  color: var(--c-text-secondary); font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .12s var(--ease);
}
.chip:active { transform: scale(var(--pop)); }
.chip[aria-pressed="true"] { background: #fff; color: var(--c-text-on-accent); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--c-surface-hover); color: var(--c-text-primary); } }
.chip-n { color: var(--c-text-tertiary); font-weight: 500; font-size: 14px; }
.chip[aria-pressed="true"] .chip-n { color: #5c5c5c; }
.ranks { display: block; }
.group + .group { margin-top: 48px; }
.group-head { margin-bottom: 16px; }
.group-head h3 { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -.005em; }
.group-head p { margin-top: 4px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 600px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; } }

.rank {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-surface-default); border: 1px solid var(--c-border-default); border-radius: var(--radius-lg);
  transition: border-color .15s var(--ease), transform .25s var(--ease);
}
/* Картинки GameStores — квадратные карточки со своим фоном, логотипом и названием: показываем целиком, 1:1 */
.rank-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--c-surface-raised); color: var(--c-text-tertiary); border-bottom: 1px solid var(--c-border-default); }
.rank-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.rank-art > .ico { width: 40px; height: 40px; }
.card-badge { position: absolute; z-index: 1; bottom: 12px; left: 12px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--c-surface-hover); color: var(--c-text-primary); font-size: 12px; line-height: 18px; font-weight: 600; }
.card-badge.accent { background: var(--c-accent); color: var(--c-text-on-accent); }
.card-badge.ok { background: var(--c-success-soft); color: var(--c-success); }
@media (hover: hover) and (pointer: fine) {
  .rank:hover { border-color: var(--c-border-strong); transform: translateY(var(--lift)); }
  .rank:hover .rank-art { background: var(--c-surface-hover); }
  .rank:hover .rank-art img { transform: scale(1.04); }
}
.rank-body { padding: 16px 16px 0; flex: 1; }
.rank h3 { font-weight: 600; font-size: 18px; line-height: 24px; letter-spacing: -.005em; }
.rank .sub { color: var(--c-text-tertiary); font-size: 14px; line-height: 20px; margin-top: 2px; }
.perks { margin-top: 12px; display: grid; gap: 8px; }
.perks li { display: flex; gap: 8px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.perks .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--product-color, var(--c-success)); }
.more { margin-top: 8px; min-height: 32px; color: var(--c-text-tertiary); font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .more:hover { color: var(--c-text-primary); } }
.rank-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.rank-foot .buy-swap { margin-left: auto; }
.buy-swap { display: inline-flex; }
.buy-swap .in-cart { color: var(--c-success); }
.price strong { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -.005em; white-space: nowrap; }
.price s { color: var(--c-text-tertiary); font-size: 14px; font-weight: 400; }
.price span { display: block; color: var(--c-text-tertiary); font-size: 12px; line-height: 16px; font-weight: 500; }
.forever {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 16px 16px; min-height: 44px; padding: 10px 12px;
  border-radius: var(--radius-md); background: var(--c-bg-inset); box-shadow: inset 0 0 0 1px var(--c-border-default);
  font-size: 14px; color: var(--c-text-secondary); text-align: left;
  transition: box-shadow .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease), transform .12s var(--ease);
}
.forever:active { transform: scale(.99); }
.forever b { color: var(--c-text-primary); font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .forever:hover { box-shadow: inset 0 0 0 1px var(--c-border-strong); color: var(--c-text-primary); } }
.btn.added, .forever.added { background: var(--c-success-soft); color: var(--c-success); box-shadow: inset 0 0 0 1px var(--c-success-soft); }
.tag { display: inline-block; margin-top: 10px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--c-success-soft); color: var(--c-success); font-size: 12px; line-height: 16px; font-weight: 500; }
.empty { padding: 32px; border-radius: var(--radius-lg); background: var(--c-surface-default); border: 1px solid var(--c-border-default); color: var(--c-text-secondary); }

/* Скелеты: та же раскладка, мягкий блик (без движения при reduced motion) */
.skeleton { position: relative; overflow: hidden; height: 452px; border-radius: var(--radius-lg); background: var(--c-surface-default); border: 1px solid var(--c-border-default); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .035) 50%, transparent 80%); transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Боевой пропуск */
.pass { display: grid; overflow: hidden; background: var(--c-surface-default); border: 1px solid var(--c-border-default); border-radius: var(--radius-xl); }
.pass-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 28px 20px; }
.pass-text .lead { color: var(--c-text-secondary); max-width: 56ch; text-wrap: pretty; }
.pass-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.pass-price strong { display: block; font-weight: 700; font-size: 40px; line-height: 44px; letter-spacing: -.015em; }
.pass-price span { display: block; color: var(--c-text-tertiary); font-size: 13px; }
.pass-left { display: flex; align-items: center; gap: 8px; color: var(--c-text-secondary); font-weight: 500; font-size: 14px; }
.pass-left .ico { width: 18px; height: 18px; color: var(--c-yellow); }
.pass-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--c-surface-raised); }
.pass-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
@media (min-width: 900px) { .pass { grid-template-columns: 1fr 400px; } .pass-text { padding: 48px; } .pass-art { aspect-ratio: auto; min-height: 400px; } }
@media (hover: hover) and (pointer: fine) { .pass-art:hover img { transform: scale(1.03); } }

/* ---------- Шаги, сообщество, вопросы */
.steps { display: grid; gap: 24px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; gap: 12px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-md); background: var(--c-accent-soft); color: var(--c-accent); font-weight: 600; }
.step h3 { font-weight: 500; font-size: 16px; line-height: 20px; margin-top: 2px; }
.step p { color: var(--c-text-secondary); font-size: 14px; line-height: 20px; margin-top: 4px; }
.links { display: grid; gap: 16px; }
@media (min-width: 900px) { .links { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.social {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius-lg);
  background: var(--c-surface-default); border: 1px solid var(--c-border-default); transition: border-color .15s var(--ease), transform .25s var(--ease);
}
.social:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .social:hover { border-color: var(--c-border-strong); } .social:hover > .ico { color: var(--c-text-primary); transform: translate(2px, -2px); } }
.brand { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius-md); background: var(--b, #393939); color: #fff; }
.brand .ico { width: 24px; height: 24px; }
.social-text { min-width: 0; }
.social b { display: block; font-weight: 600; font-size: 18px; line-height: 24px; }
.social-text span { display: block; color: var(--c-text-secondary); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social > .ico { margin-left: auto; color: var(--c-text-tertiary); transition: color .15s var(--ease), transform .2s var(--ease); }
.faq { display: grid; gap: 12px; }
@media (min-width: 900px) { .faq-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; } }
details { border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--c-border-default); transition: background-color .2s var(--ease); }
details[open] { background: var(--c-surface-default); }
details::details-content { block-size: 0; overflow-y: clip; opacity: 0; transition: block-size .3s var(--ease), opacity .2s var(--ease), content-visibility .3s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 500; border-radius: var(--radius-lg); }
summary::-webkit-details-marker { display: none; }
summary .ico { color: var(--c-text-secondary); transition: transform .25s var(--ease), color .15s; }
details[open] summary .ico { transform: rotate(45deg); color: var(--c-text-primary); }
@media (hover: hover) and (pointer: fine) { summary:hover .ico { color: var(--c-text-primary); } details:not([open]):hover { background: var(--c-surface-default); } }
details p { padding: 0 20px 20px; color: var(--c-text-secondary); max-width: 68ch; }
details a, details button { color: var(--c-accent); font-weight: 500; }

/* ---------- Подвал */
.footer { border-top: 1px solid var(--c-border-default); background: var(--c-bg-inset); padding-block: 48px 32px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.footer-brand p { color: var(--c-text-secondary); font-size: 14px; margin-top: 16px; max-width: 40ch; }
.socials { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; margin-left: -10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); color: var(--c-text-secondary); transition: color .15s var(--ease), background-color .15s var(--ease); }
.socials .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .socials a:hover { color: var(--c-text-primary); background: var(--c-surface-raised); } }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (min-width: 600px) { .footer-cols { grid-template-columns: repeat(3, minmax(140px, auto)); gap: 48px; } }
.footer-cols b { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.footer-cols a, .footer-cols button { display: block; color: var(--c-text-secondary); font-size: 14px; padding: 6px 0; text-align: left; transition: color .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover, .footer-cols button:hover { color: var(--c-text-primary); } }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border-default); color: var(--c-text-tertiary); font-size: 13px; }
/* Кнопка «i» aDonate сидит слева внизу видимой области: на узком окне текст подвала отступает от неё, страница не добавляет пустоту снизу */
@media (max-width: 1299px) { .footer-bottom { padding-left: 52px; } }

/* ---------- Страница серверов */
.join { display: grid; gap: 24px; margin: 0 0 48px; }
@media (min-width: 900px) { .join { grid-template-columns: repeat(3, 1fr); } }
.server-list { display: grid; gap: 16px; }
.server-card {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: center;
  background: var(--c-surface-default); border: 1px solid var(--c-border-default); border-radius: var(--radius-xl);
  transition: border-color .2s var(--ease);
}
.server-card img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.server-card.off img { opacity: .45; }
.server-info { min-width: 0; }
.server-card h3 { font-weight: 600; font-size: 18px; line-height: 24px; }
.server-card .meta { color: var(--c-text-secondary); font-size: 14px; margin-top: 2px; }
.server-card .online-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.server-card .online-row .srv-count { min-width: 0; text-align: left; color: var(--c-text-primary); font-weight: 700; font-size: 20px; }
.server-card.off .online-row .srv-count { color: var(--c-text-tertiary); font-weight: 500; font-size: 16px; }
.server-card .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.server-card .acts .btn { flex: 1 1 auto; }
.server-card.selected { border-color: var(--c-border-strong); }
@media (min-width: 900px) {
  .server-card { grid-template-columns: 176px minmax(0, 1fr) auto; gap: 32px; padding: 24px; }
  .server-card img { width: 176px; height: 176px; }
  .server-card .acts { grid-column: auto; flex-direction: column; align-items: stretch; }
  .server-card h3 { font-size: 22px; line-height: 28px; }
}
.page-head { padding-block: 40px 32px; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; font-weight: 700; font-size: 36px; line-height: 44px; letter-spacing: -.015em; }
.page-head p { color: var(--c-text-secondary); margin-top: 8px; font-size: 18px; line-height: 28px; max-width: 60ch; text-wrap: pretty; }
@media (min-width: 900px) { .page-head h1 { font-size: 44px; line-height: 52px; } }
@media (max-width: 599px) { .page-head { padding-block: 32px 24px; } .page-head p { font-size: 16px; line-height: 24px; } }

/* ---------- Общее для корзины, заказа и профиля */
.card { background: var(--c-surface-default); border: 1px solid var(--c-border-default); border-radius: var(--radius-lg); }
.h-count { margin-left: 12px; color: var(--c-text-tertiary); font-weight: 500; font-size: 18px; line-height: 1; letter-spacing: 0; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px; border-radius: var(--radius-md); color: var(--c-text-secondary); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .15s var(--ease), background-color .15s var(--ease); }
.link-btn .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { color: var(--c-text-primary); background: var(--c-surface-raised); } }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--c-surface-hover); color: var(--c-text-secondary); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.badge.ok { background: var(--c-success-soft); color: var(--c-success); }
.badge.wait { background: var(--c-info-soft); color: var(--c-info); }
.badge.bad { background: var(--c-danger-soft); color: var(--c-danger); }
.thumb { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; overflow: hidden; border-radius: var(--radius-md); background: var(--c-surface-raised); color: var(--c-text-tertiary); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ico { width: 24px; height: 24px; }
.state { display: grid; justify-items: start; gap: 12px; padding: 32px 24px; }
.state h2 { font-size: 24px; line-height: 32px; }
.state p { color: var(--c-text-secondary); max-width: 52ch; text-wrap: pretty; }
.state .actions { margin-top: 8px; }
.state-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--c-surface-raised); color: var(--c-text-secondary); }
.state-ico .ico { width: 24px; height: 24px; }
.tone-ok { background: var(--c-success-soft); color: var(--c-success); }
.tone-wait { background: var(--c-info-soft); color: var(--c-info); }
.tone-bad { background: var(--c-danger-soft); color: var(--c-danger); }
.tone-accent { background: var(--c-accent-soft); color: var(--c-accent); }
@media (min-width: 900px) { .state { padding: 48px; } }
.pad { padding-top: 40px; }
body:is([data-page="order"], [data-page="profile"]) main { padding-bottom: 96px; }
.block-note { color: var(--c-text-tertiary); font-size: 14px; }
.block-note a { color: var(--c-accent); font-weight: 500; }

/* ID сервера или заказа: коротко, копируется по клику */
.sid {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 0 8px; vertical-align: middle;
  border-radius: var(--radius-sm); background: var(--c-surface-raised); box-shadow: inset 0 0 0 1px var(--c-border-default);
  color: var(--c-text-secondary); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.sid > span { overflow: hidden; text-overflow: ellipsis; }
.sid .ico { width: 14px; height: 14px; color: var(--c-text-tertiary); transition: color .15s var(--ease); }
.sid:active { transform: scale(var(--pop)); }
.sid.done { color: var(--c-success); box-shadow: inset 0 0 0 1px var(--c-success-soft); }
.sid.done .ico { color: var(--c-success); }
@media (hover: hover) and (pointer: fine) { .sid:hover { color: var(--c-text-primary); box-shadow: inset 0 0 0 1px var(--c-border-strong); } .sid:hover .ico { color: var(--c-text-primary); } }
.tip {
  position: fixed; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: calc(100vw - 16px); padding: 6px 10px;
  border-radius: var(--radius-md); background: #f2f2f2; color: var(--c-text-on-accent); font-size: 13px; font-weight: 600; pointer-events: none;
  border: 1px solid #fff; opacity: 0; transform: translateY(4px); transition: opacity .14s var(--ease), transform .18s var(--ease);
}
.tip:has(.tip-id) { pointer-events: auto; }
.tip > .ico { display: none; }
.tip.show { opacity: 1; transform: none; }
.tip-id { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.tip small { color: #5c5c5c; font-size: 12px; font-weight: 500; }

/* ---------- Корзина */
.cart-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
  .checkout-col { position: sticky; top: calc(var(--header) + 24px); }
  .step-on .footer { display: none; }
  .step-on .cart-main { padding-bottom: 72px; }
  .step-on .cart-page { padding-bottom: 0; }
}
.lines { display: grid; gap: 12px; }
.line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "art info del" "art qty sum";
  align-items: center; gap: 8px 16px; padding: 12px; overflow: hidden;
}
.line .thumb { grid-area: art; align-self: start; }
.line-info { grid-area: info; min-width: 0; }
.line-info b { display: block; font-weight: 600; font-size: 16px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mis { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 2px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.mi { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; white-space: nowrap; }
.mi:not(:last-child)::after { content: "·"; margin: 0 6px; color: var(--c-text-tertiary); }
.line .stepper, .line .qty-one { grid-area: qty; justify-self: start; }
.line-sum { grid-area: sum; text-align: right; font-weight: 600; font-size: 16px; white-space: nowrap; }
.line-sum .sum { display: inline-block; }
.line-sum small { display: block; color: var(--c-text-tertiary); font-size: 12px; font-weight: 500; }
.del { grid-area: del; justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); color: var(--c-text-tertiary); transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.del:active { transform: scale(.92); }
.del .ico { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .del:hover { background: var(--c-danger-soft); color: var(--c-danger); } }
@media (min-width: 600px) {
  .line { grid-template-columns: 64px minmax(0, 1fr) auto 112px 40px; grid-template-areas: "art info qty sum del"; }
  .line .thumb { align-self: center; }
}
.stepper { display: inline-flex; align-items: center; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); color: var(--c-text-secondary); transition: color .12s var(--ease), background-color .12s var(--ease), transform .1s var(--ease); }
.stepper button:active:not(:disabled) { transform: scale(.9); }
.stepper button .ico { width: 16px; height: 16px; }
.stepper button:disabled { opacity: .35; }
.stepper .q { display: inline-block; min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .stepper button:not(:disabled):hover { color: var(--c-text-primary); background: var(--c-surface-raised); } }
.cart-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; }
.reveal { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--ease), visibility 0s .28s; }
.reveal > div { overflow: hidden; }
.reveal.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s var(--ease); }
.promo { display: flex; gap: 8px; max-width: 480px; padding: 8px 2px 2px; }
.input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius-md);
  background: var(--c-bg-inset); border: 1px solid var(--c-border-strong); color: var(--c-text-primary);
  font: 500 15px/1 "Onest", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase;
  transition: border-color .15s var(--ease);
}
.input::placeholder { color: var(--c-text-tertiary); letter-spacing: 0; text-transform: none; }
.input:focus { outline: none; border-color: var(--c-accent); }
.promo .btn { min-height: 44px; }
.promo-note { margin: 8px 2px 0; min-height: 20px; color: var(--c-text-tertiary); font-size: 13px; line-height: 20px; }
.promo-note.ok { color: var(--c-success); }
.promo-note.bad { color: var(--c-danger); }
/* Корзина: заголовок в левой колонке, чтобы правая (шаг оплаты) начиналась сразу под шапкой */
.cart-page { padding-block: 24px 96px; }
@media (min-width: 900px) { .cart-page { padding-top: 24px; } }
.cart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block: 8px 24px; }
.cart-head h1 { display: flex; align-items: baseline; font-weight: 700; font-size: 36px; line-height: 44px; letter-spacing: -.015em; }
@media (min-width: 900px) { .cart-head h1 { font-size: 44px; line-height: 52px; } }
@media (max-width: 599px) { .cart-head { flex-wrap: nowrap; padding-top: 0; } .cart-head h1 { font-size: 30px; line-height: 36px; white-space: nowrap; } .cart-head .h-count { font-size: 16px; margin-left: 8px; } .cart-head .link-btn { padding: 0 4px; } }
.next { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border-default); }
.next h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.next ul { margin-top: 8px; }
.next li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border-default); }
.next li:last-child { border-bottom: 0; }
.next .ico { width: 20px; height: 20px; margin-top: 2px; }
.next b { font-weight: 500; }
.next p { margin-top: 2px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.next a { color: var(--c-text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-border-strong); }
.tone-y { color: var(--c-yellow); } .tone-g { color: var(--c-success); } .tone-p { color: var(--c-purple); }
.step-slot.skeleton { border-radius: var(--radius-lg); }
.receiver { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; padding: 16px 20px; border: 1px solid var(--c-border-default); border-radius: var(--radius-lg); }
.receiver > .label { width: 100%; color: var(--c-text-tertiary); font-size: 13px; font-weight: 500; }
.receiver .ava { width: 44px; height: 44px; border-radius: 11px; font-size: 20px; }
.receiver .who { flex: 1; min-width: 0; }
@media (max-width: 599px) { .receiver .who { flex-basis: calc(100% - 60px); } .receiver .link-btn { margin-left: 52px; padding: 0 8px; } .receiver .btn { width: 100%; } }
.receiver .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receiver .who p { color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.step-slot { position: relative; }
.step-on .step-slot { border-radius: var(--radius-lg); background: var(--c-surface-default); }
.summary { padding: 24px; border: 1px solid var(--c-border-default); border-radius: var(--radius-lg); background: var(--c-surface-default); }
.summary h2 { font-size: 22px; line-height: 28px; }
.sum-rows { margin: 12px 0 0; }
.sum-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-border-default); color: var(--c-text-secondary); }
.sum-rows dd { color: var(--c-text-primary); font-weight: 600; white-space: nowrap; }
.sum-rows .disc dd { color: var(--c-success); }
.to-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 20px 0; }
.to-pay span { font-weight: 500; }
.to-pay strong { font-weight: 700; font-size: 36px; line-height: 40px; letter-spacing: -.015em; white-space: nowrap; }
.summary .pv-label { margin-top: 4px; }
.summary .opts { margin-bottom: 20px; }
.summary .hint { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--c-text-tertiary); font-size: 13px; }
.summary .hint .ico { width: 16px; height: 16px; }
.summary .hint.bad { color: var(--c-danger); }
.fine { margin-top: 16px; color: var(--c-text-tertiary); font-size: 13px; line-height: 18px; }
.pay-note { display: flex; gap: 10px; margin-top: 16px; padding: 0 4px; color: var(--c-text-tertiary); font-size: 13px; line-height: 18px; }
.pay-note .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--c-yellow); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton.line-sk { height: 90px; }

/* ---------- Варианты выбора: срок, сервер, способ оплаты */
.pv-label { margin-bottom: 8px; color: var(--c-text-tertiary); font-size: 13px; font-weight: 500; }
.opts { display: grid; gap: 8px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border-radius: var(--radius-md); background: var(--c-surface-default); box-shadow: inset 0 0 0 1px var(--c-border-default);
  text-align: left; transition: box-shadow .15s var(--ease), background-color .15s var(--ease), transform .12s var(--ease);
}
.opt:active:not(:disabled) { transform: scale(.99); }
.opt:disabled { opacity: .5; }
.opt-radio { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-border-strong); transition: box-shadow .15s var(--ease); }
.opt-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c-text-on-accent); transform: scale(0); transition: transform .2s var(--ease); }
.opt[aria-checked="true"] { background: var(--c-surface-raised); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.opt[aria-checked="true"] .opt-radio { box-shadow: inset 0 0 0 9px var(--c-accent); }
.opt[aria-checked="true"] .opt-radio::after { transform: scale(1); }
.opt img { width: 36px; height: 36px; flex: none; border-radius: 8px; object-fit: cover; }
.opt.off img { opacity: .45; }
.opt-text { flex: 1; min-width: 0; }
.opt-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 500; font-size: 15px; line-height: 20px; }
.opt-text small { display: block; color: var(--c-text-tertiary); font-size: 13px; line-height: 18px; }
.opt-val { font-weight: 600; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .opt:not([aria-checked="true"]):not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--c-border-strong); background: var(--c-surface-raised); } }

/* ---------- Окно товара */
.pv { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.pv-scrim { position: absolute; inset: 0; background: rgba(6, 6, 6, .72); opacity: 0; transition: opacity .2s var(--ease); }
.pv.open .pv-scrim { opacity: 1; }
.pv-panel {
  position: relative; width: min(1000px, 100%); max-height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-bg-page); border: 1px solid var(--c-border-strong); border-radius: var(--radius-xl);
  opacity: 0; transform: translateY(var(--rise)) scale(.98); transition: opacity .18s var(--ease), transform .24s var(--ease);
}
.pv.open .pv-panel { opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .34s var(--ease); }
.pv-x { position: absolute; z-index: 2; top: 16px; right: 16px; width: 40px; height: 40px; background: var(--c-surface-raised); border: 1px solid var(--c-border-strong); color: var(--c-text-primary); }
.pv-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; padding: 24px; }
.pv-body::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .pv-body { grid-template-columns: 400px minmax(0, 1fr); gap: 40px; padding: 32px; } }
.pv-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--c-surface-raised); color: var(--c-text-tertiary); overflow: hidden; }
.pv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-art > .ico { width: 56px; height: 56px; }
@media (min-width: 900px) { .pv-art { position: sticky; top: 0; align-self: start; } }
@media (max-width: 899px) { .pv-art { max-width: 320px; margin-inline: auto; } }
.pv.open .pv-art img { animation: art-in .5s .06s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: translateY(var(--nudge)) scale(.96); } }
.pv-main { min-width: 0; }
.pv-main h2 { padding-right: 48px; font-size: 32px; line-height: 40px; }
@media (min-width: 900px) { .pv-main h2 { font-size: 40px; line-height: 48px; } }
.pv-sub { margin-top: 6px; color: var(--c-text-secondary); font-size: 16px; line-height: 24px; }
.pv-group { margin-top: 24px; }
.pv-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-border-default); }
.pv-price strong { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 36px; line-height: 40px; letter-spacing: -.015em; white-space: nowrap; }
.pv-price s { color: var(--c-text-tertiary); font-size: 16px; font-weight: 400; }
.pv-price span { display: block; margin-top: 2px; color: var(--c-text-tertiary); font-size: 13px; }
.pv-na { display: flex; gap: 8px; color: var(--c-text-secondary); font-size: 14px; max-width: 36ch; }
.pv-na .ico { width: 18px; height: 18px; color: var(--c-yellow); }
.pv-promise { display: grid; gap: 10px; margin-top: 20px; }
.pv-promise li { display: flex; gap: 10px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.pv-promise .ico { width: 16px; height: 16px; margin-top: 2px; }
.pv-promise li:first-child .ico { color: var(--c-success); }
.pv-promise li:nth-child(2) .ico { color: var(--c-purple); }
.pv-promise a { color: var(--c-text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-border-strong); }
.pv-h { margin-top: 32px; font-size: 22px; line-height: 28px; font-weight: 600; }
.pv-perks { display: grid; gap: 10px; margin-top: 12px; }
.pv-perks li { display: flex; gap: 10px; font-size: 15px; line-height: 22px; }
.pv-perks .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--c-success); }
.pv-desc { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-border-default); color: var(--c-text-secondary); font-size: 15px; line-height: 24px; }
.pv-desc .pv-perks li { color: var(--c-text-primary); }
.pv-desc .pv-perks .ico { color: var(--c-text-tertiary); }
.pv-desc p + p, .pv-desc p + ul, .pv-desc ul + p { margin-top: 12px; }
@media (max-width: 899px) {
  .pv { padding: 0; place-items: end stretch; }
  .pv-panel { width: 100%; max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 0; transform: translateY(100%); }
  .pv.open .pv-panel { transform: none; }
  .pv-body { padding: 16px 16px 24px; }
  .pv-buy { position: sticky; bottom: -24px; z-index: 1; flex-wrap: nowrap; gap: 12px; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 72px; background: var(--c-bg-page); border-top: 1px solid var(--c-border-default); }
  .pv-buy .buy-swap { flex: 1; min-width: 0; justify-content: flex-end; }
  .pv-buy .btn { width: 100%; max-width: 220px; padding-inline: 16px; }
  .pv-price { flex: none; }
  .pv-price strong { font-size: 24px; line-height: 28px; }
  .pv-price span { font-size: 12px; }
  .pv-na { font-size: 13px; }
}

/* ---------- Заказ */
.wrap.narrow { width: min(760px, 100% - 32px); }
.order-head { display: grid; justify-items: start; gap: 8px; padding-block: 40px 32px; }
.order-head .state-ico { margin-bottom: 8px; }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--c-text-tertiary); font-size: 14px; font-weight: 500; }
.order-head h1 { font-weight: 700; font-size: 36px; line-height: 44px; letter-spacing: -.015em; text-wrap: balance; }
.order-head > p:not(.order-meta) { color: var(--c-text-secondary); font-size: 17px; line-height: 26px; max-width: 58ch; text-wrap: pretty; }
.order-head .actions { margin-top: 16px; }
@media (min-width: 900px) { .order-head h1 { font-size: 44px; line-height: 52px; } }
.track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.track li { display: grid; gap: 10px; color: var(--c-text-tertiary); font-size: 14px; line-height: 18px; font-weight: 500; }
.track li::before { content: ""; height: 4px; border-radius: 2px; background: var(--c-surface-hover); transform-origin: left; }
.track li.done, .track li.now { color: var(--c-text-primary); }
.track li.done::before { background: var(--c-success); }
.in .track li.done::before { animation: grow .5s var(--ease) both; }
.in .track li:nth-child(2)::before { animation-delay: .12s; } .in .track li:nth-child(3)::before { animation-delay: .24s; }
.track li.now::before { background: var(--c-info); animation: blink 1.6s ease-in-out infinite; }
.track li.bad { color: var(--c-danger); }
.track li.bad::before { background: var(--c-danger); }
@keyframes blink { 50% { opacity: .35; } }
@keyframes grow { from { transform: scaleX(0); } }
.items { padding: 4px 20px; }
.item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-border-default); }
.item:last-child { border-bottom: 0; }
.item .thumb { width: 48px; height: 48px; }
.item-info { flex: 1; min-width: 0; }
.item-info b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.item-sum { font-weight: 600; white-space: nowrap; }
.items-total { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--c-border-default); font-weight: 600; font-size: 18px; }

/* ---------- Профиль */
/* Шапка кабинета: аватар, имя, действия и сводка линиями, без теней */
.me-hero { margin-top: 32px; margin-bottom: 40px; border: 1px solid var(--c-border-default); border-radius: var(--radius-xl); background: var(--c-surface-default); }
.me-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px; }
.ava.ava-xl { width: 88px; height: 88px; border-radius: 18px; font-size: 40px; box-shadow: inset 0 0 0 1px rgba(255, 149, 0, .25); }
.me-top .who { flex: 1; min-width: 0; }
.me-top h1 { font-weight: 700; font-size: 32px; line-height: 40px; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; color: var(--c-text-secondary); font-size: 14px; }
.me-sub .ico { width: 16px; height: 16px; color: var(--c-text-tertiary); }
.mi-dot::before { content: "·"; margin-right: 8px; color: var(--c-text-tertiary); }
.me-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.me-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--c-border-default); }
.me-stats > div { min-width: 0; padding: 16px 24px; border-right: 1px solid var(--c-border-default); }
.me-stats > div:nth-child(2n) { border-right: 0; }
.me-stats > div:nth-child(n + 3) { border-top: 1px solid var(--c-border-default); }
.me-stats > div > .skeleton { display: block; border-radius: var(--radius-sm); }
.me-stats dt { color: var(--c-text-tertiary); font-size: 13px; font-weight: 500; }
.me-stats dd { margin-top: 2px; font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .me-top { padding: 28px 32px; gap: 24px; }
  .me-top h1 { font-size: 44px; line-height: 52px; }
  .me-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .me-stats > div { padding: 20px 32px; border-top: 0 !important; border-right: 1px solid var(--c-border-default) !important; }
  .me-stats > div:last-child { border-right: 0 !important; }
}
@media (max-width: 599px) {
  .me-hero { margin-top: 24px; }
  .me-top { padding: 20px; }
  .ava.ava-xl { width: 64px; height: 64px; border-radius: 14px; font-size: 28px; }
  .me-top .who { flex: 1 1 calc(100% - 80px); }
  .me-top h1 { font-size: 28px; line-height: 34px; }
  .me-acts { width: 100%; } .me-acts .btn { flex: 1; }
  .me-stats > div { padding: 14px 20px; }
  .me-stats dd { font-size: 18px; line-height: 24px; }
}
/* Списки кабинета: одна рамка, строки делят линии */
.rows { border: 1px solid var(--c-border-default); border-radius: var(--radius-lg); background: var(--c-surface-default); overflow: hidden; }
.prow { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; }
.prow + .prow { border-top: 1px solid var(--c-border-default); }
.prow .thumb { width: 56px; height: 56px; }
.prow-info { flex: 1; min-width: 0; }
.prow-info b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .btn { flex: none; }
@media (max-width: 599px) { .prow { flex-wrap: wrap; } .prow-info { flex-basis: calc(100% - 72px); } .prow .btn { width: 100%; } .prow .badge { margin-left: 72px; } }
.rows-empty { padding: 20px; color: var(--c-text-tertiary); font-size: 14px; }
.rows-empty a { color: var(--c-accent); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-secondary); }
.pill img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }
.pill .ico { width: 14px; height: 14px; }
.hist-filters { margin: -4px 0 16px; }
.hist-filters .chip { min-height: 36px; padding: 0 12px; }
.show-more { margin-top: 12px; }
.side-label { margin-top: 20px; color: var(--c-text-tertiary); font-size: 13px; font-weight: 500; }
.side-label + .moves { margin-top: 4px; }
.profile-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.block + .block { margin-top: 40px; }
.block-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.block-top .block-head { margin-bottom: 0; }
.block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font-weight: 600; font-size: 22px; line-height: 28px; }
.owned { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; }
.owned + .owned { margin-top: 12px; }
.owned-info { flex: 1; min-width: 0; }
.owned-info b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owned-info > span { display: block; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; margin-top: 2px; }
.owned-info .owned-srv { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--c-text-tertiary); font-size: 13px; }
.left-bar { max-width: 240px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--c-surface-hover); overflow: hidden; }
.left-bar i { display: block; width: var(--w); height: 100%; border-radius: 2px; background: var(--c-success); transform-origin: left; }
.left-bar.low i { background: var(--c-yellow); }
.in .left-bar i { animation: grow .7s .15s var(--ease) both; }
.owned .btn { flex: none; }
@media (max-width: 599px) { .owned { flex-wrap: wrap; } .owned .btn { width: 100%; } .owned .badge { margin-left: 80px; } }

/* История покупок: строка держит сетку без переносов на любой ширине */
.orders { border-top: 1px solid var(--c-border-default); container-type: inline-size; }
.order-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "w w m" "d s st";
  align-items: center; gap: 6px 12px; min-height: 64px; padding: 12px 8px; border-bottom: 1px solid var(--c-border-default);
  transition: background-color .15s var(--ease);
}
.order-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row .d { grid-area: d; color: var(--c-text-tertiary); font-size: 14px; }
.order-row .w { grid-area: w; font-weight: 500; }
.order-row .s { grid-area: s; display: flex; align-items: center; color: var(--c-text-tertiary); font-size: 14px; }
.order-row .s::before { content: "·"; margin-right: 8px; }
.order-row .m { grid-area: m; font-weight: 600; text-align: right; }
.order-row .st { grid-area: st; display: flex; align-items: center; justify-content: flex-end; gap: 4px; overflow: visible; }
.order-row .sid { min-height: 24px; padding: 0 6px; font-size: 12px; }
.row-go { display: none; width: 16px; height: 16px; color: var(--c-text-tertiary); opacity: 0; transform: translateX(-4px); transition: opacity .15s var(--ease), transform .2s var(--ease); }
.row-link { position: absolute; inset: 0; z-index: 1; width: 100%; border-radius: 0; }
.row-link:focus-visible { outline-offset: -2px; border-radius: var(--radius-sm); }
.order-row.head { display: none; }
@media (hover: hover) and (pointer: fine) {
  .order-row:not(.head):hover { background: var(--c-surface-default); }
  .order-row:not(.head):hover .row-go { opacity: 1; transform: none; }
}
@container (min-width: 600px) {
  .order-row { grid-template-columns: 112px minmax(0, 1fr) 140px 96px 132px; grid-template-areas: "d w s m st"; gap: 16px; min-height: 60px; padding: 0 8px; }
  .order-row .d, .order-row .s { font-size: 15px; color: var(--c-text-secondary); }
  .order-row .s::before { content: none; }
  .order-row .st { justify-content: space-between; }
  .order-row.head { display: grid; min-height: 40px; color: var(--c-text-tertiary); font-size: 13px; font-weight: 500; }
  @media (hover: hover) and (pointer: fine) { .row-go { display: block; } }
  .order-row.head span { color: inherit; font-size: inherit; font-weight: inherit; }
}
.side-card { padding: 24px; }
.side-card + .side-card { margin-top: 16px; }
.side-card h2 { font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.side-card > p { margin-top: 8px; color: var(--c-text-secondary); font-size: 14px; line-height: 20px; }
.side-card .btn { margin-top: 16px; }
.side-card .bal { color: var(--c-text-primary); margin-top: 4px; font-weight: 700; font-size: 36px; line-height: 44px; letter-spacing: -.015em; }
.moves { margin-top: 16px; }
.moves li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-border-default); font-size: 14px; }
.moves li span { min-width: 0; color: var(--c-text-secondary); }
.moves li small { display: block; color: var(--c-text-tertiary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moves li b { font-weight: 600; white-space: nowrap; }
.moves li b.plus { color: var(--c-success); }

/* ---------- 404 */
.nf { display: grid; justify-items: start; gap: 16px; padding-block: 72px 48px; }
.nf .state-ico { width: 56px; height: 56px; }
.nf h1 { font-weight: 700; font-size: 44px; line-height: 48px; letter-spacing: -.02em; text-wrap: balance; }
.nf p { color: var(--c-text-secondary); font-size: 18px; line-height: 28px; max-width: 46ch; }
.nf .actions { margin-top: 16px; }
@media (min-width: 900px) { .nf { padding-block: 120px 96px; } .nf h1 { font-size: 64px; line-height: 68px; } }

/* ---------- «Добавлено в корзину» — своя корзина убирает полосу aDonate, поэтому отвечаем сами */
.toast {
  position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 72px; display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--radius-lg); background: var(--c-surface-raised); border: 1px solid var(--c-border-strong);
  animation: toast-in .32s var(--ease) both;
}
@media (min-width: 600px) { .toast { left: auto; width: 400px; } }
.toast .thumb { width: 48px; height: 48px; }
.toast-text { flex: 1; min-width: 0; }
.toast-text b { display: block; font-weight: 600; font-size: 14px; line-height: 20px; }
.toast-text span { display: block; overflow: hidden; color: var(--c-text-secondary); font-size: 13px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
.toast .icon-btn { width: 36px; height: 36px; }
.toast .icon-btn .ico { width: 18px; height: 18px; }
.toast.out { animation: toast-out .2s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(var(--rise)) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(var(--nudge)); } }
.fly { position: fixed; z-index: 50; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); pointer-events: none; }

/* ---------- Движение. Авторский момент один — первый экран собирается, счётчик онлайна и ячейки добегают до значения; остальное — ответ на действие */
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise)); } }
@keyframes fade { from { opacity: 0; transform: translateY(var(--nudge)); } }
@keyframes ping { 0% { transform: scale(.8); opacity: .55; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes cell { from { opacity: 0; transform: scaleY(.3); } }
/* Вход страницы и уход с неё */
main { animation: fade .4s var(--ease) both; }
body[data-page="index"] main { animation: none; }
body.leaving main, body.leaving .footer { opacity: 0; transform: translateY(calc(var(--nudge) * -.5)); transition: opacity .14s ease-out, transform .14s ease-out; }
.hero > * { animation: rise .7s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .12s; }
.hero h1 { animation: rise .7s var(--ease) both; }
.hero .lead { animation: rise .7s .06s var(--ease) both; }
.hero .actions { animation: rise .7s .1s var(--ease) both; }
.first .srv { animation: rise .5s var(--ease) both; }
.first .srv:nth-child(2) { animation-delay: .05s; } .first .srv:nth-child(3) { animation-delay: .1s; } .first .srv:nth-child(4) { animation-delay: .15s; } .first .srv:nth-child(5) { animation-delay: .2s; }
.first .meter i.on { animation: cell .5s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.swap .group, .swap > .state { animation: fade .35s var(--ease) both; }
.swap .group + .group { animation-delay: .05s; }
.swap .group + .group + .group { animation-delay: .1s; }
.ready .server-list > * { animation: fade .35s var(--ease) both; }
.ready .server-list > :nth-child(2) { animation-delay: .04s; } .ready .server-list > :nth-child(3) { animation-delay: .08s; } .ready .server-list > :nth-child(4) { animation-delay: .12s; }
/* Состояние сменилось (пусто / есть товары, вошёл / не вошёл, загрузка → данные) */
main [data-adonate-if]:not([hidden]) { animation: fade .3s var(--ease) both; }
.in > * { animation: fade .38s var(--ease) both; }
.in > :nth-child(2) { animation-delay: .05s; } .in > :nth-child(3) { animation-delay: .1s; } .in > :nth-child(4) { animation-delay: .14s; }
.in .profile-grid > * > * { animation: fade .38s var(--ease) both; }
.in .profile-grid > * > :nth-child(2) { animation-delay: .06s; } .in .profile-grid > * > :nth-child(3) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  :root { --rise: 0px; --nudge: 0px; --lift: 0px; --pop: 1; }
  html { scroll-behavior: auto; }
  .dot::after, .skeleton::after, .spin, .track li.now::before, .count.bump, .first .meter i.on { animation: none !important; }
  .in .track li.done::before, .in .left-bar i { animation: none !important; }
  .rank:hover .rank-art img, .pass-art:hover img { transform: none !important; }
  .pv-panel { transition-property: opacity !important; transform: none !important; }
  .drawer a { transform: none; }
}
