/* ============================================================
   NeonWorld — тема Arcane Dark (референс sollyworld.pw)
   ============================================================ */

:root {
  --theme-bg: #080808;
  --theme-text: #ffffff;
  --theme-card-bg: #101010;
  --theme-card-ring: #222222;
  --theme-divider: #222222;
  --theme-muted-text: #868686;
  --theme-nav-subtext: #dbdbdb;
  --theme-input-bg: #0a0a0a;
  --theme-input-placeholder: #868686;
  --theme-online-label: #34d703;
  --theme-online-max: #939393;
  --theme-online-divider: #3a3a3a;
  --theme-sale-price: #ffffff;

  --accent-color: #f5c542;
  --faded-accent-color: rgba(245, 197, 66, 0.45);

  --astral-accent: var(--accent-color);
  --astral-accent-glow: var(--faded-accent-color);
  --astral-green: #34d703;
  --astral-red: #ff191c;
  --astral-product-bg: #312323;
  --astral-text-dim: #7c7c7c;
  --astral-hero-fade: rgba(8, 8, 8, 0.85);

  --max: 1320px;
  --radius-card: 20px;
  --radius-pill: 25px;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

svg { fill: currentColor; }

::selection {
  background: var(--astral-accent);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, ul, ol { margin: 0; }

.unbounded {
  font-family: "Unbounded", var(--font-ui);
  letter-spacing: -0.01em;
}

.page__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 16px;
}

.f-smooth { transition: all 0.3s ease; }

.live-pulse { animation: live-pulse 1.6s ease-in-out infinite; }

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.scroll-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-hidden::-webkit-scrollbar { display: none; }

/* ---------- header ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.pill {
  display: flex;
  align-items: center;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  border-radius: var(--radius-pill);
}

.pill--logo {
  height: 56px;
  flex-shrink: 0;
  gap: 12px;
  padding: 0 12px;
  border-radius: 20px;
}

.pill__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}

.pill__title {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pill--nav {
  display: none;
  flex: 1;
  height: 70px;
  padding: 0 34px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.nav__link svg { opacity: 0.9; }

.nav__link:hover { opacity: 0.8; }

.nav__link.is-active { color: var(--astral-accent); }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 999px;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-muted-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang__btn img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.lang__btn:hover { opacity: 0.8; }

.lang__btn.is-active {
  background: var(--accent-color);
  color: #fff;
}

.pill--cta {
  height: 56px;
  margin-left: auto;
  padding: 0 18px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pill--burger {
  margin-left: auto;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
}

.pill--burger span {
  width: 24px;
  height: 2px;
  background: var(--theme-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pill--burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pill--burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pill--burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobilemenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  border-radius: var(--radius-pill);
}

.mobilemenu__link {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--theme-muted-text);
}

.mobilemenu__link.is-active,
.mobilemenu__link:hover { color: var(--theme-text); background: #171717; }

.mobilemenu__lang {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 4px 4px;
  border-top: 1px solid var(--theme-divider);
}

.mobilemenu__lang .lang__btn { box-shadow: inset 0 0 0 1px var(--theme-card-ring); }

@media (min-width: 1024px) {
  .page__inner { padding: 0 20px; }
  .header { gap: 20px; }
  .pill--nav { display: flex; }
  .pill--burger { display: none; }
  .pill--cta { display: none; }
  .pill--logo { height: 70px; gap: 16px; padding: 0 20px; }
  .pill__logo { width: 48px; height: 48px; border-radius: 14px; }
  .pill__title { max-width: 200px; font-size: 17px; }
  .mobilemenu { display: none !important; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: 30px;
  height: 256px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--theme-card-bg);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--astral-hero-fade) 0%,
    rgba(8, 8, 8, 0.55) 35%,
    rgba(8, 8, 8, 0) 70%
  );
}

.hero__shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -6px 76px 2px #080808;
}

.hero__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.hero__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #dedede;
}

.playbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--astral-accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.playbtn:hover { filter: brightness(1.1); }
.playbtn:active { transform: scale(0.96); }

.playbtn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.playbtn__label { font-size: 12px; font-weight: 500; }
.playbtn__ip { font-size: 14px; font-weight: 700; }

@media (min-width: 768px) {
  .hero { height: 320px; }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 14px; }
}

@media (min-width: 1024px) {
  .hero { height: 400px; }
  .hero__body { left: 36px; bottom: 28px; right: auto; }
  .hero__title { font-size: 40px; }
  .hero__sub { font-size: 15px; }
  .playbtn { margin-top: 16px; padding: 10px 28px; gap: 10px; }
  .playbtn__icon { width: 30px; height: 30px; }
  .playbtn__label { font-size: 14px; }
  .playbtn__ip { font-size: 16px; }
}

/* ---------- server status bar ---------- */

.serverbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 35px;
  padding: 22px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-text) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 9%, transparent);
}

.serverbar__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  box-shadow: 0 4px 16px 0 color-mix(in srgb, var(--accent-color) 20%, transparent);
  overflow: hidden;
}

.serverbar__icon img { width: 48px; height: 48px; border-radius: 12px; }

.serverbar__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.serverbar__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--theme-muted-text);
}

.serverbar__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.serverbar__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-text) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 8%, transparent);
}

.serverbar__stat b { font-size: 15px; }
.serverbar__stat span { font-size: 11px; color: var(--theme-muted-text); }

.online {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  white-space: nowrap;
}

.online__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-online-label);
}

.online__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.online.is-off .online__label { color: var(--astral-red); }

.online__divider { width: 1px; height: 14px; background: var(--theme-online-divider); }

.online__count { font-size: 13px; font-weight: 600; }
.online__max { color: var(--theme-online-max); font-weight: 500; }

@media (min-width: 1024px) {
  .serverbar { flex-direction: row; align-items: center; gap: 24px; padding: 28px 32px; }
  .serverbar__text { flex: 1; min-width: 0; }
  .serverbar__row { flex-wrap: nowrap; }
}

/* ---------- coins bundle ---------- */

.bundle {
  margin-top: 20px;
  padding: 22px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--theme-text) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 9%, transparent);
}

.bundle__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bundle__side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.bundle__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-color) 25%, transparent);
  background: color-mix(in srgb, var(--accent-color) 12%, transparent);
  overflow: hidden;
}

.bundle__icon img { width: 48px; height: 48px; border-radius: 12px; }

.bundle__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.bundle__name {
  font-family: "Unbounded", var(--font-ui);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle__pack,
.bundle__hint { font-family: "Unbounded", var(--font-ui); font-size: 11px; color: var(--theme-muted-text); }

.bundle__control { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }

.bundle__labels {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: "Unbounded", var(--font-ui);
  font-size: 12px;
  color: var(--theme-muted-text);
}

.bundle__range { display: flex; flex-direction: column; gap: 4px; }

.bundle__packs { display: flex; flex-wrap: wrap; gap: 6px; }

.bundle__pack-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #171717;
  color: var(--theme-muted-text);
  font-family: "Unbounded", var(--font-ui);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bundle__pack-btn:hover { opacity: 0.85; }

.bundle__pack-btn.is-active {
  background: var(--astral-accent);
  color: #fff;
}

.cd-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    var(--accent-color) var(--cd-fill, 0%),
    color-mix(in srgb, var(--theme-text) 14%, transparent) var(--cd-fill, 0%)
  );
  outline: none;
  cursor: pointer;
}

.cd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--accent-color);
  border: 4px solid var(--theme-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.cd-range::-webkit-slider-thumb:hover { transform: scale(1.12); }

.cd-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--accent-color);
  border: 4px solid var(--theme-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.cd-range::-moz-range-track { height: 8px; border-radius: 9999px; background: transparent; }

.cd-ticks {
  height: 8px;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    to right,
    color-mix(in srgb, var(--theme-text) 22%, transparent) 0 1px,
    transparent 1px calc(100% / 10)
  );
  mask-image: linear-gradient(to bottom, transparent 0, #000 3px);
}

.bundle__plates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.plate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--theme-text) 4%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 8%, transparent);
}

.plate__label { font-family: "Unbounded", var(--font-ui); font-size: 11px; color: var(--theme-muted-text); }

.plate__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Unbounded", var(--font-ui);
  font-size: 15px;
}

.plate__old { font-size: 12px; color: var(--theme-muted-text); text-decoration: line-through; }
.plate__off { font-size: 10px; color: var(--astral-red); }

.bundle__buy { flex-shrink: 0; }

.bigbuy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  background: var(--astral-accent);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--accent-color) 35%, transparent);
}

.bigbuy:hover { opacity: 0.85; transform: scale(0.99); }
.bigbuy:active { transform: scale(0.98); }

.bigbuy__text { font-family: "Unbounded", var(--font-ui); font-size: 14px; font-weight: 400; }

.bigbuy__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .bundle { padding: 28px 32px; }
  .bundle__row { flex-direction: row; align-items: center; }
  .bundle__side { width: 256px; }
  .bundle__buy { width: 224px; }
}

/* ---------- section heads ---------- */

.heads {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 35px;
}

.heads__cell { text-align: center; }

.heads__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.heads__icon { color: var(--astral-accent); flex-shrink: 0; }

.heads__title h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.heads__sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-muted-text);
}

.pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 16px;
  padding: 4px;
  border-radius: 60px;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  overflow-x: auto;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar { display: none; }

.pills__indicator {
  position: absolute;
  border-radius: 60px;
  background: var(--astral-accent);
  transition: left 0.25s ease, width 0.25s ease;
  pointer-events: none;
}

.pills__btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 60px;
  background: transparent;
  color: var(--theme-text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pills__btn:active { transform: scale(0.95); }
.pills__btn img { display: none; width: 18px; height: 19px; object-fit: contain; }
.pills__btn:hover { opacity: 0.85; }

@media (min-width: 640px) {
  .pills__btn { gap: 5px; padding: 8px 12px; font-size: 12px; }
  .pills__btn img { display: block; }
}

@media (min-width: 768px) {
  .pills { gap: 5px; padding: 5px; }
  .pills__btn { gap: 5px; padding: 12px 20px; font-size: 14px; }
}

@media (min-width: 1024px) {
  .heads { grid-template-columns: 1fr 1fr; gap: 24px; }
  .heads__cell { text-align: left; }
  .heads__title { justify-content: flex-start; }
  .heads__title h2 { font-size: 30px; }
  .heads__sub { font-size: 15px; }
  .pills { display: inline-flex; width: auto; max-width: 100%; }
  .pills--right { justify-content: flex-end; }
  .pills__btn { flex: 0 0 auto; justify-content: flex-start; padding: 15px 28px; font-size: 16px; }
  .heads__cell--right .heads__title { justify-content: flex-end; }
  .heads__cell--right .heads__icon { order: 2; }
}

@media (max-width: 1023px) {
  .heads__cell--right .pills { justify-content: center; }
  .pills { justify-content: flex-start; }
}

/* ---------- product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 17px;
  margin-top: 25px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-card);
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--astral-accent) 22%, transparent);
  filter: brightness(1.05);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  overflow: hidden;
  background: var(--astral-product-bg);
}

.card__img { width: 100%; height: 100%; object-fit: cover; }

.card__tag {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 15px;
  background: var(--astral-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card__price {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 15px;
  background: var(--astral-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card__price b { font-weight: 800; }

.card__flag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 15px;
  background: var(--astral-red);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.card__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--astral-text-dim);
}

.card__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--astral-accent);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 23px -3px var(--astral-accent-glow);
}

.card__buy:hover { filter: brightness(1.1); }
.card__buy:active { transform: scale(0.96); }
.card__buy.is-added { background: var(--astral-green); }

.card__buy svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 17px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 24px; }
  .card { gap: 12px; padding: 10px; border-radius: 25px; }
  .card__media { border-radius: 20px; }
  .card__tag,
  .card__price,
  .card__flag { top: 16px; padding: 6px 16px; border-radius: 25px; font-size: 20px; }
  .card__tag { right: 16px; }
  .card__price { left: 16px; }
  .card__flag { left: 16px; bottom: 16px; }
  .card__label { font-size: 13px; }
  .card__name { font-size: 24px; }
  .card__buy { height: 40px; border-radius: 25px; font-size: 15px; }
  .card__buy svg { width: 22px; height: 22px; }
}

/* ---------- notice ---------- */

.notice {
  margin-top: 25px;
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-color) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 28%, transparent);
  color: var(--theme-text);
  font-size: 14px;
}

/* ---------- footer ---------- */

.footer {
  margin: 35px 0 40px;
  border-radius: var(--radius-pill);
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  overflow: hidden;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.footer__brand { display: flex; align-items: center; gap: 10px; align-self: flex-start; }

.footer__logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.footer__logo img { width: 100%; height: 100%; object-fit: cover; }

.footer__name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.footer__copy { font-size: 12px; font-weight: 600; color: var(--theme-muted-text); }

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.social:hover { opacity: 1; }
.social--vk { color: #0077ff; }
.social--tg { color: #3dabff; }
.social--dc { color: #8a7bff; }

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--theme-muted-text);
}

.footer__legal a:hover { color: var(--theme-text); }

@media (min-width: 1024px) {
  .footer__row { flex-direction: row; justify-content: space-between; gap: 0; padding: 0 35px; height: 80px; }
  .footer__brand { align-self: auto; }
  .footer__social { flex-direction: row; gap: 40px; }
  .footer__legal { flex-direction: row; gap: 18px; }
}

/* ---------- floating buttons ---------- */

.fab {
  position: fixed;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent-color);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--accent-color) 45%, transparent);
  transition: opacity 0.3s ease;
}

.fab:hover { opacity: 0.9; }

.fab--cart { right: 20px; gap: 12px; padding: 14px 20px; font-size: 14px; }
.fab--gift { left: 20px; padding: 14px; }
.fab--cart.is-bump { animation: bump 0.35s ease; }

@keyframes bump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.07); }
}

/* ---------- drawer ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--theme-card-bg);
  border-left: 1px solid var(--theme-card-ring);
  animation: slide-in 0.28s ease;
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--theme-divider);
}

.drawer__title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: var(--theme-text);
  cursor: pointer;
}

.drawer__close:hover { background: #242424; }

.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }

.drawer__rows { display: flex; flex-direction: column; gap: 10px; }

.drawer__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--theme-input-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
}

.drawer__info { flex: 1; min-width: 0; }
.drawer__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer__meta { font-size: 12px; color: var(--theme-muted-text); }

.drawer__qty {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: #171717;
  padding: 3px;
}

.drawer__qty button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.drawer__qty button:hover { background: #262626; }
.drawer__qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 700; }
.drawer__sum { font-size: 14px; white-space: nowrap; }

.drawer__empty { padding: 20px 0; font-size: 14px; color: var(--theme-muted-text); text-align: center; }

.drawer__form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field__label { font-size: 12px; color: var(--theme-muted-text); }

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--theme-card-ring);
  border-radius: 12px;
  background: var(--theme-input-bg);
  color: var(--theme-text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.field input:focus { border-color: var(--accent-color); }
.field input::placeholder { color: var(--theme-input-placeholder); }

.methods { display: flex; flex-direction: column; gap: 8px; }

.method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--theme-input-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  cursor: pointer;
  transition: all 0.3s ease;
}

.method input { display: none; }
.method.is-active { background: var(--theme-card-bg); box-shadow: inset 0 0 0 1px var(--accent-color); }
.method__name { font-size: 14px; font-weight: 600; }
.method__hint { font-size: 12px; color: var(--theme-muted-text); }

.paybtn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--astral-accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px 0 color-mix(in srgb, var(--accent-color) 35%, transparent);
  transition: all 0.3s ease;
}

.paybtn:hover { filter: brightness(1.08); }
.paybtn:disabled { opacity: 0.55; cursor: default; }

.drawer__note { font-size: 12px; color: var(--theme-muted-text); }

.drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-top: 1px solid var(--theme-divider);
  font-size: 15px;
}

.drawer__foot .unbounded { font-size: 20px; font-weight: 700; }

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--astral-red) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--astral-red) 30%, transparent);
  color: #ffd7d8;
  font-size: 13px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--accent-color), 0 8px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- documents (privacy / terms / rules) ---------- */

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.doc {
  max-width: 900px;
  padding: 30px 0 80px;
  font-size: 15.5px;
  line-height: 1.6;
}

.doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 10px; }

.doc__lead {
  color: var(--theme-muted-text);
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--theme-divider);
}

.doc__toc {
  background: var(--theme-card-bg);
  box-shadow: inset 0 0 0 1px var(--theme-card-ring);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 34px;
}

.doc__toc strong { display: block; margin-bottom: 8px; letter-spacing: 0.02em; }

.doc__toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 14.5px;
}

.doc__toc a:hover { color: var(--astral-accent); }

.doc h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 38px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-divider);
  scroll-margin-top: 20px;
}

.doc h3 { font-size: 17px; margin: 24px 0 8px; color: var(--astral-accent); }
.doc p { margin: 0 0 12px; }

.doc ul,
.doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--astral-accent); }

.doc b,
.doc strong { color: #fff; font-weight: 600; }

.doc__table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }

.doc__table th,
.doc__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--theme-divider);
  vertical-align: top;
}

.doc__table th {
  color: var(--theme-muted-text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc__table tr:last-child td { border-bottom: none; }

.doc__price { white-space: nowrap; font-weight: 600; color: var(--astral-accent); }

.doc__note {
  background: color-mix(in srgb, var(--accent-color) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-color) 28%, transparent);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
}

.doc__contacts li { font-size: 15.5px; }
.doc__todo { color: var(--astral-accent); font-size: 13.5px; }

.doc__foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--theme-divider);
  color: var(--theme-muted-text);
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .doc { font-size: 15px; }
  .doc h1 { font-size: 27px; }
  .doc h2 { font-size: 19px; }
  .doc__toc ol { columns: 1; }
  .fab--cart { padding: 12px 16px; font-size: 13px; }
}

/* ---------- legacy helpers (success page) ---------- */

.summary-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 26px auto 0;
  text-align: left;
}

.center { text-align: center; padding: 60px 0 90px; }
.center h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 10px; }
.center p { color: var(--theme-muted-text); }

.spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--astral-accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
